dsh-plugin-image-workbench 1.1.14 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/static/index.html +21 -6
package/package.json
CHANGED
package/server/static/index.html
CHANGED
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
--ok:#12b886; --warn:#f59f00; --err:#e03131; --chip:#f1eefe;
|
|
12
12
|
}
|
|
13
13
|
*{box-sizing:border-box}
|
|
14
|
+
/* 页面级滚动条不画出来:工作台常驻在 IDE 侧栏里,一条灰条跟着内容增减来回闪很碍眼。
|
|
15
|
+
只隐藏这根条,滚轮 / 触控板 / 键盘 / scrollIntoView 都照常工作;
|
|
16
|
+
栏内的横向滚动条(.strip 那类)是元素级样式,不受影响 */
|
|
17
|
+
html{scrollbar-width:none;-ms-overflow-style:none}
|
|
18
|
+
html::-webkit-scrollbar{width:0;height:0}
|
|
14
19
|
body{margin:0;background:var(--bg);color:var(--ink);
|
|
15
20
|
font:13px/1.6 -apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;}
|
|
16
21
|
header{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#fff;
|
|
@@ -291,9 +296,13 @@
|
|
|
291
296
|
.pill{display:inline-flex;align-items:center;gap:6px;background:#f7f5ff;border:1px solid var(--line);
|
|
292
297
|
border-radius:12px;padding:3px 9px;font-size:11px;color:var(--ink-2)}
|
|
293
298
|
.footer-note{margin-top:12px;font-size:10.5px;color:var(--ink-3);line-height:1.6}
|
|
294
|
-
/*
|
|
295
|
-
|
|
296
|
-
.ver-foot
|
|
299
|
+
/* 左栏底部版本号:跟在内容正下方,不与别的栏对齐。
|
|
300
|
+
升级提示做成同一行的小胶囊,绝不另起一行——多一行就会把整页顶出右侧滚动条 */
|
|
301
|
+
.ver-foot{display:flex;align-items:center;gap:8px;margin-top:16px;font-size:13px;
|
|
302
|
+
color:var(--ink-3);white-space:nowrap}
|
|
303
|
+
.ver-foot .up-new{flex:none;font-size:11px;line-height:1.5;color:var(--primary);
|
|
304
|
+
background:#f3f0ff;border:1px solid #e3dcff;border-radius:9px;padding:0 7px;cursor:pointer}
|
|
305
|
+
.ver-foot .up-new:hover{background:#eae4ff}
|
|
297
306
|
.strip-wrap{display:flex;align-items:center;gap:6px}
|
|
298
307
|
.strip{position:relative;flex:1;display:flex;gap:8px;overflow-x:auto;padding:6px 2px;min-height:100px;scroll-behavior:smooth}
|
|
299
308
|
.strip::-webkit-scrollbar{height:8px}
|
|
@@ -640,6 +649,7 @@
|
|
|
640
649
|
<span class="ad-tag">提示</span>
|
|
641
650
|
<div class="ad-view"><div class="ad-track" id="adTrack">
|
|
642
651
|
<div class="ad-item" id="adSamples" title="刚安装成功时,缩略图会在后台自动补齐,补完刷新就是真图">刚安装完需要点时间同步图型、风格、主题色缩略图。</div>
|
|
652
|
+
<div class="ad-item">随机组合图型、风格之后需要再次生成提示词。</div>
|
|
643
653
|
<div class="ad-item">如果不知道怎么上手,可以试着直接点击「批量出图」。</div>
|
|
644
654
|
<div class="ad-item">使用过程中有任何问题,可以多看看公众号详细介绍。</div>
|
|
645
655
|
<div class="ad-item">如果发现其他问题,估计作者也搞不定,就直接问 AI 吧。</div>
|
|
@@ -4869,16 +4879,21 @@ setInterval(refreshPool, 10000);
|
|
|
4869
4879
|
if (el && d && d.version) el.textContent = 'v' + d.version;
|
|
4870
4880
|
})
|
|
4871
4881
|
.catch(function(){});
|
|
4872
|
-
/*
|
|
4882
|
+
/* 有新版本就在版本号右边挂个小胶囊;查失败就当没有,不打扰使用。
|
|
4883
|
+
必须与版本号同一行:另起一行会把整页顶出右侧滚动条。 */
|
|
4873
4884
|
fetch('/api/upgrade', {cache: 'no-store'})
|
|
4874
4885
|
.then(function(r){ return r.ok ? r.json() : null; })
|
|
4875
4886
|
.then(function(d){
|
|
4876
4887
|
var el = document.getElementById('upNote');
|
|
4877
4888
|
if (!el || !d || !d.has_new || !d.latest) return;
|
|
4878
4889
|
el.hidden = false;
|
|
4879
|
-
el.textContent = '
|
|
4880
|
-
|
|
4890
|
+
el.textContent = '新版本 v' + d.latest + ' →';
|
|
4891
|
+
var tip = '当前 v' + d.current + '。在 DSH「插件」里更新即可;'
|
|
4881
4892
|
+ '或在插件目录执行 npm i dsh-plugin-image-workbench@latest 后重跑 node install.mjs,装完重启 DSH。';
|
|
4893
|
+
el.title = tip;
|
|
4894
|
+
el.addEventListener('click', function(){
|
|
4895
|
+
if (typeof toast === 'function') toast(tip, {title: '升级到 v' + d.latest, ms: 8000});
|
|
4896
|
+
});
|
|
4882
4897
|
})
|
|
4883
4898
|
.catch(function(){});
|
|
4884
4899
|
})();
|