jwt-keys.ts25 lines · main
| 1 | // @ts-nocheck |
| 2 | import { RegistryDefinations } from '../types' |
| 3 | |
| 4 | export const JWT_KEYS_SHORTCUT_IDS = { |
| 5 | JWT_KEYS_CREATE_STANDBY: 'jwt-keys.create-standby', |
| 6 | JWT_KEYS_SUBMIT_STANDBY: 'jwt-keys.submit-standby', |
| 7 | } |
| 8 | |
| 9 | export type JwtKeysShortcutId = (typeof JWT_KEYS_SHORTCUT_IDS)[keyof typeof JWT_KEYS_SHORTCUT_IDS] |
| 10 | |
| 11 | export const jwtKeysRegistry: RegistryDefinations<JwtKeysShortcutId> = { |
| 12 | [JWT_KEYS_SHORTCUT_IDS.JWT_KEYS_CREATE_STANDBY]: { |
| 13 | id: JWT_KEYS_SHORTCUT_IDS.JWT_KEYS_CREATE_STANDBY, |
| 14 | label: 'Create standby key', |
| 15 | sequence: ['Shift+N'], |
| 16 | showInSettings: false, |
| 17 | options: { ignoreInputs: true, registerInCommandMenu: true }, |
| 18 | }, |
| 19 | [JWT_KEYS_SHORTCUT_IDS.JWT_KEYS_SUBMIT_STANDBY]: { |
| 20 | id: JWT_KEYS_SHORTCUT_IDS.JWT_KEYS_SUBMIT_STANDBY, |
| 21 | label: 'Create standby key', |
| 22 | sequence: ['Mod+Enter'], |
| 23 | showInSettings: false, |
| 24 | }, |
| 25 | } |