summaryrefslogtreecommitdiffstats
path: root/src/components/notifications/RocketChat.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/notifications/RocketChat.vue')
-rw-r--r--src/components/notifications/RocketChat.vue27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/components/notifications/RocketChat.vue b/src/components/notifications/RocketChat.vue
new file mode 100644
index 0000000..7846606
--- /dev/null
+++ b/src/components/notifications/RocketChat.vue
@@ -0,0 +1,27 @@
+<template>
+ <div class="mb-3">
+ <label for="rocket-webhook-url" class="form-label">{{ $t("Webhook URL") }}<span style="color: red;"><sup>*</sup></span></label>
+ <input id="rocket-webhook-url" v-model="$parent.notification.rocketwebhookURL" type="text" class="form-control" required>
+ <label for="rocket-username" class="form-label">{{ $t("Username") }}</label>
+ <input id="rocket-username" v-model="$parent.notification.rocketusername" type="text" class="form-control">
+ <label for="rocket-iconemo" class="form-label">{{ $t("Icon Emoji") }}</label>
+ <input id="rocket-iconemo" v-model="$parent.notification.rocketiconemo" type="text" class="form-control">
+ <label for="rocket-channel" class="form-label">{{ $t("Channel Name") }}</label>
+ <input id="rocket-channel-name" v-model="$parent.notification.rocketchannel" type="text" class="form-control">
+ <div class="form-text">
+ <span style="color: red;"><sup>*</sup></span>{{ $t("Required") }}
+ <i18n-t tag="p" keypath="aboutWebhooks" style="margin-top: 8px;">
+ <a href="https://docs.rocket.chat/guides/administration/administration/integrations" target="_blank">https://docs.rocket.chat/guides/administration/administration/integrations</a>
+ </i18n-t>
+ <p style="margin-top: 8px;">
+ {{ $t("aboutChannelName", [$t("rocket.chat")]) }}
+ </p>
+ <p style="margin-top: 8px;">
+ {{ $t("aboutKumaURL") }}
+ </p>
+ <i18n-t tag="p" keypath="emojiCheatSheet" style="margin-top: 8px;">
+ <a href="https://www.webfx.com/tools/emoji-cheat-sheet/" target="_blank">https://www.webfx.com/tools/emoji-cheat-sheet/</a>
+ </i18n-t>
+ </div>
+ </div>
+</template>