feat: migration to Svelte 5

This commit is contained in:
Scott Idem
2025-11-19 12:38:03 -05:00
parent d99e9ee1b0
commit f25b9ccd8f
46 changed files with 9578 additions and 9095 deletions

View File

@@ -1,6 +1,5 @@
<script lang="ts">
/** @type {import('./$types').LayoutData} */
export let data: any;
import { goto } from '$app/navigation';
import { onMount } from 'svelte';
@@ -11,6 +10,13 @@
import { api } from '$lib/api/api';
import { ae_loc, ae_sess, ae_api, slct } from '$lib/stores/ae_stores';
import { events_loc, events_slct, events_trigger } from '$lib/stores/ae_events_stores';
interface Props {
/** @type {import('./$types').LayoutData} */
data: any;
children?: import('svelte').Snippet;
}
let { data, children }: Props = $props();
// import Element_data_store from '$lib/element_data_store_v2.svelte';
@@ -87,7 +93,7 @@
(!$ae_loc.administrator_access && item.access === 'administrator') ||
item.hide}
disabled={item.disable}
on:click={() => {
onclick={() => {
// window.location(item.href);
// href={item.href}
// invalidateAll
@@ -113,4 +119,4 @@
</span>
</section>
<slot></slot>
{@render children?.()}