Commit Graph

4 Commits

Author SHA1 Message Date
鄭沛軒 5167d91090 feat: 修復圖片生成服務 + 統一播放按鈕設計 + API 完善
後端修復:
• 修復圖片生成 DI Scope 問題 - 解決 ObjectDisposedException
• FlashcardsController 統一 API 格式 - 添加圖片和複習屬性
• Repository 正確載入圖片關聯數據

前端優化:
• 統一播放按鈕為藍底漸層設計 (w-10 h-10)
• 修復圖片顯示邏輯 - 正確構建完整 URL
• FlashcardDetailHeader 防護性編程 - 避免 NaN 錯誤
• 優化圖片顯示比例 - 正方形容器避免變形

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 03:58:03 +08:00
鄭沛軒 691becf92c feat: 階段三 Services 文檔化完成 - 統一命名與完整索引
## 階段三成果

###  移除重複介面和服務
- 刪除重複的 `IGeminiDescriptionGenerator.cs`
- 保留統一的 `IImageDescriptionGenerator` 介面

###  建立服務索引文檔
- 完善 `Services/README.md` 為完整服務索引
- 涵蓋 42 個服務的詳細分類和說明
- 按功能領域組織:AI、Core、Infrastructure、Media、Vocabulary
- 提供使用範例和架構說明

###  統一命名規則
- 重新命名 `RefactoredHybridCacheService` → `HybridCacheService`
- 更新所有相關引用和文檔
- 確保 100% 符合 C# 命名規範

### 📊 優化指標
- 編譯狀態: 0 Error, 13 Warning
- 服務文檔: 完整索引覆蓋所有服務
- 命名規範: 100% 統一
- 架構清晰度: 大幅提升

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 03:53:53 +08:00
鄭沛軒 5750d1cc78 refactor: 階段一 - 移除重複和空目錄
- 移除空的 backend/ 和 DramaLing.Api/ 子目錄
- 移除空的 Infrastructure/ 目錄
- 移除空的 Data/Repositories/ 目錄
- 清理目錄結構,減少架構混亂
- 編譯測試通過,無功能影響

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 02:57:47 +08:00
鄭沛軒 7a6356dbb5 refactor: 完成 Services 層架構重組,實施功能域分層設計
階段一完成:服務分類重組
- 創建功能域分層目錄:Core/AI/Media/Infrastructure/Vocabulary
- 重新分配 19個服務到對應功能域:
  * Core/Auth/: 認證服務
  * AI/: 分析、Gemini、圖片生成服務
  * Media/: 音訊、圖片、儲存服務
  * Infrastructure/: 快取、監控服務
  * Vocabulary/: 選項詞彙庫服務
- 移除舊的平鋪目錄結構
- 編譯驗證通過,服務正常運行

架構優化進度:33% (階段一完成)
下一步:拆分大型服務 (GeminiService, ImageGenerationOrchestrator, HybridCacheService)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 01:49:42 +08:00