add queue

This commit is contained in:
2023-11-25 19:09:34 +08:00
parent 10d7f591fd
commit 69dbd31259
12 changed files with 1604 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ import {
SongRequestFrom,
SongRequestInfo,
SongRequestStatus,
SongRequestUserInfo,
DanmakuUserInfo,
SongsInfo,
} from '@/api/api-models'
import { QueryGetAPI, QueryPostAPI, QueryPostAPIWithParams } from '@/api/query'
@@ -241,7 +241,7 @@ async function addSong(danmaku: EventModel) {
fans_medal_name: danmaku.fans_medal_name,
fans_medal_wearing_status: danmaku.fans_medal_wearing_status,
guard_level: danmaku.guard_level,
} as SongRequestUserInfo,
} as DanmakuUserInfo,
createAt: Date.now(),
isInLocal: true,
id: songs.value.length == 0 ? 1 : new List(songs.value).Max((s) => s.id) + 1,

View File

@@ -27,6 +27,12 @@ const accountInfo = useAccount()
<NButton @click="$router.push({ name: 'open-live-song-request', query: $route.query })" type="primary"> 前往使用 </NButton>
</template>
</NCard>
<NCard hoverable embedded size="small" title="弹幕排队" style="width: 300px">
通过发送弹幕或者礼物进行排队, 允许设置多种条件
<template #footer>
<NButton @click="$router.push({ name: 'open-live-queue', query: $route.query })" type="primary"> 前往使用 </NButton>
</template>
</NCard>
</NSpace>
<br />
<NAlert v-if="accountInfo?.eventFetcherOnline != true" type="warning" title="可用性警告" style="max-width: 600px; margin: 0 auto">

File diff suppressed because it is too large Load Diff