From f3ddb65fcda0b03590ad304dc747f15038f6bad7 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Mon, 13 Apr 2026 13:23:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20doughnut=20=D0=B3=D1=80=D0=B0=D1=84?= =?UTF-8?q?=D0=B8=D0=BA=D0=B8=20=D1=80=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=B4=D0=B8=D1=81=D0=BA=D0=BE=D0=B2,=20timezone=20fix?= =?UTF-8?q?,=20crosshair=20removal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавлены doughnut графики для disk_used_root/home/boot/mnt_data - Удалён общий disk_used line chart (заменён doughnut) - Исключён crosshair плагин (конфликт с Chart.js) - Установлена timezone Asia/Irkutsk (+8) для корректных запросов - cmdline в тултипах процессов Co-authored-by: Qwen-Coder --- public/index.php | 1 + templates/servers/detail.twig | 93 ++++++++++++++++++++++++++++------- 2 files changed, 75 insertions(+), 19 deletions(-) diff --git a/public/index.php b/public/index.php index 507980c..42fc4e6 100755 --- a/public/index.php +++ b/public/index.php @@ -1,5 +1,6 @@ + + +
+ {% for metricName, metricData in metrics %} + {% if metricName starts with 'disk_used_' and metricName != 'disk_used' %} +
+
+
+
+ {% if metricName == 'disk_used_root' %}/ (корень) + {% elseif metricName == 'disk_used_home' %}/home + {% elseif metricName == 'disk_used_boot' %}/boot + {% elseif metricName == 'disk_used_mnt_data' %}/mnt/data + {% else %}{{ metricName|replace({'disk_used_': '', '_': ' '})|title }} + {% endif %} +
+

{{ metricData[0].value }}{{ metricData[0].unit|default('%') }}

+

{{ metricData[0].created_at|date('d.m.Y H:i') }}

+
+
+
+
+ {% endif %} + {% endfor %} +
+
{% for metricName, metricData in metrics %} - {% if metricName!="top_cpu_proc" and metricName!="top_ram_proc" %} + {% if metricName!="top_cpu_proc" and metricName!="top_ram_proc" and not (metricName starts with "disk_used_") and metricName != "disk_used" %}
@@ -398,7 +424,6 @@ -