mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: player stats card
This commit is contained in:
1 parent
136805067f
commit
83527fed7d
3 files changed
+19
-5
No files matched your search
+5
-4
@@ -1,12 +1,13 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { Box, Flex } from '@radix-ui/themes';
|
import { Flex } from '@radix-ui/themes';
|
||||||
import { Ad, AdType } from '../components/Ad';
|
import { Ad, AdType } from '../components/Ad';
|
||||||
import { AdMidSectionResponsive } from '../components/AdMidSectionResponsive';
|
import { AdMidSectionResponsive } from '../components/AdMidSectionResponsive';
|
||||||
import {
|
import {
|
||||||
compareTool,
|
compareTool,
|
||||||
discordTool,
|
discordTool,
|
||||||
moreTool,
|
moreTool,
|
||||||
|
playerStatsTool,
|
||||||
ratingTool,
|
ratingTool,
|
||||||
sessionTool,
|
sessionTool,
|
||||||
tankopediaTool,
|
tankopediaTool,
|
||||||
@@ -64,12 +65,12 @@ export default function Page() {
|
|||||||
|
|
||||||
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
||||||
<ToolCard tool={compareTool} />
|
<ToolCard tool={compareTool} />
|
||||||
<ToolCard tool={sessionTool} />
|
<ToolCard tool={playerStatsTool} />
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
||||||
|
<ToolCard tool={sessionTool} />
|
||||||
<ToolCard tool={ratingTool} />
|
<ToolCard tool={ratingTool} />
|
||||||
<ToolCard tool={discordTool} />
|
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{!exempt && (
|
{!exempt && (
|
||||||
@@ -85,8 +86,8 @@ export default function Page() {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
||||||
|
<ToolCard tool={discordTool} />
|
||||||
<ToolCard tool={moreTool} />
|
<ToolCard tool={moreTool} />
|
||||||
<Box flexGrow="1" flexBasis="0" />
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
|
|||||||
@@ -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[] = [
|
export const TOOLS: Tool[] = [
|
||||||
tankopediaTool,
|
tankopediaTool,
|
||||||
ratingTool,
|
ratingTool,
|
||||||
compareTool,
|
compareTool,
|
||||||
|
playerStatsTool,
|
||||||
sessionTool,
|
sessionTool,
|
||||||
discordTool,
|
discordTool,
|
||||||
moreTool,
|
moreTool,
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ async function manageQueue() {
|
|||||||
} else {
|
} else {
|
||||||
if (RETRY_ERRORS.includes(data.error.message)) {
|
if (RETRY_ERRORS.includes(data.error.message)) {
|
||||||
console.log(
|
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);
|
retryAbleBlitzFetchEvent.emit(undefined);
|
||||||
|
|||||||
Reference in new issue
Block a user