docs(plan): correct container names to podman compose underscores

This commit is contained in:
2026-09-08 14:54:34 +08:00
parent 497dc16604
commit bba82e5529
@@ -13,7 +13,7 @@ Spec: `docs/superpowers/specs/2026-09-08-cbz-chapter-continuous-reading-design.m
## Global Constraints
- 分支 `feat/ui-redesign`(当前已在此分支,勿切 master 提交)。
- 测试/构建在容器内跑:`docker exec -w /app booklib-web-1 npm run -s check`(= tsc --noEmit + vitest + vite build);单文件测试 `docker exec -w /app booklib-web-1 npx vitest run test/virt.test.ts`。
- 测试/构建在容器内跑:`docker exec -w /app booklib_web_1 npm run -s check`(= tsc --noEmit + vitest + vite build);单文件测试 `docker exec -w /app booklib_web_1 npx vitest run test/virt.test.ts`。
- localStorage 键:`cbz-continuous`("1"/"0",默认关)、`cbz-prefetch`(0–3 整数,非法回退 2);旧键 `cbz-mode` 废弃不再读写。
- 用户可见变更必须记 `docs/CHANGELOG_web.md`(英中各一行、相邻行、不同条目间空行),不重复进 `docs/CHANGELOG.md`。
- 全书页号语义不变:进度/书签 locator `{page}`、滑条、页码 HUD 均为全书页,不改后端。
@@ -73,7 +73,7 @@ it("chapterWin:ci 越界夹边;首章窗口含首章 start 之前的散页;prefe
- [ ] **Step 2: 跑测试确认失败**
Run: `docker exec -w /app booklib-web-1 npx vitest run test/virt.test.ts`
Run: `docker exec -w /app booklib_web_1 npx vitest run test/virt.test.ts`
Expected: FAIL —「chapterIndexAt is not exported」/ import 解析错误。
- [ ] **Step 3: 实现**(追加到 `frontend/src/lib/virt.ts` 末尾)
@@ -112,7 +112,7 @@ export function chapterWin(
- [ ] **Step 4: 跑测试确认通过(含既有 virt 用例回归)**
Run: `docker exec -w /app booklib-web-1 npx vitest run test/virt.test.ts`
Run: `docker exec -w /app booklib_web_1 npx vitest run test/virt.test.ts`
Expected: 全部 PASS(既有 4 条 + 新增 4 条)。
- [ ] **Step 5: Commit**
@@ -550,7 +550,7 @@ export default function CbzReader({ book, initialLocator, initialPercent, chrome
- [ ] **Step 2: 静态检查 + 单测全绿**
Run: `docker exec -w /app booklib-web-1 npm run -s check`
Run: `docker exec -w /app booklib_web_1 npm run -s check`
Expected: tsc 无错误、vitest 全绿、vite build 成功。若 tsc 报 `chapters!` 收窄或 unused import,就地修正后重跑。
- [ ] **Step 3: 追加 changelog**(`docs/CHANGELOG_web.md`,插入到 `### Added / 新增` 之后的**最上方**,与下一条之间留一个空行;英中文案见 spec《文档 / Docs》节,内容如下)
@@ -583,7 +583,7 @@ git commit -m "feat(cbz): chapter-scoped continuous reading — lock scroll at c
- [ ] **Step 4: 定位类入口验收**——拖滑条到别章页 = 跳章成功;书签 seek 跳他章;重进书恢复到他章原位;点按左右缘/←→ 翻一屏(非翻一张图)。
- [ ] **Step 5: 扁平包回归**——无目录的漫画:工具栏无连读/预读按钮、正常滚动到底只有全书末尾(无章末卡片);图片加载失败重试可用。
- [ ] **Step 6: 移动端手感抽查**——窄屏(DevTools 手机模拟)滚到章底回弹正常、无逐帧跳动;console 无 React 报错。
- [ ] **Step 7: 全量回归收尾**——`docker exec -w /app booklib-web-1 npm run -s check` 绿;有修复则 `git add -A && git commit -m "fix(cbz): <具体现象>"`。
- [ ] **Step 7: 全量回归收尾**——`docker exec -w /app booklib_web_1 npm run -s check` 绿;有修复则 `git add -A && git commit -m "fix(cbz): <具体现象>"`。
---