Commit Graph
4 Commits
Author SHA1 Message Date
yml2213 c4420dc753 修复详情页账号截图加载 2026-06-08 07:35:43 +08:00
yml2213 500f511185 增加前端格式检查配置 2026-06-08 06:40:33 +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