dsh-project-deck 0.1.6 → 0.1.7

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.
@@ -184,20 +184,20 @@
184
184
  <div class="hint" id="imgHint" style="margin-top:6px"></div>
185
185
  </div>
186
186
 
187
- <div class="controls" id="wxBox" style="padding:10px 12px">
188
- <span class="pill" style="margin:0"><i class="dot" id="wxDot"></i><b id="wxTitle">通知渠道</b></span>
189
- <select id="wxType" onchange="onWxTypeChange()" style="font-size:12px;padding:5px 8px">
187
+ <div class="controls" id="wxBox" style="padding:5px 10px;gap:8px;min-height:0">
188
+ <i class="dot" id="wxDot"></i><b id="wxTitle" style="font-size:12px;color:var(--muted);font-weight:600">通知</b>
189
+ <select id="wxType" onchange="onWxTypeChange()" style="font-size:12px;padding:3px 6px;height:26px">
190
190
  <option value="ilink">内置微信(扫码)</option>
191
191
  <option value="wxpush">wxpush 网关</option>
192
192
  <option value="serverchan">ServerChan</option>
193
193
  <option value="webhook">Webhook</option>
194
194
  <option value="command">自定义命令</option>
195
195
  </select>
196
- <input id="wxField" placeholder="" style="flex:1;min-width:160px;display:none">
197
- <button class="ghost" id="wxSaveBtn" onclick="saveWx()" style="display:none">保存</button>
198
- <span class="hint" id="wxDetail"></span>
199
- <button class="ghost" id="wxLoginBtn" onclick="wxLogin()" style="display:none">连接微信</button>
200
- <button class="ghost" id="wxLogoutBtn" onclick="wxLogout()" style="display:none">断开</button>
196
+ <input id="wxField" placeholder="" style="flex:1;min-width:120px;height:26px;padding:3px 8px;font-size:12px;display:none">
197
+ <button class="ghost" id="wxSaveBtn" onclick="saveWx()" style="display:none;padding:3px 10px;font-size:12px">保存</button>
198
+ <span class="hint" id="wxDetail" style="flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11.5px"></span>
199
+ <button class="ghost" id="wxLoginBtn" onclick="wxLogin()" style="display:none;padding:3px 10px;font-size:12px">连接微信</button>
200
+ <button class="ghost" id="wxLogoutBtn" onclick="wxLogout()" style="display:none;padding:3px 10px;font-size:12px">断开</button>
201
201
  </div>
202
202
  <div id="wxQrWrap" style="display:none;margin:-6px 0 18px;display:none">
203
203
  <div style="display:flex;gap:14px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px">
@@ -933,6 +933,13 @@ async function loadImages(){
933
933
  }catch(e){ /* 忽略 */ }
934
934
  }
935
935
 
936
+ document.addEventListener('keydown', (e) => {
937
+ if (e.key !== 'Escape') return;
938
+ if (window.parent && window.parent !== window) {
939
+ window.parent.postMessage({ type: 'deck:close' }, '*');
940
+ }
941
+ });
942
+
936
943
  async function refresh(){
937
944
  try{
938
945
  const r = await fetch('/api/state'); S = await r.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-project-deck",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "DeepSeek Harness plugin: a project deck for your repos — registry, dashboard, scheduled WeChat reports, auto-discovery, multi-node scanning.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",