mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: hide on preview
This commit is contained in:
1 parent
4f74556eb6
commit
d592a95cae
1 file changed
+18
-8
@@ -1,8 +1,10 @@
|
||||
---
|
||||
import { assertSecret, fetchGameDefinitions } from '@blitzkit/core';
|
||||
import { Code, Flex, Heading, Link, Text } from '@radix-ui/themes';
|
||||
import packageJson from '../../../../package.json';
|
||||
|
||||
const gameDefinitions = await fetchGameDefinitions();
|
||||
const PUBLIC_ASSET_BRANCH = assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH);
|
||||
---
|
||||
|
||||
<style>
|
||||
@@ -119,30 +121,38 @@ const gameDefinitions = await fetchGameDefinitions();
|
||||
</Flex>
|
||||
|
||||
<Flex direction="column" justify="between" align="start">
|
||||
<!-- <Code size="2" color="gray">
|
||||
{packageJson.version}
|
||||
</Code> -->
|
||||
{
|
||||
PUBLIC_ASSET_BRANCH !== 'preview' && (
|
||||
<Code size="2" color="gray">
|
||||
{packageJson.version}
|
||||
</Code>
|
||||
)
|
||||
}
|
||||
<Code size="2" color="gray">
|
||||
{gameDefinitions.version}
|
||||
</Code>
|
||||
<Code size="2" color="gray">
|
||||
{assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH)}
|
||||
{PUBLIC_ASSET_BRANCH}
|
||||
</Code>
|
||||
</Flex>
|
||||
</Flex>
|
||||
|
||||
<Flex gap="2" align="center" display={{ initial: 'none', sm: 'flex' }}>
|
||||
<Text size="2" color="gray"> BlitzKit </Text>
|
||||
<!-- <Code size="2" color="gray">
|
||||
{packageJson.version}
|
||||
</Code> -->
|
||||
{
|
||||
PUBLIC_ASSET_BRANCH !== 'preview' && (
|
||||
<Code size="2" color="gray">
|
||||
{packageJson.version}
|
||||
</Code>
|
||||
)
|
||||
}
|
||||
<Text size="2" color="gray"> WoT Blitz </Text>
|
||||
<Code size="2" color="gray">
|
||||
{gameDefinitions.version}
|
||||
</Code>
|
||||
<Text size="2" color="gray"> CDN </Text>
|
||||
<Code size="2" color="gray">
|
||||
{assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH)}
|
||||
{PUBLIC_ASSET_BRANCH}
|
||||
</Code>
|
||||
</Flex>
|
||||
</Flex>
|
||||
Reference in new issue
Block a user