feat: 添加管理后台页面和功能,优化测试和性能配置

refactor: 重构页面导航和滚动逻辑,提升用户体验

test: 更新测试配置和用例,增加覆盖率和稳定性

perf: 优化性能指标和阈值,适应开发环境需求

ci: 添加Lighthouse CI工作流,集成性能测试

docs: 更新API文档和健康检查端点

fix: 修复登录页面和表单提交问题

style: 调整响应式布局和可访问性改进

chore: 更新依赖项和脚本配置
This commit is contained in:
张翔
2026-03-24 10:11:30 +08:00
parent 08978d38c8
commit f5dec95a83
85 changed files with 12331 additions and 1408 deletions
+18 -3
View File
@@ -8,8 +8,10 @@
"start": "next start -p 3000",
"lint": "eslint",
"type-check": "tsc --noEmit",
"test": "playwright test",
"test": "cd e2e && npx playwright test --config=playwright.config.ts",
"test:unit": "jest",
"test:coverage": "jest --coverage",
"test:coverage:check": "jest --coverage --ci",
"test:e2e": "cd e2e && npm test",
"test:smoke": "playwright test --grep @smoke",
"test:tier:fast": "cd e2e && TEST_TIER=fast npx playwright test --config=playwright.config.tiered.ts",
@@ -17,7 +19,9 @@
"test:tier:deep": "cd e2e && TEST_TIER=deep npx playwright test --config=playwright.config.tiered.ts",
"test:tier:all": "npm run test:tier:fast && npm run test:tier:standard && npm run test:tier:deep",
"test:tier:ci": "npm run test:tier:fast && npm run test:tier:standard || npm run test:tier:deep",
"test:report": "allure generate test-results/allure-results && allure open",
"test:allure": "cd e2e && npm run test:allure",
"test:allure:open": "cd e2e && npm run test:allure:open",
"test:allure:serve": "cd e2e && npm run test:allure:serve",
"test:performance": "k6 run tests/performance/load-test.js",
"test:stress": "k6 run tests/performance/stress-test.js",
"test:security": "k6 run tests/security/sql-injection-test.js && k6 run tests/security/xss-test.js",
@@ -35,7 +39,13 @@
"db:migrate": "drizzle-kit migrate",
"db:push": "drizzle-kit push",
"db:studio": "drizzle-kit studio",
"db:seed": "tsx src/db/seed.ts"
"db:seed": "tsx src/db/seed.ts",
"lighthouse": "lhci autorun",
"lighthouse:collect": "lhci collect",
"lighthouse:assert": "lhci assert",
"lighthouse:upload": "lhci upload",
"lighthouse:desktop": "lhci autorun --settings.preset=desktop",
"lighthouse:mobile": "lhci autorun --settings.preset=mobile"
},
"dependencies": {
"@antv/g2": "^5.4.8",
@@ -67,6 +77,8 @@
"react": "19.2.3",
"react-dom": "19.2.3",
"resend": "^6.9.2",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-react": "^5.32.1",
"tailwind-merge": "^3.4.0",
"three": "^0.183.1",
"zod": "^4.3.6"
@@ -79,6 +91,7 @@
"@babel/preset-react": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"@eslint/eslintrc": "^3.3.5",
"@lhci/cli": "^0.15.1",
"@tailwindcss/postcss": "^4",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
@@ -90,6 +103,8 @@
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/swagger-jsdoc": "^6.0.4",
"@types/swagger-ui-react": "^5.18.0",
"@typescript-eslint/eslint-plugin": "^8.57.0",
"@typescript-eslint/parser": "^8.57.0",
"chrome-launcher": "^1.2.1",