Google auth done
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { initGoogleClient } from '$lib/google';
|
||||
import '../app.css';
|
||||
|
||||
let { children } = $props();
|
||||
|
||||
onMount(() => {
|
||||
initGoogleClient(() => {
|
||||
// You can add any logic here to run after the client is initialized
|
||||
console.log('Google API client initialized');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{@render children()}
|
||||
|
||||
@@ -1,2 +1,11 @@
|
||||
<h1>Welcome to SvelteKit</h1>
|
||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
||||
<script lang="ts">
|
||||
import Splash from '$lib/components/Splash.svelte';
|
||||
import Wizard from '$lib/components/Wizard.svelte';
|
||||
import { currentStep } from '$lib/stores';
|
||||
</script>
|
||||
|
||||
{#if $currentStep === 0}
|
||||
<Splash />
|
||||
{:else}
|
||||
<Wizard />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user