mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-26 20:19:50 +01:00
fix: migrate performance
This commit is contained in:
1 parent
dbf1718d39
commit
e0718d9ebb
3 files changed
+30
-22
No files matched your search
+9
-9
@@ -1,15 +1,15 @@
|
|||||||
import { PageWrapper } from '../../../../components/PageWrapper';
|
import { PageWrapper } from '../../../components/PageWrapper';
|
||||||
import { PerformanceInfo } from '../../../../components/Performance/PerformanceInfo';
|
import { PerformanceInfo } from '../../../components/Performance/PerformanceInfo';
|
||||||
import { PlayerCountControl } from '../../../../components/Performance/PlayerCountControl';
|
import { PlayerCountControl } from '../../../components/Performance/PlayerCountControl';
|
||||||
import { TankTable } from '../../../../components/Performance/Table';
|
import { TankTable } from '../../../components/Performance/Table';
|
||||||
import { FilterControl } from '../../../../components/TankSearch/components/FilterControl';
|
import { FilterControl } from '../../../components/TankSearch/components/FilterControl';
|
||||||
import {
|
import {
|
||||||
LocaleProvider,
|
LocaleProvider,
|
||||||
type LocaleAcceptorProps,
|
type LocaleAcceptorProps,
|
||||||
} from '../../../../hooks/useLocale';
|
} from '../../../hooks/useLocale';
|
||||||
import { TankPerformanceEphemeral } from '../../../../stores/tankPerformanceEphemeral';
|
import { TankPerformanceEphemeral } from '../../../stores/tankPerformanceEphemeral';
|
||||||
import { TankPerformanceSort } from '../../../../stores/tankPerformanceSort';
|
import { TankPerformanceSort } from '../../../stores/tankPerformanceSort';
|
||||||
import type { MaybeSkeletonComponentProps } from '../../../../types/maybeSkeletonComponentProps';
|
import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps';
|
||||||
|
|
||||||
type PageProps = MaybeSkeletonComponentProps & LocaleAcceptorProps;
|
type PageProps = MaybeSkeletonComponentProps & LocaleAcceptorProps;
|
||||||
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
import ToolOpenGraph from '../../../components/ToolOpenGraph.astro';
|
||||||
|
import { performanceTool } from '../../../constants/tools';
|
||||||
|
import BaseLayout from '../../../layouts/BaseLayout.astro';
|
||||||
|
import type { getStaticPaths } from '../index.astro';
|
||||||
|
import { Page } from './_index';
|
||||||
|
|
||||||
|
export { getStaticPaths } from '../index.astro';
|
||||||
|
|
||||||
|
const { locale } = Astro.params;
|
||||||
|
---
|
||||||
|
|
||||||
|
<ToolOpenGraph tool={performanceTool} />
|
||||||
|
|
||||||
|
<BaseLayout noFooter>
|
||||||
|
<Page client:only="react" {locale}>
|
||||||
|
<Page skeleton slot="fallback" {locale} />
|
||||||
|
</Page>
|
||||||
|
</BaseLayout>
|
||||||
@@ -1,18 +1,7 @@
|
|||||||
---
|
---
|
||||||
import ToolOpenGraph from '../../../../components/ToolOpenGraph.astro';
|
import LegacyRedirect from '../../../../components/LegacyRedirect.astro';
|
||||||
import { performanceTool } from '../../../../constants/tools';
|
|
||||||
import BaseLayout from '../../../../layouts/BaseLayout.astro';
|
|
||||||
import { Page } from './_index';
|
|
||||||
|
|
||||||
export { getStaticPaths } from '../../index.astro';
|
export { getStaticPaths } from '../../index.astro';
|
||||||
|
|
||||||
const { locale } = Astro.params;
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<ToolOpenGraph tool={performanceTool} />
|
<LegacyRedirect path="performance" />
|
||||||
|
|
||||||
<BaseLayout noFooter>
|
|
||||||
<Page client:only="react" {locale}>
|
|
||||||
<Page skeleton slot="fallback" {locale} />
|
|
||||||
</Page>
|
|
||||||
</BaseLayout>
|
|
||||||
Reference in new issue
Block a user