Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
530e1a3d5d
commit
195069450f
480 files changed
+15507
-24650
No files matched your search
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { useThemeVars } from "naive-ui"
|
||||
import { getProblemSetLocks } from "oj/api"
|
||||
import { parseTime } from "utils/functions"
|
||||
import type { ProblemSetLock } from "utils/types"
|
||||
import { useThemeVars } from 'naive-ui'
|
||||
import { getProblemSetLocks } from 'oj/api'
|
||||
import { parseTime } from 'utils/functions'
|
||||
import type { ProblemSetLock } from 'utils/types'
|
||||
|
||||
/**
|
||||
* 「旧代码为什么藏着」那一句(设计稿「题单重设计」旧代码藏着时学生看到的):
|
||||
@@ -15,7 +15,7 @@ const theme = useThemeVars()
|
||||
const locks = ref<ProblemSetLock[]>([])
|
||||
|
||||
watch(
|
||||
() => ("id" in props.problem ? props.problem.id : props.problem.displayId),
|
||||
() => ('id' in props.problem ? props.problem.id : props.problem.displayId),
|
||||
async () => {
|
||||
try {
|
||||
locks.value = await getProblemSetLocks(props.problem)
|
||||
@@ -31,17 +31,15 @@ const first = computed(() => locks.value[0])
|
||||
|
||||
<template>
|
||||
<span v-if="first">
|
||||
题单<router-link :to="{ name: 'problemset', params: { problemSetId: first.problemSetId } }"
|
||||
>《{{ first.title }}》</router-link
|
||||
>布置中,这道题以前的代码先藏着 · 在题单里做对,或
|
||||
{{ parseTime(first.assignedUntil, "M月D日") }} 之后就能看
|
||||
题单<router-link :to="{ name: 'problemset', params: { problemSetId: first.problemSetId } }">《{{ first.title }}》</router-link
|
||||
>布置中,这道题以前的代码先藏着 · 在题单里做对,或 {{ parseTime(first.assignedUntil, 'M月D日') }} 之后就能看
|
||||
</span>
|
||||
<span v-else>这道题正在题单里布置,以前的代码先藏着 · 在题单里做对,或者布置期结束就能看</span>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
a {
|
||||
color: v-bind("theme.primaryColor");
|
||||
color: v-bind('theme.primaryColor');
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user