diff --git a/src/app/tools/tankopedia/page.tsx b/src/app/tools/tankopedia/page.tsx index 396777a7e..171243cde 100644 --- a/src/app/tools/tankopedia/page.tsx +++ b/src/app/tools/tankopedia/page.tsx @@ -13,6 +13,7 @@ import { use } from 'react'; import { classIcons } from '../../../components/ClassIcon'; import { Link } from '../../../components/Link'; import PageWrapper from '../../../components/PageWrapper'; +import { ResearchedIcon } from '../../../components/ResearchedIcon'; import { TANK_CLASSES } from '../../../components/Tanks/components/Item/constants'; import { asset } from '../../../core/blitzkit/asset'; import { gameDefinitions } from '../../../core/blitzkit/gameDefinitions'; @@ -30,17 +31,45 @@ export default function Page() { return ( - - - Class + + - + {times(5, (index) => { const tier = (index + 1) as Tier; @@ -60,7 +89,12 @@ export default function Page() { ); })} - + {times(5, (index) => { const tier = (index + 6) as Tier; @@ -82,50 +116,32 @@ export default function Page() { - Type - {TANK_CLASSES.map((tankClass) => { - const Icon = classIcons[tankClass]; - - return ( - - - - ); - })} - - - Nation - - + {awaitedGameDefinitions.nations .slice(0, Math.ceil(awaitedGameDefinitions.nations.length / 2)) .map((nation) => ( - {/* TODO: trim icons */} ))} - + {awaitedGameDefinitions.nations .slice(Math.ceil(awaitedGameDefinitions.nations.length / 2)) .map((nation) => ( @@ -154,15 +175,75 @@ export default function Page() { - Test tanks - - Include - Exclude - Only - + + {TANK_CLASSES.map((tankClass) => { + const Icon = classIcons[tankClass]; + + return ( + + + + ); + })} + + + + + + + + + + + + + + + + + + + + Test tanks + + Include + Exclude + Only + + - + {range(10, 0).map((tierUntyped) => { const tier = tierUntyped as Tier; const tierTanks = awaitedTanksDefinitionsArray diff --git a/src/components/ResearchedIcon.tsx b/src/components/ResearchedIcon.tsx new file mode 100644 index 000000000..e96d52e2a --- /dev/null +++ b/src/components/ResearchedIcon.tsx @@ -0,0 +1,25 @@ +import { ComponentProps } from 'react'; + +export function ResearchedIcon(props: ComponentProps<'svg'>) { + return ( + + + + + + + ); +} diff --git a/src/core/blitzkit/tankDefinitions/index.ts b/src/core/blitzkit/tankDefinitions/index.ts index 55e9d6922..a4dda60f9 100644 --- a/src/core/blitzkit/tankDefinitions/index.ts +++ b/src/core/blitzkit/tankDefinitions/index.ts @@ -197,6 +197,7 @@ export const tankNames = tanksDefinitionsArray.then((tanks) => export type Tier = (typeof TIERS)[number]; +// TODO: DEPRICATE THISuuu export const NATIONS = tanksDefinitionsArray.then((tanks) => { const nations = Array.from( new Set(Object.values(tanks).map((tank) => tank.nation)),