From f3b563ebc318051abab6766ac4b63f263f2c920c Mon Sep 17 00:00:00 2001 From: Camille Moussu Date: Tue, 25 Jun 2024 10:33:13 +0400 Subject: [PATCH] [#3] added breadcrumbs to all dashboards --- src/dashboards/HomePage.tsx | 280 ++++++++++++++++++------------------ src/pages/Configuration.tsx | 42 +++++- 2 files changed, 173 insertions(+), 149 deletions(-) diff --git a/src/dashboards/HomePage.tsx b/src/dashboards/HomePage.tsx index e646b26..f689ecb 100644 --- a/src/dashboards/HomePage.tsx +++ b/src/dashboards/HomePage.tsx @@ -54,48 +54,46 @@ export function HomePage() { return ( <> -
+
-
- logo -
- {t("Configuration Manager")} + logo
-
-
- -
-
-
+
+
+ +
+
+ -
-
- -
-
- SetAimedConf(Number(e.target.value))} - onKeyDown={(e) => { - if (e.key === "Enter") { - if (aimedConf <= config.data.metadata.cfgNum) { - dispatch(push(`#conf/${aimedConf}`)); - } else - dispatch( - setError( - `Latest Config : ${config.data.metadata.cfgNum}` - ) - ); + } + ); } }} /> - +
+
+ +
+
+ SetAimedConf(Number(e.target.value))} + onKeyDown={(e) => { + if (e.key === "Enter") { if (aimedConf <= config.data.metadata.cfgNum) { dispatch(push(`#conf/${aimedConf}`)); } else @@ -153,73 +138,84 @@ export function HomePage() { `Latest Config : ${config.data.metadata.cfgNum}` ) ); - }} - > - {t("go")} - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -
- {t("Latest conf info")} -
- {t("latest")} - - -
- {t("date")} - {createdDate.toLocaleString()}
- {t("author")} - {config.data.metadata.cfgAuthor}
- {t("authorIPAddress")} - {config.data.metadata.cfgAuthorIP}
-
+ } + }} + /> +
+
+
- {t("Latest conf stats")} - -
-
- {t("latestError")} {config.error.errorContent} + + + + + + + + + + + + + + + + + + + + + + + + +
+ {t("Latest conf info")} +
+ {t("latest")} + + +
+ {t("date")} + {createdDate.toLocaleString()}
+ {t("author")} + {config.data.metadata.cfgAuthor}
+ {t("authorIPAddress")} + {config.data.metadata.cfgAuthorIP}
+
+ {t("Latest conf stats")} + +
+
+ {t("latestError")} {config.error.errorContent} +