2020-03-04 23:11:15 +01:00
|
|
|
new Vue({
|
|
|
|
el: '#vue',
|
|
|
|
mixins: [windowMixin],
|
|
|
|
data: function () {
|
|
|
|
return {
|
2020-05-03 13:55:17 -03:00
|
|
|
disclaimerDialog: {
|
2020-04-20 15:27:02 +01:00
|
|
|
show: false,
|
2023-09-27 11:32:03 +01:00
|
|
|
data: {},
|
|
|
|
description: ''
|
2020-05-03 13:55:17 -03:00
|
|
|
},
|
2020-03-04 23:11:15 +01:00
|
|
|
walletName: ''
|
2020-05-03 13:55:17 -03:00
|
|
|
}
|
2020-03-04 23:11:15 +01:00
|
|
|
},
|
2023-09-27 11:32:03 +01:00
|
|
|
computed: {
|
|
|
|
formatDescription() {
|
|
|
|
return LNbits.utils.convertMarkdown(this.description)
|
|
|
|
}
|
|
|
|
},
|
2020-03-04 23:11:15 +01:00
|
|
|
methods: {
|
|
|
|
createWallet: function () {
|
2023-09-25 15:06:00 +02:00
|
|
|
LNbits.api.createAccount(this.walletName).then(res => {
|
|
|
|
window.location = '/wallet?usr=' + res.data.user + '&wal=' + res.data.id
|
|
|
|
})
|
2020-03-10 23:12:22 +01:00
|
|
|
},
|
|
|
|
processing: function () {
|
|
|
|
this.$q.notify({
|
|
|
|
timeout: 0,
|
|
|
|
message: 'Processing...',
|
|
|
|
icon: null
|
2020-05-03 13:55:17 -03:00
|
|
|
})
|
2020-03-04 23:11:15 +01:00
|
|
|
}
|
2023-09-27 11:32:03 +01:00
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.description = SITE_DESCRIPTION
|
2020-03-04 23:11:15 +01:00
|
|
|
}
|
2020-05-03 13:55:17 -03:00
|
|
|
})
|