feat: placement option (center, top) in modals

This commit is contained in:
liyasthomas
2021-08-10 20:45:45 +05:30
parent b612feea41
commit ba5d1666d6
4 changed files with 60 additions and 3 deletions

View File

@@ -82,12 +82,26 @@ export const spotlight = [
label: "shortcut.general.help_menu",
action: "modals.support.toggle",
icon: "support",
keywords: [
"help",
"support",
"documentation",
"troubleshooting",
"chat",
"community",
"feedback",
"report",
"bug",
"issue",
"ticket",
],
},
{
keys: [getPlatformSpecialKey(), "K"],
label: "shortcut.general.show_all",
action: "flyouts.keybinds.toggle",
icon: "keyboard",
keywords: ["keyboard", "shortcuts"],
},
],
},
@@ -99,30 +113,51 @@ export const spotlight = [
label: "shortcut.navigation.rest",
action: "navigation.rest.jump",
icon: "arrow_forward",
keywords: ["rest", "jump", "page", "navigation"],
},
{
keys: [getPlatformAlternateKey(), "Q"],
label: "shortcut.navigation.graphql",
action: "navigation.graphql.jump",
icon: "arrow_forward",
keywords: ["graphql", "jump", "page", "navigation"],
},
{
keys: [getPlatformAlternateKey(), "W"],
label: "shortcut.navigation.realtime",
action: "navigation.realtime.jump",
icon: "arrow_forward",
keywords: [
"realtime",
"jump",
"page",
"navigation",
"websocket",
"socket",
"mqtt",
"sse",
],
},
{
keys: [getPlatformAlternateKey(), "D"],
label: "shortcut.navigation.documentation",
action: "navigation.documentation.jump",
icon: "arrow_forward",
keywords: ["documentation", "jump", "page", "navigation"],
},
{
keys: [getPlatformAlternateKey(), "S"],
label: "shortcut.navigation.settings",
action: "navigation.settings.jump",
icon: "arrow_forward",
keywords: [
"settings",
"jump",
"page",
"navigation",
"account",
"theme",
],
},
],
},