contest list.

This commit is contained in:
2023-03-20 20:54:12 +08:00
parent efbc21ba18
commit 4af5a28c03
11 changed files with 146 additions and 14 deletions

View File

@@ -0,0 +1,41 @@
<script lang="ts" setup>
import { Contest } from "~/utils/types"
interface Props {
contest: Contest
}
const props = defineProps<Props>()
const router = useRouter()
function goEdit() {
router.push({
name: "admin contest edit",
params: { contestID: props.contest.id },
})
}
function goEditProblems() {
router.push({
name: "admin contest problems",
params: { contestID: props.contest.id },
})
}
</script>
<template>
<n-space>
<n-button size="small" type="primary" secondary @click="goEdit">
编辑
</n-button>
<n-button size="small" type="info" secondary @click="goEditProblems">
题目
</n-button>
<n-button size="small" type="warning" secondary>公告</n-button>
<n-tooltip>
<template #trigger>
<n-button size="small" secondary>下载</n-button>
</template>
下载 AC 提交
</n-tooltip>
</n-space>
</template>
<style scoped></style>