paynym support added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-17 11:49:11 +01:00
parent d9bf8a730a
commit 6979c554bc
20 changed files with 147 additions and 12 deletions

View File

@@ -20,7 +20,7 @@
<div class="space-y-8 divide-y divide-gray-700 sm:space-y-5">
<div class="mt-6 sm:mt-5 space-y-6 sm:space-y-5">
<x-input.group :for=" md5('image')" :label="__('Main picture')">
<x-input.group :for=" md5('image')" :label="__('Avatar/Picture')">
<div class="py-4">
@if ($image)
<div class="text-gray-200">{{ __('Preview') }}:</div>
@@ -69,6 +69,11 @@
:placeholder="__('Website')"/>
</x-input.group>
<x-input.group :for="md5('lecturer.paynym')" :label="__('PayNym')">
<x-input autocomplete="off" wire:model.debounce="lecturer.paynym"
:placeholder="__('PayNym')" :hint="__('starts with PM...')"/>
</x-input.group>
<x-input.group :for="md5('lecturer.lightning_address')" :label="__('Lightning Address')">
<x-input autocomplete="off" wire:model.debounce="lecturer.lightning_address"
:placeholder="__('Lightning Address')" :hint="__('for example xy@getalby.com')"/>

View File

@@ -264,6 +264,13 @@
</div>
@endif
@if($payNymQrCode)
<div class="flex flex-col sm:flex-row justify-center space-x-4 border-t border-white py-4 mt-4">
<h1 class="text-2xl text-gray-200">PayNym</h1>
<img src="{{ 'data:image/png;base64, '. $payNymQrCode }}" alt="qrcode">
</div>
@endif
<div wire:ignore>
<div class="flex flex-col sm:flex-row justify-center space-x-4 border-t border-white py-4 mt-4">
@if($libraryItem->lecturer->lightning_address || $libraryItem->lecturer->lnurl || $libraryItem->lecturer->node_id)

View File

@@ -73,6 +73,16 @@
<x-jet-input-error for="nostr" class="mt-2"/>
</div>
<!-- paynym -->
<div class="col-span-6 sm:col-span-4">
<x-jet-label for="paynym" value="{{ __('PayNym') }}"/>
<x-jet-input id="paynym" type="text" class="mt-1 block w-full"
wire:model.defer="state.paynym"
autocomplete="paynym"/>
<p class="text-xs">{{ __('starts with PM...') }}</p>
<x-jet-input-error for="paynym" class="mt-2"/>
</div>
<!-- lightning_address -->
<div class="col-span-6 sm:col-span-4">
<x-jet-label for="lightning_address" value="{{ __('Lightning Address') }}"/>