1
0
mirror of https://github.com/nbd-wtf/satdress.git synced 2024-11-13 17:30:35 +00:00
satdress-mirror/index.html

164 lines
5.5 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<title>Satdress - Federated Lightning Address Server</title>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="https://i.imgur.com/4yaPtA2.png" />
2021-08-15 14:40:01 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/static/style.css" />
<meta
property="og:title"
content="Satdress - Federated Lightning Address Server"
/>
<meta
property="og:type"
content="website"
/>
<meta
property="og:url"
content="https://github.com/fiatjaf/satdress"
/>
<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."
/>
<meta
property="og:image"
2021-08-15 14:43:53 +00:00
content="https://i.imgur.com/PsT2uoR.png"
/>
2021-08-15 14:43:53 +00:00
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@fiatjaf" />
<meta name="twitter:creator" content="@fiatjaf" />
<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." />
<meta name="twitter:image" content="https://i.imgur.com/PsT2uoR.png" />
</head>
<body>
2021-08-14 23:52:16 +00:00
<main id="main">
2021-08-15 14:40:01 +00:00
<div class="title">{{ siteName }}Satdress</div>
2021-08-14 23:52:16 +00:00
<div class="tagline">Federated Lightning Address Server</div>
2021-08-15 14:40:01 +00:00
<div class="owner">
<a
class="owner-button"
:href="siteOwnerURL"
target="_blank">
Brought to you by <span class="owner-name">{{ siteOwnerName }}</span>
</a>
</div>
2021-08-14 23:52:16 +00:00
<div class="card">
<div class="description">Use the form below to connect your own node to a <b>Lightning Address</b>.</div>
<form action="/grab" method="post">
2021-08-20 12:32:45 +00:00
<div class="field">
<div class="row" style="justify-content: space-between">
<label for="name">
Desired Username
</label>
<label style="float: right">
Is New?
<input type="checkbox" v-model="isNew">
</label>
</div>
2021-08-14 23:52:16 +00:00
<div style="position: relative;">
2021-08-20 12:32:45 +00:00
<input class="input" name="name" id="name">
2021-08-14 23:52:16 +00:00
<span class="suffix" style="position: absolute;">@{{ domain }}</span>
</div>
2021-08-20 12:32:45 +00:00
</div>
<div class="field">
<label for="kind">
2021-08-15 14:40:01 +00:00
Node Backend Type
2021-08-20 12:32:45 +00:00
</label>
<select name="kind" id="kind" id="kind" v-model="kind">
2021-08-14 23:52:16 +00:00
<option value="lnd">LND</option>
<option value="sparko">Sparko</option>
<option value="lnpay">LNPay</option>
<option value="lnbits">LNbits</option>
</select>
2021-08-20 12:32:45 +00:00
</div>
2021-08-14 23:52:16 +00:00
<div v-if="kind == 'lnd'">
2021-08-20 12:32:45 +00:00
<div class="field">
<label for="host">
2021-08-15 14:40:01 +00:00
Host (IP or Domain + Port)
2021-08-20 12:32:45 +00:00
</label>
<input class="input" name="host" id="host">
</div>
<div class="field">
<label for="key">
2021-08-15 14:40:01 +00:00
Invoice Macaroon
2021-08-20 12:32:45 +00:00
</label>
<input class="input" name="key" id="key">
</div>
2021-08-14 23:52:16 +00:00
</div>
<div v-if="kind == 'sparko' || kind == 'lnbits'">
2021-08-20 12:32:45 +00:00
<div class="field">
<label for="host">
2021-08-15 14:40:01 +00:00
Host (IP or Domain + Port)
2021-08-20 12:32:45 +00:00
</label>
<input class="input" name="host" id="host">
</div>
<div class="field">
<label for="key">
2021-08-14 23:52:16 +00:00
Key
2021-08-20 12:32:45 +00:00
</label>
<input class="input" name="key" id="key">
</div>
2021-08-14 23:52:16 +00:00
</div>
<div v-if="kind == 'lnpay'">
2021-08-20 12:32:45 +00:00
<div class="field">
<label for="pak">
2021-08-14 23:52:16 +00:00
Public Access Key (pak)
2021-08-20 12:32:45 +00:00
</label>
<input class="input" name="pak" id="pak">
</div>
<div class="field">
<label for="waki">
2021-08-14 23:52:16 +00:00
Wallet Invoice Key (waki)
2021-08-20 12:32:45 +00:00
</label>
<input class="input" name="waki" id="waki">
</div>
</div>
<div class="field" v-if="!isNew">
<label for="pin">
Pin
2021-08-14 23:52:16 +00:00
</label>
2021-08-20 12:32:45 +00:00
<input class="input" name="pin" id="pin">
2021-08-14 23:52:16 +00:00
</div>
<button class="submit">Submit</button>
</form>
</div>
<div class="resources">
2021-08-15 14:40:01 +00:00
<a
class="resource-button"
href="https://github.com/andrerfneves/lightning-address#readme"
target="_blank">
2021-08-14 23:52:16 +00:00
Lightning Address Documentation
</a>
2021-08-15 14:40:01 +00:00
<a
class="resource-button"
target="_blank"
href="https://github.com/fiatjaf/satdress">
Host this server on your domain!
</a>
2021-08-14 23:52:16 +00:00
</div>
</main>
2021-08-15 14:40:01 +00:00
<script
src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.2.2/vue.global.prod.min.js"
></script>
2021-08-14 23:52:16 +00:00
<script>
const initial = {} // REPLACED WITH SERVER DATA //
2021-08-15 14:40:01 +00:00
const Main = {
data() {
return {
kind: 'lnd',
2021-08-20 12:32:45 +00:00
isNew: true,
2021-08-15 14:40:01 +00:00
...initial,
}
}
};
2021-08-15 14:40:01 +00:00
Vue.createApp(Main).mount('#main');
2021-08-14 23:52:16 +00:00
</script>
</body>
</html>