feat: remove lnurl from api (#91)
This commit is contained in:
parent
1d91b50a67
commit
4784ebc9f2
4 changed files with 25 additions and 48 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "print.html" %} {% block page %}
|
||||
<div class="row justify-center">
|
||||
<div class="qr">
|
||||
<lnbits-qrcode value="lightning:{{ lnurl }}"></lnbits-qrcode>
|
||||
<lnbits-qrcode :value="lnurl"></lnbits-qrcode>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %} {% block styles %}
|
||||
|
|
@ -15,10 +15,16 @@
|
|||
window.app = Vue.createApp({
|
||||
el: '#vue',
|
||||
created() {
|
||||
const url = window.location.origin + '/lnurlp/{{ link_id }}'
|
||||
const bytes = new TextEncoder().encode(url)
|
||||
const bech32 = NostrTools.nip19.encodeBytes('lnurl', bytes)
|
||||
this.lnurl = `lightning:${bech32.toUpperCase()}`
|
||||
window.print()
|
||||
},
|
||||
data() {
|
||||
return {width: window.innerWidth * 0.5}
|
||||
return {
|
||||
width: window.innerWidth * 0.5
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue