Restructure of components
This commit is contained in:
parent
8ac4a85010
commit
5df72c7ac2
14 changed files with 13 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { RecentlyUpdatedPosts } from '@/components/common/RecentlyUpdatedPosts'
|
import { RecentlyUpdatedPosts } from '@/components/post/RecentlyUpdatedPosts'
|
||||||
|
|
||||||
export default function WithRecentLayout({ children }: { children: React.ReactNode }) {
|
export default function WithRecentLayout({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { getAllPostsMeta } from '@/lib/posts'
|
import { getAllPostsMeta } from '@/lib/posts'
|
||||||
import { Post } from '@/components/common/Post'
|
import { Post } from '@/components/post/Post'
|
||||||
|
|
||||||
export default function BlogIndex() {
|
export default function BlogIndex() {
|
||||||
const posts = getAllPostsMeta()
|
const posts = getAllPostsMeta()
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { metadata } from '@/app/metadata'
|
import { metadata } from '@/app/metadata'
|
||||||
import { ImageWrapper } from '@/components/common/ImageWrapper'
|
import { ImageWrapper } from '@/components/content/ImageWrapper'
|
||||||
import { ShareLinks } from '@/components/common/ShareLinks'
|
import { ShareLinks } from '@/components/post/ShareLinks'
|
||||||
import { TableOfContents } from '@/components/common/TableOfContents'
|
import { TableOfContents } from '@/components/post/TableOfContents'
|
||||||
import { getAllPostSlugs, getNextAndPreviousPosts, getPostBySlug } from '@/lib/posts'
|
import { getAllPostSlugs, getNextAndPreviousPosts, getPostBySlug } from '@/lib/posts'
|
||||||
import { slugify } from '@/utils/slug'
|
import { slugify } from '@/utils/slug'
|
||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import { CopyButton } from './CopyButton'
|
import { CopyButton } from '../ui/CopyButton'
|
||||||
import { getTextContent } from '@/lib/react-node-text'
|
import { getTextContent } from '@/lib/react-node-text'
|
||||||
|
|
||||||
type CodeWrapperProps = {
|
type CodeWrapperProps = {
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
import { cn } from '@/utils/cn'
|
import { cn } from '@/utils/cn'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { usePathname } from 'next/navigation'
|
import { usePathname } from 'next/navigation'
|
||||||
import { ExternalLink } from '../common/ExternalLink'
|
import { ExternalLink } from '../ui/ExternalLink'
|
||||||
import { navItems } from './navItems'
|
import { navItems } from './navItems'
|
||||||
|
|
||||||
export function NavLinks() {
|
export function NavLinks() {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { ImageWrapper } from '@/components/common/ImageWrapper'
|
import { ImageWrapper } from '@/components/content/ImageWrapper'
|
||||||
import { cn } from '@/utils/cn'
|
import { cn } from '@/utils/cn'
|
||||||
import { PostMeta } from '@/types/Post.type'
|
import { PostMeta } from '@/types/Post.type'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { siBluesky, siX, siFacebook, siReddit } from 'simple-icons'
|
import { siBluesky, siX, siFacebook, siReddit } from 'simple-icons'
|
||||||
import { ExternalLink } from '@/components/common/ExternalLink'
|
import { ExternalLink } from '@/components/ui/ExternalLink'
|
||||||
|
|
||||||
type ShareLinksProps = {
|
type ShareLinksProps = {
|
||||||
url: string
|
url: string
|
||||||
|
|
@ -12,14 +12,14 @@ import rehypeReact from 'rehype-react'
|
||||||
import { cloneElement, isValidElement, type ReactElement, Fragment, type ReactNode } from 'react'
|
import { cloneElement, isValidElement, type ReactElement, Fragment, type ReactNode } from 'react'
|
||||||
import { jsx, jsxs } from 'react/jsx-runtime'
|
import { jsx, jsxs } from 'react/jsx-runtime'
|
||||||
import { rehypeCodeMeta } from './rehype-code-meta'
|
import { rehypeCodeMeta } from './rehype-code-meta'
|
||||||
import { CodeWrapper } from '@/components/common/CodeWrapper'
|
import { CodeWrapper } from '@/components/content/CodeWrapper'
|
||||||
import { ImageWrapper } from '@/components/common/ImageWrapper'
|
import { ImageWrapper } from '@/components/content/ImageWrapper'
|
||||||
import { ExternalLink } from '@/components/common/ExternalLink'
|
import { ExternalLink } from '@/components/ui/ExternalLink'
|
||||||
import readingTime from 'reading-time'
|
import readingTime from 'reading-time'
|
||||||
import { rehypeUnwrapImages } from './rehype-unwrap-images'
|
import { rehypeUnwrapImages } from './rehype-unwrap-images'
|
||||||
import { rehypeMermaidSsg } from './rehype-mermaid-ssg'
|
import { rehypeMermaidSsg } from './rehype-mermaid-ssg'
|
||||||
import { getTextContent, stripLeadingMatch } from './react-node-text'
|
import { getTextContent, stripLeadingMatch } from './react-node-text'
|
||||||
import { BlockquoteWrapper } from '@/components/common/BlockquoteWrapper'
|
import { BlockquoteWrapper } from '@/components/content/BlockquoteWrapper'
|
||||||
import type { NoteType } from '@/types/Note.type'
|
import type { NoteType } from '@/types/Note.type'
|
||||||
import { rehypeMark } from './rehype-mark'
|
import { rehypeMark } from './rehype-mark'
|
||||||
import { rehypeDefinition } from './rehype-definition'
|
import { rehypeDefinition } from './rehype-definition'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue