Skip to content

Commit

Permalink
refactor: refine file directory
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnrivers committed Dec 31, 2024
1 parent 0f8ddea commit dc22619
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/app/job/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetchPostContent } from '@/features/post/utils/fetchPostContent';
import { renderPostContent } from '@/features/post/utils/renderPostContent';
import { fetchPostContent } from '@/app/memo/_utils/fetchPostContent';
import { renderPostContent } from '@/app/memo/_utils/renderPostContent';
import { sharedMetadata } from '@/libs/utils/meta';
import type { Metadata } from 'next';

Expand Down
2 changes: 1 addition & 1 deletion src/app/memo/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PostImage } from '@/app/memo/_components/PostImage';
import { PostTag } from '@/app/memo/_components/PostTag';
import { getPostBySlug } from '@/app/memo/_utils/getPostBySlug';
import { getPosts } from '@/app/memo/_utils/getPosts';
import { renderPostContent } from '@/features/post/utils/renderPostContent';
import { renderPostContent } from '@/app/memo/_utils/renderPostContent';
import { getImageUrl } from '@/libs/api/cloudinary';
import { formatDate } from '@/libs/utils/date';
import { sharedMetadata } from '@/libs/utils/meta';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchPostImages } from '@/features/post/utils/fetchPostImages';
import { fetchPostImages } from '@/app/memo/_utils/fetchPostImages';
import { fetchBlocks } from '@/libs/api/notion/api/fetchBlocks';
import { cache } from 'react';

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/app/memo/_utils/getPostBySlug.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getCoverImageId } from '@/app/memo/_utils/cover';
import { fetchPostContent } from '@/features/post/utils/fetchPostContent';
import { fetchPostImages } from '@/features/post/utils/fetchPostImages';
import { fetchPostContent } from '@/app/memo/_utils/fetchPostContent';
import { fetchPostImages } from '@/app/memo/_utils/fetchPostImages';
import { fetchMemoPosts } from '@/libs/api/notion/api/fetchMemoPosts';
import { convertRichTextToPlainText } from '@/libs/api/notion/utils';
import { draftMode } from 'next/headers';
Expand Down
2 changes: 1 addition & 1 deletion src/app/memo/_utils/getPosts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getCoverImageId } from '@/app/memo/_utils/cover';
import { fetchPostImages } from '@/features/post/utils/fetchPostImages';
import { fetchPostImages } from '@/app/memo/_utils/fetchPostImages';
import { fetchMemoPosts } from '@/libs/api/notion/api/fetchMemoPosts';
import { convertRichTextToPlainText } from '@/libs/api/notion/utils';
import { draftMode } from 'next/headers';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type React from 'react';
import type { Block } from '@/libs/api/notion/api/fetchBlocks';
import type { fetchPostImages } from '@/features/post/utils/fetchPostImages';
import type { fetchPostImages } from '@/app/memo/_utils/fetchPostImages';
import { cn } from '@/libs/utils/classNames';
import { PostImage } from '@/app/memo/_components/PostImage';
import { convertRichTextToPlainText } from '@/libs/api/notion/utils';
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"exclude": ["node_modules", ".next"]
}

0 comments on commit dc22619

Please sign in to comment.