summaryrefslogtreecommitdiffstats
path: root/src/components/notifications/OneBot.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/OneBot.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/OneBot.vue')
-rw-r--r--src/components/notifications/OneBot.vue34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/components/notifications/OneBot.vue b/src/components/notifications/OneBot.vue
new file mode 100644
index 0000000..63604d6
--- /dev/null
+++ b/src/components/notifications/OneBot.vue
@@ -0,0 +1,34 @@
+<template>
+ <div class="mb-3">
+ <div class="mb-3">
+ <label for="onebot-http-addr" class="form-label">{{ $t("onebotHttpAddress") }}<span style="color: red;"><sup>*</sup></span></label>
+ <input id="HttpUrl" v-model="$parent.notification.httpAddr" type="text" class="form-control" required>
+ </div>
+ <div class="mb-3">
+ <label for="onebot-access-token" class="form-label">AccessToken<span style="color: red;"><sup>*</sup></span></label>
+ <input id="HttpUrl" v-model="$parent.notification.accessToken" type="text" class="form-control" required>
+ <div class="form-text">
+ <p>{{ $t("onebotSafetyTips") }}</p>
+ </div>
+ </div>
+
+ <div class="mb-3">
+ <label for="onebot-msg-type" class="form-label">{{ $t("onebotMessageType") }}</label>
+ <select id="onebot-msg-type" v-model="$parent.notification.msgType" class="form-select">
+ <option value="group">{{ $t("onebotGroupMessage") }}</option>
+ <option value="private">{{ $t("onebotPrivateMessage") }}</option>
+ </select>
+ </div>
+
+ <div class="mb-3">
+ <label for="onebot-reciever-id" class="form-label">{{ $t("onebotUserOrGroupId") }}<span style="color: red;"><sup>*</sup></span></label>
+ <input id="secretKey" v-model="$parent.notification.recieverId" type="text" class="form-control" required>
+ </div>
+
+ <div class="form-text">
+ <i18n-t tag="p" keypath="Read more:">
+ <a href="https://github.com/botuniverse/onebot-11" target="_blank">https://github.com/botuniverse/onebot-11</a>
+ </i18n-t>
+ </div>
+ </div>
+</template>