feat: migration to Svelte 5
This commit is contained in:
@@ -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?.()}
|
||||
|
||||
Reference in New Issue
Block a user