feat: webhook general template

This commit is contained in:
Fu Diwei 2025-04-28 10:52:58 +08:00
parent 18a19096d3
commit 92c93822b9
3 changed files with 3 additions and 1 deletions

View File

@ -321,7 +321,7 @@ const AccessFormWebhookConfig = ({ form: formInst, formName, disabled, initialVa
<div className="text-right"> <div className="text-right">
<Dropdown <Dropdown
menu={{ menu={{
items: ["bark", "ntfy", "gotify", "pushover", "pushplus", "serverchan"].map((key) => ({ items: ["bark", "ntfy", "gotify", "pushover", "pushplus", "serverchan", "common"].map((key) => ({
key, key,
label: t(`access.form.webhook_preset_data.option.${key}.label`), label: t(`access.form.webhook_preset_data.option.${key}.label`),
onClick: () => handlePresetDataForNotificationClick(key), onClick: () => handlePresetDataForNotificationClick(key),

View File

@ -369,6 +369,7 @@
"access.form.webhook_preset_data.option.pushover.label": "Pushover", "access.form.webhook_preset_data.option.pushover.label": "Pushover",
"access.form.webhook_preset_data.option.pushplus.label": "PushPlus", "access.form.webhook_preset_data.option.pushplus.label": "PushPlus",
"access.form.webhook_preset_data.option.serverchan.label": "ServerChan", "access.form.webhook_preset_data.option.serverchan.label": "ServerChan",
"access.form.webhook_preset_data.option.common.label": "General template",
"access.form.webhook_allow_insecure_conns.label": "Insecure SSL/TLS connections", "access.form.webhook_allow_insecure_conns.label": "Insecure SSL/TLS connections",
"access.form.webhook_allow_insecure_conns.tooltip": "Allowing insecure connections may lead to data leak or tampering. Use this option only when under trusted networks.", "access.form.webhook_allow_insecure_conns.tooltip": "Allowing insecure connections may lead to data leak or tampering. Use this option only when under trusted networks.",
"access.form.webhook_allow_insecure_conns.switch.on": "Allow", "access.form.webhook_allow_insecure_conns.switch.on": "Allow",

View File

@ -369,6 +369,7 @@
"access.form.webhook_preset_data.option.pushover.label": "Pushover", "access.form.webhook_preset_data.option.pushover.label": "Pushover",
"access.form.webhook_preset_data.option.pushplus.label": "PushPlus 推送加", "access.form.webhook_preset_data.option.pushplus.label": "PushPlus 推送加",
"access.form.webhook_preset_data.option.serverchan.label": "Server 酱", "access.form.webhook_preset_data.option.serverchan.label": "Server 酱",
"access.form.webhook_preset_data.option.common.label": "通用模板",
"access.form.webhook_allow_insecure_conns.label": "忽略 SSL/TLS 证书错误", "access.form.webhook_allow_insecure_conns.label": "忽略 SSL/TLS 证书错误",
"access.form.webhook_allow_insecure_conns.tooltip": "忽略 SSL/TLS 证书错误可能导致数据泄露或被篡改。建议仅在可信网络下启用。", "access.form.webhook_allow_insecure_conns.tooltip": "忽略 SSL/TLS 证书错误可能导致数据泄露或被篡改。建议仅在可信网络下启用。",
"access.form.webhook_allow_insecure_conns.switch.on": "允许", "access.form.webhook_allow_insecure_conns.switch.on": "允许",