From 002cd9134d2e23bec34f838f6d6fefba41f2d530 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 18 Oct 2024 09:08:07 -0700 Subject: biome format --- src/routes/(static)/+layout.server.ts | 4 ++-- src/routes/(static)/login/+page.server.ts | 6 +----- src/routes/(static)/login/+page.svelte | 23 ++++++++++++----------- src/routes/(static)/privacy/+page.svelte | 14 +++++++++----- src/routes/(static)/register/+page.server.ts | 2 +- src/routes/(static)/register/+page.svelte | 2 +- src/routes/(static)/support/+page.svelte | 9 ++------- 7 files changed, 28 insertions(+), 32 deletions(-) (limited to 'src/routes/(static)') diff --git a/src/routes/(static)/+layout.server.ts b/src/routes/(static)/+layout.server.ts index c26f8d96..56b8efa1 100644 --- a/src/routes/(static)/+layout.server.ts +++ b/src/routes/(static)/+layout.server.ts @@ -1,9 +1,9 @@ -import { get, auth} from "$lib/utils"; +import { get, auth } from "$lib/utils"; export async function load({ cookies }) { let token = cookies.get("token"); - let user; + let user; if (token) { try { user = await get("/me", auth(cookies)); diff --git a/src/routes/(static)/login/+page.server.ts b/src/routes/(static)/login/+page.server.ts index fd7fec8c..6ba7e033 100644 --- a/src/routes/(static)/login/+page.server.ts +++ b/src/routes/(static)/login/+page.server.ts @@ -15,11 +15,7 @@ export const actions = { if (loginRedirect === "undefined") loginRedirect = undefined; try { - await login( - user, - cookies, - request.headers.get("cf-connecting-ip") - ); + await login(user, cookies, request.headers.get("cf-connecting-ip")); } catch (e: any) { return fail(400, { error: "Login failed", message: e.message, ...form }); } diff --git a/src/routes/(static)/login/+page.svelte b/src/routes/(static)/login/+page.svelte index df7db5e6..efaa84b8 100644 --- a/src/routes/(static)/login/+page.svelte +++ b/src/routes/(static)/login/+page.svelte @@ -76,7 +76,9 @@ {/if} -
+

{$t("login.signIn")}

{#if form?.error} @@ -157,15 +159,14 @@ {/if} - -

- {$t("login.noAccount")} - - {$t("login.register")} - -

+

+ {$t("login.noAccount")} + + {$t("login.register")} + +

diff --git a/src/routes/(static)/privacy/+page.svelte b/src/routes/(static)/privacy/+page.svelte index bf8ba78e..7b21a5be 100644 --- a/src/routes/(static)/privacy/+page.svelte +++ b/src/routes/(static)/privacy/+page.svelte @@ -2,11 +2,15 @@
Privacy Policy
- The only personal information we require to create an account is a username and password. Some users may provide an email address for notification or password reset purposes. We will not share your email with anyone or use it for anything other than the purposes stated. -
- -
+ The only personal information we require to create an account is a username + and password. Some users may provide an email address for notification or + password reset purposes. We will not share your email with anyone or use it + for anything other than the purposes stated. +
- We keep records of payment history associated to accounts and may be obligated to share our records with financial authorities. You may request that your account be deleted by visiting https://coinos.io/removal +
+ We keep records of payment history associated to accounts and may be + obligated to share our records with financial authorities. You may request + that your account be deleted by visiting https://coinos.io/removal
diff --git a/src/routes/(static)/register/+page.server.ts b/src/routes/(static)/register/+page.server.ts index 731530c4..0b965507 100644 --- a/src/routes/(static)/register/+page.server.ts +++ b/src/routes/(static)/register/+page.server.ts @@ -21,7 +21,7 @@ export const actions = { let error; if (loginRedirect === "undefined") loginRedirect = undefined; - + try { await post("/register", { user }, { "cf-connecting-ip": ip }); } catch (e: any) { diff --git a/src/routes/(static)/register/+page.svelte b/src/routes/(static)/register/+page.svelte index 3491bd5d..1749bd16 100644 --- a/src/routes/(static)/register/+page.svelte +++ b/src/routes/(static)/register/+page.svelte @@ -98,7 +98,7 @@ if ($avatar) { try { let { hash } = JSON.parse( - await upload($avatar.file, $avatar.type, $avatar.progress, token) + await upload($avatar.file, $avatar.type, $avatar.progress, token), ); data.set("profile", hash); diff --git a/src/routes/(static)/support/+page.svelte b/src/routes/(static)/support/+page.svelte index 6b32124e..062f552b 100644 --- a/src/routes/(static)/support/+page.svelte +++ b/src/routes/(static)/support/+page.svelte @@ -24,7 +24,7 @@ grecaptcha.execute(recaptchaSiteKey, { action: "submit" }).then((token) => post("/support", { username: user?.username, email, message, token }) .then(() => (sent = true)) - .catch(() => fail("problem submitting")) + .catch(() => fail("problem submitting")), ); }); }; @@ -97,12 +97,7 @@ - +
-- cgit v1.2.3