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

@@ -310,6 +310,22 @@ class System extends Component
public function saveSystemSettings(): void
{
// Validate biosType against allowed options
$allowedBios = array_column($this->availableBiosOptions, 'value');
if ($this->biosType !== '' && !in_array($this->biosType, $allowedBios, true)) {
$this->notify('Invalid BIOS type selected.', 'error');
return;
}
// Validate cpuType against allowed options
if ($this->cpuType !== '') {
$allowedCpuTypes = array_column($this->availableCpuTypes, 'value');
if (!empty($allowedCpuTypes) && !in_array($this->cpuType, $allowedCpuTypes, true)) {
$this->notify('Invalid CPU type selected.', 'error');
return;
}
}
$flags = $this->formatFlagsForSave($this->selectedCpuFlags);
$resolvedCpu = $this->cpuType !== '' ? $this->cpuType : null;
@@ -616,6 +632,13 @@ class System extends Component
return;
}
// Validate TPM version against allowed values
$allowedVersions = ['v1.2', 'v2.0'];
if (!in_array($version, $allowedVersions, true)) {
$this->notify('Invalid TPM version. Must be v1.2 or v2.0.', 'error');
return;
}
$volumeName = 'vm-' . $this->server->vm_id . '-tpm';
try {