feat: player stats card

This commit is contained in:
TrèsAbhi committed 2024-06-16 17:47:02 -05:00
1 parent 136805067f
commit 83527fed7d
3 files changed
+19 -5

No files matched your search

+5 -4
View File
@@ -1,12 +1,13 @@
'use client';
import { Box, Flex } from '@radix-ui/themes';
import { Flex } from '@radix-ui/themes';
import { Ad, AdType } from '../components/Ad';
import { AdMidSectionResponsive } from '../components/AdMidSectionResponsive';
import {
compareTool,
discordTool,
moreTool,
playerStatsTool,
ratingTool,
sessionTool,
tankopediaTool,
@@ -64,12 +65,12 @@ export default function Page() {
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
<ToolCard tool={compareTool} />
<ToolCard tool={sessionTool} />
<ToolCard tool={playerStatsTool} />
</Flex>
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
<ToolCard tool={sessionTool} />
<ToolCard tool={ratingTool} />
<ToolCard tool={discordTool} />
</Flex>
{!exempt && (
@@ -85,8 +86,8 @@ export default function Page() {
)}
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
<ToolCard tool={discordTool} />
<ToolCard tool={moreTool} />
<Box flexGrow="1" flexBasis="0" />
</Flex>
</Flex>
+13
View File
@@ -94,10 +94,23 @@ export const moreTool: Tool = {
},
};
export const playerStatsTool: Tool = {
id: 'player-stats',
title: 'Player stats',
description: 'Periodical player statistics',
pageDescription: 'Periodical player statistics in World of Tanks Blitz',
button: {
text: 'Lookup player',
color: 'blue',
},
image: 'YelSOfT',
};
export const TOOLS: Tool[] = [
tankopediaTool,
ratingTool,
compareTool,
playerStatsTool,
sessionTool,
discordTool,
moreTool,
+1 -1
View File
@@ -43,7 +43,7 @@ async function manageQueue() {
} else {
if (RETRY_ERRORS.includes(data.error.message)) {
console.log(
`Encountered retry-able error ${data.error}, putting "${request.url}" back in queue...`,
`Encountered retry-able error ${data.error.code} ${data.error.message}, putting "${request.url}" back in queue...`,
);
retryAbleBlitzFetchEvent.emit(undefined);