referenceGroups.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. export const SHORTCUT_REFERENCE_GROUPS = {
  2. NAVIGATION_GLOBAL: 'navigation.global',
  3. NAVIGATION_DATABASE: 'navigation.database',
  4. NAVIGATION_AUTH: 'navigation.auth',
  5. NAVIGATION_STORAGE: 'navigation.storage',
  6. NAVIGATION_FUNCTIONS: 'navigation.functions',
  7. NAVIGATION_FUNCTION_DETAIL: 'navigation.function-detail',
  8. NAVIGATION_REALTIME: 'navigation.realtime',
  9. } as const
  10. export const SHORTCUT_REFERENCE_GROUP_LABELS: Record<string, string> = {
  11. [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_GLOBAL]: 'Global Navigation',
  12. [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_DATABASE]: 'Database Navigation',
  13. [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_AUTH]: 'Auth Navigation',
  14. [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_STORAGE]: 'Storage Navigation',
  15. [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_FUNCTIONS]: 'Edge Functions Navigation',
  16. [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_FUNCTION_DETAIL]: 'Edge Function Tabs',
  17. [SHORTCUT_REFERENCE_GROUPS.NAVIGATION_REALTIME]: 'Realtime Navigation',
  18. }
  19. export const SHORTCUT_REFERENCE_GROUP_ORDER = [
  20. 'command-menu',
  21. 'shortcuts',
  22. SHORTCUT_REFERENCE_GROUPS.NAVIGATION_GLOBAL,
  23. SHORTCUT_REFERENCE_GROUPS.NAVIGATION_DATABASE,
  24. SHORTCUT_REFERENCE_GROUPS.NAVIGATION_AUTH,
  25. 'auth-users',
  26. SHORTCUT_REFERENCE_GROUPS.NAVIGATION_STORAGE,
  27. 'storage-buckets',
  28. 'storage-explorer',
  29. SHORTCUT_REFERENCE_GROUPS.NAVIGATION_FUNCTIONS,
  30. 'functions-list',
  31. SHORTCUT_REFERENCE_GROUPS.NAVIGATION_FUNCTION_DETAIL,
  32. 'functions-detail',
  33. 'functions-overview',
  34. SHORTCUT_REFERENCE_GROUPS.NAVIGATION_REALTIME,
  35. 'realtime-inspector',
  36. 'logs-preview',
  37. 'nav',
  38. 'ai-assistant',
  39. 'inline-editor',
  40. 'sql-editor',
  41. 'results',
  42. 'data-table',
  43. 'table-editor',
  44. 'schema-visualizer',
  45. 'list-page',
  46. 'action-bar',
  47. 'operation-queue',
  48. 'unified-logs',
  49. ]