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

@@ -617,6 +617,19 @@ class CloudInit extends Component
return;
}
$validPrefixes = ['ssh-rsa ', 'ssh-ed25519 ', 'ecdsa-sha2-', 'ssh-dss '];
$hasValidPrefix = false;
foreach ($validPrefixes as $prefix) {
if (str_starts_with($key, $prefix)) {
$hasValidPrefix = true;
break;
}
}
if (!$hasValidPrefix) {
$this->notify('Invalid SSH key format. Key must start with ssh-rsa, ssh-ed25519, ecdsa-sha2, or ssh-dss.', 'error');
return;
}
$this->sshKeys[] = $key;
$this->newSshKey = '';
}
@@ -638,6 +651,11 @@ class CloudInit extends Component
return;
}
if (!filter_var($entry, FILTER_VALIDATE_IP)) {
$this->notify('Please enter a valid IPv4 or IPv6 address.', 'error');
return;
}
$this->dnsServers[] = $entry;
$this->newDnsServer = '';
}