Commit Graph

46 Commits

Author SHA1 Message Date
Lee Salminen
2cb87d96f2 better way of handling injection of webmanifests 2022-07-05 15:05:31 -06:00
Lee Salminen
56c60587a1 fix prettier 2022-07-05 09:14:24 -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
callebtc
f8400512f7 black formating 2022-06-01 14:53:05 +02:00
Tiago vasconcelos
251ecb8f1d url_for params 2022-02-17 21:01:14 +00:00
Arc
da6a2e772b
Revert "fix disapearing admin extension" 2022-02-10 09:56:02 +00:00
Tiago vasconcelos
4c18eb0b34 fix disapearing admin extension 2022-02-09 10:57:24 +00:00
Ben Arc
dbab181759 Admin users can credit accounts 2022-01-31 16:29:42 +00:00
benarc
228717195b back 2022-01-30 19:43:30 +00:00
Stefan Stammberger
3831bca9e2
fix: cleanup core/views/generic.py
* Fixed withdraw endpoint query params access
    was: request.query_params.get("usr")
    corrected: request.query_params.get("usr")
* Added missing response classes
* Removed old comments and commeted out code
* Deleted the unused auth_bearer.py file
2021-11-27 10:13:32 +01:00
Tiago vasconcelos
55023fa85b fix delete wallet 2021-10-25 19:26:21 +01:00
benarc
1d3bb016a2 I want them to turn black 2021-10-17 18:33:29 +01:00
Stefan Stammberger
3bae5c92c2
fix: /extensions endpoint 2021-09-11 20:44:22 +02:00
Stefan Stammberger
63d0242685
fix: more return types 2021-09-11 11:02:48 +02:00
Stefan Stammberger
d9849d43d2
refactor: replace Trio with asyncio/uvloop 2021-08-30 19:55:02 +02:00
Stefan Stammberger
fe79709698
fix: several more API calls restored 2021-08-29 19:38:42 +02:00
Stefan Stammberger
3e5af8c1d1
refactor: purge Quart from the codebase
Most functionality is still broken
2021-08-27 20:54:42 +02:00
Stefan Stammberger
f119053953
fix: main page and creating a user and a wallet
The wallet page will still not renders correctly, but the backend does
create the user his first wallet.
2021-08-24 21:23:18 +02:00
Stefan Stammberger
6f38fdc39b
feat: move all non-api routes to their own router
This unclutters the docs page a bit by making html routes collapsible.
2021-08-23 21:17:46 +02:00
Ben Arc
e03eb3c82b Fixed formatting 2021-08-22 23:05:39 +01:00
Stefan Stammberger
938fc54af3
feat: switch from Quart to FastAPI part I 2021-08-22 20:07:24 +02:00
Ben Arc
2fb16d0382 Trying to add query params 2021-08-21 19:04:10 +01:00
Ben Arc
bbdb96f4ac Converted views 2021-08-21 01:55:07 +01:00
Ben Arc
c4b37c6508 Converted some core stuff 2021-08-20 21:31:01 +01:00
fiatjaf
2f309c9863 postgres support. 2021-07-02 17:34:31 -03:00
oriolpont
37d9e30362 Change minWithdrawable from 1 msat to 1000 msats for the lnurl_full_withdraw
1 msat is fractional and thus unacceptable anyway. Also, when withdrawing from lnbits itself, this interferes with the input form to expect fractional 1.001 steps
2021-06-12 12:32:40 -03:00
fiatjaf
b06e1c8fa9 try-catch in pay_invoice on global lnurl-withdraw. 2021-06-01 13:28:05 -03:00
fiatjaf
2b21a4f479 g.nursery -> current_app.nursery 2021-05-06 12:41:44 -03:00
fiatjaf
cbeb888761 fix lnurlwallet flow. 2021-04-17 23:44:26 -03:00
fiatjaf
efd9c6917f lnurl balanceCheck and balanceNotify. 2021-04-17 23:21:19 -03:00
fiatjaf
0f998419e7 basic webmanifest thing, must be improved. 2021-04-13 11:50:30 -03:00
fiatjaf
85011d23c3 fix sqlite database locked issues by using an async lock on the database and requiring explicit transaction control (or each command will be its own transaction). 2021-03-26 19:10:30 -03:00
fiatjaf
42bd5ea989 remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
fiatjaf
d3fc52cd49 migrate to sqlalchemy-aio.
a big refactor that:

- fixes some issues that might have happened (or not) with asynchronous
    reactions to payments;
- paves the way to https://github.com/lnbits/lnbits/issues/121;
- uses more async/await notation which just looks nice; and
- makes it simple(r?) for one extension to modify stuff from other extensions.
2020-11-21 23:02:14 -03:00
fiatjaf
95e8573ff8 SSE endpoint for paid invoices.
also move very essential stuff from core/tasks.py to tasks.py so things
are more organized.
2020-10-06 00:40:18 -03:00
fiatjaf
5ead82f57c fix /lnurlwallet again. db.commit() and wait 3 seconds.
should finally fix https://github.com/lnbits/lnbits/issues/103
2020-10-05 20:33:01 -03:00
fiatjaf
9994e61615 migrate to trio so c-lightning sockets stop hanging. 2020-10-04 12:06:20 -03:00
fiatjaf
211ac0391b overengineered async fix for /lnurlwallet internal hanging. 2020-09-29 18:24:08 -03:00
fiatjaf
f01028eac7 migrate from flask to quart.
also remove all flaskiness from static file serving.
and reference all vendored scripts on the base tempĺate for simplicity.
2020-09-14 16:03:25 -03:00
Eneko Illarramendi
1bc5e144d3 refactor: clean up __init__ file following some Flask conventions
Flask extensions are loaded in a way that makes them easily reusable by blueprints.
In this commit we are also adding `environs` to manage .env and settings:
breaking changes!

- FLASK_APP=lnbits.app
- LNBITS_ALLOWED_USERS needs to be empty now to allow all users (NOT "all")
2020-09-06 21:06:01 -03:00
fiatjaf
bf3c44b3c4 extra fields on apipayments + index payments by payment_hash 2020-09-02 11:10:48 -03:00
Eneko Illarramendi
8add56a24c feat: allow limiting the use of LNbits to some user uuids
The `LNBITS_ALLOWED_USERS` env var can be used to limit access
to the application to some uuids only. "all" gives open access.
UUIDs should be comma separated.
2020-05-09 22:30:33 +02:00
Eneko Illarramendi
083f7a0a8d chore: use standard library's HTTP status codes 2020-05-03 15:57:05 +02:00
Eneko Illarramendi
897644956a feat: only dhow disclaimer if SERVICE_FEE has been set 2020-04-23 21:25:55 +02:00
Eneko Illarramendi
75d97ddfc1 refactor: camera ready 2020-03-10 23:12:22 +01:00
Eneko Illarramendi
49addb8d56 refactor: breaking bad 2020-03-08 23:00:41 +01:00