3 Commits
Author SHA1 Message Date
DeveloperandClaude Opus 4.6 94647e2b4b perf: 性能与资源优化 - 提取内联资源、数据库查询优化、限流与缓存增强
主要优化:
- templates/index.html: 220KB → 28KB,内联CSS/JS提取为静态文件
- menu/serializers.py: 修复 Order.ingredients_summary N+1 查询问题
- menu/services/dish_service.py: 移除多余查询,添加 only() 限制字段
- menu/views.py: 上传接口添加每分钟20次限流
- static/js/api.js: 统一API错误处理
- zhangmenu/settings.py: 添加Whitenoise压缩、Redis缓存支持、环境变量配置
- static/css/app.css, static/js/app.js: 提取的内联资源文件
- 新增 migrations, requirements.txt, .env.example

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 17:18:59 +08:00
DeveloperandClaude Opus 4.6 f1994c869d feat: 聚会人员动态管理与排行榜美化
- 支持聚会创建后随时增减参与人员(进行中/已完成均可)
- 美化参与次数排行榜界面,采用渐变进度条风格
- 新上传图片改用相对路径,避免端口变化导致图片无法加载
- 修复外网访问的 ALLOWED_HOSTS 配置

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 09:15:58 +08:00
DeveloperandClaude Opus 4.6 0a50c09dba Initial commit - Zhangmenu Django project
A menu management application built with Django, featuring:
- Dish management with cover images
- Order system with party dates and participants
- REST API with Django REST Framework
- Bootstrap-styled frontend

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 11:27:23 +08:00