Spaces:
Sleeping
Sleeping
File size: 405 Bytes
3b623f5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<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}
|