diff --git a/README.md b/README.md
index 5f61c55..73ecfe1 100644
--- a/README.md
+++ b/README.md
@@ -1,26 +1,42 @@
-![GoIndex](themes/logo.png)
-
-GoIndex
-====
+
+
goindex
+
+
+
+
+
+---
+
Google Drive Directory Index
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.
`index.js` is the content of the Workers script.
+
# Versions
## 1. [Aicirou/goindex-theme-acrou](https://github.com/Aicirou/goindex-theme-acrou)
-Worker Script (Dark Mode) : [index.js](https://github.com/alx-xlx/goindex/blob/2.0.5-darkmode-0.1/goindex-acrou/go2index/index.js)
+Worker Script (Dark Mode) : [index.js](https://github.com/alx-xlx/goindex/blob/2.0.8-darkmode-0.1/goindex-acrou/go2index/index.js)
-Worker Script (Multiple Google Accounts) : [index-multiple-accounts.js](https://github.com/alx-xlx/goindex/blob/master/goindex-acrou/go2index/index-multiple-accounts.js)
+
Demo - [goindex.teamsdrives.workers.dev](https://goindex.teamsdrives.workers.dev)
-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
+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
OR
@@ -42,13 +58,15 @@ Simply visit [this](https://goindex.glitch.me/) Modified (only for Dark Mode) ve
---
## 2. [maple3142/GDIndex](https://github.com/maple3142/GDIndex)
---
-Worker Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.5-darkmode-0.1/goindex-vue.js)
+Worker Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.8-darkmode-0.1/goindex-vue.js)
-Demo - [gdindex-dark.teamsdrives.workers.dev](https://gdindex-dark.teamsdrives.workers.dev)
+Demo - [gdindex-dark.teamsdrives.workers.dev](https://gdindex-dark.teamsdrives.workers.dev/)
+### [Demo - Dark Mode](https://gdindex-dark.teamsdrives.workers.dev/)
+![](https://i.imgur.com/1uIQZr5.png)
## 3. donwa/goindex
-Workers Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.5-darkmode-0.1/goindex.js)
+Workers Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.8-darkmode-0.1/goindex.js)
## Themes
@@ -69,6 +87,15 @@ Workers Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.5-darkmo
5.Download index.js in https://github.com/donwa/goindex and fill in root and refresh_token
6.Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)
+## Free Teamdrives
+Get free Google Shared Drives
+
+- [td.fastio.me](https://td.fastio.me)
+
+- [td.hackgence.com](https://td.hackgence.com)
+
+- [team.hackgence.com](https://team.hackgence.com)
+
## Quick Deployment
1.Open https://installen.gd.workers.dev/
2.Auth and get the code
diff --git a/goindex-acrou/.babelrc b/goindex-acrou/.babelrc
new file mode 100644
index 0000000..6ad5069
--- /dev/null
+++ b/goindex-acrou/.babelrc
@@ -0,0 +1,11 @@
+{
+ "plugins": [
+ [
+ "component",
+ {
+ "libraryName": "element-ui",
+ "styleLibraryName": "theme-chalk"
+ }
+ ]
+ ]
+}
diff --git a/goindex-acrou/.env b/goindex-acrou/.env
index 5bef875..3770141 100644
--- a/goindex-acrou/.env
+++ b/goindex-acrou/.env
@@ -1,4 +1,4 @@
VUE_APP_I18N_LOCALE=zh-chs
VUE_APP_I18N_FALLBACK_LOCALE=en
-VUE_APP_CDN_PATH=https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/
+VUE_APP_CDN_PATH=https://cdn.jsdelivr.net/gh/alx-xlx/goindex@2.0.8-darkmode-0.1/goindex-acrou/dist/
#VUE_APP_CDN_PATH=https://cloud.jsonpop.cn/go2index/vue/dist/
\ No newline at end of file
diff --git a/goindex-acrou/README.md b/goindex-acrou/README.md
index 940d244..f5af2a5 100644
--- a/goindex-acrou/README.md
+++ b/goindex-acrou/README.md
@@ -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/)
@@ -15,13 +15,16 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
## Features
+- [x] 👑 Page-level caching,browser forward and backward without reloading (MAC users have a better experience with the trackpad)
- [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)
+- [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
@@ -31,8 +34,14 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
## Quick Deployment
-1. Open 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
@@ -41,18 +50,104 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
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`
-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.
+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](https://www.cloudflare.com/)
> 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-5-20
+### Video
-- Program changed to SPA(single page application)
+| 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?
-- 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)
+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)
+- 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)
+
+### 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)
- 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
@@ -66,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)
diff --git a/goindex-acrou/README_zh.md b/goindex-acrou/README_zh.md
index b470ee0..8e4cb91 100644
--- a/goindex-acrou/README_zh.md
+++ b/goindex-acrou/README_zh.md
@@ -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/)
@@ -14,13 +14,16 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
## 特色
+- [x] 👑 页面级缓存,浏览器前进后退不刷新秒加载(mac用户使用触控板体验更佳)
- [x] 🗂 多盘切换
- [x] 🔐 Http Basic Auth
- [x] 🎨 网格视图模式(文件预览)
- [x] 🎯 分页加载
- [x] 🌐 I18n(多国语言)
-- [x] 🛠 html渲染
-- [x] 🖥 视频在线播放(mp4,mkv,webm,flv,m3u8)
+- [x] 🛠 Markdown/Html渲染(也许它可以成为你的博客)
+- [x] 🖥 视频在线播放(支持外挂字幕vtt)
+- [x] 🕹 支持自定义视频播放器(API)
+- [x] 🎧 音频在线播放
- [x] 🚀 拥有更快的速度
## TODO
@@ -30,8 +33,14 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
## 快速部署
-1. 打开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/)
## 部署
@@ -40,18 +49,102 @@ Acrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/)
2. 创建一个 [OAuth client ID](https://console.developers.google.com/apis/credentials/oauthclient)
3. 本地安装[rclone](https://rclone.org/downloads/)
4. 使用`rclone`获取`refresh_token`
-5. 下载`index.js` (https://github.com/Aicirou/goindex-theme-acrou/go2index)然后替换`client_id`,`client_secret`,`refresh_token` 为你刚刚获取到的
+5. 下载`index.js` (https://github.com/Aicirou/goindex-theme-acrou/tree/master/go2index) 然后替换`client_id`,`client_secret`,`refresh_token` 为你刚刚获取到的
6. 把代码部署到[Cloudflare Workers](https://www.cloudflare.com/)
> 如果你写了一篇不错的文章,想分享给大家,请提交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-5-20
+### 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)
+- 美化:网格模式文件无预览图时显示图标
+- 美化:调整HEAD.md渲染位置
+- 解决搜索不能预览的文件点击无法直接下载 [#30](https://github.com/Aicirou/goindex-theme-acrou/issues/30)
+- 解决文件名中有#无法打开的问题 [#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)帮忙找出的问题原因)
+
+### v2.0.0
- 程序改为单页应用
-- 添加页面级缓存(浏览器前后后退不刷新秒加载,mac用户使用触控板体验更佳)
+- 添加页面级缓存(浏览器前进后退不刷新秒加载,mac用户使用触控板体验更佳)
- 添加 http basic auth(每个盘符可单独配置用户名和密码,可以保护该盘下所有子文件和子文件夹)
- 添加网格视图模式(文件预览)
- 添加分页加载
@@ -65,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)
\ No newline at end of file
diff --git a/goindex-acrou/buildAppJSPlugin.js b/goindex-acrou/buildAppJSPlugin.js
index 748726b..e55d4cf 100644
--- a/goindex-acrou/buildAppJSPlugin.js
+++ b/goindex-acrou/buildAppJSPlugin.js
@@ -8,41 +8,44 @@ const cdn = {
class BuildAppJSPlugin {
apply(compiler) {
- // emit 是异步 hook,使用 tapAsync 触及它,还可以使用 tapPromise/tap(同步)
compiler.hooks.emit.tapAsync(
"BuildAppJSPlugin",
(compilation, callback) => {
+ const isProd = process.env.NODE_ENV === "production"
let cssarr = [];
let jsarr = [];
- // 遍历所有编译过的资源文件,
- // 对于每个文件名称,都添加一行内容。
+ let reg = "";
+ if (isProd) {
+ reg = "(app|chunk-vendors)\\.";
+ }
+ // 遍历所有编译过的资源文件
for (let filename in compilation.assets) {
- if (filename.match(".*\\.js$")) {
- if (process.env.NODE_ENV === "production") {
+ if (filename.match(reg + ".*\\.js$")) {
+ if (isProd) {
filename = (process.env.VUE_APP_CDN_PATH || "/") + filename;
} else {
filename = "/" + filename;
}
jsarr.push(filename);
}
- if (filename.match(".*\\.css$")) {
+ if (filename.match(reg + ".*\\.css$")) {
cssarr.push(filename);
}
}
- cssarr = cssarr.sort(function(a) {
+ cssarr = cssarr.sort(function (a) {
return a.indexOf("app.");
});
- var cdnjs = ''
- if (process.env.NODE_ENV === "production") {
+ var cdnjs = "";
+ if (isProd) {
cssarr = cdn.css.concat(cssarr);
cdnjs = `var cdnjs = ${JSON.stringify(cdn.js)};
cdnjs.forEach((item) => {
document.write('');
- });`
+ });`;
} else {
- cssarr = cssarr.concat(cdnDependencies
- .filter((e) => e.name === "")
- .map((e) => e.css));
+ cssarr = cssarr.concat(
+ cdnDependencies.filter((e) => e.name === "").map((e) => e.css)
+ );
}
let content = `
var scripts = ${JSON.stringify(jsarr)};
@@ -51,25 +54,25 @@ class BuildAppJSPlugin {
document.write('');
});
`;
- let cssContent = ''
- cssarr.forEach(item=>{
- cssContent += `@import url(${item});\n`
- })
+ let cssContent = "";
+ cssarr.forEach((item) => {
+ cssContent += `@import url(${item});\n`;
+ });
// 将这个列表作为一个新的文件资源,插入到 webpack 构建中:
compilation.assets["app.js"] = {
- source: function() {
+ source: function () {
return content;
},
- size: function() {
+ size: function () {
return jsarr.length;
},
};
compilation.assets["style.css"] = {
- source: function() {
+ source: function () {
return cssContent;
},
- size: function() {
+ size: function () {
return cssarr.length;
},
};
diff --git a/goindex-acrou/dependencies-cdn.js b/goindex-acrou/dependencies-cdn.js
index 29096d3..d076721 100644
--- a/goindex-acrou/dependencies-cdn.js
+++ b/goindex-acrou/dependencies-cdn.js
@@ -9,18 +9,7 @@ module.exports = [
{ name: 'js-cookie', library: 'Cookies', js: 'https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js', css: '' },
{ name: 'lowdb', library: 'low', js: 'https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js', css: '' },
{ name: 'lowdb/adapters/LocalStorage', library: 'LocalStorage', js: 'https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js', css: '' },
- // { name: 'brace', library: 'ace', js: 'https://cdn.jsdelivr.net/npm/brace@0.11.1/index.min.js', css: '' },
- // { name: 'brace/ext/language_tools', library: 'language_tools', js: ' https://cdn.jsdelivr.net/npm/brace@0.11.1/ext/language_tools.js', css: '' },
- // { name: 'brace/mode/html', library: 'html', js: ' https://cdn.jsdelivr.net/npm/brace@0.11.1/mode/html.js', css: '' },
- // { name: 'brace/mode/javascript', library: 'javascript', js: ' https://cdn.jsdelivr.net/npm/brace@0.11.1/mode/javascript.js', css: '' },
- // { name: 'brace/mode/less', library: 'less', js: ' https://cdn.jsdelivr.net/npm/brace@0.11.1/mode/less.js', css: '' },
- // { name: 'brace/theme/chrome', library: 'chrome', js: ' https://cdn.jsdelivr.net/npm/brace@0.11.1/theme/chrome.js', css: '' },
- // { name: 'brace/snippets/javascript', library: 'javascript', js: ' https://cdn.jsdelivr.net/npm/brace@0.11.1/snippets/javascript.js', css: '' },
- // { name: 'vue2-ace-editor', library: 'Vue2ACEEditor', js: 'https://cdn.jsdelivr.net/npm/vue2-ace-editor@0.0.15/index.min.js', css: '' },
- { name: 'markdown-it', library: 'markdownit', js: 'https://cdn.jsdelivr.net/npm/markdown-it@10.0.0/dist/markdown-it.min.js', css: '' },
- { name: '', library: '', js: 'https://at.alicdn.com/t/font_1760192_axq33n6snd.js', css: '' },
- { name: '', library: '', js: '', css: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css' },
+ { name: '', library: '', js: 'https://at.alicdn.com/t/font_1760192_8add3xcxs4u.js', css: '' },
{ name: '', library: '', js: '', css: 'https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css' },
{ name: '', library: '', js: '', css: 'https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css' },
- // { name: '', library: '', js: '', css: 'https://cdn.jsdelivr.net/npm/bulma-pageloader@0.3.0/dist/css/bulma-pageloader.min.css' },
]
\ No newline at end of file
diff --git a/goindex-acrou/dist/app.js b/goindex-acrou/dist/app.js
index cffe576..4b6d301 100644
--- a/goindex-acrou/dist/app.js
+++ b/goindex-acrou/dist/app.js
@@ -1,6 +1,6 @@
- var scripts = ["https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/app.7b32cad3.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/chunk-0856609f.03c96958.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/chunk-2458ab2f.bcfee82a.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/chunk-2d0aed92.295ece1d.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/chunk-2d0b2ee4.9b0ee5e5.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/chunk-2d0c4c28.32f0d528.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/chunk-48822c69.15514e05.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/chunk-498d4d6d.467d8cc0.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/chunk-d364e3a0.a8119811.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@master/goindex-acrou/dist/js/chunk-vendors.d9b6bd36.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/alx-xlx/goindex@2.0.8-darkmode-0.1/goindex-acrou/dist/js/app.da7f5f3f.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@2.0.8-darkmode-0.1/goindex-acrou/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('');
});
diff --git a/goindex-acrou/dist/app.min.js b/goindex-acrou/dist/app.min.js
new file mode 100644
index 0000000..cd17377
--- /dev/null
+++ b/goindex-acrou/dist/app.min.js
@@ -0,0 +1,7 @@
+/**
+ * Minified by jsDelivr using Terser v3.14.1.
+ * Original file: /gh/Aicirou/goindex-theme-acrou@2.0.8/dist/app.js
+ *
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
+ */
+var scripts=["https://cdn.jsdelivr.net/gh/alx-xlx/goindex@2.0.8-darkmode-0.1/goindex-acrou/dist/js/app.da7f5f3f.js","https://cdn.jsdelivr.net/gh/alx-xlx/goindex@2.0.8-darkmode-0.1/goindex-acrou/dist/js/chunk-vendors.3c185c97.js"],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"];var meta = ['',''];meta.forEach(s=>{document.write(s)}),cdnjs.forEach(s=>{document.write('