mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
format code
remove end of line
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"typescript.tsdk": "node_modules/.pnpm/typescript@5.0.2/node_modules/typescript/lib",
|
"typescript.tsdk": "node_modules/.pnpm/typescript@5.0.2/node_modules/typescript/lib",
|
||||||
"typescript.enablePromptUseWorkspaceTsdk": true
|
"typescript.enablePromptUseWorkspaceTsdk": true
|
||||||
}
|
}
|
||||||
|
@ -36,4 +36,4 @@ export default async function Page({ params }: { params: { page: string } }) {
|
|||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -12,4 +12,4 @@ const Loading = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Loading;
|
export default Loading;
|
||||||
|
@ -31,4 +31,4 @@ export default async function Page() {
|
|||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -59,4 +59,4 @@ const PostCardLoading = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(PostCardLoading);
|
export default memo(PostCardLoading);
|
||||||
|
@ -51,4 +51,4 @@ const PostCard = ({ post }: Props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(PostCard);
|
export default memo(PostCard);
|
||||||
|
@ -63,4 +63,4 @@ export default async function Page({
|
|||||||
</main>
|
</main>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -8,4 +8,4 @@ export default async function PageLayout({
|
|||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return <>{children}</>;
|
return <>{children}</>;
|
||||||
}
|
}
|
||||||
|
@ -29,4 +29,4 @@ export default async function PageLayout({
|
|||||||
</main>
|
</main>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -103,4 +103,4 @@ const HomeModel = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default HomeModel;
|
export default HomeModel;
|
||||||
|
@ -51,4 +51,4 @@ export default function RootLayout({
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -161,4 +161,4 @@ const HeadBar = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(HeadBar);
|
export default memo(HeadBar);
|
||||||
|
@ -70,4 +70,4 @@ const Page = async ({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Page;
|
export default Page;
|
||||||
|
@ -33,4 +33,4 @@ export default function Page() {
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -18,4 +18,4 @@ const components = {
|
|||||||
RUACodepen,
|
RUACodepen,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default components;
|
export default components;
|
||||||
|
@ -19,4 +19,4 @@ const Image = ({ alt, ...rest }: Props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(Image);
|
export default memo(Image);
|
||||||
|
@ -44,4 +44,4 @@ const Pre = ({ ...rest }: Props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(Pre);
|
export default memo(Pre);
|
||||||
|
@ -26,4 +26,4 @@ const PostComment = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(PostComment);
|
export default memo(PostComment);
|
||||||
|
@ -31,4 +31,4 @@ const PostCommnetLine = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(PostCommnetLine);
|
export default memo(PostCommnetLine);
|
||||||
|
@ -79,4 +79,4 @@ const PostToc = ({ toc, tocLength }: Props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(PostToc);
|
export default memo(PostToc);
|
||||||
|
@ -66,4 +66,4 @@ const RUACodeSandbox = ({ url }: Props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(RUACodeSandbox);
|
export default memo(RUACodeSandbox);
|
||||||
|
@ -82,4 +82,4 @@ const RUACodepen = ({ defaultTab, url }: Props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(RUACodepen);
|
export default memo(RUACodepen);
|
||||||
|
@ -22,4 +22,4 @@ const RUASandpack = ({ ...rest }: Props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(RUASandpack);
|
export default memo(RUASandpack);
|
||||||
|
@ -58,4 +58,4 @@ const Tab = ({ defaultValue, children }: Props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default memo(Tab);
|
export default memo(Tab);
|
||||||
|
@ -4,7 +4,7 @@ import { GistsFile } from 'types';
|
|||||||
const password = process.env.NEXT_PUBLIC_GITHUB_API;
|
const password = process.env.NEXT_PUBLIC_GITHUB_API;
|
||||||
const host = process.env.NEXT_PUBLIC_GISTS_HOST ?? 'https://api.github.com';
|
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({
|
const octokit = new Octokit({
|
||||||
auth: password,
|
auth: password,
|
||||||
baseUrl: host,
|
baseUrl: host,
|
||||||
|
@ -31,4 +31,4 @@ const fonts = {
|
|||||||
poppins,
|
poppins,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default fonts;
|
export default fonts;
|
||||||
|
@ -150,4 +150,4 @@ export const frameArea = (
|
|||||||
|
|
||||||
// point the camera to look at the center of the box
|
// point the camera to look at the center of the box
|
||||||
camera.lookAt(boxCenter.x, boxCenter.y, boxCenter.z);
|
camera.lookAt(boxCenter.x, boxCenter.y, boxCenter.z);
|
||||||
};
|
};
|
||||||
|
@ -66,4 +66,4 @@
|
|||||||
"tailwindcss": "^3.3.2",
|
"tailwindcss": "^3.3.2",
|
||||||
"typescript": "5.0.4"
|
"typescript": "5.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,4 +13,4 @@ const useMainStore = create<MainStore>()((set) => ({
|
|||||||
})),
|
})),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export default useMainStore;
|
export default useMainStore;
|
||||||
|
@ -35,7 +35,8 @@
|
|||||||
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
||||||
/* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
|
/* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
|
||||||
monospace; */
|
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;
|
direction: ltr;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
@ -520,4 +521,4 @@ pre
|
|||||||
/* Fill colour of the handle */
|
/* Fill colour of the handle */
|
||||||
.dark .prism-previewer-easing.prism-previewer-easing circle {
|
.dark .prism-previewer-easing.prism-previewer-easing circle {
|
||||||
fill: transparent;
|
fill: transparent;
|
||||||
}
|
}
|
||||||
|
@ -433,4 +433,4 @@ pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection {
|
|||||||
/* Fill colour of the handle */
|
/* Fill colour of the handle */
|
||||||
.prism-previewer-easing.prism-previewer-easing circle {
|
.prism-previewer-easing.prism-previewer-easing circle {
|
||||||
fill: transparent;
|
fill: transparent;
|
||||||
}
|
}
|
||||||
|
@ -372,4 +372,4 @@ h6:hover::before {
|
|||||||
#article .cm-editor .cm-line {
|
#article .cm-editor .cm-line {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-family: var(--font-jetbrains-mono), -apple-system, monospace;
|
font-family: var(--font-jetbrains-mono), -apple-system, monospace;
|
||||||
}
|
}
|
||||||
|
@ -45,4 +45,4 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [],
|
plugins: [],
|
||||||
};
|
};
|
||||||
|
@ -2,11 +2,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
"lib": [
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"dom",
|
|
||||||
"dom.iterable",
|
|
||||||
"esnext"
|
|
||||||
],
|
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
@ -26,13 +22,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||||
"next-env.d.ts",
|
"exclude": ["node_modules"]
|
||||||
"**/*.ts",
|
|
||||||
"**/*.tsx",
|
|
||||||
".next/types/**/*.ts"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"node_modules"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user