add website config.
This commit is contained in:
@@ -37,6 +37,7 @@ export function getTagColor(
|
||||
}[tag]
|
||||
}
|
||||
|
||||
// 2023-04-03T02:43:28.673156Z
|
||||
export function parseTime(utc: Date | string, format = "YYYY年M月D日") {
|
||||
const time = useDateFormat(utc, format, { locales: "zh-CN" })
|
||||
return time.value
|
||||
|
||||
@@ -312,3 +312,28 @@ export interface ContestRank {
|
||||
submission_info: { [key: string]: SubmissionInfo }
|
||||
contest: number
|
||||
}
|
||||
|
||||
export interface WebsiteConfig {
|
||||
website_base_url: string
|
||||
website_name: string
|
||||
website_name_shortcut: string
|
||||
website_footer: string
|
||||
allow_register: boolean
|
||||
submission_list_show_all: boolean
|
||||
}
|
||||
|
||||
export interface Server {
|
||||
id: number
|
||||
status: "abnormal" | "normal"
|
||||
hostname: string
|
||||
ip: string
|
||||
judger_version: string
|
||||
cpu_core: number
|
||||
memory_usage: number
|
||||
cpu_usage: number
|
||||
last_heartbeat: Date
|
||||
create_time: Date
|
||||
task_number: number
|
||||
service_url: string
|
||||
is_disabled: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user