1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-02-23 09:54:17 +01:00
Commit Graph

251 Commits

Author SHA1 Message Date
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
Aleksandr Gumroian
86f98148c6
Fix translation sources in WiFiForm 2021-03-03 13:18:09 +01:00
Aleksandr Gumroian
abb5be53aa
Fix trailing space in Modal classes 2021-01-18 23:10:39 +01:00
Aleksandr Gumroian
af0fb80e45
Update Snapshots 2021-01-18 23:10:39 +01:00
Aleksandr Gumroian
688192504f
Change formFieldsSize of ResetWiFiSettings card 2021-01-18 22:06:20 +01:00
Aleksandr Gumroian
b8e5dbec8d
Increase bottom margin of formFieldsSize 2021-01-18 22:05:56 +01:00
Marek Sašek
de398901f3
Add isPluginInstalled function 2020-12-19 00:14:05 +01:00
Marek Sašek
473c81f9a4
Add storage link 2020-11-27 15:37:02 +01:00
Aleksandr Gumroian
5469e6ec80
Add displayCard function to utils 2020-11-22 23:45:27 +01:00
Aleksandr Gumroian
4898016388
Update Snapshots 2020-11-20 17:02:10 +01:00
Aleksandr Gumroian
6480a39cdb
Add information about optional sizes to docs 2020-11-20 16:56:25 +01:00
Aleksandr Gumroian
6f05d5d136
Add optional sizes to Modal 2020-11-20 16:56:16 +01:00
Aleksandr Gumroian
c68389359e
Update Snapshots 2020-09-25 18:52:25 +02:00
Aleksandr Gumroian
e03e0f44cc
Fix extra empty space in Switch's classes 2020-09-25 18:50:04 +02:00
Aleksandr Gumroian
1e04d34645
Fix DateTime import 2020-09-25 18:50:04 +02:00
Aleksandr Gumroian
aaf4087c96
Update Snapshots 2020-09-25 17:32:04 +02:00
Aleksandr Gumroian
913a7d7b75
Add closing bootstrap modal using ESC 2020-09-25 17:27:47 +02:00
Aleksandr Gumroian
bdc8726791
Change reboot modal's heading to "Warning!" 2020-09-25 17:27:46 +02:00
Aleksandr Gumroian
1c986519f6
Fix Alert's dismissible class condition 2020-09-25 17:27:46 +02:00
Aleksandr Gumroian
defc363f01
Add inline option to Wi-Fi's RadioSet 2020-09-14 18:48:30 +02:00
Marek Sašek
5186385b9f
Update snapshots 2020-09-11 17:32:46 +02:00
Marek Sašek
002786d073
Add test 2020-09-11 17:32:46 +02:00
Marek Sašek
4d246540c1
Add SSID validation for bytes count 2020-09-11 17:32:45 +02:00
Marek Sašek
35b97ec0fe
Add validation for SSID with diacritic 2020-09-11 17:32:45 +02:00
Aleksandr Gumroian
b96b434a3e
Update Snapshots 2020-09-02 17:55:53 +02:00
Aleksandr Gumroian
0ea5f7de84
Decrease Switch's margin-bottom with headings 2020-09-02 17:55:44 +02:00
Aleksandr Gumroian
0c7997f6c0
Fix Reboot page URL in respective dropdown 2020-09-02 17:55:44 +02:00
Aleksandr Gumroian
90ce866869
Fix infinity loop caused by WebSockets 2020-09-02 17:55:25 +02:00
Aleksandr Gumroian
8bd71a08af
Update Snapshots 2020-08-31 15:56:01 +02:00
Aleksandr Gumroian
1903016f13
Add "inline" option to RadioSet 2020-08-31 15:56:00 +02:00
Aleksandr Gumroian
443f14d26c
Add ability to select switch's form-group 2020-08-31 15:56:00 +02:00
Aleksandr Gumroian
50943e0b11
fixup! Fix buttons size outside of form's card layout 2020-08-25 17:32:23 +02:00
Aleksandr Gumroian
f64419c643
Add tests for Switch 2020-08-18 17:37:08 +02:00
Aleksandr Gumroian
f8726e6012
Format all files with Prettier 2020-08-18 16:17:00 +02:00
Aleksandr Gumroian
a434ecac18
Update Snapshots 2020-08-18 15:41:05 +02:00
Aleksandr Gumroian
5ae129b0f5
Fix tests 2020-08-18 15:41:05 +02:00
Aleksandr Gumroian
a2acac255d
Swap checkboxes for switches on Wi-Fi page 2020-08-18 15:41:04 +02:00
Aleksandr Gumroian
c1b1d8c079
Add Switch component 2020-08-18 15:41:03 +02:00
Aleksandr Gumroian
705ed5ac80
Update Snapshots 2020-08-06 17:25:49 +02:00
Aleksandr Gumroian
1dd1805ae0
Fix buttons size outside of form's card layout 2020-08-06 17:25:38 +02:00
Aleksandr Gumroian
e858b30994
Add appropriate links to dropdown headers 2020-08-05 14:37:14 +02:00
Aleksandr Gumroian
8a56d71c51
Add semantic & accessibility structure for headings 2020-08-05 14:36:54 +02:00
Aleksandr Gumroian
d34c465787
Update Snapshots 2020-07-30 11:57:50 +02:00
Aleksandr Gumroian
cbf37dd747
Fix overview & notifications URLs 2020-07-30 11:40:11 +02:00
Aleksandr Gumroian
f9cfb248d3
Decrease button width on different breakpoints 2020-07-22 16:07:41 +02:00
Aleksandr Gumroian
9be880aeaa
Remove form's offset & extend it on 12 columns 2020-07-22 15:59:49 +02:00
Aleksandr Gumroian
e7f9fbca96 Merge branch 'dev' into 'new-channel-bandwidth'
# Conflicts:
#   src/common/WiFiSettings/WiFiForm.js
2020-07-17 16:24:43 +02:00
Aleksandr Gumroian
8d40dbb841 Merge branch 'additional-wifi-module-fix' into 'dev'
Fix Wi-Fi Form bug with additional Wi-Fi modules

Closes reforis#204

See merge request turris/reforis/foris-js!117
2020-07-17 14:38:24 +02:00
Aleksandr Gumroian
cea8aa0c12
Fix a Wi-Fi Form bug with additional Wi-Fi modules 2020-07-17 14:33:35 +02:00
Aleksandr Gumroian
16a7a6c52d
Update Snapshots 2020-07-17 14:19:56 +02:00
Aleksandr Gumroian
597b6fcf4c
Add Natural sort order for list of options 2020-07-17 14:19:56 +02:00
Aleksandr Gumroian
5eb6b90ed4
Add 802.11ac 160 MHz wide channel to constants 2020-07-17 13:38:30 +02:00
Aleksandr Gumroian
48c323c1a1
Fix Wi-Fi Form bug with additional Wi-Fi modules 2020-07-17 12:26:46 +02:00
Marek Sašek
67e4abe4d1
Add test suites for a Wi-Fi form submission 2020-07-07 11:35:58 +02:00
Aleksandr Gumroian
57f1ccced8
Fix form submission button for one or more Wi-Fi modules. 2020-06-29 13:24:42 +02:00
Bogdan Bodnar
a5e096dc00 Fix and update docs. 2020-06-04 22:52:24 +02:00
Bogdan Bodnar
cd708fa294
Add initial form data to children of the ForisForm. 2020-05-07 16:00:02 +02:00
Bogdan Bodnar
bded10211a
Use pdfmake from globals. 2020-03-25 21:17:12 +01:00
Bogdan Bodnar
e1b5a25ddd
Update domain vadlidation. 2020-03-13 21:37:21 +01:00
Bogdan Bodnar
02b5583712
Move vadliadtions and forisUrls to utils. 2020-03-13 21:37:21 +01:00
Bogdan Bodnar
ce955095fd
Add logout link. 2020-03-06 14:00:18 +01:00
Bogdan Bodnar
bf8c2d28bf
Allow RadioSet accept elements as children. 2020-02-26 15:21:43 +01:00
Bogdan Bodnar
ba772be869
Add option to make modal scrollable. 2020-02-26 11:44:52 +01:00
Maciej Lenartowicz
9fbc4e8383 Added date and time utilities. 2020-02-20 14:30:28 +01:00
Maciej Lenartowicz
2b28434712
Rethrow unhandled error from API hooks. 2020-02-18 14:32:59 +01:00
Maciej Lenartowicz
8b7c459855 Merge branch 'css-refactoring' into 'dev'
Added styles extracted from reForis.

See merge request turris/reforis/foris-js!85
2020-02-14 17:26:24 +01:00
Maciej Lenartowicz
c1cd90dff6
Fixed ForisForm docstring. 2020-02-14 12:40:23 +01:00
Maciej Lenartowicz
716c323b28
Added reference to form element. 2020-02-10 12:06:16 +01:00
Maciej Lenartowicz
85e42980ec
Added styles extracted from reForis. 2020-01-22 13:21:46 +01:00
Maciej Lenartowicz
ee33d33738 Display actual error within the form. 2020-01-20 16:54:42 +01:00
Bogdan Bodnar
a0a775996e Merge branch 'use-react-router-dom' into 'dev'
Use react-router-dom instead of react-router.

See merge request turris/reforis/foris-js!80
2020-01-17 14:35:20 +01:00
Bogdan Bodnar
532acf9d86
Add warning about using <ForisForm /> component in plugins. 2020-01-17 13:15:46 +01:00
Maciej Lenartowicz
556e12c964 Revert "Prompt as an optional element of ForisForm."
This reverts commit 75bfbb88ae.
2020-01-17 12:44:11 +01:00
Maciej Lenartowicz
c495aa97ac
Increased network timeout. 2020-01-16 18:40:57 +01:00
Maciej Lenartowicz
2d375b1690 Merge branch 'disable-form-prompt' into 'dev'
Prompt as an optional element of ForisForm.

See merge request turris/reforis/foris-js!77
2020-01-16 16:12:44 +01:00
Maciej Lenartowicz
6d8e0cec70 Added controller ID filter to WebSocket hook. 2020-01-16 10:27:30 +01:00
Bogdan Bodnar
5091eecedf
Use react-router-dom instead of react-router. 2020-01-15 18:19:04 +01:00
Maciej Lenartowicz
75bfbb88ae
Prompt as an optional element of ForisForm. 2020-01-14 15:00:17 +01:00
Maciej Lenartowicz
3e2c89cac7
Moved moment-timezone to devDependencies. 2020-01-09 17:46:15 +01:00
Maciej Lenartowicz
5fd0d3626a Wi-Fi settings form 2020-01-09 11:25:29 +01:00
Maciej Lenartowicz
56a4c47948 Form widgets size 2020-01-07 13:27:49 +01:00
Bogdan Bodnar
cc13e9c164 Merge branch 'no-babel' into 'dev'
No babel

See merge request turris/reforis/foris-js!64
2020-01-07 11:12:17 +01:00
Maciej Lenartowicz
92f560b69f Display datepicker above input 2020-01-06 09:45:16 +01:00
Bogdan Bodnar
dd27802056
Fix relative imports. 2019-12-27 12:10:19 +01:00
Maciej Lenartowicz
3d290114fa
Changed levels of WS logs 2019-12-17 17:45:55 +01:00
Bogdan Bodnar
6d5cb6a951
Export <Radio />. 2019-12-17 14:04:06 +01:00
Maciej Lenartowicz
90509f2a23
Detect clicks outside element with a hook 2019-12-16 13:44:58 +01:00
Bogdan Bodnar
fd1518265f Merge branch 'spinner-element-class-name' into 'dev'
Add className to SpinnerElement.

See merge request turris/reforis/foris-js!55
2019-12-06 15:07:16 +01:00
Bogdan Bodnar
aac6c6bf2a
Add className to SpinnerElement. 2019-12-06 12:13:29 +01:00
Bogdan Bodnar
d55615abcc
Grammar. 2019-12-06 12:09:54 +01:00
Bogdan Bodnar
9d322811c3
Improve docs and propTypes of WS usage in ForisForm. 2019-12-06 12:07:42 +01:00
Bogdan Bodnar
f30685d9c2
Add WS unsubscribtion.
Code review improvements.
2019-12-06 11:46:30 +01:00
Maciej Lenartowicz
8d0c640994 Set suffix for API URL 2019-12-06 10:27:48 +01:00
Bogdan Bodnar
7b739f55a0 Merge branch 'add-reboot-button' into 'dev'
Add reboot button

See merge request turris/reforis/foris-js!50
2019-11-29 16:37:44 +01:00
Bogdan Bodnar
03a020f87c
Bump version 1.4.0. 2019-11-29 16:29:32 +01:00
Bogdan Bodnar
acaaab0654
Fix URL prefixes. 2019-11-29 16:29:31 +01:00
Bogdan Bodnar
04a667eb6f
Extract reboot button from reForis.
* Add RebootButton tests.
 * RebootButton code review.
 * Update translations.
2019-11-29 16:29:31 +01:00
Maciej Lenartowicz
1064277cd9 Allow adding classes to DownloadButton 2019-11-29 16:01:53 +01:00
Bogdan Bodnar
fd8acd1ceb Catch error and sending state in API polling. 2019-11-19 16:56:38 +00:00
Bogdan Bodnar
1a82f8e225
Update checkbox snapshots. 2019-11-19 13:37:43 +01:00
Bogdan Bodnar
638821d025
Make checkBox help text clickabe. 2019-11-19 13:36:49 +01:00
Maciej Lenartowicz
e54db2c577 Use global AlertContext 2019-11-18 12:51:43 +00:00
Bogdan Bodnar
a6866a0673 Merge branch 'api-polling' into 'dev'
Add hook for API polling.

See merge request turris/reforis/foris-js!41
2019-11-15 15:59:44 +00:00
Bogdan Bodnar
429814ebb5
Add until param to API polling hook. 2019-11-15 14:21:19 +01:00
Bogdan Bodnar
73e213c467
Add default delay. 2019-11-15 14:20:14 +01:00
Bogdan Bodnar
2e68e56e44
Add hook for API polling. 2019-11-15 14:20:07 +01:00
Maciej Lenartowicz
b30f9f59b4 Fix for withEither 2019-11-15 08:55:24 +00:00
Bogdan Bodnar
23029470b9
Improve error handling + small refactoring. 2019-11-13 15:28:26 +01:00
Bogdan Bodnar
7e6e6f8c87
Use generic error message in the ForisForm. 2019-11-13 14:49:52 +01:00
Bogdan Bodnar
b831d664a9
Add timout handling. 2019-11-13 14:49:52 +01:00
Maciej Lenartowicz
6e02f1d194 Shared lint configs 2019-11-13 10:11:11 +00:00
Maciej Lenartowicz
a51ba0630d Move alert to portal 2019-11-12 12:50:29 +00:00
Maciej Lenartowicz
8b39bf4193 Loading and errors HOCs 2019-11-07 17:21:14 +00:00
Maciej Lenartowicz
654ae6914a
Added missing hook to index.js 2019-11-05 13:00:44 +01:00
Maciej Lenartowicz
7f8aaea7b8 Resolve "Discuss and implement proper API methods." 2019-11-05 11:10:50 +00:00
Maciej Lenartowicz
0984c45161 Flat structure of published package 2019-11-01 09:28:28 +00:00
Maciej Lenartowicz
0915d477fe Global alert 2019-10-30 16:06:53 +00:00
Maciej Lenartowicz
88f3836485 Radio checkbox whitespace 2019-10-24 08:12:39 +00:00
Maciej Lenartowicz
760e6d9243 Download button 2019-10-11 14:11:14 +00:00
Maciej Lenartowicz
e3a795e40d Client configuration 2019-10-10 15:25:00 +00:00
Maciej Lenartowicz
afa8c160a3 Resolve "Increment/decrement value in NumberInput when +/- button is kept pushed." 2019-10-07 09:18:25 +00:00
Maciej Lenartowicz
96eed02d32 Filter non-JSON payload 2019-10-01 09:38:18 +00:00
Bogdan Bodnar
8479518fab Merge branch 'docs' into 'dev'
Fix docs, extract CSS to Foris JS.

See merge request turris/reforis/foris-js!10
2019-09-30 13:01:00 +00:00
Maciej Lenartowicz
44e45499c6 Ignore non-JSON error payload 2019-09-30 12:58:41 +00:00
Bogdan Bodnar
680871de62
Core review docs fixes. 2019-09-30 11:26:06 +02:00
Maciej Lenartowicz
7516cfdbfe
Added missing export 2019-09-30 09:58:11 +02:00
Bogdan Bodnar
e4e28dbce4
Move css to the library. 2019-09-26 16:10:52 +02:00
Bogdan Bodnar
7a14ed1b60
Copyright. 2019-09-26 12:23:22 +02:00
Maciej Lenartowicz
497a1a0ad3
Added function to filter object keys 2019-09-26 09:39:07 +02:00
Bogdan Bodnar
4a481ea642
Add styleguidist docs. 2019-09-25 16:14:29 +02:00
Maciej Lenartowicz
7253319b61 Disable default styles for number input 2019-09-25 11:59:45 +00:00
Maciej Lenartowicz
d658f0b112 Resolve "Handle PATCH request" 2019-09-25 11:56:08 +00:00
Maciej Lenartowicz
d4bc5a6998 Resolve "Extract alert context from OpenVPN plugin" 2019-09-24 07:52:09 +00:00
Maciej Lenartowicz
4ff3e33411 DELETE method in API hooks 2019-09-10 08:30:42 +00:00
Maciej Lenartowicz
4430b1782d Moved update approvals page 2019-09-02 07:30:28 +00:00
Maciej Lenartowicz
f1bc333f28
Removed mockWS 2019-08-29 11:46:13 +02:00
Bogdan Bodnar
09b7867073
Checkbox -> CheckBox. 2019-08-29 10:54:47 +02:00
Bogdan Bodnar
41a4cb8f4b
Fix submit button type. 2019-08-29 10:54:47 +02:00
Bogdan Bodnar
ed14c3378e
Lint. 2019-08-29 10:54:47 +02:00
Bogdan Bodnar
2173770ebc
Add module resolver plugin. 2019-08-29 10:54:47 +02:00
Bogdan Bodnar
e9910f269f
Don't use default exports. 2019-08-29 10:54:47 +02:00
Bogdan Bodnar
3bb760ceb3
Fix imports. 2019-08-29 10:54:47 +02:00
Bogdan Bodnar
c0d742b13b
Fix lint. 2019-08-29 10:54:47 +02:00
Bogdan Bodnar
18e8e20206
Set tests. 2019-08-27 15:28:29 +02:00
Bogdan Bodnar
39a8c16824
Set test modules. 2019-08-27 14:07:34 +02:00
Bogdan Bodnar
19df5c2630
Set modules. 2019-08-27 11:54:57 +02:00