diff --git a/apps/desktop/src/lib/context/appConfig.ts b/apps/desktop/src/lib/context/appConfig.ts index 6bf2e4f..4537631 100644 --- a/apps/desktop/src/lib/context/appConfig.ts +++ b/apps/desktop/src/lib/context/appConfig.ts @@ -1,13 +1,13 @@ /** - * This is app state context. + * This is app state context. * It's designed to allow all components to access a shared state. * With context, we can avoid prop drilling, and avoid using stores which makes components hard to encapsulate. */ -import type { AppConfig } from '@/types/appConfig'; -import { getContext, setContext } from 'svelte' -import type { Writable } from 'svelte/store'; +import type { AppConfig } from "@/types/appConfig" +import { getContext, setContext } from "svelte" +import type { Writable } from "svelte/store" -export const APP_CONFIG_CONTEXT_KEY = Symbol('appConfig') +export const APP_CONFIG_CONTEXT_KEY = Symbol("appConfig") export function getAppConfigContext(): Writable { return getContext(APP_CONFIG_CONTEXT_KEY) diff --git a/apps/desktop/src/lib/context/appState.ts b/apps/desktop/src/lib/context/appState.ts index c35619d..12aa792 100644 --- a/apps/desktop/src/lib/context/appState.ts +++ b/apps/desktop/src/lib/context/appState.ts @@ -1,8 +1,8 @@ -import type { AppState } from '@/types/appState'; -import { getContext, setContext } from 'svelte' -import type { Writable } from 'svelte/store'; +import type { AppState } from "@/types/appState" +import { getContext, setContext } from "svelte" +import type { Writable } from "svelte/store" -export const APP_STATE_CONTEXT_KEY = Symbol('appState') +export const APP_STATE_CONTEXT_KEY = Symbol("appState") export function getAppStateContext(): Writable { return getContext(APP_STATE_CONTEXT_KEY) diff --git a/apps/desktop/src/lib/context/index.ts b/apps/desktop/src/lib/context/index.ts index bb639ce..46db929 100644 --- a/apps/desktop/src/lib/context/index.ts +++ b/apps/desktop/src/lib/context/index.ts @@ -1 +1 @@ -export * from './appConfig' \ No newline at end of file +export * from "./appConfig" diff --git a/apps/desktop/src/lib/utils/key.ts b/apps/desktop/src/lib/utils/key.ts index bd09d92..62f16f1 100644 --- a/apps/desktop/src/lib/utils/key.ts +++ b/apps/desktop/src/lib/utils/key.ts @@ -1,5 +1,5 @@ -import { goto } from "$app/navigation" import { appState } from "@/stores" +import { goto } from "$app/navigation" import { goBack, goHome } from "./route" export function goHomeOnEscape(e: KeyboardEvent) { @@ -22,4 +22,4 @@ export function goBackOnEscapeClearSearchTerm(e: KeyboardEvent) { goBack() } } -} \ No newline at end of file +} diff --git a/packages/ui/src/components/main/BuiltinCmds.svelte b/packages/ui/src/components/main/BuiltinCmds.svelte index 286cf6a..ad7a75b 100644 --- a/packages/ui/src/components/main/BuiltinCmds.svelte +++ b/packages/ui/src/components/main/BuiltinCmds.svelte @@ -2,8 +2,8 @@ import { IconEnum } from "@kksh/api/models" import { Command } from "@kksh/svelte5" import type { BuiltinCmd } from "@kksh/types" - import { DraggableCommandGroup } from "@kksh/ui/custom" import { IconMultiplexer } from "@kksh/ui" + import { DraggableCommandGroup } from "@kksh/ui/custom" const { builtinCmds }: { builtinCmds: BuiltinCmd[] } = $props()