summaryrefslogtreecommitdiffstats
path: root/src/components/notifications/SMSC.vue
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-11-26 09:28:28 +0100
committerDaniel Baumann <daniel@debian.org>2024-11-26 12:25:58 +0100
commita1882b67c41fe9901a0cd8059b5cc78a5beadec0 (patch)
tree2a24507c67aa99a15416707b2f7e645142230ed8 /src/components/notifications/SMSC.vue
parentInitial commit. (diff)
downloaduptime-kuma-upstream.tar.xz
uptime-kuma-upstream.zip
Adding upstream version 2.0.0~beta.0+dfsg.upstream/2.0.0_beta.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'src/components/notifications/SMSC.vue')
-rw-r--r--src/components/notifications/SMSC.vue43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/components/notifications/SMSC.vue b/src/components/notifications/SMSC.vue
new file mode 100644
index 0000000..36a0a89
--- /dev/null
+++ b/src/components/notifications/SMSC.vue
@@ -0,0 +1,43 @@
+<template>
+ <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>
+ </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>
+ <HiddenInput id="smsc-key" v-model="$parent.notification.smscPassword" :required="true" autocomplete="new-password"></HiddenInput>
+ </div>
+ <div class="mb-3">
+ <div class="form-text">
+ {{ $t("checkPrice", ['СМСЦ']) }}
+ <a href="https://smsc.kz/tariffs/" target="_blank">https://smsc.kz/tariffs/</a>
+ </div>
+ </div>
+ <div class="mb-3">
+ <label for="smsc-to-number" class="form-label">{{ $t("Recipient Number") }}</label>
+ <input id="smsc-to-number" v-model="$parent.notification.smscToNumber" type="text" minlength="11" class="form-control" required>
+ </div>
+ <div class="mb-3">
+ <label for="smsc-sender-name" class="form-label">{{ $t("From Name/Number") }}</label>
+ <input id="smsc-sender-name" v-model="$parent.notification.smscSenderName" type="text" minlength="1" maxlength="15" class="form-control">
+ <div class="form-text">{{ $t("Leave blank to use a shared sender number.") }}</div>
+ </div>
+ <div class="mb-3">
+ <label for="smsc-platform" class="form-label">{{ $t("smscTranslit") }}</label><span style="color: red;"><sup>*</sup></span>
+ <select id="smsc-platform" v-model="$parent.notification.smscTranslit" class="form-select">
+ <option value="0">{{ $t("Default") }}</option>
+ <option value="1">Translit</option>
+ <option value="2">MpaHc/Ium</option>
+ </select>
+ </div>
+</template>
+<script>
+import HiddenInput from "../HiddenInput.vue";
+
+export default {
+ components: {
+ HiddenInput,
+ },
+};
+</script>