mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
UI plugin dependencies (#4307)
* Add requires field to UI plugin config * Use defer instead of async for useScript * Load plugins based on dependency * Document new field
This commit is contained in:
@@ -42,6 +42,10 @@ type Plugin struct {
|
||||
}
|
||||
|
||||
type PluginUI struct {
|
||||
// Requires is a list of plugin IDs that this plugin depends on.
|
||||
// These plugins will be loaded before this plugin.
|
||||
Requires []string `json:"requires"`
|
||||
|
||||
// Content Security Policy configuration for the plugin.
|
||||
CSP PluginCSP `json:"csp"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user