From d7243438ba4ab7b24e7fc25ef72bf5e8e5cede9d Mon Sep 17 00:00:00 2001 From: dhaval055 Date: Mon, 13 Jun 2022 15:16:35 +0530 Subject: [PATCH] added initial dashboard files --- frontend/src/App.jsx | 12 ++ frontend/src/views/TempDashboard.jsx | 298 +++++++++++++++++++++++++++ 2 files changed, 310 insertions(+) create mode 100644 frontend/src/views/TempDashboard.jsx diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index a16a3302..d152d9f2 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -40,6 +40,7 @@ import { isMobile } from "react-device-detect"; import detectEthereumProvider from "@metamask/detect-provider"; import Drift from "react-driftjs"; +import DashboardPage from "./views/TempDashboard.jsx"; // Production - backend proxy forwarding in nginx var globalUrl = window.location.origin; @@ -643,6 +644,17 @@ const App = (message, props) => { {...props} /> } + /> + + } /> ({ + formControl: { + margin: theme.spacing(1), + minWidth: 120, + }, + selectEmpty: { + marginTop: theme.spacing(2), + }, +})); + + +const useStyles = makeStyles({ + table: { + minWidth: 650, + }, + root: { + minWidth: 275, + }, + bullet: { + display: "inline-block", + margin: "0 2px", + transform: "scale(0.8)", + }, + title: { + fontSize: 14, + }, + pos: { + marginBottom: 12, + }, +}); + +function createData(name, calories, fat, carbs, protein) { + return { name, calories, fat, carbs, protein }; +} + +const rows = [ + createData("Frozen yoghurt", 159, 6.0, 24, 4.0), + createData("Ice cream sandwich", 237, 9.0, 37, 4.3), + createData("Eclair", 262, 16.0, 24, 6.0), + createData("Cupcake", 305, 3.7, 67, 4.3), + createData("Gingerbread", 356, 16.0, 49, 3.9), +]; + +const DashboardPage = () => { + const classes = useStyles(); + const classes1 = useStyles1(); + + const [age, setAge] = React.useState(0); + + const handleChange = (event) => { + setAge(event.target.value); + + }; + + return ( + + + +
+ + Dashboard + +
+ + Organization + + +
+
+
+ +
+ + + + + + Total workflows executions + + + 456 + + + + + + + + + Total Apps executions + + + 587 + + + + + + + + + Total failed executions + + + 999 + + + + + + + + + + + } + series={} + /> + + + + + + + + + Dessert (100g serving) + Calories + Fat (g) + Carbs (g) + Protein (g) + + + + {rows.map((row) => ( + + + {row.name} + + {row.calories} + {row.fat} + {row.carbs} + {row.protein} + + ))} + +
+
+
+
+
+ ); +}; + +export default DashboardPage;