From 29d0db805d82e7d01239aead2cb87e75fddf30be Mon Sep 17 00:00:00 2001 From: DeeJayPee Date: Mon, 13 Sep 2021 10:22:05 +0200 Subject: [PATCH 001/298] Add legacy octopush (Octopush-DM from 2011 to 2020 accounts) version --- server/notification-providers/octopush.js | 64 ++++++++++++++++------- src/components/NotificationDialog.vue | 10 ++++ 2 files changed, 55 insertions(+), 19 deletions(-) diff --git a/server/notification-providers/octopush.js b/server/notification-providers/octopush.js index 40273f9..228e1b2 100644 --- a/server/notification-providers/octopush.js +++ b/server/notification-providers/octopush.js @@ -9,27 +9,53 @@ class Octopush extends NotificationProvider { let okMsg = "Sent Successfully. "; try { - let config = { - headers: { - "api-key": notification.octopushAPIKey, - "api-login": notification.octopushLogin, - "cache-control": "no-cache" - } - }; - let data = { - "recipients": [ - { - "phone_number": notification.octopushPhoneNumber + // Default - V2 + if (notification.octopushVersion == 2 || !notification.octopushVersion) + { + let config = { + headers: { + "api-key": notification.octopushAPIKey, + "api-login": notification.octopushLogin, + "cache-control": "no-cache" } - ], - //octopush not supporting non ascii char - "text": msg.replace(/[^\x00-\x7F]/g, ""), - "type": notification.octopushSMSType, - "purpose": "alert", - "sender": notification.octopushSenderName - }; + }; + let data = { + "recipients": [ + { + "phone_number": notification.octopushPhoneNumber + } + ], + //octopush not supporting non ascii char + "text": msg.replace(/[^\x00-\x7F]/g, ""), + "type": notification.octopushSMSType, + "purpose": "alert", + "sender": notification.octopushSenderName + }; + await axios.post("https://api.octopush.com/v1/public/sms-campaign/send", data, config) + } + else if (notification.octopushVersion == 1) + { + let data = { + "user_login": notification.octopushDMLogin, + "api_key": notification.octopushDMAPIKey, + "sms_recipients" : notification.octopushDMPhoneNumber, + "sms_sender": notification.octopushDMSenderName, + "sms_type": (notification.octopushDMSMSType == 'sms_premium')?'FR':'XXX', + "transactional": '1', + //octopush not supporting non ascii char + "sms_text": msg.replace(/[^\x00-\x7F]/g, ""), + }; + + let config = { + headers: { + "cache-control": "no-cache" + }, + params: data + }; + await axios.post("https://www.octopush-dm.com/api/sms/json", {}, config) + } else + throw new Error('Unknown Octopush version !'); - await axios.post("https://api.octopush.com/v1/public/sms-campaign/send", data, config) return okMsg; } catch (error) { this.throwGeneralAxiosError(error); diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index d689b0c..1076560 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -244,6 +244,16 @@ - - diff --git a/src/components/notifications/Gotify.vue b/src/components/notifications/Gotify.vue index 600b5e4..737a297 100644 --- a/src/components/notifications/Gotify.vue +++ b/src/components/notifications/Gotify.vue @@ -23,10 +23,5 @@ export default { components: { HiddenInput, }, - data() { - return { - name: "gotify", - } - }, } diff --git a/src/components/notifications/Line.vue b/src/components/notifications/Line.vue index 2468875..7d5312c 100644 --- a/src/components/notifications/Line.vue +++ b/src/components/notifications/Line.vue @@ -25,10 +25,5 @@ export default { components: { HiddenInput, }, - data() { - return { - name: "line", - } - }, } diff --git a/src/components/notifications/LunaSea.vue b/src/components/notifications/LunaSea.vue index efa103f..1511f41 100644 --- a/src/components/notifications/LunaSea.vue +++ b/src/components/notifications/LunaSea.vue @@ -7,13 +7,3 @@ - - diff --git a/src/components/notifications/Mattermost.vue b/src/components/notifications/Mattermost.vue index 79ff23b..3e1a7bd 100644 --- a/src/components/notifications/Mattermost.vue +++ b/src/components/notifications/Mattermost.vue @@ -30,13 +30,3 @@ - - diff --git a/src/components/notifications/Octopush.vue b/src/components/notifications/Octopush.vue index 94c5783..10fb6df 100644 --- a/src/components/notifications/Octopush.vue +++ b/src/components/notifications/Octopush.vue @@ -36,10 +36,5 @@ export default { components: { HiddenInput, }, - data() { - return { - name: "octopush", - } - }, } diff --git a/src/components/notifications/Pushbullet.vue b/src/components/notifications/Pushbullet.vue index 8eddb9f..2c805e0 100644 --- a/src/components/notifications/Pushbullet.vue +++ b/src/components/notifications/Pushbullet.vue @@ -16,10 +16,5 @@ export default { components: { HiddenInput, }, - data() { - return { - name: "pushbullet", - } - }, } diff --git a/src/components/notifications/Pushover.vue b/src/components/notifications/Pushover.vue index ff29a40..ae836b5 100644 --- a/src/components/notifications/Pushover.vue +++ b/src/components/notifications/Pushover.vue @@ -63,10 +63,5 @@ export default { components: { HiddenInput, }, - data() { - return { - name: "pushover", - } - }, } diff --git a/src/components/notifications/Pushy.vue b/src/components/notifications/Pushy.vue index 752f169..64e4ef9 100644 --- a/src/components/notifications/Pushy.vue +++ b/src/components/notifications/Pushy.vue @@ -22,10 +22,5 @@ export default { components: { HiddenInput, }, - data() { - return { - name: "pushy", - } - }, } diff --git a/src/components/notifications/RocketChat.vue b/src/components/notifications/RocketChat.vue index 50c21b2..0776a15 100644 --- a/src/components/notifications/RocketChat.vue +++ b/src/components/notifications/RocketChat.vue @@ -27,13 +27,3 @@ - - diff --git a/src/components/notifications/SMTP.vue b/src/components/notifications/SMTP.vue index 47661aa..d2d1e9d 100644 --- a/src/components/notifications/SMTP.vue +++ b/src/components/notifications/SMTP.vue @@ -66,10 +66,5 @@ export default { components: { HiddenInput, }, - data() { - return { - name: "smtp", - } - }, } diff --git a/src/components/notifications/Signal.vue b/src/components/notifications/Signal.vue index f68b6df..8598d07 100644 --- a/src/components/notifications/Signal.vue +++ b/src/components/notifications/Signal.vue @@ -30,13 +30,3 @@ - - diff --git a/src/components/notifications/Slack.vue b/src/components/notifications/Slack.vue index c1b4f7c..1ec2cdf 100644 --- a/src/components/notifications/Slack.vue +++ b/src/components/notifications/Slack.vue @@ -27,13 +27,3 @@ - - diff --git a/src/components/notifications/Teams.vue b/src/components/notifications/Teams.vue index 748bf7a..45ba26c 100644 --- a/src/components/notifications/Teams.vue +++ b/src/components/notifications/Teams.vue @@ -17,13 +17,3 @@ - - diff --git a/src/components/notifications/Telegram.vue b/src/components/notifications/Telegram.vue index 9be1e00..a59c804 100644 --- a/src/components/notifications/Telegram.vue +++ b/src/components/notifications/Telegram.vue @@ -47,11 +47,6 @@ export default { components: { HiddenInput, }, - data() { - return { - name: "telegram", - } - }, computed: { telegramGetUpdatesURL() { let token = "" @@ -62,9 +57,6 @@ export default { return `https://api.telegram.org/bot${token}/getUpdates`; }, - }, - mounted() { - }, methods: { async autoGetTelegramChatID() { diff --git a/src/components/notifications/Webhook.vue b/src/components/notifications/Webhook.vue index 002a2d5..1554a83 100644 --- a/src/components/notifications/Webhook.vue +++ b/src/components/notifications/Webhook.vue @@ -21,17 +21,3 @@ - - - - diff --git a/src/components/notifications/index.js b/src/components/notifications/index.js index 50716f1..52d4d44 100644 --- a/src/components/notifications/index.js +++ b/src/components/notifications/index.js @@ -17,7 +17,7 @@ import Line from "./Line.vue"; import Mattermost from "./Mattermost.vue"; /** - * manage all notification form. + * Manage all notification form. * * @type { Record } */ From 2fb3c40307c6f113578582c24f68dd2c43bf615c Mon Sep 17 00:00:00 2001 From: zsxeee Date: Fri, 17 Sep 2021 20:40:57 +0800 Subject: [PATCH 006/298] Variable name and key binding --- src/components/NotificationDialog.vue | 10 +++++----- src/components/notifications/index.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index 707adfc..4b1b0cc 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -13,7 +13,7 @@
@@ -72,7 +72,7 @@ import { Modal } from "bootstrap" import { ucfirst } from "../util.ts" import Confirm from "./Confirm.vue"; -import NotificationForm from "./notifications" +import NotificationFormList from "./notifications" export default { components: { @@ -85,10 +85,10 @@ export default { model: null, processing: false, id: null, - notificationTypes: Object.keys(NotificationForm), + notificationTypes: Object.keys(NotificationFormList), notification: { name: "", - /** @type { null | keyof NotificationForm } */ + /** @type { null | keyof NotificationFormList } */ type: null, isDefault: false, // Do not set default value here, please scroll to show() @@ -101,7 +101,7 @@ export default { if (!this.notification.type) { return null } - return NotificationForm[this.notification.type] + return NotificationFormList[this.notification.type] } }, diff --git a/src/components/notifications/index.js b/src/components/notifications/index.js index 52d4d44..e377803 100644 --- a/src/components/notifications/index.js +++ b/src/components/notifications/index.js @@ -21,7 +21,7 @@ import Mattermost from "./Mattermost.vue"; * * @type { Record } */ -const NotificationForm = { +const NotificationFormList = { "telegram": Telegram, "webhook": Webhook, "smtp": STMP, @@ -41,4 +41,4 @@ const NotificationForm = { "mattermost": Mattermost } -export default NotificationForm +export default NotificationFormList From ffbc25722d8fe086b83046ae94913aa5f6051d1b Mon Sep 17 00:00:00 2001 From: zsxeee Date: Sun, 19 Sep 2021 18:05:22 +0800 Subject: [PATCH 007/298] Move default setting to child component --- src/components/NotificationDialog.vue | 2 -- src/components/notifications/Gotify.vue | 5 +++++ src/components/notifications/SMTP.vue | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index 4b1b0cc..78d8909 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -150,8 +150,6 @@ export default { // Set Default value here this.notification.type = this.notificationTypes[0]; - this.notification.gotifyPriority = 8; - this.notification.smtpSecure = false; } this.modal.show() diff --git a/src/components/notifications/Gotify.vue b/src/components/notifications/Gotify.vue index 737a297..f8039d5 100644 --- a/src/components/notifications/Gotify.vue +++ b/src/components/notifications/Gotify.vue @@ -23,5 +23,10 @@ export default { components: { HiddenInput, }, + mounted() { + if (typeof this.$parent.notification.gotifyPriority === "undefined") { + this.$parent.notification.gotifyPriority = 8; + } + }, } diff --git a/src/components/notifications/SMTP.vue b/src/components/notifications/SMTP.vue index d2d1e9d..b86a626 100644 --- a/src/components/notifications/SMTP.vue +++ b/src/components/notifications/SMTP.vue @@ -66,5 +66,10 @@ export default { components: { HiddenInput, }, + mounted() { + if (typeof this.$parent.notification.smtpSecure === "undefined") { + this.$parent.notification.smtpSecure = false; + } + }, } From 8c941b1d565b1f3ff61450f91b6e9a6e56d20543 Mon Sep 17 00:00:00 2001 From: zsxeee Date: Tue, 21 Sep 2021 13:02:41 +0800 Subject: [PATCH 008/298] Add i18n for notification form --- src/components/notifications/Apprise.vue | 19 ++--- src/components/notifications/Discord.vue | 11 ++- src/components/notifications/Gotify.vue | 6 +- src/components/notifications/Line.vue | 20 ++--- src/components/notifications/LunaSea.vue | 4 +- src/components/notifications/Mattermost.vue | 30 +++---- src/components/notifications/Octopush.vue | 22 ++--- src/components/notifications/Pushbullet.vue | 8 +- src/components/notifications/Pushover.vue | 24 +++--- src/components/notifications/Pushy.vue | 6 +- src/components/notifications/RocketChat.vue | 28 +++---- src/components/notifications/SMTP.vue | 14 ++-- src/components/notifications/Signal.vue | 14 ++-- src/components/notifications/Slack.vue | 28 +++---- src/components/notifications/Teams.vue | 9 +- src/components/notifications/Telegram.vue | 16 ++-- src/components/notifications/Webhook.vue | 9 +- src/languages/en.js | 93 +++++++++++++++++++++ 18 files changed, 228 insertions(+), 133 deletions(-) diff --git a/src/components/notifications/Apprise.vue b/src/components/notifications/Apprise.vue index de3fe52..567b1ea 100644 --- a/src/components/notifications/Apprise.vue +++ b/src/components/notifications/Apprise.vue @@ -1,20 +1,19 @@ diff --git a/src/components/notifications/Discord.vue b/src/components/notifications/Discord.vue index c45a526..99389d2 100644 --- a/src/components/notifications/Discord.vue +++ b/src/components/notifications/Discord.vue @@ -1,20 +1,19 @@ diff --git a/src/components/notifications/Gotify.vue b/src/components/notifications/Gotify.vue index f8039d5..9e16d4e 100644 --- a/src/components/notifications/Gotify.vue +++ b/src/components/notifications/Gotify.vue @@ -1,17 +1,17 @@ diff --git a/src/components/notifications/Line.vue b/src/components/notifications/Line.vue index 7d5312c..f6dbc74 100644 --- a/src/components/notifications/Line.vue +++ b/src/components/notifications/Line.vue @@ -1,21 +1,21 @@ diff --git a/src/languages/en.js b/src/languages/en.js index ca56894..c4525ae 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -169,6 +169,7 @@ export default { "Avg. Ping": "Avg. Ping", "Avg. Response": "Avg. Response", // Start notification form + defaultNotificationName: "My {0} Alert ({1})", here: "here", "Required": "Required", From 6e55c447732cd17827bfbdb8ead5bb04715893d5 Mon Sep 17 00:00:00 2001 From: zsxeee Date: Wed, 22 Sep 2021 16:13:23 +0800 Subject: [PATCH 010/298] Chore --- src/components/NotificationDialog.vue | 3 +-- src/components/notifications/Apprise.vue | 2 +- src/components/notifications/Signal.vue | 2 +- src/languages/en.js | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index 2cf5eed..fb8ff2e 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -108,7 +108,6 @@ export default { watch: { "notification.type"(to, from) { let oldName; - console.log(this.$root.notificationList) if (from) { oldName = this.getUniqueDefaultName(from); } else { @@ -193,7 +192,7 @@ export default { }) }, /** - * @param {string} notificationKey + * @param {keyof NotificationFormList} notificationKey * @return {string} */ getUniqueDefaultName(notificationKey) { diff --git a/src/components/notifications/Apprise.vue b/src/components/notifications/Apprise.vue index 567b1ea..e0f116f 100644 --- a/src/components/notifications/Apprise.vue +++ b/src/components/notifications/Apprise.vue @@ -11,7 +11,7 @@
- {{ $t("Apprise is installed") }} + {{ $t("Apprise is installed. ") }} {{ $t("Apprise is not installed. ") }}{{ $t("Read more") }}
diff --git a/src/components/notifications/Signal.vue b/src/components/notifications/Signal.vue index 212aba6..e3c9e7a 100644 --- a/src/components/notifications/Signal.vue +++ b/src/components/notifications/Signal.vue @@ -19,7 +19,7 @@

- {{ $t("canCheckLike") }} + {{ $t("wayToCheckSignalURL") }}

diff --git a/src/languages/en.js b/src/languages/en.js index c4525ae..c977540 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -212,7 +212,7 @@ export default { "Number": "Number", "Recipients": "Recipients", needSignalAPI: "You need to have a signal client with REST API.", - canCheckLike: "You can check this url to view how to setup one:", + wayToCheckSignalURL: "You can check this url to view how to setup one:", signalImportant: "IMPORTANT: You cannot mix groups and numbers in recipients!", "gotify": "Gotify", @@ -259,7 +259,7 @@ export default { "Read more:": "Read more: {0}", "Status:": "Status: {0}", "Read more": "Read more", - "Apprise is installed": "Apprise is installed", + "Apprise is installed. ": "Apprise is installed. ", "Apprise is not installed. ": "Apprise is not installed. ", "pushbullet": "Pushbullet", From 6e9d12638c5909cdf9185401fef1bca120e7d56a Mon Sep 17 00:00:00 2001 From: zsxeee Date: Wed, 22 Sep 2021 16:20:59 +0800 Subject: [PATCH 011/298] Avoid space ending in translation key --- src/components/notifications/Apprise.vue | 4 ++-- src/components/notifications/Line.vue | 4 ++-- src/languages/en.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/notifications/Apprise.vue b/src/components/notifications/Apprise.vue index e0f116f..30abfc9 100644 --- a/src/components/notifications/Apprise.vue +++ b/src/components/notifications/Apprise.vue @@ -11,8 +11,8 @@

- {{ $t("Apprise is installed. ") }} - {{ $t("Apprise is not installed. ") }}{{ $t("Read more") }} + {{ $t("Apprise is installed.") }} + {{ $t("Apprise is not installed.") }}{{ $t("Read more") }}
diff --git a/src/components/notifications/Line.vue b/src/components/notifications/Line.vue index f6dbc74..0d7da26 100644 --- a/src/components/notifications/Line.vue +++ b/src/components/notifications/Line.vue @@ -3,14 +3,14 @@ - + {{ $t("Basic Settings") }}
- + {{ $t("Messaging API") }} diff --git a/src/languages/en.js b/src/languages/en.js index c977540..948ed43 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -259,8 +259,8 @@ export default { "Read more:": "Read more: {0}", "Status:": "Status: {0}", "Read more": "Read more", - "Apprise is installed. ": "Apprise is installed. ", - "Apprise is not installed. ": "Apprise is not installed. ", + "Apprise is installed.": "Apprise is installed. ", + "Apprise is not installed.": "Apprise is not installed. ", "pushbullet": "Pushbullet", "Access Token": "Access Token", @@ -268,7 +268,7 @@ export default { "line": "Line Messenger", "Channel access token": "Channel access token", "Line Developers Console": "Line Developers Console", - "Line Developers Console - ": "Line Developers Console - {0}", + lineDevConsoleTo: "Line Developers Console - {0}", "Basic Settings": "Basic Settings", "User ID": "User ID", "Messaging API": "Messaging API", From 624f632a7a537d3b21ef0c5d55b6b108a5046df2 Mon Sep 17 00:00:00 2001 From: zsxeee Date: Wed, 22 Sep 2021 22:15:50 +0800 Subject: [PATCH 012/298] Apprise status translation key --- src/components/NotificationDialog.vue | 2 +- src/components/notifications/Apprise.vue | 6 ++++-- src/languages/en.js | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index fb8ff2e..0c2035d 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -200,7 +200,7 @@ export default { let name = "" do { name = this.$t("defaultNotificationName", [ - this.$t(notificationKey).replace(/\(.+\)/, ""), + this.$t(notificationKey).replace(/\(.+\)/, "").trim(), index++ ]); } while (this.$root.notificationList.find(it => it.name === name)) diff --git a/src/components/notifications/Apprise.vue b/src/components/notifications/Apprise.vue index 30abfc9..f485405 100644 --- a/src/components/notifications/Apprise.vue +++ b/src/components/notifications/Apprise.vue @@ -11,8 +11,10 @@
- {{ $t("Apprise is installed.") }} - {{ $t("Apprise is not installed.") }}{{ $t("Read more") }} + {{ $t("appriseInstalled") }} + + {{ $t("Read more") }} +
diff --git a/src/languages/en.js b/src/languages/en.js index 948ed43..6454679 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -259,8 +259,8 @@ export default { "Read more:": "Read more: {0}", "Status:": "Status: {0}", "Read more": "Read more", - "Apprise is installed.": "Apprise is installed. ", - "Apprise is not installed.": "Apprise is not installed. ", + appriseInstalled: "Apprise is installed.", + appriseNotInstalled: "Apprise is not installed. {0}", "pushbullet": "Pushbullet", "Access Token": "Access Token", From 32c9dfbb314837052ab93bcd6949cdd82d434022 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Thu, 23 Sep 2021 23:21:08 +0800 Subject: [PATCH 013/298] Fix: clear important beats after deleteMonitor --- server/database.js | 1 + server/server.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/server/database.js b/server/database.js index 2f6c1c5..4cf1e39 100644 --- a/server/database.js +++ b/server/database.js @@ -107,6 +107,7 @@ class Database { R.freeze(true); await R.autoloadModels("./server/model"); + await R.exec("PRAGMA foreign_keys = ON"); // Change to WAL await R.exec("PRAGMA journal_mode = WAL"); await R.exec("PRAGMA cache_size = -12000"); diff --git a/server/server.js b/server/server.js index 5109536..5b5d6b2 100644 --- a/server/server.js +++ b/server/server.js @@ -637,6 +637,8 @@ exports.entryPage = "dashboard"; }); await sendMonitorList(socket); + // Clear heartbeat list on client + await sendImportantHeartbeatList(socket, monitorID, true, true); } catch (e) { callback({ From 50a33e3b45bffc121033ffad4ebeb300b554ddbf Mon Sep 17 00:00:00 2001 From: Ponkhy Date: Fri, 24 Sep 2021 15:56:35 +0200 Subject: [PATCH 014/298] Added german translation for the status page --- src/languages/de-DE.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/languages/de-DE.js b/src/languages/de-DE.js index 4014d05..ef2f765 100644 --- a/src/languages/de-DE.js +++ b/src/languages/de-DE.js @@ -166,16 +166,16 @@ export default { retryCheckEverySecond: "Versuche alle {0} Sekunden", "Import Backup": "Import Backup", "Export Backup": "Export Backup", - "Avg. Ping": "Avg. Ping", - "Avg. Response": "Avg. Response", - "Entry Page": "Entry Page", - "statusPageNothing": "Nothing here, please add a group or a monitor.", - "No Services": "No Services", - "All Systems Operational": "All Systems Operational", - "Partially Degraded Service": "Partially Degraded Service", - "Degraded Service": "Degraded Service", - "Add Group": "Add Group", - "Add a monitor": "Add a monitor", - "Edit Status Page": "Edit Status Page", - "Go to Dashboard": "Go to Dashboard", + "Avg. Ping": "Durchsch. Ping", + "Avg. Response": "Durchsch. Antwort", + "Entry Page": "Einstiegsseite", + "statusPageNothing": "Nichts ist hier, bitte füge eine Gruppe oder Monitor hinzu.", + "No Services": "Keine Dienste", + "All Systems Operational": "Alle Systeme Betriebsbereit", + "Partially Degraded Service": "Teilweise beeinträchtigter Dienst", + "Degraded Service": "Eingeschränkter Dienst", + "Add Group": "Gruppe hinzufügen", + "Add a monitor": "Monitor hinzufügen", + "Edit Status Page": "Bearbeite Statusseite", + "Go to Dashboard": "Gehe zum Dashboard", }; From 3fb2d0ce6803b77ff72ac3de66a1075b5e314e12 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Fri, 24 Sep 2021 22:38:54 +0800 Subject: [PATCH 015/298] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ffcac83..f0fa92d 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,9 @@ Browse to http://localhost:3001 after started. Required Tools: Node.js >= 14, git and pm2. ```bash +# Update your npm to the latest version +npm install npm -g + git clone https://github.com/louislam/uptime-kuma.git cd uptime-kuma npm run setup From 87e213085f5bd7179c79bc48461d47d4d14e4c59 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Sat, 25 Sep 2021 22:44:29 +0800 Subject: [PATCH 016/298] add /status, alias of /status-page (#471) --- src/layouts/Layout.vue | 2 +- src/mixins/socket.js | 1 + src/mixins/theme.js | 2 +- src/pages/Entry.vue | 2 +- src/router.js | 4 ++++ 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/layouts/Layout.vue b/src/layouts/Layout.vue index 6228d4f..c3e863d 100644 --- a/src/layouts/Layout.vue +++ b/src/layouts/Layout.vue @@ -19,7 +19,7 @@