Added template banner

This commit is contained in:
benarc 2022-02-24 16:03:10 +00:00
parent c1fa5bbcbf
commit e96701cb59
2 changed files with 436 additions and 416 deletions

View file

@ -277,7 +277,7 @@
{% if HIDE_API %} {% if HIDE_API %}
<div class="col-12 col-md-4 q-gutter-y-md"> <div class="col-12 col-md-4 q-gutter-y-md">
{% else %} {% else %}
<div class="col-12 col-md-5 q-gutter-y-md"></div> <div class="col-12 col-md-5 q-gutter-y-md">
<q-card> <q-card>
<q-card-section> <q-card-section>
<h6 class="text-subtitle1 q-mt-none q-mb-sm"> <h6 class="text-subtitle1 q-mt-none q-mb-sm">
@ -292,12 +292,16 @@
<q-separator></q-separator> <q-separator></q-separator>
{% if wallet.lnurlwithdraw_full %} {% if wallet.lnurlwithdraw_full %}
<q-expansion-item group="extras" icon="crop_free" label="Drain Funds"> <q-expansion-item
group="extras"
icon="crop_free"
label="Drain Funds"
>
<q-card> <q-card>
<q-card-section class="text-center"> <q-card-section class="text-center">
<p> <p>
This is an LNURL-withdraw QR code for slurping everything from This is an LNURL-withdraw QR code for slurping everything
this wallet. Do not share with anyone. from this wallet. Do not share with anyone.
</p> </p>
<a href="lightning:{{wallet.lnurlwithdraw_full}}"> <a href="lightning:{{wallet.lnurlwithdraw_full}}">
<qrcode <qrcode
@ -307,8 +311,8 @@
</a> </a>
<p> <p>
It is compatible with <code>balanceCheck</code> and It is compatible with <code>balanceCheck</code> and
<code>balanceNotify</code> so your wallet may keep pulling the <code>balanceNotify</code> so your wallet may keep pulling
funds continuously from here after the first withdraw. the funds continuously from here after the first withdraw.
</p> </p>
</q-card-section> </q-card-section>
</q-card> </q-card>
@ -382,12 +386,17 @@
</q-list> </q-list>
</q-card-section> </q-card-section>
</q-card> </q-card>
{% endif %} {% if AD_SPACE %} {% for AD in AD_SPACE %} {% endif %} {% if AD_SPACE %} {% for ADS in AD_SPACE %} {% set AD =
<img width="100%" src="{{ AD }}" /> {% endfor %} {% endif %} ADS.split(';') %}
<q-card>
<a href="{{ AD[0] }}"
><img width="100%" src="{{ AD[1] }}"
/></a> </q-card
>{% endfor %} {% endif %}
</div>
</div> </div>
</div>
<q-dialog v-model="receive.show" @hide="closeReceiveDialog"> <q-dialog v-model="receive.show" @hide="closeReceiveDialog">
{% raw %} {% raw %}
<q-card <q-card
v-if="!receive.paymentReq" v-if="!receive.paymentReq"
@ -453,7 +462,9 @@
</span> </span>
<span v-else> Create invoice </span> <span v-else> Create invoice </span>
</q-btn> </q-btn>
<q-btn v-close-popup flat color="grey" class="q-ml-auto">Cancel</q-btn> <q-btn v-close-popup flat color="grey" class="q-ml-auto"
>Cancel</q-btn
>
</div> </div>
<q-spinner <q-spinner
v-if="receive.status == 'loading'" v-if="receive.status == 'loading'"
@ -482,14 +493,14 @@
</div> </div>
</q-card> </q-card>
{% endraw %} {% endraw %}
</q-dialog> </q-dialog>
<q-dialog v-model="parse.show" @hide="closeParseDialog"> <q-dialog v-model="parse.show" @hide="closeParseDialog">
<q-card class="q-pa-lg q-pt-xl lnbits__dialog-card"> <q-card class="q-pa-lg q-pt-xl lnbits__dialog-card">
<div v-if="parse.invoice"> <div v-if="parse.invoice">
<h6 v-if="'{{LNBITS_DENOMINATION}}' != 'sats'" class="q-my-none"> <h6 v-if="'{{LNBITS_DENOMINATION}}' != 'sats'" class="q-my-none">
{% raw %} {{ parseFloat(String(parse.invoice.fsat).replaceAll(",", "")) {% raw %} {{ parseFloat(String(parse.invoice.fsat).replaceAll(",",
/ 100 }} {% endraw %} {{LNBITS_DENOMINATION}} {% raw %} "")) / 100 }} {% endraw %} {{LNBITS_DENOMINATION}} {% raw %}
</h6> </h6>
<h6 v-else class="q-my-none"> <h6 v-else class="q-my-none">
{{ parse.invoice.fsat }}{% endraw %} {{LNBITS_DENOMINATION}} {% raw %} {{ parse.invoice.fsat }}{% endraw %} {{LNBITS_DENOMINATION}} {% raw %}
@ -503,13 +514,17 @@
{% endraw %} {% endraw %}
<div v-if="canPay" class="row q-mt-lg"> <div v-if="canPay" class="row q-mt-lg">
<q-btn unelevated color="primary" @click="payInvoice">Pay</q-btn> <q-btn unelevated color="primary" @click="payInvoice">Pay</q-btn>
<q-btn v-close-popup flat color="grey" class="q-ml-auto">Cancel</q-btn> <q-btn v-close-popup flat color="grey" class="q-ml-auto"
>Cancel</q-btn
>
</div> </div>
<div v-else class="row q-mt-lg"> <div v-else class="row q-mt-lg">
<q-btn unelevated disabled color="yellow" text-color="black" <q-btn unelevated disabled color="yellow" text-color="black"
>Not enough funds!</q-btn >Not enough funds!</q-btn
> >
<q-btn v-close-popup flat color="grey" class="q-ml-auto">Cancel</q-btn> <q-btn v-close-popup flat color="grey" class="q-ml-auto"
>Cancel</q-btn
>
</div> </div>
</div> </div>
<div v-else-if="parse.lnurlauth"> <div v-else-if="parse.lnurlauth">
@ -522,8 +537,8 @@
<p> <p>
For every website and for every LNbits wallet, a new keypair will be For every website and for every LNbits wallet, a new keypair will be
deterministically generated so your identity can't be tied to your deterministically generated so your identity can't be tied to your
LNbits wallet or linked across websites. No other data will be shared LNbits wallet or linked across websites. No other data will be
with {{ parse.lnurlauth.domain }}. shared with {{ parse.lnurlauth.domain }}.
</p> </p>
<p>Your public key for <b>{{ parse.lnurlauth.domain }}</b> is:</p> <p>Your public key for <b>{{ parse.lnurlauth.domain }}</b> is:</p>
<p class="q-mx-xl"> <p class="q-mx-xl">
@ -543,7 +558,8 @@
<q-form @submit="payLnurl" class="q-gutter-md"> <q-form @submit="payLnurl" class="q-gutter-md">
<p v-if="parse.lnurlpay.fixed" class="q-my-none text-h6"> <p v-if="parse.lnurlpay.fixed" class="q-my-none text-h6">
<b>{{ parse.lnurlpay.domain }}</b> is requesting {{ <b>{{ parse.lnurlpay.domain }}</b> is requesting {{
parse.lnurlpay.maxSendable | msatoshiFormat }} {{LNBITS_DENOMINATION}} parse.lnurlpay.maxSendable | msatoshiFormat }}
{{LNBITS_DENOMINATION}}
<span v-if="parse.lnurlpay.commentAllowed > 0"> <span v-if="parse.lnurlpay.commentAllowed > 0">
<br /> <br />
and a {{parse.lnurlpay.commentAllowed}}-char comment and a {{parse.lnurlpay.commentAllowed}}-char comment
@ -648,12 +664,15 @@
</div> </div>
</div> </div>
</q-card> </q-card>
</q-dialog> </q-dialog>
<q-dialog v-model="parse.camera.show"> <q-dialog v-model="parse.camera.show">
<q-card class="q-pa-lg q-pt-xl"> <q-card class="q-pa-lg q-pt-xl">
<div class="text-center q-mb-lg"> <div class="text-center q-mb-lg">
<qrcode-stream @decode="decodeQR" class="rounded-borders"></qrcode-stream> <qrcode-stream
@decode="decodeQR"
class="rounded-borders"
></qrcode-stream>
</div> </div>
<div class="row q-mt-lg"> <div class="row q-mt-lg">
<q-btn @click="closeCamera" flat color="grey" class="q-ml-auto" <q-btn @click="closeCamera" flat color="grey" class="q-ml-auto"
@ -661,20 +680,20 @@
> >
</div> </div>
</q-card> </q-card>
</q-dialog> </q-dialog>
<q-dialog v-model="paymentsChart.show"> <q-dialog v-model="paymentsChart.show">
<q-card class="q-pa-sm" style="width: 800px; max-width: unset"> <q-card class="q-pa-sm" style="width: 800px; max-width: unset">
<q-card-section> <q-card-section>
<canvas ref="canvas" width="600" height="400"></canvas> <canvas ref="canvas" width="600" height="400"></canvas>
</q-card-section> </q-card-section>
</q-card> </q-card>
</q-dialog> </q-dialog>
<q-tabs <q-tabs
class="lt-md fixed-bottom left-0 right-0 bg-primary text-white shadow-2 z-max" class="lt-md fixed-bottom left-0 right-0 bg-primary text-white shadow-2 z-max"
active-class="px-0" active-class="px-0"
indicator-color="transparent" indicator-color="transparent"
> >
<q-tab <q-tab
icon="account_balance_wallet" icon="account_balance_wallet"
label="Wallets" label="Wallets"
@ -686,10 +705,10 @@
</q-tab> </q-tab>
<q-tab icon="photo_camera" label="Scan" @click="showCamera"> </q-tab> <q-tab icon="photo_camera" label="Scan" @click="showCamera"> </q-tab>
</q-tabs> </q-tabs>
{% if service_fee > 0 %} {% if service_fee > 0 %}
<div ref="disclaimer"></div> <div ref="disclaimer"></div>
<q-dialog v-model="disclaimerDialog.show"> <q-dialog v-model="disclaimerDialog.show">
<q-card class="q-pa-lg"> <q-card class="q-pa-lg">
<h6 class="q-my-md text-deep-purple">Warning</h6> <h6 class="q-my-md text-deep-purple">Warning</h6>
<p> <p>
@ -701,10 +720,10 @@
</p> </p>
<p> <p>
This service is in BETA, and we hold no responsibility for people losing This service is in BETA, and we hold no responsibility for people losing
access to funds. To encourage you to run your own LNbits installation, any access to funds. To encourage you to run your own LNbits installation,
balance on {% raw %}{{ disclaimerDialog.location.host }}{% endraw %} will any balance on {% raw %}{{ disclaimerDialog.location.host }}{% endraw %}
incur a charge of <strong>{{ service_fee }}% service fee</strong> per will incur a charge of
week. <strong>{{ service_fee }}% service fee</strong> per week.
</p> </p>
<div class="row q-mt-lg"> <div class="row q-mt-lg">
<q-btn <q-btn
@ -718,5 +737,6 @@
> >
</div> </div>
</q-card> </q-card>
</q-dialog> </q-dialog>
{% endif %} {% endblock %} {% endif %} {% endblock %}
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB