From 29d0db805d82e7d01239aead2cb87e75fddf30be Mon Sep 17 00:00:00 2001
From: DeeJayPee "application/json" is good for any modern http servers such as express.js "multipart/form-data" is good for PHP, you just need to parse the json by json_decode($_POST['data'])
- You can check this url to view how to setup one:
-
- https://github.com/bbernhard/signal-cli-rest-api
-
- IMPORTANT: You cannot mix groups and numbers in recipients!
-
- More info about webhooks on: https://api.slack.com/messaging/webhooks
-
- Enter the channel name on Slack Channel Name field if you want to bypass the webhook channel. Ex: #other-channel
-
- If you leave the Uptime Kuma URL field blank, it will default to the Project Github page.
-
- Emoji cheat sheet: https://www.webfx.com/tools/emoji-cheat-sheet/
-
- More info about webhooks on: https://api.slack.com/messaging/webhooks
-
- Enter the channel name on Rocket.chat Channel Name field if you want to bypass the webhook channel. Ex: #other-channel
-
- If you leave the Uptime Kuma URL field blank, it will default to the Project Github page.
-
- Emoji cheat sheet: https://www.webfx.com/tools/emoji-cheat-sheet/
-
- More info about webhooks on: https://docs.mattermost.com/developer/webhooks-incoming.html
-
- You can override the default channel that webhook posts to by entering the channel name into "Channel Name" field. This needs to be enabled in Mattermost webhook settings. Ex: #other-channel
-
- If you leave the Uptime Kuma URL field blank, it will default to the Project Github page.
-
- You can provide a link to a picture in "Icon URL" to override the default profile picture. Will not be used if Icon Emoji is set.
-
- Emoji cheat sheet: https://www.webfx.com/tools/emoji-cheat-sheet/ Note: emoji takes preference over Icon URL.
-
- More info on: https://pushy.me/docs/api/send-notifications
-
- More info on: https://octopush.com/api-sms-documentation/envoi-de-sms/
-
- More info on: https://pushover.net/api
-
- Emergency priority (2) has default 30 second timeout between retries and will expire after 1 hour.
-
- If you want to send notifications to different devices, fill out Device field.
- Example: twilio://AccountSid:AuthToken@FromPhoneNo
- Read more: https://github.com/caronc/apprise/wiki#notification-services
-
- Status:
- Apprise is installed
- Apprise is not installed. Read more
- *Required
- More info on: https://docs.pushbullet.com
- Example: twilio://AccountSid:AuthToken@FromPhoneNo
+ Read more: https://github.com/caronc/apprise/wiki#notification-services
+
+ Status:
+
+ Apprise is installed
+ Apprise is not installed. Read more
+ *Required
+ More info about webhooks on: https://docs.mattermost.com/developer/webhooks-incoming.html
+
+ You can override the default channel that webhook posts to by entering the channel name into "Channel Name" field. This needs to be enabled in Mattermost webhook settings. Ex: #other-channel
+
+ If you leave the Uptime Kuma URL field blank, it will default to the Project Github page.
+
+ You can provide a link to a picture in "Icon URL" to override the default profile picture. Will not be used if Icon Emoji is set.
+
+ Emoji cheat sheet: https://www.webfx.com/tools/emoji-cheat-sheet/ Note: emoji takes preference over Icon URL.
+
+ More info on: https://octopush.com/api-sms-documentation/envoi-de-sms/
+
+ More info on: https://docs.pushbullet.com
+
+ More info on: https://pushover.net/api
+
+ Emergency priority (2) has default 30 second timeout between retries and will expire after 1 hour.
+
+ If you want to send notifications to different devices, fill out Device field.
+
+ More info on: https://pushy.me/docs/api/send-notifications
+
+ More info about webhooks on: https://api.slack.com/messaging/webhooks
+
+ Enter the channel name on Rocket.chat Channel Name field if you want to bypass the webhook channel. Ex: #other-channel
+
+ If you leave the Uptime Kuma URL field blank, it will default to the Project Github page.
+
+ Emoji cheat sheet: https://www.webfx.com/tools/emoji-cheat-sheet/
+
+ You can check this url to view how to setup one:
+
+ https://github.com/bbernhard/signal-cli-rest-api
+
+ IMPORTANT: You cannot mix groups and numbers in recipients!
+
+ More info about webhooks on: https://api.slack.com/messaging/webhooks
+
+ Enter the channel name on Slack Channel Name field if you want to bypass the webhook channel. Ex: #other-channel
+
+ If you leave the Uptime Kuma URL field blank, it will default to the Project Github page.
+
+ Emoji cheat sheet: https://www.webfx.com/tools/emoji-cheat-sheet/
+ "application/json" is good for any modern http servers such as express.js "multipart/form-data" is good for PHP, you just need to parse the json by json_decode($_POST['data'])
Status:
-
- Apprise is installed
+ Apprise is installed
Apprise is not installed. Read more
Example: twilio://AccountSid:AuthToken@FromPhoneNo
- Read more: https://github.com/caronc/apprise/wiki#notification-services
- {{ $t("Example:", ["twilio://AccountSid:AuthToken@FromPhoneNo"]) }}
- Status:
- Apprise is installed
- Apprise is not installed. Read more
-
@@ -454,6 +76,7 @@ import HiddenInput from "./HiddenInput.vue";
import Telegram from "./notifications/Telegram.vue";
import Teams from "./notifications/Teams.vue";
import SMTP from "./notifications/SMTP.vue";
+import NotificationForm from "./notifications"
export default {
components: {
@@ -470,8 +93,10 @@ export default {
model: null,
processing: false,
id: null,
+ notificationTypes: Object.keys(NotificationForm),
notification: {
name: "",
+ /** @type { null | keyof NotificationForm } */
type: null,
isDefault: false,
// Do not set default value here, please scroll to show()
@@ -480,6 +105,15 @@ export default {
}
},
+ computed: {
+ currentForm() {
+ if (!this.notification.type) {
+ return null
+ }
+ return NotificationForm[this.notification.type]
+ }
+ },
+
watch: {
"notification.type"(to, from) {
let oldName;
@@ -528,7 +162,7 @@ export default {
}
// Set Default value here
- this.notification.type = "telegram";
+ this.notification.type = this.notificationTypes[0];
this.notification.gotifyPriority = 8;
this.notification.smtpSecure = false;
}
diff --git a/src/components/notifications/Apprise.vue b/src/components/notifications/Apprise.vue
new file mode 100644
index 0000000..b9d2a94
--- /dev/null
+++ b/src/components/notifications/Apprise.vue
@@ -0,0 +1,30 @@
+
+
- {{ $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 Пожалуйста, используйте с осторожностью. Сигурни ли сте, че желаете да изключите удостоверяването? Използва се в случаите, когато има настроен алтернативен метод за удостоверяване преди Uptime Kuma, например Cloudflare Access. Моля, използвайте внимателно. Are you sure want to disable auth? ( ( Моля, използвайте внимателно. Biztos benne, hogy kikapcsolja a hitelesítést? Akkor érdemes, ha van 3rd-party hitelesítés az Uptime Kuma-t megelőzően mint a Cloudflare Access. Használja megfontoltan! Are you sure want to disable auth? Моля, използвайте внимателно. Biztos benne, hogy kikapcsolja a hitelesítést? Akkor érdemes, ha van 3rd-party hitelesítés az Uptime Kuma-t megelőzően mint a Cloudflare Access. Használja megfontoltan! Are you sure want to disable auth? Моля, използвайте внимателно. Biztos benne, hogy kikapcsolja a hitelesítést? Akkor érdemes, ha van 3rd-party hitelesítés az Uptime Kuma-t megelőzően mint a Cloudflare Access. Használja megfontoltan! Are you sure want to disable auth?
+ You can find the internal room ID by looking in the advanced section if your Matrix client. It should look like !QMdRCpUIfLwsfjxye6:home.server.
- You can find the internal room ID by looking in the advanced section if your Matrix client. It should look like !QMdRCpUIfLwsfjxye6:home.server.
+ You can find the internal room ID by looking in the advanced section if your Matrix client. It should look like !QMdRCpUIfLwsfjxye6:home.server.
+
+ It is highly recommended you create a new user and do not use your Matrix user's access token as it will allow full access to the matrix user. You can get the access token by running Használja megfontoltan! Er du sikker på at du vil deaktiver autentisering? Dette er for de som har tredjepartsautorisering foran Uptime Kuma, for eksempel Cloudflare Access. Vennligst vær forsiktig. Are you sure want to disable auth? *{{ $t("Required") }}
- You can find the internal room ID by looking in the advanced section of the room settings in your Matrix client. It should look like !QMdRCpUIfLwsfjxye6:home.server.
-
- It is highly recommended you create a new user and do not use your own Matrix user's access token as it will allow full access to your account and all the rooms you joined. Instead, create a new user and only invite it to the room that you want to receive the notification in. You can get the access token by running
Info
+ {{ $t("Info") }}
{{ $t("Version") }}: {{ $root.info.version }}
{{ $t("Check Update On GitHub") }}
From 9f06d54688842fd546c26722b1087d282d7882ad Mon Sep 17 00:00:00 2001
From: Soroosh
+ Created: {{ $root.datetime(incident.createdDate) }} ({{ dateFromNow(incident.createdDate) }})
- Last Updated: {{ incident.lastUpdatedDate }} ({{ lastUpdatedDateFromNow }})
+ Last Updated: {{ $root.datetime(incident.lastUpdatedDate) }} ({{ dateFromNow(incident.lastUpdatedDate) }})
+
+
+
+
+ Subject:
+ {{ formatSubject(cert.subject) }}
+
+
+ Valid To:
+
+
+
+ Days Remaining:
+ {{ cert.daysRemaining }}
+
+
+ Issuer:
+ {{ formatSubject(cert.issuer) }}
+
+
+
+ Fingerprint:
+ {{ cert.fingerprint }}
+ {{ $t("Cert Exp.") }}
- {{ $t("Certificate Info") }}
-
-
-
+
-
-
- Valid:
-
- {{ certInfo.valid }}
-
-
-
- Valid To:
-
-
-
-
-
- Days Remaining:
-
- {{ certInfo.daysRemaining }}
-
-
-
- Issuer:
-
- {{ certInfo.issuer }}
-
-
-
-
- Fingerprint:
-
- {{ certInfo.fingerprint }}
-
@@ -328,15 +328,11 @@ export default {
},
bodyPlaceholder() {
- return `{
- "id": 124357,
- "username": "admin",
- "password": "myAdminPassword"
-}`;
+ return this.$t("BodyPlaceholder");
},
headersPlaceholder() {
- return "Authorization: Bearer abc123\nContent-Type: application/json";
+ return this.$t("HeadersPlaceholder");
}
},
@@ -441,13 +437,13 @@ export default {
try {
JSON.parse(this.monitor.body);
} catch (err) {
- toast.error(this.$t("The request body is not valid JSON: ") + err.message);
+ toast.error(this.$t("BodyInvalidFormat") + err.message);
return false;
}
}
if (this.monitor.headers) {
if (!/^([^:]+:.*)([\s]+[^:]+:.*)+$/g.test(this.monitor.headers)) {
- toast.error(this.$t("Headers do not have a valid format: \"key: value
+ It is highly recommended you create a new user and do not use your Matrix user's access token as it will allow full access to the matrix user. You can get the access token by running curl -XPOST -d '{"type":"m.login.password", "identifier": {"user":"botusername", "type": "m.id.user"}, "password":"passwordforuser"}' "https://home.server.url/_matrix/client/r0/login".
+
- It is highly recommended you create a new user and do not use your Matrix user's access token as it will allow full access to the matrix user. You can get the access token by running curl -XPOST -d '{"type":"m.login.password", "identifier": {"user":"botusername", "type": "m.id.user"}, "password":"passwordforuser"}' "https://home.server.url/_matrix/client/r0/login".
- curl -XPOST -d '{"type":"m.login.password", "identifier": {"user":"botusername", "type": "m.id.user"}, "password":"passwordforuser"}' "https://home.server/_matrix/client/r0/login"
.
+ {{ $t("Advanced") }}
+ {{ $t("Advanced") }}
{{ $t("Monitor History") }}
+ {{ $t("Advanced") }}
{{ $t("Monitor History") }}
+ {{ $t("Monitor History") }}
- {{ $t("Advanced") }}
curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/r0/login"
.
+ {{ $t("matrixDesc1") }}
curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/r0/login"
.
+ {{ $t("Monitor History") }}
@@ -128,6 +137,7 @@