platformicons 6.0.3 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +3 -3
- package/build/index.js +5 -2
- package/build/index.js.map +1 -1
- package/build/platformIcon.d.ts +239 -239
- package/build/platformIcon.js +276 -0
- package/build/platformIcon.js.map +1 -0
- package/build/preload.d.ts +6 -6
- package/build/preload.js +20 -0
- package/build/preload.js.map +1 -0
- package/package.json +9 -9
- package/build/index.esm.js +0 -2
- package/build/index.esm.js.map +0 -1
- package/build/index.modern.js +0 -2
- package/build/index.modern.js.map +0 -1
- package/build/index.umd.js +0 -2
- package/build/index.umd.js.map +0 -1
package/build/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as PlatformIcon } from "./platformIcon";
|
|
2
|
-
export { preloadIcons } from "./preload";
|
|
3
|
-
export declare const platforms: string[];
|
|
1
|
+
export { default as PlatformIcon } from "./platformIcon";
|
|
2
|
+
export { preloadIcons } from "./preload";
|
|
3
|
+
export declare const platforms: string[];
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { default as PlatformIcon } from "./platformIcon";
|
|
2
|
+
export { preloadIcons } from "./preload";
|
|
3
|
+
import { PLATFORM_TO_ICON } from "./platformIcon";
|
|
4
|
+
export const platforms = Object.keys(PLATFORM_TO_ICON);
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/platformIcon.tsx","../src/index.tsx","../src/preload.tsx"],"sourcesContent":["import React from \"react\";\n\nexport const PLATFORM_TO_ICON = {\n amazon: \"amazon\",\n amd: \"amd\",\n android: \"android\",\n \"android-phone\": \"android-phone\",\n \"android-tablet\": \"android-tablet\",\n anthropic: \"anthropic\",\n apple: \"apple\",\n \"apple-ipad\": \"apple-ipad\",\n \"apple-iphone\": \"apple-iphone\",\n \"apple-tv\": \"apple-tv\",\n \"apple-watch\": \"apple-watch\",\n arm: \"arm\",\n bun: \"bun\",\n capacitor: \"capacitor\",\n chrome: \"chrome\",\n chromium: \"chromium\",\n clojure: \"clojure\",\n cocoa: \"apple\",\n \"cocoa-objc\": \"apple\",\n \"cocoa-swift\": \"swift\",\n cohere: \"cohere\",\n cordova: \"cordova\",\n cloudflare: \"cloudflare\",\n cpp: \"cpp\",\n cryengine: \"cryengine\",\n crystal: \"crystal\",\n css: \"css\",\n csharp: \"csharp\",\n \"csharp-aspnetcore\": \"csharp\",\n dart: \"dart\",\n default: \"default\",\n deno: \"deno\",\n dotnet: \"dotnet\",\n \"dotnet-aspnetcore\": \"dotnet\",\n \"dotnet-aspnet\": \"dotnet\",\n \"dotnet-awslambda\": \"awslambda\",\n \"dotnet-blazor\": \"blazor\",\n \"dotnet-csharp\": \"csharp\",\n \"dotnet-gcpfunctions\": \"gcp-functions\",\n \"dotnet-maui\": \"maui\",\n \"dotnet-uno\": \"uno\",\n \"dotnet-xamarin\": \"xamarin\",\n dotnetcore: \"dotnetcore\",\n dotnetfx: \"dotnetfx\",\n dotnetframework: \"dotnetframework\",\n edge: \"edge\",\n \"edge-legacy\": \"edge-legacy\",\n electron: \"electron\",\n elixir: \"elixir\",\n firefox: \"firefox\",\n flutter: \"flutter\",\n font: \"font\",\n fsharp: \"fsharp\",\n git: \"git\",\n go: \"go\",\n \"go-echo\": \"echo\",\n \"go-fasthttp\": \"fasthttp\",\n \"go-fiber\": \"fiber\",\n \"go-gin\": \"gin\",\n \"go-iris\": \"iris\",\n \"go-martini\": \"martini\",\n \"go-negroni\": \"go\",\n godot: \"godot\",\n huggingface: \"huggingface\",\n \"internet-explorer\": \"internet-explorer\",\n java: \"java\",\n \"java-appengine\": \"app-engine\",\n \"java-android\": \"android\",\n \"java-log4j\": \"java\",\n \"java-log4j2\": \"java\",\n \"java-logback\": \"logback\",\n \"java-logging\": \"java\",\n \"java-ray\": \"ray\",\n \"java-spring\": \"spring\",\n \"java-spring-boot\": \"springboot\",\n javascript: \"javascript\",\n \"javascript-alpinejs\": \"alpinejs\",\n \"javascript-analogjs\": \"analogjs\",\n \"javascript-angular\": \"angularjs\",\n \"javascript-angularjs\": \"angularjs\",\n \"javascript-astro\": \"astro\",\n \"javascript-backbone\": \"backbone\",\n \"javascript-browser\": \"javascript\",\n \"javascript-capacitor\": \"capacitor\",\n \"javascript-cordova\": \"cordova\",\n \"javascript-electron\": \"electron\",\n \"javascript-ember\": \"ember\",\n \"javascript-gatsby\": \"gatsby\",\n \"javascript-hono\": \"hono\",\n \"javascript-hydrogen\": \"hydrogen\",\n \"javascript-ionic\": \"ionic\",\n \"javascript-lit\": \"lit\",\n \"javascript-meteor\": \"meteor\",\n \"javascript-million\": \"million\",\n \"javascript-nextjs\": \"nextjs\",\n \"javascript-nuxt\": \"nuxt\",\n \"javascript-opennext\": \"opennext\",\n \"javascript-qwik\": \"qwik\",\n \"javascript-react\": \"react\",\n \"javascript-remix\": \"remix\",\n \"javascript-solid\": \"solid\",\n \"javascript-solidstart\": \"solidstart\",\n \"javascript-svelte\": \"svelte\",\n \"javascript-sveltekit\": \"svelte\",\n \"javascript-vue\": \"vue\",\n \"javascript-wasm\": \"wasm\",\n \"javascript-node\": \"nodejs\",\n \"javascript-awslambda\": \"awslambda\",\n \"javascript-azurefunctions\": \"azure-functions\",\n \"javascript-connect\": \"connect\",\n \"javascript-express\": \"express\",\n \"javascript-fastify\": \"fastify\",\n \"javascript-gcpfunctions\": \"gcp-functions\",\n \"javascript-hapi\": \"hapi\",\n \"javascript-koa\": \"koa\",\n \"javascript-nestjs\": \"nestjs\",\n \"javascript-serverlesscloud\": \"serverless\",\n ionic: \"ionic\",\n kotlin: \"kotlin\",\n \"kotlin-android\": \"android\",\n langchain: \"langchain\",\n linux: \"linux\",\n mono: \"mono\",\n motorola: \"motorola\",\n native: \"nativec\",\n \"native-qt\": \"qt\",\n nintendo: \"nintendo\",\n \"nintendo-switch\": \"nintendo-switch\",\n node: \"nodejs\",\n \"node-awslambda\": \"awslambda\",\n \"node-azurefunctions\": \"azure-functions\",\n \"node-connect\": \"connect\",\n \"node-express\": \"express\",\n \"node-fastify\": \"fastify\",\n \"node-gcpfunctions\": \"gcp-functions\",\n \"node-hapi\": \"hapi\",\n \"node-koa\": \"koa\",\n \"node-nestjs\": \"nestjs\",\n \"node-serverlesscloud\": \"serverless\",\n nvidia: \"nvidia\",\n openai: \"openai\",\n opera: \"opera\",\n perl: \"perl\",\n php: \"php\",\n playstation: \"playstation\",\n powershell: \"powershell\",\n \"php-laravel\": \"laravel\",\n \"php-livewire\": \"livewire\",\n \"php-magento\": \"magento\",\n \"php-monolog\": \"php\",\n \"php-symfony2\": \"symfony\",\n \"php-symfony\": \"symfony\",\n python: \"python\",\n \"python-aiohttp\": \"aiohttp\",\n \"python-airflow\": \"apache-airflow\",\n \"python-ariadne\": \"ariadne\",\n \"python-asyncpg\": \"postgresql\",\n \"python-awslambda\": \"awslambda\",\n \"python-azurefunctions\": \"azure-functions\",\n \"python-beam\": \"apache-beam\",\n \"python-boto3\": \"aws\",\n \"python-bottle\": \"bottle\",\n \"python-celery\": \"celery\",\n \"python-chalice\": \"chalice\",\n \"python-clickhouse-driver\": \"clickhouse\",\n \"python-django\": \"django\",\n \"python-dramatiq\": \"dramatiq\",\n \"python-falcon\": \"falcon\",\n \"python-fastapi\": \"fastapi\",\n \"python-flask\": \"flask\",\n \"python-gcpfunctions\": \"gcp-functions\",\n \"python-gnu_backtrace\": \"gnu\",\n \"python-gql\": \"graphql\",\n \"python-graphene\": \"graphene\",\n \"python-grpc\": \"grpc\",\n \"python-httpx\": \"httpx\",\n \"python-huey\": \"huey\",\n \"python-litestar\": \"litestar\",\n \"python-loguru\": \"loguru\",\n \"python-pylons\": \"python\",\n \"python-pymongo\": \"mongodb\",\n \"python-pyramid\": \"pyramid\",\n \"python-pythonawslambda\": \"awslambda\",\n \"python-quart\": \"quart\",\n \"python-ray\": \"ray\",\n \"python-redis\": \"redis\",\n \"python-rq\": \"redis\",\n \"python-sanic\": \"sanic\",\n \"python-serverless\": \"serverless\",\n \"python-starlette\": \"starlette\",\n \"python-strawberry\": \"strawberry\",\n \"python-spark\": \"apache-spark\",\n \"python-sqlalchemy\": \"sqlalchemy\",\n \"python-tornado\": \"tornado\",\n \"python-tryton\": \"tryton\",\n qq: \"qq\",\n qt: \"qt\",\n \"react-native\": \"react-native\",\n ruby: \"ruby\",\n \"ruby-activeadmin\": \"activeadmin\",\n \"ruby-grape\": \"grape\",\n \"ruby-hanami\": \"hanami\",\n \"ruby-padrino\": \"padrino\",\n \"ruby-rack\": \"ruby\",\n \"ruby-rails\": \"rails\",\n \"ruby-sidekiq\": \"sidekiq\",\n \"ruby-sinatra\": \"sinatra\",\n \"ruby-trailblazer\": \"trailblazer\",\n rust: \"rust\",\n \"rust-actix\": \"actix\",\n safari: \"safari\",\n samsung: \"samsung\",\n scala: \"scala\",\n stride3d: \"stride3d\",\n sql: \"sql\",\n sqlserver: \"sqlserver\",\n swift: \"swift\",\n tauri: \"tauri\",\n ubuntu: \"ubuntu\",\n unity: \"unity\",\n // This will be deprecated in favor of 'unrealengine'\n ue4: \"unreal\",\n unreal: \"unreal\",\n unrealengine: \"unreal\",\n visualbasic: \"visual-basic\",\n vscode: \"vscode\",\n windows: \"windows\",\n // Don't add new platforms down here!\n // Please add them where they belong alphabetically\n} as const;\n\nfunction normalizePlatform(platform: string): string {\n // sentry uses format python-django, but docs uses python.django\n // this function normalizes that\n return platform.replace(\".\", \"-\");\n}\n\nfunction getIcon(platform: string): Platform {\n const normalizedPlatform = normalizePlatform(platform);\n const icon = PLATFORM_TO_ICON[normalizedPlatform];\n\n if (icon) {\n return icon;\n }\n\n if (normalizedPlatform.includes(\"-\")) {\n return getLanguageIcon(normalizedPlatform);\n }\n\n return \"default\";\n}\n\nfunction getLanguageIcon(platform: string): Platform {\n const [language] = normalizePlatform(platform).split(\"-\");\n\n return getIcon(language);\n}\n\ntype Platform = (typeof PLATFORM_TO_ICON)[keyof typeof PLATFORM_TO_ICON];\n\ntype Props = React.HTMLAttributes<HTMLDivElement | HTMLImageElement> & {\n platform: string;\n size?: string | number;\n format?: \"sm\" | \"lg\";\n radius?: number | null;\n withLanguageIcon?: boolean;\n languageIconStyles?: React.CSSProperties;\n};\n\nconst PlatformIcon = ({\n platform,\n size = 20,\n format = \"sm\",\n radius = 3,\n withLanguageIcon,\n languageIconStyles = {},\n style = {},\n ...otherProps\n}: Props) => {\n const icon = getIcon(platform);\n const iconPathRaw = require(\n `../${format === \"lg\" ? \"svg_80x80\" : \"svg\"}/${icon}.svg`,\n );\n const iconPath = iconPathRaw?.default ?? iconPathRaw;\n\n const languageIcon = getLanguageIcon(platform);\n const languageIconPathRaw = require(`../svg/${languageIcon}.svg`);\n const languageIconPath = languageIconPathRaw?.default ?? languageIconPathRaw;\n\n if (withLanguageIcon && languageIcon !== icon && languageIcon !== \"default\") {\n return (\n <div {...otherProps} style={{ position: \"relative\", ...style }}>\n <img\n src={iconPath}\n width={size}\n height={size}\n style={{ borderRadius: `${radius}px` }}\n />\n <img\n src={languageIconPath}\n style={{\n position: \"absolute\",\n bottom: \"-1px\",\n right: \"-1px\",\n height: \"30%\",\n width: \"30%\",\n borderRadius: \"2px\",\n ...languageIconStyles,\n }}\n />\n </div>\n );\n }\n\n return (\n <img\n src={iconPath}\n width={size}\n height={size}\n {...otherProps}\n style={{ borderRadius: `${radius}px`, ...style }}\n />\n );\n};\n\nexport default PlatformIcon;\n","export { default as PlatformIcon } from \"./platformIcon\";\nexport { preloadIcons } from \"./preload\";\n\nimport { PLATFORM_TO_ICON } from \"./platformIcon\";\nexport const platforms = Object.keys(PLATFORM_TO_ICON); \n","import { PLATFORM_TO_ICON } from \"./platformIcon\";\n\n/**\n * Insert <link ref=\"preload\" /> elements into the <head> node to preload\n * platfrom icons. Useful to avoid render blocking / jank when we know we'll be\n * showing platform icons on the next page.\n */\nexport function preloadIcons(format?: \"sm\" | \"lg\") {\n const formats = format ? [format] : [\"lg\", \"sm\"];\n\n const paths: string[] = formats\n .map((f) =>\n Object.values(PLATFORM_TO_ICON).map((icon) =>\n require(`../${f === \"lg\" ? \"svg_80x80\" : \"svg\"}/${icon}.svg`)\n )\n )\n .flat();\n\n document.querySelector(\"head\")?.append(\n ...paths.map((path) => {\n const link = document.createElement(\"link\");\n link.rel = \"preload\";\n link.as = \"image\";\n link.href = path;\n return link;\n })\n );\n}\n"],"names":["PLATFORM_TO_ICON","amazon","amd","android","android-phone","android-tablet","anthropic","apple","apple-ipad","apple-iphone","apple-tv","apple-watch","arm","bun","capacitor","chrome","chromium","clojure","cocoa","cocoa-objc","cocoa-swift","cohere","cordova","cloudflare","cpp","cryengine","crystal","css","csharp","csharp-aspnetcore","dart","default","deno","dotnet","dotnet-aspnetcore","dotnet-aspnet","dotnet-awslambda","dotnet-blazor","dotnet-csharp","dotnet-gcpfunctions","dotnet-maui","dotnet-uno","dotnet-xamarin","dotnetcore","dotnetfx","dotnetframework","edge","edge-legacy","electron","elixir","firefox","flutter","font","fsharp","git","go","go-echo","go-fasthttp","go-fiber","go-gin","go-iris","go-martini","go-negroni","godot","huggingface","internet-explorer","java","java-appengine","java-android","java-log4j","java-log4j2","java-logback","java-logging","java-ray","java-spring","java-spring-boot","javascript","javascript-alpinejs","javascript-analogjs","javascript-angular","javascript-angularjs","javascript-astro","javascript-backbone","javascript-browser","javascript-capacitor","javascript-cordova","javascript-electron","javascript-ember","javascript-gatsby","javascript-hono","javascript-hydrogen","javascript-ionic","javascript-lit","javascript-meteor","javascript-million","javascript-nextjs","javascript-nuxt","javascript-opennext","javascript-qwik","javascript-react","javascript-remix","javascript-solid","javascript-solidstart","javascript-svelte","javascript-sveltekit","javascript-vue","javascript-wasm","javascript-node","javascript-awslambda","javascript-azurefunctions","javascript-connect","javascript-express","javascript-fastify","javascript-gcpfunctions","javascript-hapi","javascript-koa","javascript-nestjs","javascript-serverlesscloud","ionic","kotlin","kotlin-android","langchain","linux","mono","motorola","native","native-qt","nintendo","nintendo-switch","node","node-awslambda","node-azurefunctions","node-connect","node-express","node-fastify","node-gcpfunctions","node-hapi","node-koa","node-nestjs","node-serverlesscloud","nvidia","openai","opera","perl","php","playstation","powershell","php-laravel","php-livewire","php-magento","php-monolog","php-symfony2","php-symfony","python","python-aiohttp","python-airflow","python-ariadne","python-asyncpg","python-awslambda","python-azurefunctions","python-beam","python-boto3","python-bottle","python-celery","python-chalice","python-clickhouse-driver","python-django","python-dramatiq","python-falcon","python-fastapi","python-flask","python-gcpfunctions","python-gnu_backtrace","python-gql","python-graphene","python-grpc","python-httpx","python-huey","python-litestar","python-loguru","python-pylons","python-pymongo","python-pyramid","python-pythonawslambda","python-quart","python-ray","python-redis","python-rq","python-sanic","python-serverless","python-starlette","python-strawberry","python-spark","python-sqlalchemy","python-tornado","python-tryton","qq","qt","react-native","ruby","ruby-activeadmin","ruby-grape","ruby-hanami","ruby-padrino","ruby-rack","ruby-rails","ruby-sidekiq","ruby-sinatra","ruby-trailblazer","rust","rust-actix","safari","samsung","scala","stride3d","sql","sqlserver","swift","tauri","ubuntu","unity","ue4","unreal","unrealengine","visualbasic","vscode","windows","normalizePlatform","platform","replace","getIcon","normalizedPlatform","includes","getLanguageIcon","split","platforms","Object","keys","size","format","radius","withLanguageIcon","languageIconStyles","style","otherProps","icon","iconPathRaw","require","iconPath","languageIcon","languageIconPathRaw","languageIconPath","React","position","src","width","height","borderRadius","bottom","right","paths","map","f","values","flat","document","querySelector","append","path","link","createElement","rel","as","href"],"mappings":"+RAEaA,EAAmB,CAC9BC,OAAQ,SACRC,IAAK,MACLC,QAAS,UACTC,gBAAiB,gBACjBC,iBAAkB,iBAClBC,UAAW,YACXC,MAAO,QACPC,aAAc,aACdC,eAAgB,eAChBC,WAAY,WACZC,cAAe,cACfC,IAAK,MACLC,IAAK,MACLC,UAAW,YACXC,OAAQ,SACRC,SAAU,WACVC,QAAS,UACTC,MAAO,QAC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EE,IAAKH,EACLR,SACEU,SAAU,WACVK,OAAQ,OACRC,MAAO,OACPH,OAAQ,MACRD,MAAO,MACPE,aAAc,OACXf,MAQXU,qCACEE,IAAKN,EACLO,MAAOjB,EACPkB,OAAQlB,GACJM,GACJD,SAASc,aAAiBjB,QAAeG,yDE5TlBJ,SAGrBqB,GAFUrB,EAAS,CAACA,GAAU,CAAC,KAAM,OAGxCsB,IAAI,SAACC,UACJ1B,OAAO2B,OAAOvQ,GAAkBqQ,IAAI,SAAChB,UACnCE,eAAoB,OAANe,EAAa,YAAc,WAASjB,cAGrDmB,gBAEHC,SAASC,cAAc,YAASC,eAC3BP,EAAMC,IAAI,SAACO,GACZ,IAAMC,EAAOJ,SAASK,cAAc,QAIpC,OAHAD,EAAKE,IAAM,UACXF,EAAKG,GAAK,QACVH,EAAKI,KAAOL,EACLC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC"}
|
package/build/platformIcon.d.ts
CHANGED
|
@@ -1,239 +1,239 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const PLATFORM_TO_ICON: {
|
|
3
|
-
readonly amazon: "amazon";
|
|
4
|
-
readonly amd: "amd";
|
|
5
|
-
readonly android: "android";
|
|
6
|
-
readonly "android-phone": "android-phone";
|
|
7
|
-
readonly "android-tablet": "android-tablet";
|
|
8
|
-
readonly anthropic: "anthropic";
|
|
9
|
-
readonly apple: "apple";
|
|
10
|
-
readonly "apple-ipad": "apple-ipad";
|
|
11
|
-
readonly "apple-iphone": "apple-iphone";
|
|
12
|
-
readonly "apple-tv": "apple-tv";
|
|
13
|
-
readonly "apple-watch": "apple-watch";
|
|
14
|
-
readonly arm: "arm";
|
|
15
|
-
readonly bun: "bun";
|
|
16
|
-
readonly capacitor: "capacitor";
|
|
17
|
-
readonly chrome: "chrome";
|
|
18
|
-
readonly chromium: "chromium";
|
|
19
|
-
readonly clojure: "clojure";
|
|
20
|
-
readonly cocoa: "apple";
|
|
21
|
-
readonly "cocoa-objc": "apple";
|
|
22
|
-
readonly "cocoa-swift": "swift";
|
|
23
|
-
readonly cohere: "cohere";
|
|
24
|
-
readonly cordova: "cordova";
|
|
25
|
-
readonly cloudflare: "cloudflare";
|
|
26
|
-
readonly cpp: "cpp";
|
|
27
|
-
readonly cryengine: "cryengine";
|
|
28
|
-
readonly crystal: "crystal";
|
|
29
|
-
readonly css: "css";
|
|
30
|
-
readonly csharp: "csharp";
|
|
31
|
-
readonly "csharp-aspnetcore": "csharp";
|
|
32
|
-
readonly dart: "dart";
|
|
33
|
-
readonly default: "default";
|
|
34
|
-
readonly deno: "deno";
|
|
35
|
-
readonly dotnet: "dotnet";
|
|
36
|
-
readonly "dotnet-aspnetcore": "dotnet";
|
|
37
|
-
readonly "dotnet-aspnet": "dotnet";
|
|
38
|
-
readonly "dotnet-awslambda": "awslambda";
|
|
39
|
-
readonly "dotnet-blazor": "blazor";
|
|
40
|
-
readonly "dotnet-csharp": "csharp";
|
|
41
|
-
readonly "dotnet-gcpfunctions": "gcp-functions";
|
|
42
|
-
readonly "dotnet-maui": "maui";
|
|
43
|
-
readonly "dotnet-uno": "uno";
|
|
44
|
-
readonly "dotnet-xamarin": "xamarin";
|
|
45
|
-
readonly dotnetcore: "dotnetcore";
|
|
46
|
-
readonly dotnetfx: "dotnetfx";
|
|
47
|
-
readonly dotnetframework: "dotnetframework";
|
|
48
|
-
readonly edge: "edge";
|
|
49
|
-
readonly "edge-legacy": "edge-legacy";
|
|
50
|
-
readonly electron: "electron";
|
|
51
|
-
readonly elixir: "elixir";
|
|
52
|
-
readonly firefox: "firefox";
|
|
53
|
-
readonly flutter: "flutter";
|
|
54
|
-
readonly font: "font";
|
|
55
|
-
readonly fsharp: "fsharp";
|
|
56
|
-
readonly git: "git";
|
|
57
|
-
readonly go: "go";
|
|
58
|
-
readonly "go-echo": "echo";
|
|
59
|
-
readonly "go-fasthttp": "fasthttp";
|
|
60
|
-
readonly "go-fiber": "fiber";
|
|
61
|
-
readonly "go-gin": "gin";
|
|
62
|
-
readonly "go-iris": "iris";
|
|
63
|
-
readonly "go-martini": "martini";
|
|
64
|
-
readonly "go-negroni": "go";
|
|
65
|
-
readonly godot: "godot";
|
|
66
|
-
readonly huggingface: "huggingface";
|
|
67
|
-
readonly "internet-explorer": "internet-explorer";
|
|
68
|
-
readonly java: "java";
|
|
69
|
-
readonly "java-appengine": "app-engine";
|
|
70
|
-
readonly "java-android": "android";
|
|
71
|
-
readonly "java-log4j": "java";
|
|
72
|
-
readonly "java-log4j2": "java";
|
|
73
|
-
readonly "java-logback": "logback";
|
|
74
|
-
readonly "java-logging": "java";
|
|
75
|
-
readonly "java-ray": "ray";
|
|
76
|
-
readonly "java-spring": "spring";
|
|
77
|
-
readonly "java-spring-boot": "springboot";
|
|
78
|
-
readonly javascript: "javascript";
|
|
79
|
-
readonly "javascript-alpinejs": "alpinejs";
|
|
80
|
-
readonly "javascript-analogjs": "analogjs";
|
|
81
|
-
readonly "javascript-angular": "angularjs";
|
|
82
|
-
readonly "javascript-angularjs": "angularjs";
|
|
83
|
-
readonly "javascript-astro": "astro";
|
|
84
|
-
readonly "javascript-backbone": "backbone";
|
|
85
|
-
readonly "javascript-browser": "javascript";
|
|
86
|
-
readonly "javascript-capacitor": "capacitor";
|
|
87
|
-
readonly "javascript-cordova": "cordova";
|
|
88
|
-
readonly "javascript-electron": "electron";
|
|
89
|
-
readonly "javascript-ember": "ember";
|
|
90
|
-
readonly "javascript-gatsby": "gatsby";
|
|
91
|
-
readonly "javascript-hono": "hono";
|
|
92
|
-
readonly "javascript-hydrogen": "hydrogen";
|
|
93
|
-
readonly "javascript-ionic": "ionic";
|
|
94
|
-
readonly "javascript-lit": "lit";
|
|
95
|
-
readonly "javascript-meteor": "meteor";
|
|
96
|
-
readonly "javascript-million": "million";
|
|
97
|
-
readonly "javascript-nextjs": "nextjs";
|
|
98
|
-
readonly "javascript-nuxt": "nuxt";
|
|
99
|
-
readonly "javascript-opennext": "opennext";
|
|
100
|
-
readonly "javascript-qwik": "qwik";
|
|
101
|
-
readonly "javascript-react": "react";
|
|
102
|
-
readonly "javascript-remix": "remix";
|
|
103
|
-
readonly "javascript-solid": "solid";
|
|
104
|
-
readonly "javascript-solidstart": "solidstart";
|
|
105
|
-
readonly "javascript-svelte": "svelte";
|
|
106
|
-
readonly "javascript-sveltekit": "svelte";
|
|
107
|
-
readonly "javascript-vue": "vue";
|
|
108
|
-
readonly "javascript-wasm": "wasm";
|
|
109
|
-
readonly "javascript-node": "nodejs";
|
|
110
|
-
readonly "javascript-awslambda": "awslambda";
|
|
111
|
-
readonly "javascript-azurefunctions": "azure-functions";
|
|
112
|
-
readonly "javascript-connect": "connect";
|
|
113
|
-
readonly "javascript-express": "express";
|
|
114
|
-
readonly "javascript-fastify": "fastify";
|
|
115
|
-
readonly "javascript-gcpfunctions": "gcp-functions";
|
|
116
|
-
readonly "javascript-hapi": "hapi";
|
|
117
|
-
readonly "javascript-koa": "koa";
|
|
118
|
-
readonly "javascript-nestjs": "nestjs";
|
|
119
|
-
readonly "javascript-serverlesscloud": "serverless";
|
|
120
|
-
readonly ionic: "ionic";
|
|
121
|
-
readonly kotlin: "kotlin";
|
|
122
|
-
readonly "kotlin-android": "android";
|
|
123
|
-
readonly langchain: "langchain";
|
|
124
|
-
readonly linux: "linux";
|
|
125
|
-
readonly mono: "mono";
|
|
126
|
-
readonly motorola: "motorola";
|
|
127
|
-
readonly native: "nativec";
|
|
128
|
-
readonly "native-qt": "qt";
|
|
129
|
-
readonly nintendo: "nintendo";
|
|
130
|
-
readonly "nintendo-switch": "nintendo-switch";
|
|
131
|
-
readonly node: "nodejs";
|
|
132
|
-
readonly "node-awslambda": "awslambda";
|
|
133
|
-
readonly "node-azurefunctions": "azure-functions";
|
|
134
|
-
readonly "node-connect": "connect";
|
|
135
|
-
readonly "node-express": "express";
|
|
136
|
-
readonly "node-fastify": "fastify";
|
|
137
|
-
readonly "node-gcpfunctions": "gcp-functions";
|
|
138
|
-
readonly "node-hapi": "hapi";
|
|
139
|
-
readonly "node-koa": "koa";
|
|
140
|
-
readonly "node-nestjs": "nestjs";
|
|
141
|
-
readonly "node-serverlesscloud": "serverless";
|
|
142
|
-
readonly nvidia: "nvidia";
|
|
143
|
-
readonly openai: "openai";
|
|
144
|
-
readonly opera: "opera";
|
|
145
|
-
readonly perl: "perl";
|
|
146
|
-
readonly php: "php";
|
|
147
|
-
readonly playstation: "playstation";
|
|
148
|
-
readonly powershell: "powershell";
|
|
149
|
-
readonly "php-laravel": "laravel";
|
|
150
|
-
readonly "php-livewire": "livewire";
|
|
151
|
-
readonly "php-magento": "magento";
|
|
152
|
-
readonly "php-monolog": "php";
|
|
153
|
-
readonly "php-symfony2": "symfony";
|
|
154
|
-
readonly "php-symfony": "symfony";
|
|
155
|
-
readonly python: "python";
|
|
156
|
-
readonly "python-aiohttp": "aiohttp";
|
|
157
|
-
readonly "python-airflow": "apache-airflow";
|
|
158
|
-
readonly "python-ariadne": "ariadne";
|
|
159
|
-
readonly "python-asyncpg": "postgresql";
|
|
160
|
-
readonly "python-awslambda": "awslambda";
|
|
161
|
-
readonly "python-azurefunctions": "azure-functions";
|
|
162
|
-
readonly "python-beam": "apache-beam";
|
|
163
|
-
readonly "python-boto3": "aws";
|
|
164
|
-
readonly "python-bottle": "bottle";
|
|
165
|
-
readonly "python-celery": "celery";
|
|
166
|
-
readonly "python-chalice": "chalice";
|
|
167
|
-
readonly "python-clickhouse-driver": "clickhouse";
|
|
168
|
-
readonly "python-django": "django";
|
|
169
|
-
readonly "python-dramatiq": "dramatiq";
|
|
170
|
-
readonly "python-falcon": "falcon";
|
|
171
|
-
readonly "python-fastapi": "fastapi";
|
|
172
|
-
readonly "python-flask": "flask";
|
|
173
|
-
readonly "python-gcpfunctions": "gcp-functions";
|
|
174
|
-
readonly "python-gnu_backtrace": "gnu";
|
|
175
|
-
readonly "python-gql": "graphql";
|
|
176
|
-
readonly "python-graphene": "graphene";
|
|
177
|
-
readonly "python-grpc": "grpc";
|
|
178
|
-
readonly "python-httpx": "httpx";
|
|
179
|
-
readonly "python-huey": "huey";
|
|
180
|
-
readonly "python-litestar": "litestar";
|
|
181
|
-
readonly "python-loguru": "loguru";
|
|
182
|
-
readonly "python-pylons": "python";
|
|
183
|
-
readonly "python-pymongo": "mongodb";
|
|
184
|
-
readonly "python-pyramid": "pyramid";
|
|
185
|
-
readonly "python-pythonawslambda": "awslambda";
|
|
186
|
-
readonly "python-quart": "quart";
|
|
187
|
-
readonly "python-ray": "ray";
|
|
188
|
-
readonly "python-redis": "redis";
|
|
189
|
-
readonly "python-rq": "redis";
|
|
190
|
-
readonly "python-sanic": "sanic";
|
|
191
|
-
readonly "python-serverless": "serverless";
|
|
192
|
-
readonly "python-starlette": "starlette";
|
|
193
|
-
readonly "python-strawberry": "strawberry";
|
|
194
|
-
readonly "python-spark": "apache-spark";
|
|
195
|
-
readonly "python-sqlalchemy": "sqlalchemy";
|
|
196
|
-
readonly "python-tornado": "tornado";
|
|
197
|
-
readonly "python-tryton": "tryton";
|
|
198
|
-
readonly qq: "qq";
|
|
199
|
-
readonly qt: "qt";
|
|
200
|
-
readonly "react-native": "react-native";
|
|
201
|
-
readonly ruby: "ruby";
|
|
202
|
-
readonly "ruby-activeadmin": "activeadmin";
|
|
203
|
-
readonly "ruby-grape": "grape";
|
|
204
|
-
readonly "ruby-hanami": "hanami";
|
|
205
|
-
readonly "ruby-padrino": "padrino";
|
|
206
|
-
readonly "ruby-rack": "ruby";
|
|
207
|
-
readonly "ruby-rails": "rails";
|
|
208
|
-
readonly "ruby-sidekiq": "sidekiq";
|
|
209
|
-
readonly "ruby-sinatra": "sinatra";
|
|
210
|
-
readonly "ruby-trailblazer": "trailblazer";
|
|
211
|
-
readonly rust: "rust";
|
|
212
|
-
readonly "rust-actix": "actix";
|
|
213
|
-
readonly safari: "safari";
|
|
214
|
-
readonly samsung: "samsung";
|
|
215
|
-
readonly scala: "scala";
|
|
216
|
-
readonly stride3d: "stride3d";
|
|
217
|
-
readonly sql: "sql";
|
|
218
|
-
readonly sqlserver: "sqlserver";
|
|
219
|
-
readonly swift: "swift";
|
|
220
|
-
readonly tauri: "tauri";
|
|
221
|
-
readonly ubuntu: "ubuntu";
|
|
222
|
-
readonly unity: "unity";
|
|
223
|
-
readonly ue4: "unreal";
|
|
224
|
-
readonly unreal: "unreal";
|
|
225
|
-
readonly unrealengine: "unreal";
|
|
226
|
-
readonly visualbasic: "visual-basic";
|
|
227
|
-
readonly vscode: "vscode";
|
|
228
|
-
readonly windows: "windows";
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
platform: string;
|
|
232
|
-
size?: string | number;
|
|
233
|
-
format?: "sm" | "lg";
|
|
234
|
-
radius?: number | null;
|
|
235
|
-
withLanguageIcon?: boolean;
|
|
236
|
-
languageIconStyles?: React.CSSProperties;
|
|
237
|
-
};
|
|
238
|
-
declare const PlatformIcon: ({ platform, size, format, radius, withLanguageIcon, languageIconStyles, style, ...otherProps }: Props) => JSX.Element;
|
|
239
|
-
export default PlatformIcon;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const PLATFORM_TO_ICON: {
|
|
3
|
+
readonly amazon: "amazon";
|
|
4
|
+
readonly amd: "amd";
|
|
5
|
+
readonly android: "android";
|
|
6
|
+
readonly "android-phone": "android-phone";
|
|
7
|
+
readonly "android-tablet": "android-tablet";
|
|
8
|
+
readonly anthropic: "anthropic";
|
|
9
|
+
readonly apple: "apple";
|
|
10
|
+
readonly "apple-ipad": "apple-ipad";
|
|
11
|
+
readonly "apple-iphone": "apple-iphone";
|
|
12
|
+
readonly "apple-tv": "apple-tv";
|
|
13
|
+
readonly "apple-watch": "apple-watch";
|
|
14
|
+
readonly arm: "arm";
|
|
15
|
+
readonly bun: "bun";
|
|
16
|
+
readonly capacitor: "capacitor";
|
|
17
|
+
readonly chrome: "chrome";
|
|
18
|
+
readonly chromium: "chromium";
|
|
19
|
+
readonly clojure: "clojure";
|
|
20
|
+
readonly cocoa: "apple";
|
|
21
|
+
readonly "cocoa-objc": "apple";
|
|
22
|
+
readonly "cocoa-swift": "swift";
|
|
23
|
+
readonly cohere: "cohere";
|
|
24
|
+
readonly cordova: "cordova";
|
|
25
|
+
readonly cloudflare: "cloudflare";
|
|
26
|
+
readonly cpp: "cpp";
|
|
27
|
+
readonly cryengine: "cryengine";
|
|
28
|
+
readonly crystal: "crystal";
|
|
29
|
+
readonly css: "css";
|
|
30
|
+
readonly csharp: "csharp";
|
|
31
|
+
readonly "csharp-aspnetcore": "csharp";
|
|
32
|
+
readonly dart: "dart";
|
|
33
|
+
readonly default: "default";
|
|
34
|
+
readonly deno: "deno";
|
|
35
|
+
readonly dotnet: "dotnet";
|
|
36
|
+
readonly "dotnet-aspnetcore": "dotnet";
|
|
37
|
+
readonly "dotnet-aspnet": "dotnet";
|
|
38
|
+
readonly "dotnet-awslambda": "awslambda";
|
|
39
|
+
readonly "dotnet-blazor": "blazor";
|
|
40
|
+
readonly "dotnet-csharp": "csharp";
|
|
41
|
+
readonly "dotnet-gcpfunctions": "gcp-functions";
|
|
42
|
+
readonly "dotnet-maui": "maui";
|
|
43
|
+
readonly "dotnet-uno": "uno";
|
|
44
|
+
readonly "dotnet-xamarin": "xamarin";
|
|
45
|
+
readonly dotnetcore: "dotnetcore";
|
|
46
|
+
readonly dotnetfx: "dotnetfx";
|
|
47
|
+
readonly dotnetframework: "dotnetframework";
|
|
48
|
+
readonly edge: "edge";
|
|
49
|
+
readonly "edge-legacy": "edge-legacy";
|
|
50
|
+
readonly electron: "electron";
|
|
51
|
+
readonly elixir: "elixir";
|
|
52
|
+
readonly firefox: "firefox";
|
|
53
|
+
readonly flutter: "flutter";
|
|
54
|
+
readonly font: "font";
|
|
55
|
+
readonly fsharp: "fsharp";
|
|
56
|
+
readonly git: "git";
|
|
57
|
+
readonly go: "go";
|
|
58
|
+
readonly "go-echo": "echo";
|
|
59
|
+
readonly "go-fasthttp": "fasthttp";
|
|
60
|
+
readonly "go-fiber": "fiber";
|
|
61
|
+
readonly "go-gin": "gin";
|
|
62
|
+
readonly "go-iris": "iris";
|
|
63
|
+
readonly "go-martini": "martini";
|
|
64
|
+
readonly "go-negroni": "go";
|
|
65
|
+
readonly godot: "godot";
|
|
66
|
+
readonly huggingface: "huggingface";
|
|
67
|
+
readonly "internet-explorer": "internet-explorer";
|
|
68
|
+
readonly java: "java";
|
|
69
|
+
readonly "java-appengine": "app-engine";
|
|
70
|
+
readonly "java-android": "android";
|
|
71
|
+
readonly "java-log4j": "java";
|
|
72
|
+
readonly "java-log4j2": "java";
|
|
73
|
+
readonly "java-logback": "logback";
|
|
74
|
+
readonly "java-logging": "java";
|
|
75
|
+
readonly "java-ray": "ray";
|
|
76
|
+
readonly "java-spring": "spring";
|
|
77
|
+
readonly "java-spring-boot": "springboot";
|
|
78
|
+
readonly javascript: "javascript";
|
|
79
|
+
readonly "javascript-alpinejs": "alpinejs";
|
|
80
|
+
readonly "javascript-analogjs": "analogjs";
|
|
81
|
+
readonly "javascript-angular": "angularjs";
|
|
82
|
+
readonly "javascript-angularjs": "angularjs";
|
|
83
|
+
readonly "javascript-astro": "astro";
|
|
84
|
+
readonly "javascript-backbone": "backbone";
|
|
85
|
+
readonly "javascript-browser": "javascript";
|
|
86
|
+
readonly "javascript-capacitor": "capacitor";
|
|
87
|
+
readonly "javascript-cordova": "cordova";
|
|
88
|
+
readonly "javascript-electron": "electron";
|
|
89
|
+
readonly "javascript-ember": "ember";
|
|
90
|
+
readonly "javascript-gatsby": "gatsby";
|
|
91
|
+
readonly "javascript-hono": "hono";
|
|
92
|
+
readonly "javascript-hydrogen": "hydrogen";
|
|
93
|
+
readonly "javascript-ionic": "ionic";
|
|
94
|
+
readonly "javascript-lit": "lit";
|
|
95
|
+
readonly "javascript-meteor": "meteor";
|
|
96
|
+
readonly "javascript-million": "million";
|
|
97
|
+
readonly "javascript-nextjs": "nextjs";
|
|
98
|
+
readonly "javascript-nuxt": "nuxt";
|
|
99
|
+
readonly "javascript-opennext": "opennext";
|
|
100
|
+
readonly "javascript-qwik": "qwik";
|
|
101
|
+
readonly "javascript-react": "react";
|
|
102
|
+
readonly "javascript-remix": "remix";
|
|
103
|
+
readonly "javascript-solid": "solid";
|
|
104
|
+
readonly "javascript-solidstart": "solidstart";
|
|
105
|
+
readonly "javascript-svelte": "svelte";
|
|
106
|
+
readonly "javascript-sveltekit": "svelte";
|
|
107
|
+
readonly "javascript-vue": "vue";
|
|
108
|
+
readonly "javascript-wasm": "wasm";
|
|
109
|
+
readonly "javascript-node": "nodejs";
|
|
110
|
+
readonly "javascript-awslambda": "awslambda";
|
|
111
|
+
readonly "javascript-azurefunctions": "azure-functions";
|
|
112
|
+
readonly "javascript-connect": "connect";
|
|
113
|
+
readonly "javascript-express": "express";
|
|
114
|
+
readonly "javascript-fastify": "fastify";
|
|
115
|
+
readonly "javascript-gcpfunctions": "gcp-functions";
|
|
116
|
+
readonly "javascript-hapi": "hapi";
|
|
117
|
+
readonly "javascript-koa": "koa";
|
|
118
|
+
readonly "javascript-nestjs": "nestjs";
|
|
119
|
+
readonly "javascript-serverlesscloud": "serverless";
|
|
120
|
+
readonly ionic: "ionic";
|
|
121
|
+
readonly kotlin: "kotlin";
|
|
122
|
+
readonly "kotlin-android": "android";
|
|
123
|
+
readonly langchain: "langchain";
|
|
124
|
+
readonly linux: "linux";
|
|
125
|
+
readonly mono: "mono";
|
|
126
|
+
readonly motorola: "motorola";
|
|
127
|
+
readonly native: "nativec";
|
|
128
|
+
readonly "native-qt": "qt";
|
|
129
|
+
readonly nintendo: "nintendo";
|
|
130
|
+
readonly "nintendo-switch": "nintendo-switch";
|
|
131
|
+
readonly node: "nodejs";
|
|
132
|
+
readonly "node-awslambda": "awslambda";
|
|
133
|
+
readonly "node-azurefunctions": "azure-functions";
|
|
134
|
+
readonly "node-connect": "connect";
|
|
135
|
+
readonly "node-express": "express";
|
|
136
|
+
readonly "node-fastify": "fastify";
|
|
137
|
+
readonly "node-gcpfunctions": "gcp-functions";
|
|
138
|
+
readonly "node-hapi": "hapi";
|
|
139
|
+
readonly "node-koa": "koa";
|
|
140
|
+
readonly "node-nestjs": "nestjs";
|
|
141
|
+
readonly "node-serverlesscloud": "serverless";
|
|
142
|
+
readonly nvidia: "nvidia";
|
|
143
|
+
readonly openai: "openai";
|
|
144
|
+
readonly opera: "opera";
|
|
145
|
+
readonly perl: "perl";
|
|
146
|
+
readonly php: "php";
|
|
147
|
+
readonly playstation: "playstation";
|
|
148
|
+
readonly powershell: "powershell";
|
|
149
|
+
readonly "php-laravel": "laravel";
|
|
150
|
+
readonly "php-livewire": "livewire";
|
|
151
|
+
readonly "php-magento": "magento";
|
|
152
|
+
readonly "php-monolog": "php";
|
|
153
|
+
readonly "php-symfony2": "symfony";
|
|
154
|
+
readonly "php-symfony": "symfony";
|
|
155
|
+
readonly python: "python";
|
|
156
|
+
readonly "python-aiohttp": "aiohttp";
|
|
157
|
+
readonly "python-airflow": "apache-airflow";
|
|
158
|
+
readonly "python-ariadne": "ariadne";
|
|
159
|
+
readonly "python-asyncpg": "postgresql";
|
|
160
|
+
readonly "python-awslambda": "awslambda";
|
|
161
|
+
readonly "python-azurefunctions": "azure-functions";
|
|
162
|
+
readonly "python-beam": "apache-beam";
|
|
163
|
+
readonly "python-boto3": "aws";
|
|
164
|
+
readonly "python-bottle": "bottle";
|
|
165
|
+
readonly "python-celery": "celery";
|
|
166
|
+
readonly "python-chalice": "chalice";
|
|
167
|
+
readonly "python-clickhouse-driver": "clickhouse";
|
|
168
|
+
readonly "python-django": "django";
|
|
169
|
+
readonly "python-dramatiq": "dramatiq";
|
|
170
|
+
readonly "python-falcon": "falcon";
|
|
171
|
+
readonly "python-fastapi": "fastapi";
|
|
172
|
+
readonly "python-flask": "flask";
|
|
173
|
+
readonly "python-gcpfunctions": "gcp-functions";
|
|
174
|
+
readonly "python-gnu_backtrace": "gnu";
|
|
175
|
+
readonly "python-gql": "graphql";
|
|
176
|
+
readonly "python-graphene": "graphene";
|
|
177
|
+
readonly "python-grpc": "grpc";
|
|
178
|
+
readonly "python-httpx": "httpx";
|
|
179
|
+
readonly "python-huey": "huey";
|
|
180
|
+
readonly "python-litestar": "litestar";
|
|
181
|
+
readonly "python-loguru": "loguru";
|
|
182
|
+
readonly "python-pylons": "python";
|
|
183
|
+
readonly "python-pymongo": "mongodb";
|
|
184
|
+
readonly "python-pyramid": "pyramid";
|
|
185
|
+
readonly "python-pythonawslambda": "awslambda";
|
|
186
|
+
readonly "python-quart": "quart";
|
|
187
|
+
readonly "python-ray": "ray";
|
|
188
|
+
readonly "python-redis": "redis";
|
|
189
|
+
readonly "python-rq": "redis";
|
|
190
|
+
readonly "python-sanic": "sanic";
|
|
191
|
+
readonly "python-serverless": "serverless";
|
|
192
|
+
readonly "python-starlette": "starlette";
|
|
193
|
+
readonly "python-strawberry": "strawberry";
|
|
194
|
+
readonly "python-spark": "apache-spark";
|
|
195
|
+
readonly "python-sqlalchemy": "sqlalchemy";
|
|
196
|
+
readonly "python-tornado": "tornado";
|
|
197
|
+
readonly "python-tryton": "tryton";
|
|
198
|
+
readonly qq: "qq";
|
|
199
|
+
readonly qt: "qt";
|
|
200
|
+
readonly "react-native": "react-native";
|
|
201
|
+
readonly ruby: "ruby";
|
|
202
|
+
readonly "ruby-activeadmin": "activeadmin";
|
|
203
|
+
readonly "ruby-grape": "grape";
|
|
204
|
+
readonly "ruby-hanami": "hanami";
|
|
205
|
+
readonly "ruby-padrino": "padrino";
|
|
206
|
+
readonly "ruby-rack": "ruby";
|
|
207
|
+
readonly "ruby-rails": "rails";
|
|
208
|
+
readonly "ruby-sidekiq": "sidekiq";
|
|
209
|
+
readonly "ruby-sinatra": "sinatra";
|
|
210
|
+
readonly "ruby-trailblazer": "trailblazer";
|
|
211
|
+
readonly rust: "rust";
|
|
212
|
+
readonly "rust-actix": "actix";
|
|
213
|
+
readonly safari: "safari";
|
|
214
|
+
readonly samsung: "samsung";
|
|
215
|
+
readonly scala: "scala";
|
|
216
|
+
readonly stride3d: "stride3d";
|
|
217
|
+
readonly sql: "sql";
|
|
218
|
+
readonly sqlserver: "sqlserver";
|
|
219
|
+
readonly swift: "swift";
|
|
220
|
+
readonly tauri: "tauri";
|
|
221
|
+
readonly ubuntu: "ubuntu";
|
|
222
|
+
readonly unity: "unity";
|
|
223
|
+
readonly ue4: "unreal";
|
|
224
|
+
readonly unreal: "unreal";
|
|
225
|
+
readonly unrealengine: "unreal";
|
|
226
|
+
readonly visualbasic: "visual-basic";
|
|
227
|
+
readonly vscode: "vscode";
|
|
228
|
+
readonly windows: "windows";
|
|
229
|
+
};
|
|
230
|
+
type Props = React.HTMLAttributes<HTMLDivElement | HTMLImageElement> & {
|
|
231
|
+
platform: string;
|
|
232
|
+
size?: string | number;
|
|
233
|
+
format?: "sm" | "lg";
|
|
234
|
+
radius?: number | null;
|
|
235
|
+
withLanguageIcon?: boolean;
|
|
236
|
+
languageIconStyles?: React.CSSProperties;
|
|
237
|
+
};
|
|
238
|
+
declare const PlatformIcon: ({ platform, size, format, radius, withLanguageIcon, languageIconStyles, style, ...otherProps }: Props) => React.JSX.Element;
|
|
239
|
+
export default PlatformIcon;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export const PLATFORM_TO_ICON = {
|
|
3
|
+
amazon: "amazon",
|
|
4
|
+
amd: "amd",
|
|
5
|
+
android: "android",
|
|
6
|
+
"android-phone": "android-phone",
|
|
7
|
+
"android-tablet": "android-tablet",
|
|
8
|
+
anthropic: "anthropic",
|
|
9
|
+
apple: "apple",
|
|
10
|
+
"apple-ipad": "apple-ipad",
|
|
11
|
+
"apple-iphone": "apple-iphone",
|
|
12
|
+
"apple-tv": "apple-tv",
|
|
13
|
+
"apple-watch": "apple-watch",
|
|
14
|
+
arm: "arm",
|
|
15
|
+
bun: "bun",
|
|
16
|
+
capacitor: "capacitor",
|
|
17
|
+
chrome: "chrome",
|
|
18
|
+
chromium: "chromium",
|
|
19
|
+
clojure: "clojure",
|
|
20
|
+
cocoa: "apple",
|
|
21
|
+
"cocoa-objc": "apple",
|
|
22
|
+
"cocoa-swift": "swift",
|
|
23
|
+
cohere: "cohere",
|
|
24
|
+
cordova: "cordova",
|
|
25
|
+
cloudflare: "cloudflare",
|
|
26
|
+
cpp: "cpp",
|
|
27
|
+
cryengine: "cryengine",
|
|
28
|
+
crystal: "crystal",
|
|
29
|
+
css: "css",
|
|
30
|
+
csharp: "csharp",
|
|
31
|
+
"csharp-aspnetcore": "csharp",
|
|
32
|
+
dart: "dart",
|
|
33
|
+
default: "default",
|
|
34
|
+
deno: "deno",
|
|
35
|
+
dotnet: "dotnet",
|
|
36
|
+
"dotnet-aspnetcore": "dotnet",
|
|
37
|
+
"dotnet-aspnet": "dotnet",
|
|
38
|
+
"dotnet-awslambda": "awslambda",
|
|
39
|
+
"dotnet-blazor": "blazor",
|
|
40
|
+
"dotnet-csharp": "csharp",
|
|
41
|
+
"dotnet-gcpfunctions": "gcp-functions",
|
|
42
|
+
"dotnet-maui": "maui",
|
|
43
|
+
"dotnet-uno": "uno",
|
|
44
|
+
"dotnet-xamarin": "xamarin",
|
|
45
|
+
dotnetcore: "dotnetcore",
|
|
46
|
+
dotnetfx: "dotnetfx",
|
|
47
|
+
dotnetframework: "dotnetframework",
|
|
48
|
+
edge: "edge",
|
|
49
|
+
"edge-legacy": "edge-legacy",
|
|
50
|
+
electron: "electron",
|
|
51
|
+
elixir: "elixir",
|
|
52
|
+
firefox: "firefox",
|
|
53
|
+
flutter: "flutter",
|
|
54
|
+
font: "font",
|
|
55
|
+
fsharp: "fsharp",
|
|
56
|
+
git: "git",
|
|
57
|
+
go: "go",
|
|
58
|
+
"go-echo": "echo",
|
|
59
|
+
"go-fasthttp": "fasthttp",
|
|
60
|
+
"go-fiber": "fiber",
|
|
61
|
+
"go-gin": "gin",
|
|
62
|
+
"go-iris": "iris",
|
|
63
|
+
"go-martini": "martini",
|
|
64
|
+
"go-negroni": "go",
|
|
65
|
+
godot: "godot",
|
|
66
|
+
huggingface: "huggingface",
|
|
67
|
+
"internet-explorer": "internet-explorer",
|
|
68
|
+
java: "java",
|
|
69
|
+
"java-appengine": "app-engine",
|
|
70
|
+
"java-android": "android",
|
|
71
|
+
"java-log4j": "java",
|
|
72
|
+
"java-log4j2": "java",
|
|
73
|
+
"java-logback": "logback",
|
|
74
|
+
"java-logging": "java",
|
|
75
|
+
"java-ray": "ray",
|
|
76
|
+
"java-spring": "spring",
|
|
77
|
+
"java-spring-boot": "springboot",
|
|
78
|
+
javascript: "javascript",
|
|
79
|
+
"javascript-alpinejs": "alpinejs",
|
|
80
|
+
"javascript-analogjs": "analogjs",
|
|
81
|
+
"javascript-angular": "angularjs",
|
|
82
|
+
"javascript-angularjs": "angularjs",
|
|
83
|
+
"javascript-astro": "astro",
|
|
84
|
+
"javascript-backbone": "backbone",
|
|
85
|
+
"javascript-browser": "javascript",
|
|
86
|
+
"javascript-capacitor": "capacitor",
|
|
87
|
+
"javascript-cordova": "cordova",
|
|
88
|
+
"javascript-electron": "electron",
|
|
89
|
+
"javascript-ember": "ember",
|
|
90
|
+
"javascript-gatsby": "gatsby",
|
|
91
|
+
"javascript-hono": "hono",
|
|
92
|
+
"javascript-hydrogen": "hydrogen",
|
|
93
|
+
"javascript-ionic": "ionic",
|
|
94
|
+
"javascript-lit": "lit",
|
|
95
|
+
"javascript-meteor": "meteor",
|
|
96
|
+
"javascript-million": "million",
|
|
97
|
+
"javascript-nextjs": "nextjs",
|
|
98
|
+
"javascript-nuxt": "nuxt",
|
|
99
|
+
"javascript-opennext": "opennext",
|
|
100
|
+
"javascript-qwik": "qwik",
|
|
101
|
+
"javascript-react": "react",
|
|
102
|
+
"javascript-remix": "remix",
|
|
103
|
+
"javascript-solid": "solid",
|
|
104
|
+
"javascript-solidstart": "solidstart",
|
|
105
|
+
"javascript-svelte": "svelte",
|
|
106
|
+
"javascript-sveltekit": "svelte",
|
|
107
|
+
"javascript-vue": "vue",
|
|
108
|
+
"javascript-wasm": "wasm",
|
|
109
|
+
"javascript-node": "nodejs",
|
|
110
|
+
"javascript-awslambda": "awslambda",
|
|
111
|
+
"javascript-azurefunctions": "azure-functions",
|
|
112
|
+
"javascript-connect": "connect",
|
|
113
|
+
"javascript-express": "express",
|
|
114
|
+
"javascript-fastify": "fastify",
|
|
115
|
+
"javascript-gcpfunctions": "gcp-functions",
|
|
116
|
+
"javascript-hapi": "hapi",
|
|
117
|
+
"javascript-koa": "koa",
|
|
118
|
+
"javascript-nestjs": "nestjs",
|
|
119
|
+
"javascript-serverlesscloud": "serverless",
|
|
120
|
+
ionic: "ionic",
|
|
121
|
+
kotlin: "kotlin",
|
|
122
|
+
"kotlin-android": "android",
|
|
123
|
+
langchain: "langchain",
|
|
124
|
+
linux: "linux",
|
|
125
|
+
mono: "mono",
|
|
126
|
+
motorola: "motorola",
|
|
127
|
+
native: "nativec",
|
|
128
|
+
"native-qt": "qt",
|
|
129
|
+
nintendo: "nintendo",
|
|
130
|
+
"nintendo-switch": "nintendo-switch",
|
|
131
|
+
node: "nodejs",
|
|
132
|
+
"node-awslambda": "awslambda",
|
|
133
|
+
"node-azurefunctions": "azure-functions",
|
|
134
|
+
"node-connect": "connect",
|
|
135
|
+
"node-express": "express",
|
|
136
|
+
"node-fastify": "fastify",
|
|
137
|
+
"node-gcpfunctions": "gcp-functions",
|
|
138
|
+
"node-hapi": "hapi",
|
|
139
|
+
"node-koa": "koa",
|
|
140
|
+
"node-nestjs": "nestjs",
|
|
141
|
+
"node-serverlesscloud": "serverless",
|
|
142
|
+
nvidia: "nvidia",
|
|
143
|
+
openai: "openai",
|
|
144
|
+
opera: "opera",
|
|
145
|
+
perl: "perl",
|
|
146
|
+
php: "php",
|
|
147
|
+
playstation: "playstation",
|
|
148
|
+
powershell: "powershell",
|
|
149
|
+
"php-laravel": "laravel",
|
|
150
|
+
"php-livewire": "livewire",
|
|
151
|
+
"php-magento": "magento",
|
|
152
|
+
"php-monolog": "php",
|
|
153
|
+
"php-symfony2": "symfony",
|
|
154
|
+
"php-symfony": "symfony",
|
|
155
|
+
python: "python",
|
|
156
|
+
"python-aiohttp": "aiohttp",
|
|
157
|
+
"python-airflow": "apache-airflow",
|
|
158
|
+
"python-ariadne": "ariadne",
|
|
159
|
+
"python-asyncpg": "postgresql",
|
|
160
|
+
"python-awslambda": "awslambda",
|
|
161
|
+
"python-azurefunctions": "azure-functions",
|
|
162
|
+
"python-beam": "apache-beam",
|
|
163
|
+
"python-boto3": "aws",
|
|
164
|
+
"python-bottle": "bottle",
|
|
165
|
+
"python-celery": "celery",
|
|
166
|
+
"python-chalice": "chalice",
|
|
167
|
+
"python-clickhouse-driver": "clickhouse",
|
|
168
|
+
"python-django": "django",
|
|
169
|
+
"python-dramatiq": "dramatiq",
|
|
170
|
+
"python-falcon": "falcon",
|
|
171
|
+
"python-fastapi": "fastapi",
|
|
172
|
+
"python-flask": "flask",
|
|
173
|
+
"python-gcpfunctions": "gcp-functions",
|
|
174
|
+
"python-gnu_backtrace": "gnu",
|
|
175
|
+
"python-gql": "graphql",
|
|
176
|
+
"python-graphene": "graphene",
|
|
177
|
+
"python-grpc": "grpc",
|
|
178
|
+
"python-httpx": "httpx",
|
|
179
|
+
"python-huey": "huey",
|
|
180
|
+
"python-litestar": "litestar",
|
|
181
|
+
"python-loguru": "loguru",
|
|
182
|
+
"python-pylons": "python",
|
|
183
|
+
"python-pymongo": "mongodb",
|
|
184
|
+
"python-pyramid": "pyramid",
|
|
185
|
+
"python-pythonawslambda": "awslambda",
|
|
186
|
+
"python-quart": "quart",
|
|
187
|
+
"python-ray": "ray",
|
|
188
|
+
"python-redis": "redis",
|
|
189
|
+
"python-rq": "redis",
|
|
190
|
+
"python-sanic": "sanic",
|
|
191
|
+
"python-serverless": "serverless",
|
|
192
|
+
"python-starlette": "starlette",
|
|
193
|
+
"python-strawberry": "strawberry",
|
|
194
|
+
"python-spark": "apache-spark",
|
|
195
|
+
"python-sqlalchemy": "sqlalchemy",
|
|
196
|
+
"python-tornado": "tornado",
|
|
197
|
+
"python-tryton": "tryton",
|
|
198
|
+
qq: "qq",
|
|
199
|
+
qt: "qt",
|
|
200
|
+
"react-native": "react-native",
|
|
201
|
+
ruby: "ruby",
|
|
202
|
+
"ruby-activeadmin": "activeadmin",
|
|
203
|
+
"ruby-grape": "grape",
|
|
204
|
+
"ruby-hanami": "hanami",
|
|
205
|
+
"ruby-padrino": "padrino",
|
|
206
|
+
"ruby-rack": "ruby",
|
|
207
|
+
"ruby-rails": "rails",
|
|
208
|
+
"ruby-sidekiq": "sidekiq",
|
|
209
|
+
"ruby-sinatra": "sinatra",
|
|
210
|
+
"ruby-trailblazer": "trailblazer",
|
|
211
|
+
rust: "rust",
|
|
212
|
+
"rust-actix": "actix",
|
|
213
|
+
safari: "safari",
|
|
214
|
+
samsung: "samsung",
|
|
215
|
+
scala: "scala",
|
|
216
|
+
stride3d: "stride3d",
|
|
217
|
+
sql: "sql",
|
|
218
|
+
sqlserver: "sqlserver",
|
|
219
|
+
swift: "swift",
|
|
220
|
+
tauri: "tauri",
|
|
221
|
+
ubuntu: "ubuntu",
|
|
222
|
+
unity: "unity",
|
|
223
|
+
// This will be deprecated in favor of 'unrealengine'
|
|
224
|
+
ue4: "unreal",
|
|
225
|
+
unreal: "unreal",
|
|
226
|
+
unrealengine: "unreal",
|
|
227
|
+
visualbasic: "visual-basic",
|
|
228
|
+
vscode: "vscode",
|
|
229
|
+
windows: "windows",
|
|
230
|
+
// Don't add new platforms down here!
|
|
231
|
+
// Please add them where they belong alphabetically
|
|
232
|
+
};
|
|
233
|
+
function normalizePlatform(platform) {
|
|
234
|
+
// sentry uses format python-django, but docs uses python.django
|
|
235
|
+
// this function normalizes that
|
|
236
|
+
return platform.replace(".", "-");
|
|
237
|
+
}
|
|
238
|
+
function getIcon(platform) {
|
|
239
|
+
const normalizedPlatform = normalizePlatform(platform);
|
|
240
|
+
const icon = PLATFORM_TO_ICON[normalizedPlatform];
|
|
241
|
+
if (icon) {
|
|
242
|
+
return icon;
|
|
243
|
+
}
|
|
244
|
+
if (normalizedPlatform.includes("-")) {
|
|
245
|
+
return getLanguageIcon(normalizedPlatform);
|
|
246
|
+
}
|
|
247
|
+
return "default";
|
|
248
|
+
}
|
|
249
|
+
function getLanguageIcon(platform) {
|
|
250
|
+
const [language] = normalizePlatform(platform).split("-");
|
|
251
|
+
return getIcon(language);
|
|
252
|
+
}
|
|
253
|
+
const PlatformIcon = ({ platform, size = 20, format = "sm", radius = 3, withLanguageIcon, languageIconStyles = {}, style = {}, ...otherProps }) => {
|
|
254
|
+
const icon = getIcon(platform);
|
|
255
|
+
const iconPathRaw = require(`../${format === "lg" ? "svg_80x80" : "svg"}/${icon}.svg`);
|
|
256
|
+
const iconPath = iconPathRaw?.default ?? iconPathRaw;
|
|
257
|
+
const languageIcon = getLanguageIcon(platform);
|
|
258
|
+
const languageIconPathRaw = require(`../svg/${languageIcon}.svg`);
|
|
259
|
+
const languageIconPath = languageIconPathRaw?.default ?? languageIconPathRaw;
|
|
260
|
+
if (withLanguageIcon && languageIcon !== icon && languageIcon !== "default") {
|
|
261
|
+
return (React.createElement("div", { ...otherProps, style: { position: "relative", ...style } },
|
|
262
|
+
React.createElement("img", { src: iconPath, width: size, height: size, style: { borderRadius: `${radius}px` } }),
|
|
263
|
+
React.createElement("img", { src: languageIconPath, style: {
|
|
264
|
+
position: "absolute",
|
|
265
|
+
bottom: "-1px",
|
|
266
|
+
right: "-1px",
|
|
267
|
+
height: "30%",
|
|
268
|
+
width: "30%",
|
|
269
|
+
borderRadius: "2px",
|
|
270
|
+
...languageIconStyles,
|
|
271
|
+
} })));
|
|
272
|
+
}
|
|
273
|
+
return (React.createElement("img", { src: iconPath, width: size, height: size, ...otherProps, style: { borderRadius: `${radius}px`, ...style } }));
|
|
274
|
+
};
|
|
275
|
+
export default PlatformIcon;
|
|
276
|
+
//# sourceMappingURL=platformIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformIcon.js","sourceRoot":"","sources":["../src/platformIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,eAAe;IAChC,gBAAgB,EAAE,gBAAgB;IAClC,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,YAAY;IAC1B,cAAc,EAAE,cAAc;IAC9B,UAAU,EAAE,UAAU;IACtB,aAAa,EAAE,aAAa;IAC5B,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,OAAO;IACrB,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,mBAAmB,EAAE,QAAQ;IAC7B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,mBAAmB,EAAE,QAAQ;IAC7B,eAAe,EAAE,QAAQ;IACzB,kBAAkB,EAAE,WAAW;IAC/B,eA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C,UAAU,YAAY,MAAM,CAAC,CAAC;IAClE,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,OAAO,IAAI,mBAAmB,CAAC;IAE7E,IAAI,gBAAgB,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC5E,OAAO,CACL,gCAAS,UAAU,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE;YAC5D,6BACE,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,EAAE,YAAY,EAAE,GAAG,MAAM,IAAI,EAAE,GACtC;YACF,6BACE,GAAG,EAAE,gBAAgB,EACrB,KAAK,EAAE;oBACL,QAAQ,EAAE,UAAU;oBACpB,MAAM,EAAE,MAAM;oBACd,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,KAAK;oBACb,KAAK,EAAE,KAAK;oBACZ,YAAY,EAAE,KAAK;oBACnB,GAAG,kBAAkB;iBACtB,GACD,CACE,CACP,CAAC;IACJ,CAAC;IAED,OAAO,CACL,6BACE,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,KACR,UAAU,EACd,KAAK,EAAE,EAAE,YAAY,EAAE,GAAG,MAAM,IAAI,EAAE,GAAG,KAAK,EAAE,GAChD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/build/preload.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Insert <link ref="preload" /> elements into the <head> node to preload
|
|
3
|
-
* platfrom icons. Useful to avoid render blocking / jank when we know we'll be
|
|
4
|
-
* showing platform icons on the next page.
|
|
5
|
-
*/
|
|
6
|
-
export declare function preloadIcons(format?: "sm" | "lg"): void;
|
|
1
|
+
/**
|
|
2
|
+
* Insert <link ref="preload" /> elements into the <head> node to preload
|
|
3
|
+
* platfrom icons. Useful to avoid render blocking / jank when we know we'll be
|
|
4
|
+
* showing platform icons on the next page.
|
|
5
|
+
*/
|
|
6
|
+
export declare function preloadIcons(format?: "sm" | "lg"): void;
|
package/build/preload.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PLATFORM_TO_ICON } from "./platformIcon";
|
|
2
|
+
/**
|
|
3
|
+
* Insert <link ref="preload" /> elements into the <head> node to preload
|
|
4
|
+
* platfrom icons. Useful to avoid render blocking / jank when we know we'll be
|
|
5
|
+
* showing platform icons on the next page.
|
|
6
|
+
*/
|
|
7
|
+
export function preloadIcons(format) {
|
|
8
|
+
const formats = format ? [format] : ["lg", "sm"];
|
|
9
|
+
const paths = formats
|
|
10
|
+
.map((f) => Object.values(PLATFORM_TO_ICON).map((icon) => require(`../${f === "lg" ? "svg_80x80" : "svg"}/${icon}.svg`)))
|
|
11
|
+
.flat();
|
|
12
|
+
document.querySelector("head")?.append(...paths.map((path) => {
|
|
13
|
+
const link = document.createElement("link");
|
|
14
|
+
link.rel = "preload";
|
|
15
|
+
link.as = "image";
|
|
16
|
+
link.href = path;
|
|
17
|
+
return link;
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=preload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preload.js","sourceRoot":"","sources":["../src/preload.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,MAAoB;IAC/C,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAEjD,MAAM,KAAK,GAAa,OAAO;SAC5B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACT,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAC3C,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,MAAM,CAAC,CAC9D,CACF;SACA,IAAI,EAAE,CAAC;IAEV,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,CACpC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACpB,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;QACrB,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACH,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "platformicons",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Web Platform and Framework Logo Set",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
7
|
+
"sideEffects": false,
|
|
7
8
|
"files": [
|
|
8
9
|
"build/",
|
|
9
10
|
"svg/",
|
|
@@ -26,25 +27,24 @@
|
|
|
26
27
|
},
|
|
27
28
|
"homepage": "https://github.com/getsentry/platformicons",
|
|
28
29
|
"scripts": {
|
|
29
|
-
"build": "
|
|
30
|
-
"dev": "
|
|
30
|
+
"build": "tsc",
|
|
31
|
+
"dev": "tsc --watch",
|
|
31
32
|
"prepare": "yarn build"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"react": "*"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"
|
|
38
|
-
"react": "^
|
|
39
|
-
"
|
|
40
|
-
"typescript": "^4.0.2"
|
|
38
|
+
"react": "^18",
|
|
39
|
+
"react-dom": "^18",
|
|
40
|
+
"typescript": "^5.6.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@types/node": "*",
|
|
44
44
|
"@types/react": "*"
|
|
45
45
|
},
|
|
46
46
|
"volta": {
|
|
47
|
-
"node": "
|
|
48
|
-
"yarn": "1.22.
|
|
47
|
+
"node": "20.13.1",
|
|
48
|
+
"yarn": "1.22.22"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/build/index.esm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import a from"react";function t(){return(t=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n])}return a}).apply(this,arguments)}var e={amazon:"amazon",amd:"amd",android:"android","android-phone":"android-phone","android-tablet":"android-tablet",anthropic:"anthropic",apple:"apple","apple-ipad":"apple-ipad","apple-iphone":"apple-iphone","apple-tv":"apple-tv","apple-watch":"apple-watch",arm:"arm",bun:"bun",capacitor:"capacitor",chrome:"chrome",chromium:"chromium",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cohere:"cohere",cordova:"cordova",cloudflare:"cloudflare",cpp:"cpp",cryengine:"cryengine",crystal:"crystal",css:"css",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",deno:"deno",dotnet:"dotnet","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-awslambda":"awslambda","dotnet-blazor":"blazor","dotnet-csharp":"csharp","dotnet-gcpfunctions":"gcp-functions","dotnet-maui":"maui","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",dotnetframework:"dotnetframework",edge:"edge","edge-legacy":"edge-legacy",electron:"electron",elixir:"elixir",firefox:"firefox",flutter:"flutter",font:"font",fsharp:"fsharp",git:"git",go:"go","go-echo":"echo","go-fasthttp":"fasthttp","go-fiber":"fiber","go-gin":"gin","go-iris":"iris","go-martini":"martini","go-negroni":"go",godot:"godot",huggingface:"huggingface","internet-explorer":"internet-explorer",java:"java","java-appengine":"app-engine","java-android":"android","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-ray":"ray","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-alpinejs":"alpinejs","javascript-analogjs":"analogjs","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-astro":"astro","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-capacitor":"capacitor","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-gatsby":"gatsby","javascript-hono":"hono","javascript-hydrogen":"hydrogen","javascript-ionic":"ionic","javascript-lit":"lit","javascript-meteor":"meteor","javascript-million":"million","javascript-nextjs":"nextjs","javascript-nuxt":"nuxt","javascript-opennext":"opennext","javascript-qwik":"qwik","javascript-react":"react","javascript-remix":"remix","javascript-solid":"solid","javascript-solidstart":"solidstart","javascript-svelte":"svelte","javascript-sveltekit":"svelte","javascript-vue":"vue","javascript-wasm":"wasm","javascript-node":"nodejs","javascript-awslambda":"awslambda","javascript-azurefunctions":"azure-functions","javascript-connect":"connect","javascript-express":"express","javascript-fastify":"fastify","javascript-gcpfunctions":"gcp-functions","javascript-hapi":"hapi","javascript-koa":"koa","javascript-nestjs":"nestjs","javascript-serverlesscloud":"serverless",ionic:"ionic",kotlin:"kotlin","kotlin-android":"android",langchain:"langchain",linux:"linux",mono:"mono",motorola:"motorola",native:"nativec","native-qt":"qt",nintendo:"nintendo","nintendo-switch":"nintendo-switch",node:"nodejs","node-awslambda":"awslambda","node-azurefunctions":"azure-functions","node-connect":"connect","node-express":"express","node-fastify":"fastify","node-gcpfunctions":"gcp-functions","node-hapi":"hapi","node-koa":"koa","node-nestjs":"nestjs","node-serverlesscloud":"serverless",nvidia:"nvidia",openai:"openai",opera:"opera",perl:"perl",php:"php",playstation:"playstation",powershell:"powershell","php-laravel":"laravel","php-livewire":"livewire","php-magento":"magento","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-airflow":"apache-airflow","python-ariadne":"ariadne","python-asyncpg":"postgresql","python-awslambda":"awslambda","python-azurefunctions":"azure-functions","python-beam":"apache-beam","python-boto3":"aws","python-bottle":"bottle","python-celery":"celery","python-chalice":"chalice","python-clickhouse-driver":"clickhouse","python-django":"django","python-dramatiq":"dramatiq","python-falcon":"falcon","python-fastapi":"fastapi","python-flask":"flask","python-gcpfunctions":"gcp-functions","python-gnu_backtrace":"gnu","python-gql":"graphql","python-graphene":"graphene","python-grpc":"grpc","python-httpx":"httpx","python-huey":"huey","python-litestar":"litestar","python-loguru":"loguru","python-pylons":"python","python-pymongo":"mongodb","python-pyramid":"pyramid","python-pythonawslambda":"awslambda","python-quart":"quart","python-ray":"ray","python-redis":"redis","python-rq":"redis","python-sanic":"sanic","python-serverless":"serverless","python-starlette":"starlette","python-strawberry":"strawberry","python-spark":"apache-spark","python-sqlalchemy":"sqlalchemy","python-tornado":"tornado","python-tryton":"tryton",qq:"qq",qt:"qt","react-native":"react-native",ruby:"ruby","ruby-activeadmin":"activeadmin","ruby-grape":"grape","ruby-hanami":"hanami","ruby-padrino":"padrino","ruby-rack":"ruby","ruby-rails":"rails","ruby-sidekiq":"sidekiq","ruby-sinatra":"sinatra","ruby-trailblazer":"trailblazer",rust:"rust","rust-actix":"actix",safari:"safari",samsung:"samsung",scala:"scala",stride3d:"stride3d",sql:"sql",sqlserver:"sqlserver",swift:"swift",tauri:"tauri",ubuntu:"ubuntu",unity:"unity",ue4:"unreal",unreal:"unreal",unrealengine:"unreal",visualbasic:"visual-basic",vscode:"vscode",windows:"windows"};function n(a){return a.replace(".","-")}function r(a){var t=n(a);return e[t]||(t.includes("-")?o(t):"default")}function o(a){return r(n(a).split("-")[0])}var i=function(e){var n,i,s=e.platform,p=e.size,c=void 0===p?20:p,l=e.format,d=void 0===l?"sm":l,u=e.radius,h=void 0===u?3:u,v=e.withLanguageIcon,g=e.languageIconStyles,y=void 0===g?{}:g,f=e.style,m=void 0===f?{}:f,j=function(a,t){if(null==a)return{};var e,n,r={},o=Object.keys(a);for(n=0;n<o.length;n++)t.indexOf(e=o[n])>=0||(r[e]=a[e]);return r}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),b=r(s),w=require("../"+("lg"===d?"svg_80x80":"svg")+"/"+b+".svg"),x=null!=(n=null==w?void 0:w.default)?n:w,q=o(s),k=require("../svg/"+q+".svg"),z=null!=(i=null==k?void 0:k.default)?i:k;return v&&q!==b&&"default"!==q?a.createElement("div",Object.assign({},j,{style:t({position:"relative"},m)}),a.createElement("img",{src:x,width:c,height:c,style:{borderRadius:h+"px"}}),a.createElement("img",{src:z,style:t({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},y)})):a.createElement("img",Object.assign({src:x,width:c,height:c},j,{style:t({borderRadius:h+"px"},m)}))};function s(a){var t,n=(a?[a]:["lg","sm"]).map(function(a){return Object.values(e).map(function(t){return require("../"+("lg"===a?"svg_80x80":"svg")+"/"+t+".svg")})}).flat();null==(t=document.querySelector("head"))||t.append.apply(t,n.map(function(a){var t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}var p=Object.keys(e);export{i as PlatformIcon,p as platforms,s as preloadIcons};
|
|
2
|
-
//# sourceMappingURL=index.esm.js.map
|
package/build/index.esm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/platformIcon.tsx","../src/preload.tsx","../src/index.tsx"],"sourcesContent":["import React from \"react\";\n\nexport const PLATFORM_TO_ICON = {\n amazon: \"amazon\",\n amd: \"amd\",\n android: \"android\",\n \"android-phone\": \"android-phone\",\n \"android-tablet\": \"android-tablet\",\n anthropic: \"anthropic\",\n apple: \"apple\",\n \"apple-ipad\": \"apple-ipad\",\n \"apple-iphone\": \"apple-iphone\",\n \"apple-tv\": \"apple-tv\",\n \"apple-watch\": \"apple-watch\",\n arm: \"arm\",\n bun: \"bun\",\n capacitor: \"capacitor\",\n chrome: \"chrome\",\n chromium: \"chromium\",\n clojure: \"clojure\",\n cocoa: \"apple\",\n \"cocoa-objc\": \"apple\",\n \"cocoa-swift\": \"swift\",\n cohere: \"cohere\",\n cordova: \"cordova\",\n cloudflare: \"cloudflare\",\n cpp: \"cpp\",\n cryengine: \"cryengine\",\n crystal: \"crystal\",\n css: \"css\",\n csharp: \"csharp\",\n \"csharp-aspnetcore\": \"csharp\",\n dart: \"dart\",\n default: \"default\",\n deno: \"deno\",\n dotnet: \"dotnet\",\n \"dotnet-aspnetcore\": \"dotnet\",\n \"dotnet-aspnet\": \"dotnet\",\n \"dotnet-awslambda\": \"awslambda\",\n \"dotnet-blazor\": \"blazor\",\n \"dotnet-csharp\": \"csharp\",\n \"dotnet-gcpfunctions\": \"gcp-functions\",\n \"dotnet-maui\": \"maui\",\n \"dotnet-uno\": \"uno\",\n \"dotnet-xamarin\": \"xamarin\",\n dotnetcore: \"dotnetcore\",\n dotnetfx: \"dotnetfx\",\n dotnetframework: \"dotnetframework\",\n edge: \"edge\",\n \"edge-legacy\": \"edge-legacy\",\n electron: \"electron\",\n elixir: \"elixir\",\n firefox: \"firefox\",\n flutter: \"flutter\",\n font: \"font\",\n fsharp: \"fsharp\",\n git: \"git\",\n go: \"go\",\n \"go-echo\": \"echo\",\n \"go-fasthttp\": \"fasthttp\",\n \"go-fiber\": \"fiber\",\n \"go-gin\": \"gin\",\n \"go-iris\": \"iris\",\n \"go-martini\": \"martini\",\n \"go-negroni\": \"go\",\n godot: \"godot\",\n huggingface: \"huggingface\",\n \"internet-explorer\": \"internet-explorer\",\n java: \"java\",\n \"java-appengine\": \"app-engine\",\n \"java-android\": \"android\",\n \"java-log4j\": \"java\",\n \"java-log4j2\": \"java\",\n \"java-logback\": \"logback\",\n \"java-logging\": \"java\",\n \"java-ray\": \"ray\",\n \"java-spring\": \"spring\",\n \"java-spring-boot\": \"springboot\",\n javascript: \"javascript\",\n \"javascript-alpinejs\": \"alpinejs\",\n \"javascript-analogjs\": \"analogjs\",\n \"javascript-angular\": \"angularjs\",\n \"javascript-angularjs\": \"angularjs\",\n \"javascript-astro\": \"astro\",\n \"javascript-backbone\": \"backbone\",\n \"javascript-browser\": \"javascript\",\n \"javascript-capacitor\": \"capacitor\",\n \"javascript-cordova\": \"cordova\",\n \"javascript-electron\": \"electron\",\n \"javascript-ember\": \"ember\",\n \"javascript-gatsby\": \"gatsby\",\n \"javascript-hono\": \"hono\",\n \"javascript-hydrogen\": \"hydrogen\",\n \"javascript-ionic\": \"ionic\",\n \"javascript-lit\": \"lit\",\n \"javascript-meteor\": \"meteor\",\n \"javascript-million\": \"million\",\n \"javascript-nextjs\": \"nextjs\",\n \"javascript-nuxt\": \"nuxt\",\n \"javascript-opennext\": \"opennext\",\n \"javascript-qwik\": \"qwik\",\n \"javascript-react\": \"react\",\n \"javascript-remix\": \"remix\",\n \"javascript-solid\": \"solid\",\n \"javascript-solidstart\": \"solidstart\",\n \"javascript-svelte\": \"svelte\",\n \"javascript-sveltekit\": \"svelte\",\n \"javascript-vue\": \"vue\",\n \"javascript-wasm\": \"wasm\",\n \"javascript-node\": \"nodejs\",\n \"javascript-awslambda\": \"awslambda\",\n \"javascript-azurefunctions\": \"azure-functions\",\n \"javascript-connect\": \"connect\",\n \"javascript-express\": \"express\",\n \"javascript-fastify\": \"fastify\",\n \"javascript-gcpfunctions\": \"gcp-functions\",\n \"javascript-hapi\": \"hapi\",\n \"javascript-koa\": \"koa\",\n \"javascript-nestjs\": \"nestjs\",\n \"javascript-serverlesscloud\": \"serverless\",\n ionic: \"ionic\",\n kotlin: \"kotlin\",\n \"kotlin-android\": \"android\",\n langchain: \"langchain\",\n linux: \"linux\",\n mono: \"mono\",\n motorola: \"motorola\",\n native: \"nativec\",\n \"native-qt\": \"qt\",\n nintendo: \"nintendo\",\n \"nintendo-switch\": \"nintendo-switch\",\n node: \"nodejs\",\n \"node-awslambda\": \"awslambda\",\n \"node-azurefunctions\": \"azure-functions\",\n \"node-connect\": \"connect\",\n \"node-express\": \"express\",\n \"node-fastify\": \"fastify\",\n \"node-gcpfunctions\": \"gcp-functions\",\n \"node-hapi\": \"hapi\",\n \"node-koa\": \"koa\",\n \"node-nestjs\": \"nestjs\",\n \"node-serverlesscloud\": \"serverless\",\n nvidia: \"nvidia\",\n openai: \"openai\",\n opera: \"opera\",\n perl: \"perl\",\n php: \"php\",\n playstation: \"playstation\",\n powershell: \"powershell\",\n \"php-laravel\": \"laravel\",\n \"php-livewire\": \"livewire\",\n \"php-magento\": \"magento\",\n \"php-monolog\": \"php\",\n \"php-symfony2\": \"symfony\",\n \"php-symfony\": \"symfony\",\n python: \"python\",\n \"python-aiohttp\": \"aiohttp\",\n \"python-airflow\": \"apache-airflow\",\n \"python-ariadne\": \"ariadne\",\n \"python-asyncpg\": \"postgresql\",\n \"python-awslambda\": \"awslambda\",\n \"python-azurefunctions\": \"azure-functions\",\n \"python-beam\": \"apache-beam\",\n \"python-boto3\": \"aws\",\n \"python-bottle\": \"bottle\",\n \"python-celery\": \"celery\",\n \"python-chalice\": \"chalice\",\n \"python-clickhouse-driver\": \"clickhouse\",\n \"python-django\": \"django\",\n \"python-dramatiq\": \"dramatiq\",\n \"python-falcon\": \"falcon\",\n \"python-fastapi\": \"fastapi\",\n \"python-flask\": \"flask\",\n \"python-gcpfunctions\": \"gcp-functions\",\n \"python-gnu_backtrace\": \"gnu\",\n \"python-gql\": \"graphql\",\n \"python-graphene\": \"graphene\",\n \"python-grpc\": \"grpc\",\n \"python-httpx\": \"httpx\",\n \"python-huey\": \"huey\",\n \"python-litestar\": \"litestar\",\n \"python-loguru\": \"loguru\",\n \"python-pylons\": \"python\",\n \"python-pymongo\": \"mongodb\",\n \"python-pyramid\": \"pyramid\",\n \"python-pythonawslambda\": \"awslambda\",\n \"python-quart\": \"quart\",\n \"python-ray\": \"ray\",\n \"python-redis\": \"redis\",\n \"python-rq\": \"redis\",\n \"python-sanic\": \"sanic\",\n \"python-serverless\": \"serverless\",\n \"python-starlette\": \"starlette\",\n \"python-strawberry\": \"strawberry\",\n \"python-spark\": \"apache-spark\",\n \"python-sqlalchemy\": \"sqlalchemy\",\n \"python-tornado\": \"tornado\",\n \"python-tryton\": \"tryton\",\n qq: \"qq\",\n qt: \"qt\",\n \"react-native\": \"react-native\",\n ruby: \"ruby\",\n \"ruby-activeadmin\": \"activeadmin\",\n \"ruby-grape\": \"grape\",\n \"ruby-hanami\": \"hanami\",\n \"ruby-padrino\": \"padrino\",\n \"ruby-rack\": \"ruby\",\n \"ruby-rails\": \"rails\",\n \"ruby-sidekiq\": \"sidekiq\",\n \"ruby-sinatra\": \"sinatra\",\n \"ruby-trailblazer\": \"trailblazer\",\n rust: \"rust\",\n \"rust-actix\": \"actix\",\n safari: \"safari\",\n samsung: \"samsung\",\n scala: \"scala\",\n stride3d: \"stride3d\",\n sql: \"sql\",\n sqlserver: \"sqlserver\",\n swift: \"swift\",\n tauri: \"tauri\",\n ubuntu: \"ubuntu\",\n unity: \"unity\",\n // This will be deprecated in favor of 'unrealengine'\n ue4: \"unreal\",\n unreal: \"unreal\",\n unrealengine: \"unreal\",\n visualbasic: \"visual-basic\",\n vscode: \"vscode\",\n windows: \"windows\",\n // Don't add new platforms down here!\n // Please add them where they belong alphabetically\n} as const;\n\nfunction normalizePlatform(platform: string): string {\n // sentry uses format python-django, but docs uses python.django\n // this function normalizes that\n return platform.replace(\".\", \"-\");\n}\n\nfunction getIcon(platform: string): Platform {\n const normalizedPlatform = normalizePlatform(platform);\n const icon = PLATFORM_TO_ICON[normalizedPlatform];\n\n if (icon) {\n return icon;\n }\n\n if (normalizedPlatform.includes(\"-\")) {\n return getLanguageIcon(normalizedPlatform);\n }\n\n return \"default\";\n}\n\nfunction getLanguageIcon(platform: string): Platform {\n const [language] = normalizePlatform(platform).split(\"-\");\n\n return getIcon(language);\n}\n\ntype Platform = (typeof PLATFORM_TO_ICON)[keyof typeof PLATFORM_TO_ICON];\n\ntype Props = React.HTMLAttributes<HTMLDivElement | HTMLImageElement> & {\n platform: string;\n size?: string | number;\n format?: \"sm\" | \"lg\";\n radius?: number | null;\n withLanguageIcon?: boolean;\n languageIconStyles?: React.CSSProperties;\n};\n\nconst PlatformIcon = ({\n platform,\n size = 20,\n format = \"sm\",\n radius = 3,\n withLanguageIcon,\n languageIconStyles = {},\n style = {},\n ...otherProps\n}: Props) => {\n const icon = getIcon(platform);\n const iconPathRaw = require(\n `../${format === \"lg\" ? \"svg_80x80\" : \"svg\"}/${icon}.svg`,\n );\n const iconPath = iconPathRaw?.default ?? iconPathRaw;\n\n const languageIcon = getLanguageIcon(platform);\n const languageIconPathRaw = require(`../svg/${languageIcon}.svg`);\n const languageIconPath = languageIconPathRaw?.default ?? languageIconPathRaw;\n\n if (withLanguageIcon && languageIcon !== icon && languageIcon !== \"default\") {\n return (\n <div {...otherProps} style={{ position: \"relative\", ...style }}>\n <img\n src={iconPath}\n width={size}\n height={size}\n style={{ borderRadius: `${radius}px` }}\n />\n <img\n src={languageIconPath}\n style={{\n position: \"absolute\",\n bottom: \"-1px\",\n right: \"-1px\",\n height: \"30%\",\n width: \"30%\",\n borderRadius: \"2px\",\n ...languageIconStyles,\n }}\n />\n </div>\n );\n }\n\n return (\n <img\n src={iconPath}\n width={size}\n height={size}\n {...otherProps}\n style={{ borderRadius: `${radius}px`, ...style }}\n />\n );\n};\n\nexport default PlatformIcon;\n","import { PLATFORM_TO_ICON } from \"./platformIcon\";\n\n/**\n * Insert <link ref=\"preload\" /> elements into the <head> node to preload\n * platfrom icons. Useful to avoid render blocking / jank when we know we'll be\n * showing platform icons on the next page.\n */\nexport function preloadIcons(format?: \"sm\" | \"lg\") {\n const formats = format ? [format] : [\"lg\", \"sm\"];\n\n const paths: string[] = formats\n .map((f) =>\n Object.values(PLATFORM_TO_ICON).map((icon) =>\n require(`../${f === \"lg\" ? \"svg_80x80\" : \"svg\"}/${icon}.svg`)\n )\n )\n .flat();\n\n document.querySelector(\"head\")?.append(\n ...paths.map((path) => {\n const link = document.createElement(\"link\");\n link.rel = \"preload\";\n link.as = \"image\";\n link.href = path;\n return link;\n })\n );\n}\n","export { default as PlatformIcon } from \"./platformIcon\";\nexport { preloadIcons } from \"./preload\";\n\nimport { PLATFORM_TO_ICON } from \"./platformIcon\";\nexport const platforms = Object.keys(PLATFORM_TO_ICON); \n"],"names":["PLATFORM_TO_ICON","amazon","amd","android","android-phone","android-tablet","anthropic","apple","apple-ipad","apple-iphone","apple-tv","apple-watch","arm","bun","capacitor","chrome","chromium","clojure","cocoa","cocoa-objc","cocoa-swift","cohere","cordova","cloudflare","cpp","cryengine","crystal","css","csharp","csharp-aspnetcore","dart","default","deno","dotnet","dotnet-aspnetcore","dotnet-aspnet","dotnet-awslambda","dotnet-blazor","dotnet-csharp","dotnet-gcpfunctions","dotnet-maui","dotnet-uno","dotnet-xamarin","dotnetcore","dotnetfx","dotnetframework","edge","edge-legacy","electron","elixir","firefox","flutter","font","fsharp","git","go","go-echo","go-fasthttp","go-fiber","go-gin","go-iris","go-martini","go-negroni","godot","huggingface","internet-explorer","java","java-appengine","java-android","java-log4j","java-log4j2","java-logback","java-logging","java-ray","java-spring","java-spring-boot","javascript","javascript-alpinejs","javascript-analogjs","javascript-angular","javascript-angularjs","javascript-astro","javascript-backbone","javascript-browser","javascript-capacitor","javascript-cordova","javascript-electron","javascript-ember","javascript-gatsby","javascript-hono","javascript-hydrogen","javascript-ionic","javascript-lit","javascript-meteor","javascript-million","javascript-nextjs","javascript-nuxt","javascript-opennext","javascript-qwik","javascript-react","javascript-remix","javascript-solid","javascript-solidstart","javascript-svelte","javascript-sveltekit","javascript-vue","javascript-wasm","javascript-node","javascript-awslambda","javascript-azurefunctions","javascript-connect","javascript-express","javascript-fastify","javascript-gcpfunctions","javascript-hapi","javascript-koa","javascript-nestjs","javascript-serverlesscloud","ionic","kotlin","kotlin-android","langchain","linux","mono","motorola","native","native-qt","nintendo","nintendo-switch","node","node-awslambda","node-azurefunctions","node-connect","node-express","node-fastify","node-gcpfunctions","node-hapi","node-koa","node-nestjs","node-serverlesscloud","nvidia","openai","opera","perl","php","playstation","powershell","php-laravel","php-livewire","php-magento","php-monolog","php-symfony2","php-symfony","python","python-aiohttp","python-airflow","python-ariadne","python-asyncpg","python-awslambda","python-azurefunctions","python-beam","python-boto3","python-bottle","python-celery","python-chalice","python-clickhouse-driver","python-django","python-dramatiq","python-falcon","python-fastapi","python-flask","python-gcpfunctions","python-gnu_backtrace","python-gql","python-graphene","python-grpc","python-httpx","python-huey","python-litestar","python-loguru","python-pylons","python-pymongo","python-pyramid","python-pythonawslambda","python-quart","python-ray","python-redis","python-rq","python-sanic","python-serverless","python-starlette","python-strawberry","python-spark","python-sqlalchemy","python-tornado","python-tryton","qq","qt","react-native","ruby","ruby-activeadmin","ruby-grape","ruby-hanami","ruby-padrino","ruby-rack","ruby-rails","ruby-sidekiq","ruby-sinatra","ruby-trailblazer","rust","rust-actix","safari","samsung","scala","stride3d","sql","sqlserver","swift","tauri","ubuntu","unity","ue4","unreal","unrealengine","visualbasic","vscode","windows","normalizePlatform","platform","replace","getIcon","normalizedPlatform","includes","getLanguageIcon","split","PlatformIcon","size","format","radius","withLanguageIcon","languageIconStyles","style","otherProps","icon","iconPathRaw","require","iconPath","languageIcon","languageIconPathRaw","languageIconPath","React","position","src","width","height","borderRadius","bottom","right","preloadIcons","paths","map","f","Object","values","flat","document","querySelector","append","path","link","createElement","rel","as","href","platforms","keys"],"mappings":"wOAEaA,EAAmB,CAC9BC,OAAQ,SACRC,IAAK,MACLC,QAAS,UACTC,gBAAiB,gBACjBC,iBAAkB,iBAClBC,UAAW,YACXC,MAAO,QACPC,aAAc,aACdC,eAAgB,eAChBC,WAAY,WACZC,cAAe,cACfC,IAAK,MACLC,IAAK,MACLC,UAAW,YACXC,OAAQ,SACRC,SAAU,WACVC,QAAS,UACTC,MAAO,QACPC,aAA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WACVK,OAAQ,OACRC,MAAO,OACPH,OAAQ,MACRD,MAAO,MACPE,aAAc,OACXf,MAQXU,qCACEE,IAAKN,EACLO,MAAOjB,EACPkB,OAAQlB,GACJM,GACJD,SAASc,aAAiBjB,QAAeG,gBC5T/BiB,EAAarB,SAGrBsB,GAFUtB,EAAS,CAACA,GAAU,CAAC,KAAM,OAGxCuB,IAAI,SAACC,UACJC,OAAOC,OAAOvQ,GAAkBoQ,IAAI,SAACjB,UACnCE,eAAoB,OAANgB,EAAa,YAAc,WAASlB,cAGrDqB,gBAEHC,SAASC,cAAc,YAASC,eAC3BR,EAAMC,IAAI,SAACQ,GACZ,IAAMC,EAAOJ,SAASK,cAAc,QAIpC,OAHAD,EAAKE,IAAM,UACXF,EAAKG,GAAK,QACVH,EAAKI,KAAOL,EACLC,SCpBAK,EAAYZ,OAAOa,KAAKnR"}
|
package/build/index.modern.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import a from"react";function t(){return(t=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n])}return a}).apply(this,arguments)}const e={amazon:"amazon",amd:"amd",android:"android","android-phone":"android-phone","android-tablet":"android-tablet",anthropic:"anthropic",apple:"apple","apple-ipad":"apple-ipad","apple-iphone":"apple-iphone","apple-tv":"apple-tv","apple-watch":"apple-watch",arm:"arm",bun:"bun",capacitor:"capacitor",chrome:"chrome",chromium:"chromium",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cohere:"cohere",cordova:"cordova",cloudflare:"cloudflare",cpp:"cpp",cryengine:"cryengine",crystal:"crystal",css:"css",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",deno:"deno",dotnet:"dotnet","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-awslambda":"awslambda","dotnet-blazor":"blazor","dotnet-csharp":"csharp","dotnet-gcpfunctions":"gcp-functions","dotnet-maui":"maui","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",dotnetframework:"dotnetframework",edge:"edge","edge-legacy":"edge-legacy",electron:"electron",elixir:"elixir",firefox:"firefox",flutter:"flutter",font:"font",fsharp:"fsharp",git:"git",go:"go","go-echo":"echo","go-fasthttp":"fasthttp","go-fiber":"fiber","go-gin":"gin","go-iris":"iris","go-martini":"martini","go-negroni":"go",godot:"godot",huggingface:"huggingface","internet-explorer":"internet-explorer",java:"java","java-appengine":"app-engine","java-android":"android","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-ray":"ray","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-alpinejs":"alpinejs","javascript-analogjs":"analogjs","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-astro":"astro","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-capacitor":"capacitor","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-gatsby":"gatsby","javascript-hono":"hono","javascript-hydrogen":"hydrogen","javascript-ionic":"ionic","javascript-lit":"lit","javascript-meteor":"meteor","javascript-million":"million","javascript-nextjs":"nextjs","javascript-nuxt":"nuxt","javascript-opennext":"opennext","javascript-qwik":"qwik","javascript-react":"react","javascript-remix":"remix","javascript-solid":"solid","javascript-solidstart":"solidstart","javascript-svelte":"svelte","javascript-sveltekit":"svelte","javascript-vue":"vue","javascript-wasm":"wasm","javascript-node":"nodejs","javascript-awslambda":"awslambda","javascript-azurefunctions":"azure-functions","javascript-connect":"connect","javascript-express":"express","javascript-fastify":"fastify","javascript-gcpfunctions":"gcp-functions","javascript-hapi":"hapi","javascript-koa":"koa","javascript-nestjs":"nestjs","javascript-serverlesscloud":"serverless",ionic:"ionic",kotlin:"kotlin","kotlin-android":"android",langchain:"langchain",linux:"linux",mono:"mono",motorola:"motorola",native:"nativec","native-qt":"qt",nintendo:"nintendo","nintendo-switch":"nintendo-switch",node:"nodejs","node-awslambda":"awslambda","node-azurefunctions":"azure-functions","node-connect":"connect","node-express":"express","node-fastify":"fastify","node-gcpfunctions":"gcp-functions","node-hapi":"hapi","node-koa":"koa","node-nestjs":"nestjs","node-serverlesscloud":"serverless",nvidia:"nvidia",openai:"openai",opera:"opera",perl:"perl",php:"php",playstation:"playstation",powershell:"powershell","php-laravel":"laravel","php-livewire":"livewire","php-magento":"magento","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-airflow":"apache-airflow","python-ariadne":"ariadne","python-asyncpg":"postgresql","python-awslambda":"awslambda","python-azurefunctions":"azure-functions","python-beam":"apache-beam","python-boto3":"aws","python-bottle":"bottle","python-celery":"celery","python-chalice":"chalice","python-clickhouse-driver":"clickhouse","python-django":"django","python-dramatiq":"dramatiq","python-falcon":"falcon","python-fastapi":"fastapi","python-flask":"flask","python-gcpfunctions":"gcp-functions","python-gnu_backtrace":"gnu","python-gql":"graphql","python-graphene":"graphene","python-grpc":"grpc","python-httpx":"httpx","python-huey":"huey","python-litestar":"litestar","python-loguru":"loguru","python-pylons":"python","python-pymongo":"mongodb","python-pyramid":"pyramid","python-pythonawslambda":"awslambda","python-quart":"quart","python-ray":"ray","python-redis":"redis","python-rq":"redis","python-sanic":"sanic","python-serverless":"serverless","python-starlette":"starlette","python-strawberry":"strawberry","python-spark":"apache-spark","python-sqlalchemy":"sqlalchemy","python-tornado":"tornado","python-tryton":"tryton",qq:"qq",qt:"qt","react-native":"react-native",ruby:"ruby","ruby-activeadmin":"activeadmin","ruby-grape":"grape","ruby-hanami":"hanami","ruby-padrino":"padrino","ruby-rack":"ruby","ruby-rails":"rails","ruby-sidekiq":"sidekiq","ruby-sinatra":"sinatra","ruby-trailblazer":"trailblazer",rust:"rust","rust-actix":"actix",safari:"safari",samsung:"samsung",scala:"scala",stride3d:"stride3d",sql:"sql",sqlserver:"sqlserver",swift:"swift",tauri:"tauri",ubuntu:"ubuntu",unity:"unity",ue4:"unreal",unreal:"unreal",unrealengine:"unreal",visualbasic:"visual-basic",vscode:"vscode",windows:"windows"};function n(a){return a.replace(".","-")}function r(a){const t=n(a);return e[t]||(t.includes("-")?o(t):"default")}function o(a){const[t]=n(a).split("-");return r(t)}const i=e=>{var n,i;let{platform:s,size:p=20,format:c="sm",radius:l=3,withLanguageIcon:d,languageIconStyles:u={},style:h={}}=e,g=function(a,t){if(null==a)return{};var e,n,r={},o=Object.keys(a);for(n=0;n<o.length;n++)t.indexOf(e=o[n])>=0||(r[e]=a[e]);return r}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]);const y=r(s),v=require(`../${"lg"===c?"svg_80x80":"svg"}/${y}.svg`),m=null!=(n=null==v?void 0:v.default)?n:v,f=o(s),j=require(`../svg/${f}.svg`),b=null!=(i=null==j?void 0:j.default)?i:j;return d&&f!==y&&"default"!==f?a.createElement("div",Object.assign({},g,{style:t({position:"relative"},h)}),a.createElement("img",{src:m,width:p,height:p,style:{borderRadius:l+"px"}}),a.createElement("img",{src:b,style:t({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},u)})):a.createElement("img",Object.assign({src:m,width:p,height:p},g,{style:t({borderRadius:l+"px"},h)}))};function s(a){var t;const n=(a?[a]:["lg","sm"]).map(a=>Object.values(e).map(t=>require(`../${"lg"===a?"svg_80x80":"svg"}/${t}.svg`))).flat();null==(t=document.querySelector("head"))||t.append(...n.map(a=>{const t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}const p=Object.keys(e);export{i as PlatformIcon,p as platforms,s as preloadIcons};
|
|
2
|
-
//# sourceMappingURL=index.modern.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.modern.js","sources":["../src/platformIcon.tsx","../src/preload.tsx","../src/index.tsx"],"sourcesContent":["import React from \"react\";\n\nexport const PLATFORM_TO_ICON = {\n amazon: \"amazon\",\n amd: \"amd\",\n android: \"android\",\n \"android-phone\": \"android-phone\",\n \"android-tablet\": \"android-tablet\",\n anthropic: \"anthropic\",\n apple: \"apple\",\n \"apple-ipad\": \"apple-ipad\",\n \"apple-iphone\": \"apple-iphone\",\n \"apple-tv\": \"apple-tv\",\n \"apple-watch\": \"apple-watch\",\n arm: \"arm\",\n bun: \"bun\",\n capacitor: \"capacitor\",\n chrome: \"chrome\",\n chromium: \"chromium\",\n clojure: \"clojure\",\n cocoa: \"apple\",\n \"cocoa-objc\": \"apple\",\n \"cocoa-swift\": \"swift\",\n cohere: \"cohere\",\n cordova: \"cordova\",\n cloudflare: \"cloudflare\",\n cpp: \"cpp\",\n cryengine: \"cryengine\",\n crystal: \"crystal\",\n css: \"css\",\n csharp: \"csharp\",\n \"csharp-aspnetcore\": \"csharp\",\n dart: \"dart\",\n default: \"default\",\n deno: \"deno\",\n dotnet: \"dotnet\",\n \"dotnet-aspnetcore\": \"dotnet\",\n \"dotnet-aspnet\": \"dotnet\",\n \"dotnet-awslambda\": \"awslambda\",\n \"dotnet-blazor\": \"blazor\",\n \"dotnet-csharp\": \"csharp\",\n \"dotnet-gcpfunctions\": \"gcp-functions\",\n \"dotnet-maui\": \"maui\",\n \"dotnet-uno\": \"uno\",\n \"dotnet-xamarin\": \"xamarin\",\n dotnetcore: \"dotnetcore\",\n dotnetfx: \"dotnetfx\",\n dotnetframework: \"dotnetframework\",\n edge: \"edge\",\n \"edge-legacy\": \"edge-legacy\",\n electron: \"electron\",\n elixir: \"elixir\",\n firefox: \"firefox\",\n flutter: \"flutter\",\n font: \"font\",\n fsharp: \"fsharp\",\n git: \"git\",\n go: \"go\",\n \"go-echo\": \"echo\",\n \"go-fasthttp\": \"fasthttp\",\n \"go-fiber\": \"fiber\",\n \"go-gin\": \"gin\",\n \"go-iris\": \"iris\",\n \"go-martini\": \"martini\",\n \"go-negroni\": \"go\",\n godot: \"godot\",\n huggingface: \"huggingface\",\n \"internet-explorer\": \"internet-explorer\",\n java: \"java\",\n \"java-appengine\": \"app-engine\",\n \"java-android\": \"android\",\n \"java-log4j\": \"java\",\n \"java-log4j2\": \"java\",\n \"java-logback\": \"logback\",\n \"java-logging\": \"java\",\n \"java-ray\": \"ray\",\n \"java-spring\": \"spring\",\n \"java-spring-boot\": \"springboot\",\n javascript: \"javascript\",\n \"javascript-alpinejs\": \"alpinejs\",\n \"javascript-analogjs\": \"analogjs\",\n \"javascript-angular\": \"angularjs\",\n \"javascript-angularjs\": \"angularjs\",\n \"javascript-astro\": \"astro\",\n \"javascript-backbone\": \"backbone\",\n \"javascript-browser\": \"javascript\",\n \"javascript-capacitor\": \"capacitor\",\n \"javascript-cordova\": \"cordova\",\n \"javascript-electron\": \"electron\",\n \"javascript-ember\": \"ember\",\n \"javascript-gatsby\": \"gatsby\",\n \"javascript-hono\": \"hono\",\n \"javascript-hydrogen\": \"hydrogen\",\n \"javascript-ionic\": \"ionic\",\n \"javascript-lit\": \"lit\",\n \"javascript-meteor\": \"meteor\",\n \"javascript-million\": \"million\",\n \"javascript-nextjs\": \"nextjs\",\n \"javascript-nuxt\": \"nuxt\",\n \"javascript-opennext\": \"opennext\",\n \"javascript-qwik\": \"qwik\",\n \"javascript-react\": \"react\",\n \"javascript-remix\": \"remix\",\n \"javascript-solid\": \"solid\",\n \"javascript-solidstart\": \"solidstart\",\n \"javascript-svelte\": \"svelte\",\n \"javascript-sveltekit\": \"svelte\",\n \"javascript-vue\": \"vue\",\n \"javascript-wasm\": \"wasm\",\n \"javascript-node\": \"nodejs\",\n \"javascript-awslambda\": \"awslambda\",\n \"javascript-azurefunctions\": \"azure-functions\",\n \"javascript-connect\": \"connect\",\n \"javascript-express\": \"express\",\n \"javascript-fastify\": \"fastify\",\n \"javascript-gcpfunctions\": \"gcp-functions\",\n \"javascript-hapi\": \"hapi\",\n \"javascript-koa\": \"koa\",\n \"javascript-nestjs\": \"nestjs\",\n \"javascript-serverlesscloud\": \"serverless\",\n ionic: \"ionic\",\n kotlin: \"kotlin\",\n \"kotlin-android\": \"android\",\n langchain: \"langchain\",\n linux: \"linux\",\n mono: \"mono\",\n motorola: \"motorola\",\n native: \"nativec\",\n \"native-qt\": \"qt\",\n nintendo: \"nintendo\",\n \"nintendo-switch\": \"nintendo-switch\",\n node: \"nodejs\",\n \"node-awslambda\": \"awslambda\",\n \"node-azurefunctions\": \"azure-functions\",\n \"node-connect\": \"connect\",\n \"node-express\": \"express\",\n \"node-fastify\": \"fastify\",\n \"node-gcpfunctions\": \"gcp-functions\",\n \"node-hapi\": \"hapi\",\n \"node-koa\": \"koa\",\n \"node-nestjs\": \"nestjs\",\n \"node-serverlesscloud\": \"serverless\",\n nvidia: \"nvidia\",\n openai: \"openai\",\n opera: \"opera\",\n perl: \"perl\",\n php: \"php\",\n playstation: \"playstation\",\n powershell: \"powershell\",\n \"php-laravel\": \"laravel\",\n \"php-livewire\": \"livewire\",\n \"php-magento\": \"magento\",\n \"php-monolog\": \"php\",\n \"php-symfony2\": \"symfony\",\n \"php-symfony\": \"symfony\",\n python: \"python\",\n \"python-aiohttp\": \"aiohttp\",\n \"python-airflow\": \"apache-airflow\",\n \"python-ariadne\": \"ariadne\",\n \"python-asyncpg\": \"postgresql\",\n \"python-awslambda\": \"awslambda\",\n \"python-azurefunctions\": \"azure-functions\",\n \"python-beam\": \"apache-beam\",\n \"python-boto3\": \"aws\",\n \"python-bottle\": \"bottle\",\n \"python-celery\": \"celery\",\n \"python-chalice\": \"chalice\",\n \"python-clickhouse-driver\": \"clickhouse\",\n \"python-django\": \"django\",\n \"python-dramatiq\": \"dramatiq\",\n \"python-falcon\": \"falcon\",\n \"python-fastapi\": \"fastapi\",\n \"python-flask\": \"flask\",\n \"python-gcpfunctions\": \"gcp-functions\",\n \"python-gnu_backtrace\": \"gnu\",\n \"python-gql\": \"graphql\",\n \"python-graphene\": \"graphene\",\n \"python-grpc\": \"grpc\",\n \"python-httpx\": \"httpx\",\n \"python-huey\": \"huey\",\n \"python-litestar\": \"litestar\",\n \"python-loguru\": \"loguru\",\n \"python-pylons\": \"python\",\n \"python-pymongo\": \"mongodb\",\n \"python-pyramid\": \"pyramid\",\n \"python-pythonawslambda\": \"awslambda\",\n \"python-quart\": \"quart\",\n \"python-ray\": \"ray\",\n \"python-redis\": \"redis\",\n \"python-rq\": \"redis\",\n \"python-sanic\": \"sanic\",\n \"python-serverless\": \"serverless\",\n \"python-starlette\": \"starlette\",\n \"python-strawberry\": \"strawberry\",\n \"python-spark\": \"apache-spark\",\n \"python-sqlalchemy\": \"sqlalchemy\",\n \"python-tornado\": \"tornado\",\n \"python-tryton\": \"tryton\",\n qq: \"qq\",\n qt: \"qt\",\n \"react-native\": \"react-native\",\n ruby: \"ruby\",\n \"ruby-activeadmin\": \"activeadmin\",\n \"ruby-grape\": \"grape\",\n \"ruby-hanami\": \"hanami\",\n \"ruby-padrino\": \"padrino\",\n \"ruby-rack\": \"ruby\",\n \"ruby-rails\": \"rails\",\n \"ruby-sidekiq\": \"sidekiq\",\n \"ruby-sinatra\": \"sinatra\",\n \"ruby-trailblazer\": \"trailblazer\",\n rust: \"rust\",\n \"rust-actix\": \"actix\",\n safari: \"safari\",\n samsung: \"samsung\",\n scala: \"scala\",\n stride3d: \"stride3d\",\n sql: \"sql\",\n sqlserver: \"sqlserver\",\n swift: \"swift\",\n tauri: \"tauri\",\n ubuntu: \"ubuntu\",\n unity: \"unity\",\n // This will be deprecated in favor of 'unrealengine'\n ue4: \"unreal\",\n unreal: \"unreal\",\n unrealengine: \"unreal\",\n visualbasic: \"visual-basic\",\n vscode: \"vscode\",\n windows: \"windows\",\n // Don't add new platforms down here!\n // Please add them where they belong alphabetically\n} as const;\n\nfunction normalizePlatform(platform: string): string {\n // sentry uses format python-django, but docs uses python.django\n // this function normalizes that\n return platform.replace(\".\", \"-\");\n}\n\nfunction getIcon(platform: string): Platform {\n const normalizedPlatform = normalizePlatform(platform);\n const icon = PLATFORM_TO_ICON[normalizedPlatform];\n\n if (icon) {\n return icon;\n }\n\n if (normalizedPlatform.includes(\"-\")) {\n return getLanguageIcon(normalizedPlatform);\n }\n\n return \"default\";\n}\n\nfunction getLanguageIcon(platform: string): Platform {\n const [language] = normalizePlatform(platform).split(\"-\");\n\n return getIcon(language);\n}\n\ntype Platform = (typeof PLATFORM_TO_ICON)[keyof typeof PLATFORM_TO_ICON];\n\ntype Props = React.HTMLAttributes<HTMLDivElement | HTMLImageElement> & {\n platform: string;\n size?: string | number;\n format?: \"sm\" | \"lg\";\n radius?: number | null;\n withLanguageIcon?: boolean;\n languageIconStyles?: React.CSSProperties;\n};\n\nconst PlatformIcon = ({\n platform,\n size = 20,\n format = \"sm\",\n radius = 3,\n withLanguageIcon,\n languageIconStyles = {},\n style = {},\n ...otherProps\n}: Props) => {\n const icon = getIcon(platform);\n const iconPathRaw = require(\n `../${format === \"lg\" ? \"svg_80x80\" : \"svg\"}/${icon}.svg`,\n );\n const iconPath = iconPathRaw?.default ?? iconPathRaw;\n\n const languageIcon = getLanguageIcon(platform);\n const languageIconPathRaw = require(`../svg/${languageIcon}.svg`);\n const languageIconPath = languageIconPathRaw?.default ?? languageIconPathRaw;\n\n if (withLanguageIcon && languageIcon !== icon && languageIcon !== \"default\") {\n return (\n <div {...otherProps} style={{ position: \"relative\", ...style }}>\n <img\n src={iconPath}\n width={size}\n height={size}\n style={{ borderRadius: `${radius}px` }}\n />\n <img\n src={languageIconPath}\n style={{\n position: \"absolute\",\n bottom: \"-1px\",\n right: \"-1px\",\n height: \"30%\",\n width: \"30%\",\n borderRadius: \"2px\",\n ...languageIconStyles,\n }}\n />\n </div>\n );\n }\n\n return (\n <img\n src={iconPath}\n width={size}\n height={size}\n {...otherProps}\n style={{ borderRadius: `${radius}px`, ...style }}\n />\n );\n};\n\nexport default PlatformIcon;\n","import { PLATFORM_TO_ICON } from \"./platformIcon\";\n\n/**\n * Insert <link ref=\"preload\" /> elements into the <head> node to preload\n * platfrom icons. Useful to avoid render blocking / jank when we know we'll be\n * showing platform icons on the next page.\n */\nexport function preloadIcons(format?: \"sm\" | \"lg\") {\n const formats = format ? [format] : [\"lg\", \"sm\"];\n\n const paths: string[] = formats\n .map((f) =>\n Object.values(PLATFORM_TO_ICON).map((icon) =>\n require(`../${f === \"lg\" ? \"svg_80x80\" : \"svg\"}/${icon}.svg`)\n )\n )\n .flat();\n\n document.querySelector(\"head\")?.append(\n ...paths.map((path) => {\n const link = document.createElement(\"link\");\n link.rel = \"preload\";\n link.as = \"image\";\n link.href = path;\n return link;\n })\n );\n}\n","export { default as PlatformIcon } from \"./platformIcon\";\nexport { preloadIcons } from \"./preload\";\n\nimport { PLATFORM_TO_ICON } from \"./platformIcon\";\nexport const platforms = Object.keys(PLATFORM_TO_ICON); \n"],"names":["PLATFORM_TO_ICON","amazon","amd","android","android-phone","android-tablet","anthropic","apple","apple-ipad","apple-iphone","apple-tv","apple-watch","arm","bun","capacitor","chrome","chromium","clojure","cocoa","cocoa-objc","cocoa-swift","cohere","cordova","cloudflare","cpp","cryengine","crystal","css","csharp","csharp-aspnetcore","dart","default","deno","dotnet","dotnet-aspnetcore","dotnet-aspnet","dotnet-awslambda","dotnet-blazor","dotnet-csharp","dotnet-gcpfunctions","dotnet-maui","dotnet-uno","dotnet-xamarin","dotnetcore","dotnetfx","dotnetframework","edge","edge-legacy","electron","elixir","firefox","flutter","font","fsharp","git","go","go-echo","go-fasthttp","go-fiber","go-gin","go-iris","go-martini","go-negroni","godot","huggingface","internet-explorer","java","java-appengine","java-android","java-log4j","java-log4j2","java-logback","java-logging","java-ray","java-spring","java-spring-boot","javascript","javascript-alpinejs","javascript-analogjs","javascript-angular","javascript-angularjs","javascript-astro","javascript-backbone","javascript-browser","javascript-capacitor","javascript-cordova","javascript-electron","javascript-ember","javascript-gatsby","javascript-hono","javascript-hydrogen","javascript-ionic","javascript-lit","javascript-meteor","javascript-million","javascript-nextjs","javascript-nuxt","javascript-opennext","javascript-qwik","javascript-react","javascript-remix","javascript-solid","javascript-solidstart","javascript-svelte","javascript-sveltekit","javascript-vue","javascript-wasm","javascript-node","javascript-awslambda","javascript-azurefunctions","javascript-connect","javascript-express","javascript-fastify","javascript-gcpfunctions","javascript-hapi","javascript-koa","javascript-nestjs","javascript-serverlesscloud","ionic","kotlin","kotlin-android","langchain","linux","mono","motorola","native","native-qt","nintendo","nintendo-switch","node","node-awslambda","node-azurefunctions","node-connect","node-express","node-fastify","node-gcpfunctions","node-hapi","node-koa","node-nestjs","node-serverlesscloud","nvidia","openai","opera","perl","php","playstation","powershell","php-laravel","php-livewire","php-magento","php-monolog","php-symfony2","php-symfony","python","python-aiohttp","python-airflow","python-ariadne","python-asyncpg","python-awslambda","python-azurefunctions","python-beam","python-boto3","python-bottle","python-celery","python-chalice","python-clickhouse-driver","python-django","python-dramatiq","python-falcon","python-fastapi","python-flask","python-gcpfunctions","python-gnu_backtrace","python-gql","python-graphene","python-grpc","python-httpx","python-huey","python-litestar","python-loguru","python-pylons","python-pymongo","python-pyramid","python-pythonawslambda","python-quart","python-ray","python-redis","python-rq","python-sanic","python-serverless","python-starlette","python-strawberry","python-spark","python-sqlalchemy","python-tornado","python-tryton","qq","qt","react-native","ruby","ruby-activeadmin","ruby-grape","ruby-hanami","ruby-padrino","ruby-rack","ruby-rails","ruby-sidekiq","ruby-sinatra","ruby-trailblazer","rust","rust-actix","safari","samsung","scala","stride3d","sql","sqlserver","swift","tauri","ubuntu","unity","ue4","unreal","unrealengine","visualbasic","vscode","windows","normalizePlatform","platform","replace","getIcon","normalizedPlatform","includes","getLanguageIcon","language","split","PlatformIcon","size","format","radius","withLanguageIcon","languageIconStyles","style","otherProps","icon","iconPathRaw","require","iconPath","languageIcon","languageIconPathRaw","languageIconPath","React","position","src","width","height","borderRadius","bottom","right","preloadIcons","paths","map","f","Object","values","flat","document","querySelector","append","path","link","createElement","rel","as","href","platforms","keys"],"mappings":"0OAEaA,EAAmB,CAC9BC,OAAQ,SACRC,IAAK,MACLC,QAAS,UACTC,gBAAiB,gBACjBC,iBAAkB,iBAClBC,UAAW,YACXC,MAAO,QACPC,aAAc,aACdC,eAAgB,eAChBC,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CG,uCAASR,GAAYD,SAASU,SAAU,YAAeV,KACrDS,uBACEE,IAAKN,EACLO,MAAOjB,EACPkB,OAAQlB,EACRK,MAAO,CAAEc,aAAiBjB,UAE5BY,uBACEE,IAAKH,EACLR,SACEU,SAAU,WACVK,OAAQ,OACRC,MAAO,OACPH,OAAQ,MACRD,MAAO,MACPE,aAAc,OACXf,MAQXU,qCACEE,IAAKN,EACLO,MAAOjB,EACPkB,OAAQlB,GACJM,GACJD,SAASc,aAAiBjB,QAAeG,gBC5T/BiB,EAAarB,SAC3B,MAEMsB,GAFUtB,EAAS,CAACA,GAAU,CAAC,KAAM,OAGxCuB,IAAKC,GACJC,OAAOC,OAAOxQ,GAAkBqQ,IAAKjB,GACnCE,cAAoB,OAANgB,EAAa,YAAc,SAASlB,WAGrDqB,gBAEHC,SAASC,cAAc,YAASC,UAC3BR,EAAMC,IAAKQ,IACZ,MAAMC,EAAOJ,SAASK,cAAc,QAIpC,OAHAD,EAAKE,IAAM,UACXF,EAAKG,GAAK,QACVH,EAAKI,KAAOL,EACLC,WCpBAK,EAAYZ,OAAOa,KAAKpR"}
|
package/build/index.umd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(a,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((a=a||self).platformicons={},a.react)}(this,function(a,t){function e(){return(e=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n])}return a}).apply(this,arguments)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var n={amazon:"amazon",amd:"amd",android:"android","android-phone":"android-phone","android-tablet":"android-tablet",anthropic:"anthropic",apple:"apple","apple-ipad":"apple-ipad","apple-iphone":"apple-iphone","apple-tv":"apple-tv","apple-watch":"apple-watch",arm:"arm",bun:"bun",capacitor:"capacitor",chrome:"chrome",chromium:"chromium",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cohere:"cohere",cordova:"cordova",cloudflare:"cloudflare",cpp:"cpp",cryengine:"cryengine",crystal:"crystal",css:"css",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",deno:"deno",dotnet:"dotnet","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-awslambda":"awslambda","dotnet-blazor":"blazor","dotnet-csharp":"csharp","dotnet-gcpfunctions":"gcp-functions","dotnet-maui":"maui","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",dotnetframework:"dotnetframework",edge:"edge","edge-legacy":"edge-legacy",electron:"electron",elixir:"elixir",firefox:"firefox",flutter:"flutter",font:"font",fsharp:"fsharp",git:"git",go:"go","go-echo":"echo","go-fasthttp":"fasthttp","go-fiber":"fiber","go-gin":"gin","go-iris":"iris","go-martini":"martini","go-negroni":"go",godot:"godot",huggingface:"huggingface","internet-explorer":"internet-explorer",java:"java","java-appengine":"app-engine","java-android":"android","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-ray":"ray","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-alpinejs":"alpinejs","javascript-analogjs":"analogjs","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-astro":"astro","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-capacitor":"capacitor","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-gatsby":"gatsby","javascript-hono":"hono","javascript-hydrogen":"hydrogen","javascript-ionic":"ionic","javascript-lit":"lit","javascript-meteor":"meteor","javascript-million":"million","javascript-nextjs":"nextjs","javascript-nuxt":"nuxt","javascript-opennext":"opennext","javascript-qwik":"qwik","javascript-react":"react","javascript-remix":"remix","javascript-solid":"solid","javascript-solidstart":"solidstart","javascript-svelte":"svelte","javascript-sveltekit":"svelte","javascript-vue":"vue","javascript-wasm":"wasm","javascript-node":"nodejs","javascript-awslambda":"awslambda","javascript-azurefunctions":"azure-functions","javascript-connect":"connect","javascript-express":"express","javascript-fastify":"fastify","javascript-gcpfunctions":"gcp-functions","javascript-hapi":"hapi","javascript-koa":"koa","javascript-nestjs":"nestjs","javascript-serverlesscloud":"serverless",ionic:"ionic",kotlin:"kotlin","kotlin-android":"android",langchain:"langchain",linux:"linux",mono:"mono",motorola:"motorola",native:"nativec","native-qt":"qt",nintendo:"nintendo","nintendo-switch":"nintendo-switch",node:"nodejs","node-awslambda":"awslambda","node-azurefunctions":"azure-functions","node-connect":"connect","node-express":"express","node-fastify":"fastify","node-gcpfunctions":"gcp-functions","node-hapi":"hapi","node-koa":"koa","node-nestjs":"nestjs","node-serverlesscloud":"serverless",nvidia:"nvidia",openai:"openai",opera:"opera",perl:"perl",php:"php",playstation:"playstation",powershell:"powershell","php-laravel":"laravel","php-livewire":"livewire","php-magento":"magento","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-airflow":"apache-airflow","python-ariadne":"ariadne","python-asyncpg":"postgresql","python-awslambda":"awslambda","python-azurefunctions":"azure-functions","python-beam":"apache-beam","python-boto3":"aws","python-bottle":"bottle","python-celery":"celery","python-chalice":"chalice","python-clickhouse-driver":"clickhouse","python-django":"django","python-dramatiq":"dramatiq","python-falcon":"falcon","python-fastapi":"fastapi","python-flask":"flask","python-gcpfunctions":"gcp-functions","python-gnu_backtrace":"gnu","python-gql":"graphql","python-graphene":"graphene","python-grpc":"grpc","python-httpx":"httpx","python-huey":"huey","python-litestar":"litestar","python-loguru":"loguru","python-pylons":"python","python-pymongo":"mongodb","python-pyramid":"pyramid","python-pythonawslambda":"awslambda","python-quart":"quart","python-ray":"ray","python-redis":"redis","python-rq":"redis","python-sanic":"sanic","python-serverless":"serverless","python-starlette":"starlette","python-strawberry":"strawberry","python-spark":"apache-spark","python-sqlalchemy":"sqlalchemy","python-tornado":"tornado","python-tryton":"tryton",qq:"qq",qt:"qt","react-native":"react-native",ruby:"ruby","ruby-activeadmin":"activeadmin","ruby-grape":"grape","ruby-hanami":"hanami","ruby-padrino":"padrino","ruby-rack":"ruby","ruby-rails":"rails","ruby-sidekiq":"sidekiq","ruby-sinatra":"sinatra","ruby-trailblazer":"trailblazer",rust:"rust","rust-actix":"actix",safari:"safari",samsung:"samsung",scala:"scala",stride3d:"stride3d",sql:"sql",sqlserver:"sqlserver",swift:"swift",tauri:"tauri",ubuntu:"ubuntu",unity:"unity",ue4:"unreal",unreal:"unreal",unrealengine:"unreal",visualbasic:"visual-basic",vscode:"vscode",windows:"windows"};function r(a){return a.replace(".","-")}function o(a){var t=r(a);return n[t]||(t.includes("-")?i(t):"default")}function i(a){return o(r(a).split("-")[0])}var s=Object.keys(n);a.PlatformIcon=function(a){var n,r,s=a.platform,p=a.size,c=void 0===p?20:p,l=a.format,d=void 0===l?"sm":l,u=a.radius,h=void 0===u?3:u,v=a.withLanguageIcon,y=a.languageIconStyles,g=void 0===y?{}:y,f=a.style,m=void 0===f?{}:f,j=function(a,t){if(null==a)return{};var e,n,r={},o=Object.keys(a);for(n=0;n<o.length;n++)t.indexOf(e=o[n])>=0||(r[e]=a[e]);return r}(a,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),b=o(s),w=require("../"+("lg"===d?"svg_80x80":"svg")+"/"+b+".svg"),x=null!=(n=null==w?void 0:w.default)?n:w,q=i(s),k=require("../svg/"+q+".svg"),z=null!=(r=null==k?void 0:k.default)?r:k;return v&&q!==b&&"default"!==q?t.createElement("div",Object.assign({},j,{style:e({position:"relative"},m)}),t.createElement("img",{src:x,width:c,height:c,style:{borderRadius:h+"px"}}),t.createElement("img",{src:z,style:e({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},g)})):t.createElement("img",Object.assign({src:x,width:c,height:c},j,{style:e({borderRadius:h+"px"},m)}))},a.platforms=s,a.preloadIcons=function(a){var t,e=(a?[a]:["lg","sm"]).map(function(a){return Object.values(n).map(function(t){return require("../"+("lg"===a?"svg_80x80":"svg")+"/"+t+".svg")})}).flat();null==(t=document.querySelector("head"))||t.append.apply(t,e.map(function(a){var t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}});
|
|
2
|
-
//# sourceMappingURL=index.umd.js.map
|
package/build/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/platformIcon.tsx","../src/index.tsx","../src/preload.tsx"],"sourcesContent":["import React from \"react\";\n\nexport const PLATFORM_TO_ICON = {\n amazon: \"amazon\",\n amd: \"amd\",\n android: \"android\",\n \"android-phone\": \"android-phone\",\n \"android-tablet\": \"android-tablet\",\n anthropic: \"anthropic\",\n apple: \"apple\",\n \"apple-ipad\": \"apple-ipad\",\n \"apple-iphone\": \"apple-iphone\",\n \"apple-tv\": \"apple-tv\",\n \"apple-watch\": \"apple-watch\",\n arm: \"arm\",\n bun: \"bun\",\n capacitor: \"capacitor\",\n chrome: \"chrome\",\n chromium: \"chromium\",\n clojure: \"clojure\",\n cocoa: \"apple\",\n \"cocoa-objc\": \"apple\",\n \"cocoa-swift\": \"swift\",\n cohere: \"cohere\",\n cordova: \"cordova\",\n cloudflare: \"cloudflare\",\n cpp: \"cpp\",\n cryengine: \"cryengine\",\n crystal: \"crystal\",\n css: \"css\",\n csharp: \"csharp\",\n \"csharp-aspnetcore\": \"csharp\",\n dart: \"dart\",\n default: \"default\",\n deno: \"deno\",\n dotnet: \"dotnet\",\n \"dotnet-aspnetcore\": \"dotnet\",\n \"dotnet-aspnet\": \"dotnet\",\n \"dotnet-awslambda\": \"awslambda\",\n \"dotnet-blazor\": \"blazor\",\n \"dotnet-csharp\": \"csharp\",\n \"dotnet-gcpfunctions\": \"gcp-functions\",\n \"dotnet-maui\": \"maui\",\n \"dotnet-uno\": \"uno\",\n \"dotnet-xamarin\": \"xamarin\",\n dotnetcore: \"dotnetcore\",\n dotnetfx: \"dotnetfx\",\n dotnetframework: \"dotnetframework\",\n edge: \"edge\",\n \"edge-legacy\": \"edge-legacy\",\n electron: \"electron\",\n elixir: \"elixir\",\n firefox: \"firefox\",\n flutter: \"flutter\",\n font: \"font\",\n fsharp: \"fsharp\",\n git: \"git\",\n go: \"go\",\n \"go-echo\": \"echo\",\n \"go-fasthttp\": \"fasthttp\",\n \"go-fiber\": \"fiber\",\n \"go-gin\": \"gin\",\n \"go-iris\": \"iris\",\n \"go-martini\": \"martini\",\n \"go-negroni\": \"go\",\n godot: \"godot\",\n huggingface: \"huggingface\",\n \"internet-explorer\": \"internet-explorer\",\n java: \"java\",\n \"java-appengine\": \"app-engine\",\n \"java-android\": \"android\",\n \"java-log4j\": \"java\",\n \"java-log4j2\": \"java\",\n \"java-logback\": \"logback\",\n \"java-logging\": \"java\",\n \"java-ray\": \"ray\",\n \"java-spring\": \"spring\",\n \"java-spring-boot\": \"springboot\",\n javascript: \"javascript\",\n \"javascript-alpinejs\": \"alpinejs\",\n \"javascript-analogjs\": \"analogjs\",\n \"javascript-angular\": \"angularjs\",\n \"javascript-angularjs\": \"angularjs\",\n \"javascript-astro\": \"astro\",\n \"javascript-backbone\": \"backbone\",\n \"javascript-browser\": \"javascript\",\n \"javascript-capacitor\": \"capacitor\",\n \"javascript-cordova\": \"cordova\",\n \"javascript-electron\": \"electron\",\n \"javascript-ember\": \"ember\",\n \"javascript-gatsby\": \"gatsby\",\n \"javascript-hono\": \"hono\",\n \"javascript-hydrogen\": \"hydrogen\",\n \"javascript-ionic\": \"ionic\",\n \"javascript-lit\": \"lit\",\n \"javascript-meteor\": \"meteor\",\n \"javascript-million\": \"million\",\n \"javascript-nextjs\": \"nextjs\",\n \"javascript-nuxt\": \"nuxt\",\n \"javascript-opennext\": \"opennext\",\n \"javascript-qwik\": \"qwik\",\n \"javascript-react\": \"react\",\n \"javascript-remix\": \"remix\",\n \"javascript-solid\": \"solid\",\n \"javascript-solidstart\": \"solidstart\",\n \"javascript-svelte\": \"svelte\",\n \"javascript-sveltekit\": \"svelte\",\n \"javascript-vue\": \"vue\",\n \"javascript-wasm\": \"wasm\",\n \"javascript-node\": \"nodejs\",\n \"javascript-awslambda\": \"awslambda\",\n \"javascript-azurefunctions\": \"azure-functions\",\n \"javascript-connect\": \"connect\",\n \"javascript-express\": \"express\",\n \"javascript-fastify\": \"fastify\",\n \"javascript-gcpfunctions\": \"gcp-functions\",\n \"javascript-hapi\": \"hapi\",\n \"javascript-koa\": \"koa\",\n \"javascript-nestjs\": \"nestjs\",\n \"javascript-serverlesscloud\": \"serverless\",\n ionic: \"ionic\",\n kotlin: \"kotlin\",\n \"kotlin-android\": \"android\",\n langchain: \"langchain\",\n linux: \"linux\",\n mono: \"mono\",\n motorola: \"motorola\",\n native: \"nativec\",\n \"native-qt\": \"qt\",\n nintendo: \"nintendo\",\n \"nintendo-switch\": \"nintendo-switch\",\n node: \"nodejs\",\n \"node-awslambda\": \"awslambda\",\n \"node-azurefunctions\": \"azure-functions\",\n \"node-connect\": \"connect\",\n \"node-express\": \"express\",\n \"node-fastify\": \"fastify\",\n \"node-gcpfunctions\": \"gcp-functions\",\n \"node-hapi\": \"hapi\",\n \"node-koa\": \"koa\",\n \"node-nestjs\": \"nestjs\",\n \"node-serverlesscloud\": \"serverless\",\n nvidia: \"nvidia\",\n openai: \"openai\",\n opera: \"opera\",\n perl: \"perl\",\n php: \"php\",\n playstation: \"playstation\",\n powershell: \"powershell\",\n \"php-laravel\": \"laravel\",\n \"php-livewire\": \"livewire\",\n \"php-magento\": \"magento\",\n \"php-monolog\": \"php\",\n \"php-symfony2\": \"symfony\",\n \"php-symfony\": \"symfony\",\n python: \"python\",\n \"python-aiohttp\": \"aiohttp\",\n \"python-airflow\": \"apache-airflow\",\n \"python-ariadne\": \"ariadne\",\n \"python-asyncpg\": \"postgresql\",\n \"python-awslambda\": \"awslambda\",\n \"python-azurefunctions\": \"azure-functions\",\n \"python-beam\": \"apache-beam\",\n \"python-boto3\": \"aws\",\n \"python-bottle\": \"bottle\",\n \"python-celery\": \"celery\",\n \"python-chalice\": \"chalice\",\n \"python-clickhouse-driver\": \"clickhouse\",\n \"python-django\": \"django\",\n \"python-dramatiq\": \"dramatiq\",\n \"python-falcon\": \"falcon\",\n \"python-fastapi\": \"fastapi\",\n \"python-flask\": \"flask\",\n \"python-gcpfunctions\": \"gcp-functions\",\n \"python-gnu_backtrace\": \"gnu\",\n \"python-gql\": \"graphql\",\n \"python-graphene\": \"graphene\",\n \"python-grpc\": \"grpc\",\n \"python-httpx\": \"httpx\",\n \"python-huey\": \"huey\",\n \"python-litestar\": \"litestar\",\n \"python-loguru\": \"loguru\",\n \"python-pylons\": \"python\",\n \"python-pymongo\": \"mongodb\",\n \"python-pyramid\": \"pyramid\",\n \"python-pythonawslambda\": \"awslambda\",\n \"python-quart\": \"quart\",\n \"python-ray\": \"ray\",\n \"python-redis\": \"redis\",\n \"python-rq\": \"redis\",\n \"python-sanic\": \"sanic\",\n \"python-serverless\": \"serverless\",\n \"python-starlette\": \"starlette\",\n \"python-strawberry\": \"strawberry\",\n \"python-spark\": \"apache-spark\",\n \"python-sqlalchemy\": \"sqlalchemy\",\n \"python-tornado\": \"tornado\",\n \"python-tryton\": \"tryton\",\n qq: \"qq\",\n qt: \"qt\",\n \"react-native\": \"react-native\",\n ruby: \"ruby\",\n \"ruby-activeadmin\": \"activeadmin\",\n \"ruby-grape\": \"grape\",\n \"ruby-hanami\": \"hanami\",\n \"ruby-padrino\": \"padrino\",\n \"ruby-rack\": \"ruby\",\n \"ruby-rails\": \"rails\",\n \"ruby-sidekiq\": \"sidekiq\",\n \"ruby-sinatra\": \"sinatra\",\n \"ruby-trailblazer\": \"trailblazer\",\n rust: \"rust\",\n \"rust-actix\": \"actix\",\n safari: \"safari\",\n samsung: \"samsung\",\n scala: \"scala\",\n stride3d: \"stride3d\",\n sql: \"sql\",\n sqlserver: \"sqlserver\",\n swift: \"swift\",\n tauri: \"tauri\",\n ubuntu: \"ubuntu\",\n unity: \"unity\",\n // This will be deprecated in favor of 'unrealengine'\n ue4: \"unreal\",\n unreal: \"unreal\",\n unrealengine: \"unreal\",\n visualbasic: \"visual-basic\",\n vscode: \"vscode\",\n windows: \"windows\",\n // Don't add new platforms down here!\n // Please add them where they belong alphabetically\n} as const;\n\nfunction normalizePlatform(platform: string): string {\n // sentry uses format python-django, but docs uses python.django\n // this function normalizes that\n return platform.replace(\".\", \"-\");\n}\n\nfunction getIcon(platform: string): Platform {\n const normalizedPlatform = normalizePlatform(platform);\n const icon = PLATFORM_TO_ICON[normalizedPlatform];\n\n if (icon) {\n return icon;\n }\n\n if (normalizedPlatform.includes(\"-\")) {\n return getLanguageIcon(normalizedPlatform);\n }\n\n return \"default\";\n}\n\nfunction getLanguageIcon(platform: string): Platform {\n const [language] = normalizePlatform(platform).split(\"-\");\n\n return getIcon(language);\n}\n\ntype Platform = (typeof PLATFORM_TO_ICON)[keyof typeof PLATFORM_TO_ICON];\n\ntype Props = React.HTMLAttributes<HTMLDivElement | HTMLImageElement> & {\n platform: string;\n size?: string | number;\n format?: \"sm\" | \"lg\";\n radius?: number | null;\n withLanguageIcon?: boolean;\n languageIconStyles?: React.CSSProperties;\n};\n\nconst PlatformIcon = ({\n platform,\n size = 20,\n format = \"sm\",\n radius = 3,\n withLanguageIcon,\n languageIconStyles = {},\n style = {},\n ...otherProps\n}: Props) => {\n const icon = getIcon(platform);\n const iconPathRaw = require(\n `../${format === \"lg\" ? \"svg_80x80\" : \"svg\"}/${icon}.svg`,\n );\n const iconPath = iconPathRaw?.default ?? iconPathRaw;\n\n const languageIcon = getLanguageIcon(platform);\n const languageIconPathRaw = require(`../svg/${languageIcon}.svg`);\n const languageIconPath = languageIconPathRaw?.default ?? languageIconPathRaw;\n\n if (withLanguageIcon && languageIcon !== icon && languageIcon !== \"default\") {\n return (\n <div {...otherProps} style={{ position: \"relative\", ...style }}>\n <img\n src={iconPath}\n width={size}\n height={size}\n style={{ borderRadius: `${radius}px` }}\n />\n <img\n src={languageIconPath}\n style={{\n position: \"absolute\",\n bottom: \"-1px\",\n right: \"-1px\",\n height: \"30%\",\n width: \"30%\",\n borderRadius: \"2px\",\n ...languageIconStyles,\n }}\n />\n </div>\n );\n }\n\n return (\n <img\n src={iconPath}\n width={size}\n height={size}\n {...otherProps}\n style={{ borderRadius: `${radius}px`, ...style }}\n />\n );\n};\n\nexport default PlatformIcon;\n","export { default as PlatformIcon } from \"./platformIcon\";\nexport { preloadIcons } from \"./preload\";\n\nimport { PLATFORM_TO_ICON } from \"./platformIcon\";\nexport const platforms = Object.keys(PLATFORM_TO_ICON); \n","import { PLATFORM_TO_ICON } from \"./platformIcon\";\n\n/**\n * Insert <link ref=\"preload\" /> elements into the <head> node to preload\n * platfrom icons. Useful to avoid render blocking / jank when we know we'll be\n * showing platform icons on the next page.\n */\nexport function preloadIcons(format?: \"sm\" | \"lg\") {\n const formats = format ? [format] : [\"lg\", \"sm\"];\n\n const paths: string[] = formats\n .map((f) =>\n Object.values(PLATFORM_TO_ICON).map((icon) =>\n require(`../${f === \"lg\" ? \"svg_80x80\" : \"svg\"}/${icon}.svg`)\n )\n )\n .flat();\n\n document.querySelector(\"head\")?.append(\n ...paths.map((path) => {\n const link = document.createElement(\"link\");\n link.rel = \"preload\";\n link.as = \"image\";\n link.href = path;\n return link;\n })\n );\n}\n"],"names":["PLATFORM_TO_ICON","amazon","amd","android","android-phone","android-tablet","anthropic","apple","apple-ipad","apple-iphone","apple-tv","apple-watch","arm","bun","capacitor","chrome","chromium","clojure","cocoa","cocoa-objc","cocoa-swift","cohere","cordova","cloudflare","cpp","cryengine","crystal","css","csharp","csharp-aspnetcore","dart","default","deno","dotnet","dotnet-aspnetcore","dotnet-aspnet","dotnet-awslambda","dotnet-blazor","dotnet-csharp","dotnet-gcpfunctions","dotnet-maui","dotnet-uno","dotnet-xamarin","dotnetcore","dotnetfx","dotnetframework","edge","edge-legacy","electron","elixir","firefox","flutter","font","fsharp","git","go","go-echo","go-fasthttp","go-fiber","go-gin","go-iris","go-martini","go-negroni","godot","huggingface","internet-explorer","java","java-appengine","java-android","java-log4j","java-log4j2","java-logback","java-logging","java-ray","java-spring","java-spring-boot","javascript","javascript-alpinejs","javascript-analogjs","javascript-angular","javascript-angularjs","javascript-astro","javascript-backbone","javascript-browser","javascript-capacitor","javascript-cordova","javascript-electron","javascript-ember","javascript-gatsby","javascript-hono","javascript-hydrogen","javascript-ionic","javascript-lit","javascript-meteor","javascript-million","javascript-nextjs","javascript-nuxt","javascript-opennext","javascript-qwik","javascript-react","javascript-remix","javascript-solid","javascript-solidstart","javascript-svelte","javascript-sveltekit","javascript-vue","javascript-wasm","javascript-node","javascript-awslambda","javascript-azurefunctions","javascript-connect","javascript-express","javascript-fastify","javascript-gcpfunctions","javascript-hapi","javascript-koa","javascript-nestjs","javascript-serverlesscloud","ionic","kotlin","kotlin-android","langchain","linux","mono","motorola","native","native-qt","nintendo","nintendo-switch","node","node-awslambda","node-azurefunctions","node-connect","node-express","node-fastify","node-gcpfunctions","node-hapi","node-koa","node-nestjs","node-serverlesscloud","nvidia","openai","opera","perl","php","playstation","powershell","php-laravel","php-livewire","php-magento","php-monolog","php-symfony2","php-symfony","python","python-aiohttp","python-airflow","python-ariadne","python-asyncpg","python-awslambda","python-azurefunctions","python-beam","python-boto3","python-bottle","python-celery","python-chalice","python-clickhouse-driver","python-django","python-dramatiq","python-falcon","python-fastapi","python-flask","python-gcpfunctions","python-gnu_backtrace","python-gql","python-graphene","python-grpc","python-httpx","python-huey","python-litestar","python-loguru","python-pylons","python-pymongo","python-pyramid","python-pythonawslambda","python-quart","python-ray","python-redis","python-rq","python-sanic","python-serverless","python-starlette","python-strawberry","python-spark","python-sqlalchemy","python-tornado","python-tryton","qq","qt","react-native","ruby","ruby-activeadmin","ruby-grape","ruby-hanami","ruby-padrino","ruby-rack","ruby-rails","ruby-sidekiq","ruby-sinatra","ruby-trailblazer","rust","rust-actix","safari","samsung","scala","stride3d","sql","sqlserver","swift","tauri","ubuntu","unity","ue4","unreal","unrealengine","visualbasic","vscode","windows","normalizePlatform","platform","replace","getIcon","normalizedPlatform","includes","getLanguageIcon","split","platforms","Object","keys","size","format","radius","withLanguageIcon","languageIconStyles","style","otherProps","icon","iconPathRaw","require","iconPath","languageIcon","languageIconPathRaw","languageIconPath","React","position","src","width","height","borderRadius","bottom","right","paths","map","f","values","flat","document","querySelector","append","path","link","createElement","rel","as","href"],"mappings":"sfAEaA,EAAmB,CAC9BC,OAAQ,SACRC,IAAK,MACLC,QAAS,UACTC,gBAAiB,gBACjBC,iBAAkB,iBAClBC,UAAW,YACXC,MAAO,QACPC,aAAc,aACdC,eAAgB,eAChBC,WAAY,WACZC,cAAe,cACfC,IAAK,MACLC,IAAK,MACLC,UAAW,YACXC,OAAQ,SACRC,SAAU,WACVC,QAAS,UACTC,MAAO,QACPC,aAAc,QACdC,cAAe,QACfC,OAAQ,SACRC,QAAS,UACTC,WAAY,aACZC,IAAK,MACLC,UAAW,YACXC,QAAS,UACTC,IAAK,MACLC,OAAQ,SACRC,oBAAqB,SACrBC,KAAM,OACNC,QAAS,UACTC,KAAM,OACNC,OAAQ,SACRC,oBAAqB,SACrBC,gBAAiB,SACjBC,mBAAoB,YACpBC,gBAAiB,SACjBC,gBAAiB,SACjBC,sBAAuB,gBACvBC,cAAe,OACfC,aAAc,MACdC,iBAAkB,UAClBC,WAAY,aACZC,SAAU,WACVC,gBAAiB,kBACjBC,KAAM,OACNC,cAAe,cACfC,SAAU,WACVC,OAAQ,SACRC,QAAS,UACTC,QAAS,UACTC,KAAM,OACNC,OAAQ,SACRC,IAAK,MACLC,GAAI,KACJC,UAAW,OACXC,cAAe,WACfC,WAAY,QACZC,SAAU,MACVC,UAAW,OACXC,aAAc,UACdC,aAAc,KACdC,MAAO,QACPC,YAAa,cACbC,oBAAqB,oBACrBC,KAAM,OACNC,iBAAkB,aAClBC,eAAgB,UAChBC,aAAc,OACdC,cAAe,OACfC,eAAgB,UAChBC,eAAgB,OAChBC,WAAY,MACZC,cAAe,SACfC,mBAAoB,aACp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