update
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-10-23 23:20:00 +08:00
parent 791828b9e1
commit df24bf7f54
18 changed files with 591 additions and 359 deletions

View File

@@ -1,16 +1,4 @@
<script setup lang="ts">
import {
NModal,
NForm,
NFormItem,
NInput,
NInputNumber,
NSelect,
NButton,
NFlex,
NImage,
} from "naive-ui"
interface Props {
show: boolean
}

View File

@@ -1,15 +1,4 @@
<script setup lang="ts">
import {
NModal,
NForm,
NFormItem,
NInput,
NInputNumber,
NSwitch,
NButton,
NFlex,
} from "naive-ui"
interface Props {
show: boolean
}

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { h } from "vue"
import { NDataTable, NButton, NFlex, NImage } from "naive-ui"
import { ProblemSetBadge } from "utils/types"
import { NButton, NImage } from "naive-ui"
interface Props {
badges: ProblemSetBadge[]

View File

@@ -1,15 +1,4 @@
<script setup lang="ts">
import {
NModal,
NForm,
NFormItem,
NInput,
NInputNumber,
NSelect,
NButton,
NFlex,
NImage,
} from "naive-ui"
import { ProblemSetBadge } from "utils/types"
interface Props {

View File

@@ -1,14 +1,4 @@
<script setup lang="ts">
import {
NModal,
NForm,
NFormItem,
NInput,
NInputNumber,
NSwitch,
NButton,
NFlex,
} from "naive-ui"
import { ProblemSetProblem } from "utils/types"
interface Props {

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
import { NCard, NTag, NButton, NFlex } from "naive-ui"
import { parseTime } from "utils/functions"
import { ProblemSet } from "utils/types"

View File

@@ -31,7 +31,7 @@ const progressColumns = [
title: "进度",
key: "progress_percentage",
width: 100,
render: (row: ProblemSetProgress) => `${row.progress_percentage}%`,
render: (row: ProblemSetProgress) => `${row.progress_percentage.toFixed(0)}%`,
},
{
title: "是否完成",

View File

@@ -1,16 +1,11 @@
<script setup lang="ts">
import { NSwitch, NSelect, NTag } from "naive-ui"
import Pagination from "shared/components/Pagination.vue"
import { usePagination } from "shared/composables/pagination"
import { parseTime } from "utils/functions"
import { ProblemSetList } from "utils/types"
import {
getProblemSetList,
toggleProblemSetVisible,
updateProblemSetStatus,
deleteProblemSet,
} from "../api"
import { getProblemSetList, toggleProblemSetVisible } from "../api"
import Actions from "./components/Actions.vue"
import { NTag, NSwitch } from "naive-ui"
const total = ref(0)
const problemSets = ref<ProblemSetList[]>([])