diff --git a/.vscode/settings.json b/.vscode/settings.json index ea41f0f..bd8e9ad 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { "typescript.tsdk": "node_modules/.pnpm/typescript@5.0.2/node_modules/typescript/lib", "typescript.enablePromptUseWorkspaceTsdk": true -} \ No newline at end of file +} diff --git a/app/blog/[page]/page.tsx b/app/blog/[page]/page.tsx index 3cbae61..bb2e908 100644 --- a/app/blog/[page]/page.tsx +++ b/app/blog/[page]/page.tsx @@ -36,4 +36,4 @@ export default async function Page({ params }: { params: { page: string } }) { /> ); -} \ No newline at end of file +} diff --git a/app/blog/loading.tsx b/app/blog/loading.tsx index aede694..624c120 100644 --- a/app/blog/loading.tsx +++ b/app/blog/loading.tsx @@ -12,4 +12,4 @@ const Loading = () => { ); }; -export default Loading; \ No newline at end of file +export default Loading; diff --git a/app/blog/page.tsx b/app/blog/page.tsx index aff552a..2bfa057 100644 --- a/app/blog/page.tsx +++ b/app/blog/page.tsx @@ -31,4 +31,4 @@ export default async function Page() { /> ); -} \ No newline at end of file +} diff --git a/app/blog/post-card-loading.tsx b/app/blog/post-card-loading.tsx index 1c03374..8b16eed 100644 --- a/app/blog/post-card-loading.tsx +++ b/app/blog/post-card-loading.tsx @@ -59,4 +59,4 @@ const PostCardLoading = () => { ); }; -export default memo(PostCardLoading); \ No newline at end of file +export default memo(PostCardLoading); diff --git a/app/blog/post-card.tsx b/app/blog/post-card.tsx index 99495a0..6ccfa29 100644 --- a/app/blog/post-card.tsx +++ b/app/blog/post-card.tsx @@ -51,4 +51,4 @@ const PostCard = ({ post }: Props) => { ); }; -export default memo(PostCard); \ No newline at end of file +export default memo(PostCard); diff --git a/app/g/[id]/page.tsx b/app/g/[id]/page.tsx index 29c9700..6e6ce9c 100644 --- a/app/g/[id]/page.tsx +++ b/app/g/[id]/page.tsx @@ -63,4 +63,4 @@ export default async function Page({ ); -} \ No newline at end of file +} diff --git a/app/g/layout.tsx b/app/g/layout.tsx index 0bcc9e5..ffede56 100644 --- a/app/g/layout.tsx +++ b/app/g/layout.tsx @@ -8,4 +8,4 @@ export default async function PageLayout({ children: ReactNode; }) { return <>{children}; -} \ No newline at end of file +} diff --git a/app/gists/layout.tsx b/app/gists/layout.tsx index 9c94570..f9e76b9 100644 --- a/app/gists/layout.tsx +++ b/app/gists/layout.tsx @@ -29,4 +29,4 @@ export default async function PageLayout({ ); -} \ No newline at end of file +} diff --git a/app/home-modle.tsx b/app/home-modle.tsx index 2710b98..1a2109c 100644 --- a/app/home-modle.tsx +++ b/app/home-modle.tsx @@ -103,4 +103,4 @@ const HomeModel = () => { ); }; -export default HomeModel; \ No newline at end of file +export default HomeModel; diff --git a/app/layout.tsx b/app/layout.tsx index 10ea360..9ae2bd8 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -51,4 +51,4 @@ export default function RootLayout({ ); -} \ No newline at end of file +} diff --git a/app/nav-bar.tsx b/app/nav-bar.tsx index b98bcc3..4d9033e 100644 --- a/app/nav-bar.tsx +++ b/app/nav-bar.tsx @@ -161,4 +161,4 @@ const HeadBar = () => { ); }; -export default memo(HeadBar); \ No newline at end of file +export default memo(HeadBar); diff --git a/app/p/[slug]/page.tsx b/app/p/[slug]/page.tsx index 0c07480..7f8ac32 100644 --- a/app/p/[slug]/page.tsx +++ b/app/p/[slug]/page.tsx @@ -70,4 +70,4 @@ const Page = async ({ ); }; -export default Page; \ No newline at end of file +export default Page; diff --git a/app/page.tsx b/app/page.tsx index 9a1ffed..96b996e 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -33,4 +33,4 @@ export default function Page() { ); -} \ No newline at end of file +} diff --git a/components/mdx/components.ts b/components/mdx/components.ts index 0fbc60a..5239dee 100644 --- a/components/mdx/components.ts +++ b/components/mdx/components.ts @@ -18,4 +18,4 @@ const components = { RUACodepen, }; -export default components; \ No newline at end of file +export default components; diff --git a/components/mdx/image.tsx b/components/mdx/image.tsx index 9381b46..9bd6296 100644 --- a/components/mdx/image.tsx +++ b/components/mdx/image.tsx @@ -19,4 +19,4 @@ const Image = ({ alt, ...rest }: Props) => { ); }; -export default memo(Image); \ No newline at end of file +export default memo(Image); diff --git a/components/mdx/pre.tsx b/components/mdx/pre.tsx index cd41098..0a93f2a 100644 --- a/components/mdx/pre.tsx +++ b/components/mdx/pre.tsx @@ -44,4 +44,4 @@ const Pre = ({ ...rest }: Props) => { ); }; -export default memo(Pre); \ No newline at end of file +export default memo(Pre); diff --git a/components/post/post-comment.tsx b/components/post/post-comment.tsx index 6419e03..0cdc33a 100644 --- a/components/post/post-comment.tsx +++ b/components/post/post-comment.tsx @@ -26,4 +26,4 @@ const PostComment = () => { ); }; -export default memo(PostComment); \ No newline at end of file +export default memo(PostComment); diff --git a/components/post/post-commnet-line.tsx b/components/post/post-commnet-line.tsx index ec007a9..28f7e20 100644 --- a/components/post/post-commnet-line.tsx +++ b/components/post/post-commnet-line.tsx @@ -31,4 +31,4 @@ const PostCommnetLine = () => { ); }; -export default memo(PostCommnetLine); \ No newline at end of file +export default memo(PostCommnetLine); diff --git a/components/post/post-toc.tsx b/components/post/post-toc.tsx index e418fed..9bdb38c 100644 --- a/components/post/post-toc.tsx +++ b/components/post/post-toc.tsx @@ -79,4 +79,4 @@ const PostToc = ({ toc, tocLength }: Props) => { ); }; -export default memo(PostToc); \ No newline at end of file +export default memo(PostToc); diff --git a/components/rua/rua-code-sandbox.tsx b/components/rua/rua-code-sandbox.tsx index 389659f..41406be 100644 --- a/components/rua/rua-code-sandbox.tsx +++ b/components/rua/rua-code-sandbox.tsx @@ -66,4 +66,4 @@ const RUACodeSandbox = ({ url }: Props) => { ); }; -export default memo(RUACodeSandbox); \ No newline at end of file +export default memo(RUACodeSandbox); diff --git a/components/rua/rua-codepen.tsx b/components/rua/rua-codepen.tsx index 82096ed..acd5a1e 100644 --- a/components/rua/rua-codepen.tsx +++ b/components/rua/rua-codepen.tsx @@ -82,4 +82,4 @@ const RUACodepen = ({ defaultTab, url }: Props) => { ); }; -export default memo(RUACodepen); \ No newline at end of file +export default memo(RUACodepen); diff --git a/components/rua/rua-sandpack.tsx b/components/rua/rua-sandpack.tsx index 67f767c..7d10fa2 100644 --- a/components/rua/rua-sandpack.tsx +++ b/components/rua/rua-sandpack.tsx @@ -22,4 +22,4 @@ const RUASandpack = ({ ...rest }: Props) => { ); }; -export default memo(RUASandpack); \ No newline at end of file +export default memo(RUASandpack); diff --git a/components/rua/tab/index.tsx b/components/rua/tab/index.tsx index f8a5057..9ee49c6 100644 --- a/components/rua/tab/index.tsx +++ b/components/rua/tab/index.tsx @@ -58,4 +58,4 @@ const Tab = ({ defaultValue, children }: Props) => { ); }; -export default memo(Tab); \ No newline at end of file +export default memo(Tab); diff --git a/lib/fetcher.ts b/lib/fetcher.ts index 5fd638a..3e67082 100644 --- a/lib/fetcher.ts +++ b/lib/fetcher.ts @@ -4,7 +4,7 @@ import { GistsFile } from 'types'; const password = process.env.NEXT_PUBLIC_GITHUB_API; const host = process.env.NEXT_PUBLIC_GISTS_HOST ?? 'https://api.github.com'; -if (!password) throw new Error('No GitHub token detected.') +if (!password) throw new Error('No GitHub token detected.'); const octokit = new Octokit({ auth: password, baseUrl: host, diff --git a/lib/fonts.ts b/lib/fonts.ts index abe26fa..badf211 100644 --- a/lib/fonts.ts +++ b/lib/fonts.ts @@ -31,4 +31,4 @@ const fonts = { poppins, }; -export default fonts; \ No newline at end of file +export default fonts; diff --git a/lib/utils/index.ts b/lib/utils/index.ts index 72ba2cc..e302397 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -150,4 +150,4 @@ export const frameArea = ( // point the camera to look at the center of the box camera.lookAt(boxCenter.x, boxCenter.y, boxCenter.z); -}; \ No newline at end of file +}; diff --git a/package.json b/package.json index 949837e..f8543dd 100644 --- a/package.json +++ b/package.json @@ -66,4 +66,4 @@ "tailwindcss": "^3.3.2", "typescript": "5.0.4" } -} \ No newline at end of file +} diff --git a/store/index.ts b/store/index.ts index 3affe96..3946499 100644 --- a/store/index.ts +++ b/store/index.ts @@ -13,4 +13,4 @@ const useMainStore = create()((set) => ({ })), })); -export default useMainStore; \ No newline at end of file +export default useMainStore; diff --git a/styles/prism-one-dark.css b/styles/prism-one-dark.css index bd95ccd..bb944a0 100644 --- a/styles/prism-one-dark.css +++ b/styles/prism-one-dark.css @@ -35,7 +35,8 @@ text-shadow: 0 1px rgba(0, 0, 0, 0.3); /* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace; */ - font-family: var(--font-jetbrains-mono), -apple-system, 'DejaVu Sans Mono', monospace; + font-family: var(--font-jetbrains-mono), -apple-system, 'DejaVu Sans Mono', + monospace; direction: ltr; text-align: left; white-space: pre; @@ -520,4 +521,4 @@ pre /* Fill colour of the handle */ .dark .prism-previewer-easing.prism-previewer-easing circle { fill: transparent; -} \ No newline at end of file +} diff --git a/styles/prism-one-light.css b/styles/prism-one-light.css index c5e3358..48dd2ca 100644 --- a/styles/prism-one-light.css +++ b/styles/prism-one-light.css @@ -433,4 +433,4 @@ pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection { /* Fill colour of the handle */ .prism-previewer-easing.prism-previewer-easing circle { fill: transparent; -} \ No newline at end of file +} diff --git a/styles/rua.css b/styles/rua.css index 2c2e12e..7c8d4b1 100644 --- a/styles/rua.css +++ b/styles/rua.css @@ -372,4 +372,4 @@ h6:hover::before { #article .cm-editor .cm-line { font-size: 15px; font-family: var(--font-jetbrains-mono), -apple-system, monospace; -} \ No newline at end of file +} diff --git a/tailwind.config.js b/tailwind.config.js index 0f81925..a2cca56 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -45,4 +45,4 @@ module.exports = { }, }, plugins: [], -}; \ No newline at end of file +}; diff --git a/tsconfig.json b/tsconfig.json index ee13d46..2914827 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,11 +2,7 @@ "compilerOptions": { "baseUrl": ".", "target": "es6", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -26,13 +22,6 @@ } ] }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts" - ], - "exclude": [ - "node_modules" - ] + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] }