format code

remove end of line
This commit is contained in:
DefectingCat
2023-05-17 14:58:22 +08:00
parent 221e72d783
commit b19914b68a
34 changed files with 38 additions and 48 deletions

View File

@ -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
} }

View File

@ -36,4 +36,4 @@ export default async function Page({ params }: { params: { page: string } }) {
/> />
</> </>
); );
} }

View File

@ -12,4 +12,4 @@ const Loading = () => {
); );
}; };
export default Loading; export default Loading;

View File

@ -31,4 +31,4 @@ export default async function Page() {
/> />
</> </>
); );
} }

View File

@ -59,4 +59,4 @@ const PostCardLoading = () => {
); );
}; };
export default memo(PostCardLoading); export default memo(PostCardLoading);

View File

@ -51,4 +51,4 @@ const PostCard = ({ post }: Props) => {
); );
}; };
export default memo(PostCard); export default memo(PostCard);

View File

@ -63,4 +63,4 @@ export default async function Page({
</main> </main>
</> </>
); );
} }

View File

@ -8,4 +8,4 @@ export default async function PageLayout({
children: ReactNode; children: ReactNode;
}) { }) {
return <>{children}</>; return <>{children}</>;
} }

View File

@ -29,4 +29,4 @@ export default async function PageLayout({
</main> </main>
</> </>
); );
} }

View File

@ -103,4 +103,4 @@ const HomeModel = () => {
); );
}; };
export default HomeModel; export default HomeModel;

View File

@ -51,4 +51,4 @@ export default function RootLayout({
</body> </body>
</html> </html>
); );
} }

View File

@ -161,4 +161,4 @@ const HeadBar = () => {
); );
}; };
export default memo(HeadBar); export default memo(HeadBar);

View File

@ -70,4 +70,4 @@ const Page = async ({
); );
}; };
export default Page; export default Page;

View File

@ -33,4 +33,4 @@ export default function Page() {
</div> </div>
</main> </main>
); );
} }

View File

@ -18,4 +18,4 @@ const components = {
RUACodepen, RUACodepen,
}; };
export default components; export default components;

View File

@ -19,4 +19,4 @@ const Image = ({ alt, ...rest }: Props) => {
); );
}; };
export default memo(Image); export default memo(Image);

View File

@ -44,4 +44,4 @@ const Pre = ({ ...rest }: Props) => {
); );
}; };
export default memo(Pre); export default memo(Pre);

View File

@ -26,4 +26,4 @@ const PostComment = () => {
); );
}; };
export default memo(PostComment); export default memo(PostComment);

View File

@ -31,4 +31,4 @@ const PostCommnetLine = () => {
); );
}; };
export default memo(PostCommnetLine); export default memo(PostCommnetLine);

View File

@ -79,4 +79,4 @@ const PostToc = ({ toc, tocLength }: Props) => {
); );
}; };
export default memo(PostToc); export default memo(PostToc);

View File

@ -66,4 +66,4 @@ const RUACodeSandbox = ({ url }: Props) => {
); );
}; };
export default memo(RUACodeSandbox); export default memo(RUACodeSandbox);

View File

@ -82,4 +82,4 @@ const RUACodepen = ({ defaultTab, url }: Props) => {
); );
}; };
export default memo(RUACodepen); export default memo(RUACodepen);

View File

@ -22,4 +22,4 @@ const RUASandpack = ({ ...rest }: Props) => {
); );
}; };
export default memo(RUASandpack); export default memo(RUASandpack);

View File

@ -58,4 +58,4 @@ const Tab = ({ defaultValue, children }: Props) => {
); );
}; };
export default memo(Tab); export default memo(Tab);

View File

@ -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,

View File

@ -31,4 +31,4 @@ const fonts = {
poppins, poppins,
}; };
export default fonts; export default fonts;

View File

@ -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);
}; };

View File

@ -66,4 +66,4 @@
"tailwindcss": "^3.3.2", "tailwindcss": "^3.3.2",
"typescript": "5.0.4" "typescript": "5.0.4"
} }
} }

View File

@ -13,4 +13,4 @@ const useMainStore = create<MainStore>()((set) => ({
})), })),
})); }));
export default useMainStore; export default useMainStore;

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -45,4 +45,4 @@ module.exports = {
}, },
}, },
plugins: [], plugins: [],
}; };

View File

@ -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"
]
} }