mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
compile tank search page
This commit is contained in:
1 parent
d8f6a55ee4
commit
558a02b6ae
17 files changed
+54
-48
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { isTankCompatible } from "@blitzkit/core";
|
||||
import type { TankDefinition } from "@blitzkit/protos";
|
||||
import { times } from "lodash-es";
|
||||
import { api } from "../../api/dynamic";
|
||||
import { isTankCompatible } from "../../hooks/useTankCompatibility";
|
||||
import type { TankFilters } from "../../stores/tankFilters";
|
||||
|
||||
const SHELLS = times(3, (index) => index);
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { getTankStats, idToRegion, TankDefinition } from "@blitzkit/core";
|
||||
import { getTankStats, idToRegion } from "@blitzkit/core";
|
||||
import type { TankDefinition } from "@blitzkit/protos";
|
||||
import { TankFilters } from "../../stores/tankFilters";
|
||||
import { filterTank } from "./filterTank";
|
||||
|
||||
export async function filterTanks(
|
||||
filters: TankFilters,
|
||||
tanks: TankDefinition[],
|
||||
player?: number
|
||||
player?: number,
|
||||
) {
|
||||
const filtered: TankDefinition[] = [];
|
||||
let owned: number[] | undefined;
|
||||
|
||||
Reference in new issue
Block a user