Commit Graph

224 Commits

Author SHA1 Message Date
Pavol Rusnak
a089188664
add pyright to the project (#1367)
* add pyright to project + bump prettier to latest

* reformat to match the latest prettier rules
2023-01-23 10:29:17 +01:00
ben
4397516160 Make QR code and price draggable 2023-01-11 14:09:19 +00:00
Vlad Stan
c370bd18c6 refactor: remove redundant # type: ignore 2023-01-10 09:45:12 +02:00
Pavol Rusnak
191ad1e224
make payment.extra non-optional
this makes handling in tasks.py so much easier
2023-01-05 09:22:34 +01:00
calle
b622028f7d
Merge pull request #1271 from lnbits/fix/mypy/ignores
removing type: ignore from Query, Depends, Body and import them correctly
2023-01-04 09:19:06 +01:00
dni ⚡
f7c38a413e sorting 2023-01-04 09:09:30 +01:00
dni ⚡
eac55c2236 fix up copilot 2023-01-04 09:05:38 +01:00
Pavol Rusnak
3d0c66f0f6
remove unnecessary argument encoding from bytes.decode() and str.encode()
the encoding parameter defaults to utf-8, so it's not needed
2023-01-03 22:38:28 +01:00
dni ⚡
b1d1cc6de3 removing type: ignore from Query, Depends, Body and import them correctly 2023-01-02 11:56:28 +01:00
ben
a8c4bea53d Updated extension card layout 2023-01-01 18:14:20 +00:00
ben
59a8ff9dce All extension icons swapped for logo tiles 2022-12-31 14:15:23 +00:00
ben
f5250e0584 initial
Added bunch tiles, more to add
2022-12-31 01:46:55 +00:00
Arc
efc156689f
Merge pull request #1253 from iWarpBTC/qr_inv_pref
QR invoices and lnurls got prefix and uppercased
2022-12-30 01:04:47 +00:00
ben
6e8abc1c32 Fixes all those ugly hyperlinks 2022-12-29 23:51:18 +00:00
Gene Takavic
71eebc1441 QR invoices and lnurls got prefix and uppercased 2022-12-28 23:42:36 +01:00
ben
9a50f4187e isort 2022-12-01 18:45:00 +00:00
ben
8ca390e0b0 format 2022-12-01 18:41:58 +00:00
ben
694a4e5054 replaced extension specific websockets with the generic websocket 2022-12-01 18:31:58 +00:00
dni ⚡
09871bbabc
fix mypy for extensions (#873)
* explicitly exclude all extensions from mypy

* fix example extension mypy

* fix subdomains extension mypy + 1 type error fixed

* fix mypy discordbot

* mypy check copilot extensnion

* copilot black

* add invoices ext to ignore

* add boltz and boltcard

* copilit id is necessary

* was discordbot is ok

Co-authored-by: dni <dni.khr@gmail.com>
2022-10-24 16:29:30 +02:00
calle
5a12f4f237
Improved SSE listeners (#865)
* logging listeners

* comments

* generate privkey upon init

* listener queue

* remove duplicate check

* make format

* reuse channel

* error handling in sse listener

* uuid for listeners

* register named invoices

* uuid for listeners and listener list

* fix poetry lock

* setuptools

* requirements asyncio timeout

* setuptool;s

* make format

* remove async-timeout

* async_timeout readd

* try lower setuptools version

* try lower lower setuptools version

* back to current version + fix, maybe

* fix worflows to use poetry 1.2.1

* remove uneeded setuptools from build-system

* fix up formatting workflow

* debug to trace

* more traces

* debug logs to trace

Co-authored-by: dni  <office@dnilabs.com>
2022-10-04 09:51:47 +02:00
Tiago vasconcelos
d2f00435cc remove already added prefix ou route - ws working again 2022-09-06 12:30:20 +01:00
calle
0f760bf39e
Lnurlp: use unhashed_description instead of description_hash (#878)
* dont assume field

* pass unhashed_description instead of description_hash for LNURL stuff

* more
2022-08-14 21:59:36 +02:00
calle
f1ec7e33f0
Mega-merge 2: Invoice/refactor description hash (WIP) (#814)
* description hashing in backend
2022-08-01 16:20:25 +02:00
ben
3a28ff1020 added swagger to extensions 2022-07-27 19:21:04 +01:00
ben
244d6f23bf Merge branch 'main' into matthewcroughan/nixify 2022-07-23 20:09:24 +01:00
ben
0e8da3c368 Fixed path for extension templates 2022-07-23 20:08:59 +01:00
calle
f4e7d62ca3
make format everything (#743) 2022-07-16 14:23:03 +02:00
Tiago Vasconcelos
348033da1b
python code styling (#739) 2022-07-15 19:11:11 +02:00
matthewcroughan
36e92765d3 treewide: use StaticFiles() rather than rel path
This commit is not exhaustive, and it is a trend in this codebase to not
use StaticFiles() and instead use relative paths. This means the code
cannot run anywhere other than the source code directory, as it will not
find the files it is looking for
2022-07-08 11:06:26 +01:00
calle
92887ed169
Format: prettier (#707)
* format: prettier

* gh-actions: add prettier checkg

* actions
2022-07-05 21:14:56 +02:00
blackcoffeexbt
f44bd55b4b
Corrected example CURL requests in multiple extension API docs (#689)
* Updated api docs example CURL calls for satspay server

* Updated api docs example CURL calls for copilot extension

* Updated api docs example CURL calls for jukebox extension

* Updated api docs example CURL calls for livestream extension

* Updated api docs example CURL calls for lnaddress extension

* Updated api docs example CURL calls for lnurldevices extension

* Updated api docs example CURL calls for lnurlp extension

* Updated api docs example CURL calls for offlineshop extension

* Updated api docs example CURL calls for paywall extension

* Updated api docs example CURL calls for satsdice extension

* Updated api docs example CURL calls for splitpayments extension

* Fix typo double slash in satsdice extension api docs

* Updated api docs example CURL calls for tpos extension

* Updated api docs example CURL calls for watchonly extension
2022-07-05 17:20:42 +02:00
Tiago vasconcelos
f7ff9d27d2 fix copilots not being fetched 2022-02-23 21:03:25 +00:00
Tiago vasconcelos
25b502e5d5 fix copilot not getting created 2022-01-10 20:52:51 -03:00
Tiago vasconcelos
cfac70d394 general cleanup and unused imports removal 2021-11-25 18:52:16 +00:00
benarc
267dea4f75 black 2021-11-12 04:14:55 +00:00
benarc
1ac84f1445 fixed satdice 2021-11-04 11:11:56 +00:00
Tiago vasconcelos
f15b6b128b clean up 2021-10-28 17:01:49 +01:00
benarc
e03370188a Fixed payment checking 2021-10-22 00:41:30 +01:00
benarc
c041f0fd7f Fixed copilot migration file 2021-10-20 18:42:09 +01:00
benarc
f68f45b6b1 Fixed in a hacky way, but works 2021-10-20 18:28:54 +01:00
benarc
8f44747d6c Mgration for changing show_price to TEXT, doesnt work :( 2021-10-20 18:23:03 +01:00
Tiago vasconcelos
a840970366 fix require admin key endpoints 2021-10-20 12:03:11 +01:00
Tiago vasconcelos
167a32fed9 core already has default memo 2021-10-18 12:25:43 +01:00
Tiago vasconcelos
1fc4b3b3e4 clean up 2021-10-18 12:08:41 +01:00
Tiago vasconcelos
1aeb4fe70c removed offensive print and clean up 2021-10-18 12:07:08 +01:00
Tiago vasconcelos
8dfd334daa clean up file 2021-10-18 11:58:21 +01:00
Tiago vasconcelos
189eed850a fix copilot memo None 2021-10-18 11:51:51 +01:00
benarc
0d781f899c copilot not triggering animations, listeners 2021-10-18 10:41:41 +01:00
benarc
0cf11caaad copilot payments not triggering animations
listener issue
2021-10-18 10:31:30 +01:00
benarc
15cd84652e copilot payments not triggering animations 2021-10-18 10:28:31 +01:00