1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-14 17:35:35 +01:00

Merge branch 'dev' into 'master'

Release 3.4.0

See merge request turris/reforis/foris-js!88
This commit is contained in:
Maciej Lenartowicz 2020-02-17 10:55:59 +01:00
commit 388860d51e
34 changed files with 230 additions and 165 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "foris",
"version": "3.2.0",
"version": "3.4.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "foris",
"version": "3.2.0",
"version": "3.4.0",
"description": "Set of components and utils for Foris and its plugins.",
"author": "CZ.NIC, z.s.p.o.",
"repository": {

15
src/bootstrap/Modal.css Normal file
View File

@ -0,0 +1,15 @@
@keyframes modalFade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.modal.show {
display: block;
animation-name: modalFade;
animation-duration: .3s;
background: rgba(0, 0, 0, 0.2);
}

View File

@ -10,6 +10,7 @@ import PropTypes from "prop-types";
import { Portal } from "../utils/Portal";
import { useClickOutside } from "../utils/hooks";
import "./Modal.css";
Modal.propTypes = {
/** Is modal shown value */

33
src/bootstrap/Spinner.css Normal file
View File

@ -0,0 +1,33 @@
.spinner-wrapper .spinner-border {
width: 4rem;
height: 4rem;
color: #00a2e2;
}
.spinner-fs-background {
background-color: rgba(2, 2, 2, .5);
color: rgb(230, 230, 230);
position: fixed;
width: 100%;
height: 100%;
top: 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
/*
* Set to high value to me sure that it always overlaps all components
* https://getbootstrap.com/docs/4.3/layout/overview/#z-index
*/
z-index: 1100;
}
.spinner-fs-wrapper .spinner-border {
width: 6rem;
height: 6rem;
}
.spinner-fs-wrapper .spinner-text {
margin: 1rem;
}

View File

@ -8,6 +8,8 @@
import React from "react";
import PropTypes from "prop-types";
import "./Spinner.css";
Spinner.propTypes = {
/** Children components put into `div` with "spinner-text" class. */
children: PropTypes.oneOfType([

View File

@ -27,7 +27,6 @@ export default function ResetWiFiSettings({ ws, endpoint }) {
const module = "wifi";
ws.subscribe(module)
.bind(module, "reset", () => {
setIsLoading(true);
// eslint-disable-next-line no-restricted-globals
setTimeout(() => location.reload(), 1000);
});
@ -45,6 +44,7 @@ export default function ResetWiFiSettings({ ws, endpoint }) {
function onReset() {
dismissAlert();
setIsLoading(true);
postReset();
}

View File

@ -39,9 +39,10 @@ describe("<WiFiSettings/>", () => {
it("should handle error", async () => {
const webSockets = new WebSockets();
const { getByText } = render(<WiFiSettings ws={webSockets} ws={webSockets} endpoint={endpoint} resetEndpoint="foo" />);
mockJSONError();
const errorMessage = "An API error occurred.";
mockJSONError(errorMessage);
await wait(() => {
expect(getByText("An error occurred while fetching data.")).toBeTruthy();
expect(getByText(errorMessage)).toBeTruthy();
});
});

View File

@ -11,7 +11,6 @@ import { Prompt } from "react-router-dom";
import { ALERT_TYPES } from "../../bootstrap/Alert";
import { API_STATE } from "../../api/utils";
import { ErrorMessage } from "../../utils/ErrorMessage";
import { formFieldsSize } from "../../bootstrap/constants";
import { Spinner } from "../../bootstrap/Spinner";
import { useAlert } from "../../alertContext/AlertContext";
@ -19,6 +18,7 @@ import { useAPIPost } from "../../api/hooks";
import { useForisModule, useForm } from "../hooks";
import { STATES as SUBMIT_BUTTON_STATES, SubmitButton } from "./SubmitButton";
import { ErrorMessage } from "../../utils/ErrorMessage";
ForisForm.propTypes = {
/** Optional WebSocket object. See `scr/common/WebSockets.js`.
@ -27,7 +27,7 @@ ForisForm.propTypes = {
ws: PropTypes.object,
/** Foris configuration object. See usage in main components. */
forisConfig: PropTypes.shape({
/** reForis Flask aplication API endpoint from `src/common/API.js`. */
/** reForis Flask application API endpoint from `src/common/API.js`. */
endpoint: PropTypes.string.isRequired,
/** `foris-controller` module name to be used via WebSockets.
* It can be use only with `ws` prop.
@ -38,20 +38,24 @@ ForisForm.propTypes = {
* */
wsAction: PropTypes.string,
}).isRequired,
/** Function to prepare data recived from the API before using in forms. */
prepData: PropTypes.func.isRequired,
/** Function to prepare data received from the API before using in forms. */
prepData: PropTypes.func,
/** Function to prepare data from form before submitting. */
prepDataToSubmit: PropTypes.func.isRequired,
prepDataToSubmit: PropTypes.func,
/** Function to handle response to POST request. */
postCallback: PropTypes.func.isRequired,
postCallback: PropTypes.func,
/** Validate data and provide validation object. Then validation errors passed to children. */
validator: PropTypes.func.isRequired,
validator: PropTypes.func,
/** Disables form */
disabled: PropTypes.bool,
/** reForis form components. */
children: PropTypes.node.isRequired,
/** Optional override of form submit callback */
onSubmitOverridden: PropTypes.func,
/** Reference to actual form element (useful for programmatically submitting it).
* Pass the output of useRef hook to this prop.
*/
formReference: PropTypes.object,
/** reForis form components. */
children: PropTypes.node.isRequired,
// eslint-disable-next-line react/no-unused-prop-types
customWSProp(props) {
@ -88,10 +92,11 @@ export function ForisForm({
validator,
disabled,
onSubmitOverridden,
formReference,
children,
}) {
const [formState, onFormChangeHandler, resetFormData] = useForm(validator, prepData);
const [setAlert] = useAlert();
const [setAlert, dismissAlert] = useAlert();
const [forisModuleState] = useForisModule(ws, forisConfig);
useEffect(() => {
@ -111,7 +116,7 @@ export function ForisForm({
}, [postCallback, postState.state, postState.data, setAlert]);
if (forisModuleState.state === API_STATE.ERROR) {
return <ErrorMessage />;
return <ErrorMessage message={forisModuleState.data} />;
}
if (!formState.data) {
return <Spinner />;
@ -120,6 +125,7 @@ export function ForisForm({
function onSubmitHandler(event) {
event.preventDefault();
resetFormData();
dismissAlert();
const copiedFormData = JSON.parse(JSON.stringify(formState.data));
const preparedData = prepDataToSubmit(copiedFormData);
post({ data: preparedData });
@ -162,7 +168,7 @@ export function ForisForm({
return (
<div className={formFieldsSize}>
<Prompt message={getMessageOnLeavingPage} />
<form onSubmit={onSubmit}>
<form onSubmit={onSubmit} ref={formReference}>
{childrenWithFormProps}
<div className="text-right">
<SubmitButton

View File

@ -6,11 +6,18 @@
*/
import React from "react";
import PropTypes from "prop-types";
export function ErrorMessage() {
ErrorMessage.propTypes = {
message: PropTypes.string,
};
ErrorMessage.defaultProps = {
message: _("An error occurred while fetching data."),
};
export function ErrorMessage({ message }) {
return (
<p className="text-center text-danger">
{_("An error occurred while fetching data.")}
</p>
<p className="text-center text-danger">{message}</p>
);
}

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-09-29 15:56+0000\n"
"Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>\n"
"Language: cs\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -251,11 +251,11 @@ msgstr ""
"hosty“.\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr "Nastavení úspěšně uložena"
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
"Změny, které byly provedeny, nebyly uloženy. Jste si jistý, že chcete "
@ -273,7 +273,7 @@ msgstr "Načítám nastavení"
msgid "Save"
msgstr "Uložit"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr "Došlo k chybě při získávání dat."

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: da\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-09-02 07:21+0000\n"
"Last-Translator: Ulrich Günther <mail@ulrich-guenther.at>\n"
"Language: de\n"
@ -92,11 +92,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -253,11 +253,11 @@ msgstr ""
"Gastnetzwerk eingestellt werden.\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -273,7 +273,7 @@ msgstr "Einstellungen laden"
msgid "Save"
msgstr "Speichern"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: el\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-17 09:28+0000\n"
"Last-Translator: Scott Anecito <scott.anecito@protonmail.com>\n"
"Language: en\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -248,11 +248,11 @@ msgstr ""
"tab.\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -268,7 +268,7 @@ msgstr "Load settings"
msgid "Save"
msgstr "Save"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-29 06:53+0000\n"
"Last-Translator: Adolfo Jayme Barrientos <fitojb@ubuntu.com>\n"
"Language: es\n"
@ -92,11 +92,11 @@ msgstr "Cancelar"
msgid "Confirm reboot"
msgstr "Confirmar reinicio"
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -225,11 +225,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -247,7 +247,7 @@ msgstr "Configuración de LAN"
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fi\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fo\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -89,11 +89,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -222,11 +222,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -242,7 +242,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-14 11:04+0000\n"
"Last-Translator: ButterflyOfFire <ButterflyOfFire@protonmail.com>\n"
"Language: fr\n"
@ -94,11 +94,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -227,11 +227,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -247,7 +247,7 @@ msgstr "Charger les paramètres"
msgid "Save"
msgstr "Enregistrer"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: hr\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -224,11 +224,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -244,7 +244,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: hu\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: it\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-16 10:08+0000\n"
"Last-Translator: Scott Anecito <scott.anecito@protonmail.com>\n"
"Language: ja\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -224,11 +224,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -244,7 +244,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: ko\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: lt\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -224,11 +224,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -244,7 +244,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-11-10 16:04+0000\n"
"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n"
"Language: nb\n"
@ -92,11 +92,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -250,11 +250,11 @@ msgstr ""
"\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -270,7 +270,7 @@ msgstr "Last inn innstillinger"
msgid "Save"
msgstr "Lagre"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-08-28 17:55+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: nb_NO\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-15 13:02+0000\n"
"Last-Translator: powerburner-nl <peter.mulder.1981@gmail.com>\n"
"Language: nl\n"
@ -92,11 +92,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -225,11 +225,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -245,7 +245,7 @@ msgstr "Instellingen laden"
msgid "Save"
msgstr "Opslaan"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: pl\n"
@ -92,11 +92,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -225,11 +225,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -245,7 +245,7 @@ msgstr ""
msgid "Save"
msgstr "Zapisz"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:35+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: ro\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -224,11 +224,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -244,7 +244,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-09-30 13:00+0000\n"
"Last-Translator: Алексей Леньшин <alenshin@gmail.com>\n"
"Language: ru\n"
@ -93,11 +93,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -250,11 +250,11 @@ msgstr ""
"Гостевая сеть.\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -270,7 +270,7 @@ msgstr "Загрузить настройки"
msgid "Save"
msgstr "Сохранить"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: sk\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: sv\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr "Spara"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""