index.ts 491 B

12345678910111213141516
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { keyBy } from 'lodash-es'
  3. import type { UserTaskbarTabPlugin } from '../types.ts'
  4. const plugins = import.meta.glob<UserTaskbarTabPlugin>(
  5. ['./**/*.ts', '!./**/index.ts', '!./types.ts', '!./__tests__/**/*.ts'],
  6. {
  7. eager: true,
  8. import: 'default',
  9. },
  10. )
  11. export const userTaskbarTabPlugins = Object.values(plugins)
  12. export const userTaskbarTabPluginByType = keyBy(userTaskbarTabPlugins, 'type')