From a4412107ec5b641ede11ab0d519dbd16d7b9bc32 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Fri, 20 Dec 2024 11:34:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9A=97=E9=BB=91=E4=B8=BB=E9=A2=98):=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E9=85=8D=E7=BD=AE&=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF&=E6=9C=8D=E5=8A=A1=E9=9B=86=E6=88=90=E6=9A=97?= =?UTF-8?q?=E9=BB=91=E6=8F=92=E5=9B=BE=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/style/global.less | 18 ++ .../src/assets/svg/api-change-dark-img.svg | 120 ++++++++++ .../src/assets/svg/api-count-dark-img.svg | 135 ++++++++++++ .../src/assets/svg/api-use-case-dark-img.svg | 91 ++++++++ .../{api_ui_Template.svg => apiTemplate.svg} | 0 frontend/src/assets/svg/apiTemplateDark.svg | 39 ++++ .../src/assets/svg/bug-count-dark-img.svg | 107 +++++++++ .../src/assets/svg/bug-handler-dark-img.svg | 205 ++++++++++++++++++ .../src/assets/svg/case-count-dark-img.svg | 60 +++++ .../src/assets/svg/case-review-dark-img.svg | 106 +++++++++ frontend/src/assets/svg/caseTemplateDark.svg | 39 ++++ frontend/src/assets/svg/configplugin-dark.svg | 76 +++++++ .../src/assets/svg/defectTemplateDark.svg | 39 ++++ .../src/assets/svg/downloadplugin-dark.svg | 61 ++++++ .../src/assets/svg/link-case-dark-img.svg | 110 ++++++++++ .../assets/svg/my-created-bug-dark-img.svg | 94 ++++++++ .../svg/my-created-project-dark-img.svg | 109 ++++++++++ frontend/src/assets/svg/no_resource-dark.svg | 29 +++ .../assets/svg/project-overview-dark-img.svg | 81 +++++++ .../src/assets/svg/scenario-case-dark-img.svg | 135 ++++++++++++ .../assets/svg/staff-overview-dark-img.svg | 121 +++++++++++ .../src/assets/svg/test-plan-bug-dark-img.svg | 115 ++++++++++ .../src/assets/svg/test-plan-dark-img.svg | 115 ++++++++++ .../assets/svg/test-plan-overview-dark.svg | 163 ++++++++++++++ .../src/assets/svg/testPlanTemplateDark.svg | 39 ++++ frontend/src/assets/svg/uiTemplateDark.svg | 39 ++++ .../assets/svg/wait-handle-bug-dark-img.svg | 146 +++++++++++++ .../src/assets/svg/wait-review-dark-img.svg | 193 +++++++++++++++++ frontend/src/assets/svg/work-no-card-dark.svg | 46 ++++ frontend/src/enums/templateEnum.ts | 9 +- frontend/src/layout/no-permission-layout.vue | 9 +- .../src/models/setting/serviceIntegration.ts | 3 +- frontend/src/models/workbench/homePage.ts | 2 + .../management/api/shareApiDocIndex.vue | 9 +- .../api-test/report/component/scenarioCom.vue | 5 +- .../not-resource-screen.vue | 9 +- .../organization/serviceIntegration/index.vue | 27 ++- .../template/components/fieldSetting.ts | 24 +- .../template/components/templateItem.vue | 2 +- .../components/templateManagement.vue | 23 +- .../views/workbench/components/notData.vue | 28 ++- .../homePage/components/cardSettingList.vue | 63 ++++-- 42 files changed, 2764 insertions(+), 80 deletions(-) create mode 100644 frontend/src/assets/svg/api-change-dark-img.svg create mode 100644 frontend/src/assets/svg/api-count-dark-img.svg create mode 100644 frontend/src/assets/svg/api-use-case-dark-img.svg rename frontend/src/assets/svg/{api_ui_Template.svg => apiTemplate.svg} (100%) create mode 100644 frontend/src/assets/svg/apiTemplateDark.svg create mode 100644 frontend/src/assets/svg/bug-count-dark-img.svg create mode 100644 frontend/src/assets/svg/bug-handler-dark-img.svg create mode 100644 frontend/src/assets/svg/case-count-dark-img.svg create mode 100644 frontend/src/assets/svg/case-review-dark-img.svg create mode 100644 frontend/src/assets/svg/caseTemplateDark.svg create mode 100644 frontend/src/assets/svg/configplugin-dark.svg create mode 100644 frontend/src/assets/svg/defectTemplateDark.svg create mode 100644 frontend/src/assets/svg/downloadplugin-dark.svg create mode 100644 frontend/src/assets/svg/link-case-dark-img.svg create mode 100644 frontend/src/assets/svg/my-created-bug-dark-img.svg create mode 100644 frontend/src/assets/svg/my-created-project-dark-img.svg create mode 100644 frontend/src/assets/svg/no_resource-dark.svg create mode 100644 frontend/src/assets/svg/project-overview-dark-img.svg create mode 100644 frontend/src/assets/svg/scenario-case-dark-img.svg create mode 100644 frontend/src/assets/svg/staff-overview-dark-img.svg create mode 100644 frontend/src/assets/svg/test-plan-bug-dark-img.svg create mode 100644 frontend/src/assets/svg/test-plan-dark-img.svg create mode 100644 frontend/src/assets/svg/test-plan-overview-dark.svg create mode 100644 frontend/src/assets/svg/testPlanTemplateDark.svg create mode 100644 frontend/src/assets/svg/uiTemplateDark.svg create mode 100644 frontend/src/assets/svg/wait-handle-bug-dark-img.svg create mode 100644 frontend/src/assets/svg/wait-review-dark-img.svg create mode 100644 frontend/src/assets/svg/work-no-card-dark.svg diff --git a/frontend/src/assets/style/global.less b/frontend/src/assets/style/global.less index c19da3720f..ebdc5ad160 100644 --- a/frontend/src/assets/style/global.less +++ b/frontend/src/assets/style/global.less @@ -224,3 +224,21 @@ body { background: var(--color-fill-1) !important; } } + +/** 无权限明亮样式 **/ +.no-permission-svg-bright { + margin: 0 auto; + width: 160px; + height: 90px; + background: url('@/assets/svg/no_resource.svg'); + background-size: cover; +} + +/** 无权限暗黑样式 **/ +.no-permission-svg-dark { + margin: 0 auto; + width: 160px; + height: 90px; + background: url('@/assets/svg/no_resource-dark.svg'); + background-size: cover; +} diff --git a/frontend/src/assets/svg/api-change-dark-img.svg b/frontend/src/assets/svg/api-change-dark-img.svg new file mode 100644 index 0000000000..38377e336b --- /dev/null +++ b/frontend/src/assets/svg/api-change-dark-img.svg @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/api-count-dark-img.svg b/frontend/src/assets/svg/api-count-dark-img.svg new file mode 100644 index 0000000000..dcecc85522 --- /dev/null +++ b/frontend/src/assets/svg/api-count-dark-img.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/api-use-case-dark-img.svg b/frontend/src/assets/svg/api-use-case-dark-img.svg new file mode 100644 index 0000000000..23b8726863 --- /dev/null +++ b/frontend/src/assets/svg/api-use-case-dark-img.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/api_ui_Template.svg b/frontend/src/assets/svg/apiTemplate.svg similarity index 100% rename from frontend/src/assets/svg/api_ui_Template.svg rename to frontend/src/assets/svg/apiTemplate.svg diff --git a/frontend/src/assets/svg/apiTemplateDark.svg b/frontend/src/assets/svg/apiTemplateDark.svg new file mode 100644 index 0000000000..9f0a121b0c --- /dev/null +++ b/frontend/src/assets/svg/apiTemplateDark.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/bug-count-dark-img.svg b/frontend/src/assets/svg/bug-count-dark-img.svg new file mode 100644 index 0000000000..6b993164d1 --- /dev/null +++ b/frontend/src/assets/svg/bug-count-dark-img.svg @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/bug-handler-dark-img.svg b/frontend/src/assets/svg/bug-handler-dark-img.svg new file mode 100644 index 0000000000..d6f4982bfe --- /dev/null +++ b/frontend/src/assets/svg/bug-handler-dark-img.svg @@ -0,0 +1,205 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/case-count-dark-img.svg b/frontend/src/assets/svg/case-count-dark-img.svg new file mode 100644 index 0000000000..5345717e3a --- /dev/null +++ b/frontend/src/assets/svg/case-count-dark-img.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/case-review-dark-img.svg b/frontend/src/assets/svg/case-review-dark-img.svg new file mode 100644 index 0000000000..0694e4093f --- /dev/null +++ b/frontend/src/assets/svg/case-review-dark-img.svg @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/caseTemplateDark.svg b/frontend/src/assets/svg/caseTemplateDark.svg new file mode 100644 index 0000000000..fd11c371bc --- /dev/null +++ b/frontend/src/assets/svg/caseTemplateDark.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/configplugin-dark.svg b/frontend/src/assets/svg/configplugin-dark.svg new file mode 100644 index 0000000000..6cefbd5038 --- /dev/null +++ b/frontend/src/assets/svg/configplugin-dark.svg @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/defectTemplateDark.svg b/frontend/src/assets/svg/defectTemplateDark.svg new file mode 100644 index 0000000000..fca5591b76 --- /dev/null +++ b/frontend/src/assets/svg/defectTemplateDark.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/downloadplugin-dark.svg b/frontend/src/assets/svg/downloadplugin-dark.svg new file mode 100644 index 0000000000..da97497fb4 --- /dev/null +++ b/frontend/src/assets/svg/downloadplugin-dark.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/link-case-dark-img.svg b/frontend/src/assets/svg/link-case-dark-img.svg new file mode 100644 index 0000000000..d3dcb17bfd --- /dev/null +++ b/frontend/src/assets/svg/link-case-dark-img.svg @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/my-created-bug-dark-img.svg b/frontend/src/assets/svg/my-created-bug-dark-img.svg new file mode 100644 index 0000000000..aadf17c83c --- /dev/null +++ b/frontend/src/assets/svg/my-created-bug-dark-img.svg @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/my-created-project-dark-img.svg b/frontend/src/assets/svg/my-created-project-dark-img.svg new file mode 100644 index 0000000000..5e346ec764 --- /dev/null +++ b/frontend/src/assets/svg/my-created-project-dark-img.svg @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/no_resource-dark.svg b/frontend/src/assets/svg/no_resource-dark.svg new file mode 100644 index 0000000000..3fd7ca349a --- /dev/null +++ b/frontend/src/assets/svg/no_resource-dark.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/project-overview-dark-img.svg b/frontend/src/assets/svg/project-overview-dark-img.svg new file mode 100644 index 0000000000..26d46a4805 --- /dev/null +++ b/frontend/src/assets/svg/project-overview-dark-img.svg @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/scenario-case-dark-img.svg b/frontend/src/assets/svg/scenario-case-dark-img.svg new file mode 100644 index 0000000000..aac0ac1c2a --- /dev/null +++ b/frontend/src/assets/svg/scenario-case-dark-img.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/staff-overview-dark-img.svg b/frontend/src/assets/svg/staff-overview-dark-img.svg new file mode 100644 index 0000000000..6365c024ba --- /dev/null +++ b/frontend/src/assets/svg/staff-overview-dark-img.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/test-plan-bug-dark-img.svg b/frontend/src/assets/svg/test-plan-bug-dark-img.svg new file mode 100644 index 0000000000..8e0d2fe413 --- /dev/null +++ b/frontend/src/assets/svg/test-plan-bug-dark-img.svg @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/test-plan-dark-img.svg b/frontend/src/assets/svg/test-plan-dark-img.svg new file mode 100644 index 0000000000..f15068c3af --- /dev/null +++ b/frontend/src/assets/svg/test-plan-dark-img.svg @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/test-plan-overview-dark.svg b/frontend/src/assets/svg/test-plan-overview-dark.svg new file mode 100644 index 0000000000..a4232daf7e --- /dev/null +++ b/frontend/src/assets/svg/test-plan-overview-dark.svg @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/testPlanTemplateDark.svg b/frontend/src/assets/svg/testPlanTemplateDark.svg new file mode 100644 index 0000000000..b9d63d4ee4 --- /dev/null +++ b/frontend/src/assets/svg/testPlanTemplateDark.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/uiTemplateDark.svg b/frontend/src/assets/svg/uiTemplateDark.svg new file mode 100644 index 0000000000..368a936b45 --- /dev/null +++ b/frontend/src/assets/svg/uiTemplateDark.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/wait-handle-bug-dark-img.svg b/frontend/src/assets/svg/wait-handle-bug-dark-img.svg new file mode 100644 index 0000000000..59fd8310c6 --- /dev/null +++ b/frontend/src/assets/svg/wait-handle-bug-dark-img.svg @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/wait-review-dark-img.svg b/frontend/src/assets/svg/wait-review-dark-img.svg new file mode 100644 index 0000000000..2845b65b22 --- /dev/null +++ b/frontend/src/assets/svg/wait-review-dark-img.svg @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/svg/work-no-card-dark.svg b/frontend/src/assets/svg/work-no-card-dark.svg new file mode 100644 index 0000000000..8d63d95fc0 --- /dev/null +++ b/frontend/src/assets/svg/work-no-card-dark.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/enums/templateEnum.ts b/frontend/src/enums/templateEnum.ts index 833a49c42a..15a8e9983e 100644 --- a/frontend/src/enums/templateEnum.ts +++ b/frontend/src/enums/templateEnum.ts @@ -20,10 +20,17 @@ export enum TemplateIconEnum { // 模板列表图标卡片icon export enum TemplateCardEnum { FUNCTIONAL = 'caseTemplate', // 用例模板 - API = 'api_ui_Template', // API模板 + API = 'apiTemplate', // API模板 UI = 'uiTemplate', // UI模板 TEST_PLAN = 'testPlanTemplate', // 测试计划模板 BUG = 'defectTemplate', // 缺陷模板 } +export enum TemplateDarkCardEnum { + FUNCTIONAL = 'caseTemplateDark', // 用例模板 + API = 'apiTemplateDark', // API模板 + UI = 'uiTemplateDark', // UI模板 + TEST_PLAN = 'testPlanTemplateDark', // 测试计划模板 + BUG = 'defectTemplateDark', // 缺陷模板 +} export default {}; diff --git a/frontend/src/layout/no-permission-layout.vue b/frontend/src/layout/no-permission-layout.vue index 2eff1c89b2..e62c4d0548 100644 --- a/frontend/src/layout/no-permission-layout.vue +++ b/frontend/src/layout/no-permission-layout.vue @@ -9,7 +9,7 @@
-
+
{{ props.isProject ? t('common.noProject') : t('common.noResource') }}
@@ -49,13 +49,6 @@ height: 100%; background-color: var(--color-text-fff); .content { - .no-resource-svg { - margin: 0 auto 24px; - width: 160px; - height: 98px; - background: url('@/assets/svg/no_resource.svg'); - background-size: cover; - } .title { display: flex; justify-content: center; diff --git a/frontend/src/models/setting/serviceIntegration.ts b/frontend/src/models/setting/serviceIntegration.ts index 7a3b586311..acead9fcad 100644 --- a/frontend/src/models/setting/serviceIntegration.ts +++ b/frontend/src/models/setting/serviceIntegration.ts @@ -31,7 +31,8 @@ export interface SkipTitle { export interface StepListType { id: string; - icon: string; + brightIcon: string; + darkIcon: string; title: string; skipTitle: SkipTitle[]; step: string; diff --git a/frontend/src/models/workbench/homePage.ts b/frontend/src/models/workbench/homePage.ts index b85c423e7b..ce7a2d5eb0 100644 --- a/frontend/src/models/workbench/homePage.ts +++ b/frontend/src/models/workbench/homePage.ts @@ -12,6 +12,8 @@ export interface WorkConfigItem { export interface childrenWorkConfigItem extends WorkConfigItem { value: WorkCardEnum; + brightImg: string; + darkImg: string; } export interface WorkConfigCard extends WorkConfigItem { diff --git a/frontend/src/views/api-test/management/components/management/api/shareApiDocIndex.vue b/frontend/src/views/api-test/management/components/management/api/shareApiDocIndex.vue index 57f8d156aa..4998b9c385 100644 --- a/frontend/src/views/api-test/management/components/management/api/shareApiDocIndex.vue +++ b/frontend/src/views/api-test/management/components/management/api/shareApiDocIndex.vue @@ -44,7 +44,7 @@ unmount-on-close @close="closeShareHandler" > -
+
diff --git a/frontend/src/views/workbench/homePage/components/cardSettingList.vue b/frontend/src/views/workbench/homePage/components/cardSettingList.vue index 24c06a4714..d9e2d18663 100644 --- a/frontend/src/views/workbench/homePage/components/cardSettingList.vue +++ b/frontend/src/views/workbench/homePage/components/cardSettingList.vue @@ -20,7 +20,7 @@
- +
{{ t(ele.label) }}
@@ -46,11 +46,13 @@ import { ref } from 'vue'; import { useI18n } from '@/hooks/useI18n'; + import { useAppStore } from '@/store'; import { childrenWorkConfigItem, WorkConfigCard } from '@/models/workbench/homePage'; import { WorkCardEnum } from '@/enums/workbenchEnum'; const { t } = useI18n(); + const appStore = useAppStore(); const defaultOpenKeys = ref(['overview', 'caseManagement', 'apiTest', 'testPlan', 'bugManagement']); const emit = defineEmits<{ @@ -73,25 +75,29 @@ label: 'workbench.homePage.projectOverview', value: WorkCardEnum.PROJECT_VIEW, description: 'workbench.homePage.projectOverviewDesc', - img: 'project-overview-img', + brightImg: 'project-overview-img', + darkImg: 'project-overview-dark-img', }, { label: 'workbench.homePage.testPlanOverview', value: WorkCardEnum.PROJECT_PLAN_VIEW, description: 'workbench.homePage.testPlanOverviewDesc', - img: 'test-plan-overview', + brightImg: 'test-plan-overview', + darkImg: 'test-plan-overview-dark', }, { label: 'workbench.homePage.staffOverview', value: WorkCardEnum.PROJECT_MEMBER_VIEW, description: 'workbench.homePage.staffOverviewDesc', - img: 'staff-overview-img', + brightImg: 'staff-overview-img', + darkImg: 'staff-overview-dark-img', }, { label: 'workbench.homePage.createdByMe', value: WorkCardEnum.CREATE_BY_ME, description: 'workbench.homePage.createdByMeDesc', - img: 'my-created-project-img', + brightImg: 'my-created-project-img', + darkImg: 'my-created-project-dark-img', }, ], }, @@ -106,25 +112,29 @@ label: 'workbench.homePage.useCasesNumber', value: WorkCardEnum.CASE_COUNT, description: 'workbench.homePage.useCasesNumberDesc', - img: 'link-case-img', + brightImg: 'link-case-img', + darkImg: 'link-case-dark-img', }, { label: 'workbench.homePage.useCasesCount', value: WorkCardEnum.ASSOCIATE_CASE_COUNT, description: 'workbench.homePage.useCasesCountDesc', - img: 'case-count-img', + brightImg: 'case-count-img', + darkImg: 'case-count-dark-img', }, { label: 'workbench.homePage.numberOfCaseReviews', value: WorkCardEnum.REVIEW_CASE_COUNT, description: 'workbench.homePage.numberOfCaseReviewsDesc', - img: 'case-review-img', + brightImg: 'case-review-img', + darkImg: 'case-review-dark-img', }, { label: 'workbench.homePage.waitForReview', value: WorkCardEnum.REVIEWING_BY_ME, description: 'workbench.homePage.waitForReviewDesc', - img: 'wait-review-img', + brightImg: 'wait-review-img', + darkImg: 'wait-review-dark-img', }, ], }, @@ -139,25 +149,29 @@ label: 'workbench.homePage.apiCount', value: WorkCardEnum.API_COUNT, description: 'workbench.homePage.apiCountDesc', - img: 'api-count-img', + brightImg: 'api-count-img', + darkImg: 'api-count-dark-img', }, { label: 'workbench.homePage.apiUseCasesNumber', value: WorkCardEnum.API_CASE_COUNT, description: 'workbench.homePage.apiUseCasesNumberDesc', - img: 'api-use-case-img', + brightImg: 'api-use-case-img', + darkImg: 'api-use-case-dark-img', }, { label: 'workbench.homePage.scenarioUseCasesNumber', value: WorkCardEnum.SCENARIO_COUNT, description: 'workbench.homePage.scenarioUseCasesNumberDesc', - img: 'scenario-case-img', + brightImg: 'scenario-case-img', + darkImg: 'scenario-case-dark-img', }, { label: 'workbench.homePage.interfaceChange', value: WorkCardEnum.API_CHANGE, description: 'workbench.homePage.interfaceChangeDesc', - img: 'api-change-img', + brightImg: 'api-change-img', + darkImg: 'api-change-dark-img', }, ], }, @@ -172,13 +186,15 @@ label: 'workbench.homePage.numberOfTestPlan', value: WorkCardEnum.TEST_PLAN_COUNT, description: 'workbench.homePage.numberOfTestPlanDesc', - img: 'test-plan-img', + brightImg: 'test-plan-img', + darkImg: 'test-plan-dark-img', }, { label: 'workbench.homePage.remainingBugOfPlan', value: WorkCardEnum.PLAN_LEGACY_BUG, description: 'workbench.homePage.remainingBugOfPlanDesc', - img: 'test-plan-bug-img', + brightImg: 'test-plan-bug-img', + darkImg: 'test-plan-bug-dark-img', }, ], }, @@ -193,25 +209,29 @@ label: 'workbench.homePage.bugCount', value: WorkCardEnum.BUG_COUNT, description: 'workbench.homePage.bugCountDesc', - img: 'bug-count-img', + brightImg: 'bug-count-img', + darkImg: 'bug-count-dark-img', }, { label: 'workbench.homePage.createdBugByMe', value: WorkCardEnum.CREATE_BUG_BY_ME, description: 'workbench.homePage.createdBugByMeDesc', - img: 'my-created-bug-img', + brightImg: 'my-created-bug-img', + darkImg: 'my-created-bug-dark-img', }, { label: 'workbench.homePage.pendingDefect', value: WorkCardEnum.HANDLE_BUG_BY_ME, description: 'workbench.homePage.pendingDefectDesc', - img: 'wait-handle-bug-img', + brightImg: 'wait-handle-bug-img', + darkImg: 'wait-handle-bug-dark-img', }, { label: 'workbench.homePage.defectProcessingNumber', value: WorkCardEnum.BUG_HANDLE_USER, description: 'workbench.homePage.defectProcessingNumberDesc', - img: 'bug-handler-img', + brightImg: 'bug-handler-img', + darkImg: 'bug-handler-dark-img', }, ], }, @@ -230,6 +250,11 @@ })); }); + function getImgType(ele: childrenWorkConfigItem) { + const key = appStore.isDarkTheme ? 'darkImg' : 'brightImg'; + return ele[key]; + } + // 重置 function resetSearch() { searchKeyword.value = '';