From d5f966c4c2f50a29994901adbc7582f6ac2a38ab Mon Sep 17 00:00:00 2001 From: Harry Andriyan Date: Thu, 14 Jul 2022 17:43:28 +0700 Subject: [PATCH] feat(admin-ui): relayout and remove unused dashboard components --- .../app/routes/Dashboards/DashboardPage.js | 161 +++++++----------- admin-ui/app/routes/Dashboards/styles.js | 6 +- 2 files changed, 61 insertions(+), 106 deletions(-) diff --git a/admin-ui/app/routes/Dashboards/DashboardPage.js b/admin-ui/app/routes/Dashboards/DashboardPage.js index 6b281b4b7..f4bd9afbb 100644 --- a/admin-ui/app/routes/Dashboards/DashboardPage.js +++ b/admin-ui/app/routes/Dashboards/DashboardPage.js @@ -70,7 +70,7 @@ function DashboardPage({ useEffect(() => { let count = 0 - let userOptions = { + const userOptions = { limit: 3, } const interval = () => { @@ -142,7 +142,7 @@ function DashboardPage({ const summaryData = [ { - text: 'OIDC Clinets Count', + text: 'OIDC Clients Count', value: clients?.length, }, { @@ -180,13 +180,9 @@ function DashboardPage({ const StatusCard = () => { return ( - +
@@ -267,6 +263,48 @@ function DashboardPage({ ) } + const SupportCard = () => { + return ( + + +
+ logo +
Gluu Services
+
Community Support
+
FAQ
+
+
+ +
+
WORLD
+
+ WIDE +
+
+ SUPPORT +
+
+
+
+ ) + } + return (
- +

Actives Users & Access Token Stats

@@ -287,66 +325,16 @@ function DashboardPage({ ))}
- + - - - -
-
Infinite Scale
-
Complete Privacy
-
Gluu.com
-
-
-
- - - - logo -
Gluu News
-
-
- - - report -
- Detailed Reports -
-
-
-
-
+ + {!isTabletOrMobile && } +
- +

Access Tokens Graph

{isTabletOrMobile ? ( @@ -425,53 +416,18 @@ function DashboardPage({ )}
- - - -
- logo -
Gluu Services
-
Community Support
-
FAQ
-
-
- -
-
WORLD
-
- WIDE -
-
- SUPPORT -
-
-
-
+
- {isTabletOrMobile && !isMobile && } + {isTabletOrMobile && !isMobile && } */}
- + - {!isTabletOrMobile && }
diff --git a/admin-ui/app/routes/Dashboards/styles.js b/admin-ui/app/routes/Dashboards/styles.js index 228e1a028..2a835eb4b 100644 --- a/admin-ui/app/routes/Dashboards/styles.js +++ b/admin-ui/app/routes/Dashboards/styles.js @@ -156,7 +156,7 @@ const styles = makeStyles(() => ({ }, statusContainer: { borderRadius: 24, - height: 180, + height: 280, minWidth: 320, background: '#FFF', color: '#303641', @@ -205,7 +205,7 @@ const styles = makeStyles(() => ({ paddingBottom: 20, color: '#303641', borderRadius: 20, - height: 370, + height: 430, }, redText: { color: '#F22222', @@ -228,7 +228,7 @@ const styles = makeStyles(() => ({ marginTop: 35, }, desktopChartStyle: { - maxWidth: 760, + maxWidth: '100%', overflowX: 'scroll', overflowY: 'hidden', scrollBehavior: 'smooth',