mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Merge branch 'main' into dev
This commit is contained in:
commit
66d63d5c60
10 files changed
+44
-19
No files matched your search
@@ -2,8 +2,7 @@ name: Website
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: main
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
files:
|
files:
|
||||||
- source: /packages/core/lang/en-US.json
|
- source: /packages/core/lang/en.json
|
||||||
translation: /%original_path%/%locale%.json
|
translation: /%original_path%/%locale%.json
|
||||||
@@ -5,6 +5,7 @@ BlitzKit is a one man band **TrèsAbhi** but I am far from solo.
|
|||||||
| Role | People |
|
| Role | People |
|
||||||
| ------------------------------ | ------------------------------ |
|
| ------------------------------ | ------------------------------ |
|
||||||
| Bot verification | S0AP |
|
| Bot verification | S0AP |
|
||||||
|
| General testing | Prince_NA |
|
||||||
| Bot advertisement platform | S0AP |
|
| Bot advertisement platform | S0AP |
|
||||||
| Bot rendering pipeline | Vovko |
|
| Bot rendering pipeline | Vovko |
|
||||||
| Game asset decompression | Maddox |
|
| Game asset decompression | Maddox |
|
||||||
@@ -12,7 +13,7 @@ BlitzKit is a one man band **TrèsAbhi** but I am far from solo.
|
|||||||
| Game file layout | Aeson |
|
| Game file layout | Aeson |
|
||||||
| 3-caliber rule edge cases | Minitelrose, ChickenMan7777 |
|
| 3-caliber rule edge cases | Minitelrose, ChickenMan7777 |
|
||||||
| Embed UX | \_34, HisRoyalFatness, Synx |
|
| Embed UX | \_34, HisRoyalFatness, Synx |
|
||||||
| Tankopedia pre-release testing | [OPTML], Aeson, \_34 |
|
| Tankopedia pre-release testing | [OPTML], Aeson, \_34, xkdkw |
|
||||||
| Website advertisement platform | Aeson |
|
| Website advertisement platform | Aeson |
|
||||||
| Compare pre-release testing | [OPTML] |
|
| Compare pre-release testing | [OPTML] |
|
||||||
| Redacted | GonnaHetzMe |
|
| Redacted | GonnaHetzMe |
|
||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
type AccountListItem,
|
type AccountListItem,
|
||||||
type AccountListWithServer,
|
type AccountListWithServer,
|
||||||
} from '@blitzkit/core';
|
} from '@blitzkit/core';
|
||||||
import strings from '@blitzkit/core/lang/en-US.json';
|
import strings from '@blitzkit/core/lang/en.json';
|
||||||
import { CaretLeftIcon, Link2Icon, PersonIcon } from '@radix-ui/react-icons';
|
import { CaretLeftIcon, Link2Icon, PersonIcon } from '@radix-ui/react-icons';
|
||||||
import {
|
import {
|
||||||
Badge,
|
Badge,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
sumCompositeStats,
|
sumCompositeStats,
|
||||||
type IndividualTankStats,
|
type IndividualTankStats,
|
||||||
} from '@blitzkit/core';
|
} from '@blitzkit/core';
|
||||||
import strings from '@blitzkit/core/lang/en-US.json';
|
import strings from '@blitzkit/core/lang/en.json';
|
||||||
import { ReloadIcon } from '@radix-ui/react-icons';
|
import { ReloadIcon } from '@radix-ui/react-icons';
|
||||||
import { ContextMenu } from '@radix-ui/themes';
|
import { ContextMenu } from '@radix-ui/themes';
|
||||||
import { useEffect, useMemo, useState } from 'react';
|
import { useEffect, useMemo, useState } from 'react';
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import packageJson from '../../../../package.json';
|
|||||||
import { getStrings } from '../core/i18n/getStrings';
|
import { getStrings } from '../core/i18n/getStrings';
|
||||||
|
|
||||||
const gameDefinitions = await fetchGameDefinitions();
|
const gameDefinitions = await fetchGameDefinitions();
|
||||||
|
const PUBLIC_ASSET_BRANCH = assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH);
|
||||||
const { locale } = Astro.params;
|
const { locale } = Astro.params;
|
||||||
const strings = getStrings(locale);
|
const strings = getStrings(locale);
|
||||||
---
|
---
|
||||||
@@ -122,7 +123,15 @@ const strings = getStrings(locale);
|
|||||||
<Flex gap="5" display={{ initial: 'flex', sm: 'none' }}>
|
<Flex gap="5" display={{ initial: 'flex', sm: 'none' }}>
|
||||||
<Flex direction="column" justify="between" align="end">
|
<Flex direction="column" justify="between" align="end">
|
||||||
<Text size="2" color="gray">BlitzKit</Text>
|
<Text size="2" color="gray">BlitzKit</Text>
|
||||||
<Text size="2" color="gray">WoT Blitz</Text>
|
|
||||||
|
{
|
||||||
|
PUBLIC_ASSET_BRANCH !== 'opentest' && (
|
||||||
|
<Text size="2" color="gray">
|
||||||
|
WoT Blitz
|
||||||
|
</Text>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
<Text size="2" color="gray">CDN</Text>
|
<Text size="2" color="gray">CDN</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
@@ -130,11 +139,17 @@ const strings = getStrings(locale);
|
|||||||
<Code size="2" color="gray">
|
<Code size="2" color="gray">
|
||||||
{packageJson.version}
|
{packageJson.version}
|
||||||
</Code>
|
</Code>
|
||||||
|
|
||||||
|
{
|
||||||
|
PUBLIC_ASSET_BRANCH !== 'opentest' && (
|
||||||
<Code size="2" color="gray">
|
<Code size="2" color="gray">
|
||||||
{gameDefinitions.version}
|
{gameDefinitions.version}
|
||||||
</Code>
|
</Code>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
<Code size="2" color="gray">
|
<Code size="2" color="gray">
|
||||||
{assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH)}
|
{PUBLIC_ASSET_BRANCH}
|
||||||
</Code>
|
</Code>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
@@ -144,13 +159,23 @@ const strings = getStrings(locale);
|
|||||||
<Code size="2" color="gray">
|
<Code size="2" color="gray">
|
||||||
{packageJson.version}
|
{packageJson.version}
|
||||||
</Code>
|
</Code>
|
||||||
<Text size="2" color="gray">WoT Blitz</Text>
|
|
||||||
|
{
|
||||||
|
PUBLIC_ASSET_BRANCH !== 'opentest' && (
|
||||||
|
<>
|
||||||
|
<Text size="2" color="gray">
|
||||||
|
WoT Blitz
|
||||||
|
</Text>
|
||||||
<Code size="2" color="gray">
|
<Code size="2" color="gray">
|
||||||
{gameDefinitions.version}
|
{gameDefinitions.version}
|
||||||
</Code>
|
</Code>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
<Text size="2" color="gray">CDN</Text>
|
<Text size="2" color="gray">CDN</Text>
|
||||||
<Code size="2" color="gray">
|
<Code size="2" color="gray">
|
||||||
{assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH)}
|
{PUBLIC_ASSET_BRANCH}
|
||||||
</Code>
|
</Code>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
type CompositeStats,
|
type CompositeStats,
|
||||||
type CompositeStatsKey,
|
type CompositeStatsKey,
|
||||||
} from '@blitzkit/core';
|
} from '@blitzkit/core';
|
||||||
import strings from '@blitzkit/core/lang/en-US.json';
|
import strings from '@blitzkit/core/lang/en.json';
|
||||||
import { amberDark, blueDark } from '@radix-ui/colors';
|
import { amberDark, blueDark } from '@radix-ui/colors';
|
||||||
import { Flex, Text, type FlexProps } from '@radix-ui/themes';
|
import { Flex, Text, type FlexProps } from '@radix-ui/themes';
|
||||||
import { times } from 'lodash-es';
|
import { times } from 'lodash-es';
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ import {
|
|||||||
import { getStrings } from '../../core/i18n/getStrings';
|
import { getStrings } from '../../core/i18n/getStrings';
|
||||||
import BaseLayout from '../../layouts/BaseLayout.astro';
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
|
|
||||||
const branch = assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH);
|
const PUBLIC_ASSET_BRANCH = assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH);
|
||||||
|
const MODE = assertSecret(import.meta.env.MODE);
|
||||||
const locale = Astro.params.locale ?? DEFAULT_LOCALE;
|
const locale = Astro.params.locale ?? DEFAULT_LOCALE;
|
||||||
const strings = getStrings(Astro.params.locale);
|
const strings = getStrings(Astro.params.locale);
|
||||||
|
|
||||||
@@ -69,7 +70,7 @@ export const getStaticPaths = (() => {
|
|||||||
<Plugs client:idle />
|
<Plugs client:idle />
|
||||||
|
|
||||||
{
|
{
|
||||||
branch === 'preview' && (
|
PUBLIC_ASSET_BRANCH === 'preview' && (
|
||||||
<Flex justify="center" my="8" px="4">
|
<Flex justify="center" my="8" px="4">
|
||||||
<AesonPlug />
|
<AesonPlug />
|
||||||
</Flex>
|
</Flex>
|
||||||
@@ -80,7 +81,11 @@ export const getStaticPaths = (() => {
|
|||||||
<Flex maxWidth="64rem" flexGrow="1" gap="4" direction="column">
|
<Flex maxWidth="64rem" flexGrow="1" gap="4" direction="column">
|
||||||
<ToolCard tool={tankopediaTool} />
|
<ToolCard tool={tankopediaTool} />
|
||||||
|
|
||||||
|
{
|
||||||
|
(PUBLIC_ASSET_BRANCH === 'main' || MODE === 'development') && (
|
||||||
<HomePageHotTanks {locale} />
|
<HomePageHotTanks {locale} />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
||||||
{/* <ToolCard tool={playerStatsTool} /> */}
|
{/* <ToolCard tool={playerStatsTool} /> */}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
type IndividualAccountInfo,
|
type IndividualAccountInfo,
|
||||||
type IndividualTankStats,
|
type IndividualTankStats,
|
||||||
} from '@blitzkit/core';
|
} from '@blitzkit/core';
|
||||||
import strings from '@blitzkit/core/lang/en-US.json';
|
import strings from '@blitzkit/core/lang/en.json';
|
||||||
import {
|
import {
|
||||||
ArrowDownIcon,
|
ArrowDownIcon,
|
||||||
MagnifyingGlassIcon,
|
MagnifyingGlassIcon,
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"github": {
|
|
||||||
"enabled": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user