From d83bebfad68401d5b4124b27c006f562565323df Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 8 Oct 2021 17:22:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/db/migration/V26__de1.3.sql | 1 + frontend/package.json | 2 +- frontend/src/App.vue | 6 +- frontend/src/components/LangSelect/index.vue | 14 +- .../src/components/Notification/index.vue | 69 ++++---- .../src/components/business/LayoutContent.vue | 2 +- .../components/dataease/DeAsideContainer.vue | 4 +- .../dataease/dragbar/DeLeft2RightDragBar.vue | 13 +- frontend/src/lang/en.js | 9 +- frontend/src/lang/tw.js | 9 +- frontend/src/lang/zh.js | 9 +- .../src/layout/components/Sidebar/index.vue | 21 +-- frontend/src/layout/components/Topbar.vue | 18 +- frontend/src/layout/index.vue | 2 + frontend/src/styles/common/mixins.scss | 15 -- frontend/src/styles/common/variables.scss | 54 ------ frontend/src/styles/index.scss | 167 ++++++++++++++++++ frontend/src/styles/sidebar.scss | 31 ++-- frontend/src/styles/theme/dark.scss | 38 ++++ frontend/src/styles/theme/default.scss | 35 ++++ frontend/src/styles/topbar.scss | 48 +++-- frontend/src/styles/variables.scss | 5 +- frontend/src/views/chart/group/Group.vue | 1 + frontend/src/views/chart/index.vue | 2 +- frontend/src/views/chart/view/ChartEdit.vue | 137 +++++++++----- frontend/src/views/dataset/data/FieldEdit.vue | 1 + .../src/views/dataset/data/TabDataPreview.vue | 4 +- frontend/src/views/dataset/data/ViewTable.vue | 2 +- frontend/src/views/dataset/group/Group.vue | 9 +- frontend/src/views/login/index.vue | 11 +- frontend/src/views/panel/list/PanelList.vue | 1 + .../src/views/system/datasource/DsTree.vue | 1 + .../src/views/system/datasource/index.vue | 3 +- frontend/vue.config.js | 7 + 34 files changed, 516 insertions(+), 235 deletions(-) delete mode 100644 frontend/src/styles/common/mixins.scss delete mode 100644 frontend/src/styles/common/variables.scss create mode 100644 frontend/src/styles/theme/dark.scss create mode 100644 frontend/src/styles/theme/default.scss diff --git a/backend/src/main/resources/db/migration/V26__de1.3.sql b/backend/src/main/resources/db/migration/V26__de1.3.sql index b5fdc2ab27..b75ea86c92 100644 --- a/backend/src/main/resources/db/migration/V26__de1.3.sql +++ b/backend/src/main/resources/db/migration/V26__de1.3.sql @@ -30,6 +30,7 @@ ALTER TABLE `sys_user` ADD COLUMN `from` int(4) NOT NULL COMMENT '来源' AFTER -- INSERT INTO `sys_menu` VALUES (60, 1, 0, 1, '导入LDAP用户', 'system-user-import', 'system/user/imp-ldap', 11, NULL, 'user-ldap', b'0', b'0', b'1', 'user:import', NULL, NULL, NULL, NULL); -- ---------------------------- BEGIN; +INSERT INTO `system_parameter` VALUES ('ui.themeStr', 'light', 'text', 12); INSERT INTO `system_parameter` VALUES ('ldap.url', NULL, 'text', 1); INSERT INTO `system_parameter` VALUES ('ldap.dn', NULL, 'text', 2); INSERT INTO `system_parameter` VALUES ('ldap.password', NULL, 'password', 3); diff --git a/frontend/package.json b/frontend/package.json index 8dc8ff7521..4f9a709770 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -72,7 +72,7 @@ "mockjs": "1.0.1-beta3", "runjs": "^4.1.3", "sass": "^1.32.5", - "sass-loader": "^10.1.1", + "sass-loader": "^7.1.0", "script-ext-html-webpack-plugin": "2.1.3", "script-loader": "^0.7.2", "serve-static": "^1.13.2", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index ec9032c1c6..9aaba1031a 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -6,6 +6,10 @@ diff --git a/frontend/src/components/LangSelect/index.vue b/frontend/src/components/LangSelect/index.vue index 55b565ecb0..5f7615d761 100644 --- a/frontend/src/components/LangSelect/index.vue +++ b/frontend/src/components/LangSelect/index.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/layout/components/Topbar.vue b/frontend/src/layout/components/Topbar.vue index 451737667f..26e432fa7a 100644 --- a/frontend/src/layout/components/Topbar.vue +++ b/frontend/src/layout/components/Topbar.vue @@ -1,17 +1,15 @@