mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix: sessio
This commit is contained in:
1 parent
e0718d9ebb
commit
8bdc4d9b1b
3 files changed
+30
-22
No files matched your search
+14
-14
@@ -1,4 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
|
type AccountListWithServer,
|
||||||
|
type CompositeStatsKey,
|
||||||
|
type IndividualAccountInfo,
|
||||||
|
type IndividualTankStats,
|
||||||
compositeStats,
|
compositeStats,
|
||||||
compositeStatsKeys,
|
compositeStatsKeys,
|
||||||
deltaTankStats,
|
deltaTankStats,
|
||||||
@@ -8,12 +12,8 @@ import {
|
|||||||
idToRegion,
|
idToRegion,
|
||||||
searchPlayersAcrossRegions,
|
searchPlayersAcrossRegions,
|
||||||
sumCompositeStats,
|
sumCompositeStats,
|
||||||
type AccountListWithServer,
|
|
||||||
type CompositeStatsKey,
|
|
||||||
type IndividualAccountInfo,
|
|
||||||
type IndividualTankStats,
|
|
||||||
} from '@blitzkit/core';
|
} from '@blitzkit/core';
|
||||||
import { literals } from '@blitzkit/i18n/src/literals';
|
import { literals } from '@blitzkit/i18n';
|
||||||
import {
|
import {
|
||||||
ArrowDownIcon,
|
ArrowDownIcon,
|
||||||
MagnifyingGlassIcon,
|
MagnifyingGlassIcon,
|
||||||
@@ -33,18 +33,18 @@ import {
|
|||||||
} from '@radix-ui/themes';
|
} from '@radix-ui/themes';
|
||||||
import { debounce } from 'lodash-es';
|
import { debounce } from 'lodash-es';
|
||||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { PageWrapper } from '../../../../components/PageWrapper';
|
import { PageWrapper } from '../../../components/PageWrapper';
|
||||||
import { StickyRowHeaderCell } from '../../../../components/StickyRowHeaderCell';
|
import { StickyRowHeaderCell } from '../../../components/StickyRowHeaderCell';
|
||||||
import { StickyTableRoot } from '../../../../components/StickyTableRoot';
|
import { StickyTableRoot } from '../../../components/StickyTableRoot';
|
||||||
import { TankRowHeaderCell } from '../../../../components/TankRowHeaderCell';
|
import { TankRowHeaderCell } from '../../../components/TankRowHeaderCell';
|
||||||
import { awaitableAverageDefinitions } from '../../../../core/awaitables/averageDefinitions';
|
import { awaitableAverageDefinitions } from '../../../core/awaitables/averageDefinitions';
|
||||||
import { awaitableTankDefinitions } from '../../../../core/awaitables/tankDefinitions';
|
import { awaitableTankDefinitions } from '../../../core/awaitables/tankDefinitions';
|
||||||
import {
|
import {
|
||||||
|
type LocaleAcceptorProps,
|
||||||
LocaleProvider,
|
LocaleProvider,
|
||||||
useLocale,
|
useLocale,
|
||||||
type LocaleAcceptorProps,
|
} from '../../../hooks/useLocale';
|
||||||
} from '../../../../hooks/useLocale';
|
import { Session, type SessionTracking } from '../../../stores/session';
|
||||||
import { Session, type SessionTracking } from '../../../../stores/session';
|
|
||||||
|
|
||||||
const [tankDefinitions, averageDefinitions] = await Promise.all([
|
const [tankDefinitions, averageDefinitions] = await Promise.all([
|
||||||
awaitableTankDefinitions,
|
awaitableTankDefinitions,
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
import { sessionTool } from '../../../constants/tools';
|
||||||
|
import ToolLayout from '../../../layouts/ToolLayout.astro';
|
||||||
|
import type { getStaticPaths } from '../index.astro';
|
||||||
|
import { Page } from './_index';
|
||||||
|
|
||||||
|
export { getStaticPaths } from '../index.astro';
|
||||||
|
|
||||||
|
const { locale } = Astro.params;
|
||||||
|
---
|
||||||
|
|
||||||
|
<ToolLayout tool={sessionTool}>
|
||||||
|
<Page client:load {locale} />
|
||||||
|
</ToolLayout>
|
||||||
@@ -1,13 +1,7 @@
|
|||||||
---
|
---
|
||||||
import { sessionTool } from '../../../../constants/tools';
|
import LegacyRedirect from '../../../../components/LegacyRedirect.astro';
|
||||||
import ToolLayout from '../../../../layouts/ToolLayout.astro';
|
|
||||||
import { Page } from './_index';
|
|
||||||
|
|
||||||
export { getStaticPaths } from '../../index.astro';
|
export { getStaticPaths } from '../../index.astro';
|
||||||
|
|
||||||
const { locale } = Astro.params;
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<ToolLayout tool={sessionTool}>
|
<LegacyRedirect path="session" />
|
||||||
<Page client:load {locale} />
|
|
||||||
</ToolLayout>
|
|
||||||
Reference in new issue
Block a user