enable user donations

This commit is contained in:
Benjamin Takats
2023-01-18 16:02:06 +01:00
parent 19ddbc9880
commit faa764fa92
4 changed files with 17 additions and 5 deletions

View File

@@ -660,5 +660,8 @@
"Thanks, continue here": "Danke, weiter geht es hier", "Thanks, continue here": "Danke, weiter geht es hier",
"Copy the LNURL and paste it under \"Send\" or scan the QR code with \"Send\". LNURL-auth enabled wallets:": "Kopiere die LNURL und füge sie unter \"Senden\" ein oder scanne den QR-Code mit \"Senden\". LNURL-auth fähige Wallets:", "Copy the LNURL and paste it under \"Send\" or scan the QR code with \"Send\". LNURL-auth enabled wallets:": "Kopiere die LNURL und füge sie unter \"Senden\" ein oder scanne den QR-Code mit \"Senden\". LNURL-auth fähige Wallets:",
"Without @": "Ohne @", "Without @": "Ohne @",
"Scan this code or copy + paste it to your lightning wallet. Or click to login with your browser's wallet.": "Scanne diesen Code oder copy + paste ihn in deine Lightning-Wallet ein. Oder klicke, um dich mit der Wallet deines Browsers anzumelden." "Scan this code or copy + paste it to your lightning wallet. Or click to login with your browser's wallet.": "Scanne diesen Code oder copy + paste ihn in deine Lightning-Wallet ein. Oder klicke, um dich mit der Wallet deines Browsers anzumelden.",
"Lightning Address": "Lightning-Adresse",
"Node Id": "",
"LNURL": ""
} }

View File

@@ -653,5 +653,8 @@
"Thanks, continue here": "", "Thanks, continue here": "",
"Copy the LNURL and paste it under \"Send\" or scan the QR code with \"Send\". LNURL-auth enabled wallets:": "", "Copy the LNURL and paste it under \"Send\" or scan the QR code with \"Send\". LNURL-auth enabled wallets:": "",
"Without @": "", "Without @": "",
"Scan this code or copy + paste it to your lightning wallet. Or click to login with your browser's wallet.": "" "Scan this code or copy + paste it to your lightning wallet. Or click to login with your browser's wallet.": "",
"Lightning Address": "",
"Node Id": "",
"LNURL": ""
} }

View File

@@ -26,6 +26,12 @@
<div class="flex w-0 flex-1"> <div class="flex w-0 flex-1">
@if($pleb->lightning_address || $pleb->lnurl || $pleb->node_id) @if($pleb->lightning_address || $pleb->lnurl || $pleb->node_id)
<div x-on:click="show = !show" <div x-on:click="show = !show"
x-transition:enter="transition ease-out duration-300"
x-transition:enter-start="opacity-0"
x-transition:enter-end="opacity-100"
x-transition:leave="transition ease-in duration-300"
x-transition:leave-start="opacity-100"
x-transition:leave-end="opacity-0 scale-90"
class="relative -mr-px inline-flex w-0 flex-1 items-center justify-center rounded-bl-lg border border-transparent py-4 text-xl font-bold text-gray-800 hover:text-gray-900"> class="relative -mr-px inline-flex w-0 flex-1 items-center justify-center rounded-bl-lg border border-transparent py-4 text-xl font-bold text-gray-800 hover:text-gray-900">
<i class="fa-thin fa-bolt-lightning"></i> <i class="fa-thin fa-bolt-lightning"></i>
<span class="ml-3" x-text="show ? 'Schließen' : 'Donate'"></span> <span class="ml-3" x-text="show ? 'Schließen' : 'Donate'"></span>

View File

@@ -63,7 +63,7 @@
<!-- lightning_address --> <!-- lightning_address -->
<div class="col-span-6 sm:col-span-4"> <div class="col-span-6 sm:col-span-4">
<x-jet-label for="name" value="{{ __('lightning_address') }}"/> <x-jet-label for="lightning_address" value="{{ __('Lightning Address') }}"/>
<x-jet-input id="lightning_address" type="text" class="mt-1 block w-full" wire:model.defer="state.lightning_address" <x-jet-input id="lightning_address" type="text" class="mt-1 block w-full" wire:model.defer="state.lightning_address"
autocomplete="lightning_address"/> autocomplete="lightning_address"/>
<x-jet-input-error for="lightning_address" class="mt-2"/> <x-jet-input-error for="lightning_address" class="mt-2"/>
@@ -71,7 +71,7 @@
<!-- lnurl --> <!-- lnurl -->
<div class="col-span-6 sm:col-span-4"> <div class="col-span-6 sm:col-span-4">
<x-jet-label for="name" value="{{ __('lnurl') }}"/> <x-jet-label for="lnurl" value="{{ __('LNURL') }}"/>
<x-jet-input id="lnurl" type="text" class="mt-1 block w-full" wire:model.defer="state.lnurl" <x-jet-input id="lnurl" type="text" class="mt-1 block w-full" wire:model.defer="state.lnurl"
autocomplete="lnurl"/> autocomplete="lnurl"/>
<x-jet-input-error for="lnurl" class="mt-2"/> <x-jet-input-error for="lnurl" class="mt-2"/>
@@ -79,7 +79,7 @@
<!-- node_id --> <!-- node_id -->
<div class="col-span-6 sm:col-span-4"> <div class="col-span-6 sm:col-span-4">
<x-jet-label for="name" value="{{ __('node_id') }}"/> <x-jet-label for="node_id" value="{{ __('Node Id') }}"/>
<x-jet-input id="node_id" type="text" class="mt-1 block w-full" wire:model.defer="state.node_id" <x-jet-input id="node_id" type="text" class="mt-1 block w-full" wire:model.defer="state.node_id"
autocomplete="node_id"/> autocomplete="node_id"/>
<x-jet-input-error for="node_id" class="mt-2"/> <x-jet-input-error for="node_id" class="mt-2"/>