dsh-mobile-ios 0.2.4 → 0.2.5

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.
Binary file
package/lib/client.js CHANGED
@@ -160,11 +160,12 @@ window.__ModuleLoader__.load({
160
160
  padding: 14px; }
161
161
  .dsh-mios-panel h3 { margin: 0 0 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
162
162
  .dsh-mios-upd { margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 7px;
163
- color: var(--muted); font: 500 11px/1.4 inherit, sans-serif; cursor: pointer; padding: 3px 8px; }
163
+ color: var(--muted); font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1.4;
164
+ cursor: pointer; padding: 3px 8px; }
164
165
  .dsh-mios-upd:hover { color: var(--fg); border-color: var(--border-hover); }
165
166
  .dsh-mios-modal-mask { --modal-bg:#1c2230; --modal-fg:#e8eaf0; --modal-muted:#8b93a3;
166
167
  --modal-border:#3a4560; --modal-btn:rgba(139,147,163,.12); --modal-accent:#3fb27f; --modal-shadow:rgba(0,0,0,.6);
167
- position:fixed; inset:0; z-index:100000; background:var(--modal-shadow);
168
+ position:fixed; inset:0; z-index:2147483000; background:var(--modal-shadow);
168
169
  display:flex; align-items:center; justify-content:center; padding:20px;
169
170
  font-family:-apple-system, "PingFang SC", sans-serif; font-size:13px; line-height:1.6; }
170
171
  .dsh-mios-modal-mask.light { --modal-bg:#ffffff; --modal-fg:#1f2430; --modal-muted:#6b7280;
@@ -587,7 +588,13 @@ window.__ModuleLoader__.load({
587
588
  const updBtn = document.createElement('button');
588
589
  updBtn.className = 'dsh-mios-upd';
589
590
  updBtn.textContent = '插件更新';
590
- updBtn.addEventListener('click', () => checkPluginUpdate());
591
+ updBtn.addEventListener('click', () => {
592
+ // 点击务必先有可见反馈再联网,避免「无反应」错觉(缓存旧模块时旧逻辑写已移除的内联元素)。
593
+ try { checkPluginUpdate(); } catch (e) {
594
+ console.error('[dsh-mobile-ios] checkPluginUpdate failed:', e);
595
+ showUpdateModal({ title: '插件更新', lines: [], note: `打开更新检查失败:${e?.message || e}`, actions: [{ label: '知道了', primary: true, onClick: closeUpdateModal }] });
596
+ }
597
+ });
591
598
  const close = document.createElement('button');
592
599
  close.className = 'dsh-mios-close';
593
600
  close.textContent = '✕';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mobile-ios",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "description": "DSH iOS移动伴侣:iPhone/iPad 扫码连接 DSH 桌面端,局域网直连 + Cloudflare Tunnel 固定域名远程两种通道",
6
6
  "main": "entries/plugin.mjs",