update
This commit is contained in:
24
src/types.ts
24
src/types.ts
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user