mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
song request add setting options
This commit is contained in:
@@ -114,6 +114,9 @@ export interface Setting_SongRequest {
|
|||||||
jianzhangCooldownSecond: number
|
jianzhangCooldownSecond: number
|
||||||
|
|
||||||
showRequireInfo: boolean
|
showRequireInfo: boolean
|
||||||
|
showUserName: boolean
|
||||||
|
showFanMadelInfo: boolean
|
||||||
|
|
||||||
isReverse: boolean
|
isReverse: boolean
|
||||||
}
|
}
|
||||||
export interface Setting_Queue {
|
export interface Setting_Queue {
|
||||||
|
|||||||
@@ -122,8 +122,8 @@ onUnmounted(() => {
|
|||||||
<div class="song-request-list-item-song-name">
|
<div class="song-request-list-item-song-name">
|
||||||
{{ song.songName }}
|
{{ song.songName }}
|
||||||
</div>
|
</div>
|
||||||
<p class="song-request-list-item-name">{{ song.from == SongRequestFrom.Manual ? '主播添加' : song.user?.name }}</p>
|
<p v-if="settings.showUserName" class="song-request-list-item-name">{{ song.from == SongRequestFrom.Manual ? '主播添加' : song.user?.name }}</p>
|
||||||
<div class="song-request-list-item-level" :has-level="(song.user?.fans_medal_level ?? 0) > 0">
|
<div v-if="settings.showFanMadelInfo" class="song-request-list-item-level" :has-level="(song.user?.fans_medal_level ?? 0) > 0">
|
||||||
{{ `${song.user?.fans_medal_name} ${song.user?.fans_medal_level}` }}
|
{{ `${song.user?.fans_medal_name} ${song.user?.fans_medal_level}` }}
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -362,7 +362,7 @@ function checkMessage(msg: string) {
|
|||||||
return msg
|
return msg
|
||||||
.trim()
|
.trim()
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.startsWith(accountInfo.value ? settings.value.orderPrefix : defaultPrefix.value)
|
.startsWith(accountInfo.value ? settings.value.orderPrefix.toLowerCase() : defaultPrefix.value)
|
||||||
}
|
}
|
||||||
async function onUpdateFunctionEnable() {
|
async function onUpdateFunctionEnable() {
|
||||||
if (accountInfo.value) {
|
if (accountInfo.value) {
|
||||||
@@ -1039,7 +1039,11 @@ onUnmounted(() => {
|
|||||||
</NInputGroup>
|
</NInputGroup>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
<NDivider> OBS </NDivider>
|
<NDivider> OBS </NDivider>
|
||||||
<NCheckbox v-model:checked="settings.showRequireInfo" :disabled="!configCanEdit" @update:checked="updateSettings"> 显示底部的需求信息 </NCheckbox>
|
<NSpace>
|
||||||
|
<NCheckbox v-model:checked="settings.showRequireInfo" :disabled="!configCanEdit" @update:checked="updateSettings"> 显示底部的需求信息 </NCheckbox>
|
||||||
|
<NCheckbox v-model:checked="settings.showUserName" :disabled="!configCanEdit" @update:checked="updateSettings"> 显示点歌用户名 </NCheckbox>
|
||||||
|
<NCheckbox v-model:checked="settings.showFanMadelInfo" :disabled="!configCanEdit" @update:checked="updateSettings"> 显示点歌用户粉丝牌 </NCheckbox>
|
||||||
|
</NSpace>
|
||||||
<NDivider> 其他 </NDivider>
|
<NDivider> 其他 </NDivider>
|
||||||
<NCheckbox v-model:checked="isWarnMessageAutoClose"> 自动关闭点歌失败时的提示消息 </NCheckbox>
|
<NCheckbox v-model:checked="isWarnMessageAutoClose"> 自动关闭点歌失败时的提示消息 </NCheckbox>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
|
|||||||
Reference in New Issue
Block a user