Commit Graph
2063 Commits
Author SHA1 Message Date
Tiago VasconcelosandGitHub 2b827d37fa return lnurl in create link (#685) 2022-07-17 14:39:02 +02:00
Lee SalminenandGitHub 8079325ec9 fix /usermanager/api/v1/extensions (#730)
Requests to `POST /usermanager/api/v1/extensions` would silently fail due to a missing `await`.
2022-07-17 14:38:00 +02:00
calleandGitHub 6646fce549 Core: add internal flag for invoice creation to use FakeWallet (#646)
* add internal flag for invoice creation to use FakeWallet
2022-07-17 14:34:25 +02:00
calleandGitHub 2febb364ca lnurldevice migration: typo fix (#746)
* typo fix

* fix table name

* revert typo
2022-07-17 13:22:23 +02:00
calleandGitHub ad2aad05e0 CI: Migration SQLite to PostgreSQL (#719)
* migrate all extensions
* errors if migration is missing
2022-07-17 13:11:13 +02:00
calleandGitHub f4e7d62ca3 make format everything (#743) 2022-07-16 14:23:03 +02:00
6a3a72b944 Uvicorn loguru format (#741)
* use loguru formatting for uvicorn logs

* remove depth from logging interceptor

* format for uvicorn

* black

* isort

* black again

* python3-dev

* python3-dev

* leaner pipeline

Co-authored-by: dni <dni.khr@gmail.com>
2022-07-15 19:54:12 +02:00
Tiago VasconcelosandGitHub 348033da1b python code styling (#739) 2022-07-15 19:11:11 +02:00
calleandGitHub 357860d849 Spark: increase timeout and improved error handling (#718)
* increase timeout and more error handling

* more error handling

* add timeout exception
2022-07-12 13:22:55 +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
matthewcroughan 49bd5ad26b lnbits/server.py: init
This adds a wrapper around uvicorn using Python. This is so the
entrypoint lnbits.server can be called on the command line, and passed
arguments like port and host. This makes lnbits feel more like a real
CLI application, and lends well to running as a service in systemd
2022-07-08 11:06:23 +01:00
calleandGitHub 0825519361 None check (#720) 2022-07-07 21:58:39 +02:00
calleandGitHub 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
calleandGitHub 262bd32f44 debug format more expressive (#715) 2022-07-07 16:24:36 +02:00
calleandGitHub 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
847fd18796 update readme link (#687)
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-07-07 00:14:27 +02: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 VasconcelosandGitHub 1b064ceda4 fix issue #683 (#684) 2022-07-05 21:40:05 +02:00
calleandGitHub 92887ed169 Format: prettier (#707)
* format: prettier

* gh-actions: add prettier checkg

* actions
2022-07-05 21:14:56 +02:00
Tiago vasconcelos 42d342cd0d blacked 2022-07-05 16:21:49 +01:00
Lee Salminen 80f8d83548 Merge remote-tracking branch 'origin/main' into improved-pwa 2022-07-05 09:21:41 -06:00
blackcoffeexbtandGitHub 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
blackcoffeexbtandGitHub 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
calleandGitHub 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
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
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
Tiago vasconcelos 6154454f15 hotfix api_payments failing 2022-06-29 10:55:54 +01:00
Tiago vasconcelos c8a6caa4e3 update api section title 2022-06-28 11:12:42 +01:00
calleandGitHub 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
calleandGitHub 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
calleandGitHub 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
calleandGitHub 2c68f53c91 /api/v1/payments with limit and offset (#594) 2022-06-26 19:05:34 +02:00
Tiago vasconcelos 6147bd23ec fix typo 2022-06-22 17:08:08 +01:00
Tiago vasconcelos 6867d65733 one final addition to readme 2022-06-22 17:04:23 +01:00
Tiago vasconcelos fea92354a8 some vanity bling 2022-06-22 16:51:14 +01:00
Tiago vasconcelos a7efff858b bring back list scrub 2022-06-22 16:46:27 +01:00
Tiago vasconcelos 267530f217 readme 2022-06-22 16:46:15 +01:00
Tiago vasconcelos 6b66ca1531 correct api instructions and add readme 2022-06-22 16:45:54 +01:00
Tiago vasconcelos 73b8bd682c clean up 2022-06-22 13:30:06 +01:00
calleandGitHub 06fbc4b0ae move fiat_base_multiplier multiplication into api_link_create_or_update() (#675) 2022-06-22 12:28:40 +02:00
Tiago vasconcelos c90cf6ee1b general clean up 2022-06-21 16:44:59 +01:00