From 54649091213a47adf888f7b8ea8aca72d5a495c4 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 5 Jan 2025 13:32:54 +0100 Subject: [PATCH 1/3] change icon size and use customizations icon --- interface/src/app/main/Dashboard.tsx | 2 +- interface/src/app/main/Devices.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/interface/src/app/main/Dashboard.tsx b/interface/src/app/main/Dashboard.tsx index 426af7a92..ea174607f 100644 --- a/interface/src/app/main/Dashboard.tsx +++ b/interface/src/app/main/Dashboard.tsx @@ -274,7 +274,7 @@ const Dashboard = () => { diff --git a/interface/src/app/main/Devices.tsx b/interface/src/app/main/Devices.tsx index 450116568..0542ea974 100644 --- a/interface/src/app/main/Devices.tsx +++ b/interface/src/app/main/Devices.tsx @@ -9,10 +9,10 @@ import { IconContext } from 'react-icons'; import { useNavigate } from 'react-router'; import { toast } from 'react-toastify'; +import ConstructionIcon from '@mui/icons-material/Construction'; import CommentsDisabledOutlinedIcon from '@mui/icons-material/CommentsDisabledOutlined'; import EditIcon from '@mui/icons-material/Edit'; import EditOffOutlinedIcon from '@mui/icons-material/EditOffOutlined'; -import FormatListNumberedIcon from '@mui/icons-material/FormatListNumbered'; import DownloadIcon from '@mui/icons-material/GetApp'; import HighlightOffIcon from '@mui/icons-material/HighlightOff'; import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'; @@ -522,7 +522,7 @@ const Devices = () => { @@ -643,7 +643,7 @@ const Devices = () => { coreData.devices[deviceIndex].e + ' ' + LL.ENTITIES(shown_data.length)} - + setShowDeviceInfo(true)}> @@ -651,7 +651,7 @@ const Devices = () => { {me.admin && ( - + )} @@ -671,7 +671,7 @@ const Devices = () => { - + From b13c608ff3b5f04a661fa497a491756c5908eee5 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 5 Jan 2025 13:34:02 +0100 Subject: [PATCH 2/3] formatting imports --- interface/src/app/main/Devices.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/app/main/Devices.tsx b/interface/src/app/main/Devices.tsx index 0542ea974..d34625839 100644 --- a/interface/src/app/main/Devices.tsx +++ b/interface/src/app/main/Devices.tsx @@ -9,8 +9,8 @@ import { IconContext } from 'react-icons'; import { useNavigate } from 'react-router'; import { toast } from 'react-toastify'; -import ConstructionIcon from '@mui/icons-material/Construction'; import CommentsDisabledOutlinedIcon from '@mui/icons-material/CommentsDisabledOutlined'; +import ConstructionIcon from '@mui/icons-material/Construction'; import EditIcon from '@mui/icons-material/Edit'; import EditOffOutlinedIcon from '@mui/icons-material/EditOffOutlined'; import DownloadIcon from '@mui/icons-material/GetApp'; From 472f9223695b3f93b44b7273af7cf551f5fa77b1 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 5 Jan 2025 18:26:18 +0100 Subject: [PATCH 3/3] tidy up formatting, add a re-install option --- interface/src/app/settings/Version.tsx | 118 ++++++++++++++----------- 1 file changed, 67 insertions(+), 51 deletions(-) diff --git a/interface/src/app/settings/Version.tsx b/interface/src/app/settings/Version.tsx index 600f7e9de..f54e03dd4 100644 --- a/interface/src/app/settings/Version.tsx +++ b/interface/src/app/settings/Version.tsx @@ -183,10 +183,6 @@ const Version = () => { }; const showButtons = () => { - if (!upgradeAvailable) { - return; - } - if (downloadOnly) { return ( ); }; @@ -225,24 +221,24 @@ const Version = () => { return ( <> - + Firmware Version - - - - {LL.VERSION()} - - - Platform - - - Release Type - + + + {LL.VERSION()} - - + + {data.emsesp_version} {data.build_flags && ( @@ -250,8 +246,20 @@ const Version = () => { )} - {getPlatform()} - + + + + Platform + + + {getPlatform()} + + + + Release Type + + + {data.emsesp_version.includes('dev') ? LL.DEVELOPMENT() : LL.STABLE()} @@ -259,40 +267,48 @@ const Version = () => { - + {LL.AVAILABLE_VERSION()} + + + {LL.STABLE()} + + + + + {latestVersion} + + + + {!usingDevVersion && showButtons()} + + + {LL.DEVELOPMENT()} + + + + + {latestDevVersion} + + + + {usingDevVersion && showButtons()} + + {internetLive ? ( <> - - - - {LL.STABLE()} - - - {LL.DEVELOPMENT()} - - - - - {latestVersion}   - - (changelog) - - {!usingDevVersion && showButtons()} - - - {latestDevVersion}   - - (changelog) - - {usingDevVersion && showButtons()} - - - {upgradeAvailable ? ( - + { {LL.UPGRADE_AVAILABLE()} ) : ( - + { ) : ( - device cannot access internet + no access to download site )}