Commit Graph
12 Commits
Author SHA1 Message Date
yml 2dc5a8121e 前端死代码清理 2026-06-14 18:42:06 +08:00
yml f410be3797 代码格式化: prettier --write 统一代码风格
39 个文件按 .prettierrc.json (printWidth 100 / no semi / singleQuote) 统一格式, 纯空白与换行调整, 无逻辑变更。为接入代码门禁做准备, 让 npm run check (format:check + lint:strict + typecheck) 干净通过。
2026-06-14 16:24:01 +08:00
yml2213 f6ea3e29a6 移动端和 PC 端登录页都加了“图形验证码 2026-06-12 21:16:08 +08:00
yml2213 70a35204b3 统一前端错误读取和调试日志 2026-06-10 15:52:49 +08:00
yml 9cc959afc4 收敛前端金额表单命名 2026-06-09 20:59:50 +08:00
yml 60324765c5 统一前端共享工具入口 2026-06-09 20:50:57 +08:00
yml 2dfa2611fd 新增财务仪表盘并统一金额到角 2026-06-09 00:13:03 +08:00
yml2213 500f511185 增加前端格式检查配置 2026-06-08 06:40:33 +08:00
yml2213 a8b3d3813b 优化发布截图上传与押金提示 2026-06-07 21:40:36 +08:00
yml2213 75e849a91a 修复前端迁移后的类型错误 2026-06-04 11:07:34 +08:00
yml2213 360ebb85e6 chore: 批量修复所有剩余导入路径错误
全面修复所有文件中的导入路径:
- 修复 utils/ 目录(pricing.ts, listingDisplay.ts)
- 修复 shared/ 目录(composables, components, types)
- 修复 stores/adminSession.ts
- 修复 layouts/AdminLayout.vue
- 修复 types/publish.ts

类型错误:106 → 79(-27)
模块错误 (TS2307):47 → 38(-9)

所有代码文件的 @/api/ 导入已修复!
2026-06-04 10:00:57 +08:00
yml2213andClaude Opus 4.7 b5903a169f feat: Features架构迁移 - P0和P1部分完成
## 完成的工作

### P0: 基础设施准备
- 创建 features/ 和 shared/ 目录结构
- 迁移共享资源:API基础设施、工具函数、类型定义
- 迁移通用composables:useMoney, useSmsCountdown, usePricingCalculator
- 迁移全局样式文件
- 建立模块化导出系统

### P1.1: 钱包模块 (wallet)
- 迁移 API: wallet.ts
- 迁移 Views: WalletView.vue
- 新增 Composable: useWallet.ts (封装钱包状态管理)
- 更新导入路径到 shared/

### P1.2: 聊天模块 (chats)
- 迁移 API: chats.ts
- 迁移 Views: ChatView, MessagesView (桌面+移动)
- 迁移 Composables: useChatSSE.ts
- 迁移 Components: ChatAttachmentImage.vue
- 更新导入路径到 shared/

## 技术改进
- 修复 shared/composables 导出问题 (default → 命名导出)
- 修复 shared/api/client.ts 类型导入路径
- 建立清晰的模块边界和导出规范

## 文档
- 添加完整的迁移计划文档
- 添加进度跟踪文档

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 08:38:36 +08:00