chore(proxmox): remove Statistics page, Livewire component, and related UI

Made-with: Cursor
This commit is contained in:
2026-03-28 12:15:24 -04:00
parent 85783f8047
commit 5b61b75729
17 changed files with 6 additions and 13393 deletions

View File

@@ -188,12 +188,6 @@
$memoryTotal = (int)($status?->maxmem ?? 0);
$memoryUsed = (int)($status?->mem ?? 0);
$memoryPercent = $memoryTotal > 0 ? round(($memoryUsed / $memoryTotal) * 100, 1) : 0;
$manualSnapshotLimit = 5;
$manualSnapshotUsed = $server->statistics()->where('is_automatic', false)->count();
$manualSnapshotPercent = $manualSnapshotLimit > 0
? round(($manualSnapshotUsed / $manualSnapshotLimit) * 100, 1)
: 0;
$badgeForPercent = function (float $value) {
if ($value >= 100) {
return ['label' => 'Over entitlement', 'class' => 'text-danger bg-danger/15'];