Hacktoberfest -2
Hacktoberfest is still ongoing, this week I have made my second contribution to real open source projects, I have decided to go with the same method I used last time to look for issues, which was applying the "hacktoberfest" label and sorting by the issue post date. After a bit of browsing, I decided to pick up an issue from a small project. It is a weekly calendar app developed using a JavaScript front-end frame work called Svelte, the issue indicates that the project could use a clipboard icon on their web app and an click event handler to allow users to copy contents to the clipboard.
This project was easy to set up and configure for testing, since I already have most of the tools required to work with it, all I had to do was to install the dependencies and get it running locally by using the "npm run dev" command. Thanks to the project owner who posted the issue, he specified the exact file to add the feature to, which was very helpful, without the instructions the .svelte files would be the last one I would check because I didn't know those were the html templates.
Overall, this wasn't a hard issue to resolve, however since I was not familiar with the Svelte syntax and that this is my first time working with clipboard, it had me stuck for a while. Luckily, I was able to find useful information on the Svelte official page which helped me to work with the template. I have also looked around stack overflow and other programming websites and found out that copying to clipboard could be done by working with the DOM.
Repo: https://github.com/OwenGranot/svelte-calender
Link to Issue: https://github.com/OwenGranot/svelte-calender/issues/12
Pull Request: https://github.com/OwenGranot/svelte-calender/pull/15
Comments
Post a Comment