mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-12-05 01:10:52 +00:00
Compare commits
5 Commits
5701a97ad9
...
1a6d7214e9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a6d7214e9 | ||
|
|
eb6ca00353 | ||
|
|
a59a6af4b3 | ||
|
|
ae07bf23ae | ||
|
|
c31ea9c891 |
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"name": "Uptime Kuma",
|
||||
"short_name": "Uptime Kuma",
|
||||
"description": "An easy-to-use self-hosted monitoring tool.",
|
||||
"theme_color": "#5cdd8b",
|
||||
"start_url": "/",
|
||||
"background_color": "#fff",
|
||||
"display": "standalone",
|
||||
@@ -15,5 +17,72 @@
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "Dashboard",
|
||||
"short_name": "Dashboard",
|
||||
"description": "View monitoring dashboard",
|
||||
"url": "/dashboard",
|
||||
"icons": [
|
||||
{
|
||||
"src": "icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Add Monitor",
|
||||
"short_name": "Add Monitor",
|
||||
"description": "Add a new monitor",
|
||||
"url": "/add",
|
||||
"icons": [
|
||||
{
|
||||
"src": "icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Monitor List",
|
||||
"short_name": "List",
|
||||
"description": "View all monitors",
|
||||
"url": "/list",
|
||||
"icons": [
|
||||
{
|
||||
"src": "icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Settings",
|
||||
"short_name": "Settings",
|
||||
"description": "Open settings",
|
||||
"url": "/settings",
|
||||
"icons": [
|
||||
{
|
||||
"src": "icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Maintenance",
|
||||
"short_name": "Maintenance",
|
||||
"description": "Manage maintenance windows",
|
||||
"url": "/maintenance",
|
||||
"icons": [
|
||||
{
|
||||
"src": "icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -32,6 +32,15 @@ class SMSIR extends NotificationProvider {
|
||||
return mobile;
|
||||
});
|
||||
|
||||
const MAX_MESSAGE_LENGTH = 25; // This is a limitation placed by SMSIR
|
||||
// Shorten By removing spaces, keeping context is better than cutting off the text
|
||||
// If that does not work, truncate. Still better than not receiving an SMS
|
||||
if (msg.length > MAX_MESSAGE_LENGTH && msg.replace(/\s/g, ""). length <= MAX_MESSAGE_LENGTH) {
|
||||
msg = msg.replace(/\s/g, "");
|
||||
} else if (msg.length > MAX_MESSAGE_LENGTH) {
|
||||
msg = msg.substring(0, MAX_MESSAGE_LENGTH - 1 - "...".length) + "...";
|
||||
}
|
||||
|
||||
// Run multiple network requests at once
|
||||
const requestPromises = formattedMobiles
|
||||
.map(mobile => {
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
<div class="mb-3">
|
||||
<label for="smsc-login" class="form-label">{{ $t("API Username") }}</label>
|
||||
<i18n-t tag="div" class="form-text" keypath="wayToGetClickSendSMSToken">
|
||||
<a href="https://smsc.kz/" target="_blank">{{ $t("here") }}</a>
|
||||
<template #here>
|
||||
<a href="https://smsc.kz/" target="_blank">{{ $t("here") }}</a>
|
||||
</template>
|
||||
</i18n-t>
|
||||
<input id="smsc-login" v-model="$parent.notification.smscLogin" type="text" class="form-control" required>
|
||||
<label for="smsc-key" class="form-label">{{ $t("API Key") }}</label>
|
||||
|
||||
@@ -838,7 +838,7 @@
|
||||
"pushDeerServerDescription": "Leave blank to use the official server",
|
||||
"PushDeer Key": "PushDeer Key",
|
||||
"SpugPush Template Code": "Template Code",
|
||||
"wayToGetClickSendSMSToken": "You can get API Username and API Key from {0} .",
|
||||
"wayToGetClickSendSMSToken": "You can get API Username and API Key from {here}.",
|
||||
"Custom Monitor Type": "Custom Monitor Type",
|
||||
"Google Analytics ID": "Google Analytics ID",
|
||||
"Edit Tag": "Edit Tag",
|
||||
|
||||
Reference in New Issue
Block a user