From b9c29894c6349753bf09fcdb021313bd2c5d03ea Mon Sep 17 00:00:00 2001 From: DogmaDragon Date: Fri, 1 Dec 2023 16:04:44 +0200 Subject: [PATCH] UI plugin dependencies --- in-app-manual/plugins.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/in-app-manual/plugins.md b/in-app-manual/plugins.md index 31975899..2f68b04a 100644 --- a/in-app-manual/plugins.md +++ b/in-app-manual/plugins.md @@ -54,13 +54,20 @@ ui: # optional list of css files to include in the UI css: - + # optional list of js files to include in the UI javascript: - + + # optional list of plugin IDs to load prior to this plugin + requires: + - + # optional list of assets assets: urlPrefix: fsLocation ... + # content-security policy overrides csp: script-src: @@ -71,6 +78,7 @@ ui: connect-src: - http://alloweddomain.com + # the following are used for plugin tasks only exec: - ... @@ -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.