feat(auth): create registration route and integrate with AuthService feat(auth): implement user registration logic in AuthService with Keycloak integration fix(config): add Keycloak admin credentials to settings fix(middleware): update tenant middleware to include new auth routes chore(docs): remove outdated testing guide and add project architecture documentation feat(frontend): implement user registration page and integrate with API feat(frontend): create login page with tenant selection and error handling refactor(frontend): update layout to use custom auth store and improve loading states
31 lines
834 B
Svelte
31 lines
834 B
Svelte
<script lang="ts">
|
|
import { onMount } from 'svelte';
|
|
import { initAuth, authStore as customAuthStore } from '$lib/auth';
|
|
import '../app.css';
|
|
import favicon from '$lib/assets/favicon.svg';
|
|
|
|
let { children } = $props();
|
|
let initialized = $state(false);
|
|
|
|
onMount(async () => {
|
|
// Usar auth-custom que es instantáneo (sin peticiones de red)
|
|
await initAuth();
|
|
initialized = true;
|
|
});
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<link rel="icon" href={favicon} />
|
|
</svelte:head>
|
|
|
|
{#if initialized}
|
|
{@render children?.()}
|
|
{:else}
|
|
<div class="flex min-h-screen items-center justify-center bg-gray-50">
|
|
<div class="text-center">
|
|
<div class="mb-4 inline-block h-12 w-12 animate-spin rounded-full border-4 border-solid border-blue-600 border-r-transparent"></div>
|
|
<p class="text-gray-600">Cargando Anexo76...</p>
|
|
</div>
|
|
</div>
|
|
{/if}
|