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.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>
</>
);
}
}

View File

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

View File

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

View File

@ -18,4 +18,4 @@ const components = {
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 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,

View File

@ -31,4 +31,4 @@ const fonts = {
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
camera.lookAt(boxCenter.x, boxCenter.y, boxCenter.z);
};
};

View File

@ -66,4 +66,4 @@
"tailwindcss": "^3.3.2",
"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);
/* 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;
}
}

View File

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

View File

@ -372,4 +372,4 @@ h6:hover::before {
#article .cm-editor .cm-line {
font-size: 15px;
font-family: var(--font-jetbrains-mono), -apple-system, monospace;
}
}

View File

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

View File

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