Refactor code and update UI components
This commit is contained in:
@@ -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