This commit is contained in:
2024-01-22 14:00:43 +08:00
parent 275f49e54e
commit e7f09b4dcc
7 changed files with 138 additions and 50 deletions

View File

@@ -1,6 +1,6 @@
import { RemovableRef } from "@vueuse/core"
export type LANGUAGE = "c" | "cpp" | "python" | "java"
export type LANGUAGE = "c" | "python"
export interface Code {
value: string
@@ -11,4 +11,26 @@ export interface Cache {
language: RemovableRef<LANGUAGE>
input: RemovableRef<string>
code: { [key in LANGUAGE]: RemovableRef<string> }
fontsize: RemovableRef<number>
}
export enum Status {
NotStarted = 0,
Accepted = 3,
CompileError = 6,
RuntimeError = 11,
}
export interface Submission {
stdout: string
time: string
memory: number
stderr: string
token: string
compile_output: string
message: string
status: {
id: number
description: string
}
}