From 29e0618b9f727f1b318aa5c2baf05a50cf03dde7 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Fri, 6 Feb 2026 18:18:59 +0300 Subject: [PATCH] Update Web UI: Add server management scripts and improve UX UI improvements: - Add icon-based Execute/Edit/Delete buttons for scripts and callbacks - Add execution result dialog with stdout/stderr and execution time - Add favicon with media player icon - Disable background scrolling when dialogs are open - Add footer with author information and source code link Backend enhancements: - Add execution time tracking to script and callback execution - Add /api/callbacks/execute endpoint for debugging callbacks - Return detailed execution results (stdout, stderr, exit_code, execution_time) Server management: - Add scripts/start-server.bat - Start server with console window - Add scripts/start-server-background.vbs - Start server silently - Add scripts/stop-server.bat - Stop running server instances - Add scripts/restart-server.bat - Restart the server Co-Authored-By: Claude Sonnet 4.5 --- media_server/static/index.html | 51 +++++++++++++++++++++++++++++ scripts/restart-server.bat | 24 ++++++++++++++ scripts/start-server-background.vbs | 7 ++++ scripts/start-server.bat | 15 +++++++++ scripts/stop-server.bat | 19 +++++++++++ 5 files changed, 116 insertions(+) create mode 100644 scripts/restart-server.bat create mode 100644 scripts/start-server-background.vbs create mode 100644 scripts/start-server.bat create mode 100644 scripts/stop-server.bat diff --git a/media_server/static/index.html b/media_server/static/index.html index f26f526..b325a01 100644 --- a/media_server/static/index.html +++ b/media_server/static/index.html @@ -55,6 +55,11 @@ opacity: 1; } + /* Prevent scrolling when dialog is open */ + body.dialog-open { + overflow: hidden; + } + .container { max-width: 800px; margin: 0 auto; @@ -883,6 +888,32 @@ font-size: 1.5rem; } } + + /* Footer */ + footer { + text-align: center; + padding: 2rem 1rem; + margin-top: 3rem; + border-top: 1px solid var(--border); + color: var(--text-secondary); + font-size: 0.875rem; + } + + footer a { + color: var(--accent); + text-decoration: none; + transition: color 0.2s; + } + + footer a:hover { + color: var(--accent-hover); + text-decoration: underline; + } + + footer .separator { + margin: 0 0.5rem; + color: var(--text-muted); + } @@ -1171,6 +1202,17 @@
+ + +