Commit Graph

2 Commits

Author SHA1 Message Date
鄭沛軒 3ff3b7f0a1 refactor: 重構 review 組件架構 + 修正 API 端口配置
- 重構組件命名: Simple* → 更語義化命名
  - SimpleFlipCard → FlipMemory
  - VocabChoiceTest → VocabChoiceQuiz
  - SimpleProgress → QuizProgress
  - SimpleResults → QuizResult
  - SimpleTestHeader → QuizHeader

- 重新組織目錄結構:
  - components/review/simple/ → components/review/quiz/ & ui/
  - 分離測驗邏輯組件 (quiz/) 和 UI 組件 (ui/)

- 修正 API 配置:
  - 更新 frontend/lib/config/api.ts: localhost:5008 → localhost:5000
  - 配合後端實際運行端口

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-05 04:43:48 +08:00
鄭沛軒 9011f93dfe feat: 完成前端大規模架構重組與術語統一
## 主要完成項目

### 🏗️ Hooks架構重組
- 刪除62.5%死代碼hooks (5個檔案)
- 重組為功能性資料夾結構 (flashcards/, review/)
- 修復所有import路徑和類型錯誤

### 🧹 Lib資料夾優化
- 移除未使用檔案:cn.ts, performance/, errors/, studySession.ts
- 統一API配置管理,建立中央化配置
- 清理硬編碼URL,提升可維護性

### 📝 術語統一 Study→Review
- API端點:/study/* → /review/*
- 客戶端:studyApiClient → reviewApiClient
- 配置項:STUDY → REVIEW
- 註釋更新:StudyRecord → ReviewRecord

###  技術成果
- 前端編譯100%成功,無錯誤
- 減少檔案數量31% (lib資料夾)
- 消除重複代碼和架構冗餘
- 建立企業級前端架構標準

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-01 16:15:17 +08:00