...
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-12 13:41:00 +08:00
parent 605c57f8bb
commit 573b1cb7e5
5 changed files with 0 additions and 62 deletions

View File

@@ -131,7 +131,6 @@
}, },
"navbar": { "navbar": {
"title": "learn-languages", "title": "learn-languages",
"about": "About",
"sourceCode": "GitHub", "sourceCode": "GitHub",
"sign_in": "Sign In", "sign_in": "Sign In",
"profile": "Profile", "profile": "Profile",

View File

@@ -135,7 +135,6 @@
}, },
"navbar": { "navbar": {
"title": "学语言", "title": "学语言",
"about": "关于",
"sourceCode": "源码", "sourceCode": "源码",
"sign_in": "登录", "sign_in": "登录",
"profile": "个人资料", "profile": "个人资料",

View File

@@ -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 更新了单词板,单词不再会重叠

View File

@@ -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<HTMLInputElement>(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 (
<div className="w-full flex flex-col gap-2 m-2">
<LightButton onClick={uploadVideo}>{t("uploadVideo")}</LightButton>
<LightButton onClick={uploadSRT}>{t("uploadSubtitle")}</LightButton>
<input type="file" className="hidden" ref={inputRef} />
</div>
);
}

View File

@@ -48,7 +48,6 @@ export async function Navbar() {
})() })()
} }
<GhostButton href="/changelog.txt">{t("about")}</GhostButton>
<GhostButton <GhostButton
className="hidden md:block" className="hidden md:block"
href="https://github.com/GoddoNebianU/learn-languages" href="https://github.com/GoddoNebianU/learn-languages"