Refactor Proxmox components: optimize data fetching in Server and Overview; enhance macro handling in Firewall; improve task data refresh logic in Statistics and views

This commit is contained in:
2026-03-14 11:44:46 -04:00
parent a8b6e5cfba
commit 91cdaf2a6b
7 changed files with 116 additions and 72 deletions

View File

@@ -76,7 +76,8 @@
</button>
<!-- Modal -->
<div x-show="show" x-cloak @click.self="closeModal()" @keydown.escape.window="closeModal()" class="fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm">
<template x-if="show">
<div @click.self="closeModal()" @keydown.escape.window="closeModal()" class="fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm">
<div class="bg-background-secondary rounded-xl shadow-2xl p-6 w-full max-w-md relative">
<button @click="closeModal()" class="absolute top-3 right-3 text-base/50 hover:text-base transition-colors">
<x-ri-close-line class="size-5" />
@@ -1177,6 +1178,7 @@
</template>
</div>
</div>
</template>
<script>
function serverIconModal({serverId, initialIcon, initialColor, initialPrefix}) {