From 0f9e7aa17fcef389e6b19d2a26a2e98ae795a956 Mon Sep 17 00:00:00 2001 From: Yukino Song Date: Thu, 5 Jun 2025 19:43:14 +0800 Subject: [PATCH] WebUI: Support starting apps from local client --- src/confighttp.cpp | 2 ++ src_assets/common/assets/web/apps.html | 23 ++++++++++++++++--- src_assets/common/assets/web/pin.html | 6 ++--- .../assets/web/public/assets/locale/en.json | 1 + .../assets/web/public/assets/locale/zh.json | 1 + 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/confighttp.cpp b/src/confighttp.cpp index 00aedf69..e6722b43 100644 --- a/src/confighttp.cpp +++ b/src/confighttp.cpp @@ -541,6 +541,8 @@ namespace confighttp { nlohmann::json file_tree = nlohmann::json::parse(content); file_tree["current_app"] = proc::proc.get_running_app_uuid(); + file_tree["host_uuid"] = http::unique_id; + file_tree["host_name"] = config::nvhttp.sunshine_name; send_response(response, file_tree); } catch (std::exception &e) { diff --git a/src_assets/common/assets/web/apps.html b/src_assets/common/assets/web/apps.html index b65945a7..d6ec527c 100644 --- a/src_assets/common/assets/web/apps.html +++ b/src_assets/common/assets/web/apps.html @@ -68,6 +68,10 @@ vertical-align: top; } + .actions-col { + min-width: 150px; + } + .pre-wrap { white-space: pre-wrap; } @@ -91,7 +95,7 @@ {{ $t('apps.name') }} - {{ $t('apps.actions') }} + {{ $t('apps.actions') }} @@ -109,10 +113,10 @@ > {{app.name || ' '}} - -