Commit Graph
29 Commits
Author SHA1 Message Date
qiqi f520e1a0fd refactor(rules): P0 统一 —— 确认包装 7 份收为 1 份、剪贴板 5 处走门面、棘轮硬数字进 sync-facts + 守卫 2026-11-24 21:26:16 +08:00
qiqi 9b78535791 feat(gallery): v3.26.61 出图即入图库 + 插入落地本地副本(能标注)
用户报障:① 生图后图库不显示上游传来的图 ② 图库多个入口插入的是链接,画布不能标注。
用户裁定 B6 = 复制:多占空间可以接受,要求不丢数据。

出图即见
- handleCompletedJob 每张完成即 archiveEntryNow(串行队列 + 等缩略图),不再只在整轮结束写一次
- 宿主新增 IWBPluginGallery.emit / onChanged;图库插件订阅后 260ms 防抖重拉
  (此前只有「面板可见且距上次拉取 >5s」一个入口,生成时面板一直可见 ⇒ 永远不刷)

插入能标注
- insertOutputsToCanvas 取源改本地字节优先:原图档 → 清单 data → 缩略图 → 按需抓远程
  (桌面端走 Rust 请求不受 CORS)→ 按档缩尺寸 → {__blob} 引用(字节落 images/canvas/)
- 抓不到才保留原链接,节点 data.srcUrl 留痕 + toast 提示「可能无法标注」;图库拖入同一收口
- getNodeImage 候选补 data.localRef(远程参考图本地缓存字段):此前漏读它 ⇒ 缓存命中过,
  标注插件仍只看到 http 链接并判「远程图片不支持标注」,这是报障②的直接成因

批量插入不再叠图
- 旧实现循环里每张各自 findSpot,而 findSpot 只看已提交节点 ⇒ 同批全落一处;
  改为一次 commit + 4 列栅格铺开

gallery 1.7.0
- 格子「插入」补 insertK(此前忽略插入尺寸档,与右键/顶部不一致)
- 插入补「插入中…」状态;删除改为等宿主删完再重拉(固定 250ms 会拉到未删完的清单)

结构
- 新增 src/gallery-sync.js(约 200 行),app.js 只 attach 装配;新增 tests/gallery-sync-test.js(11 项)
- 行数棘轮 9095 → 9115:+13 行是注入表与 commit 分发(闭包组件内 state),+6 行是纠错注释;
  同时新增一个 src 模块 ⇒ 占比棘轮反而下降。理由已写入棘轮文件

口径纠错(用户要求把旧的不准确描述改掉)
- 图库/缩略图/原图档在桌面端是 images/thumbs、images/gallery 文件,不是 IndexedDB
- 1K 插入档降的是长边像素不是体积(PNG 源仍无损,1024 复杂图 ~500KB~1MB)
- docs/plans/gallery-insert-perf-v324.md 加时效注记(网页版时期口径)
2026-11-24 17:11:01 +08:00
qiqi 2c94401d45 feat(canvas): 小地图与工具栏同排 + 挤压自动隐藏 v3.26.18
Verify (Gitea) / gate (build · unit · facts) (push) Canceled after 1m40s
2026-11-21 23:42:55 +08:00
qiqi 9c0d3b1221 revert: 回退到 v3.26.5 插件行为(v3.26.10),promptlib 回退 1.4.0 内容
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 53s
2026-11-21 22:50:21 +08:00
qiqi 5f8f4d229f fix: CSP nonce 导致动态 style 全丢(插件样式失效)v3.26.9 / promptlib 1.4.5
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m52s
2026-11-21 22:43:41 +08:00
qiqi 774b980f69 feat: 市场缓存回退 + 启动层恢复 + 卡片键盘可达(v3.26.6 / promptlib 1.4.1)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m28s
2026-11-21 22:17:46 +08:00
qiqi 2fb0a6941f feat(promptlib): 封面任意比例(上传/详情/插入)(v3.26.2 / 1.3.3)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m38s
2026-11-21 21:49:07 +08:00
qiqi 0b20c5597c feat(promptlib): 详情插入图片(封面参考图节点)(v3.26.1 / 1.3.2)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m33s
2026-11-21 21:42:30 +08:00
qiqi f8635d4e19 fix(promptlib): 封面改内联压缩图(3.26.0 / 1.3.0)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m33s
2026-11-21 21:26:16 +08:00
qiqi 73a7126e30 fix(ui): 删底栏资源库按钮 + 停靠栏按插件过滤 + 修右侧栏串面板(v3.25.82)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 25s
2026-11-21 08:19:37 +08:00
qiqi 7a4204d0a9 perf(images): 合并预览/远程图本地缓存/legacy 清理/图库缩略图回收(v3.25.80)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 31s
2026-11-21 07:55:12 +08:00
qiqi 2860faacbb fix(images): 缩略图 MIME 魔数嗅探 + 取消在用 objectURL 撤销 + 缩略图回收(v3.25.78/79)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 25s
2026-11-21 07:41:18 +08:00
qiqi f02b3dcec2 feat(settings): 设置窗可拖动 + 外观实时预览(v3.25.76)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 32s
2026-11-21 07:24:33 +08:00
qiqi f6d104fd95 feat(shell): 状态栏内存显示 + 修外观网格设置(v3.25.74)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 30s
2026-11-21 07:05:24 +08:00
qiqi 94680fd127 perf(images): 缩略图入库预热 + 稳定 key + Blob/objectURL + 按需切原图(v3.25.73)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 25s
2026-11-21 06:53:32 +08:00
qiqi b4a3e947b1 perf(download): awaitArchive 仅在自动下载开启时生效 + autoSaveImages 标注废弃(v3.25.34)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 49s
2026-11-19 17:06:41 +08:00
qiqi 759e097971 fix(ui): 设置面板操作不再穿透到画布(模态层指针守卫)+ 自动下载命名改回 gen_<时间戳>_<随机>(v3.25.21)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 3m47s
2026-11-18 21:32:55 +08:00
qiqi a742fea2db feat(download): 导出目录三态逻辑(自动下载=出图即落盘/目录决定是否弹框/不覆盖同名)+ 取色器按钮修复(v3.25.20)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m1s
2026-11-18 21:18:58 +08:00
qiqi 0bf83c96b2 style(gallery): 图库顶部两个下拉紧凑化,省横向空间(v3.25.19)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 54s
2026-11-18 18:24:56 +08:00
qiqi 1f833c5222 feat(ui): 工单#3 六项(连线默认灰/备份瘦身/下载统一+重名保护/主题迁入外观/图库插入尺寸档/输出下载走本地)v3.25.18
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 56s
2026-11-18 18:01:57 +08:00
qiqi cb6dcd1813 chore: 彻底转桌面客户端,删除网页版部署面(_headers/functions/wrangler + 相关 spec);更新清单平台解耦(v3.25.15)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m33s
2026-11-18 15:35:13 +08:00
qiqi 856e34a3f0 fix(csp): 桌面版重新放行 30092(修鲜艺抠图/批量导出)+ 门禁测试;feat(ui): 外观 tab(画布底色/主题色)(v3.25.14)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 10s
2026-11-18 14:56:23 +08:00
qiqi 1ffe067e12 fix(image): 写 blob 前确保 images/<cat> 目录存在(Windows 全新安装缺目录 → 写失败 → 退 Cache → 重启丢图);桌面端不再回退不持久的 Cache Storage(v3.25.12)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m53s
2026-11-18 13:34:27 +08:00
qiqi 49b8cb3abd feat(plugins): P3 开发者模式(plugins/local/<id>/plugin.js 免签名加载)+ SDK 文档与示例插件
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m22s
2026-11-17 13:47:30 +08:00
qiqi 59b79d54a3 refactor(plugins): 市场列表与已装插件合并为一张表(启停/设置/安装更新同排),去掉重复区块
Verify (Gitea) / gate (build · unit · facts) (push) Canceled after 1m0s
2026-11-17 12:03:32 +08:00
qiqi 51bc9c581a feat(plugins): P2 插件市场(market 索引生成 + 应用内安装/更新/卸载,sha256 校验写 plugins/)
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m10s
2026-11-17 11:49:34 +08:00
qiqi 5da4f255d8 feat(plugins): P1 插件外置(<资料目录>/plugins 覆盖内置、sha256 校验、blob 注入、来源标签);CSP 放行 blob:
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m11s
2026-11-17 11:29:47 +08:00
qiqi f2f22249bb test(ratchet): app.js 上限 8700→8720(桌面版下载语义改动,理由见注释)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m20s
2026-11-17 10:36:38 +08:00
qiqi 0c7850c478 chore: fork snapshot of image-workbench-web@d5f9945 (上游文件原样,未做任何修改) 2026-11-16 18:33:00 +08:00