mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-24 15:52:33 +02:00

* Add nostr DM notification provider * require crypto for node 18 compatibility * remove whitespace Co-authored-by: Frank Elsinga <frank@elsinga.de> * move closer to where it is used * simplify success or failure logic * don't clobber the non-alert msg * Update server/notification-providers/nostr.js Co-authored-by: Frank Elsinga <frank@elsinga.de> * polyfills required for node <= 18 * resolve linter warnings * missing comma * better websocket polyfill, update deprecated function * add conditional polyfills for node versions * lint * use correct npm for package-lock --------- Co-authored-by: Frank Elsinga <frank@elsinga.de> Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
26 lines
1.3 KiB
Vue
26 lines
1.3 KiB
Vue
<template>
|
|
<div class="mb-3">
|
|
<label for="nostr-relays" class="form-label">{{ $t("nostrRelays") }}<span style="color: red;"><sup>*</sup></span></label>
|
|
<textarea id="nostr-relays" v-model="$parent.notification.relays" class="form-control" :required="true" placeholder="wss://127.0.0.1:7777/"></textarea>
|
|
<small class="form-text text-muted">{{ $t("nostrRelaysHelp") }}</small>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="nostr-sender" class="form-label">{{ $t("nostrSender") }}<span style="color: red;"><sup>*</sup></span></label>
|
|
<HiddenInput id="nostr-sender" v-model="$parent.notification.sender" autocomplete="new-password" :required="true"></HiddenInput>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="nostr-recipients" class="form-label">{{ $t("nostrRecipients") }}<span style="color: red;"><sup>*</sup></span></label>
|
|
<textarea id="nostr-recipients" v-model="$parent.notification.recipients" class="form-control" :required="true" placeholder="npub123... npub789..."></textarea>
|
|
<small class="form-text text-muted">{{ $t("nostrRecipientsHelp") }}</small>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import HiddenInput from "../HiddenInput.vue";
|
|
|
|
export default {
|
|
components: {
|
|
HiddenInput,
|
|
},
|
|
};
|
|
</script>
|