From 446b5fa9e45237924199363059e6ce20792835d5 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Sat, 1 Apr 2023 23:54:27 +0800 Subject: [PATCH] UI: Support more monitor types in URL field --- src/pages/Details.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/pages/Details.vue b/src/pages/Details.vue index dd7df977c..cf65ea17f 100644 --- a/src/pages/Details.vue +++ b/src/pages/Details.vue @@ -18,6 +18,21 @@
{{ $t("Last Result") }}: {{ monitor.dns_last_result }} + Docker container: {{ monitor.docker_container }} + Gamedig - {{ monitor.game }}: {{ monitor.hostname }}:{{ monitor.port }} + gRPC - {{ monitor.grpcUrl }} +
+ {{ $t("Keyword") }}: {{ monitor.keyword }} +
+ {{ monitor.databaseConnectionString }} + MQTT: {{ monitor.hostname }}:{{ monitor.port }}/{{ monitor.mqttTopic }} + {{ monitor.databaseConnectionString }} + {{ monitor.databaseConnectionString }} + Push: {{ pushURL }} + Radius: {{ monitor.hostname }} + {{ monitor.databaseConnectionString }} + SQL Server: {{ monitor.databaseConnectionString }} + Steam Game Server: {{ monitor.hostname }}:{{ monitor.port }}

@@ -290,6 +305,10 @@ export default { const endIndex = startIndex + this.perPage; return this.heartBeatList.slice(startIndex, endIndex); }, + + pushURL() { + return this.$root.baseURL + "/api/push/" + this.monitor.pushToken + "?status=up&msg=OK&ping="; + }, }, mounted() {