aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/models
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-12 02:08:55 +0900
committernsfisis <nsfisis@gmail.com>2024-08-12 02:10:36 +0900
commit699c5ce665bae6bcc406a0f7de994bb218a9977e (patch)
treea1c97c6e9f123bffbc5836a9a603352a0fb426aa /frontend/app/models
parent9f022ce7e59213284896a07a53bfef232a6e62d3 (diff)
downloadphperkaigi-2025-albatross-699c5ce665bae6bcc406a0f7de994bb218a9977e.tar.gz
phperkaigi-2025-albatross-699c5ce665bae6bcc406a0f7de994bb218a9977e.tar.zst
phperkaigi-2025-albatross-699c5ce665bae6bcc406a0f7de994bb218a9977e.zip
feat(frontend): show submission result at first rendering
Diffstat (limited to 'frontend/app/models')
-rw-r--r--frontend/app/models/ExecResult.ts1
-rw-r--r--frontend/app/models/PlayerInfo.ts2
-rw-r--r--frontend/app/models/SubmitResult.ts1
3 files changed, 3 insertions, 1 deletions
diff --git a/frontend/app/models/ExecResult.ts b/frontend/app/models/ExecResult.ts
index 59b8ee8..e0b6bb4 100644
--- a/frontend/app/models/ExecResult.ts
+++ b/frontend/app/models/ExecResult.ts
@@ -1,4 +1,5 @@
export type ExecResultStatus =
+ | "waiting_submission"
| "running"
| "success"
| "wrong_answer"
diff --git a/frontend/app/models/PlayerInfo.ts b/frontend/app/models/PlayerInfo.ts
index 30cccea..8092ab3 100644
--- a/frontend/app/models/PlayerInfo.ts
+++ b/frontend/app/models/PlayerInfo.ts
@@ -5,5 +5,5 @@ export type PlayerInfo = {
iconPath: string | null;
score: number | null;
code: string | null;
- submitResult?: SubmitResult;
+ submitResult: SubmitResult;
};
diff --git a/frontend/app/models/SubmitResult.ts b/frontend/app/models/SubmitResult.ts
index 0cb7f9b..6df00b6 100644
--- a/frontend/app/models/SubmitResult.ts
+++ b/frontend/app/models/SubmitResult.ts
@@ -1,6 +1,7 @@
import type { ExecResult } from "./ExecResult";
export type SubmitResultStatus =
+ | "waiting_submission"
| "running"
| "success"
| "wrong_answer"