This commit is contained in:
2024-07-04 21:08:35 +08:00
parent 9c6c44e5e7
commit fdf0de9db1
49 changed files with 737 additions and 663 deletions

View File

@@ -1,11 +1,11 @@
<script lang="ts" setup>
import { Codemirror } from "vue-codemirror"
import { cpp } from "@codemirror/lang-cpp"
import { python } from "@codemirror/lang-python"
import { EditorView } from "@codemirror/view"
import { Codemirror } from "vue-codemirror"
import { LANGUAGE } from "~/utils/types"
import { oneDark } from "../themes/oneDark"
import { smoothy } from "../themes/smoothy"
import { LANGUAGE } from "~/utils/types"
const styleTheme = EditorView.baseTheme({
"& .cm-scroller": {

View File

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

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
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 copy from "copy-text-to-clipboard"
import { Icon } from "@iconify/vue"
import copy from "copy-text-to-clipboard"
defineProps<{ value: string }>()
const [copied, toggle] = useToggle()

View File

@@ -1,15 +1,15 @@
<script setup lang="ts">
import { logout } from "../api"
import { useUserStore } from "../store/user"
import { useConfigStore } from "../store/config"
import { toggleLogin, toggleSignup } from "~/shared/composables/modal"
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 {
screenSwitchLabel,
switchScreenMode,
} from "~/shared/composables/switchScreen"
import { Icon } from "@iconify/vue"
import { logout } from "../api"
import { useConfigStore } from "../store/config"
import { useUserStore } from "../store/user"
const isDark = useDark()
const toggleDark = useToggle(isDark)

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { login } from "../api"
import { useConfigStore } from "../store/config"
import { loginModal, toggleLogin, toggleSignup } from "../composables/modal"
import { useConfigStore } from "../store/config"
import { useUserStore } from "../store/user"
const userStore = useUserStore()

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { getCaptcha, signup, login } from "../api"
import { getCaptcha, login, signup } from "../api"
import { signupModal, toggleLogin, toggleSignup } from "../composables/modal"
import { useUserStore } from "../store/user"

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import "@wangeditor/editor/dist/css/style.css"
import { IDomEditor, IEditorConfig, IToolbarConfig } from "@wangeditor/editor"
import { Editor, Toolbar } from "@wangeditor/editor-for-vue"
import "@wangeditor/editor/dist/css/style.css"
import { uploadImage } from "../../admin/api"
interface Props {

View File

@@ -35,7 +35,7 @@ const options: MenuOption[] = [
),
key: "admin problem create",
},
{label: "交流", key: "communication", disabled: true},
{ label: "交流", key: "communication", disabled: true },
{
label: () =>
h(

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import Beian from "../components/Beian.vue"
import Header from "../components/Header.vue"
import Login from "../components/Login.vue"
import Signup from "../components/Signup.vue"
import Header from "../components/Header.vue"
import Beian from "../components/Beian.vue"
</script>
<template>