fix
This commit is contained in:
@@ -154,7 +154,7 @@ export const SOURCES = {
|
||||
Python2: "",
|
||||
JavaScript: "",
|
||||
Golang: "",
|
||||
}
|
||||
} as const
|
||||
|
||||
export const LANGUAGE_ID = {
|
||||
C: 50,
|
||||
@@ -164,7 +164,7 @@ export const LANGUAGE_ID = {
|
||||
Python2: 0,
|
||||
JavaScript: 0,
|
||||
Golang: 0,
|
||||
}
|
||||
} as const
|
||||
|
||||
export const LANGUAGE_FORMAT_VALUE = {
|
||||
C: "c",
|
||||
@@ -174,7 +174,7 @@ export const LANGUAGE_FORMAT_VALUE = {
|
||||
Python3: "python",
|
||||
JavaScript: "javascript",
|
||||
Golang: "go",
|
||||
}
|
||||
} as const
|
||||
|
||||
export const LANGUAGE_SHOW_VALUE = {
|
||||
C: "C",
|
||||
@@ -184,7 +184,7 @@ export const LANGUAGE_SHOW_VALUE = {
|
||||
Python3: "Python",
|
||||
JavaScript: "JS",
|
||||
Golang: "Go",
|
||||
}
|
||||
} as const
|
||||
|
||||
const cTemplate = `//TEMPLATE BEGIN
|
||||
#include <stdio.h>
|
||||
@@ -220,7 +220,7 @@ export const CODE_TEMPLATES = {
|
||||
Java: blankTemplate,
|
||||
JavaScript: blankTemplate,
|
||||
Golang: blankTemplate,
|
||||
}
|
||||
} as const
|
||||
|
||||
export enum ScreenMode {
|
||||
both = "题目 | 自测",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ContestStatus, ContestType, USER_TYPE } from "./constants"
|
||||
import { ContestStatus, ContestType, LANGUAGE_SHOW_VALUE } from "./constants"
|
||||
|
||||
export interface Profile {
|
||||
id: number
|
||||
@@ -60,6 +60,8 @@ export type LANGUAGE =
|
||||
| "JavaScript"
|
||||
| "Golang"
|
||||
|
||||
export type LANGUAGE_SHOW_LABEL = typeof LANGUAGE_SHOW_VALUE[keyof typeof LANGUAGE_SHOW_VALUE]
|
||||
|
||||
export type SUBMISSION_RESULT = -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
|
||||
|
||||
export type ProblemStatus = "passed" | "failed" | "not_test"
|
||||
|
||||
Reference in New Issue
Block a user