feat: tier sorting

This commit is contained in:
TrèsAbhi committed 2026-04-27 19:34:06 -05:00
1 parent b4936bf13b
commit 385cc3b6d2
8 files changed
+64 -7

No files matched your search

@@ -4,6 +4,7 @@ import { Avatars } from "@protos/blitzkit/avatars";
import { PopularTanks } from "@protos/blitzkit/popular_tanks";
import { TankList } from "@protos/blitzkit/tank_list";
import { Tanks } from "@protos/blitzkit/tanks";
import { Tiers } from "@protos/blitzkit/tiers";
import { AbstractAPI, Cache } from "./abstract";
const rejected = Promise.reject("Not implemented on client");
@@ -30,6 +31,11 @@ export class ClientAPI extends AbstractAPI {
return fetchPB("/api/tanks/popular.pb", PopularTanks);
}
@Cache()
tiers() {
return fetchPB("/api/tiers.pb", Tiers);
}
@Cache()
async strings(locale: string) {
const response = await fetch(`/api/strings/${locale}.json`);