diff --git a/.env.example b/.env.example index bb4e64a1..6a3710c2 100644 --- a/.env.example +++ b/.env.example @@ -11,7 +11,11 @@ LNBITS_ALLOWED_USERS="" LNBITS_ADMIN_USERS="" # Extensions only admin can access LNBITS_ADMIN_EXTENSIONS="ngrok, admin" + # Enable Admin GUI, available for the first user in LNBITS_ADMIN_USERS if available +# Warning: Enabling this will make LNbits ignore this configuration file. Your settings will +# be stored in your database and you will be able to change them only through the Admin UI. +# Disable this to make LNbits use this config file again. LNBITS_ADMIN_UI=false LNBITS_DEFAULT_WALLET_NAME="LNbits wallet" diff --git a/README.md b/README.md index a22c857c..3bc169dd 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ LNbits is a very simple Python server that sits on top of any funding source, an LNbits can run on top of any lightning-network funding source, currently there is support for LND, c-lightning, Spark, LNpay, OpenNode, lntxbot, with more being added regularly. -See [legend.lnbits.org](https://legend.lnbits.org) for more detailed documentation. +See [docs.lnbits.org](https://docs.lnbits.org) for more detailed documentation. Checkout the LNbits [YouTube](https://www.youtube.com/playlist?list=PLPj3KCksGbSYG0ciIQUWJru1dWstPHshe) video series. @@ -70,7 +70,7 @@ Wallets can be easily generated and given out to people at events (one click mul If you like this project and might even use or extend it, why not [send some tip love](https://legend.lnbits.com/paywall/GAqKguK5S8f6w5VNjS9DfK)! -[docs]: https://legend.lnbits.org/ +[docs]: https://docs.lnbits.org/ [docs-badge]: https://img.shields.io/badge/docs-lnbits.org-673ab7.svg [github-mypy]: https://github.com/lnbits/lnbits/actions?query=workflow%3Amypy [github-mypy-badge]: https://github.com/lnbits/lnbits/workflows/mypy/badge.svg diff --git a/docs/CNAME b/docs/CNAME index 9981b110..e7e04e60 100644 --- a/docs/CNAME +++ b/docs/CNAME @@ -1 +1 @@ -legend.lnbits.org \ No newline at end of file +docs.lnbits.org \ No newline at end of file diff --git a/docs/_config.yml b/docs/_config.yml index 6c3d6512..d937f5dc 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -3,7 +3,7 @@ remote_theme: pmarsceill/just-the-docs color_scheme: dark logo: "/logos/lnbits-full--inverse.png" search_enabled: true -url: https://legend.lnbits.org +url: https://docs.lnbits.org aux_links: "LNbits on GitHub": - "//github.com/lnbits/lnbits" diff --git a/docs/devs/api.md b/docs/devs/api.md index a8217b9c..8e150889 100644 --- a/docs/devs/api.md +++ b/docs/devs/api.md @@ -9,4 +9,4 @@ nav_order: 3 API reference ============= -[Swagger Docs](https://legend.lnbits.org/devs/swagger.html) +[Swagger Docs](https://docs.lnbits.org/devs/swagger.html) diff --git a/lnbits/bolt11.py b/lnbits/bolt11.py index 41b73b7d..0bc40158 100644 --- a/lnbits/bolt11.py +++ b/lnbits/bolt11.py @@ -74,7 +74,7 @@ def decode(pr: str) -> Invoice: data_length = len(tagdata) / 5 if tag == "d": - invoice.description = _trim_to_bytes(tagdata).decode("utf-8") + invoice.description = _trim_to_bytes(tagdata).decode() elif tag == "h" and data_length == 52: invoice.description_hash = _trim_to_bytes(tagdata).hex() elif tag == "p" and data_length == 52: @@ -260,7 +260,7 @@ class LnAddr(object): def __str__(self): return "LnAddr[{}, amount={}{} tags=[{}]]".format( - bytes.hex(self.pubkey.serialize()).decode("utf-8"), + bytes.hex(self.pubkey.serialize()).decode(), self.amount, self.currency, ", ".join([k + "=" + str(v) for k, v in self.tags]), diff --git a/lnbits/core/models.py b/lnbits/core/models.py index 138a39f7..e292362a 100644 --- a/lnbits/core/models.py +++ b/lnbits/core/models.py @@ -46,8 +46,8 @@ class Wallet(BaseModel): return "" def lnurlauth_key(self, domain: str) -> SigningKey: - hashing_key = hashlib.sha256(self.id.encode("utf-8")).digest() - linking_key = hmac.digest(hashing_key, domain.encode("utf-8"), "sha256") + hashing_key = hashlib.sha256(self.id.encode()).digest() + linking_key = hmac.digest(hashing_key, domain.encode(), "sha256") return SigningKey.from_string( linking_key, curve=SECP256k1, hashfunc=hashlib.sha256 diff --git a/lnbits/core/templates/core/extensions.html b/lnbits/core/templates/core/extensions.html index 1b527903..88e50269 100644 --- a/lnbits/core/templates/core/extensions.html +++ b/lnbits/core/templates/core/extensions.html @@ -23,14 +23,55 @@ > - - {% raw %} -
{{ extension.name }}
- {{ extension.shortDescription }} {% endraw %} +
+
+ +
+
+ {% raw %} +
+ {{ extension.name }} +
+
+ {{ extension.shortDescription }} +
+
+ {{ extension.name }} +
+
+ {{ extension.shortDescription }} +
+ {% endraw %} +
+
+
+ +
+ Ratings coming soon +
diff --git a/lnbits/core/templates/core/wallet.html b/lnbits/core/templates/core/wallet.html index 9de96956..46cfc690 100644 --- a/lnbits/core/templates/core/wallet.html +++ b/lnbits/core/templates/core/wallet.html @@ -23,7 +23,7 @@ {% raw %}{{ formattedBalance }} {% endraw %} {{LNBITS_DENOMINATION}} - - -