diff --git a/script-api.py b/script-api.py index 854db9f..41dbcb6 100755 --- a/script-api.py +++ b/script-api.py @@ -1303,20 +1303,15 @@ def render_index(): cards = [] - - for command_id, command in CONFIG["commands"].items(): - if not command.get( "web_enabled", False ): - continue - title = html.escape( command.get( "web_title", @@ -1325,7 +1320,6 @@ def render_index(): ) - description = html.escape( command.get( "description", @@ -1334,146 +1328,69 @@ def render_index(): ) - cards.append( f""" +
No commands configured.
" + """ +- -Back - -
- - -| OK | --{html.escape(str(result.get("ok")))} - | -
|---|---|
| Exit Code | --{html.escape(str(result.get("exit_code")))} - | -
| Duration | --{html.escape(str(result.get("duration_ms")))} -ms - | -
| Request ID | --{html.escape(str(result.get("request_id")))} - | -
-{html.escape(result.get("stdout",""))}
-
-
-
-
-
-{html.escape(result.get("stderr",""))}
-
-
+ +
+ """
+