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-04-07 19:24:09 -06:00
parent 3697078fc3
commit 58f462bb3b
11 changed files with 146 additions and 118 deletions

View File

@@ -9,7 +9,11 @@
</template>
<template #suffix>
<n-flex style="margin: 0 8px">
<n-button v-if="roleAdmin || roleSuper" text @click="showStats = true">
<n-button
v-if="roleAdmin || roleSuper"
text
@click="showStats = true"
>
<Icon :width="16" icon="lucide:bar-chart-2" />
</n-button>
<n-button

View File

@@ -1,10 +1,7 @@
<template>
<n-flex class="container" :wrap="false">
<div class="sidebar">
<div
class="back-btn"
@click="() => goHome($router, taskTab, step)"
>
<div class="back-btn" @click="() => goHome($router, taskTab, step)">
返回
</div>
<n-divider style="margin: 8px 0" />
@@ -78,7 +75,9 @@ const menu = computed(() =>
color: #888;
cursor: pointer;
border-radius: 6px;
transition: background-color 0.15s, color 0.15s;
transition:
background-color 0.15s,
color 0.15s;
user-select: none;
}
@@ -93,7 +92,9 @@ const menu = computed(() =>
font-size: 14px;
cursor: pointer;
color: #444;
transition: background-color 0.15s, color 0.15s;
transition:
background-color 0.15s,
color 0.15s;
user-select: none;
}

View File

@@ -12,7 +12,17 @@
style="height: 100%; padding-right: 10px; overflow: hidden"
>
<n-flex justify="space-between" style="flex-shrink: 0">
<n-button secondary @click="() => goHome($router, taskTab, taskTab === TASK_TYPE.Challenge ? challengeDisplay : step)">
<n-button
secondary
@click="
() =>
goHome(
$router,
taskTab,
taskTab === TASK_TYPE.Challenge ? challengeDisplay : step,
)
"
>
首页
</n-button>
<n-flex align="center">

View File

@@ -1,10 +1,5 @@
<template>
<n-split
:size="panelSize"
@update-size="changeSize"
min="400px"
max="900px"
>
<n-split :size="panelSize" @update-size="changeSize" min="400px" max="900px">
<template #1>
<TaskPanel @hide="hide" />
</template>