Skip to content

Commit 1508a97

Browse files
committed
Rename src/app-core to src/app
1 parent 2d6d8fc commit 1508a97

File tree

139 files changed

+164
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+164
-164
lines changed

__tests__/github.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
getGitHubMeta,
33
getGitHubPublicFork,
44
} from '@/platforms/github';
5-
import { TEMPLATE_REPO_OWNER, TEMPLATE_REPO_NAME } from '@/app-core/config';
5+
import { TEMPLATE_REPO_OWNER, TEMPLATE_REPO_NAME } from '@/app/config';
66

77
describe('GitHub', () => {
88
it('fetches base repo meta', async () => {

__tests__/path.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
isPathProtected,
1313
isPathTag,
1414
isPathTagPhoto,
15-
} from '@/app-core/paths';
15+
} from '@/app/paths';
1616
import { TAG_HIDDEN } from '@/tag';
1717

1818
const PHOTO_ID = 'UsKSGcbt';

app/admin/outdated/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getPhotos } from '@/photo/db/query';
22
import { OUTDATED_THRESHOLD } from '@/photo';
33
import AdminOutdatedClient from '@/admin/AdminOutdatedClient';
4-
import { AI_TEXT_GENERATION_ENABLED } from '@/app-core/config';
4+
import { AI_TEXT_GENERATION_ENABLED } from '@/app/config';
55

66
export const maxDuration = 60;
77

app/admin/photos/[photoId]/edit/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { redirect } from 'next/navigation';
22
import { getPhotoNoStore, getUniqueTagsCached } from '@/photo/cache';
3-
import { PATH_ADMIN } from '@/app-core/paths';
3+
import { PATH_ADMIN } from '@/app/paths';
44
import PhotoEditPageClient from '@/photo/PhotoEditPageClient';
55
import {
66
AI_TEXT_GENERATION_ENABLED,
77
BLUR_ENABLED,
88
IS_PREVIEW,
9-
} from '@/app-core/config';
9+
} from '@/app/config';
1010
import { blurImageFromUrl, resizeImageFromUrl } from '@/photo/server';
1111
import { getNextImageUrlForManipulation } from '@/platforms/next-image';
1212

app/admin/tags/[tag]/edit/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AdminChildPage from '@/components/AdminChildPage';
22
import { redirect } from 'next/navigation';
33
import { getPhotosCached } from '@/photo/cache';
44
import TagForm from '@/tag/TagForm';
5-
import { PATH_ADMIN, PATH_ADMIN_TAGS, pathForTag } from '@/app-core/paths';
5+
import { PATH_ADMIN, PATH_ADMIN_TAGS, pathForTag } from '@/app/paths';
66
import PhotoLightbox from '@/photo/PhotoLightbox';
77
import { getPhotosMeta } from '@/photo/db/query';
88
import AdminTagBadge from '@/admin/AdminTagBadge';

app/admin/uploads/[uploadPath]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PATH_ADMIN } from '@/app-core/paths';
1+
import { PATH_ADMIN } from '@/app/paths';
22
import { extractImageDataFromBlobPath } from '@/photo/server';
33
import { redirect } from 'next/navigation';
44
import { getUniqueTagsCached } from '@/photo/cache';
@@ -7,7 +7,7 @@ import {
77
AI_TEXT_AUTO_GENERATED_FIELDS,
88
AI_TEXT_GENERATION_ENABLED,
99
BLUR_ENABLED,
10-
} from '@/app-core/config';
10+
} from '@/app/config';
1111
import ErrorNote from '@/components/ErrorNote';
1212

1313
export const maxDuration = 60;

app/api/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { getPhotosCached } from '@/photo/cache';
2-
import { API_PHOTO_REQUEST_LIMIT, formatPhotoForApi } from '@/app-core/api';
2+
import { API_PHOTO_REQUEST_LIMIT, formatPhotoForApi } from '@/app/api';
33
import {
44
BASE_URL,
55
PUBLIC_API_ENABLED,
66
SITE_TITLE,
7-
} from '@/app-core/config';
7+
} from '@/app/config';
88

99
export const dynamic = 'force-dynamic';
1010

app/api/storage/presigned-url/[key]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
cloudflareR2Client,
88
cloudflareR2PutObjectCommandForKey,
99
} from '@/platforms/storage/cloudflare-r2';
10-
import { CURRENT_STORAGE } from '@/app-core/config';
10+
import { CURRENT_STORAGE } from '@/app/config';
1111
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
1212

1313
export async function GET(

app/film/[simulation]/[photoId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
PATH_ROOT,
1010
absolutePathForPhoto,
1111
absolutePathForPhotoImage,
12-
} from '@/app-core/paths';
12+
} from '@/app/paths';
1313
import PhotoDetailPage from '@/photo/PhotoDetailPage';
1414
import { FilmSimulation } from '@/simulation';
1515
import {

app/film/[simulation]/image/route.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import {
66
import FilmSimulationImageResponse from
77
'@/image-response/FilmSimulationImageResponse';
88
import { FilmSimulation } from '@/simulation';
9-
import { getIBMPlexMonoMedium } from '@/app-core/font';
9+
import { getIBMPlexMonoMedium } from '@/app/font';
1010
import { ImageResponse } from 'next/og';
1111
import { getImageResponseCacheControlHeaders } from '@/image-response/cache';
1212
import { GENERATE_STATIC_PARAMS_LIMIT } from '@/photo/db';
1313
import { getUniqueFilmSimulations } from '@/photo/db/query';
1414
import {
1515
STATICALLY_OPTIMIZED_PHOTO_CATEGORY_OG_IMAGES,
1616
IS_PRODUCTION,
17-
} from '@/app-core/config';
17+
} from '@/app/config';
1818

1919
export let generateStaticParams:
2020
(() => Promise<{ simulation: FilmSimulation }[]>) | undefined = undefined;

0 commit comments

Comments
 (0)