1
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled

This commit is contained in:
杨志
2025-12-05 13:39:40 +08:00
parent 21107f02fd
commit 51a72f1f0c
1239 changed files with 107262 additions and 1 deletions

81
doc/精简说明.md Normal file
View File

@@ -0,0 +1,81 @@
# 框架精简说明
## 已删除的内容
### 1. 不需要的应用
-`apps/web-ele` - Element Plus 版本应用
-`apps/web-naive` - Naive UI 版本应用
-`apps/web-tdesign` - TDesign 版本应用
-`apps/backend-mock` - Mock 后端服务(已有真实 API
-`apps/playground` - 演示/测试应用
-`docs` - 文档站点
### 2. 示例代码和演示页面
-`apps/web-antd/src/views/demos/` - 演示页面目录
-`apps/web-antd/src/views/dashboard/analytics/` - 示例分析页面
-`apps/web-antd/src/views/dashboard/workspace/` - 示例工作台页面
-`apps/web-antd/src/views/_core/about/` - 关于页面
### 3. 路由模块
-`apps/web-antd/src/router/routes/modules/demos.ts` - 演示路由
-`apps/web-antd/src/router/routes/modules/vben.ts` - Vben 相关路由(文档链接等)
### 4. 配置文件更新
- ✅ 更新 `package.json`,移除不需要的构建和开发脚本
- ✅ 更新 `pnpm-workspace.yaml`,移除已删除应用的引用
- ✅ 更新 `turbo.json`,移除 backend-mock 相关配置
- ✅ 更新 `dashboard.ts` 路由,移除 workspace 子路由
## 保留的内容
### 核心功能
-`apps/web-antd` - 主应用Ant Design Vue 版本)
- ✅ 所有业务模块页面(教室、学生、预订等)
- ✅ 认证相关页面(登录、注册、忘记密码等,可根据需要删除)
- ✅ 个人中心页面
- ✅ 错误页面404、403、500 等)
### 基础设施
-`packages/` - 所有核心包
-`internal/` - 内部工具和配置
-`scripts/` - 构建和部署脚本
## 当前项目结构
```
booking_admin/
├── apps/
│ └── web-antd/ # 唯一保留的应用
├── packages/ # 核心包
├── internal/ # 内部工具
├── scripts/ # 脚本
├── doc/ # 文档
└── API.md # API 文档
```
## 启动命令
```bash
# 开发
pnpm dev:antd
# 构建
pnpm build:antd
```
## 后续建议
如果不需要以下功能,可以进一步删除:
1. **认证页面**(如果只需要登录):
- `apps/web-antd/src/views/_core/authentication/register.vue`
- `apps/web-antd/src/views/_core/authentication/code-login.vue`
- `apps/web-antd/src/views/_core/authentication/qrcode-login.vue`
- `apps/web-antd/src/views/_core/authentication/forget-password.vue`
2. **个人中心**(如果不需要):
- `apps/web-antd/src/views/_core/profile/`
3. **部署脚本**(如果不需要 Docker 部署):
- `scripts/deploy/`