Add Plugins page to web interface

Add page listing the plugins installed on the master along with a
detailed page for each plugin with fields from their package.json.
Failure to load the module and version missmatch is also reported.
This adds ./packages.json as required part of the webpack module.
This commit is contained in:
Hornwitser committed 2021-03-01 15:03:25 +01:00
1 parent 3a3a7597bf
commit 6c9d3d8893
11 files changed
+150 -2

No files matched your search

+2
View File
@@ -44,9 +44,11 @@ async function loadPlugins() {
let container = window[`plugin_${meta.name}`];
await container.init(__webpack_share_scopes__.default);
let pluginInfo = (await container.get("./info"))();
let pluginPackage = (await container.get("./package.json"))();
plugins.push({
meta,
info: pluginInfo,
package: pluginPackage,
container,
});