From 434acabf471e1fb1b810eebbb4e76b8ba1e34753 Mon Sep 17 00:00:00 2001 From: NanamiAdmin Date: Sun, 10 May 2026 18:26:19 +0800 Subject: [PATCH] feat(settings): add variable hints for webhook body template --- src/views/Settings.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/Settings.vue b/src/views/Settings.vue index c0974ff..4155a72 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -108,6 +108,13 @@
+

+ Available variables in Body: {{ exceptionMsg }}, {{ serviceName }}, {{ exceptionType }} +
+ - {{ exceptionMsg }}: The exception message, e.g. "Process superfrpc_test_test is dead"
+ - {{ serviceName }}: The service name, e.g. "superfrpc_test_test"
+ - {{ exceptionType }}: The type of exception, e.g. "Process Dead" +

@@ -385,4 +392,11 @@ textarea:focus { .webhook-modal { width: 600px; } + +.field-hint { + margin: 6px 0 0; + color: var(--text-secondary); + font-size: 13px; + line-height: 1.4; +}