Git Product home page Git Product logo

g-index's Introduction

LOGO


PREVIEW

Google Drive Index + Guide + Team Drive Maker [If you have G-suite Account]

Full Guide to Deploy:

GUIDE

SAMPLE

https://g-d.rive.workers.dev/

Search Implemented

  • Features
    • ENGLISH LANGUAGE

    • Video Player - | mp4 | webm | avi | mpg | mpeg | mkv | rm | rmvb | mov | wmv | asf | ts | flv
    • Music Player - | mp3 | flac | wav | ogg | m4a
    • Document Viewer - | html | php | css | go | java | js | json | txt | sh | md | pdf
    • Image Viewer - | bmp | jpg | jpeg | png | gif
    • Multi drive encryption
    • Mobile Friendly
    • Multi-level Search within the team drive
    • Dark Theme
      • Main Color:

        • red | pink | purple | deep-purple | indigo | blue | light-blue | cyan | teal | green | light-green | lime yellow | amber orange | deep-orange | brown | greyblue-grey
      • Accent Color:

        • red | pink | purple | deep-purple | indigo | blue | light-blue | cyan | teal | green | light-green | lime | yellow | amber | orange | deep-orange
      • darkmode: true/false

How to use?

Deployment

1.Install rclone software locally
2.Follow https://rclone.org/drive/ bind a drive
3.Execute the commandrclone config file to find the file rclone.conf path
4.Open rclone.conf,find the configuration root_folder_id and refresh_token
5.Download index.js in https://github.com/LeeluPradhan/Search/ and fill in root and refresh_token
6.Deploy the code to Cloudflare Workers

Want to host to your repository?

  1. Simply fork this or
  2. Download this repo and upload files as per your choice
  3. Use https://www.jsdelivr.com/?docs=gh to use your own app.js and change path accordingly in index.js
  4. Copy your completed index.js to Cloudflare Workers
  5. Enjoy :)

Credits

https://github.com/yanzai/goindex

Protect links

If you want main links to be protected and share direct links without password then use code from branch 2.0

Team Drive Maker

TD Maker

Get Required Data from

Note: You must have permissions to create shared drive in your account. This doesn't work with GMAIL Accounts, Required Gsuite Business+ Accounts. To check Open Google Drive and try to create Shared Drive first.

  • Open Google Cloud Console
  • After creating project or if you already have one.
  • Enable Drive API from Here
  • Click create credentials.
  • Select OAuth client ID.
  • Select Web application.
  • Give it a name. (anything for your own reference)
  • In Authorized JavaScript origins add https://developers.google.com
  • In Authorized redirect URIs add https://developers.google.com/oauthplayground
  • Save and note down your Client ID and Secret
  • Open Developers Playground
  • On Right Top Side click on Setting Icon Settings
  • Click on Use your own OAuth credentials.
  • Enter OAuth Client ID: and OAuth Client secret:
  • Now back to same page Developers Playground left side Step 1 i.e. Select & authorize APIs
  • Find Drive API v3
  • Select First Option i.e. https://www.googleapis.com/auth/drive (Required)
  • Click on Authorize API. and give permissions using your google account.
  • It will turn to Step 2 Exchange authorization code for tokens at the end of authentication.
  • Click on Exchange authorization code for tokens, if it goes to step 3, click on Step 2 yourself.
  • Select the option Auto-refresh the token before it expires.
  • Copy the refresh token and paste in maker.js along with your own Client ID and Secret, your own logo, icons etc as per your taste
  • Copy the Code and paste it into https://workers.cloudflare.com Site.

Credits:

https://github.com/ParveenBhadooOfficial/Create-Google-Shared-Drive

CMKB

g-index's People

Contributors

anshumanfauzdar avatar leelupradhan 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

g-index's Issues

Download Only Mode

Please include a feature to just download only and not preview files within the GDIndex. Sometimes, videos are not played due to H265 and it's better to just download those rather than going to the preview page.

Google Documents not redirecting correctly

Please fix a bug in Version 1.0 in which Google Documents such as Docs, Sheets, Slides, etc. are redirected to the actual link of the file. It instead spits the following raw message:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "fileNotDownloadable",
    "message": "Only files with binary content can be downloaded. Use Export with Google Docs files.",
    "locationType": "parameter",
    "location": "alt"
   }
  ],
  "code": 403,
  "message": "Only files with binary content can be downloaded. Use Export with Google Docs files."
 }
}

Automated

Automated is not working bro please solve it as soon possible

Duplicate results

When scrolling through, paginated results get duplicated i.e. Same repeating results. Is this happening because of cache behavior?

Worker Throws Exception 1101

When there is a file or folder name containing Apostrophe (') or hashtag (#) like Test#Folder, the worker throws exception 1101. Everything else loads smoothly. You can test it yourself.

testfolder

cferrorlog

In my image attached,
line 122 : event.respondWith(handleRequest(event.request)); //Line 134 acc. to your index.js inside Search folder
line 240 : return gd.down(file.id, range, inline_down); // Line 252 acc. to your index.js inside Search folder

Thanks ๐Ÿ‘

How to use "enable_password_file_verify" ?

I had try to set "enable_password_file_verify" = true to verify password when access index, but it doesn't work, howi can set password of this varible and where ".password" filename path ?

sample index

you are making my drive as your sample in sample #1 without my permission

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.