Skip to content

Commit

Permalink
Release v4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
idotj committed Feb 26, 2024
1 parent 4d25f1a commit 580fd58
Show file tree
Hide file tree
Showing 20 changed files with 2,360 additions and 1,439 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
v4.2.0 - 26/02/2024
- Changed project name: mastodon-embed-feed-timeline -> mastodon-embed-timeline
- Improved DOM load for module purposes
- New build script with Rollup.js
- Added CDN and NPM install steps
- Added Contributing documentation
- Added example for JS module case

v4.0.4 - 20/02/2024
- Improve alignment for refresh button

Expand Down
84 changes: 84 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Contributing to Mastodon embed timeline

Thanks for your interest in contributing. Any feature and improvement from the community to make this project better is always welcome.

## How to Contribute

### Reporting Issues

If you find any bugs, issues, or have suggestions, please [create a new issue](https://gitlab.com/idotj/mastodon-embed-timeline/-/issues/new) and provide detailed information about the problem or feature.

### Code Contributions

1. Fork the repository on GitLab.
2. Create a new branch from the `main` branch for your changes.
3. Make your modifications and ensure that your code follows the coding standards.
4. Compile and test your changes thoroughly.
5. Submit a pull request to the `main` branch with a clear title and description.

## Getting Started

### Setup your environment

- Choose your favorite IDE and check that the configuration matches the `.editorconfig` setup to respect the same coding styles.
By default, this project is developed using [VScode](https://code.visualstudio.com/) with the plugins [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) and [SonarLint](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarlint-vscode).

- Get [Git](https://git-scm.com/downloads) if you don't have it in your computer and after installation clone the repository by typing:

```terminal
git clone https://gitlab.com/idotj/mastodon-embed-timeline.git
```

- Install [Node.js](https://nodejs.org/en) if you don't have it and then go into the project folder `mastodon-embed-timeline/` and enter:

```terminal
npm i
```

- After all the packages are installed, do a check to see that it compiles as expected typing the following script to run a build:

```terminal
npm run build
```

- All set, time to code!

### Testing

Ensure that your changes do not break existing functionality. If applicable, provide tests for new features or bug fixes.

The example pages located in the folder `examples/` can be a good reference to test the changes made.

If you need to emulate a server for your local development/testing, here are some options:

- Install a static HTTP server via npm:

```terminal
npm install --global http-server
```

After installation, run the command:

```terminal
http-server ./
```

Now you can open your browser and navigate to any of the HTML examples. For example to open a Local timeline, your default url will be:
[http://localhost:8080/examples/local-timeline.html](http://localhost:8080/examples/local-timeline.html)

- Install [Docker compose](https://docs.docker.com/compose/install/) in your computer and run the following command:

```terminal
docker compose up
```

Now open your browser and entering the following url you will land in the Local timeline page:
[http://localhost:8080/examples/local-timeline.html](http://localhost:8080/examples/local-timeline.html)

## Code Review Process

All contributions will go through a code review process. Be prepared to address feedback and make necessary changes to your code.

## License

By contributing to this project, you agree that your contributions will be licensed under the GNU Affero General Public License v3.0.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

Mastodon embed feed timeline
Mastodon embed timeline
Copyright (C) 2021 i.j

This program is free software: you can redistribute it and/or modify
Expand Down
Loading

0 comments on commit 580fd58

Please sign in to comment.