This commit is contained in:
2023-06-25 11:04:07 +08:00
parent f89d0ce7fb
commit 91b606708e
9 changed files with 22 additions and 12 deletions

View File

@@ -4,5 +4,5 @@ import { Code } from "~/utils/types"
export const code = reactive<Code>({
value: "",
language: storage.get(STORAGE_KEY.LANGUAGE) || "C",
language: storage.get(STORAGE_KEY.LANGUAGE) || "Python3",
})

View File

@@ -25,11 +25,11 @@ const contestStore = useContestStore()
<n-descriptions bordered label-placement="left" :column="1">
<n-descriptions-item label="开始时间">
{{
parseTime(contestStore.contest.start_time, "YYYY年M月D日 hh:mm:ss")
parseTime(contestStore.contest.start_time, "YYYY年M月D日 HH:mm:ss")
}}
</n-descriptions-item>
<n-descriptions-item label="结束时间">
{{ parseTime(contestStore.contest.end_time, "YYYY年M月D日 hh:mm:ss") }}
{{ parseTime(contestStore.contest.end_time, "YYYY年M月D日 HH:mm:ss") }}
</n-descriptions-item>
<n-descriptions-item label="比赛类型">
<ContestType :contest="contestStore.contest" />

View File

@@ -184,6 +184,10 @@ function type(status: ProblemStatus) {
margin-bottom: 8px;
}
.problemContent > .content > p {
margin: 0;
}
.problemContent > .content > blockquote {
border-left: 3px solid #bbbec4;
padding-left: 10px;
@@ -251,4 +255,8 @@ function type(status: ProblemStatus) {
border-radius: 3px;
line-height: 1.5;
}
.problemContent > .content a {
color: #18a058;
}
</style>

View File

@@ -21,7 +21,7 @@ const columns: DataTableColumn<Submission>[] = [
render: (row) =>
parseTime(
row.create_time,
isDesktop ? "YYYY-MM-DD hh:mm:ss" : "M-D hh:mm"
isDesktop ? "YYYY-MM-DD HH:mm:ss" : "M-D hh:mm"
),
},
{

View File

@@ -123,7 +123,7 @@ const columns = computed(() => {
render: (row) =>
parseTime(
row.create_time,
isDesktop ? "YYYY-MM-DD hh:mm:ss" : "M-D hh:mm"
isDesktop ? "YYYY-MM-DD HH:mm:ss" : "M-D hh:mm"
),
},
{