diff --git a/messages/en-US.json b/messages/en-US.json index f480218..c8adb6d 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -131,7 +131,6 @@ }, "navbar": { "title": "learn-languages", - "about": "About", "sourceCode": "GitHub", "sign_in": "Sign In", "profile": "Profile", diff --git a/messages/zh-CN.json b/messages/zh-CN.json index 87d640e..95bf56c 100644 --- a/messages/zh-CN.json +++ b/messages/zh-CN.json @@ -135,7 +135,6 @@ }, "navbar": { "title": "学语言", - "about": "关于", "sourceCode": "源码", "sign_in": "登录", "profile": "个人资料", diff --git a/public/changelog.txt b/public/changelog.txt deleted file mode 100644 index c617b1a..0000000 --- a/public/changelog.txt +++ /dev/null @@ -1,11 +0,0 @@ -2025.11.10 重构了translator,将其改为并发请求多个数据,速度大大提升 -2025.10.31 添加国际化支持 -2025.10.30 添加背单词功能 -2025.10.12 添加朗读器本地保存功能 -2025.10.09 新增记忆字母表功能 -2025.10.08 加快了TTS的生成速度,将IPA生成设置为可选项 -2025.10.07 新增文本朗读器,优化了视频播放器UI -2025.10.06 更新了主页面UI,移除IPA生成与文本朗读功能,新增全语言翻译器 -2025.10.05 新增IPA生成与文本朗读功能 -2025.09.25 优化了主界面UI -2025.09.19 更新了单词板,单词不再会重叠 diff --git a/src/app/(features)/srt-player/UploadArea.tsx b/src/app/(features)/srt-player/UploadArea.tsx deleted file mode 100644 index 36331ca..0000000 --- a/src/app/(features)/srt-player/UploadArea.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import LightButton from "@/components/ui/buttons/LightButton"; -import { useRef } from "react"; -import { useTranslations } from "next-intl"; - -export default function UploadArea({ - setVideoUrl, - setSrtUrl, -}: { - setVideoUrl: (url: string | null) => void; - setSrtUrl: (url: string | null) => void; -}) { - const t = useTranslations("srt_player"); - const inputRef = useRef(null); - - const uploadVideo = () => { - const input = inputRef.current; - if (input) { - input.setAttribute("accept", "video/*"); - input.click(); - input.onchange = () => { - const file = input.files?.[0]; - if (file) { - setVideoUrl(URL.createObjectURL(file)); - } - }; - } - }; - const uploadSRT = () => { - const input = inputRef.current; - if (input) { - input.setAttribute("accept", ".srt"); - input.click(); - input.onchange = () => { - const file = input.files?.[0]; - if (file) { - setSrtUrl(URL.createObjectURL(file)); - } - }; - } - }; - return ( -
- {t("uploadVideo")} - {t("uploadSubtitle")} - -
- ); -} diff --git a/src/components/layout/Navbar.tsx b/src/components/layout/Navbar.tsx index 34bca4a..3f91b70 100644 --- a/src/components/layout/Navbar.tsx +++ b/src/components/layout/Navbar.tsx @@ -48,7 +48,6 @@ export async function Navbar() { })() } - {t("about")}