From 30b664362fc99cf5889df375ed8f0c2322c494f2 Mon Sep 17 00:00:00 2001 From: Moe Date: Tue, 26 Nov 2024 15:04:04 -0800 Subject: [PATCH] Allow customAutoLoad Modules to add tabs in Super user panel --- libs/customAutoLoad.js | 1 + web/pages/super.ejs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/libs/customAutoLoad.js b/libs/customAutoLoad.js index c08b9106..e002ea76 100644 --- a/libs/customAutoLoad.js +++ b/libs/customAutoLoad.js @@ -345,6 +345,7 @@ module.exports = async (s,config,lang,app,io) => { LibsCss: [], AssetsJs: [], AssetsCss: [], + superPageTabs: [], superPageBlocks: [], superLibsJs: [], superRawJs: [], diff --git a/web/pages/super.ejs b/web/pages/super.ejs index 75edaf35..058f3024 100644 --- a/web/pages/super.ejs +++ b/web/pages/super.ejs @@ -92,6 +92,11 @@ + <% customAutoLoad.superPageTabs.forEach(function(block){ %> + + <% }) %>