Allow user input for plugins configurations
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:
When pressed a modal opens up with the inputs defined in the plugin:
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.