258bccfad3
- 脚手架:Vite6 + React18 + TypeScript(strict) + Tailwind4 - shadcn/ui 基座(依 design/installation.md):components.json + src/components/ui/* + cn(),radix-ui 单片 - 认证:登录(密码+多身份选择 select-identity),lib/auth.tsx(上下文+localStorage) - RBAC:lib/rbac.tsx 八端口导航过滤 + App.tsx RequireAuth/RoleRoute - 布局:AppShell(侧边栏+顶栏+身份切换+用户菜单) - API:client.ts(fetch+token+401登出) + resources.ts(用户/课程/活动/报名/测评/算力/园区) - 页面:登录/总览 + 用户/课程/活动/报名/测评/算力/园区 7 个管理页(未实现端点优雅降级) - npm run build 通过;.env.example / README.md / .gitignore
34 lines
808 B
JSON
34 lines
808 B
JSON
{
|
|
"name": "cloud-opc-admin",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"typecheck": "tsc -b --noEmit",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"lucide-react": "^0.468.0",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^7.0.1",
|
|
"tailwind-merge": "^3.5.0",
|
|
"tw-animate-css": "^1.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/vite": "^4.2.2",
|
|
"@types/node": "^22.10.0",
|
|
"@types/react": "^18.3.12",
|
|
"@types/react-dom": "^18.3.1",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"tailwindcss": "^4.2.2",
|
|
"typescript": "~5.6.2",
|
|
"vite": "^6.0.1"
|
|
}
|
|
}
|