feat(admin-portal): 完整实现 admin-portal 管理端微前端

包含 src 全部实现、Dockerfile、配置文件等
This commit is contained in:
SpecialX
2026-07-10 19:09:12 +08:00
parent 02d09c47fa
commit b3511910d1
69 changed files with 11955 additions and 693 deletions

View File

@@ -0,0 +1,21 @@
# admin-portal 环境变量
# GraphQL endpoint经 api-gateway 代理到 teacher-bff admin 命名空间)
API_GATEWAY_URL=http://localhost:8080
# MSW mock 开关(上游就绪后设为 disabled
NEXT_PUBLIC_API_MOCKING=enabled
# MF 开关Shell 就绪后设为 true
NEXT_PUBLIC_MF_ENABLED=false
# Shell URLstandalone 壳用于 /api/ready 检查)
NEXT_PUBLIC_SHELL_URL=http://localhost:4000
# push-gateway WebSocket实时通知
NEXT_PUBLIC_WS_URL=ws://localhost:8081/ws
# OTel collector
NEXT_PUBLIC_OTEL_ENDPOINT=http://localhost:4318
# Web Vitals 上报端点
NEXT_PUBLIC_WEB_VITALS_ENDPOINT=/api/admin/web-vitals