Go to file
Spencer Woo 356467fa10
Merge pull request #159 from myl7/public-root
Fix 500 when setting root as public root
2021-11-02 15:16:37 +00:00
components add EPUB preview 2021-10-06 05:28:40 +08:00
config pagination token returned from api 2021-09-05 13:49:54 +01:00
pages fix 500 when setting root as public root 2021-11-01 18:35:34 +08:00
public update new design demo screenshot 2021-08-30 22:17:21 +01:00
styles configurable font family (google fonts) 2021-08-31 17:56:20 +01:00
utils add EPUB preview 2021-10-06 05:28:40 +08: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 add EPUB preview 2021-10-06 05:28:40 +08:00
package.json add EPUB preview 2021-10-06 05:28:40 +08:00
postcss.config.js init repo with basic templates 2021-06-22 13:17:15 +01:00
README.md fix dark mode colors, check todo in readme 2021-09-05 16:09:24 +01:00
tailwind.config.js configurable font family (google fonts) 2021-08-31 17:56:20 +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