platforms.tsx 810 B

123456789101112131415161718192021222324252627282930
  1. import platforms from 'integration-docs-platforms';
  2. import {t} from 'app/locale';
  3. import {PlatformIntegration} from 'app/types';
  4. import {tracing} from './platformCategories';
  5. const otherPlatform = {
  6. integrations: [
  7. {
  8. link: 'https://docs.sentry.io/platforms/',
  9. type: 'language',
  10. id: 'other',
  11. name: t('Other'),
  12. },
  13. ],
  14. id: 'other',
  15. name: t('Other'),
  16. };
  17. export default ([] as PlatformIntegration[]).concat(
  18. [],
  19. ...[...platforms.platforms, otherPlatform].map(platform =>
  20. platform.integrations
  21. .map(i => ({...i, language: platform.id}))
  22. // filter out any tracing platforms; as they're not meant to be used as a platform for
  23. // the project creation flow
  24. .filter(integration => !(tracing as readonly string[]).includes(integration.id))
  25. )
  26. );