update about

This commit is contained in:
2023-10-25 12:03:16 +08:00
parent 7b50aa39db
commit 248825be5b
3 changed files with 21 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { NButton, NCard, NDivider, NLayoutContent, NSpace, NText } from 'naive-ui' import { NButton, NCard, NDivider, NLayoutContent, NSpace, NText, NTimeline, NTimelineItem } from 'naive-ui'
</script> </script>
<template> <template>
<NLayoutContent style="height: 100vh"> <NLayoutContent style="height: 100vh">
@@ -7,9 +7,9 @@ import { NButton, NCard, NDivider, NLayoutContent, NSpace, NText } from 'naive-u
<NCard style="max-width: 80vw; width: 700px"> <NCard style="max-width: 80vw; width: 700px">
<template #header> 关于 </template> <template #header> 关于 </template>
<NText> <NText>
一个兴趣然的网站. 一个兴趣使然的网站
<br /> <br />
反馈 | 建议 | 需求 | 闲聊: : 反馈 | 建议 | 需求 | 闲聊: 🐧
<NButton <NButton
tag="a" tag="a"
type="info" type="info"
@@ -21,14 +21,7 @@ import { NButton, NCard, NDivider, NLayoutContent, NSpace, NText } from 'naive-u
</NButton> </NButton>
<NDivider vertical /> <NDivider vertical />
邮箱: 邮箱:
<NButton <NButton tag="a" type="info" href="mailto:admin@vtsuru.live" text> admin@vtsuru.live </NButton>
tag="a"
type="info"
href="mailto:megghy@qq.com"
text
>
megghy@qq.com
</NButton>
</NText> </NText>
<template #footer> <template #footer>
<NSpace vertical> <NSpace vertical>
@@ -36,15 +29,16 @@ import { NButton, NCard, NDivider, NLayoutContent, NSpace, NText } from 'naive-u
开发者: 开发者:
<NButton type="primary" tag="a" href="https://space.bilibili.com/10021741" target="_blank" text style=""> Megghy </NButton> <NButton type="primary" tag="a" href="https://space.bilibili.com/10021741" target="_blank" text style=""> Megghy </NButton>
</span> </span>
<span> <span> 技术栈: 前端 VUE3 + NAIVE UI, 后端 .NET 8 </span>
技术栈: 前端 VUE3 + NAIVE UI, 后端 .NET 8
</span>
</NSpace> </NSpace>
<NDivider title-placement="left"> 更新日志 </NDivider>
<NTimeline>
<NTimelineItem type="success" title="功能添加" content="舰长及SC记录" time="2023-10-24" line-type="dashed" />
<NTimelineItem type="info" content="开始运行" time="2023-10-23" />
</NTimeline>
</template> </template>
</NCard> </NCard>
<NButton @click="$router.push({ name: 'manage-index' })"> <NButton @click="$router.push({ name: 'manage-index' })"> 回到主页 </NButton>
回到主页
</NButton>
</NSpace> </NSpace>
</NLayoutContent> </NLayoutContent>
</template> </template>

View File

@@ -56,11 +56,11 @@ const menuOptions = [
to: { to: {
name: 'manage-history', name: 'manage-history',
}, },
disabled: !accountInfo.value?.isEmailVerified,
}, },
{ default: () => '历史' } { default: () => '历史' }
), ),
key: 'manage-history', key: 'manage-history',
disabled: !accountInfo.value?.isEmailVerified,
icon: renderIcon(AnalyticsSharp), icon: renderIcon(AnalyticsSharp),
}, },
{ {
@@ -71,11 +71,11 @@ const menuOptions = [
to: { to: {
name: 'manage-event', name: 'manage-event',
}, },
disabled: accountInfo.value?.isBiliVerified != true,
}, },
{ default: () => '舰长和SC' } { default: () => '舰长和SC' }
), ),
key: 'manage-event', key: 'manage-event',
disabled: !accountInfo.value?.isEmailVerified,
icon: renderIcon(VehicleShip24Filled), icon: renderIcon(VehicleShip24Filled),
}, },
{ {
@@ -86,12 +86,12 @@ const menuOptions = [
to: { to: {
name: 'manage-schedule', name: 'manage-schedule',
}, },
disabled: !accountInfo.value?.isEmailVerified || (accountInfo.value?.settings?.enableFunctions.indexOf(FunctionTypes.Schedule) ?? -1) == -1,
}, },
{ default: () => '日程' } { default: () => '日程' }
), ),
key: 'manage-schedule', key: 'manage-schedule',
icon: renderIcon(CalendarClock24Filled), icon: renderIcon(CalendarClock24Filled),
disabled: !accountInfo.value?.isEmailVerified || (accountInfo.value?.settings?.enableFunctions.indexOf(FunctionTypes.Schedule) ?? -1) == -1,
}, },
{ {
label: () => label: () =>
@@ -101,12 +101,12 @@ const menuOptions = [
to: { to: {
name: 'manage-songList', name: 'manage-songList',
}, },
disabled: !accountInfo.value?.isEmailVerified || (accountInfo.value?.settings?.enableFunctions.indexOf(FunctionTypes.SongList) ?? -1) == -1,
}, },
{ default: () => '歌单' } { default: () => '歌单' }
), ),
key: 'manage-songList', key: 'manage-songList',
icon: renderIcon(MusicalNote), icon: renderIcon(MusicalNote),
disabled: !accountInfo.value?.isEmailVerified || (accountInfo.value?.settings?.enableFunctions.indexOf(FunctionTypes.SongList) ?? -1) == -1,
}, },
{ {
label: () => label: () =>
@@ -116,12 +116,12 @@ const menuOptions = [
to: { to: {
name: 'manage-questionBox', name: 'manage-questionBox',
}, },
disabled: !accountInfo.value?.isEmailVerified || (accountInfo.value?.settings?.enableFunctions.indexOf(FunctionTypes.QuestionBox) ?? -1) == -1,
}, },
{ default: () => '棉花糖 (提问箱' } { default: () => '棉花糖 (提问箱' }
), ),
key: 'manage-questionBox', key: 'manage-questionBox',
icon: renderIcon(Chatbox), icon: renderIcon(Chatbox),
disabled: !accountInfo.value?.isEmailVerified || (accountInfo.value?.settings?.enableFunctions.indexOf(FunctionTypes.QuestionBox) ?? -1) == -1,
}, },
{ {
label: () => label: () =>
@@ -136,6 +136,7 @@ const menuOptions = [
), ),
key: 'manage-lottery', key: 'manage-lottery',
icon: renderIcon(Lottery24Filled), icon: renderIcon(Lottery24Filled),
disabled: !accountInfo.value?.isEmailVerified,
}, },
] ]

View File

@@ -166,7 +166,10 @@ onMounted(() => {
</script> </script>
<template> <template>
<NSpace vertical>
<NAlert type="warning"> 实验性功能, 尚不稳定. </NAlert> <NAlert type="warning"> 实验性功能, 尚不稳定. </NAlert>
<NAlert v-if="!accountInfo?.isBiliVerified" type="warning"> 使用此功能前你需要先<NButton type="info" text @click="$router.push({ name: 'manage-biliVerify' })">认证Bilibili账号</NButton> </NAlert>
</NSpace>
<NDivider /> <NDivider />
<NAlert title="EVENT-FETCHER 状态" :type="accountInfo?.eventFetcherOnline ? (accountInfo?.eventFetcherStatus == 'ok' ? 'success' : 'warning') : 'info'"> <NAlert title="EVENT-FETCHER 状态" :type="accountInfo?.eventFetcherOnline ? (accountInfo?.eventFetcherStatus == 'ok' ? 'success' : 'warning') : 'info'">
<NTag :type="accountInfo?.eventFetcherOnline ? (accountInfo?.eventFetcherStatus == 'ok' ? 'success' : 'warning') : 'error'"> <NTag :type="accountInfo?.eventFetcherOnline ? (accountInfo?.eventFetcherStatus == 'ok' ? 'success' : 'warning') : 'error'">