Enhance Proxmox views with improved loading states and UI updates

- Updated serverplaceholder.blade.php to enhance loading skeletons for server details.
- Added navigation breadcrumbs to statistics, subdomain, and system views for better user experience.
- Improved loading indicators for CPU, network, memory, and disk charts in statistics.blade.php.
- Refined storage.blade.php layout with section dividers and improved drive display, including bus type indicators and quota usage.
- Enhanced VNC and Xterm popups with a new header design, loading animations, and reconnect functionality.
- Added error handling for VNC and Xterm connections to inform users when unable to connect.
This commit is contained in:
2026-02-24 19:51:46 -05:00
parent af62a16354
commit 16cd5f05de
40 changed files with 1423 additions and 475 deletions

View File

@@ -1,5 +1,10 @@
<x-proxmox::layout :server="$server" view="system" :status="$status" :status-polling="true" :status-polling-interval="'2s'">
<div class="space-y-6">
<div class="flex items-center gap-1.5 text-xs text-base/50 mb-2">
<a href="{{ route('proxmox.server.overview', ['server' => $server->id]) }}" wire:navigate class="hover:text-primary transition-colors">Overview</a>
<x-ri-arrow-right-s-line class="size-3" />
<span class="text-base/70">System</span>
</div>
<div class="flex flex-col gap-2">
<div class="flex items-center gap-2 min-w-0">
<h2 class="text-xl font-semibold break-words">System Configuration</h2>
@@ -143,7 +148,7 @@
<div class="flex flex-col gap-1.5">
<label class="text-sm font-semibold text-base/80">Machine Type</label>
<select wire:model.live="machineType"
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-secondary">
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/25 focus:border-primary transition-colors">
<option value="">Default (node)</option>
@foreach($suggestedMachines as $machine)
<option value="{{ $machine['value'] }}">{{ $machine['label'] }}</option>
@@ -162,7 +167,7 @@
<div class="flex flex-col gap-1.5">
<label class="text-sm font-semibold text-base/80">BIOS / Firmware</label>
<select wire:model.live="biosType"
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-secondary">
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/25 focus:border-primary transition-colors">
@foreach($availableBiosOptions as $bios)
<option value="{{ $bios['value'] }}">{{ $bios['label'] }}</option>
@endforeach
@@ -173,12 +178,13 @@
<div class="flex flex-col gap-1.5">
<label class="text-sm font-semibold text-base/80">SMBIOS Settings</label>
<textarea wire:model.live="smbiosSettings"
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm min-h-[90px] focus:outline-none focus:ring-2 focus:ring-secondary"
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm min-h-[90px] focus:outline-none focus:ring-2 focus:ring-primary/25 focus:border-primary transition-colors"
placeholder="Example: uuid={{ $server->uuid ?? 'auto' }},manufacturer=Virtnet.bond"></textarea>
<p class="text-xs text-base/50">Provide SMBIOS key/value pairs (comma separated) to expose to the guest.</p>
</div>
<div class="flex flex-col gap-3">
<div class="border-t border-neutral/30 pt-3"></div>
<label class="inline-flex items-start gap-2 text-sm font-medium text-base/70">
<input type="checkbox" wire:model.live="acpiEnabled" class="rounded border-neutral text-secondary focus:ring-secondary mt-0.5">
<div class="flex flex-col gap-0.5">
@@ -274,7 +280,7 @@
<div class="flex flex-col gap-1.5">
<label class="text-sm font-semibold text-base/80">CPU Type</label>
<select wire:model.live="cpuType"
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-secondary">
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/25 focus:border-primary transition-colors">
@foreach($availableCpuTypes as $cpu)
<option value="{{ $cpu['value'] }}">{{ $cpu['label'] }}</option>
@endforeach
@@ -284,6 +290,7 @@
<div class="flex flex-col gap-1.5">
<label class="text-sm font-semibold text-base/80">CPU Flags</label>
<div class="border-t border-neutral/20 pt-3"></div>
<div class="grid gap-2 sm:grid-cols-2">
@foreach($flagOptions as $flag => $label)
<label class="flex items-center gap-2 rounded-md border border-neutral/60 px-3 py-2 text-sm text-base/70">
@@ -310,6 +317,9 @@
</div>
</div>
<!-- Section Divider -->
<div class="border-t border-neutral/20"></div>
<div class="grid gap-6 xl:grid-cols-2">
<div class="bg-background-secondary border border-neutral rounded-lg p-5 space-y-4">
<div class="flex items-center justify-between">
@@ -397,8 +407,12 @@
<p class="text-xs text-base/60 break-all">{{ $definition }}</p>
</div>
@empty
<div class="text-xs text-base/50 border border-dashed border-neutral rounded-md px-3 py-4 text-center">
No EFI disks attached.
<div class="flex flex-col items-center justify-center py-8 text-center">
<div class="flex items-center justify-center w-12 h-12 rounded-2xl bg-base/5 mb-3">
<x-ri-hard-drive-line class="size-6 text-base/20" />
</div>
<h3 class="text-sm font-semibold text-base/70 mb-1">No EFI disks attached</h3>
<p class="text-xs text-base/50 max-w-xs">EFI disks store UEFI firmware variables and Secure Boot keys. Add one if your guest requires UEFI boot.</p>
</div>
@endforelse
</div>
@@ -512,8 +526,12 @@
<p class="text-xs text-base/60 break-all">{{ $definition }}</p>
</div>
@empty
<div class="text-xs text-base/50 border border-dashed border-neutral rounded-md px-3 py-4 text-center">
No TPM devices configured.
<div class="flex flex-col items-center justify-center py-8 text-center">
<div class="flex items-center justify-center w-12 h-12 rounded-2xl bg-base/5 mb-3">
<x-ri-shield-check-line class="size-6 text-base/20" />
</div>
<h3 class="text-sm font-semibold text-base/70 mb-1">No TPM devices configured</h3>
<p class="text-xs text-base/50 max-w-xs">TPM provides hardware-based security for Secure Boot, BitLocker, and other features requiring trusted platform modules.</p>
</div>
@endforelse
</div>
@@ -526,7 +544,7 @@
<div class="flex flex-col gap-1">
<label class="text-xs font-semibold text-base/60">Version</label>
<select wire:model="newTpmVersion"
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-secondary">
class="bg-background border border-neutral rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/25 focus:border-primary transition-colors">
<option value="v1.2">v1.2</option>
<option value="v2.0">v2.0</option>
</select>