Enhance layout and components with improved accessibility and performance

- Refactor JavaScript functions to prevent duplicate initializations on navigation
- Add skeleton loaders for invoices and services during loading states
- Introduce a new progress bar component with customizable properties
- Update dropdown and checkbox components for better styling and accessibility
- Improve modal and navigation components with enhanced animations and structure
This commit is contained in:
2026-02-01 12:31:43 -05:00
parent 10c978eae9
commit f7766b6d67
14 changed files with 470 additions and 172 deletions

View File

@@ -1024,13 +1024,17 @@
</div>
@endif
<script>
document.addEventListener('livewire:initialized', () => {
Livewire.on('refresh-page', () => {
setTimeout(() => {
window.location.reload();
}, 500);
<script data-navigate-track>
// Use event delegation to avoid duplicate listeners
if (!window.__storageRefreshListenerAdded) {
window.__storageRefreshListenerAdded = true;
document.addEventListener('livewire:initialized', () => {
Livewire.on('refresh-page', () => {
setTimeout(() => {
window.location.reload();
}, 500);
});
});
});
}
</script>
</x-proxmox::layout>