import {t} from 'sentry/locale'; import type {PlatformKey} from 'sentry/types/project'; const popularPlatformCategories: Set = new Set([ 'android', 'apple-ios', 'dotnet', 'dotnet-aspnetcore', 'flutter', 'go', 'java', 'java-spring-boot', 'javascript', 'javascript-angular', 'javascript-nextjs', 'javascript-react', 'javascript-vue', 'node', 'node-express', 'node-nestjs', 'php', 'php-laravel', 'python', 'python-django', 'python-fastapi', 'python-flask', 'react-native', 'ruby-rails', 'ruby', 'unity', ]); const browser: Set = new Set([ 'dart', 'javascript', 'javascript-angular', 'javascript-astro', 'javascript-ember', 'javascript-gatsby', 'javascript-nextjs', 'javascript-react', 'javascript-remix', 'javascript-solid', 'javascript-solidstart', 'javascript-svelte', 'javascript-sveltekit', 'javascript-vue', 'javascript-nuxt', 'unity', ]); const server: Set = new Set([ 'bun', 'deno', 'dotnet', 'dotnet-aspnet', 'dotnet-aspnetcore', 'elixir', 'go', 'go-http', 'go-echo', 'go-fasthttp', 'go-fiber', 'go-gin', 'go-iris', 'go-negroni', 'java', 'java-log4j2', 'java-logback', 'java-spring', 'java-spring-boot', 'kotlin', 'native', 'node', 'node-connect', 'node-express', 'node-fastify', 'node-hapi', 'node-koa', 'node-nestjs', 'php', 'php-laravel', 'php-symfony', 'powershell', 'python', 'python-aiohttp', 'python-asgi', 'python-bottle', 'python-celery', 'python-chalice', 'python-django', 'python-falcon', 'python-fastapi', 'python-flask', 'python-pyramid', 'python-quart', 'python-rq', 'python-sanic', 'python-starlette', 'python-tornado', 'python-tryton', 'python-wsgi', 'ruby', 'ruby-rack', 'ruby-rails', 'rust', ]); const mobile: Set = new Set([ 'android', 'apple-ios', 'capacitor', 'cordova', 'dotnet-maui', 'dotnet-xamarin', 'flutter', 'ionic', 'react-native', 'unity', 'unreal', ]); const desktop: Set = new Set([ 'apple-macos', 'dotnet', 'dotnet-maui', 'dotnet-winforms', 'dotnet-wpf', 'electron', 'flutter', 'java', 'kotlin', 'minidump', 'native', 'native-qt', 'unity', 'unreal', ]); const serverless: Set = new Set([ 'dotnet-awslambda', 'dotnet-gcpfunctions', 'node-awslambda', 'node-azurefunctions', 'node-gcpfunctions', 'python-awslambda', 'python-gcpfunctions', 'python-serverless', ]); export const createablePlatforms: Set = new Set([ ...popularPlatformCategories, ...browser, ...server, ...mobile, ...desktop, ...serverless, ]); /** * Additional aliases used for filtering in the platform picker */ export const filterAliases: Partial> = { native: ['cpp', 'c++'], }; const categoryList = [ {id: 'popular', name: t('Popular'), platforms: popularPlatformCategories}, {id: 'browser', name: t('Browser'), platforms: browser}, {id: 'server', name: t('Server'), platforms: server}, {id: 'mobile', name: t('Mobile'), platforms: mobile}, {id: 'desktop', name: t('Desktop'), platforms: desktop}, {id: 'serverless', name: t('Serverless'), platforms: serverless}, { id: 'all', name: t('All'), platforms: createablePlatforms, }, ]; export default categoryList; // TODO(aknaus): Drop in favour of PlatformIntegration export type Platform = { key: PlatformKey; id?: string; link?: string | null; name?: string; };