From 5027cf6d8f9716ef76b8387f454c63ee742878e6 Mon Sep 17 00:00:00 2001 From: Manuel Calavera Date: Mon, 8 Jul 2019 16:56:00 -0700 Subject: [PATCH] feat: endpoint config and validators page --- src/AppV2.js | 13 +++ src/index.js | 12 ++- src/v2/api/socket.js | 5 +- src/v2/assets/icons/question.svg | 3 + .../NetworkOverview/NodesMap/index.jsx | 21 ++-- src/v2/components/Footer/Newsletter/styles.js | 3 + src/v2/components/Footer/assets/bg_sm.svg | 24 +++++ src/v2/components/Footer/index.jsx | 12 ++- src/v2/components/Footer/styles.js | 17 +++ src/v2/components/Header/index.jsx | 25 ++++- src/v2/components/Header/styles.js | 1 + src/v2/components/NavBar/index.jsx | 8 +- src/v2/components/NavBar/styles.js | 6 ++ src/v2/components/Social/styles.js | 8 ++ src/v2/components/UI/StatCard/index.jsx | 1 + src/v2/components/Validators/All/index.jsx | 14 +++ src/v2/components/Validators/Table/index.jsx | 100 ++++++++++++++++++ src/v2/components/Validators/Table/styles.js | 88 +++++++++++++++ .../Validators/ValidatorsMap/index.jsx | 98 +++++++++++++++++ .../Validators/ValidatorsMap/styles.js | 28 +++++ src/v2/components/Validators/index.jsx | 95 +++++++++++++++++ src/v2/components/Validators/styles.js | 32 ++++++ src/v2/stores/nodes.js | 2 - src/v2/stores/socket.js | 16 +++ 24 files changed, 604 insertions(+), 28 deletions(-) create mode 100644 src/v2/assets/icons/question.svg create mode 100644 src/v2/components/Footer/assets/bg_sm.svg create mode 100644 src/v2/components/Validators/All/index.jsx create mode 100644 src/v2/components/Validators/Table/index.jsx create mode 100644 src/v2/components/Validators/Table/styles.js create mode 100644 src/v2/components/Validators/ValidatorsMap/index.jsx create mode 100644 src/v2/components/Validators/ValidatorsMap/styles.js create mode 100644 src/v2/components/Validators/index.jsx create mode 100644 src/v2/components/Validators/styles.js diff --git a/src/AppV2.js b/src/AppV2.js index fef4402b..401ae04e 100644 --- a/src/AppV2.js +++ b/src/AppV2.js @@ -16,6 +16,8 @@ try { } const Dashboard = lazy(() => import('v2/components/Dashboard')); +const Validators = lazy(() => import('v2/components/Validators')); +const ValidatorsAll = lazy(() => import('v2/components/Validators/All')); const useStyles = makeStyles(theme => ({ root: { @@ -26,6 +28,11 @@ const useStyles = makeStyles(theme => ({ flexGrow: 1, marginLeft: 50, padding: '50px 24px 0 24px', + maxWidth: '100%', + [theme.breakpoints.down('sm')]: { + marginLeft: 0, + padding: 0, + }, }, toolbar: { display: 'flex', @@ -49,6 +56,12 @@ const App = () => { Loading...}> + +