diff --git a/frontend/app/flashcards/page.tsx b/frontend/app/flashcards/page.tsx index b2644bb..6fe323e 100644 --- a/frontend/app/flashcards/page.tsx +++ b/frontend/app/flashcards/page.tsx @@ -126,7 +126,7 @@ function FlashcardsContent({ showForm, setShowForm }: { showForm: boolean; setSh } return ( -
+
{/* Navigation */} diff --git a/frontend/app/generate/page.tsx b/frontend/app/generate/page.tsx index 613da61..a9e2ae1 100644 --- a/frontend/app/generate/page.tsx +++ b/frontend/app/generate/page.tsx @@ -6,7 +6,7 @@ import { Navigation } from '@/components/shared/Navigation' import { WordPopup } from '@/components/word/WordPopup' import { useToast } from '@/components/shared/Toast' import { flashcardsService } from '@/lib/services/flashcards' -import { compareCEFRLevels, getLevelIndex, getTargetLearningRange } from '@/lib/utils/cefrUtils' +import { getLevelIndex, getTargetLearningRange } from '@/lib/utils/cefrUtils' import { useWordAnalysis } from '@/hooks/word/useWordAnalysis' import { API_CONFIG } from '@/lib/config/api' import Link from 'next/link' @@ -34,7 +34,7 @@ interface GrammarCorrection { function GenerateContent() { const toast = useToast() - const { findWordAnalysis, getWordClass, shouldShowStar } = useWordAnalysis() + const { findWordAnalysis, getWordClass } = useWordAnalysis() const [textInput, setTextInput] = useState('') const [isAnalyzing, setIsAnalyzing] = useState(false) const [showAnalysisView, setShowAnalysisView] = useState(false) @@ -232,13 +232,13 @@ function GenerateContent() { }, []) return ( -
+
{!showAnalysisView ? ( -
-

AI 智能生成詞卡

+ <> +

AI 智能生成詞卡

{/* Content Input */}
@@ -316,10 +316,10 @@ function GenerateContent() { })()}
-
+ ) : ( /* 重新設計的句子分析視圖 - 簡潔流暢 */ -
+ <> {/* 語法修正面板 - 如果需要的話 */} {grammarCorrection && grammarCorrection.hasErrors && (
@@ -490,7 +490,7 @@ function GenerateContent() { 分析新句子
-
+ )} {/* 慣用語彈窗 - 使用統一的 WordPopup */} diff --git a/frontend/app/profile/page.tsx b/frontend/app/profile/page.tsx index 5c06c25..356daa5 100644 --- a/frontend/app/profile/page.tsx +++ b/frontend/app/profile/page.tsx @@ -338,10 +338,10 @@ export default function ProfilePage() {
-
+
{/* 頁面標題 */}
-

個人檔案

+

個人檔案

管理您的帳戶資訊和學習偏好設定

diff --git a/frontend/app/review/page.tsx b/frontend/app/review/page.tsx index ab5bb75..bfdd99d 100644 --- a/frontend/app/review/page.tsx +++ b/frontend/app/review/page.tsx @@ -44,7 +44,7 @@ export default function ReviewPage() {
-
+

載入詞卡中...

@@ -64,7 +64,7 @@ export default function ReviewPage() {
-
+
{isAuthError ? '🔒' : '⚠️'} @@ -111,7 +111,7 @@ export default function ReviewPage() {
-
+
{/* 歡迎圖標 */}
@@ -190,7 +190,7 @@ export default function ReviewPage() {
-
+
{/* 慶祝圖標 */}
@@ -278,7 +278,7 @@ export default function ReviewPage() {
-
+