plugins.tsx 525 B

12345678910111213141516171819202122232425
  1. import {Plugin} from 'sentry-fixture/plugin';
  2. import {Plugin as PluginType} from 'sentry/types';
  3. export function Plugins(params: PluginType[] = []): PluginType[] {
  4. return [
  5. Plugin(),
  6. Plugin({
  7. enabled: true,
  8. id: 'github',
  9. name: 'GitHub',
  10. slug: 'github',
  11. canDisable: false,
  12. hasConfiguration: false,
  13. }),
  14. Plugin({
  15. enabled: false,
  16. isHidden: true,
  17. name: 'Hidden Plugin',
  18. slug: 'hidden-plugin',
  19. id: 'hidden-plugin',
  20. }),
  21. ...params,
  22. ];
  23. }