From 4316eaad79fa0fa5353e44644cd561134ea781f9 Mon Sep 17 00:00:00 2001 From: Alex <$(pass /github/email)> Date: Tue, 8 Oct 2024 07:35:24 +0200 Subject: [PATCH] removed commented Avatar stuff --- .../src/routes/auth/about/[id]/+page.svelte | 105 ------------------ 1 file changed, 105 deletions(-) diff --git a/frontend/src/routes/auth/about/[id]/+page.svelte b/frontend/src/routes/auth/about/[id]/+page.svelte index 1d52a6e..34deed7 100644 --- a/frontend/src/routes/auth/about/[id]/+page.svelte +++ b/frontend/src/routes/auth/about/[id]/+page.svelte @@ -82,27 +82,6 @@ onMount(() => { console.dir(user); - console.dir(licence_categories); - // avatars = Object.entries(avatarFiles).map(([path, module]) => { - // if (typeof path !== "string") { - // throw new Error("Unexpected non-string path"); - // } - // if ( - // typeof module !== "object" || - // module === null || - // !("default" in module) - // ) { - // throw new Error("Unexpected module format"); - // } - // const src = module.default; - // if (typeof src !== "string") { - // throw new Error("Unexpected default export type"); - // } - // return { - // name: path.split("/").pop()?.split(".")[0] ?? "Unknown", - // src: src, - // }; - // }); }); /** @@ -126,28 +105,9 @@ }; /** @type {import('./$types').SubmitFunction} */ - // const handleUpload = async () => { - // isUploading = true; - // return async ({ result }) => { - // isUploading = false; - // /** @type {any} */ - // const res = result; - // if (result.type === "success" || result.type === "redirect") { - // user.profile_picture = res.data.profile_picture; - // } - // await applyAction(result); - // }; - // };
-
{#if user.status}

@@ -210,71 +170,6 @@ {#if showModal} -