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:
@@ -19,12 +19,22 @@ class VNC extends Component
|
||||
|
||||
public function render()
|
||||
{
|
||||
$proxmox = new Proxmox;
|
||||
try {
|
||||
$proxmox = new Proxmox;
|
||||
|
||||
return view('proxmox::vnc', [
|
||||
'vnc' => $proxmox->vnc($this->server),
|
||||
])->layoutData([
|
||||
'sidebar' => true,
|
||||
]);
|
||||
return view('proxmox::vnc', [
|
||||
'vnc' => $proxmox->vnc($this->server),
|
||||
])->layoutData([
|
||||
'sidebar' => true,
|
||||
]);
|
||||
} catch (\Throwable $e) {
|
||||
$this->notify('Failed to connect to VNC console: ' . $e->getMessage(), 'error');
|
||||
|
||||
return view('proxmox::vnc', [
|
||||
'vnc' => null,
|
||||
])->layoutData([
|
||||
'sidebar' => true,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user