diff --git a/src/routes/console/+layout.svelte b/src/routes/console/+layout.svelte index c1c8e954e..9c96de744 100644 --- a/src/routes/console/+layout.svelte +++ b/src/routes/console/+layout.svelte @@ -33,7 +33,7 @@ icon: 'light-bulb' }, { - label: 'Go to Account', + label: 'Go to account', callback: () => { goto('/console/account'); }, @@ -41,7 +41,7 @@ group: 'navigation' }, { - label: 'Find an Organization', + label: 'Find an organization', callback: () => { addSubPanel(OrganizationsPanel); }, @@ -59,7 +59,7 @@ icon: 'search' }, { - label: 'Create new Organization', + label: 'Create new organization', callback: () => { newOrgModal.set(true); }, @@ -67,7 +67,7 @@ group: 'organizations' }, { - label: 'Go to Home', + label: 'Go to home', callback: () => { goto('/console'); }, diff --git a/src/routes/console/project-[project]/+layout.svelte b/src/routes/console/project-[project]/+layout.svelte index 278fffc32..fc4f1892a 100644 --- a/src/routes/console/project-[project]/+layout.svelte +++ b/src/routes/console/project-[project]/+layout.svelte @@ -5,13 +5,15 @@ import { project, stats } from './store'; import { goto } from '$app/navigation'; - import { - addSubPanel, - registerCommands, - registerSearchers, - updateCommandGroupRanks - } from '$lib/commandCenter'; + import { addSubPanel, registerCommands, registerSearchers } from '$lib/commandCenter'; + import { + BucketsPanel, + DatabasesPanel, + FunctionsPanel, + TeamsPanel, + UsersPanel + } from '$lib/commandCenter/panels'; import { bucketSearcher, dbSearcher, @@ -20,13 +22,6 @@ userSearcher } from '$lib/commandCenter/searchers'; import { MigrationBox } from '$lib/components'; - import { - UsersPanel, - TeamsPanel, - DatabasesPanel, - FunctionsPanel, - BucketsPanel - } from '$lib/commandCenter/panels'; onMount(async () => { return sdk.forConsole.client.subscribe(['project', 'console'], (response) => { @@ -40,7 +35,7 @@ $: $registerCommands([ { - label: 'Go to Overview', + label: 'Go to overview', callback: () => { goto(`/console/project-${$project.$id}`); }, @@ -49,7 +44,7 @@ }, { - label: 'Go to Auth', + label: 'Go to auth', callback: () => { goto(`/console/project-${$project.$id}/auth`); }, @@ -57,7 +52,7 @@ group: 'navigation' }, { - label: 'Go to Databases', + label: 'Go to databases', callback: () => { goto(`/console/project-${$project.$id}/databases`); }, @@ -65,7 +60,7 @@ group: 'navigation' }, { - label: 'Go to Functions', + label: 'Go to functions', callback: () => { goto(`/console/project-${$project.$id}/functions`); }, @@ -73,7 +68,7 @@ group: 'navigation' }, { - label: 'Go to Storage', + label: 'Go to storage', callback: () => { goto(`/console/project-${$project.$id}/storage`); }, @@ -81,7 +76,7 @@ group: 'navigation' }, { - label: 'Go to Settings', + label: 'Go to settings', callback: () => { goto(`/console/project-${$project.$id}/settings`); }, @@ -89,7 +84,7 @@ group: 'navigation' }, { - label: 'Find Users', + label: 'Find users', callback: () => { addSubPanel(UsersPanel); }, @@ -99,7 +94,7 @@ rank: 10 }, { - label: 'Find Teams', + label: 'Find teams', callback: () => { addSubPanel(TeamsPanel); }, @@ -108,7 +103,7 @@ keys: ['f', 't'] }, { - label: 'Find Databases', + label: 'Find databases', callback: () => { addSubPanel(DatabasesPanel); }, @@ -117,7 +112,7 @@ keys: ['f', 'd'] }, { - label: 'Find Functions', + label: 'Find functions', callback: () => { addSubPanel(FunctionsPanel); }, @@ -126,7 +121,7 @@ keys: ['f', 'f'] }, { - label: 'Find Buckets', + label: 'Find buckets', callback: () => { addSubPanel(BucketsPanel); }, diff --git a/src/routes/console/project-[project]/databases/database-[database]/+layout.svelte b/src/routes/console/project-[project]/databases/database-[database]/+layout.svelte index 7a6a1acf3..adec8e535 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/+layout.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/+layout.svelte @@ -28,7 +28,7 @@ $: $registerCommands([ { - label: 'Find Collections', + label: 'Find collections', callback() { addSubPanel(CollectionsPanel); }, @@ -37,7 +37,7 @@ icon: 'search' }, { - label: 'Create Collection', + label: 'Create collection', callback() { $showCreate = true; if (!$page.url.pathname.endsWith(databaseId)) { diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+layout.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+layout.svelte index 67aa899a5..ce8c1071f 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+layout.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/+layout.svelte @@ -53,7 +53,7 @@ $: $registerCommands([ { - label: 'Create Document', + label: 'Create document', keys: $page.url.pathname.endsWith($collection.$id) ? ['c'] : ['c', 'd'], callback() { wizard.start(CreateDocument); @@ -62,7 +62,7 @@ group: 'documents' }, { - label: 'Create Attribute', + label: 'Create attribute', keys: $page.url.pathname.endsWith('attributes') ? ['c'] : ['c', 'a'], callback() { addSubPanel(CreateAttributePanel); @@ -71,7 +71,7 @@ group: 'attributes' }, { - label: 'Go to Documents', + label: 'Go to documents', keys: ['g', 'd'], callback() { goto( @@ -82,7 +82,7 @@ group: 'collections' }, { - label: 'Go to Attributes', + label: 'Go to attributes', keys: ['g', 'a'], callback() { goto( @@ -93,7 +93,7 @@ group: 'collections' }, { - label: 'Go to Indexes', + label: 'Go to indexes', keys: ['g', 'i'], callback() { goto( @@ -104,7 +104,7 @@ group: 'collections' }, { - label: 'Go to Activity', + label: 'Go to activity', keys: ['g', 'c'], callback() { goto( @@ -115,7 +115,7 @@ group: 'collections' }, { - label: 'Go to Usage', + label: 'Go to usage', keys: ['g', 'u'], callback() { goto( @@ -126,7 +126,7 @@ group: 'collections' }, { - label: 'Go to Settings', + label: 'Go to settings', keys: ['g', 's'], callback() { goto( @@ -137,7 +137,7 @@ group: 'collections' }, { - label: 'Create Index', + label: 'Create index', keys: $page.url.pathname.endsWith('indexes') ? ['c'] : ['c', 'i'], callback() { initCreateIndex(); diff --git a/src/routes/console/project-[project]/overview/platforms/+page.svelte b/src/routes/console/project-[project]/overview/platforms/+page.svelte index f9489cc0f..dc9b7023f 100644 --- a/src/routes/console/project-[project]/overview/platforms/+page.svelte +++ b/src/routes/console/project-[project]/overview/platforms/+page.svelte @@ -70,15 +70,6 @@ return 'unknown'; } }; - - // $: $registerCommands([ - // { - // label: 'Create Web App', - // callback: () => addPlatform(Platform.Web), - // keys: ['c'], - // icon: 'plus' - // } - // ]);
diff --git a/src/routes/console/project-[project]/settings/+layout.svelte b/src/routes/console/project-[project]/settings/+layout.svelte index 77ac9afee..f1fc7db40 100644 --- a/src/routes/console/project-[project]/settings/+layout.svelte +++ b/src/routes/console/project-[project]/settings/+layout.svelte @@ -26,7 +26,7 @@ group: 'webhooks' }, { - label: 'Go to Settings Overview', + label: 'Go to settings overview', keys: ['g', 'o'], callback: () => { @@ -37,7 +37,7 @@ rank: 40 }, { - label: 'Go to Custom domains', + label: 'Go to custom domains', keys: ['g', 'd'], callback: () => { @@ -48,7 +48,7 @@ rank: 30 }, { - label: 'Go to Webhooks', + label: 'Go to webhooks', keys: ['g', 'w'], callback: () => { goto(`/console/project-${$project.$id}/settings/webhooks`); @@ -59,7 +59,7 @@ rank: 20 }, { - label: 'Go to Migrations', + label: 'Go to migrations', keys: ['g', 'm'], callback: () => { goto(`/console/project-${$project.$id}/settings/migrations`); diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/+layout.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/+layout.svelte index ed7a6ee74..f4c029ec9 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/+layout.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/+layout.svelte @@ -57,7 +57,7 @@ icon: 'puzzle' }, { - label: 'File Security', + label: 'File security', async callback() { await goto( `/console/project-${$project.$id}/storage/bucket-${$bucket.$id}/settings#file-security`