refac: move functions (plugin) to admin panel

This commit is contained in:
Timothy Jaeryang Baek
2024-11-14 18:32:23 -08:00
parent 0cf1969adc
commit 947444949a
9 changed files with 25 additions and 38 deletions
@@ -0,0 +1,19 @@
<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}