parent
8c465e8b7d
commit
42b2390bd7
@ -1,17 +1,17 @@
|
||||
<script>
|
||||
import Scanner from "./Scanner.svelte";
|
||||
import Login from "./Login.svelte";
|
||||
import Settings from "./Settings.svelte";
|
||||
import { apikey, lang, page } from "./store.js";
|
||||
$: is_configured = $apikey && $apikey !== "null" && $apikey !== "";
|
||||
$: settings_open = $page === "settings";
|
||||
console.log($page);
|
||||
import Scanner from "./Scanner.svelte";
|
||||
import Login from "./Login.svelte";
|
||||
import Settings from "./Settings.svelte";
|
||||
import { apikey, lang, page } from "./store.js";
|
||||
$: is_configured = $apikey && $apikey !== "null" && $apikey !== "";
|
||||
$: settings_open = $page === "settings";
|
||||
console.log($page);
|
||||
</script>
|
||||
|
||||
{#if settings_open && is_configured}
|
||||
<Settings />
|
||||
<Settings />
|
||||
{:else if is_configured}
|
||||
<Scanner />
|
||||
<Scanner />
|
||||
{:else}
|
||||
<Login />
|
||||
<Login />
|
||||
{/if}
|
||||
|
@ -25,7 +25,7 @@
|
||||
{hours}:{minutes}:{seconds}
|
||||
</h1>
|
||||
<section class="px-4 py-24 mx-auto max-w-7xl">
|
||||
<div class="w-full mx-auto space-y-5 sm:w-8/12 md:w-12 lg:w-12 xl:w-12">
|
||||
<div class="mx-auto space-y-5 w-full md:w-1/2">
|
||||
<form
|
||||
class="space-y-4"
|
||||
onsubmit="event.preventDefault();"
|
||||
|
Loading…
x
Reference in New Issue
Block a user