From 53f63981c609af433737282ce25d78cb6d7db7cf Mon Sep 17 00:00:00 2001 From: Guus van Meerveld Date: Sat, 18 Feb 2023 22:26:03 +0100 Subject: [PATCH] Added import sorting to prettier config --- src/components/BestRepository.tsx | 5 +- src/components/FeaturedRepositories.tsx | 11 +- src/components/Footer.tsx | 10 +- src/components/LoginForm.tsx | 8 +- src/components/Post.tsx | 12 +- src/components/SignupForm.tsx | 8 +- src/components/ThemeChanger.tsx | 4 +- src/components/User.tsx | 9 +- src/components/footer.module.scss | 6 +- src/components/post.module.scss | 6 +- src/components/repositories.module.scss | 6 +- src/components/themeChanger.module.scss | 10 +- src/components/user.module.scss | 15 +- src/pages/404.module.scss | 12 +- src/pages/404.tsx | 4 +- src/pages/_app.tsx | 10 +- src/pages/admin.module.scss | 4 +- src/pages/admin.tsx | 8 +- src/pages/api/blog/new.ts | 8 +- src/pages/api/login.ts | 2 +- src/pages/api/logout.ts | 5 +- src/pages/api/settings.ts | 4 +- src/pages/api/signup.ts | 10 +- src/pages/blog/[id].module.scss | 4 +- src/pages/blog/[id].tsx | 10 +- src/pages/blog/blog.module.scss | 13 +- src/pages/blog/index.tsx | 7 +- src/pages/blog/new.module.scss | 6 +- src/pages/blog/new.tsx | 20 +-- src/pages/index.tsx | 18 +- src/pages/login.module.scss | 14 +- src/pages/login.tsx | 15 +- src/styles/_dark.scss | 210 ++++++++++++------------ src/styles/_variables.scss | 2 +- src/styles/globals.scss | 4 +- src/utils/git/fetch.ts | 4 +- src/utils/session.ts | 4 +- 37 files changed, 246 insertions(+), 262 deletions(-) diff --git a/src/components/BestRepository.tsx b/src/components/BestRepository.tsx index 052670a..b8656b9 100644 --- a/src/components/BestRepository.tsx +++ b/src/components/BestRepository.tsx @@ -1,9 +1,8 @@ import Link from "next/link"; - -import { FC } from "react"; +import { format as formatTimeAgo } from "timeago.js"; import z from "zod"; -import { format as formatTimeAgo } from "timeago.js"; +import { FC } from "react"; import { RepositoryResponse } from "@models/git/responses"; diff --git a/src/components/FeaturedRepositories.tsx b/src/components/FeaturedRepositories.tsx index ec19708..ab8faac 100644 --- a/src/components/FeaturedRepositories.tsx +++ b/src/components/FeaturedRepositories.tsx @@ -1,15 +1,14 @@ -import z from "zod"; -import { FC } from "react"; - +import Link from "next/link"; import { format as formatTimeAgo } from "timeago.js"; +import z from "zod"; -import Link from "next/link"; +import styles from "./repositories.module.scss"; -import multipleClassNames from "@utils/multipleClassNames"; +import { FC } from "react"; import { RepositoryResponse } from "@models/git/responses"; -import styles from "./repositories.module.scss"; +import multipleClassNames from "@utils/multipleClassNames"; const FeaturedRepositories: FC<{ repositories: z.infer[]; diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index dea584e..bc9f26b 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,12 +1,12 @@ -import { FC } from "react"; - import Link from "next/link"; -import multipleClassNames from "@utils/multipleClassNames"; -import { giteaServerUrl, giteaUsername } from "@utils/config"; - import styles from "./footer.module.scss"; +import { FC } from "react"; + +import { giteaServerUrl, giteaUsername } from "@utils/config"; +import multipleClassNames from "@utils/multipleClassNames"; + const Footer: FC = () => { return (