From fdecef5f9c544eeee9d7e5da021f951d4d1e63d3 Mon Sep 17 00:00:00 2001
From: tresabhi <43380238+tresabhi@users.noreply.github.com>
Date: Fri, 16 May 2025 18:06:04 -0500
Subject: [PATCH] feat: migrate gallery
---
.../[...locale]/{tools => }/gallery/_index.tsx | 12 ++++++------
.../src/pages/[...locale]/gallery/index.astro | 16 ++++++++++++++++
.../pages/[...locale]/tools/gallery/index.astro | 12 ++----------
3 files changed, 24 insertions(+), 16 deletions(-)
rename packages/website/src/pages/[...locale]/{tools => }/gallery/_index.tsx (58%)
create mode 100644 packages/website/src/pages/[...locale]/gallery/index.astro
diff --git a/packages/website/src/pages/[...locale]/tools/gallery/_index.tsx b/packages/website/src/pages/[...locale]/gallery/_index.tsx
similarity index 58%
rename from packages/website/src/pages/[...locale]/tools/gallery/_index.tsx
rename to packages/website/src/pages/[...locale]/gallery/_index.tsx
index 4357f5fc4..d52169f10 100644
--- a/packages/website/src/pages/[...locale]/tools/gallery/_index.tsx
+++ b/packages/website/src/pages/[...locale]/gallery/_index.tsx
@@ -1,12 +1,12 @@
-import { GalleryList } from '../../../../components/Gallery/List';
-import { GallerySearch } from '../../../../components/Gallery/Search';
-import { PageWrapper } from '../../../../components/PageWrapper';
+import { GalleryList } from '../../../components/Gallery/List';
+import { GallerySearch } from '../../../components/Gallery/Search';
+import { PageWrapper } from '../../../components/PageWrapper';
import {
LocaleProvider,
type LocaleAcceptorProps,
-} from '../../../../hooks/useLocale';
-import { GalleryEphemeral } from '../../../../stores/galleryEphemeral';
-import type { MaybeSkeletonComponentProps } from '../../../../types/maybeSkeletonComponentProps';
+} from '../../../hooks/useLocale';
+import { GalleryEphemeral } from '../../../stores/galleryEphemeral';
+import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps';
export function Page({
locale,
diff --git a/packages/website/src/pages/[...locale]/gallery/index.astro b/packages/website/src/pages/[...locale]/gallery/index.astro
new file mode 100644
index 000000000..908f663d4
--- /dev/null
+++ b/packages/website/src/pages/[...locale]/gallery/index.astro
@@ -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;
+---
+
+
+
+
+
+
diff --git a/packages/website/src/pages/[...locale]/tools/gallery/index.astro b/packages/website/src/pages/[...locale]/tools/gallery/index.astro
index 048296a51..0a6727502 100644
--- a/packages/website/src/pages/[...locale]/tools/gallery/index.astro
+++ b/packages/website/src/pages/[...locale]/tools/gallery/index.astro
@@ -1,15 +1,7 @@
---
-import { galleryTool } from '../../../../constants/tools';
-import ToolLayout from '../../../../layouts/ToolLayout.astro';
-import { Page } from './_index';
+import LegacyRedirect from '../../../../components/LegacyRedirect.astro';
export { getStaticPaths } from '../../index.astro';
-
-const { locale } = Astro.params;
---
-
-
-
-
-
+