This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Tyler Whitman <twhit093@gmail.com>
- Loading branch information
1 parent
e4a642c
commit e0a70af
Showing
33 changed files
with
540 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { useEffect } from 'react' | ||
import InfoBox from '../InfoBox' | ||
import TabNavbar, { TabPane } from '../../Nav/TabNavbar' | ||
import StatisticsPane from './StatisticsPane' | ||
import MakersPane from '../Common/MakersPane' | ||
import TopCitiesPane from './TopCitiesPane' | ||
import useMapLayer from '../../../hooks/useMapLayer' | ||
|
||
const IotInfoBox = () => { | ||
const { setMapLayer } = useMapLayer() | ||
|
||
useEffect(() => { | ||
setMapLayer('default') | ||
}, [setMapLayer]) | ||
|
||
return ( | ||
<InfoBox title="IOT (Coming Soon)" metaTitle="IOT"> | ||
<TabNavbar htmlTitleRoot="IOT"> | ||
<TabPane title="Statistics" key="statistics"> | ||
<StatisticsPane /> | ||
</TabPane> | ||
<TabPane title="Makers" key="makers" path="makers"> | ||
<MakersPane /> | ||
</TabPane> | ||
<TabPane title="Cities" key="latest" path="cities"> | ||
<TopCitiesPane /> | ||
</TabPane> | ||
</TabNavbar> | ||
</InfoBox> | ||
) | ||
} | ||
|
||
export default IotInfoBox |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { useEffect } from 'react' | ||
import InfoBox from '../InfoBox' | ||
import TabNavbar, { TabPane } from '../../Nav/TabNavbar' | ||
import StatisticsPane from './StatisticsPane' | ||
import useMapLayer from '../../../hooks/useMapLayer' | ||
import MakersPane from '../Common/MakersPane' | ||
|
||
const MobileInfoBox = () => { | ||
const { setMapLayer } = useMapLayer() | ||
|
||
useEffect(() => { | ||
setMapLayer('cbrs') | ||
}, [setMapLayer]) | ||
|
||
return ( | ||
<InfoBox title="MOBILE" metaTitle="MOBILE"> | ||
<TabNavbar htmlTitleRoot="MOBILE"> | ||
<TabPane title="Statistics" key="statistics"> | ||
<StatisticsPane /> | ||
</TabPane> | ||
<TabPane title="Makers" key="makers" path="makers"> | ||
<MakersPane type="5g" /> | ||
</TabPane> | ||
</TabNavbar> | ||
</InfoBox> | ||
) | ||
} | ||
|
||
export default MobileInfoBox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import TrendWidget from '../../Widgets/TrendWidget' | ||
import useApi from '../../../hooks/useApi' | ||
import InfoBoxPaneContainer from '../Common/InfoBoxPaneContainer' | ||
import StatWidget from '../../Widgets/StatWidget' | ||
|
||
const StatisticsPane = () => { | ||
const { data: stats } = useApi('/metrics/cells') | ||
|
||
return ( | ||
<InfoBoxPaneContainer> | ||
<TrendWidget title="5G Radios" series={stats?.count} isLoading={!stats} /> | ||
<StatWidget | ||
title="Indoor Radios" | ||
series={stats?.indoorCount} | ||
isLoading={!stats} | ||
/> | ||
<StatWidget | ||
title="Outdoor Radios" | ||
series={stats?.outdoorCount} | ||
isLoading={!stats} | ||
/> | ||
<StatWidget | ||
title="Cities" | ||
series={stats?.citiesCount} | ||
isLoading={!stats} | ||
/> | ||
<StatWidget | ||
title="States" | ||
series={stats?.statesCount} | ||
isLoading={!stats} | ||
/> | ||
</InfoBoxPaneContainer> | ||
) | ||
} | ||
|
||
export default StatisticsPane |
Oops, something went wrong.