mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 15:31:21 +00:00
refactor: script.js loading in app.html and add debugForms configuration
This commit is contained in:
parent
e4f52d4673
commit
fa3f5ed54b
3 changed files with 8 additions and 3 deletions
|
@ -12,7 +12,11 @@
|
|||
<meta name="msapplication-TileColor" content="#222222" />
|
||||
<meta name="theme-color" content="#222222" />
|
||||
%sveltekit.head%
|
||||
<script defer data-domain="omnidash.io" src="https://%sveltekit.env.PUBLIC_PLAUSIBLE_DOMAIN%/js/script.js"></script>
|
||||
<script
|
||||
defer
|
||||
data-domain="omnidash.io"
|
||||
src="https://%sveltekit.env.PUBLIC_PLAUSIBLE_DOMAIN%/js/script.js"
|
||||
></script>
|
||||
</head>
|
||||
<body
|
||||
data-sveltekit-preload-data="hover"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
import { browser, dev } from '$app/environment';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { Icons } from '$lib/components/site';
|
||||
import { debugForms } from '$lib/config/site';
|
||||
|
||||
export let data: SuperValidated<Infer<PasswordFormSchema>>;
|
||||
let isLoading = false;
|
||||
|
@ -82,7 +83,7 @@
|
|||
</Form.Button>
|
||||
</form>
|
||||
|
||||
{#if dev && PUBLIC_DEBUG_FORMS == 'true' && browser}
|
||||
{#if dev && debugForms && browser}
|
||||
<div class="pt-4">
|
||||
<SuperDebug data={$formData} />
|
||||
</div>
|
||||
|
|
|
@ -7,4 +7,4 @@ export async function GET() {
|
|||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue