mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-31 11:40:39 +00:00
3fe91c52cb
Missing webhook json description Ajust Telegram context-based sentence, (also changed translated language files) Missing primary base url label Wrong PromoSMS i18n Missing Octopush legacy hint Missing Matrix i18n Missing push url i18n
34 lines
1.6 KiB
Vue
34 lines
1.6 KiB
Vue
<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="one-time-code" :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>
|