From 90ce866869815551b3975ab2fd25fff9202bd576 Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Wed, 2 Sep 2020 15:57:28 +0200 Subject: [PATCH 1/4] Fix infinity loop caused by WebSockets --- src/webSockets/WebSockets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webSockets/WebSockets.js b/src/webSockets/WebSockets.js index 5663948..55e3af5 100644 --- a/src/webSockets/WebSockets.js +++ b/src/webSockets/WebSockets.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/) + * Copyright (C) 2020 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. @@ -12,7 +12,7 @@ import { ForisURLs } from "../utils/forisUrls"; const PROTOCOL = window.location.protocol === "http:" ? "ws" : "wss"; const URL = process.env.LIGHTTPD - ? `${PROTOCOL}://${window.location.hostname}/foris-ws` + ? `${PROTOCOL}://${window.location.host}/foris-ws` : `${PROTOCOL}://${window.location.hostname}:${9081}`; const WAITING_FOR_CONNECTION_TIMEOUT = 500; From 0c7997f6c03dd20e2898d090bcc7ae6015b00941 Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Wed, 2 Sep 2020 17:06:53 +0200 Subject: [PATCH 2/4] Fix Reboot page URL in respective dropdown --- src/utils/forisUrls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/forisUrls.js b/src/utils/forisUrls.js index a63ab36..a1b8293 100644 --- a/src/utils/forisUrls.js +++ b/src/utils/forisUrls.js @@ -27,7 +27,7 @@ export const ForisURLs = { approveUpdates: "/package-management/updates", languages: "/package-management/languages", - rebootPage: "/reforis/administration/reboot", + rebootPage: "/administration/reboot", luci: "/cgi-bin/luci", // API From 0ea5f7de848642522592f2e59941baa157ac1986 Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Wed, 2 Sep 2020 17:46:59 +0200 Subject: [PATCH 3/4] Decrease Switch's margin-bottom with headings --- src/bootstrap/Switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/Switch.js b/src/bootstrap/Switch.js index 29ec3f3..b862918 100644 --- a/src/bootstrap/Switch.js +++ b/src/bootstrap/Switch.js @@ -23,7 +23,7 @@ Switch.propTypes = { export function Switch({ label, helpText, switchHeading, ...props }) { const uid = useUID(); return ( -
+
Date: Wed, 2 Sep 2020 17:50:58 +0200 Subject: [PATCH 4/4] Update Snapshots --- src/bootstrap/__tests__/__snapshots__/Switch.test.js.snap | 4 ++-- .../__tests__/__snapshots__/WiFiSettings.test.js.snap | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/__tests__/__snapshots__/Switch.test.js.snap b/src/bootstrap/__tests__/__snapshots__/Switch.test.js.snap index e0c171f..3e533aa 100644 --- a/src/bootstrap/__tests__/__snapshots__/Switch.test.js.snap +++ b/src/bootstrap/__tests__/__snapshots__/Switch.test.js.snap @@ -2,7 +2,7 @@ exports[` Render switch 1`] = `
Render switch 1`] = ` exports[` Render uncheked switch 1`] = `
Snapshot one module enabled. 1`] = ` + +
+
+