From f686c8cffb06faa6f66c0944f06dfe392de1ce31 Mon Sep 17 00:00:00 2001 From: nouffer Date: Mon, 12 Jul 2021 09:54:25 +0530 Subject: [PATCH] update empty dashboard --- src/containers/_nav.js | 2 +- src/routes.js | 12 +--- src/views/dashboard/Dashboard.js | 103 ------------------------------- 3 files changed, 2 insertions(+), 115 deletions(-) diff --git a/src/containers/_nav.js b/src/containers/_nav.js index 59f3909..aad93a9 100644 --- a/src/containers/_nav.js +++ b/src/containers/_nav.js @@ -15,7 +15,7 @@ const _nav = [{ { _tag: 'CSidebarNavItem', name: 'Download reports', - to: '/boxdisplacement', + to: '/reports', icon: 'cil-drop', }, // { diff --git a/src/routes.js b/src/routes.js index 51abd5f..53fb77f 100644 --- a/src/routes.js +++ b/src/routes.js @@ -2,22 +2,12 @@ import React from 'react'; const Dashboard = React.lazy(() => import('./views/dashboard/Dashboard')); const BoxDisplacemen = React.lazy(() => import('./views/BoxDisplacemen/index')); -const CheckSheet = React.lazy(() => import('./views/CheckSheet/index')); -const Injection = React.lazy(() => import('./views/Injection/index')); -const MachineControl = React.lazy(() => import('./views/MachineControl/index')); -const Measurement = React.lazy(() => import('./views/Measurement/index')); -const MachineSheet = React.lazy(() => import('./views/MachineSheet/index')); const routes = [ { path: '/', exact: true, name: 'Home' }, { path: '/dashboard', name: 'Dashboard', component: Dashboard }, - { path: '/boxdisplacement', exact: true, name: 'Box Displacemen', component: BoxDisplacemen }, - { path: '/checksheet', exact: true, name: 'Check Sheet', component: CheckSheet }, - { path: '/injection', exact: true, name: 'Injection', component: Injection }, - { path: '/machinecontrol', exact: true, name: 'Machine Control', component: MachineControl }, - { path: '/measurement', exact: true, name: 'Measurement', component: Measurement }, - { path: '/machinesheet', exact: true, name: 'Machine Sheet', component: MachineSheet }, + { path: '/reports', exact: true, name: 'Reports', component: BoxDisplacemen }, ]; export default routes; diff --git a/src/views/dashboard/Dashboard.js b/src/views/dashboard/Dashboard.js index 4a8322b..234df9f 100644 --- a/src/views/dashboard/Dashboard.js +++ b/src/views/dashboard/Dashboard.js @@ -1,112 +1,9 @@ import React, { lazy } from 'react' -import { - CBadge, - CButton, - CButtonGroup, - CCard, - CCardBody, - CCardFooter, - CCardHeader, - CCol, - CProgress, - CRow, - CCallout -} from '@coreui/react' import CIcon from '@coreui/icons-react' -import MainChartExample from '../charts/MainChartExample.js' - -const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js')) -const WidgetsBrand = lazy(() => import('../widgets/WidgetsBrand.js')) - const Dashboard = () => { return ( <> - - - - - -

Traffic

-
November 2017
-
- - - - - - { - ['Day', 'Month', 'Year'].map(value => ( - - {value} - - )) - } - - -
- -
- - - -
Visits
- 29.703 Users (40%) - -
- -
Unique
- 24.093 Users (20%) - -
- -
Pageviews
- 78.706 Views (60%) - -
- -
New Users
- 22.123 Users (80%) - -
- -
Bounce Rate
- Average Rate (40.15%) - -
-
-
-
- )