Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Foris JS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Turris
reForis
Foris JS
Commits
ed7cf34e
Commit
ed7cf34e
authored
Sep 25, 2020
by
Aleksandr Gumroian
🚀
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-v5.1.4' into 'dev'
Release v5.1.4 See merge request
!133
parents
69723f6b
aaf4087c
Pipeline
#69585
passed with stages
in 3 minutes and 27 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
9 deletions
+27
-9
package-lock.json
package-lock.json
+1
-1
package.json
package.json
+1
-1
src/bootstrap/Alert.js
src/bootstrap/Alert.js
+5
-1
src/bootstrap/Modal.js
src/bootstrap/Modal.js
+15
-2
src/common/RebootButton.js
src/common/RebootButton.js
+1
-1
src/common/WiFiSettings/WiFiForm.js
src/common/WiFiSettings/WiFiForm.js
+1
-0
src/common/WiFiSettings/__tests__/__snapshots__/WiFiSettings.test.js.snap
...ettings/__tests__/__snapshots__/WiFiSettings.test.js.snap
+2
-2
src/common/__tests__/__snapshots__/RebootButton.test.js.snap
src/common/__tests__/__snapshots__/RebootButton.test.js.snap
+1
-1
No files found.
package-lock.json
View file @
ed7cf34e
{
"name": "foris",
"version": "5.1.
3
",
"version": "5.1.
4
",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
...
...
package.json
View file @
ed7cf34e
{
"name"
:
"foris"
,
"version"
:
"5.1.
3
"
,
"version"
:
"5.1.
4
"
,
"description"
:
"Set of components and utils for Foris and its plugins."
,
"author"
:
"CZ.NIC, z.s.p.o."
,
"repository"
:
{
...
...
src/bootstrap/Alert.js
View file @
ed7cf34e
...
...
@@ -37,7 +37,11 @@ Alert.defaultProps = {
export
function
Alert
({
type
,
onDismiss
,
children
})
{
return
(
<
div
className
=
{
`alert alert-dismissible alert-
${
type
}
`
}
>
<
div
className
=
{
`alert
${
onDismiss
?
"
alert-dismissible
"
:
""
}
alert-
${
type
}
`
}
>
{
onDismiss
?
(
<
button
type
=
"
button
"
className
=
"
close
"
onClick
=
{
onDismiss
}
>
&
times
;
...
...
src/bootstrap/Modal.js
View file @
ed7cf34e
/*
* Copyright (C) 20
19
CZ.NIC z.s.p.o. (http://www.nic.cz/)
* Copyright (C) 20
20
CZ.NIC z.s.p.o. (http://www.nic.cz/)
*
* This is free software, licensed under the GNU General Public License v3.
* See /LICENSE for more information.
*/
import
React
,
{
useRef
}
from
"
react
"
;
import
React
,
{
useRef
,
useEffect
}
from
"
react
"
;
import
PropTypes
from
"
prop-types
"
;
import
{
Portal
}
from
"
../utils/Portal
"
;
...
...
@@ -31,6 +31,19 @@ export function Modal({ shown, setShown, scrollable, children }) {
useClickOutside
(
dialogRef
,
()
=>
setShown
(
false
));
useEffect
(()
=>
{
const
handleEsc
=
(
event
)
=>
{
if
(
event
.
keyCode
===
27
)
{
setShown
(
false
);
}
};
window
.
addEventListener
(
"
keydown
"
,
handleEsc
);
return
()
=>
{
window
.
removeEventListener
(
"
keydown
"
,
handleEsc
);
};
},
[
setShown
]);
return
(
<
Portal
containerId
=
"
modal-container
"
>
<
div
className
=
{
`modal fade
${
shown
?
"
show
"
:
""
}
`
}
role
=
"
dialog
"
>
...
...
src/common/RebootButton.js
View file @
ed7cf34e
...
...
@@ -63,7 +63,7 @@ RebootModal.propTypes = {
function
RebootModal
({
shown
,
setShown
,
onReboot
})
{
return
(
<
Modal
shown
=
{
shown
}
setShown
=
{
setShown
}
>
<
ModalHeader
setShown
=
{
setShown
}
title
=
{
_
(
"
Reboot confirmation
"
)}
/
>
<
ModalHeader
setShown
=
{
setShown
}
title
=
{
_
(
"
Warning!
"
)}
/
>
<
ModalBody
>
<
p
>
{
_
(
"
Are you sure you want to restart the router?
"
)}
<
/p
>
<
/ModalBody
>
...
...
src/common/WiFiSettings/WiFiForm.js
View file @
ed7cf34e
...
...
@@ -157,6 +157,7 @@ function DeviceForm({
choices
=
{
getHwmodeChoices
(
formData
)}
value
=
{
formData
.
hwmode
}
helpText
=
{
HELP_TEXTS
.
hwmode
}
inline
onChange
=
{
setFormValue
((
value
)
=>
({
devices
:
{
[
deviceIndex
]:
{
...
...
src/common/WiFiSettings/__tests__/__snapshots__/WiFiSettings.test.js.snap
View file @
ed7cf34e
...
...
@@ -570,7 +570,7 @@ exports[`<WiFiSettings/> Snapshot one module enabled. 1`] = `
+ GHz
+ </label>
+ <div
+ class=\\"custom-control custom-radio\\"
+ class=\\"custom-control custom-radio
custom-control-inline
\\"
+ >
+ <input
+ class=\\"custom-control-input\\"
...
...
@@ -587,7 +587,7 @@ exports[`<WiFiSettings/> Snapshot one module enabled. 1`] = `
+ </label>
+ </div>
+ <div
+ class=\\"custom-control custom-radio\\"
+ class=\\"custom-control custom-radio
custom-control-inline
\\"
+ >
+ <input
+ checked=\\"\\"
...
...
src/common/__tests__/__snapshots__/RebootButton.test.js.snap
View file @
ed7cf34e
...
...
@@ -22,7 +22,7 @@ exports[`<RebootButton/> Render modal. 1`] = `
<h5
class="modal-title"
>
Reboot confirmation
Warning!
</h5>
<button
class="close"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment