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 @@