You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
24
40
25
41
OR
26
42
@@ -42,13 +58,15 @@ Simply visit [this](https://goindex.glitch.me/) Modified (only for Dark Mode) ve
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.
5
5
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.
7
7
8
8
This theme's goindex is currently based on [yanzai/goindex](https://github.com/yanzai/goindex/)
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.
45
54
6. Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)
46
55
47
56
> If you write a good article and want to share it with others, please submit Issues and I will post the link here.
|`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)
|`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?
54
99
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)
- 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)
56
151
- 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)
- 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)
67
162
- Solve other known problems
68
163
69
-
### 2020-4-29
164
+
### v1.x
70
165
71
166
- Support multi disk switching
72
167
- Add version detection
73
168
- Optimize search results
74
169
- Optimize page display
75
170
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.
0 commit comments