From 9daab014b1d8bfe718560e01e123ead3cb25cd2c Mon Sep 17 00:00:00 2001 From: benarc Date: Wed, 24 Apr 2024 13:38:06 +0100 Subject: [PATCH 1/5] typo --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index 78b2727..62599fe 100644 --- a/config.json +++ b/config.json @@ -27,7 +27,7 @@ "uri": "/example/static/3.png" } ], - "descrition_md": "https://raw.githubusercontent.com/lnbits/example/main/README.md", + "description_md": "https://raw.githubusercontent.com/lnbits/example/main/README.md", "terms_and_conditions_md": "https://raw.githubusercontent.com/lnbits/example/main/toc.md", "license": "MIT" } From 933ff5688db340dbf00752b3c5c0035146c8f400 Mon Sep 17 00:00:00 2001 From: benarc Date: Wed, 24 Apr 2024 21:45:37 +0100 Subject: [PATCH 2/5] updated images --- config.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.json b/config.json index 62599fe..2ea6c79 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "name": "Build your own!", "short_description": "Extension building guide", - "tile": "/example/static/bitcoin-extension.png", + "tile": "https://raw.githubusercontent.com/lnbits/example/main/static/bitcoin-extension.png", "min_lnbits_version": "0.12.6", "donate": "donate@legend.lnbits.com", "contributors": [ @@ -18,13 +18,13 @@ ], "images": [ { - "uri": "/example/static/1.png" + "uri": "https://raw.githubusercontent.com/lnbits/example/main/static/1.png" }, { - "uri": "/example/static/2.png" + "uri": "https://raw.githubusercontent.com/lnbits/example/main/static/2.png" }, { - "uri": "/example/static/3.png" + "uri": "https://raw.githubusercontent.com/lnbits/example/main/static/3.png" } ], "description_md": "https://raw.githubusercontent.com/lnbits/example/main/README.md", From 4e18c4aa4fe918fecfaf4a225d05dc78cc221c64 Mon Sep 17 00:00:00 2001 From: benarc Date: Wed, 24 Apr 2024 21:55:10 +0100 Subject: [PATCH 3/5] Added description --- config.json | 2 +- description.md | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 description.md diff --git a/config.json b/config.json index 2ea6c79..79fcab2 100644 --- a/config.json +++ b/config.json @@ -27,7 +27,7 @@ "uri": "https://raw.githubusercontent.com/lnbits/example/main/static/3.png" } ], - "description_md": "https://raw.githubusercontent.com/lnbits/example/main/README.md", + "description_md": "https://raw.githubusercontent.com/lnbits/example/main/description.md", "terms_and_conditions_md": "https://raw.githubusercontent.com/lnbits/example/main/toc.md", "license": "MIT" } diff --git a/description.md b/description.md new file mode 100644 index 0000000..d0d1c3c --- /dev/null +++ b/description.md @@ -0,0 +1,9 @@ +An easily clonable extension that can be used a base for building a new extension. + +THe usual development enviroment is: + +* Clone the myextension repo to your own repo +* Edit the cloned repos manifest to your details +* Install into LNbits +* Delete the cloned extensions folder in your LNbits install +* Create a symbolic link to the extensions folder, from the where you have pulled your extension `ln -s /where/you/cloned/myextension /your/lnbits/installl/lnbits/lnbits/extensions/` \ No newline at end of file From 0a9f7dcb04dc1ab27d3d77553385c536ab1f62bc Mon Sep 17 00:00:00 2001 From: benarc Date: Wed, 24 Apr 2024 21:56:53 +0100 Subject: [PATCH 4/5] make format --- description.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/description.md b/description.md index d0d1c3c..fec4196 100644 --- a/description.md +++ b/description.md @@ -1,9 +1,9 @@ An easily clonable extension that can be used a base for building a new extension. -THe usual development enviroment is: +THe usual development enviroment is: -* Clone the myextension repo to your own repo -* Edit the cloned repos manifest to your details -* Install into LNbits -* Delete the cloned extensions folder in your LNbits install -* Create a symbolic link to the extensions folder, from the where you have pulled your extension `ln -s /where/you/cloned/myextension /your/lnbits/installl/lnbits/lnbits/extensions/` \ No newline at end of file +- Clone the myextension repo to your own repo +- Edit the cloned repos manifest to your details +- Install into LNbits +- Delete the cloned extensions folder in your LNbits install +- Create a symbolic link to the extensions folder, from the where you have pulled your extension `ln -s /where/you/cloned/myextension /your/lnbits/installl/lnbits/lnbits/extensions/` From 46b6937bb164bd14ca4ad60e089611e338a300a1 Mon Sep 17 00:00:00 2001 From: benarc Date: Wed, 24 Apr 2024 21:59:13 +0100 Subject: [PATCH 5/5] ruff ruff --- views_api.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/views_api.py b/views_api.py index e07ff05..1cbf8d4 100644 --- a/views_api.py +++ b/views_api.py @@ -1,10 +1,11 @@ -from fastapi import APIRouter, Depends -from loguru import logger -from .models import Example from http import HTTPStatus + import httpx +from fastapi import APIRouter, Depends from fastapi.exceptions import HTTPException -from lnbits.decorators import get_key_type, WalletTypeInfo +from lnbits.decorators import WalletTypeInfo, get_key_type + +from .models import Example # views_api.py is for you API endpoints that could be hit by another service