From ced66c5807575cd29f6aa5632e8ad02b38c8448a Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 28 Apr 2024 22:37:30 +0200 Subject: WIP new frontend --- .../src/routes/(main)/(public)/portal/+page.svelte | 26 ++++++++++++++++++++++ .../src/routes/(main)/(public)/portal/+page.ts | 9 ++++++++ 2 files changed, 35 insertions(+) create mode 100644 code/frontend/src/routes/(main)/(public)/portal/+page.svelte create mode 100644 code/frontend/src/routes/(main)/(public)/portal/+page.ts (limited to 'code/frontend/src/routes/(main)/(public)/portal') diff --git a/code/frontend/src/routes/(main)/(public)/portal/+page.svelte b/code/frontend/src/routes/(main)/(public)/portal/+page.svelte new file mode 100644 index 0000000..cc16681 --- /dev/null +++ b/code/frontend/src/routes/(main)/(public)/portal/+page.svelte @@ -0,0 +1,26 @@ + + +
+

Warping...

+
diff --git a/code/frontend/src/routes/(main)/(public)/portal/+page.ts b/code/frontend/src/routes/(main)/(public)/portal/+page.ts new file mode 100644 index 0000000..72338cb --- /dev/null +++ b/code/frontend/src/routes/(main)/(public)/portal/+page.ts @@ -0,0 +1,9 @@ +import type { PortalMessage } from '$configuration'; +import { redirect } from '@sveltejs/kit'; +import type { PageLoad } from './$types'; + +export const load: PageLoad = async ({ url }) => { + const message = url.searchParams.get("msg") as PortalMessage; + if (!message) throw redirect(302, "/"); + return { message }; +}; \ No newline at end of file -- cgit v1.3