remove partyjs.

This commit is contained in:
2023-12-04 13:09:09 +08:00
parent d5871afeac
commit 7690b1b07f
2 changed files with 8 additions and 22 deletions

View File

@@ -1,7 +1,6 @@
<script setup lang="ts">
import { useUserStore } from "~/shared/store/user"
import { getBaseInfo } from "../api"
import party from "party-js"
const userCount = ref(0)
const submissionCount = ref(0)
@@ -9,17 +8,6 @@ const contestCount = ref(0)
const userStore = useUserStore()
const router = useRouter()
party.resolvableShapes["fries"] = `<span style="font-size: 100px">🍟</span>`
party.resolvableShapes["joker"] = `<span style="font-size: 100px">🤡</span>`
function partyBegin1() {
party.sparkles(document.body, { shapes: ["fries"] })
}
function partyBegin2() {
party.sparkles(document.body, { shapes: ["joker"] })
}
onMounted(async () => {
const res = await getBaseInfo()
userCount.value = res.data.user_count
@@ -50,8 +38,6 @@ onMounted(async () => {
<span>我猜你要</span>
<n-button @click="router.push('/admin/problem/create')">新题目</n-button>
<n-button @click="router.push('/admin/contest/create')">新比赛</n-button>
<n-button @click="partyBegin1">来点薯条</n-button>
<n-button @click="partyBegin2">做回自己</n-button>
</n-space>
</template>