feat(config): add LanguageConfig interface and LanguageConfigs object

This commit is contained in:
cfngc4594 2025-03-01 16:29:26 +08:00
parent 989a6ae0d2
commit 6ca75616d0

30
src/config/judge.ts Normal file
View File

@ -0,0 +1,30 @@
export interface LanguageConfig {
id: string;
label: string;
fileName: string;
extension: string;
image: string;
tag: string;
workingDir: string;
}
export const LanguageConfigs: Record<string, LanguageConfig> = {
c: {
id: "c",
label: "C",
fileName: "main",
extension: "c",
image: "gcc",
tag: "latest",
workingDir: "/src",
},
cpp: {
id: "cpp",
label: "C++",
fileName: "main",
extension: "cpp",
image: "gcc",
tag: "latest",
workingDir: "/src",
},
};