diff --git a/.gitignore b/.gitignore
index 0152b6e..62836ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,6 @@
__pycache__
node_modules
.mypy_cache
+.pytest_cache
.venv
+data
diff --git a/static/index.js b/static/index.js
new file mode 100644
index 0000000..888f079
--- /dev/null
+++ b/static/index.js
@@ -0,0 +1,15 @@
+window.PageLndhub = {
+ template: '#page-lndhub',
+ mixins: [windowMixin],
+ data() {
+ const mappedWallets = g.user.wallets.map(wallet => ({
+ label: wallet.name,
+ admin: `lndhub://admin:${wallet.adminkey}@${location.protocol}//${location.host}/lndhub/ext/`,
+ invoice: `lndhub://invoice:${wallet.inkey}@${location.protocol}//${location.host}/lndhub/ext/`
+ }))
+ return {
+ wallets: mappedWallets,
+ selectedWallet: mappedWallets[0]
+ }
+ }
+}
diff --git a/static/index.vue b/static/index.vue
new file mode 100644
index 0000000..a6d43dc
--- /dev/null
+++ b/static/index.vue
@@ -0,0 +1,138 @@
+
+
+ LndHub is a protocol invented by
+ BlueWallet
+ that allows mobile wallets to query payments and balances,
+ generate invoices and make payments from accounts that exist
+ on a server. The protocol is a collection of HTTP endpoints
+ exposed through the internet.
+
+ For a wallet that supports it, reading a QR code that
+ contains the URL along with secret access credentials should
+ enable access. Currently it is supported by
+ Zeus
+ and
+ BlueWallet.
+
- LndHub is a protocol invented by
- BlueWallet
- that allows mobile wallets to query payments and balances, generate
- invoices and make payments from accounts that exist on a server. The
- protocol is a collection of HTTP endpoints exposed through the internet.
-
- For a wallet that supports it, reading a QR code that contains the URL
- along with secret access credentials should enable access. Currently it
- is supported by
- Zeus and
- BlueWallet.
-
+ {{ g.settings.siteTitle }} LndHub extension
+
+
+
+ Add a wallet / Import wallet on
+ BlueWallet or Settings / Add a new node on
+ Zeus.
+
+
+
-
- Add a wallet / Import wallet on BlueWallet or
- Settings / Add a new node on Zeus.
-
-
-