From 08036bf818768df0ce41b991aa14781252fcae9a Mon Sep 17 00:00:00 2001 From: garronej Date: Sat, 1 Apr 2023 23:46:15 +0200 Subject: [PATCH 1/2] Inclide version number in the header --- src/stories/shared/Footer.stories.tsx | 5 ++- src/ui/App.tsx | 14 ++++++-- src/ui/i18n.tsx | 11 ------ src/ui/shared/Footer.tsx | 50 +++++++++++++-------------- src/ui/shared/Header.tsx | 12 ++++--- yarn.lock | 33 ++---------------- 6 files changed, 50 insertions(+), 75 deletions(-) diff --git a/src/stories/shared/Footer.stories.tsx b/src/stories/shared/Footer.stories.tsx index 014a7a634..548b3462d 100644 --- a/src/stories/shared/Footer.stories.tsx +++ b/src/stories/shared/Footer.stories.tsx @@ -10,4 +10,7 @@ const { meta, getStory } = getStoryFactory({ export default meta; -export const VueDefault = getStory({}); +export const VueDefault = getStory({ + "apiVersion": "0.3.6", + "webVersion": "1.0.8" +}); diff --git a/src/ui/App.tsx b/src/ui/App.tsx index 261fb18b4..7ccce08d3 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -18,6 +18,9 @@ import { useConst } from "powerhooks/useConst"; import { objectKeys } from "tsafe/objectKeys"; import { useLang } from "ui/i18n"; import CircularProgress from "@mui/material/CircularProgress"; +import { assert } from "tsafe/assert"; + +console.log(process.env); const apiUrl = process.env["REACT_APP_API_URL"] ?? "/api"; @@ -59,7 +62,7 @@ export default function App() { function ContextualizedApp() { const route = useRoute(); - const { userAuthentication } = useCoreFunctions(); + const { userAuthentication, sillApiVersion } = useCoreFunctions(); const headerUserAuthenticationApi = useConst(() => userAuthentication.getIsUserLoggedIn() @@ -111,7 +114,14 @@ function ContextualizedApp() { })()} -