2.7 KiB
GoIndex-theme-acrou
Combining the power of Cloudflare Workers and Google Drive will allow you to index you files on the browser on Cloudflare Workers.
goindex/index.js is the content of the Workers script.
This theme's goindex is currently based on yanzai/goindex
Demo
Acrou: https://oss.achirou.workers.dev/
Features
- 🗂 Multi drive switching
- 🔐 Http Basic Auth
- 🎨 Grid view mode(File Preview)
- 🎯 Paging load
- 🌐 I18n(multi-language)
- 🛠 Html render
- 🖥 Video Online(mp4,mkv,webm,flv,m3u8)
- 🚀 Faster speed
TODO
- More file format preview
- Let goindex be more than just a directory index
Quick Deployment
- Open https://goindex-quick-install.glitch.me
- Auth and get the code
- Deploy the code to Cloudflare Workers
Deployment
- Open Google Drive API
- Create a OAuth client ID
- Install rclone software locally
- Get
refresh_token
withrclone
- Download
index.js
in https://github.com/Aicirou/goindex-theme-acrou/go2index and replaceclient_id
,client_secret
,refresh_token
for what you just got. - Deploy the code to Cloudflare Workers
If you write a good article and want to share it with others, please submit Issues and I will post the link here.
Logs
2020-5-20
-
Program changed to SPA(single page application)
-
Add page level cache(The browser does not refresh and load in seconds after backward, and Mac users have a better experience of using touch pad)
-
Add http basic auth(Each drive letter can be configured with a user name and password separately, which can protect all sub files and sub folders under the drive)
-
Add grid view mode(File preview)
-
Add paging load
-
Add i18n
-
Add html render
-
Add render folder/file description
-
Add optional configuration
-
Support quick deployment
-
Support PDF Online preview
-
Replace text editor
-
Solve other known problems
2020-4-29
- Support multi disk switching
- Add version detection
- Optimize search results
- Optimize page display