diff options
Diffstat (limited to 'src/components/notifications/Nostr.vue')
-rw-r--r-- | src/components/notifications/Nostr.vue | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/components/notifications/Nostr.vue b/src/components/notifications/Nostr.vue new file mode 100644 index 0000000..83f84b0 --- /dev/null +++ b/src/components/notifications/Nostr.vue @@ -0,0 +1,26 @@ +<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> |