Commit graph

6401 commits

Author SHA1 Message Date
Vlad Stan
8c5c455f1c
fix: ext upgrade (#2776) 2024-11-13 13:00:05 +02:00
Vlad Stan
bbae4a01c1 fix: remove release candidate suffix 2024-11-13 10:59:27 +02:00
Vlad Stan
edfd297bf3
refactor: simplify condition (#2775) 2024-11-13 10:28:46 +02:00
Vlad Stan
09b1623bb0
feat: let user filter its own extensions (#2774) 2024-11-12 15:17:05 +02:00
Vlad Stan
fa18170ed7
fix: extension name and icon (#2771) 2024-11-12 10:34:45 +02:00
Vlad Stan
3eece03715
fix: vue3 changes (#2770) 2024-11-12 10:01:33 +02:00
Vlad Stan
dd972e2aaa
[ui] update settings UI (#2767) 2024-11-08 10:15:56 +02:00
Vlad Stan
ec9ad9f940
refactor: make settings key-value in DB (#2766) 2024-11-08 10:06:21 +02:00
Vlad Stan
aced333c0b
fix: check the settings for extension installed (#2764) 2024-11-06 12:07:12 +02:00
Vlad Stan
ba5f79da2d
refactor: extract models (#2759) 2024-11-05 13:26:12 +02:00
dni ⚡
acb1b1ed91
fix: add list handling (#2758) 2024-11-01 11:12:18 +02:00
Vlad Stan
2fa0a3c995
fix: v1 left over (#2757) 2024-10-31 15:49:55 +02:00
Vlad Stan
1dddc9e7f0
fix: handle list models (#2756) 2024-10-31 14:21:23 +02:00
Osvaldo Rosales
581f98b3a3
Add NFC Payment Support and Display Receive Amount in Receive Dialog (#2747)
* feat: add readNfcTag to core wallet

* feat: added payments/ endpoint to pay invoice with lnurlw from nfc tag

* feat: add notifications to nfc read and payment process

* feat: display sat and fiat amount on receive invoice

* feat: add notifications for non-lnurl nfc tags

* removed unnecesary payment updates

* fix: case when lnurlw was already used. lnurl_req status error

* fix: lnurl response status error

* fix: abort nfc reading on receive dialog hid

* feat: dismiss tap suggestion when nfc tag read successfully

* update: NFC supported chip

* remove console.log

* add: function return type

* test: happy path for api_payment_pay_with_nfc

* feat: follow LUD-17, no support for lightning: url schema

* explicit lnurl withdraw for payment

* test: add parametrized tests for all cases of api_payment_pay_with_nfc endpoint

* fix: payment.amount in response comes already in milisats
2024-10-29 23:50:48 +01:00
Arc
89a75ab641
Hide admin keys in curl example (#2753) 2024-10-29 23:49:46 +01:00
dni ⚡
f228198c20
fix: default timestamp on models (#2755)
closes #2754
2024-10-29 15:39:06 +01:00
dni ⚡
2940cf97c5
feat: parse nested pydantic models fetchone and fetchall + add shortcuts for insert_query and update_query into Database (#2714)
* feat: add shortcuts for insert_query and update_query into `Database`
example: await db.insert("table_name", base_model)
* remove where from argument
* chore: code clean-up
* extension manager
* lnbits-qrcode  components
* parse date from dict
* refactor: make `settings` a fixture
* chore: remove verbose key names
* fix: time column
* fix: cast balance to `int`
* extension toggle vue3
* vue3 @input migration
* fix: payment extra and payment hash
* fix dynamic fields and ext db migration
* remove shadow on cards in dark theme
* screwed up and made more css pushes to this branch
* attempt to make chip component in settings dynamic fields
* dynamic chips
* qrscanner
* clean init admin settings
* make get_user better
* add dbversion model
* remove update_payment_status/extra/details
* traces for value and assertion errors
* refactor services
* add PaymentFiatAmount
* return Payment on api endpoints
* rename to get_user_from_account
* refactor: just refactor (#2740)
* rc5
* Fix db cache (#2741)
* [refactor] split services.py (#2742)
* refactor: spit `core.py` (#2743)
* refactor: make QR more customizable
* fix: print.html
* fix: qrcode options
* fix: white shadow on dark theme
* fix: datetime wasnt parsed in dict_to_model
* add timezone for conversion
* only parse timestamp for sqlite, postgres does it
* log internal payment success
* fix: export wallet to phone QR
* Adding a customisable border theme, like gradient (#2746)
* fixed mobile scan btn
* fix test websocket
* fix get_payments tests
* dict_to_model skip none values
* preimage none instead of defaulting to 0000...
* fixup test real invoice tests
* fixed pheonixd for wss
* fix nodemanager test settings
* fix lnbits funding
* only insert extension when they dont exist

---------

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
Co-authored-by: Arc <ben@arc.wales>
Co-authored-by: Arc <33088785+arcbtc@users.noreply.github.com>
2024-10-29 09:58:22 +01:00
Vlad Stan
ae4eda04ba
test: more payment tests (#2738)
* test: pay_invoice
2024-10-17 10:27:36 +02:00
Vlad Stan
13f2dd732f
fix: await retry (#2739) 2024-10-16 11:09:45 +02:00
Pavol Rusnak
80ec9e1307
update starlette and fastapi (#2737) 2024-10-16 07:00:12 +02:00
Vlad Stan
3b503eaa8a
feat: add server status endpoin (#2736) 2024-10-15 14:53:49 +03:00
dni ⚡
ecc62b0011
feat: explicitly export for extensions from __init__.py (#2669)
* feat: explicitly export for extensions from `__init__.py`

makes it clear what extensions are expected to use and also makes future
changes to the structure of core safer because extension can just depend
on ```from lnbits import require_admin_key``` for example
2024-10-14 10:35:41 +03:00
Zoltán Gálli
b83c2e9368
docs: fix installation guide (#2734)
Co-authored-by: Gálli Zoltán <gallizoltan@gmail.com>
2024-10-10 21:22:15 +02:00
jackstar12
512c85592f
fix(boltz): sanitize invoice description (#2731)
Boltz rejects nbsp char (produced by JS Intl.NumberFormat api), so simply replace it with normal space
2024-10-09 19:32:56 +02:00
jackstar12
76b01695a0
fix(boltz): check for direct onchain payments (#2732) 2024-10-09 18:52:20 +02:00
jackstar12
d7065392d1
chore: add .idea folder to gitignore (#2730) 2024-10-09 19:31:50 +03:00
Vlad Stan
a58deff70c
feat: block pay invoice (#2727) 2024-10-01 17:17:42 +03:00
dni ⚡
e85a78854e
feat: make LNBITS_ADMIN_UI the default (#2726)
* feat: make LNBITS_ADMIN_UI the default
* fix create fake admin
2024-10-01 11:36:22 +02:00
dni ⚡
a28e334c5f
test: fix test warning (#2725) 2024-10-01 11:07:13 +02:00
dni ⚡
a4c000d7dc
feat: add password reset for usermanager (#2688)
* feat: add password reset for usermanager
- add a reset_key to account table
- add ?reset_key= GET arguments to index.html and show reset form if provided
- superuser can generate and copy reset url with key to share
future ideas:
- could add send forgot password email if user fill out email address
* feat: simplify reset key
* test: use reset key
* test: add more tests
* test: reset passwords do not match
* test: `reset_password_auth_threshold_expired`

---------

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
2024-10-01 10:59:57 +02:00
dni ⚡
3a64cf5245
feat: add currency options to LNbits.api (#2713)
* feat: add currency options to LNbits.api
2024-09-30 14:01:30 +02:00
Vlad Stan
0b8da2b524
[feat] Nostr Login (#2703)
---------

Co-authored-by: dni  <office@dnilabs.com>
2024-09-30 13:53:38 +02:00
dni ⚡
f062b3d5e5
ci: do not create gh release on rc's (#2716)
* ci: do not create gh release on rc's
2024-09-30 08:51:19 +02:00
dni ⚡
b9e9da5da7
fix: fundingsources template id was wrong (#2723) 2024-09-29 22:59:13 +02:00
dni ⚡
953a466119
fix: more vue3 q-tables and v-model:value (#2717) 2024-09-27 15:18:56 +02:00
dni ⚡
7ad360d176
fix: vue3 i18n changed it replacements markers (#2722)
* fix: vue3 i18n changed it replacements markers
* chore: bundle
2024-09-27 14:59:06 +02:00
dni ⚡
898f264951
refactor: use <template> for components (#2715)
* refactor: use <template> for components
* fix paymentchart
2024-09-27 12:09:47 +02:00
dni ⚡
75bcbdc18d
chore: remove used crud for webpush settings (#2719) 2024-09-27 09:35:33 +03:00
dni ⚡
3ac6bc3c3b
fix: vue3 language switcher (#2712) 2024-09-25 12:09:00 +02:00
Vlad Stan
04882e05a3
chore: update some log messages (#2710) 2024-09-25 11:22:00 +03:00
dni ⚡
cf2aca3327
fix: forgotten Vue inits (#2708) 2024-09-25 08:01:11 +03:00
dni ⚡
1d0547ea97
fix: use Quasar.notify (#2707)
* fix: use Quasar.Notify.create
instead of this.$q, had issues when pasting invoice, using the `Quasar`
is more consistent
2024-09-24 16:18:56 +02:00
dni ⚡
99c5f00c91
fix: extensions tab for vue3 (#2706) 2024-09-24 13:39:31 +03:00
dni ⚡
723d8ba98f
chore: update to v1.0.0-rc2 (#2705) 2024-09-24 11:48:28 +02:00
Tiago Vasconcelos
daee2b3418
Check for theme params on the URL (#2678)
---------

Co-authored-by: dni  <office@dnilabs.com>
2024-09-24 11:44:07 +02:00
dni ⚡
9d7e54f6b2
refactor: use CreatePayment model instead of a lot of kwargs (#2667)
- refactoring create_payment a bit to use a model instead of 10 kwargs
2024-09-24 11:13:30 +02:00
dni ⚡
053ea20508
feat: update to Vue3 (#2677)
* update packages for vue3
* fix make bundle and make checkbundle to include bundle-components
* add lnbits/static/bundle-components.js

---------

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-09-24 11:06:27 +02:00
dni ⚡
04aefc8077
refactor: remove get_key_type decorator (#2676)
* refactor: remove `get_key_type` decorator
breaking change for 1.0.0
2024-09-24 10:56:34 +02:00
dni ⚡
21d87adc52
mega chore: update sqlalchemy (#2611)
* update sqlalchemy to 1.4
* async postgres

---------

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-09-24 10:56:03 +02:00
dni ⚡
c637e8d31e
fix: internal payment can still be pending (#2686)
bug introduced last commit
2024-09-16 20:43:17 +02:00