What changed, and why it matters
This commit simply swaps standard HTML <img> tags for Quasar's <q-img> component across a handful of Vue templates so images are lazy-loaded (loaded only when they come into view). It is a routine performance/user-experience change with no apparent security relevance.
No security action required. Treat as a normal UI/performance improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff replaces native elements with Quasar’s
Changed components
lnbits/templates/components.vuelnbits/templates/components/admin/fiat_providers.vuelnbits/templates/components/lnbits-header.vuelnbits/templates/pages/home.vuelnbits/templates/pages/wallet.vueInspect captured patch +13 / −13
diff --git a/lnbits/templates/components.vue b/lnbits/templates/components.vue
index f94e5d8..3e5d363 100644
--- a/lnbits/templates/components.vue
+++ b/lnbits/templates/components.vue
@@ -525,12 +525,12 @@ include('components/lnbits-wallet-extra.vue') %}
<q-tooltip :model-value="href === '' ? value : href"></q-tooltip>
</qrcode-vue>
</a>
- <img
+ <q-img
:src="logo"
class="qrcode__image"
alt="qrcode icon"
style="pointer-events: none"
- />
+ ></q-img>
</div>
<div
v-if="showButtons"
diff --git a/lnbits/templates/components/admin/fiat_providers.vue b/lnbits/templates/components/admin/fiat_providers.vue
index 873f99c..7302d21 100644
--- a/lnbits/templates/components/admin/fiat_providers.vue
+++ b/lnbits/templates/components/admin/fiat_providers.vue
@@ -15,7 +15,7 @@
<template v-slot:header>
<q-item-section avatar>
<q-avatar>
- <img src="/static/images/stripe_logo.ico" />
+ <q-img src="/static/images/stripe_logo.ico"></q-img>
</q-avatar>
</q-item-section>
@@ -279,7 +279,7 @@
<template v-slot:header>
<q-item-section avatar>
<q-avatar>
- <img src="/static/images/square_logo.png" />
+ <q-img src="/static/images/square_logo.png"></q-img>
</q-avatar>
</q-item-section>
diff --git a/lnbits/templates/components/lnbits-header.vue b/lnbits/templates/components/lnbits-header.vue
index e2cd4c5..e13d1fd 100644
--- a/lnbits/templates/components/lnbits-header.vue
+++ b/lnbits/templates/components/lnbits-header.vue
@@ -22,12 +22,12 @@
></q-btn>
<q-toolbar-title>
<q-btn flat no-caps dense size="lg" type="a" href="/">
- <img
+ <q-img
v-if="customLogoUrl"
height="30px"
alt="Logo"
:src="customLogoUrl"
- />
+ ></q-img>
<span v-else-if="!titleIsLnbits"><strong>LN</strong>bits</span>
<span v-else v-text="title"></span>
</q-btn>
@@ -81,11 +81,11 @@
>
<template v-slot:label>
<div>
- <img
+ <q-img
v-if="hasUserPicture"
:src="userPictureUrl"
style="max-width: 32px"
- />
+ ></q-img>
<q-icon v-else name="account_circle" />
</div>
</template>
diff --git a/lnbits/templates/pages/home.vue b/lnbits/templates/pages/home.vue
index 9208b9c..048ce45 100644
--- a/lnbits/templates/pages/home.vue
+++ b/lnbits/templates/pages/home.vue
@@ -150,8 +150,8 @@
class="flex justify-center q-col-gutter-sm q-mb-lg"
>
<a :href="ad[0]" class="col lnbits-ad" v-for="ad in g.ads">
- <img class="full-width" v-if="$q.dark.isActive" :src="ad[1]" />
- <img class="full-width" v-else :src="ad[2]" />
+ <q-img class="full-width" v-if="$q.dark.isActive" :src="ad[1]"></q-img>
+ <q-img class="full-width" v-else :src="ad[2]"></q-img>
</a>
</div>
<lnbits-home-logos />
diff --git a/lnbits/templates/pages/wallet.vue b/lnbits/templates/pages/wallet.vue
index d743da2..00bb5e3 100644
--- a/lnbits/templates/pages/wallet.vue
+++ b/lnbits/templates/pages/wallet.vue
@@ -335,7 +335,7 @@
>
<q-item-section avatar>
<q-avatar square>
- <img src="/static/images/logos/lnbits.png" />
+ <q-img src="/static/images/logos/lnbits.png"></q-img>
</q-avatar>
</q-item-section>
<q-item-section>
@@ -354,7 +354,7 @@
>
<q-item-section avatar>
<q-avatar>
- <img src="/static/images/stripe_logo.ico" />
+ <q-img src="/static/images/stripe_logo.ico"></q-img>
</q-avatar>
</q-item-section>
<q-item-section>
@@ -687,7 +687,7 @@
v-text="parse.lnurlpay.description"
></p>
<p class="col-4 q-pl-md" v-if="parse.lnurlpay.image">
- <q-img :src="parse.lnurlpay.image" />
+ <q-img :src="parse.lnurlpay.image"></q-img>
</p>
</div>
<div class="row">
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.