|
| 1 | +# Mirrors sentry/static/app/data/platformCategories.tsx |
| 2 | +# When changing this file, make sure to keep sentry/static/app/data/platformCategories.tsx in sync. |
| 3 | + |
| 4 | +from django.utils.translation import ugettext_lazy as _ |
| 5 | + |
| 6 | +POPULAR_PLATFORM_CATEGORIES = [ |
| 7 | + "javascript", |
| 8 | + "javascript-react", |
| 9 | + "javascript-nextjs", |
| 10 | + "python-django", |
| 11 | + "python", |
| 12 | + "python-flask", |
| 13 | + "python-fastapi", |
| 14 | + "ruby-rails", |
| 15 | + "node-express", |
| 16 | + "php-laravel", |
| 17 | + "java", |
| 18 | + "java-spring-boot", |
| 19 | + "dotnet", |
| 20 | + "dotnet-aspnetcore", |
| 21 | + "csharp", |
| 22 | + "go", |
| 23 | + "php", |
| 24 | + "ruby", |
| 25 | + "node", |
| 26 | + "react-native", |
| 27 | + "javascript-angular", |
| 28 | + "javascript-vue", |
| 29 | + "android", |
| 30 | + "apple-ios", |
| 31 | + "flutter", |
| 32 | + "dart-flutter", |
| 33 | + "unity", |
| 34 | +] |
| 35 | + |
| 36 | +FRONTEND = [ |
| 37 | + "dart", |
| 38 | + "javascript", |
| 39 | + "javascript-react", |
| 40 | + "javascript-angular", |
| 41 | + "javascript-angularjs", |
| 42 | + "javascript-backbone", |
| 43 | + "javascript-ember", |
| 44 | + "javascript-gatsby", |
| 45 | + "javascript-vue", |
| 46 | + "javascript-nextjs", |
| 47 | + "javascript-remix", |
| 48 | + "unity", |
| 49 | +] |
| 50 | + |
| 51 | +MOBILE = [ |
| 52 | + "android", |
| 53 | + "apple-ios", |
| 54 | + "cordova", |
| 55 | + "capacitor", |
| 56 | + "javascript-cordova", |
| 57 | + "javascript-capacitor", |
| 58 | + "ionic", |
| 59 | + "react-native", |
| 60 | + "flutter", |
| 61 | + "dart-flutter", |
| 62 | + "unity", |
| 63 | + "dotnet-maui", |
| 64 | + "dotnet-xamarin", |
| 65 | + "unreal", |
| 66 | + # Old platforms |
| 67 | + "java-android", |
| 68 | + "cocoa-objc", |
| 69 | + "cocoa-swift", |
| 70 | +] |
| 71 | + |
| 72 | +BACKEND = [ |
| 73 | + "dotnet", |
| 74 | + "dotnet-aspnetcore", |
| 75 | + "dotnet-aspnet", |
| 76 | + "elixir", |
| 77 | + "go", |
| 78 | + "go-http", |
| 79 | + "java", |
| 80 | + "java-appengine", |
| 81 | + "java-log4j", |
| 82 | + "java-log4j2", |
| 83 | + "java-logback", |
| 84 | + "java-logging", |
| 85 | + "java-spring", |
| 86 | + "java-spring-boot", |
| 87 | + "native", |
| 88 | + "node", |
| 89 | + "node-express", |
| 90 | + "node-koa", |
| 91 | + "node-connect", |
| 92 | + "perl", |
| 93 | + "php", |
| 94 | + "php-laravel", |
| 95 | + "php-monolog", |
| 96 | + "php-symfony2", |
| 97 | + "python", |
| 98 | + "python-django", |
| 99 | + "python-flask", |
| 100 | + "python-fastapi", |
| 101 | + "python-starlette", |
| 102 | + "python-sanic", |
| 103 | + "python-celery", |
| 104 | + "python-bottle", |
| 105 | + "python-pylons", |
| 106 | + "python-pyramid", |
| 107 | + "python-tornado", |
| 108 | + "python-rq", |
| 109 | + "ruby", |
| 110 | + "ruby-rails", |
| 111 | + "ruby-rack", |
| 112 | + "rust", |
| 113 | + "kotlin", |
| 114 | +] |
| 115 | + |
| 116 | +SERVERLESS = [ |
| 117 | + "python-awslambda", |
| 118 | + "python-azurefunctions", |
| 119 | + "python-gcpfunctions", |
| 120 | + "node-awslambda", |
| 121 | + "node-azurefunctions", |
| 122 | + "node-gcpfunctions", |
| 123 | + "dotnet-awslambda", |
| 124 | + "dotnet-gcpfunctions", |
| 125 | +] |
| 126 | + |
| 127 | +DESKTOP = [ |
| 128 | + "apple-macos", |
| 129 | + "dotnet", |
| 130 | + "dotnet-winforms", |
| 131 | + "dotnet-wpf", |
| 132 | + "dotnet-maui", |
| 133 | + "java", |
| 134 | + "electron", |
| 135 | + "javascript-electron", |
| 136 | + "native", |
| 137 | + "native-crashpad", |
| 138 | + "native-breakpad", |
| 139 | + "native-minidump", |
| 140 | + "native-qt", |
| 141 | + "minidump", |
| 142 | + "unity", |
| 143 | + "flutter", |
| 144 | + "kotlin", |
| 145 | + "unreal", |
| 146 | +] |
| 147 | + |
| 148 | +CATEGORY_LIST = [ |
| 149 | + {id: "popular", "name": _("Popular"), "platforms": POPULAR_PLATFORM_CATEGORIES}, |
| 150 | + {id: "browser", "name": _("Browser"), "platforms": FRONTEND}, |
| 151 | + {id: "server", "name": _("Server"), "platforms": BACKEND}, |
| 152 | + {id: "mobile", "name": _("Mobile"), "platforms": MOBILE}, |
| 153 | + {id: "desktop", "name": _("Desktop"), "platforms": DESKTOP}, |
| 154 | + {id: "serverless", "name": _("Serverless"), "platforms": SERVERLESS}, |
| 155 | +] |
| 156 | + |
| 157 | +SOURCE_MAPS = FRONTEND + [ |
| 158 | + "react-native", |
| 159 | + "cordova", |
| 160 | + "electron", |
| 161 | +] |
| 162 | + |
| 163 | +TRACING = [ |
| 164 | + "python-tracing", |
| 165 | + "node-tracing", |
| 166 | + "react-native-tracing", |
| 167 | +] |
| 168 | + |
| 169 | +PERFORMANCE = [ |
| 170 | + "javascript", |
| 171 | + "javascript-ember", |
| 172 | + "javascript-react", |
| 173 | + "javascript-vue", |
| 174 | + "php", |
| 175 | + "php-laravel", |
| 176 | + "python", |
| 177 | + "python-django", |
| 178 | + "python-flask", |
| 179 | + "python-fastapi", |
| 180 | + "python-starlette", |
| 181 | + "python-sanic", |
| 182 | + "python-celery", |
| 183 | + "python-bottle", |
| 184 | + "python-pylons", |
| 185 | + "python-pyramid", |
| 186 | + "python-tornado", |
| 187 | + "python-rq", |
| 188 | + "node", |
| 189 | + "node-express", |
| 190 | + "node-koa", |
| 191 | + "node-connect", |
| 192 | +] |
| 193 | + |
| 194 | +# List of platforms that have performance onboarding checklist content |
| 195 | +WITH_PERFORMANCE_ONBOARDING = [ |
| 196 | + "javascript", |
| 197 | + "javascript-react", |
| 198 | +] |
| 199 | + |
| 200 | +# List of platforms that do not have performance support. We make use of this list in the product to not provide any Performance |
| 201 | +# views such as Performance onboarding checklist. |
| 202 | +WITHOUT_PERFORMANCE_SUPPORT = [ |
| 203 | + "elixir", |
| 204 | + "minidump", |
| 205 | +] |
| 206 | + |
| 207 | +RELEASE_HEALTH = [ |
| 208 | + # frontend |
| 209 | + "javascript", |
| 210 | + "javascript-react", |
| 211 | + "javascript-angular", |
| 212 | + "javascript-angularjs", |
| 213 | + "javascript-backbone", |
| 214 | + "javascript-ember", |
| 215 | + "javascript-gatsby", |
| 216 | + "javascript-vue", |
| 217 | + "javascript-nextjs", |
| 218 | + "javascript-remix", |
| 219 | + # mobile |
| 220 | + "android", |
| 221 | + "apple-ios", |
| 222 | + "cordova", |
| 223 | + "javascript-cordova", |
| 224 | + "react-native", |
| 225 | + "flutter", |
| 226 | + "dart-flutter", |
| 227 | + # backend |
| 228 | + "native", |
| 229 | + "node", |
| 230 | + "node-express", |
| 231 | + "node-koa", |
| 232 | + "node-connect", |
| 233 | + "python", |
| 234 | + "python-django", |
| 235 | + "python-flask", |
| 236 | + "python-fastapi", |
| 237 | + "python-starlette", |
| 238 | + "python-sanic", |
| 239 | + "python-celery", |
| 240 | + "python-bottle", |
| 241 | + "python-pylons", |
| 242 | + "python-pyramid", |
| 243 | + "python-tornado", |
| 244 | + "python-rq", |
| 245 | + "rust", |
| 246 | + # serverless |
| 247 | + # desktop |
| 248 | + "apple-macos", |
| 249 | + "native", |
| 250 | + "native-crashpad", |
| 251 | + "native-breakpad", |
| 252 | + "native-qt", |
| 253 | +] |
| 254 | + |
| 255 | +# Additional aliases used for filtering in the platform picker |
| 256 | +FILTER_ALIAS = { |
| 257 | + "native": ["cpp", "c++"], |
| 258 | +} |
0 commit comments