sentence case commands

This commit is contained in:
tglide committed 2023-08-07 13:12:58 +01:00
1 parent 58f652f88d
commit deb173a0cb
7 files changed
+39 -53

No files matched your search

+4 -4
View File
@@ -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');
},
@@ -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);
},
@@ -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)) {
@@ -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();
@@ -70,15 +70,6 @@
return 'unknown';
}
};
// $: $registerCommands([
// {
// label: 'Create Web App',
// callback: () => addPlatform(Platform.Web),
// keys: ['c'],
// icon: 'plus'
// }
// ]);
</script>
<div class="common-section u-flex u-gap-12">
@@ -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`);
@@ -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`