update
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-03-18 18:40:15 +08:00
parent dd52e3e1f9
commit 4e95a2fad0
11 changed files with 41 additions and 422 deletions

View File

@@ -45,12 +45,6 @@
>
<Icon :width="16" icon="lucide:list"></Icon>
</n-button>
<!-- <n-button text @click="$router.push({ name: 'leaderboard' })">
<Icon :width="16" icon="lucide:trophy" />
</n-button>
<n-button text v-if="isLoggedIn" @click="$router.push({ name: 'my-scores' })">
<Icon :width="16" icon="lucide:bar-chart-2" />
</n-button> -->
<n-button text v-if="roleSuper" @click="edit">
<Icon :width="16" icon="lucide:edit"></Icon>
</n-button>
@@ -70,7 +64,7 @@ import { step } from "../store/tutorial"
import { authed, roleSuper } from "../store/user"
import { taskTab, challengeDisplay } from "../store/task"
import { useRoute, useRouter } from "vue-router"
import { TASK_TYPE, STORAGE_KEY } from "../utils/const"
import { TASK_TYPE } from "../utils/const"
import Challenge from "./Challenge.vue"
import Tutorial from "./Tutorial.vue"
@@ -80,8 +74,6 @@ const tutorialRef = ref<InstanceType<typeof Tutorial>>()
defineEmits(["hide"])
const isLoggedIn = computed(() => localStorage.getItem(STORAGE_KEY.LOGIN) === "true")
const hideNav = computed(
() =>
taskTab.value !== TASK_TYPE.Tutorial ||