mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: test tank filters
This commit is contained in:
1 parent
2ce083222e
commit
604e751bf4
6 files changed
+43
-5
No files matched your search
@@ -3,6 +3,7 @@ import { TankType, TreeTypeString } from '../../../components/Tanks';
|
||||
import { asset } from '../asset';
|
||||
|
||||
export interface TankDefinition {
|
||||
id: number;
|
||||
nation: string;
|
||||
name: string;
|
||||
name_short?: string;
|
||||
@@ -15,7 +16,7 @@ export interface TankDefinition {
|
||||
export type TankDefinitions = Record<number, TankDefinition>;
|
||||
|
||||
export const tankDefinitions = fetch(asset('definitions/tanks.json'), {
|
||||
cache: 'no-store',
|
||||
cache: 'no-cache',
|
||||
}).then(async (response) => response.json() as Promise<TankDefinitions>);
|
||||
|
||||
const entries = new Promise<TankDefinition[]>(async (resolve) => {
|
||||
|
||||
Reference in new issue
Block a user