Commit Graph

2415 Commits

Author SHA1 Message Date
Daniel Krahofer
b1d6c82466
fix dockerfile and add docker ignore (#714)
* fix dockerfile and add docker ignore

* fixup comment in dockerignore

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-07 18:30:21 +02:00
calle
63d4e60542
Testing: postgres db backend (#711)
* try postgres run

* fix yaml

* test with postgres

* check with postgres

* inkey_from

* remove trio

* add coverage

* add coverage

* more python testing

* use @pytest_asyncio.fixture

* remove unused imports

* fix api_payment payment lookup

* measure durations
2022-07-07 18:29:26 +02:00
calle
262bd32f44
debug format more expressive (#715) 2022-07-07 16:24:36 +02:00
calle
089313f613
Logging with loguru (#708)
* logging

* requirements

* add loguru dependency

* restore it

* add loguru

* set log level in .env file

* remove service fee print

* set log level

* more logging

* more logging

* more logging

* pyament.checking_id

* fix
2022-07-07 14:30:16 +02:00
Tiago Vasconcelos
847fd18796
update readme link (#687)
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-07-07 00:14:27 +02:00
Arc
ed6ddd0f5e
Merge pull request #700 from leesalminen/improved-pwa
Improved support for Progressive Web Apps (PWA)
2022-07-06 11:18:03 +01:00
Lee Salminen
94e4495026 run prettier 2022-07-05 16:16:46 -06:00
Lee Salminen
aa51d85d65 Merge branch 'main' into improved-pwa 2022-07-05 15:10:57 -06:00
Lee Salminen
ebeb3d213b alter injection of tpos to match 2022-07-05 15:09:04 -06:00
Lee Salminen
2cb87d96f2 better way of handling injection of webmanifests 2022-07-05 15:05:31 -06:00
Tiago Vasconcelos
1b064ceda4
fix issue #683 (#684) 2022-07-05 21:40:05 +02:00
calle
92887ed169
Format: prettier (#707)
* format: prettier

* gh-actions: add prettier checkg

* actions
2022-07-05 21:14:56 +02:00
calle
d55f8dc36e
readd prettier (#706) 2022-07-05 17:52:01 +02:00
Lee Salminen
80f8d83548 Merge remote-tracking branch 'origin/main' into improved-pwa 2022-07-05 09:21:41 -06:00
blackcoffeexbt
e5b4c54348
Added line wrapping for text in code examples to make it readable on normal sized screens (#688) 2022-07-05 17:20:59 +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
calle
17c79cd044
Makefile: remove prettier (#705)
* remove prettier

* black
2022-07-05 17:18:22 +02:00
Lee Salminen
56c60587a1 fix prettier 2022-07-05 09:14:24 -06:00
Arc
c2399cf9aa
Merge pull request #697 from leesalminen/tpos-tips
Enhancements to TPOS Extension
2022-07-05 13:16:55 +01:00
Lee Salminen
f9b929ae7d add PWA support for the tpos extension 2022-07-04 16:39:05 -06:00
Lee Salminen
52b8506d0a reduce noise 2022-07-04 16:10:31 -06:00
Lee Salminen
102dc56c4a cant force the color 2022-07-04 13:38:05 -06:00
Lee Salminen
b298e12cd3 add offline indicator 2022-07-04 13:03:21 -06:00
Lee Salminen
d88ffeb237 segregate cache by api key header 2022-07-04 12:32:28 -06:00
Lee Salminen
d0ba5c6f30 Improved support for Progressive Web Apps (PWA)
- modify webmanifest to use LNBITS_SITE_TITLE and LNBITS_CUSTOM_LOGO env vars
- modify webmanifest to have a more accurate description, start_url and set theme_color to match default lnbits theme
- add service worker to cache requests (chrome requires a registered service worker to activate some pwa functionality)
- move webmanifest to <head> (chrome acts weird with it in the body)
2022-07-04 11:01:08 -06:00
Arc
dd9ed3bf78
Merge pull request #694 from dni/patch-1
Ignore docker directory
2022-07-04 16:20:04 +01:00
Lee Salminen
82d7bfbba8 Enhancements to TPOS Extension
- Add new tip % option to TPOS extension.
        - When adding a new TPOS, a user can choose 1 or more tip % options to be displayed to the customer.
        - When adding a new TPOS, a user can choose a wallet to send all collected tips to.

- UI Refresh on TPOS extension.
        - Moved the share button to the top navigation, next to the TPOS name, and changed the icon to a more recognizable one.
        - Re-arranged the buttons on the keypad to be more ergonomic.
2022-07-03 15:49:31 -06:00
Daniel Krahofer
0ae1cf6e52
Ignore docker directory
Ignore docker directory if you clone and use the https://github.com/lnbits/legend-regtest-enviroment
2022-06-30 12:03:46 +02:00
Arc
e4f16f172c
Merge pull request #692 from lnbits/fix/hotfix_apipayment
hotfix api_payments failing
2022-06-29 14:21:15 +01:00
Tiago vasconcelos
6154454f15 hotfix api_payments failing 2022-06-29 10:55:54 +01:00
calle
e7dd3ec64f
reactivate actions (#682)
* reactivate other actions

* black

* codeql 2

* black only

* remove mock event loop

* do not follow grpc
2022-06-27 01:11:35 +02:00
calle
f6da260464
Automated tests (#566)
* return error for wrong key

* payment check use key dependency

* more expressive error

* re-add optional key

* more tests

* more

* more granular

* more testing

* custom event_loop

* tests work

* fix lots of mypy errors

* test_public_api

* both files

* remove unused import

* tests

* tests working

* rm empty file

* minimal test

* set FAKE_WALLET_SECRET="ToTheMoon1"

* set FAKE_WALLET_SECRET="ToTheMoon1"

* trial and error

* trial and error

* test postgres

* test postgres

* test postgres

* test postgres

* test postgres

* test postgres

* test build

* skip mypy
2022-06-27 00:11:46 +02:00
calle
2f62d98299
Delete expired invoices after one pending check (#531)
* delete expired invoices regularly and after pending check

* fix mistake

* delete expired invoices only once
2022-06-26 19:12:55 +02:00
calle
2c68f53c91
/api/v1/payments with limit and offset (#594) 2022-06-26 19:05:34 +02:00
mrbitcoiner
8a20b779df
Fixed psycopg2 error on aarch64 (#658) 2022-06-22 15:37:14 +02:00
calle
06fbc4b0ae
move fiat_base_multiplier multiplication into api_link_create_or_update() (#675) 2022-06-22 12:28:40 +02:00
Arc
6de20106ef
Merge pull request #672 from talvasconcelos/fix/logo_placement
quik fix logo placement
2022-06-21 10:50:51 +01:00
Tiago vasconcelos
d8445450d8 quik fix logo placement 2022-06-21 10:45:09 +01:00
Arc
b90eb0a3ba
Merge pull request #648 from lnbits/black_formatting
Code cleanup: black formatting
2022-06-20 20:57:44 +01:00
Arc
4e25da5ca0
Merge pull request #671 from talvasconcelos/fix/error_response
Hotfix for JSON response
2022-06-20 20:54:12 +01:00
Tiago vasconcelos
3e8d2a5ba1 fix response 2022-06-15 16:49:39 +01:00
Tiago vasconcelos
1ebba9f846 send json response basic error 2022-06-15 16:37:10 +01:00
Tiago vasconcelos
626a93a46c add json response for basic error 2022-06-15 16:20:20 +01:00
Arc
02e0efe722
Merge pull request #667 from talvasconcelos/fix/error_response
Fix HTML response to non browser request
2022-06-15 15:49:52 +01:00
calle
1dec874af7
lnurlp: do not divide twice (#669) 2022-06-15 12:48:13 +02:00
Arc
8e9972ead1
Merge pull request #632 from bennyhodl/patch-1
Fix GET transactions endpoint in usermanager docs
2022-06-15 09:10:47 +01:00
Arc
399ff11b04
Merge pull request #663 from lnbits/lnurlp/float_fiat_amount
lnurlp: support for floating point fiat values
2022-06-15 09:06:37 +01:00
Arc
785c150bb2
Merge pull request #668 from lnbits/primarycolor
Changes warning model title to primary color
2022-06-15 09:02:02 +01:00
Tiago vasconcelos
c4f9206c10 change status code 2022-06-13 21:43:17 +01:00
ben
2ff282ce4c Chnaged to primary 2022-06-13 21:27:24 +01:00