From d36bc1bdcb933c9f5e3c08a17d7c931613e4fb48 Mon Sep 17 00:00:00 2001 From: slavas490 Date: Wed, 31 Jan 2024 22:16:52 +0200 Subject: [PATCH] revert dynamic-config --- demo/restore-demo.sh | 2 +- ui/core/public/static/dynamic-config/index.js | 80 ------------- ui/core/src/App.vue | 2 +- ui/core/src/DocumentApp.vue | 2 +- ui/core/src/FrontendApp.vue | 12 +- ui/core/src/InitialApp.vue | 2 +- ui/core/src/assets/styles/sidebar.scss | 52 +-------- ui/core/src/baseApp.js | 107 ++++++------------ .../components/frontend/FrontendNavbar.vue | 7 +- ui/core/src/main.js | 6 +- ui/core/src/views/Home.vue | 12 +- .../views/appDependentComponents/Sidebar.vue | 23 ++-- .../appDependentComponents/SidebarUser.vue | 8 +- 13 files changed, 60 insertions(+), 255 deletions(-) delete mode 100644 ui/core/public/static/dynamic-config/index.js diff --git a/demo/restore-demo.sh b/demo/restore-demo.sh index cacc5d809..927981831 100755 --- a/demo/restore-demo.sh +++ b/demo/restore-demo.sh @@ -7,7 +7,7 @@ destinationDataDir="/data/hosted/" echo "Removing $destinationDataDir" -rm -R ${destinationDataDir} +rm -R ${destinationDataDir}* echo "Resetting to initial status from $originDataDir.." cp -R ${originDataDir} ${destinationDataDir} diff --git a/ui/core/public/static/dynamic-config/index.js b/ui/core/public/static/dynamic-config/index.js deleted file mode 100644 index 7088a0761..000000000 --- a/ui/core/public/static/dynamic-config/index.js +++ /dev/null @@ -1,80 +0,0 @@ -/* - -*** DYNAMIC CONFIG *** - -Use this file to make dynamic configuration for the application. - -How to use: - -1) Pass VUE_APP_USE_DYNAMIC_CONFIG variable while build pipeline. Like this: -$ export VUE_APP_USE_DYNAMIC_CONFIG=true -2) Place this file into ui/core/dist/static/dynamic-config directory. You can mount Docker volume directry into this path. Any extra files can be placed as well. - -Example of this configuration file: - -export default { - "apply": true, // Allow or deny this config (even with VUE_APP_USE_DYNAMIC_CONFIG value) - "company": { - "logo": { - "lightTheme": { - "path": "/static/dynamic-config/..." - }, - "darkTheme": { - "path": "/static/dynamic-config/..." - }, - "style": { - "home": { - ... css styles ... - }, - "adminDashboard": { - "full": { - ... css styles ... - }, - "small": { - ... css styles ... - } - }, - "userDashboard": { - "full": { - ... css styles ... - }, - "small": { - ... css styles ... - } - } - } - }, - "copyrightText": { - "lang": { - "en": "..." - ... another languages ... - }, - "logo": { - "style": { - ... css styles ... - } - }, - "link": "..." - } - }, - "homePage": { - "platformTitle": { - "lang": { - "en": "..." - ... another languages ... - } - }, - "platformDescription": { - "lang": { - "en": "..." - ... another languages ... - } - } - } -} - -*/ - -export default { - "apply": false -} diff --git a/ui/core/src/App.vue b/ui/core/src/App.vue index d73694d21..52d9a9456 100644 --- a/ui/core/src/App.vue +++ b/ui/core/src/App.vue @@ -1,5 +1,5 @@