Commit Graph

51 Commits

Author SHA1 Message Date
de7c1321c2 refactor: remove Anki import/export and simplify card system
- Remove Anki apkg import/export functionality
- Remove OCR feature module
- Remove note and note-type modules
- Simplify card/deck modules (remove spaced repetition complexity)
- Update translator and dictionary features
- Clean up unused translations and update i18n files
- Simplify prisma schema
2026-03-17 20:24:42 +08:00
2f5ec1c0f0 feat(translator): add custom target language input
- Replace Select with Input for custom language entry
- Users can now type any target language they want
- Add i18n translations for all 8 languages
2026-03-16 12:07:46 +08:00
bc0b392875 feat(deck): add daily learning limits and today's study stats
- Add newPerDay and revPerDay fields to Deck model (Anki-style)
- Add settings modal to configure daily limits per deck
- Display today's studied counts (new/review/learning) on deck page
- Add i18n translations for all 8 languages
- Fix JSON syntax errors in fr-FR.json and it-IT.json
- Fix double counting bug in repoGetTodayStudyStats
2026-03-16 09:01:55 +08:00
c525bd4591 feat(learn): add reverse and dictation modes for card review
- Add reverse mode to swap card front/back
- Add dictation mode with TTS audio playback and answer verification
- Add i18n translations for new features in all 8 languages
- Integrate useAudioPlayer hook for TTS playback
2026-03-14 11:52:56 +08:00
af684a15ce feat: add reset deck progress feature for deck detail page 2026-03-13 22:02:55 +08:00
279eee2953 i18n: fix navbar 'folders' to 'decks' and add follow section 2026-03-13 19:30:44 +08:00
168f0c161e i18n: add follow section to all languages and fix duplicate decks 2026-03-13 19:05:38 +08:00
f1eafa8015 i18n: add card type labels for memorize feature
Add translations for cardTypeNew, cardTypeLearning, cardTypeReview,
cardTypeRelearning in all 8 supported languages (en-US, zh-CN, ja-JP,
ko-KR, de-DE, fr-FR, it-IT, ug-CN).

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-13 15:08:02 +08:00
7ba31a37bd 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)
2026-03-11 10:37:23 +08:00
804c28ada9 refactor: 修复 modules 三层架构违规
- auth: actionDeleteAccount 改用 service+repo,forgot-password 完整三层实现
- card: serviceCheckCardOwnership 替代直接调用 repository
- deck: 移除 service 层的 use server 指令
- dictionary: 数据转换逻辑从 repository 移到 service
- ocr: 认证移到 action 层,跨模块调用改用 service
- translator: genIPA/genLanguage 改用 service 层
2026-03-11 09:40:53 +08:00
8099320e00 feat: 添加注销账号功能
- 在个人资料页面添加注销账号按钮
- 需要输入用户名确认才能删除
- 删除所有用户数据:牌组、卡片、笔记、关注等
- 添加 8 种语言翻译
2026-03-10 19:54:19 +08:00
6f4b123a84 fix: 添加邮箱验证重发功能
- 登录时检测 403 错误(邮箱未验证)
- 显示重发验证邮件按钮
- 修复邮件发送失败时静默忽略的问题
- 添加 8 种语言的验证相关翻译
2026-03-10 19:38:54 +08:00
57ad1b8699 refactor: 完全重构为 Anki 兼容数据结构
- 用 Deck 替换 Folder
- 用 Note + Card 替换 Pair (双向复习)
- 添加 NoteType (卡片模板)
- 添加 Revlog (复习历史)
- 实现 SM-2 间隔重复算法
- 更新所有前端页面
- 添加数据库迁移
2026-03-10 19:20:46 +08:00
9b78fd5215 feat: 添加 OCR 词汇提取功能
新增 OCR 页面,用户可上传教材词汇表截图,使用 GLM-4.6V 视觉模型
提取单词-释义对并保存到指定文件夹。

- AI 管道: src/lib/bigmodel/ocr/ (orchestrator, types)
- 后端模块: src/modules/ocr/ (action-service-repository 架构)
- 前端页面: src/app/(features)/ocr/ (拖拽上传、folder 选择)
- i18n: 8 种语言翻译支持
2026-03-10 15:21:45 +08:00
683a4104ec feat: 添加用户关注功能
- 新增 Follow 表和 User.bio 字段 (Prisma schema)
- 创建 follow 模块 (action-service-repository)
- 新增 FollowButton/FollowStats/UserList 组件
- 用户页面显示 bio、粉丝/关注数、关注按钮
- 新增 /users/[username]/followers 和 following 页面
- 添加 en-US/zh-CN i18n 翻译

⚠️ 需要运行: prisma migrate dev --name add_follow_and_bio
2026-03-10 14:58:43 +08:00
abcae1b8d1 feat: 添加移动端下拉菜单和主题色设置
- 新增 MobileMenu 组件,小屏幕使用汉堡菜单替代多个按钮
- 重构 LanguageSettings 为统一下拉框样式
- 新增设置页面,支持主题色切换
- 翻译页添加源语言选择器
- 更新 8 种语言的 i18n 翻译
2026-03-10 13:44:52 +08:00
5406543cbe feat(auth): 添加忘记密码功能
- 添加忘记密码页面,支持通过邮箱重置密码
- 添加重置密码页面
- 登录页面添加忘记密码链接
- 添加邮件发送功能
- 完善所有8种语言的翻译 (en-US, zh-CN, ja-JP, ko-KR, de-DE, fr-FR, it-IT, ug-CN)
2026-03-09 20:45:18 +08:00
11a265d52e i18n: 完整翻译所有语言文件
- de-DE: 德语完整翻译
- fr-FR: 法语完整翻译
- it-IT: 意大利语完整翻译
- ja-JP: 日语完整翻译
- ko-KR: 韩语完整翻译
- ug-CN: 维吾尔语完整翻译

所有翻译保持与 en-US.json 结构一致,保留插值变量
2026-03-09 19:49:34 +08:00
fb4346377a feat(explore): 添加文件夹详情页面
- 修复 folder-aciton.ts 文件名拼写错误为 folder-action.ts
- 修复所有导入路径中的拼写错误
- 添加 repoGetPublicFolderById 和 actionGetPublicFolderById
- 创建 ExploreDetailClient 详情页组件
- /explore/[id] 现在显示文件夹详情和链接到 /folders/[id]
- 添加 exploreDetail 中英文翻译
2026-03-09 19:39:03 +08:00
020744b353 fix(i18n): 补充页面缺失的中英文翻译并修复登录重定向循环
- 补充 login/signup/dictionary/srt-player/alphabet 页面的翻译
- 修复登录页面邮箱登录时 password 参数错误
- 修复登录/注册页面的无限重定向循环问题
- 调整登录/注册卡片宽度为 w-96
2026-03-09 18:41:41 +08:00
6ba5ae993a fix: language selector mutual exclusion with preset buttons
- When "Other" is selected, preset language buttons are deselected
- Only one option can be selected at a time
- Refactor dictionary page with zustand store
- Add custom language input option to dictionary
- Fix multiple issues in dictionary bigmodel pipeline
2026-03-08 16:10:41 +08:00
d7149366e9 feat(folders): 完善公开文件夹功能 - 添加 /explore 和 /favorites 页面
- 新增 /explore 页面:浏览和搜索公开文件夹
- 新增 /explore/[id] 页面:以只读模式查看公开文件夹
- 新增 /favorites 页面:管理收藏的文件夹
- 重构 /folders 页面:仅显示当前用户的文件夹
- 更新导航栏:添加 Explore 和 Favorites 链接
- 添加 i18n 翻译:explore 和 favorites 相关文本
- 更新 AGENTS.md:添加数据库迁移规范(必须使用 migrate dev)
2026-03-08 14:47:35 +08:00
b0fa1a4201 feat(folders): 添加公开文件夹和收藏功能
- 新增文件夹可见性控制(公开/私有)
- 添加公开文件夹浏览和搜索
- 实现文件夹收藏功能
- 新增 FolderFavorite 数据模型
- 更新 Prisma 至 7.4.2
- 添加相关 i18n 翻译
2026-03-08 14:20:12 +08:00
b407783d61 feat(i18n): 添加用户名相关翻译并修复多处翻译错误
- 为 6 种语言添加 username, emailOrUsername 等字段的翻译
- 修复德语 Steve Jobs 名言中的拼写错误 (bleiv -> bleib)
- 改进维吾尔语翻译质量和术语一致性
- 修复维吾尔语中 'ئىلمىيى' -> 'ئىزاھات' 等表述问题
2026-03-08 13:32:06 +08:00
6c7095ffb3 ... 2026-02-06 03:43:49 +08:00
8ed9b011f4 ... 2026-02-06 03:28:53 +08:00
2537b9fe75 ... 2026-02-06 03:22:20 +08:00
9d42a45bb1 ... 2026-02-03 20:29:55 +08:00
d5dde77ee9 ... 2026-02-03 20:00:56 +08:00
d4d5a53747 补全翻译 2026-01-18 13:06:08 +08:00
b093ed2b4f 补全翻译 2026-01-06 16:04:53 +08:00
66d17df59d 补全翻译
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-05 18:35:12 +08:00
be3eb17490 重构了tts
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-05 17:34:15 +08:00
4c64aa0a40 增加翻译语言 2026-01-05 11:40:11 +08:00
6c4a73d857 优化细节
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-04 16:54:31 +08:00
7c70ec1028 ...
All checks were successful
continuous-integration/drone/push Build is passing
2025-12-29 17:48:04 +08:00
5f24929116 ...
All checks were successful
continuous-integration/drone/push Build is passing
...

...

...

...
2025-12-29 11:49:53 +08:00
e17437a5ad 修复登录问题
All checks were successful
continuous-integration/drone/push Build is passing
2025-12-12 16:45:50 +08:00
573b1cb7e5 ...
All checks were successful
continuous-integration/drone/push Build is passing
2025-12-12 13:41:00 +08:00
605c57f8bb 重构逐句视频播放器
All checks were successful
continuous-integration/drone/push Build is passing
2025-12-12 13:37:00 +08:00
b69e168558 ...
Some checks failed
continuous-integration/drone/push Build is failing
2025-12-11 21:36:45 +08:00
881d9ca921 将next-auth替换为better-auth 2025-12-10 17:54:14 +08:00
a88dd2b91a 优化了一些细节
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2025-12-02 17:39:55 +08:00
4cbde97f41 背单词可以设置索引 2025-11-24 16:01:53 +08:00
baf7265bf8 添加记忆上一个
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2025-11-22 09:16:51 +08:00
a2e579cb7b 可以乱序记忆
All checks were successful
continuous-integration/drone/push Build is passing
2025-11-20 10:40:57 +08:00
98c771cab4 ... 2025-11-16 22:14:11 +08:00
b1a3add1d9 fix translations
All checks were successful
continuous-integration/drone/push Build is passing
2025-11-16 14:57:05 +08:00
5cf100c111 use docker
All checks were successful
continuous-integration/drone/push Build is passing
2025-11-03 21:03:28 +08:00
f283695f8f 添加memorize localStorage本地存储功能
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-31 18:35:32 +08:00