feat: update to lnbits 1.0.0 (#27)

* feat: update to lnbits 1.0.0
* fix select wallet
* fix splits
* fix: types, postgres errors with cache
---------

Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
This commit is contained in:
dni ⚡ 2024-11-28 12:28:00 +01:00 committed by GitHub
commit 5042d40af6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1300 additions and 1218 deletions

View file

@ -1,7 +1,3 @@
/* globals Quasar, Vue, _, VueQrcode, windowMixin, LNbits, LOCALE */
Vue.component(VueQrcode.name, VueQrcode)
function hashTargets(targets) {
return targets
.filter(isTargetComplete)
@ -17,9 +13,14 @@ function isTargetComplete(target) {
)
}
new Vue({
window.app = Vue.createApp({
el: '#vue',
mixins: [windowMixin],
watch: {
selectedWallet() {
this.getTargets()
}
},
data() {
return {
selectedWallet: null,
@ -38,7 +39,7 @@ new Vue({
return this.deleteTargets()
}
this.targets.splice(index, 1)
this.$q.notify({
Quasar.Notify.create({
message: 'Removed item. You must click to save manually.',
timeout: 500
})
@ -75,7 +76,7 @@ new Vue({
}
)
.then(response => {
this.$q.notify({
Quasar.Notify.create({
message: 'Split payments targets set.',
timeout: 700
})
@ -96,7 +97,7 @@ new Vue({
this.selectedWallet.adminkey
)
.then(response => {
this.$q.notify({
Quasar.Notify.create({
message: 'Split payments targets deleted.',
timeout: 700
})
@ -109,6 +110,5 @@ new Vue({
},
created() {
this.selectedWallet = this.g.user.wallets[0]
this.getTargets()
}
})