1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-28 00:41:35 +01:00
Commit Graph

196 Commits

Author SHA1 Message Date
Stepan Henek
f6dece80b2
Using socket.io for websocket handling and make reforis configurable
Socket.io wrapper is used to handle websockets now,
this means that websocket logic had to be redone.

Also it is necessary to set `REFORIS_PREFIX` env variable
during the build process. To set the path of backend url.
It was previously fixed to `/reforis`.
2023-04-27 10:05:22 +02:00
Aleksandr Gumroian
6183669c9b
Fix CustomizationContextMock for tests 2022-12-28 15:19:24 +01:00
Aleksandr Gumroian
f3694bb62c
Make ieee80211w_disabled as optional in WiFiForm 2022-12-28 15:18:42 +01:00
Aleksandr Gumroian
f2ae6c4d0a
Move contexts in a context folder 2022-12-22 15:35:22 +01:00
Aleksandr Gumroian
aeabc0bf06
Add info about CustomizationContext to the docs 2022-12-22 15:35:21 +01:00
Aleksandr Gumroian
46fe75d3cf
Add tests for CustomizationContext 2022-12-22 15:35:20 +01:00
Aleksandr Gumroian
c469d8dfde
Add CustomizationContext and custom hook
As we want to share customization context between reForis & Plugins
2022-12-22 15:35:20 +01:00
Aleksandr Gumroian
f327428765
Add about endpoint to forisUrls 2022-12-22 15:35:19 +01:00
Aleksandr Gumroian
2a73502710 Merge branch 'feature/add-mfp-switch' into 'dev'
Add a switch to disable Management Frame Protection (802.11w)

Closes #26

See merge request turris/reforis/foris-js!202
2022-12-02 15:46:00 +01:00
Aleksandr Gumroian
003606cb8c
Update Snapshots 2022-12-01 17:13:44 +01:00
Aleksandr Gumroian
aeddd9ce74
Add a switch to disable Management Frame Protection (802.11w)
In the case of WPA3 encryption Management Frame Protection is enabled
by default in OpenWrt.

But in some cases, it causes trouble with particular devices that
fails to connect to WiFi Access Point - see:
https://forum.turris.cz/t/turris-omnia-wifi-health/15704/15
2022-12-01 16:19:38 +01:00
Aleksandr Gumroian
b0e2f62a41
Add Switch example to the docs 2022-09-16 16:10:44 +02:00
Aleksandr Gumroian
985fd08b46
Update Snapshots 2022-05-20 15:42:37 +02:00
Aleksandr Gumroian
da019b6d86
Fix Wi-Fi password helptext string 2022-05-20 15:41:59 +02:00
Aleksandr Gumroian
46ce6ebbb9
Add CopyInput bootstrap component 2022-05-19 15:56:10 +02:00
Aleksandr Gumroian
1a4ba03ff5
Wrap Input component with forwardRef
In order to pass `ref` to the child <input> DOM element.
2022-05-19 15:56:09 +02:00
Aleksandr Gumroian
ae6b495683
Update Snapshots 2022-04-19 16:06:11 +02:00
Martin Matějek
272c97dc8a
Update WiFiForm labels and description for wifi ax 2022-04-19 15:38:51 +02:00
Stepan Henek
cc1b0b3f81
Make WS path in lighttpd mode configurable 2022-03-23 11:12:46 +01:00
Aleksandr Gumroian
be2e3fe3f0
Update snapshots 2022-02-22 17:03:35 +01:00
Aleksandr Gumroian
13869336db
Fix Wi-Fi translation strings 2022-02-22 16:38:29 +01:00
Aleksandr Gumroian
7ec1c46a63
Add tests for hostname validation 2022-02-21 13:57:34 +01:00
Aleksandr Gumroian
7ceccd5222
Add hostname RegEx pattern & validateHostname() function 2022-02-21 13:57:24 +01:00
Aleksandr Gumroian
f868881b3d
Improve domain name RegEx pattern
Previously validateDomain() function was used for hostname validations
but was weak in a chain of validations, for example, domain -> ipv4
as it accepts invalid IPv4 addresses.

So we had to split it, improve the domain name RegEx pattern and add a
hostname validation pattern.
2022-02-21 13:56:32 +01:00
Aleksandr Gumroian
c0f64e8c6c
Fix tests
"Post form: 2.4 GHz" test was failing because of added new functionality
in the previous 0194684 commit.
2022-02-21 11:28:25 +01:00
Aleksandr Gumroian
b95cfb664d
Set best Wi-Fi HT mode depending on the checked frequency 2022-02-21 11:28:25 +01:00
Aleksandr Gumroian
52cdaf5bc5
Update Snapshots 2022-02-21 11:28:24 +01:00
Aleksandr Gumroian
175a07a865
Remove customOrder prop
As some options of Select component should be ordered by values or keys,
it was decided to handle sorting not in options, but locally in
corresponding lists.
2022-02-21 11:28:24 +01:00
Martin Matějek
f952e25205
Add wifi 802.11ax HE modes 2022-02-21 11:28:24 +01:00
Aleksandr Gumroian
839e227feb
Update Snapshots 2022-02-18 17:40:48 +01:00
Aleksandr Gumroian
4b239ed195
Fix autocomplete attribute in PasswordInput 2022-02-18 17:40:48 +01:00
Aleksandr Gumroian
b1ff608337
Add rest of the props to DownloadButton component 2022-02-11 15:49:39 +01:00
Aleksandr Gumroian
b6e2cb71bb
Add tests for password length validation 2022-01-20 12:08:30 +03:00
048e686185
Fix WiFi password max length check
The WiFi password cannot be longer than 63 symbols.
2022-01-20 12:08:06 +03:00
Marek Sašek
a66a2f4708
Remove reForis login page 2021-12-13 15:51:56 +01:00
Marek Sašek
5207029462
Update snapshots 2021-11-03 13:31:10 +01:00
Marek Sašek
53aec6372d
Update tests 2021-11-03 13:31:09 +01:00
Marek Sašek
a7d7e59028
Add custom order ability of Select options 2021-11-03 13:31:09 +01:00
Marek Sašek
0beb1f0418
Add WPA3 option 2021-11-03 13:31:08 +01:00
Aleksandr Gumroian
f3b1ef741a
Fix infinity redirect loop when WS error occurs
There were situations when reForis infinity loop had occurred when the user was
already logged in, but the client rejected the `wss` connection. The location
path was not `/login`, and an infinity redirect took place. This should fix it.
2021-07-27 11:29:59 +03:00
Aleksandr Gumroian
cff5f1e5e1
Add sentinelAgreement endpoint to forisUrls 2021-06-29 17:39:53 +02:00
Aleksandr Gumroian
ce62fd1043
Update Snapshots 2021-05-14 13:38:00 +02:00
Aleksandr Gumroian
f7146e3b14
Fix obsolete rebootPage link in forisUrls 2021-05-14 13:37:59 +02:00
Aleksandr Gumroian
2e9da55df7
Fix ids in wifiSettings fixture 2021-05-14 13:37:59 +02:00
Aleksandr Gumroian
da10a34d64
Revert "Fix reForis infinity redirect loop when WS error occurs"
It turned out that this fix doesn't work as expected in some cases.

This reverts commit 7505302875.
2021-05-14 13:37:58 +02:00
Aleksandr Gumroian
764a6c86cd
Expend library with the ResetWifiSettings function
Use named export instead of the default for ResetWifiSettings,
as we want to use it not only inside the WiFiSettings component.
2021-05-14 13:37:58 +02:00
Marek Sašek
4368bea2c2
Update tests 2021-05-14 13:06:48 +02:00
Marek Sašek
9dd6bbca90
Fix switching Wi-Fi modes depending on bands in WiFiForm 2021-05-14 13:06:48 +02:00
Marek Sašek
e1260a5ea1
Add Packages URL into forisUrls 2021-04-21 14:10:23 +02:00
Aleksandr Gumroian
7505302875
Fix reForis infinity redirect loop when WS error occurs 2021-03-26 11:11:12 +01:00