Refactor code and comment out unused imports and code blocks

This commit is contained in:
Andras Bacsai 2024-04-03 14:32:23 +02:00
parent 96a0f29f19
commit f33fdb3bfd
4 changed files with 44 additions and 45 deletions

View File

@ -1,6 +1,6 @@
import { createApp } from "vue";
import MagicBar from "./components/MagicBar.vue";
// import { createApp } from "vue";
// import MagicBar from "./components/MagicBar.vue";
const app = createApp({});
app.component("magic-bar", MagicBar);
app.mount("#vue");
// const app = createApp({});
// app.component("magic-bar", MagicBar);
// app.mount("#vue");

View File

@ -1,26 +1,23 @@
<x-layout-simple>
<div class="flex items-center justify-center h-screen">
<div>
<div class="flex flex-col items-center pb-8">
<div class="text-5xl font-bold tracking-tight text-center dark:text-white">Coolify</div>
{{-- <x-version /> --}}
</div>
<div class="w-96">
<section class="bg-gray-50 dark:bg-base" x-data="{ showRecovery: false }">
<div class="flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0">
<a class="flex items-center mb-6 text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
Coolify
</a>
<div class="w-full bg-white shadow md:mt-0 sm:max-w-md xl:p-0 dark:bg-base ">
<div class="p-6 space-y-4 md:space-y-6 sm:p-8">
<form action="/two-factor-challenge" method="POST" class="flex flex-col gap-2">
@csrf
<div>
<x-forms.input autofocus type="number" name="code" label="{{ __('input.code') }}" autofocus />
{{-- <div class="pt-2 text-xs cursor-pointer hover:underline hover:dark:text-white"
x-on:click="showRecovery = !showRecovery">Use
<x-forms.input type="number" name="code" label="{{ __('input.code') }}" autofocus />
<div x-show="!showRecovery"
class="pt-2 text-xs cursor-pointer hover:underline hover:dark:text-white"
x-on:click="showRecovery = !showRecovery">Enter
Recovery Code
</div> --}}
</div>
<div>
</div>
<div x-show="showRecovery" x-cloak>
<x-forms.input name="recovery_code" label="{{ __('input.recovery_code') }}" />
{{-- <div class="pt-2 text-xs cursor-pointer hover:underline hover:dark:text-white"
x-on:click="showRecovery = !showRecovery">Use
One-Time Code
</div> --}}
</div>
<x-forms.button type="submit">{{ __('auth.login') }}</x-forms.button>
</form>
@ -39,4 +36,5 @@
</div>
</div>
</div>
</section>
</x-layout-simple>

View File

@ -1,5 +1,6 @@
@extends('layouts.base')
@section('body')
@livewireScripts
<main class="h-full bg-gray-50 dark:bg-base">
{{ $slot }}
</main>