mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
add slug page
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import CopyButton from 'components/post/copy-button';
|
||||
import useCopyToClipboard from 'lib/hooks/use-copy-to-clipboard';
|
||||
@ -42,4 +44,4 @@ const Pre = ({ ...rest }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(Pre);
|
||||
export default memo(Pre);
|
@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import Giscus from '@giscus/react';
|
||||
import { useTheme } from 'next-themes';
|
||||
import { memo } from 'react';
|
||||
@ -24,4 +26,4 @@ const PostComment = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(PostComment);
|
||||
export default memo(PostComment);
|
@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import { useTheme } from 'next-themes';
|
||||
import Image from 'next/image';
|
||||
import { memo } from 'react';
|
||||
@ -29,4 +31,4 @@ const PostCommnetLine = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(PostCommnetLine);
|
||||
export default memo(PostCommnetLine);
|
@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import Anchor from 'components/mdx/anchor';
|
||||
import { SingleToc } from 'lib/utils';
|
||||
@ -77,4 +79,4 @@ const PostToc = ({ toc, tocLength }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(PostToc);
|
||||
export default memo(PostToc);
|
@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import useInView from 'lib/hooks/use-in-view';
|
||||
import { useTheme } from 'next-themes';
|
||||
@ -64,4 +66,4 @@ const RUACodeSandbox = ({ url }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(RUACodeSandbox);
|
||||
export default memo(RUACodeSandbox);
|
@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import useInView from 'lib/hooks/use-in-view';
|
||||
import { useTheme } from 'next-themes';
|
||||
@ -80,4 +82,4 @@ const RUACodepen = ({ defaultTab, url }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(RUACodepen);
|
||||
export default memo(RUACodepen);
|
@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import { Sandpack, SandpackProps } from '@codesandbox/sandpack-react';
|
||||
import { useTheme } from 'next-themes';
|
||||
import { memo } from 'react';
|
||||
@ -20,4 +22,4 @@ const RUASandpack = ({ ...rest }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(RUASandpack);
|
||||
export default memo(RUASandpack);
|
@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import React, { memo, useState } from 'react';
|
||||
import { ItemProps } from './tab-item';
|
||||
@ -56,4 +58,4 @@ const Tab = ({ defaultValue, children }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(Tab);
|
||||
export default memo(Tab);
|
Reference in New Issue
Block a user