feat(constants): add supported languages and default language

This commit is contained in:
ngc2207 2024-12-31 20:19:06 +08:00
parent 6d292492fc
commit 7c90efc02a
2 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,7 @@
"@radix-ui/react-slot": "^1.1.1", "@radix-ui/react-slot": "^1.1.1",
"class-variance-authority": "^0.7.1", "class-variance-authority": "^0.7.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"devicons-react": "^1.4.0",
"gitea-js": "^1.22.0", "gitea-js": "^1.22.0",
"lucide-react": "^0.469.0", "lucide-react": "^0.469.0",
"next": "15.0.3", "next": "15.0.3",

View File

@ -0,0 +1,9 @@
import { COriginal, CplusplusOriginal, PythonOriginal } from "devicons-react";
export const SUPPORTED_LANGUAGES = [
{ key: "c", value: "c", label: "C", icon: COriginal },
{ key: "cpp", value: "cpp", label: "C++", icon: CplusplusOriginal },
{ key: "python", value: "python", label: "Python", icon: PythonOriginal },
];
export const DEFAULT_LANGUAGE = SUPPORTED_LANGUAGES[0].value;