feat(阶段1): 搬入 ojnext 为 apps/web,未改业务代码
This commit is contained in:
18
apps/web/src/shared/components/ContestTitle.vue
Normal file
18
apps/web/src/shared/components/ContestTitle.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import { Icon } from "@iconify/vue"
|
||||
import { ContestType } from "utils/constants"
|
||||
import type { Contest } from "utils/types"
|
||||
|
||||
defineProps<{ contest: Contest }>()
|
||||
</script>
|
||||
<template>
|
||||
<n-flex>
|
||||
<Icon
|
||||
v-if="contest.contest_type === ContestType.private"
|
||||
:height="24"
|
||||
icon="streamline-ultimate-color:shield-lock"
|
||||
></Icon>
|
||||
<span>{{ contest.title }}</span>
|
||||
</n-flex>
|
||||
</template>
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user