diff --git a/buildAppJSPlugin.js b/buildAppJSPlugin.js index 748726b..c758509 100644 --- a/buildAppJSPlugin.js +++ b/buildAppJSPlugin.js @@ -29,20 +29,20 @@ class BuildAppJSPlugin { cssarr.push(filename); } } - cssarr = cssarr.sort(function(a) { + cssarr = cssarr.sort(function (a) { return a.indexOf("app."); }); - var cdnjs = '' + var cdnjs = ""; if (process.env.NODE_ENV === "production") { 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 +51,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/package.json b/package.json index 2446ed4..87731f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "go2index-theme-acrou", - "version": "2.0.0", + "version": "2.0.5bate", "g2index": "1.1.0", "scripts": { "serve": "vue-cli-service serve", diff --git a/public/images/player/aria2.png b/public/images/player/aria2.png new file mode 100644 index 0000000..75eae17 Binary files /dev/null and b/public/images/player/aria2.png differ diff --git a/public/images/player/iina.png b/public/images/player/iina.png new file mode 100644 index 0000000..53e5b79 Binary files /dev/null and b/public/images/player/iina.png differ diff --git a/public/images/player/mxplayer.png b/public/images/player/mxplayer.png new file mode 100644 index 0000000..a658b08 Binary files /dev/null and b/public/images/player/mxplayer.png differ diff --git a/public/images/player/nplayer.png b/public/images/player/nplayer.png new file mode 100644 index 0000000..468fe32 Binary files /dev/null and b/public/images/player/nplayer.png differ diff --git a/public/images/player/potplayer.png b/public/images/player/potplayer.png new file mode 100644 index 0000000..6581549 Binary files /dev/null and b/public/images/player/potplayer.png differ diff --git a/public/images/player/thunder.png b/public/images/player/thunder.png new file mode 100644 index 0000000..fedfb53 Binary files /dev/null and b/public/images/player/thunder.png differ diff --git a/public/images/player/vlc.png b/public/images/player/vlc.png new file mode 100644 index 0000000..d6047ca Binary files /dev/null and b/public/images/player/vlc.png differ diff --git a/public/index.html b/public/index.html index 3f0691a..36cfecd 100644 --- a/public/index.html +++ b/public/index.html @@ -42,6 +42,9 @@ // 是否显示文件/文件夹描述(默认不显示) // 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 })); diff --git a/src/assets/style/theme/acrou/index.scss b/src/assets/style/theme/acrou/index.scss index 2fad4e0..8701609 100644 --- a/src/assets/style/theme/acrou/index.scss +++ b/src/assets/style/theme/acrou/index.scss @@ -83,7 +83,7 @@ body { } .no-content { - background: url(https://s1.hdslb.com/bfs/static/jinkela/search/asserts/no-data.png) no-repeat 50% 50%; + background: url(#{$cdnPath}images/no-data.png) no-repeat 50% 50%; height: 240px; line-height: 240px; text-align: center; diff --git a/src/main.js b/src/main.js index b36347a..1e5fe64 100644 --- a/src/main.js +++ b/src/main.js @@ -22,14 +22,13 @@ import "@/assets/style/theme/register.scss"; document.write( `` ); - Vue.config.productionTip = false; +Vue.prototype.$cdnpath = cdnpath; Vue.use(ElementUI); Vue.use(VueAxios, axios); -Vue.use(cdnpath); Vue.use(VueClipboard); Vue.use(VueLazyload, { - loading: cdnpath("/images/airplane.gif"), + loading: cdnpath("images/airplane.gif"), }); Vue.use(Viewer); diff --git a/src/views/page/GoVideo.vue b/src/views/page/GoVideo.vue index 39f5cc1..c76058a 100644 --- a/src/views/page/GoVideo.vue +++ b/src/views/page/GoVideo.vue @@ -1,10 +1,10 @@