dramaling-vocab-learning/frontend/components/flashcards
鄭沛軒 d742cf52f9 feat: BluePlayButton 內建 TTS 邏輯重構 + TypeScript 錯誤修復
重構亮點:
• BluePlayButton 內建完整 TTS 播放邏輯
• 移除 8 個組件中 97 行重複代碼
• 組件使用極度簡化:複雜配置 → 一行代碼

技術優化:
• 修復 TypeScript "Type 'never'" 錯誤
• 重新設計邏輯流程,清晰的條件分支
• 支援標準 TTS + 自定義播放兩種模式

使用簡化:
• 從: <BluePlayButton isPlaying={state} onToggle={handler} />
• 到: <BluePlayButton text="hello" />

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 16:51:45 +08:00
..
EditingControls.tsx feat: 完成詞卡詳情頁重構 - 模組化架構大幅優化 2025-10-02 00:09:56 +08:00
FlashcardActions.tsx feat: 完成詞卡詳情頁重構 - 模組化架構大幅優化 2025-10-02 00:09:56 +08:00
FlashcardCard.tsx feat: 修復圖片生成服務 + 統一播放按鈕設計 + API 完善 2025-10-02 03:58:03 +08:00
FlashcardContentBlocks.tsx feat: BluePlayButton 內建 TTS 邏輯重構 + TypeScript 錯誤修復 2025-10-02 16:51:45 +08:00
FlashcardDetailHeader.tsx feat: BluePlayButton 內建 TTS 邏輯重構 + TypeScript 錯誤修復 2025-10-02 16:51:45 +08:00
FlashcardForm.tsx feat: BluePlayButton 內建 TTS 邏輯重構 + TypeScript 錯誤修復 2025-10-02 16:51:45 +08:00
FlashcardInfoBlock.tsx feat: 完成詞卡詳情頁重構 - 模組化架構大幅優化 2025-10-02 00:09:56 +08:00
LearningComplete.tsx refactor: Components結構重組與死代碼清理 2025-10-01 14:44:04 +08:00
SearchControls.tsx feat: 完成Flashcards頁面重大重構,36%代碼減少 2025-10-01 22:09:29 +08:00
SearchResults.tsx feat: 完成Flashcards頁面終極重構 - 代碼減少56.4%,模組化架構完成 2025-10-01 22:45:02 +08:00