mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
chore(deps): add prettier organize import
format code
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { AnchorHTMLAttributes, forwardRef, memo } from 'react';
|
||||
import clsx from 'clsx';
|
||||
import { AnchorHTMLAttributes, forwardRef, memo } from 'react';
|
||||
import { FiExternalLink } from 'react-icons/fi';
|
||||
|
||||
interface Props extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
||||
|
@ -1,13 +1,13 @@
|
||||
import GistCode from 'components/common/gist-code';
|
||||
import Anchor from 'components/mdx/anchor';
|
||||
import Image from 'components/mdx/image';
|
||||
import Paragraph from 'components/mdx/paragraph';
|
||||
import Pre from 'components/mdx/pre';
|
||||
import RUACodepen from 'components/rua/rua-codepen';
|
||||
import RUACodeSandbox from 'components/rua/rua-code-sandbox';
|
||||
import RUACodepen from 'components/rua/rua-codepen';
|
||||
import RUASandpack from 'components/rua/rua-sandpack';
|
||||
import Tab from 'components/rua/tab';
|
||||
import TabItem from 'components/rua/tab/tab-item';
|
||||
import GistCode from 'components/common/gist-code';
|
||||
import Paragraph from 'components/mdx/paragraph';
|
||||
|
||||
const components = {
|
||||
RUASandpack,
|
||||
|
@ -1,14 +1,6 @@
|
||||
import clsx from 'clsx';
|
||||
import CopyButton from 'components/post/copy-button';
|
||||
import CopyCode from 'components/post/copy-code';
|
||||
import useCopyToClipboard from 'lib/hooks/use-copy-to-clipboard';
|
||||
import {
|
||||
DetailedHTMLProps,
|
||||
HTMLAttributes,
|
||||
memo,
|
||||
useCallback,
|
||||
useRef,
|
||||
} from 'react';
|
||||
import { DetailedHTMLProps, HTMLAttributes, memo } from 'react';
|
||||
|
||||
type Props = {} & DetailedHTMLProps<
|
||||
HTMLAttributes<HTMLPreElement>,
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
import { Canvas } from '@react-three/fiber';
|
||||
import clsx from 'clsx';
|
||||
import Loading from 'components/rua/loading/rua-loading';
|
||||
import { Suspense, lazy } from 'react';
|
||||
import useStore from 'store';
|
||||
import Loading from 'components/rua/loading/rua-loading';
|
||||
|
||||
const CloudModel = lazy(() => import('components/models/cloud-model'));
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import Link from 'next/link';
|
||||
import { Post } from 'types';
|
||||
import clsx from 'clsx';
|
||||
import Link from 'next/link';
|
||||
import { memo } from 'react';
|
||||
import { Post } from 'types';
|
||||
|
||||
interface Props {
|
||||
post: Post;
|
||||
|
@ -1,11 +1,11 @@
|
||||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import { THEME_CATPUCCIN_MAP } from 'lib/consts';
|
||||
import useInView from 'lib/hooks/use-in-view';
|
||||
import { useTheme } from 'next-themes';
|
||||
import { memo, useEffect, useState } from 'react';
|
||||
import RUALoading from './loading/rua-loading';
|
||||
import { THEME_CATPUCCIN_MAP, THEME_MAP } from 'lib/consts';
|
||||
|
||||
const pattern =
|
||||
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)/;
|
||||
|
Reference in New Issue
Block a user