mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: migrate gallery
This commit is contained in:
1 parent
198e800958
commit
fdecef5f9c
3 files changed
+24
-16
No files matched your search
+6
-6
@@ -1,12 +1,12 @@
|
|||||||
import { GalleryList } from '../../../../components/Gallery/List';
|
import { GalleryList } from '../../../components/Gallery/List';
|
||||||
import { GallerySearch } from '../../../../components/Gallery/Search';
|
import { GallerySearch } from '../../../components/Gallery/Search';
|
||||||
import { PageWrapper } from '../../../../components/PageWrapper';
|
import { PageWrapper } from '../../../components/PageWrapper';
|
||||||
import {
|
import {
|
||||||
LocaleProvider,
|
LocaleProvider,
|
||||||
type LocaleAcceptorProps,
|
type LocaleAcceptorProps,
|
||||||
} from '../../../../hooks/useLocale';
|
} from '../../../hooks/useLocale';
|
||||||
import { GalleryEphemeral } from '../../../../stores/galleryEphemeral';
|
import { GalleryEphemeral } from '../../../stores/galleryEphemeral';
|
||||||
import type { MaybeSkeletonComponentProps } from '../../../../types/maybeSkeletonComponentProps';
|
import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps';
|
||||||
|
|
||||||
export function Page({
|
export function Page({
|
||||||
locale,
|
locale,
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
import { galleryTool } 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={galleryTool}>
|
||||||
|
<Page {locale} client:only="react">
|
||||||
|
<Page {locale} skeleton slot="fallback" />
|
||||||
|
</Page>
|
||||||
|
</ToolLayout>
|
||||||
@@ -1,15 +1,7 @@
|
|||||||
---
|
---
|
||||||
import { galleryTool } 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={galleryTool}>
|
<LegacyRedirect tool="gallery" />
|
||||||
<Page {locale} client:only="react">
|
|
||||||
<Page {locale} skeleton slot="fallback" />
|
|
||||||
</Page>
|
|
||||||
</ToolLayout>
|
|
||||||
Reference in new issue
Block a user