storage-buckets.ts 1.2 KB

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