mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
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:
1 parent
3a3a7597bf
commit
6c9d3d8893
11 files changed
+150
-2
No files matched your search
@@ -279,7 +279,7 @@ app.get("/api/plugins", (req, res) => {
|
||||
for (let pluginInfo of pluginInfos) {
|
||||
let name = pluginInfo.name;
|
||||
let enabled = masterPlugins.has(name) && masterConfig.group(name).get("enabled");
|
||||
plugins.push({ name, enabled });
|
||||
plugins.push({ name, version: pluginInfo.version, enabled });
|
||||
}
|
||||
res.send(plugins);
|
||||
});
|
||||
|
||||
@@ -11,5 +11,6 @@ module.exports = [
|
||||
"/users/:id/view",
|
||||
"/roles",
|
||||
"/roles/:id/view",
|
||||
"/settings",
|
||||
"/plugins",
|
||||
"/plugins/:name/view",
|
||||
];
|
||||
Reference in new issue
Block a user