Giter Club home page Giter Club logo

gdindex's Introduction

GDIndex

preview

繁體中文 简体中文

GDIndex is similar to GOIndex. It allows you to deploy a "Google Drive Index" on CloudFlare Workers along with many extra features

By the way, instead of modify from GOIndex, this is a total rewrite

Demo

Difference between GOIndex and GDIndex

  • Frontend is based on Vue.js
  • Image viewer doesn't require opening new page
  • Video player support subtitles(Currently only srt is supported)
  • Online PDF, EPUB reader
  • No directory-level password protection(.password)
  • Support Http Basic Auth
  • Support multiple drives(personal, team) without changing server's code

Usage

Simple and automatic way

Go https://gdindex-code-builder.maple3142.net/, and follow its instructions.

Manual way

  1. Install rclone
  2. Setup your Google Drive: https://rclone.org/drive/
  3. Run rclone config file to find your rclone.conf location
  4. Find refresh_token in your rclone.conf, and root_folder_id too(optionally).
  5. Copy the content of worker/dist/worker.js to CloudFlare Workers.
  6. Fill refresh_token, root_folder_id and other options on the top of the script.
  7. Deploy!

Using service accounts

  1. Create a service account, a corresponding service account key, and get the JSON from the Google Cloud Platform console
  2. In the props object, replace the service_account_json value with the contents of the service account JSON file and set service_account to true.
  3. Make sure that the service account in question has access to the folder specified in root_folder_id
  4. Deploy

Lite mode

This mode will serve a simple nginx-like directory listing, and it only work with one drive. upload will be ignored in this mode.

On the top of the script, change lite: false into lite: true, than thats all.

To enable on-the-fly lite mode, especially with command-line applications, you can include a HTTP header x-lite: true in your requests.

Lite mode demo

gdindex's People

Contributors

codeingboy avatar dependabot[bot] avatar maple3142 avatar njzjz avatar prashanthca avatar vpenso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gdindex's Issues

Can I do it on a vps ?

Cloudflare is giving me error for some reason . Maybe because my files are very big 20-30 gigs .

Can I host this index on a vps ?

在线查看txt文件编码错误

直接使用浏览器打开utf8编码的txt文档会出现乱码,下载下来的文档则是正常的,请问有什么方法可以解决吗?

上传文件问题

本地上传文件大小是不是有限制,上传文件大概超过3-400m的文件就停止上传了,上传失败

#suggestion New Feature

Is it possible To add Search feature inside it ?
because it hard to scroll and find everything.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Lite mode additional info

Someone please add this feature for LITE mode as I prefer lite mode than the original theme. It is very useful for file/folder details.
image

[Feature Request] Replace image icon with thumbnail

使用gdindex自带的上传功能上传庆余年第一集,这是一个位于本地电脑的800M的文件,上传的进度条可以完整的100%完成,但是完成后,googledrive里并没有这个文件。而使用googledrive官网里的上传功能可以正常完成上传操作。

恩,还有一个问题,就是下图左侧的图片预览图无法正常显示,希望可以修复一下,谢谢作者的辛勤努力和无私奉献!
微信图片_20200104215531

[Feature Request] Support copy file

Downloading files might encounter "Quota exceed" error, making a copy can bypass this limit.
It will be useful if there's an api allowing user copy a file.

[Feature Request] Dark Mode

If dark mode was possible by a switch at the top right or bottom right like a floating button can be helpful.

link without removing authorisation

Hey I like to know weather we can download the links without authorisation.
downloading the link in other platforms like aria2c outputs authorisation error.

PDF viewer error on mobile devices

It shows up an error "This plugin is not supported" on a web browser on mobile device, tried with different device, same issue. Even please allow to view doc/docx, ppt/pptx too on the mobile devices as it is common document format.

User-agent:
Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.92 Mobile Safari/537.36

Password Access

hi can you help me a way so that the password is only requested when accessing the index, for example I share a video link to my friend he does not have to enter a password to watch the video

I don't want to disable the password in the index because I only want to share certain files

Thanks

提取直链的问题

大佬,又什么好方法批量提取文件的链接和对应的文件名称,谢谢

上传文件问题/upload error

尝试非代理环境下上传大文件,进度条走满,刷新后目录里没有增加,请检查一下上传问题。
Try to upload some of large file into the GDindex.When the process finished and reloaded the website,
the file is disappear ,likes upload error.Please check the upload module THX

I can rename "~_~_gdindex" to another name? Like "gfiles".

I would like to customize some things, before changing, I would like to know what files I need to change for this change to work correctly.

I ask because there may be some detail that I don't know or just find by looking for "~ _ ~ _gdindex".

Thanks for the attention guys. 🍪 ☕️ @maple3142

mp4视频只显示声音,不显示图像

你好,博主
依照阁下guthub指引,成功搭建。

但是搭建后,播放mp4视频,只显示声音,不显示图像
浏览界面没有报错
希望可以解答一下疑惑,先在这里谢谢了

Add a search option

This is one of my most required feature because having everything in different folders cause jumbos and misshaps...I just wish you to add this

How to remove change Directory Option [ restrict directory to only 1 team drive]

Hey, I don't people to switch between all the drive and my drive of Gdrive account i used for Authorization Code. i want user to only limit to the 1 team drive directory which i gave.

i tried putting the path of my TD. but the option of selecting enables users to switch all the TD linked with my account .
i there any way to remove this button or restrict acess
Screenshot_2020-01-07 Stream by Krat0s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.