dsh-plugin-image-workbench 1.1.8 → 1.1.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-image-workbench",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "type": "module",
5
5
  "description": "Bluxe手绘工坊 · 生图工作台(图文 / 摄影):DSH 侧栏图像生成工作台,默认使用内置本地账号池,亦支持任意 OpenAI 兼容接口(Base URL / API Key / 模型);可自定义工作台名称与图片存储目录。",
6
6
  "main": "./host.js",
@@ -288,6 +288,9 @@
288
288
  .pill{display:inline-flex;align-items:center;gap:6px;background:#f7f5ff;border:1px solid var(--line);
289
289
  border-radius:12px;padding:3px 9px;font-size:11px;color:var(--ink-2)}
290
290
  .footer-note{margin-top:12px;font-size:10.5px;color:var(--ink-3);line-height:1.6}
291
+ /* 左栏底部版本号:左栏与中/右栏同高,版本钉在卡片左下角 */
292
+ .panel.left{align-self:stretch;display:flex;flex-direction:column}
293
+ .ver-foot{margin-top:auto;padding-top:12px;font-size:11px;color:var(--ink-3);opacity:.7}
291
294
  .strip-wrap{display:flex;align-items:center;gap:6px}
292
295
  .strip{position:relative;flex:1;display:flex;gap:8px;overflow-x:auto;padding:6px 2px;min-height:100px;scroll-behavior:smooth}
293
296
  .strip::-webkit-scrollbar{height:8px}
@@ -671,6 +674,7 @@
671
674
  </div>
672
675
  <div class="status" id="splitStatus"></div>
673
676
  <div class="md" id="docRaw" style="display:none"></div>
677
+ <div class="ver-foot" id="verFoot" title="当前工作台版本"></div>
674
678
  </section>
675
679
 
676
680
  <!-- 配图工坊 -->
@@ -4730,6 +4734,17 @@ setInterval(refreshPool, 10000);
4730
4734
  })
4731
4735
  .catch(function(){}); // 状态读不到就保持默认说明,不影响轮播
4732
4736
  })();
4737
+
4738
+ /* 左下角版本号:/health 返回插件版本(取自 package.json),读不到就留空 */
4739
+ (function(){
4740
+ fetch('/health', {cache: 'no-store'})
4741
+ .then(function(r){ return r.ok ? r.json() : null; })
4742
+ .then(function(d){
4743
+ var el = document.getElementById('verFoot');
4744
+ if (el && d && d.version) el.textContent = 'v' + d.version;
4745
+ })
4746
+ .catch(function(){});
4747
+ })();
4733
4748
  </script>
4734
4749
 
4735
4750
  <script>