update
This commit is contained in:
@@ -62,9 +62,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="webhook-body" class="block text-sm font-medium text-text-secondary mb-1">{{ $t('settings.notifications.form.webhookBodyTemplate') }}</label>
|
<label for="webhook-body" class="block text-sm font-medium text-text-secondary mb-1">{{ $t('settings.notifications.form.webhookBodyTemplate') }}</label>
|
||||||
<textarea id="webhook-body" v-model="webhookConfig.bodyTemplate" rows="3" :placeholder="$t('settings.notifications.form.webhookBodyPlaceholder')"
|
<textarea id="webhook-body" v-model="webhookConfig.bodyTemplate" rows="3" :placeholder="`${$t('settings.notifications.form.webhookBodyPlaceholder')} {{event}}, {{timestamp}}, {{details}}`"
|
||||||
class="w-full px-3 py-2 border border-border rounded-md shadow-sm bg-background text-foreground focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary font-mono text-sm"></textarea>
|
class="w-full px-3 py-2 border border-border rounded-md shadow-sm bg-background text-foreground focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary font-mono text-sm"></textarea>
|
||||||
<small class="block mt-1 text-xs text-text-secondary">{{ $t('settings.notifications.form.templateHelp') }}</small>
|
<small class="block mt-1 text-xs text-text-secondary">{{ $t('settings.notifications.form.templateHelp') }} </small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="email-subject" class="block text-sm font-medium text-text-secondary mb-1">{{ $t('settings.notifications.form.emailSubjectTemplate') }}</label>
|
<label for="email-subject" class="block text-sm font-medium text-text-secondary mb-1">{{ $t('settings.notifications.form.emailSubjectTemplate') }}</label>
|
||||||
<input type="text" id="email-subject" v-model="emailConfig.subjectTemplate" :placeholder="$t('settings.notifications.form.emailSubjectPlaceholder')"
|
<input type="text" id="email-subject" v-model="emailConfig.subjectTemplate" :placeholder="`${$t('settings.notifications.form.emailSubjectPlaceholder')} {{event}}`"
|
||||||
class="w-full px-3 py-2 border border-border rounded-md shadow-sm bg-background text-foreground focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary">
|
class="w-full px-3 py-2 border border-border rounded-md shadow-sm bg-background text-foreground focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary">
|
||||||
<small class="block mt-1 text-xs text-text-secondary">{{ $t('settings.notifications.form.templateHelp') }}</small>
|
<small class="block mt-1 text-xs text-text-secondary">{{ $t('settings.notifications.form.templateHelp') }}</small>
|
||||||
</div>
|
</div>
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="telegram-message" class="block text-sm font-medium text-text-secondary mb-1">{{ $t('settings.notifications.form.telegramMessageTemplate') }}</label>
|
<label for="telegram-message" class="block text-sm font-medium text-text-secondary mb-1">{{ $t('settings.notifications.form.telegramMessageTemplate') }}</label>
|
||||||
<textarea id="telegram-message" v-model="telegramConfig.messageTemplate" rows="3" :placeholder="$t('settings.notifications.form.telegramMessagePlaceholder')"
|
<textarea id="telegram-message" v-model="telegramConfig.messageTemplate" rows="3" :placeholder="`${$t('settings.notifications.form.telegramMessagePlaceholder')} {{event}}, {{timestamp}}, {{details}}.`"
|
||||||
class="w-full px-3 py-2 border border-border rounded-md shadow-sm bg-background text-foreground focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary font-mono text-sm"></textarea>
|
class="w-full px-3 py-2 border border-border rounded-md shadow-sm bg-background text-foreground focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary font-mono text-sm"></textarea>
|
||||||
<small class="block mt-1 text-xs text-text-secondary">{{ $t('settings.notifications.form.templateHelp') }}</small>
|
<small class="block mt-1 text-xs text-text-secondary">{{ $t('settings.notifications.form.templateHelp') }}</small>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -464,11 +464,11 @@
|
|||||||
"webhookMethod": "HTTP Method:",
|
"webhookMethod": "HTTP Method:",
|
||||||
"webhookHeaders": "Custom Headers",
|
"webhookHeaders": "Custom Headers",
|
||||||
"webhookBodyTemplate": "Body Template (Optional)",
|
"webhookBodyTemplate": "Body Template (Optional)",
|
||||||
"webhookBodyPlaceholder": "Default: JSON payload. Use {{event}}, {{timestamp}}, {{details}}.",
|
"webhookBodyPlaceholder": "Default: JSON payload. Use",
|
||||||
"emailTo": "Recipient Email(s):",
|
"emailTo": "Recipient Email(s):",
|
||||||
"emailToHelp": "Comma-separated list.",
|
"emailToHelp": "Comma-separated list.",
|
||||||
"emailSubjectTemplate": "Subject Template (Optional)",
|
"emailSubjectTemplate": "Subject Template (Optional)",
|
||||||
"emailSubjectPlaceholder": "Default: Notification: {{event}}",
|
"emailSubjectPlaceholder": "Default: Notification:",
|
||||||
"smtpHost": "SMTP Host:",
|
"smtpHost": "SMTP Host:",
|
||||||
"smtpPort": "SMTP Port:",
|
"smtpPort": "SMTP Port:",
|
||||||
"smtpSecure": "Use TLS/SSL",
|
"smtpSecure": "Use TLS/SSL",
|
||||||
@@ -484,9 +484,9 @@
|
|||||||
"telegramTokenHelp": "Store securely. Consider environment variables.",
|
"telegramTokenHelp": "Store securely. Consider environment variables.",
|
||||||
"telegramChatId": "Chat ID:",
|
"telegramChatId": "Chat ID:",
|
||||||
"telegramMessageTemplate": "Message Template (Optional)",
|
"telegramMessageTemplate": "Message Template (Optional)",
|
||||||
"telegramMessagePlaceholder": "Default: Markdown format. Use {{event}}, {{timestamp}}, {{details}}.",
|
"telegramMessagePlaceholder": "Default: Markdown format. Use",
|
||||||
"enabledEvents": "Enabled Events:",
|
"enabledEvents": "Enabled Events:",
|
||||||
"templateHelp": "Placeholders: {{event}}, {{timestamp}}, {{details}} (JSON string)",
|
"templateHelp": "Placeholders:",
|
||||||
"invalidJson": "Invalid JSON"
|
"invalidJson": "Invalid JSON"
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
|
|||||||
@@ -464,11 +464,11 @@
|
|||||||
"webhookMethod": "HTTP 方法:",
|
"webhookMethod": "HTTP 方法:",
|
||||||
"webhookHeaders": "自定义 Headers",
|
"webhookHeaders": "自定义 Headers",
|
||||||
"webhookBodyTemplate": "请求体模板 (可选)",
|
"webhookBodyTemplate": "请求体模板 (可选)",
|
||||||
"webhookBodyPlaceholder": "默认: JSON 格式负载。可使用 event, timestamp, details 变量。",
|
"webhookBodyPlaceholder": "默认: JSON 格式负载。可使用",
|
||||||
"emailTo": "收件人邮箱:",
|
"emailTo": "收件人邮箱:",
|
||||||
"emailToHelp": "多个邮箱用逗号分隔。",
|
"emailToHelp": "多个邮箱用逗号分隔。",
|
||||||
"emailSubjectTemplate": "邮件主题模板 (可选)",
|
"emailSubjectTemplate": "邮件主题模板 (可选)",
|
||||||
"emailSubjectPlaceholder": "默认: 通知: {{event}}",
|
"emailSubjectPlaceholder": "默认: 通知:",
|
||||||
"smtpHost": "SMTP 主机:",
|
"smtpHost": "SMTP 主机:",
|
||||||
"smtpPort": "SMTP 端口:",
|
"smtpPort": "SMTP 端口:",
|
||||||
"smtpSecure": "使用 TLS/SSL",
|
"smtpSecure": "使用 TLS/SSL",
|
||||||
@@ -484,9 +484,9 @@
|
|||||||
"telegramTokenHelp": "请安全存储。建议使用环境变量。",
|
"telegramTokenHelp": "请安全存储。建议使用环境变量。",
|
||||||
"telegramChatId": "聊天 ID:",
|
"telegramChatId": "聊天 ID:",
|
||||||
"telegramMessageTemplate": "消息模板 (可选)",
|
"telegramMessageTemplate": "消息模板 (可选)",
|
||||||
"telegramMessagePlaceholder": "默认: Markdown 格式。可使用 {{event}}, {{timestamp}}, {{details}}。",
|
"telegramMessagePlaceholder": "默认: Markdown 格式。可使用",
|
||||||
"enabledEvents": "启用的事件:",
|
"enabledEvents": "启用的事件:",
|
||||||
"templateHelp": "可用占位符: event, timestamp, details (JSON 字符串)",
|
"templateHelp": "可用占位符:",
|
||||||
"invalidJson": "无效的 JSON 格式"
|
"invalidJson": "无效的 JSON 格式"
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
|
|||||||
Reference in New Issue
Block a user