add website config.

This commit is contained in:
xuyue committed 2023-04-03 13:31:00 +08:00
1 parent 70a4b67b58
commit b6ae429052
6 files changed
+286 -5

No files matched your search

+1
View File
@@ -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
+25
View File
@@ -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
}