统一导入

This commit is contained in:
2025-10-05 20:07:41 +08:00
parent 2b93a9e849
commit 7e6d03ca1a
77 changed files with 211 additions and 211 deletions

View File

@@ -9,7 +9,7 @@
</template>
<script setup lang="ts">
import { getAuthors } from "~/oj/api"
import { getAuthors } from "oj/api"
interface Props {
all?: boolean

View File

@@ -4,7 +4,7 @@ import { python } from "@codemirror/lang-python"
import { EditorView } from "@codemirror/view"
import { Codemirror } from "vue-codemirror"
import type { Extension } from "@codemirror/state"
import { LANGUAGE } from "~/utils/types"
import { LANGUAGE } from "utils/types"
import { oneDark } from "../themes/oneDark"
import { smoothy } from "../themes/smoothy"

View File

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

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { Icon } from "@iconify/vue"
import { copyToClipboard } from "~/utils/functions"
import { copyToClipboard } from "utils/functions"
defineProps<{ value: string }>()
const [copied, toggle] = useToggle()

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { Icon } from "@iconify/vue"
import { RouterLink } from "vue-router"
import { isDesktop, isMobile } from "~/shared/composables/breakpoints"
import { toggleLogin, toggleSignup } from "~/shared/composables/modal"
import { screenMode, switchScreenMode } from "~/shared/composables/switchScreen"
import { avatar } from "~/utils/constants"
import { isDesktop, isMobile } from "shared/composables/breakpoints"
import { toggleLogin, toggleSignup } from "shared/composables/modal"
import { screenMode, switchScreenMode } from "shared/composables/switchScreen"
import { avatar } from "utils/constants"
import { logout } from "../api"
import { useConfigStore } from "../store/config"
import { useUserStore } from "../store/user"

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { isDesktop } from "~/shared/composables/breakpoints"
import { isDesktop } from "shared/composables/breakpoints"
interface Props {
total: number

View File

@@ -4,7 +4,7 @@ import { python } from "@codemirror/lang-python"
import { EditorView } from "@codemirror/view"
import { Codemirror } from "vue-codemirror"
import type { Extension } from "@codemirror/state"
import { LANGUAGE } from "~/utils/types"
import { LANGUAGE } from "utils/types"
import { oneDark } from "../themes/oneDark"
import { smoothy } from "../themes/smoothy"
import { useCodeSync, SYNC_ERROR_CODES } from "../composables/sync"

View File

@@ -9,7 +9,7 @@
</n-tooltip>
</template>
<script lang="ts" setup>
import { copyToClipboard } from "~/utils/functions"
import { copyToClipboard } from "utils/functions"
const message = useMessage()