From b28c1db6b54a99308fea938499ccdd67667df7fe Mon Sep 17 00:00:00 2001 From: Arc Date: Tue, 19 Nov 2024 14:07:04 +0000 Subject: [PATCH] Added description for extension preview --- __init__.py | 13 ++++++++----- config.json | 18 ++++++++++++++++++ description.md | 3 +++ toc.md | 29 +++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 description.md create mode 100644 toc.md diff --git a/__init__.py b/__init__.py index f0adf33..e7b2717 100644 --- a/__init__.py +++ b/__init__.py @@ -4,14 +4,11 @@ from fastapi import APIRouter from loguru import logger from lnbits.tasks import create_permanent_unique_task - from .crud import db from .tasks import handle_execution_queue, handle_nwc from .views import nwcprovider_router from .views_api import nwcprovider_api_router -scheduled_tasks: list[asyncio.Task] = [] - nwcprovider_ext: APIRouter = APIRouter( prefix="/nwcprovider", tags=["NWC Service Provider"] ) @@ -25,6 +22,7 @@ nwcprovider_static_files = [ } ] +scheduled_tasks: list[asyncio.Task] = [] def nwcprovider_stop(): for task in scheduled_tasks: @@ -42,5 +40,10 @@ def nwcprovider_start(): ) scheduled_tasks.append(task) - -__all__ = ["db"] +__all__ = [ + "db", + "nwcprovider_ext", + "nwcprovider_static_files", + "nwcprovider_start", + "nwcprovider_stop", +] diff --git a/config.json b/config.json index b68048a..92b27df 100644 --- a/config.json +++ b/config.json @@ -7,8 +7,26 @@ { "name": "Riccardo Balbo", "uri": "https://github.com/riccardobl", + "role": "Lead Dev" + }, + { + "name": "Ben Arc", + "uri": "https://github.com/arcbtc", "role": "Dev" } ], + "images": [ + { + "uri": "https://raw.githubusercontent.com/riccardobl/nwcprovider/main/static/image/1.png" + }, + { + "uri": "https://raw.githubusercontent.com/riccardobl/nwcprovider/main/static/image/2.png" + }, + { + "uri": "https://raw.githubusercontent.com/riccardobl/nwcprovider/main/static/image/3.png" + } + ], + "description_md": "https://raw.githubusercontent.com/riccardobl/nwcprovider/main/description.md", + "terms_and_conditions_md": "https://raw.githubusercontent.com/riccardobl/nwcprovider/main/toc.md", "license": "MIT" } diff --git a/description.md b/description.md new file mode 100644 index 0000000..e76978b --- /dev/null +++ b/description.md @@ -0,0 +1,3 @@ +NWC Service Provider Extension for https://github.com/lnbits/lnbits + +Easily connect your LNbits wallets via https://nwc.dev/ \ No newline at end of file diff --git a/toc.md b/toc.md new file mode 100644 index 0000000..baa0342 --- /dev/null +++ b/toc.md @@ -0,0 +1,29 @@ +# Terms and Conditions for LNbits Extension + +## 1. Acceptance of Terms + +By installing and using the LNbits extension ("Extension"), you agree to be bound by these terms and conditions ("Terms"). If you do not agree to these Terms, do not use the Extension. + +## 2. License + +The Extension is free and open-source software, released under [specify the FOSS license here, e.g., GPL-3.0, MIT, etc.]. You are permitted to use, copy, modify, and distribute the Extension under the terms of that license. + +## 3. No Warranty + +The Extension is provided "as is" and with all faults, and the developer expressly disclaims all warranties of any kind, whether express, implied, statutory, or otherwise, including but not limited to warranties of merchantability, fitness for a particular purpose, non-infringement, and any warranties arising out of course of dealing or usage of trade. No advice or information, whether oral or written, obtained from the developer or elsewhere will create any warranty not expressly stated in this Terms. + +## 4. Limitation of Liability + +In no event will the developer be liable to you or any third party for any direct, indirect, incidental, special, consequential, or punitive damages, including lost profit, lost revenue, loss of data, or other damages arising out of or in connection with your use of the Extension, even if the developer has been advised of the possibility of such damages. The foregoing limitation of liability shall apply to the fullest extent permitted by law in the applicable jurisdiction. + +## 5. Modification of Terms + +The developer reserves the right to modify these Terms at any time. You are advised to review these Terms periodically for any changes. Changes to these Terms are effective when they are posted on the appropriate location within or associated with the Extension. + +## 6. General Provisions + +If any provision of these Terms is held to be invalid or unenforceable, that provision will be enforced to the maximum extent permissible, and the other provisions of these Terms will remain in full force and effect. These Terms constitute the entire agreement between you and the developer regarding the use of the Extension. + +## 7. Contact Information + +If you have any questions about these Terms, please contact the developer at [developer's contact information].