From f34a01e8f54b949db2a5d52a449716a00eb35ed6 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sun, 16 Mar 2025 17:07:24 +0800 Subject: [PATCH] feat(judge): remove unused judge configuration file --- src/config/judge.ts | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/config/judge.ts diff --git a/src/config/judge.ts b/src/config/judge.ts deleted file mode 100644 index 1797071..0000000 --- a/src/config/judge.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EditorLanguage } from "@prisma/client"; -import { EditorLanguageConfig } from "./editor-language"; -import { DockerMetadata, JudgeMetadata } from "@/types/judge"; - -export const DockerConfig: Record = { - [EditorLanguage.c]: { - image: "gcc", - tag: "latest", - workingDir: "/src", - timeLimit: 1000, - memoryLimit: 128, - compileOutputLimit: 1 * 1024 * 1024, - runOutputLimit: 1 * 1024 * 1024, - }, - [EditorLanguage.cpp]: { - image: "gcc", - tag: "latest", - workingDir: "/src", - timeLimit: 1000, - memoryLimit: 128, - compileOutputLimit: 1 * 1024 * 1024, - runOutputLimit: 1 * 1024 * 1024, - } -} - -export const JudgeConfig: Record = { - [EditorLanguage.c]: { - editorLanguageMetadata: EditorLanguageConfig[EditorLanguage.c], - dockerMetadata: DockerConfig[EditorLanguage.c], - }, - [EditorLanguage.cpp]: { - editorLanguageMetadata: EditorLanguageConfig[EditorLanguage.cpp], - dockerMetadata: DockerConfig[EditorLanguage.cpp], - }, -};