mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-19 15:44:02 +02:00
fixed code style issues
This commit is contained in:
parent
71106580ba
commit
6cb79798c8
2 changed files with 10 additions and 10 deletions
|
@ -17,13 +17,13 @@ class SMSPlanet extends NotificationProvider {
|
||||||
"Authorization": "Bearer " + notification.smsplanetApiToken,
|
"Authorization": "Bearer " + notification.smsplanetApiToken,
|
||||||
"content-type": "multipart/form-data"
|
"content-type": "multipart/form-data"
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
let data = {
|
let data = {
|
||||||
"from": notification.smsplanetSenderName,
|
"from": notification.smsplanetSenderName,
|
||||||
"to": notification.smsplanetPhoneNumbers,
|
"to": notification.smsplanetPhoneNumbers,
|
||||||
"msg": msg.replace(/🔴/, "❌")
|
"msg": msg.replace(/🔴/, "❌")
|
||||||
}
|
};
|
||||||
|
|
||||||
let response = await axios.post(url, data, config);
|
let response = await axios.post(url, data, config);
|
||||||
if (!response.data?.messageId) {
|
if (!response.data?.messageId) {
|
||||||
|
|
|
@ -12,12 +12,12 @@
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="smsplanet-phone-numbers" class="form-label">{{ $t("smsplanetPhoneNumber") }}</label>
|
<label for="smsplanet-phone-numbers" class="form-label">{{ $t("smsplanetPhoneNumber") }}</label>
|
||||||
<textarea
|
<textarea
|
||||||
id="smsplanet-phone-numbers"
|
id="smsplanet-phone-numbers"
|
||||||
v-model="$parent.notification.smsplanetPhoneNumbers"
|
v-model="$parent.notification.smsplanetPhoneNumbers"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
:placeholder="smsplanetPhoneNumbers"
|
:placeholder="smsplanetPhoneNumbers"
|
||||||
required
|
required
|
||||||
></textarea>
|
></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="smsplanet-sender-name" class="form-label">{{ $t("smsplanetSenderName") }}</label>
|
<label for="smsplanet-sender-name" class="form-label">{{ $t("smsplanetSenderName") }}</label>
|
||||||
|
@ -35,7 +35,7 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
smsplanetPhoneNumbers() {
|
smsplanetPhoneNumbers() {
|
||||||
return this.$t("Example:", [
|
return this.$t("Example:", [
|
||||||
`+48123456789,+48111222333`,
|
"+48123456789,+48111222333",
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue