From 356c8fc3e9ca79d67225b4cd7e8ac74ef2b67819 Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Sat, 18 May 2024 15:19:07 +0700 Subject: [PATCH] chore: prettier format --- src/app/highlight.css | 9 ++------- src/components/Explorer/Actions.tsx | 7 +++---- src/components/Explorer/Layout.tsx | 5 ++--- src/components/Layout/Navbar.tsx | 3 +-- src/components/Layout/NotFound.tsx | 3 +-- src/components/Layout/Password.tsx | 3 +-- src/components/Preview/Document.tsx | 3 +-- src/components/Preview/Image.tsx | 3 +-- src/components/Preview/Information.tsx | 3 +-- src/components/Preview/Manga.tsx | 3 +-- src/components/Preview/Rich.tsx | 3 +-- 11 files changed, 15 insertions(+), 30 deletions(-) diff --git a/src/app/highlight.css b/src/app/highlight.css index cf8359e..54e65c1 100644 --- a/src/app/highlight.css +++ b/src/app/highlight.css @@ -204,10 +204,7 @@ pre { color: var(--hue-3); } -.language-javascript - .token.template-string - > .token.interpolation - > .token.interpolation-punctuation.punctuation { +.language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation { color: var(--hue-5-2); } @@ -335,9 +332,7 @@ div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus { /* Hovering over a linkable line number (in the gutter area) */ /* Requires Line Numbers plugin as well */ -pre[id].linkable-line-numbers.linkable-line-numbers - span.line-numbers-rows - > span:hover:before { +pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before { background-color: var(--syntax-cursor-line); } diff --git a/src/components/Explorer/Actions.tsx b/src/components/Explorer/Actions.tsx index 4c9c950..da9daf1 100644 --- a/src/components/Explorer/Actions.tsx +++ b/src/components/Explorer/Actions.tsx @@ -29,14 +29,13 @@ import { Input } from "~/components/ui/input"; import { Separator } from "~/components/ui/separator"; import { Skeleton } from "~/components/ui/skeleton"; -import { bytesToReadable } from "~/utils/bytesFormat"; -import { cn } from "~/utils/cn"; -import { getPreviewIcon } from "~/utils/previewHelper"; - import { LayoutContext } from "~/context/layoutContext"; import useLoading from "~/hooks/useLoading"; import useMediaQuery from "~/hooks/useMediaQuery"; import useRouter from "~/hooks/usePRouter"; +import { bytesToReadable } from "~/utils/bytesFormat"; +import { cn } from "~/utils/cn"; +import { getPreviewIcon } from "~/utils/previewHelper"; import { Schema_File } from "~/types/schema"; diff --git a/src/components/Explorer/Layout.tsx b/src/components/Explorer/Layout.tsx index 0236238..35d547c 100644 --- a/src/components/Explorer/Layout.tsx +++ b/src/components/Explorer/Layout.tsx @@ -10,11 +10,10 @@ import { Grid, List } from "~/components/Explorer"; import { ButtonLoading, Icon, Loader, Status } from "~/components/Global"; import { Button } from "~/components/ui/button"; -import { cn } from "~/utils/cn"; -import { decryptData } from "~/utils/encryptionHelper"; - import { LayoutContext } from "~/context/layoutContext"; import useLoading from "~/hooks/useLoading"; +import { cn } from "~/utils/cn"; +import { decryptData } from "~/utils/encryptionHelper"; import { ButtonState, Schema_File } from "~/types/schema"; diff --git a/src/components/Layout/Navbar.tsx b/src/components/Layout/Navbar.tsx index 60cf708..665e325 100644 --- a/src/components/Layout/Navbar.tsx +++ b/src/components/Layout/Navbar.tsx @@ -37,9 +37,8 @@ import { Separator } from "~/components/ui/separator"; import { Sheet, SheetContent, SheetFooter, SheetTrigger } from "~/components/ui/sheet"; import { Tooltip, TooltipContent, TooltipTrigger } from "~/components/ui/tooltip"; -import { cn } from "~/utils/cn"; - import useMediaQuery from "~/hooks/useMediaQuery"; +import { cn } from "~/utils/cn"; import { ClearPassword } from "actions"; import config from "config"; diff --git a/src/components/Layout/NotFound.tsx b/src/components/Layout/NotFound.tsx index 6471214..25ea8bc 100644 --- a/src/components/Layout/NotFound.tsx +++ b/src/components/Layout/NotFound.tsx @@ -3,9 +3,8 @@ import { Status } from "~/components/Global"; import { Button } from "~/components/ui/button"; -import { cn } from "~/utils/cn"; - import useRouter from "~/hooks/usePRouter"; +import { cn } from "~/utils/cn"; export default function NotFound() { const router = useRouter(); diff --git a/src/components/Layout/Password.tsx b/src/components/Layout/Password.tsx index 8461902..7ee630a 100644 --- a/src/components/Layout/Password.tsx +++ b/src/components/Layout/Password.tsx @@ -8,9 +8,8 @@ import { Icon, Loader } from "~/components/Global"; import { Button } from "~/components/ui/button"; import { Input } from "~/components/ui/input"; -import { cn } from "~/utils/cn"; - import useLoading from "~/hooks/useLoading"; +import { cn } from "~/utils/cn"; import { CheckPassword, CheckSitePassword, SetPassword, SetSitePassword } from "actions"; diff --git a/src/components/Preview/Document.tsx b/src/components/Preview/Document.tsx index 3bf9447..9d994b0 100644 --- a/src/components/Preview/Document.tsx +++ b/src/components/Preview/Document.tsx @@ -7,9 +7,8 @@ import { z } from "zod"; import { Icon, Loader, Status } from "~/components/Global"; import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert"; -import { cn } from "~/utils/cn"; - import useLoading from "~/hooks/useLoading"; +import { cn } from "~/utils/cn"; import { Schema_File } from "~/types/schema"; diff --git a/src/components/Preview/Image.tsx b/src/components/Preview/Image.tsx index 5ab208f..2dd8e50 100644 --- a/src/components/Preview/Image.tsx +++ b/src/components/Preview/Image.tsx @@ -6,9 +6,8 @@ import { z } from "zod"; import { Icon, Loader, Status } from "~/components/Global"; import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert"; -import { cn } from "~/utils/cn"; - import useLoading from "~/hooks/useLoading"; +import { cn } from "~/utils/cn"; import { Schema_File } from "~/types/schema"; diff --git a/src/components/Preview/Information.tsx b/src/components/Preview/Information.tsx index f5c665c..dc5a0f3 100644 --- a/src/components/Preview/Information.tsx +++ b/src/components/Preview/Information.tsx @@ -13,13 +13,12 @@ import { Dialog, DialogContent, DialogTrigger } from "~/components/ui/dialog"; import { Drawer, DrawerClose, DrawerContent, DrawerFooter, DrawerHeader, DrawerTrigger } from "~/components/ui/drawer"; import { Separator } from "~/components/ui/separator"; +import useMediaQuery from "~/hooks/useMediaQuery"; import { bytesToReadable } from "~/utils/bytesFormat"; import { cn } from "~/utils/cn"; import { durationToReadable } from "~/utils/durationFormat"; import { getFileType } from "~/utils/previewHelper"; -import useMediaQuery from "~/hooks/useMediaQuery"; - import { ButtonState, Schema_File } from "~/types/schema"; import { CreateDownloadToken } from "actions"; diff --git a/src/components/Preview/Manga.tsx b/src/components/Preview/Manga.tsx index 67b4f07..3a19367 100644 --- a/src/components/Preview/Manga.tsx +++ b/src/components/Preview/Manga.tsx @@ -17,9 +17,8 @@ import { } from "~/components/ui/carousel"; import { Progress } from "~/components/ui/progress"; -import { cn } from "~/utils/cn"; - import useMediaQuery from "~/hooks/useMediaQuery"; +import { cn } from "~/utils/cn"; import { Schema_File } from "~/types/schema"; diff --git a/src/components/Preview/Rich.tsx b/src/components/Preview/Rich.tsx index dd9eed7..1851769 100644 --- a/src/components/Preview/Rich.tsx +++ b/src/components/Preview/Rich.tsx @@ -6,9 +6,8 @@ import { z } from "zod"; import { Icon, Loader, Markdown, Status } from "~/components/Global"; import { Button } from "~/components/ui/button"; -import { cn } from "~/utils/cn"; - import useLoading from "~/hooks/useLoading"; +import { cn } from "~/utils/cn"; import { Schema_File } from "~/types/schema";