2021-08-25 10:00:16 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
2021-08-27 02:57:36 +00:00
< title > Lightning Address Saved | Satdress< / title >
2021-08-25 10:00:16 +00:00
< meta charset = "utf-8" / >
< link rel = "icon" type = "image/png" href = "https://i.imgur.com/4yaPtA2.png" / >
2021-08-28 12:13:16 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2021-08-25 10:00:16 +00:00
< link rel = "stylesheet" href = "/static/style.css" / >
2021-08-27 02:57:36 +00:00
< meta
property="og:title"
content="Satdress - Federated Lightning Address Server"
/>
2021-08-28 12:13:16 +00:00
< meta property = "og:type" content = "website" / >
< meta property = "og:url" content = "https://github.com/fiatjaf/satdress" / >
2021-08-27 02:57:36 +00:00
< meta
property="og:description"
content="Satdress is a Federated Lightning Address server allowing you to connect Lightning nodes to Lightning Addresses. Satdress follows the Lightning Address protocol and aims to provide an easy-to-deploy Bridge Server."
/>
2021-08-28 12:13:16 +00:00
< meta property = "og:image" content = "https://i.imgur.com/PsT2uoR.png" / >
2021-08-27 02:57:36 +00:00
< meta name = "twitter:card" content = "summary_large_image" / >
< meta name = "twitter:site" content = "@fiatjaf" / >
< meta name = "twitter:creator" content = "@fiatjaf" / >
2021-08-28 12:13:16 +00:00
< meta
name="twitter:title"
content="Satdress - Federated Lightning Address Server"
/>
< meta
name="twitter:description"
content="Satdress is a Federated Lightning Address server allowing you to connect Lightning nodes to Lightning Addresses. Satdress follows the Lightning Address protocol and aims to provide an easy-to-deploy Bridge Server."
/>
2021-08-27 02:57:36 +00:00
< meta name = "twitter:image" content = "https://i.imgur.com/PsT2uoR.png" / >
2021-08-28 12:13:16 +00:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.min.js" > < / script >
2021-08-25 10:00:16 +00:00
< / head >
< body >
< main id = "main" >
2021-08-27 02:57:36 +00:00
< div class = "title" > Success!< / div >
< div class = "card" >
< div class = "description" >
< b > username@domain.com< / b > is your new Lightning Address!
< / div >
< div class = "bold-small" >
2021-08-28 12:13:16 +00:00
In order to edit the configuration of this address in the future you
must save this secret pin:
2021-08-27 02:57:36 +00:00
< / div >
2021-08-28 12:13:16 +00:00
< div class = "code" > {{ pin }}< / div >
< button class = "copy-button" @ click = "copyToClipboard" >
{{ copied ? 'Copied!' : 'Copy Secret PIN' }}
< / button >
2021-08-27 02:57:36 +00:00
< div class = "bold-small" >
2021-08-28 12:13:16 +00:00
To ensure the connection with your Lightning backend is configured
properly, we've created a test invoice that can be seen below.
2021-08-27 02:57:36 +00:00
< / div >
2021-08-28 12:13:16 +00:00
< canvas id = "qr" > < / canvas >
< div class = "code" > {{ invoice }}< / div >
2021-08-27 02:57:36 +00:00
< / div >
< div class = "resources" >
2021-08-28 12:13:16 +00:00
< a class = "resource-button" target = "_blank" href = "https://t.me/lnurl" >
2021-08-27 02:57:36 +00:00
Not working? Ask for help!
< / a >
< a
class="resource-button"
href="https://github.com/andrerfneves/lightning-address#readme"
2021-08-28 12:13:16 +00:00
target="_blank"
>
2021-08-27 02:57:36 +00:00
More information on Lightning Address
< / a >
< / div >
2021-08-25 10:00:16 +00:00
< / main >
2021-08-28 12:13:16 +00:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/vue/3.2.2/vue.global.prod.min.js" > < / script >
2021-08-25 10:00:16 +00:00
< script >
const initial = {} // REPLACED WITH SERVER DATA
const Main = {
data() {
return {
...initial,
2021-08-28 12:13:16 +00:00
copied: false
2021-08-25 10:00:16 +00:00
}
2021-08-28 12:13:16 +00:00
},
methods: {
copyToClipboard() {
navigator.clipboard.writeText(this.pin)
this.copied = true
setTimeout(() => {
this.copied = false
}, 5000)
}
},
mounted() {
new QRious({
element: document.getElementById('qr'),
value: this.invoice,
size: 300
})
2021-08-25 10:00:16 +00:00
}
2021-08-28 12:13:16 +00:00
}
2021-08-25 10:00:16 +00:00
2021-08-28 12:13:16 +00:00
Vue.createApp(Main).mount('#main')
2021-08-25 10:00:16 +00:00
< / script >
< / body >
< / html >