storage-buckets.ts33 lines · main
| 1 | // @ts-nocheck |
| 2 | import { RegistryDefinations } from '../types' |
| 3 | |
| 4 | /** |
| 5 | * Shortcuts scoped to the Storage Files (bucket list) page. |
| 6 | * |
| 7 | * The shared list-page shortcuts (focus search, create new item) are reused |
| 8 | * directly from `list-page.ts`. Only bucket-specific actions live here. |
| 9 | */ |
| 10 | export const STORAGE_BUCKETS_SHORTCUT_IDS = { |
| 11 | STORAGE_BUCKETS_REFRESH: 'storage-buckets.refresh', |
| 12 | STORAGE_BUCKETS_CLEAR_SORT: 'storage-buckets.clear-sort', |
| 13 | } |
| 14 | |
| 15 | export type StorageBucketsShortcutId = |
| 16 | (typeof STORAGE_BUCKETS_SHORTCUT_IDS)[keyof typeof STORAGE_BUCKETS_SHORTCUT_IDS] |
| 17 | |
| 18 | export const storageBucketsRegistry: RegistryDefinations<StorageBucketsShortcutId> = { |
| 19 | [STORAGE_BUCKETS_SHORTCUT_IDS.STORAGE_BUCKETS_REFRESH]: { |
| 20 | id: STORAGE_BUCKETS_SHORTCUT_IDS.STORAGE_BUCKETS_REFRESH, |
| 21 | label: 'Refresh buckets', |
| 22 | sequence: ['Shift+R'], |
| 23 | showInSettings: false, |
| 24 | options: { ignoreInputs: true, registerInCommandMenu: true }, |
| 25 | }, |
| 26 | [STORAGE_BUCKETS_SHORTCUT_IDS.STORAGE_BUCKETS_CLEAR_SORT]: { |
| 27 | id: STORAGE_BUCKETS_SHORTCUT_IDS.STORAGE_BUCKETS_CLEAR_SORT, |
| 28 | label: 'Reset bucket sort', |
| 29 | sequence: ['S', 'C'], |
| 30 | showInSettings: false, |
| 31 | options: { ignoreInputs: true, registerInCommandMenu: true }, |
| 32 | }, |
| 33 | } |