Commit Graph
478 Commits
Author SHA1 Message Date
xuyueandClaude Opus 5.5 26f05d1d76 refactor: 后端从 Django 换成 Bun + SQLite
Deploy / deploy (build:staging, school, 8822) (push) Canceled after 0s
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
Django 多个 worker 内存占用 1-2 GB,换成 Bun 单进程后约 25 MB,
同时去掉 Postgres 和 Redis,只剩 Caddy + Bun 两个容器。

- server/:Hono + bun:sqlite + Bun 原生 WebSocket,接口与原 django-ninja
  保持兼容;表结构、时间/UUID 存储格式、密码哈希与 Django 一致,旧数据可直接使用
- 评分加权、贝叶斯平滑、成绩册的计算结果与原实现逐位一致(复刻 Python round/sum)
- scripts/:Postgres → SQLite 迁移、新建超管、提示词层级标注、重算分数
- 前端:Django Admin 去掉后,用户新建/修改改为页面内弹窗;
  非超管的挑战公开按钮置灰
- 权限不足返回 JSON 403(原来是重定向到不存在的登录页)
- docker-compose / Caddyfile / dev.sh / CLAUDE.md 更新,删除 AGENTS.md
- 服务器切换步骤见 docs/migrate-to-bun.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:45:09 +08:00
xuyueandClaude Opus 5.5 47d4679984 chore: 合并为单仓库,统一部署流程
- 根目录加入 docker-compose、Caddyfile、文档等原本不在仓库里的文件
- 前后端两份 GitHub Actions 合并成根目录的一个 deploy workflow:
  构建前端上传到 build/,再在服务器上 git pull 并重建容器

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:02:12 +08:00
xuyueandClaude Opus 5.5 70983a12a5 chore: 合并后端仓库 webpreviewapi 的历史
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:01:25 +08:00
xuyueandClaude Opus 5.5 d1c6b8c201 chore: 将前端移动到 client/ 目录,准备合并为单仓库
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:01:25 +08:00
xuyueandClaude Opus 5.5 0591eda56f chore: 将后端移动到 api/ 目录,准备合并为单仓库
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:01:25 +08:00
xuyueandClaude Opus 5 e172ffc0b3 add creation
自由创作:新增 Creation 模型(继承 Task,display 自动递增)与
/api/creation/ 路由,支持增删改和代码保存,只有创作者本人和超管可访问。
自由创作不进入提交/评分体系;prompt 的两个 WebSocket consumer
连接时校验 can_access_task。补充 task/tests.py 覆盖上述行为。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 09:29:02 -06:00
xuyueandClaude Opus 5 1f6935e31e add creation
自由创作:新增 /creation 列表与详情页、Creation API 与类型定义,
TaskPanel 增加入口,PromptPanel 支持 allowSubmit 控制提交按钮。
顺带升级依赖并按 prettier 重新格式化。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 09:28:05 -06:00
xuyue 2588ea42fd update 2026-06-28 06:06:25 -06:00
xuyue fd0fffb185 update 2026-06-28 06:06:23 -06:00
xuyue 4497af940f add grade 2026-06-28 05:59:54 -06:00
xuyue 663fb8d1dc add grade 2026-06-28 05:59:50 -06:00
xuyue ae32732cf6 add grade 2026-06-25 23:55:48 -06:00
xuyue 9c652a6b3d add grade 2026-06-25 23:55:46 -06:00
xuyue 29bb89a257 add grade 2026-06-25 23:49:38 -06:00
xuyue c4196e61e9 add grade 2026-06-25 23:49:35 -06:00
xuyue 681c6ff4f4 update 2026-06-14 06:32:09 -06:00
xuyue 5bb8a1eaa3 update 2026-06-11 21:24:50 -06:00
xuyue 4f288a1fef fix 2026-06-11 21:22:02 -06:00
xuyue a335eb22e8 fix 2026-06-11 21:08:40 -06:00
xuyue c12c77ac7e fix 2026-06-11 21:08:35 -06:00
xuyue 8cddff6684 fix 2026-06-11 20:49:27 -06:00
xuyue 3102e1178a fix 2026-06-11 20:48:51 -06:00
xuyue a15b3d9c76 rating when ai is steaming 2026-06-11 19:53:15 -06:00
xuyue 6938133775 rating when ai is steaming 2026-06-11 19:53:13 -06:00
xuyue 05ecf6bebf update 2026-06-11 22:35:14 +08:00
xuyue 54d9861bd8 update 2026-06-11 22:21:59 +08:00
xuyue 596ceec880 fix 2026-06-10 20:29:40 -06:00
xuyue 6f99688667 update 2026-06-07 05:50:51 -06:00
xuyue cd6d67ac97 update 2026-06-07 05:50:47 -06:00
xuyue 4b32330b60 check if stable 2026-06-07 05:05:52 -06:00
xuyue 9fbab91cf9 check if stale 2026-06-07 05:05:46 -06:00
xuyue 39051980df fix 2026-06-02 20:56:57 -06:00
xuyue 1566a4e275 update 2026-06-02 20:25:41 -06:00
xuyue 4660b51de3 fix 2026-05-09 01:30:39 -06:00
xuyue f7817d8c26 fix 2026-05-09 01:30:36 -06:00
xuyue 48e6ddeeac add ds thinking 2026-05-07 21:25:34 -06:00
xuyue 53a0759507 add ds thinking 2026-05-07 21:25:25 -06:00
xuyue e2b3f61863 fix 2026-05-07 21:08:19 -06:00
xuyue 2a93c4d19c update 2026-05-07 10:16:14 -06:00
xuyue 1e160d192b add prompt assistant 2026-05-07 09:51:54 -06:00
xuyue 22c3b65e28 add prompt assistant 2026-05-07 09:51:47 -06:00
xuyue a46848b1c9 feat: add guidance LLM helpers and system prompt 2026-05-07 09:26:09 -06:00
xuyue 7daf62cbaf fix 2026-05-07 08:48:16 -06:00
xuyue 31671d8006 fix actions 2026-05-07 08:45:59 -06:00
xuyue 7a72c94238 fix 2026-05-07 08:45:34 -06:00
xuyue efb535eb3d update 2026-05-07 01:31:14 -06:00
xuyue 819b7a82f4 fix 2026-05-07 00:57:15 -06:00
xuyue 0180f6e803 test 2026-05-07 00:56:39 -06:00
xuyue 80aa091602 update 2026-05-06 20:41:51 -06:00
xuyue 983e87403c style: refine prompt history selection state 2026-05-06 07:34:37 -06:00