Open ES-Alexander opened 3 days ago
Widgets API should include access to things like Cockpit's settings for data display, so that if a user chooses to view data in imperial units then the extension can also do that without needing an independent setting for it.
Thought of that use-case because of this.
Current behaviour
The only available widgets (standard and mini) are currently those that are built into Cockpit, which limits the functionality users can access, and means that widgets that don't belong in the mainstream Cockpit binary need to be maintained in custom Cockpit forks, which is inefficient and problematic to the unity of the project.
This has been part of the idea of Cockpit from the start - I just realised we don't actually have an Issue for it that people can keep track of.
Expected or desired behaviour
The most practical mechanism I can think of for this would be via file-based add-ons, that a user can either manually add to (and modify within) a folder, or "install" via a system like the proposed BlueOS Bazaar, which Cockpit can then look for and load as relevant (e.g. on startup, or on frontend refresh depending on the View).
This could start simple with just "put a Vue file [here] and Cockpit will load it", but fleshed out support should
Prerequisites