mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-19 14:21:50 +01:00
bundle/format
This commit is contained in:
parent
42b3616b03
commit
0185f1e465
@ -25,7 +25,7 @@
|
||||
} : ''"
|
||||
>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<q-card
|
||||
:style="$q.screen.lt.md ? {
|
||||
background: $q.screen.lt.md ? 'none !important': ''
|
||||
|
18
lnbits/static/bundle.min.js
vendored
18
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
@ -475,7 +475,7 @@ window.windowMixin = {
|
||||
methods: {
|
||||
flipWallets(smallScreen) {
|
||||
this.walletFlip = !this.walletFlip
|
||||
if(this.walletFlip && smallScreen){
|
||||
if (this.walletFlip && smallScreen) {
|
||||
this.g.visibleDrawer = false
|
||||
}
|
||||
this.$q.localStorage.set('lnbits.walletFlip', this.walletFlip)
|
||||
|
@ -158,14 +158,22 @@
|
||||
show-if-above
|
||||
:elevated="$q.screen.lt.md"
|
||||
>
|
||||
<q-item-label :style="$q.dark.isActive ? 'color:rgba(255, 255, 255, 0.64)' : ''" class="q-item__label q-item__label--header" header v-text="$t('wallets')"></q-item-label>
|
||||
<q-btn
|
||||
flat
|
||||
:icon=" walletFlip ? 'keyboard_arrow_right' : 'keyboard_arrow_down'"
|
||||
class="absolute-top-right"
|
||||
@click="flipWallets($q.screen.lt.md)"
|
||||
></q-btn>
|
||||
<lnbits-wallet-list v-if="!walletFlip" :balance="balance"></lnbits-wallet-list>
|
||||
<q-item-label
|
||||
:style="$q.dark.isActive ? 'color:rgba(255, 255, 255, 0.64)' : ''"
|
||||
class="q-item__label q-item__label--header"
|
||||
header
|
||||
v-text="$t('wallets')"
|
||||
></q-item-label>
|
||||
<q-btn
|
||||
flat
|
||||
:icon=" walletFlip ? 'keyboard_arrow_right' : 'keyboard_arrow_down'"
|
||||
class="absolute-top-right"
|
||||
@click="flipWallets($q.screen.lt.md)"
|
||||
></q-btn>
|
||||
<lnbits-wallet-list
|
||||
v-if="!walletFlip"
|
||||
:balance="balance"
|
||||
></lnbits-wallet-list>
|
||||
|
||||
<lnbits-manage
|
||||
:show-admin="'{{LNBITS_ADMIN_UI}}' == 'True'"
|
||||
@ -179,72 +187,68 @@
|
||||
{% endblock %} {% block page_container %}
|
||||
<q-page-container>
|
||||
<q-page class="q-px-md q-py-lg" :class="{'q-px-lg': $q.screen.gt.xs}">
|
||||
|
||||
|
||||
<q-scroll-area
|
||||
v-if="walletFlip"
|
||||
|
||||
style="
|
||||
height: 130px;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
"
|
||||
>
|
||||
<div class="row no-wrap q-gutter-md q-pr-md">
|
||||
<q-card
|
||||
v-for="wallet in g.user.wallets"
|
||||
:key="wallet.id"
|
||||
class="wallet-list-card"
|
||||
bordered
|
||||
tag="a"
|
||||
:href="wallet.url"
|
||||
:style="
|
||||
v-if="walletFlip"
|
||||
style="
|
||||
height: 130px;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
"
|
||||
>
|
||||
<div class="row no-wrap q-gutter-md q-pr-md">
|
||||
<q-card
|
||||
v-for="wallet in g.user.wallets"
|
||||
:key="wallet.id"
|
||||
class="wallet-list-card"
|
||||
bordered
|
||||
tag="a"
|
||||
:href="wallet.url"
|
||||
:style="
|
||||
g.wallet && g.wallet.id === wallet.id
|
||||
? `border: 1px solid ${primaryColor}; width: 250px; text-decoration: none;`
|
||||
: 'width: 250px; text-decoration: none;'
|
||||
"
|
||||
:class="{
|
||||
:class="{
|
||||
'active-wallet-card': g.wallet && g.wallet.id === wallet.id
|
||||
}"
|
||||
>
|
||||
<q-card-section>
|
||||
<div class="row items-center">
|
||||
<q-avatar
|
||||
size="lg"
|
||||
:color="
|
||||
>
|
||||
<q-card-section>
|
||||
<div class="row items-center">
|
||||
<q-avatar
|
||||
size="lg"
|
||||
:color="
|
||||
g.wallet && g.wallet.id === wallet.id
|
||||
? $q.dark.isActive
|
||||
? 'primary'
|
||||
: 'primary'
|
||||
: 'grey-5'
|
||||
"
|
||||
>
|
||||
<q-icon
|
||||
name="flash_on"
|
||||
:size="$q.dark.isActive ? '21px' : '20px'"
|
||||
:color="$q.dark.isActive ? 'black' : 'grey-3'"
|
||||
></q-icon>
|
||||
</q-avatar>
|
||||
<div
|
||||
class="text-h6 q-pl-md"
|
||||
:class="{
|
||||
>
|
||||
<q-icon
|
||||
name="flash_on"
|
||||
:size="$q.dark.isActive ? '21px' : '20px'"
|
||||
:color="$q.dark.isActive ? 'black' : 'grey-3'"
|
||||
></q-icon>
|
||||
</q-avatar>
|
||||
<div
|
||||
class="text-h6 q-pl-md"
|
||||
:class="{
|
||||
'text-bold': g.wallet && g.wallet.id === wallet.id
|
||||
}"
|
||||
v-text="wallet.name"
|
||||
></div>
|
||||
</div>
|
||||
<div class="row items-center q-pt-sm">
|
||||
<h6 class="q-my-none text-no-wrap">
|
||||
<strong v-text="wallet.fsat"></strong>
|
||||
<small> {{LNBITS_DENOMINATION}}</small>
|
||||
</h6>
|
||||
</div>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</div>
|
||||
</q-scroll-area>
|
||||
|
||||
v-text="wallet.name"
|
||||
></div>
|
||||
</div>
|
||||
<div class="row items-center q-pt-sm">
|
||||
<h6 class="q-my-none text-no-wrap">
|
||||
<strong v-text="wallet.fsat"></strong>
|
||||
<small> {{LNBITS_DENOMINATION}}</small>
|
||||
</h6>
|
||||
</div>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</div>
|
||||
</q-scroll-area>
|
||||
|
||||
{% block page %}{% endblock %}
|
||||
</q-page>
|
||||
|
@ -1,11 +1,9 @@
|
||||
<template id="lnbits-wallet-list">
|
||||
|
||||
<q-list
|
||||
v-if="user && user.wallets.length"
|
||||
dense
|
||||
class="lnbits-drawer__q-list"
|
||||
>
|
||||
|
||||
<q-item
|
||||
v-for="wallet in wallets"
|
||||
:key="wallet.id"
|
||||
|
Loading…
x
Reference in New Issue
Block a user