api-keys.ts40 lines · main
| 1 | // @ts-nocheck |
| 2 | import { RegistryDefinations } from '../types' |
| 3 | |
| 4 | export const API_KEYS_SHORTCUT_IDS = { |
| 5 | API_KEYS_NEW_PUBLISHABLE: 'api-keys.new-publishable', |
| 6 | API_KEYS_NEW_SECRET: 'api-keys.new-secret', |
| 7 | API_KEYS_CREATE_PUBLISHABLE: 'api-keys.create-publishable', |
| 8 | API_KEYS_CREATE_SECRET: 'api-keys.create-secret', |
| 9 | } |
| 10 | |
| 11 | export type ApiKeysShortcutId = (typeof API_KEYS_SHORTCUT_IDS)[keyof typeof API_KEYS_SHORTCUT_IDS] |
| 12 | |
| 13 | export const apiKeysRegistry: RegistryDefinations<ApiKeysShortcutId> = { |
| 14 | [API_KEYS_SHORTCUT_IDS.API_KEYS_NEW_PUBLISHABLE]: { |
| 15 | id: API_KEYS_SHORTCUT_IDS.API_KEYS_NEW_PUBLISHABLE, |
| 16 | label: 'New publishable key', |
| 17 | sequence: ['Shift+P'], |
| 18 | showInSettings: false, |
| 19 | options: { ignoreInputs: true, registerInCommandMenu: true }, |
| 20 | }, |
| 21 | [API_KEYS_SHORTCUT_IDS.API_KEYS_NEW_SECRET]: { |
| 22 | id: API_KEYS_SHORTCUT_IDS.API_KEYS_NEW_SECRET, |
| 23 | label: 'New secret key', |
| 24 | sequence: ['Shift+S'], |
| 25 | showInSettings: false, |
| 26 | options: { ignoreInputs: true, registerInCommandMenu: true }, |
| 27 | }, |
| 28 | [API_KEYS_SHORTCUT_IDS.API_KEYS_CREATE_PUBLISHABLE]: { |
| 29 | id: API_KEYS_SHORTCUT_IDS.API_KEYS_CREATE_PUBLISHABLE, |
| 30 | label: 'Create publishable key', |
| 31 | sequence: ['Mod+Enter'], |
| 32 | showInSettings: false, |
| 33 | }, |
| 34 | [API_KEYS_SHORTCUT_IDS.API_KEYS_CREATE_SECRET]: { |
| 35 | id: API_KEYS_SHORTCUT_IDS.API_KEYS_CREATE_SECRET, |
| 36 | label: 'Create secret key', |
| 37 | sequence: ['Mod+Enter'], |
| 38 | showInSettings: false, |
| 39 | }, |
| 40 | } |