From 9c0d3b1221d8275bad3b3e4fc3f0ffb8bac543c7 Mon Sep 17 00:00:00 2001 From: qiqi Date: Sat, 21 Nov 2026 22:50:21 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E5=9B=9E=E9=80=80=E5=88=B0=20v3.26.5?= =?UTF-8?q?=20=E6=8F=92=E4=BB=B6=E8=A1=8C=E4=B8=BA=EF=BC=88v3.26.10?= =?UTF-8?q?=EF=BC=89=EF=BC=8Cpromptlib=20=E5=9B=9E=E9=80=80=201.4.0=20?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 32 +++------------ app.js | 10 ----- docs/standards/architecture-current-state.md | 10 ++--- package.json | 2 +- plugins/index.json | 6 +-- plugins/promptlib/main.js | 26 ++---------- plugins/promptlib/manifest.json | 6 +-- plugins/promptlib/styles.css | 6 --- scripts/build.js | 13 ------ site/download/index.html | 14 +++---- site/index.html | 16 ++++---- site/plugins-index.json | 20 ++++----- site/plugins/index.html | 6 +-- site/releases.json | 43 +++++--------------- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- src/runtime-plugin-loader.js | 5 +-- src/runtime-style-nonce.js | 32 --------------- src/ui-settings-sections.js | 12 +----- tests/fixtures/iwb-app-global-reads.json | 1 - tests/fixtures/iwb-source-modules-order.json | 1 - tests/plugin-theme-contract-test.js | 2 - tests/source-text-ratchet-test.js | 2 +- 24 files changed, 64 insertions(+), 207 deletions(-) delete mode 100644 src/runtime-style-nonce.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 10a14dc..5f0a208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,34 +14,12 @@ > 3. 核验正式地址版本 → 之后才移动 `stable` / `stable-verified-<日期>` 标签、更新本 CHANGELOG、写 GitHub Release(`gh release create`)。 > 测试发现问题 → 改 → 再 `deploy:test`,正式环境不受影响。回滚点 `git reset --hard stable`。 -## v3.26.9(2026-11-21)插件样式全丢的真正根因:CSP nonce +## v3.26.10(2026-11-21)回退:恢复到 v3.26.5 的插件样式行为 -### 根因(实测数据) -- 桌面端 CSP 带 **nonce**(CSP3 下 `unsafe-inline` 被忽略)。宿主与插件用 `document.createElement('style')` 动态注入的样式**没有 nonce**,被整段丢弃:`style.sheet === null`、`document.styleSheets` 里也没有它们。 -- 现象:插件 DOM 正常、宿主 CSS 正常(外链),但所有插件样式(提示词库/风格库/图库)失效 —— 卡片塌成线条、图片按原始尺寸铺满。 - -### 修复 -- 宿主 `applyStyle` 给动态 ` - -
生图工作台
正在加载…
若系统弹出「访问文稿文件夹」请求,请点「允许」;点「不允许」会一直停在这里。
-
diff --git a/site/download/index.html b/site/download/index.html index 46c33e4..3f865c7 100644 --- a/site/download/index.html +++ b/site/download/index.html @@ -54,13 +54,13 @@

下载

macOS · Apple Silicon
M1 / M2 / M3 / M4
-
版本 3.26.9 · 8.4 MB · .dmg
sha256 73f9042f0521824e…
- 下载 +
版本 3.26.10 · 8.4 MB · .dmg
sha256 e4599b96a640734b…
+ 下载
macOS · Intel
x86_64
-
版本 3.26.9 · 8.8 MB · .dmg
sha256 4cbee9a0a1ed1ee8…
- 下载 +
版本 3.26.10 · 8.8 MB · .dmg
sha256 fee997f2042cc237…
+ 下载
Windows · x64
需要 WebView2
@@ -95,11 +95,7 @@

历史版本

-
3.26.9
Intel 版:同一改动
-
2026-11-21
macOS · Apple Silicon / macOS · Intel
-
-
-
3.26.6
Intel 版:同一改动
+
3.26.10
Intel 版:同一回退
2026-11-21
macOS · Apple Silicon / macOS · Intel
diff --git a/site/index.html b/site/index.html index ffda10c..bafe190 100644 --- a/site/index.html +++ b/site/index.html @@ -2,7 +2,7 @@ Image Workbench · 本地优先的 AI 生图工作台 - +
-
+
- v3.26.9 · macOS / Windows · 数据在本地 + v3.26.10 · macOS / Windows · 数据在本地

本地优先的
AI 生图无限画布

用节点把「参考图 → 提示词 → 批量生成 → 图库」串成一条生产线。
图片、提示词、模型配置全部留在你自己的电脑里,插件按需安装。

支持 macOS 12+ 与 Windows 10 1803+ · 安装包约 7 MB · 无需登录
@@ -82,7 +82,7 @@
📖 -
提示词库
v1.4.5 · 官方
+
提示词库
v1.4.6 · 官方
右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供)
资源提示词
@@ -93,8 +93,8 @@

下载 Image Workbench

选你的平台。装过一次之后,以后在应用内「设置 → 通用 → 版本与更新」就能一键升级。

-
macOS · Apple Silicon
M1 / M2 / M3 / M4 · 8.4 MB · .dmg
-
macOS · Intel
x86_64 · 8.8 MB · .dmg
+
安装包未做 Apple 公证 / Windows 代码签名,首次打开需手动放行一次,细节见 下载页。
diff --git a/site/plugins-index.json b/site/plugins-index.json index de0329e..a28b0b2 100644 --- a/site/plugins-index.json +++ b/site/plugins-index.json @@ -1,6 +1,6 @@ { "version": 2, - "updatedAt": "2026-11-21T14:36:17.148Z", + "updatedAt": "2026-11-21T14:46:19.147Z", "plugins": [ { "id": "batch-export", @@ -180,26 +180,26 @@ "资源", "提示词" ], - "version": "1.4.5", + "version": "1.4.6", "apiVersion": 1, - "bundle": "plugins/promptlib-1.4.5.zip", - "bundleSize": 59301, - "bundleSha256": "326b39104467cbf5ceaae500fb470a2f22b78148d090a1e8886e581022caaa61", + "bundle": "plugins/promptlib-1.4.6.zip", + "bundleSize": 48794, + "bundleSha256": "ff0a55b2cd5cac3c4b186ac76f9ed66476da39ad0128855d92ce4fbb5b4553a0", "files": [ { "path": "manifest.json", - "sha256": "6c3d6c9c02f871df5484dd6950b072082bcab28ac3ab02d0a4e4e459a4d6b797", + "sha256": "218a28b61597b4e5abcefadb864fb61fff234685b4f0277315ee821eb6b2439a", "size": 540 }, { "path": "main.js", - "sha256": "ca3640b2982ca649dad721fca26cdcef47e3eb8951bec4e5ab1e411a742a375c", - "size": 49272 + "sha256": "1bb24528715db2e07ae034c90ea20ac3851fd48376e554ff1716e6c4074468a6", + "size": 38964 }, { "path": "styles.css", - "sha256": "c0bbcb3274c98a62465e10090102fdcbd86d645ffdaf258db8732ca90a91d555", - "size": 9179 + "sha256": "79e312023363b562f3453ee780646b04558be5ce12b8b17f4f526b9d8f60b731", + "size": 8980 } ] }, diff --git a/site/plugins/index.html b/site/plugins/index.html index 099803a..2b201c1 100644 --- a/site/plugins/index.html +++ b/site/plugins/index.html @@ -1,7 +1,7 @@ 插件市场 · Image Workbench - +
@@ -76,7 +76,7 @@
📖 -
提示词库
v1.4.5 · 官方
+
提示词库
v1.4.6 · 官方
右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供)
资源提示词
diff --git a/site/releases.json b/site/releases.json index 7fd7290..9f8fda1 100644 --- a/site/releases.json +++ b/site/releases.json @@ -1,46 +1,25 @@ { "app": "Image Workbench", "subtitle": "本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)", - "updatedAt": "2026-11-21T14:43:40.607Z", + "updatedAt": "2026-11-21T14:50:20.637Z", "releases": [ { - "version": "3.26.9", + "version": "3.26.10", "date": "2026-11-21", - "notes": "Intel 版:同一改动", + "notes": "Intel 版:同一回退", "platforms": { "darwin-aarch64": { - "file": "updates/darwin-aarch64/image-workbench_3.26.9_aarch64.dmg", - "size": 8780683, - "sha256": "73f9042f0521824e2324ba7af375e4e500fb9407e52d0becbc2fec195f8aa2ba", - "h": "73f9042f0521", + "file": "updates/darwin-aarch64/image-workbench_3.26.10_aarch64.dmg", + "size": 8780299, + "sha256": "e4599b96a640734b4703870ff475cc6b1ffff307b89732b3db57dbf286e31260", + "h": "e4599b96a640", "kind": "dmg" }, "darwin-x86_64": { - "file": "updates/darwin-x86_64/image-workbench_3.26.9_x64.dmg", - "size": 9183618, - "sha256": "4cbee9a0a1ed1ee86e3b44a689ccf97547c31e74e3a662fe2997557bbd10ad4e", - "h": "4cbee9a0a1ed", - "kind": "dmg" - } - } - }, - { - "version": "3.26.6", - "date": "2026-11-21", - "notes": "Intel 版:同一改动", - "platforms": { - "darwin-aarch64": { - "file": "updates/darwin-aarch64/image-workbench_3.26.6_aarch64.dmg", - "size": 8782458, - "sha256": "207ad4ffa4393af85fc1a86c07506bd3658c46d2b7890e85284480865569e254", - "h": "207ad4ffa439", - "kind": "dmg" - }, - "darwin-x86_64": { - "file": "updates/darwin-x86_64/image-workbench_3.26.6_x64.dmg", - "size": 9183425, - "sha256": "4310093c781879b168902e60ac3e110ab3a8d2c2b7e1851a63d01d825a2fd470", - "h": "4310093c7818", + "file": "updates/darwin-x86_64/image-workbench_3.26.10_x64.dmg", + "size": 9181870, + "sha256": "fee997f2042cc237a442408926674c40ad09f24bd475c6959ba3456b22479f10", + "h": "fee997f2042c", "kind": "dmg" } } diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 40e3405..70c8b1f 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1983,7 +1983,7 @@ dependencies = [ [[package]] name = "image-workbench" -version = "3.26.9" +version = "3.26.10" dependencies = [ "arboard", "base64 0.22.1", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 1f79edd..ffd5553 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "image-workbench" -version = "3.26.9" +version = "3.26.10" description = "无限画布 · 生图工作台桌面版" authors = ["malongan"] license = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index d5d9c36..af1c444 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "image-workbench", - "version": "3.26.9", + "version": "3.26.10", "identifier": "com.malongan.imageworkbench", "build": { "frontendDist": "../dist", diff --git a/src/runtime-plugin-loader.js b/src/runtime-plugin-loader.js index db6ed42..a535e24 100644 --- a/src/runtime-plugin-loader.js +++ b/src/runtime-plugin-loader.js @@ -62,11 +62,8 @@ if (styleNodes[id] && styleNodes[id].parentNode) styleNodes[id].parentNode.removeChild(styleNodes[id]) const node = doc.createElement('style') node.setAttribute('data-plugin', String(id)) - // v3.26.8:CSP 带 nonce 时,没有 nonce 的内联