dsh-screen-beyond 0.5.9 → 0.5.10
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/README.md +1 -1
- package/package.json +1 -1
- package/runtime/server.mjs +1 -1
- package/runtime/settings.html +2 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/runtime/server.mjs
CHANGED
|
@@ -1328,7 +1328,7 @@ async function resolveWindowId(label) {
|
|
|
1328
1328
|
hit = wins.find((w) => String(w.title || '').toLowerCase().includes(s) || String(w.window_key).toLowerCase().includes(s) || String(w.hwnd) === s) || wins[0];
|
|
1329
1329
|
}
|
|
1330
1330
|
if (hit.window_id) return hit.window_id;
|
|
1331
|
-
const b = await kernelCall('/windows/bind', { hwnd: hit.hwnd
|
|
1331
|
+
const b = await kernelCall('/windows/bind', { hwnd: hit.hwnd });
|
|
1332
1332
|
return (b && (b.window_id || (b.window && b.window.window_id))) || null;
|
|
1333
1333
|
}
|
|
1334
1334
|
function runShell(command, timeoutMs = 120000) {
|
package/runtime/settings.html
CHANGED
|
@@ -85,7 +85,7 @@ input[type=range]{flex:1;accent-color:#2563eb}
|
|
|
85
85
|
<a href="#data" data-tab="data"><span>💾</span>数据</a>
|
|
86
86
|
<a href="#tutorial" data-tab="tutorial"><span>📖</span>教程</a>
|
|
87
87
|
</nav>
|
|
88
|
-
<div class="sidefoot">v0.5.
|
|
88
|
+
<div class="sidefoot">v0.5.10 · <span id="sideMode">…</span><br><a href="/screen" target="_blank" style="color:#3b82f6;text-decoration:none;margin-right:10px">看屏幕</a><a href="/" style="color:#3b82f6;text-decoration:none">回到聊天</a></div>
|
|
89
89
|
</aside>
|
|
90
90
|
|
|
91
91
|
<div class="main">
|
|
@@ -960,7 +960,7 @@ async function renderData(){
|
|
|
960
960
|
+ '</div>'
|
|
961
961
|
+ '<div class="card"><h2>备份</h2><div class="small">导出把数据目录打包成 zip;导入覆盖恢复。系统每天凌晨 4 点后会自动备份一次。</div>'
|
|
962
962
|
+ '<div class="row"><button class="btn primary" onclick="doBackup()">立即备份</button><span class="hint" style="flex:1;margin-left:8px">备份到数据目录下的 backups</span></div><button class="btn ghost" style="margin-top:8px">导出备份</button></div>'
|
|
963
|
-
+ '</div><div class="col side2"><div class="card"><h2>版本</h2><div class="small">v0.5.
|
|
963
|
+
+ '</div><div class="col side2"><div class="card"><h2>版本</h2><div class="small">v0.5.10 · 本地运行时</div></div></div></div>';
|
|
964
964
|
}
|
|
965
965
|
|
|
966
966
|
// ================= router =================
|