6 Commits

Author SHA1 Message Date
liufumingren
ee054f039a feat(printer): PDF 打印支持按驱动纸张自动选纸
- 新增 utils/printerPaper.js:读取驱动 PaperSizes(名称/尺寸/DMPAPER id),按打印机缓存 10 分钟
- 按 PDF 首页尺寸匹配纸张:精确 → 能容纳的最小纸 → 装不下时取最大纸并自动改 shrink
- 纸张参数优先 paper=<驱动纸名>,纯数字或含逗号时回退 paperkind=<RawKind>;User defined 不参与匹配
- 新增配置 pdfPrint.autoPaper(默认 true),显式 papers/请求参数仍优先
- SumatraPDF-settings.txt 加入 .gitignore(运行期生成)
- 版本 1.0.42

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-25 00:41:24 +08:00
liufumingren
f7a0aa8c7b chore(deps): 增加扫码相关依赖,忽略 temp/ 目录
- package.json: @zxing/library、zxing-wasm(条码识别)、exceljs(表格导出)

- .gitignore: 忽略 temp/(本地调试脚本,不入库)
2026-10-31 02:12:30 +08:00
liufumingren
f81605af2a chore(git): 停止追踪 config.json(本机运行时配置,含 token)
config.json 里是机器本地运行时状态:token/refreshToken、tokenExpireTime、downloadDir、
名称、isRecording 等,每台机器都不一样,且含有效期内的凭据。它被当作"bundled 配置"写入
时还会整体覆盖 AppData 下的实际配置(token/refreshToken/hikvision 会一起丢)。
入库既没意义又有泄露风险,改为不追踪(文件保留在本地,未删除)。

打包/默认配置仍由 config.packaged.json 提供,未受影响。

注意:其它机器 pull 到这次删除时,若本地 config.json 有改动会被拒("local changes would
be overwritten"),需要先备份该文件再 pull,或改用当前工作区的配置。
2026-09-15 22:37:40 +08:00
liufumingren
4303dd55eb chore(gitignore): 忽略运行时产物(runtime.json、SQLite WAL、临时脚本)
runtime.json 由 writeRuntimeState() 在启动时生成;*.db-shm/*.db-wal 是 SQLite WAL 临时文件;v133_monitor_tmp.ps1 是一次性排查脚本。runtime.json 原已被跟踪,此处一并 git rm --cached(本地文件保留,下次启动会重新生成)。
2026-09-15 20:29:51 +08:00
liufumingren
5bc0e6637e docs: 完善README并收敛更新发布流程 2026-03-29 19:32:28 +08:00
liufumingren
79bae5b51e chore: init printServer and remove rsa keys 2026-03-29 13:26:23 +08:00