feat: remove lnurl from api (#91)

This commit is contained in:
dni ⚡ 2025-08-18 10:55:13 +02:00 committed by GitHub
commit 4784ebc9f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 48 deletions

View file

@ -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>