feat: Update Proxmox extension with various improvements and bug fixes
- Change listStates method to accept nullable integer for limit parameter. - Modify TechnitiumDns class to return structured error messages on failure. - Enhance VNC and xterm popup routes with user authorization checks. - Update backups view to improve loading states and add unique keys for dynamic elements. - Refactor cloud-init view to ensure proper data binding and improve user experience. - Add wire:key attributes to various elements in views for better Livewire performance. - Improve error handling and user feedback in the firewall view. - Update server overview and statistics views to handle potential null values gracefully. - Add new migration files to extend database schema with user-set icons and notes for Proxmox nodes.
This commit is contained in:
@@ -55,7 +55,7 @@ class Server extends Component
|
||||
public function getBandwidthThreshold95Property()
|
||||
{
|
||||
// Cache for 15 minutes to avoid recalculating for every server
|
||||
return Cache::remember('bandwidth_threshold_95_' . Carbon::now()->format('Y-m'), 15, function () {
|
||||
return Cache::remember('bandwidth_threshold_95_' . Carbon::now()->format('Y-m'), 900, function () {
|
||||
$startOfMonth = Carbon::now()->startOfMonth();
|
||||
|
||||
// Get all servers
|
||||
@@ -125,7 +125,7 @@ class Server extends Component
|
||||
$proxmox = new \Paymenter\Extensions\Servers\Proxmox\Proxmox;
|
||||
|
||||
// Get current VM config
|
||||
$config = $proxmox->request('/nodes/' . $this->server->node->name . '/qemu/' . $this->server->vm_id . '/config')->json()['data'];
|
||||
$config = $proxmox->request('/nodes/' . $this->server->node->name . '/qemu/' . $this->server->vm_id . '/config')->json()['data'] ?? [];
|
||||
|
||||
$updates = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user