update function(queue, liverequest)

This commit is contained in:
2024-04-14 14:48:18 +08:00
parent 129dff1db1
commit cbd2748c71
6 changed files with 246 additions and 57 deletions

View File

@@ -113,6 +113,7 @@ export interface UserSetting {
} }
export interface Setting_LiveRequest { export interface Setting_LiveRequest {
orderPrefix: string orderPrefix: string
sortType?: QueueSortType
enableOnStreaming: boolean enableOnStreaming: boolean
onlyAllowSongList: boolean onlyAllowSongList: boolean
queueMaxSize: number queueMaxSize: number
@@ -133,6 +134,14 @@ export interface Setting_LiveRequest {
tiduCooldownSecond: number tiduCooldownSecond: number
jianzhangCooldownSecond: number jianzhangCooldownSecond: number
allowGift: boolean
giftNames?: string[]
minGiftPrice?: number
giftFilterType: QueueGiftFilterType
allowIncreasePaymentBySendGift: boolean
allowIncreaseByAnyPayment: boolean
sendGiftIgnoreLimit: boolean
showRequireInfo: boolean showRequireInfo: boolean
showUserName: boolean showUserName: boolean
showFanMadelInfo: boolean showFanMadelInfo: boolean
@@ -160,6 +169,8 @@ export interface Setting_Queue {
giftFilterType: QueueGiftFilterType giftFilterType: QueueGiftFilterType
allowIncreasePaymentBySendGift: boolean allowIncreasePaymentBySendGift: boolean
allowIncreaseByAnyPayment: boolean allowIncreaseByAnyPayment: boolean
sendGiftDirectJoin: boolean
sendGiftIgnoreLimit: boolean
enableCooldown: boolean enableCooldown: boolean
cooldownSecond: number cooldownSecond: number
@@ -443,7 +454,7 @@ export interface SongRequestInfo {
song?: SongsInfo song?: SongsInfo
status: SongRequestStatus status: SongRequestStatus
from: SongRequestFrom from: SongRequestFrom
scPrice?: number price?: number
user?: DanmakuUserInfo user?: DanmakuUserInfo
createAt: number createAt: number
finishAt?: number finishAt?: number
@@ -463,6 +474,7 @@ export enum SongRequestFrom {
Danmaku, Danmaku,
SC, SC,
Web, Web,
Gift
} }
export enum QueueFrom { export enum QueueFrom {
Manual, Manual,

View File

@@ -1,5 +1,11 @@
<script setup lang="ts"> <script setup lang="ts">
import { Setting_LiveRequest, SongRequestFrom, SongRequestInfo, SongRequestStatus } from '@/api/api-models' import {
QueueSortType,
Setting_LiveRequest,
SongRequestFrom,
SongRequestInfo,
SongRequestStatus,
} from '@/api/api-models'
import { QueryGetAPI } from '@/api/query' import { QueryGetAPI } from '@/api/query'
import { AVATAR_URL, SONG_REQUEST_API_URL } from '@/data/constants' import { AVATAR_URL, SONG_REQUEST_API_URL } from '@/data/constants'
import { useElementSize } from '@vueuse/core' import { useElementSize } from '@vueuse/core'
@@ -7,6 +13,7 @@ import { computed, onMounted, onUnmounted, ref } from 'vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { Vue3Marquee } from 'vue3-marquee' import { Vue3Marquee } from 'vue3-marquee'
import { NCard, NDivider, NEmpty, NSpace, NText, useMessage } from 'naive-ui' import { NCard, NDivider, NEmpty, NSpace, NText, useMessage } from 'naive-ui'
import { List } from 'linqts'
const props = defineProps<{ const props = defineProps<{
id?: number id?: number
@@ -19,30 +26,45 @@ const currentId = computed(() => {
}) })
const listContainerRef = ref() const listContainerRef = ref()
const footerRef = ref()
const footerListRef = ref()
const { height, width } = useElementSize(listContainerRef) const { height, width } = useElementSize(listContainerRef)
const footerSize = useElementSize(footerRef)
const footerListSize = useElementSize(footerListRef)
const itemHeight = 40 const itemHeight = 40
const key = ref(Date.now()) const key = ref(Date.now())
const originSongs = ref<SongRequestInfo[]>([]) const originSongs = ref<SongRequestInfo[]>([])
const songs = computed(() => { const songs = computed(() => {
let result = new List(originSongs.value)
switch (settings.value.sortType) {
case QueueSortType.TimeFirst: {
result = result.ThenBy((q) => q.createAt)
break
}
case QueueSortType.GuardFirst: {
result = result.OrderBy((q) => q.user?.guard_level).ThenBy((q) => q.createAt)
break
}
case QueueSortType.PaymentFist: {
result = result.OrderByDescending((q) => q.price ?? 0).ThenBy((q) => q.createAt)
}
}
if (settings.value.isReverse) { if (settings.value.isReverse) {
// eslint-disable-next-line vue/no-side-effects-in-computed-properties // eslint-disable-next-line vue/no-side-effects-in-computed-properties
return originSongs.value.reverse() return result.Reverse().ToArray()
} else { } else {
return originSongs.value return result.ToArray()
} }
}) })
const isMoreThanContainer = computed(() => {
return songs.value.length * itemHeight > height.value
})
const settings = ref<Setting_LiveRequest>({} as Setting_LiveRequest) const settings = ref<Setting_LiveRequest>({} as Setting_LiveRequest)
const singing = computed(() => { const singing = computed(() => {
return originSongs.value.find((s) => s.status == SongRequestStatus.Singing) return songs.value.find((s) => s.status == SongRequestStatus.Singing)
}) })
const activeSongs = computed(() => { const activeSongs = computed(() => {
return originSongs.value.filter((s) => s.status == SongRequestStatus.Waiting) return songs.value.filter((s) => s.status == SongRequestStatus.Waiting)
}) })
async function get() { async function get() {
@@ -59,9 +81,6 @@ async function get() {
} catch (err) {} } catch (err) {}
return {} as { songs: SongRequestInfo[]; setting: Setting_LiveRequest } return {} as { songs: SongRequestInfo[]; setting: Setting_LiveRequest }
} }
const isMoreThanContainer = computed(() => {
return originSongs.value.length * itemHeight > height.value
})
const allowGuardTypes = computed(() => { const allowGuardTypes = computed(() => {
const types = [] const types = []
if (settings.value.needTidu) { if (settings.value.needTidu) {
@@ -90,6 +109,8 @@ async function update() {
} }
} }
const direction = ref<'normal' | 'reverse'>('normal')
const visiable = ref(true) const visiable = ref(true)
const active = ref(true) const active = ref(true)
let timer: any let timer: any
@@ -138,17 +159,17 @@ onUnmounted(() => {
<div v-else class="live-request-processing-empty">暂无</div> <div v-else class="live-request-processing-empty">暂无</div>
<div class="live-request-processing-suffix"></div> <div class="live-request-processing-suffix"></div>
</div> </div>
<div class="live-request-content" ref="listContainerRef"> <div class="live-request-content" ref="listContainerRef">
<template v-if="activeSongs.length > 0"> <template v-if="activeSongs.length > 0">
<Vue3Marquee <Vue3Marquee
class="live-request-list" class="live-request-list"
:key="key" :key="key"
vertical vertical
:pause="!isMoreThanContainer"
:duration="20" :duration="20"
:pause="!isMoreThanContainer"
:style="`height: ${height}px;width: ${width}px;`" :style="`height: ${height}px;width: ${width}px;`"
> >
<span <div
class="live-request-list-item" class="live-request-list-item"
:from="song.from as number" :from="song.from as number"
:status="song.status as number" :status="song.status as number"
@@ -172,7 +193,8 @@ onUnmounted(() => {
> >
{{ `${song.user?.fans_medal_name} ${song.user?.fans_medal_level}` }} {{ `${song.user?.fans_medal_name} ${song.user?.fans_medal_level}` }}
</div> </div>
</span> </div>
<NDivider v-if="isMoreThanContainer" class="live-request-footer-divider" style="margin: 10px 0 10px 0" />
</Vue3Marquee> </Vue3Marquee>
</template> </template>
<div v-else style="position: relative; top: 20%"> <div v-else style="position: relative; top: 20%">
@@ -184,8 +206,8 @@ onUnmounted(() => {
:key="key" :key="key"
ref="footerListRef" ref="footerListRef"
class="live-request-footer-marquee" class="live-request-footer-marquee"
:pause="footerSize.width < footerListSize.width" :duration="10"
:duration="20" animate-on-overflow-only
> >
<span class="live-request-tag" type="prefix"> <span class="live-request-tag" type="prefix">
<div class="live-request-tag-key">前缀</div> <div class="live-request-tag-key">前缀</div>
@@ -216,8 +238,8 @@ onUnmounted(() => {
: '无需' : '无需'
}} }}
</div> </div>
</span></Vue3Marquee </span>
> </Vue3Marquee>
</div> </div>
</div> </div>
</template> </template>
@@ -418,6 +440,22 @@ onUnmounted(() => {
.live-request-tag-value { .live-request-tag-value {
font-size: 14px; font-size: 14px;
} }
.live-request-list-item-index[index='1'] {
background-color: #ebc34c;
color: white;
font-weight: bold;
text-shadow: 0 0 6px #ebc34c;
}
.live-request-list-item-index[index='2'] {
background-color: #c0c0c0;
color: white;
font-weight: bold;
}
.live-request-list-item-index[index='3'] {
background-color: #b87333;
color: white;
font-weight: bold;
}
@keyframes animated-border { @keyframes animated-border {
0% { 0% {
box-shadow: 0 0 0px #589580; box-shadow: 0 0 0px #589580;

View File

@@ -115,12 +115,15 @@ onMounted(() => {
timer = setInterval(update, 2000) timer = setInterval(update, 2000)
//@ts-expect-error 这里获取不了 //@ts-expect-error 这里获取不了
window.obsstudio.onVisibilityChange = function (visibility: boolean) { if (window.obsstudio) {
visiable.value = visibility //@ts-expect-error 这里获取不了
} window.obsstudio.onVisibilityChange = function (visibility: boolean) {
//@ts-expect-error 这里获取不了 visiable.value = visibility
window.obsstudio.onActiveChange = function (a: boolean) { }
active.value = a //@ts-expect-error 这里获取不了
window.obsstudio.onActiveChange = function (a: boolean) {
active.value = a
}
} }
}) })
onUnmounted(() => { onUnmounted(() => {
@@ -186,6 +189,8 @@ onUnmounted(() => {
}} }}
</p> </p>
</span> </span>
<NDivider v-if="isMoreThanContainer" class="queue-footer-divider" style="margin: 10px 0 10px 0" />
</Vue3Marquee> </Vue3Marquee>
</template> </template>
<div v-else style="position: relative; top: 20%"> <div v-else style="position: relative; top: 20%">
@@ -241,8 +246,8 @@ onUnmounted(() => {
: '无需' : '无需'
}} }}
</div> </div>
</span></Vue3Marquee </span>
> </Vue3Marquee>
</div> </div>
</div> </div>
</template> </template>
@@ -399,14 +404,22 @@ onUnmounted(() => {
color: rgba(204, 204, 204, 0.993); color: rgba(204, 204, 204, 0.993);
font-size: 12px; font-size: 12px;
} }
.queue-list-item-index[index='1'] { .queue-list-item-index[index='1'] {
color: #ebc34c; background-color: #ebc34c;
color: white;
font-weight: bold;
text-shadow: 0 0 6px #ebc34c;
} }
.queue-list-item-index[index='2'] { .queue-list-item-index[index='2'] {
color: #c0c0c0; background-color: #c0c0c0;
color: white;
font-weight: bold;
} }
.queue-list-item-index[index='3'] { .queue-list-item-index[index='3'] {
color: #b87333; background-color: #b87333;
color: white;
font-weight: bold;
} }
.queue-list-item-level { .queue-list-item-level {
text-align: center; text-align: center;

View File

@@ -10,6 +10,8 @@ import {
SongRequestInfo, SongRequestInfo,
SongRequestStatus, SongRequestStatus,
SongsInfo, SongsInfo,
QueueGiftFilterType,
QueueSortType,
} from '@/api/api-models' } from '@/api/api-models'
import { QueryGetAPI, QueryPostAPI, QueryPostAPIWithParams } from '@/api/query' import { QueryGetAPI, QueryPostAPI, QueryPostAPIWithParams } from '@/api/query'
import SongPlayer from '@/components/SongPlayer.vue' import SongPlayer from '@/components/SongPlayer.vue'
@@ -50,6 +52,9 @@ import {
NListItem, NListItem,
NModal, NModal,
NPopconfirm, NPopconfirm,
NRadioButton,
NRadioGroup,
NSelect,
NSpace, NSpace,
NSpin, NSpin,
NSwitch, NSwitch,
@@ -133,30 +138,44 @@ const props = defineProps<{
const localActiveSongs = useStorage('SongRequest.ActiveSongs', [] as SongRequestInfo[]) const localActiveSongs = useStorage('SongRequest.ActiveSongs', [] as SongRequestInfo[])
const originSongs = ref<SongRequestInfo[]>(await getAllSong()) const originSongs = ref<SongRequestInfo[]>(await getAllSong())
const songs = computed(() => { const songs = computed(() => {
const result = originSongs.value.filter((s) => { let result = new List(originSongs.value).Where((s) => {
if (filterName.value) { if (filterName.value) {
if (filterNameContains.value) { if (filterNameContains.value) {
if (!s.user?.name.toLowerCase().includes(filterName.value.toLowerCase())) { if (!s?.user?.name.toLowerCase().includes(filterName.value.toLowerCase())) {
return false return false
} }
} else if (s.user?.name.toLowerCase() !== filterName.value.toLowerCase()) { } else if (s?.user?.name.toLowerCase() !== filterName.value.toLowerCase()) {
return false return false
} }
} else if (filterSongName.value) { } else if (filterSongName.value) {
if (filterSongNameContains.value) { if (filterSongNameContains.value) {
if (!s.songName.toLowerCase().includes(filterSongName.value.toLowerCase())) { if (!s?.songName.toLowerCase().includes(filterSongName.value.toLowerCase())) {
return false return false
} }
} else if (s.songName.toLowerCase() !== filterSongName.value.toLowerCase()) { } else if (s?.songName.toLowerCase() !== filterSongName.value.toLowerCase()) {
return false return false
} }
} }
return true return true
}) })
switch (settings.value.sortType) {
case QueueSortType.TimeFirst: {
result = result.ThenBy((q) => q.createAt)
break
}
case QueueSortType.GuardFirst: {
result = result.OrderBy((q) => q.user?.guard_level).ThenBy((q) => q.createAt)
break
}
case QueueSortType.PaymentFist: {
result = result.OrderByDescending((q) => q.price ?? 0).ThenBy((q) => q.createAt)
}
}
console.log(settings.value.sortType)
if (configCanEdit.value ? settings.value.isReverse : isReverse.value) { if (configCanEdit.value ? settings.value.isReverse : isReverse.value) {
return result.reverse() return result.Reverse().ToArray()
} else { } else {
return result return result.ToArray()
} }
}) })
const activeSongs = computed(() => { const activeSongs = computed(() => {
@@ -400,7 +419,7 @@ async function updateSettings() {
await QueryPostAPI(SONG_REQUEST_API_URL + 'update-setting', settings.value) await QueryPostAPI(SONG_REQUEST_API_URL + 'update-setting', settings.value)
.then((data) => { .then((data) => {
if (data.code == 200) { if (data.code == 200) {
message.success('已保存') //message.success('已保存')
} else { } else {
message.error('保存失败: ' + data.message) message.error('保存失败: ' + data.message)
} }
@@ -490,7 +509,7 @@ const columns = [
title: '来自', title: '来自',
key: 'from', key: 'from',
render(data) { render(data) {
let fromType: 'info' | 'success' | 'default' | 'error' let fromType: 'info' | 'success' | 'default' | 'error' = 'info'
switch (data.from) { switch (data.from) {
case SongRequestFrom.Danmaku: { case SongRequestFrom.Danmaku: {
fromType = 'info' fromType = 'info'
@@ -515,7 +534,10 @@ const columns = [
return '弹幕' return '弹幕'
} }
case SongRequestFrom.SC: { case SongRequestFrom.SC: {
return 'SuperChat | ' + data.scPrice return 'SuperChat | ' + data.price
}
case SongRequestFrom.Gift: {
return '礼物 | ' + data.price
} }
case SongRequestFrom.Manual: { case SongRequestFrom.Manual: {
return '手动添加' return '手动添加'
@@ -815,6 +837,16 @@ onUnmounted(() => {
<NInput placeholder="手动添加" v-model:value="newSongName" /> <NInput placeholder="手动添加" v-model:value="newSongName" />
<NButton type="primary" @click="addSongManual"> 添加 </NButton> <NButton type="primary" @click="addSongManual"> 添加 </NButton>
</NInputGroup> </NInputGroup>
<!-- <NRadioGroup
v-model:value="settings.sortType"
:disabled="!configCanEdit"
@update:value="updateSettings"
type="button"
>
<NRadioButton :value="QueueSortType.TimeFirst"> 加入时间优先 </NRadioButton>
<NRadioButton :value="QueueSortType.PaymentFist"> 付费价格优先 </NRadioButton>
<NRadioButton :value="QueueSortType.GuardFirst"> 舰长优先 (按等级) </NRadioButton>
</NRadioGroup> -->
<NCheckbox v-if="configCanEdit" v-model:checked="settings.isReverse" @update:checked="updateSettings"> <NCheckbox v-if="configCanEdit" v-model:checked="settings.isReverse" @update:checked="updateSettings">
倒序 倒序
</NCheckbox> </NCheckbox>
@@ -893,9 +925,16 @@ onUnmounted(() => {
<NTag <NTag
v-if="song.from == SongRequestFrom.SC" v-if="song.from == SongRequestFrom.SC"
size="small" size="small"
:color="{ textColor: 'white', color: GetSCColor(song.scPrice ?? 0) }" :color="{ textColor: 'white', color: GetSCColor(song.price ?? 0) }"
> >
SC | {{ song.scPrice }} SC | {{ song.price }}
</NTag>
<NTag
v-if="song.from == SongRequestFrom.Gift"
size="small"
:color="{ textColor: 'white', color: GetSCColor(song.price ?? 0) }"
>
Gift | {{ song.price }}
</NTag> </NTag>
<NTooltip> <NTooltip>
<template #trigger> <template #trigger>
@@ -1051,15 +1090,17 @@ onUnmounted(() => {
<NSpin :show="isLoading"> <NSpin :show="isLoading">
<NDivider> 规则 </NDivider> <NDivider> 规则 </NDivider>
<NSpace vertical> <NSpace vertical>
<NInputGroup style="width: 250px"> <NSpace align="center">
<NInputGroupLabel> 点播弹幕前缀 </NInputGroupLabel> <NInputGroup style="width: 250px">
<template v-if="configCanEdit"> <NInputGroupLabel> 点播弹幕前缀 </NInputGroupLabel>
<NInput v-model:value="settings.orderPrefix" /> <template v-if="configCanEdit">
<NButton @click="updateSettings" type="primary">确定</NButton> <NInput v-model:value="settings.orderPrefix" />
</template> <NButton @click="updateSettings" type="primary">确定</NButton>
<NInput v-else v-model:value="defaultPrefix" /> </template>
</NInputGroup> <NInput v-else v-model:value="defaultPrefix" />
</NInputGroup>
<NAlert v-if="settings.orderPrefix.includes(' ')" type="info"> 前缀包含空格 </NAlert>
</NSpace>
<NInputGroup style="width: 250px"> <NInputGroup style="width: 250px">
<NInputGroupLabel> 最大队列长度 </NInputGroupLabel> <NInputGroupLabel> 最大队列长度 </NInputGroupLabel>
<NInputNumber v-model:value="settings.queueMaxSize" :disabled="!configCanEdit" /> <NInputNumber v-model:value="settings.queueMaxSize" :disabled="!configCanEdit" />
@@ -1144,6 +1185,67 @@ onUnmounted(() => {
<NButton @click="updateSettings" type="info" :disabled="!configCanEdit">确定</NButton> <NButton @click="updateSettings" type="info" :disabled="!configCanEdit">确定</NButton>
</NInputGroup> </NInputGroup>
</NSpace> </NSpace>
<!-- <NCheckbox v-model:checked="settings.allowGift" @update:checked="updateSettings" :disabled="!configCanEdit">
允许通过发送礼物加入队列
</NCheckbox>
<NSpace>
<template v-if="settings.allowGift">
<NAlert type="warning"> 赠送礼物后需要再次发送点播弹幕才能够加入 </NAlert>
<NInputGroup v-if="settings.allowGift" style="width: 250px">
<NInputGroupLabel> 最低价格 </NInputGroupLabel>
<NInputNumber v-model:value="settings.minGiftPrice" :disabled="!configCanEdit" />
<NButton @click="updateSettings" type="info" :disabled="!configCanEdit">确定</NButton>
</NInputGroup>
<NSpace align="center">
礼物名
<NSelect
style="width: 250px"
v-model:value="settings.giftNames"
:disabled="!configCanEdit"
filterable
multiple
tag
placeholder="礼物名称,按回车确认"
:show-arrow="false"
:show="false"
@update:value="updateSettings"
/>
</NSpace>
<span>
<NRadioGroup
v-model:value="settings.giftFilterType"
:disabled="!configCanEdit"
@update:value="updateSettings"
>
<NRadioButton :value="QueueGiftFilterType.And"> 需同时满足礼物名和价格 </NRadioButton>
<NRadioButton :value="QueueGiftFilterType.Or"> 礼物名/价格 二选一 </NRadioButton>
</NRadioGroup>
</span>
<NCheckbox
v-model:checked="settings.sendGiftIgnoreLimit"
@update:checked="updateSettings"
:disabled="!configCanEdit"
>
赠送礼物后无视用户等级限制
</NCheckbox>
</template>
<NCheckbox
v-model:checked="settings.allowIncreasePaymentBySendGift"
@update:checked="updateSettings"
:disabled="!configCanEdit"
>
在队列中时允许继续发送礼物累计付费量 (仅限上方设定的礼物)
</NCheckbox>
<NCheckbox
v-if="settings.allowIncreasePaymentBySendGift"
v-model:checked="settings.allowIncreaseByAnyPayment"
@update:checked="updateSettings"
:disabled="!configCanEdit"
>
允许发送任意礼物来叠加付费量
</NCheckbox>
</NSpace> -->
<NDivider> 点歌 </NDivider> <NDivider> 点歌 </NDivider>
<NSpace> <NSpace>
<NCheckbox <NCheckbox

View File

@@ -75,7 +75,7 @@ const accountInfo = useAccount()
</NAlert> </NAlert>
<NDivider> 还有更多 </NDivider> <NDivider> 还有更多 </NDivider>
<NSpace justify="center" align="center" vertical> <NSpace justify="center" align="center" vertical>
动态抽奖视频征集歌单棉花糖日程表... 舰长积分动态抽奖视频征集歌单棉花糖日程表...
<p> <p>
详见 详见
<NButton text tag="a" href="/" target="_blank" type="primary"> VTsuru.live </NButton> <NButton text tag="a" href="/" target="_blank" type="primary"> VTsuru.live </NButton>

View File

@@ -23,6 +23,7 @@ import {
Dismiss16Filled, Dismiss16Filled,
PeopleQueue24Filled, PeopleQueue24Filled,
PresenceBlocked16Regular, PresenceBlocked16Regular,
Info24Filled,
} from '@vicons/fluent' } from '@vicons/fluent'
import { ReloadCircleSharp } from '@vicons/ionicons5' import { ReloadCircleSharp } from '@vicons/ionicons5'
import { useStorage } from '@vueuse/core' import { useStorage } from '@vueuse/core'
@@ -97,6 +98,8 @@ const defaultSettings = {
isReverse: false, isReverse: false,
showFanMadelInfo: true, showFanMadelInfo: true,
showPayment: true, showPayment: true,
sendGiftDirectJoin: true,
sendGiftIgnoreLimit: false,
} as Setting_Queue } as Setting_Queue
const STATUS_MAP = { const STATUS_MAP = {
[QueueStatus.Waiting]: '等待中', [QueueStatus.Waiting]: '等待中',
@@ -1071,7 +1074,7 @@ onUnmounted(() => {
@update:checked="updateSettings" @update:checked="updateSettings"
:disabled="!configCanEdit" :disabled="!configCanEdit"
> >
允许舰长 允许舰长
</NCheckbox> </NCheckbox>
<NCheckbox <NCheckbox
v-if="!settings.allowAllDanmaku" v-if="!settings.allowAllDanmaku"
@@ -1079,7 +1082,7 @@ onUnmounted(() => {
@update:checked="updateSettings" @update:checked="updateSettings"
:disabled="!configCanEdit" :disabled="!configCanEdit"
> >
允许提督 允许提督
</NCheckbox> </NCheckbox>
<NCheckbox <NCheckbox
v-if="!settings.allowAllDanmaku" v-if="!settings.allowAllDanmaku"
@@ -1087,7 +1090,7 @@ onUnmounted(() => {
@update:checked="updateSettings" @update:checked="updateSettings"
:disabled="!configCanEdit" :disabled="!configCanEdit"
> >
允许总督 允许总督
</NCheckbox> </NCheckbox>
</template> </template>
</NSpace> </NSpace>
@@ -1130,6 +1133,27 @@ onUnmounted(() => {
<NRadioButton :value="QueueGiftFilterType.Or"> 礼物名/价格 二选一 </NRadioButton> <NRadioButton :value="QueueGiftFilterType.Or"> 礼物名/价格 二选一 </NRadioButton>
</NRadioGroup> </NRadioGroup>
</span> </span>
<NCheckbox
v-model:checked="settings.sendGiftDirectJoin"
@update:checked="updateSettings"
:disabled="!configCanEdit"
>
赠送礼物后自动加入队列
<NTooltip>
<template #trigger>
<NIcon :component="Info24Filled" />
</template>
否则需要手动再发送一次排队的弹幕
</NTooltip>
</NCheckbox>
<NCheckbox
v-model:checked="settings.sendGiftIgnoreLimit"
@update:checked="updateSettings"
:disabled="!configCanEdit"
>
赠送礼物后无视用户等级限制
</NCheckbox>
</template> </template>
<NCheckbox <NCheckbox
v-model:checked="settings.allowIncreasePaymentBySendGift" v-model:checked="settings.allowIncreasePaymentBySendGift"