Commit Graph

53 Commits

Author SHA1 Message Date
Pavol Rusnak
5f64c298c9
chore(i18n-ai-tool): use gpt-4o model + chore(i18n): update strings using the AI tool (#2511)
* chore(i18n-ai-tool): use gpt-4o model

* chore(i18n): update strings using the AI tool
2024-05-22 14:18:23 +03:00
Pavol Rusnak
33c50100ab fix: small update to i18n-ai-tool system prompt 2024-04-18 15:44:17 +02:00
dni ⚡
98ec59df96
feat: adhere to ruff's B rules (#2423)
* feat: adhere to ruff's `B` rules
last of the ruff checks.
closes #2308
* B904
* B008
* B005
* B025
* cleanup on fake
2024-04-17 13:11:51 +02:00
dni ⚡
b145bff566 chore: adhere to ruff's UP
basically use `list` and `type` instead of `List` and `Type`

this is save to use for python3.9 and has been deprecated. also has some
performance drawbacks.
read more here: https://docs.astral.sh/ruff/rules/non-pep585-annotation/
2024-04-15 13:38:04 +02:00
dni ⚡
6d5ad9e229
chore: adhere to ruff's "N" rules (#2377)
* chore: adhere to ruff's "N" rules

WARN: reinstall failing extensions!

bunch of more consistent variable naming. inspired by this issue.
https://github.com/lnbits/lnbits/issues/2308

* fixup! chore: adhere to ruff's "N" rules
* rename to funding_source
* skip jmeter

---------

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-04-15 09:02:21 +02:00
dni ⚡
e0b7d2f739
chore: adhere to ruff's C (#2379) 2024-04-03 17:56:05 +02:00
dni ⚡
c67fcf0e45 chore: adhere to ruff's A
dont use pythjons builts in functions name as variable
2024-04-02 17:11:06 +02:00
dni ⚡
60839481ad
feat: add tool preimage generator (#2321)
`poetry run python tools/preimage.py`
2024-03-12 11:46:46 +01:00
dni ⚡
884a1b9d6f
test: lint tests and tools aswell (#2296)
* test: lint `tests` and `tools` aswell

more linting :)

* fix linting issues in tests and tools

* fixup!

* how is this working?
2024-02-27 13:30:52 +00:00
dni ⚡
14ae6d8b1a
feat: add node url to api keys & docs (#2283)
* feat: add node url to api keys & docs

closes #2277

* add finnish to tools/i18n-ai-tool.py

* regenerate localization with i18n-ai-tool

* chore: make bundle

---------

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-02-20 13:32:49 +02:00
Pavol Rusnak
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
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
dni ⚡
4e6f229db2
[CHORE] string formatting default length 88 (#1887)
* [CHORE] string formatting default length 88

uses blacks default off 88 and enabled autostringformatting

* formatting

* nitpicks jackstar

fix
2023-08-24 10:26:09 +01:00
dni ⚡
1b84ebf13d
FEAT: build static files with npm (sass, concat, minify), remove build step from python, include minified bundle files (#1601) 2023-04-21 14:51:46 +02:00
dni ⚡
8ee6be30eb
add vue-i18n dependecy 2023-04-13 07:59:12 +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
dni ⚡
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 ⚡
db97ef5543
reintroduce extension migration check (#1490)
* reintroduce extension migration check

* introduce checkversions again and remove extensions from dbversions table
2023-02-14 13:06:01 +01:00
dni ⚡
3276347d5d
remove all extensions from migration data at once (#1489)
* remove all extnesions from migration data at once

* nerf workflow for now

* check dbversions
2023-02-14 12:42:46 +01:00
dni ⚡
0dffb2c1a0
moving build file into tools, keep rootdir clean (#1434)
* moving build file into tools, keep rootdir clean

* formatting

* make flake happy
2023-02-01 17:19:56 +01:00
Pavol Rusnak
967ce06ca5
fix pylint C0206 (consider-using-dict-items) 2023-01-30 11:46:45 +00:00
Pavol Rusnak
9fa3e5c6cf
fix pylint W0102 (dangerous-default-value) 2023-01-30 11:46:43 +00:00
dni ⚡
5a0b217d63
TEST: LNbits as fundingsource in regtest (#1402)
* lnbits funding source

* add create_fake_user to workflow

* change quotes in workflow ymal

* not use interactive docker exec

* update tools/create_fake_admin to not use lnbits imports

* formatting

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-01-26 10:43:12 +01:00
callebtc
a1a75ddf0b change sign 2023-01-10 16:25:28 +01:00
callebtc
3f61286cad correct placement of warning 2023-01-10 16:19:56 +01:00
callebtc
64c330459b conv.py: warn if table is empty 2023-01-10 16:16:17 +01:00
Vlad Stan
fd111a3150 fix: temp test: folded column names to lowercase 2022-12-12 18:09:26 +02:00
callebtc
33eb460d5c restore 7f64f426c2 2022-12-01 12:21:25 +01:00
calle
2c562b7053 Revert "Extension: Cashu" 2022-12-01 12:21:25 +01:00
callebtc
ecec9e9596 consider bool 2022-12-01 12:21:25 +01:00
callebtc
23308fe6cf skip dbversions 2022-12-01 12:21:25 +01:00
callebtc
e12d038e22 pass migrations 2022-12-01 12:21:25 +01:00
callebtc
c79b121fd2 pass migrations 2022-12-01 12:21:25 +01:00
callebtc
074706c422 pass migrations 2022-12-01 12:21:25 +01:00
callebtc
e3510e5133 check skip 2022-12-01 12:21:25 +01:00
dni ⚡
74eece78de merge from master 2022-11-24 14:35:32 +01:00
Vlad Stan
e667d2dc19 chore: code format 2022-11-17 14:59:03 +02:00
ChuckNorrison
91be3c30b6
add missing import sys
allow to call sys module directly
2022-11-16 14:13:25 +01:00
ChuckNorrison
177446c581
fix sys is not defined 2022-11-08 01:15:54 +01:00
dni ⚡
36f54ff0c3 formatting and conftest 2022-10-05 13:04:38 +02:00
dni ⚡
ec0375b47c trying to fix tests 2022-10-05 13:04:38 +02:00
dni ⚡
d649e6a5c0
fix migrations, add documentation, hopefully fix workflow (#899)
* fix migrations, add documentation, hopefully fix workflow

* renaming to test-migration and add migration

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-17 15:42:01 +02:00
Vlad Stan
63849a0894
Generalize conv.py (#849)
* feat: generalize the script for  `sqlite` to `postgres`

* fix: revert db connection params

* doc: remove manual conversion docs

* chore: fix formatting

* fix: add back instructions for `mock_data.zip`

* fix: exclude SQLite tables from migration

* fix: rename `your_extension.db` to `your_extension.sqlite3`
2022-08-09 10:45:50 +02:00
Arc
dc501d3f40
Merge pull request #677 from lnbits/SCRUB
SCRUB extension
2022-07-28 13:29:04 +01:00
callebtc
370a962528 use ours 2022-07-28 14:18:32 +02:00
Vlad Stan
c1f6845ad9 feat: update SQLite to Postgre conversion scripts 2022-07-28 15:04:14 +03:00
Tiago vasconcelos
56cac668ca add mock data and fix conv 2022-07-28 11:08:55 +01:00
Tiago vasconcelos
7f8ee461a2 stupid 2022-07-28 10:27:31 +01:00
Tiago vasconcelos
d322e6d4dc fix conv typo in scrub schema 2022-07-28 10:24:50 +01:00
Tiago vasconcelos
c340a55925 add scrub to conv 2022-07-28 10:00:53 +01:00