From f17324658144e07f738297820c90d5bb85cf561c Mon Sep 17 00:00:00 2001 From: Jakub Dorfman Date: Wed, 29 Apr 2026 18:53:02 +0200 Subject: [PATCH] feat: add repo_url to app data and update frontend to conditionally display Git Pull button Co-authored-by: Copilot --- frontend/index.html | 2 +- panel-api.py | 1 + panelctl.sh | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 42dd781..8e75917 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -535,7 +535,7 @@ function renderAppCard(app) { - + ${app.repo_url ? `` : ""} diff --git a/panel-api.py b/panel-api.py index 0aa7847..8297462 100644 --- a/panel-api.py +++ b/panel-api.py @@ -220,6 +220,7 @@ class Handler(BaseHTTPRequestHandler): "domains": fields[1], "upstream": fields[2], "auth": fields[3].replace("auth=", ""), + "repo_url": fields[4] if len(fields) >= 5 else "", }) self._json(200, {"ok": True, "apps": apps}) return diff --git a/panelctl.sh b/panelctl.sh index cda8969..43d246b 100644 --- a/panelctl.sh +++ b/panelctl.sh @@ -601,7 +601,8 @@ cmd_list() { # shellcheck disable=SC1090 source "${mf}" local domains="${APP_DOMAINS:-${APP_DOMAIN}}" - echo "${APP_NAME} ${domains} ${APP_UPSTREAM} auth=${APP_AUTH_PROTECTED}" + local repo_info="${APP_REPO_URL:-}" + echo "${APP_NAME} ${domains} ${APP_UPSTREAM} auth=${APP_AUTH_PROTECTED} ${repo_info}" done if [[ "${found}" -eq 0 ]]; then