diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index c6ac1c4..3c33839 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -123,93 +123,36 @@ function App() { - {/* {dots.map((dot, index) => - {dot.label} - )} */} - {Object.entries(wxData?.data || {}).map(([fix, data], idx) => ( - <> - {/* - - - - - - - - {Object.entries(data.levels).map(([lvl, lvlData], lvlIdx) => ( - - - - - - ))} - -
{fix}
LvlTemp/KWind
{lvl}{Math.round(Number(lvlData['T(K)']))}{lvlData.windhdg}° / {lvlData.windspeed}kts
-
-
*/} - ${fix}`, className: 'bg-none text-warning' })} - > - - - - - - - - {Object.entries(data.levels).map(([lvl, lvlData], lvlIdx) => ( - - - - - - ))} - -
{fix}
LvlTemp/KWind
{lvl}{Math.round(Number(lvlData['T(K)']))}{lvlData.windhdg}° / {lvlData.windspeed}kts
-
-
- - ))} -
-
- - - - {/* {populatedRoutes.filter(r => !!r).map((populatedRoute, idx) => { - if (!populatedRoute) { - return null; - } - - const line: [number, number][] = []; - const dots: { pos: [number, number], color: string, label: string }[] = []; - - if (populatedRoute.adep) { - line.push([populatedRoute.adep.lat, populatedRoute.adep.lon]); - dots.push({ pos: [populatedRoute.adep.lat, populatedRoute.adep.lon], color: 'red', label: `${populatedRoute.adep.icao} / ${populatedRoute.adep.name}` }); - } - - for (const point of populatedRoute.points) { - line.push([point.lat, point.lon]); - dots.push({ pos: [point.lat, point.lon], color: 'blue', label: point.identifier }); - } - - if (populatedRoute.ades) { - line.push([populatedRoute.ades.lat, populatedRoute.ades.lon]); - dots.push({ pos: [populatedRoute.ades.lat, populatedRoute.ades.lon], color: 'green', label: [populatedRoute.ades.icao, populatedRoute.ades.name].join(' ') }); - } - - return - - - {dots.map((dot, index) => - {dot.label} - )} - - ; - })} */} + {Object.entries(wxData?.data || {}).map(([fix, data]) => ( + <> + ${fix}`, className: 'bg-none text-warning' })} + > + + + + + + + + {Object.entries(data.levels).map(([lvl, lvlData], lvlIdx) => ( + + + + + + ))} + +
{fix}
LvlTemp/KWind
{lvl}{Math.round(Number(lvlData['T(K)']))}{lvlData.windhdg}° / {lvlData.windspeed}kts
+
+
+ + ))} + +