mirror of
https://github.com/eternity4719/HowToLiveBetter.git
synced 2026-11-20 08:32:18 +08:00
检索页加「最近更新」:tools/updates.mjs 从 git 历史逐条比对生成 updates.json,页头报最近 7 天新增和改过的条数,侧栏可筛新增、改过和 7 天、30 天内,卡片标日期;光改措辞不算改过;sync-stats 自动重算,CI 统计检查加 --check,离线版内联
This commit is contained in:
@@ -87,10 +87,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # updates.mjs 要翻 git 历史
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
- run: node tools/sync-stats.mjs --check
|
||||
- run: node tools/updates.mjs --check
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -97,6 +97,7 @@ README 开头「这本书想回答的问题」表**一节只占一行**(2026-0
|
||||
电子版四样(EPUB、PDF、离线单文件、Anki 牌组),全由 `.github/workflows/book.yml` 在 main 上正文改动后自动生成,挂到固定 Release `epub-latest`(下载链接不变,README 引用的就是它),PR 只生成校验不发布;产物都进 `dist/`(已 gitignore)。**产物本身不入库**,正文几乎天天改,提交二进制只会过时和撑大历史(2026-09-18 issue #12 定的方案)。README 的结构解析和文件清单收在 `tools/lib/book.mjs`,各套构建共用,新增节或长文不用改脚本。**但新增 docs 长文必须手工挂四处链接**(2026-09-21 连漏两次,两次都是用户发现的):① README 顶部导航表格里「长文」那一格(HTML 表格,单元格里必须留空行、用 markdown 写成「[x](docs/x.md)」,写成 `<a href>` 就不被下面那个正则认;2026-09-28 导航区改成表格后不再带「(长文)」后缀);② README 末尾「长文另见」那句;③ README 对应节的目录行(写成「长文见 [docs/x.md](docs/x.md)。」);④ index.html 里 `class="doc-links"` 那一行,URL 要百分号编码。核对办法:`grep -c "docs/<名>.md" README.md` 应为 3,`grep -c "<名>" index.html` 应为 1。第 ① 处是硬性的——`book.mjs` 第 54 行靠正则 `\]\((docs/[^)#/]+\.md)\)` 从 README 里扒长文清单,只在 book/ 条目里链接,EPUB、PDF、离线单文件三套构建都收不到它。sync-stats.ps1 不检查这三处。
|
||||
- **超长的收益、备注和来源在四个出口里都拆成子条目,正文 md 不动**:收益、备注超过 300 字的,在句号处、且下一句开始引用新依据(「X看《…》」「《某条例》」「刑法第…条」「另一项试验」「案例二」等)时断开;来源按括号外的「;」一条一行。规则有两份,`tools/lib/split-items.mjs` 给 EPUB、PDF,index.html 里 `// <split-rules>` 那段给检索网页和离线版,**改一边要同步改另一边**,`node tools/check-split.mjs` 拿全书逐条比对两边结果,也查拆完能不能逐字拼回原文、`**` 有没有被拆开(CI 里是「拆分规则一致性检查」job)。正文仍一个字段一行,index.html 按行解析、sync-stats 按「- 来源:」行数链接都不受影响。
|
||||
- **生活自查页 `selfcheck.html`**(2026-10-11 加,入口在 index.html 页头、README 导航表格「自查」行、sitemap):一组是否题,每题按「第几节 + 标题里的一段字」对到一条条目,不写条号,结果页按做到比例、性价比和成本标签里的毅力分堆汇总。**故意不算「少活几年」**:各条的风险来自不同研究、互相重叠,不能相乘。改条目标题时,如果删掉了某题用的那段字,这题会静默消失,控制台报错;改完标题用 `grep -o "key:'[^']*'" selfcheck.html` 对一遍。离线单文件版不带它,build.mjs 把链接改写成线上地址。
|
||||
- **最近更新 `updates.json`**(2026-10-15 加,读者不知道最近改了什么、只能从头看):`tools/updates.mjs` 翻 main 的第一父提交,按标题逐条比对 book/,记下每条哪天新增、正文哪天实质改过,检索页据此在页头报「最近 7 天新增 N 条、改过 M 条」,侧栏有「最近更新」筛选,卡片上标日期。不看提交信息。光改措辞不算「改过」:要标题或证据等级变了、某栏数字变了、或某栏加长不少才算;来源栏、成本标签、条号和锚点的变动都不算。起算日 2026-10-01,之前的条目不标。sync-stats 会自动跑它,工作区里没提交的改动记成当天;CI 的「统计数字检查」job 用 `--check` 比对,只比条目和栏目、不比日期,所以 checkout 要 `fetch-depth: 0`。离线单文件版把它内联进 `__CORPUS__.updates`。
|
||||
- EPUB:`tools/epub/build.mjs`(只依赖 marked,zip 用 `tools/lib/zip.mjs` 自己打,Anki 牌组也用它),CI 里跑 epubcheck。本地 `cd tools/epub && npm ci && npm run build`。
|
||||
- 离线单文件 HTML:`tools/offline/build.mjs`(零依赖)把正文**和 docs 长文**内联进 index.html 的 `window.__CORPUS__`(`parts` 放 book/、`docs` 放长文),双击就能看、离线可用;index.html 的 `init()` 认这个变量就不发请求,改 init 的取数逻辑要同时顾到这条路。**检索页的长文是就地弹窗打开的,不跳 GitHub**:点击处统一拦「指向 `docs/*.md` 的 GitHub 链接」(页头那行长文、条目备注里 `hrefOf()` 转出来的相对链接,形状都是这一个),弹窗自带一份可点的章节目录和 scrollspy,markdown 由 index.html 里那个只认标题/段落/列表/表格的小渲染器处理,不引库。长文里如果开始用引用块、代码块这类新语法,要同步加进那个渲染器。
|
||||
- PDF:`tools/pdf/build.mjs` + `tools/pdf/template.typ`,pandoc 转 typst、typst 排版(A4、每节另起一页、页眉带节名、目录带页码、书签到条目级)。本地要 pandoc ≥ 3.1 和 typst ≥ 0.13,用环境变量 `PANDOC`、`TYPST` 指到可执行文件;CI 里按 workflow 顶部 env 里钉的版本下载。版面只改 template.typ。
|
||||
|
||||
+66
-3
@@ -216,6 +216,8 @@ html.dark .switch .sun{display:none} html.dark .switch .moon{display:block}
|
||||
.badge.r3{background:var(--brand-soft);color:var(--brand-1)}
|
||||
.badge.r2{background:var(--green-soft);color:var(--green-1)}
|
||||
.badge.r1{background:var(--gray-soft);color:var(--gray-1)}
|
||||
.badge.upd{background:none;box-shadow:inset 0 0 0 1px var(--brand-3);color:var(--brand-1);font-weight:500}
|
||||
.chips + .chips{margin-top:6px}
|
||||
.human{margin:0 0 14px;padding:10px 14px;border-left:2px solid var(--brand-1);background:var(--brand-soft);border-radius:0 6px 6px 0;font-size:15px;line-height:1.75;color:var(--t1);overflow-wrap:anywhere}
|
||||
.rows{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;font-size:14px;line-height:1.75}
|
||||
.rows .k{color:var(--t3);font-weight:500;font-size:13px;line-height:1.75;padding-top:1px}
|
||||
@@ -417,6 +419,17 @@ abbr.term:hover{border-bottom-color:var(--brand-1);color:var(--brand-1)}
|
||||
<button class="chip" data-v="无" aria-pressed="false">以上都不是</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group" id="g-upd" hidden>
|
||||
<div class="gt">最近更新 <small>光改措辞的不算</small></div>
|
||||
<div class="chips" data-dim="upd">
|
||||
<button class="chip" data-v="新增" aria-pressed="false">新增的</button>
|
||||
<button class="chip" data-v="改过" aria-pressed="false">改过的</button>
|
||||
</div>
|
||||
<div class="chips" data-dim="days">
|
||||
<button class="chip" data-v="7" aria-pressed="false">7 天内</button>
|
||||
<button class="chip" data-v="30" aria-pressed="false">30 天内</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div class="gt">章节</div>
|
||||
<div class="sec-links" id="f-sec" data-dim="sec"></div>
|
||||
@@ -496,6 +509,7 @@ abbr.term:hover{border-bottom-color:var(--brand-1);color:var(--brand-1)}
|
||||
<p>不用全做:这是一份备选单,不是任务清单。挑走一两条就算数,剩下的需要时再回来查——想挑省力的,左边把「花钱」选「不花钱」、「要毅力」选「不用」,剩下的就是。作者自己也没做到其中大部分。正文里带虚线的「第 X 条」可以点开,就地看那条写了什么,不用自己翻过去。</p>
|
||||
<p>书里的内容可能过时,也可能有错。不少政策各地执行不一样。真去办事、看病、打官司时,以当地部门、医生和律师的说法为准。发现写错了,欢迎<a href="https://github.com/eternity4719/HowToLiveBetter/issues">提 issue</a>。</p>
|
||||
<div class="stat" aria-live="polite">当前显示 <b id="cnt">–</b> 条,共 <span id="tot">–</span> 条</div>
|
||||
<div class="doc-links" id="upd-line" hidden></div>
|
||||
<div class="doc-links">生活自查:<a href="selfcheck.html">回答几十道是否题,看看书里哪些事你还没做到</a></div>
|
||||
<div class="doc-links">长文:<a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E9%81%87%E5%88%B0%E9%99%8C%E7%94%9F%E4%BA%BA%E5%87%BA%E4%BA%8B%E8%AF%A5%E4%B8%8D%E8%AF%A5%E5%81%9C.md">遇到陌生人出事该不该停</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E5%AE%B6%E5%BA%AD%E5%BA%94%E6%80%A5%E8%A3%85%E5%A4%87%E6%B8%85%E5%8D%95.md">家庭应急装备清单</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E7%BB%93%E5%A9%9A%E5%88%92%E4%B8%8D%E5%88%92%E7%AE%97.md">结婚划不划算</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E5%81%9A%E5%B9%B3%E5%8F%B0%E8%A6%81%E5%8A%9E%E5%93%AA%E4%BA%9B%E8%AF%81.md">做平台要办哪些证</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E7%94%9F%E7%89%A9%E9%92%9F%E5%92%8C%E5%A4%9C%E7%8F%AD.md">生物钟和夜班</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E8%A2%AB%E8%A3%81%E4%BA%86%E4%B9%8B%E5%90%8E%E5%85%88%E5%81%9A%E4%BB%80%E4%B9%88.md">被裁了之后先做什么</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E5%AD%A9%E5%AD%90%E5%87%BA%E7%94%9F%E5%89%8D%E5%90%8E%E8%A6%81%E5%8A%9E%E7%9A%84%E4%BA%8B.md">孩子出生前后要办的事</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E5%88%9A%E7%A1%AE%E8%AF%8A%E6%85%A2%E6%80%A7%E7%97%85%E4%B9%8B%E5%90%8E.md">刚确诊慢性病之后</a> · <a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/docs/%E6%8D%A2%E5%B7%A5%E4%BD%9C%E3%80%81%E6%8D%A2%E5%9F%8E%E5%B8%82%E4%B9%8B%E5%89%8D.md">换工作、换城市之前</a> ·<a href="https://github.com/eternity4719/HowToLiveBetter/tree/main/docs/%E6%A0%B8%E5%AE%9E%E8%AE%B0%E5%BD%95">来源核实记录</a></div>
|
||||
<div class="doc-links">AI 助手:<a href="https://github.com/eternity4719/HowToLiveBetter/blob/main/skills/life-decision-guide/README.md">让 Claude Code 或 Codex 照这本书回答你的问题(skill 装法)</a></div>
|
||||
@@ -1116,6 +1130,12 @@ function build(sections){
|
||||
if (e.who.length) add('plain', '适用:' + e.who.map(g => g.map(v => WHO_LABEL[v] || v).join('且').replace(/且(\d)/g, '且 $1')).join('、'));
|
||||
if (e.dispute) add('danger', '争议');
|
||||
if (e.todo) add('warn', '含待核实');
|
||||
e.upd = updOf(e);
|
||||
if (e.upd && e.upd.age <= 30){
|
||||
const [, m, d] = e.upd.date.split('-').map(Number);
|
||||
add('upd', `${m} 月 ${d} 日${e.upd.kind}`);
|
||||
if (e.upd.fields) badges.lastChild.title = '这次改了:' + e.upd.fields.join('、');
|
||||
}
|
||||
block.appendChild(c);
|
||||
const card = {e, el:c, key:null, vis:false, f:{t:c.querySelector('.t'), cost:c.querySelector('.cost'), human:c.querySelector('.human'), gain:c.querySelector('.gain'), note:c.querySelector('.note'), src:c.querySelector('.src .body'), srcN:c.querySelector('.src summary .cnt'), details:c.querySelector('.src')}};
|
||||
renderCard(card, [], '');
|
||||
@@ -1137,14 +1157,41 @@ function buildGlossary(){
|
||||
}
|
||||
|
||||
/* ---------- 筛选状态 ---------- */
|
||||
const DIMS = ['sec','ratio','lens','grade','money','time','will','who'];
|
||||
const DIMS = ['sec','ratio','lens','grade','money','time','will','who','upd','days'];
|
||||
/* 最近更新:updates.json 由 tools/updates.mjs 从 git 历史生成,记着哪条哪天新增、正文哪天改过(光改措辞不算) */
|
||||
let UPD = {};
|
||||
const TODAY = Date.parse(new Intl.DateTimeFormat('sv-SE').format(new Date()));
|
||||
const ageOf = d => Math.round((TODAY - Date.parse(d)) / 864e5);
|
||||
function updOf(e){
|
||||
const u = UPD[`${e.sec}-${e.n}`]; if (!u) return null;
|
||||
return u.added ? {kind:'新增', date:u.added, age:ageOf(u.added)} : {kind:'改过', date:u.changed, age:ageOf(u.changed), fields:u.fields};
|
||||
}
|
||||
function fitsUpd(e){
|
||||
if (!state.upd.size && !state.days.size) return true;
|
||||
const u = e.upd; if (!u) return false;
|
||||
if (state.upd.size && !state.upd.has(u.kind)) return false;
|
||||
return !state.days.size || u.age <= Number([...state.days][0]);
|
||||
}
|
||||
// 页头那行:7 天内有更新就报 7 天的,没有就报 30 天的,都没有就不显示
|
||||
function buildUpdLine(){
|
||||
if (!Object.keys(UPD).length) return;
|
||||
document.getElementById('g-upd').hidden = false;
|
||||
const count = w => { let a = 0, c = 0; for (const {e} of CARDS) if (e.upd && e.upd.age <= w) e.upd.kind === '新增' ? a++ : c++; return [a, c]; };
|
||||
let w = 7, [a, c] = count(7);
|
||||
if (!a && !c) { w = 30; [a, c] = count(30); }
|
||||
if (!a && !c) return;
|
||||
const link = (kind, n) => `<a href="?upd=${kind}&days=${w}" data-upd="${kind}" data-days="${w}">${kind} ${n} 条</a>`;
|
||||
const line = document.getElementById('upd-line');
|
||||
line.innerHTML = `最近 ${w} 天更新:` + [a && link('新增', a), c && link('改过', c)].filter(Boolean).join(',') + '。光改措辞的不算。';
|
||||
line.hidden = false;
|
||||
}
|
||||
// 「我的情况」:一项都没勾就不筛;勾了「都不是」等于只看人人适用的条目。勾了 60 岁以上的自然也算 35 岁以上。
|
||||
function fitsMe(e){
|
||||
if (!state.who.size || !e.who.length) return true;
|
||||
const has = v => state.who.has(v) || (v === '35岁' && state.who.has('60岁'));
|
||||
return e.who.some(g => g.every(has));
|
||||
}
|
||||
const state = { q:'', sec:new Set(), ratio:new Set(), lens:new Set(), grade:new Set(), money:new Set(), time:new Set(), will:new Set(), who:new Set(), dispute:false, todo:false };
|
||||
const state = { q:'', sec:new Set(), ratio:new Set(), lens:new Set(), grade:new Set(), money:new Set(), time:new Set(), will:new Set(), who:new Set(), upd:new Set(), days:new Set(), dispute:false, todo:false };
|
||||
function readUrl(){
|
||||
const p = new URLSearchParams(location.search);
|
||||
state.q = p.get('q') || '';
|
||||
@@ -1202,6 +1249,7 @@ function apply(){
|
||||
if (ok && state.time.size && !state.time.has(e.time)) ok = false;
|
||||
if (ok && state.will.size && !state.will.has(e.will)) ok = false;
|
||||
if (ok && !fitsMe(e)) ok = false;
|
||||
if (ok && !fitsUpd(e)) ok = false;
|
||||
if (ok && state.dispute && !e.dispute) ok = false;
|
||||
if (ok && state.todo && !e.todo) ok = false;
|
||||
if (ok && terms.length && !terms.every(t => e.hay.includes(t))) ok = false;
|
||||
@@ -1255,6 +1303,9 @@ function wire(){
|
||||
if (dim === 'sec'){
|
||||
// 章节单选:再点一次已选中的不取消,免得双击退回全部章节;要看全部点「全部章节」
|
||||
if (v === '') set.clear(); else { set.clear(); set.add(v); }
|
||||
} else if (dim === 'days'){
|
||||
// 时间范围单选,再点一次取消
|
||||
const on = !set.has(v); set.clear(); if (on) set.add(v);
|
||||
} else if (dim === 'who'){
|
||||
// 「都不是」和具体情况互斥:点了一边就清掉另一边
|
||||
const on = !set.has(v);
|
||||
@@ -1278,6 +1329,14 @@ function wire(){
|
||||
clearTimeout(qtm); qtm = setTimeout(reportSearch, 2000);
|
||||
});
|
||||
const reset = () => { state.q=''; for (const d of DIMS) state[d].clear(); state.dispute=false; state.todo=false; apply(); toTop(); };
|
||||
// 页头「最近 N 天更新」:点了就只看这一类,别的筛选清掉,免得读者以为没几条
|
||||
document.getElementById('upd-line').addEventListener('click', ev => {
|
||||
const a = ev.target.closest('a[data-upd]'); if (!a) return;
|
||||
ev.preventDefault();
|
||||
state.q = ''; for (const d of DIMS) state[d].clear(); state.dispute = false; state.todo = false;
|
||||
state.upd.add(a.dataset.upd); state.days.add(a.dataset.days);
|
||||
apply(); toTop();
|
||||
});
|
||||
document.getElementById('reset').addEventListener('click', reset);
|
||||
document.getElementById('reset2').addEventListener('click', reset);
|
||||
document.addEventListener('keydown', e => {
|
||||
@@ -1550,6 +1609,9 @@ document.addEventListener('keydown', ev => { if (ev.key === 'Escape' && !TIP.hid
|
||||
const md = EMBED ? EMBED.readme : await readText('README.md');
|
||||
const files = [...new Set(Array.from(md.matchAll(/\]\((book\/[^)]+\.md)\)/g), m => m[1]))].sort();
|
||||
if (!files.length) throw new Error('empty');
|
||||
// 更新记录取不到不影响读正文,只是不显示「最近更新」
|
||||
const updP = EMBED ? Promise.resolve(EMBED.updates ?? null)
|
||||
: fetch('updates.json', {cache:'no-cache'}).then(r => r.ok ? r.json() : null).catch(() => null);
|
||||
let done = 0;
|
||||
if (!EMBED) progress(0, files.length);
|
||||
const parts = await Promise.all(files.map(async f => {
|
||||
@@ -1566,10 +1628,11 @@ document.addEventListener('keydown', ev => { if (ev.key === 'Escape' && !TIP.hid
|
||||
const sections = parseReadme(parts.join('\n\n'));
|
||||
if (!sections.length) throw new Error('empty');
|
||||
GLOSS = parseGlossary(md);
|
||||
UPD = (await updP)?.items ?? {};
|
||||
PERF.log('解析正文', t1, files.length + ' 个文件');
|
||||
status.remove();
|
||||
const t2 = performance.now(); build(sections); PERF.log('建 DOM', t2, CARDS.length + ' 张卡');
|
||||
buildGlossary(); readUrl(); wire(); apply();
|
||||
buildGlossary(); buildUpdLine(); readUrl(); wire(); apply();
|
||||
PERF.mark(`DOM 节点 ${document.getElementsByTagName('*').length},术语 ${GLOSS.length}`);
|
||||
if (location.hash){
|
||||
let target = document.getElementById(location.hash.slice(1));
|
||||
|
||||
@@ -21,6 +21,8 @@ const corpus = {
|
||||
readme,
|
||||
parts: Object.fromEntries(files.map(f => [f, read(f)])),
|
||||
docs: Object.fromEntries(docs.map(f => [f, read(f)])),
|
||||
// 最近更新的标记,tools/updates.mjs 生成、入库
|
||||
updates: JSON.parse(read('updates.json')),
|
||||
};
|
||||
// </script 会提前关掉脚本标签;\/ 在 JS 字符串里就是 /,内容不变
|
||||
const corpusJson = JSON.stringify(corpus).replace(/<\/script/gi, '<\\/script');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// 统计对齐:改完条目跑一次。按顺序做四件事:
|
||||
// ① 重算全书的统计数字,回写 README.md、index.html、tools/og.html;
|
||||
// ② 调 check-refs.mjs 重算 docs/引用对照.md;
|
||||
// ② 调 check-refs.mjs 重算 docs/引用对照.md,调 updates.mjs 重算 updates.json;
|
||||
// ③ 调 check-plain.mjs 查说人话,不合格只提示不中断;
|
||||
// ④ 用无头 Chrome 把 tools/og.html 重新截成 og.png。
|
||||
//
|
||||
@@ -142,6 +142,10 @@ console.log('');
|
||||
if (runTool('check-refs.mjs') !== 0) throw new Error('check-refs.mjs 失败');
|
||||
console.log('提交前扫一眼 docs/引用对照.md 的 diff:条号没动而「指向的条目」变了,就是被顺延撞歪的引用。');
|
||||
|
||||
// 最近更新:检索页的「新增」「改过」标记,工作区里没提交的改动算今天
|
||||
console.log('');
|
||||
if (runTool('updates.mjs') !== 0) throw new Error('updates.mjs 失败');
|
||||
|
||||
// ③ 说人话检查只提示不中断:数字已经同步完了,卡在这里反而让人以为统计没更新。CI 里它会红
|
||||
console.log('');
|
||||
if (runTool('check-plain.mjs') !== 0) console.log('上面列出的说人话不合格,提交前改掉(规则见 tools/check-plain.mjs 文件头)。');
|
||||
|
||||
@@ -0,0 +1,197 @@
|
||||
// 最近更新:翻 git 历史,逐条比对 book/ 的条目,记下每条是哪天新增的、正文最后一次改是哪天,
|
||||
// 写进根目录的 updates.json,检索页拿它标「新增」「改过」和做「最近更新」筛选。
|
||||
//
|
||||
// node tools/updates.mjs # 重新生成 updates.json(sync-stats.mjs 会自动调用)
|
||||
// node tools/updates.mjs --check # 只比对不写,过时了退出码 1(CI 用,要 fetch-depth: 0)
|
||||
//
|
||||
// 不用提交信息:那是写给维护者的(「同步导览」「补锚点」),读者看不懂。
|
||||
// 条目按标题认,不按条号认:删一条,后面的条号全变。标题按规矩只许加字,所以前后两版
|
||||
// 标题对不上时再按标题和正文的相似度配对,配不上的才算新增或删除。
|
||||
// 只有读者看得见的正文变了才算「改过」:标题、成本、说人话、收益、证据等级、备注。
|
||||
// 来源栏、成本标签、条号顺延、「第 N 条(锚点)」里的条号和锚点词变了都不算,不然天天满屏「改过」。
|
||||
// 只走 main 的第一父提交:本地 merge --no-ff 合进来的 PR 算在合并那天。
|
||||
// 起算日之前的条目一律当老条目,不标新增。日期按北京时间。
|
||||
// --check 只比对「哪些条目、新增还是改过、改了哪几栏」,不比日期:PR 在 CI 上是临时合并提交,
|
||||
// 日期必然和本地生成时差一点。
|
||||
import { readFileSync, writeFileSync, readdirSync, existsSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import { ROOT } from './lib/book.mjs';
|
||||
|
||||
const CHECK = process.argv.includes('--check');
|
||||
const SINCE = '2026-10-01';
|
||||
const OUT = 'updates.json';
|
||||
const FIELDS = ['标题', '成本', '说人话', '收益', '证据等级', '备注'];
|
||||
|
||||
const day = sec => new Intl.DateTimeFormat('sv-SE', { timeZone: 'Asia/Shanghai' }).format(new Date(sec * 1000));
|
||||
const git = (args, input) => {
|
||||
const r = spawnSync('git', ['-c', 'core.quotepath=false', ...args], { cwd: ROOT, input, maxBuffer: 1 << 30 });
|
||||
if (r.status !== 0) throw new Error(`git ${args.join(' ')} 失败:${r.stderr}`);
|
||||
return r.stdout;
|
||||
};
|
||||
|
||||
// ---------- 解析 ----------
|
||||
// 引用里的条号和锚点会随顺延和补锚点变,抹掉再比
|
||||
const norm = s => s.replace(/\s+/g, '')
|
||||
.replace(/第\d+(节|条)/g, '第#$1')
|
||||
.replace(/(第#条)([^()]{1,30})/g, '$1');
|
||||
|
||||
function parse(text) {
|
||||
const out = [];
|
||||
let sec = null, e = null;
|
||||
for (const line of text.split(/\r?\n/)) {
|
||||
let m;
|
||||
if ((m = /^# (\d+)\. /.exec(line))) { sec = m[1]; continue; }
|
||||
if ((m = /^### (\d+)\. (.+)$/.exec(line)) && sec) {
|
||||
e = { key: `${sec}-${m[1]}`, f: { 标题: m[2].trim() } };
|
||||
out.push(e); continue;
|
||||
}
|
||||
if (!e) continue;
|
||||
if ((m = /^- (成本|说人话|收益|证据等级|备注):(.*)$/.exec(line))) e.f[m[1]] = m[2].trim();
|
||||
}
|
||||
for (const x of out) x.n = Object.fromEntries(FIELDS.map(k => [k, norm(x.f[k] ?? '')]));
|
||||
return out;
|
||||
}
|
||||
|
||||
// 中文按相邻两字切片算相似度
|
||||
const grams = s => { const g = new Set(); for (let i = 0; i < s.length - 1; i++) g.add(s.slice(i, i + 2)); return g; };
|
||||
function dice(a, b) {
|
||||
if (!a.size || !b.size) return 0;
|
||||
let n = 0; for (const x of a) if (b.has(x)) n++;
|
||||
return 2 * n / (a.size + b.size);
|
||||
}
|
||||
|
||||
// 前一版的条目(带追踪信息)和这一版配对,返回这一版的追踪列表
|
||||
function step(prev, cur, date) {
|
||||
const next = new Array(cur.length);
|
||||
const byTitle = new Map();
|
||||
prev.forEach((p, i) => { const k = p.e.n.标题; if (!byTitle.has(k)) byTitle.set(k, []); byTitle.get(k).push(i); });
|
||||
const used = new Set();
|
||||
// ① 标题一字不差:同名的优先配同一个节号
|
||||
cur.forEach((c, j) => {
|
||||
const cand = (byTitle.get(c.n.标题) ?? []).filter(i => !used.has(i));
|
||||
if (!cand.length) return;
|
||||
const sec = c.key.split('-')[0];
|
||||
const i = cand.find(i => prev[i].e.key.split('-')[0] === sec) ?? cand[0];
|
||||
used.add(i); next[j] = { ...prev[i], e: c };
|
||||
});
|
||||
// ② 剩下的按标题和正文相似度配
|
||||
const restP = prev.map((p, i) => i).filter(i => !used.has(i));
|
||||
const restC = cur.map((c, j) => j).filter(j => !next[j]);
|
||||
if (restP.length && restC.length) {
|
||||
const sig = e => ({ t: grams(e.n.标题), b: grams(e.n.说人话 + e.n.收益) });
|
||||
const sp = new Map(restP.map(i => [i, sig(prev[i].e)]));
|
||||
const pairs = [];
|
||||
for (const j of restC) {
|
||||
const sc = sig(cur[j]);
|
||||
for (const i of restP) {
|
||||
const s = Math.max(dice(sc.t, sp.get(i).t), dice(sc.b, sp.get(i).b) * 0.9);
|
||||
if (s >= 0.5) pairs.push([s, i, j]);
|
||||
}
|
||||
}
|
||||
pairs.sort((a, b) => b[0] - a[0]);
|
||||
for (const [, i, j] of pairs) {
|
||||
if (used.has(i) || next[j]) continue;
|
||||
used.add(i); next[j] = { ...prev[i], e: cur[j] };
|
||||
}
|
||||
}
|
||||
cur.forEach((c, j) => { if (!next[j]) next[j] = { e: c, added: date, changed: null, fields: [] }; });
|
||||
return next;
|
||||
}
|
||||
|
||||
// 光改措辞不算「改过」:2026-10-14 全书审校一次改了五百多条的说人话和备注,全标上读者会被淹没。
|
||||
// 算数的是:标题或证据等级变了;栏里的数字变了(新数据、改正的数字);或者一栏加长了不少(补了新内容)。
|
||||
const nums = s => (s.match(/\d+(?:\.\d+)?/g) ?? []).sort().join();
|
||||
function real(k, a, b) {
|
||||
if (a === b) return false;
|
||||
if (k === '标题' || k === '证据等级') return true;
|
||||
return nums(a) !== nums(b) || b.length - a.length >= Math.max(60, a.length / 4);
|
||||
}
|
||||
|
||||
// 配对之后逐栏比,记下改了哪几栏;同一天改了几轮的,栏目并在一起
|
||||
function advance(prev, cur, date) {
|
||||
const next = step(prev, cur, date);
|
||||
const old = new Map(prev.map(p => [p.id, p.e]));
|
||||
for (const t of next) {
|
||||
if (t.id === undefined) { t.id = SEQ++; continue; }
|
||||
const o = old.get(t.id);
|
||||
const diff = FIELDS.filter(k => real(k, o.n[k], t.e.n[k]));
|
||||
if (!diff.length || t.added === date) continue;
|
||||
t.fields = t.changed === date ? [...new Set([...t.fields, ...diff])] : diff;
|
||||
t.changed = date;
|
||||
}
|
||||
return next;
|
||||
}
|
||||
let SEQ = 0;
|
||||
|
||||
// ---------- 取历史 ----------
|
||||
const sinceTs = Math.floor(new Date(`${SINCE}T00:00:00+08:00`).getTime() / 1000);
|
||||
const base = git(['rev-list', '-1', '--first-parent', `--before=${sinceTs}`, 'HEAD']).toString().trim();
|
||||
if (!base) throw new Error(`找不到 ${SINCE} 之前的提交。CI 上 checkout 要加 fetch-depth: 0`);
|
||||
const log = git(['log', '--first-parent', '--reverse', '--diff-merges=first-parent', '--name-only',
|
||||
'--format=@%H %ct', `${base}..HEAD`, '--', 'book/']).toString();
|
||||
const commits = [];
|
||||
for (const line of log.split('\n')) {
|
||||
if (line.startsWith('@')) { const [h, t] = line.slice(1).split(' '); commits.push({ h, date: day(Number(t)), files: [] }); continue; }
|
||||
if (/^book\/.+\.md$/.test(line.trim())) commits.at(-1).files.push(line.trim());
|
||||
}
|
||||
const baseFiles = git(['ls-tree', '--name-only', base, 'book/']).toString().split('\n').filter(f => f.endsWith('.md'));
|
||||
|
||||
// 一次 cat-file --batch 取完所有要的版本,Windows 上逐个起 git 进程太慢
|
||||
const reqs = [...baseFiles.map(f => `${base}:${f}`), ...commits.flatMap(c => c.files.map(f => `${c.h}:${f}`))];
|
||||
const blob = git(['cat-file', '--batch'], reqs.join('\n') + '\n');
|
||||
const got = new Map();
|
||||
let pos = 0;
|
||||
for (const r of reqs) {
|
||||
const nl = blob.indexOf(10, pos);
|
||||
const head = blob.subarray(pos, nl).toString();
|
||||
pos = nl + 1;
|
||||
if (head.endsWith(' missing')) { got.set(r, null); continue; }
|
||||
const size = Number(head.split(' ')[2]);
|
||||
got.set(r, blob.subarray(pos, pos + size).toString('utf8'));
|
||||
pos += size + 1;
|
||||
}
|
||||
|
||||
// ---------- 逐版比对 ----------
|
||||
const files = new Map(baseFiles.map(f => [f, got.get(`${base}:${f}`)]));
|
||||
const snapshot = () => [...files.keys()].sort().flatMap(f => files.get(f) ? parse(files.get(f)) : []);
|
||||
let track = advance([], snapshot(), null);
|
||||
for (const c of commits) {
|
||||
for (const f of c.files) files.set(f, got.get(`${c.h}:${f}`));
|
||||
track = advance(track, snapshot(), c.date);
|
||||
}
|
||||
// 工作区里还没提交的改动算今天:sync-stats 在提交前跑,生成的就是提交后的样子
|
||||
const disk = readdirSync(join(ROOT, 'book')).filter(f => f.endsWith('.md')).map(f => `book/${f}`);
|
||||
const dirty = disk.some(f => readFileSync(join(ROOT, f), 'utf8').replace(/\r\n/g, '\n') !== files.get(f)?.replace(/\r\n/g, '\n'))
|
||||
|| [...files.keys()].some(f => files.get(f) && !disk.includes(f));
|
||||
if (dirty) {
|
||||
files.clear();
|
||||
for (const f of disk) files.set(f, readFileSync(join(ROOT, f), 'utf8'));
|
||||
track = advance(track, snapshot(), day(Date.now() / 1000));
|
||||
}
|
||||
|
||||
// ---------- 输出 ----------
|
||||
const items = {};
|
||||
for (const t of track) {
|
||||
if (t.added) items[t.e.key] = { added: t.added };
|
||||
else if (t.changed) items[t.e.key] = { changed: t.changed, fields: FIELDS.filter(k => t.fields.includes(k)) };
|
||||
}
|
||||
const keys = Object.keys(items).sort((a, b) => {
|
||||
const [x1, y1] = a.split('-').map(Number), [x2, y2] = b.split('-').map(Number);
|
||||
return x1 - x2 || y1 - y2;
|
||||
});
|
||||
// 一条一行,diff 读得懂
|
||||
const json = `{"since":"${SINCE}","items":{\n${keys.map(k => `${JSON.stringify(k)}:${JSON.stringify(items[k])}`).join(',\n')}\n}}\n`;
|
||||
|
||||
const nAdd = keys.filter(k => items[k].added).length, nChg = keys.length - nAdd;
|
||||
console.log(`最近更新:${SINCE} 起新增 ${nAdd} 条、改过 ${nChg} 条(比对了 ${commits.length} 个提交${dirty ? '加工作区' : ''})`);
|
||||
|
||||
const strip = s => JSON.stringify(Object.fromEntries(Object.entries(JSON.parse(s).items)
|
||||
.map(([k, v]) => [k, v.added ? 'added' : v.fields.join()])));
|
||||
const old = existsSync(join(ROOT, OUT)) ? readFileSync(join(ROOT, OUT), 'utf8') : '';
|
||||
if (CHECK) {
|
||||
if (old && strip(old) === strip(json)) { console.log('updates.json 检查通过'); process.exit(0); }
|
||||
console.log('updates.json 过时了。本地跑 node tools/sync-stats.mjs(或 node tools/updates.mjs),然后提交。');
|
||||
process.exit(1);
|
||||
}
|
||||
if (old.replace(/\r\n/g, '\n') !== json) writeFileSync(join(ROOT, OUT), json);
|
||||
+387
@@ -0,0 +1,387 @@
|
||||
{"since":"2026-10-01","items":{
|
||||
"1-1":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"1-4":{"changed":"2026-10-01","fields":["证据等级","备注"]},
|
||||
"1-5":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"1-6":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"1-8":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"1-9":{"changed":"2026-10-14","fields":["标题","成本","说人话","收益","备注"]},
|
||||
"1-10":{"changed":"2026-10-09","fields":["标题"]},
|
||||
"1-11":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"1-12":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"1-14":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"1-16":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"1-17":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"1-18":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"1-21":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"1-23":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"1-24":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"1-26":{"changed":"2026-10-07","fields":["备注"]},
|
||||
"1-27":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"1-29":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"1-33":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"1-36":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"1-38":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"1-39":{"added":"2026-10-01"},
|
||||
"1-40":{"added":"2026-10-01"},
|
||||
"1-41":{"added":"2026-10-02"},
|
||||
"1-42":{"added":"2026-10-04"},
|
||||
"1-43":{"added":"2026-10-08"},
|
||||
"1-44":{"added":"2026-10-14"},
|
||||
"1-45":{"added":"2026-10-14"},
|
||||
"1-46":{"added":"2026-10-14"},
|
||||
"1-47":{"added":"2026-10-14"},
|
||||
"1-48":{"added":"2026-10-14"},
|
||||
"2-1":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"2-2":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"2-3":{"changed":"2026-10-14","fields":["标题","收益"]},
|
||||
"2-6":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"2-8":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"2-10":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"2-11":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"2-12":{"changed":"2026-10-14","fields":["标题","成本","说人话","收益","备注"]},
|
||||
"2-14":{"changed":"2026-10-08","fields":["标题"]},
|
||||
"2-26":{"added":"2026-10-12"},
|
||||
"2-27":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"2-28":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"2-30":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"2-32":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"2-35":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"2-36":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"2-39":{"changed":"2026-10-15","fields":["备注"]},
|
||||
"2-42":{"added":"2026-10-01"},
|
||||
"2-43":{"added":"2026-10-07"},
|
||||
"2-44":{"added":"2026-10-09"},
|
||||
"2-45":{"added":"2026-10-14"},
|
||||
"2-46":{"added":"2026-10-14"},
|
||||
"2-47":{"added":"2026-10-14"},
|
||||
"3-3":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"3-4":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"3-8":{"changed":"2026-10-14","fields":["标题","收益","备注"]},
|
||||
"3-11":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"3-13":{"changed":"2026-10-08","fields":["标题"]},
|
||||
"3-16":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"3-17":{"changed":"2026-10-11","fields":["收益"]},
|
||||
"3-18":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"3-21":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"3-23":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"3-25":{"added":"2026-10-07"},
|
||||
"3-26":{"added":"2026-10-14"},
|
||||
"3-27":{"added":"2026-10-14"},
|
||||
"4-15":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"4-16":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"5-6":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"5-7":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"5-10":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"5-11":{"changed":"2026-10-01","fields":["说人话","收益","备注"]},
|
||||
"5-14":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"5-15":{"changed":"2026-10-14","fields":["说人话","备注"]},
|
||||
"5-18":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"5-20":{"changed":"2026-10-04","fields":["备注"]},
|
||||
"5-27":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"5-45":{"added":"2026-10-04"},
|
||||
"5-46":{"added":"2026-10-07"},
|
||||
"5-47":{"added":"2026-10-12"},
|
||||
"5-48":{"added":"2026-10-12"},
|
||||
"5-49":{"added":"2026-10-12"},
|
||||
"5-50":{"added":"2026-10-14"},
|
||||
"6-3":{"changed":"2026-10-14","fields":["说人话","收益","备注"]},
|
||||
"6-10":{"changed":"2026-10-01","fields":["收益"]},
|
||||
"6-14":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"6-16":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"6-18":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"6-19":{"changed":"2026-10-15","fields":["备注"]},
|
||||
"6-20":{"changed":"2026-10-01","fields":["说人话","收益","备注"]},
|
||||
"6-25":{"changed":"2026-10-01","fields":["收益","备注"]},
|
||||
"6-27":{"changed":"2026-10-10","fields":["收益","备注"]},
|
||||
"6-28":{"changed":"2026-10-05","fields":["备注"]},
|
||||
"6-29":{"added":"2026-10-04"},
|
||||
"6-30":{"added":"2026-10-06"},
|
||||
"6-31":{"added":"2026-10-09"},
|
||||
"6-32":{"added":"2026-10-13"},
|
||||
"6-33":{"added":"2026-10-14"},
|
||||
"6-34":{"added":"2026-10-14"},
|
||||
"6-35":{"added":"2026-10-14"},
|
||||
"7-1":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"7-6":{"changed":"2026-10-14","fields":["成本","说人话","收益","备注"]},
|
||||
"7-7":{"changed":"2026-10-14","fields":["标题","收益"]},
|
||||
"7-9":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"7-18":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"7-19":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"7-21":{"changed":"2026-10-10","fields":["说人话","收益","证据等级","备注"]},
|
||||
"7-22":{"added":"2026-10-01"},
|
||||
"7-23":{"added":"2026-10-14"},
|
||||
"8-6":{"changed":"2026-10-08","fields":["标题"]},
|
||||
"8-7":{"changed":"2026-10-14","fields":["标题","收益","备注"]},
|
||||
"8-10":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"8-13":{"changed":"2026-10-08","fields":["标题"]},
|
||||
"8-16":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"8-17":{"changed":"2026-10-03","fields":["收益"]},
|
||||
"8-22":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"8-26":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"8-29":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"8-30":{"changed":"2026-10-09","fields":["标题","收益","备注"]},
|
||||
"8-35":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"8-45":{"added":"2026-10-03"},
|
||||
"8-46":{"added":"2026-10-05"},
|
||||
"9-3":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"9-5":{"changed":"2026-10-04","fields":["收益"]},
|
||||
"9-7":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"9-8":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"9-12":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"9-14":{"changed":"2026-10-14","fields":["标题","说人话","收益","备注"]},
|
||||
"9-16":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"9-19":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"9-21":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"9-24":{"added":"2026-10-03"},
|
||||
"9-25":{"added":"2026-10-03"},
|
||||
"9-26":{"added":"2026-10-05"},
|
||||
"9-27":{"added":"2026-10-14"},
|
||||
"9-28":{"added":"2026-10-14"},
|
||||
"9-29":{"added":"2026-10-14"},
|
||||
"10-3":{"changed":"2026-10-15","fields":["说人话","收益"]},
|
||||
"10-4":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"10-6":{"changed":"2026-10-09","fields":["标题"]},
|
||||
"10-8":{"changed":"2026-10-09","fields":["标题"]},
|
||||
"10-10":{"changed":"2026-10-09","fields":["标题"]},
|
||||
"10-13":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"10-14":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"10-17":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"10-20":{"added":"2026-10-01"},
|
||||
"10-21":{"added":"2026-10-12"},
|
||||
"10-22":{"added":"2026-10-14"},
|
||||
"10-23":{"added":"2026-10-14"},
|
||||
"11-1":{"changed":"2026-10-14","fields":["说人话","收益"]},
|
||||
"11-2":{"changed":"2026-10-05","fields":["标题","收益"]},
|
||||
"11-6":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"11-9":{"changed":"2026-10-14","fields":["标题","备注"]},
|
||||
"11-12":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"11-16":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"11-17":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"11-18":{"added":"2026-10-05"},
|
||||
"11-19":{"added":"2026-10-05"},
|
||||
"11-20":{"added":"2026-10-14"},
|
||||
"11-21":{"added":"2026-10-14"},
|
||||
"12-3":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"12-6":{"changed":"2026-10-14","fields":["说人话","备注"]},
|
||||
"12-11":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"12-12":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"12-13":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"12-14":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"12-17":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"12-18":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"12-20":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"12-23":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"12-24":{"added":"2026-10-03"},
|
||||
"12-25":{"added":"2026-10-10"},
|
||||
"12-26":{"added":"2026-10-14"},
|
||||
"12-27":{"added":"2026-10-14"},
|
||||
"12-28":{"added":"2026-10-14"},
|
||||
"13-1":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"13-2":{"changed":"2026-10-09","fields":["标题","备注"]},
|
||||
"13-3":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-4":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-5":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"13-6":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"13-7":{"changed":"2026-10-14","fields":["标题","收益","备注"]},
|
||||
"13-8":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"13-10":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-11":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"13-14":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-15":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-16":{"changed":"2026-10-14","fields":["标题","收益","备注"]},
|
||||
"13-19":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-20":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"13-21":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"13-22":{"changed":"2026-10-14","fields":["说人话","收益","备注"]},
|
||||
"13-25":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-26":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-29":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-30":{"changed":"2026-10-14","fields":["说人话","收益"]},
|
||||
"13-31":{"changed":"2026-10-08","fields":["标题"]},
|
||||
"13-32":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-33":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"13-35":{"changed":"2026-10-14","fields":["标题","收益"]},
|
||||
"13-38":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"13-39":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"13-40":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"13-41":{"changed":"2026-10-06","fields":["收益"]},
|
||||
"13-43":{"added":"2026-10-01"},
|
||||
"13-44":{"added":"2026-10-01"},
|
||||
"13-45":{"added":"2026-10-14"},
|
||||
"13-46":{"added":"2026-10-14"},
|
||||
"13-47":{"added":"2026-10-14"},
|
||||
"13-48":{"added":"2026-10-14"},
|
||||
"14-1":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"14-3":{"changed":"2026-10-10","fields":["收益"]},
|
||||
"14-6":{"changed":"2026-10-10","fields":["收益"]},
|
||||
"14-10":{"added":"2026-10-05"},
|
||||
"14-11":{"added":"2026-10-14"},
|
||||
"14-12":{"added":"2026-10-14"},
|
||||
"15-1":{"changed":"2026-10-09","fields":["标题"]},
|
||||
"15-6":{"changed":"2026-10-10","fields":["收益","证据等级","备注"]},
|
||||
"15-8":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"15-10":{"added":"2026-10-12"},
|
||||
"15-11":{"added":"2026-10-12"},
|
||||
"15-12":{"added":"2026-10-12"},
|
||||
"15-13":{"added":"2026-10-12"},
|
||||
"15-14":{"added":"2026-10-12"},
|
||||
"15-15":{"added":"2026-10-12"},
|
||||
"15-16":{"added":"2026-10-14"},
|
||||
"15-17":{"added":"2026-10-14"},
|
||||
"15-18":{"added":"2026-10-14"},
|
||||
"16-3":{"changed":"2026-10-10","fields":["收益","证据等级","备注"]},
|
||||
"16-4":{"changed":"2026-10-10","fields":["说人话","收益","证据等级"]},
|
||||
"16-5":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"16-8":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"16-9":{"changed":"2026-10-15","fields":["标题","说人话","收益"]},
|
||||
"16-10":{"added":"2026-10-14"},
|
||||
"16-11":{"added":"2026-10-14"},
|
||||
"16-12":{"added":"2026-10-14"},
|
||||
"16-13":{"added":"2026-10-14"},
|
||||
"16-14":{"added":"2026-10-14"},
|
||||
"17-1":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"17-2":{"changed":"2026-10-15","fields":["备注"]},
|
||||
"17-3":{"changed":"2026-10-10","fields":["收益","证据等级","备注"]},
|
||||
"17-4":{"changed":"2026-10-10","fields":["收益","证据等级","备注"]},
|
||||
"17-7":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"17-9":{"added":"2026-10-01"},
|
||||
"17-10":{"added":"2026-10-09"},
|
||||
"17-11":{"added":"2026-10-14"},
|
||||
"17-12":{"added":"2026-10-14"},
|
||||
"17-13":{"added":"2026-10-14"},
|
||||
"18-1":{"changed":"2026-10-14","fields":["标题","说人话","收益","备注"]},
|
||||
"18-2":{"changed":"2026-10-15","fields":["备注"]},
|
||||
"18-4":{"changed":"2026-10-09","fields":["标题"]},
|
||||
"18-7":{"added":"2026-10-14"},
|
||||
"19-1":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"19-3":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"19-5":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"19-8":{"changed":"2026-10-10","fields":["收益","证据等级","备注"]},
|
||||
"19-10":{"changed":"2026-10-14","fields":["标题","收益"]},
|
||||
"19-11":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"19-17":{"added":"2026-10-01"},
|
||||
"19-18":{"added":"2026-10-01"},
|
||||
"19-19":{"added":"2026-10-06"},
|
||||
"19-20":{"added":"2026-10-14"},
|
||||
"19-21":{"added":"2026-10-14"},
|
||||
"19-22":{"added":"2026-10-14"},
|
||||
"19-23":{"added":"2026-10-14"},
|
||||
"19-24":{"added":"2026-10-14"},
|
||||
"20-1":{"changed":"2026-10-09","fields":["标题"]},
|
||||
"20-2":{"changed":"2026-10-14","fields":["说人话","收益"]},
|
||||
"20-5":{"changed":"2026-10-12","fields":["说人话","收益","备注"]},
|
||||
"20-7":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"20-8":{"changed":"2026-10-14","fields":["说人话","收益"]},
|
||||
"20-11":{"changed":"2026-10-10","fields":["说人话","收益","备注"]},
|
||||
"20-12":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"20-13":{"added":"2026-10-01"},
|
||||
"20-14":{"added":"2026-10-08"},
|
||||
"20-15":{"added":"2026-10-14"},
|
||||
"20-16":{"added":"2026-10-14"},
|
||||
"20-17":{"added":"2026-10-14"},
|
||||
"21-1":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"21-5":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"21-6":{"changed":"2026-10-15","fields":["备注"]},
|
||||
"21-7":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"21-12":{"added":"2026-10-14"},
|
||||
"21-13":{"added":"2026-10-14"},
|
||||
"22-3":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"22-4":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"22-5":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"22-6":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"22-10":{"changed":"2026-10-08","fields":["标题"]},
|
||||
"22-11":{"added":"2026-10-14"},
|
||||
"22-12":{"added":"2026-10-14"},
|
||||
"23-1":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"23-2":{"changed":"2026-10-01","fields":["备注"]},
|
||||
"23-3":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"23-4":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"23-5":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"23-6":{"changed":"2026-10-11","fields":["标题","说人话"]},
|
||||
"23-15":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"23-22":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"23-24":{"added":"2026-10-13"},
|
||||
"23-25":{"added":"2026-10-13"},
|
||||
"24-1":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"24-2":{"changed":"2026-10-01","fields":["说人话","收益"]},
|
||||
"24-7":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"24-9":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"24-12":{"added":"2026-10-05"},
|
||||
"24-13":{"added":"2026-10-14"},
|
||||
"24-14":{"added":"2026-10-14"},
|
||||
"24-15":{"added":"2026-10-14"},
|
||||
"25-4":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"25-5":{"changed":"2026-10-09","fields":["标题"]},
|
||||
"25-10":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"25-11":{"added":"2026-10-14"},
|
||||
"25-12":{"added":"2026-10-14"},
|
||||
"26-2":{"changed":"2026-10-04","fields":["标题","收益","备注"]},
|
||||
"26-4":{"changed":"2026-10-14","fields":["标题","成本","说人话","收益"]},
|
||||
"26-10":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"26-12":{"added":"2026-10-14"},
|
||||
"26-13":{"added":"2026-10-14"},
|
||||
"27-1":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"27-3":{"changed":"2026-10-14","fields":["标题","收益"]},
|
||||
"27-4":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"27-8":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"27-10":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"27-12":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"27-15":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"27-16":{"changed":"2026-10-14","fields":["标题","收益"]},
|
||||
"27-17":{"added":"2026-10-09"},
|
||||
"27-18":{"added":"2026-10-14"},
|
||||
"27-19":{"added":"2026-10-14"},
|
||||
"27-20":{"added":"2026-10-14"},
|
||||
"28-2":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"28-4":{"changed":"2026-10-14","fields":["说人话","备注"]},
|
||||
"28-6":{"changed":"2026-10-14","fields":["标题","收益","备注"]},
|
||||
"28-8":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"28-9":{"added":"2026-10-05"},
|
||||
"28-10":{"added":"2026-10-14"},
|
||||
"29-5":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"29-7":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"29-12":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"29-14":{"added":"2026-10-14"},
|
||||
"30-1":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"30-2":{"changed":"2026-10-14","fields":["说人话","收益"]},
|
||||
"30-4":{"changed":"2026-10-14","fields":["标题","收益","备注"]},
|
||||
"30-6":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"30-16":{"added":"2026-10-01"},
|
||||
"30-17":{"added":"2026-10-01"},
|
||||
"30-18":{"added":"2026-10-05"},
|
||||
"30-19":{"added":"2026-10-14"},
|
||||
"30-20":{"added":"2026-10-14"},
|
||||
"30-21":{"added":"2026-10-14"},
|
||||
"31-1":{"changed":"2026-10-14","fields":["标题","备注"]},
|
||||
"31-4":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"31-6":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"31-10":{"changed":"2026-10-14","fields":["标题","收益"]},
|
||||
"31-13":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"31-17":{"added":"2026-10-14"},
|
||||
"32-1":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"32-4":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"32-5":{"changed":"2026-10-14","fields":["备注"]},
|
||||
"32-10":{"changed":"2026-10-15","fields":["标题"]},
|
||||
"32-11":{"added":"2026-10-14"},
|
||||
"32-12":{"added":"2026-10-14"},
|
||||
"33-1":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"33-2":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"33-7":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"33-8":{"changed":"2026-10-14","fields":["说人话","收益"]},
|
||||
"33-9":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"33-10":{"changed":"2026-10-14","fields":["说人话","收益","备注"]},
|
||||
"33-12":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"33-15":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"33-16":{"changed":"2026-10-14","fields":["标题"]},
|
||||
"33-17":{"changed":"2026-10-14","fields":["收益","备注"]},
|
||||
"33-18":{"changed":"2026-10-14","fields":["成本","收益","备注"]},
|
||||
"33-21":{"added":"2026-10-14"},
|
||||
"34-1":{"changed":"2026-10-14","fields":["标题","说人话","收益"]},
|
||||
"34-2":{"changed":"2026-10-14","fields":["标题","说人话","收益"]},
|
||||
"34-3":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"34-6":{"changed":"2026-10-14","fields":["收益"]},
|
||||
"34-9":{"changed":"2026-10-14","fields":["说人话"]},
|
||||
"34-10":{"added":"2026-10-01"},
|
||||
"34-11":{"added":"2026-10-01"},
|
||||
"34-12":{"added":"2026-10-14"}
|
||||
}}
|
||||
Reference in New Issue
Block a user