From 6ca75616d0469380d78c026901a66c4980f1a353 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sat, 1 Mar 2025 16:29:26 +0800 Subject: [PATCH] feat(config): add LanguageConfig interface and LanguageConfigs object --- src/config/judge.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/config/judge.ts diff --git a/src/config/judge.ts b/src/config/judge.ts new file mode 100644 index 0000000..0727d6b --- /dev/null +++ b/src/config/judge.ts @@ -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 = { + 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", + }, +};