20 lines
405 B
Svelte
20 lines
405 B
Svelte
<script>
|
|
import { onMount } from 'svelte';
|
|
import { functions } from '$lib/stores';
|
|
|
|
import { getFunctions } from '$lib/apis/functions';
|
|
import Functions from '$lib/components/admin/Functions.svelte';
|
|
|
|
onMount(async () => {
|
|
await Promise.all([
|
|
(async () => {
|
|
functions.set(await getFunctions(localStorage.token));
|
|
})()
|
|
]);
|
|
});
|
|
</script>
|
|
|
|
{#if $functions !== null}
|
|
<Functions />
|
|
{/if}
|