Pavol Rusnak and GitHub
bff44b7097
update nix ci action to use cachix to cache results ( #2170 )
2023-12-19 11:54:14 +01:00
Pavol Rusnak and GitHub
95f6ae2bb6
chore: new translations ( #2183 )
...
* new translations
* chore: make bundle
2023-12-19 11:22:37 +01:00
Pavol Rusnak and GitHub
a15af87f9b
fix make checkbundle which should not bump the serviceworker version ( #2184 )
2023-12-19 11:22:05 +01:00
Pavol Rusnak and GitHub
9877ca602f
use _blank for external links on main ( #2172 )
2023-12-12 15:08:30 +01:00
Pavol Rusnak and GitHub
e76ba62b46
add vars related to service fee to .env.example ( #2143 )
2023-12-12 11:17:36 +01:00
Pavol Rusnak and GitHub
2d00f4c41c
add checkbundle to make check ( #2169 )
2023-12-12 11:13:58 +01:00
Pavol Rusnak and GitHub
3ad18ca365
chore: update to version 0.11.3 ( #2168 )
2023-12-12 11:13:43 +01:00
Pavol Rusnak and GitHub
cf4d575062
add i18n checker and autogenerated AI translations ( #2160 )
...
* use translated string
* fix typos in lnbits/static/i18n/{it,jp,nl,we}.js
* add missing strings to cs,en,sk translations
* remove duplicates from lnbits/static/i18n/{cs,en,kr,sk}.js
* add i18n checker
* add i18n ai tool
* add autogenerated AI translations
* add i18n-ai-tool check whether variables in formatted strings are not broken
* fix issues with variables found by the script
* chore: make bundle
2023-12-12 10:10:51 +00:00
Pavol Rusnak
f9c9c52d75
use _blank + noopener + noreferrer consistently
2023-12-11 10:51:21 +01:00
Pavol Rusnak
b8e6e80bdf
fix: nix build
2023-12-06 12:55:01 +01:00
Pavol Rusnak
5f36800100
use awk to bump CACHE_VERSION (drop sed usage)
2023-12-01 10:27:41 +01:00
Pavol Rusnak and GitHub
62b0e3fe89
set User-Agent when accessing external resources ( #2100 )
...
* set User-Agent when accessing external resources
* refactor User-Agent into settings.user_agent
2023-11-30 12:54:07 +00:00
Pavol Rusnak and GitHub
992e3bfb9a
optimize PNG images in lnbits/static/images for size ( #2131 )
...
* optimize PNG images in lnbits/static/images for size
* remove lnbits/static/extension.png which is not used anywhere
* add tools/optipng.sh
2023-11-30 12:50:19 +00:00
Pavol Rusnak and GitHub
8e63756c61
docs: small cleanup ( #2107 )
2023-11-21 22:30:52 +01:00
Pavol Rusnak
62fa22098e
change color theme icons
2023-11-13 15:41:11 +01:00
Pavol Rusnak and GitHub
d1b89bc68a
dotenv is not required directly, only indirectly ( #2087 )
...
via environs and pydantic (both already present in pyproject.toml)
2023-11-08 08:54:46 +01:00
Pavol Rusnak
5b62f1c586
make example paths in .env.example less confusing
2023-11-07 18:25:01 +01:00
Pavol Rusnak
7306df3445
handle correctly the case with no active channels
2023-11-07 13:03:16 +01:00
Pavol Rusnak
10fb35b47f
make bundle
2023-11-06 15:17:47 +01:00
Pavol Rusnak
0ffba99eaf
i18n: add flags to languages
2023-11-06 15:17:47 +01:00
Pavol Rusnak
18ebe010bc
i18n: add Czech (cs) and Slovak (sk) localization
2023-11-06 15:17:47 +01:00
Pavol Rusnak and GitHub
4817a62a66
i18n: remove empty lines ( #2079 )
2023-11-06 10:54:44 +01:00
Pavol Rusnak and GitHub
5473d9e940
add comment why CLightningWallet alias should be kept ( #2065 )
2023-11-06 10:20:26 +01:00
Pavol Rusnak and GitHub
1ab68e80b3
use floor() instead of round() to convert msat to sat in frontend ( #2070 )
...
* use floor() instead of round() to convert msat to sat in frontend
2023-11-06 07:49:47 +01:00
Pavol Rusnak
3b01af242c
remove unnecessary str() in f-string
2023-10-27 14:05:16 +02:00
Pavol Rusnak and GitHub
3a134672e9
Update docs/guide/installation.md ( #2059 )
2023-10-25 08:28:42 +02:00
Pavol Rusnak
c02e0618af
add "nix build" to GitHub CI
...
run only when poetry/flake files change
2023-10-16 15:49:56 +02:00
Pavol Rusnak
1226d2e6d8
update poetry.lock
2023-10-16 15:49:25 +02:00
Pavol Rusnak
018d2fe800
run optipng -o 7 on PNG logos again
2023-10-16 14:53:56 +02:00
Pavol Rusnak
647f53821b
run optipng -o 7 on PNG logos to reduce their size
2023-10-16 14:53:56 +02:00
Pavol Rusnak
3bac759cab
remove old logo from docs
2023-10-16 14:53:56 +02:00
Pavol Rusnak and GitHub
00c3b69c7a
downgrade rpds-py to 0.10.3 which is not broken on nix ( #2027 )
2023-10-12 20:14:16 +02:00
Pavol Rusnak and GitHub
6457f7b5e6
use PNG logo for QR code instead of SVG logo ( #2028 )
...
SVG causes rendering issues on some browsers unfortunately
2023-10-12 12:59:02 +02:00
Pavol Rusnak
dc7ce1e43c
make bundle
2023-10-11 15:45:42 +02:00
Pavol Rusnak and GitHub
ba0e431199
add possibility to turn off new registrations ( #2017 )
...
with LNBITS_ALLOW_NEW_ACCOUNTS=false
while keeping existing users functional (i.e. no allowlist for existing users)
2023-10-11 13:46:27 +02:00
Pavol Rusnak and GitHub
cb746056e0
dependency cleanup ( #2011 )
...
- async-timeout is not used anywhere (nor core neither extensions)
- cerberus is not used anywhere (nor core neither extensions)
- move embit and secp256k1 to end of the list
- these are not used by core
- document which extensions use them
2023-10-07 21:06:58 +02:00
Pavol Rusnak and GitHub
c1b3938d5d
use current version of logo for manifest icon ( #2010 )
2023-10-07 10:38:37 +02:00
Pavol Rusnak and GitHub
4dfce8f0fa
drop version from readme ( #2001 )
2023-10-06 08:59:02 +02:00
Pavol Rusnak and GitHub
b13c470d54
fix typos ( #1969 )
2023-09-27 08:02:28 +02:00
Pavol Rusnak and GitHub
bd1db0c919
add editorconfig config, fix issues (only whitespace changes) ( #1958 )
2023-09-25 11:06:25 +01:00
Pavol Rusnak and dni ⚡
9c8a79eb9b
fix pyright lnbits/wallets
...
Co-authored-by: dni ⚡ <office@dnilabs.com >
2023-04-04 07:34:50 +02:00
Pavol Rusnak and dni ⚡
0607cb1d6e
fix pyright lnbits/core
...
Co-authored-by: dni ⚡ <office@dnilabs.com >
2023-04-04 07:34:37 +02:00
Pavol Rusnak and dni ⚡
02306148df
fix pyright lnbits
...
Co-authored-by: dni ⚡ <office@dnilabs.com >
2023-04-04 07:34:17 +02:00
Pavol Rusnak and GitHub
3855cf47f3
Merge pull request #1607 from lnbits/f-strings
...
small followup to #1597
2023-04-03 17:59:50 +02:00
Pavol Rusnak
b2bc378a6f
small followup to #1597
2023-04-03 17:54: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
Pavol Rusnak and Vlad Stan
a805d2a0e8
refactor extension_manager to use pathlib.Path instead of os.path.join
2023-03-20 16:07:20 +02:00
Pavol Rusnak and GitHub
281d37f79c
Merge pull request #1582 from lnbits/docs-nginx
...
docs: add nginx ssl proxy info to installation
2023-03-19 09:27:14 +01:00
Pavol Rusnak and GitHub
0039c60a27
Merge pull request #1583 from lnbits/mypy-pyproject-simplify
...
simplify exclude syntax for mypy in pyproject.toml
2023-03-18 20:49:23 +01:00
Pavol Rusnak and GitHub
3317bc1bc5
Merge pull request #1578 from lnbits/flake-update
...
flake: update to latest nixpkgs
2023-03-17 23:10:55 +01:00
Pavol Rusnak
9cf43dcea1
simplify exclude syntax for mypy in pyproject.toml
2023-03-17 18:05:43 +01:00
Pavol Rusnak
b3910da6d7
flake: update to latest nixpkgs
2023-03-17 18:03:33 +01:00
Pavol Rusnak
ec1caa6015
docs: fix readability of HTTPS section in installation
2023-03-17 15:13:25 +01:00
Pavol Rusnak
0d8d580fc9
docs: add nginx ssl proxy info to installation
2023-03-17 15:10:15 +01:00
Pavol Rusnak
f860c170fc
Bump shortuuid dependency to fix build on Python 3.10
2023-03-10 11:54:23 +01:00
Pavol Rusnak
892d8ffa62
fix markdown links in the readme
2023-03-08 18:15:58 +01:00
Pavol Rusnak and dni ⚡
3bd68cb394
fix pyright lnbits/extensions
...
Co-authored-by: dni ⚡ <office@dnilabs.com >
2023-02-06 13:35:38 +01:00
Pavol Rusnak and dni ⚡
09eab69e12
fix pyright in Makefile, add pyright+pylint+flake8 to check target
...
Co-authored-by: dni ⚡ <office@dnilabs.com >
2023-02-06 13:31:42 +01:00
Pavol Rusnak and dni ⚡
b8a5cc60b8
add pyright workflow, unify mypy+flake8+pylint workflows
...
Co-authored-by: dni ⚡ <office@dnilabs.com >
2023-02-06 13:31:42 +01:00
Pavol Rusnak
58a7098be5
fix unused variable
2023-01-30 11:46:45 +00:00
Pavol Rusnak
430698c763
improve workflow stability for flake8 and pylint
...
followup to #1397
2023-01-30 11:46:45 +00:00
Pavol Rusnak
0ff4c13346
add flake8 to CI, skip remaining 4 flake8 issues (will be addressed later)
2023-01-30 11:46:45 +00:00
Pavol Rusnak
24fbb9ef5d
fix flake8 F811 (redefinition of unused)
2023-01-30 11:46:45 +00:00
Pavol Rusnak
388cfc18fa
fix flake8 F405 (may be undefined)
2023-01-30 11:46:45 +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
967ce06ca5
fix pylint C0206 (consider-using-dict-items)
2023-01-30 11:46:45 +00:00
Pavol Rusnak
3e42adc66f
fix flake8 F601 (dictionary key repeated with different values)
2023-01-30 11:46:45 +00:00
Pavol Rusnak
e05340269b
fix flake8 F841 (local variable is assigned to but never used)
2023-01-30 11:46:45 +00:00
Pavol Rusnak
8a72585f00
fix flake8 W293 (blank line contains whitespace)
2023-01-30 11:46:44 +00:00
Pavol Rusnak
a02f147482
fix flake8 E302 (expected 2 blank lines)
2023-01-30 11:46:44 +00:00
Pavol Rusnak
421214bc36
fix flake8 W291 (trailing whitespace)
2023-01-30 11:46:44 +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
9ef4bd8fb9
add pylint workflow after all enabled issues were fixed
2023-01-30 11:46:44 +00:00
Pavol Rusnak
50c613cdd4
silence pylint W0231 (super-init-not-called)
2023-01-30 11:46:44 +00:00
Pavol Rusnak
a0cc55c5a1
fix pylint C0209 (consider-using-f-string)
2023-01-30 11:46:43 +00:00
Pavol Rusnak
9fa3e5c6cf
fix pylint W0102 (dangerous-default-value)
2023-01-30 11:46:43 +00:00
Pavol Rusnak
906d91bcf1
fix pylint R1714 (consider-using-in)
2023-01-30 11:46:43 +00:00
Pavol Rusnak
35396d7e63
fix pylint R0205 (useless-object-inheritance)
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
32f4c8aa17
fix shadowing in build.py
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
Pavol Rusnak
c8efe41e1a
add flake8 and pylint as dev dependencies
2023-01-30 11:46:43 +00:00
Pavol Rusnak and GitHub
a089188664
add pyright to the project ( #1367 )
...
* add pyright to project + bump prettier to latest
* reformat to match the latest prettier rules
2023-01-23 10:29:17 +01:00
Pavol Rusnak and GitHub
20e6ca019e
replace lnbits-legend with lnbits in github links ( #1366 )
2023-01-14 12:26:17 +01:00
Pavol Rusnak
aa067df380
remove extraneous not payment.extra check
...
followup to fca7e7bec3
2023-01-08 12:19:58 +00:00
Pavol Rusnak
e4c01285b2
followup to fca7e7bec3
...
one extraneous check was forgotten
2023-01-05 13:27:11 +01: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
Pavol Rusnak
2c1d02940d
fix mypy for lnbits/extensions/lnticket
2023-01-03 23:32:18 +01:00
Pavol Rusnak
0efc27993e
fix mypy for lnbits/extensions/splitpayments
2023-01-03 23:25:42 +01:00
Pavol Rusnak
236fe9f8eb
fix mypy for lnbits/extensions/paywall
2023-01-03 23:21:17 +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
Pavol Rusnak
2e57210623
extensions/satspay: remove duplicit functions
...
probably merge error
2023-01-02 18:37:54 +01:00
Pavol Rusnak
aa97e3cb54
add -o to find opts meaning or (default is and)
...
which returns no results
2022-12-30 16:07:32 +01:00
Pavol Rusnak
f7a977ecc8
let's use unique function names
...
so mypy is not confused
2022-12-30 13:16:11 +01:00
Pavol Rusnak
2f377343f1
extensions/gerty: remove duplicit functions
...
probably merge error
2022-12-30 00:11:23 +01:00
Pavol Rusnak
a377381942
use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify
2022-12-29 16:46:35 +01:00
Pavol Rusnak
aa267f52a2
enable nix flake on {aarch64,x86_64}-darwin
2022-12-28 15:09:30 +01:00