refactor: render variables for jinja, components and window vars (#3014)

Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
dni ⚡
2025-05-13 11:49:46 +02:00
committed by GitHub
co-authored by Tiago Vasconcelos Vlad Stan
parent 7b29223e95
commit ceb8203353
8 changed files with 91 additions and 115 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -495,8 +495,10 @@ window.windowMixin = {
? this.$q.localStorage.getItem('lnbits.backgroundImage')
: USE_DEFAULT_BGIMAGE,
isUserAuthorized: false,
isSatsDenomination: WINDOW_SETTINGS['LNBITS_DENOMINATION'] == 'sats',
walletEventListeners: [],
backgroundImage: ''
backgroundImage: '',
...WINDOW_SETTINGS
}
},
+2 -2
View File
@@ -101,8 +101,8 @@ window.app = Vue.createApp({
}
},
created() {
this.description = SITE_DESCRIPTION
this.allowedRegister = ALLOWED_REGISTER
this.description = this.SITE_DESCRIPTION
this.allowedRegister = this.LNBITS_NEW_ACCOUNTS_ALLOWED
this.authAction =
!this.allowedRegister ||
Quasar.LocalStorage.getItem('lnbits.disclaimerShown')