diff --git a/README.md b/README.md index 384991c..d883dc3 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,26 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). +
+ onedrive-vercel-index +

onedrive-vercel-index

+ Yet another-another OneDrive index, powered by Vercel and Next.js +
-## Getting Started +--- -First, run the development server: +This is [onedrive-cf-index](https://github.com/spencerwooo/onedrive-cf-index)'s little brother, basically the same, but powered by Next.js and Vercel. -```bash -npm run dev -# or -yarn dev -``` +## Features -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. +- A TOTAL REFACTOR! +- Many more upcoming... -You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. +## Demo -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.tsx`. +Available at: . -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. +--- -## Learn More +**onedrive-vercel-index** ©Spencer Woo. Released under the MIT License. -To learn more about Next.js, take a look at the following resources: +Authored and maintained by Spencer Woo. -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +> [@Portfolio](https://spencerwoo.com/) · [@Blog](https://blog.spencerwoo.com/) · [@GitHub](https://github.com/spencerwooo) diff --git a/components/FileListing.tsx b/components/FileListing.tsx index 413a8b4..4a4a877 100644 --- a/components/FileListing.tsx +++ b/components/FileListing.tsx @@ -91,7 +91,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) = const path = queryToPath(query) - const { data, error } = useSWR(`/api?path=${path}`, fetcher, { + const { data, error } = useSWR(`/api?path=${encodeURIComponent(path)}`, fetcher, { revalidateOnFocus: false, }) diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png new file mode 100755 index 0000000..3b842d5 Binary files /dev/null and b/public/android-chrome-192x192.png differ diff --git a/public/android-chrome-512x512.png b/public/android-chrome-512x512.png new file mode 100755 index 0000000..06a017c Binary files /dev/null and b/public/android-chrome-512x512.png differ diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100755 index 0000000..16d15a6 Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png new file mode 100755 index 0000000..2e11968 Binary files /dev/null and b/public/favicon-16x16.png differ diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png new file mode 100755 index 0000000..3095335 Binary files /dev/null and b/public/favicon-32x32.png differ diff --git a/public/favicon.ico b/public/favicon.ico old mode 100644 new mode 100755 index 4965832..c597857 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/onedrive-vercel-index.png b/public/onedrive-vercel-index.png new file mode 100644 index 0000000..c4074aa Binary files /dev/null and b/public/onedrive-vercel-index.png differ diff --git a/public/site.webmanifest b/public/site.webmanifest new file mode 100755 index 0000000..45dc8a2 --- /dev/null +++ b/public/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file