diff --git a/.memory/worklog.json b/.memory/worklog.json index b86748d..4806a3b 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -433,6 +433,13 @@ "message": "auto-save 2026-04-20 00:20 (~2)", "hash": "01b09bc", "files_changed": 2 + }, + { + "ts": "2026-04-20T00:26:03+08:00", + "type": "commit", + "message": "auto-save 2026-04-20 00:25 (~1)", + "hash": "7a6935b", + "files_changed": 1 } ] } diff --git a/orchestrator/src/admin-ui.ts b/orchestrator/src/admin-ui.ts index 4567754..5ee55dc 100644 --- a/orchestrator/src/admin-ui.ts +++ b/orchestrator/src/admin-ui.ts @@ -1,5 +1,5 @@ -// Manus-style 沙箱管理 UI(两张页面:Dashboard + Per-user view) -// 全部内嵌,靠 Alpine.js + Tailwind CDN,零构建。 +// Manus-style 沙箱管理 UI(两张页面:Dashboard + Per-user terminal view) +// 全部内嵌,靠 Alpine.js + Tailwind CDN + xterm.js,零构建。 export const DASHBOARD_HTML = String.raw` @@ -21,33 +21,25 @@ export const DASHBOARD_HTML = String.raw`
-

🏜 Lobe Sandbox 管理台

-

+

Lobe Sandbox

+

- +
-
-
- 还没有沙箱容器 -
+
还没有沙箱
@@ -63,13 +55,6 @@ function dashboard() { const { users } = await r.json(); this.users = users; }, - fmtBytes(n) { - if (!n) return '—'; - if (n > 1e9) return (n / 1e9).toFixed(1) + 'G'; - if (n > 1e6) return (n / 1e6).toFixed(1) + 'M'; - if (n > 1e3) return (n / 1e3).toFixed(1) + 'K'; - return n + 'B'; - } } } @@ -80,365 +65,246 @@ export const USER_VIEW_HTML = String.raw` -Lobe Sandbox · Terminal - - +sandbox - - - -
-
- ← 全局 - / - - + +
+
⬤ offline
+ +
+
- - -
- - -
-
- 📟 sandbox@:~$ -
- ● READ-ONLY(只看不能敲,操作交给 AI) - ● live - ○ 离线 - -
-
-
-
- - - -
- - -
-
-
- -
- - -
-
-
- - - - -
-
-
+
+ `;