Go to file
2021-08-30 22:17:21 +01:00
components customisable icon and new design 2021-08-30 20:47:25 +01:00
config customisable icon and new design 2021-08-30 20:47:25 +01:00
pages navbar logout and other custom icons 2021-08-30 15:51:19 +01:00
public update new design demo screenshot 2021-08-30 22:17:21 +01:00
styles fix markdown code background color 2021-08-29 15:39:33 +01:00
utils password modal and logout token clear 2021-08-30 14:34:37 +01:00
.eslintrc Initial commit from Create Next App 2021-06-22 12:58:37 +01:00
.gitignore Initial commit from Create Next App 2021-06-22 12:58:37 +01:00
LICENSE create license 2021-06-30 12:01:13 +01:00
next-env.d.ts fix datetime format, closes #45 2021-08-15 20:13:08 +01:00
next.config.js add support for pdf previews with pdf.js 2021-06-25 00:42:46 +01:00
package-lock.json password modal and logout token clear 2021-08-30 14:34:37 +01:00
package.json password modal and logout token clear 2021-08-30 14:34:37 +01:00
postcss.config.js init repo with basic templates 2021-06-22 13:17:15 +01:00
README.md update icon design and readme 2021-08-30 21:17:03 +01:00
tailwind.config.js colored toast and other minor tweaks 2021-08-29 22:31:42 +01:00
tsconfig.json preview ms office files 2021-06-29 16:20:35 +01:00

onedrive-vercel-index

onedrive-vercel-index

Yet another-another OneDrive index, powered by Vercel and Next.js

Next.js Next.js Vercel GitHub Discussions

This is onedrive-cf-index's little brother, basically the same, but powered by Next.js and Vercel.

Features

🚧 This is currently a work in progress.

  • File preview (PDF, markdown, code, plain text, ...)
  • Image preview in gallery mode
  • Video and audio preview (mp4, mp3, ...)
  • Office documents preview (docx, pptx, xlsx, ...)
  • README.md preview rendering
  • File permalink copy and direct file download
  • Dark mode
  • Protected routes (password protection and authentication) through .password files
  • Pagination for folders with more than 200 items

Discussion

Please go to our discussion forum for general questions, issues are for bug reports and bug reports only.

Demo

Available at: https://drive.spencerwoo.com.

demo

Deployment

Simplified version for now, will update for detailed documentations in due course.

Deploy with Vercel

  • Use the button above to deploy the project to Vercel. Vercel will automatically fork and clone the project to your GitHub account.
  • Define environment variables inside Vercel: REFRESH_TOKEN, ACCESS_TOKEN, CLIENT_SECRET.
  • Finally, change configuration file config/api.json and config/site.json according to your configs.

The authentication tokens and variables are the same as what you configured in the onedrive-cf-index project. Detailed documentations can also be found there (for now). This project is at its early stages, for discussions please, please, please post to the discussion forum.

Protected routes

See: Announcements - Password protected routes is now supported #66.


onedrive-vercel-index ©Spencer Woo. Released under the MIT License.

Authored and maintained by Spencer Woo.

@Portfolio · @Blog · @GitHub