Refactor code and update UI components
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user