docs: 合并CLAUDE规范

This commit is contained in:
2026-08-01 00:15:57 +08:00
parent a43267db73
commit a87fdba4cc
2 changed files with 15 additions and 48 deletions
+15 -2
View File
@@ -4,7 +4,7 @@
## Git 提交规范
- 提交信息使用中文,简洁描述变更内容
- 提交信息必须简短且使用中文,不要使用英文长句
- 格式:`类型: 简述`,例如 `feat: 新增学习会话页面``fix: 修复路由守卫401跳转``docs: 补充组件说明`
## 技术栈
@@ -59,6 +59,11 @@ lpt-fe/src/
- 保存:`convertMaterialUrls()` 异步拉取标题,替换裸 URL 为 `[标题](url)`
- `getUrlTitle(url)`:调用 `/utils/fetch-title`,带内存缓存和请求去重。
## 应用场景
- TaskForm 编辑页使用 `el-dialog` 弹窗管理应用场景。
- Study 详情页使用 `getUrlTitle` 展示应用场景链接标题。
## 样式与交互约定
- 链接使用绿色系 `var(--green-600)`,虚线下划线,hover 变实线。
@@ -66,7 +71,8 @@ lpt-fe/src/
- 小字提示使用 12px `var(--text-secondary)`
- `Study.vue` 任务清单每页 20 条。
- `StartTask.vue` 编辑任务时先 GET 详情,合并后再 PUT,避免覆盖其他字段。
- `MindMapViewer.vue` 支持只读、编辑、selectable、colorByCompare 模式。
- `MindMapViewer.vue` 支持只读、编辑、selectable、colorByCompare 模式selectable 模式下点击节点 emit `node-select`
- ReviewRecall 中 `standardExpanded` 展开后节点可点击,用于选择复习起点。
## 开发配置
@@ -85,6 +91,13 @@ npm run test:e2e
npx vue-tsc --noEmit
```
编译检查也可以使用:
```bash
npx vite build
npx vue-tsc --noEmit
```
## Docker
- 多阶段构建:`node:20-alpine` 编译 → `nginx:alpine` 运行。