Refactor code and update UI components

This commit is contained in:
Andras Bacsai
2024-03-22 11:34:15 +01:00
parent ca9a2cb13a
commit 8b7e1e4169
51 changed files with 592 additions and 609 deletions

View File

@@ -8,7 +8,7 @@
<livewire:realtime-connection />
@endauth
@auth
<div x-data="{ open: false }" x-cloak>
<div x-data="{ open: false }" x-cloak class="mx-auto max-w-7xl">
<div class="relative z-50 lg:hidden" :class="open ? 'block' : 'hidden'" role="dialog" aria-modal="true">
<div class="fixed inset-0 bg-black/80"></div>
<div class="fixed inset-0 flex">

View File

@@ -38,9 +38,8 @@
@section('body')
<body>
@livewire('wire-elements-modal')
{{-- @livewire('wire-elements-modal') --}}
<x-toast />
{{-- <x-version class="fixed left-7 bottom-1" /> --}}
<script data-navigate-once>
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia(
'(prefers-color-scheme: dark)').matches)) {
@@ -89,9 +88,11 @@
if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {
if (element.type === 'password') {
element.type = 'text';
element.classList.add('truncate');
this.type = 'text';
} else {
element.type = 'password';
element.classList.remove('truncate');
this.type = 'password';
}
}
@@ -232,10 +233,6 @@
})
}
})
window.Livewire.on('installDocker', () => {
console.log('Installing Docker...');
installDocker.showModal();
})
});
</script>
</body>