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,5 +1,5 @@
import http from "utils/http"
import { Profile, Tag } from "utils/types"
import type { Profile, Tag } from "utils/types"
export function login(data: { username: string; password: string }) {
return http.post("login", data)

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { Icon } from "@iconify/vue"
import { ContestType } from "utils/constants"
import { Contest } from "utils/types"
import type { Contest } from "utils/types"
defineProps<{ contest: Contest }>()
</script>

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { ContestType } from "utils/constants"
import { Contest } from "utils/types"
import type { Contest } from "utils/types"
interface Props {
contest: Contest

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { JUDGE_STATUS } from "utils/constants"
import { SUBMISSION_RESULT } from "utils/types"
import type { SUBMISSION_RESULT } from "utils/types"
interface Props {
result: SUBMISSION_RESULT

View File

@@ -23,7 +23,7 @@
</template>
<script setup lang="ts">
import { UserBadge } from "utils/types"
import type { UserBadge } from "utils/types"
import { parseTime } from "utils/functions"
interface Props {
badge: UserBadge

View File

@@ -1,5 +1,5 @@
import { getWebsiteConfig } from "oj/api"
import { WebsiteConfig } from "utils/types"
import type { WebsiteConfig } from "utils/types"
export const useConfigStore = defineStore("config", () => {
const config = ref<WebsiteConfig>({

View File

@@ -1,6 +1,6 @@
import { PROBLEM_PERMISSION, STORAGE_KEY, USER_TYPE } from "utils/constants"
import storage from "utils/storage"
import { Profile, User } from "utils/types"
import type { Profile, User } from "utils/types"
import { getProfile } from "../api"
import { useConfigStore } from "./config"