Files
gufa-code-king/.memory/worklog.json
kang 33c60aa08a 修阅读'一直载入中':novel.md gzip + 章节索引 + loading 状态
问题定位:
- novel.md 285KB 线上 Content-Type 被 nginx 默认识别为 application/octet-stream,gzip_types 无法命中,未压缩直传
- 用户网络慢时全本下载数秒甚至更久,一直'载入中 …'
- 附带问题:renderNovel 的 sections forEach idx 和 CHAPTERS 数组错位——'终章之后·当世界再次变聪明'这个非章节 ## heading 被 skip 掉后,之后所有第二部章节的 CHAPTERS[idx] 索引都偏移一位,映射到错误的章节图(不崩溃但显示错)

修复:
1. Dockerfile nginx conf 加 location = /novel.md 用 default_type 'text/markdown; charset=utf-8',覆盖默认 octet-stream,让 gzip_types 命中。gzip_comp_level 6 / gzip_min_length 512 / gzip_vary on。预计 285KB → ~90KB
2. renderNovel 里 ch 的解析从 CHAPTERS[idx] 改为 CHAPTERS.find(c => c.n === chN),按语义 n 精确匹配(主部 1-20 + 0 终章 / 第二部 -1 到 -8)。不再受 section 索引漂移影响
3. loadNovel 细化 loading 文案'正在下载全本 …' → '正在渲染章节 …';await setTimeout(0) 让浏览器先 paint;失败时补兜底直链'直接打开 novel.md'
4. imgPath 从 './images/${ch.img}' 加防守 (ch && ch.img),第二部 img=null 的章节不渲染 broken img src

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 15:50:40 +08:00

502 lines
13 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"entries": [
{
"ts": "2026-04-18T10:32:14+08:00",
"type": "commit",
"message": "立项:《古法代码之王》展示站",
"hash": "b8c0ab1",
"files_changed": 40
},
{
"ts": "2026-04-18T10:34:55+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 10:34 (+1)",
"hash": "db86989",
"files_changed": 1
},
{
"ts": "2026-04-18T10:40:28+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 10:40 (~1)",
"hash": "b45c0bb",
"files_changed": 1
},
{
"ts": "2026-04-18T10:44:08+08:00",
"type": "commit",
"message": "记录 Coolify 部署细节与踩坑",
"hash": "dd1135f",
"files_changed": 2
},
{
"ts": "2026-04-18T10:46:18+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 10:46 (~1)",
"hash": "5c795c0",
"files_changed": 1
},
{
"ts": "2026-04-18T10:52:08+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 10:52 (~1)",
"hash": "7af9754",
"files_changed": 1
},
{
"ts": "2026-04-18T10:57:51+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 10:57 (~1)",
"hash": "04ffbd6",
"files_changed": 1
},
{
"ts": "2026-04-18T11:03:23+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:03 (~1)",
"hash": "cf06b8a",
"files_changed": 1
},
{
"ts": "2026-04-18T11:09:07+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:09 (~1)",
"hash": "573d27e",
"files_changed": 1
},
{
"ts": "2026-04-18T11:14:35+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:14 (~1)",
"hash": "95a7b9a",
"files_changed": 1
},
{
"ts": "2026-04-18T11:20:03+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:20 (~1)",
"hash": "f38e61c",
"files_changed": 1
},
{
"ts": "2026-04-18T11:25:31+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:25 (~1)",
"hash": "496339f",
"files_changed": 1
},
{
"ts": "2026-04-18T11:30:59+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:30 (~2)",
"hash": "3682b72",
"files_changed": 2
},
{
"ts": "2026-04-18T11:35:36+08:00",
"type": "commit",
"message": "扩写 Ch14/Ch16/Ch19 三大高光章(+6500 字)",
"hash": "44a1701",
"files_changed": 3
},
{
"ts": "2026-04-18T11:36:30+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:36 (~1)",
"hash": "4b56de4",
"files_changed": 1
},
{
"ts": "2026-04-18T11:41:58+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:41 (~1)",
"hash": "3d60083",
"files_changed": 1
},
{
"ts": "2026-04-18T11:47:25+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:47 (~1)",
"hash": "352ed6a",
"files_changed": 1
},
{
"ts": "2026-04-18T11:52:37+08:00",
"type": "commit",
"message": "前中段插入四个成长节点(+3700 字):从年轻的爆发到中年的沉稳",
"hash": "8675134",
"files_changed": 3
},
{
"ts": "2026-04-18T11:52:53+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:52 (~1)",
"hash": "448527f",
"files_changed": 1
},
{
"ts": "2026-04-18T11:58:21+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 11:58 (~1)",
"hash": "790e72c",
"files_changed": 1
},
{
"ts": "2026-04-18T12:03:49+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:03 (~1)",
"hash": "780e9b5",
"files_changed": 1
},
{
"ts": "2026-04-18T12:09:17+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:09 (~1)",
"hash": "3e6f1cf",
"files_changed": 1
},
{
"ts": "2026-04-18T12:13:23+08:00",
"type": "commit",
"message": "人物闭环 + 终章环状收尾 + 危机伏笔强化(+4200 字)",
"hash": "087c004",
"files_changed": 3
},
{
"ts": "2026-04-18T12:14:46+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:14 (~1)",
"hash": "3c8c0e1",
"files_changed": 1
},
{
"ts": "2026-04-18T12:20:50+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:20 (~1)",
"hash": "d6b1d71",
"files_changed": 1
},
{
"ts": "2026-04-18T12:26:19+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:26 (~1)",
"hash": "6d87046",
"files_changed": 1
},
{
"ts": "2026-04-18T12:31:56+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:31 (~2)",
"hash": "1146216",
"files_changed": 2
},
{
"ts": "2026-04-18T12:34:45+08:00",
"type": "commit",
"message": "转向反英雄叙事:阴暗面 + 创伤应激 + 终章留悬念(+5500 字)",
"hash": "5faf84d",
"files_changed": 3
},
{
"ts": "2026-04-18T12:37:24+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:37 (~1)",
"hash": "52f0e25",
"files_changed": 1
},
{
"ts": "2026-04-18T12:42:51+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:42 (~1)",
"hash": "2e6e600",
"files_changed": 1
},
{
"ts": "2026-04-18T12:48:19+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:48 (~1)",
"hash": "e31d06b",
"files_changed": 1
},
{
"ts": "2026-04-18T12:53:58+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:53 (~1)",
"hash": "93823d9",
"files_changed": 1
},
{
"ts": "2026-04-18T12:59:27+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 12:59 (+2, ~1)",
"hash": "7a1c957",
"files_changed": 8
},
{
"ts": "2026-04-18T13:05:15+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:05 (+6, ~3, -6)",
"hash": "7035d0a",
"files_changed": 15
},
{
"ts": "2026-04-18T13:06:08+08:00",
"type": "commit",
"message": "新增 6 张扩集插图Gemini 3 Pro Image+ 整合到展示站",
"hash": "6a4384a",
"files_changed": 1
},
{
"ts": "2026-04-18T13:11:05+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:11 (~1)",
"hash": "1eeca8f",
"files_changed": 1
},
{
"ts": "2026-04-18T13:16:54+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:16 (~1)",
"hash": "96e1db4",
"files_changed": 1
},
{
"ts": "2026-04-18T13:22:43+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:22 (~1)",
"hash": "6801ca4",
"files_changed": 1
},
{
"ts": "2026-04-18T13:28:33+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:28 (~1)",
"hash": "47cc913",
"files_changed": 1
},
{
"ts": "2026-04-18T13:34:11+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:34 (~1)",
"hash": "61b93f5",
"files_changed": 1
},
{
"ts": "2026-04-18T13:39:40+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:39 (~1)",
"hash": "02a6f08",
"files_changed": 1
},
{
"ts": "2026-04-18T13:45:20+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:45 (~1)",
"hash": "7e07746",
"files_changed": 1
},
{
"ts": "2026-04-18T13:50:48+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:50 (~1)",
"hash": "ae704e3",
"files_changed": 1
},
{
"ts": "2026-04-18T13:58:31+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 13:56 (~1)",
"hash": "1c37564",
"files_changed": 1
},
{
"ts": "2026-04-18T14:02:36+08:00",
"type": "commit",
"message": "第二部 · 第一章《另一个看见了的人》(+304 行 / ~3800 字)",
"hash": "9b05fba",
"files_changed": 4
},
{
"ts": "2026-04-18T14:06:31+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 14:04 (~1)",
"hash": "2691af4",
"files_changed": 1
},
{
"ts": "2026-04-18T14:13:18+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 14:13 (~1)",
"hash": "b71ec7e",
"files_changed": 1
},
{
"ts": "2026-04-18T14:17:40+08:00",
"type": "commit",
"message": "第二部 · 第二章《他差一点把那些刺长回来》(+3800 字)",
"hash": "368fcfa",
"files_changed": 3
},
{
"ts": "2026-04-18T14:18:26+08:00",
"type": "commit",
"message": "网页适配第二部多章正则支持第N章中文/阿拉伯数字)+ CHAPTERS 加第二部 Ch2 条目",
"hash": "64b80f1",
"files_changed": 2
},
{
"ts": "2026-04-18T14:19:00+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 14:18 (~1)",
"hash": "6a4857c",
"files_changed": 1
},
{
"ts": "2026-04-18T14:24:52+08:00",
"type": "commit",
"message": "第二部 · 第三章《她说她找不到一个值得攻击的地方》(+3800 字)",
"hash": "c11b61b",
"files_changed": 4
},
{
"ts": "2026-04-18T14:25:11+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 14:25 (~1)",
"hash": "2239b6d",
"files_changed": 1
},
{
"ts": "2026-04-18T14:31:03+08:00",
"type": "commit",
"message": "第二部 · 第四章《那一夜,他关掉了屏幕》(+3800 字)",
"hash": "18670d2",
"files_changed": 4
},
{
"ts": "2026-04-18T14:31:20+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 14:31 (~1)",
"hash": "a0eb6fd",
"files_changed": 1
},
{
"ts": "2026-04-18T14:37:45+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 14:37 (~1)",
"hash": "1513e37",
"files_changed": 1
},
{
"ts": "2026-04-18T14:43:32+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 14:43 (~1)",
"hash": "cb74d3e",
"files_changed": 1
},
{
"ts": "2026-04-18T14:49:20+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 14:49 (~1)",
"hash": "d7378a0",
"files_changed": 1
},
{
"ts": "2026-04-18T14:55:41+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 14:54 (~1)",
"hash": "b23feae",
"files_changed": 1
},
{
"ts": "2026-04-18T15:02:58+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 15:02 (~3)",
"hash": "e1c603f",
"files_changed": 3
},
{
"ts": "2026-04-18T15:03:08+08:00",
"type": "commit",
"message": "第二部 · 第五章《让光回到所有看见的人身上》(+4500 字)",
"hash": "1f3126d",
"files_changed": 2
},
{
"ts": "2026-04-18T15:09:00+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 15:08 (~1)",
"hash": "47b480b",
"files_changed": 1
},
{
"ts": "2026-04-18T15:10:53+08:00",
"type": "commit",
"message": "第二部 · 第六章《那封邮件的作者》(+3800 字)",
"hash": "1d3034b",
"files_changed": 4
},
{
"ts": "2026-04-18T15:14:50+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 15:14 (~2)",
"hash": "cf4033e",
"files_changed": 2
},
{
"ts": "2026-04-18T15:17:20+08:00",
"type": "commit",
"message": "第二部 · 第七章《她记得的那碗面》(+3800 字)",
"hash": "fe9f24b",
"files_changed": 4
},
{
"ts": "2026-04-18T15:21:04+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 15:20 (~1)",
"hash": "c053bfc",
"files_changed": 1
},
{
"ts": "2026-04-18T15:23:25+08:00",
"type": "commit",
"message": "第二部 · 第八章《接下来这二十年,换我来写》(+3500 字) —— 全书·完",
"hash": "d78383e",
"files_changed": 4
},
{
"ts": "2026-04-18T15:28:26+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 15:26 (~1)",
"hash": "063675e",
"files_changed": 1
},
{
"ts": "2026-04-18T15:34:38+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 15:34 (~1)",
"hash": "c3cacbb",
"files_changed": 1
},
{
"ts": "2026-04-18T15:40:38+08:00",
"type": "commit",
"message": "worklog.json auto-save tail",
"hash": "3e10890",
"files_changed": 1
},
{
"ts": "2026-04-18T15:42:03+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 15:40 (~1)",
"hash": "d46152c",
"files_changed": 1
},
{
"ts": "2026-04-18T15:48:56+08:00",
"type": "commit",
"message": "auto-save 2026-04-18 15:48 (~2)",
"hash": "15b2812",
"files_changed": 2
}
]
}