Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement interactive list of plugins, settings component demo, and visual SettingsTemplate.yaml editor #82

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

Yusyuriv
Copy link
Member

@Yusyuriv Yusyuriv commented Apr 30, 2024

This PR implements an interactive list of plugins that replaces the old one that was previously being updated by the GitHub workflow. It also includes demos of how different fields from SettingsTemplate.yaml look, and a visual editor for SettingsTemplate.yaml

It is written with Svelte and compiles to native Web Components, so the only thing needed for it to work is to include the built script into the page and use one of the components. Currently it exposes 3 web components:

  1. <plugin-directory></plugin-directory> — the interactive plugin directory.
  2. <settings-generator></settings-generator> — the visual editor for the SettingsTemplate.yaml file for JSON-RPC plugins (Demo)
  3. <settings-component-demo></settings-component-demo> — this provides imitations of different types of fields available in SettingsTemplate.yaml so the users would be able to see how they look without having to create a plugin first (Demo)

Unfortunately, I don't know if it's possible to test GitHub actions in PRs without merging them. I hope I got everything right with the token and stuff.

The workaround with the new <script> tag is there because I couldn't find a way with Docsify to include <script src="..." type="module">, it would just not execute it.

@Yusyuriv Yusyuriv requested a review from jjw24 April 30, 2024 07:06
@Yusyuriv Yusyuriv marked this pull request as ready for review April 30, 2024 07:06
@onesounds onesounds merged commit b8f44b8 into main Apr 30, 2024
@onesounds onesounds deleted the web-components branch April 30, 2024 07:28
@jjw24 jjw24 added the enhancement New feature or request label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants