feat(config): add LanguageConfig interface and LanguageConfigs object
This commit is contained in:
parent
989a6ae0d2
commit
6ca75616d0
30
src/config/judge.ts
Normal file
30
src/config/judge.ts
Normal 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",
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user