From ea13b9219d49fcee4e8e022d4b7c862c7d1b7850 Mon Sep 17 00:00:00 2001 From: Fionn Date: Thu, 4 May 2023 20:51:52 +0200 Subject: [PATCH] remove useless comments --- frontend/src/App.tsx | 117 +++++++++++-------------------------------- 1 file changed, 30 insertions(+), 87 deletions(-) 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
+
+
+ + ))} + +