mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: provide clan_id
This commit is contained in:
1 parent
630a37025e
commit
db846c0680
3 files changed
+2
-18
No files matched your search
@@ -127,17 +127,3 @@ export const ownedTanksCommand: CommandRegistry = {
|
|||||||
|
|
||||||
autocomplete: autocompleteUsername,
|
autocomplete: autocompleteUsername,
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: make this work in the future
|
|
||||||
// console.log('Caching tank images...');
|
|
||||||
// TANKS.then((tanks) =>
|
|
||||||
// jsxToSvg(
|
|
||||||
// <div style={{ display: 'flex' }}>
|
|
||||||
// {tanks.map(({ images, tank_id }) => {
|
|
||||||
// return (
|
|
||||||
// images.normal && <img key={tank_id} src={images.normal} width={0} />
|
|
||||||
// );
|
|
||||||
// })}
|
|
||||||
// </div>,
|
|
||||||
// ),
|
|
||||||
// ).then(() => console.log('Cached tank images'));
|
|
||||||
@@ -1,12 +1,10 @@
|
|||||||
import { AllStats, SupplementaryStats } from '../../core/blitz/getAccountInfo';
|
import { AllStats, SupplementaryStats } from '../../core/blitz/getAccountInfo';
|
||||||
import getWN8Percentile from '../../core/statistics/getWN8Percentile';
|
|
||||||
import isNumber from '../../core/math/isNumber';
|
import isNumber from '../../core/math/isNumber';
|
||||||
|
import getWN8Percentile from '../../core/statistics/getWN8Percentile';
|
||||||
import { Card } from './components/Card';
|
import { Card } from './components/Card';
|
||||||
import { Root } from './components/Root';
|
import { Root } from './components/Root';
|
||||||
import { Row } from './components/Row';
|
import { Row } from './components/Row';
|
||||||
|
|
||||||
// TODO: remove the .js endings
|
|
||||||
|
|
||||||
export interface GenericAllStatsProps {
|
export interface GenericAllStatsProps {
|
||||||
stats: AllStats;
|
stats: AllStats;
|
||||||
supplementaryStats?: SupplementaryStats;
|
supplementaryStats?: SupplementaryStats;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export async function getClanAccountInfo<
|
|||||||
: IndividualClanAccountInfo[],
|
: IndividualClanAccountInfo[],
|
||||||
>(region: Region, ids: Ids, extra?: string[]) {
|
>(region: Region, ids: Ids, extra?: string[]) {
|
||||||
const object = await fetchBlitz<ClanAccountInfo>(
|
const object = await fetchBlitz<ClanAccountInfo>(
|
||||||
`https://api.wotblitz.${region}/wotb/clans/info/?application_id=${WARGAMING_APPLICATION_ID}&account_id=${normalizeIds(
|
`https://api.wotblitz.${region}/wotb/clans/info/?application_id=${WARGAMING_APPLICATION_ID}&clan_id=${normalizeIds(
|
||||||
ids,
|
ids,
|
||||||
)}${normalizeExtra(extra)}`,
|
)}${normalizeExtra(extra)}`,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user