feat(shell): 一级导航(52px 纯图标)+ 插件整页 + 快捷键弹窗分区罗列(v3.25.59)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m5s

This commit is contained in:
qiqi committed 2026-11-20 21:47:27 +08:00
1 parent 6db5a143a8
commit 7b2f07bdad
37 files changed
+676 -177

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

+19
View File
@@ -14,6 +14,25 @@
> 3. 核验正式地址版本 → 之后才移动 `stable` / `stable-verified-<日期>` 标签、更新本 CHANGELOG、写 GitHub Release(`gh release create`)。
> 测试发现问题 → 改 → 再 `deploy:test`,正式环境不受影响。回滚点 `git reset --hard stable`。
## v3.25.59(2026-11-20)一级导航(竖向图标栏)+ 插件整页 + 快捷键弹窗重构
### 新增
- **最左 52px 一级导航**(替换原 wsrail 槽位,纯图标、悬停提示):
顶部软件 logo;主组 首页(画布库)/ 列表(画布工作区)/ 插件;底部组 帮助 / 快捷键 / 皮肤 / 设置 / 更多。
选中态=深色圆底 + 白色图标;左右停靠栏与工具栏的让位基准同步加上 52px(`--iwb-nav-w`)。
- **插件整页**:点主组「插件」进入整页(返回按钮 + 与「设置 → 插件管理」同一份数据),实现 `src/ui-plugin-page.js`。
### 改造
- **快捷键弹窗**改为分区罗列(视图 / 编辑 / 界面 / 文件,键位等宽标签右对齐),长句说明收进「更多操作说明」折叠区;
键位取自 `config.canvas.hotkeys`(改键后自动跟随)。实现 `src/ui-hotkey-help.js`。
### 兼容
- 顶部画布标签条**保留**;左右停靠栏、画布 inset:0 不位移、dock 记忆全部不变。
## v3.25.58(2026-11-20)左右停靠栏配色与主色调对齐
- 停靠栏底色不再用 `--iwb-panel`(纯白):新增 `--iwb-dock-bg = color-mix(chrome 55%, canvas 45%)`,
Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

+43 -110
View File
@@ -5463,6 +5463,13 @@ const tbCenterSeed = (type, refs) => {
const IWWorkbenchHooks = (typeof window !== 'undefined' && window.IWBWorkbenchHooks) || { useViewportPersistence: () => ({}) }
const CanvasTopBar = (props) => window.IWBUICanvasTopBar(Object.assign({ I }, props))
const ProductNav = (props) => window.IWBUIProductNav(Object.assign({ I }, props))
// 一级导航(v3.25.59):最左 52px 纯图标栏,替换原 wsrail 槽位
const NavRail = (typeof window !== 'undefined' && window.IWBUINavRail) ? window.IWBUINavRail : null
// 快捷键弹窗内容(分区罗列 + 折叠说明)
const HotkeyHelp = (typeof window !== 'undefined' && window.IWBUIHotkeyHelp) ? window.IWBUIHotkeyHelp.HotkeyHelp : null
// 插件整页(复用设置里的插件管理块;页面壳在 src/ui-plugin-page.js)
const PluginsPage = (typeof window !== 'undefined') ? window.IWBUIPluginPage : null
// 依赖注入点:放在 Workbench 之前 —— 此处 ICONS / computeEdgePath / downloadUrl / IDB 等全部已定义。
_mod.inject({
@@ -5633,6 +5640,7 @@ const tbCenterSeed = (type, refs) => {
const [outputs, setOutputs] = useState([])
const [outputsInfo, setOutputsInfo] = useState(null)
const [helpOpen, setHelpOpen] = useState(false)
const [helpMode, setHelpMode] = useState('keys') // 'keys'=只列快捷键;'help'=展开「更多操作说明」
const [resumePrompt, setResumePrompt] = useState(null) // 上次生成中断的任务(刷新后可续跑)
const [pluginRev, setPluginRev] = useState(0)
React.useEffect(() => {
@@ -5881,8 +5889,6 @@ const tbCenterSeed = (type, refs) => {
const [wsRenameId, setWsRenameId] = useState(null)
const [wsRenameName, setWsRenameName] = useState('')
// 左右栏展开/收起持久化(刷新恢复)
const [wsExpanded, setWsExpanded] = useState(() => { try { return lsRawGet('iwb_ws_expanded', null) !== '0' } catch (e) { return true } })
useEffect(() => { try { lsRawSet('iwb_ws_expanded', wsExpanded ? '1' : '0') } catch (e) { /* ignore */ } }, [wsExpanded])
const [theme, setTheme] = useState(() => initTheme())
const toggleTheme = () => { const t = theme === 'dark' ? 'light' : 'dark'; setTheme(t); applyTheme(t) }
// 界面模式(Tab 切换纯画布/缩进)已于 v3.24.8 移除:它会把标签栏与底部工具栏整体隐藏,
@@ -6895,7 +6901,7 @@ const tbCenterSeed = (type, refs) => {
}
const onMove = (e) => {
const target = e && e.target
if (!(refs.box || refs.pan || refs.drag || refs.resize || refs.groupResize || refs.connFrom) && target && target.closest && target.closest('.iwb-fullmask, .iwb-lib, .iwb-lib-embedded, .iwb-drawer, .iwb-toolbar, .iwb-rightrail, .iwb-wsrail, .iwb-statusbar, .iwb-minimap, .iwb-hint-bottom, .iwb-modal-mask, .iwb-ctxmask')) return // 手势进行中(框选/平移/拖节点/连线/缩放)不按 target 断流:否则指针划过库面板,框选卡住、松手收不了尾
if (!(refs.box || refs.pan || refs.drag || refs.resize || refs.groupResize || refs.connFrom) && target && target.closest && target.closest('.iwb-fullmask, .iwb-lib, .iwb-lib-embedded, .iwb-drawer, .iwb-toolbar, .iwb-rightrail, .iwb-navrail, .iwb-plugin-page, .iwb-statusbar, .iwb-minimap, .iwb-hint-bottom, .iwb-modal-mask, .iwb-ctxmask')) return // 手势进行中(框选/平移/拖节点/连线/缩放)不按 target 断流:否则指针划过库面板,框选卡住、松手收不了尾
const vp = refs.viewport
if (!vp) return
// UI 缩放(zoom)下 pointer 坐标是视觉物理像素;画布坐标是布局像素 → 统一除以 uiZoom 对齐
@@ -7459,7 +7465,7 @@ const tbCenterSeed = (type, refs) => {
// 标题带在节点外框上方:纳入包围盒(居中适配时自动为其留出空间)
const topNode = nodes.find((n) => n.y === minY)
if (hasNodeTitle(topNode)) minY -= NODE_HEAD_H
const railEl = document.querySelector('.iwb-wsrail')
const railEl = document.querySelector('.iwb-navrail')
const railW = railEl ? railEl.getBoundingClientRect().width : 0
const libEl = document.querySelector('.iwb-lib')
const libW = (libEl && libEl.getBoundingClientRect().width > 0) ? libEl.getBoundingClientRect().width : 0
@@ -8096,7 +8102,7 @@ const tbCenterSeed = (type, refs) => {
prompts: { title: '提示词库', icon: 'book', pluginId: 'promptlib', hint: '提示词库插件未安装 · 设置 → 插件 → 市场安装' },
gallery: { title: '图库', icon: 'ref', pluginId: 'gallery', hint: '图库插件未安装 · 设置 → 插件 → 市场安装' },
}
return el('div', { className: 'iwb-overlay' + (wsExpanded ? ' ws-expanded' : '') + (shellView === 'landing' ? ' iwb-view-landing' : shellView === 'home' ? ' iwb-view-home' : ' iwb-view-canvas') + (drawerOpen ? ' drawer-open' : '') + ((nodes.length && loaded) ? ' has-minimap' : '') },
return el('div', { className: 'iwb-overlay' + (shellView === 'landing' ? ' iwb-view-landing' : shellView === 'home' ? ' iwb-view-home' : (shellView === 'plugins' ? ' iwb-view-plugins' : ' iwb-view-canvas')) + (drawerOpen ? ' drawer-open' : '') + ((nodes.length && loaded) ? ' has-minimap' : '') },
// 页面加载动画(加载完成后淡出)
!splashDone ? el('div', { className: 'iwb-splash' + (loaded ? ' iwb-splash-fade' : '') },
el('div', { className: 'iwb-splash-logo' }, I('palette')),
@@ -8200,73 +8206,32 @@ const tbCenterSeed = (type, refs) => {
el('div', { className: 'iwb-home-menu-ver' }, '版本 ' + APP_VERSION),
),
), document.body) : null,
el('div', { className: 'iwb-wsrail' },
el('div', { className: 'iwb-shell-nav' },
el('button', { className: 'iwb-shell-nav-item' + (shellView === 'canvas' ? ' iwb-shell-nav-active' : ''), onClick: () => goHome() }, I('palette'), el('span', null, '我的画布')),
),
el('div', { className: 'iwb-wsrail-title' + (wsMoreOpen ? ' iwb-wsrail-title-more' : ''), title: wsExpanded ? '无限画布工作台 · 点击收起' : '无限画布工作台 · 点击展开', onClick: () => { setWsMoreOpen(false); setShellView('canvas'); setWsExpanded(!wsExpanded); setTimeout(() => fitView(), 180) } },
el('span', { className: 'iwb-wsrail-title-text' }, I('palette'), el('span', { className: 'iwb-btn-text' }, wsExpanded ? '无限画布' : '')),
el('span', { className: 'iwb-wsrail-title-more-wrap' },
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon iwb-ws-title-more', title: '更多操作', onPointerDown: (e) => e.stopPropagation(), onClick: (e) => {
e.stopPropagation()
if (!wsMoreOpen) {
// 定位在按钮右侧下方(fixed 相对视口);右缘越界时回移
const r = e.currentTarget.getBoundingClientRect()
const M = 210
const left = Math.min(r.right + 6, Math.max(6, (window.innerWidth || 800) - M - 6))
setWsMorePos({ top: r.bottom + 6, left })
}
setWsMoreOpen((v) => !v)
} }, I('more')),
),
),
// ⋯ 三点下拉菜单(Portal 挂 body + fixed 定位:右侧展开不切割;层级高于画布)
wsMoreOpen ? ReactDOM.createPortal(el('div', { className: 'iwb-ws-more', style: wsMorePos, onPointerDown: (e) => e.stopPropagation(), onClick: (e) => e.stopPropagation() },
el('div', { className: 'iwb-ctx-title' }, '画布管理'),
el('button', { className: 'iwb-ctx-item', disabled: !sel.length, onClick: () => { setWsMoreOpen(false); exportSelectedGroup() } }, I('upload'), el('span', null, '导出选中节点组 (.iwb.json)')),
el('button', { className: 'iwb-ctx-item', onClick: () => { setWsMoreOpen(false); exportCanvas() } }, I('upload'), el('span', null, '导出画布 (.iwb.json)')),
el('label', { className: 'iwb-ctx-item', title: '导入画布 .iwb.json' },
el('input', { type: 'file', accept: '.json,application/json', style: { display: 'none' }, onChange: (e) => { importCanvasFile(e.target.files && e.target.files[0]); e.target.value = '' } }, null),
I('download'), el('span', null, '导入画布 (.iwb.json)'),
),
el('button', { className: 'iwb-ctx-item', onClick: () => { setWsMoreOpen(false); saveNow(); setNotice({ type: 'ok', text: '已保存画布' }) } }, I('save'), el('span', null, '保存画布')),
el('div', { className: 'iwb-ctx-sep' }, null),
el('button', { className: 'iwb-ctx-item', title: '放弃本地未保存改动,从 server 重新读取最新数据', onClick: () => { setWsMoreOpen(false); location.reload() } }, I('refresh'), el('span', null, '强制读取最新数据')),
el('button', { className: 'iwb-ctx-item', title: '导出不含 Key、提示词和图片的运行诊断', onClick: () => { setWsMoreOpen(false); exportRuntimeDiagnostics() } }, I('download'), el('span', null, '导出运行诊断')),
el('div', { className: 'iwb-ctx-sep' }, null),
el('button', { className: 'iwb-ctx-item', onClick: () => { setWsMoreOpen(false); setSettingOpen(true) } }, I('settings'), el('span', null, '服务与 Key 设置')),
el('button', { className: 'iwb-ctx-item', onClick: () => { setWsMoreOpen(false); setHelpOpen(true) } }, I('help'), el('span', null, '快捷键帮助')),
el('div', { className: 'iwb-ctx-sep' }, null),
el('a', { className: 'iwb-ctx-item', href: 'https://github.com/malongan/image-workbench-web', target: '_blank', rel: 'noopener' }, I('github'), el('span', null, '项目主页(GitHub)')),
el('div', { className: 'iwb-ctx-sep' }, null),
el('div', { className: 'iwb-ws-more-ver' }, '版本 ' + APP_VERSION),
), document.body) : null,
el('div', { className: 'iwb-wsrail-current' },
el('div', { className: 'iwb-wsrail-label' }, I('layer'), el('span', null, '无限画布工作台')),
el('div', { className: 'iwb-wsrail-current-name', title: '当前工作台' }, ((workspaces.find((w) => w.id === activeWsId) || {}).name || '未命名工作台')),
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: '切换工作台(首页)', onClick: () => goHome() }, I('list')),
),
// 底部(展开态:设置/主题/帮助/项目 4 项;收起态:完整图标列)
el('div', { className: 'iwb-wsrail-foot' + (wsExpanded ? '' : ' iwb-wsrail-foot-collapsed') },
wsExpanded ? [
el('div', { className: 'iwb-wsrail-footrow' },
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: '批量转当前画布本地图片为在线链接(不处理输出节点生成结果)', onClick: convertCanvasLocalRefs }, I('ref')),
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: '保存当前画布', onClick: () => { saveNow(); showToast('已保存当前画布') } }, I('save')),
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: '服务与 Key 设置', onClick: () => setSettingOpen(true) }, I('settings')),
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: theme === 'dark' ? '切换到亮色主题' : '切换到暗色主题', onClick: toggleTheme }, theme === 'dark' ? I('sun') : I('moon')),
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: '快捷键帮助 (?)', onClick: () => setHelpOpen(true) }, I('help')),
el('a', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', href: 'https://github.com/malongan/image-workbench-web', target: '_blank', rel: 'noopener', title: '项目主页(GitHub)' }, I('github')),
),
] : el('div', { className: 'iwb-wsrail-iconcol' },
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: '保存当前画布', onClick: () => { saveNow(); showToast('已保存当前画布') } }, I('save')),
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: '服务与 Key 设置', onClick: () => setSettingOpen(true) }, I('settings')),
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: theme === 'dark' ? '切换到亮色主题' : '切换到暗色主题', onClick: toggleTheme }, theme === 'dark' ? I('sun') : I('moon')),
el('button', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', title: '快捷键帮助 (?)', onClick: () => setHelpOpen(true) }, I('help')),
el('a', { className: 'iwb-btn iwb-btn-sm iwb-ws-headicon', href: 'https://github.com/malongan/image-workbench-web', target: '_blank', rel: 'noopener', title: '项目主页(GitHub)' }, I('github')),
),
),
),
// 一级导航(v3.25.59):替换原 wsrail。52px 纯图标,占同一槽位,不额外挤占画布。
NavRail ? el(NavRail, {
I,
view: shellView === 'plugins' ? 'plugins' : (shellView === 'home' ? 'home' : 'canvas'),
skinIcon: theme === 'dark' ? 'sun' : 'moon',
onHome: () => { setShellView('home'); try { goHome() } catch (e) { /* ignore */ } },
onCanvas: () => setShellView('canvas'),
onPlugins: () => setShellView('plugins'),
onHelp: () => { setHelpMode('help'); setHelpOpen(true) },
onHotkeys: () => { setHelpMode('keys'); setHelpOpen(true) },
onSkin: () => { try { toggleTheme() } catch (e) { /* ignore */ } },
onSettings: () => setSettingOpen(true),
onMore: (ev) => {
try {
const r = ev.currentTarget.getBoundingClientRect()
const M = 210
setWsMorePos({ top: Math.min(r.top, (window.innerHeight || 800) - 320), left: Math.min(r.right + 6, (window.innerWidth || 1000) - M - 6) })
} catch (e) { /* ignore */ }
setWsMoreOpen((v) => !v)
},
}) : null,
shellView === 'canvas' && enteringWs ? el('div', { className: 'iwb-enter-loading' }, el('div', { className: 'iwb-enter-spinner' }, null), el('div', { className: 'iwb-enter-text' }, '正在打开画布…')) : null,
// 插件整页(v3.25.59):主组「插件」图标进入;返回回到画布
shellView === 'plugins' ? (PluginsPage
? el(PluginsPage, { I, PluginHost, wRuntimePlugins, wEnsurePluginLoaded, Sections: window.IWBUISettingsSections, onBack: () => setShellView('canvas') })
: el('div', { className: 'iwb-plugin-page' }, el('div', { className: 'iwb-plugin-page-head' }, '插件页未就绪'))) : null,
tabstripEl, // S12:顶部标签条(在顶栏上方)
topbarEl,
el('div', {
@@ -8277,7 +8242,7 @@ const tbCenterSeed = (type, refs) => {
refs.bodyDown = null
// 弹窗/面板等画布之外层级的元素上右键:不激活画布菜单,保留浏览器默认右键菜单(粘贴/复制等)
const t0 = e.target
if (t0 && t0.closest && t0.closest('.iwb-modal-mask, .iwb-fullmask, .iwb-fullpanel, .iwb-ctxmask, .iwb-drawer, .iwb-toolbar, .iwb-rightrail, .iwb-wsrail, .iwb-statusbar, .iwb-minimap, .iwb-hint-bottom, .iwb-lib, .iwb-lib-embedded, .iwb-history, .iwb-history-embedded, .iwb-ctxmenu')) return
if (t0 && t0.closest && t0.closest('.iwb-modal-mask, .iwb-fullmask, .iwb-fullpanel, .iwb-ctxmask, .iwb-drawer, .iwb-toolbar, .iwb-rightrail, .iwb-navrail, .iwb-plugin-page, .iwb-statusbar, .iwb-minimap, .iwb-hint-bottom, .iwb-lib, .iwb-lib-embedded, .iwb-history, .iwb-history-embedded, .iwb-ctxmenu')) return
e.preventDefault()
// 计算右键位置的世界坐标,并命中目标节点(未选中则选中它)
let cRect = null
@@ -8303,7 +8268,7 @@ const tbCenterSeed = (type, refs) => {
const t0 = e.target
// 注意:.iwb-group 本身不排除(外框 pointer-events:auto),组框内空白双击同样为无操作;
// 只排除节点、操作栏与缩放手柄等有自身交互的元素。
if (t0 && t0.closest && t0.closest('.iwb-node, .iwb-group-bar, .iwb-group-handle, .iwb-edge, .iwb-toolbar, .iwb-drawer, .iwb-lib, .iwb-lib-embedded, .iwb-history, .iwb-history-embedded, .iwb-rightrail, .iwb-fullmask, .iwb-fullpanel, .iwb-wsrail, .iwb-minimap, .iwb-statusbar, .iwb-hint-bottom')) return
if (t0 && t0.closest && t0.closest('.iwb-node, .iwb-group-bar, .iwb-group-handle, .iwb-edge, .iwb-toolbar, .iwb-drawer, .iwb-lib, .iwb-lib-embedded, .iwb-history, .iwb-history-embedded, .iwb-rightrail, .iwb-fullmask, .iwb-fullpanel, .iwb-navrail, .iwb-plugin-page, .iwb-minimap, .iwb-statusbar, .iwb-hint-bottom')) return
// 保留「真实框选拖动(位移>8px)后 600ms 内屏蔽 dblclick」判定:框选收尾时浏览器可能补发一次 dblclick,
// 该判定同时守住节点标题栏双击(居中放大)不被框选残留误吞(见下方 lastBoxMove 记账处)。
// 纯点击/双击不受影响。
@@ -8323,7 +8288,7 @@ const tbCenterSeed = (type, refs) => {
// 真模态(设置/备份/确认/右键遮罩)才整体拦画布;库面板 .iwb-fullmask 是可拖可连的浮窗,画布露在它外面仍要能框选(面板内起手由下面 target 判定兜住)
if (typeof document !== 'undefined' && document.querySelector && document.querySelector('.iwb-modal-mask, .iwb-ctxmask')) return
const t0 = e.target
if (t0 && t0.closest && (t0.closest('.iwb-toolbar') || t0.closest('.iwb-lib') || t0.closest('.iwb-lib-embedded') || t0.closest('.iwb-drawer') || t0.closest('.iwb-history') || t0.closest('.iwb-history-embedded') || t0.closest('.iwb-rightrail') || t0.closest('.iwb-fullmask') || t0.closest('.iwb-fullpanel') || t0.closest('.iwb-minimap') || t0.closest('.iwb-wsrail') || t0.closest('.iwb-statusbar') || t0.closest('.iwb-hint-bottom') || t0.closest('.iwb-modal-mask') || t0.closest('.iwb-modal') || t0.closest('.iwb-cpick-pop'))) return
if (t0 && t0.closest && (t0.closest('.iwb-toolbar') || t0.closest('.iwb-lib') || t0.closest('.iwb-lib-embedded') || t0.closest('.iwb-drawer') || t0.closest('.iwb-history') || t0.closest('.iwb-history-embedded') || t0.closest('.iwb-rightrail') || t0.closest('.iwb-fullmask') || t0.closest('.iwb-fullpanel') || t0.closest('.iwb-minimap') || t0.closest('.iwb-navrail, .iwb-plugin-page') || t0.closest('.iwb-statusbar') || t0.closest('.iwb-hint-bottom') || t0.closest('.iwb-modal-mask') || t0.closest('.iwb-modal') || t0.closest('.iwb-cpick-pop'))) return
// 平移画布:按住空格(临时)或选中抓手工具(持续);默认 = 框选节点
if (refs.spaceDown || tool === 'pan') {
refs.pan = { sx: e.clientX / uiZoom(), sy: e.clientY / uiZoom(), vx: viewport.x, vy: viewport.y }
@@ -8472,45 +8437,13 @@ const tbCenterSeed = (type, refs) => {
helpOpen ? ReactDOM.createPortal(el('div', { className: 'iwb-modal-mask', onWheel: (e) => e.stopPropagation(), onPointerDown: (e) => { if (e.target === e.currentTarget) setHelpOpen(false) } },
el('div', { className: 'iwb-modal iwb-modal-sm iwb-help-modal' },
el('div', { className: 'iwb-modal-head' },
el('span', { className: 'iwb-toolbar-title' }, '快捷键与操作'),
el('span', { className: 'iwb-toolbar-title' }, helpMode === 'help' ? '帮助与快捷键' : '快捷键'),
el('button', { className: 'iwb-btn iwb-btn-sm', onClick: () => setHelpOpen(false) }, '✕'),
),
el('div', { className: 'iwb-modal-body iwb-help', onWheel: (e) => e.stopPropagation() },
el('div', { className: 'iwb-help-row' }, el('b', null, '拖拽'), '平移画布;拖动节点头部移动节点'),
el('div', { className: 'iwb-help-row' }, el('b', null, '右键'), '自定义菜单:添加节点 / 复制选中 / 导出选中节点组 / 收藏 / 删除选中 / 该节点快捷操作(编组解组与适应视图不在其中)'),
el('div', { className: 'iwb-help-row' }, el('b', null, '底栏「适应视图」'), '显示全部节点(双击画布空白不再适应视图)'),
el('div', { className: 'iwb-help-row' }, el('b', null, '双击节点标题栏'), '居中放大该节点;重命名节点:气泡铅笔 / 右键菜单 / F2(单选)'),
el('div', { className: 'iwb-help-row' }, el('b', null, '拖拽'), '框选节点(默认);Ctrl/Cmd+点击 多选'),
el('div', { className: 'iwb-help-row' }, el('b', null, '空格 / 鼠标中键 + 拖拽'), '平移画布;抓手工具(H)等效——选中后不用按空格,V 切回选择'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'Ctrl+G / Shift+Ctrl+G'), '编组 / 取消编组'),
el('div', { className: 'iwb-help-row' }, el('b', null, '滚轮'), '缩放画布(可在节点右下角拖拽调大小)'),
el('div', { className: 'iwb-help-row' }, el('b', null, '拖入图片'), '到画布 = 图片节点(本地文件 / 历史图 / 提示词卡片 / 节点组卡片均可)'),
el('div', { className: 'iwb-help-row' }, el('b', null, '连线'), '从出端口拖到目标模块区域自动连接(绿框=可连,红框=不可连);点击连线选中 Delete 断开,双击直接断开'),
el('div', { className: 'iwb-help-row' }, el('b', null, '框选'), '拖动画布框选节点;Shift 追加选择,Alt 反选,普通框选替换当前选择'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'Esc / ⌘A'), 'Esc 取消当前连线或框选;⌘/Ctrl + A 选中当前画布全部节点'),
el('div', { className: 'iwb-help-row' }, el('b', null, '⌘/Ctrl + D'), '复制选中节点'),
el('div', { className: 'iwb-help-row' }, el('b', null, '⌘/Ctrl + C/V/X'), '复制 / 粘贴 / 剪切选中节点(包含内部连线);复制只进内部剪贴板,不写系统剪贴板'),
el('div', { className: 'iwb-help-row' }, el('b', null, '⌘/Ctrl + Shift + V'), '粘贴内部节点组(跨画布/跨标签,不受系统剪贴板内容影响;内部剪贴板 10 分钟内有效)'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'F'), '适配选中节点到当前屏幕(缩放 130%)'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'Shift + M'), '微调选中节点到网格;保持节点相对位置、图片顺序和文本顺序不变'),
el('div', { className: 'iwb-help-row' }, el('b', null, '⌘/Ctrl + S / ⇧S'), '保存画布 / 导出画布 JSON'),
el('div', { className: 'iwb-help-row' }, el('b', null, '⌘/Ctrl + Z / ⇧Z'), '撤销 / 重做(含参数修改与排序)'),
el('div', { className: 'iwb-help-row' }, el('b', null, '⌘/Ctrl + R'), '运行全部生图节点(自动先润色 LLM 链)'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'M'), '启用 / 停用选中节点(停用不参与执行,再按 M 恢复)'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'Delete / Backspace'), '删除选中节点(输入框内无效)'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'Escape'), '关闭弹窗 / 取消'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'Alt + 拖到连线松手'), '插入:节点吸附到连线中间并拆成两条连线(需按住 Alt,普通移动不会吸入);同时若节点在链中间(单入单出)按住 Alt 拖出松手 = 脱离,两端直接相连'),
el('div', { className: 'iwb-help-row' }, el('b', null, '⌘/Ctrl + E'), '适配选中节点到当前屏幕(同 F)'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'Shift + F'), '适应视图(显示全部节点;等同底栏最右「适应视图」按钮)'),
el('div', { className: 'iwb-help-row' }, el('b', null, 'T / N'), '打开 / 关闭左侧栏(浏览器、节点组、风格库)/ 右侧栏(提示词库、图库)'),
el('div', { className: 'iwb-help-row' }, el('b', null, '?'), '打开本快捷键帮助'),
el('div', { className: 'iwb-help-row' }, el('b', null, '提示词变量'), '在提示词/文本中写 {date}(日期) {time}(时间) {model}(模型),发送生成时自动替换'),
el('div', { className: 'iwb-help-row' }, el('b', null, '中断恢复'), '生成中途刷新/关闭:重开后底部横幅可一键继续(跳过已完成张,24 小时内)'),
el('div', { className: 'iwb-help-row' }, el('b', null, '连接'), '新节点:连接多个 提示词/文本/组合/润色,填统一文案;每个来源对应一对输入/输出端口,拖右侧端口连「文本 / 生图 / 组合」;参考图按来源各自透传不共享'),
el('div', { className: 'iwb-help-row' }, el('b', null, '输出面板'), '「批量出图(N 张)」一次生成全部来源勾选任务;「批量下载」下载全部图;每图可插入画布/下载;多生图节点结果自动分组,同名组带 ②③ 编号'),
el('div', { className: 'iwb-help-row' }, el('b', null, '任务卡复选框'), '勾选=激活:参与「生成全部 / 输出出图」;取消勾选=跳过;张数下拉在生成按钮前'),
el('div', { className: 'iwb-help-row' }, el('b', null, '可选润色链'), '提示词 → 润色 → 文本 → 生图'),
el('div', { className: 'iwb-help-row' }, el('b', null, '服务'), '⚙️ 设置 4-Tab:生图服务(多地址/测速/模型显隐) / LLM / 图片传输 / 通用'),
HotkeyHelp
? el(HotkeyHelp, { hotkeys: (config && config.canvas && config.canvas.hotkeys) || {}, defaults: HOTKEY_DEFAULTS, detailsOpen: helpMode === 'help' })
: el('div', { className: 'iwb-hint' }, '快捷键模块未就绪'),
),
),
), document.body) : null,
+5 -5
View File
@@ -1,7 +1,7 @@
# 现状架构与性能事实基线(image-workbench-web)
> **本文档是什么**:现状**事实快照**,不是规范。用途:任何性能 / 内存 / 存储相关改动,先对齐这里的现实,避免把已经调好的东西改坏。
> 日期 **2026-10-20**(**2026-11-16 复算 · v3.24.85**)| 基线(**最近一次 bump 版本的提交**,不是主干 HEAD)`main = c2c208f`(线上 `v3.25.58+c2c208f` —— **未上线**(本地测试中):左右停靠栏配色对齐主色调(新增 `--iwb-dock-bg` 进灰阶 ramp + 头部深一档 + `.iwb-pcard` 补白底)+ 修 `Cargo.toml`/`Cargo.lock` 版本漂移,四处统一到 3.25.58)。上一条 3.25.30:线上实际运行提交是 docs 提交 `7df9dc4`,bump 提交为 `4be78c0`;2026-11-16 已发**测试站 + 正式站**,三地址一致 + `IWB_VERIFY_STRICT=1` 通过。v3.24.85 是「代码体检收口」(棘轮收回 Workbench 3090→2998 + 图库索引 4 条绕过锁的写路径收口到 `mutate` + 文档数字校准),`stable` / `stable-v3.24.85` / `stable-verified-2026-11-16` 均指向 `7df9dc4`。上一条 —— 2026-11-14 发**测试站 + 正式站** `https://test.image-workbench-web.pages.dev`:**v3.24.84 修「生图节点连了 3 条上游只出 1 个任务」**(任务 id 与去重基准改用新字段 `ownerNodeId`=本节点自己,不再用随继承冒泡的 `sourceNodeId` ⇒ 连几条线就几个任务;`relay` 仍归约到真实文本来源,同一来源多路径抵达只算一次)。上一条 v3.24.83:**修「插件节点冷启动退化成一段文本」**(插件节点体是异步注册的,`registerNodeType` 在 `render` 由无变有时自增 `NODE_TYPES_REV`,`NodeCard` 比它 ⇒ 注册那一刻重建一次;`canvas-normalize` 按命名规则把 `plugin:<id>:<variant>` 认作已知类型,不再降级成 `plugin` 并写回存档);配套插件 `style-source` 1.3.2 把节点体样式改为**脚本执行时注入**(此前只在面板 `mount()` 注入 ⇒ 从存档直接进画布时节点无样式、缩略图按原图铺满)。上一条 v3.24.82 同批:提示词/文本节点**显示上游继承文本**(自己 `data.text` 为空时把上游那段话显示在框里,改一个字即接管,另有「恢复跟随」清空回跟随;多路上游按 Y 轴取第一条)+ 修 `nodeRefsOf` 的 textout 分支只认 llm/batch/combine 上游导致「样式 → 文本 → 分层」丢参考图;再上一条 v3.24.81:① 插件节点可自定义节点体(`render(node, props, host)` 画真实 DOM,宿主不每帧重建 ⇒ 输入框不失焦);② 节点自带参考图(`data.refOn/refUrl` ⇒ 任务图里补伪参考图,坐标取节点自身 ⇒ 仍参与「图片按 X 轴排序」);③ 连线白名单按 `data.outKind === 'prompt'` 归一化,7 条规则一次放行,内置节点行为逐字不变。上一条 v3.24.80 = 离开页面的兜底保存不递增 rev(2026-11-14 07:20 补发 —— 首发 11-13 23:25 撞 Cloudflare Workers API 事故 `503 no healthy upstream`,期间正式站保持在 `v3.24.79+8598a57` 未动)。v3.24.83 的 bump 提交即 `0a27a42`(v3.24.82 为 `ef6cf42`、v3.24.81 为 `dba71e3`);主干 HEAD 会继续前进,见 [`RELEASES.md`](../RELEASES.md))| 历史分支 `refactor/architecture` / `feat/multi-canvas-tabs` / `refactor/state-store` 已于 2026-10-20 清理(内容均已并入 main,归档标签 `archive/*`),本文**计数类事实**已按 main HEAD 复算。
> 日期 **2026-10-20**(**2026-11-16 复算 · v3.24.85**)| 基线(**最近一次 bump 版本的提交**,不是主干 HEAD)`main = 6db5a14`(线上 `v3.25.59+6db5a14` —— **未上线**(本地测试中):左右停靠栏配色对齐主色调(新增 `--iwb-dock-bg` 进灰阶 ramp + 头部深一档 + `.iwb-pcard` 补白底)+ 修 `Cargo.toml`/`Cargo.lock` 版本漂移,四处统一到 3.25.58)。上一条 3.25.30:线上实际运行提交是 docs 提交 `7df9dc4`,bump 提交为 `4be78c0`;2026-11-16 已发**测试站 + 正式站**,三地址一致 + `IWB_VERIFY_STRICT=1` 通过。v3.24.85 是「代码体检收口」(棘轮收回 Workbench 3090→2998 + 图库索引 4 条绕过锁的写路径收口到 `mutate` + 文档数字校准),`stable` / `stable-v3.24.85` / `stable-verified-2026-11-16` 均指向 `7df9dc4`。上一条 —— 2026-11-14 发**测试站 + 正式站** `https://test.image-workbench-web.pages.dev`:**v3.24.84 修「生图节点连了 3 条上游只出 1 个任务」**(任务 id 与去重基准改用新字段 `ownerNodeId`=本节点自己,不再用随继承冒泡的 `sourceNodeId` ⇒ 连几条线就几个任务;`relay` 仍归约到真实文本来源,同一来源多路径抵达只算一次)。上一条 v3.24.83:**修「插件节点冷启动退化成一段文本」**(插件节点体是异步注册的,`registerNodeType` 在 `render` 由无变有时自增 `NODE_TYPES_REV`,`NodeCard` 比它 ⇒ 注册那一刻重建一次;`canvas-normalize` 按命名规则把 `plugin:<id>:<variant>` 认作已知类型,不再降级成 `plugin` 并写回存档);配套插件 `style-source` 1.3.2 把节点体样式改为**脚本执行时注入**(此前只在面板 `mount()` 注入 ⇒ 从存档直接进画布时节点无样式、缩略图按原图铺满)。上一条 v3.24.82 同批:提示词/文本节点**显示上游继承文本**(自己 `data.text` 为空时把上游那段话显示在框里,改一个字即接管,另有「恢复跟随」清空回跟随;多路上游按 Y 轴取第一条)+ 修 `nodeRefsOf` 的 textout 分支只认 llm/batch/combine 上游导致「样式 → 文本 → 分层」丢参考图;再上一条 v3.24.81:① 插件节点可自定义节点体(`render(node, props, host)` 画真实 DOM,宿主不每帧重建 ⇒ 输入框不失焦);② 节点自带参考图(`data.refOn/refUrl` ⇒ 任务图里补伪参考图,坐标取节点自身 ⇒ 仍参与「图片按 X 轴排序」);③ 连线白名单按 `data.outKind === 'prompt'` 归一化,7 条规则一次放行,内置节点行为逐字不变。上一条 v3.24.80 = 离开页面的兜底保存不递增 rev(2026-11-14 07:20 补发 —— 首发 11-13 23:25 撞 Cloudflare Workers API 事故 `503 no healthy upstream`,期间正式站保持在 `v3.24.79+8598a57` 未动)。v3.24.83 的 bump 提交即 `0a27a42`(v3.24.82 为 `ef6cf42`、v3.24.81 为 `dba71e3`);主干 HEAD 会继续前进,见 [`RELEASES.md`](../RELEASES.md))| 历史分支 `refactor/architecture` / `feat/multi-canvas-tabs` / `refactor/state-store` 已于 2026-10-20 清理(内容均已并入 main,归档标签 `archive/*`),本文**计数类事实**已按 main HEAD 复算。
<!-- 2026-10-28 P1 拆分批 1:新增 src/generation-task-graph.js(5 个任务图纯函数自 app.js 迁出)
⇒ 模块数 60→61、耦合面 51→52、sourceModules 60→61。耦合面只**新增** IWBWTaskGraph,无删除。
2026-10-28 P1 拆分批 2:新增 src/storage-config-shape.js(9 个配置形状纯函数自 app.js 迁出)
@@ -22,7 +22,7 @@
- 图片**新写入主通道 = IndexedDB Blob `{__blob}` / key `imgblob_<hash>_<len>`** (A) `app.js:2143`;`{__cache}`(Cache Storage)为兜底;\`ref_\`(`app.js` 内定义的 `IDB_REF_PREFIX = 'ref_'`)为 legacy 形态 (A)。
- 大图判定:`isBigDataUrl` = `data:` 且 `length > 3000` (A) `app.js:2018`;**画布保存保留阈值** `< 16384` 才原样保留 (A) `app.js:2182`。**两处阈值并存,含义不同**。
- 单测是**源码契约测试**:`tests/` 目录共 **493** 处源码文本钉点(`source.includes` / `source.indexOf` / `/re/.test(source)`),分布在 **20** 个文件(其中 `iwb-v32-web-test.js` 一个就占 **407**)→ **结构性重构会先打红测试**。**该数字已由 `tests/source-text-ratchet-test.js` 的「只减不增」棘轮守门**(2026-10-20 起守卫范围从 1 个文件扩到全目录:新增任何一处源码文本钉点都会打红)。**2026-11-12 复算**(`npm run audit:pins`,v3.24.76):二分 STRUCT **417** / NAME **76**;形态 **POS 403 / NEG 87 / COUNT 3**;难度 **易 62 / 中 316 / 难 115**。钉点减法第一批(v3.24.72)把 **537 → 505**:8 条探针钉点改为「门禁内 spec 是否真的读该计数器」、5 条改为运行时断言(生产态 `window` 上无探针)、10 条改为 DOM 断言(质量档位禁用 / 传输页无三模式按钮 / 模型项 title)、4 条改为运行时对象断言(健康检查两域、策略对象冻结)、其余 9 条有同文件 DOM 等价断言或仅剩 NEG。第二批(v3.24.76)把 **505 → 493**:94-5~7 三条「多标签释放语义」(10 处正则)换成 `tests/iwb-tabs-release.spec.js` 的 3 条真 e2e,剩 1 条「消费方契约」(断言该 spec 在门禁内且 spec 源码真的读两个探针);另 2 条 `wPurgeIntent.add` 钉点改为读 `src/workspace-purge.js`。**这一批一换就查出 3 个真缺陷**(objectURL 从未释放 / 彻底删除留孤儿标签 · session / 刷新后误回收打开标签的图)—— 见 CHANGELOG v3.24.76。
- `app.js` = 单 IIFE **8,508 行**(**双层预算**:绝对上限 8,700 / 占总源码 ≤ 40%,现 **36.8%**,2026-11-12 起;此前为单一上限 8,509、零余量);`Workbench()` = **2,998 行**(上限 **3,030**,余量 32;2026-11-16 把生成取消族 `cancelRunsFor`/`cancelRun`/`cancelTaskJobs` 与工作区列表写回族 `persistWs`/`duplicateWs` 搬进 `src/runtime-workbench-logic.js`(`createCancelActions` / `createWorkspaceListActions`),并删掉全仓零调用的 `runAll`,3090 → 2,998);大量逻辑已抽到 `src/*.js`(现 **92** 个模块 / 14,607 行,`sourceModules` 92 项;v3.24.68 新增 `clipboard-graph.js`,v3.24.74 新增 `image-admit.js`,v3.24.75 新增 `image-dedupe.js`,v3.24.76 新增 `workspace-purge.js`,v3.24.79 新增 `generation-provider-ping.js`,v3.24.80 删除无调用的 `createWBFlushViewport` 17 行)。
- `app.js` = 单 IIFE **8,508 行**(**双层预算**:绝对上限 8,700 / 占总源码 ≤ 40%,现 **36.8%**,2026-11-12 起;此前为单一上限 8,509、零余量);`Workbench()` = **2,998 行**(上限 **3,030**,余量 32;2026-11-16 把生成取消族 `cancelRunsFor`/`cancelRun`/`cancelTaskJobs` 与工作区列表写回族 `persistWs`/`duplicateWs` 搬进 `src/runtime-workbench-logic.js`(`createCancelActions` / `createWorkspaceListActions`),并删掉全仓零调用的 `runAll`,3090 → 2,998);大量逻辑已抽到 `src/*.js`(现 **95** 个模块 / 14,607 行,`sourceModules` 95 项;v3.24.68 新增 `clipboard-graph.js`,v3.24.74 新增 `image-admit.js`,v3.24.75 新增 `image-dedupe.js`,v3.24.76 新增 `workspace-purge.js`,v3.24.79 新增 `generation-provider-ping.js`,v3.24.80 删除无调用的 `createWBFlushViewport` 17 行)。
- 门禁:`npm run verify` = `verify:ci`(`build` → `node --check app.js` → `node --check dist/app.js` → `check-dist.js` → `lint`(ESLint 正确性规则,`src/` + `app.js`,P4-16a)→ `test:unit` → `test` → `test:facts`)+ `test:e2e` (A) `package.json`。
## 2. 门禁与环境现状
@@ -167,7 +167,7 @@
- 同一张图被 3 个节点引用、hydrate 成 3 个不同 objectURL 时,preview/display 缓存各自 miss → 重复解码(与 F2 相邻)。
- **F10|`refs.genScheduler` 是桩** (A) → 未接线,暂无运行时影响(P3)。
- **F11|已建但未接线的模块层(2026-10-17 接线审计;2026-10-18 复核更正)** (A)
- **判定法**:`global.X =` / `root.X =` 判「导出」;跨文件裸引用判「读」;排除自合并(`src/runtime-constants.js:9`)。`app.js` 是**唯一生产消费者**(无 HTML 入口;`sw.js` 不引用模块全局)。**92 个模块中 59 个导出**被 `app.js` 读取;其余为未接线 / 仅测试 / 零引用(见下)。
- **判定法**:`global.X =` / `root.X =` 判「导出」;跨文件裸引用判「读」;排除自合并(`src/runtime-constants.js:9`)。`app.js` 是**唯一生产消费者**(无 HTML 入口;`sw.js` 不引用模块全局)。**95 个模块中 59 个导出**被 `app.js` 读取;其余为未接线 / 仅测试 / 零引用(见下)。
- **仅被测试引用(9 模块 + 2 导出)**:`canvas-domain`、`generation-retry`、`generation-service`、`runtime-recovery-runner`、`runtime-state-bridge`、`runtime-store`、`storage-reconcile`、`storage-result`、`workspace-service`;导出 `IWBStorageHealthFactory`、`IWBPluginHostFactory`。(`storage-result` 是**存储层共享结果类型**,被 6 个存储模块读取,**非死代码**;`runtime-store` 为状态模型 epic 地基。)
- **app.js 零引用(1 模块 + 3 导出)**:模块 `generation-controller`;导出 `IWBRuntimeMetricsFactory`、`IWBStorageRuntimeFactory`、`IWBUIComponents`。`canvas-relations` 已随 `06cf211` 删除(本文档早前把它列为"唯一可删者",实际已删)。零引用证据 = `grep -rn "<名字>" .`(排除 `node_modules|dist|vendor|test-results`)**只命中其自身赋值行**。
- **半接线 / 未接线**:`IWBRuntimeStateBridge` **无 app.js 引用(仅测试)**;`IWBRuntimeRunContext` **已接线**(`runNode` 读取运行上下文);`IWBGenerationController` 是完整但**从未被调用**的工厂;`ModularWorkspaceStore`(`app.js` 内)是 `storage-workspace` 的**预留接线 seam**(当前无下游使用,保留);`window.IWBImageFolder` 自注册后读回(装载路径)。
@@ -183,7 +183,7 @@
| `storage-reconcile` | 存储对账(`createReconciler`/`check`) | 内联对账 | 存储层收口 |
| `runtime-recovery-runner` | 执行恢复候选(`candidate`/`valid`/`run`) | 内联恢复 | 断点恢复 |
| `canvas-domain` | 画布域模型(`commit`/`updateNode`/`deleteNodes`…) | `CanvasStore` 那一套 | Workbench 解耦(P2-9) |
- **耦合面已冻结**:`tests/architecture-boundary-guard-test.js`(进 `npm run test:unit` 末环)冻结 app.js↔src 耦合面(**76** 项)与 `sourceModules` 顺序(**92** 项);命名例外由第 5 组冻结,新增非 `IWB` 前缀导出即打红。
- **耦合面已冻结**:`tests/architecture-boundary-guard-test.js`(进 `npm run test:unit` 末环)冻结 app.js↔src 耦合面(**80** 项)与 `sourceModules` 顺序(**95** 项);命名例外由第 5 组冻结,新增非 `IWB` 前缀导出即打红。
## 12. 易踩的坑
@@ -254,7 +254,7 @@
**信任模型(必须明示)**:形态 A 的插件是**可信代码**(与核心同权限、无沙箱);启停与设置是 UX 与可维护性手段,**不是安全边界**(同 §13.27 教训:前端开关一定可被绕过)。
**守门与快照**:`tests/architecture-boundary-guard-test.js` 冻结「app.js ↔ src 耦合面」(**76** 项)与 `sourceModules` 顺序(**92** 项);新增模块、新增耦合、新增 dev 探针都**必须有意重生成对应快照**(`IWB_WRITE_BOUNDARY_SNAPSHOT=1`)。契约与行为的可执行验证在 `tests/plugin-host-test.js`(宿主单测)与 `tests/_plugin-host-probe.spec.js`(真实浏览器探针,`_` 前缀 + `iwb-dev-probe`,不进 34 门禁)。
**守门与快照**:`tests/architecture-boundary-guard-test.js` 冻结「app.js ↔ src 耦合面」(**80** 项)与 `sourceModules` 顺序(**95** 项);新增模块、新增耦合、新增 dev 探针都**必须有意重生成对应快照**(`IWB_WRITE_BOUNDARY_SNAPSHOT=1`)。契约与行为的可执行验证在 `tests/plugin-host-test.js`(宿主单测)与 `tests/_plugin-host-probe.spec.js`(真实浏览器探针,`_` 前缀 + `iwb-dev-probe`,不进 34 门禁)。
**关键陷阱**:`normalizeNodes`(现位于 `src/canvas-normalize.js`)会**静默丢弃**不在 `NODE_H` 里的节点类型 ⇒ 新增节点类型必须先登记 `NODE_H`,否则节点一刷新就消失(§13.27 规则三的同一失败模式)。
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "image-workbench-web",
"private": true,
"version": "3.25.58",
"version": "3.25.59",
"description": "Browser-based node canvas image workbench",
"scripts": {
"build": "node scripts/build.js && node scripts/copy-plugins.js",
+3
View File
@@ -92,6 +92,9 @@ const sourceModules = [
'generation-task-graph.js',
'generation-results-store.js',
'ui-dock.js',
'ui-nav-rail.js',
'ui-plugin-page.js',
'ui-hotkey-help.js',
'ui-desktop-shell.js',
'ui-appearance.js',
'runtime-download-auto.js',
+11 -7
View File
@@ -54,18 +54,18 @@
<h2>下载</h2>
<div class="row">
<div class="name">macOS · Apple Silicon<div class="hint">M1 / M2 / M3 / M4</div></div>
<div class="meta">版本 3.25.34 · 8.4 MB · .dmg<div class="hash">sha256 3107284da68e2c5b…</div></div>
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.25.34_aarch64.dmg?h=3107284da68e">下载</a>
<div class="meta">版本 3.25.59 · 8.4 MB · .dmg<div class="hash">sha256 9538012f76227ae5…</div></div>
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.25.59_aarch64.dmg?h=9538012f7622">下载</a>
</div>
<div class="row">
<div class="name">macOS · Intel<div class="hint">x86_64</div></div>
<div class="meta">版本 3.25.34 · 8.7 MB · .dmg<div class="hash">sha256 888cf42081964760…</div></div>
<a class="btn" href="/updates/darwin-x86_64/image-workbench_3.25.34_x64.dmg?h=888cf4208196">下载</a>
<div class="meta">版本 3.25.59 · 8.7 MB · .dmg<div class="hash">sha256 d6d8573f68172998…</div></div>
<a class="btn" href="/updates/darwin-x86_64/image-workbench_3.25.59_x64.dmg?h=d6d8573f6817">下载</a>
</div>
<div class="row">
<div class="name">Windows · x64<div class="hint">需要 WebView2</div></div>
<div class="meta">版本 3.25.34 · 4.8 MB · .exe<div class="hash">sha256 62f9e1a812b10d68…</div></div>
<a class="btn" href="/updates/windows-x86_64/image-workbench_3.25.34_x64-setup.exe?h=62f9e1a812b1">下载</a>
<div class="meta"></div>
<span class="muted">暂未提供</span>
</div>
<h2>系统要求</h2>
@@ -94,6 +94,10 @@
</ol>
<h2>历史版本</h2>
<div class="row">
<div class="name">3.25.59<div class="hint">Intel 版:一级导航 + 插件页 + 快捷键弹窗</div></div>
<div class="meta">2026-11-20<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
</div>
<div class="row">
<div class="name">3.25.34<div class="hint">v3.25.34:自动下载仅在开启时才等待图库归档(未开启不拖慢出图);清理废弃字段。</div></div>
<div class="meta">2026-11-19<div class="hint">macOS · Apple Silicon / macOS · Intel / Windows · x64</div></div>
@@ -236,7 +240,7 @@
</div>
<div class="foot">
本页由 <code>scripts/gen-release-page.js</code> 从 releases.json 生成 · 源码 <a href="https://git.maqiart.eu.org/malongan/image-workbench-desktop">git.maqiart.eu.org</a> · 更新于 2026-11-19
本页由 <code>scripts/gen-release-page.js</code> 从 releases.json 生成 · 源码 <a href="https://git.maqiart.eu.org/malongan/image-workbench-desktop">git.maqiart.eu.org</a> · 更新于 2026-11-20
</div>
</div></div>
+26 -26
View File
@@ -2,7 +2,7 @@
<html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Image Workbench · 本地优先的 AI 生图工作台</title>
<meta name="description" content="本地优先的 AI 生图无限画布:节点式工作流、插件按需安装、数据全部留在本机。">
<link rel="stylesheet" href="/assets/style.css?v=3.25.34-mwnd1jua">
<link rel="stylesheet" href="/assets/style.css?v=3.25.59-mwp1a1f8">
</head><body>
<nav><div class="wrap inner">
<a class="brand" href="/"><span class="dot">IW</span>Image Workbench</a>
@@ -14,20 +14,20 @@
</div>
<div class="right">
<a class="btn" href="/plugins/">插件市场</a>
<a class="btn primary" href="/download/">下载 v3.25.34</a>
<a class="btn primary" href="/download/">下载 v3.25.59</a>
</div>
</div></nav>
<main>
<section class="hero hero-art">
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.25.34-mwnd1jua" alt=""></div>
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.25.59-mwp1a1f8" alt=""></div>
<div class="hero-veil"></div>
<div class="wrap">
<span class="kicker">v3.25.34 · macOS / Windows · 数据在本地</span>
<span class="kicker">v3.25.59 · macOS / Windows · 数据在本地</span>
<h1>本地优先的<br>AI 生图无限画布</h1>
<p class="sub">用节点把「参考图 → 提示词 → 批量生成 → 图库」串成一条生产线。<br>图片、提示词、模型配置全部留在你自己的电脑里,插件按需安装。</p>
<div class="cta">
<a class="btn primary lg" href="/download/">下载 v3.25.34</a>
<a class="btn lg" href="/plugins/">浏览 8 个插件</a>
<a class="btn primary lg" href="/download/">下载 v3.25.59</a>
<a class="btn lg" href="/plugins/">浏览 11 个插件</a>
</div>
<div class="meta">支持 macOS 12+ 与 Windows 10 1803+ · 安装包约 7 MB · 无需登录</div>
</div></section>
@@ -64,38 +64,38 @@
</div>
<div class="pcard" data-name="应用内浏览器 browser 库面板内置真实浏览器:书签按分组管理、拖动排序;地址栏 ↗ 可把当前页放到画布节点 浏览器 效率" data-tags="浏览器,效率">
<div class="head"><span class="av" style="background:#eaf1fb">🌐</span>
<div><div class="nm">应用内浏览器</div><div class="ver">v1.6.0 · 官方</div></div></div>
<div><div class="nm">应用内浏览器</div><div class="ver">v1.7.0 · 官方</div></div></div>
<div class="desc">库面板内置真实浏览器:书签按分组管理、拖动排序;地址栏 ↗ 可把当前页放到画布节点</div>
<div class="tags"><span class="tag">浏览器</span><span class="tag">效率</span></div>
</div>
<div class="pcard" data-name="标注 / 修图 image-annotate 在画布内标注、涂抹、局部重绘 修图 标注" data-tags="修图,标注">
<div class="head"><span class="av" style="background:#fdeaea">🖌️</span>
<div><div class="nm">标注 / 修图</div><div class="ver">v1.20.6 · 官方</div></div></div>
<div class="desc">在画布内标注、涂抹、局部重绘</div>
<div class="tags"><span class="tag">修图</span><span class="tag">标注</span></div>
<div class="pcard" data-name="图库 gallery 右栏图片墙:筛选/多选/双击预览/插入画布/下载/删除(数据由客户端提供) 资源 图库" data-tags="资源,图库">
<div class="head"><span class="av" style="background:#eef2f6">🖼️</span>
<div><div class="nm">图库</div><div class="ver">v1.6.3 · 官方</div></div></div>
<div class="desc">右栏图片墙:筛选/多选/双击预览/插入画布/下载/删除(数据由客户端提供)</div>
<div class="tags"><span class="tag">资源</span><span class="tag">图库</span></div>
</div>
<div class="pcard" data-name="位图转矢量 image-vectorize 把位图转成 svg 矢量路径 转换 矢量" data-tags="转换,矢量">
<div class="head"><span class="av" style="background:#eaf3ea">✒️</span>
<div><div class="nm">位图转矢量</div><div class="ver">v0.6.0 · 官方</div></div></div>
<div class="desc">把位图转成 SVG 矢量路径</div>
<div class="tags"><span class="tag">转换</span><span class="tag">矢量</span></div>
<div class="pcard" data-name="节点组 grouplib 左栏收藏的节点组:分组/改名/删除,拖到画布实例化(数据由客户端提供) 资源 节点组" data-tags="资源,节点组">
<div class="head"><span class="av" style="background:#eef2f6">📦</span>
<div><div class="nm">节点组</div><div class="ver">v1.0.3 · 官方</div></div></div>
<div class="desc">左栏收藏的节点组:分组/改名/删除,拖到画布实例化(数据由客户端提供)</div>
<div class="tags"><span class="tag">资源</span><span class="tag">节点组</span></div>
</div>
<div class="pcard" data-name="风格库 style-source 风格提示词库与一键套用 提示词 风格" data-tags="提示词,风格">
<div class="head"><span class="av" style="background:#fdf0e6">🎨</span>
<div><div class="nm">风格库</div><div class="ver">v1.3.2 · 官方</div></div></div>
<div class="desc">风格提示词库与一键套用</div>
<div class="tags"><span class="tag">提示词</span><span class="tag">风格</span></div>
<div class="pcard" data-name="提示词库 promptlib 右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供) 资源 提示词" data-tags="资源,提示词">
<div class="head"><span class="av" style="background:#eef2f6">📖</span>
<div><div class="nm">提示词库</div><div class="ver">v1.0.1 · 官方</div></div></div>
<div class="desc">右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供)</div>
<div class="tags"><span class="tag">资源</span><span class="tag">提示词</span></div>
</div>
</div>
<div style="margin-top:22px"><a class="btn" href="/plugins/">查看全部 8 个插件</a></div>
<div style="margin-top:22px"><a class="btn" href="/plugins/">查看全部 11 个插件</a></div>
</div></section>
<section class="section"><div class="wrap">
<h2>下载 Image Workbench</h2>
<p class="lead">选你的平台。装过一次之后,以后在应用内「设置 → 通用 → 版本与更新」就能一键升级。</p>
<div class="dl"><a href="/updates/darwin-aarch64/image-workbench_3.25.34_aarch64.dmg?h=3107284da68e"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.4 MB · .dmg</div></a>
<a href="/updates/darwin-x86_64/image-workbench_3.25.34_x64.dmg?h=888cf4208196"><div class="n">macOS · Intel</div><div class="s">x86_64 · 8.7 MB · .dmg</div></a>
<a href="/updates/windows-x86_64/image-workbench_3.25.34_x64-setup.exe?h=62f9e1a812b1"><div class="n">Windows · x64</div><div class="s">需要 WebView2 · 4.8 MB · .exe</div></a></div>
<div class="dl"><a href="/updates/darwin-aarch64/image-workbench_3.25.59_aarch64.dmg?h=9538012f7622"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.4 MB · .dmg</div></a>
<a href="/updates/darwin-x86_64/image-workbench_3.25.59_x64.dmg?h=d6d8573f6817"><div class="n">macOS · Intel</div><div class="s">x86_64 · 8.7 MB · .dmg</div></a>
<div class="none"><div class="n">Windows · x64</div><div class="s">暂未提供</div></div></div>
<div style="margin-top:20px;color:#9ca3af;font-size:12.5px">安装包未做 Apple 公证 / Windows 代码签名,首次打开需手动放行一次,细节见 <a href="/download/" style="text-decoration:underline">下载页</a>。</div>
</div></section>
</main>
+229 -7
View File
@@ -1,6 +1,6 @@
{
"version": 1,
"updatedAt": "2026-11-19T07:01:36.259Z",
"version": 2,
"updatedAt": "2026-11-20T09:36:40.399Z",
"plugins": [
{
"id": "batch-export",
@@ -15,6 +15,21 @@
],
"version": "1.2.0",
"apiVersion": 1,
"bundle": "plugins/batch-export-1.2.0.zip",
"bundleSize": 44936,
"bundleSha256": "338cfbe8fe00e92771f60f996d6a4baeb3c3b4954dfe774cfe83879639234552",
"files": [
{
"path": "manifest.json",
"sha256": "163e5de559a6907982749cdf5fbf7372b492ab30096a5bb935315e002fb1c7a5",
"size": 393
},
{
"path": "main.js",
"sha256": "b7d13ba66cf97ff65e94305328183a1a3b5a45b0393f3a63f77f6b7b46795389",
"size": 44329
}
],
"file": "plugins/plugin-batch-export.b7d13ba66cf9.js",
"size": 44329,
"sha256": "b7d13ba66cf97ff65e94305328183a1a3b5a45b0393f3a63f77f6b7b46795389",
@@ -33,6 +48,21 @@
],
"version": "1.0.0",
"apiVersion": 1,
"bundle": "plugins/blank-canvas-1.0.0.zip",
"bundleSize": 6674,
"bundleSha256": "b6bb7f37d7ae1ed5c0e19dacbae0050cf42b88dcdb6151385fd799443176ed7d",
"files": [
{
"path": "manifest.json",
"sha256": "4ce80b37f07f900efaeddd68ef5379b755433555e4bdab222adbac509c2a21a6",
"size": 366
},
{
"path": "main.js",
"sha256": "67763893fa99c8fe1d8bcf640426f5bbc576abd35bcdc84c910b7b08f79964f9",
"size": 6094
}
],
"file": "plugins/plugin-blank-canvas.67763893fa99.js",
"size": 6094,
"sha256": "67763893fa99c8fe1d8bcf640426f5bbc576abd35bcdc84c910b7b08f79964f9",
@@ -49,12 +79,129 @@
"浏览器",
"效率"
],
"version": "1.6.0",
"version": "1.7.0",
"apiVersion": 1,
"file": "plugins/plugin-browser.9e9fa4cdb25d.js",
"size": 58003,
"sha256": "9e9fa4cdb25d17032db2dabdd004ed16fd01a0d0ad0812a49cd636957601110f",
"integrity": "sha256-np+kzbJdFwMtstq90ATtFv0BoNCtCBKknNY2lXYBEQ8="
"bundle": "plugins/browser-1.7.0.zip",
"bundleSize": 60839,
"bundleSha256": "8a802986f075774c941a7309eeb0f36e870c318aa9535d263da523c12f37d975",
"files": [
{
"path": "manifest.json",
"sha256": "4dc8e8d883e900779932310c74947bcb2e505ac91167275becbf9f1685afdc48",
"size": 445
},
{
"path": "main.js",
"sha256": "8161a82890d96724d90a2ae9c8949d37af92f94b944cd525adc07b65b5eab4f4",
"size": 60180
}
],
"file": "plugins/plugin-browser.8161a82890d9.js",
"size": 60180,
"sha256": "8161a82890d96724d90a2ae9c8949d37af92f94b944cd525adc07b65b5eab4f4",
"integrity": "sha256-gWGoKJDZZyTZCirpyJSdN6+S+UuUTNUlrcB7ZbXqtPQ="
},
{
"id": "gallery",
"name": "图库",
"desc": "右栏图片墙:筛选/多选/双击预览/插入画布/下载/删除(数据由客户端提供)",
"author": "official",
"icon": "🖼️",
"color": "#eef2f6",
"tags": [
"资源",
"图库"
],
"version": "1.6.3",
"apiVersion": 1,
"bundle": "plugins/gallery-1.6.3.zip",
"bundleSize": 31433,
"bundleSha256": "3ed53c236f48b945b514db42980383eb10f6f8a78f83d1abd64f0dc5807317c1",
"files": [
{
"path": "manifest.json",
"sha256": "8800f1270ac20625b9837752c0b45c1a3a48ebdaeb633245a313209b97dc9937",
"size": 526
},
{
"path": "main.js",
"sha256": "6628f9aa5be68e0ed798244a1fd4405e50801181e6c0779b22a0723f84309865",
"size": 25406
},
{
"path": "styles.css",
"sha256": "81b23c43b0308c678bf95e00d6663abcb8b300242ab952ca56b1390fd74bb53e",
"size": 5191
}
]
},
{
"id": "grouplib",
"name": "节点组",
"desc": "左栏收藏的节点组:分组/改名/删除,拖到画布实例化(数据由客户端提供)",
"author": "official",
"icon": "📦",
"color": "",
"tags": [
"资源",
"节点组"
],
"version": "1.0.3",
"apiVersion": 1,
"bundle": "plugins/grouplib-1.0.3.zip",
"bundleSize": 22889,
"bundleSha256": "8ecfa3bc39f08301c239ca3c8d33c73e92d4507d15f8df43272aca4acb26bb5c",
"files": [
{
"path": "manifest.json",
"sha256": "a46aa5e4d1ad6cbfa96865baffb5293e2d4aed0f881e28854379a2c290762ec8",
"size": 530
},
{
"path": "main.js",
"sha256": "748b23798c5a0a3ffc0d124f2904439f41345e5064b043ffd7980cd14a6f05ee",
"size": 21288
},
{
"path": "styles.css",
"sha256": "932dbf2723bd0c6bab274786784e92a1acd1dd6b4d5246c06d2240efa25d2507",
"size": 761
}
]
},
{
"id": "promptlib",
"name": "提示词库",
"desc": "右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供)",
"author": "official",
"icon": "📖",
"color": "",
"tags": [
"资源",
"提示词"
],
"version": "1.0.1",
"apiVersion": 1,
"bundle": "plugins/promptlib-1.0.1.zip",
"bundleSize": 32749,
"bundleSha256": "54d7539a477a5fbcc0e0af8a5b1bba511f22d639d6009a571a2d827702da5d7e",
"files": [
{
"path": "manifest.json",
"sha256": "081362c4ddc5e38a6d3ecdf1ff68c4d1012afd3d8b90047a9077ea230b288763",
"size": 540
},
{
"path": "main.js",
"sha256": "ce2d1347b8b61a75f16a54a96f16861066c6ca70add314216c33ba95b2eb2d60",
"size": 31186
},
{
"path": "styles.css",
"sha256": "2bce24d4fde9014b674397d94bbf5cdc6825ca600e3e942c057efa6b47f350ad",
"size": 713
}
]
},
{
"id": "image-annotate",
@@ -69,6 +216,21 @@
],
"version": "1.20.6",
"apiVersion": 1,
"bundle": "plugins/image-annotate-1.20.6.zip",
"bundleSize": 462110,
"bundleSha256": "2653d2219d036342bc6768beb0936101e44a99d6635822d376cba3a6d663a28e",
"files": [
{
"path": "manifest.json",
"sha256": "8bdba81a4d5c5aea085699679bb7f8be8fee81cbe07ac9a7b83cdb47fc05fff0",
"size": 373
},
{
"path": "main.js",
"sha256": "7a865c7c353c3fbcaac551a8aeb5acd1bf624ca25f104db96fce493c3084b24f",
"size": 461523
}
],
"file": "plugins/plugin-image-annotate.7a865c7c353c.js",
"size": 461523,
"sha256": "7a865c7c353c3fbcaac551a8aeb5acd1bf624ca25f104db96fce493c3084b24f",
@@ -87,6 +249,21 @@
],
"version": "0.6.0",
"apiVersion": 1,
"bundle": "plugins/image-vectorize-0.6.0.zip",
"bundleSize": 145682,
"bundleSha256": "c6c36bbc56b36f19e4b91b2e8d9db62046804490a790a01b09a052adc6dec096",
"files": [
{
"path": "manifest.json",
"sha256": "4378b397d8954e3f4522c53bfff970b4d4d29ba8234501ac998bb552af03b30d",
"size": 362
},
{
"path": "main.js",
"sha256": "7014982f60e605e34909986ac0c372195e6130129e29a927d6d41a1405579e9f",
"size": 145106
}
],
"file": "plugins/plugin-image-vectorize.7014982f60e6.js",
"size": 145106,
"sha256": "7014982f60e605e34909986ac0c372195e6130129e29a927d6d41a1405579e9f",
@@ -105,6 +282,21 @@
],
"version": "1.3.2",
"apiVersion": 1,
"bundle": "plugins/style-source-1.3.2.zip",
"bundleSize": 70494,
"bundleSha256": "d5bc793cb78c7593d6dcdacc5a8664cfc50dfc0e7c78b6094dc99cc875de9619",
"files": [
{
"path": "manifest.json",
"sha256": "3b49a8e5eba8e5e1a247dd1cdf90a34a426ee3a4442a683369afc8bbde654099",
"size": 355
},
{
"path": "main.js",
"sha256": "ee7168565a44d49daaf300f62d5c7a106e60fba29a9e4888ff8bfd9abd2e3178",
"size": 69925
}
],
"file": "plugins/plugin-style-source.ee7168565a44.js",
"size": 69925,
"sha256": "ee7168565a44d49daaf300f62d5c7a106e60fba29a9e4888ff8bfd9abd2e3178",
@@ -123,6 +315,21 @@
],
"version": "1.2.1",
"apiVersion": 1,
"bundle": "plugins/white-bg-800-1.2.1.zip",
"bundleSize": 15528,
"bundleSha256": "cf1c8223b0361fd362cca21af373dc0d8de95d1c58345438a3f795b0912935d1",
"files": [
{
"path": "manifest.json",
"sha256": "8347db72950a686bdb3a205906858f6f9d3f7ede6aa7c98f5cc4c159d580df06",
"size": 357
},
{
"path": "main.js",
"sha256": "a5a92f045c0d4046b205562019b2a6354afd14aa92375b78559d48f2ce9b74ee",
"size": 14957
}
],
"file": "plugins/plugin-white-bg-800.a5a92f045c0d.js",
"size": 14957,
"sha256": "a5a92f045c0d4046b205562019b2a6354afd14aa92375b78559d48f2ce9b74ee",
@@ -141,6 +348,21 @@
],
"version": "1.0.3",
"apiVersion": 1,
"bundle": "plugins/xianyi-cutout-1.0.3.zip",
"bundleSize": 5072,
"bundleSha256": "381383fdeda9a2e72f09489ecc319b7facd6236d32f82b9544fc0cd29ae0f5c1",
"files": [
{
"path": "manifest.json",
"sha256": "0bffc47c33e058b614882cb7fce41c201a5340c0f05c4f58ba28eb26dfbbc627",
"size": 370
},
{
"path": "main.js",
"sha256": "79c8c47dfc6187b8af2688763e7f63034bb26867ccefbf135ed76d3745d6e24d",
"size": 4488
}
],
"file": "plugins/plugin-xianyi-cutout.79c8c47dfc61.js",
"size": 4488,
"sha256": "79c8c47dfc6187b8af2688763e7f63034bb26867ccefbf135ed76d3745d6e24d",
+26 -5
View File
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>插件市场 · Image Workbench</title>
<link rel="stylesheet" href="/assets/style.css?v=3.25.34-mwnd1jua">
<link rel="stylesheet" href="/assets/style.css?v=3.25.59-mwp1a1f8">
</head><body>
<nav><div class="wrap inner">
<a class="brand" href="/"><span class="dot">IW</span>Image Workbench</a>
@@ -13,13 +13,13 @@
</div>
<div class="right">
<a class="btn" href="/plugins/">插件市场</a>
<a class="btn primary" href="/download/">下载 v3.25.34</a>
<a class="btn primary" href="/download/">下载 v3.25.59</a>
</div>
</div></nav>
<main>
<section class="hero" style="padding:64px 0 8px;text-align:left"><div class="wrap">
<h1 style="font-size:40px;margin:0">插件市场</h1>
<p class="sub" style="margin:14px 0 0;text-align:left;max-width:720px">共 8 个插件。安装方式:应用内 <b>设置 → 插件 → 浏览</b>,点「安装」后重启生效。</p>
<p class="sub" style="margin:14px 0 0;text-align:left;max-width:720px">共 11 个插件。安装方式:应用内 <b>设置 → 插件 → 浏览</b>,点「安装」后重启生效。</p>
</div></section>
<section class="section" style="border-top:0;padding-top:24px"><div class="wrap">
<div style="display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px" id="chips">
@@ -29,11 +29,14 @@
<button class="tag" data-tag="画布" style="cursor:pointer;padding:5px 12px">画布</button>
<button class="tag" data-tag="效率" style="cursor:pointer;padding:5px 12px">效率</button>
<button class="tag" data-tag="浏览器" style="cursor:pointer;padding:5px 12px">浏览器</button>
<button class="tag" data-tag="资源" style="cursor:pointer;padding:5px 12px">资源</button>
<button class="tag" data-tag="图库" style="cursor:pointer;padding:5px 12px">图库</button>
<button class="tag" data-tag="节点组" style="cursor:pointer;padding:5px 12px">节点组</button>
<button class="tag" data-tag="提示词" style="cursor:pointer;padding:5px 12px">提示词</button>
<button class="tag" data-tag="修图" style="cursor:pointer;padding:5px 12px">修图</button>
<button class="tag" data-tag="标注" style="cursor:pointer;padding:5px 12px">标注</button>
<button class="tag" data-tag="转换" style="cursor:pointer;padding:5px 12px">转换</button>
<button class="tag" data-tag="矢量" style="cursor:pointer;padding:5px 12px">矢量</button>
<button class="tag" data-tag="提示词" style="cursor:pointer;padding:5px 12px">提示词</button>
<button class="tag" data-tag="风格" style="cursor:pointer;padding:5px 12px">风格</button>
<button class="tag" data-tag="电商" style="cursor:pointer;padding:5px 12px">电商</button>
<button class="tag" data-tag="抠图" style="cursor:pointer;padding:5px 12px">抠图</button>
@@ -55,10 +58,28 @@
</div>
<div class="pcard" data-name="应用内浏览器 browser 库面板内置真实浏览器:书签按分组管理、拖动排序;地址栏 ↗ 可把当前页放到画布节点 浏览器 效率" data-tags="浏览器,效率">
<div class="head"><span class="av" style="background:#eaf1fb">🌐</span>
<div><div class="nm">应用内浏览器</div><div class="ver">v1.6.0 · 官方</div></div></div>
<div><div class="nm">应用内浏览器</div><div class="ver">v1.7.0 · 官方</div></div></div>
<div class="desc">库面板内置真实浏览器:书签按分组管理、拖动排序;地址栏 ↗ 可把当前页放到画布节点</div>
<div class="tags"><span class="tag">浏览器</span><span class="tag">效率</span></div>
</div>
<div class="pcard" data-name="图库 gallery 右栏图片墙:筛选/多选/双击预览/插入画布/下载/删除(数据由客户端提供) 资源 图库" data-tags="资源,图库">
<div class="head"><span class="av" style="background:#eef2f6">🖼️</span>
<div><div class="nm">图库</div><div class="ver">v1.6.3 · 官方</div></div></div>
<div class="desc">右栏图片墙:筛选/多选/双击预览/插入画布/下载/删除(数据由客户端提供)</div>
<div class="tags"><span class="tag">资源</span><span class="tag">图库</span></div>
</div>
<div class="pcard" data-name="节点组 grouplib 左栏收藏的节点组:分组/改名/删除,拖到画布实例化(数据由客户端提供) 资源 节点组" data-tags="资源,节点组">
<div class="head"><span class="av" style="background:#eef2f6">📦</span>
<div><div class="nm">节点组</div><div class="ver">v1.0.3 · 官方</div></div></div>
<div class="desc">左栏收藏的节点组:分组/改名/删除,拖到画布实例化(数据由客户端提供)</div>
<div class="tags"><span class="tag">资源</span><span class="tag">节点组</span></div>
</div>
<div class="pcard" data-name="提示词库 promptlib 右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供) 资源 提示词" data-tags="资源,提示词">
<div class="head"><span class="av" style="background:#eef2f6">📖</span>
<div><div class="nm">提示词库</div><div class="ver">v1.0.1 · 官方</div></div></div>
<div class="desc">右栏提示词列表:搜索/分组/收藏/新建编辑/插入画布/复制(数据由客户端提供)</div>
<div class="tags"><span class="tag">资源</span><span class="tag">提示词</span></div>
</div>
<div class="pcard" data-name="标注 / 修图 image-annotate 在画布内标注、涂抹、局部重绘 修图 标注" data-tags="修图,标注">
<div class="head"><span class="av" style="background:#fdeaea">🖌️</span>
<div><div class="nm">标注 / 修图</div><div class="ver">v1.20.6 · 官方</div></div></div>
+22 -1
View File
@@ -1,8 +1,29 @@
{
"app": "Image Workbench",
"subtitle": "本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)",
"updatedAt": "2026-11-19T09:41:08.789Z",
"updatedAt": "2026-11-20T13:47:27.195Z",
"releases": [
{
"version": "3.25.59",
"date": "2026-11-20",
"notes": "Intel 版:一级导航 + 插件页 + 快捷键弹窗",
"platforms": {
"darwin-aarch64": {
"file": "updates/darwin-aarch64/image-workbench_3.25.59_aarch64.dmg",
"size": 8760554,
"sha256": "9538012f76227ae5bed7f4a0144124c63ac19f9e5d63cdf20c52c84f546241eb",
"h": "9538012f7622",
"kind": "dmg"
},
"darwin-x86_64": {
"file": "updates/darwin-x86_64/image-workbench_3.25.59_x64.dmg",
"size": 9154038,
"sha256": "d6d8573f68172998c3d938c5c355cfca4123baf35d89d09550eb7ca0b442a9d8",
"h": "d6d8573f6817",
"kind": "dmg"
}
}
},
{
"version": "3.25.34",
"date": "2026-11-19",
+1 -1
View File
@@ -1983,7 +1983,7 @@ dependencies = [
[[package]]
name = "image-workbench"
version = "3.25.58"
version = "3.25.59"
dependencies = [
"arboard",
"base64 0.22.1",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "image-workbench"
version = "3.25.58"
version = "3.25.59"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "image-workbench",
"version": "3.25.58",
"version": "3.25.59",
"identifier": "com.malongan.imageworkbench",
"build": {
"frontendDist": "../dist",
+4 -4
View File
@@ -1194,7 +1194,7 @@
if (refs.zoomAnim) { cancelAnimationFrame(refs.zoomAnim); refs.zoomAnim = null }
// 面板区域(抽屉/历史图/工具栏/侧栏/弹窗等)滚轮只滚动内容,不缩放画布
const t0 = e.target
if (t0 && t0.closest && t0.closest('.iwb-dock, .iwb-drawer, .iwb-toolbar, .iwb-rightrail, .iwb-wsrail, .iwb-statusbar, .iwb-minimap, .iwb-hint-bottom, .iwb-lib, .iwb-modal, .iwb-fullpanel')) return
if (t0 && t0.closest && t0.closest('.iwb-dock, .iwb-drawer, .iwb-toolbar, .iwb-rightrail, .iwb-navrail, .iwb-plugin-page, .iwb-statusbar, .iwb-minimap, .iwb-hint-bottom, .iwb-lib, .iwb-modal, .iwb-fullpanel')) return
e.preventDefault()
// 标记"缩放窗口"(去抖 160ms):缩放下每帧会生成新的 nodes 数组,让节点 memo 在此期间放宽比较
try {
@@ -1923,7 +1923,7 @@
// (面板常停靠左侧),候选位与禁区相交也一律跳过。世界→屏幕换算:screen = world * scale + vp
const blockedRects = []
try {
document.querySelectorAll('.iwb-fullmask, .iwb-wsrail, .iwb-lib, .iwb-lib-embedded').forEach((elm) => {
document.querySelectorAll('.iwb-fullmask, .iwb-navrail, .iwb-plugin-page, .iwb-lib, .iwb-lib-embedded').forEach((elm) => {
const r = elm.getBoundingClientRect()
if (r && r.width > 4 && r.height > 4) blockedRects.push(r)
})
@@ -1982,7 +1982,7 @@
const obstacles = refs.nodes.map((n) => ({ x: n.x, y: n.y, w: nodeWidth(n), h: refs.measuredH[n.id] || n.h || nodeTypeH(n.type) }))
// 浮层(插件面板/资源中心/左右侧栏)也是禁区:落在这些区域等于被盖住看不见,与 findSpot 同一份清单
try {
document.querySelectorAll('.iwb-fullmask, .iwb-wsrail, .iwb-lib, .iwb-lib-embedded').forEach((elm) => {
document.querySelectorAll('.iwb-fullmask, .iwb-navrail, .iwb-plugin-page, .iwb-lib, .iwb-lib-embedded').forEach((elm) => {
const r = elm.getBoundingClientRect()
if (!r || r.width <= 4 || r.height <= 4) return
obstacles.push({ x: (r.left - vp.x) / vp.scale, y: (r.top - vp.y) / vp.scale, w: r.width / vp.scale, h: r.height / vp.scale })
@@ -2075,7 +2075,7 @@
const topNode = nodeList.find((n) => n.y === minY)
if (hasNodeTitle(topNode)) minY -= NODE_HEAD_H
// 排除左侧工作台栏(含展开态)与可见的右侧提示词库,避免节点被遮挡
const railEl = document.querySelector('.iwb-wsrail')
const railEl = document.querySelector('.iwb-navrail, .iwb-plugin-page')
const railW = railEl ? railEl.getBoundingClientRect().width : 0
const libEl = document.querySelector('.iwb-lib')
const libW = (libEl && libEl.getBoundingClientRect().width > 0) ? libEl.getBoundingClientRect().width : 0
+3 -1
View File
@@ -143,7 +143,9 @@
useEffect(function () {
const r = global.document && global.document.documentElement
if (!r) return
const lw = dock.left.open ? dock.left.w : 0
// 一级导航常驻在窗口最左(52px):左停靠栏整体右移,工具栏居中基准也要含它
const NAV_W = 52
const lw = dock.left.open ? (NAV_W + dock.left.w) : NAV_W
const rw = dock.right.open ? dock.right.w : 0
r.style.setProperty('--iwb-dock-l', lw + 'px')
r.style.setProperty('--iwb-dock-r', rw + 'px')
+83
View File
@@ -0,0 +1,83 @@
/* ui-hotkey-help.js —— 快捷键弹窗内容(v3.25.59 重构)
*
* 旧实现:30+ 行「键位 + 长句说明」平铺,查一条要扫屏。
* 新实现(用户裁定):
* · 上:分区罗列 —— 视图 / 编辑 / 界面 / 文件,键位用等宽小标签右对齐
* · 下:「更多操作说明」折叠区,放原来那些长句(拖拽/连线/插入/中断恢复)
* · 键位取自 config.canvas.hotkeys(缺省回落 HOTKEY_DEFAULTS),用户改键后这里跟着变
*/
;(function (global) {
'use strict'
const React = global.React || {}
const el = (type, prop, ...children) => React.createElement(type, prop, ...children)
const GROUPS = [
{
name: '视图',
rows: [['fitView', '适应整个画布'], ['fitSelection', '适应选中节点'], ['zoomIn', '放大'], ['zoomOut', '缩小'], ['pan', '按住平移画布']],
},
{
name: '编辑',
rows: [['undo', '撤销'], ['redo', '重做'], ['copy', '复制节点'], ['paste', '粘贴节点'], ['cut', '剪切节点'], ['duplicate', '复制选中节点'], ['delete', '删除选中']],
},
{
name: '界面',
rows: [['toggleLeftDock', '左侧栏'], ['toggleLibrary', '右侧栏'], ['help', '本快捷键帮助'], ['cancel', '取消 / 关闭弹层'], ['toolSelect', '选择工具'], ['toolPan', '抓手工具']],
},
{
name: '文件与分组',
rows: [['save', '保存画布'], ['exportCanvas', '导出画布'], ['selectAll', '全选节点'], ['group', '编组'], ['ungroup', '取消编组'], ['rename', '重命名节点'], ['runAll', '运行全部生图节点']],
},
]
// 长句说明:原来的「操作说明」内容,收进折叠区
const DETAILS = [
['拖拽 / 框选', '拖动画布空白 = 框选节点(Shift 追加、Alt 反选);拖动节点 = 移动;Ctrl/Cmd + 点击 = 多选'],
['空格 / 鼠标中键', '按住拖动平移画布;抓手工具(H)等效,V 切回选择'],
['滚轮', '缩放画布;节点右下角可拖拽改尺寸'],
['双击节点标题', '居中放大该节点;重命名走气泡铅笔 / 右键菜单 / F2'],
['右键', '自定义菜单:添加节点 / 复制选中 / 导出节点组 / 收藏 / 删除 / 该节点操作'],
['连线', '从出端口拖到目标区域自动连接(绿框可连、红框不可连);点选连线 Delete 断开,双击直接断开'],
['Alt + 拖到连线', '插入:节点吸附到连线中间并拆成两条;链中间单入单出的节点 Alt 拖出 = 脱离'],
['拖入图片', '本地文件 / 图库历史 / 提示词卡片 / 节点组卡片拖进画布都会生成对应节点'],
['任务卡复选框', '勾选 = 参与「生成全部 / 输出出图」;取消勾选 = 跳过;张数下拉在生成按钮前'],
['中断恢复', '生成中途刷新或关闭:重开后底部横幅可一键继续(跳过已完成张,24 小时内有效)'],
['提示词变量', '提示词里写 {date} {time} {model},发送生成时自动替换'],
]
function HotkeyTable (props) {
const hotkeys = props.hotkeys || {}
const defaults = props.defaults || {}
const keyOf = (id) => String(hotkeys[id] || defaults[id] || '').trim()
return el('div', { className: 'iwb-hotkey-grid' },
GROUPS.map((g) => el('section', { key: g.name, className: 'iwb-hotkey-group' },
el('h4', { className: 'iwb-hotkey-gname' }, g.name),
g.rows.map(([id, label]) => el('div', { key: id, className: 'iwb-hotkey-row' },
el('span', { className: 'iwb-hotkey-name' }, label),
el('kbd', { className: 'iwb-hotkey-key' }, keyOf(id) || '未设置'),
)),
)),
)
}
function HotkeyHelp (props) {
const [openDetails, setOpenDetails] = React.useState(!!(props && props.detailsOpen))
return el('div', { className: 'iwb-hotkey-help' },
el(HotkeyTable, { hotkeys: props && props.hotkeys, defaults: props && props.defaults }),
el('div', { className: 'iwb-hotkey-more' },
el('button', {
type: 'button',
className: 'iwb-hotkey-toggle',
onClick: () => setOpenDetails((v) => !v),
}, (openDetails ? '▾ ' : '▸ ') + '更多操作说明'),
openDetails ? el('div', { className: 'iwb-hotkey-details' },
DETAILS.map(([k, v]) => el('div', { key: k, className: 'iwb-hotkey-detail-row' },
el('b', null, k), el('span', null, v))),
) : null,
),
el('div', { className: 'iwb-hotkey-note' }, '键位可在「设置 → 快捷键」修改;改完这里会同步。'),
)
}
global.IWBUIHotkeyHelp = { HotkeyHelp, HotkeyTable }
})(typeof window !== 'undefined' ? window : globalThis)
+60
View File
@@ -0,0 +1,60 @@
/* ui-nav-rail.js —— 最左侧一级导航(v3.25.59)
*
* 设计(用户裁定):
* · 52px、**纯图标**(无文字),占原来 wsrail 的槽位,不额外挤占画布
* · 顶部:软件 logo(品牌占位,不跳转)
* · 主组:首页(画布库)/ 列表(画布工作区)/ 插件(整页插件管理)
* · 底部组:帮助 / 快捷键 / 皮肤 / 设置 / 更多
* · 选中态 = 深色圆底 + 白色图标;未选中 = 线性图标;悬停 = 浅灰圆底
*
* 纯展示组件:所有回调与当前视图经 props 传入,不读 Workbench 局部状态。
*/
;(function (global) {
'use strict'
const React = global.React || {}
const el = (type, prop, ...children) => React.createElement(type, prop, ...children)
function IWBUINavRail (props) {
const I = props.I
const view = props.view || 'canvas' // 'home' | 'canvas' | 'plugins'
const onHome = props.onHome
const onCanvas = props.onCanvas
const onPlugins = props.onPlugins
const onHelp = props.onHelp
const onHotkeys = props.onHotkeys
const onSkin = props.onSkin
const onSettings = props.onSettings
const onMore = props.onMore
const skinIcon = props.skinIcon || 'moon'
const item = (key, iconName, title, active, onClick) => el('button', {
key,
type: 'button',
className: 'iwb-nav-item' + (active ? ' on' : ''),
title,
'aria-label': title,
'aria-pressed': active ? 'true' : 'false',
onPointerDown: (e) => e.stopPropagation(),
onClick: (e) => { e.stopPropagation(); if (typeof onClick === 'function') onClick(e) },
}, I(iconName))
return el('nav', { className: 'iwb-navrail', 'aria-label': '一级导航' },
el('div', { className: 'iwb-navrail-logo', title: '无限画布', onPointerDown: (e) => e.stopPropagation() }, I('palette')),
el('div', { className: 'iwb-navrail-group' },
item('home', 'home', '首页(画布库)', view === 'home', onHome),
item('canvas', 'layer', '列表(画布工作区)', view === 'canvas', onCanvas),
item('plugins', 'box', '插件', view === 'plugins', onPlugins),
),
el('div', { className: 'iwb-navrail-spacer' }),
el('div', { className: 'iwb-navrail-group' },
item('help', 'help', '帮助', false, onHelp),
item('hotkeys', 'circle-dot', '快捷键', false, onHotkeys),
item('skin', skinIcon, '切换主题', false, onSkin),
item('settings', 'settings', '设置', false, onSettings),
item('more', 'more', '更多', false, onMore),
),
)
}
global.IWBUINavRail = IWBUINavRail
})(typeof window !== 'undefined' ? window : globalThis)
+52
View File
@@ -0,0 +1,52 @@
/* ui-plugin-page.js —— 插件整页(v3.25.59)
*
* 用户裁定:一级导航主组的「插件」图标进入**整页**,内容与「设置 → 插件管理」一致。
*
* 为什么单独成文件而不是塞进 ui-settings-modal.js:
* 后者已接近「单组件行数棘轮」上限,再放一个页面组件会直接打红。
* 这里只做「页面壳 + 把插件管理块渲染出来」,数据由宿主经 props 注入。
*/
;(function (global) {
'use strict'
const React = global.React || {}
const el = (type, prop, ...children) => React.createElement(type, prop, ...children)
function IWBUIPluginPage (props) {
const I = props.I
const [rev, setRev] = React.useState(0)
const [busy, setBusy] = React.useState('')
const [msg, setMsg] = React.useState(null)
const PluginHost = props.PluginHost
const S = props.Sections || ((typeof window !== 'undefined') ? window.IWBUISettingsSections : null)
const items = React.useMemo(
() => ((PluginHost && typeof PluginHost.list === 'function') ? PluginHost.list() : []),
[rev, PluginHost]
)
const body = S ? S.renderPluginsTab({
PluginHost,
pluginBusy: busy,
pluginItems: items,
setMsg: setMsg,
setPluginBusy: setBusy,
setPluginsRev: setRev,
setTab: function () {},
wEnsurePluginLoaded: props.wEnsurePluginLoaded,
wRuntimePlugins: props.wRuntimePlugins || [],
}) : el('div', { className: 'iwb-hint' }, '插件模块未就绪')
return el('div', { className: 'iwb-plugin-page' },
el('div', { className: 'iwb-plugin-page-head' },
el('button', { className: 'iwb-btn iwb-btn-sm', onClick: () => { if (props.onBack) props.onBack() } },
I ? I('chevronLeft') : null, '返回画布'),
el('span', { className: 'iwb-plugin-page-title' }, '插件'),
el('span', { className: 'iwb-plugin-page-sub' }, '管理与市场(与「设置 → 插件管理」同一份数据)'),
),
el('div', { className: 'iwb-plugin-page-body' },
body,
msg ? el('div', { className: 'iwb-status-' + (msg.type === 'err' ? 'err' : 'ok') }, msg.text) : null,
),
)
}
global.IWBUIPluginPage = IWBUIPluginPage
})(typeof window !== 'undefined' ? window : globalThis)
+71 -2
View File
@@ -41,6 +41,8 @@
--iwb-grid-size: 1.4px;
--iwb-grid-gap: 22px;
--iwb-grid-on: 1;
/* 一级导航宽度:左停靠栏/工具栏让位都以它为基准(v3.25.59) */
--iwb-nav-w: 52px;
--iwb-text: #1c2333;
--iwb-text2: #4d5668;
--iwb-err: #e5484d;
@@ -2162,7 +2164,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column;
background: var(--iwb-dock-bg); pointer-events: auto; min-width: 100px;
}
.iwb-dock.left { left: 0; border-right: 1px solid var(--iwb-border2); }
.iwb-dock.left { left: var(--iwb-nav-w, 52px); border-right: 1px solid var(--iwb-border2); }
.iwb-dock.right { right: 0; border-left: 1px solid var(--iwb-border2); }
.iwb-dock-head {
height: 40px; flex: 0 0 auto; display: flex; align-items: center; gap: 2px;
@@ -2194,7 +2196,7 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
display: flex; align-items: flex-start; justify-content: center; padding-top: 12px;
background: var(--iwb-panel); color: var(--iwb-text2);
}
.iwb-dock-strip.left { left: 0; border-right: 1px solid var(--iwb-border); }
.iwb-dock-strip.left { left: var(--iwb-nav-w, 52px); border-right: 1px solid var(--iwb-border); }
.iwb-dock-strip.right { right: 0; border-left: 1px solid var(--iwb-border); }
.iwb-dock-strip:hover { color: var(--iwb-text); background: var(--iwb-layer); }
.iwb-dock-drop { position: absolute; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--iwb-brand); pointer-events: none; }
@@ -2215,3 +2217,70 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-minimap { right: calc(62px + var(--iwb-dock-r, 0px)); }
.iwb-statusbar { right: calc(62px + var(--iwb-dock-r, 0px)); }
.iwb-hint-bottom { left: calc(var(--iwb-dock-l, 0px) + (100% - var(--iwb-dock-l, 0px) - var(--iwb-dock-r, 0px)) / 2); }
/* ── 一级导航(v3.25.59):最左 52px 纯图标栏 ─────────────────────────── */
.iwb-navrail {
position: absolute; left: 0; top: 36px; bottom: 0; width: 52px; z-index: 27;
display: flex; flex-direction: column; align-items: center; gap: 6px;
padding: 10px 0 12px; background: var(--iwb-panel);
border-right: 1px solid var(--iwb-border); box-sizing: border-box;
}
.iwb-navrail-logo {
width: 36px; height: 36px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
border-radius: 10px; color: #fff; background: var(--iwb-brand); margin-bottom: 6px;
}
.iwb-navrail-logo .iwb-ic { width: 20px; height: 20px; }
.iwb-navrail-group { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.iwb-navrail-spacer { flex: 1 1 auto; }
.iwb-nav-item {
width: 38px; height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
border: 0; border-radius: 50%; background: transparent; color: var(--iwb-text2);
cursor: pointer; padding: 0; transition: background var(--tr-fast), color var(--tr-fast);
}
.iwb-nav-item .iwb-ic { width: 19px; height: 19px; }
.iwb-nav-item:hover { background: var(--iwb-layer); color: var(--iwb-text); }
.iwb-nav-item.on { background: color-mix(in srgb, var(--iwb-text) 82%, #000); color: #fff; }
.iwb-nav-item.on:hover { background: color-mix(in srgb, var(--iwb-text) 90%, #000); }
.theme-dark .iwb-nav-item.on { background: color-mix(in srgb, #ffffff 88%, #000); color: #1c2333; }
.ws-expanded .iwb-navrail { width: 52px; }
/* ── 插件整页(v3.25.59)──────────────────────────────────────────────── */
.iwb-plugin-page {
position: absolute; left: 52px; right: 0; top: 36px; bottom: 0; z-index: 25;
display: flex; flex-direction: column; background: var(--iwb-bg);
}
.iwb-plugin-page-head {
flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
height: 52px; padding: 0 18px; border-bottom: 1px solid var(--iwb-border); background: var(--iwb-panel);
}
.iwb-plugin-page-title { font-weight: 800; font-size: 16px; color: var(--iwb-text); }
.iwb-plugin-page-sub { font-size: 12px; color: var(--iwb-text2); }
.iwb-plugin-page-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px 40px; }
/* ── 快捷键弹窗(v3.25.59 分区罗列)──────────────────────────────────── */
.iwb-hotkey-help { display: flex; flex-direction: column; gap: 12px; }
.iwb-hotkey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.iwb-hotkey-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.iwb-hotkey-gname { margin: 2px 0 4px; font-size: 12px; font-weight: 700; color: var(--iwb-brand); letter-spacing: .04em; }
.iwb-hotkey-row { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.iwb-hotkey-name { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--iwb-text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-hotkey-key {
flex: 0 0 auto; display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
padding: 2px 8px; border-radius: 5px; border: 1px solid var(--iwb-border);
background: var(--iwb-layer); color: var(--iwb-text); font-size: 11px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.iwb-hotkey-more { border-top: 1px dashed var(--iwb-border); padding-top: 10px; }
.iwb-hotkey-toggle { border: 0; background: transparent; color: var(--iwb-text2); font-size: 12px; cursor: pointer; padding: 2px 0; }
.iwb-hotkey-toggle:hover { color: var(--iwb-text); }
.iwb-hotkey-details { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.iwb-hotkey-detail-row { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--iwb-text2); }
.iwb-hotkey-detail-row b { flex: 0 0 108px; color: var(--iwb-text); font-weight: 700; }
.iwb-hotkey-note { font-size: 11px; color: var(--iwb-text2); }
.iwb-help-modal { width: min(720px, 92vw); }
@media (max-width: 720px) { .iwb-hotkey-grid { grid-template-columns: 1fr; } }
/* 一级导航(v3.25.59):首页/落地页也要为 52px 导航让位,否则导航会压在首页侧栏上 */
.iwb-overlay.iwb-view-landing .iwb-landing-panel { padding-left: max(52px, 8vw); }
.iwb-overlay.iwb-view-home .iwb-home-side { margin-left: 52px; }
.iwb-overlay.iwb-view-plugins .iwb-navrail { border-right-color: var(--iwb-border2); }
+4
View File
@@ -66,9 +66,13 @@
"IWBUIConfirm",
"IWBUIConnectMenu",
"IWBUIGenConfigPanel",
"IWBUIHotkeyHelp",
"IWBUINavRail",
"IWBUINodeCard",
"IWBUIPluginPage",
"IWBUIProductNav",
"IWBUISettingsModal",
"IWBUISettingsSections",
"IWBUIWorkspaceTabs",
"IWBWTaskGraph",
"IWBWorkbenchHooks",
+3
View File
@@ -64,6 +64,9 @@
"generation-task-graph.js",
"generation-results-store.js",
"ui-dock.js",
"ui-nav-rail.js",
"ui-plugin-page.js",
"ui-hotkey-help.js",
"ui-desktop-shell.js",
"ui-appearance.js",
"runtime-download-auto.js",
+3 -3
View File
@@ -12,10 +12,10 @@ const source = uiAllSrc()
// 用 jsdom 真跑 app.js,断言 class 出现在对应视图的 DOM 上(含「不该出现的视图不出现」)。
// 被替换的 class:iwb-product-nav / iwb-canvas-topbar / iwb-wsrail-current / iwb-canvas / iwb-tabstrip
const css = fs.readFileSync(path.join(__dirname, '..', 'style.css'), 'utf8')
assert.ok(source.includes("el('span', null, '我的画布')"))
assert.ok(source.includes('el(NavRail, {') || source.includes('NavRail ? el(NavRail'))
assert.ok(source.includes("我的画布"))
assert.ok(source.includes("className: 'iwb-canvas' + (shellView !== 'canvas' ? ' iwb-canvas-hidden'"))
assert.ok(css.includes('.iwb-top-nav { position: absolute;'))
assert.ok(css.includes('.iwb-wsrail-title, .iwb-wsrail-current, .iwb-wsrail-foot { display: none; }'))
assert.ok(css.includes('.iwb-wsrail { width: 52px; }'))
assert.ok(css.includes('.iwb-navrail {'), '一级导航样式必须存在')
assert.ok(css.includes('.iwb-navrail {'), '一级导航宽度样式必须存在')
console.log('navigation layout checks passed')
+2 -1
View File
@@ -100,7 +100,8 @@ function hasClass(window, cls) {
['iwb-home-card-foot', '画布卡片页脚'],
['iwb-canvas', '画布容器(三视图共用)'],
['iwb-tabstrip', '顶部标签条'],
['iwb-wsrail-current', '工作区竖栏当前项'],
['iwb-navrail', '一级导航(v3.25.59 替换 wsrail)'],
['iwb-navrail-logo', '导航顶部 logo'],
]
for (const [cls, label] of homeChecks) {
assert.ok(home.has(cls), '首页应渲染出 .' + cls + '(' + label + '),实际未出现 ⇒ 首页结构已变化')
+3 -1
View File
@@ -16,7 +16,9 @@ const allSrc = source + '\n' + chromeSrc + '\n' + tabsSrc
const css = fs.readFileSync(path.join(__dirname, '..', 'style.css'), 'utf8')
// 2026-11-06 存储收敛:直调改为统一 helper(lsRawGet/lsRawSet),钉点同步到新入口
assert.ok(source.includes("lsRawGet('iwb_shell_view'") && source.includes("lsRawSet('iwb_shell_view'"))
assert.ok(source.includes("el('span', null, '我的画布')"))
// v3.25.59:wsrail 换成一级导航(原「我的画布」入口并入导航「首页」)
assert.ok(source.includes('el(NavRail, {') || source.includes('NavRail ? el(NavRail'), '一级导航必须挂载')
assert.ok(source.includes("onHome:") && source.includes("onCanvas:") && source.includes("onPlugins:"), '导航三主项回调齐备')
assert.ok(!allSrc.includes("'📚 资源中心('")) // 旧标签在全部源码里都不得残留
// v3.25.57:资源中心浮层(.iwb-res-tabs)已随宿主提示词界面一起下线,相关钉点移除
// v3.25.38:顶栏「图库」按钮已删(右侧栏有独立开关,快捷键 n 走停靠栏事件)