diff options
Diffstat (limited to 'src/components/notifications/Matrix.vue')
-rw-r--r-- | src/components/notifications/Matrix.vue | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/components/notifications/Matrix.vue b/src/components/notifications/Matrix.vue new file mode 100644 index 0000000..a9fd634 --- /dev/null +++ b/src/components/notifications/Matrix.vue @@ -0,0 +1,34 @@ +<template> + <div class="mb-3"> + <label for="homeserver-url" class="form-label">{{ $t("matrixHomeserverURL") }}</label><span style="color: red;"><sup>*</sup></span> + <input id="homeserver-url" v-model="$parent.notification.homeserverUrl" type="text" class="form-control" :required="true"> + </div> + <div class="mb-3"> + <label for="internal-room-id" class="form-label">{{ $t("Internal Room Id") }}</label><span style="color: red;"><sup>*</sup></span> + <input id="internal-room-id" v-model="$parent.notification.internalRoomId" type="text" class="form-control" required="true"> + </div> + <div class="mb-3"> + <label for="access-token" class="form-label">{{ $t("Access Token") }}</label><span style="color: red;"><sup>*</sup></span> + <HiddenInput id="access-token" v-model="$parent.notification.accessToken" :required="true" autocomplete="new-password" :maxlength="500"></HiddenInput> + </div> + + <div class="form-text"> + <span style="color: red;"><sup>*</sup></span>{{ $t("Required") }} + <p style="margin-top: 8px;"> + {{ $t("matrixDesc1") }} + </p> + <i18n-t tag="p" keypath="matrixDesc2" style="margin-top: 8px;"> + <code>curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/r0/login"</code>. + </i18n-t> + </div> +</template> + +<script> +import HiddenInput from "../HiddenInput.vue"; + +export default { + components: { + HiddenInput, + }, +}; +</script> |