Closed TechStudent10 closed 1 year ago
https://mwax911.medium.com/building-a-plugin-architecture-with-python-7b4ab39ad4fc
This could be the main inspiration for the plugin system, which I might start calling Add-ons or something.
Haven't posted in a while, I got plugins working.
Plugin's code (using an NPM module I made called @techstudent10/plugin
Also managed to get logging to work lol
Plugin in action
I think I'm gonna close this as the basic functionality is here now
A plugin system and NPM module that is capable of modifying Proton's themes and functionality.
A plugin class structure could look something like this:
There could be a table/object that keeps track of which plugin hooks into which function at what priority.
As an alternative, maybe instead of a class structure, it's functional:
Last suggestion: inheritance.
Main functionality (used in app)
In a plugin...
When the plugin needs to be called...