From 97a0eb91fc5a4dbf4248db8426ea88efd9ac021e Mon Sep 17 00:00:00 2001 From: spencerwooo Date: Sat, 4 Sep 2021 15:15:09 +0100 Subject: [PATCH] format according to headwind sequence --- components/Auth.tsx | 10 +++--- components/Breadcrumb.tsx | 8 ++--- components/DownloadBtn.tsx | 6 ++-- components/FileListing.tsx | 48 ++++++++++++------------- components/FourOhFour.tsx | 8 ++--- components/Loading.tsx | 4 +-- components/Navbar.tsx | 26 +++++++------- components/previews/AudioPreview.tsx | 10 +++--- components/previews/CodePreview.tsx | 6 ++-- components/previews/MarkdownPreview.tsx | 2 +- components/previews/OfficePreview.tsx | 8 ++--- components/previews/PDFPreview.tsx | 14 ++++---- components/previews/TextPreview.tsx | 8 ++--- components/previews/VideoPreview.tsx | 14 ++++---- pages/[...path].tsx | 6 ++-- pages/index.tsx | 6 ++-- utils/getPreviewType.ts | 2 +- 17 files changed, 91 insertions(+), 95 deletions(-) diff --git a/components/Auth.tsx b/components/Auth.tsx index aacb6dc..515612e 100644 --- a/components/Auth.tsx +++ b/components/Auth.tsx @@ -14,11 +14,11 @@ const Auth: FunctionComponent<{ redirect: string }> = ({ redirect }) => { const [token, setToken] = useLocalStorage(authTokenPath, '') return ( -
-
+
+
authenticate
-
Enter Password
+
Enter Password

This route (the folder itself and the files inside) is password protected. If you know the password, please @@ -26,7 +26,7 @@ const Auth: FunctionComponent<{ redirect: string }> = ({ redirect }) => {

= ({ redirect }) => { }} />
= ({ file }) => { IINA = ({ file }) => { VLC +
{siteConfig.title} -
+
-
+
diff --git a/pages/index.tsx b/pages/index.tsx index 640549f..85eba46 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -8,14 +8,14 @@ import Breadcrumb from '../components/Breadcrumb' export default function Home() { return ( -
+
{siteConfig.title} -
+
-
+
diff --git a/utils/getPreviewType.ts b/utils/getPreviewType.ts index 74d3e3c..b3db269 100644 --- a/utils/getPreviewType.ts +++ b/utils/getPreviewType.ts @@ -51,7 +51,7 @@ const extensions = { webm: preview.video, m3u8: preview.video, mkv: preview.video, - avi: preview.video, // won't work! + avi: preview.video, // won't work! mp3: preview.audio, m4a: preview.audio,