From e3a39b1a3f4d5fffff0c1e01247181fac2ce0c40 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 18 Mar 2025 09:26:56 -0500 Subject: [PATCH] Create top-level category directory --- __tests__/set.test.ts | 2 +- app/film/[simulation]/image/route.tsx | 2 +- app/film/[simulation]/page.tsx | 2 +- app/focal/[focal]/image/route.tsx | 2 +- app/focal/[focal]/page.tsx | 2 +- app/lens/[make]/[model]/image/route.tsx | 2 +- app/lens/[make]/[model]/page.tsx | 2 +- app/recipe/[recipe]/image/route.tsx | 2 +- app/recipe/[recipe]/page.tsx | 2 +- app/shot-on/[make]/[model]/image/route.tsx | 2 +- app/shot-on/[make]/[model]/page.tsx | 2 +- app/tag/[tag]/image/route.tsx | 2 +- app/tag/[tag]/page.tsx | 2 +- src/admin/AdminAppConfigurationClient.tsx | 2 +- src/app/config.ts | 2 +- src/app/paths.ts | 2 +- src/camera/CameraShareModal.tsx | 2 +- src/{photo => category}/set.ts | 4 ++-- src/components/cmdk/CommandKClient.tsx | 2 +- src/focal/FocalLengthShareModal.tsx | 2 +- src/lens/LensShareModal.tsx | 2 +- src/photo/InfinitePhotoScroll.tsx | 2 +- src/photo/PhotoDetailPage.tsx | 2 +- src/photo/PhotoGrid.tsx | 2 +- src/photo/PhotoHeader.tsx | 2 +- src/photo/PhotoLightbox.tsx | 2 +- src/photo/PhotoLink.tsx | 2 +- src/photo/PhotoMedium.tsx | 2 +- src/photo/PhotoOGTile.tsx | 2 +- src/photo/PhotoPrevNext.tsx | 2 +- src/photo/PhotoShareModal.tsx | 2 +- src/photo/PhotoSmall.tsx | 2 +- src/photo/db/index.ts | 2 +- src/recipe/RecipeShareModal.tsx | 2 +- src/share/index.ts | 2 +- src/simulation/FilmSimulationShareModal.tsx | 2 +- src/tag/TagShareModal.tsx | 2 +- 37 files changed, 38 insertions(+), 38 deletions(-) rename src/{photo => category}/set.ts (96%) diff --git a/__tests__/set.test.ts b/__tests__/set.test.ts index 36a0131b..0e0a8b9c 100644 --- a/__tests__/set.test.ts +++ b/__tests__/set.test.ts @@ -1,7 +1,7 @@ import { DEFAULT_CATEGORY_KEYS, getOrderedCategoriesFromString, -} from '@/photo/set'; +} from '@/category/set'; describe('set', () => { it('parses from string', () => { diff --git a/app/film/[simulation]/image/route.tsx b/app/film/[simulation]/image/route.tsx index 537ef6f4..af58b864 100644 --- a/app/film/[simulation]/image/route.tsx +++ b/app/film/[simulation]/image/route.tsx @@ -11,7 +11,7 @@ import { ImageResponse } from 'next/og'; import { getImageResponseCacheControlHeaders } from '@/image-response/cache'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; import { getUniqueFilmSimulations } from '@/photo/db/query'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; export let generateStaticParams: (() => Promise<{ simulation: FilmSimulation }[]>) | undefined = undefined; diff --git a/app/film/[simulation]/page.tsx b/app/film/[simulation]/page.tsx index 4211d391..eebe848a 100644 --- a/app/film/[simulation]/page.tsx +++ b/app/film/[simulation]/page.tsx @@ -7,7 +7,7 @@ import { Metadata } from 'next/types'; import { cache } from 'react'; import { PATH_ROOT } from '@/app/paths'; import { redirect } from 'next/navigation'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; const getPhotosFilmSimulationDataCachedCached = cache(getPhotosFilmSimulationDataCached); diff --git a/app/focal/[focal]/image/route.tsx b/app/focal/[focal]/image/route.tsx index dd62822a..b2a3d261 100644 --- a/app/focal/[focal]/image/route.tsx +++ b/app/focal/[focal]/image/route.tsx @@ -11,7 +11,7 @@ import FocalLengthImageResponse from import { formatFocalLength, getFocalLengthFromString } from '@/focal'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; import { getUniqueFocalLengths } from '@/photo/db/query'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; export let generateStaticParams: (() => Promise<{ focal: string }[]>) | undefined = undefined; diff --git a/app/focal/[focal]/page.tsx b/app/focal/[focal]/page.tsx index 19f7399f..ab7fa33c 100644 --- a/app/focal/[focal]/page.tsx +++ b/app/focal/[focal]/page.tsx @@ -7,7 +7,7 @@ import { PATH_ROOT } from '@/app/paths'; import type { Metadata } from 'next'; import { redirect } from 'next/navigation'; import { cache } from 'react'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; const getPhotosFocalDataCachedCached = cache((focal: number) => diff --git a/app/lens/[make]/[model]/image/route.tsx b/app/lens/[make]/[model]/image/route.tsx index 3374be34..50da7014 100644 --- a/app/lens/[make]/[model]/image/route.tsx +++ b/app/lens/[make]/[model]/image/route.tsx @@ -15,7 +15,7 @@ import { safelyGenerateLensStaticParams, } from '@/lens'; import LensImageResponse from '@/image-response/LensImageResponse'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; export let generateStaticParams: (() => Promise) | undefined = undefined; diff --git a/app/lens/[make]/[model]/page.tsx b/app/lens/[make]/[model]/page.tsx index 3af4937c..d37f4423 100644 --- a/app/lens/[make]/[model]/page.tsx +++ b/app/lens/[make]/[model]/page.tsx @@ -12,7 +12,7 @@ import { safelyGenerateLensStaticParams, } from '@/lens'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; const getPhotosLensDataCachedCached = cache(( make: string | undefined, diff --git a/app/recipe/[recipe]/image/route.tsx b/app/recipe/[recipe]/image/route.tsx index 7b75e7b9..f0a1c757 100644 --- a/app/recipe/[recipe]/image/route.tsx +++ b/app/recipe/[recipe]/image/route.tsx @@ -9,7 +9,7 @@ import { getImageResponseCacheControlHeaders } from '@/image-response/cache'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; import { getUniqueRecipes } from '@/photo/db/query'; import RecipeImageResponse from '@/image-response/RecipeImageResponse'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; export let generateStaticParams: (() => Promise<{ recipe: string }[]>) | undefined = undefined; diff --git a/app/recipe/[recipe]/page.tsx b/app/recipe/[recipe]/page.tsx index 037987f0..559da2c0 100644 --- a/app/recipe/[recipe]/page.tsx +++ b/app/recipe/[recipe]/page.tsx @@ -7,7 +7,7 @@ import { cache } from 'react'; import { generateMetaForRecipe } from '@/recipe'; import RecipeOverview from '@/recipe/RecipeOverview'; import { getPhotosRecipeDataCached } from '@/recipe/data'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; const getPhotosRecipeDataCachedCached = cache(getPhotosRecipeDataCached); diff --git a/app/shot-on/[make]/[model]/image/route.tsx b/app/shot-on/[make]/[model]/image/route.tsx index e3f2e819..dcb4278b 100644 --- a/app/shot-on/[make]/[model]/image/route.tsx +++ b/app/shot-on/[make]/[model]/image/route.tsx @@ -10,7 +10,7 @@ import { ImageResponse } from 'next/og'; import { getImageResponseCacheControlHeaders } from '@/image-response/cache'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; import { getUniqueCameras } from '@/photo/db/query'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; export let generateStaticParams: (() => Promise<{ camera: Camera }[]>) | undefined = undefined; diff --git a/app/shot-on/[make]/[model]/page.tsx b/app/shot-on/[make]/[model]/page.tsx index 50cb42e3..f2f3733d 100644 --- a/app/shot-on/[make]/[model]/page.tsx +++ b/app/shot-on/[make]/[model]/page.tsx @@ -6,7 +6,7 @@ import { getPhotosCameraDataCached } from '@/camera/data'; import CameraOverview from '@/camera/CameraOverview'; import { cache } from 'react'; import { getUniqueCameras } from '@/photo/db/query'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; const getPhotosCameraDataCachedCached = cache(( diff --git a/app/tag/[tag]/image/route.tsx b/app/tag/[tag]/image/route.tsx index f0983aac..16df27c6 100644 --- a/app/tag/[tag]/image/route.tsx +++ b/app/tag/[tag]/image/route.tsx @@ -9,7 +9,7 @@ import { ImageResponse } from 'next/og'; import { getImageResponseCacheControlHeaders } from '@/image-response/cache'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; import { getUniqueTags } from '@/photo/db/query'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; export let generateStaticParams: (() => Promise<{ tag: string }[]>) | undefined = undefined; diff --git a/app/tag/[tag]/page.tsx b/app/tag/[tag]/page.tsx index f3d3b455..bc358c1b 100644 --- a/app/tag/[tag]/page.tsx +++ b/app/tag/[tag]/page.tsx @@ -7,7 +7,7 @@ import { getPhotosTagDataCached } from '@/tag/data'; import type { Metadata } from 'next'; import { redirect } from 'next/navigation'; import { cache } from 'react'; -import { shouldGenerateStaticParamsForCategory } from '@/photo/set'; +import { shouldGenerateStaticParamsForCategory } from '@/category/set'; import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db'; const getPhotosTagDataCachedCached = cache((tag: string) => diff --git a/src/admin/AdminAppConfigurationClient.tsx b/src/admin/AdminAppConfigurationClient.tsx index 067408b1..c3381b23 100644 --- a/src/admin/AdminAppConfigurationClient.tsx +++ b/src/admin/AdminAppConfigurationClient.tsx @@ -30,7 +30,7 @@ import EnvVar from '@/components/EnvVar'; import AdminLink from './AdminLink'; import ScoreCardContainer from '@/components/ScoreCardContainer'; import { capitalize, deparameterize } from '@/utility/string'; -import { DEFAULT_CATEGORY_KEYS, getHiddenCategories } from '@/photo/set'; +import { DEFAULT_CATEGORY_KEYS, getHiddenCategories } from '@/category/set'; export default function AdminAppConfigurationClient({ // Storage diff --git a/src/app/config.ts b/src/app/config.ts index 63eee4bb..2173616f 100644 --- a/src/app/config.ts +++ b/src/app/config.ts @@ -2,7 +2,7 @@ import { AI_AUTO_GENERATED_FIELDS_DEFAULT, parseAiAutoGeneratedFieldsString, } from '@/photo/ai'; -import { getOrderedCategoriesFromString } from '@/photo/set'; +import { getOrderedCategoriesFromString } from '@/category/set'; import type { StorageType } from '@/platforms/storage'; import { makeUrlAbsolute, shortenUrl } from '@/utility/url'; diff --git a/src/app/paths.ts b/src/app/paths.ts index a20ab928..59867eeb 100644 --- a/src/app/paths.ts +++ b/src/app/paths.ts @@ -1,5 +1,5 @@ import { Photo } from '@/photo'; -import { PhotoSetCategory } from '@/photo/set'; +import { PhotoSetCategory } from '@/category/set'; import { BASE_URL, GRID_HOMEPAGE_ENABLED } from './config'; import { Camera } from '@/camera'; import { FilmSimulation } from '@/simulation'; diff --git a/src/camera/CameraShareModal.tsx b/src/camera/CameraShareModal.tsx index d138669b..a6837f0b 100644 --- a/src/camera/CameraShareModal.tsx +++ b/src/camera/CameraShareModal.tsx @@ -1,5 +1,5 @@ import { absolutePathForCamera } from '@/app/paths'; -import { PhotoSetAttributes } from '../photo/set'; +import { PhotoSetAttributes } from '../category/set'; import ShareModal from '@/share/ShareModal'; import CameraOGTile from './CameraOGTile'; import { Camera } from '.'; diff --git a/src/photo/set.ts b/src/category/set.ts similarity index 96% rename from src/photo/set.ts rename to src/category/set.ts index 19752848..b8a004dd 100644 --- a/src/photo/set.ts +++ b/src/category/set.ts @@ -1,6 +1,6 @@ -import { Photo } from '.'; +import { Photo } from '../photo'; import { Camera, Cameras } from '@/camera'; -import { PhotoDateRange } from '.'; +import { PhotoDateRange } from '../photo'; import { FilmSimulation, FilmSimulations } from '@/simulation'; import { Lens, Lenses } from '@/lens'; import { Tags } from '@/tag'; diff --git a/src/components/cmdk/CommandKClient.tsx b/src/components/cmdk/CommandKClient.tsx index 608b6416..aad35eb8 100644 --- a/src/components/cmdk/CommandKClient.tsx +++ b/src/components/cmdk/CommandKClient.tsx @@ -56,7 +56,7 @@ import { CATEGORY_VISIBILITY, GRID_HOMEPAGE_ENABLED } from '@/app/config'; import { DialogDescription, DialogTitle } from '@radix-ui/react-dialog'; import * as VisuallyHidden from '@radix-ui/react-visually-hidden'; import InsightsIndicatorDot from '@/admin/insights/InsightsIndicatorDot'; -import { PhotoSetCategories } from '@/photo/set'; +import { PhotoSetCategories } from '@/category/set'; import { formatCameraText } from '@/camera'; import { labelForFilmSimulation } from '@/platforms/fujifilm/simulation'; import { formatFocalLength } from '@/focal'; diff --git a/src/focal/FocalLengthShareModal.tsx b/src/focal/FocalLengthShareModal.tsx index bf8886df..58e95834 100644 --- a/src/focal/FocalLengthShareModal.tsx +++ b/src/focal/FocalLengthShareModal.tsx @@ -1,5 +1,5 @@ import { absolutePathForFocalLength } from '@/app/paths'; -import { PhotoSetAttributes } from '../photo/set'; +import { PhotoSetAttributes } from '../category/set'; import ShareModal from '@/share/ShareModal'; import FocalLengthOGTile from './FocalLengthOGTile'; import { shareTextFocalLength } from '.'; diff --git a/src/lens/LensShareModal.tsx b/src/lens/LensShareModal.tsx index bdf24372..4c32cfad 100644 --- a/src/lens/LensShareModal.tsx +++ b/src/lens/LensShareModal.tsx @@ -1,5 +1,5 @@ import { absolutePathForLens } from '@/app/paths'; -import { PhotoSetAttributes } from '../photo/set'; +import { PhotoSetAttributes } from '../category/set'; import ShareModal from '@/share/ShareModal'; import { Lens } from '.'; import { shareTextForLens } from './meta'; diff --git a/src/photo/InfinitePhotoScroll.tsx b/src/photo/InfinitePhotoScroll.tsx index 1f165835..bc9621f3 100644 --- a/src/photo/InfinitePhotoScroll.tsx +++ b/src/photo/InfinitePhotoScroll.tsx @@ -12,7 +12,7 @@ import SiteGrid from '@/components/SiteGrid'; import Spinner from '@/components/Spinner'; import { getPhotosCachedAction, getPhotosAction } from '@/photo/actions'; import { Photo } from '.'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import { clsx } from 'clsx/lite'; import { useAppState } from '@/state/AppState'; import { GetPhotosOptions } from './db'; diff --git a/src/photo/PhotoDetailPage.tsx b/src/photo/PhotoDetailPage.tsx index 64b453aa..56847847 100644 --- a/src/photo/PhotoDetailPage.tsx +++ b/src/photo/PhotoDetailPage.tsx @@ -1,6 +1,6 @@ import AnimateItems from '@/components/AnimateItems'; import { Photo, PhotoDateRange } from '.'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import PhotoLarge from './PhotoLarge'; import SiteGrid from '@/components/SiteGrid'; import PhotoGrid from './PhotoGrid'; diff --git a/src/photo/PhotoGrid.tsx b/src/photo/PhotoGrid.tsx index 8e4a1e8a..8aef261e 100644 --- a/src/photo/PhotoGrid.tsx +++ b/src/photo/PhotoGrid.tsx @@ -1,7 +1,7 @@ 'use client'; import { Photo } from '.'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import PhotoMedium from './PhotoMedium'; import { clsx } from 'clsx/lite'; import AnimateItems from '@/components/AnimateItems'; diff --git a/src/photo/PhotoHeader.tsx b/src/photo/PhotoHeader.tsx index 6134c3fe..e1fd1a4c 100644 --- a/src/photo/PhotoHeader.tsx +++ b/src/photo/PhotoHeader.tsx @@ -7,7 +7,7 @@ import { dateRangeForPhotos, titleForPhoto, } from '.'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import ShareButton from '@/share/ShareButton'; import AnimateItems from '@/components/AnimateItems'; import { ReactNode } from 'react'; diff --git a/src/photo/PhotoLightbox.tsx b/src/photo/PhotoLightbox.tsx index d5ebe63d..0c5de017 100644 --- a/src/photo/PhotoLightbox.tsx +++ b/src/photo/PhotoLightbox.tsx @@ -1,6 +1,6 @@ import { clsx } from 'clsx/lite'; import { Photo } from '.'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import PhotoGrid from './PhotoGrid'; import Link from 'next/link'; diff --git a/src/photo/PhotoLink.tsx b/src/photo/PhotoLink.tsx index e0701cdd..230e5ae2 100644 --- a/src/photo/PhotoLink.tsx +++ b/src/photo/PhotoLink.tsx @@ -2,7 +2,7 @@ import { ReactNode } from 'react'; import { Photo, titleForPhoto } from '@/photo'; -import { PhotoSetCategory } from '@/photo/set'; +import { PhotoSetCategory } from '@/category/set'; import Link from 'next/link'; import { AnimationConfig } from '../components/AnimateItems'; import { useAppState } from '@/state/AppState'; diff --git a/src/photo/PhotoMedium.tsx b/src/photo/PhotoMedium.tsx index b5603c7d..1d90e1d1 100644 --- a/src/photo/PhotoMedium.tsx +++ b/src/photo/PhotoMedium.tsx @@ -5,7 +5,7 @@ import { altTextForPhoto, doesPhotoNeedBlurCompatibility, } from '.'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import ImageMedium from '@/components/image/ImageMedium'; import { clsx } from 'clsx/lite'; import { pathForPhoto } from '@/app/paths'; diff --git a/src/photo/PhotoOGTile.tsx b/src/photo/PhotoOGTile.tsx index 4ad6c627..9f8150c0 100644 --- a/src/photo/PhotoOGTile.tsx +++ b/src/photo/PhotoOGTile.tsx @@ -3,7 +3,7 @@ import { descriptionForPhoto, titleForPhoto, } from '@/photo'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import { absolutePathForPhotoImage, pathForPhoto } from '@/app/paths'; import OGTile from '@/components/OGTile'; diff --git a/src/photo/PhotoPrevNext.tsx b/src/photo/PhotoPrevNext.tsx index 502ced35..53587854 100644 --- a/src/photo/PhotoPrevNext.tsx +++ b/src/photo/PhotoPrevNext.tsx @@ -6,7 +6,7 @@ import { getNextPhoto, getPreviousPhoto, } from '@/photo'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import PhotoLink from './PhotoLink'; import { useRouter } from 'next/navigation'; import { pathForPhoto } from '@/app/paths'; diff --git a/src/photo/PhotoShareModal.tsx b/src/photo/PhotoShareModal.tsx index 1a376997..bcf5167c 100644 --- a/src/photo/PhotoShareModal.tsx +++ b/src/photo/PhotoShareModal.tsx @@ -1,7 +1,7 @@ import PhotoOGTile from '@/photo/PhotoOGTile'; import { absolutePathForPhoto } from '@/app/paths'; import { Photo } from '.'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import ShareModal from '@/share/ShareModal'; export default function PhotoShareModal( diff --git a/src/photo/PhotoSmall.tsx b/src/photo/PhotoSmall.tsx index 96224d72..e1e1f594 100644 --- a/src/photo/PhotoSmall.tsx +++ b/src/photo/PhotoSmall.tsx @@ -3,7 +3,7 @@ import { altTextForPhoto, doesPhotoNeedBlurCompatibility, } from '.'; -import { PhotoSetCategory } from './set'; +import { PhotoSetCategory } from '../category/set'; import ImageSmall from '@/components/image/ImageSmall'; import Link from 'next/link'; import { clsx } from 'clsx/lite'; diff --git a/src/photo/db/index.ts b/src/photo/db/index.ts index b39aa52d..c58aaa48 100644 --- a/src/photo/db/index.ts +++ b/src/photo/db/index.ts @@ -1,6 +1,6 @@ import { PRIORITY_ORDER_ENABLED } from '@/app/config'; import { parameterize } from '@/utility/string'; -import { PhotoSetCategory } from '../set'; +import { PhotoSetCategory } from '../../category/set'; import { Camera } from '@/camera'; import { Lens } from '@/lens'; diff --git a/src/recipe/RecipeShareModal.tsx b/src/recipe/RecipeShareModal.tsx index 3c7c6bfb..caf0f18d 100644 --- a/src/recipe/RecipeShareModal.tsx +++ b/src/recipe/RecipeShareModal.tsx @@ -1,5 +1,5 @@ import { absolutePathForRecipe } from '@/app/paths'; -import { PhotoSetAttributes } from '../photo/set'; +import { PhotoSetAttributes } from '../category/set'; import ShareModal from '@/share/ShareModal'; import { shareTextForRecipe } from '.'; import RecipeOGTile from './RecipeOGTile'; diff --git a/src/share/index.ts b/src/share/index.ts index 86a7f305..faffbe84 100644 --- a/src/share/index.ts +++ b/src/share/index.ts @@ -1,5 +1,5 @@ import { Photo } from '@/photo'; -import { PhotoSetAttributes, PhotoSetCategory } from '@/photo/set'; +import { PhotoSetAttributes, PhotoSetCategory } from '@/category/set'; import { absolutePathForCameraImage, absolutePathForFilmSimulationImage, diff --git a/src/simulation/FilmSimulationShareModal.tsx b/src/simulation/FilmSimulationShareModal.tsx index f820ed27..1cdd98df 100644 --- a/src/simulation/FilmSimulationShareModal.tsx +++ b/src/simulation/FilmSimulationShareModal.tsx @@ -1,5 +1,5 @@ import { absolutePathForFilmSimulation } from '@/app/paths'; -import { PhotoSetAttributes } from '../photo/set'; +import { PhotoSetAttributes } from '../category/set'; import ShareModal from '@/share/ShareModal'; import FilmSimulationOGTile from './FilmSimulationOGTile'; import { FilmSimulation, shareTextForFilmSimulation } from '.'; diff --git a/src/tag/TagShareModal.tsx b/src/tag/TagShareModal.tsx index 35f1d1d0..3c38fc3c 100644 --- a/src/tag/TagShareModal.tsx +++ b/src/tag/TagShareModal.tsx @@ -1,5 +1,5 @@ import { absolutePathForTag } from '@/app/paths'; -import { PhotoSetAttributes } from '../photo/set'; +import { PhotoSetAttributes } from '../category/set'; import ShareModal from '@/share/ShareModal'; import TagOGTile from './TagOGTile'; import { shareTextForTag } from '.';