From 4c46685d1fc711030e24ac6ee1a971d5b9c84f5c Mon Sep 17 00:00:00 2001 From: admin <362324317@qq.com> Date: Sun, 17 May 2026 19:29:05 +0800 Subject: [PATCH] =?UTF-8?q?v0.3.30:=20=E6=B8=85=E7=90=86notifier=E5=8F=82?= =?UTF-8?q?=E6=95=B0=20=E2=80=94=20=E7=A7=BB=E9=99=A4title/content/level/p?= =?UTF-8?q?riority=EF=BC=8C=E6=A0=87=E9=A2=98=E5=86=85=E5=AE=B9=E7=94=B1?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=A8=A1=E6=9D=BF=E7=BB=9F=E4=B8=80=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- source_clean/VERSION | 2 +- source_clean/src/cloud/notifiers/bark.notifier.ts | 5 +---- source_clean/src/cloud/notifiers/dingtalk.notifier.ts | 5 +---- source_clean/src/cloud/notifiers/discord.notifier.ts | 5 +---- source_clean/src/cloud/notifiers/gotify.notifier.ts | 5 +---- source_clean/src/cloud/notifiers/lark.notifier.ts | 7 ++----- source_clean/src/cloud/notifiers/ntfy.notifier.ts | 5 +---- source_clean/src/cloud/notifiers/pushplus.notifier.ts | 4 +--- source_clean/src/cloud/notifiers/qmsg.notifier.ts | 4 +--- source_clean/src/cloud/notifiers/serverchan.notifier.ts | 4 +--- .../src/cloud/notifiers/serverchanturbo.notifier.ts | 4 +--- source_clean/src/cloud/notifiers/smtp.notifier.ts | 4 +--- source_clean/src/cloud/notifiers/telegram.notifier.ts | 5 +---- source_clean/src/cloud/notifiers/webhook.notifier.ts | 5 +---- .../src/cloud/notifiers/wechat_work_bot.notifier.ts | 5 +---- 16 files changed, 17 insertions(+), 54 deletions(-) diff --git a/VERSION b/VERSION index a6c8cf7..cfa5015 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.29 +0.3.30 diff --git a/source_clean/VERSION b/source_clean/VERSION index 88dbf46..cfa5015 100644 --- a/source_clean/VERSION +++ b/source_clean/VERSION @@ -1 +1 @@ -0.3.25 +0.3.30 diff --git a/source_clean/src/cloud/notifiers/bark.notifier.ts b/source_clean/src/cloud/notifiers/bark.notifier.ts index 00280c2..6e02912 100644 --- a/source_clean/src/cloud/notifiers/bark.notifier.ts +++ b/source_clean/src/cloud/notifiers/bark.notifier.ts @@ -2,10 +2,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier. const params: NotifierParam[] = [ { key: 'key', label: 'Bark Key', type: 'text', required: true, placeholder: 'xxxxxxxxxxxxxxxxx' }, - { key: 'server', label: '服务器', type: 'url', default: 'https://api.day.app', required: false, placeholder: 'https://api.day.app' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch 通知', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, - { key: 'level', label: '级别', type: 'text', default: 'info', required: false }, + { key: 'server', label: '服务器', type: 'url', default: 'https://api.day.app', required: false, placeholder: 'https://api.day.app' } ]; export const barkNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/dingtalk.notifier.ts b/source_clean/src/cloud/notifiers/dingtalk.notifier.ts index 771cda6..e5ba824 100644 --- a/source_clean/src/cloud/notifiers/dingtalk.notifier.ts +++ b/source_clean/src/cloud/notifiers/dingtalk.notifier.ts @@ -1,10 +1,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier.types'; const params: NotifierParam[] = [ -{ key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://oapi.dingtalk.com/robot/send?access_token=xxx' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, - { key: 'level', label: '级别', type: 'text', default: 'info', required: false }, +{ key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://oapi.dingtalk.com/robot/send?access_token=xxx' } ]; export const dingtalkNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/discord.notifier.ts b/source_clean/src/cloud/notifiers/discord.notifier.ts index ba3f94e..d326ed4 100644 --- a/source_clean/src/cloud/notifiers/discord.notifier.ts +++ b/source_clean/src/cloud/notifiers/discord.notifier.ts @@ -1,10 +1,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier.types'; const params: NotifierParam[] = [ -{ key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://discord.com/api/webhooks/...' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, - { key: 'level', label: '级别', type: 'text', default: 'info', required: false }, +{ key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://discord.com/api/webhooks/...' } ]; export const discordNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/gotify.notifier.ts b/source_clean/src/cloud/notifiers/gotify.notifier.ts index fd50ea1..c5e816f 100644 --- a/source_clean/src/cloud/notifiers/gotify.notifier.ts +++ b/source_clean/src/cloud/notifiers/gotify.notifier.ts @@ -2,10 +2,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier. const params: NotifierParam[] = [ { key: 'server', label: '服务器地址', type: 'url', required: true, placeholder: 'https://gotify.example.com' }, - { key: 'token', label: 'App Token', type: 'password', required: true, placeholder: 'Gotify App Token' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, - { key: 'priority', label: '优先级', type: 'text', default: 5, required: false }, + { key: 'token', label: 'App Token', type: 'password', required: true, placeholder: 'Gotify App Token' } ]; export const gotifyNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/lark.notifier.ts b/source_clean/src/cloud/notifiers/lark.notifier.ts index b410a7d..3fba5fb 100644 --- a/source_clean/src/cloud/notifiers/lark.notifier.ts +++ b/source_clean/src/cloud/notifiers/lark.notifier.ts @@ -1,10 +1,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier.types'; const params: NotifierParam[] = [ - { key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://open.feishu.cn/open-apis/bot/v2/hook/xxx' }, - { key: 'title', label: '\u6807\u9898', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '\u5185\u5bb9', type: 'text', required: true }, - { key: 'level', label: '\u7ea7\u522b', type: 'text', default: 'info', required: false }, + { key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://open.feishu.cn/open-apis/bot/v2/hook/xxx' } ]; export const larkNotifier: Notifier = { @@ -24,7 +21,7 @@ export const larkNotifier: Notifier = { header: { title: { tag: 'plain_text', content: p.title || 'CloudSearch' }, template }, elements: [ { tag: 'div', text: { tag: 'lark_md', content: p.content || '' } }, - { tag: 'note', elements: [{ tag: 'plain_text', content: 'CloudSearch \u00b7 ' + new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' }) }] }, + { tag: 'note', elements: [{ tag: 'plain_text', content: 'CloudSearch \u00b7 ' + new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' }) }] } ], }, }), diff --git a/source_clean/src/cloud/notifiers/ntfy.notifier.ts b/source_clean/src/cloud/notifiers/ntfy.notifier.ts index f9c764e..938fcfa 100644 --- a/source_clean/src/cloud/notifiers/ntfy.notifier.ts +++ b/source_clean/src/cloud/notifiers/ntfy.notifier.ts @@ -2,10 +2,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier. const params: NotifierParam[] = [ { key: 'topic', label: 'Topic', type: 'text', required: true, placeholder: 'my-notification-topic' }, - { key: 'server', label: '服务器', type: 'url', default: 'https://ntfy.sh', required: false, placeholder: 'https://ntfy.sh' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, - { key: 'priority', label: '优先级(1-5)', type: 'text', default: 3, required: false }, + { key: 'server', label: '服务器', type: 'url', default: 'https://ntfy.sh', required: false, placeholder: 'https://ntfy.sh' } ]; export const ntfyNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/pushplus.notifier.ts b/source_clean/src/cloud/notifiers/pushplus.notifier.ts index 5b2fb83..6866dfe 100644 --- a/source_clean/src/cloud/notifiers/pushplus.notifier.ts +++ b/source_clean/src/cloud/notifiers/pushplus.notifier.ts @@ -1,9 +1,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier.types'; const params: NotifierParam[] = [ -{ key: 'token', label: 'Token', type: 'password', required: true, placeholder: 'pushplus token' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, +{ key: 'token', label: 'Token', type: 'password', required: true, placeholder: 'pushplus token' } ]; export const pushplusNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/qmsg.notifier.ts b/source_clean/src/cloud/notifiers/qmsg.notifier.ts index 0a357f5..6c6d4b5 100644 --- a/source_clean/src/cloud/notifiers/qmsg.notifier.ts +++ b/source_clean/src/cloud/notifiers/qmsg.notifier.ts @@ -2,9 +2,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier. const params: NotifierParam[] = [ { key: 'key', label: 'API Key', type: 'password', required: true, placeholder: 'Qmsg API Key' }, - { key: 'qq', label: 'QQ 号', type: 'text', required: false, placeholder: '留空则推送到所有绑定QQ' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, + { key: 'qq', label: 'QQ 号', type: 'text', required: false, placeholder: '留空则推送到所有绑定QQ' } ]; export const qmsgNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/serverchan.notifier.ts b/source_clean/src/cloud/notifiers/serverchan.notifier.ts index 4e0c914..4aa051a 100644 --- a/source_clean/src/cloud/notifiers/serverchan.notifier.ts +++ b/source_clean/src/cloud/notifiers/serverchan.notifier.ts @@ -1,9 +1,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier.types'; const params: NotifierParam[] = [ -{ key: 'sendkey', label: 'SendKey', type: 'password', required: true, placeholder: 'Server酱 SendKey' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, +{ key: 'sendkey', label: 'SendKey', type: 'password', required: true, placeholder: 'Server酱 SendKey' } ]; export const serverchanNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/serverchanturbo.notifier.ts b/source_clean/src/cloud/notifiers/serverchanturbo.notifier.ts index 5566663..2c98970 100644 --- a/source_clean/src/cloud/notifiers/serverchanturbo.notifier.ts +++ b/source_clean/src/cloud/notifiers/serverchanturbo.notifier.ts @@ -1,9 +1,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier.types'; const params: NotifierParam[] = [ -{ key: 'sendkey', label: 'SendKey', type: 'password', required: true, placeholder: 'Server酱 Turbo SendKey' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, +{ key: 'sendkey', label: 'SendKey', type: 'password', required: true, placeholder: 'Server酱 Turbo SendKey' } ]; export const serverchanturboNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/smtp.notifier.ts b/source_clean/src/cloud/notifiers/smtp.notifier.ts index 1ed61b9..d3adf81 100644 --- a/source_clean/src/cloud/notifiers/smtp.notifier.ts +++ b/source_clean/src/cloud/notifiers/smtp.notifier.ts @@ -7,9 +7,7 @@ const params: NotifierParam[] = [ { key: 'user', label: '用户名', type: 'text', required: true, placeholder: 'user@example.com' }, { key: 'pass', label: '密码/授权码', type: 'password', required: true, placeholder: 'SMTP 授权码' }, { key: 'from', label: '发件人', type: 'text', required: true, placeholder: 'sender@example.com' }, - { key: 'to', label: '收件人', type: 'text', required: true, placeholder: 'receiver@example.com' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, + { key: 'to', label: '收件人', type: 'text', required: true, placeholder: 'receiver@example.com' } ]; export const smtpNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/telegram.notifier.ts b/source_clean/src/cloud/notifiers/telegram.notifier.ts index 9fcd2fb..7a765e0 100644 --- a/source_clean/src/cloud/notifiers/telegram.notifier.ts +++ b/source_clean/src/cloud/notifiers/telegram.notifier.ts @@ -2,10 +2,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier. const params: NotifierParam[] = [ { key: 'token', label: 'Bot Token', type: 'password', required: true, placeholder: '123456:ABC-def' }, - { key: 'chat_id', label: 'Chat ID', type: 'text', required: true, placeholder: '@频道 或 -1001234567890' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, - { key: 'level', label: '级别', type: 'text', default: 'info', required: false }, + { key: 'chat_id', label: 'Chat ID', type: 'text', required: true, placeholder: '@频道 或 -1001234567890' } ]; export const telegramNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/webhook.notifier.ts b/source_clean/src/cloud/notifiers/webhook.notifier.ts index 5cbeca6..fc0860c 100644 --- a/source_clean/src/cloud/notifiers/webhook.notifier.ts +++ b/source_clean/src/cloud/notifiers/webhook.notifier.ts @@ -1,10 +1,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier.types'; const params: NotifierParam[] = [ - { key: 'url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://example.com/webhook' }, - { key: 'title', label: '\u6807\u9898', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '\u5185\u5bb9', type: 'text', required: true }, - { key: 'level', label: '\u7ea7\u522b', type: 'text', default: 'info', required: false }, + { key: 'url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://example.com/webhook' } ]; export const webhookNotifier: Notifier = { diff --git a/source_clean/src/cloud/notifiers/wechat_work_bot.notifier.ts b/source_clean/src/cloud/notifiers/wechat_work_bot.notifier.ts index aac2ef5..c41586d 100644 --- a/source_clean/src/cloud/notifiers/wechat_work_bot.notifier.ts +++ b/source_clean/src/cloud/notifiers/wechat_work_bot.notifier.ts @@ -1,10 +1,7 @@ import { Notifier, NotifyParams, NotifyResult, NotifierParam } from './notifier.types'; const params: NotifierParam[] = [ -{ key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx' }, - { key: 'title', label: '标题', type: 'text', default: 'CloudSearch', required: false }, - { key: 'content', label: '内容', type: 'text', required: true }, - { key: 'level', label: '级别', type: 'text', default: 'info', required: false }, +{ key: 'webhook_url', label: 'Webhook URL', type: 'url', required: true, placeholder: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx' } ]; export const wechatWorkBotNotifier: Notifier = {