本仓只服务桌面宿主 image-workbench-desktop,与网页端无限画布工具无关。 1) 删除 5 个网页端 e2e 脚本(共 1538 行):batch-export / image-vectorize / white-bg-800 / image-annotate 的 e2e-site.mjs,style-source 的 e2e-test-site.mjs。 它们默认连 test.image-workbench-web.pages.dev、用 iwb_web_* 网页存档造数据、 断言「线上版本」,与桌面端无关;README 却误称为「桌面客户端端到端」。 关键断言已由各 harness 覆盖(图层排序 / CSS 注入闸门 / ZIP CRC 校验), 删除不丢测试能力。npm scripts 与 CI 均未引用这些脚本。 2) 修正 5 份 README:把指向被删脚本的验证章节改写为 harness + 客户端市场确认; style-source 的「三层测试」改为两层。 3) browser / album 源码里的「网页版」注释与降级提示文案改为「旧客户端 / 不支持路径引用的宿主」,保留全部降级逻辑与行为;两处运行时提示只在 旧客户端或合成测试宿主出现,桌面端正常路径不可达。 纯清理,插件行为零变化,不改版本、不发市场。npm test 全过、语法检查全过, 全仓 Grep 已无「网页版 / 网页端 / image-workbench-web / e2e-site / pages.dev」残留。
This commit is contained in:
1 parent
e614fca7a3
commit
e20dda594b
14 files changed
+24
-1538
No files matched your search
@@ -136,8 +136,7 @@ potrace 与其 JS 移植都是 **GPL-2.0**(见 `plugin/vendor/potrace/LICENSE`
|
||||
```bash
|
||||
npm run build -- image-vectorize # plugin/ → src/index.js(esbuild IIFE)
|
||||
npm run validate # 契约校验
|
||||
node image-vectorize/tools/harness.mjs # 本地端到端(合成宿主 + 真 Chromium,64 项)
|
||||
node image-vectorize/tools/e2e-site.mjs # 桌面客户端端到端(市场安装 / SRI / CSP / 真实画布桥)
|
||||
node image-vectorize/tools/harness.mjs # 本地端到端(合成宿主 + 真 Chromium,64 项,含 CSP / 画布桥)
|
||||
|
||||
# 拿真实素材调参数(不进 CI,最快看到效果):
|
||||
node image-vectorize/tools/trace-cli.mjs ~/Desktop/menu.png --mode gray --levels 3
|
||||
|
||||
Reference in new issue
Block a user