feat(gallery): 图库只由插件提供,宿主删除第二份界面 v3.25.52

- 删除 src/ui-gallery-panel.js / ui-gallery-head.js 与 app.js 的图库面板装配(8951→8879 行)
- dock 图库固定 pluginId:'gallery',未安装显示安装提示
- 宿主仅保留 gallery capability(list/thumb/preview/download/insert/remove)+ 索引
- insert 支持插件传入 insertK 档位压缩
- 插件仓新增 gallery 1.0.0 并发布市场(9 个插件)
This commit is contained in:
qiqi committed 2026-11-20 11:32:16 +08:00
1 parent 2594623c09
commit e8d782b4da
17 files changed
+281 -214

No files matched your search

-3
View File
@@ -11,7 +11,6 @@
"IWBDesktop",
"IWBDockArea",
"IWBGalleryHydration",
"IWBGalleryQuery",
"IWBGenerationRequestShape",
"IWBGenerationResults",
"IWBGenerationScheduler",
@@ -64,8 +63,6 @@
"IWBUICanvasView",
"IWBUIConfirm",
"IWBUIConnectMenu",
"IWBUIGalleryHead",
"IWBUIGalleryPanel",
"IWBUIGenConfigPanel",
"IWBUIGroupsSidebar",
"IWBUILibSidebar",
-2
View File
@@ -69,8 +69,6 @@
"runtime-download-auto.js",
"ui-workspace-tabs.js",
"ui-app-chrome.js",
"ui-gallery-head.js",
"ui-gallery-panel.js",
"ui-workbench-hooks.js",
"storage-autobackup.js",
"canvas-history-store.js",
+3 -2
View File
@@ -26,9 +26,10 @@ assert.ok(!allSrc.includes("title: '图库(右侧栏)'"))
assert.ok(allSrc.includes("title: '显示 / 隐藏右栏'"))
assert.ok(source.includes("panels: dockPanels"))
assert.ok(source.includes("groups: { title: '节点组'"))
// v3.25.51:gallery 面板改为「装了插件用插件、否则宿主」,断言两种分支都在
// v3.25.52:图库只由插件提供(宿主不再保留第二份图库界面),未装时给安装提示
assert.ok(source.includes("pluginId: 'gallery'"))
assert.ok(source.includes("node: dockGalleryEl"))
assert.ok(source.includes("图库插件未安装"))
assert.ok(!source.includes("dockGalleryEl"))
assert.ok(allSrc.includes("className: 'iwb-res-tab'"))
assert.ok(allSrc.includes("className: 'iwb-res-tabs'"))
assert.ok(css.includes('.iwb-res-tabs {'))