mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: use buffers
This commit is contained in:
1 parent
c8bb1f190a
commit
c98c19dc36
26 files changed
+134
-269
No files matched your search
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { idToRegion } from '@blitzkit/core';
|
||||
import { assertSecret, idToRegion } from '@blitzkit/core';
|
||||
import { Button, Flex, Heading, Link, Text } from '@radix-ui/themes';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { App } from '../stores/app';
|
||||
@@ -81,9 +81,9 @@ function Content() {
|
||||
fetch(
|
||||
`https://api.worldoftanks.${idToRegion(
|
||||
wargaming.id,
|
||||
)}/wot/auth/prolongate/?application_id=${
|
||||
import.meta.env.PUBLIC_WARGAMING_APPLICATION_ID
|
||||
}&access_token=${wargaming.token}`,
|
||||
)}/wot/auth/prolongate/?application_id=${assertSecret(
|
||||
import.meta.env.PUBLIC_WARGAMING_APPLICATION_ID,
|
||||
)}&access_token=${wargaming.token}`,
|
||||
)
|
||||
.then((response) => response.json() as Promise<Extension>)
|
||||
.then((json) => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import { fetchGameDefinitions } from '@blitzkit/core';
|
||||
import { assertSecret, fetchGameDefinitions } from '@blitzkit/core';
|
||||
import { Code, Flex, Heading, Link, Text } from '@radix-ui/themes';
|
||||
import packageJson from '../../../../package.json';
|
||||
|
||||
@@ -134,7 +134,7 @@ const gameDefinitions = await fetchGameDefinitions();
|
||||
{gameDefinitions.version}
|
||||
</Code>
|
||||
<Code size="2" color="gray">
|
||||
{import.meta.env.PUBLIC_ASSET_BRANCH}
|
||||
{assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH)}
|
||||
</Code>
|
||||
</Flex>
|
||||
</Flex>
|
||||
@@ -150,7 +150,7 @@ const gameDefinitions = await fetchGameDefinitions();
|
||||
</Code>
|
||||
<Text size="2" color="gray"> CDN </Text>
|
||||
<Code size="2" color="gray">
|
||||
{import.meta.env.PUBLIC_ASSET_BRANCH}
|
||||
{assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH)}
|
||||
</Code>
|
||||
</Flex>
|
||||
</Flex>
|
||||
Reference in new issue
Block a user