update
Deploy / deploy (push) Has been cancelled

This commit is contained in:
xuyue committed 2025-10-23 23:20:00 +08:00
1 parent 791828b9e1
commit df24bf7f54
18 files changed
+591 -359

No files matched your search

@@ -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
}
@@ -1,15 +1,4 @@
<script setup lang="ts">
import {
NModal,
NForm,
NFormItem,
NInput,
NInputNumber,
NSwitch,
NButton,
NFlex,
} from "naive-ui"
interface Props {
show: boolean
}
@@ -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[]
@@ -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 {
@@ -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 {
@@ -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"
@@ -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: "是否完成",
+2 -7
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[]>([])