diff options
Diffstat (limited to 'src/lib/CommandPalette')
| -rw-r--r-- | src/lib/CommandPalette/CommandPalette.svelte | 6 | ||||
| -rw-r--r-- | src/lib/CommandPalette/actions.ts | 5 | ||||
| -rw-r--r-- | src/lib/CommandPalette/authActions.ts | 7 | ||||
| -rw-r--r-- | src/lib/CommandPalette/syncActions.ts | 6 | ||||
| -rw-r--r-- | src/lib/CommandPalette/toggleActions.ts | 4 |
5 files changed, 15 insertions, 13 deletions
diff --git a/src/lib/CommandPalette/CommandPalette.svelte b/src/lib/CommandPalette/CommandPalette.svelte index bf568200..81ce112c 100644 --- a/src/lib/CommandPalette/CommandPalette.svelte +++ b/src/lib/CommandPalette/CommandPalette.svelte @@ -1,10 +1,10 @@ <script lang="ts"> import { onMount } from "svelte"; -import { fly, fade } from "svelte/transition"; import { flip } from "svelte/animate"; -import type { CommandPaletteAction } from "./actions"; -import locale from "$stores/locale"; +import { fade, fly } from "svelte/transition"; import { track } from "$lib/analytics"; +import locale from "$stores/locale"; +import type { CommandPaletteAction } from "./actions"; export let items: CommandPaletteAction[] = []; export let open = false; diff --git a/src/lib/CommandPalette/actions.ts b/src/lib/CommandPalette/actions.ts index d2ed5a1d..19d7394e 100644 --- a/src/lib/CommandPalette/actions.ts +++ b/src/lib/CommandPalette/actions.ts @@ -1,6 +1,6 @@ +import { get } from "svelte/store"; import { invalidateListCaches } from "$lib/Media/invalidate"; import locale from "$stores/locale"; -import { get } from "svelte/store"; export interface CommandPaletteAction { name: string; @@ -173,7 +173,8 @@ export const defaultActions = (): CommandPaletteAction[] => { tags: ["user", "me", "settings"], }, { - name: l.commandPalette?.refreshCaches ?? "Refresh Anime & Manga List Caches", + name: + l.commandPalette?.refreshCaches ?? "Refresh Anime & Manga List Caches", url: "", preventDefault: true, tags: [ diff --git a/src/lib/CommandPalette/authActions.ts b/src/lib/CommandPalette/authActions.ts index 3dd51bf7..7123db06 100644 --- a/src/lib/CommandPalette/authActions.ts +++ b/src/lib/CommandPalette/authActions.ts @@ -1,9 +1,9 @@ +import localforage from "localforage"; +import { get } from "svelte/store"; import { env } from "$env/dynamic/public"; -import root from "$lib/Utility/root"; import { track } from "$lib/analytics"; -import localforage from "localforage"; +import root from "$lib/Utility/root"; import locale from "$stores/locale"; -import { get } from "svelte/store"; import type { CommandPaletteAction } from "./actions"; export const authActions = ( @@ -24,6 +24,7 @@ export const authActions = ( await localforage.removeItem("identity"); await localforage.removeItem("commit"); + // biome-ignore lint/suspicious/noDocumentCookie: synchronous cookie clear on logout right before navigation; the Cookie Store API is async and not universally supported. document.cookie = "user=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; diff --git a/src/lib/CommandPalette/syncActions.ts b/src/lib/CommandPalette/syncActions.ts index b3cf01c6..07b312d7 100644 --- a/src/lib/CommandPalette/syncActions.ts +++ b/src/lib/CommandPalette/syncActions.ts @@ -1,11 +1,11 @@ -import { addNotification } from "$lib/Notification/store"; +import { get } from "svelte/store"; import { options } from "$lib/Notification/options"; +import { addNotification } from "$lib/Notification/store"; import root from "$lib/Utility/root"; +import locale from "$stores/locale"; import settings from "$stores/settings"; import settingsSyncPulled from "$stores/settingsSyncPulled"; import settingsSyncTimes from "$stores/settingsSyncTimes"; -import locale from "$stores/locale"; -import { get } from "svelte/store"; import type { CommandPaletteAction } from "./actions"; export const syncActions = ( diff --git a/src/lib/CommandPalette/toggleActions.ts b/src/lib/CommandPalette/toggleActions.ts index 9ba1d121..f09a0358 100644 --- a/src/lib/CommandPalette/toggleActions.ts +++ b/src/lib/CommandPalette/toggleActions.ts @@ -1,6 +1,6 @@ -import settings, { type Settings } from "$stores/settings"; -import locale from "$stores/locale"; import { get } from "svelte/store"; +import locale from "$stores/locale"; +import settings, { type Settings } from "$stores/settings"; import type { CommandPaletteAction } from "./actions"; const TITLE_FORMATS: Settings["displayTitleFormat"][] = [ |