mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
SMSIR Notification Provider Support (#6334)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
co-authored by
Frank Elsinga
parent
2d8918a1b8
commit
a7b2624c2d
@@ -192,6 +192,7 @@ export default {
|
||||
"PushPlus": "PushPlus (推送加)",
|
||||
"SpugPush": "SpugPush(Spug推送助手)",
|
||||
"smsc": "SMSC",
|
||||
"smsir": "SMS.IR",
|
||||
"WPush": "WPush(wpush.cn)",
|
||||
"YZJ": "YZJ (云之家自定义机器人)",
|
||||
"SMSPlanet": "SMSPlanet.pl"
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="mb-3">
|
||||
<label for="smsir-key" class="form-label">{{ $t("API Key") }}</label>
|
||||
<HiddenInput id="smsir-key" v-model="$parent.notification.smsirApiKey" :required="true" autocomplete="new-password"></HiddenInput>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="smsir-number" class="form-label">{{ $t("Recipient Number") }}</label>
|
||||
<input id="smsir-number" v-model="$parent.notification.smsirNumber" placeholder="9123456789" type="text" maxlength="11" minlength="10" class="form-control" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="smsir-template" class="form-label">{{ $t("Template ID") }}</label>
|
||||
<input id="smsir-template" v-model="$parent.notification.smsirTemplate" placeholder="12345" type="text" class="form-control" required>
|
||||
<i18n-t tag="div" class="form-text" keypath="wayToGetClickSMSIRTemplateID">
|
||||
<template #uptkumaalert>
|
||||
<code>#uptkumaalert#</code>
|
||||
</template>
|
||||
<template #here>
|
||||
<a href="https://app.sms.ir/fast-send/template" target="_blank">{{ $t("here") }}</a>
|
||||
</template>
|
||||
</i18n-t>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import HiddenInput from "../HiddenInput.vue";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
HiddenInput,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -79,6 +79,7 @@ import SendGrid from "./SendGrid.vue";
|
||||
import Brevo from "./Brevo.vue";
|
||||
import YZJ from "./YZJ.vue";
|
||||
import SMSPlanet from "./SMSPlanet.vue";
|
||||
import SMSIR from "./SMSIR.vue";
|
||||
|
||||
/**
|
||||
* Manage all notification form.
|
||||
@@ -95,6 +96,7 @@ const NotificationFormList = {
|
||||
"clicksendsms": ClickSendSMS,
|
||||
"CallMeBot": CallMeBot,
|
||||
"smsc": SMSC,
|
||||
"smsir": SMSIR,
|
||||
"DingDing": DingDing,
|
||||
"discord": Discord,
|
||||
"Elks": Elks,
|
||||
|
||||
Reference in New Issue
Block a user