mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
feat:add VoceChat
This commit is contained in:
@@ -904,6 +904,7 @@ export interface NotificationSwitch {
|
|||||||
telegram: boolean
|
telegram: boolean
|
||||||
slack: boolean
|
slack: boolean
|
||||||
synologychat: boolean
|
synologychat: boolean
|
||||||
|
vocechat: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
// 环境设置
|
// 环境设置
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ const notificationSettings = ref({
|
|||||||
SLACK_CHANNEL: '',
|
SLACK_CHANNEL: '',
|
||||||
SYNOLOGYCHAT_WEBHOOK: '',
|
SYNOLOGYCHAT_WEBHOOK: '',
|
||||||
SYNOLOGYCHAT_TOKEN: '',
|
SYNOLOGYCHAT_TOKEN: '',
|
||||||
|
VOCECHAT_HOST: '',
|
||||||
|
VOCECHAT_API_KEY: '',
|
||||||
|
VOCECHAT_CHANNEL_ID: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
// 消息渠道
|
// 消息渠道
|
||||||
@@ -49,6 +52,10 @@ const NotificationChannels = [
|
|||||||
title: 'SynologyChat',
|
title: 'SynologyChat',
|
||||||
value: 'synologychat',
|
value: 'synologychat',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'VoceChat',
|
||||||
|
value: 'vocechat',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
// 提示框
|
// 提示框
|
||||||
@@ -110,6 +117,9 @@ async function loadNotificationSettings() {
|
|||||||
SLACK_CHANNEL,
|
SLACK_CHANNEL,
|
||||||
SYNOLOGYCHAT_WEBHOOK,
|
SYNOLOGYCHAT_WEBHOOK,
|
||||||
SYNOLOGYCHAT_TOKEN,
|
SYNOLOGYCHAT_TOKEN,
|
||||||
|
VOCECHAT_HOST,
|
||||||
|
VOCECHAT_API_KEY,
|
||||||
|
VOCECHAT_CHANNEL_ID,
|
||||||
} = result2.data
|
} = result2.data
|
||||||
notificationSettings.value = {
|
notificationSettings.value = {
|
||||||
WECHAT_CORPID,
|
WECHAT_CORPID,
|
||||||
@@ -128,6 +138,9 @@ async function loadNotificationSettings() {
|
|||||||
SLACK_CHANNEL,
|
SLACK_CHANNEL,
|
||||||
SYNOLOGYCHAT_WEBHOOK,
|
SYNOLOGYCHAT_WEBHOOK,
|
||||||
SYNOLOGYCHAT_TOKEN,
|
SYNOLOGYCHAT_TOKEN,
|
||||||
|
VOCECHAT_HOST,
|
||||||
|
VOCECHAT_API_KEY,
|
||||||
|
VOCECHAT_CHANNEL_ID,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -217,6 +230,9 @@ onMounted(() => {
|
|||||||
<VTab value="synologychat">
|
<VTab value="synologychat">
|
||||||
SynologyChat
|
SynologyChat
|
||||||
</VTab>
|
</VTab>
|
||||||
|
<VTab value="vocechat">
|
||||||
|
VoceChat
|
||||||
|
</VTab>
|
||||||
</VTabs>
|
</VTabs>
|
||||||
<VWindow
|
<VWindow
|
||||||
v-model="messagerTab"
|
v-model="messagerTab"
|
||||||
@@ -347,6 +363,31 @@ onMounted(() => {
|
|||||||
</VRow>
|
</VRow>
|
||||||
</VForm>
|
</VForm>
|
||||||
</VWindowItem>
|
</VWindowItem>
|
||||||
|
<VWindowItem value="vocechat">
|
||||||
|
<VForm>
|
||||||
|
<VRow>
|
||||||
|
<VCol cols="12" md="4">
|
||||||
|
<VTextField
|
||||||
|
v-model="notificationSettings.VOCECHAT_HOST"
|
||||||
|
label="地址"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
|
<VCol cols="12" md="4">
|
||||||
|
<VTextField
|
||||||
|
v-model="notificationSettings.VOCECHAT_API_KEY"
|
||||||
|
label="机器人密钥"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
|
<VCol cols="12" md="4">
|
||||||
|
<VTextField
|
||||||
|
v-model="notificationSettings.VOCECHAT_CHANNEL_ID"
|
||||||
|
label="频道ID"
|
||||||
|
placeholder="不包含#号"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
|
</VRow>
|
||||||
|
</VForm>
|
||||||
|
</VWindowItem>
|
||||||
</VWindow>
|
</VWindow>
|
||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
@@ -389,6 +430,9 @@ onMounted(() => {
|
|||||||
<th scope="col">
|
<th scope="col">
|
||||||
SynologyChat
|
SynologyChat
|
||||||
</th>
|
</th>
|
||||||
|
<th scope="col">
|
||||||
|
VoceChat
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -411,10 +455,13 @@ onMounted(() => {
|
|||||||
<td>
|
<td>
|
||||||
<VCheckbox v-model="message.synologychat" />
|
<VCheckbox v-model="message.synologychat" />
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<VCheckbox v-model="message.vocechat" />
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-if="messagemTypes.length === 0">
|
<tr v-if="messagemTypes.length === 0">
|
||||||
<td
|
<td
|
||||||
colspan="5"
|
colspan="6"
|
||||||
class="text-center"
|
class="text-center"
|
||||||
>
|
>
|
||||||
没有设置任何通知渠道
|
没有设置任何通知渠道
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ const modules = ref([
|
|||||||
{ id: 'TelegramModule', name: 'Telegram', state: '', errmsg: '' },
|
{ id: 'TelegramModule', name: 'Telegram', state: '', errmsg: '' },
|
||||||
{ id: 'SlackModule', name: 'Slack', state: '', errmsg: '' },
|
{ id: 'SlackModule', name: 'Slack', state: '', errmsg: '' },
|
||||||
{ id: 'SynologyChatModule', name: 'Synology Chat', state: '', errmsg: '' },
|
{ id: 'SynologyChatModule', name: 'Synology Chat', state: '', errmsg: '' },
|
||||||
|
{ id: 'VoceChatModule', name: 'VoceChat', state: '', errmsg: '' },
|
||||||
{ id: 'IndexerModule', name: '站点索引', state: '', errmsg: '' },
|
{ id: 'IndexerModule', name: '站点索引', state: '', errmsg: '' },
|
||||||
{ id: 'QbittorrentModule', name: 'Qbittorrent', state: '', errmsg: '' },
|
{ id: 'QbittorrentModule', name: 'Qbittorrent', state: '', errmsg: '' },
|
||||||
{ id: 'TransmissionModule', name: 'Transmission', state: '', errmsg: '' },
|
{ id: 'TransmissionModule', name: 'Transmission', state: '', errmsg: '' },
|
||||||
|
|||||||
Reference in New Issue
Block a user