From e618d6d0111557c1044af56b7860d497b7b6cca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 31 Jul 2026 13:33:05 +0400 Subject: [PATCH] =?UTF-8?q?v1.2.10:=20rename=20=D0=92=D0=B5=D1=80=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=BA=E2=86=92=D0=9A=D0=BE=D0=BD=D1=81=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C,=20fix=20logs=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Sidebar: Верстак → 🖥 Консоль - View header: Верстак → Консоль - Log view: show real log content (synced with log panel) - Dark bottom log panel: hidden on all non-log views, left offset 192px (sidebar width) - views.js: switchView handles log view sync --- site/app.py | 2 +- site/static/js/views.js | 13 +++++++++++-- site/templates/index.html | 8 ++++---- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/site/app.py b/site/app.py index 0ec72e0..fd8b154 100644 --- a/site/app.py +++ b/site/app.py @@ -19,7 +19,7 @@ from routes.api_scenario_run import bp_run as api_scenario_run_bp from routes.api_scenario_defs import bp_defs as api_scenario_defs_bp # Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI. -VERSION = "1.2.9" +VERSION = "1.2.10" app = Flask(__name__, template_folder="templates", static_folder="static") app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc") diff --git a/site/static/js/views.js b/site/static/js/views.js index 8f65f6b..e533f91 100644 --- a/site/static/js/views.js +++ b/site/static/js/views.js @@ -15,8 +15,17 @@ function switchView(viewId) { if (viewId === 'scenarios-view' && typeof toggleScenario === 'function') { if (!scenarioOpen) toggleScenario(); } - if (viewId === 'logs-view' && typeof toggleLog === 'function') { + if (viewId === 'logs-view') { + // Показать лог в виде, скрыть нижнюю панель const lp = document.getElementById('log-panel'); - if (lp && lp.style.display === 'none') toggleLog(); + const lvc = document.getElementById('log-view-content'); + if (lp && lvc) { + lvc.innerHTML = lp.innerHTML || 'Логи загружаются...'; + lp.style.display = 'none'; + } + } else { + // Скрыть нижнюю панель на всех видах кроме логов + const lp = document.getElementById('log-panel'); + if (lp) lp.style.display = 'none'; } } diff --git a/site/templates/index.html b/site/templates/index.html index 8995382..24cdf05 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -49,7 +49,7 @@ Nubes