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

Allow user input for plugins configurations #1273

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

NilSilva
Copy link
Contributor

Adds settings to plugins. issue: #1264
It allows the user to configure the plugins. For example the plugin I'm working on for komga.
The plugin defines the settings in the following format:
pluginSettings = { email: { value: "", label: "Email" }, password: { value: "", label: "Password" }, url: { value: "", label: "URL" } }
And the app then adds a cog in the installed plugin like this:
image

When pressed a modal opens up with the inputs defined in the plugin:
image

The setting are stored in the plugin storage. An can be accessed by the plugins.

Corrently it only allows text inputs. Maybe in the future other types could be added.

Everything seems to be working but I'm sure there will be problems with this as I'm not very familiar with react. Just point them out, maybe answer a few dumb questions from me that might arise and I'll try to fix them.

@rajarsheechatterjee rajarsheechatterjee merged commit 0fad9b9 into LNReader:master Oct 30, 2024
1 check passed
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.

2 participants