From ebc10d9558c0d211fbff92cec89a6773c9021d23 Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 30 Dec 2023 15:14:01 +0100 Subject: [PATCH] chore: format --- frontend/src/lib/components/PartialMemberCard.svelte | 6 +++--- frontend/src/routes/@[username]/+page.svelte | 7 ++++--- .../@[username]/[memberName]/edit/+layout.svelte | 10 +++++++++- .../routes/@[username]/[memberName]/edit/+layout.ts | 2 +- .../@[username]/[memberName]/edit/fields/+page.svelte | 4 +--- frontend/src/routes/@[username]/edit/+layout.ts | 2 +- .../src/routes/@[username]/edit/other/+page.svelte | 9 ++++++++- frontend/src/routes/reports/+page.svelte | 9 ++++++++- frontend/src/routes/settings/flags/+page.svelte | 10 +++++++++- frontend/src/routes/settings/flags/Flag.svelte | 9 ++++++++- 10 files changed, 52 insertions(+), 16 deletions(-) diff --git a/frontend/src/lib/components/PartialMemberCard.svelte b/frontend/src/lib/components/PartialMemberCard.svelte index 5911e98..4efe806 100644 --- a/frontend/src/lib/components/PartialMemberCard.svelte +++ b/frontend/src/lib/components/PartialMemberCard.svelte @@ -6,12 +6,12 @@ type User, type CustomPreferences, } from "$lib/api/entities"; - import { Icon, Tooltip } from "@sveltestrap/sveltestrap"; + import { Icon, Tooltip } from "@sveltestrap/sveltestrap"; import FallbackImage from "./FallbackImage.svelte"; export let user: User; export let member: PartialMember & { - unlisted?: boolean + unlisted?: boolean; }; let pronouns: string | undefined; @@ -52,7 +52,7 @@ {member.display_name ?? member.name} {#if member.unlisted === true} - + This member is hidden {/if} diff --git a/frontend/src/routes/@[username]/+page.svelte b/frontend/src/routes/@[username]/+page.svelte index 642e715..18a74d6 100644 --- a/frontend/src/routes/@[username]/+page.svelte +++ b/frontend/src/routes/@[username]/+page.svelte @@ -190,14 +190,15 @@ {/if} {#if data.utc_offset} Current time - {currentTime} (UTC{timezone}) + + {currentTime} (UTC{timezone}) {/if} {#if profileEmpty && $userStore?.id === data.id}

- Your profile is empty! You can customize it by going to the edit profileedit profile page. (only you can see this)

diff --git a/frontend/src/routes/@[username]/[memberName]/edit/+layout.svelte b/frontend/src/routes/@[username]/[memberName]/edit/+layout.svelte index 57bda52..597f89d 100644 --- a/frontend/src/routes/@[username]/[memberName]/edit/+layout.svelte +++ b/frontend/src/routes/@[username]/[memberName]/edit/+layout.svelte @@ -5,7 +5,15 @@ import type { LayoutData } from "./$types"; import { addToast, delToast } from "$lib/toast"; import { apiFetchClient, fastFetchClient } from "$lib/api/fetch"; - import { Button, ButtonGroup, Modal, ModalBody, ModalFooter, Nav, NavItem } from "@sveltestrap/sveltestrap"; + import { + Button, + ButtonGroup, + Modal, + ModalBody, + ModalFooter, + Nav, + NavItem, + } from "@sveltestrap/sveltestrap"; import { goto } from "$app/navigation"; import ErrorAlert from "$lib/components/ErrorAlert.svelte"; import IconButton from "$lib/components/IconButton.svelte"; diff --git a/frontend/src/routes/@[username]/[memberName]/edit/+layout.ts b/frontend/src/routes/@[username]/[memberName]/edit/+layout.ts index 8493fa6..98762a4 100644 --- a/frontend/src/routes/@[username]/[memberName]/edit/+layout.ts +++ b/frontend/src/routes/@[username]/[memberName]/edit/+layout.ts @@ -41,7 +41,7 @@ export const load = (async ({ params }) => { pronouns: pronouns.autocomplete, flags, }; - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (e: any) { if ("code" in e) error(500, e as App.Error); throw e; diff --git a/frontend/src/routes/@[username]/[memberName]/edit/fields/+page.svelte b/frontend/src/routes/@[username]/[memberName]/edit/fields/+page.svelte index 08a456d..5cf0b62 100644 --- a/frontend/src/routes/@[username]/[memberName]/edit/fields/+page.svelte +++ b/frontend/src/routes/@[username]/[memberName]/edit/fields/+page.svelte @@ -45,9 +45,7 @@
-
diff --git a/frontend/src/routes/@[username]/edit/+layout.ts b/frontend/src/routes/@[username]/edit/+layout.ts index 23e176d..6d219e4 100644 --- a/frontend/src/routes/@[username]/edit/+layout.ts +++ b/frontend/src/routes/@[username]/edit/+layout.ts @@ -21,7 +21,7 @@ export const load = async ({ params }) => { pronouns: pronouns.autocomplete, flags, }; - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (e: any) { if ("code" in e) error(500, e as App.Error); throw e; diff --git a/frontend/src/routes/@[username]/edit/other/+page.svelte b/frontend/src/routes/@[username]/edit/other/+page.svelte index ef6382f..ed689c3 100644 --- a/frontend/src/routes/@[username]/edit/other/+page.svelte +++ b/frontend/src/routes/@[username]/edit/other/+page.svelte @@ -4,7 +4,14 @@ import { PreferenceSize, type APIError, type MeUser } from "$lib/api/entities"; import IconButton from "$lib/components/IconButton.svelte"; - import { Button, ButtonGroup, FormGroup, Icon, Input, InputGroup } from "@sveltestrap/sveltestrap"; + import { + Button, + ButtonGroup, + FormGroup, + Icon, + Input, + InputGroup, + } from "@sveltestrap/sveltestrap"; import { PUBLIC_SHORT_BASE } from "$env/static/public"; import CustomPreference from "./CustomPreference.svelte"; import { DateTime, FixedOffsetZone } from "luxon"; diff --git a/frontend/src/routes/reports/+page.svelte b/frontend/src/routes/reports/+page.svelte index a5d79e5..fb92f81 100644 --- a/frontend/src/routes/reports/+page.svelte +++ b/frontend/src/routes/reports/+page.svelte @@ -3,7 +3,14 @@ import { fastFetchClient } from "$lib/api/fetch"; import ErrorAlert from "$lib/components/ErrorAlert.svelte"; import { addToast } from "$lib/toast"; - import { Button, ButtonGroup, FormGroup, Modal, ModalBody, ModalFooter } from "@sveltestrap/sveltestrap"; + import { + Button, + ButtonGroup, + FormGroup, + Modal, + ModalBody, + ModalFooter, + } from "@sveltestrap/sveltestrap"; import type { PageData } from "./$types"; import ReportCard from "./ReportCard.svelte"; diff --git a/frontend/src/routes/settings/flags/+page.svelte b/frontend/src/routes/settings/flags/+page.svelte index 30728f9..0e15bf2 100644 --- a/frontend/src/routes/settings/flags/+page.svelte +++ b/frontend/src/routes/settings/flags/+page.svelte @@ -1,6 +1,14 @@