From bbe022958d1a9c3f719ac9f5fac3f98f1932d054 Mon Sep 17 00:00:00 2001 From: ernstmul Date: Wed, 22 Jan 2025 13:37:17 +0100 Subject: [PATCH 1/7] Command center to pink2 --- src/lib/commandCenter/commands.ts | 4 +- src/lib/commandCenter/panels/ai.svelte | 83 ++++++++-------- src/lib/commandCenter/panels/root.svelte | 35 +++++-- src/lib/commandCenter/panels/template.svelte | 96 ++++++++----------- src/lib/commandCenter/searchers/functions.ts | 5 +- src/routes/(console)/+layout.svelte | 24 +++-- .../organization-[organization]/+page.svelte | 3 +- .../attributes/store.ts | 35 ++++--- .../project-[project]/settings/+layout.svelte | 3 +- 9 files changed, 157 insertions(+), 131 deletions(-) diff --git a/src/lib/commandCenter/commands.ts b/src/lib/commandCenter/commands.ts index f1845a6bf..b191b892f 100644 --- a/src/lib/commandCenter/commands.ts +++ b/src/lib/commandCenter/commands.ts @@ -1,7 +1,7 @@ import { debounce } from '$lib/helpers/debounce'; import { isMac } from '$lib/helpers/platform'; import { wizard } from '$lib/stores/wizard'; -import { onMount } from 'svelte'; +import { type ComponentType, onMount } from 'svelte'; import { derived, writable } from 'svelte/store'; import { nanoid } from 'nanoid/non-secure'; import { trackEvent } from '$lib/actions/analytics'; @@ -49,7 +49,7 @@ type BaseCommand = { disabled?: boolean; forceEnable?: boolean; group?: CommandGroup; - icon?: string; + icon?: ComponentType; image?: string; rank?: number; nested?: boolean; diff --git a/src/lib/commandCenter/panels/ai.svelte b/src/lib/commandCenter/panels/ai.svelte index da09311f7..0d4355cab 100644 --- a/src/lib/commandCenter/panels/ai.svelte +++ b/src/lib/commandCenter/panels/ai.svelte @@ -1,6 +1,7 @@ -