From e6363ec4a638caccbf09307406f7948de90be8a1 Mon Sep 17 00:00:00 2001 From: tglide <26071571+TGlide@users.noreply.github.com> Date: Tue, 11 Jul 2023 12:49:42 +0100 Subject: [PATCH] feat: find projects command --- src/lib/commandCenter/commands.ts | 3 +- src/lib/commandCenter/panels/index.ts | 8 +-- src/lib/commandCenter/panels/projects.svelte | 28 ++++++++++ src/lib/commandCenter/panels/root.svelte | 16 ++---- src/lib/commandCenter/panels/template.svelte | 55 ++++++++++++------- src/routes/console/+layout.svelte | 8 +-- src/routes/console/+layout.ts | 6 +- .../organization-[organization]/+page.svelte | 19 ++++--- .../console/project-[project]/+layout.svelte | 8 +++ .../overview/platforms/+page.svelte | 17 +++--- 10 files changed, 109 insertions(+), 59 deletions(-) create mode 100644 src/lib/commandCenter/panels/projects.svelte diff --git a/src/lib/commandCenter/commands.ts b/src/lib/commandCenter/commands.ts index 8782f8dc0..cd3379de1 100644 --- a/src/lib/commandCenter/commands.ts +++ b/src/lib/commandCenter/commands.ts @@ -6,6 +6,7 @@ import { derived, writable } from 'svelte/store'; export type CommandGroup = | 'ungrouped' | 'navigation' + | 'projects' | 'project' | 'auth' | 'help' @@ -16,7 +17,7 @@ export type CommandGroup = | 'storage'; export type Command = { - keys: string[]; + keys?: string[]; /* Ctrl on Windows/Linux, Meta on Mac */ ctrl?: boolean; shift?: boolean; diff --git a/src/lib/commandCenter/panels/index.ts b/src/lib/commandCenter/panels/index.ts index d0b6262f4..e2ce124ab 100644 --- a/src/lib/commandCenter/panels/index.ts +++ b/src/lib/commandCenter/panels/index.ts @@ -1,4 +1,4 @@ -import AI from './ai.svelte'; -import Root from './root.svelte'; -import Template from './template.svelte'; -export { AI, Root, Template }; +export { default as AI } from './ai.svelte'; +export { default as Root } from './root.svelte'; +export { default as Template } from './template.svelte'; +export { default as Projects } from './projects.svelte'; diff --git a/src/lib/commandCenter/panels/projects.svelte b/src/lib/commandCenter/panels/projects.svelte new file mode 100644 index 000000000..bbcc334c5 --- /dev/null +++ b/src/lib/commandCenter/panels/projects.svelte @@ -0,0 +1,28 @@ + + + + diff --git a/src/lib/commandCenter/panels/root.svelte b/src/lib/commandCenter/panels/root.svelte index b79cf1602..7d13f401a 100644 --- a/src/lib/commandCenter/panels/root.svelte +++ b/src/lib/commandCenter/panels/root.svelte @@ -75,7 +75,7 @@ ] as Array>; -