Skip to content

Commit 74466c8

Browse files
committed
readme
1 parent 2377916 commit 74466c8

File tree

150 files changed

+12275
-1664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+12275
-1664
lines changed

README.md

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,42 @@
1-
![GoIndex](themes/logo.png)
2-
3-
GoIndex
4-
====
1+
<div align="center">
2+
<h1>goindex</h1>
3+
<img src="https://github.com/alx-xlx/goindex/raw/master/themes/logo.png" alt="goindex" height="">
4+
5+
</div>
6+
<div align="center">
7+
8+
<img alt="goindex-license" src="https://img.shields.io/badge/Open_source-MIT-red.svg?logo=git&logoColor=green"/>
9+
<img src="https://img.shields.io/github/last-commit/alx-xlx/goindex.svg?logo=Sublime+Text&logoColor=green&label=Active"/>
10+
<img alt="GitHub Release Date" src="https://img.shields.io/github/release-date/alx-xlx/goindex">
11+
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/alx-xlx/goindex">
12+
<img alt="goindex-softwareheritage.org" src="https://archive.softwareheritage.org/badge/origin/https://github.com/Unipisa/CMM/"/>
13+
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/alx-xlx/goindex">
14+
<img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Falx-xlx%2Fgoindex&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=Views&edge_flat=false"/>
15+
16+
</div>
17+
18+
---
19+
520
Google Drive Directory Index
621
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.
722

823
`index.js` is the content of the Workers script.
924

1025

26+
1127
# Versions
1228

1329

1430
## 1. [Aicirou/goindex-theme-acrou](https://github.com/Aicirou/goindex-theme-acrou)
1531

1632

17-
Worker Script (Dark Mode) : [index.js](https://github.com/alx-xlx/goindex/blob/2.0.5-darkmode-0.1/goindex-acrou/go2index/index.js)
33+
Worker Script (Dark Mode) : [index.js](https://github.com/alx-xlx/goindex/blob/2.0.8-darkmode-0.1/goindex-acrou/go2index/index.js)
1834

19-
Worker Script (Multiple Google Accounts) : [index-multiple-accounts.js](https://github.com/alx-xlx/goindex/blob/master/goindex-acrou/go2index/index-multiple-accounts.js)
35+
<!-- Worker Script (Multiple Google Accounts) : [index-multiple-accounts.js](https://github.com/alx-xlx/goindex/blob/master/goindex-acrou/go2index/index-multiple-accounts.js) -->
2036

2137
Demo - [goindex.teamsdrives.workers.dev](https://goindex.teamsdrives.workers.dev)
2238

23-
Copy the [index.js](https://github.com/alx-xlx/goindex/blob/2.0.5-darkmode-0.1/goindex-acrou/go2index/index.js) script to [workers.dev](https://workers.cloudflare.com/) and edit `client_id`, `client_secret`, `refresh_token` with yours
39+
Copy the [index.js](https://github.com/alx-xlx/goindex/blob/2.0.8-darkmode-0.1/goindex-acrou/go2index/index.js) script to [workers.dev](https://workers.cloudflare.com/) and edit `client_id`, `client_secret`, `refresh_token` with yours
2440

2541
OR
2642

@@ -42,13 +58,15 @@ Simply visit [this](https://goindex.glitch.me/) Modified (only for Dark Mode) ve
4258
---
4359
## 2. [maple3142/GDIndex](https://github.com/maple3142/GDIndex)
4460
---
45-
Worker Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.5-darkmode-0.1/goindex-vue.js)
61+
Worker Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.8-darkmode-0.1/goindex-vue.js)
4662

47-
Demo - [gdindex-dark.teamsdrives.workers.dev](https://gdindex-dark.teamsdrives.workers.dev)
63+
Demo - [gdindex-dark.teamsdrives.workers.dev](https://gdindex-dark.teamsdrives.workers.dev/)
64+
### [Demo - Dark Mode](https://gdindex-dark.teamsdrives.workers.dev/)
65+
![](https://i.imgur.com/1uIQZr5.png)
4866

4967
## 3. donwa/goindex
5068

51-
Workers Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.5-darkmode-0.1/goindex.js)
69+
Workers Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.8-darkmode-0.1/goindex.js)
5270

5371
## Themes
5472

@@ -69,6 +87,15 @@ Workers Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.5-darkmo
6987
5.Download index.js in https://github.com/donwa/goindex and fill in root and refresh_token
7088
6.Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)
7189

90+
## Free Teamdrives
91+
Get free Google Shared Drives
92+
93+
- [td.fastio.me](https://td.fastio.me)
94+
95+
- [td.hackgence.com](https://td.hackgence.com)
96+
97+
- [team.hackgence.com](https://team.hackgence.com)
98+
7299
## Quick Deployment
73100
1.Open https://installen.gd.workers.dev/
74101
2.Auth and get the code

goindex-acrou/.babelrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"plugins": [
3+
[
4+
"component",
5+
{
6+
"libraryName": "element-ui",
7+
"styleLibraryName": "theme-chalk"
8+
}
9+
]
10+
]
11+
}

goindex-acrou/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
VUE_APP_I18N_LOCALE=zh-chs
22
VUE_APP_I18N_FALLBACK_LOCALE=en
3-
VUE_APP_CDN_PATH=https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/
3+
VUE_APP_CDN_PATH=https://cdn.jsdelivr.net/gh/alx-xlx/goindex@2.0.8-darkmode-0.1/goindex-acrou/dist/
44
#VUE_APP_CDN_PATH=https://cloud.jsonpop.cn/go2index/vue/dist/

goindex-acrou/README.md

Lines changed: 105 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# GoIndex-theme-acrou
44
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.
55

6-
[goindex/index.js](https://github.com/Aicirou/goindex-theme-acrou/go2index) is the content of the Workers script.
6+
[go2index/index.js](https://github.com/Aicirou/goindex-theme-acrou/go2index) is the content of the Workers script.
77

88
This theme's goindex is currently based on [yanzai/goindex](https://github.com/yanzai/goindex/)
99

@@ -15,13 +15,16 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
1515

1616
## Features
1717

18+
- [x] 👑 Page-level caching,browser forward and backward without reloading (MAC users have a better experience with the trackpad)
1819
- [x] 🗂 Multi drive switching
1920
- [x] 🔐 Http Basic Auth
2021
- [x] 🎨 Grid view mode(File Preview)
2122
- [x] 🎯 Paging load
2223
- [x] 🌐 I18n(multi-language)
23-
- [x] 🛠 Html render
24-
- [x] 🖥 Video Online(mp4,mkv,webm,flv,m3u8)
24+
- [x] 🛠 Markdown/Html render (Maybe it can be your blog)
25+
- [x] 🖥 Video Online(.vtt subtitle)
26+
- [x] 🕹 Support for custom video player (API)
27+
- [x] 🎧 Audio Online
2528
- [x] 🚀 Faster speed
2629

2730
## TODO
@@ -31,8 +34,14 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
3134

3235
## Quick Deployment
3336

34-
1. Open https://goindex-quick-install.glitch.me
37+
1. Open any of the following links
38+
39+
- https://install.achirou.workers.dev
40+
- https://goindex-quick-install.glitch.me
41+
- https://goindex-install.herokuapp.com
42+
3543
2. Auth and get the code
44+
3645
3. Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)
3746

3847
## Deployment
@@ -41,18 +50,104 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
4150
2. Create a [OAuth client ID](https://console.developers.google.com/apis/credentials/oauthclient)
4251
3. Install [rclone](https://rclone.org/downloads/) software locally
4352
4. Get `refresh_token ` with `rclone`
44-
5. Download `index.js` in https://github.com/Aicirou/goindex-theme-acrou/go2index and replace `client_id`,`client_secret`,`refresh_token` for what you just got.
53+
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.
4554
6. Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)
4655

4756
> If you write a good article and want to share it with others, please submit Issues and I will post the link here.
4857
49-
## Logs
58+
## Options
5059

51-
### 2020-5-20
60+
### Video
5261

53-
- Program changed to SPA(single page application)
62+
| Option | Type | Default | Description |
63+
| ------------ | -------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
64+
| `api` | String | `''` | External video player api. When this value is not null, all of the following options do not work |
65+
| `autoplay` | Boolean | `true` | When set to true, the video plays automatically, depending on whether the browser supports the |
66+
| `invertTime` | Boolean | `false` | Display the current time as a countdown rather than an incremental counter. |
67+
| `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](https://github.com/sampotts/plyr/blob/master/CONTROLS.md#using-default-controls) |
68+
| `settings` | Array | `['quality', 'speed', 'loop']` | You can specify which settings to show in the menu |
69+
70+
For more option, see plyr [options](https://github.com/sampotts/plyr#options)
71+
72+
### Audio
73+
74+
| Option | Type | Default | Description |
75+
| ----------- | ------- | ---------- | ------------------------------------------------------------ |
76+
| `container` | String | `.aplayer` | No support for changes |
77+
| `fixed` | Boolean | `true` | No support for changes |
78+
| `autoplay` | Boolean | `false` | audio autoplay |
79+
| `loop` | String | `'all'` | player loop play, values: 'all', 'one', 'none' |
80+
| `order` | String | `'list'` | player play order, values: 'list', 'random' |
81+
| `preload` | String | `'auto'` | values: 'none', 'metadata', 'auto' |
82+
| `volume` | Number | `0.7` | default volume, notice that player will remember user setting, default volume will not work after user set volume themselves |
83+
| `audios` | Array | `[]` | Playlists can be preset. [FAQ](#FAQ) |
84+
85+
For more option, see APlayer [options](https://aplayer.js.org/#/home?id=options)
86+
87+
## FAQ
88+
89+
> How do I change the way the list is sorted?
90+
91+
Modify line 636 of the code or search for `params.orderBy`
92+
93+
```javascript
94+
params.orderBy = "folder,name,modifiedTime desc";
95+
params.orderBy = "modifiedTime desc";
96+
```
97+
98+
> How to preset an audio playlist?
5499
55-
- 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)
100+
Audio option add `audios`
101+
102+
```
103+
audio: {
104+
audios: [
105+
{
106+
name: "Mojito",
107+
artist: "周杰伦",
108+
url: "https://xx.mp3",
109+
lrc: "https://xx.lrc",
110+
cover: "https://xx.jpg"
111+
}
112+
]
113+
}
114+
```
115+
116+
117+
118+
## Change log
119+
120+
### v2.0.8
121+
122+
- Fix image file actions does not work [#100](https://github.com/Aicirou/goindex-theme-acrou/issues/100)
123+
- Fix misjudged file to image format [#88](https://github.com/Aicirou/goindex-theme-acrou/issues/88)
124+
- Fix more than 10 drive not working [#59](https://github.com/Aicirou/goindex-theme-acrou/issues/59) [#85](https://github.com/Aicirou/goindex-theme-acrou/issues/85)
125+
- Fix some of the operation functions in the search list cannot be used
126+
- Fix text cache content not refreshing
127+
- Add video default player([plyr](https://github.com/sampotts/plyr)) [#22](https://github.com/Aicirou/goindex-theme-acrou/issues/22) [#38](https://github.com/Aicirou/goindex-theme-acrou/issues/38)
128+
- Add audio player ([APlayer](https://github.com/MoePlayer/APlayer)) [#77](https://github.com/Aicirou/goindex-theme-acrou/issues/77)
129+
- Add copy button to video page
130+
- Add [NProgress](https://github.com/rstacruz/nprogress)
131+
- Add language cache cleanup
132+
- Add shortcut can't download tip [#76](https://github.com/Aicirou/goindex-theme-acrou/issues/76)
133+
- Markdown displays rendered html by default
134+
- CLI Delete prefetch preload of lazy load module
135+
- Delete fontawesome5
136+
137+
### v2.0.5
138+
139+
- Add clean file cache
140+
- Support for custom video player (API)
141+
- Beautify: the grid mode file shows icon when no preview is shown
142+
- Beautify: Adjust the HEAD.md render position
143+
- 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)
144+
- Solve the problem that the file name cannot be opened [#20](https://github.com/Aicirou/goindex-theme-acrou/issues/20)
145+
- 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)
146+
147+
### v2.0.0
148+
149+
- Program changed to SPA(single page application)
150+
- 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)
56151
- 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)
57152
- Add grid view mode(File preview)
58153
- Add paging load
@@ -66,17 +161,13 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
66161
- 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)
67162
- Solve other known problems
68163

69-
### 2020-4-29
164+
### v1.x
70165

71166
- Support multi disk switching
72167
- Add version detection
73168
- Optimize search results
74169
- Optimize page display
75170

76-
## About
77-
78-
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.
79-
80171
## Lisense
81172

82173
[MIT](LICENSE)

0 commit comments

Comments
 (0)