Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop to master #414

Open
wants to merge 913 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
913 commits
Select commit Hold shift + click to select a range
a43a2e3
chore(fbw): fix bad api call
selankon Feb 14, 2022
e5918c5
chore(fbw): refactor searchNetworks to react query
selankon Feb 14, 2022
3de1952
chore(fbw): refactor setNetwork to react query
selankon Feb 14, 2022
686fa80
chore(fbw): store expected host and network state
selankon Feb 14, 2022
3e132a0
fix(fbw): join network select not filling
selankon Feb 14, 2022
033ddb1
refactor(fbw): delete remaining redux code
selankon Feb 14, 2022
c03e327
fix(fbw): bad import
selankon Feb 14, 2022
de66963
refactor(fbw): file names to naming convention
selankon Feb 14, 2022
e5f27d0
chore(fbw): delete API mock
selankon Feb 14, 2022
5c335c0
chore(linting): massive eslint fixes
germanferrero Feb 18, 2022
dad4275
chore(blame-ignore-revs): mark massive linting commit
germanferrero Feb 18, 2022
b515ade
ci(linting): add pre-commit to lint staged files
germanferrero Feb 18, 2022
ff3ce88
"chore(release): 0.2.21"
germanferrero Feb 21, 2022
d005012
translations(pt): add pt translations (all credits to hiure)
germanferrero Feb 21, 2022
6e23f26
"chore(release): 0.2.22"
germanferrero Feb 21, 2022
3640de1
fix(translations): fix error in pt translation
germanferrero Feb 21, 2022
2ba79d1
"chore(release): 0.2.23"
germanferrero Feb 21, 2022
a50d314
fix(firmware): display spinners in download from release
germanferrero Sep 23, 2021
6b28327
chore(fbw): delete comented code
selankon Feb 22, 2022
6a4cb4c
refactor(fbw): try to implement useGetNetworks query
selankon Feb 22, 2022
7e9d58b
"chore(release): 0.2.24"
germanferrero Feb 23, 2022
b2c9b69
chore(fbw): fix bad setQueryData invocation
selankon Feb 24, 2022
f42118c
Merge pull request #335 from germanferrero/fix-eslint-issues
germanferrero Feb 24, 2022
9fc6c92
chore(fbw): implement useSearchNetworks to modify useGetNetworks query
selankon Mar 1, 2022
18b6a84
fix(fbw): unused parameter
selankon Mar 1, 2022
48fbc47
chore(fbw): implement better error status management
selankon Mar 1, 2022
f42981f
chore(fbw): merge seGetNetworks query implementation
selankon Mar 3, 2022
bb42f18
chore(fbw): tweaks to enable testing
germanferrero Mar 4, 2022
17a9d59
test(fbw): add test for checking step.
germanferrero Mar 4, 2022
b5d2970
Merge pull request #1 from germanferrero/migrate-fbw-test-expected-ne…
selankon Mar 4, 2022
8fdf415
chore(fbw): implement setExpectedHost/Network after creation
selankon Mar 4, 2022
a243180
test(fbw): add missing "."
selankon Mar 4, 2022
bac34d2
translations(es): fix typo in portal config
germanferrero Feb 24, 2022
54cee55
fix(pirania): manage vouchers link fixed
germanferrero Feb 24, 2022
cee2800
fix(reboot-banner): persist page refresh
germanferrero Mar 4, 2022
f218c6b
fix(login): make form submit on enter
germanferrero Feb 25, 2022
ee0d9d4
fix(login): persist session after page refresh
germanferrero Mar 4, 2022
0bc37bc
fix(subheader): show only one banner at a time
germanferrero Mar 4, 2022
df53d34
"chore(release): 0.2.25"
germanferrero Mar 4, 2022
a45cb1b
Merge branch 'develop' into feature/migrate-fbw-to-reactquery
selankon Mar 10, 2022
a278939
chore(fbw): do eslint fixes
selankon Mar 10, 2022
ae5cce7
Merge pull request #334 from selankon/feature/migrate-fbw-to-reactquery
germanferrero Mar 10, 2022
f274ce5
translations(es): fix interpolation in upgrade confirm banner
germanferrero Mar 21, 2022
d641ae2
Merge remote-tracking branch 'upstream/develop' into develop
germanferrero Mar 21, 2022
adf9328
chore(fbw): start to implement scanned preview
selankon Mar 25, 2022
2a360dd
feat(fbw): mock scanned networks preview
selankon Apr 1, 2022
bd38024
feat(fbw): implement new interface logic
selankon Apr 1, 2022
37c28a4
feat(fbw): implement bssid on filename
selankon Apr 1, 2022
0993d0e
fix(fbw): fit hostname regex
selankon Apr 8, 2022
d7a6cb4
feat(fbw): implement show network by bssid
selankon Apr 8, 2022
361c395
chore(fbw): disable mocked response
selankon Apr 8, 2022
f72ef34
chore(fbw): style list items
selankon Apr 14, 2022
b1773fb
chore(fbw): added cancel button
selankon Apr 15, 2022
4d95ab5
chore(fbw): delete mocked result
selankon Apr 15, 2022
72ea42a
chore(fbw): hide disabled button
selankon Apr 22, 2022
aadfe9a
chore(fbw): use bssid as list item key
selankon May 5, 2022
754a1b3
chore(fbw): poc to handle scan errors
selankon May 5, 2022
ef4b8d8
chore(fbw): extract translations
selankon May 12, 2022
fee715d
chore(fbw): add spanish translations
selankon May 12, 2022
a33944a
chore(fbw): fix translation
selankon May 12, 2022
74413ba
chore(fbw): start mocking tests
selankon May 13, 2022
cee8b13
chore(fbw): bulk commit to pass tests
selankon May 19, 2022
0d89092
chore(fbw): write test for join network
selankon May 19, 2022
d64221c
chore(fbw): create test cases for all scan results
selankon May 19, 2022
2ee75d1
chore(fbw): add tip for clear query cache afterEach
selankon May 20, 2022
c15e38e
chore(fbw): disable one line eslint
selankon May 26, 2022
d1b54a0
chore(fbw): write more descriptive test cases
selankon May 26, 2022
28888c3
chore(fbw): move SignalBar to common component
selankon May 26, 2022
8c17191
chore(fbw): fix style declaration
selankon May 26, 2022
bb1281e
refactor(fbw): split scan page
selankon May 26, 2022
5e14704
refactor(fbw): use more descriptive variable names
selankon May 27, 2022
26d09ed
refactor(fbw): fix typos
selankon May 27, 2022
2141c42
refactor(fbw): fix cancel button
selankon May 27, 2022
b30c7cf
refactor(fbw): create NetworkTile component
selankon May 27, 2022
1ae23de
chore(fbw): add preacti import
selankon May 27, 2022
6c114ef
chore(fbw): disable mocked response
selankon May 27, 2022
49ea390
refactor(fbw): delete old scan page
selankon May 27, 2022
e6dd29c
chore(fbw): fix tests using waitForExpect
selankon May 27, 2022
73ae6a6
refactor(fbw): delete deprecated getFbwStatus
selankon Jun 8, 2022
346aa30
chore(fbw): create new scan control mutations
selankon Jun 10, 2022
1b38a60
chore(fbw): fix getFbwStatus not found
selankon Jun 10, 2022
72c8308
chore(fbw): implement new scan controls on the view
selankon Jun 14, 2022
7171064
chore(fbw): handle errors
selankon Jun 14, 2022
643d689
refactor(fbw): DRY buttons
selankon Jun 14, 2022
9517482
chore(refactor): fix tests to new implementation
selankon Jun 14, 2022
65e2db3
chore(fbw): move useScanStop to outter component
selankon Jun 14, 2022
ff18e71
chore(fbw): stop scanning when status is scanned
selankon Jun 14, 2022
defdc24
chore(fbw): add some tests
selankon Jun 14, 2022
60b632d
chore(fbw): fix test name
selankon Jul 7, 2022
4ae00b6
chore(fbw): use queryByTestId instead of findByTestId
selankon Jul 7, 2022
5e54a4f
chore(fbw): refactor to use pollingInterval
selankon Jul 7, 2022
557e40f
chore(fbw): use query restartError to handle errors
selankon Jul 7, 2022
eb365e2
chore(fbw): order funcions position
selankon Jul 27, 2022
d561d18
chore(fbw): implement unique fbw status endpoint
selankon Jul 27, 2022
7424ec8
chore(fbw): implement new response values
selankon Jul 27, 2022
9213436
chore(fbw): fix tests
selankon Jul 27, 2022
7920e99
chore(fbw): use mutation isError for stop scan error
selankon Aug 1, 2022
e6a14ed
chore(fbw): fix button behaviour
selankon Aug 1, 2022
c2f4c9b
chore(fbw): unify fbw status queries
selankon Aug 10, 2022
ec50435
chore(fbw): give margin to the loader
selankon Aug 10, 2022
f582cce
chore(fbw): refetch scan results when rescan is pressed
selankon Aug 10, 2022
874db13
Merge pull request #3 from selankon/hotfix/implement-daemonized-scan
selankon Aug 10, 2022
8cdaef2
chore(fbw): create banner with optios component
selankon Sep 23, 2022
2a0f6bd
chore(fbw): use banner with options on fbw
selankon Sep 23, 2022
578f85f
chore(fbw): fix fbw routing between screens
selankon Sep 23, 2022
aa24b14
fix(fbw): add missing imports
selankon Sep 23, 2022
1b05b83
fix(fbw): fix tests
selankon Sep 23, 2022
41c5e84
chore(fbw): add translations
selankon Sep 23, 2022
f334aea
chore(fbw): cancel fbw after dismiss it
selankon Sep 27, 2022
d71c2e8
Merge pull request #339 from selankon/feature/fbw-show-scan-results
selankon Oct 6, 2022
c0e922c
not ignore the locks files
fnbellomo Sep 25, 2022
ffa9876
feat(docker): Add docker for local dev
fnbellomo Oct 4, 2022
5acd8ca
refactor(dependencies): upgrade node dependencies
fnbellomo Oct 4, 2022
e14c3bf
refactor(react-query): upgrade the imports and api
fnbellomo Sep 27, 2022
3996495
refactor(storybook): update old `storyOf` API to CSR
fnbellomo Oct 4, 2022
79fc69a
refactor(style): local version of skeleton
fnbellomo Oct 4, 2022
104334b
refactor(react-query): update to the new api
fnbellomo Oct 6, 2022
70a9698
refactor(dependencies): fix alias
fnbellomo Oct 6, 2022
5f7c774
refactor(preact) remove unused `h` import
fnbellomo Oct 6, 2022
2a0f499
test(gh-action): action to compute build size diff
fnbellomo Oct 7, 2022
c4adab3
chore(preact): fix preact build deps
fnbellomo Oct 7, 2022
9788b68
chore(tests): Fix jest config
fnbellomo Oct 20, 2022
aad827f
chore(tests): Update jests deps
fnbellomo Oct 20, 2022
f0c22b1
chore(tests): Update tests
fnbellomo Oct 20, 2022
9063e01
chore(react-query): Update syntax to v5
fnbellomo Oct 20, 2022
a4ebb6e
chore(fbw): delete old unused component
selankon Oct 21, 2022
415b66a
fix(fbw): fix fbw tests
selankon Oct 21, 2022
194de77
fix(pirania): fix test using waitForExpect
selankon Oct 21, 2022
10cd152
Merge pull request #348 from selankon/fix/fix_tests
selankon Oct 21, 2022
726c854
chore(gh-action): run build and test before PR
selankon Oct 21, 2022
52bd8f1
fix(gh-action): fix package-lock.json not found
selankon Oct 21, 2022
fcbd192
fix(gh-action): test only node 16
selankon Oct 21, 2022
53c4489
Merge pull request #349 from selankon/fix/gh_actions
selankon Oct 21, 2022
714b787
chore(testing) fix jest config
fnbellomo Oct 28, 2022
c7cdf10
chore(react-query): fix migration changes
fnbellomo Oct 28, 2022
059ff8b
[WIP] Fix jest config
fnbellomo Nov 4, 2022
230b1da
[WIP] Update react-query api
fnbellomo Nov 4, 2022
db27e3a
[WIP] Update tests
fnbellomo Nov 4, 2022
fa70ce9
fix(node-admin): fix tests wait for expect timer
selankon Nov 9, 2022
e6532bd
Merge branch 'develop' into feature/update-deps
selankon Nov 9, 2022
3f4b714
fix(node-admin): fix bad awaited test
selankon Nov 10, 2022
bdf1219
fix(node-admin): voucher tests
selankon Nov 15, 2022
c01290c
fix(tests): matcher tests
selankon Nov 15, 2022
c97562e
fix(tests): use `!!` to enable queries
selankon Nov 16, 2022
b848a91
fix(tests): fix timers
selankon Nov 16, 2022
7f4d68c
fix(tests): fix query on success not triggered
selankon Nov 18, 2022
b6e2695
fix(tests): fix callback not called
selankon Nov 22, 2022
7c891ed
fix(tests): fix query error handling
selankon Nov 23, 2022
81db5bc
fix(tests): fix promiseAll
selankon Nov 24, 2022
0c39591
fix(tests): fix Matcher undefined
selankon Nov 25, 2022
d3d74fa
fix(tests): mock query response
selankon Nov 28, 2022
4b2a39d
fix(tests): split tests
selankon Nov 30, 2022
a9f57f2
fix(jest): fix regular expression to find the tests files
fnbellomo Dec 2, 2022
fb7e92a
fix(tests): fix problems with encoding after date format to str
fnbellomo Dec 2, 2022
afe8b86
fix(test) comment broken tests
fnbellomo Dec 12, 2022
782062e
Fix translations not present
selankon Dec 13, 2022
2127352
fix(ci): translations not present
fnbellomo Dec 13, 2022
008607b
fix(react-query): dont log error on test
fnbellomo Dec 20, 2022
89250bc
fix(test): Skip broken tests
fnbellomo Dec 20, 2022
e4a57ac
fix(react-query): refactor missing mutation
selankon Dec 16, 2022
a1e58d5
fix(react-query): use staleTime: Infinity to prevent refetch
selankon Dec 23, 2022
e185d3d
Merge pull request #346 from fnbellomo/feature/update-deps
selankon Jan 20, 2023
06cc947
feat(ux) add icons to menu
luandro Oct 28, 2022
7118a73
fix(lime-plugin-rx): migrate to react query
selankon Dec 27, 2022
4b12a7b
fix(lime-plugin-metrics): migrate to useInternetStatus query
selankon Dec 28, 2022
a166cd6
fix(lime-plugin-metrics): refactor to react query
selankon Jan 11, 2023
5ef8f4b
fix(lime-plugin-metrics): disable metrics are loading mecanism
selankon Jan 11, 2023
512e542
fix(lime-plugin-metrics): get metrics one by one
selankon Jan 12, 2023
3333a95
fix(lime-plugin-metrics): fix retry
selankon Jan 12, 2023
3914b89
Merge pull request #362 from selankon/feat/migrate_rx_to_reactquery
selankon Jan 20, 2023
61ff351
Disable get all metrics when path received
selankon Jan 24, 2023
16a4fc8
Add missing icon
selankon Jan 25, 2023
3ed34b0
Fix items padding
selankon Jan 25, 2023
e770f87
Merge pull request #363 from selankon/fix/fix_menu_items
selankon Jan 25, 2023
db3c5a6
Merge pull request #364 from selankon/feat/metrics_on_demand
selankon Feb 6, 2023
de594f5
chore(rxPage): prevent null
selankon Mar 23, 2023
27a24f1
chore(icons): move icons on sepparated files
selankon Apr 18, 2023
d51c5d6
chore(action): downgrade action version
selankon Apr 19, 2023
b30fa87
Merge pull request #380 from selankon/feature/implement_svgicons
selankon Apr 19, 2023
c995c67
Merge pull request #371 from selankon/b/fix_null_aware
selankon Apr 19, 2023
5cf3977
Use apropiate file extension
selankon Apr 19, 2023
b675e70
Use updated gh action version
selankon Apr 19, 2023
ed8a8f3
Merge pull request #381 from selankon/fix/bulk_bugfix
selankon Apr 19, 2023
d1e4dd0
chore(linting): massive eslint fixes
selankon Feb 6, 2023
4695cba
chore(linting): add massive lintern commit
selankon Feb 6, 2023
7efec0e
Merge pull request #367 from selankon/fix/run_linter
selankon Apr 19, 2023
fffe6f8
chore(actions): ensure node version
selankon Apr 28, 2023
e6f2bc1
Merge pull request #385 from selankon/fix/fix-compressed-size-action
selankon Apr 28, 2023
72daf7f
chore(typescript): Setup typescript
selankon Feb 6, 2023
d68c13f
fix(typescript): Fix typescript no strict mode
fnbellomo Dec 18, 2022
eae674e
Fix leaflet not found on production
selankon Feb 8, 2023
7fd1e29
Fix lingui compileNamespace
selankon Feb 8, 2023
ac4ddff
Fix TS errors
selankon Feb 8, 2023
24eb954
Update messages
selankon Feb 9, 2023
cd55e2c
chore(typescript): use ComponentChildren
selankon Apr 20, 2023
9313e43
chore(typescript): enable babel again
selankon Apr 28, 2023
500212e
chore(tailwindcss): Install tailwindcss
selankon Feb 10, 2023
a2b68b6
Merge pull request #382 from selankon/feature/enable_typescript
selankon May 3, 2023
cb3b830
chore(tailwindcss): configure postcss
selankon Feb 14, 2023
42a1dbb
chore(tailwindcss): configure postcss
selankon Feb 14, 2023
7d824e7
chore(linting): massive eslint fixes
selankon Feb 6, 2023
dc6800e
fix(typescript): Fix typescript no strict mode
fnbellomo Dec 18, 2022
3b85e1c
chore(tailwindcss): Install tailwindcss
selankon Feb 10, 2023
ce09394
chore(tailwindcss): configure postcss
selankon Feb 14, 2023
6924483
chore(meshwide): scaffold mesh wide plugin
selankon Mar 28, 2023
c0e43c5
chore(locate): delete broken google mutant dep
selankon Mar 29, 2023
7f50ca2
chore(locate): implement react leaflet
selankon Mar 31, 2023
7c51ce7
chore(locate): implement google maps layers
selankon Mar 31, 2023
e500399
chore(locate): WIP migrating to reactQuery
selankon Mar 31, 2023
320a608
chore(locate): implement load leaflet query
selankon Apr 4, 2023
6272487
chore(locate): update query from mutation
selankon Apr 4, 2023
3d06620
chore(locate): Implement dependant queries
selankon Apr 4, 2023
810dce0
chore(locate): fix loader
selankon Apr 4, 2023
d0b59d0
chore(locate): delete redux dependencies
selankon Apr 4, 2023
9bffd71
chore(locate): bulk fix
selankon Apr 4, 2023
7ac6cea
chore(locate): delete mocks
selankon Apr 4, 2023
b796af2
chore(locate): delete unused
selankon Apr 12, 2023
f1aaefd
chore(typescript) fix react-redux types
selankon May 3, 2023
a55b770
chore(typescript): add missing file
selankon May 3, 2023
8bc5917
chore(locate): delete unused dependency
selankon May 3, 2023
9dd8b6e
Merge pull request #370 from selankon/feature/add_tailwindcss
selankon May 3, 2023
09484df
chore(typescript): add ts-ignore
selankon May 3, 2023
5113561
Merge pull request #377 from selankon/feature/fix_locate_view
selankon May 3, 2023
d49b9c7
chore(gh-action): add gh action to upload artifacts
selankon Feb 9, 2024
6bcf698
chore(gh-action): specific action to publish artifacts
selankon Feb 9, 2024
731f8ef
chore(gh-action): change actions names
selankon Feb 9, 2024
bcaa121
chore(gh-action): disable pr comments
selankon Feb 9, 2024
eb6f1cd
chore(gh-action): fix the action
selankon Feb 9, 2024
c3e0ec5
chore(gh-action): fix publish artifacts
selankon Feb 12, 2024
b335719
chore(gh-action): publish dynamic artifact name
selankon Feb 12, 2024
cab8e8d
chore(gh-action): create comment action
selankon Feb 12, 2024
cc4773f
chore(gh-action): Fix save pr number
selankon Feb 12, 2024
b292539
Merge pull request #398 from selankon/f/upload-artifacts
G10h4ck Feb 12, 2024
d283177
chore(gh-action): create comment action
selankon Feb 12, 2024
98282f2
Merge pull request #400 from selankon/fix/fix_comment_action
selankon Feb 16, 2024
a74c350
chore(gh-action): fix artifact url
selankon Feb 20, 2024
6f02a0f
chore(gh-action): overwrite artifacts
selankon Feb 21, 2024
3806b70
Merge pull request #402 from selankon/fix/fix-dynamic-artifacts
selankon Feb 21, 2024
20f6330
chore(gh-action): fix dynamic artifact name
selankon Feb 21, 2024
2c1ddcd
chore(gh-action): implement npm build production
selankon Feb 21, 2024
e6e47dd
chore(nodejs): run npm audit fix
selankon Feb 21, 2024
e65fa16
Add .nvmrc
selankon Feb 28, 2024
48f415b
fix(nodejs): upgrade .nvmrc to 20
selankon Mar 11, 2024
3f76176
Fix develop lime app minor bugs (#406)
selankon Mar 12, 2024
0728fda
Upgrade node version on actions (#407)
selankon Mar 12, 2024
97a3930
Handle assoc list error
selankon Mar 25, 2024
76528ed
Handle assoc list error
selankon Mar 25, 2024
ec222c1
chore(translations): update missing translations
selankon Apr 3, 2024
f9bc2f2
chore(dependencies): add missing standard-version pack
selankon Apr 3, 2024
6d4ab7c
chore(release): 0.2.26
selankon Apr 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

38 changes: 38 additions & 0 deletions .ci/send_pull_request.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/sh

setup_git() {
set -e
eval "$(ssh-agent -s)"
openssl aes-256-cbc -K $encrypted_bd61809adafc_key -iv $encrypted_bd61809adafc_iv -in ../lime-app.enc -out ./lime-app -d
chmod 600 ./lime-app
ssh-add ./lime-app
git config --global user.email "[email protected]"
git config --global user.name "Travis CI"
}

get_repo(){
git clone [email protected]:libremesh/lime-packages.git --branch master --depth 1 lime-packages
cd lime-packages
}

create_file() {
export SHASUM=$(sha256sum $TRAVIS_BUILD_DIR/lime-app-$TRAVIS_BRANCH.tar.gz | awk '{ print $1 }')
sed -i -re "s/(PKG_VERSION:=).*/\1$TRAVIS_BRANCH/" packages/lime-app/Makefile
sed -i -re "s/(PKG_HASH:=).*/\1$SHASUM/" packages/lime-app/Makefile
}

commit_file() {
git checkout -b lime-app-$TRAVIS_BRANCH
git commit -am "LimeApp updated to $TRAVIS_BRANCH"
}

push_changes(){
git push --force --quiet origin lime-app-$TRAVIS_BRANCH
}

cd .ci
setup_git
get_repo
create_file
commit_file
push_changes
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
root = true

[*]
indent_style = tab
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,.*rc,*.yml}]
indent_style = space
indent_size = 2
indent_size = 4

[*.md]
trim_trailing_whitespace = false
8 changes: 6 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
test/*.conf.js
build/
node_modules
coverage
storybook-static
build
package-lock.json
i18n
19 changes: 18 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
{
"extends": "eslint-config-synacor"
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"testing-library",
"jest"
],
"extends": [
"preact",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"plugin:testing-library/react",
"plugin:jest/recommended"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": "off"
}
}
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Massive linting commits:
5c335c0846c88fbf39c0f34b1ae5c5bbf03b637c
d9235a644220e6c831f302ca0c0da8c7e7f50375
54 changes: 54 additions & 0 deletions .github/workflows/artifact_url_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Comment on the pull request the artifact url

on:
workflow_run:
workflows: ["Publish artifacts"]
types:
- completed

jobs:
publish-artifact-url:
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/download-artifact@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{github.event.workflow_run.id }}
path: limeAppBuild/

- name: Get PR number
run: echo "PR_NUM=$(ls limeAppBuild/*/pr_number)" >> $GITHUB_ENV

- name: Find a PR comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ env.PR_NUM }}
body-includes: 'Artifacts deployed: '

- name: Delete Comment
uses: actions/github-script@v6
continue-on-error: true
if: steps.fc.outputs.comment-id != 0
with:
script: |
github.rest.issues.deleteComment({
comment_id: ${{ steps.fc.outputs.comment-id }},
owner: context.repo.owner,
repo: context.repo.repo,
})

- name: Get the artifact url
run: >
ARTIFACT_URL=$(curl https://api.github.com/repos/libremesh/lime-app/actions/runs/${{github.event.workflow_run.id }}/artifacts -s | jq '.artifacts[0].url' | sed "s/[\'\"]//g" | awk -F'/' '{print $NF}')
;echo $ARTIFACT_URL; echo "ARTIFACT_URL=$ARTIFACT_URL" >> $GITHUB_ENV

- name: Update the PR comment
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ env.PR_NUM }}
body: |
Artifacts deployed: https://github.com/libremesh/lime-app/actions/runs/${{github.event.workflow_run.id}}/artifacts/${{ env.ARTIFACT_URL }}
20 changes: 20 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test build

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- uses: preactjs/compressed-size-action@v2
with:
build-script: "build:production"
37 changes: 37 additions & 0 deletions .github/workflows/publish_artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish artifacts

on:
pull_request:
types: [ labeled, synchronize ]

jobs:
build-artifacts:
if: contains(github.event.pull_request.labels.*.name, 'artifact')
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci
- name: Build production app
run: npm run build:production

# Used to send a comment to the PR with the artifact url
- name: Save PR number
run: |
mkdir -p build/pr_number/
touch build/pr_number/${{ github.event.number }}

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: limeAppBuild-${{ github.event.number }}
path: build/
overwrite: true
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Run tests

on:
push:
branches: [ "develop", "master" ]
pull_request:
branches: [ "develop", "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run translations:compile && npm run test
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
.DS_Store
/coverage
/.idea
yarn.lock
storybook-static
.vscode
build
i18n/*/messages.js
i18n/_build
core
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
6 changes: 0 additions & 6 deletions .i18nrc

This file was deleted.

20 changes: 20 additions & 0 deletions .linguirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"locales": ["es", "pt", "en", "it"],
"catalogs": [{
"path": "i18n/{locale}/messages",
"include": ["src", "plugins"]
}],
"format": "po",
"compileNamespace": "cjs",
"extractBabelOptions": {
"presets": [
"preact",
"@babel/preset-typescript",
"@lingui/babel-preset-react"
]
},
"sourceLocale": "en",
"fallbackLocales": {
"default": "en"
}
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
coverage
storybook-static
build
package-lock.json
i18n
15 changes: 15 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"importOrder": [
"^components/(.*)$",
"^containers/(.*)$",
"^plugins/(.*)$",
"^utils/(.*)$",
"^~/(.*)$",
"^[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
72 changes: 72 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
const path = require("path");
const clientConfig = require("preact-cli/lib/lib/webpack/webpack-client-config");
const transformConfig = require("preact-cli/lib/lib/webpack/transform-config");

module.exports = {
framework: "@storybook/preact",
stories: [
"../stories/**/*stories.js",
"../stories/**/*stories.ts",
"../plugins/**/*stories.js",
"../plugins/**/*stories.ts",
],
addons: [
"@storybook/addon-actions",
"@storybook/addon-controls",
"@storybook/addon-essentials",
],
features: {
interactionsDebugger: true,
},
webpackFinal: async (config, { configType }) => {
// Load preact config
const isProd = configType === "PRODUCTION";
const cwd = process.env.PWD;
const src = path.resolve(cwd, "src");
const source = (dir) => path.resolve(cwd, "src", dir);
const env = {
isProd,
isWatch: !isProd,
cwd,
src,
source,
config: "preact.config.js",
esm: false,
};
preactConfig = await clientConfig(env);
await transformConfig(env, preactConfig);

// Add custom alias
config.resolve.alias = {
...config.resolve.alias,
...preactConfig.resolve.alias,
};

// Add proxy
config.devServer = {
...config.devServer,
...preactConfig.devServer,
};

// Parse .less files
config.resolve.extensions.push(".less");
config.module.rules.push({
test: /\.(p?css|less|s[ac]ss|styl)$/,
use: [
require.resolve("style-loader"),
{
loader: require.resolve("css-loader"),
options: {
importLoaders: 1,
modules: {
localIdentName: "[name]__[local]___[hash:base64:5]",
},
},
},
require.resolve("less-loader"),
],
});

return config;
},
};
Loading
Loading