Commit Graph

47 Commits

Author SHA1 Message Date
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
b8de30423f remove walrus operator because python3.7 2020-09-04 21:33:30 -03:00
fiatjaf
c965bca41d migration tracking. 2020-09-04 21:33:30 -03:00
Eneko Illarramendi
23cfe0d417 chore: update github workflows 2020-09-03 23:10:41 +02:00
fiatjaf
660d56d400 run black on everything. 2020-08-30 23:19:43 -03:00
Eneko Illarramendi
8ea72c9934 feat: add CORS headers 2020-05-18 23:33:07 +02:00
Eneko Illarramendi
8dfdd15adb fix: self host icon fonts 2020-04-29 13:24:49 +02:00
Eneko Illarramendi
c3e337a319 fix: mypy errors 2020-04-26 16:58:29 +02:00
Eneko Illarramendi
4bf93d36c6 refactor: change the WITH_ONION env var and use FORCE_HTTPS instead 2020-04-23 18:37:22 +02:00
Eneko Illarramendi
e1c5e970c4 feat: allow disabling extensions at installation level 2020-04-21 23:17:11 +02:00
Eneko Illarramendi
8d328c5465 refactor: remove legacy code 2020-04-21 23:17:11 +02:00
Eneko Illarramendi
d917feeb02 feat: prepare for deploying to Dokku 2020-04-21 23:13:37 +02:00
Eneko Illarramendi
de75057a15 chore: remove legacy frontend libraries 2020-04-17 20:43:14 +02:00
Eneko Illarramendi
a455379ee1 refactor(tpos): migrate extension 2020-04-17 20:39:23 +02:00
Eneko Illarramendi
dd23b20090 chore: various tweaks 2020-04-16 20:58:16 +02:00
Eneko Illarramendi
490e166f75 refactor: improve database migrations 2020-04-16 20:58:16 +02:00
Eneko Illarramendi
d03785558b refactor: a wallet is a wallet is a wallet 2020-03-31 19:05:25 +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
Eneko Illarramendi
d862b16ee6 refactor: "payments" is the name, and API updates 2020-03-07 22:27:00 +01:00
Eneko Illarramendi
f98a5040ac refactor: decorators, models and more broken bits 2020-03-04 23:11:15 +01:00
Arc
15de047bb8
Update __init__.py 2020-02-23 00:42:22 +00:00
Arc
adfa707554
Update __init__.py 2020-02-23 00:16:13 +00:00
Eneko Illarramendi
30cf2e9f99 feat: automatically import extension blueprints 2020-02-19 20:52:34 +01:00
Eneko Illarramendi
e5915bc493 refactor: add a simple config file to extensions
It makes possible to automagically keep the extensions admin page updated.
2020-02-18 20:27:04 +01:00
Eneko Illarramendi
0d33bc2933 refactor: remove databases from code an use schemas instead
All databases are now saved together in the same LNBITS_DATA_FOLDER.
Extensions have to define a schema.yml file for creating the necessary database.
2020-02-10 19:40:01 +01:00
Arc
e8dd29ec5c
Update __init__.py 2020-02-05 13:01:37 +00:00
Arc
37cf44cf23
Update __init__.py 2020-02-05 12:31:48 +00:00
Eneko Illarramendi
9e90aabead refactor: use Flask Blueprints to organize extensions
- extensions are now blueprints: keep views, templastes and statics in the same folder
- increase app security using `flask-talisman`
- whenever possible use {{ url_for }} for links between pages
- remove references to non-existing JavaScript code
- add missing favicon.ico
2020-01-31 21:07:05 +01:00
Arc
044901b598
Update __init__.py 2020-01-29 20:28:24 +00:00
Arc
b16312c9a2
Update __init__.py 2020-01-29 19:18:35 +00:00
Arc
b42c98fadd
Update __init__.py 2020-01-29 15:14:03 +00:00
Arc
b60af27038
Update __init__.py 2020-01-29 14:40:06 +00:00
Arc
60739a7587
For validation 2020-01-29 12:34:42 +00:00
Arc
fc9b30bbee
Form validation to withdrawmaker 2020-01-29 12:24:33 +00:00
Arc
a5e64bd831
Update __init__.py 2020-01-27 23:37:25 +00:00
Arc
02eeafc6c9
Added calls for lnfaucet
All works, although I need to do a bit more on checking faucet time etc, but the basic lnurl withdraw stuff works.
Can we move this to the lnfaucet extension folder please
2020-01-27 23:05:21 +00:00
Arc
496f94249c
Update __init__.py 2020-01-21 19:47:22 +00:00
Eneko Illarramendi
0d517b884a refactor: code review 2020-01-16 13:58:27 +01:00
Arc
15f527fa39
Update __init__.py 2020-01-16 12:39:46 +00:00
Arc
65d9a146c5
Update __init__.py 2020-01-15 15:17:22 +00:00
Eneko Illarramendi
47b93a97d6 refactor: unify responses in backend wallets 2020-01-10 21:26:42 +01:00
fiatjaf
b89753abd5 400->200 on invoice check timeout. 2019-12-30 10:59:11 -03:00
fiatjaf
cedce73f07 order transaction chart by date. 2019-12-29 07:56:10 -03:00
fiatjaf
7440602acd black 2019-12-18 13:52:49 +00:00
fiatjaf
5f6585eb45 fee reserve defaults to 0. 2019-12-18 13:44:58 +00:00
Eneko Illarramendi
9a21cee902 refactor: change folder case 2019-12-17 17:04:51 +01:00