goindex-theme-r/README.md

95 lines
4.0 KiB
Markdown
Raw Normal View History

2020-04-28 02:16:41 +08:00
2020-05-23 15:32:58 +08:00
# GoIndex-theme-acrou
2020-05-22 09:30:27 +08:00
Combining the power of [Cloudflare Workers](https://workers.cloudflare.com/) and [Google Drive](https://www.google.com/drive/) will allow you to index you files on the browser on Cloudflare Workers.
[goindex/index.js](https://github.com/Aicirou/goindex-theme-acrou/go2index) is the content of the Workers script.
2020-05-23 15:32:58 +08:00
This theme's goindex is currently based on [yanzai/goindex](https://github.com/yanzai/goindex/)
2020-04-28 02:16:41 +08:00
[README](README.md) | [中文文档](README_zh.md)
## Demo
Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
2020-05-23 15:32:58 +08:00
## Features
2020-04-28 02:16:41 +08:00
2020-06-05 22:26:23 +08:00
- [x] 👑 Page-level caching,browser forward and backward without reloading (MAC users have a better experience with the trackpad)
2020-05-23 15:32:58 +08:00
- [x] 🗂 Multi drive switching
- [x] 🔐 Http Basic Auth
- [x] 🎨 Grid view mode(File Preview)
- [x] 🎯 Paging load
- [x] 🌐 I18n(multi-language)
- [x] 🛠 Html render
- [x] 🖥 Video Online(mp4,mkv,webm,flv,m3u8)
2020-06-05 22:26:23 +08:00
- [x] 🕹 Support for custom video player (API)
2020-05-23 15:32:58 +08:00
- [x] 🚀 Faster speed
2020-04-28 02:16:41 +08:00
## TODO
- [ ] More file format preview
2020-05-23 15:32:58 +08:00
- [ ] Let goindex be more than just a directory index
## Quick Deployment
2020-06-03 00:13:46 +08:00
1. Open https://install.achirou.workers.dev or https://goindex-quick-install.glitch.me
2020-05-23 15:32:58 +08:00
2. Auth and get the code
3. Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)
2020-04-28 02:16:41 +08:00
## Deployment
2020-05-22 09:30:27 +08:00
2020-05-23 15:32:58 +08:00
1. Open [Google Drive API](https://console.developers.google.com/apis/api/drive.googleapis.com/overview)
2. Create a [OAuth client ID](https://console.developers.google.com/apis/credentials/oauthclient)
3. Install [rclone](https://rclone.org/downloads/) software locally
4. Get `refresh_token ` with `rclone`
2020-06-05 22:26:23 +08:00
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.
2020-05-23 15:32:58 +08:00
6. Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)
2020-04-28 02:16:41 +08:00
2020-05-23 15:32:58 +08:00
> 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-03 00:05:04 +08:00
### 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](https://github.com/Aicirou/goindex-theme-acrou/issues/30)
- Solve the problem that the file name cannot be opened [#20](https://github.com/Aicirou/goindex-theme-acrou/issues/20)
- Solve the problem that switching pages will fall back in the current page loading [#37](https://github.com/Aicirou/goindex-theme-acrou/issues/37) (Thanks [@PedroZhang](https://github.com/PedroZhang) Help to find out the cause of the problem)
2020-05-23 15:32:58 +08:00
### 2020-5-20
- Program changed to SPA(single page application)
2020-06-03 00:05:04 +08:00
- 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)
2020-05-23 15:32:58 +08:00
- 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
2020-05-23 15:55:02 +08:00
- Solve the problem of URL encoding [#20](https://github.com/Aicirou/goindex-theme-acrou/issues/20) [#23](https://github.com/Aicirou/goindex-theme-acrou/issues/23) [#25](https://github.com/Aicirou/goindex-theme-acrou/issues/25)
- Solve other known problems
2020-05-23 15:32:58 +08:00
### 2020-4-29
- Support multi disk switching
- Add version detection
- Optimize search results
- Optimize page display
2020-05-23 16:38:20 +08:00
## 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.
2020-05-23 15:32:58 +08:00
## Lisense
2020-04-28 02:16:41 +08:00
2020-05-23 16:38:20 +08:00
[MIT](LICENSE)