From e65e81d3c31bd2028775aff3fc62e627ff2f4e5e Mon Sep 17 00:00:00 2001 From: ditatompel Date: Wed, 15 May 2024 18:05:43 +0700 Subject: [PATCH] Use app.d.ts for login form JSDoc formResult --- frontend/src/routes/login/+page.svelte | 52 ++++---------------------- 1 file changed, 8 insertions(+), 44 deletions(-) diff --git a/frontend/src/routes/login/+page.svelte b/frontend/src/routes/login/+page.svelte index e37c4f8..d63148e 100644 --- a/frontend/src/routes/login/+page.svelte +++ b/frontend/src/routes/login/+page.svelte @@ -3,14 +3,7 @@ import { apiUri } from '$lib/utils/common'; import { ProgressBar, LightSwitch } from '@skeletonlabs/skeleton'; - /** - * @typedef formResult - * @type {object} - * @property {string} status - * @property {string} message - * @property {null | object} data - */ - /** @type {formResult} */ + /** @type {ApiResponse} */ export let formResult; let isProcessing = false; @@ -33,7 +26,6 @@ isProcessing = false; if (formResult.status === 'ok') { - // rerun all `load` functions, following the successful update await invalidateAll(); goto('/app/prober/'); } @@ -52,48 +44,20 @@
+
-

- Sign in to your account -

-
Sign in to your account +
- - + +
- - + +
-