一个goindex的扩展主题
Go to file
2020-06-22 21:39:57 +08:00
dist build 2.0.5 2020-06-03 00:15:21 +08:00
go2index 调整版本号 2020-05-31 02:03:23 +08:00
public 401错误返回上一页 2020-06-02 23:16:53 +08:00
src 🐛Fix misjudged file to image format #88 2020-06-22 21:39:57 +08:00
.env 添加cdn配置 2020-05-22 02:11:32 +08:00
.env.development 添加cdn配置 2020-05-22 02:11:32 +08:00
.gitignore 添加cdn配置 2020-05-22 02:11:32 +08:00
babel.config.js init 2020-04-23 11:46:23 +08:00
buildAppJSPlugin.js 优化页面显示,支持自定义播放器,调整cdn地址动态配置 2020-05-31 01:02:42 +08:00
dependencies-cdn.js 替换grid view 视频文件的icon ,修复图片点击不能定位到该图 2020-05-19 18:10:44 +08:00
LICENSE Create LICENSE 2020-05-23 15:39:13 +08:00
package-lock.json Bump websocket-extensions from 0.1.3 to 0.1.4 2020-06-08 03:45:55 +00:00
package.json 调整版本号 2020-05-31 02:03:23 +08:00
README_zh.md Update README 2020-06-05 22:26:23 +08:00
README.md Update README 2020-06-05 22:26:23 +08:00
vue.config.js 调整版本号 2020-05-31 02:03:23 +08:00
yarn.lock Bump websocket-extensions from 0.1.3 to 0.1.4 2020-06-08 03:45:55 +00:00

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

README | 中文文档

Demo

Acrou: https://oss.achirou.workers.dev/

Features

  • 👑 Page-level caching,browser forward and backward without reloading (MAC users have a better experience with the trackpad)
  • 🗂 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)
  • 🕹 Support for custom video player (API)
  • 🚀 Faster speed

TODO

  • More file format preview
  • Let goindex be more than just a directory index

Quick Deployment

  1. Open https://install.achirou.workers.dev or https://goindex-quick-install.glitch.me
  2. Auth and get the code
  3. Deploy the code to Cloudflare Workers

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

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-06-02

  • Add clean file cache
  • Support for custom video player (API)
  • Beautify: the grid mode file shows icon when no preview is shown
  • Beautify: Adjust the HEAD.md render position
  • Solve the problem that files that can't be previewed can't be downloaded directly by clicking #30
  • Solve the problem that the file name cannot be opened #20
  • Solve the problem that switching pages will fall back in the current page loading #37 (Thanks @PedroZhang Help to find out the cause of the problem)

2020-5-20

  • Program changed to SPA(single page application)
  • Add page level cache(Browser forward and backward do not refresh seconds to load, 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 the problem of URL encoding #20 #23 #25
  • Solve other known problems

2020-4-29

  • Support multi disk switching
  • Add version detection
  • Optimize search results
  • Optimize page display

About

At the beginning of this project, it was just to satisfy my personal perception and experience development. When this project reaped the first start, the first fork and the first issues, and then everyone began to make suggestions, I had the power to update. Thank you very much for your support. Now we have version 2.0.

Lisense

MIT