From f791d4a9bf789c769bd90678faac82ec5de74790 Mon Sep 17 00:00:00 2001 From: nekojanai Date: Sun, 6 Oct 2024 02:27:15 +0200 Subject: [PATCH] feat: monitor debug curl (#5152) Co-authored-by: Frank Elsinga --- src/lang/en.json | 10 +++ src/pages/EditMonitor.vue | 127 +++++++++++++++++++++++++++++++++++++- 2 files changed, 135 insertions(+), 2 deletions(-) diff --git a/src/lang/en.json b/src/lang/en.json index 28ff675e..3a4ca715 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -97,6 +97,8 @@ "pushOthers": "Others", "programmingLanguages": "Programming Languages", "Save": "Save", + "Debug": "Debug", + "Copy": "Copy", "Notifications": "Notifications", "Not available, please setup.": "Not available, please set up.", "Setup Notification": "Set Up Notification", @@ -249,6 +251,14 @@ "PushUrl": "Push URL", "HeadersInvalidFormat": "The request headers are not valid JSON: ", "BodyInvalidFormat": "The request body is not valid JSON: ", + "CopyToClipboardError": "Couldn't copy to clipbard: {error}", + "CopyToClipboardSuccess": "Copied!", + "CurlDebugInfo": "To debug the monitor, you can either paste this into your own machines terminal or into the machines terminal which uptime kuma is running on and see what you are requesting.{newiline}Please be aware of networking differences like {firewalls}, {dns_resolvers} or {docker_networks}.", + "firewalls": "firewalls", + "dns resolvers": "dns resolvers", + "docker networks": "docker networks", + "CurlDebugInfoOAuth2CCUnsupported": "Full oauth client credential flow is not supported in {curl}.{newline}Please get a bearer token and pass it via the {oauth2_bearer} option.", + "CurlDebugInfoProxiesUnsupported": "Proxy support in the above {curl} command is currently not implemented.", "Monitor History": "Monitor History", "clearDataOlderThan": "Keep monitor history data for {0} days.", "PasswordsDoNotMatch": "Passwords do not match.", diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index cb33fc0a..e684dd70 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -982,13 +982,23 @@
+
@@ -1000,9 +1010,58 @@ +