123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- import { getPlatformAlternateKey, getPlatformSpecialKey } from "./platformutils"
- export default [
- {
- section: "shortcut.general.title",
- shortcuts: [
- {
- keys: ["?"],
- label: "shortcut.general.help_menu",
- },
- {
- keys: ["/"],
- label: "shortcut.general.command_menu",
- },
- {
- keys: [getPlatformSpecialKey(), "K"],
- label: "shortcut.general.show_all",
- },
- {
- keys: ["Esc"],
- label: "shortcut.general.close_current_menu",
- },
- ],
- },
- {
- section: "shortcut.request.title",
- shortcuts: [
- {
- keys: [getPlatformSpecialKey(), "G"],
- label: "shortcut.request.send_request",
- },
- {
- keys: [getPlatformSpecialKey(), "S"],
- label: "shortcut.request.save_to_collections",
- },
- {
- keys: [getPlatformSpecialKey(), "U"],
- label: "shortcut.request.copy_request_link",
- },
- {
- keys: [getPlatformSpecialKey(), "I"],
- label: "shortcut.request.reset_request",
- },
- {
- keys: [getPlatformAlternateKey(), "↑"],
- label: "shortcut.request.next_method",
- },
- {
- keys: [getPlatformAlternateKey(), "↓"],
- label: "shortcut.request.previous_method",
- },
- {
- keys: [getPlatformAlternateKey(), "G"],
- label: "shortcut.request.get_method",
- },
- {
- keys: [getPlatformAlternateKey(), "H"],
- label: "shortcut.request.head_method",
- },
- {
- keys: [getPlatformAlternateKey(), "P"],
- label: "shortcut.request.post_method",
- },
- {
- keys: [getPlatformAlternateKey(), "U"],
- label: "shortcut.request.put_method",
- },
- {
- keys: [getPlatformAlternateKey(), "X"],
- label: "shortcut.request.delete_method",
- },
- ],
- },
- {
- section: "shortcut.navigation.title",
- shortcuts: [
- {
- keys: [getPlatformSpecialKey(), "←"],
- label: "shortcut.navigation.back",
- },
- {
- keys: [getPlatformSpecialKey(), "→"],
- label: "shortcut.navigation.forward",
- },
- {
- keys: [getPlatformAlternateKey(), "R"],
- label: "shortcut.navigation.rest",
- },
- {
- keys: [getPlatformAlternateKey(), "Q"],
- label: "shortcut.navigation.graphql",
- },
- {
- keys: [getPlatformAlternateKey(), "W"],
- label: "shortcut.navigation.realtime",
- },
- {
- keys: [getPlatformAlternateKey(), "D"],
- label: "shortcut.navigation.documentation",
- },
- {
- keys: [getPlatformAlternateKey(), "S"],
- label: "shortcut.navigation.settings",
- },
- ],
- },
- {
- section: "shortcut.miscellaneous.title",
- shortcuts: [
- {
- keys: [getPlatformSpecialKey(), "M"],
- label: "shortcut.miscellaneous.invite",
- },
- ],
- },
- ]
- export const spotlight = [
- {
- section: "app.spotlight",
- shortcuts: [
- {
- keys: ["?"],
- label: "shortcut.general.help_menu",
- action: "modals.support.toggle",
- icon: "life-buoy",
- },
- {
- keys: [getPlatformSpecialKey(), "K"],
- label: "shortcut.general.show_all",
- action: "flyouts.keybinds.toggle",
- icon: "zap",
- },
- ],
- },
- {
- section: "shortcut.navigation.title",
- shortcuts: [
- {
- keys: [getPlatformSpecialKey(), "←"],
- label: "shortcut.navigation.back",
- action: "navigation.jump.back",
- icon: "arrow-right",
- },
- {
- keys: [getPlatformSpecialKey(), "→"],
- label: "shortcut.navigation.forward",
- action: "navigation.jump.forward",
- icon: "arrow-right",
- },
- {
- keys: [getPlatformAlternateKey(), "R"],
- label: "shortcut.navigation.rest",
- action: "navigation.jump.rest",
- icon: "arrow-right",
- },
- {
- keys: [getPlatformAlternateKey(), "Q"],
- label: "shortcut.navigation.graphql",
- action: "navigation.jump.graphql",
- icon: "arrow-right",
- },
- {
- keys: [getPlatformAlternateKey(), "W"],
- label: "shortcut.navigation.realtime",
- action: "navigation.jump.realtime",
- icon: "arrow-right",
- },
- {
- keys: [getPlatformAlternateKey(), "D"],
- label: "shortcut.navigation.documentation",
- action: "navigation.jump.documentation",
- icon: "arrow-right",
- },
- {
- keys: [getPlatformAlternateKey(), "S"],
- label: "shortcut.navigation.settings",
- action: "navigation.jump.settings",
- icon: "arrow-right",
- },
- ],
- },
- {
- section: "shortcut.miscellaneous.title",
- shortcuts: [
- {
- keys: [getPlatformSpecialKey(), "M"],
- label: "shortcut.miscellaneous.invite",
- action: "modals.share.toggle",
- icon: "gift",
- },
- ],
- },
- ]
- export const fuse = [
- {
- keys: ["?"],
- label: "shortcut.general.help_menu",
- action: "modals.support.toggle",
- icon: "life-buoy",
- tags: [
- "help",
- "support",
- "menu",
- "discord",
- "twitter",
- "documentation",
- "troubleshooting",
- "chat",
- "community",
- "feedback",
- "report",
- "bug",
- "issue",
- "ticket",
- ],
- },
- {
- keys: [getPlatformSpecialKey(), "K"],
- label: "shortcut.general.show_all",
- action: "flyouts.keybinds.toggle",
- icon: "zap",
- tags: ["keyboard", "shortcuts"],
- },
- {
- keys: [getPlatformSpecialKey(), "←"],
- label: "shortcut.navigation.back",
- action: "navigation.jump.back",
- icon: "arrow-right",
- tags: ["back", "jump", "page", "navigation", "go"],
- },
- {
- keys: [getPlatformSpecialKey(), "→"],
- label: "shortcut.navigation.forward",
- action: "navigation.jump.forward",
- icon: "arrow-right",
- tags: ["forward", "jump", "next", "forward", "page", "navigation", "go"],
- },
- {
- keys: [getPlatformAlternateKey(), "R"],
- label: "shortcut.navigation.rest",
- action: "navigation.jump.rest",
- icon: "arrow-right",
- tags: ["rest", "jump", "page", "navigation", "go"],
- },
- {
- keys: [getPlatformAlternateKey(), "Q"],
- label: "shortcut.navigation.graphql",
- action: "navigation.jump.graphql",
- icon: "arrow-right",
- tags: ["graphql", "jump", "page", "navigation", "go"],
- },
- {
- keys: [getPlatformAlternateKey(), "W"],
- label: "shortcut.navigation.realtime",
- action: "navigation.jump.realtime",
- icon: "arrow-right",
- tags: [
- "realtime",
- "jump",
- "page",
- "navigation",
- "websocket",
- "socket",
- "mqtt",
- "sse",
- "go",
- ],
- },
- {
- keys: [getPlatformAlternateKey(), "D"],
- label: "shortcut.navigation.documentation",
- action: "navigation.jump.documentation",
- icon: "arrow-right",
- tags: ["documentation", "jump", "page", "navigation", "go"],
- },
- {
- keys: [getPlatformAlternateKey(), "S"],
- label: "shortcut.navigation.settings",
- action: "navigation.jump.settings",
- icon: "arrow-right",
- tags: ["settings", "jump", "page", "navigation", "account", "theme", "go"],
- },
- {
- keys: [getPlatformSpecialKey(), "M"],
- label: "shortcut.miscellaneous.invite",
- action: "modals.share.toggle",
- icon: "gift",
- tags: ["invite", "share", "app", "friends", "people", "social"],
- },
- ]
|