2023-08-01 15:38:22 +05:30
|
|
|
import DashboardOutlinedIcon from '@mui/icons-material/DashboardOutlined';
|
|
|
|
|
import AppsOutlinedIcon from '@mui/icons-material/AppsOutlined';
|
|
|
|
|
|
|
|
|
|
import TestAnalytics from "../components/TestAnalytics";
|
|
|
|
|
import HomePage from '../components/HomePage';
|
|
|
|
|
import Devices from '../components/Devices';
|
2023-12-03 11:51:12 +05:30
|
|
|
import { Download, FactCheck } from '@mui/icons-material';
|
2023-08-23 20:57:33 +05:30
|
|
|
import ExportData from '../components/ExportData';
|
2023-08-28 17:54:20 +05:30
|
|
|
import Registration from '../components/Registration';
|
2023-12-03 11:51:12 +05:30
|
|
|
import { FaAndroid, FaArrowCircleLeft, FaBezierCurve, FaCheck, FaFlask, FaGolfBall, FaPhone, FaSearch, FaUser } from 'react-icons/fa';
|
2023-09-25 01:47:27 +05:30
|
|
|
import AppInstallation from '../components/AppInstallation';
|
2023-11-09 07:46:45 +05:30
|
|
|
import Samples from '../components/Samples';
|
2023-12-03 11:51:12 +05:30
|
|
|
import Precision from '../components/Precision';
|
|
|
|
|
import Accuracy from '../components/Accuracy';
|
|
|
|
|
import CurveFit from '../components/CurveFit';
|
2023-08-01 15:38:22 +05:30
|
|
|
|
|
|
|
|
const appRoutes = [
|
|
|
|
|
{
|
|
|
|
|
index: true,
|
|
|
|
|
element: <HomePage />,
|
|
|
|
|
state: "home"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/analytics",
|
|
|
|
|
element: <TestAnalytics />,
|
|
|
|
|
state: "analytics",
|
|
|
|
|
sidebarProps: {
|
|
|
|
|
displayText: "Analytics",
|
|
|
|
|
icon: <DashboardOutlinedIcon />
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/tests/insights",
|
|
|
|
|
element: <Devices />,
|
|
|
|
|
state: "insights",
|
|
|
|
|
sidebarProps: {
|
|
|
|
|
displayText: "Insights",
|
|
|
|
|
icon: <AppsOutlinedIcon />
|
|
|
|
|
}
|
2023-08-23 20:57:33 +05:30
|
|
|
},
|
|
|
|
|
{
|
2023-08-28 17:54:20 +05:30
|
|
|
path: "/downloaddata",
|
2023-08-23 20:57:33 +05:30
|
|
|
element: <ExportData />,
|
2023-08-28 17:54:20 +05:30
|
|
|
state: "downloaddata",
|
2023-08-23 20:57:33 +05:30
|
|
|
sidebarProps: {
|
|
|
|
|
displayText: "Data Download",
|
|
|
|
|
icon: <Download />
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-28 17:54:20 +05:30
|
|
|
{
|
|
|
|
|
path: "/registration",
|
|
|
|
|
element: <Registration />,
|
|
|
|
|
state: "registration",
|
|
|
|
|
sidebarProps: {
|
|
|
|
|
displayText: "Registration",
|
|
|
|
|
icon: <FaUser />
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-09-25 01:47:27 +05:30
|
|
|
{
|
|
|
|
|
path: "/appinstallation",
|
|
|
|
|
element: <AppInstallation />,
|
|
|
|
|
state: "appinstallation",
|
|
|
|
|
sidebarProps: {
|
|
|
|
|
displayText: "App Installation",
|
|
|
|
|
icon: <FaAndroid />
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-09 07:46:45 +05:30
|
|
|
{
|
|
|
|
|
path: "/samples",
|
|
|
|
|
element: <Samples />,
|
|
|
|
|
state: "Samples",
|
|
|
|
|
sidebarProps: {
|
|
|
|
|
displayText: "Samples",
|
|
|
|
|
icon: <FaFlask />
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-12-03 11:51:12 +05:30
|
|
|
{
|
|
|
|
|
path: "/precision",
|
|
|
|
|
element: <Precision />,
|
|
|
|
|
state: "precision",
|
|
|
|
|
sidebarProps: {
|
|
|
|
|
displayText: "Precision",
|
|
|
|
|
icon: <FaCheck />
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/accuracy",
|
|
|
|
|
element: <Accuracy />,
|
|
|
|
|
state: "accuracy",
|
|
|
|
|
sidebarProps: {
|
|
|
|
|
displayText: "Accuracy",
|
|
|
|
|
icon: <FaGolfBall />
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/curvefit",
|
|
|
|
|
element: <CurveFit />,
|
|
|
|
|
state: "curvefit",
|
|
|
|
|
sidebarProps: {
|
|
|
|
|
displayText: "Curve Fit",
|
|
|
|
|
icon: <FaBezierCurve />
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-01 15:38:22 +05:30
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export default appRoutes;
|