From 0daf229b56b2d311ef9c0c66cf28c9cdfc2977f7 Mon Sep 17 00:00:00 2001 From: Yann Stepienik Date: Wed, 1 Nov 2023 20:39:29 +0000 Subject: [PATCH] [release] v0.12.0-unstable30 --- .../src/components/tabbedView/tabbedView.jsx | 4 +- .../src/pages/dashboard/components/plot.jsx | 11 +- .../src/pages/dashboard/components/utils.jsx | 42 +++++-- client/src/pages/dashboard/index.jsx | 114 +++++++++--------- client/src/pages/dashboard/proxyDashboard.jsx | 30 +++++ .../src/pages/dashboard/resourceDashboard.jsx | 59 +++++++++ package.json | 2 +- src/metrics/middleware.go | 93 ++++++++++++++ src/metrics/system.go | 1 + src/proxy/routeTo.go | 3 +- src/proxy/routerGen.go | 3 + src/utils/middleware.go | 2 +- 12 files changed, 285 insertions(+), 79 deletions(-) create mode 100644 client/src/pages/dashboard/proxyDashboard.jsx create mode 100644 client/src/pages/dashboard/resourceDashboard.jsx create mode 100644 src/metrics/middleware.go diff --git a/client/src/components/tabbedView/tabbedView.jsx b/client/src/components/tabbedView/tabbedView.jsx index a7fe856..8aee043 100644 --- a/client/src/components/tabbedView/tabbedView.jsx +++ b/client/src/components/tabbedView/tabbedView.jsx @@ -37,7 +37,7 @@ const a11yProps = (index) => { }; }; -const PrettyTabbedView = ({ tabs, isLoading, currentTab, setCurrentTab }) => { +const PrettyTabbedView = ({ tabs, isLoading, currentTab, setCurrentTab, fullwidth }) => { const [value, setValue] = useState(0); const isMobile = useMediaQuery((theme) => theme.breakpoints.down('md')); @@ -55,7 +55,7 @@ const PrettyTabbedView = ({ tabs, isLoading, currentTab, setCurrentTab }) => { }; return ( - + {(isMobile && !currentTab) ? (