Files
Edu/apps/admin-portal/package.json
SpecialX 64b2016fa8 feat(admin-portal): docker 本地测试通过 + 下游工作清单
docker Desktop 本地验证:
- 镜像构建成功(edu/admin-portal:test)
- 容器运行正常(端口 4003)
- /api/health、/api/ready、/login、/admin/dashboard 全部 200

修复项:
- next.config.js 添加 output: standalone
- package.json 添加 autoprefixer 依赖
- login/layout.tsx 提供 AuthProvider/ToastProvider

部署配置:
- docker-compose.deploy.yml 添加 admin-portal 服务
- deploy.env.example 添加 ADMIN_PORTAL_PORT

下游工作清单(nextstep.md):
- api-gateway: 缺 /api/admin/graphql 路由
- teacher-bff: 缺 16 Query + 11 Mutation
- iam: 缺 BatchGetUsers 等 RPC
2026-07-13 16:19:35 +08:00

61 lines
1.6 KiB
JSON

{
"name": "@edu/admin-portal",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 4003",
"build": "next build",
"start": "next start -p 4003",
"lint": "eslint src --config eslint.config.js",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"msw:init": "msw init public/ --save"
},
"dependencies": {
"@edu/hooks": "workspace:*",
"@edu/ui-components": "workspace:*",
"@edu/ui-tokens": "workspace:*",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.0",
"@hookform/resolvers": "^3.9.0",
"@urql/core": "^5.0.0",
"graphql": "^16.9.0",
"next": "^14.2.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"react-hook-form": "^7.53.0",
"recharts": "^2.12.0",
"urql": "^4.2.0",
"web-vitals": "^4.2.0",
"zod": "^3.23.0"
},
"devDependencies": {
"@module-federation/nextjs-mf": "^8.8.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.52.0",
"@opentelemetry/sdk-trace-web": "^1.25.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.0",
"@types/node": "^22.0.0",
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"jsdom": "^25.0.0",
"mock-socket": "^9.3.0",
"msw": "^2.4.0",
"postcss": "^8.4.0",
"tailwindcss": "^3.4.0",
"typescript": "^5.6.0",
"vitest": "^2.1.0"
},
"msw": {
"workerDirectory": [
"public"
]
}
}