Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | import React from 'react' // ./dashboard const FloorDashboard = React.lazy(() => import ('./views/dashboard/FloorDashboard')) // ./devices const DeviceList = React.lazy(() => import ('./views/devices/DeviceList')) const DeviceAdd = React.lazy(() => import ('./views/devices/DeviceAdd')) const DeviceDetails = React.lazy(() => import ('./views/devices/DeviceDetails')) // ./floorPages const AddMarker = React.lazy(() => import ('./views/floorPages/AddMarker')) const InfoMarker = React.lazy(() => import ('./views/floorPages/InfoMarker')) // ./live data const LiveData = React.lazy(() => import ('./views/thingy52/LiveData')) // add ', startPage:true' to a route that you want as first page const routes = [ { path: '/', exact: true, name: 'Home' }, { path: '/dashboard/FloorDashboard/:floorId/:imgName', name: 'Floor Dashboard', element: FloorDashboard}, { path: '/device/DeviceList', name: 'Device List', element: DeviceList}, { path: '/device/DeviceAdd', name: 'Device Add', element: DeviceAdd}, { path: '/device/DeviceDetails/:macAddr', name: 'Device Update', element: DeviceDetails}, { path: '/floorPages/AddMarker', name: 'Add Marker', element: AddMarker}, { path: '/floorPages/InfoMarker', name: 'Info Marker', element: InfoMarker}, { path: '/thingy52/LiveData', name: 'Live Data', element: LiveData}, ] export default routes |