Aicirou / goindex-theme-acrou

Google-Drive-Directory-Index | Combining the power of Cloudflare Workers and Google Drive API will allow you to index your Google Drive files on the browser.
https://chill.aicirou.workers.dev/
MIT License
188 stars 255 forks source link
aicirou cloudflare cloudflare-workers gddindex gdindex goindex google-drive googledriveapi serverless-applications workers-script

🍿Google-Drive-Directory-Index

Combining the power of Cloudflare Workers and Google Drive will allow you to index your Google Drive files on the browser.

go2index/index.js is the content of the Workers script.

This theme's goindex is currently based on yanzai/goindex.

Demo

πŸš€ Go to: https://chill.aicirou.workers.dev/

πŸ›  Quick Development: here/

✨Features

TODO

Quick Deployment

  1. Open the following link
  1. Auth and get the code
  2. Deploy the code to Cloudflare Workers

Manual Deployment

  1. Open Google Drive API
  2. Create a OAuth client ID
  3. Install rclone software locally
  4. Get refresh_token with rclone
  5. Download index.js in https://github.com/Aicirou/goindex-theme-acrou/tree/master/go2index and replace client_id,client_secret,refresh_token for what you just got.
  6. Deploy the code to Cloudflare Workers

Options

Video

Option Type Default Description
api String '' External video player api. When this value is not null, all of the following options do not work
autoplay Boolean true When set to true, the video plays automatically, depending on whether the browser supports the
invertTime Boolean false Display the current time as a countdown rather than an incremental counter.
controls Array, Function or Element ['play-large', 'restart', 'play', 'progress', 'current-time', 'duration', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'download', 'fullscreen'] Which buttons are displayed in the control bar. See more CONTROLS.md
settings Array ['quality', 'speed', 'loop'] You can specify which settings to show in the menu

For more option, see plyr options

Audio

Option Type Default Description
container String .aplayer No support for changes
fixed Boolean true No support for changes
autoplay Boolean false audio autoplay
loop String 'all' player loop play, values: 'all', 'one', 'none'
order String 'list' player play order, values: 'list', 'random'
preload String 'auto' values: 'none', 'metadata', 'auto'
volume Number 0.7 default volume, notice that player will remember user setting, default volume will not work after user set volume themselves
audios Array [] Playlists can be preset. FAQ

For more option, see APlayer options

Change log

v2.0.8

Fixed issues

License

MIT