feat: 添加 Anki APKG 导入/导出功能

- 添加 APKG 解析器 (src/lib/anki/apkg-parser.ts)
- 添加 APKG 导出器 (src/lib/anki/apkg-exporter.ts)
- 添加导入/导出 Server Actions
- 添加导入/导出 UI 组件
- 集成到牌组页面
- 添加 i18n 翻译

同时修复断链:
- /folders → /decks (Navbar, signup, profile)
This commit is contained in:
2026-03-11 10:37:23 +08:00
parent 4d4062985d
commit 7ba31a37bd
13 changed files with 1654 additions and 32 deletions

View File

@@ -28,7 +28,7 @@ export default function SignUpPage() {
useEffect(() => {
if (!isPending && session?.user?.username && !redirectTo && !verificationSent) {
router.push("/folders");
router.push("/decks");
}
}, [session, isPending, router, redirectTo, verificationSent]);