feat: add monthly traffic calculation to Proxmox server component and update view to display traffic usage for improved monitoring
This commit is contained in:
@@ -9,18 +9,28 @@
|
||||
</div>
|
||||
<span class="font-medium">{{ $status->name }}</span>
|
||||
</div>
|
||||
<div
|
||||
class="size-5 rounded-md p-0.5
|
||||
@if($status->status == 'running') text-success bg-success/20
|
||||
@elseif($status->status == 'stopped') text-inactive bg-inactive/20
|
||||
@else text-warning bg-warning/20 @endif">
|
||||
@if($status->status == 'running')
|
||||
<x-ri-checkbox-circle-fill />
|
||||
@elseif($status->status == 'stopped')
|
||||
<x-ri-forbid-fill />
|
||||
@else
|
||||
<x-ri-error-warning-fill />
|
||||
@endif
|
||||
<div class="flex items-center gap-2 px-3 py-1.5 rounded-lg
|
||||
@if($status->status == 'running') text-success bg-success/20
|
||||
@elseif($status->status == 'stopped') text-inactive bg-inactive/20
|
||||
@else text-warning bg-warning/20 @endif">
|
||||
<div class="size-5">
|
||||
@if($status->status == 'running')
|
||||
<x-ri-checkbox-circle-fill />
|
||||
@elseif($status->status == 'stopped')
|
||||
<x-ri-forbid-fill />
|
||||
@else
|
||||
<x-ri-error-warning-fill />
|
||||
@endif
|
||||
</div>
|
||||
<span class="text-sm font-medium">
|
||||
@if($status->status == 'running')
|
||||
Running
|
||||
@elseif($status->status == 'stopped')
|
||||
Stopped
|
||||
@else
|
||||
{{ ucfirst($status->status) }}
|
||||
@endif
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -109,7 +119,8 @@
|
||||
<x-ri-speed-line class="size-4 text-base/50" />
|
||||
<span class="text-xs text-base/50">Bandwidth</span>
|
||||
</div>
|
||||
<span class="text-base text-xs leading-relaxed">
|
||||
<span class="text-base font-medium">{{ $this->monthlyTraffic }} GiB this month</span>
|
||||
<span class="text-base text-xs leading-relaxed text-base/60 mt-1">
|
||||
Connection reduced to 1 MiB/s if account's data usage exceeds network's 95% threshold.
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user