- Add Superforms + Zod 4 for all admin form validation - Replace address isDefault with three separate boolean defaults (Mailing, Billing, Shipping) - Update profiles page with three-checkbox address form and toast improvements - Convert all admin page server actions to pass request directly to crud - Export superFormErrorsToFieldErrors helper for profiles server actions - Regenerate Prisma client for new schema fields
17 lines
415 B
Svelte
17 lines
415 B
Svelte
<script lang="ts">
|
|
import { page } from '$app/stores';
|
|
import Window from '$lib/components/containers/Window.svelte';
|
|
</script>
|
|
|
|
<Window>
|
|
{#if $page.status === 403}
|
|
<h1 class="dark:text-gray-100">Not Authorized</h1>
|
|
<p class="dark:text-gray-300">
|
|
You don't have permission to view this page. <a
|
|
href="/"
|
|
class="dark:text-gray-400 dark:hover:text-gray-200">Go home</a
|
|
>.
|
|
</p>
|
|
{/if}
|
|
</Window>
|