change to vite8
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-07-02 18:28:47 -06:00
parent 5d418a2280
commit dd29f04664
62 changed files with 3033 additions and 1028 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts" setup>
import TextEditor from "shared/components/TextEditor.vue"
import { AnnouncementEdit } from "utils/types"
import type { AnnouncementEdit } from "utils/types"
import { createAnnouncement, editAnnouncement, getAnnouncement } from "../api"
interface Props {

View File

@@ -2,7 +2,7 @@
import { NSwitch } from "naive-ui"
import Pagination from "shared/components/Pagination.vue"
import { parseTime } from "utils/functions"
import { Announcement } from "utils/types"
import type { Announcement } from "utils/types"
import { editAnnouncement, getAnnouncementList } from "../api"
import Actions from "./components/Actions.vue"

View File

@@ -20,7 +20,7 @@
import { NButton } from "naive-ui"
import Pagination from "shared/components/Pagination.vue"
import { parseTime } from "utils/functions"
import { Comment } from "utils/types"
import type { Comment } from "utils/types"
import { getCommentList } from "../api"
import CommentActions from "./components/CommentActions.vue"

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { Contest } from "utils/types"
import type { Contest } from "utils/types"
import { cloneContest } from "../../api"
interface Props {

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { h } from "vue"
import { ProblemSetBadge } from "utils/types"
import type { ProblemSetBadge } from "utils/types"
import { NButton, NImage } from "naive-ui"
interface Props {

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ProblemSetBadge } from "utils/types"
import type { ProblemSetBadge } from "utils/types"
interface Props {
show: boolean

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ProblemSetProblem } from "utils/types"
import type { ProblemSetProblem } from "utils/types"
interface Props {
show: boolean

View File

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

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { parseTime } from "utils/functions"
import { ProblemSet } from "utils/types"
import type { ProblemSet } from "utils/types"
interface Props {
problemSet: ProblemSet

View File

@@ -2,7 +2,7 @@
import { h } from "vue"
import { NDataTable, NButton, NFlex } from "naive-ui"
import { parseTime } from "utils/functions"
import { ProblemSetProgress } from "utils/types"
import type { ProblemSetProgress } from "utils/types"
interface Props {
progress: ProblemSetProgress[]

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { NTabPane, NTabs, NButton, NFlex } from "naive-ui"
import {
import type {
ProblemSet,
ProblemSetProblem,
ProblemSetBadge,

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { CreateProblemSetData, EditProblemSetData } from "utils/types"
import type { CreateProblemSetData, EditProblemSetData } from "utils/types"
import { getProblemSetDetail, createProblemSet, editProblemSet } from "../api"
const route = useRoute()

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { NButton, NTag } from "naive-ui"
import { parseTime } from "utils/functions"
import { Server } from "utils/types"
import type { Server } from "utils/types"
import { useConfigStore } from "shared/store/config"
import { useConfigWebSocket } from "shared/composables/websocket"
import {

View File

@@ -6,7 +6,7 @@ import { getRank } from "oj/api"
import Pagination from "shared/components/Pagination.vue"
import { useUserStore } from "shared/store/user"
import { getACRate } from "utils/functions"
import { Rank } from "utils/types"
import type { Rank } from "utils/types"
import { getBaseInfo, randomUser10 } from "../api"
const userCount = ref(0)

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import {
import type {
Exercise,
ExerciseType,
ExerciseMcqData,

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import CodeEditor from "shared/components/CodeEditor.vue"
import MarkdownEditor from "shared/components/MarkdownEditor.vue"
import { Tutorial } from "utils/types"
import type { Tutorial } from "utils/types"
import { createTutorial, getTutorial, updateTutorial } from "../api"
import ExerciseManager from "./components/ExerciseManager.vue"

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { NSwitch } from "naive-ui"
import { parseTime } from "utils/functions"
import { Tutorial } from "utils/types"
import type { Tutorial } from "utils/types"
import { getTutorialList, setTutorialVisibility } from "../api"
import Actions from "./components/Actions.vue"

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { PROBLEM_PERMISSION, USER_TYPE } from "utils/constants"
import { getUserRole } from "utils/functions"
import { User } from "utils/types"
import type { User } from "utils/types"
import TextCopy from "shared/components/TextCopy.vue"
interface Props {

View File

@@ -3,7 +3,7 @@ import { DataTableRowKey, SelectOption } from "naive-ui"
import Pagination from "shared/components/Pagination.vue"
import { usePagination } from "shared/composables/pagination"
import { parseTime } from "utils/functions"
import { User } from "utils/types"
import type { User } from "utils/types"
import {
deleteUsers,
editUser,