diff --git a/src/api/types.ts b/src/api/types.ts index 10e75a1b..c8b0f47e 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -904,6 +904,7 @@ export interface NotificationSwitch { telegram: boolean slack: boolean synologychat: boolean + vocechat: boolean } // 环境设置 diff --git a/src/views/setting/AccountSettingNotification.vue b/src/views/setting/AccountSettingNotification.vue index 7de78891..941ae139 100644 --- a/src/views/setting/AccountSettingNotification.vue +++ b/src/views/setting/AccountSettingNotification.vue @@ -29,6 +29,9 @@ const notificationSettings = ref({ SLACK_CHANNEL: '', SYNOLOGYCHAT_WEBHOOK: '', SYNOLOGYCHAT_TOKEN: '', + VOCECHAT_HOST: '', + VOCECHAT_API_KEY: '', + VOCECHAT_CHANNEL_ID: '', }) // 消息渠道 @@ -49,6 +52,10 @@ const NotificationChannels = [ title: 'SynologyChat', value: 'synologychat', }, + { + title: 'VoceChat', + value: 'vocechat', + }, ] // 提示框 @@ -110,6 +117,9 @@ async function loadNotificationSettings() { SLACK_CHANNEL, SYNOLOGYCHAT_WEBHOOK, SYNOLOGYCHAT_TOKEN, + VOCECHAT_HOST, + VOCECHAT_API_KEY, + VOCECHAT_CHANNEL_ID, } = result2.data notificationSettings.value = { WECHAT_CORPID, @@ -128,6 +138,9 @@ async function loadNotificationSettings() { SLACK_CHANNEL, SYNOLOGYCHAT_WEBHOOK, SYNOLOGYCHAT_TOKEN, + VOCECHAT_HOST, + VOCECHAT_API_KEY, + VOCECHAT_CHANNEL_ID, } } } @@ -217,6 +230,9 @@ onMounted(() => { SynologyChat + + VoceChat + { + + + + + + + + + + + + + + + @@ -389,6 +430,9 @@ onMounted(() => { SynologyChat + + VoceChat + @@ -411,10 +455,13 @@ onMounted(() => { + + + 没有设置任何通知渠道 diff --git a/src/views/system/ModuleTestView.vue b/src/views/system/ModuleTestView.vue index 0e83e12a..38f8523b 100644 --- a/src/views/system/ModuleTestView.vue +++ b/src/views/system/ModuleTestView.vue @@ -14,6 +14,7 @@ const modules = ref([ { id: 'TelegramModule', name: 'Telegram', state: '', errmsg: '' }, { id: 'SlackModule', name: 'Slack', state: '', errmsg: '' }, { id: 'SynologyChatModule', name: 'Synology Chat', state: '', errmsg: '' }, + { id: 'VoceChatModule', name: 'VoceChat', state: '', errmsg: '' }, { id: 'IndexerModule', name: '站点索引', state: '', errmsg: '' }, { id: 'QbittorrentModule', name: 'Qbittorrent', state: '', errmsg: '' }, { id: 'TransmissionModule', name: 'Transmission', state: '', errmsg: '' },