Download code/web/src/lib/category.ts from MiniMaxAI/oss-ecosystem-data: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/datasets/MiniMaxAI/oss-ecosystem-data/resolve/f660f69a80e04e319d382505deb00b8b3e642feb/code/web/src/lib/category.ts
- Command line
-
hf download hf://datasets/MiniMaxAI/oss-ecosystem-data@f660f69a80e04e319d382505deb00b8b3e642feb/code/web/src/lib/category.ts
-
curl -L -o category.ts https://huggingface.co/datasets/MiniMaxAI/oss-ecosystem-data/resolve/f660f69a80e04e319d382505deb00b8b3e642feb/code/web/src/lib/category.ts
650 Bytes
| /** Each modality keeps one colour everywhere (validated in this stack order, light and dark). | |
| * Brand hues: language the orange-red, video the multimodal purple, image the blue, music the wine accent. */ | |
| export const CAT_ORDER = ["language", "video", "music", "image", "audio"] | |
| export const catColor = (c: string) => `var(--cat-${c}, var(--neutral-series))` | |
| export const catFrom = (c: string) => `var(--cat-${c}-from, var(--neutral-series))` | |
| export const catTo = (c: string) => `var(--cat-${c}-to, var(--neutral-series))` | |
| /** "MiniMax-M2.7" -> "M2.7" for tight places. */ | |
| export const shortName = (name: string) => name.replace(/^MiniMax-/, "") | |