iter(g300): 修正 toast 悬停暂停从未生效

This commit is contained in:
HIsheR
2026-10-27 00:25:55 +08:00
parent a8ff91c0a8
commit c013998f88
7 changed files with 51 additions and 20 deletions
+10
View File
@@ -0,0 +1,10 @@
import { readFileSync, writeFileSync } from 'node:fs';
// 用法:node .ua/add-entry.mjs <条目json文件>:把自补条目追加进 backlog(按 id 升序插到末尾)
const [src] = process.argv.slice(2);
const b = JSON.parse(readFileSync('.ua/backlog.json', 'utf8'));
const entry = JSON.parse(readFileSync(src, 'utf8'));
if (b.items.some((i) => i.id === entry.id)) throw new Error(`id 已存在:${entry.id}`);
b.items.push(entry);
writeFileSync('.ua/backlog.json', JSON.stringify(b, null, 2) + '\n', 'utf8');
console.log('added', entry.id, entry.title);