chore(proxmox): remove Statistics page, Livewire component, and related UI
Made-with: Cursor
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
<div class="flex flex-col flex-1" x-data="{
|
||||
isAdvancedView: localStorage.getItem('proxmox-view-mode') === 'advanced',
|
||||
isAdvancedOnlyView: {{ in_array($view, ['boot-order', 'cloud-init', 'display', 'system', 'storage', 'subdomain', 'statistics', 'help', 'firewall']) ? 'true' : 'false' }},
|
||||
isAdvancedOnlyView: {{ in_array($view, ['boot-order', 'cloud-init', 'display', 'system', 'storage', 'subdomain', 'help', 'firewall']) ? 'true' : 'false' }},
|
||||
toggleView() {
|
||||
if (!this.isAdvancedOnlyView) {
|
||||
this.isAdvancedView = !this.isAdvancedView;
|
||||
@@ -33,7 +33,7 @@
|
||||
isAdvancedView = false;
|
||||
}">
|
||||
@php
|
||||
$advancedOnlyViews = ['boot-order', 'cloud-init', 'display', 'system', 'subdomain', 'statistics', 'help', 'firewall'];
|
||||
$advancedOnlyViews = ['boot-order', 'cloud-init', 'display', 'system', 'storage', 'subdomain', 'help', 'firewall'];
|
||||
$isAdvancedOnlyView = in_array($view, $advancedOnlyViews);
|
||||
@endphp
|
||||
|
||||
@@ -1575,29 +1575,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($view !== 'statistics')
|
||||
<!-- Preload Statistics tab content when entering the server page -->
|
||||
<div
|
||||
x-init="
|
||||
if (window.fetch) {
|
||||
setTimeout(function () {
|
||||
try {
|
||||
fetch('{{ route('proxmox.server.statistics', ['server' => $server->id]) }}', {
|
||||
credentials: 'same-origin',
|
||||
headers: { 'X-Proxmox-Preload': 'true' },
|
||||
});
|
||||
} catch (e) {}
|
||||
}, 500);
|
||||
}
|
||||
"
|
||||
class="hidden"
|
||||
></div>
|
||||
@endif
|
||||
|
||||
@php
|
||||
$tabs = [
|
||||
['label' => 'Overview', 'view' => 'overview', 'route' => route('proxmox.server.overview', ['server' => $server->id])],
|
||||
['label' => 'Statistics', 'view' => 'statistics', 'route' => route('proxmox.server.statistics', ['server' => $server->id]), 'advanced' => true],
|
||||
[
|
||||
'label' => 'Hardware',
|
||||
'dropdown' => true,
|
||||
@@ -2148,7 +2128,7 @@
|
||||
<div class="lg:hidden" x-data="{
|
||||
open: false,
|
||||
isAdvancedView: localStorage.getItem('proxmox-view-mode') === 'advanced',
|
||||
isAdvancedOnlyView: {{ in_array($view, ['boot-order', 'cloud-init', 'display', 'system', 'storage', 'subdomain', 'statistics', 'help', 'firewall']) ? 'true' : 'false' }},
|
||||
isAdvancedOnlyView: {{ in_array($view, ['boot-order', 'cloud-init', 'display', 'system', 'storage', 'subdomain', 'help', 'firewall']) ? 'true' : 'false' }},
|
||||
toggleView() {
|
||||
if (!this.isAdvancedOnlyView) {
|
||||
this.isAdvancedView = !this.isAdvancedView;
|
||||
@@ -2418,7 +2398,7 @@
|
||||
<div class="flex-1 flex flex-col"
|
||||
x-data="{
|
||||
showHostnameEditModal: false, showPasswordViewModal: false, showPasswordEditModal: false,
|
||||
showExportErrorModal: false, showExportInfoModal: false, showClearStatisticsModal: false,
|
||||
showExportErrorModal: false,
|
||||
showAddDnsModal: false, showAddKeyModal: false, showCiUserModal: false,
|
||||
showDnsDomainModal: false, showKeyModal: false, showNetworkModal: false,
|
||||
copied: false, copyText: '', isCollapsed: false, loading: false, expanded: false,
|
||||
|
||||
Reference in New Issue
Block a user