platformCategories.tsx 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. import {t} from 'app/locale';
  2. const popular = [
  3. 'javascript',
  4. 'javascript-react',
  5. 'python-django',
  6. 'python',
  7. 'python-flask',
  8. 'ruby-rails',
  9. 'node-express',
  10. 'php-laravel',
  11. 'java',
  12. 'java-spring-boot',
  13. 'dotnet',
  14. 'dotnet-aspnetcore',
  15. 'csharp',
  16. 'go',
  17. 'php',
  18. 'ruby',
  19. 'node',
  20. 'react-native',
  21. 'javascript-angular',
  22. 'javascript-vue',
  23. 'android',
  24. 'apple-ios',
  25. 'flutter',
  26. 'dart-flutter',
  27. ] as const;
  28. export const frontend = [
  29. 'dart',
  30. 'javascript',
  31. 'javascript-react',
  32. 'javascript-angular',
  33. 'javascript-angularjs',
  34. 'javascript-backbone',
  35. 'javascript-ember',
  36. 'javascript-gatsby',
  37. 'javascript-vue',
  38. 'javascript-nextjs',
  39. ] as const;
  40. export const mobile = [
  41. 'android',
  42. 'apple-ios',
  43. 'cordova',
  44. 'javascript-cordova',
  45. 'javascript-capacitor',
  46. 'react-native',
  47. 'flutter',
  48. 'dart-flutter',
  49. 'unity',
  50. 'dotnet-xamarin',
  51. ] as const;
  52. export const backend = [
  53. 'dotnet',
  54. 'dotnet-aspnetcore',
  55. 'dotnet-aspnet',
  56. 'elixir',
  57. 'go',
  58. 'go-http',
  59. 'java',
  60. 'java-appengine',
  61. 'java-log4j',
  62. 'java-log4j2',
  63. 'java-logback',
  64. 'java-logging',
  65. 'java-spring',
  66. 'java-spring-boot',
  67. 'native',
  68. 'node',
  69. 'node-express',
  70. 'node-koa',
  71. 'node-connect',
  72. 'perl',
  73. 'php',
  74. 'php-laravel',
  75. 'php-monolog',
  76. 'php-symfony2',
  77. 'python',
  78. 'python-django',
  79. 'python-flask',
  80. 'python-sanic',
  81. 'python-celery',
  82. 'python-bottle',
  83. 'python-pylons',
  84. 'python-pyramid',
  85. 'python-tornado',
  86. 'python-rq',
  87. 'ruby',
  88. 'ruby-rails',
  89. 'ruby-rack',
  90. 'rust',
  91. ] as const;
  92. export const serverless = [
  93. 'python-awslambda',
  94. 'python-azurefunctions',
  95. 'python-gcpfunctions',
  96. 'node-awslambda',
  97. 'node-azurefunctions',
  98. 'node-gcpfunctions',
  99. 'dotnet-awslambda',
  100. ] as const;
  101. export const desktop = [
  102. 'apple-macos',
  103. 'dotnet',
  104. 'dotnet-winforms',
  105. 'dotnet-wpf',
  106. 'java',
  107. 'electron',
  108. 'javascript-electron',
  109. 'native',
  110. 'native-crashpad',
  111. 'native-breakpad',
  112. 'native-minidump',
  113. 'native-qt',
  114. 'minidump',
  115. 'unity',
  116. ] as const;
  117. const categoryList = [
  118. {id: 'popular', name: t('Popular'), platforms: popular},
  119. {id: 'browser', name: t('Browser'), platforms: frontend},
  120. {id: 'server', name: t('Server'), platforms: backend},
  121. {id: 'mobile', name: t('Mobile'), platforms: mobile},
  122. {id: 'desktop', name: t('Desktop'), platforms: desktop},
  123. {id: 'serverless', name: t('Serverless'), platforms: serverless},
  124. ] as const;
  125. export const sourceMaps: PlatformKey[] = [
  126. ...frontend,
  127. 'react-native',
  128. 'cordova',
  129. 'electron',
  130. ];
  131. export const tracing = ['python-tracing', 'node-tracing'] as const;
  132. export const performance: PlatformKey[] = [
  133. 'javascript',
  134. 'javascript-ember',
  135. 'javascript-react',
  136. 'javascript-vue',
  137. 'php',
  138. 'php-laravel',
  139. 'python',
  140. 'python-django',
  141. 'python-flask',
  142. 'python-sanic',
  143. 'python-celery',
  144. 'python-bottle',
  145. 'python-pylons',
  146. 'python-pyramid',
  147. 'python-tornado',
  148. 'python-rq',
  149. 'node',
  150. 'node-express',
  151. 'node-koa',
  152. 'node-connect',
  153. ];
  154. export const releaseHealth: PlatformKey[] = [
  155. // frontend
  156. 'javascript',
  157. 'javascript-react',
  158. 'javascript-angular',
  159. 'javascript-angularjs',
  160. 'javascript-backbone',
  161. 'javascript-ember',
  162. 'javascript-gatsby',
  163. 'javascript-vue',
  164. 'javascript-nextjs',
  165. // mobile
  166. 'android',
  167. 'apple-ios',
  168. 'cordova',
  169. 'javascript-cordova',
  170. 'react-native',
  171. 'flutter',
  172. 'dart-flutter',
  173. // backend
  174. 'native',
  175. 'node',
  176. 'node-express',
  177. 'node-koa',
  178. 'node-connect',
  179. 'python',
  180. 'python-django',
  181. 'python-flask',
  182. 'python-sanic',
  183. 'python-celery',
  184. 'python-bottle',
  185. 'python-pylons',
  186. 'python-pyramid',
  187. 'python-tornado',
  188. 'python-rq',
  189. 'rust',
  190. // serverless
  191. // desktop
  192. 'apple-macos',
  193. 'native',
  194. 'native-crashpad',
  195. 'native-breakpad',
  196. 'native-qt',
  197. ];
  198. /**
  199. * Additional aliases used for filtering in the platform picker
  200. */
  201. export const filterAliases: Partial<Record<PlatformKey, string[]>> = {
  202. native: ['cpp', 'c++'],
  203. };
  204. export type PlatformKey =
  205. | typeof popular[number]
  206. | typeof frontend[number]
  207. | typeof mobile[number]
  208. | typeof backend[number]
  209. | typeof desktop[number]
  210. | typeof tracing[number]
  211. | typeof serverless[number]
  212. | 'other';
  213. export default categoryList;