Commit Graph

29 Commits

Author SHA1 Message Date
dni ⚡
45b199a8ef
create datadir on launch (#1674)
* create datadir on launch
* change makedirs to Path.mkdir
2023-05-09 10:04:27 +02:00
dni ⚡
50149c360c
add assert 2023-04-05 11:38:07 +02:00
dni ⚡
2a1a0f3a2f
fix pyright issues 2023-04-04 07:49:13 +02:00
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
Pavol Rusnak
02306148df
fix pyright lnbits
Co-authored-by: dni  <office@dnilabs.com>
2023-04-04 07:34:17 +02:00
Pavol Rusnak
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
Vlad Stan
e1e34def8c fix: correct method names for Path 2023-03-20 16:07:20 +02:00
Pavol Rusnak
a805d2a0e8 refactor extension_manager to use pathlib.Path instead of os.path.join 2023-03-20 16:07:20 +02:00
Vlad Stan
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
jacksn
83f04534e7 remove lnbits_disabled_extensions, fix is_admin_only 2023-03-05 13:36:36 +01:00
Vlad Stan
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
calle
c5e2bbc1c6
Installer: log process (#1530) 2023-02-21 12:19:50 +01:00
callebtc
bb26f2c7f0 Merge branch 'main' into default_ext_install 2023-02-20 16:30:30 +01:00
dni ⚡
ca75b328a1
remove invoices (#1515)
* remove invoices

* remove invoices tests

* remove unused tests/extensions dir

* fix issue

* formatting

* test passing locally. and i dont know why

* fix _extension_dir loading

* gitkeep extension dir

* formatting

* remove bundle from check

* do not prettier compliled css

* do not prettier compliled css

* create extension dir, if it does not exists, just to be sure

* Update lnbits/extension_manager.py

---------

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-02-20 15:34:18 +01:00
Vlad Stan
4345361847 chore: code clean-up 2023-02-16 10:48:27 +02: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
Vlad Stan
6276a7a4db fix: icon missing after extension install 2023-01-26 12:30:42 +02:00
Vlad Stan
8ab4cb8c08 fix: restore installed extensions 2023-01-25 15:00:39 +02:00
Vlad Stan
46faa62b8b fix: upgrade vs install 2023-01-25 14:32:41 +02:00
Vlad Stan
f27e5af639 feat: add tabs to install all/featured/installed 2023-01-25 11:15:56 +02:00
Vlad Stan
5ae1a22989 fix: order of declarations 2023-01-23 12:08:44 +02:00
Vlad Stan
567c636b1d refactor: re-order classes 2023-01-23 12:00:09 +02:00
Vlad Stan
39add25b3b refactor use pydantic 2023-01-23 11:52:15 +02:00
Vlad Stan
2dff48dcd0 chore: fix comment 2023-01-20 18:01:05 +02:00
Vlad Stan
5212320d8d refactor: simplify if+for 2023-01-20 18:00:50 +02:00
Vlad Stan
e95c6ec3a6 chore: add docs to InstalledExtensionMiddleware class 2023-01-20 17:58:56 +02:00
Vlad Stan
776acdd857 fix: typo in file name 2023-01-20 10:00:09 +02:00