From e6d60966363a9c9dd20812c392f01404e050e387 Mon Sep 17 00:00:00 2001 From: goddonebianu Date: Thu, 23 Oct 2025 11:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E5=AD=90=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/alphabet/page.tsx | 2 +- src/app/srt-player/page.tsx | 2 +- src/app/text-speaker/page.tsx | 2 +- src/app/translator/page.tsx | 2 +- src/app/word-board/{WordBoard.tsx => TheBoard.tsx} | 2 +- src/app/word-board/page.tsx | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) rename src/app/word-board/{WordBoard.tsx => TheBoard.tsx} (97%) diff --git a/src/app/alphabet/page.tsx b/src/app/alphabet/page.tsx index 293b089..1499146 100644 --- a/src/app/alphabet/page.tsx +++ b/src/app/alphabet/page.tsx @@ -6,7 +6,7 @@ import { useEffect, useState } from "react"; import MemoryCard from "./MemoryCard"; import { Navbar } from "@/components/Navbar"; -export default function Home() { +export default function Alphabet() { const [chosenAlphabet, setChosenAlphabet] = useState(null); const [alphabetData, setAlphabetData] = useState>({ japanese: null, diff --git a/src/app/srt-player/page.tsx b/src/app/srt-player/page.tsx index 8a376af..613003e 100644 --- a/src/app/srt-player/page.tsx +++ b/src/app/srt-player/page.tsx @@ -5,7 +5,7 @@ import UploadArea from "./UploadArea"; import VideoPanel from "./VideoPlayer/VideoPanel"; import { Navbar } from "@/components/Navbar"; -export default function Home() { +export default function SrtPlayer() { const videoRef = useRef(null); const [videoUrl, setVideoUrl] = useState(null); diff --git a/src/app/text-speaker/page.tsx b/src/app/text-speaker/page.tsx index d2240e5..8c169ff 100644 --- a/src/app/text-speaker/page.tsx +++ b/src/app/text-speaker/page.tsx @@ -11,7 +11,7 @@ import { TextSpeakerItemSchema } from "@/interfaces"; import z from "zod"; import { Navbar } from "@/components/Navbar"; -export default function Home() { +export default function TextSpeaker() { const textareaRef = useRef(null); const [showSpeedAdjust, setShowSpeedAdjust] = useState(false); const [showSaveList, setShowSaveList] = useState(false); diff --git a/src/app/translator/page.tsx b/src/app/translator/page.tsx index a085295..f19724f 100644 --- a/src/app/translator/page.tsx +++ b/src/app/translator/page.tsx @@ -8,7 +8,7 @@ import IMAGES from "@/config/images"; import { getTTSAudioUrl } from "@/utils"; import { Navbar } from "@/components/Navbar"; -export default function Home() { +export default function Translator() { const [ipaEnabled, setIPAEnabled] = useState(true); const [voicesData, setVoicesData] = useState<{ locale: string, diff --git a/src/app/word-board/WordBoard.tsx b/src/app/word-board/TheBoard.tsx similarity index 97% rename from src/app/word-board/WordBoard.tsx rename to src/app/word-board/TheBoard.tsx index 3ea1a1c..f396ca1 100644 --- a/src/app/word-board/WordBoard.tsx +++ b/src/app/word-board/TheBoard.tsx @@ -4,7 +4,7 @@ import { BOARD_WIDTH, TEXT_WIDTH, BOARD_HEIGHT, TEXT_SIZE } from "@/config/word- import { Word } from "@/interfaces"; import { Dispatch, SetStateAction } from "react"; -export default function WordBoard( +export default function TheBoard( { words, selectWord }: { words: [ { diff --git a/src/app/word-board/page.tsx b/src/app/word-board/page.tsx index 6e31b45..b3ffd0d 100644 --- a/src/app/word-board/page.tsx +++ b/src/app/word-board/page.tsx @@ -1,5 +1,5 @@ 'use client'; -import WordBoard from "@/app/word-board/WordBoard"; +import TheBoard from "@/app/word-board/TheBoard"; import Button from "../../components/Button"; import { KeyboardEvent, useRef, useState } from "react"; import { Word } from "@/interfaces"; @@ -7,7 +7,7 @@ import { BOARD_WIDTH, TEXT_WIDTH, BOARD_HEIGHT, TEXT_SIZE } from "@/config/word- import { inspect } from "@/utils"; import { Navbar } from "@/components/Navbar"; -export default function Home() { +export default function WordBoard() { const inputRef = useRef(null); const inputFileRef = useRef(null); const initialWords = @@ -144,7 +144,7 @@ export default function Home() {
- +