style(格式化): 改成单引号、一行最长 160,全仓重新格式化
Deploy / deploy (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-26 13:52:24 +08:00
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>