Skip to content

UserPlugins: Add clickable badges to external user plugins#238

Closed
lineargraph wants to merge 10 commits into
Vendicated:mainfrom
lineargraph:feat/userpluginbadge
Closed

UserPlugins: Add clickable badges to external user plugins#238
lineargraph wants to merge 10 commits into
Vendicated:mainfrom
lineargraph:feat/userpluginbadge

Conversation

@lineargraph
Copy link
Copy Markdown
Contributor

This patch adds a button to each user plugin (this is determined by the
plugin directory). Additionally user plugins can specify an
externalLink in their plugin definition to have their badge be
clickable and link to an external website.

Note that this incorporates one file from #234 for the badge colors, but i can also just copy those styles over manually.

@lineargraph lineargraph force-pushed the feat/userpluginbadge branch 2 times, most recently from fd29390 to 0966344 Compare November 21, 2022 17:58
@lineargraph
Copy link
Copy Markdown
Contributor Author

Also: After this we want to add dynamically loading plugins from URLs for user plugins, is there something for this already or can we go ahead with that.

@Vendicated
Copy link
Copy Markdown
Owner

Loading plugins from urls isn't really possible because that means they are loaded too late. You need some way of obtaining them synchronously (e.g. save to file ahead of time and read with fs.readFileSync)

Don't adding the new badge to all plugins as it is *theoretically* impossible for all of them to be new at once.
@lineargraph
Copy link
Copy Markdown
Contributor Author

Yes, right now i allow downloading plugins to localstorage / datastorage and then force a CTRL+R reload.

nmsturcke and others added 3 commits November 21, 2022 20:02
This patch adds a button to each user plugin (this is determined by the
plugin directory). Additionally user plugins can specify an
`externalLink` in their plugin definition to have their badge be
clickable and link to an external website.

Co-Authored-By: exhq <91651232+exhq@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants