Update file preview

This commit is contained in:
mbaharip
2023-04-28 00:37:06 +07:00
parent 0653149d27
commit bb6747e241
31 changed files with 1296 additions and 173 deletions
+41 -15
View File
@@ -1,12 +1,11 @@
# Currently in Development
This project is currently in development, and not ready for deployment yet.
---
// LOGO OR BANNER GOES HERE
## Status
Currently still in development, but main features are already working as intended.
You can check the demo [here](https://drive.mbaharip.com).
## What is this?
guDora-index is an indexer for Google Drive, it's a simple project that I made to index my files in Google Drive.
gudora-index is an indexer for Google Drive, it's a simple project that I made to index my files in Google Drive.
It's aim to simplify the process of sharing files using Google Drive, and also implements some features that I think is useful for sharing files.
This project are **HEAVILY INSPIRED** by [onedrive-vercel-index](https://github.com/spencerwooo/onedrive-vercel-index) by SpencerWooo.
@@ -23,21 +22,48 @@ For free plan, Google Drive offering 15GB of storage, and Onedrive offering 5GB
I know there are a lot of people selling cheap edu account for Google Drive and Onedrive, but most of the time those account doesn't last long, especially Google Drive account. So I want to do it legit without buying cheap edu account or anything similar this time.
## Features
TBA
- Share files without any hassle
- Preview files before downloading
- Render readme file inside the folder
- Protect your folder with password
- Search for files easily
- Direct view or download files
- Can be used for hosting assets for your website
## How to use
### Prerequisites
- Google Drive account
- Google Drive API key
- Vercel account
### Setup
1. Fork [gudora-index/mbaharip](https://github.com/mbaharip/gudora-index) repository
2. Open [Setup page](https://drive.mbaharip.com/setup) and follow the instructions
3. Change the `site.config.js` to your liking
4. Deploy your forked repository to Vercel
5. Open your Vercel project, and go to **Settings > Environment Variables**
6. Add `ENCRYPTION_KEY`, `JWT_KEY`, and `NEXT_PUBLIC_DOMAIN` environment variables
7. Redeploy your project
8. Done!
## Credits
- [onedrive-vercel-index](https://github.com/spencerwooo/onedrive-vercel-index) by SpencerWooo for the inspiration and also some file type helpers.
---
## TODO
- [x] Navigate through folders
- [ ] File preview
- [ ] Audio
- [ ] Code
- [ ] Default
- [ ] Image
- [ ] Markdown
- [x] Audio
- [x] Code
- [x] Default
- [x] Image
- [x] Markdown
- [ ] 3D Model
- [ ] Office files (Word, Excel, PowerPoint)
- [ ] PDF
- [ ] Text
- [ ] Video
- [x] PDF
- [x] Text
- [x] Video
- [x] Search for files
- [x] Direct view the files
- [x] Download files