增加gotify推送 (#905)

* 增加gotify推送
This commit is contained in:
kilo5hz
2021-11-15 23:04:55 +08:00
committed by GitHub
parent d0f7449b57
commit 68cc792d6c
3 changed files with 92 additions and 4 deletions
+10
View File
@@ -64,6 +64,7 @@ export default {
logs: '任务日志',
},
notificationModes: [
{ value: 'gotify', label: 'Gotify' },
{ value: 'goCqHttpBot', label: 'GoCqHttpBot' },
{ value: 'serverChan', label: 'Server酱' },
{ value: 'bark', label: 'Bark' },
@@ -77,6 +78,15 @@ export default {
{ value: 'closed', label: '已关闭' },
],
notificationModeMap: {
gotify: [
{
label: 'gotifyUrl',
tip: 'gotify的url地址,例如 https://push.example.de:8080',
required: true,
},
{ label: 'gotifyToken', tip: 'gotify的消息应用token码', required: true },
{ label: 'gotifyPriority', tip: '推送消息的优先级' },
],
goCqHttpBot: [
{
label: 'goCqHttpBotUrl',