From 04b890d202b23fef6803869db98810ad6f3af4c0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Sep 2025 10:44:05 +0900 Subject: fix(*): support compile_error as worker result --- frontend/app/api/schema.d.ts | 2 +- frontend/app/components/SubmitStatusLabel.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'frontend/app') diff --git a/frontend/app/api/schema.d.ts b/frontend/app/api/schema.d.ts index 3f991f0..b58b27f 100644 --- a/frontend/app/api/schema.d.ts +++ b/frontend/app/api/schema.d.ts @@ -200,7 +200,7 @@ export interface components { * @example success * @enum {string} */ - ExecutionStatus: "none" | "running" | "success" | "wrong_answer" | "timeout" | "runtime_error" | "internal_error"; + ExecutionStatus: "none" | "running" | "success" | "wrong_answer" | "timeout" | "compile_error" | "runtime_error" | "internal_error"; LatestGameState: { /** @example echo 'hello world'; */ code: string; diff --git a/frontend/app/components/SubmitStatusLabel.tsx b/frontend/app/components/SubmitStatusLabel.tsx index 8384e95..b3091b0 100644 --- a/frontend/app/components/SubmitStatusLabel.tsx +++ b/frontend/app/components/SubmitStatusLabel.tsx @@ -16,6 +16,8 @@ export default function SubmitStatusLabel({ status }: Props) { return "テスト失敗"; case "timeout": return "時間切れ"; + case "compile_error": + return "コンパイルエラー"; case "runtime_error": return "実行時エラー"; case "internal_error": -- cgit v1.2.3-70-g09d2