mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Merge branch 'main' into data-driven
This commit is contained in:
commit
6ebb2810ad
37 files changed
+1404
-350
No files matched your search
@@ -2,8 +2,7 @@
|
||||
import { assertSecret } from "@blitzkit/core";
|
||||
import { Box, Code, Flex, Heading, Link, Text } from "@radix-ui/themes";
|
||||
import packageJson from "../../../../package.json";
|
||||
import { api } from "../core/blitzkit/api";
|
||||
import { getStrings } from "../core/i18n/getStrings";
|
||||
import { api } from "../api/dynamic";
|
||||
import { LinkI18n } from "./LinkI18n";
|
||||
import { LocaleSwitcherThemeWrapper } from "./LocaleSwitcher";
|
||||
|
||||
@@ -12,9 +11,10 @@ export interface Props {
|
||||
}
|
||||
|
||||
const gameDefinitions = await api.game();
|
||||
const gameVersion = gameDefinitions.version.split("_")[0];
|
||||
const environment = assertSecret(import.meta.env.PUBLIC_ENVIRONMENT);
|
||||
const { locale } = Astro.props;
|
||||
const strings = getStrings(locale);
|
||||
const strings = await api.strings(locale);
|
||||
---
|
||||
|
||||
<style>
|
||||
@@ -141,7 +141,7 @@ const strings = getStrings(locale);
|
||||
</Text>
|
||||
)
|
||||
}
|
||||
<Text size="2" color="gray">CDN</Text>
|
||||
<Text size="2" color="gray">Branch</Text>
|
||||
</Flex>
|
||||
|
||||
<Flex direction="column" gap="1" flexGrow="1" flexBasis="0" align="start">
|
||||
@@ -151,7 +151,7 @@ const strings = getStrings(locale);
|
||||
{
|
||||
environment !== "preview" && (
|
||||
<Code size="2" color="gray">
|
||||
{gameDefinitions.version}
|
||||
{gameVersion}
|
||||
</Code>
|
||||
)
|
||||
}
|
||||
@@ -174,13 +174,13 @@ const strings = getStrings(locale);
|
||||
WoTB
|
||||
</Text>
|
||||
<Code size="2" color="gray">
|
||||
{gameDefinitions.version}
|
||||
{gameVersion}
|
||||
</Code>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
<Text size="2" color="gray">CDN</Text>
|
||||
<Text size="2" color="gray">Branch</Text>
|
||||
<Code size="2" color="gray">
|
||||
{environment}
|
||||
</Code>
|
||||
|
||||
Reference in new issue
Block a user