Skip to content

Commit

Permalink
UI plugin dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
DogmaDragon committed Dec 27, 2023
1 parent c5d5733 commit b9c2989
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions in-app-manual/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,20 @@ ui:
# optional list of css files to include in the UI
css:
- <path to css file>
# optional list of js files to include in the UI
javascript:
- <path to javascript file>
# optional list of plugin IDs to load prior to this plugin
requires:
- <plugin ID>
# optional list of assets
assets:
urlPrefix: fsLocation
...
# content-security policy overrides
csp:
script-src:
Expand All @@ -71,6 +78,7 @@ ui:
connect-src:
- http://alloweddomain.com
# the following are used for plugin tasks only
exec:
- ...
Expand All @@ -89,6 +97,9 @@ The `exec`, `interface`, `errLog` and `tasks` fields are used only for plugins w
The `css` and `javascript` field values may be relative paths to the plugin configuration file, or
may be full external URLs.

The `requires` field is a list of plugin IDs which must have their javascript/css files loaded
before this plugins javascript/css files.

The `assets` field is a map of URL prefixes to filesystem paths relative to the plugin configuration file.
Assets are mounted to the `/plugin/{pluginID}/assets` path.

Expand Down

0 comments on commit b9c2989

Please sign in to comment.