From b7e39b59fd0fc7b5610ebff29035bf622079e0d8 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 5 Oct 2022 20:45:21 +0800 Subject: refactor: Change file structure --- .../(main)/(public)/reset-password/+page.svelte | 82 ------------- .../(public)/reset-password/[id]/+page.server.ts | 11 -- .../(public)/reset-password/[id]/+page.svelte | 132 --------------------- 3 files changed, 225 deletions(-) delete mode 100644 apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte delete mode 100644 apps/kit/src/routes/(main)/(public)/reset-password/[id]/+page.server.ts delete mode 100644 apps/kit/src/routes/(main)/(public)/reset-password/[id]/+page.svelte (limited to 'apps/kit/src/routes/(main)/(public)/reset-password') diff --git a/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte b/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte deleted file mode 100644 index aa26892..0000000 --- a/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte +++ /dev/null @@ -1,82 +0,0 @@ - - -
-
-

- {$LL.resetPasswordPage.requestAPasswordReset()} -

-

- {$LL.or().toLowerCase()} - - {$LL.signIntoYourAccount().toLowerCase()} - -

-
- -
-
-
- - - - - -
-
-
diff --git a/apps/kit/src/routes/(main)/(public)/reset-password/[id]/+page.server.ts b/apps/kit/src/routes/(main)/(public)/reset-password/[id]/+page.server.ts deleted file mode 100644 index 389d04c..0000000 --- a/apps/kit/src/routes/(main)/(public)/reset-password/[id]/+page.server.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { is_guid } from '$lib/helpers'; -import { redirect } from '@sveltejs/kit'; -import type { PageServerLoad } from './$types'; - -export const load: PageServerLoad = async ({ params }) => { - const resetRequestId = params.id ?? ""; - if (!is_guid(resetRequestId)) throw redirect(302, "/reset-password"); - return { - resetRequestId - }; -}; \ No newline at end of file diff --git a/apps/kit/src/routes/(main)/(public)/reset-password/[id]/+page.svelte b/apps/kit/src/routes/(main)/(public)/reset-password/[id]/+page.svelte deleted file mode 100644 index 562d902..0000000 --- a/apps/kit/src/routes/(main)/(public)/reset-password/[id]/+page.svelte +++ /dev/null @@ -1,132 +0,0 @@ - - -
- {#if finishedPreliminaryLoading} -
-

- {$LL.resetPasswordPage.setANewPassword()} -

-

- {$LL.or().toLowerCase()} - - {$LL.signIntoYourAccount().toLowerCase()} - -

-
- -
-
-
- {#if errorState === "404"} - - {:else if errorState === "expired"} - - {:else if errorState === "unknown"} - - {/if} - - - -
-
- {:else} -

Checking your request...

- {/if} -
-- cgit v1.3