mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
add guild button
This commit is contained in:
@@ -581,6 +581,10 @@ onMounted(async () => {
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<NButton @click="showModal = true" type="primary"> 添加歌曲 </NButton>
|
<NButton @click="showModal = true" type="primary"> 添加歌曲 </NButton>
|
||||||
<NButton @click="exportData" type="primary" secondary> 导出为 CSV </NButton>
|
<NButton @click="exportData" type="primary" secondary> 导出为 CSV </NButton>
|
||||||
|
<NButton @click="$router.push({ name: 'manage-songRequest' })" secondary> 前往点歌页 </NButton>
|
||||||
|
<NButton @click="$router.push({ name: 'user-songList', params: { id: accountInfo?.name } })" secondary>
|
||||||
|
前往展示页
|
||||||
|
</NButton>
|
||||||
<NButton
|
<NButton
|
||||||
:loading="isLoading"
|
:loading="isLoading"
|
||||||
@click="
|
@click="
|
||||||
|
|||||||
@@ -750,7 +750,7 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NAlert type="info" v-if="accountInfo">
|
<NAlert type="info" v-if="accountInfo">
|
||||||
启用队列功能
|
启用弹幕队列功能
|
||||||
<NSwitch
|
<NSwitch
|
||||||
:value="accountInfo?.settings.enableFunctions.includes(FunctionTypes.Queue)"
|
:value="accountInfo?.settings.enableFunctions.includes(FunctionTypes.Queue)"
|
||||||
@update:value="onUpdateFunctionEnable"
|
@update:value="onUpdateFunctionEnable"
|
||||||
@@ -804,9 +804,7 @@ onUnmounted(() => {
|
|||||||
<NIcon :component="Checkmark12Regular" />
|
<NIcon :component="Checkmark12Regular" />
|
||||||
</template>
|
</template>
|
||||||
今日已处理 |
|
今日已处理 |
|
||||||
{{
|
{{ queue.filter((s) => s.status == QueueStatus.Finish && isSameDay(s.finishAt ?? 0, Date.now())).length }}
|
||||||
queue.filter((s) => s.status == QueueStatus.Finish && isSameDay(s.finishAt ?? 0, Date.now())).length
|
|
||||||
}}
|
|
||||||
位
|
位
|
||||||
</NTag>
|
</NTag>
|
||||||
<NInputGroup>
|
<NInputGroup>
|
||||||
@@ -1204,6 +1202,9 @@ onUnmounted(() => {
|
|||||||
</NSpin>
|
</NSpin>
|
||||||
</NTabPane>
|
</NTabPane>
|
||||||
</NTabs>
|
</NTabs>
|
||||||
|
<template v-else>
|
||||||
|
<NAlert title="未启用" type="error"> 请先启用弹幕排队功能 </NAlert>
|
||||||
|
</template>
|
||||||
</NCard>
|
</NCard>
|
||||||
<NModal v-model:show="showOBSModal" title="OBS组件" preset="card" style="width: 800px">
|
<NModal v-model:show="showOBSModal" title="OBS组件" preset="card" style="width: 800px">
|
||||||
<NAlert title="这是什么? " type="info"> 将等待队列以及结果显示在OBS中 </NAlert>
|
<NAlert title="这是什么? " type="info"> 将等待队列以及结果显示在OBS中 </NAlert>
|
||||||
|
|||||||
@@ -748,7 +748,7 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NAlert type="info" v-if="accountInfo">
|
<NAlert type="info" v-if="accountInfo">
|
||||||
启用点歌功能
|
启用弹幕点歌功能
|
||||||
<NSwitch
|
<NSwitch
|
||||||
:value="accountInfo?.settings.enableFunctions.includes(FunctionTypes.SongRequest)"
|
:value="accountInfo?.settings.enableFunctions.includes(FunctionTypes.SongRequest)"
|
||||||
@update:value="onUpdateFunctionEnable"
|
@update:value="onUpdateFunctionEnable"
|
||||||
@@ -1219,6 +1219,9 @@ onUnmounted(() => {
|
|||||||
</NSpin>
|
</NSpin>
|
||||||
</NTabPane>
|
</NTabPane>
|
||||||
</NTabs>
|
</NTabs>
|
||||||
|
<template v-else>
|
||||||
|
<NAlert title="未启用" type="error"> 请先启用弹幕点歌功能 </NAlert>
|
||||||
|
</template>
|
||||||
</NCard>
|
</NCard>
|
||||||
<NModal v-model:show="showOBSModal" title="OBS组件" preset="card" style="width: 800px">
|
<NModal v-model:show="showOBSModal" title="OBS组件" preset="card" style="width: 800px">
|
||||||
<NAlert title="这是什么? " type="info"> 将等待队列以及结果显示在OBS中 </NAlert>
|
<NAlert title="这是什么? " type="info"> 将等待队列以及结果显示在OBS中 </NAlert>
|
||||||
|
|||||||
Reference in New Issue
Block a user