mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01: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 { assertSecret, fetchGameDefinitions } from '@blitzkit/core';
|
||||||
import { Code, Flex, Heading, Link, Text } from '@radix-ui/themes';
|
import { Code, Flex, Heading, Link, Text } from '@radix-ui/themes';
|
||||||
|
import packageJson from '../../../../package.json';
|
||||||
|
|
||||||
const gameDefinitions = await fetchGameDefinitions();
|
const gameDefinitions = await fetchGameDefinitions();
|
||||||
|
const PUBLIC_ASSET_BRANCH = assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH);
|
||||||
---
|
---
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -119,30 +121,38 @@ const gameDefinitions = await fetchGameDefinitions();
|
|||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Flex direction="column" justify="between" align="start">
|
<Flex direction="column" justify="between" align="start">
|
||||||
<!-- <Code size="2" color="gray">
|
{
|
||||||
{packageJson.version}
|
PUBLIC_ASSET_BRANCH !== 'preview' && (
|
||||||
</Code> -->
|
<Code size="2" color="gray">
|
||||||
|
{packageJson.version}
|
||||||
|
</Code>
|
||||||
|
)
|
||||||
|
}
|
||||||
<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>
|
||||||
|
|
||||||
<Flex gap="2" align="center" display={{ initial: 'none', sm: 'flex' }}>
|
<Flex gap="2" align="center" display={{ initial: 'none', sm: 'flex' }}>
|
||||||
<Text size="2" color="gray"> BlitzKit </Text>
|
<Text size="2" color="gray"> BlitzKit </Text>
|
||||||
<!-- <Code size="2" color="gray">
|
{
|
||||||
{packageJson.version}
|
PUBLIC_ASSET_BRANCH !== 'preview' && (
|
||||||
</Code> -->
|
<Code size="2" color="gray">
|
||||||
|
{packageJson.version}
|
||||||
|
</Code>
|
||||||
|
)
|
||||||
|
}
|
||||||
<Text size="2" color="gray"> WoT Blitz </Text>
|
<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>
|
||||||
Reference in new issue
Block a user