mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 08:06:43 +08:00
feat: 添加管理员白名单配置,支持多个通知类型的管理员设置
This commit is contained in:
@@ -915,6 +915,16 @@ onMounted(() => {
|
|||||||
prepend-inner-icon="mdi-pound"
|
prepend-inner-icon="mdi-pound"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
<VCol cols="12" md="6">
|
||||||
|
<VTextField
|
||||||
|
v-model="notificationInfo.config.SLACK_ADMINS"
|
||||||
|
:label="t('notification.slack.admins')"
|
||||||
|
:placeholder="t('notification.slack.adminsPlaceholder')"
|
||||||
|
:hint="t('notification.slack.adminsHint')"
|
||||||
|
persistent-hint
|
||||||
|
prepend-inner-icon="mdi-account-supervisor"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
<VRow v-else-if="notificationInfo.type == 'discord'">
|
<VRow v-else-if="notificationInfo.type == 'discord'">
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
@@ -956,6 +966,16 @@ onMounted(() => {
|
|||||||
prepend-inner-icon="mdi-pound-box"
|
prepend-inner-icon="mdi-pound-box"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
<VCol cols="12" md="6">
|
||||||
|
<VTextField
|
||||||
|
v-model="notificationInfo.config.DISCORD_ADMINS"
|
||||||
|
:label="t('notification.discord.admins')"
|
||||||
|
:placeholder="t('notification.discord.adminsPlaceholder')"
|
||||||
|
:hint="t('notification.discord.adminsHint')"
|
||||||
|
persistent-hint
|
||||||
|
prepend-inner-icon="mdi-account-supervisor"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
<VRow v-else-if="notificationInfo.type == 'synologychat'">
|
<VRow v-else-if="notificationInfo.type == 'synologychat'">
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
@@ -986,6 +1006,16 @@ onMounted(() => {
|
|||||||
prepend-inner-icon="mdi-key"
|
prepend-inner-icon="mdi-key"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
<VCol cols="12" md="6">
|
||||||
|
<VTextField
|
||||||
|
v-model="notificationInfo.config.SYNOLOGYCHAT_ADMINS"
|
||||||
|
:label="t('notification.synologychat.admins')"
|
||||||
|
:placeholder="t('notification.synologychat.adminsPlaceholder')"
|
||||||
|
:hint="t('notification.synologychat.adminsHint')"
|
||||||
|
persistent-hint
|
||||||
|
prepend-inner-icon="mdi-account-supervisor"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
<VRow v-else-if="notificationInfo.type == 'vocechat'">
|
<VRow v-else-if="notificationInfo.type == 'vocechat'">
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
@@ -1026,6 +1056,16 @@ onMounted(() => {
|
|||||||
prepend-inner-icon="mdi-pound"
|
prepend-inner-icon="mdi-pound"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
<VCol cols="12" md="6">
|
||||||
|
<VTextField
|
||||||
|
v-model="notificationInfo.config.VOCECHAT_ADMINS"
|
||||||
|
:label="t('notification.vocechat.admins')"
|
||||||
|
:placeholder="t('notification.vocechat.adminsPlaceholder')"
|
||||||
|
:hint="t('notification.vocechat.adminsHint')"
|
||||||
|
persistent-hint
|
||||||
|
prepend-inner-icon="mdi-account-supervisor"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
<VRow v-else-if="notificationInfo.type == 'qqbot'">
|
<VRow v-else-if="notificationInfo.type == 'qqbot'">
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
@@ -1076,6 +1116,16 @@ onMounted(() => {
|
|||||||
prepend-inner-icon="mdi-account-group"
|
prepend-inner-icon="mdi-account-group"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
<VCol cols="12" md="6">
|
||||||
|
<VTextField
|
||||||
|
v-model="notificationInfo.config.QQBOT_ADMINS"
|
||||||
|
:label="t('notification.qqbot.admins')"
|
||||||
|
:placeholder="t('notification.qqbot.adminsPlaceholder')"
|
||||||
|
:hint="t('notification.qqbot.adminsHint')"
|
||||||
|
persistent-hint
|
||||||
|
prepend-inner-icon="mdi-account-supervisor"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
<VRow v-else-if="notificationInfo.type == 'webpush'">
|
<VRow v-else-if="notificationInfo.type == 'webpush'">
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
|
|||||||
@@ -586,6 +586,9 @@ export default {
|
|||||||
channel: 'Channel Name',
|
channel: 'Channel Name',
|
||||||
channelHint: 'Channel to send messages, default is "all"',
|
channelHint: 'Channel to send messages, default is "all"',
|
||||||
channelRequired: 'Channel Name cannot be empty',
|
channelRequired: 'Channel Name cannot be empty',
|
||||||
|
admins: 'Admin Whitelist',
|
||||||
|
adminsHint: 'User IDs that can use admin menu and commands, separated by commas',
|
||||||
|
adminsPlaceholder: 'User IDs list, separated by commas',
|
||||||
},
|
},
|
||||||
discord: {
|
discord: {
|
||||||
name: 'Discord',
|
name: 'Discord',
|
||||||
@@ -598,6 +601,9 @@ export default {
|
|||||||
channelId: 'Channel ID',
|
channelId: 'Channel ID',
|
||||||
channelIdHint: 'Optional, default broadcast channel; leave blank to auto-pick a writable channel',
|
channelIdHint: 'Optional, default broadcast channel; leave blank to auto-pick a writable channel',
|
||||||
channelIdPlaceholder: '123456789012345678',
|
channelIdPlaceholder: '123456789012345678',
|
||||||
|
admins: 'Admin Whitelist',
|
||||||
|
adminsHint: 'User IDs that can use admin menu and commands, separated by commas',
|
||||||
|
adminsPlaceholder: 'User IDs list, separated by commas',
|
||||||
},
|
},
|
||||||
synologychat: {
|
synologychat: {
|
||||||
name: 'Synology Chat',
|
name: 'Synology Chat',
|
||||||
@@ -606,6 +612,9 @@ export default {
|
|||||||
webhookRequired: 'Webhook URL cannot be empty',
|
webhookRequired: 'Webhook URL cannot be empty',
|
||||||
token: 'Token',
|
token: 'Token',
|
||||||
tokenHint: 'Synology Chat bot token',
|
tokenHint: 'Synology Chat bot token',
|
||||||
|
admins: 'Admin Whitelist',
|
||||||
|
adminsHint: 'User IDs that can use admin menu and commands, separated by commas',
|
||||||
|
adminsPlaceholder: 'User IDs list, separated by commas',
|
||||||
},
|
},
|
||||||
vocechat: {
|
vocechat: {
|
||||||
name: 'VoceChat',
|
name: 'VoceChat',
|
||||||
@@ -617,6 +626,9 @@ export default {
|
|||||||
apiKeyRequired: 'API Key cannot be empty',
|
apiKeyRequired: 'API Key cannot be empty',
|
||||||
channelId: 'Channel ID',
|
channelId: 'Channel ID',
|
||||||
channelIdHint: 'VoceChat channel ID, without #',
|
channelIdHint: 'VoceChat channel ID, without #',
|
||||||
|
admins: 'Admin Whitelist',
|
||||||
|
adminsHint: 'User IDs that can use admin menu and commands, separated by commas',
|
||||||
|
adminsPlaceholder: 'User IDs list, separated by commas',
|
||||||
},
|
},
|
||||||
webpush: {
|
webpush: {
|
||||||
name: 'WebPush',
|
name: 'WebPush',
|
||||||
@@ -638,6 +650,9 @@ export default {
|
|||||||
groupOpenId: 'Group OpenID',
|
groupOpenId: 'Group OpenID',
|
||||||
groupOpenIdHint: 'Default group openid (group chat), use either this or User OpenID',
|
groupOpenIdHint: 'Default group openid (group chat), use either this or User OpenID',
|
||||||
groupOpenIdPlaceholder: 'Group openid',
|
groupOpenIdPlaceholder: 'Group openid',
|
||||||
|
admins: 'Admin Whitelist',
|
||||||
|
adminsHint: 'User IDs that can use admin menu and commands, separated by commas',
|
||||||
|
adminsPlaceholder: 'User IDs list, separated by commas',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
shortcut: {
|
shortcut: {
|
||||||
|
|||||||
@@ -582,6 +582,9 @@ export default {
|
|||||||
channel: '频道名称',
|
channel: '频道名称',
|
||||||
channelHint: '消息发送频道,默认`全体`',
|
channelHint: '消息发送频道,默认`全体`',
|
||||||
channelRequired: '频道名称不能为空',
|
channelRequired: '频道名称不能为空',
|
||||||
|
admins: '管理员白名单',
|
||||||
|
adminsHint: '可使用管理菜单及命令的用户ID列表,多个ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用户ID列表,多个ID使用,分隔',
|
||||||
},
|
},
|
||||||
discord: {
|
discord: {
|
||||||
name: 'Discord',
|
name: 'Discord',
|
||||||
@@ -594,6 +597,9 @@ export default {
|
|||||||
channelId: '频道 ID',
|
channelId: '频道 ID',
|
||||||
channelIdHint: '可选,默认广播频道;为空则自动选择可发送消息的频道',
|
channelIdHint: '可选,默认广播频道;为空则自动选择可发送消息的频道',
|
||||||
channelIdPlaceholder: '123456789012345678',
|
channelIdPlaceholder: '123456789012345678',
|
||||||
|
admins: '管理员白名单',
|
||||||
|
adminsHint: '可使用管理菜单及命令的用户ID列表,多个ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用户ID列表,多个ID使用,分隔',
|
||||||
},
|
},
|
||||||
synologychat: {
|
synologychat: {
|
||||||
name: 'Synology Chat',
|
name: 'Synology Chat',
|
||||||
@@ -602,6 +608,9 @@ export default {
|
|||||||
webhookRequired: 'Webhook URL不能为空',
|
webhookRequired: 'Webhook URL不能为空',
|
||||||
token: '令牌',
|
token: '令牌',
|
||||||
tokenHint: 'Synology Chat机器人令牌',
|
tokenHint: 'Synology Chat机器人令牌',
|
||||||
|
admins: '管理员白名单',
|
||||||
|
adminsHint: '可使用管理菜单及命令的用户ID列表,多个ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用户ID列表,多个ID使用,分隔',
|
||||||
},
|
},
|
||||||
vocechat: {
|
vocechat: {
|
||||||
name: 'VoceChat',
|
name: 'VoceChat',
|
||||||
@@ -613,6 +622,9 @@ export default {
|
|||||||
apiKeyRequired: 'API密钥不能为空',
|
apiKeyRequired: 'API密钥不能为空',
|
||||||
channelId: '频道ID',
|
channelId: '频道ID',
|
||||||
channelIdHint: 'VoceChat的频道ID,不包含#号',
|
channelIdHint: 'VoceChat的频道ID,不包含#号',
|
||||||
|
admins: '管理员白名单',
|
||||||
|
adminsHint: '可使用管理菜单及命令的用户ID列表,多个ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用户ID列表,多个ID使用,分隔',
|
||||||
},
|
},
|
||||||
webpush: {
|
webpush: {
|
||||||
name: 'WebPush',
|
name: 'WebPush',
|
||||||
@@ -634,6 +646,9 @@ export default {
|
|||||||
groupOpenId: '群组 OpenID',
|
groupOpenId: '群组 OpenID',
|
||||||
groupOpenIdHint: '默认群组 openid(群聊),与用户 OpenID 二选一',
|
groupOpenIdHint: '默认群组 openid(群聊),与用户 OpenID 二选一',
|
||||||
groupOpenIdPlaceholder: '群组 openid',
|
groupOpenIdPlaceholder: '群组 openid',
|
||||||
|
admins: '管理员白名单',
|
||||||
|
adminsHint: '可使用管理菜单及命令的用户ID列表,多个ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用户ID列表,多个ID使用,分隔',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
shortcut: {
|
shortcut: {
|
||||||
|
|||||||
@@ -582,6 +582,9 @@ export default {
|
|||||||
channel: '頻道名稱',
|
channel: '頻道名稱',
|
||||||
channelHint: '消息發送頻道,默認`全體`',
|
channelHint: '消息發送頻道,默認`全體`',
|
||||||
channelRequired: '頻道名稱不能為空',
|
channelRequired: '頻道名稱不能為空',
|
||||||
|
admins: '管理員白名單',
|
||||||
|
adminsHint: '可使用管理菜單及命令的用戶ID列表,多個ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用戶ID列表,多個ID使用,分隔',
|
||||||
},
|
},
|
||||||
discord: {
|
discord: {
|
||||||
name: 'Discord',
|
name: 'Discord',
|
||||||
@@ -594,6 +597,9 @@ export default {
|
|||||||
channelId: '頻道 ID',
|
channelId: '頻道 ID',
|
||||||
channelIdHint: '可選,預設廣播頻道;空白則自動選擇可發送消息的頻道',
|
channelIdHint: '可選,預設廣播頻道;空白則自動選擇可發送消息的頻道',
|
||||||
channelIdPlaceholder: '123456789012345678',
|
channelIdPlaceholder: '123456789012345678',
|
||||||
|
admins: '管理員白名單',
|
||||||
|
adminsHint: '可使用管理菜單及命令的用戶ID列表,多個ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用戶ID列表,多個ID使用,分隔',
|
||||||
},
|
},
|
||||||
synologychat: {
|
synologychat: {
|
||||||
name: 'Synology Chat',
|
name: 'Synology Chat',
|
||||||
@@ -602,6 +608,9 @@ export default {
|
|||||||
webhookRequired: 'Webhook URL不能為空',
|
webhookRequired: 'Webhook URL不能為空',
|
||||||
token: '令牌',
|
token: '令牌',
|
||||||
tokenHint: 'Synology Chat機器人令牌',
|
tokenHint: 'Synology Chat機器人令牌',
|
||||||
|
admins: '管理員白名單',
|
||||||
|
adminsHint: '可使用管理菜單及命令的用戶ID列表,多個ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用戶ID列表,多個ID使用,分隔',
|
||||||
},
|
},
|
||||||
vocechat: {
|
vocechat: {
|
||||||
name: 'VoceChat',
|
name: 'VoceChat',
|
||||||
@@ -613,6 +622,9 @@ export default {
|
|||||||
apiKeyRequired: 'API密鑰不能為空',
|
apiKeyRequired: 'API密鑰不能為空',
|
||||||
channelId: '頻道ID',
|
channelId: '頻道ID',
|
||||||
channelIdHint: 'VoceChat的頻道ID,不包含#號',
|
channelIdHint: 'VoceChat的頻道ID,不包含#號',
|
||||||
|
admins: '管理員白名單',
|
||||||
|
adminsHint: '可使用管理菜單及命令的用戶ID列表,多個ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用戶ID列表,多個ID使用,分隔',
|
||||||
},
|
},
|
||||||
webpush: {
|
webpush: {
|
||||||
name: 'WebPush',
|
name: 'WebPush',
|
||||||
@@ -634,6 +646,9 @@ export default {
|
|||||||
groupOpenId: '群組 OpenID',
|
groupOpenId: '群組 OpenID',
|
||||||
groupOpenIdHint: '默認群組 openid(群聊),與用戶 OpenID 二選一',
|
groupOpenIdHint: '默認群組 openid(群聊),與用戶 OpenID 二選一',
|
||||||
groupOpenIdPlaceholder: '群組 openid',
|
groupOpenIdPlaceholder: '群組 openid',
|
||||||
|
admins: '管理員白名單',
|
||||||
|
adminsHint: '可使用管理菜單及命令的用戶ID列表,多個ID使用,分隔',
|
||||||
|
adminsPlaceholder: '用戶ID列表,多個ID使用,分隔',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
shortcut: {
|
shortcut: {
|
||||||
|
|||||||
Reference in New Issue
Block a user