12345678910111213141516 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import { keyBy } from 'lodash-es'
- import type { UserTaskbarTabPlugin } from '../types.ts'
- const plugins = import.meta.glob<UserTaskbarTabPlugin>(
- ['./**/*.ts', '!./**/index.ts', '!./types.ts', '!./__tests__/**/*.ts'],
- {
- eager: true,
- import: 'default',
- },
- )
- export const userTaskbarTabPlugins = Object.values(plugins)
- export const userTaskbarTabPluginByType = keyBy(userTaskbarTabPlugins, 'type')
|