diff --git a/.husky/pre-commit b/.husky/pre-commit index 6e229ea32..84e907ed6 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,10 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" -. "$(dirname "$0")/common.sh" - -[ -n "$CI" ] && exit 0 - -PATH="/usr/local/bin:$PATH" - -# Perform lint check on files in the staging area through .lintstagedrc configuration -pnpm exec lint-staged \ No newline at end of file +pnpm \ No newline at end of file diff --git a/build/info.ts b/build/info.ts index 6d7c8be25..a78244967 100644 --- a/build/info.ts +++ b/build/info.ts @@ -7,7 +7,7 @@ import boxen, { type Options as BoxenOptions } from "boxen"; dayjs.extend(duration); const welcomeMessage = gradientString("cyan", "magenta").multiline( - `您好! 欢迎使用 pure-admin 开源项目\n我们为您精心准备了下面两个贴心的保姆级文档\nhttps://pure-admin.github.io/pure-admin-doc\nhttps://pure-admin-utils.netlify.app` + `UI自动化测试平台启动成功` ); const boxenOptions: BoxenOptions = { diff --git a/public/favicon.ico b/public/favicon.ico index bef93d4b0..70c22980f 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/logo.svg b/public/logo.svg index a63d2b1ab..d41ba6a3b 100644 --- a/public/logo.svg +++ b/public/logo.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/platform-config.json b/public/platform-config.json index dbd8bb48b..672651f33 100644 --- a/public/platform-config.json +++ b/public/platform-config.json @@ -1,6 +1,6 @@ { - "Version": "5.7.0", - "Title": "PureAdmin", + "Version": "1.0.0", + "Title": "UI自动化测试平台", "FixedHeader": true, "HiddenSideBar": false, "MultiTagsCache": false, diff --git a/src/router/modules/case_execution.ts b/src/router/modules/case_execution.ts new file mode 100644 index 000000000..21c561ce2 --- /dev/null +++ b/src/router/modules/case_execution.ts @@ -0,0 +1,10 @@ +export default { + path: "/exec", + name: "TestCaseExecution", + component: () => import("@/views/case_exec/case_exec.vue"), + meta: { + icon: "ep:video-play", + title: "测试执行", + rank: 1 + } +}; diff --git a/src/router/modules/case_management.ts b/src/router/modules/case_management.ts new file mode 100644 index 000000000..b0a0a5eac --- /dev/null +++ b/src/router/modules/case_management.ts @@ -0,0 +1,10 @@ +export default { + path: "/caselist", + name: "CaseManagement", + component: () => import("@/views/case_management/caselist.vue"), + meta: { + icon: "ep:document", + title: "用例管理", + rank: 2 + } +}; diff --git a/src/router/modules/project_management.ts b/src/router/modules/project_management.ts new file mode 100644 index 000000000..5b95ee77f --- /dev/null +++ b/src/router/modules/project_management.ts @@ -0,0 +1,10 @@ +export default { + path: "/project", + name: "ProjectManagement", + component: () => import("@/views/project_management/projectlist.vue"), + meta: { + icon: "ep:files", + title: "项目管理", + rank: 3 + } +}; diff --git a/src/router/modules/test_result.ts b/src/router/modules/test_result.ts new file mode 100644 index 000000000..fef92786f --- /dev/null +++ b/src/router/modules/test_result.ts @@ -0,0 +1,10 @@ +export default { + path: "/result", + name: "TestingResult", + component: () => import("@/views/test_result_management/testResultList.vue"), + meta: { + icon: "ep:data-line", + title: "测试结果", + rank: 4 + } +}; diff --git a/src/router/modules/testing_data.ts b/src/router/modules/testing_data.ts new file mode 100644 index 000000000..459496210 --- /dev/null +++ b/src/router/modules/testing_data.ts @@ -0,0 +1,10 @@ +export default { + path: "/testdata", + name: "TestData", + component: () => import("@/views/test_data_management/testData.vue"), + meta: { + icon: "ep:box", + title: "数据管理", + rank: 5 + } +}; diff --git a/src/router/modules/total.ts b/src/router/modules/total.ts new file mode 100644 index 000000000..e2e524c90 --- /dev/null +++ b/src/router/modules/total.ts @@ -0,0 +1,23 @@ +const Layout = () => import("@/layout/index.vue"); + +export default { + path: "/", + name: "Total", + component: Layout, + redirect: "/home/index", + meta: { + icon: "ep:location", + title: "测试总览", + rank: 1 + }, + children: [ + { + path: "/home/index", + name: "TotalIndex", + component: () => import("@/views/home/index.vue"), + meta: { + title: "测试总览" + } + } + ] +} satisfies RouteConfigsTable; diff --git a/src/router/modules/user.ts b/src/router/modules/user.ts new file mode 100644 index 000000000..f564cd3fa --- /dev/null +++ b/src/router/modules/user.ts @@ -0,0 +1,10 @@ +export default { + path: "/user", + name: "UserManagement", + component: () => import("@/views/user_management/user.vue"), + meta: { + icon: "ep:user", + title: "用户管理", + rank: 6 + } +}; diff --git a/src/views/case_exec/case_exec.vue b/src/views/case_exec/case_exec.vue new file mode 100644 index 000000000..821c12a68 --- /dev/null +++ b/src/views/case_exec/case_exec.vue @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/views/case_management/caselist.vue b/src/views/case_management/caselist.vue new file mode 100644 index 000000000..1af8a38bb --- /dev/null +++ b/src/views/case_management/caselist.vue @@ -0,0 +1,7 @@ + + caselist + + + + + diff --git a/src/views/home/Cards.vue b/src/views/home/Cards.vue new file mode 100644 index 000000000..9f8d02881 --- /dev/null +++ b/src/views/home/Cards.vue @@ -0,0 +1,117 @@ + + + + + + + + + 项目数 + + + + + + + + + + + + + + + + + 测试用例数 + + + + + + + + + + + + + + + + 测试通过率 + + + + + + + + % + + + + + + + + + 测试报告数 + + + + + + + + + + + + + + + + diff --git a/src/views/home/Introduce.vue b/src/views/home/Introduce.vue new file mode 100644 index 000000000..afe3373fc --- /dev/null +++ b/src/views/home/Introduce.vue @@ -0,0 +1,26 @@ + + + + + UI自动化测试平台介绍 + + + + 简介 + sdssddssdsdsdsd + + + + + + diff --git a/src/views/home/index.vue b/src/views/home/index.vue new file mode 100644 index 000000000..0e6d1e497 --- /dev/null +++ b/src/views/home/index.vue @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + 工程用例执行成功率TOP5 + + + + {{ "project " + o }} + + 80% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 用户: {{ scope.row.user }} + 部门: {{ scope.row.user }} + 邮箱: {{ scope.row.project }} + 手机: {{ scope.row.project }} + + + {{ scope.row.user }} + + + + + + + + + + + {{ + scope.row.result + }} + + + + + + {{ + scope.row.result + }} + + + + + 查看 + + + + + + + + diff --git a/src/views/project_management/projectlist.vue b/src/views/project_management/projectlist.vue new file mode 100644 index 000000000..d4fade844 --- /dev/null +++ b/src/views/project_management/projectlist.vue @@ -0,0 +1,7 @@ + + proj list + + + + + diff --git a/src/views/test_data_management/testData.vue b/src/views/test_data_management/testData.vue new file mode 100644 index 000000000..eb4198150 --- /dev/null +++ b/src/views/test_data_management/testData.vue @@ -0,0 +1,7 @@ + + testdata + + + + + diff --git a/src/views/test_result_management/testResultList.vue b/src/views/test_result_management/testResultList.vue new file mode 100644 index 000000000..821c12a68 --- /dev/null +++ b/src/views/test_result_management/testResultList.vue @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/views/user_management/user.vue b/src/views/user_management/user.vue new file mode 100644 index 000000000..821c12a68 --- /dev/null +++ b/src/views/user_management/user.vue @@ -0,0 +1,7 @@ + + + + + + +
简介
sdssddssdsdsdsd
{{ "project " + o }}
80%