538de50bb1
- Prisma User 模型新增 username 字段(唯一索引) - 注册先查重复再创建,返回友好中文提示(非 500) - 登录支持用户名/手机号/邮箱三种方式 - 前端注册表单增加用户名输入框,预校验 2-20 位格式 - 新增 scripts/deploy.sh:一键构建并部署主站+镜像站+重启后端+重载 Nginx - 镜像站 www.yuzhiran.com.cn Nginx 配置与主站同步 - AI 助手架构升级:用户端/管理后台均采用完整 Tool Calling 架构 - 新增 UserAiAssistantService(18 工具)+ AiAssistantController - admin 助手新增 search + mark-all-notifications-read 工具 - 修复注册 500 错误:catch Prisma P2002 → BadRequestException - Baidu Analytics Script 注入 root layout
77 lines
2.2 KiB
JSON
Executable File
77 lines
2.2 KiB
JSON
Executable File
{
|
|
"name": "@yuzhiran/frontend",
|
|
"version": "1.0.0",
|
|
"description": "宇之然 AI - 官网前端",
|
|
"private": true,
|
|
"scripts": {
|
|
"predev": "rm -rf out",
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"typecheck": "tsc --noEmit",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "npx playwright test",
|
|
"test:e2e:ui": "npx playwright test --ui",
|
|
"test:e2e:headed": "npx playwright test --headed",
|
|
"test:e2e:report": "npx playwright show-report"
|
|
},
|
|
"keywords": [
|
|
"yuzhiran",
|
|
"ai",
|
|
"learning",
|
|
"platform"
|
|
],
|
|
"author": "北京宇之然科技中心",
|
|
"license": "UNLICENSED",
|
|
"dependencies": {
|
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-popover": "^1.1.15",
|
|
"@radix-ui/react-progress": "^1.1.8",
|
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-separator": "^1.1.8",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@radix-ui/react-switch": "^1.2.6",
|
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
"@radix-ui/react-toast": "^1.2.15",
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"@types/node": "^25.6.2",
|
|
"autoprefixer": "^10.5.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"framer-motion": "^12.38.0",
|
|
"highlight.js": "^11.11.1",
|
|
"lucide-react": "^1.14.0",
|
|
"next": "^14.2.35",
|
|
"next-themes": "^0.4.6",
|
|
"postcss": "^8.5.14",
|
|
"qrcode": "^1.5.4",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"recharts": "^3.8.1",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.6.0",
|
|
"tailwindcss": "^3.4.19",
|
|
"typescript": "5.3"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.60.0",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/qrcode": "^1.5.6",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
"@typescript-eslint/parser": "^8.60.0",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"eslint": "^8.57.1",
|
|
"eslint-config-next": "^16.2.6",
|
|
"jsdom": "^29.1.1",
|
|
"vitest": "^4.1.5"
|
|
}
|
|
}
|