Param302 / SocialRepo

Social Repo - Your Social Handles Repository in a chrome extension.
Apache License 2.0
39 stars 35 forks source link

Update Link Container #49

Closed kimchiiboiii closed 1 month ago

kimchiiboiii commented 1 month ago

Title

Update Link Container

Description

Added event listeners to inputs in the link class, added a prototype isValidURL function that uses a regex to check if a string is a valid URL. Added function setIcon that fetches the corresponding icon or the default icon.

Added default.png for the icon class if there is no link in socialLinks or if ${key.png} exists.

Implemented previewLink(button), matching inputValue with a key in socialLinks if possible and handling the username.


Issue Ticket Number

Fixes #42


Type of change


Checklist:

Param302 commented 1 month ago

Hey @kimchiiboiii ,

Thanks for your contribution, the code is working but there is still some bug :sweat_smile: , but no worries, I will handle it. As you've done so much effort, really hats off :saluting_face: I am currently refactoring the code, once it's done, I will merge your PR.