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-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">
|
2022-01-18 23:50:47 +00:00
|
|
|
<b>{{ name }}@{{ actual_domain }}</b> is your new Lightning Address!
|
2021-08-27 02:57:36 +00:00
|
|
|
</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>
|