Commit Graph

2 Commits

Author SHA1 Message Date
鄭沛軒 184c84d944 refactor: 完成 Hook 和類型定義重構 + import 路徑更新
## Word 模組重構完成
- 📁 移動 useWordAnalysis Hook 到 hooks/word/
- 📄 移動 WordAnalysis 類型到 lib/types/word/
- 🧹 清理空目錄和錯放的文件
-  更新所有 import 路徑

## Import 路徑統一更新
-  WordPopup: 更新 Hook 和類型引用
-  ClickableTextV2: 更新 Hook 和類型引用
-  review/page.tsx: 更新重構後的組件路徑
-  review-design/page.tsx: 更新重構後的組件路徑

## 架構標準化完成
- 🎯 components/ 只放純組件
- 🪝 hooks/ 放自定義 Hook
- 📋 lib/types/ 放類型定義
-  符合 React 項目最佳實踐

功能驗證: 所有頁面正常編譯運行

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 16:30:35 +08:00
鄭沛軒 a613ca22b7 refactor: 完全清空後端複習系統為重新實施做準備
- 刪除所有智能複習相關服務和控制器
- 移除 StudyController, StudySessionController
- 刪除 SpacedRepetitionService, ReviewTypeSelectorService 等服務
- 清理 SpacedRepetition DTO 和配置文件
- 簡化 Flashcard 實體,移除所有複習相關屬性
- 移除 StudyRecord, StudySession, StudyCard 實體
- 清理 Program.cs 服務註冊和 appsettings 配置
- 為組件化重新實施提供純淨的代碼基礎

清空效果:
- StudyController: 583行 → 0行 (完全刪除)
- FlashcardsController: 461行 → 271行 (純粹CRUD)
- 複習服務: 5個 → 0個 (完全移除)
- 系統複雜度: 大幅降低,架構清晰

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 21:40:04 +08:00