Commit Graph
4534 Commits
Author SHA1 Message Date
dni ⚡ fa58a5fa4c flake it 2023-04-04 07:35:04 +02:00
dni ⚡ 486631b455 move middleware to middleware.py 2023-04-04 07:35:04 +02:00
dni ⚡ 435743a265 add **kwargs to create_invoice functions 2023-04-04 07:34:51 +02:00
dni ⚡ 72386033a9 formatting 2023-04-04 07:34:51 +02:00
dni ⚡ 69c0cd0276 asserting broke payments 2023-04-04 07:34:51 +02:00
dni ⚡ abfee29676 uncomment webhook_listerner and add TODO 2023-04-04 07:34:50 +02:00
Pavol Rusnakanddni ⚡ 9c8a79eb9b fix pyright lnbits/wallets
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:50 +02:00
Pavol Rusnakanddni ⚡ 0607cb1d6e fix pyright lnbits/core
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:37 +02:00
Pavol Rusnakanddni ⚡ 02306148df fix pyright lnbits
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:17 +02:00
e59a218912 bugfix: 500 error if same wallet tries to pay an external invoice twice (#1594)
* bugfix: 500 error if same wallet tries to pay an external invoice twice

* fstring

* log the error

---------

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2023-04-03 15:34:55 +02:00
689c443d72 increase readability by using f-strings (#1597)
* increase readability by using f-strings

* readd merge conflict stuff

---------

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-04-03 15:34:17 +02:00
calleandGitHub 58c3b05e29 fix internal payment check (#1604) 2023-04-03 15:15:34 +02:00
8ce84ce592 FEAT: Filters for GET requests, add it to GET /payments (#1557)
* feat filters, add them to GET payments

* add limit and offset to filters (#1563)

* add limit and offset to filters
* move filters example to parse_filters doc string

* black

* add openapi docs

* remove example commentC

* improve typing and make nested filter possible in openapi

* typo in fn name

* readd Type

---------

Co-authored-by: jackstar12 <62219658+jackstar12@users.noreply.github.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-04-03 14:55:49 +02:00
fe9e821af5 BUG: proper exception for already paid internal invoices (#1593)
* BUG: proper exception for paid interal invoices

* test should now fail, because we pay invoice twice, and should also work in regtest

* sorting

* unpack check_internal

* introduce another crud fn for checking internal paid payment

* rename

---------

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2023-04-03 14:44:17 +02:00
dni ⚡andGitHub a9bdf24425 FEAT: use versioning for frontend (npm) and copy it to lnbits/static/vendor for easier updating (#1590)
* remove static/vendor

* add node dependencies

* add bolt11-decoder

* run npm install inside dockerimage

* only use bundle.js and bundle.css

* use node_modules for bundling vendor assets

* remove dead code

* make argument optional

* reintroduce vendor dir

* reintroduce vendor and single javascript files, minification

* wrong moment, remove minification

* lock packages with non critical issues

* black
2023-03-31 12:46:24 +02:00
dni ⚡andGitHub 43c9c9754b FEAT: #1552 add copy payment_hash to payment details (#1591)
* add copy to payment details

* icon for calle
2023-03-30 14:30:50 +02:00
dni ⚡andGitHub 9127ebc621 FIX: admin topup to use payment_hash (#1588)
* FIX: admin topup to use payment_hash

* flake8
2023-03-30 14:21:01 +02:00
dni ⚡andGitHub 407a61cd29 add version to fastapi app and startup log (#1568)
* add version to fastapi app and startup log

* move version into settings

* remove unused dep
2023-03-30 14:19:45 +02:00
calleandGitHub 994b203a8e return fee in status (#1598) 2023-03-29 19:40:52 +02:00
Vlad Stan 239f166a14 fix: format relative path 2023-03-20 16:07:20 +02:00
Vlad Stan e1e34def8c fix: correct method names for Path 2023-03-20 16:07:20 +02:00
Pavol RusnakandVlad Stan a805d2a0e8 refactor extension_manager to use pathlib.Path instead of os.path.join 2023-03-20 16:07:20 +02:00
Vlad StanandGitHub fbe982af36 fix: assume no pre-installed extensions (#1558)
* fix: assume no pre-installed extensions

* chore: code format
2023-03-15 11:26:07 +01:00
ArcandGitHub dc2a7898f7 Merge pull request #1564 from jackstar12/remove-disabled-extensions
remove lnbits_disabled_extensions
2023-03-07 13:20:56 +00:00
ArcandGitHub 2787d5c6b6 Merge pull request #1542 from lnbits/pullntxbot
RIP Lntxbot, thank you for all your help building LN, you will be missed :(
2023-03-07 12:48:44 +00:00
ArcandGitHub be078a8c52 Merge pull request #1556 from wazint/main
Doc: fix links, spelling and minor updates
2023-03-07 12:39:21 +00:00
ArcandGitHub 934fc0abbb Merge pull request #1560 from lnbits/feat-db-export
FEAT: add db export admin route for pg and sqlite, add to adminui
2023-03-07 12:04:20 +00:00
ArcandGitHub 81986c9b4d Merge pull request #1554 from lnbits/fix-baseurl
FIX: default baseurl should include port
2023-03-07 12:00:19 +00:00
dni ⚡ 194b063311 fix prettier 2023-03-07 12:40:19 +01:00
dni ⚡ 235513f2ef fix if for voidwallet warning 2023-03-07 12:28:52 +01:00
jacksn 0ca4b8dea1 remove lnbits_disabled_extensions from .env.example and admin ui 2023-03-05 21:44:25 +01:00
jacksn 83f04534e7 remove lnbits_disabled_extensions, fix is_admin_only 2023-03-05 13:36:36 +01:00
dni ⚡ 6cf1d97d5a FEAT: add db export admin route for pg and sqlite, add to adminui 2023-03-02 15:22:39 +01:00
dni ⚡ 8410776ffb only make it fallback when adminui is enabled 2023-03-02 12:07:20 +01:00
dni ⚡ e93fbd24be FEAT: add funding source fallback and VoidWallet warning for frontend 2023-03-02 12:03:58 +01:00
wazint aac392a053 doc: fix links, spelling and minor updates 2023-03-01 21:39:40 +02:00
dni ⚡ 061121d635 FIX: default baseurl should include port 2023-03-01 09:55:29 +01:00
dni ⚡andGitHub 6f194fe2f8 introduce baseurl and remove force_https (#1549)
* introduce baseurl and remove force_https

* calle's suggestions
2023-02-28 13:45:43 +01:00
Vlad StanandGitHub f9695c0569 fix: init filteredExtensions with [] (#1543) 2023-02-23 16:32:40 +01:00
Ben Arc de445aa593 LNtxbot mentioned in a few more places 2023-02-23 11:46:29 +00:00
Ben Arc cbde5744aa RIP Lntxbot, thank you for all your help building LN, you will be missed :( 2023-02-23 11:41:44 +00:00
dni ⚡andGitHub a154ff3175 fix issue #1506 (#1541) 2023-02-23 11:40:24 +01:00
Vlad StanandGitHub 12014ee3e3 fix: hide Admin UI if LNBITS_ADMIN_UI is false (#1537)
* fix: hide Admin config if `LNBITS_ADMIN_UI` is `false`

* chore: code format

* chore: code format
2023-02-22 13:30:57 +01:00
calleandGitHub f7e43cdd95 check for amountless invoices deeper in the call stack (#1536) 2023-02-22 13:30:45 +01:00
Vlad StanandGitHub 0d5fef1cb9 Add redirect paths for extensions (#1532)
* feat: basic redirect to extension endpoint

* feat: filter by headers

* refactor: extract `middleware.py`

* fix: do not add twice the same extension to redirects

* chore: code clean-up
2023-02-22 10:12:16 +01:00
calleandGitHub 84e369aad2 UI: rename extensions button (#1535)
* UI: rename extensions button

* change JS
2023-02-22 10:01:52 +01:00
Vlad StanandGitHub 16a997663d fix: activate default installed extensions (#1533) 2023-02-22 09:43:17 +01:00
calleandGitHub c5e2bbc1c6 Installer: log process (#1530) 2023-02-21 12:19:50 +01:00
Ben Arc 910727a7f4 Sadly had to tone down
due to font color of buttons
2023-02-20 23:17:40 +00:00
Ben Arc bf097a3493 format 2023-02-20 22:45:52 +00:00