Commit Graph

27 Commits

Author SHA1 Message Date
hanhan 06def78f6b fix: 简化远程 .version 获取方式,去除 OneDev 不支持的 sparse filter 2026-05-24 22:40:16 +08:00
hanhan f7060b056d feat: 添加版本更新功能
- 新增 .version 文件(JSON 格式:version/release_date/changelog)
- 新增 lib/update.ts 更新逻辑(版本检查、git clone、docker compose)
- 新增 /api/update/check 版本检查 API
- 新增 /api/update/execute 执行更新 API(SSE 流式日志)
- 新增设置页「版本更新」界面(含 changelog 展示)
- Dockerfile 添加 git、docker CLI;compose 挂载 docker socket
- .env.docker 添加 ONEDEV_ACCESS_TOKEN 配置
2026-05-24 22:35:53 +08:00
hanhan 8b308b6adb feat: 餐食类型支持拖拽排序,调整排列顺序
改动了餐食类型标签(水果餐→早点/水果餐、体弱儿专属→体弱儿餐)及排序(体弱儿餐在午点前); 筛选按钮改为可拖拽排序,影响表格和导出顺序; 修复复合标签(早点/水果餐)导出无英文翻译的bug; 排序结果持久化到localStorage
2026-05-24 21:45:31 +08:00
hanhan 8bc63cbdf2 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	.onedev-buildspec.yml
2026-05-10 22:23:33 +08:00
hanhan b51bccc275 修改项目构建脚本 2026-05-10 22:23:14 +08:00
hanhan 8c3f2f21c3 编辑 .onedev-buildspec.yml 2026-05-10 14:21:00 +00:00
hanhan 3ae44d1015 适配最新的食谱 2026-05-10 22:14:51 +08:00
hanhan e4bfb98482 适配最新的食谱 2026-05-10 20:56:56 +08:00
hanhan 4459e5acf3 适配最新的食谱 2026-05-10 20:25:48 +08:00
hanhan 59b3117eb9 更新安全配置项目 2026-04-18 23:52:15 +08:00
hanhan 70d3020035 更新安全配置项目 2026-04-13 22:10:43 +08:00
hanhan 8e245076fe 修复AI翻译功能 2026-04-13 21:40:27 +08:00
hanhan c269a57588 add README.md and update AGENTS.md 2026-04-13 01:03:49 +08:00
hanhan a4b6e31a40 docs: add README.md and update AGENTS.md 2026-04-13 01:02:38 +08:00
hanhan 12282ae4b3 feat: improve database module and apply untranslated color to UI 2026-04-13 01:01:52 +08:00
hanhan 250abaa453 fix: only use env vars for initial config.json creation
- Environment variables are only read when config.json doesn't exist
- After first run, all config operations only read/write config.json
- This prevents env vars from overriding user-saved settings
2026-04-13 00:59:30 +08:00
hanhan 2e4aa81969 fix: include pnpm-lock.yaml in Docker build context 2026-04-13 00:22:57 +08:00
hanhan ffa364c755 fix: remove MySQL from docker-compose, use external database service 2026-04-13 00:14:23 +08:00
hanhan 875743369d feat: add Docker deployment support
- Add multi-stage Dockerfile for Next.js standalone build
- Add docker-compose.yml with app and MySQL 8.0 services
- Add .dockerignore for optimized builds
- Update next.config.ts with standalone output
2026-04-13 00:13:24 +08:00
hanhan 12f7114f7d feat: add context menu for individual dish AI translation
- Add right-click/click context menu on dishes in the main table
- Menu includes 'AI 翻译 (Beta)' option
- Translates single dish and updates the display immediately
- Clicking outside closes the context menu
2026-04-13 00:09:41 +08:00
hanhan 19695cc38b feat: apply untranslated color setting to frontend display
- Use exportConfig.untranslatedColor for untranslated dish names in UI
- Ensures consistent color between export and frontend display
2026-04-13 00:04:16 +08:00
hanhan 818792abac feat: implement second page header in export
- Add multi-section support when secondPageHeader is enabled
- Each page gets its own header row when content spans multiple pages
- Only applies when days exceed estimated page capacity
2026-04-13 00:01:52 +08:00
hanhan 4586649131 fix: fetch latest export config before export
- Call /api/config endpoint at export start to get latest settings
- Ensures export uses user's most recent configuration changes
2026-04-12 23:57:33 +08:00
hanhan 030fce2813 feat: add export settings for Word document generation
- Add export configuration (untranslated text color, page orientation)
- Add second page header option for multi-page exports
- Integrate export settings into main export flow
- Separate export settings page with visual preview
2026-04-12 23:54:00 +08:00
hanhan a249fb038c feat: add recipe translation tool with AI translation and settings management
- Add Word document parsing and translation export
- Add database configuration management
- Add AI/LLM translation configuration
- Add translation vocabulary management
- Add export settings (colors, page orientation, headers)
- Separate database and AI configurations
- Add debounced search to prevent database overload
2026-04-12 23:50:54 +08:00
hanhan 57e119635e feat: initial commit 2026-04-12 17:19:14 +08:00
hanhan ed1282c853 Initial commit from Create Next App 2026-04-12 17:16:31 +08:00