chore(release): 3.25.29 发布产物 + browser 1.4.0 市场索引
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 39s
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 39s
This commit is contained in:
1 parent
0a3c3188fc
commit
67472f3019
8 files changed
+730
-28
No files matched your search
+3
-3
@@ -13,9 +13,9 @@
|
||||
},
|
||||
{
|
||||
"id": "browser",
|
||||
"file": "plugin-browser.0b0ee915069c.js",
|
||||
"version": "1.3.0",
|
||||
"integrity": "sha256-Cw7pFQac02Ulnf9cjiRZQojUARqOuIXSf0nhyvfNKz0="
|
||||
"file": "plugin-browser.9e43059c8eaf.js",
|
||||
"version": "1.4.0",
|
||||
"integrity": "sha256-nkMFnI6vGn5UeUoHKyJObi//iSfASscD7M5jXbA0ebQ="
|
||||
},
|
||||
{
|
||||
"id": "image-annotate",
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@
|
||||
},
|
||||
"browser": {
|
||||
"name": "应用内浏览器",
|
||||
"desc": "独立窗口打开网页,可后退/刷新/关闭,不占用画布",
|
||||
"desc": "独立窗口打开网页,或在画布节点里内嵌网页(跟随画布缩放,可调内容缩放)",
|
||||
"author": "official",
|
||||
"icon": "🌐",
|
||||
"color": "#eaf1fb",
|
||||
|
||||
@@ -0,0 +1,684 @@
|
||||
// iwb-plugin: 应用内浏览器 —— 面板里输入网址 / 点书签,在桌面客户端的独立 WebviewWindow 里打开网页。
|
||||
//
|
||||
// 为什么不用 iframe / <a target=_blank>:
|
||||
// - iframe 受主窗口 CSP 的 default-src 'self' 限制,且多数站点发 X-Frame-Options 拒绝被嵌;
|
||||
// - 在桌面 webview 里点外链会把整个应用导航成网页(宿主 ui-desktop-shell.js 专门拦截了这种行为)。
|
||||
// 正解是走宿主 Rust 命令 open_browser_window:外部窗口加载的是网站自己的页面,
|
||||
// 不受主窗口 CSP 约束,也没有任何 IPC 权限 —— 既能正常上网又碰不到宿主 API。
|
||||
//
|
||||
// 宿主命令由桌面仓 image-workbench-desktop 提供(src-tauri/src/lib.rs):
|
||||
// open_browser_window 打开/复用独立窗口并导航(原生 navigate,不往页面里注入字符串)
|
||||
// browser_control 后退 / 前进 / 刷新 / 关闭
|
||||
// browser_state 查询窗口是否打开、当前网址
|
||||
// browser 窗口自身没有 IPC 权限 ⇒ 控制只能从主窗口发起,这也正是它碰不到宿主 API 的原因。
|
||||
//
|
||||
// 未打包这些命令的宿主:打开动作降级到 window.open(系统浏览器),控制按钮自动禁用。
|
||||
;(function (global) {
|
||||
'use strict'
|
||||
|
||||
if (!global.IWBPluginHost) return
|
||||
|
||||
// CSS 在脚本执行时就注入(不能只靠 mount):面板可能被瞬间挂载,样式必须先就位。
|
||||
function ensureStyle() {
|
||||
if (document.getElementById('iwb-browser-style')) return
|
||||
var css = '' +
|
||||
'#iwb-browser-style{}' +
|
||||
'.iwb-browser-title{font-weight:600;font-size:15px;color:var(--iwb-text,#e8e8e8)}' +
|
||||
'.iwb-browser-hint,.iwb-browser-foot{font-size:12px;line-height:1.5;color:var(--iwb-text-dim,#9aa0a6);opacity:.85}' +
|
||||
'.iwb-browser-bar input{flex:1;min-width:0;padding:8px 10px;border-radius:6px;border:1px solid var(--iwb-border,#444);background:var(--iwb-layer,#2a2a2a);color:var(--iwb-text,#e8e8e8);font-size:13px;box-sizing:border-box}' +
|
||||
'.iwb-browser-bar input[aria-invalid=true]{border-color:#e05252}' +
|
||||
'.iwb-browser-go,.iwb-browser-bm{cursor:pointer;border:1px solid var(--iwb-border,#444);border-radius:6px;background:var(--iwb-layer,#2a2a2a);color:var(--iwb-text,#e8e8e8);font-size:13px;transition:background .15s}' +
|
||||
'.iwb-browser-go{padding:8px 16px;white-space:nowrap}' +
|
||||
'.iwb-browser-go:hover,.iwb-browser-bm:hover{background:var(--iwb-hover,#3a3a3a)}' +
|
||||
'.iwb-browser-section{font-weight:600;font-size:13px;color:var(--iwb-text,#e8e8e8);margin-top:4px}' +
|
||||
'.iwb-browser-bm{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px;text-align:left;min-width:0}' +
|
||||
'.iwb-browser-bm-title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}' +
|
||||
'.iwb-browser-bm-url{font-size:11px;opacity:.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}' +
|
||||
'.iwb-browser-ctrl{display:flex;gap:6px;align-items:center;flex-wrap:wrap}' +
|
||||
'.iwb-browser-ctrl button{cursor:pointer;border:1px solid var(--iwb-border,#444);border-radius:6px;background:var(--iwb-layer,#2a2a2a);color:var(--iwb-text,#e8e8e8);font-size:12px;padding:6px 10px;white-space:nowrap}' +
|
||||
'.iwb-browser-ctrl button:hover:not(:disabled){background:var(--iwb-hover,#3a3a3a)}' +
|
||||
'.iwb-browser-ctrl button:disabled{opacity:.4;cursor:default}' +
|
||||
'.iwb-browser-now{font-size:12px;color:var(--iwb-text-dim,#9aa0a6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:120px}' +
|
||||
'.iwb-browser-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#1d9e75;margin-right:6px;vertical-align:middle}' +
|
||||
'.iwb-browser-dot-off{background:#888780}' +
|
||||
// ── 画布内网页节点 ──────────────────────────────────────────────────
|
||||
// 节点体 = 工具栏 + 一个空锚点。网页本体是宿主用 Tauri add_child 创建的原生子
|
||||
// webview,精确盖在锚点的屏幕矩形上(位置同步在宿主 src/canvas-webview.js)。
|
||||
'.iwb-node-body.iwb-plugin-node-body.iwb-cwv-body{padding:0;display:flex;flex-direction:column;overflow:hidden;min-height:300px}' +
|
||||
'.iwb-cwv-bar{display:flex;align-items:center;gap:3px;padding:4px 6px;border-bottom:1px solid var(--iwb-border,#d5d9e0);background:var(--iwb-layer,#f0f1f4);flex:0 0 auto;box-sizing:border-box;min-height:34px}' +
|
||||
'.iwb-cwv-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:0;border-radius:6px;background:transparent;color:var(--iwb-text,#1c2333);width:26px;height:26px;padding:0;flex:0 0 auto;opacity:.8}' +
|
||||
'.iwb-cwv-btn:hover:not(:disabled){background:var(--iwb-border,#d5d9e0);opacity:1}' +
|
||||
'.iwb-cwv-btn:disabled{opacity:.26;cursor:default}' +
|
||||
'.iwb-cwv-url{flex:1 1 auto;min-width:40px;height:26px;padding:0 8px;border-radius:6px;border:1px solid var(--iwb-border,#d5d9e0);background:var(--iwb-layer2,#fff);color:var(--iwb-text,#1c2333);font-size:12px;font-family:inherit;box-sizing:border-box;outline:none}' +
|
||||
'.iwb-cwv-url:focus{border-color:var(--iwb-brand,#6b7280)}' +
|
||||
'.iwb-cwv-url[aria-invalid=true]{border-color:#e5484d}' +
|
||||
'.iwb-cwv-zoom{display:flex;align-items:center;flex:0 0 auto;height:26px;border:1px solid var(--iwb-border,#d5d9e0);border-radius:6px;background:var(--iwb-layer2,#fff);overflow:hidden}' +
|
||||
'.iwb-cwv-zoom .iwb-cwv-btn{width:22px;height:24px;border-radius:0}' +
|
||||
'.iwb-cwv-zpct{width:42px;height:24px;border:0;background:transparent;color:var(--iwb-text,#1c2333);font-size:11px;font-family:inherit;text-align:center;padding:0;outline:none;font-variant-numeric:tabular-nums}' +
|
||||
'.iwb-cwv-zpct:focus{background:var(--iwb-layer,#f0f1f4)}' +
|
||||
'.iwb-cwv-sep{width:1px;height:16px;background:var(--iwb-border,#d5d9e0);flex:0 0 auto;margin:0 1px}' +
|
||||
'.iwb-cwv-stage{position:relative;flex:1 1 auto;min-height:0;background:var(--iwb-layer2,#fff)}' +
|
||||
'.iwb-cwv-anchor{position:absolute;inset:0}' +
|
||||
'.iwb-cwv-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:18px;font-size:12px;line-height:1.7;white-space:pre-line;color:var(--iwb-text2,#4d5668)}' +
|
||||
'.iwb-cwv-spin{animation:iwb-cwv-rot .9s linear infinite}' +
|
||||
'@keyframes iwb-cwv-rot{from{transform:rotate(0)}to{transform:rotate(360deg)}}'
|
||||
var style = document.createElement('style')
|
||||
style.id = 'iwb-browser-style'
|
||||
style.textContent = css
|
||||
;(document.head || document.documentElement).appendChild(style)
|
||||
}
|
||||
ensureStyle()
|
||||
|
||||
var DEFAULT_BOOKMARKS = [
|
||||
{ title: '风格库', url: 'https://malongan.github.io/style-source/' },
|
||||
{ title: '百度', url: 'https://www.baidu.com/' },
|
||||
{ title: '必应', url: 'https://www.bing.com/' },
|
||||
{ title: 'GitHub', url: 'https://github.com/' }
|
||||
]
|
||||
|
||||
// 取 Tauri 的 invoke(withGlobalTauri: true ⇒ window.__TAURI__ 常驻)
|
||||
function invoke() {
|
||||
var T = global.__TAURI__
|
||||
return (T && T.core && typeof T.core.invoke === 'function') ? T.core.invoke : null
|
||||
}
|
||||
|
||||
function normalizeUrl(raw) {
|
||||
var u = String(raw || '').trim()
|
||||
if (!u) return ''
|
||||
// 没写协议就按 https 补全
|
||||
if (!/^https?:\/\//i.test(u)) u = 'https://' + u
|
||||
try {
|
||||
var parsed = new URL(u)
|
||||
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') return ''
|
||||
return parsed.href
|
||||
} catch (e) {
|
||||
return ''
|
||||
}
|
||||
}
|
||||
|
||||
function hostOf(url) {
|
||||
try { return new URL(url).hostname } catch (e) { return url }
|
||||
}
|
||||
|
||||
// 打开:优先宿主独立窗口命令,失败/无 Tauri 则退回系统浏览器
|
||||
function openUrl(ctx, raw) {
|
||||
var url = normalizeUrl(raw)
|
||||
if (!url) { ctx.log('网址不合法:' + raw); return Promise.resolve(false) }
|
||||
var inv = invoke()
|
||||
if (inv) {
|
||||
return inv('open_browser_window', { url: url }).then(function () {
|
||||
return true
|
||||
}).catch(function (err) {
|
||||
ctx.log('独立窗口不可用,退回系统浏览器:' + String(err))
|
||||
try { global.open(url, '_blank', 'noopener') } catch (e) { return false }
|
||||
return true
|
||||
})
|
||||
}
|
||||
try { global.open(url, '_blank', 'noopener') } catch (e) { return Promise.resolve(false) }
|
||||
return Promise.resolve(true)
|
||||
}
|
||||
|
||||
// 浏览器窗口控制(后退/前进/刷新/关闭)。命令由主窗口发起 —— browser 窗口本身没有 IPC 权限,
|
||||
// 所以只能在宿主侧操作它,插件不直接碰那个窗口。
|
||||
function control(ctx, action) {
|
||||
var inv = invoke()
|
||||
if (!inv) return Promise.resolve(false)
|
||||
return inv('browser_control', { action: action }).then(function () {
|
||||
return true
|
||||
}).catch(function (err) {
|
||||
ctx.log('浏览器控制失败(' + action + '):' + String(err))
|
||||
return false
|
||||
})
|
||||
}
|
||||
|
||||
// 查询浏览器窗口是否还开着、当前在哪个站
|
||||
function readState() {
|
||||
var inv = invoke()
|
||||
if (!inv) return Promise.resolve({ open: false, url: '' })
|
||||
return inv('browser_state').then(function (s) {
|
||||
return (s && typeof s === 'object') ? s : { open: false, url: '' }
|
||||
}).catch(function () {
|
||||
return { open: false, url: '' }
|
||||
})
|
||||
}
|
||||
|
||||
// 面板可能被反复挂载(切 tab 会重建 DOM),上一次的设置订阅必须先解掉:
|
||||
// 否则每切一次就多一个监听器,且旧闭包钉住整棵已脱离文档的 DOM,GC 不掉。
|
||||
var settingsOff = null
|
||||
|
||||
function parseBookmarks(raw) {
|
||||
var text = String(raw || '').trim()
|
||||
if (!text) return DEFAULT_BOOKMARKS.slice()
|
||||
var out = []
|
||||
var lines = text.split(/\r?\n/)
|
||||
for (var i = 0; i < lines.length; i++) {
|
||||
var line = lines[i].trim()
|
||||
if (!line || line.charAt(0) === '#') continue
|
||||
var parts = line.split(/\s*\|\s*/)
|
||||
var url = normalizeUrl(parts.length > 1 ? parts[1] : parts[0])
|
||||
if (!url) continue
|
||||
out.push({ title: (parts.length > 1 ? parts[0] : hostOf(url)), url: url })
|
||||
}
|
||||
return out.length ? out : DEFAULT_BOOKMARKS.slice()
|
||||
}
|
||||
|
||||
function el(tag, attrs, kids) {
|
||||
var node = document.createElement(tag)
|
||||
if (attrs) {
|
||||
for (var key in attrs) {
|
||||
if (!Object.prototype.hasOwnProperty.call(attrs, key)) continue
|
||||
var v = attrs[key]
|
||||
if (v === null || v === undefined) continue
|
||||
if (key === 'class') node.className = v
|
||||
else if (key === 'text') node.textContent = v
|
||||
else if (key === 'style') node.setAttribute('style', v)
|
||||
else node.setAttribute(key, v)
|
||||
}
|
||||
}
|
||||
if (kids) {
|
||||
var list = Array.isArray(kids) ? kids : [kids]
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
if (list[i] === null || list[i] === undefined) continue
|
||||
node.appendChild(typeof list[i] === 'string' ? document.createTextNode(list[i]) : list[i])
|
||||
}
|
||||
}
|
||||
return node
|
||||
}
|
||||
|
||||
function mount(host, ctx) {
|
||||
// 先解掉上一次挂载留下的订阅(见 settingsOff 注释)
|
||||
if (settingsOff) {
|
||||
try { settingsOff() } catch (e) { /* 解绑失败不影响新面板 */ }
|
||||
settingsOff = null
|
||||
}
|
||||
host.innerHTML = ''
|
||||
host.style.boxSizing = 'border-box'
|
||||
host.style.display = 'flex'
|
||||
host.style.flexDirection = 'column'
|
||||
host.style.gap = '12px'
|
||||
host.style.padding = '16px'
|
||||
host.style.height = '100%'
|
||||
host.style.overflow = 'auto'
|
||||
|
||||
host.appendChild(el('div', { class: 'iwb-browser-title', text: '应用内浏览器' }))
|
||||
host.appendChild(el('div', {
|
||||
class: 'iwb-browser-hint',
|
||||
text: '输入网址打开独立的浏览器窗口;重复打开会聚焦到同一个窗口。'
|
||||
}))
|
||||
|
||||
// 地址栏
|
||||
var input = el('input', {
|
||||
class: 'iwb-browser-input',
|
||||
type: 'text',
|
||||
placeholder: '输入网址,如 baidu.com',
|
||||
spellcheck: 'false'
|
||||
})
|
||||
input.style.flex = '1'
|
||||
var goBtn = el('button', { class: 'iwb-browser-go', type: 'button', text: '打开' })
|
||||
var bar = el('form', { class: 'iwb-browser-bar' }, [input, goBtn])
|
||||
bar.style.display = 'flex'
|
||||
bar.style.gap = '8px'
|
||||
|
||||
function submit(e) {
|
||||
if (e) e.preventDefault()
|
||||
var raw = input.value
|
||||
if (!normalizeUrl(raw)) {
|
||||
input.setAttribute('aria-invalid', 'true')
|
||||
return
|
||||
}
|
||||
input.removeAttribute('aria-invalid')
|
||||
openUrl(ctx, raw).then(refreshState)
|
||||
}
|
||||
bar.addEventListener('submit', submit)
|
||||
goBtn.addEventListener('click', submit)
|
||||
input.addEventListener('keydown', function (e) {
|
||||
if (e.key === 'Enter') { e.preventDefault(); submit() }
|
||||
})
|
||||
host.appendChild(bar)
|
||||
|
||||
// 运行状态 + 导航控制:外部页里点了站内链接跳走后,从这里能退回来,
|
||||
// 不用回面板重新输网址(这也是「裸 webview 没有地址栏」的补救)。
|
||||
var stateDot = el('span', { class: 'iwb-browser-dot iwb-browser-dot-off' })
|
||||
var stateText = el('span', { class: 'iwb-browser-now', text: '窗口未打开' })
|
||||
var backBtn = el('button', { type: 'button', title: '后退', text: '← 后退' })
|
||||
var fwdBtn = el('button', { type: 'button', title: '前进', text: '→ 前进' })
|
||||
var reloadBtn = el('button', { type: 'button', title: '刷新当前页', text: '⟳ 刷新' })
|
||||
var closeBtn = el('button', { type: 'button', title: '关闭浏览器窗口', text: '✕ 关闭' })
|
||||
var navButtons = [backBtn, fwdBtn, reloadBtn, closeBtn]
|
||||
var ctrl = el('div', { class: 'iwb-browser-ctrl' }, [stateDot, stateText].concat(navButtons))
|
||||
host.appendChild(ctrl)
|
||||
|
||||
function setNavEnabled(on) {
|
||||
for (var i = 0; i < navButtons.length; i++) {
|
||||
if (on) navButtons[i].removeAttribute('disabled')
|
||||
else navButtons[i].setAttribute('disabled', 'disabled')
|
||||
}
|
||||
}
|
||||
setNavEnabled(false)
|
||||
|
||||
function refreshState() {
|
||||
return readState().then(function (s) {
|
||||
var open = !!s.open
|
||||
stateDot.className = 'iwb-browser-dot' + (open ? '' : ' iwb-browser-dot-off')
|
||||
stateText.textContent = open ? (s.url || '(加载中)') : '窗口未打开'
|
||||
stateText.title = open ? String(s.url || '') : ''
|
||||
setNavEnabled(open)
|
||||
return s
|
||||
})
|
||||
}
|
||||
|
||||
backBtn.addEventListener('click', function () { control(ctx, 'back').then(refreshState) })
|
||||
fwdBtn.addEventListener('click', function () { control(ctx, 'forward').then(refreshState) })
|
||||
reloadBtn.addEventListener('click', function () { control(ctx, 'reload').then(refreshState) })
|
||||
closeBtn.addEventListener('click', function () { control(ctx, 'close').then(refreshState) })
|
||||
refreshState()
|
||||
|
||||
// 书签区
|
||||
host.appendChild(el('div', { class: 'iwb-browser-section', text: '书签' }))
|
||||
var grid = el('div', { class: 'iwb-browser-grid' })
|
||||
grid.style.display = 'grid'
|
||||
grid.style.gridTemplateColumns = 'repeat(auto-fill, minmax(120px, 1fr))'
|
||||
grid.style.gap = '8px'
|
||||
|
||||
function renderBookmarks() {
|
||||
grid.innerHTML = ''
|
||||
var list = parseBookmarks(ctx.settings.get('bookmarks'))
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
(function (item) {
|
||||
var btn = el('button', { class: 'iwb-browser-bm', type: 'button' }, [
|
||||
el('span', { class: 'iwb-browser-bm-title', text: item.title }),
|
||||
el('span', { class: 'iwb-browser-bm-url', text: hostOf(item.url) })
|
||||
])
|
||||
btn.addEventListener('click', function () { openUrl(ctx, item.url).then(refreshState) })
|
||||
grid.appendChild(btn)
|
||||
})(list[i])
|
||||
}
|
||||
}
|
||||
renderBookmarks()
|
||||
host.appendChild(grid)
|
||||
settingsOff = ctx.settings.onChange(function (name) { if (name === 'bookmarks') renderBookmarks() })
|
||||
|
||||
host.appendChild(el('div', {
|
||||
class: 'iwb-browser-foot',
|
||||
text: '提示:书签可在「设置 → 插件 → 应用内浏览器」里改,每行「名称 | 网址」。'
|
||||
}))
|
||||
}
|
||||
|
||||
// ── 画布内网页节点 ─────────────────────────────────────────────────────────
|
||||
// 与面板的区别:这里网页**长在画布上**,跟着节点一起平移/缩放,可以和其他节点并排对照。
|
||||
//
|
||||
// 实现要点:节点体只画「工具栏 + 一个空的锚点 div」,网页本体是宿主用
|
||||
// Tauri `Window::add_child` 创建的原生子 webview,被精确盖在锚点的屏幕矩形上。
|
||||
// 所以千万不要往锚点里塞任何内容 —— 原生层永远压在上面,塞了也看不见。
|
||||
//
|
||||
// 约定(宿主 src/canvas-webview.js 读取,插件只写属性、不直接碰原生层):
|
||||
// data-iwb-cwv 节点 id(有它宿主才会给这个节点建视图)
|
||||
// data-iwb-cwv-url 要加载的地址(去掉 = 不加载)
|
||||
// data-iwb-cwv-zoom 用户缩放倍数;宿主再乘画布缩放传给页面 zoom
|
||||
// data-iwb-cwv-paused "1" = 暂停(✕ 之后),宿主会关掉视图并保持关闭
|
||||
//
|
||||
// 反向通道:宿主在 document 上派发 `iwb-cwv-state`({id, loading, url, failed}),
|
||||
// 插件据此把地址栏换成站内跳转后的真实地址、把 ⟳ 换成「停止」。
|
||||
//
|
||||
// 已知限制(原生层的物理属性,不是 bug):网页区域内的鼠标事件由网页自己消费,
|
||||
// 所以拖动节点要用标题栏;节点被别的节点盖住时网页仍然可见。
|
||||
var SVG_NS = 'http://www.w3.org/2000/svg'
|
||||
var ICON_D = {
|
||||
back: 'M11.5 4.5 6 10l5.5 5.5',
|
||||
forward: 'M8.5 4.5 14 10l-5.5 5.5',
|
||||
reload: 'M15.5 10a5.5 5.5 0 1 1-1.6-3.9M15.5 4.2v3.5h-3.5',
|
||||
stop: 'M7 7h6v6H7z',
|
||||
close: 'M6.5 6.5l7 7M13.5 6.5l-7 7',
|
||||
external: 'M8.5 11.5 14 6M14 6h-3.4M14 6v3.4',
|
||||
minus: 'M6.5 10h7',
|
||||
plus: 'M10 6.5v7M6.5 10h7'
|
||||
}
|
||||
var ICON_TEXT = {
|
||||
back: '←', forward: '→', reload: '⟳', stop: '■', close: '✕',
|
||||
external: '↗', minus: '−', plus: '+'
|
||||
}
|
||||
function icon(name) {
|
||||
// 测试用的极简 DOM(tools/harness.mjs)没有 SVG API:退回文字图标,
|
||||
// 真实客户端一定走上面这条分支,不影响观感。
|
||||
if (!document.createElementNS) {
|
||||
var sp = document.createElement('span')
|
||||
sp.textContent = ICON_TEXT[name] || ''
|
||||
return sp
|
||||
}
|
||||
var svg = document.createElementNS(SVG_NS, 'svg')
|
||||
svg.setAttribute('viewBox', '0 0 20 20')
|
||||
svg.setAttribute('width', '15')
|
||||
svg.setAttribute('height', '15')
|
||||
svg.setAttribute('aria-hidden', 'true')
|
||||
var p = document.createElementNS(SVG_NS, 'path')
|
||||
p.setAttribute('d', ICON_D[name] || '')
|
||||
if (name === 'stop') {
|
||||
p.setAttribute('fill', 'currentColor')
|
||||
} else {
|
||||
svg.setAttribute('fill', 'none')
|
||||
svg.setAttribute('stroke', 'currentColor')
|
||||
svg.setAttribute('stroke-width', '1.6')
|
||||
svg.setAttribute('stroke-linecap', 'round')
|
||||
svg.setAttribute('stroke-linejoin', 'round')
|
||||
}
|
||||
svg.appendChild(p)
|
||||
return svg
|
||||
}
|
||||
|
||||
var ZOOM_MIN = 0.25
|
||||
var ZOOM_MAX = 3
|
||||
var webMap = {} // nodeId → state(`iwb-cwv-state` 事件按 id 路由到对应节点)
|
||||
|
||||
function pctText(z) { return Math.round(z * 100) + '%' }
|
||||
|
||||
function clampZoom(z) {
|
||||
var v = Math.round(Number(z) * 100) / 100
|
||||
if (!isFinite(v) || v <= 0) v = 1
|
||||
return Math.min(ZOOM_MAX, Math.max(ZOOM_MIN, v))
|
||||
}
|
||||
|
||||
// 缩放值只有一个来源:st.zoom。改完立刻写锚点属性,宿主下一帧就按新值推 zoom。
|
||||
function setZoom(st, next, commit) {
|
||||
var z = clampZoom(next)
|
||||
st.zoom = z
|
||||
if (st.zpct && document.activeElement !== st.zpct) st.zpct.value = pctText(z)
|
||||
st.anchor.setAttribute('data-iwb-cwv-zoom', String(z))
|
||||
if (st.zMinus) st.zMinus.disabled = z <= ZOOM_MIN
|
||||
if (st.zPlus) st.zPlus.disabled = z >= ZOOM_MAX
|
||||
if (commit && st.node && st.props && typeof st.props.onUpdate === 'function') {
|
||||
st.props.onUpdate(st.node.id, { zoom: z })
|
||||
}
|
||||
}
|
||||
|
||||
function setLoading(st, loading) {
|
||||
st.loading = !!loading
|
||||
if (!st.reload) return
|
||||
st.reload.textContent = ''
|
||||
st.reload.appendChild(icon(loading ? 'stop' : 'reload'))
|
||||
st.reload.title = loading ? '停止加载' : '刷新'
|
||||
st.reload.setAttribute('data-act', loading ? 'stop' : 'reload')
|
||||
}
|
||||
|
||||
// 地址栏里显示的地址:输入框正在编辑时绝不去覆盖(否则每敲一个字都被顶回去)
|
||||
function setAddress(st, url) {
|
||||
if (!st.input) return
|
||||
if (document.activeElement === st.input) return
|
||||
var next = String(url || '')
|
||||
if (st.input.value !== next) st.input.value = next
|
||||
}
|
||||
|
||||
function ensurePausedText(st, paused) {
|
||||
if (!st.empty) return
|
||||
if (paused) {
|
||||
st.empty.style.display = ''
|
||||
st.empty.textContent = '已关闭这个网页。\n点上方 ⟳ 或重新输入网址即可继续。'
|
||||
}
|
||||
}
|
||||
|
||||
function renderWebNode(node, props, host, ctx) {
|
||||
var st = host && host.__iwbWeb
|
||||
if (!st) {
|
||||
host.textContent = ''
|
||||
host.classList.add('iwb-cwv-body')
|
||||
st = host.__iwbWeb = buildWebNode(host, ctx)
|
||||
bindWebNode(st, ctx)
|
||||
}
|
||||
st.node = node
|
||||
st.props = props
|
||||
st.ctx = ctx
|
||||
st.id = (node && node.id) || ''
|
||||
if (st.id) webMap[st.id] = st
|
||||
|
||||
var d = (node && node.data) || {}
|
||||
var url = String(d.url || '').trim()
|
||||
var paused = d.paused === true || d.paused === '1' || d.paused === 1
|
||||
|
||||
if (st.id) st.anchor.setAttribute('data-iwb-cwv', st.id)
|
||||
if (url) st.anchor.setAttribute('data-iwb-cwv-url', url)
|
||||
else st.anchor.removeAttribute('data-iwb-cwv-url')
|
||||
if (paused) st.anchor.setAttribute('data-iwb-cwv-paused', '1')
|
||||
else st.anchor.removeAttribute('data-iwb-cwv-paused')
|
||||
|
||||
if (node && node.id !== st.lastNodeId) st.lastNodeId = node.id
|
||||
setAddress(st, st.pageUrl && !paused && st.pageUrl !== url ? st.pageUrl : url)
|
||||
// 每次渲染都写一遍(值没变时只是几次属性赋值)——否则新建节点不会写下 zoom 属性
|
||||
setZoom(st, d.zoom || 1, false)
|
||||
|
||||
var supported = !!invoke()
|
||||
// 画布内的网页靠宿主的 src/canvas-webview.js 做位置同步并把命令发给 Rust。
|
||||
// 旧客户端没有这个模块(也不认识 canvas_webview_* 命令)⇒ 白屏且毫无提示,
|
||||
// 用户根本不知道是版本问题。这里显式判一次,宁可说清楚也不要留一块白板。
|
||||
var engine = !!(global.IWBCanvasWebview || (global.window && global.window.IWBCanvasWebview))
|
||||
if (!url) {
|
||||
st.empty.style.display = ''
|
||||
st.empty.textContent = '在地址栏输入网址,网页会显示在这个节点里'
|
||||
} else if (!supported) {
|
||||
st.empty.style.display = ''
|
||||
st.empty.textContent = '画布内网页需要桌面客户端;网页版请用左侧「浏览器」面板。'
|
||||
} else if (!engine) {
|
||||
st.empty.style.display = ''
|
||||
st.empty.textContent = '当前客户端还没有画布内网页能力(需要 v3.25.29 及以上)。\n请先更新客户端;升级前可以点上方 ↗ 用「浏览器」面板打开。'
|
||||
} else if (paused) {
|
||||
ensurePausedText(st, true)
|
||||
} else {
|
||||
st.empty.style.display = 'none'
|
||||
}
|
||||
var on = !!(url && supported)
|
||||
var acts = st.acts || []
|
||||
for (var i = 0; i < acts.length; i++) acts[i].disabled = !on
|
||||
if (st.zMinus) st.zMinus.disabled = !on || st.zoom <= ZOOM_MIN
|
||||
if (st.zPlus) st.zPlus.disabled = !on || st.zoom >= ZOOM_MAX
|
||||
if (st.zpct) st.zpct.disabled = !on
|
||||
}
|
||||
|
||||
function buildWebNode(host, ctx) {
|
||||
var mkBtn = function (name, title, act) {
|
||||
var b = el('button', { class: 'iwb-cwv-btn', type: 'button', title: title })
|
||||
b.appendChild(icon(name))
|
||||
if (act) b.setAttribute('data-act', act)
|
||||
b.disabled = true
|
||||
return b
|
||||
}
|
||||
var back = mkBtn('back', '后退', 'back')
|
||||
var fwd = mkBtn('forward', '前进', 'forward')
|
||||
var reload = mkBtn('reload', '刷新', 'reload')
|
||||
var close = mkBtn('close', '关闭这个网页(节点保留,可再打开)')
|
||||
var open = mkBtn('external', '在独立窗口/浏览器面板打开')
|
||||
var zMinus = el('button', { class: 'iwb-cwv-btn', type: 'button', title: '缩小内容' })
|
||||
zMinus.appendChild(icon('minus'))
|
||||
var zPlus = el('button', { class: 'iwb-cwv-btn', type: 'button', title: '放大内容' })
|
||||
zPlus.appendChild(icon('plus'))
|
||||
// 可编辑的缩放设定框:点一下全选,输入 120 回车即 120%
|
||||
var zpct = el('input', {
|
||||
class: 'iwb-cwv-zpct', type: 'text',
|
||||
title: '内容缩放:点一下可直接输入百分比,回车生效;双击恢复 100%',
|
||||
spellcheck: 'false'
|
||||
})
|
||||
zpct.value = '100%'
|
||||
var zoomBox = el('div', { class: 'iwb-cwv-zoom' }, [zMinus, zpct, zPlus])
|
||||
var input = el('input', { class: 'iwb-cwv-url', type: 'text', placeholder: '输入网址后回车' })
|
||||
var sep = el('div', { class: 'iwb-cwv-sep' })
|
||||
var bar = el('div', { class: 'iwb-cwv-bar' }, [back, fwd, reload, input, zoomBox, sep, open, close])
|
||||
// 锚点:宿主 canvas-webview.js 按这个 div 的屏幕矩形去摆原生 webview
|
||||
var anchor = el('div', { class: 'iwb-cwv-anchor' })
|
||||
var empty = el('div', { class: 'iwb-cwv-empty' })
|
||||
var stage = el('div', { class: 'iwb-cwv-stage' }, [anchor, empty])
|
||||
host.appendChild(bar)
|
||||
host.appendChild(stage)
|
||||
return {
|
||||
id: '', node: null, props: null, ctx: ctx,
|
||||
bar: bar, input: input, anchor: anchor, empty: empty, stage: stage,
|
||||
back: back, fwd: fwd, reload: reload, close: close, open: open,
|
||||
zMinus: zMinus, zPlus: zPlus, zpct: zpct,
|
||||
acts: [back, fwd, reload, close, open],
|
||||
zoom: 1, loading: false, pageUrl: '', lastNodeId: ''
|
||||
}
|
||||
}
|
||||
|
||||
function bindWebNode(st, ctx) {
|
||||
var commit = function () {
|
||||
var url = normalizeUrl(st.input.value)
|
||||
if (!url) { st.input.setAttribute('aria-invalid', 'true'); return false }
|
||||
st.input.removeAttribute('aria-invalid')
|
||||
if (!st.node || !st.props || typeof st.props.onUpdate !== 'function') return false
|
||||
var patch = { url: url, paused: false }
|
||||
// 标题还空着就顺手写上站点名:多个网页节点并排时才分得清(用户随时可改)
|
||||
var d = st.node.data || {}
|
||||
if (!(d.title && String(d.title).trim())) patch.title = hostOf(url)
|
||||
st.pageUrl = url
|
||||
st.props.onUpdate(st.node.id, patch)
|
||||
// 不依赖 React 重渲染的时机:属性一改,宿主下一帧就会读到并导航
|
||||
st.anchor.setAttribute('data-iwb-cwv-url', url)
|
||||
st.anchor.removeAttribute('data-iwb-cwv-paused')
|
||||
st.empty.style.display = 'none'
|
||||
for (var i = 0; i < st.acts.length; i++) st.acts[i].disabled = false
|
||||
return true
|
||||
}
|
||||
|
||||
st.input.addEventListener('keydown', function (e) {
|
||||
if (e.key === 'Enter') {
|
||||
e.preventDefault(); e.stopPropagation()
|
||||
if (commit()) st.input.blur()
|
||||
} else if (e.key === 'Escape') {
|
||||
e.preventDefault(); e.stopPropagation()
|
||||
st.input.removeAttribute('aria-invalid')
|
||||
setAddress(st, (st.node && st.node.data && st.node.data.url) || '')
|
||||
st.input.blur()
|
||||
}
|
||||
})
|
||||
st.input.addEventListener('focus', function () { try { st.input.select() } catch (e) { /* 忽略 */ } })
|
||||
// 失焦时把显示值收敛回已生效地址(用户可能敲了半截就点走)
|
||||
st.input.addEventListener('blur', function () {
|
||||
if (st.input.getAttribute('aria-invalid')) { st.input.removeAttribute('aria-invalid'); return }
|
||||
setAddress(st, st.pageUrl || (st.node && st.node.data && st.node.data.url) || '')
|
||||
})
|
||||
|
||||
// ── 缩放 ──
|
||||
st.zMinus.addEventListener('click', function (e) {
|
||||
e.preventDefault(); e.stopPropagation()
|
||||
setZoom(st, st.zoom - 0.1, true)
|
||||
})
|
||||
st.zPlus.addEventListener('click', function (e) {
|
||||
e.preventDefault(); e.stopPropagation()
|
||||
setZoom(st, st.zoom + 0.1, true)
|
||||
})
|
||||
st.zpct.addEventListener('keydown', function (e) {
|
||||
if (e.key === 'Enter') {
|
||||
e.preventDefault(); e.stopPropagation()
|
||||
var v = parseFloat(String(st.zpct.value).replace('%', '').trim())
|
||||
if (isFinite(v) && v > 0) setZoom(st, v / 100, true)
|
||||
st.zpct.value = pctText(st.zoom)
|
||||
st.zpct.blur()
|
||||
} else if (e.key === 'Escape') {
|
||||
e.preventDefault(); e.stopPropagation()
|
||||
st.zpct.value = pctText(st.zoom)
|
||||
st.zpct.blur()
|
||||
}
|
||||
})
|
||||
st.zpct.addEventListener('blur', function () { st.zpct.value = pctText(st.zoom) })
|
||||
st.zpct.addEventListener('dblclick', function (e) {
|
||||
e.preventDefault(); e.stopPropagation()
|
||||
setZoom(st, 1, true)
|
||||
st.zpct.value = pctText(st.zoom)
|
||||
})
|
||||
st.zpct.addEventListener('focus', function () { try { st.zpct.select() } catch (e) { /* 忽略 */ } })
|
||||
|
||||
st.acts.forEach(function (b) {
|
||||
b.addEventListener('click', function (e) {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
var f = invoke()
|
||||
if (!f || !st.node) return
|
||||
var act = b.getAttribute('data-act')
|
||||
// 已关闭(paused)时点 ⟳/←/→:先恢复加载,再让宿主重建视图
|
||||
if (act && st.anchor.getAttribute('data-iwb-cwv-paused') === '1') {
|
||||
if (st.props && typeof st.props.onUpdate === 'function') {
|
||||
st.props.onUpdate(st.node.id, { paused: false })
|
||||
}
|
||||
st.anchor.removeAttribute('data-iwb-cwv-paused')
|
||||
if (st.empty) st.empty.style.display = 'none'
|
||||
return
|
||||
}
|
||||
if (act) {
|
||||
f('canvas_webview_action', { id: st.node.id, action: act })
|
||||
.catch(function (err) { ctx.log('画布网页控制失败:' + String(err)) })
|
||||
return
|
||||
}
|
||||
// ✕ 和 ↗ 没有 data-act:前者暂停,后者开独立窗口
|
||||
if (b === st.close) {
|
||||
var d = st.node.data || {}
|
||||
st.anchor.setAttribute('data-iwb-cwv-paused', '1')
|
||||
if (st.props && typeof st.props.onUpdate === 'function') {
|
||||
st.props.onUpdate(st.node.id, { url: d.url || '', paused: true })
|
||||
}
|
||||
ensurePausedText(st, true)
|
||||
} else if (b === st.open) {
|
||||
var target = (st.pageUrl || (st.node.data && st.node.data.url) || '').trim()
|
||||
if (target) openUrl(ctx, target)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
// 宿主回报的网页状态(加载中 / 站内跳转后的真实地址 / 失败)
|
||||
if (!bindWebNode.listening && document.addEventListener) {
|
||||
bindWebNode.listening = true
|
||||
document.addEventListener('iwb-cwv-state', function (ev) {
|
||||
var p = (ev && ev.detail) || {}
|
||||
var s = p.id && webMap[p.id]
|
||||
if (!s) return
|
||||
if (p.url) s.pageUrl = p.url
|
||||
setLoading(s, !!p.loading)
|
||||
setAddress(s, s.pageUrl)
|
||||
})
|
||||
}
|
||||
}
|
||||
// 节点被删除时把引用摘掉,避免事件路由表长期持有已卸载的 DOM
|
||||
function disposeWebNode(host) {
|
||||
var st = host && host.__iwbWeb
|
||||
if (st && st.id && webMap[st.id] === st) delete webMap[st.id]
|
||||
}
|
||||
|
||||
global.IWBPluginHost.register({
|
||||
id: 'browser',
|
||||
name: '应用内浏览器',
|
||||
version: '1.4.0',
|
||||
apiVersion: 1,
|
||||
capabilities: ['panels', 'nodeTypes'],
|
||||
settings: {
|
||||
bookmarks: {
|
||||
type: 'text',
|
||||
label: '书签',
|
||||
desc: '每行一个,格式「名称 | 网址」;留空用默认书签。网址可省略 https://。',
|
||||
default: ''
|
||||
}
|
||||
}
|
||||
}, function (ctx) {
|
||||
ctx.ui.registerPanel({
|
||||
id: 'browser-panel',
|
||||
title: '浏览器',
|
||||
icon: 'globe',
|
||||
mount: function (host) { mount(host, ctx) }
|
||||
})
|
||||
// 画布内网页节点:从画布空白处双击 / 工具栏「加节点」里能选到「网页」
|
||||
if (ctx.nodes && typeof ctx.nodes.register === 'function') {
|
||||
ctx.nodes.register({
|
||||
id: 'web',
|
||||
title: '网页',
|
||||
icon: 'globe',
|
||||
height: 520,
|
||||
// 宽度要够才看得清网页;宿主 addPluginNode 会带上这个值(未声明则用通用 264)
|
||||
width: 560,
|
||||
// zoom:相对节点的内容缩放(宿主再乘画布缩放);paused:✕ 之后暂停加载
|
||||
defaults: { url: '', zoom: 1, paused: false },
|
||||
ports: { in: false, out: false },
|
||||
// 宿主在节点销毁时调 render.dispose(host):顺手把事件路由表里的引用摘掉
|
||||
render: (function () {
|
||||
function r(node, props, host) { renderWebNode(node, props, host, ctx) }
|
||||
r.dispose = disposeWebNode
|
||||
return r
|
||||
})()
|
||||
})
|
||||
}
|
||||
return {}
|
||||
})
|
||||
})(typeof window !== 'undefined' ? window : globalThis)
|
||||
@@ -54,8 +54,8 @@
|
||||
<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.28 · 8.3 MB · .dmg<div class="hash">sha256 e583a578ee55a507…</div></div>
|
||||
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.25.28_aarch64.dmg?h=e583a578ee55">下载</a>
|
||||
<div class="meta">版本 3.25.29 · 8.3 MB · .dmg<div class="hash">sha256 76e0815010e52248…</div></div>
|
||||
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.25.29_aarch64.dmg?h=76e0815010e5">下载</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="name">macOS · Intel<div class="hint">x86_64</div></div>
|
||||
@@ -94,6 +94,10 @@
|
||||
</ol>
|
||||
|
||||
<h2>历史版本</h2>
|
||||
<div class="row">
|
||||
<div class="name">3.25.29<div class="hint">修画布网页压住地址栏(原生层与 DOM 的坐标原点差 32px)、内容跟随画布缩放;工具栏重做为可输入百分比的缩放设定框</div></div>
|
||||
<div class="meta">2026-11-18<div class="hint">macOS · Apple Silicon</div></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="name">3.25.28<div class="hint">恢复画布内网页节点并修好「一动就白」:取消动就藏与尺寸门槛,位置尺寸一次 set_bounds 推送</div></div>
|
||||
<div class="meta">2026-11-18<div class="hint">macOS · Apple Silicon</div></div>
|
||||
|
||||
+9
-9
@@ -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.28-mwmppqfs">
|
||||
<link rel="stylesheet" href="/assets/style.css?v=3.25.29-mwmqrups">
|
||||
</head><body>
|
||||
<nav><div class="wrap inner">
|
||||
<a class="brand" href="/"><span class="dot">IW</span>Image Workbench</a>
|
||||
@@ -14,19 +14,19 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<a class="btn" href="/plugins/">插件市场</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.25.28</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.25.29</a>
|
||||
</div>
|
||||
</div></nav>
|
||||
<main>
|
||||
<section class="hero hero-art">
|
||||
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.25.28-mwmppqfs" alt=""></div>
|
||||
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.25.29-mwmqrups" alt=""></div>
|
||||
<div class="hero-veil"></div>
|
||||
<div class="wrap">
|
||||
<span class="kicker">v3.25.28 · macOS / Windows · 数据在本地</span>
|
||||
<span class="kicker">v3.25.29 · macOS / Windows · 数据在本地</span>
|
||||
<h1>本地优先的<br>AI 生图无限画布</h1>
|
||||
<p class="sub">用节点把「参考图 → 提示词 → 批量生成 → 图库」串成一条生产线。<br>图片、提示词、模型配置全部留在你自己的电脑里,插件按需安装。</p>
|
||||
<div class="cta">
|
||||
<a class="btn primary lg" href="/download/">下载 v3.25.28</a>
|
||||
<a class="btn primary lg" href="/download/">下载 v3.25.29</a>
|
||||
<a class="btn lg" href="/plugins/">浏览 8 个插件</a>
|
||||
</div>
|
||||
<div class="meta">支持 macOS 12+ 与 Windows 10 1803+ · 安装包约 7 MB · 无需登录</div>
|
||||
@@ -62,10 +62,10 @@
|
||||
<div class="desc">新建空白画布节点,用于分区分组</div>
|
||||
<div class="tags"><span class="tag">画布</span><span class="tag">效率</span></div>
|
||||
</div>
|
||||
<div class="pcard" data-name="应用内浏览器 browser 独立窗口打开网页,可后退/刷新/关闭,不占用画布 浏览器 效率" data-tags="浏览器,效率">
|
||||
<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.3.0 · 官方</div></div></div>
|
||||
<div class="desc">独立窗口打开网页,可后退/刷新/关闭,不占用画布</div>
|
||||
<div><div class="nm">应用内浏览器</div><div class="ver">v1.4.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="修图,标注">
|
||||
@@ -93,7 +93,7 @@
|
||||
<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.28_aarch64.dmg?h=e583a578ee55"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.3 MB · .dmg</div></a>
|
||||
<div class="dl"><a href="/updates/darwin-aarch64/image-workbench_3.25.29_aarch64.dmg?h=76e0815010e5"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.3 MB · .dmg</div></a>
|
||||
<div class="none"><div class="n">macOS · Intel</div><div class="s">暂未提供</div></div>
|
||||
<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>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 1,
|
||||
"updatedAt": "2026-11-18T22:45:08.800Z",
|
||||
"updatedAt": "2026-11-18T23:14:16.914Z",
|
||||
"plugins": [
|
||||
{
|
||||
"id": "batch-export",
|
||||
@@ -41,7 +41,7 @@
|
||||
{
|
||||
"id": "browser",
|
||||
"name": "应用内浏览器",
|
||||
"desc": "独立窗口打开网页,可后退/刷新/关闭,不占用画布",
|
||||
"desc": "独立窗口打开网页,或在画布节点里内嵌网页(跟随画布缩放,可调内容缩放)",
|
||||
"author": "official",
|
||||
"icon": "🌐",
|
||||
"color": "#eaf1fb",
|
||||
@@ -49,12 +49,12 @@
|
||||
"浏览器",
|
||||
"效率"
|
||||
],
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"apiVersion": 1,
|
||||
"file": "plugins/plugin-browser.0b0ee915069c.js",
|
||||
"size": 21728,
|
||||
"sha256": "0b0ee915069cd365259dff5c8e24594288d4011a8eb885d27f49e1caf7cd2b3d",
|
||||
"integrity": "sha256-Cw7pFQac02Ulnf9cjiRZQojUARqOuIXSf0nhyvfNKz0="
|
||||
"file": "plugins/plugin-browser.9e43059c8eaf.js",
|
||||
"size": 32526,
|
||||
"sha256": "9e43059c8eaf1a7e54794a072b224e6e2fff8927c04ac703ecce635db03479b4",
|
||||
"integrity": "sha256-nkMFnI6vGn5UeUoHKyJObi//iSfASscD7M5jXbA0ebQ="
|
||||
},
|
||||
{
|
||||
"id": "image-annotate",
|
||||
|
||||
@@ -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.28-mwmppqfs">
|
||||
<link rel="stylesheet" href="/assets/style.css?v=3.25.29-mwmqrups">
|
||||
</head><body>
|
||||
<nav><div class="wrap inner">
|
||||
<a class="brand" href="/"><span class="dot">IW</span>Image Workbench</a>
|
||||
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<a class="btn" href="/plugins/">插件市场</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.25.28</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.25.29</a>
|
||||
</div>
|
||||
</div></nav>
|
||||
<main>
|
||||
@@ -53,10 +53,10 @@
|
||||
<div class="desc">新建空白画布节点,用于分区分组</div>
|
||||
<div class="tags"><span class="tag">画布</span><span class="tag">效率</span></div>
|
||||
</div>
|
||||
<div class="pcard" data-name="应用内浏览器 browser 独立窗口打开网页,可后退/刷新/关闭,不占用画布 浏览器 效率" data-tags="浏览器,效率">
|
||||
<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.3.0 · 官方</div></div></div>
|
||||
<div class="desc">独立窗口打开网页,可后退/刷新/关闭,不占用画布</div>
|
||||
<div><div class="nm">应用内浏览器</div><div class="ver">v1.4.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="修图,标注">
|
||||
|
||||
+15
-1
@@ -1,8 +1,22 @@
|
||||
{
|
||||
"app": "Image Workbench",
|
||||
"subtitle": "本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)",
|
||||
"updatedAt": "2026-11-18T22:48:11.732Z",
|
||||
"updatedAt": "2026-11-18T23:17:50.206Z",
|
||||
"releases": [
|
||||
{
|
||||
"version": "3.25.29",
|
||||
"date": "2026-11-18",
|
||||
"notes": "修画布网页压住地址栏(原生层与 DOM 的坐标原点差 32px)、内容跟随画布缩放;工具栏重做为可输入百分比的缩放设定框",
|
||||
"platforms": {
|
||||
"darwin-aarch64": {
|
||||
"file": "updates/darwin-aarch64/image-workbench_3.25.29_aarch64.dmg",
|
||||
"size": 8709846,
|
||||
"sha256": "76e0815010e52248d4c71c32d845a388b64034c110599b5a269fed47da513058",
|
||||
"h": "76e0815010e5",
|
||||
"kind": "dmg"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "3.25.28",
|
||||
"date": "2026-11-18",
|
||||
|
||||
Reference in new issue
Block a user