Compare commits

...

10 Commits

Author SHA1 Message Date
Aicirou
facd77d7f9 📝 Update README 2020-08-30 11:25:18 +08:00
Aicirou
fb11805d3a 📦Build 2.0.8 2020-08-29 19:09:42 +08:00
Aicirou
29c2a92cb5 ⬆️ Update version 2020-08-29 19:00:27 +08:00
Aicirou
a014e81b77 🐛 Fix text cache content not refreshing 2020-08-28 23:53:07 +08:00
Aicirou
398483e864 🐛 Fix some of the operation functions in the search list cannot be used #112 2020-08-21 22:58:42 +08:00
Aicirou
25abb9d605 🎨 Replace text preview loading effect 2020-08-21 22:29:52 +08:00
Aicirou
14d6e2a315 🐛 Fix the need to refresh to display the player when playing audio 2020-08-21 22:23:21 +08:00
Aicirou
146f5bf925 📝Update README 2020-07-10 18:32:38 +08:00
Aicirou
e44c23b059 🎨Audio playback excludes "audio/mpegurl" 2020-07-10 00:39:09 +08:00
Aicirou
40a141aaaf Video player supports mov,m4v 2020-07-10 00:36:30 +08:00
71 changed files with 472 additions and 180 deletions

104
README.md
View File

@ -3,7 +3,7 @@
# GoIndex-theme-acrou
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.
[go2index/index.js](https://github.com/Aicirou/goindex-theme-acrou/go2index) is the content of the Workers script.
This theme's goindex is currently based on [yanzai/goindex](https://github.com/yanzai/goindex/)
@ -21,9 +21,10 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
- [x] 🎨 Grid view mode(File Preview)
- [x] 🎯 Paging load
- [x] 🌐 I18n(multi-language)
- [x] 🛠 Html render
- [x] 🖥 Video Online(mp4,mkv,webm,flv,m3u8)
- [x] 🛠 Markdown/Html render (Maybe it can be your blog)
- [x] 🖥 Video Online(.vtt subtitle)
- [x] 🕹 Support for custom video player (API)
- [x] 🎧 Audio Online
- [x] 🚀 Faster speed
## TODO
@ -33,8 +34,14 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
## Quick Deployment
1. Open https://install.achirou.workers.dev or https://goindex-quick-install.glitch.me
1. Open any of the following links
- https://install.achirou.workers.dev
- https://goindex-quick-install.glitch.me
- https://goindex-install.herokuapp.com
2. Auth and get the code
3. Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)
## Deployment
@ -48,9 +55,86 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
> If you write a good article and want to share it with others, please submit Issues and I will post the link here.
## Logs
## Options
### 2020-06-02
### Video
| Option | Type | Default | Description |
| ------------ | -------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `api` | String | `''` | External video player api. When this value is not null, all of the following options do not work |
| `autoplay` | Boolean | `true` | When set to true, the video plays automatically, depending on whether the browser supports the |
| `invertTime` | Boolean | `false` | Display the current time as a countdown rather than an incremental counter. |
| `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) |
| `settings` | Array | `['quality', 'speed', 'loop']` | You can specify which settings to show in the menu |
For more option, see plyr [options](https://github.com/sampotts/plyr#options)
### Audio
| Option | Type | Default | Description |
| ----------- | ------- | ---------- | ------------------------------------------------------------ |
| `container` | String | `.aplayer` | No support for changes |
| `fixed` | Boolean | `true` | No support for changes |
| `autoplay` | Boolean | `false` | audio autoplay |
| `loop` | String | `'all'` | player loop play, values: 'all', 'one', 'none' |
| `order` | String | `'list'` | player play order, values: 'list', 'random' |
| `preload` | String | `'auto'` | values: 'none', 'metadata', 'auto' |
| `volume` | Number | `0.7` | default volume, notice that player will remember user setting, default volume will not work after user set volume themselves |
| `audios` | Array | `[]` | Playlists can be preset. [FAQ](#FAQ) |
For more option, see APlayer [options](https://aplayer.js.org/#/home?id=options)
## FAQ
> How do I change the way the list is sorted?
Modify line 636 of the code or search for `params.orderBy`
```javascript
params.orderBy = "folder,name,modifiedTime desc";
params.orderBy = "modifiedTime desc";
```
> How to preset an audio playlist?
Audio option add `audios`
```
audio: {
audios: [
{
name: "Mojito",
artist: "周杰伦",
url: "https://xx.mp3",
lrc: "https://xx.lrc",
cover: "https://xx.jpg"
}
]
}
```
## Change log
### v2.0.8
- Fix image file actions does not work [#100](https://github.com/Aicirou/goindex-theme-acrou/issues/100)
- Fix misjudged file to image format [#88](https://github.com/Aicirou/goindex-theme-acrou/issues/88)
- 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)
- Fix some of the operation functions in the search list cannot be used
- Fix text cache content not refreshing
- 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)
- Add audio player ([APlayer](https://github.com/MoePlayer/APlayer)) [#77](https://github.com/Aicirou/goindex-theme-acrou/issues/77)
- Add copy button to video page
- Add [NProgress](https://github.com/rstacruz/nprogress)
- Add language cache cleanup
- Add shortcut can't download tip [#76](https://github.com/Aicirou/goindex-theme-acrou/issues/76)
- Markdown displays rendered html by default
- CLI Delete prefetch preload of lazy load module
- Delete fontawesome5
### v2.0.5
- Add clean file cache
- Support for custom video player (API)
@ -60,7 +144,7 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
- 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-5-20
### v2.0.0
- 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)
@ -77,17 +161,13 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
- 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-4-29
### v1.x
- 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](LICENSE)

View File

@ -2,7 +2,7 @@
结合 [Cloudflare Workers](https://workers.cloudflare.com/) 和 [Google Drive](https://www.google.com/drive/) 的力量你可以在Cloudflare Workers的浏览器上建立你的文件索引。
[goindex/index.js](https://github.com/Aicirou/goindex-theme-acrou/go2index) 是Workers脚本的内容。
[go2index/index.js](https://github.com/Aicirou/goindex-theme-acrou/go2index) 是Workers脚本的内容。
这个主题的goindex目前是基于 [yanzai/goindex](https://github.com/yanzai/goindex/)
@ -20,9 +20,10 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
- [x] 🎨 网格视图模式(文件预览)
- [x] 🎯 分页加载
- [x] 🌐 I18n多国语言
- [x] 🛠 html渲染
- [x] 🖥 视频在线播放(mp4,mkv,webm,flv,m3u8)
- [x] 🛠 Markdown/Html渲染也许它可以成为你的博客
- [x] 🖥 视频在线播放支持外挂字幕vtt
- [x] 🕹 支持自定义视频播放器API
- [x] 🎧 音频在线播放
- [x] 🚀 拥有更快的速度
## TODO
@ -32,8 +33,14 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
## 快速部署
1. 打开https://install.achirou.workers.dev 或者 https://goindex-quick-install.glitch.me
1. 打开以下任意网址(哪个快用哪个)
- https://install.achirou.workers.dev
- https://goindex-quick-install.glitch.me
- https://goindex-install.herokuapp.com
2. 授权并获取授权码
3. 将代码部署到 [Cloudflare Workers](https://www.cloudflare.com/)
## 部署
@ -47,9 +54,83 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
> 如果你写了一篇不错的文章想分享给大家请提交Issues我会把链接贴在这里。
## 选项
### Video
| Option | Type | Default | Description |
| ---------- | -------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `api` | String | `''` | 外部视频播放器api。当这个值不为空时以下所有选项都不起作用。 |
| `autoplay` | Boolean | `true` | 当设置为`true`时,视频会自动播放,不过这取决于浏览器是否支持。 |
| `controls` | Array, Function or Element | `['play-large', 'restart', 'play', 'progress', 'current-time', 'duration', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'download', 'fullscreen']` | 控制栏中显示哪些按钮。详细查看[CONTROLS.md](https://github.com/sampotts/plyr/blob/master/CONTROLS.md#using-default-controls) |
| `settings` | Array | `['quality', 'speed', 'loop']` | 菜单中显示哪些设置 |
更多选项查看 plyr [options](https://github.com/sampotts/plyr#options)
### Audio
| Option | Type | Default | Description |
| ----------- | ------- | ---------- | ------------------------------------------------------------ |
| `container` | String | `.aplayer` | 不支持修改 |
| `fixed` | Boolean | `true` | 不支持修改 |
| `autoplay` | Boolean | `false` | 当设置为`true`时,音频会自动播放,不过这取决于浏览器是否支持。 |
| `loop` | String | `'all'` | 音频循环播放, 可选值: 'all', 'one', 'none' |
| `order` | String | `'list'` | 音频循环顺序, 可选值: 'list', 'random' |
| `preload` | String | `'auto'` | 预加载,可选值: 'none', 'metadata', 'auto' |
| `volume` | Number | `0.7` | 默认音量,请注意播放器会记忆用户设置,用户手动设置音量后默认音量即失效 |
| `audios` | Array | `[]` | 预设播放列表。详情查看 [FAQ](#FAQ) |
更多选项查看 APlayer [options](https://aplayer.js.org/#/home?id=options)
## 常见问题
> 怎么修改列表的排序方式?
修改第636行或者在代码中搜索`params.orderBy`
```javascript
params.orderBy = "folder,name,modifiedTime desc";
params.orderBy = "modifiedTime desc";
```
> 怎么预设音频播放列表?
音频选项中添加 `audios`
```
audio: {
audios: [
{
name: "Mojito",
artist: "周杰伦",
url: "https://xx.mp3",
lrc: "https://xx.lrc",
cover: "https://xx.jpg"
}
]
}
```
## 更新日志
### 2020-06-02
### v2.0.8
- 修复图片文件操作列不可用问题 [#100](https://github.com/Aicirou/goindex-theme-acrou/issues/100)
- 修复错误判断图片问题 [#88](https://github.com/Aicirou/goindex-theme-acrou/issues/88)
- 修复无法设置10个以上的drive [#59](https://github.com/Aicirou/goindex-theme-acrou/issues/59) [#85](https://github.com/Aicirou/goindex-theme-acrou/issues/85)
- 修复搜索结果中的某些操作无法使用
- 修复修改内容后缓存不刷新
- 添加默认视频播放器 ([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)
- 添加音频播放器 ([APlayer](https://github.com/MoePlayer/APlayer)) [#77](https://github.com/Aicirou/goindex-theme-acrou/issues/77)
- 视频页面添加复制按钮
- 添加 [NProgress](https://github.com/rstacruz/nprogress)
- 添加语言缓存清理
- 添加快捷方式无法下载提示 [#76](https://github.com/Aicirou/goindex-theme-acrou/issues/76)
- Markdown默认显示渲染的html
- CLI删除懒加载模块的预加载
- 删除fontawesome5
### v2.0.5
- 添加清理文件缓存
- 支持自定义视频播放器API
@ -59,7 +140,7 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
- 解决文件名中有#无法打开的问题 [#20](https://github.com/Aicirou/goindex-theme-acrou/issues/20)
- 解决当前页面加载中切换页面会回退的问题 [#37](https://github.com/Aicirou/goindex-theme-acrou/issues/37) (感谢[@PedroZhang](https://github.com/PedroZhang)帮忙找出的问题原因)
### 2020-5-20
### v2.0.0
- 程序改为单页应用
@ -77,17 +158,13 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
- 解决url编码问题 [#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)
- 解决其他已知问题
### 2020-4-29
### v1.x
- 支持多盘切换
- 添加版本检测
- 优化搜索结果
- 优化页面显示
## 关于
这个项目一开始仅仅是为了满足我个人观感体验开发的当这个项目收获了第一个start、第一个fork、第一个issues再到大家不断开始提建议让我有了更新下去的动力。非常感谢大家的支持得以有了现在的2.0版本。
## Lisense
[MIT](LICENSE)

4
dist/app.js vendored
View File

@ -1,6 +1,6 @@
var scripts = ["https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/app.e49c59b7.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-0547c3c8.6e046de5.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-2a286362.28e897ea.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-2d0aed92.ee92bfe8.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-2d0af48a.2a7f864b.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-2d0b2ee4.5e57f531.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-2d0c4c28.37bed2e6.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-48822c69.84781d86.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-498d4d6d.b50c8ae9.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-50779d2e.f2a32ba4.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-91c3565e.89cfe713.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-d364e3a0.7582266a.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/js/chunk-vendors.e7bd81b3.js"];
var cdnjs = ["https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js","https://cdn.jsdelivr.net/npm/vue-i18n@8.17.3/dist/vue-i18n.min.js","https://cdn.jsdelivr.net/npm/vue-router@3.1.6/dist/vue-router.min.js","https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.js","https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js","https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/index.js","https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js","https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js","https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js","https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js","https://cdn.jsdelivr.net/npm/markdown-it@10.0.0/dist/markdown-it.min.js","https://at.alicdn.com/t/font_1760192_axq33n6snd.js"];
var scripts = ["https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.8/dist/js/app.da7f5f3f.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.8/dist/js/chunk-vendors.3c185c97.js"];
var cdnjs = ["https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js","https://cdn.jsdelivr.net/npm/vue-i18n@8.17.3/dist/vue-i18n.min.js","https://cdn.jsdelivr.net/npm/vue-router@3.1.6/dist/vue-router.min.js","https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.js","https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js","https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/index.js","https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js","https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js","https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js","https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js","https://at.alicdn.com/t/font_1760192_8add3xcxs4u.js"];
cdnjs.forEach((item) => {
document.write('<script src="' + item + '"></script>');
});

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
dist/css/app.a0b47f7b.css.gz vendored Normal file

Binary file not shown.

1
dist/css/chunk-02979915.7494f567.css vendored Normal file
View File

@ -0,0 +1 @@
.g2-breadcrumb[data-v-18c33a6f]{border-bottom:2px solid #f5f5f5;padding:10px .75em}.level-left[data-v-18c33a6f]{width:95%}.level-left .level-item[data-v-18c33a6f]{display:initial;width:100%}.level-right .level-item[data-v-18c33a6f]:hover{cursor:pointer}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.g2-breadcrumb[data-v-3b7c6fae]{border-bottom:2px solid #f5f5f5;padding:10px .75em}.level-left[data-v-3b7c6fae]{width:95%}.level-left .level-item[data-v-3b7c6fae]{display:initial;width:100%}.level-right .level-item[data-v-3b7c6fae]:hover{cursor:pointer}

View File

@ -1 +0,0 @@
.g2-breadcrumb[data-v-3b7c6fae]{border-bottom:2px solid #f5f5f5;padding:10px .75em}.level-left[data-v-3b7c6fae]{width:95%}.level-left .level-item[data-v-3b7c6fae]{display:initial;width:100%}.level-right .level-item[data-v-3b7c6fae]:hover{cursor:pointer}.g2-grid-view[data-v-1871190e]{margin-bottom:2rem}.media-left[data-v-1871190e]{margin-right:.5rem}.content[data-v-1871190e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-size:14px}.column[data-v-1871190e]{cursor:pointer}.g2-grid-view-card[data-v-1871190e]{box-shadow:0 4px 10px rgba(0,0,0,.2),0 0 1px rgba(0,0,0,.05);border-radius:.5rem}.g2-grid-view-card .card-image img[data-v-1871190e]{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.g2-grid-view-card .card-image .file-icon[data-v-1871190e]{width:64px;height:64px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.g2-grid-view-card[data-v-1871190e]:hover{box-shadow:0 4px 10px rgba(0,0,0,.4),0 0 1px rgba(0,0,0,.05)}.g2-grid-view-card .g2-grid-view-file .content[data-v-1871190e]{padding:8px}.g2-grid-view-folder[data-v-1871190e]{padding:10px}.g2-grid-view-play[data-v-1871190e]:before{z-index:10;position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:rgba(0,0,0,.15);opacity:1;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#33000000,endColorstr=#33000000);border-top-left-radius:.5rem;border-top-right-radius:.5rem}.g2-grid-view-play i[data-v-1871190e]{font-style:normal}.g2-grid-view-play i[data-v-1871190e]:before{z-index:10;position:absolute;top:50%;left:0;right:0;text-align:center;height:0;color:hsla(0,0%,100%,.67);content:"\e6f6";font-size:3rem;font-family:iconfont!important;line-height:0}.iconfont[data-v-1871190e]{width:1.5em;height:1.5em;vertical-align:middle}

1
dist/css/chunk-6f177d7a.9b848216.css vendored Normal file
View File

@ -0,0 +1 @@
.g2-grid-view[data-v-1871190e]{margin-bottom:2rem}.media-left[data-v-1871190e]{margin-right:.5rem}.content[data-v-1871190e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-size:14px}.column[data-v-1871190e]{cursor:pointer}.g2-grid-view-card[data-v-1871190e]{box-shadow:0 4px 10px rgba(0,0,0,.2),0 0 1px rgba(0,0,0,.05);border-radius:.5rem}.g2-grid-view-card .card-image img[data-v-1871190e]{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.g2-grid-view-card .card-image .file-icon[data-v-1871190e]{width:64px;height:64px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.g2-grid-view-card[data-v-1871190e]:hover{box-shadow:0 4px 10px rgba(0,0,0,.4),0 0 1px rgba(0,0,0,.05)}.g2-grid-view-card .g2-grid-view-file .content[data-v-1871190e]{padding:8px}.g2-grid-view-folder[data-v-1871190e]{padding:10px}.g2-grid-view-play[data-v-1871190e]:before{z-index:10;position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:rgba(0,0,0,.15);opacity:1;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#33000000,endColorstr=#33000000);border-top-left-radius:.5rem;border-top-right-radius:.5rem}.g2-grid-view-play i[data-v-1871190e]{font-style:normal}.g2-grid-view-play i[data-v-1871190e]:before{z-index:10;position:absolute;top:50%;left:0;right:0;text-align:center;height:0;color:hsla(0,0%,100%,.67);content:"\e6f6";font-size:3rem;font-family:iconfont!important;line-height:0}.iconfont[data-v-1871190e]{width:1.5em;height:1.5em;vertical-align:middle}

1
dist/css/chunk-74a0e63a.63fc079f.css vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/css/chunk-74a0e63a.63fc079f.css.gz vendored Normal file

Binary file not shown.

12
dist/css/chunk-vendors.9b14a1cb.css vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/css/chunk-vendors.9b14a1cb.css.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

42
dist/index.html vendored
View File

@ -1,41 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.5/dist/favicon.ico><link href=https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css rel=preload as=style><link href=https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css rel=stylesheet><link href=https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css rel=preload as=style><link href=https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css rel=stylesheet><link href=https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css rel=preload as=style><link href=https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css rel=stylesheet><title>go2index-theme-acrou</title><script>var authConfig = {
version: '1.1.1',
roots: [
{
id: "",
name: "TeamDrive",
pass: "",
},
{
id: "root",
name: "PriveDrive",
pass: "",
},
{
id: "",
name: "folder1",
pass: "",
}
],
};
var themeOptions = {
// en/zh-chs/zh-cht
languages: 'en',
render: {
head_md: true,
readme_md: true,
// 是否显示文件/文件夹描述(默认不显示)
// Show file/folder description or not (not shown by default)
desc: true,
},
player: {
api: "https://api.jsonpop.cn/demo/blplyaer/?url="
}
}
window.gdconfig = JSON.parse(JSON.stringify({ version: authConfig.version, themeOptions: themeOptions }));
window.themeOptions = themeOptions;
window.gds = JSON.parse(
JSON.stringify(authConfig.roots.map((it) => it.name))
);
window.current_drive_order = 0;
// window.MODEL = { q: "the",root_type: 1 };</script><script src=https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js></script><script src=https://cdn.jsdelivr.net/npm/vue-i18n@8.17.3/dist/vue-i18n.min.js></script><script src=https://cdn.jsdelivr.net/npm/vue-router@3.1.6/dist/vue-router.min.js></script><script src=https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.js></script><script src=https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js></script><script src=https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/index.js></script><script src=https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js></script><script src=https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js></script><script src=https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js></script><script src=https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js></script><script src=https://cdn.jsdelivr.net/npm/markdown-it@10.0.0/dist/markdown-it.min.js></script><script src=https://at.alicdn.com/t/font_1760192_axq33n6snd.js></script></head><body><div id=app></div><script src=/app.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@v2.0.8/dist/favicon.ico><link href=https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css rel=preload as=style><link href=https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css rel=stylesheet><link href=https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css rel=preload as=style><link href=https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css rel=stylesheet><title>go2index-theme-acrou</title><script src=/setting.js></script><script src=https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js></script><script src=https://cdn.jsdelivr.net/npm/vue-i18n@8.17.3/dist/vue-i18n.min.js></script><script src=https://cdn.jsdelivr.net/npm/vue-router@3.1.6/dist/vue-router.min.js></script><script src=https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.js></script><script src=https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js></script><script src=https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/index.js></script><script src=https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js></script><script src=https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js></script><script src=https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js></script><script src=https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js></script><script src=https://at.alicdn.com/t/font_1760192_8add3xcxs4u.js></script></head><body><div id=app></div><script src=/app.js></script></body></html>

1
dist/js/app.da7f5f3f.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/app.da7f5f3f.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

1
dist/js/chunk-02979915.dbf243db.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-02979915.dbf243db.js.gz vendored Normal file

Binary file not shown.

10
dist/js/chunk-0609f824.2923b048.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-0609f824.2923b048.js.gz vendored Normal file

Binary file not shown.

1
dist/js/chunk-072ae9f4.ba799a67.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-072ae9f4.ba799a67.js.gz vendored Normal file

Binary file not shown.

View File

@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0547c3c8"],{"498a":function(n,t,e){"use strict";var r=e("23e7"),a=e("58a8").trim,i=e("c8d2");r({target:"String",proto:!0,forced:i("trim")},{trim:function(){return a(this)}})},5899:function(n,t){n.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},"58a8":function(n,t,e){var r=e("1d80"),a=e("5899"),i="["+a+"]",c=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),o=function(n){return function(t){var e=String(r(t));return 1&n&&(e=e.replace(c,"")),2&n&&(e=e.replace(s,"")),e}};n.exports={start:o(1),end:o(2),trim:o(3)}},6688:function(n,t,e){"use strict";var r=e("8f28"),a=e.n(r);a.a},"8f28":function(n,t,e){},b6ba:function(n,t,e){"use strict";e.r(t);var r=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"component-markdown"},[n.markedHTML?n._e():e("div",{staticClass:"spin-group"},[e("i",{staticClass:"fa fa-spinner fa-pulse fa-2x fa-fw"}),e("span",{staticClass:"sr-only"},[n._v("Loading...")])]),e("div",{staticClass:"markdown-body content",domProps:{innerHTML:n._s(n.markedHTML)}})])},a=[],i=(e("96cf"),e("1da1")),c=e("0e54"),s=e.n(c),o=(e("99af"),e("ac1f"),e("466d"),e("5319"),e("498a"),e("cbd9")),u=function(n){var t=n.replace(/<[^<>]+>/g,"").trim(),e=/^https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+$/i,r=/^链接: https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+ 密码: [a-z0-9]{4}$/i;if(e.test(t))return'<div class="baidupan">\n <a href="'.concat(t,'" class="container">\n <div class="icon">\n <img src="').concat(Object(o["a"])("images/baidu-pan-logo.png"),'" style="background-color: transparent;">\n </div>\n <div class="url">').concat(t,"</div>\n </a>\n </div>");if(r.test(t)){var a=t.match(/https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+/i),i=t.match(/[a-z0-9]{4}$/i);return'<div class="baidupan">\n <div class="container">\n <a href="'.concat(a[0],'">\n <div class="icon">\n <img src="').concat(Object(o["a"])("images/baidu-pan-logo.png"),'" style="background-color: transparent;">\n </div>\n <div class="url">').concat(a[0],'</div>\n </a>\n <div class="line"></div>\n <div class="pwd">\n 密码\n <span>').concat(i[0],"</span>\n </div>\n </div>\n </div>")}return!1},d=e("9bd2");function l(n){return Object(d["a"])({url:n,method:"get"})}var p={name:"markdown",props:{url:{type:String,required:!1,default:""},source:{type:String,required:!1,default:""},highlight:{type:Boolean,required:!1,default:!1},baidupan:{type:Boolean,required:!1,default:!0}},data:function(){return{getReadmePublicPath:"",markedHTML:""}},mounted:function(){this.url?this.initWithUrl():this.source?this.initWithMd():console.log("not mounted init")},methods:{initWithMd:function(){this.markedHTML=this.marked(this.source)},initWithUrl:function(){var n=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.getReadme(n.url);case 2:n.markedHTML=t.sent;case 3:case"end":return t.stop()}}),t)})))()},getReadme:function(n){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l(n);case 2:return r=e.sent,console.log(r),e.abrupt("return",t.marked(r.data));case 5:case"end":return e.stop()}}),e)})))()},marked:function(n){var t=this,e=new s.a.Renderer;return e.blockquote=function(n){return t.baidupan&&u(n,t.$baseUrl)||"<blockquote>".concat(n,"</blockquote>")},s()(n,{renderer:e})}}},f=p,m=(e("6688"),e("2877")),v=Object(m["a"])(f,r,a,!1,null,null,null);t["default"]=v.exports},c8d2:function(n,t,e){var r=e("d039"),a=e("5899"),i="…";n.exports=function(n){return r((function(){return!!a[n]()||i[n]()!=i||a[n].name!==n}))}}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-075e2f32"],{"498a":function(n,t,e){"use strict";var r=e("23e7"),a=e("58a8").trim,i=e("c8d2");r({target:"String",proto:!0,forced:i("trim")},{trim:function(){return a(this)}})},5899:function(n,t){n.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},"58a8":function(n,t,e){var r=e("1d80"),a=e("5899"),i="["+a+"]",c=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),o=function(n){return function(t){var e=String(r(t));return 1&n&&(e=e.replace(c,"")),2&n&&(e=e.replace(s,"")),e}};n.exports={start:o(1),end:o(2),trim:o(3)}},6688:function(n,t,e){"use strict";var r=e("8f28"),a=e.n(r);a.a},"8f28":function(n,t,e){},b6ba:function(n,t,e){"use strict";e.r(t);var r=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"component-markdown"},[n.markedHTML?n._e():e("div",{staticClass:"spin-group"},[e("i",{staticClass:"fa fa-spinner fa-pulse fa-2x fa-fw"}),e("span",{staticClass:"sr-only"},[n._v("Loading...")])]),e("div",{staticClass:"markdown-body content",domProps:{innerHTML:n._s(n.markedHTML)}})])},a=[],i=(e("ac1f"),e("5319"),e("96cf"),e("1da1")),c=e("0e54"),s=e.n(c),o=(e("99af"),e("466d"),e("498a"),e("cbd9")),u=function(n){var t=n.replace(/<[^<>]+>/g,"").trim(),e=/^https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+$/i,r=/^链接: https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+ 密码: [a-z0-9]{4}$/i;if(e.test(t))return'<div class="baidupan">\n <a href="'.concat(t,'" class="container">\n <div class="icon">\n <img src="').concat(Object(o["a"])("images/baidu-pan-logo.png"),'" style="background-color: transparent;">\n </div>\n <div class="url">').concat(t,"</div>\n </a>\n </div>");if(r.test(t)){var a=t.match(/https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+/i),i=t.match(/[a-z0-9]{4}$/i);return'<div class="baidupan">\n <div class="container">\n <a href="'.concat(a[0],'">\n <div class="icon">\n <img src="').concat(Object(o["a"])("images/baidu-pan-logo.png"),'" style="background-color: transparent;">\n </div>\n <div class="url">').concat(a[0],'</div>\n </a>\n <div class="line"></div>\n <div class="pwd">\n 密码\n <span>').concat(i[0],"</span>\n </div>\n </div>\n </div>")}return!1},d=e("9bd2");function l(n){return Object(d["a"])({url:n,method:"get"})}var f={name:"markdown",props:{url:{type:String,required:!1,default:""},source:{type:String,required:!1,default:""},highlight:{type:Boolean,required:!1,default:!1},baidupan:{type:Boolean,required:!1,default:!0}},data:function(){return{getReadmePublicPath:"",markedHTML:""}},mounted:function(){this.url?this.initWithUrl():this.source?this.initWithMd():console.log("not mounted init")},watch:{source:function(n){n&&this.initWithMd()}},methods:{handler:function(n){return n&&(n=n.replace(/---\n([\s\S]*)---\n/,"")),n},initWithMd:function(){this.markedHTML=this.marked(this.handler(this.source))},initWithUrl:function(){var n=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.getReadme(n.url);case 2:n.markedHTML=t.sent;case 3:case"end":return t.stop()}}),t)})))()},getReadme:function(n){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l(n);case 2:return r=e.sent,console.log(r),e.abrupt("return",t.marked(r.data));case 5:case"end":return e.stop()}}),e)})))()},marked:function(n){var t=this,e=new s.a.Renderer;return e.blockquote=function(n){return t.baidupan&&u(n,t.$baseUrl)||"<blockquote>".concat(n,"</blockquote>")},s()(n,{renderer:e})}}},p=f,m=(e("6688"),e("2877")),h=Object(m["a"])(p,r,a,!1,null,null,null);t["default"]=h.exports},c8d2:function(n,t,e){var r=e("d039"),a=e("5899"),i="…";n.exports=function(n){return r((function(){return!!a[n]()||i[n]()!=i||a[n].name!==n}))}}}]);

1
dist/js/chunk-1f1f60af.aa1f85c9.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-1f1f60af.aa1f85c9.js.gz vendored Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a286362"],{"2db9":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("nav",{staticClass:"breadcrumb level g2-breadcrumb is-hidden-mobile is-hidden-touch",attrs:{"aria-label":"breadcrumbs"}},[n("div",{staticClass:"level-left"},[n("div",{staticClass:"level-item"},[n("ul",[n("li",[n("a",{directives:[{name:"show",rawName:"v-show",value:t.navs&&t.navs.length>0,expression:"navs && navs.length > 0"}],on:{click:function(e){return t.go("/"+t.index+":/")}}},[t._v(t._s(t.$t("index")))])]),t._l(t.navs,(function(e,a){return n("li",{key:a,class:a+1==t.navs.length?"is-active":""},[a+1==t.navs.length?n("a",{attrs:{"aria-current":"page",href:"#"}},[t._v(t._s(e.title))]):n("a",{on:{click:function(n){return t.go(e.path)}}},[t._v(t._s(e.title))])])}))],2)])]),n("div",{staticClass:"level-right"},[n("div",{staticClass:"level-item"},[n("view-mode")],1)])])])},r=[],i=(n("ac1f"),n("466d"),n("1276"),n("498a"),n("f3f7")),s=n("45d8"),c={props:["name"],components:{ViewMode:i["a"]},data:function(){return{navs:[],index:"/"}},mounted:function(){this.render()},watch:{$route:"render"},methods:{go:function(t){this.$router.push({path:t})},render:function(){this.index=this.$route.params.id;var t=this.$route.params.cmd;if("search"!==t){var e=this.$route.path;t&&(e=Object(s["d"])(this.$route.params.path));var n=e.trim("/").split("/"),a="/";if(n.length>0){var r=[];for(var i in n){var c=n[i];""!=c&&(c=decodeURIComponent(c),a+=n[i]+"/",c.match("[0-9]+:")||r.push({path:a,title:c}))}this.navs=r}}else this.navs=[]}}},o=c,u=(n("c9d4"),n("2877")),l=Object(u["a"])(o,a,r,!1,null,"3b7c6fae",null);e["default"]=l.exports},"498a":function(t,e,n){"use strict";var a=n("23e7"),r=n("58a8").trim,i=n("c8d2");a({target:"String",proto:!0,forced:i("trim")},{trim:function(){return r(this)}})},5899:function(t,e){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},"58a8":function(t,e,n){var a=n("1d80"),r=n("5899"),i="["+r+"]",s=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),o=function(t){return function(e){var n=String(a(e));return 1&t&&(n=n.replace(s,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:o(1),end:o(2),trim:o(3)}},a844:function(t,e,n){},c8d2:function(t,e,n){var a=n("d039"),r=n("5899"),i="…";t.exports=function(t){return a((function(){return!!r[t]()||i[t]()!=i||r[t].name!==t}))}},c9d4:function(t,e,n){"use strict";var a=n("a844"),r=n.n(a);r.a}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aed92"],{"0c8a":function(t,a,s){"use strict";s.r(a);var n=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"content g2-content"},[s("figure",{staticClass:"image"},[s("img",{class:t.display?"":"is-hidden",attrs:{src:t.imgurl},on:{load:t.loading}}),s("center",{class:t.display?"is-hidden":""},[s("i",{staticClass:"fa fa-spinner fa-pulse fa-2x fa-fw"}),s("span",{staticClass:"sr-only"},[t._v("Loading...")])])],1),s("hr")])},i=[],e=s("45d8"),r={data:function(){return{imgurl:"",display:!1}},computed:{url:function(){return this.$route.params.path?Object(e["d"])(this.$route.params.path):""}},activated:function(){this.render()},methods:{render:function(){var t=this.url;this.imgurl=t},loading:function(t){1==t.target.complete&&(this.display=!0)}}},l=r,c=s("2877"),u=Object(c["a"])(l,n,i,!1,null,null,null);a["default"]=u.exports}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c4c28"],{"3bcf":function(n,t,e){"use strict";e.r(t);var o=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"content",domProps:{innerHTML:n._s(n.content)}})},c=[],s=e("45d8"),i=e("0e54"),r=e.n(i),a={props:{option:{}},watch:{option:function(){this.render()}},mounted:function(){this.render()},data:function(){return{content:""}},computed:{defaultContent:function(){return'\n <center>\n <i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>\n <span class="sr-only">Loading...</span>\n </center>\n '}},methods:{render:function(){var n=this;this.content=this.defaultContent,Object(s["g"])(this.option,(function(t){n.content=r()(t)}))}}},u=a,f=e("2877"),d=Object(f["a"])(u,o,c,!1,null,null,null);t["default"]=d.exports}}]);

1
dist/js/chunk-2d0f0fbe.69f90caa.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-2d0f0fbe.69f90caa.js.gz vendored Normal file

Binary file not shown.

84
dist/js/chunk-2d1e3ca3.6f34a72d.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-2d1e3ca3.6f34a72d.js.gz vendored Normal file

Binary file not shown.

1
dist/js/chunk-2d225416.434bb4f5.js vendored Normal file
View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d225416"],{e42c:function(e,r,n){"use strict";n.r(r);var u=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[n("bread-crumb",{ref:"breadcrumb"}),n("router-view")],1)},t=[],c=n("2db9"),a={components:{BreadCrumb:c["default"]}},d=a,l=n("2877"),o=Object(l["a"])(d,u,t,!1,null,null,null);r["default"]=o.exports}}]);

9
dist/js/chunk-40ad1794.9718f8ab.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-40ad1794.9718f8ab.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-498d4d6d"],{"9eb9":function(t,e,n){},e7cb:function(t,e,n){"use strict";var a=n("9eb9"),c=n.n(a);c.a},fe7f:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content g2-content"},[n("object",{attrs:{data:t.url,type:"application/pdf",name:"file.pdf"}},[n("embed",{attrs:{src:t.url,type:"application/pdf"}})])])},c=[],r=n("45d8"),u={data:function(){return{}},computed:{url:function(){return this.$route.params.path?Object(r["d"])(this.$route.params.path):""}},methods:{}},s=u,i=(n("e7cb"),n("2877")),o=Object(i["a"])(s,a,c,!1,null,"59e039ae",null);e["default"]=o.exports}}]);

View File

@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-91c3565e"],{"2a7a":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"g2-grid-view"},[e("div",{staticClass:"columns is-multiline"},t._l(t.folders,(function(i,n){return e("div",{key:"folder_"+n,staticClass:"column is-one-quarter",on:{click:function(e){return t.action(i)}}},[e("div",{staticClass:"card g2-grid-view-card g2-grid-view-folder"},[e("div",{staticClass:"media"},[e("div",{staticClass:"content",attrs:{title:i.name}},[e("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":t.getIcon(i.mimeType)}})]),t._v(" "+t._s(i.name)+" ")])])])])})),0),e("div",{staticClass:"columns is-multiline"},t._l(t.files,(function(i,n){return e("div",{key:"file_"+n,staticClass:"column is-one-quarter",on:{click:function(e){return t.action(i,"view")}}},[e("div",{staticClass:"card g2-grid-view-card"},[e("div",{class:"card-image"+(-1!=i.mimeType.indexOf("video")?" g2-grid-view-play":"")},[e("i"),e("figure",{staticClass:"image is-square"},[i.thumbnailLink?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.thum(i.thumbnailLink),expression:"thum(file.thumbnailLink)"}],attrs:{alt:i.name}}):e("svg",{staticClass:"file-icon iconfont",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":t.getIcon(i.mimeType)}})])])]),e("div",{staticClass:"media g2-grid-view-file"},[e("div",{staticClass:"content",attrs:{title:i.name}},[e("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":t.getIcon(i.mimeType)}})]),t._v(" "+t._s(i.name)+" ")])])])])})),0)])},a=[],s=(e("4de4"),{name:"GridView",props:{data:{type:Array,default:function(){return[]}},getIcon:{type:Function},action:{type:Function},thum:{type:Function}},data:function(){return{}},computed:{folders:function(){return this.data.filter((function(t){return t.isFolder}))},files:function(){return this.data.filter((function(t){return!t.isFolder}))}},methods:{}}),r=s,c=(e("677f"),e("2877")),l=Object(c["a"])(r,n,a,!1,null,"1871190e",null);i["default"]=l.exports},"45a1":function(t,i,e){},"677f":function(t,i,e){"use strict";var n=e("45a1"),a=e.n(n);a.a}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b66a741"],{"2a7a":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"g2-grid-view"},[e("div",{staticClass:"columns is-multiline"},t._l(t.folders,(function(i,n){return e("div",{key:"folder_"+n,staticClass:"column is-one-quarter",on:{click:function(e){return t.action(i)}}},[e("div",{staticClass:"card g2-grid-view-card g2-grid-view-folder"},[e("div",{staticClass:"media"},[e("div",{staticClass:"content",attrs:{title:i.name}},[e("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":t.getIcon(i.mimeType)}})]),t._v(" "+t._s(i.name)+" ")])])])])})),0),e("div",{staticClass:"columns is-multiline"},t._l(t.files,(function(i,n){return e("div",{key:"file_"+n,staticClass:"column is-one-quarter",on:{click:function(e){return t.action(i,"view")}}},[e("div",{staticClass:"card g2-grid-view-card"},[e("div",{class:"card-image"+(-1!=i.mimeType.indexOf("video")?" g2-grid-view-play":"")},[e("i"),e("figure",{staticClass:"image is-square"},[i.thumbnailLink?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.thum(i.thumbnailLink),expression:"thum(file.thumbnailLink)"}],attrs:{alt:i.name}}):e("svg",{staticClass:"file-icon iconfont",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":t.getIcon(i.mimeType)}})])])]),e("div",{staticClass:"media g2-grid-view-file"},[e("div",{staticClass:"content",attrs:{title:i.name}},[e("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":t.getIcon(i.mimeType)}})]),t._v(" "+t._s(i.name)+" ")])])])])})),0)])},a=[],s=(e("4de4"),{name:"GridView",props:{data:{type:Array,default:function(){return[]}},getIcon:{type:Function},action:{type:Function},thum:{type:Function}},data:function(){return{}},computed:{folders:function(){return this.data.filter((function(t){return t.isFolder}))},files:function(){return this.data.filter((function(t){return!t.isFolder}))}},methods:{}}),r=s,c=(e("677f"),e("2877")),l=Object(c["a"])(r,n,a,!1,null,"1871190e",null);i["default"]=l.exports},"45a1":function(t,i,e){},"677f":function(t,i,e){"use strict";var n=e("45a1"),a=e.n(n);a.a}}]);

Binary file not shown.

1
dist/js/chunk-57544d36.20baab1a.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-57544d36.20baab1a.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-6f177d7a.9e63a858.js.gz vendored Normal file

Binary file not shown.

1
dist/js/chunk-74a0e63a.c88af107.js vendored Normal file
View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-74a0e63a"],{"764d":function(n,w,o){}}]);

File diff suppressed because one or more lines are too long

Binary file not shown.

25
dist/js/chunk-vendors.3c185c97.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/js/chunk-vendors.3c185c97.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

44
dist/setting.js vendored Normal file
View File

@ -0,0 +1,44 @@
var authConfig = {
version: "1.1.1",
roots: [
{
id: "",
name: "TeamDrive",
pass: "",
},
{
id: "root",
name: "PriveDrive",
pass: "",
},
{
id: "",
name: "folder1",
pass: "",
},
],
};
var themeOptions = {
// en/zh-chs/zh-cht
languages: "en",
render: {
head_md: true,
readme_md: true,
// 是否显示文件/文件夹描述(默认不显示)
// Show file/folder description or not (not shown by default)
desc: true,
},
video: {
api: "",
autoplay: true,
},
audio: {
autoplay: false,
},
};
window.gdconfig = JSON.parse(
JSON.stringify({ version: authConfig.version, themeOptions: themeOptions })
);
window.themeOptions = themeOptions;
window.gds = JSON.parse(JSON.stringify(authConfig.roots.map((it) => it.name)));
window.current_drive_order = 0;

11
dist/style.css vendored
View File

@ -1,11 +1,4 @@
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css);
@import url(https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css);
@import url(https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css);
@import url(css/chunk-vendors.e81dccfb.css);
@import url(css/chunk-91c3565e.9b848216.css);
@import url(css/chunk-50779d2e.ce88a193.css);
@import url(css/chunk-498d4d6d.30be7901.css);
@import url(css/chunk-48822c69.ee3330ec.css);
@import url(css/chunk-2a286362.75822c75.css);
@import url(css/chunk-0547c3c8.63d5b552.css);
@import url(css/app.0b3f4d4c.css);
@import url(css/chunk-vendors.9b14a1cb.css);
@import url(css/app.a0b47f7b.css);

View File

@ -1,7 +1,7 @@
// =======Options START=======
var authConfig = {
siteName: "GoIndex-theme-acrou", // 网站名称
version: "1.1.1", // 程序版本
version: "1.1.2", // 程序版本
theme: "acrou",
// 强烈推荐使用自己的 client_id 和 client_secret
client_id: "202264815644.apps.googleusercontent.com",
@ -67,7 +67,7 @@ var authConfig = {
var themeOptions = {
cdn: "https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou",
// 主题版本号
version: "2.0.5",
version: "2.0.8",
//可选默认系统语言:en/zh-chs/zh-cht
languages: "en",
render: {
@ -88,16 +88,22 @@ var themeOptions = {
desc: false,
},
/**
* 播放器选项
* Player options
* 视频播放器选项
* Video player options
*/
player: {
video: {
/**
* 播放器api不指定则使用浏览器默认播放器
* Player api(Use browser default player if not specified)
* 播放器api不指定则使用默认播放器
* Player api(Use default player if not specified)
*/
api: "https://api.jsonpop.cn/demo/blplyaer/?url=",
api: "",
autoplay: true,
},
/**
* 音频播放器选项
* Audio player options
*/
audio: {},
};
// =======Options END=======
@ -108,7 +114,7 @@ const FUNCS = {
/**
* 转换成针对谷歌搜索词法相对安全的搜索关键词
*/
formatSearchKeyword: function (keyword) {
formatSearchKeyword: function(keyword) {
let nothing = "";
let space = " ";
if (!keyword) return nothing;
@ -307,7 +313,12 @@ async function handleRequest(request) {
})
);
} else {
if (path.split("/").pop().toLowerCase() == ".password") {
if (
path
.split("/")
.pop()
.toLowerCase() == ".password"
) {
return basic_auth_res || new Response("", { status: 404 });
}
let file = await gd.file(path);
@ -928,9 +939,9 @@ class googleDrive {
}
sleep(ms) {
return new Promise(function (resolve, reject) {
return new Promise(function(resolve, reject) {
let i = 0;
setTimeout(function () {
setTimeout(function() {
console.log("sleep" + ms);
i++;
if (i >= 2) reject(new Error("i>=2"));
@ -940,7 +951,7 @@ class googleDrive {
}
}
String.prototype.trim = function (char) {
String.prototype.trim = function(char) {
if (char) {
return this.replace(
new RegExp("^\\" + char + "+|\\" + char + "+$", "g"),

View File

@ -1,7 +1,7 @@
{
"name": "go2index-theme-acrou",
"version": "2.0.5",
"g2index": "1.1.1",
"version": "2.0.8",
"g2index": "1.1.2",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",

View File

@ -15,20 +15,23 @@
</template>
<script>
import util from '@/libs/util'
import { mapActions } from "vuex";
import util from "@/libs/util";
export default {
data () {
data() {
return {};
},
methods: {
cleanCache () {
...mapActions("acrou/db", ["databaseClear"]),
cleanCache() {
new Promise((resolve) => {
Object.keys(localStorage).forEach((item) => {
if (item.indexOf("file_path_") !== -1) {
localStorage.removeItem(item);
}
});
util.cookies.remove("lang")
util.cookies.remove("lang");
this.databaseClear();
resolve();
}).then(() => {
this.$notify({

View File

@ -13,7 +13,6 @@ export default {
add({ state, dispatch }, { audio, play }) {
return new Promise((resolve) => {
var index = state.openedAudios.findIndex((s) => s.id === audio.id);
console.log(index);
if (index >= 0) {
state.openedAudios.splice(index, 1);
state.player.list.remove(index + state.customAudios.length || 0);

View File

@ -13,7 +13,7 @@ const text_exts = [
"sh",
"md",
];
const video_exts = ["mp4", "webm", "mkv", "m3u8", "flv"];
const video_exts = ["mp4", "webm", "mkv", "m3u8", "flv", "mov", "m4v"];
const image_exts = ["bmp", "jpg", "jpeg", "png", "gif"];
const pdf_exts = ["pdf"];
@ -76,7 +76,7 @@ export const checkExtends = (path) => {
.split(".")
.pop()
.toLowerCase();
let exts = text_exts.concat(...video_exts,...image_exts,...pdf_exts);
let exts = text_exts.concat(...video_exts, ...image_exts, ...pdf_exts);
return exts.indexOf(`${ext}`) != -1;
};
@ -88,11 +88,10 @@ export const decode64 = (str) => {
return Base64.decode(str);
};
export function get_file(option, callback) {
var path = option.path;
var modifiedTime = option.file.modifiedTime;
export function get_file({ path, file }, callback) {
var modifiedTime = file ? file.modifiedTime : null;
var key = "file_path_" + path + modifiedTime;
var data = localStorage.getItem(key);
var data = modifiedTime ? localStorage.getItem(key) : null;
if (data) {
return callback(data);
} else {

View File

@ -18,7 +18,7 @@ export default {
});
},
computed: {
...mapState("acrou/aplayer", ["player", "audios"]),
...mapState("acrou/aplayer", ["player", "audios", "openedAudios"]),
container() {
return document.getElementById("aplayer");
},
@ -36,7 +36,7 @@ export default {
};
},
show() {
return this.audios && this.audios.length > 0;
return (this.audios && this.audios.length > 0) || (this.openedAudios && this.openedAudios.length > 0);
},
},
methods: {

View File

@ -161,6 +161,7 @@ export default {
},
methods: {
...mapActions("acrou/aplayer", ["add"]),
...mapActions("acrou/db", ["set"]),
infiniteHandler($state) {
//
if (!this.page.page_token) {
@ -261,7 +262,7 @@ export default {
inited(viewer) {
this.$viewer = viewer;
},
action(file, target) {
action(file, target, isSearch = true) {
// If it is a shortcut, the prompt cannot be downloaded
if (file.mimeType === "application/vnd.google-apps.shortcut") {
this.$notify({
@ -271,6 +272,13 @@ export default {
});
return;
}
let cmd = this.$route.params.cmd;
if (cmd && cmd === "search" && isSearch) {
this.goSearchResult(file, target);
return;
}
if (file.mimeType.startsWith("image/") && target === "view") {
this.viewer = true;
this.$nextTick(() => {
@ -279,7 +287,11 @@ export default {
});
return;
}
if (file.mimeType.startsWith("audio/") && target === "view") {
if (
file.mimeType.startsWith("audio/") &&
file.mimeType.indexOf("mpegurl") == -1 &&
target === "view"
) {
if (window.aplayer) {
this.add({
audio: {
@ -293,11 +305,6 @@ export default {
}
return;
}
let cmd = this.$route.params.cmd;
if (cmd && cmd === "search") {
this.goSearchResult(file, target);
return;
}
this.target(file, target);
},
target(file, target) {
@ -315,8 +322,13 @@ export default {
return;
}
if (target === "view") {
let checkViewPath = checkView(path);
this.set({
path: `page.${checkViewPath}`,
value: file,
});
this.$router.push({
path: checkView(path),
path: checkViewPath,
});
return;
}
@ -361,7 +373,7 @@ export default {
let data = res.data;
if (data) {
file.path = `/${id}:${data}`;
this.target(file, target);
this.action(file, target, false);
}
})
.catch((e) => {

View File

@ -6,16 +6,8 @@
v-model="content"
:options="options"
/>
<markdown
v-if="ismd"
v-show="!isEdit"
:source="content"
/>
<a
v-if="ismd"
class="g2-content-edit is-hidden-mobile"
@click="edit"
>
<markdown v-if="ismd" v-show="!isEdit" :source="content" />
<a v-if="ismd" class="g2-content-edit is-hidden-mobile" @click="edit">
<i
:class="'fa' + (isEdit ? ' fa-eye' : ' fa-pencil-square-o')"
aria-hidden="true"
@ -25,6 +17,7 @@
</template>
<script>
import { mapActions } from "vuex";
import { get_file, decode64 } from "@utils/AcrouUtil";
import { codemirror } from "vue-codemirror";
@ -50,6 +43,12 @@ export default {
loaded: false,
};
},
beforeRouteEnter(to, from, next) {
if (from.path === "/") {
to.params.reload = true;
}
next();
},
activated() {
this.render();
},
@ -68,10 +67,23 @@ export default {
codemirror,
},
methods: {
render() {
...mapActions("acrou/db", ["get"]),
async render() {
let path = this.url;
this.content = this.$t("page.text.loading");
get_file({ path: path, file: {} }, (data) => {
this.content = `<center>
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr-only">Loading...</span>
</center>`;
let file;
let reload = this.$route.params.reload;
if (!reload) {
file = await this.get({
path: `page.${this.$route.fullPath}`,
});
}
get_file({ path: path, file }, (data) => {
this.content = data;
});
},