Commit Graph
18 Commits
Author SHA1 Message Date
xuyueandClaude Opus 5.5 dc91b9b5db chore: 数据已迁到 SQLite,删掉 Postgres 迁移脚本、webpreview-db 服务和迁移文档
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
school 服务器以后要切换时,从 cdeb7c1 里找回(deploy.yaml 里写了)。
备份方法挪到 CLAUDE.md。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 21:36:33 +08:00
xuyueandClaude Opus 5.5 4014aaabbf build: 改成 Bun workspaces 的 monorepo
- 根目录新增 package.json(workspaces: client、server),两边共用一个 bun.lock,
  依赖版本与原来两个 lockfile 完全一致
- 根目录脚本:bun run dev / build / build:staging / test / typecheck / fmt,
  取代 dev.sh;client 的 start 改名为 dev,包名改为 webpreview-client
- workspaces 用 isolated 安装,补上 client 一直直接 import 却没声明的 @codemirror/view
- server 镜像改用仓库根目录做构建上下文,只装 server 的依赖;
  .dockerignore 用白名单,不再把 node_modules、数据库等发给 docker
- CI 在根目录安装并构建前端

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 20:57:29 +08:00
xuyueandClaude Opus 5.5 dde976cacb build: 前端改用 Bun + Vite,格式化改用 bun fmt
- 包管理和运行时换成 Bun:bun.lock 取代 package-lock.json,脚本用 bun --bun 运行,
  CI 改用 oven-sh/setup-bun(1.4.4,与后端镜像一致)
- 构建工具从 Rsbuild 换成 Vite 8,沿用 PUBLIC_ 环境变量前缀和 3000 端口;
  浏览器目标保持 Chrome 87 起(机房是 Chrome 105),用 plugin-legacy 按需注入
  core-js(toSorted 等),不生成旧浏览器的兼容包
- fmt 改用 Bun 自带的格式化,配置从 .prettierrc.toml 移到 bunfig.toml;
  prettier 包仍保留,编辑器里的「整理」按钮在浏览器里用它

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 19:10:50 +08:00
xuyueandClaude Opus 5.5 38137a828a ci: actions/checkout 和 setup-node 升到 v7(Node 24)
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:51:29 +08:00
xuyueandClaude Opus 5.5 4616bd9469 ci: 部署脚本出错即失败,git pull 显式指定 origin main
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
服务器上的 main 没有设置上游分支,git pull --ff-only 报错后脚本照常往下执行,
用旧代码重新构建,CI 却显示成功,导致 e6a3da1 等提交一直没上线。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:49:25 +08:00
xuyueandClaude Opus 5.5 4b8109caaa ci: 暂时停用 school 服务器的部署
Deploy / deploy (build, debian, 22) (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:02:43 +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 d1c6b8c201 chore: 将前端移动到 client/ 目录,准备合并为单仓库
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:01:25 +08: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 7a72c94238 fix 2026-05-07 08:45:34 -06:00
xuyue f3eed84f7c fix 2026-05-05 09:01:38 -06:00
xuyue 564f0b3f21 revert 2026-01-26 15:23:45 +08:00
xuyue 18a27f82fd test 2026-01-26 15:21:25 +08:00
xuyue 30f4195a8a fix 2026-01-26 15:17:39 +08:00
xuyue ded044ca57 fix 2026-01-26 15:12:20 +08:00
xuyue 9386f2e152 update action file 2026-01-26 15:11:30 +08:00
xuyue 6d6c69cf37 deploy api 2025-03-05 20:53:15 +08:00
xuyue d934111354 update 2025-02-23 22:25:46 +08:00