Commit Graph

992 Commits

Author SHA1 Message Date
Vlad Stan
d32ad082c7 chore: fix typos 2023-02-15 17:32:49 +02:00
Vlad Stan
7ef4c18b56 doc: update coments 2023-02-15 17:31:10 +02:00
Vlad Stan
e3ac700005 fix: extension DELETE call 2023-02-15 17:25:58 +02:00
Vlad Stan
6a5afe3025 feat: stop extension background work on uninstall or upgrade 2023-02-15 15:34:09 +02:00
dni ⚡
b151004476
fix/unused deps (#1473)
* remove unused packages

fixup

* typo in log
2023-02-07 18:09:22 +01:00
ben
31ae40d44d Working 2023-02-01 06:30:03 +00:00
ben
d2d7bd6469 format 2023-02-01 06:13:01 +00:00
ben
e20bb99811 Removes install page reloads 2023-02-01 06:12:00 +00:00
Pavol Rusnak
a49a654137
fix flake8 F401+F403 (module imported but unused + unable to detect undefined names) 2023-01-30 11:46:45 +00:00
Pavol Rusnak
bc36e6bc4c
fix flake8 F541 (f-string is missing placeholders) 2023-01-30 11:46:44 +00:00
Pavol Rusnak
86e8a3a315
fix flake8 E711 (comparison-to-none) 2023-01-30 11:46:44 +00:00
Pavol Rusnak
eba7319808
fix flake8 E713 (test-for-membership) 2023-01-30 11:46:44 +00:00
Pavol Rusnak
f6bd8684d3
fix flake8 E712 (comparison-to-bool) 2023-01-30 11:46:44 +00:00
Pavol Rusnak
906d91bcf1
fix pylint R1714 (consider-using-in) 2023-01-30 11:46:43 +00:00
Pavol Rusnak
d29fcca6aa
fix pylint W0612 (unused-variable) 2023-01-30 11:46:43 +00:00
Pavol Rusnak
15d7fbeace
run autoflake
```
autoflake -i --remove-unused-variables $(find . -name "*.py")
```
2023-01-30 11:46:43 +00:00
calle
52e654af86
respect https setting in admin ui link (#1416)
* respect https setting in admin ui link

* make format
2023-01-30 11:30:23 +01:00
ben
7ea3d6c245 format 2023-01-28 21:53:00 +00:00
ben
f9d068cf2c Forces featured first 2023-01-28 21:48:27 +00:00
ben
39f0000fa5 Merge remote-tracking branch 'origin/main' into extension_install_02 2023-01-26 12:39:11 +00:00
Vlad Stan
6276a7a4db fix: icon missing after extension install 2023-01-26 12:30:42 +02:00
calle
f0d58a8365
Wallets: add custom invoice expiry (#1396)
* expiry for fakewallet

* expiry for lnd

* lnbits backend

* fix: eclair descriptionHash fixed and expiry added

* cln and sparko

* test expiry

* Eclair from AdminUI and bugfix for nonexistent payments

* add to settings and .env and remove lntxbot

* remove duplicate and format

* add invoice expiry

* add min max and step

* UI works now

* test should fail, sanity check, will revert

* revert, ready for merge

Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
2023-01-26 11:08:40 +01:00
ben
a2fc34c08e reworded 2023-01-25 21:45:54 +00:00
ben
1df9664937 Added notify for non admins 2023-01-25 21:45:01 +00:00
ben
1a20d35a13 format 2023-01-25 21:25:49 +00:00
ben
75e8683fb1 Default featured 2023-01-25 21:24:59 +00:00
ben
9bf2c231f8 5 stars! 2023-01-25 21:21:36 +00:00
ben
8d64c6d877 Adde trim to manifest upload 2023-01-25 21:20:20 +00:00
ben
880c955208 I think its fixed, although stoopid imagur not working locally 2023-01-25 21:07:11 +00:00
ben
925d4ccbe7 Removed streamer copilot, as we need a demo 2023-01-25 20:58:28 +00:00
ben
ad70e9c116 Remove choice all icons will be tiles 2023-01-25 20:51:57 +00:00
ben
cc3dbaa1a7 working again 2023-01-25 20:29:42 +00:00
ben
fd71c82183 gave up on seperate js install file 2023-01-25 20:28:05 +00:00
ben
efa24584f3 Broken, trying to take js out 2023-01-25 17:33:24 +00:00
ben
2eef5028f9 Replaced tiles, for those who have them 2023-01-25 16:57:08 +00:00
ben
50458901d6 Added generic icon for iconless plugiins 2023-01-25 16:55:08 +00:00
ben
c344a70de9 tab tweak 2023-01-25 15:34:10 +00:00
ben
8bae8b06ea Disabled rating 2023-01-25 15:29:06 +00:00
ben
953bca0cf5 Spelling/tweaked card 2023-01-25 15:09:15 +00:00
Vlad Stan
4af80858bc feat: add page titles 2023-01-25 15:49:50 +02:00
Vlad Stan
41a0a2d66e fix: icon size on mobile 2023-01-25 15:37:28 +02:00
Vlad Stan
00c02e3c85 fix: tabs on mobile 2023-01-25 15:28:06 +02:00
Vlad Stan
46faa62b8b fix: upgrade vs install 2023-01-25 14:32:41 +02:00
Vlad Stan
a242a823fc fix: do not propagate technical message to the user 2023-01-25 12:46:45 +02:00
Vlad Stan
1373b88169 fix: stars look&feel 2023-01-25 11:48:57 +02:00
Vlad Stan
9c105e8885 chore: code format 2023-01-25 11:19:11 +02:00
Vlad Stan
f27e5af639 feat: add tabs to install all/featured/installed 2023-01-25 11:15:56 +02:00
Vlad Stan
b016804a5b fix: change star color 2023-01-25 10:05:30 +02:00
Vlad Stan
dd3fc7c2bb fix: merge errors 2023-01-25 09:56:05 +02:00
Vlad Stan
9cca87f738
Merge branch 'main' into extension_install_02 2023-01-25 09:50:54 +02:00
Arc
0de2a62159
Merge pull request #1361 from lnbits/tinyurl
Adds universal tinyurl redirect for lnurls and the like
2023-01-24 21:40:07 +00:00
ben
dda1d9bb3a mypy 2023-01-24 21:29:52 +00:00
ben
c0c4c86808 Added wallet authentication to creat, get and delete tinyurls 2023-01-24 21:26:18 +00:00
ben
7322d27aa3 changed to shortuuid as suggested by Vlad 2023-01-24 20:27:20 +00:00
ben
6c9a52c6e1 mypy being thoroughly objectionable 2023-01-24 13:48:04 +00:00
ben
caadeb77e2 format 2023-01-24 13:32:21 +00:00
ben
5392b2cbfe Fixed models 2023-01-24 13:30:15 +00:00
ben
274615f0b3 Man, broken 2023-01-24 13:27:30 +00:00
ben
e53ccb04ac Added timestamp and endless
For future culling of links. If endless is not specified, then links older than x could be removed
2023-01-24 12:45:15 +00:00
ben
0d0817044c Pissy python and its tuples 2023-01-24 11:03:46 +00:00
ben
3c61f61588 removed http var 2023-01-24 10:40:51 +00:00
ben
39559cccb9 Removes https in super user link 2023-01-23 21:15:43 +00:00
ben
f3b1bca5b8 format 2023-01-23 20:25:47 +00:00
ben
165e5099c1 trying to fix mypy 2023-01-23 19:57:49 +00:00
ben
617b1c941b Merge remote-tracking branch 'origin/main' into tinyurl 2023-01-23 19:53:45 +00:00
Vlad Stan
0b3324cd8f refactor: create TransientSettings for settings that are not to be persisted 2023-01-20 18:10:29 +02:00
Vlad Stan
4530400d33 chore: add types to method params 2023-01-20 17:08:44 +02:00
Vlad Stan
f75529e1c2 fix: double assignment 2023-01-20 16:11:51 +02:00
Vlad Stan
53a95ccc11 refactor: search in list 2023-01-20 16:11:21 +02:00
Vlad Stan
5b6e11a621 fix: import 2023-01-20 16:10:47 +02:00
Vlad Stan
fa5d824eea refactor: remove redundant changes 2023-01-20 15:59:44 +02:00
Vlad Stan
8857cb94b4 feat: move GitHub stars inside the repos list 2023-01-20 15:52:27 +02:00
Vlad Stan
cf4c9baeeb feat: make page more similar with the extensions page 2023-01-20 15:08:48 +02:00
Vlad Stan
223e92f9e2 fix: make layout similar with extensions page 2023-01-20 14:41:37 +02:00
Vlad Stan
a2284da4c3 feat: use Add Extension menu item 2023-01-20 14:33:45 +02:00
Vlad Stan
177d17ec10 chore: remove log statemet 2023-01-20 11:32:39 +02:00
calle
ffb5a91f67
add robots.txt (#1383) 2023-01-20 09:25:46 +01:00
Vlad Stan
730017ed62 fix: import after renaming 2023-01-20 10:06:32 +02:00
Vlad Stan
478d74efc8 fix: separate lnbits_deactivated_extensions from lnbits_disabled_extensions` 2023-01-20 09:39:27 +02:00
Vlad Stan
232a9e9885 fix: UI fixes 2023-01-19 12:34:10 +02:00
Vlad Stan
db73a51c74 feat: allow regular users to view the install page 2023-01-19 12:16:44 +02:00
Vlad Stan
4d87246811 feat: store icon, icon_url and name for installed extensions 2023-01-19 11:57:17 +02:00
Vlad Stan
aa006b66d1 feat: update pre-installed extensions on re-create 2023-01-19 10:15:56 +02:00
Vlad Stan
72965c8d85 chore: clean-up 2023-01-18 17:38:51 +02:00
Vlad Stan
040cd390c8 feat: UI improvements 2023-01-18 17:38:51 +02:00
Vlad Stan
3295c6bebe feat: UI improvements 2023-01-18 17:38:51 +02:00
Vlad Stan
d89128fb93 feat: show release page link 2023-01-18 17:38:51 +02:00
Vlad Stan
f379b784cc chore: refactor 2023-01-18 17:38:51 +02:00
Vlad Stan
66d3e2fb2d feat: add label to repo 2023-01-18 17:38:51 +02:00
Vlad Stan
5bcb8cb349 fix: deactivate on upgrade 2023-01-18 17:38:51 +02:00
Vlad Stan
b957b506f9 fix: close dialog on install 2023-01-18 17:38:51 +02:00
Vlad Stan
b039ab1e6b chore: code clean-up 2023-01-18 17:38:51 +02:00
Vlad Stan
a950af9944 fix: quasar for-each error 2023-01-18 17:38:51 +02:00
Vlad Stan
01b5536f3a feat: Uninstall only installedextensions 2023-01-18 17:38:51 +02:00
Vlad Stan
0195c242c2 feat: add is isAvailable flag 2023-01-18 17:38:51 +02:00
Vlad Stan
584b667637 feat: show new install available icon 2023-01-18 17:38:51 +02:00
Vlad Stan
03df382325 feat: fetch the installed release 2023-01-18 17:38:51 +02:00
Vlad Stan
ce8d45c8c6 feat: only allow activation if installed 2023-01-18 17:38:51 +02:00
Vlad Stan
ebbfdbb6c9 feat: use manage dialog 2023-01-18 17:38:51 +02:00
Vlad Stan
86c86958ae refactor: more and more 2023-01-18 17:38:51 +02:00
Vlad Stan
6b360b927c feat: returned the installed release 2023-01-18 17:38:51 +02:00
Vlad Stan
12060b67ad feat: store and retrieved the installed_release 2023-01-18 17:38:36 +02:00
Vlad Stan
d146a45b59 refactor: move logic to static method get_extension_release 2023-01-18 17:38:36 +02:00
Vlad Stan
9d0cedfcb2 feat: install GitHib releases also 2023-01-18 17:38:36 +02:00
Vlad Stan
41ce316fc6 feat: add install details 2023-01-18 17:38:36 +02:00
Vlad Stan
e8bed9cd90 feat: UI improvements 2023-01-18 17:38:36 +02:00
Vlad Stan
2da466f0c8 chore: clean-up 2023-01-18 17:38:36 +02:00
Vlad Stan
27b308ae1a feat: separate extension release into new API 2023-01-18 17:38:36 +02:00
Vlad Stan
a73e8ae44d feat: stub for extension versions 2023-01-18 17:38:36 +02:00
Vlad Stan
0b49541c15 chore: renamings 2023-01-18 17:38:36 +02:00
Vlad Stan
eb88592473 feat: addd basic version install UI 2023-01-18 17:38:36 +02:00
Vlad Stan
c9bb5a660c feat: show empty Upgrade dialog 2023-01-18 17:38:36 +02:00
Vlad Stan
97ea78f999 fix: return only the latest release 2023-01-18 17:38:36 +02:00
Vlad Stan
522bfcf4ae chore: optimize imports 2023-01-18 17:38:36 +02:00
Vlad Stan
76fbb5ccbb feat: return releases to UI 2023-01-18 17:38:36 +02:00
Vlad Stan
496346b3ba feat: use github releases for installing extensions 2023-01-18 17:38:36 +02:00
Vlad Stan
38a132604b feat: used dedicated table for installed extensions 2023-01-18 17:38:36 +02:00
Vlad Stan
032a000da7 fix: do not fail when one of the extension manifest files is not available 2023-01-18 17:38:36 +02:00
Vlad Stan
4efeae24d0 feat: allow extension manifest configuration from the Admin UI 2023-01-18 17:38:36 +02:00
Vlad Stan
e3ee04edc7 refactor: code clean-up 2023-01-18 17:38:36 +02:00
Vlad Stan
de929c6c70 refactor: extract more methods into InstallableExtension 2023-01-18 17:38:36 +02:00
Vlad Stan
1ca0cf4313 refactor: use factory method 2023-01-18 17:38:36 +02:00
Vlad Stan
0ab913e502 chore: code format 2023-01-18 17:38:36 +02:00
Vlad Stan
2edb9da387 fix: name conflict 2023-01-18 17:38:36 +02:00
Vlad Stan
795d05c109 refactor: extract extensions.py 2023-01-18 17:38:36 +02:00
Vlad Stan
e7a150e708 refactor: move more logic to InstallableExtension 2023-01-18 17:38:36 +02:00
Vlad Stan
1b07768b76 refactor: use check_admin decorator 2023-01-18 17:38:36 +02:00
Vlad Stan
3ed2b3cdeb refactor: move more logic to InstallableExtension 2023-01-18 17:38:36 +02:00
Vlad Stan
cb6349fd76 refactor: extract dome methods to helpers 2023-01-18 17:38:36 +02:00
Vlad Stan
cae71faf37 refactor: use the new check_admin 2023-01-18 17:38:36 +02:00
Vlad Stan
cb24a6a4f9 fix: rating star size 2023-01-18 17:38:36 +02:00
Vlad Stan
a2201c9d31 chore: add extra log 2023-01-18 17:38:36 +02:00
Vlad Stan
6ec1a668ae chore: code format 2023-01-18 17:38:36 +02:00
Vlad Stan
8c1479427d fix: merge issues 2023-01-18 17:38:36 +02:00
Vlad Stan
9dfeef15fd fix: merge issue 2023-01-18 17:38:36 +02:00
Vlad Stan
0d61db13ec fix: handle first time install different than subsequent updates 2023-01-18 17:38:36 +02:00
Vlad Stan
a2d35f65c9 fix: enforce unique key in v-for 2023-01-18 17:38:36 +02:00
Vlad Stan
08be621529 fix: migration module name 2023-01-18 17:38:36 +02:00
Vlad Stan
a6e3b5e049 feat: use hash for unique extension id 2023-01-18 17:38:36 +02:00
Vlad Stan
598d2a6939 feat: re-route trafic when an extension is upgraded 2023-01-18 17:38:36 +02:00
Vlad Stan
6c41ac841b feat: temporary fix for upgrades 2023-01-18 17:38:36 +02:00
Vlad Stan
11815958a3 chore: remove test code 2023-01-18 17:38:36 +02:00
Vlad Stan
2d3ba2c457 fix: UI position 2023-01-18 17:38:36 +02:00
Vlad Stan
66c908e600 chore: migrate after major changes on main 2023-01-18 17:38:36 +02:00
Pavol Rusnak
20e6ca019e
replace lnbits-legend with lnbits in github links (#1366) 2023-01-14 12:26:17 +01:00
ben
ca4134eb02 added conn 2023-01-12 22:52:46 +00:00
ben
f97326bed0 Adde models 2023-01-12 22:42:49 +00:00
ben
6e33784061 Removed lnurlp tests 2023-01-12 22:39:20 +00:00
ben
6d8896c2f6 works 2023-01-12 20:37:03 +00:00
ben
ce701b9506 Made specific migration 2023-01-12 20:25:51 +00:00
ben
2b3a2afe83 Making universal tinyurl function 2023-01-12 15:16:37 +00:00
calle
3e1cc79a23
Merge pull request #1346 from lnbits/fix/settings/lnd_rest_admin_macaroon_nonexistent
fix: add missing entries
2023-01-11 12:15:34 +01:00
callebtc
822a304127 specify in settings panel 2023-01-10 17:35:43 +01:00
Vlad Stan
c370bd18c6 refactor: remove redundant # type: ignore 2023-01-10 09:45:12 +02:00
Pavol Rusnak
191ad1e224
make payment.extra non-optional
this makes handling in tasks.py so much easier
2023-01-05 09:22:34 +01:00
ben
6bb483bfd6 Fixes error in formatting in wallet 2023-01-04 23:16:26 +00:00
callebtc
c96fd6783b fix super_user check, fixes #1250 2023-01-04 10:41:56 +01:00
calle
b622028f7d
Merge pull request #1271 from lnbits/fix/mypy/ignores
removing type: ignore from Query, Depends, Body and import them correctly
2023-01-04 09:19:06 +01:00
Pavol Rusnak
3d0c66f0f6
remove unnecessary argument encoding from bytes.decode() and str.encode()
the encoding parameter defaults to utf-8, so it's not needed
2023-01-03 22:38:28 +01:00
ben
d2ada889dc typo 2023-01-03 20:21:10 +00:00
ben
1b201086ba Merge remote-tracking branch 'origin/main' into icontiles 2023-01-03 19:36:05 +00:00
ben
7bfc455960 mobile tweak 2023-01-03 19:35:24 +00:00
calle
7a406786f6
Merge pull request #1246 from prusnak/drop-binascii
use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify
2023-01-03 10:52:28 +01:00
dni ⚡
b1d1cc6de3 removing type: ignore from Query, Depends, Body and import them correctly 2023-01-02 11:56:28 +01:00
ben
a8c4bea53d Updated extension card layout 2023-01-01 18:14:20 +00:00
ben
7d7cbeeb71 Adjusted layout for ratings and to stop overflow on mobile 2023-01-01 14:55:01 +00:00
ben
59a8ff9dce All extension icons swapped for logo tiles 2022-12-31 14:15:23 +00:00
ben
f5250e0584 initial
Added bunch tiles, more to add
2022-12-31 01:46:55 +00:00
Arc
efc156689f
Merge pull request #1253 from iWarpBTC/qr_inv_pref
QR invoices and lnurls got prefix and uppercased
2022-12-30 01:04:47 +00:00
Pavol Rusnak
a377381942
use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify 2022-12-29 16:46:35 +01:00
calle
7d3888a28b
Merge pull request #1244 from lnbits/refactor/remove_unused_imports
refactor: remove unused imports
2022-12-29 13:51:17 +01:00
Joel Klabo
f70b417b41 Fix Typo in Migration Logging 2022-12-28 16:06:01 -08:00
Gene Takavic
71eebc1441 QR invoices and lnurls got prefix and uppercased 2022-12-28 23:42:36 +01:00
callebtc
cd11f92ed9 make format 2022-12-27 15:00:41 +01:00
callebtc
ead5ae0d82 refactor: remove unused imports 2022-12-27 14:50:42 +01:00
callebtc
6e7bfd03ee clean up 2022-12-27 14:19:51 +01:00
callebtc
a243e4e320 fix: update to latest changes 2022-12-26 12:12:27 +01:00
callebtc
feb61a3fa7 merge 2022-12-26 12:04:07 +01:00
calle
e3c14876a6
Merge pull request #1229 from motorina0/fix_extra_column_select
fix: handle `extra` updates for internal payments
2022-12-26 11:56:30 +01:00
callebtc
b6f0d7b769 feat: api health check endpoint 2022-12-25 18:49:51 +01:00
calle
7b7d06cee3
Merge pull request #1232 from lnbits/fix/allowed_user
BUG: fix auth issue for superusers  when allowed users are set
2022-12-24 11:22:49 +01:00
dni ⚡
1be460aec3 fix user not exist bug in frontend 2022-12-23 11:53:45 +01:00
Vlad Stan
98e0ea5ae2 refactor: only use one (direction) flag for identifying payment 2022-12-22 12:23:46 +02:00
Vlad Stan
a434731729 fix: update the rest of update_payment_extra calls 2022-12-22 11:28:12 +02:00
Vlad Stan
b56d08a70e fix: handle extra updates for internal payments 2022-12-22 11:12:19 +02:00
Vlad Stan
f3c884111d refactor: use dict.update() 2022-12-21 15:47:22 +02:00
Vlad Stan
ec01c74da1 fix: mypy 2022-12-21 15:10:12 +02:00
Vlad Stan
dd4a9f10cf feat: add function to update the extra JSON values 2022-12-21 15:06:45 +02:00
Vlad Stan
b68b8a0292 fix: do not loose error, log it 2022-12-21 15:06:45 +02:00
Vlad Stan
1d509fb9d2 fix: typo Setings -> Settings 2022-12-19 11:07:24 +02:00
dni ⚡
ffe0a77106 fix admin ui only have superuser to topup 2022-12-17 09:52:07 +01:00
ben
940615cb0b Merge branch 'main' into FinalAdminUI 2022-12-16 22:45:54 +00:00
ben
6b69c0f3e4 Fixed theme options
Prop needed to be persisted
2022-12-16 22:44:18 +00:00
callebtc
ac87c49603 fix: disable compression 2022-12-16 17:18:02 +01:00
Vlad Stan
c9745f849e fix: mypy 2022-12-16 12:14:00 +02:00
Vlad Stan
1751831e57 fix: create default wallet for auto created super_user 2022-12-16 12:09:13 +02:00
Vlad Stan
d596992993 feat: .env super_user overwrites DB super_user 2022-12-16 11:22:32 +02:00
Vlad Stan
d6757ed2cf chore: code format 2022-12-16 10:29:53 +02:00
Vlad Stan
4ee68628cc fix: use super_admin from .env if present 2022-12-16 10:29:43 +02:00
Tiago Vasconcelos
7b274433d0 disable topup for non super user admin 2022-12-14 16:09:27 +00:00
dni ⚡
02946c1d1c remove old topup route using new one, change wallet.js handling of that url 2022-12-13 10:17:40 +01:00
dni ⚡
04f0f5b83b improve wording 2022-12-12 12:27:52 +01:00
Vlad Stan
6a80f7c713 chore: code formatting 2022-12-12 10:52:01 +02:00
Vlad Stan
6cab77ece4
Merge branch 'main' into FinalAdminUI 2022-12-12 10:49:31 +02:00
dni ⚡
ab49b7740c add superuser decorator, fix restart route and mypy issue 2022-12-12 09:45:12 +01:00
Vlad Stan
53af4a4b99 fix: only super-user should be able to restart 2022-12-12 10:34:23 +02:00
Vlad Stan
b758cb5be3 fix: remove super_admin from lnbits_admin_users 2022-12-12 10:28:53 +02:00
Vlad Stan
7e2b1e65a0 fix: super-user is a special read-only value that is logged to the console 2022-12-12 10:12:35 +02:00
Vlad Stan
bed2eff7fb fix: send_admin_user_to_saas is not a settings method 2022-12-12 09:45:08 +02:00
calle
5d6d1fb87f
Merge pull request #1033 from lnbits/startup/skip_invoice_expriy_check
On-the-fly invoice expiry check
2022-12-11 11:54:11 +01:00
Vlad Stan
e28dea97d8 fix: update the in-memory settings object when the DB is updated 2022-12-09 14:53:51 +02:00
Vlad Stan
6252119485 fix: add super_user to the lnbits_admin_users list 2022-12-09 14:53:09 +02:00
Vlad Stan
99e7bf5cd0 chore: code format 2022-12-09 14:09:16 +02:00
Vlad Stan
4cd2fe7ee1
Merge branch 'main' into FinalAdminUI 2022-12-09 14:06:47 +02:00
Vlad Stan
d6d42250a9 refactor: use JSON for settings 2022-12-09 13:14:22 +02:00
Vlad Stan
0d4954c01a chore: temp commit (does not work); don't want to lose changes 2022-12-09 09:46:30 +02:00
Vlad Stan
d15782521d refactor: include admin extension into core 2022-12-08 15:41:52 +02:00
callebtc
0538035084 msat values are ints 2022-12-08 14:33:52 +01:00
Tiago Vasconcelos
61c3476ba7 fix display columns for hide api and or ad space 2022-12-08 11:46:44 +00:00
callebtc
ab4a9370e7 style: make format 2022-12-07 14:57:10 +01:00
callebtc
5f4fa61310 refactor:depend_admin_user 2022-12-07 14:56:45 +01:00
dni ⚡
c189ec49e5 add superuser class to obscure superuser_id for admin in the ui 2022-12-07 11:00:48 +01:00
callebtc
e15cfeb943 print only if migration takes place 2022-12-06 21:05:09 +01:00
callebtc
6eb9c5d9ee better sort sql clause 2022-12-06 21:04:10 +01:00
callebtc
6f5f7753ef fix audit endpoint 2022-12-06 20:58:09 +01:00
callebtc
3bb11dc487 separate migrations 2022-12-06 16:21:19 +01:00
callebtc
36cebffbf5 clean migration 2022-12-06 13:23:51 +01:00
callebtc
07724eaa0f clean up if clause 2022-12-06 13:21:34 +01:00
callebtc
269ea0f975 optional expiry (float now) in Payment model 2022-12-06 13:08:36 +01:00
callebtc
8c324d8634 make format 2022-12-06 10:48:34 +01:00
callebtc
441d5337a3 fix expiry integer 2022-12-06 10:48:16 +01:00
dni ⚡
c56a31e6f5 add superuser and refactor check_admin function, also put it into satspay 2022-12-05 20:41:23 +01:00
dni ⚡
12b0ec138d removed unused file 2022-12-05 15:37:01 +01:00
callebtc
32448c4b0c on-the-fly deletion 2022-12-02 18:55:53 +01:00
callebtc
167c2ce9f1 make format 2022-12-02 18:51:52 +01:00
callebtc
7a6450f032 add expiry to Payment model 2022-12-02 18:51:18 +01:00
callebtc
2134b63cea readd comments 2022-12-02 17:48:47 +01:00
callebtc
1a98f15d48 remove STARTUP_INVOICE_EXPIRY_CHECK 2022-12-02 17:39:56 +01:00
callebtc
4e69924c9c fix datetime conversion 2022-12-02 17:38:36 +01:00
Tiago Vasconcelos
fe5e1241bf fix some of Vlad's review comments 2022-12-02 14:52:31 +00:00
Tiago Vasconcelos
4410968bf5 enable disable ads and display ads 2022-12-02 14:36:09 +00:00
callebtc
79ffbb7bc2 merge main 2022-12-02 11:23:20 +01:00
ben
8ca390e0b0 format 2022-12-01 18:41:58 +00:00
benarc
a220acb583 Removed id, using param instead 2022-12-01 14:41:57 +00:00
benarc
4aeb7683e5 Added Response 2022-12-01 13:15:46 +00:00
Tiago Vasconcelos
3ff14cb71b change status code to 400 on exception 2022-12-01 12:21:25 +01:00
dni ⚡
86d2780c9f fix template typos and also update settings in memory after a admin PUT 2022-11-30 23:47:52 +01:00
ben
9a9733c1ce Auto stash before merge of "universalwebsocket" and "origin/universalwebsocket" 2022-11-29 11:23:34 +00:00
Arc
a7fd44f4ca
Merge branch 'main' into universalwebsocket 2022-11-29 11:12:28 +00:00
ben
31d9f2e2ee Removed returns and reverted socket check so multiple clients can join 2022-11-29 11:09:54 +00:00
Tiago Vasconcelos
b68172696d change status code to 400 on exception 2022-11-29 10:28:19 +00:00
ben
187d709098 isort 2022-11-28 13:28:11 +00:00
ben
bb84f6b0e8 Black 2022-11-28 13:24:10 +00:00
ben
aefd1fad69 isort 2022-11-28 13:13:45 +00:00
ben
746e119046 added vlads suggestion 2022-11-28 13:04:35 +00:00
ben
00123d6c16 Merge remote-tracking branch 'origin/main' into universalwebsocket 2022-11-28 12:29:34 +00:00
dni ⚡
a92bb03664 merge from main 2022-11-24 14:37:50 +01:00
dni ⚡
74eece78de merge from master 2022-11-24 14:35:32 +01:00
ben
3cea3a0ba8 Removed payments websocket example
To be prob added back at a later date
2022-11-24 11:18:38 +00:00
Arc
e1b44a000b
Merge pull request #1140 from motorina0/fix_cln_unhashed_description
fix: allow both `description_hash` and `unhashed_description` to be present
2022-11-24 02:57:42 -08:00
ben
dce4da96b7 fixed function name clash 2022-11-24 00:46:39 +00:00
ben
c2a737ab84 Black 2022-11-24 00:34:46 +00:00
ben
f876f0659f Moved into correct files, and added payment example 2022-11-24 00:21:39 +00:00
ben
fde128e961 Better naming 2022-11-23 23:35:02 +00:00
ben
cea4f9350c black 2022-11-23 22:42:32 +00:00
ben
152991fbec added try for return 2022-11-23 22:31:11 +00:00
ben
2f08255e92 added get option 2022-11-23 22:27:09 +00:00
ben
4b707b5a30 updated function names 2022-11-23 22:22:33 +00:00
ben
51ca515d26 renamed for clarity 2022-11-23 21:51:32 +00:00
ben
5a96bcd558 Adds universal websocket manager any extension can use
Connect to the `ws://<your-lnbits>/api/v1/ws/{item_id}` endpoint

POST data to the websocket with `https://<your-lnbits>/api/v1/ws/{item_id}`
2022-11-23 21:47:26 +00:00
ben
390d74eaf6 prettier 2022-11-23 16:57:27 +00:00
Vlad Stan
3edbe1b895 fix: allow both description_hash and unhashed_description to be present 2022-11-22 11:52:29 +02:00
ben
27ad32eede slight ui tweak for mobile 2022-11-20 18:06:29 +00:00
ben
0836ba6c77 Added to homescreen 2022-11-20 17:59:43 +00:00
ben
0c94b159e2 Improved ad space function 2022-11-20 17:29:07 +00:00
Vlad Stan
ea1d9eb088
Merge pull request #1116 from lnbits/add/add_tpos_last_tx_list
Add the ability to check for last (5) transactions
2022-11-18 13:13:55 +02:00
Tiago Vasconcelos
4549190e86 abstract get latest payments for extensions 2022-11-17 12:59:40 +00:00
ChuckNorrison
1971b9a24b
fix integer out of range for apipayments
related to #1030, this was missing
2022-11-16 23:06:21 +01:00
dni ⚡
e670b53412 fix WALLET initialisation 2022-10-25 09:24:14 +02:00
dni ⚡
f9de542361 use new settings and remove unused amdin extension stuff 2022-10-25 09:23:30 +02:00
dni ⚡
cede3317f3 prettier 2022-10-25 09:20:16 +02:00
dni ⚡
bfff5f3775 fix ADMIN_UI=false errors 2022-10-25 09:20:16 +02:00
dni ⚡
11393ef7e9 fix AD_SPACE 2022-10-25 09:20:16 +02:00
dni ⚡
a6bdd8c575 format 2022-10-25 09:20:16 +02:00
ben
3129692ab1 reverted other try 2022-10-25 09:20:16 +02:00
ben
429217f5a4 Had to add a couple of tries 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
a07fbf0187 allow user settings without restart 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
2a63fb1914 allow html to be passed to description 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
48d6a89e5b remove core admin.html 2022-10-25 09:20:16 +02:00
Tiago vasconcelos
b4885de9e2 remove core admin html (renamed for now) 2022-10-25 09:20:16 +02:00
benarc
a3b1d9528c old admin setup UI 2022-10-25 09:20:16 +02:00
dni ⚡
09cf654427
Proper Error Handling for qrcode-stream components (#1076)
* proper errorhandling for camera

* fix javascript for calle
2022-10-24 12:32:20 +02:00
Anton Kovalenko
193d037ad6
Allow more than 2-nd level domain in incoming ln-addresses (#914) 2022-10-24 12:23:11 +02:00
calle
d1302e4868
show progress (#987) 2022-10-11 08:52:39 +02:00
Arc
00667badfd
Merge pull request #1022 from tehelsper/main
Add MYNODE Image
2022-10-06 17:50:31 +01:00
callebtc
efc024e1c0 check expiry upon payment creation 2022-10-05 14:17:23 +02:00
calle
5a12f4f237
Improved SSE listeners (#865)
* logging listeners

* comments

* generate privkey upon init

* listener queue

* remove duplicate check

* make format

* reuse channel

* error handling in sse listener

* uuid for listeners

* register named invoices

* uuid for listeners and listener list

* fix poetry lock

* setuptools

* requirements asyncio timeout

* setuptool;s

* make format

* remove async-timeout

* async_timeout readd

* try lower setuptools version

* try lower lower setuptools version

* back to current version + fix, maybe

* fix worflows to use poetry 1.2.1

* remove uneeded setuptools from build-system

* fix up formatting workflow

* debug to trace

* more traces

* debug logs to trace

Co-authored-by: dni  <office@dnilabs.com>
2022-10-04 09:51:47 +02:00
Taylor Helsper
148789a86f
Fix formatting 2022-09-30 10:19:17 -05:00
Taylor Helsper
04cfdc2bf3
Update index.html 2022-09-29 23:06:45 -05:00
dni ⚡
325139066c
fix service-worker.js issue #1009 (#1017)
* service-worker.js fix for issue #1009

fixup

* remove weird comment
2022-09-29 20:40:58 +02:00