|
|
91698a2f3b
|
refactor: TypeScript 类型体系重构 + 状态管理 + 环境配置
Deploy Admin Frontend / build-and-deploy (push) Successful in 13s
## 类型安全
- tsconfig: 开启 strict: true(豁免 noImplicitAny + strictNullChecks,待后续收紧)
- 新建 15 个领域类型文件 (src/types/),共 ~80 个类型定义
- 统一 barrel export (src/types/index.ts)
- 消除 9 个 [key: string]: any 接口
- 消除 22 个 API data: any 参数 → 替换为具体 DTO
- 消除 36 个 Promise<any> → 使用具体泛型
- 消除重复 PaginatedResponse,统一使用 PaginatedResult
- API 内联类型全部迁至 types/
## 状态管理
- 引入 Zustand (zustand + persist)
- 新建 src/stores/ui-store.ts — 侧边栏折叠状态持久化
- AdminLayout 接入 useUIStore
## 环境配置
- 新建 .env.example — 环境变量模板
- 新建 .env.production — 生产架构文档
- 新建 src/vite-env.d.ts — IDE 类型声明
## 通用 UI 类型
- 新建 src/types/ui.ts — TypedColumn<T>, SortState, FilterState 等
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-07-04 11:02:52 +08:00 |
|
|
|
8663ceba66
|
feat: HTTP 层重构 + API 抽离 + 状态管理优化 + 路由修复
Deploy Admin Frontend / build-and-deploy (push) Failing after 10s
- HTTP 层:安装 axios,创建 lib/api-client.ts 统一拦截器
- API 层:创建 33 个 api/*.ts 文件,所有页面迁移完成
- DataPages.tsx 拆分为 10 个独立文件
- message 导入统一为 App.useApp()
- 新增 StaticAntdProvider 全局消息/通知
- 全局 HTTP 错误/成功提示(notification.error/success)
- learning 路由 /learning → /learning/dashboard 修复选中 bug
- 学习会话页面优化(移除 ID 列、加批量删除、后端排序)
- 文档导入页面重构(知识库筛选、批量重新解析)
- 删除旧 service 文件 10 个(admin-api、billing-api 等)
- antd App 包裹根组件
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-07-01 22:44:51 +08:00 |
|
|
|
6812d8038d
|
feat: M1-05 metrics page — AI + Worker performance tabs
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-24 10:56:45 +08:00 |
|
|
|
b90ac755c4
|
fix: remove App import
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
|
2026-05-22 23:21:47 +08:00 |
|
|
|
bf907196d0
|
fix: imports + types
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s
|
2026-05-22 23:21:30 +08:00 |
|
|
|
2413cdf561
|
feat: M0-06+M0-07 admin web — Content Safety + Metrics pages
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s
|
2026-05-22 23:21:15 +08:00 |
|