mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02: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 { PerformanceInfo } from '../../../../components/Performance/PerformanceInfo';
|
||||
import { PlayerCountControl } from '../../../../components/Performance/PlayerCountControl';
|
||||
import { TankTable } from '../../../../components/Performance/Table';
|
||||
import { FilterControl } from '../../../../components/TankSearch/components/FilterControl';
|
||||
import { PageWrapper } from '../../../components/PageWrapper';
|
||||
import { PerformanceInfo } from '../../../components/Performance/PerformanceInfo';
|
||||
import { PlayerCountControl } from '../../../components/Performance/PlayerCountControl';
|
||||
import { TankTable } from '../../../components/Performance/Table';
|
||||
import { FilterControl } from '../../../components/TankSearch/components/FilterControl';
|
||||
import {
|
||||
LocaleProvider,
|
||||
type LocaleAcceptorProps,
|
||||
} from '../../../../hooks/useLocale';
|
||||
import { TankPerformanceEphemeral } from '../../../../stores/tankPerformanceEphemeral';
|
||||
import { TankPerformanceSort } from '../../../../stores/tankPerformanceSort';
|
||||
import type { MaybeSkeletonComponentProps } from '../../../../types/maybeSkeletonComponentProps';
|
||||
} from '../../../hooks/useLocale';
|
||||
import { TankPerformanceEphemeral } from '../../../stores/tankPerformanceEphemeral';
|
||||
import { TankPerformanceSort } from '../../../stores/tankPerformanceSort';
|
||||
import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps';
|
||||
|
||||
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 { performanceTool } from '../../../../constants/tools';
|
||||
import BaseLayout from '../../../../layouts/BaseLayout.astro';
|
||||
import { Page } from './_index';
|
||||
import LegacyRedirect from '../../../../components/LegacyRedirect.astro';
|
||||
|
||||
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>
|
||||
<LegacyRedirect path="performance" />
|
||||
Reference in new issue
Block a user