修改web服务器指标卡片

This commit is contained in:
Alex Yang
2025-12-03 09:04:48 +08:00
parent c8cdd09455
commit dd01058b32
2 changed files with 172 additions and 104 deletions

View File

@@ -203,6 +203,7 @@
<div>
<p class="text-sm text-gray-500 font-medium mb-1">CPU 使用率</p>
<h3 id="cpuValue" class="text-3xl font-bold text-gray-900 metric-value">0.0%</h3>
<p id="cpuDetails" class="text-xs text-gray-500 mt-1">0.00 GHz | 负载: 0.00</p>
</div>
<div class="bg-blue-100 p-3 rounded-full">
<i class="fa fa-microchip text-blue-600 text-xl"></i>
@@ -216,6 +217,7 @@
<div>
<p class="text-sm text-gray-500 font-medium mb-1">内存使用率</p>
<h3 id="memoryValue" class="text-3xl font-bold text-gray-900 metric-value">0.0%</h3>
<p id="memoryDetails" class="text-xs text-gray-500 mt-1">0 MB / 0 MB</p>
</div>
<div class="bg-green-100 p-3 rounded-full">
<i class="fa fa-memory text-green-600 text-xl"></i>
@@ -229,6 +231,7 @@
<div>
<p class="text-sm text-gray-500 font-medium mb-1">磁盘使用率</p>
<h3 id="diskValue" class="text-3xl font-bold text-gray-900 metric-value">0.0%</h3>
<p id="diskDetails" class="text-xs text-gray-500 mt-1">0 MB / 0 MB</p>
</div>
<div class="bg-yellow-100 p-3 rounded-full">
<i class="fa fa-hdd text-yellow-600 text-xl"></i>
@@ -241,7 +244,8 @@
<div class="flex justify-between items-start">
<div>
<p class="text-sm text-gray-500 font-medium mb-1">网络流量</p>
<h3 id="networkValue" class="text-3xl font-bold text-gray-900 metric-value">0.0 MB/s</h3>
<h3 id="networkValue" class="text-3xl font-bold text-gray-900 metric-value">0.0</h3>
<p id="networkDetails" class="text-xs text-gray-500 mt-1">接收: 0 MB/s | 发送: 0 MB/s<br>总量: 接收 0 MB | 发送 0 MB</p>
</div>
<div class="bg-purple-100 p-3 rounded-full">
<i class="fa fa-exchange-alt text-purple-600 text-xl"></i>