添加cdn配置
This commit is contained in:
parent
fd7dcda433
commit
56c4b3566d
3
.env
3
.env
@ -1,3 +1,4 @@
|
||||
VUE_APP_I18N_LOCALE=zh-chs
|
||||
VUE_APP_I18N_FALLBACK_LOCALE=en
|
||||
VUE_APP_PUBLIC_PATH=https://cloud.jsonpop.cn/go2index/vue/dist/
|
||||
VUE_APP_CDN_PATH=https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/
|
||||
#VUE_APP_CDN_PATH=https://cloud.jsonpop.cn/go2index/vue/dist/
|
@ -1,3 +1,3 @@
|
||||
# 开发环境
|
||||
VUE_APP_API=/api
|
||||
VUE_APP_PUBLIC_PATH=/
|
||||
VUE_APP_CDN_PATH=/
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,5 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
src/test
|
||||
|
||||
# local env files
|
||||
|
@ -19,7 +19,7 @@ class BuildAppJSPlugin {
|
||||
for (let filename in compilation.assets) {
|
||||
if (filename.match(".*\\.js$")) {
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
filename = (process.env.VUE_APP_PUBLIC_PATH || "/") + filename;
|
||||
filename = (process.env.VUE_APP_CDN_PATH || "/") + filename;
|
||||
} else {
|
||||
filename = "/" + filename;
|
||||
}
|
||||
|
10
dist/app.js
vendored
Normal file
10
dist/app.js
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
var scripts = ["https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/js/app.7b32cad3.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/js/chunk-0856609f.03c96958.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/js/chunk-2458ab2f.bcfee82a.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/js/chunk-2d0aed92.295ece1d.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/js/chunk-2d0b2ee4.9b0ee5e5.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/js/chunk-2d0c4c28.32f0d528.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/js/chunk-48822c69.15514e05.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/js/chunk-498d4d6d.467d8cc0.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/dist/js/chunk-d364e3a0.a8119811.js","https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou@master/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"];
|
||||
cdnjs.forEach((item) => {
|
||||
document.write('<script src="' + item + '"></script>');
|
||||
});
|
||||
scripts.forEach((item) => {
|
||||
document.write('<script src="' + item + '"></script>');
|
||||
});
|
||||
|
3
dist/css/app.4e38b73f.css
vendored
Normal file
3
dist/css/app.4e38b73f.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
dist/css/app.4e38b73f.css.gz
vendored
Normal file
BIN
dist/css/app.4e38b73f.css.gz
vendored
Normal file
Binary file not shown.
1
dist/css/chunk-0856609f.187979d2.css
vendored
Normal file
1
dist/css/chunk-0856609f.187979d2.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.g2-grid-view[data-v-39114126]{margin-bottom:2rem}.media-left[data-v-39114126]{margin-right:.5rem}.content[data-v-39114126]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-size:14px}.column[data-v-39114126]{cursor:pointer}.g2-grid-view-card[data-v-39114126]{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-39114126]{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.g2-grid-view-card[data-v-39114126]: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-39114126]{padding:8px}.g2-grid-view-folder[data-v-39114126]{padding:10px}.g2-grid-view-play[data-v-39114126]: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-39114126]{font-style:normal}.g2-grid-view-play i[data-v-39114126]: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-39114126]{width:1.5em;height:1.5em;vertical-align:middle}
|
1
dist/css/chunk-2458ab2f.187979d2.css
vendored
Normal file
1
dist/css/chunk-2458ab2f.187979d2.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.g2-grid-view[data-v-39114126]{margin-bottom:2rem}.media-left[data-v-39114126]{margin-right:.5rem}.content[data-v-39114126]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-size:14px}.column[data-v-39114126]{cursor:pointer}.g2-grid-view-card[data-v-39114126]{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-39114126]{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.g2-grid-view-card[data-v-39114126]: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-39114126]{padding:8px}.g2-grid-view-folder[data-v-39114126]{padding:10px}.g2-grid-view-play[data-v-39114126]: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-39114126]{font-style:normal}.g2-grid-view-play i[data-v-39114126]: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-39114126]{width:1.5em;height:1.5em;vertical-align:middle}
|
1
dist/css/chunk-48822c69.ee3330ec.css
vendored
Normal file
1
dist/css/chunk-48822c69.ee3330ec.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/chunk-498d4d6d.30be7901.css
vendored
Normal file
1
dist/css/chunk-498d4d6d.30be7901.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
object[data-v-59e039ae]{width:100%;height:-webkit-fill-available}
|
10
dist/css/chunk-vendors.e81dccfb.css
vendored
Normal file
10
dist/css/chunk-vendors.e81dccfb.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
dist/css/chunk-vendors.e81dccfb.css.gz
vendored
Normal file
BIN
dist/css/chunk-vendors.e81dccfb.css.gz
vendored
Normal file
Binary file not shown.
BIN
dist/favicon.ico
vendored
Normal file
BIN
dist/favicon.ico
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
BIN
dist/fonts/element-icons.535877f5.woff
vendored
Normal file
BIN
dist/fonts/element-icons.535877f5.woff
vendored
Normal file
Binary file not shown.
BIN
dist/fonts/element-icons.732389de.ttf
vendored
Normal file
BIN
dist/fonts/element-icons.732389de.ttf
vendored
Normal file
Binary file not shown.
BIN
dist/images/airplane.gif
vendored
Normal file
BIN
dist/images/airplane.gif
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 501 KiB |
BIN
dist/images/eyes.png
vendored
Normal file
BIN
dist/images/eyes.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
dist/images/no-data.png
vendored
Normal file
BIN
dist/images/no-data.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
38
dist/index.html
vendored
Normal file
38
dist/index.html
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
<!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@master/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.0',
|
||||
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,
|
||||
}
|
||||
}
|
||||
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>
|
1
dist/js/app.7b32cad3.js
vendored
Normal file
1
dist/js/app.7b32cad3.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
dist/js/app.7b32cad3.js.gz
vendored
Normal file
BIN
dist/js/app.7b32cad3.js.gz
vendored
Normal file
Binary file not shown.
1
dist/js/chunk-0856609f.03c96958.js
vendored
Normal file
1
dist/js/chunk-0856609f.03c96958.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
dist/js/chunk-0856609f.03c96958.js.gz
vendored
Normal file
BIN
dist/js/chunk-0856609f.03c96958.js.gz
vendored
Normal file
Binary file not shown.
1
dist/js/chunk-2458ab2f.bcfee82a.js
vendored
Normal file
1
dist/js/chunk-2458ab2f.bcfee82a.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2458ab2f"],{"2a7a":function(i,t,e){"use strict";e.r(t);var n=function(){var i=this,t=i.$createElement,e=i._self._c||t;return e("div",{staticClass:"g2-grid-view"},[e("div",{staticClass:"columns is-multiline"},i._l(i.folders,(function(t,n){return e("div",{key:"folder_"+n,staticClass:"column is-one-quarter",on:{click:function(e){return i.go(t)}}},[e("div",{staticClass:"card g2-grid-view-card g2-grid-view-folder"},[e("div",{staticClass:"media"},[e("div",{staticClass:"content"},[e("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":i.getIcon(t.mimeType)}})]),i._v(" "+i._s(t.name)+" ")])])])])})),0),e("div",{staticClass:"columns is-multiline"},i._l(i.files,(function(t,n){return e("div",{key:"file_"+n,staticClass:"column is-one-quarter",on:{click:function(e){return i.go(t,"view")}}},[e("div",{staticClass:"card g2-grid-view-card"},[e("div",{class:"card-image"+(-1!=t.mimeType.indexOf("video")?" g2-grid-view-play":"")},[e("i"),e("figure",{staticClass:"image is-square"},[t.thumbnailLink?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.thum(t.thumbnailLink),expression:"thum(file.thumbnailLink)"}],attrs:{alt:t.name}}):i._e()])]),e("div",{staticClass:"media g2-grid-view-file"},[e("div",{staticClass:"content"},[e("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":i.getIcon(t.mimeType)}})]),i._v(" "+i._s(t.name)+" ")])])])])})),0)])},a=[],s=(e("4de4"),{name:"GridView",props:{data:{type:Array,default:function(){return[]}},getIcon:{type:Function},go:{type:Function},thum:{type:Function}},data:function(){return{}},computed:{folders:function(){return this.data.filter((function(i){return i.isFolder}))},files:function(){return this.data.filter((function(i){return!i.isFolder}))}},methods:{}}),r=s,c=(e("6a58"),e("2877")),l=Object(c["a"])(r,n,a,!1,null,"39114126",null);t["default"]=l.exports},"6a58":function(i,t,e){"use strict";var n=e("a196"),a=e.n(n);a.a},a196:function(i,t,e){}}]);
|
1
dist/js/chunk-2d0aed92.295ece1d.js
vendored
Normal file
1
dist/js/chunk-2d0aed92.295ece1d.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(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}}]);
|
1
dist/js/chunk-2d0b2ee4.9b0ee5e5.js
vendored
Normal file
1
dist/js/chunk-2d0b2ee4.9b0ee5e5.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b2ee4"],{"25e0":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("table",{staticClass:"table is-hoverable"},[i("thead",[i("tr",t._l(t.columns,(function(e,s){return i("th",{key:s,class:e.class,style:e.style},[t._v(" "+t._s(e.name)+" "),t._m(0,!0)])})),0)]),i("tbody",t._l(t.data,(function(e,s){return i("tr",{key:s},[i("td",{on:{click:function(i){return i.target!==i.currentTarget?null:t.go(e,"application/vnd.google-apps.folder"!==e.mimeType?"view":"")}}},[i("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":t.icons(e.mimeType)}})]),t._v(" "+t._s(e.name)+" "),t.isShowDesc?i("span",{staticClass:"has-text-grey g2-file-desc",domProps:{innerHTML:t._s(e.description)}}):t._e()]),i("td",{staticClass:"is-hidden-mobile is-hidden-touch"},[t._v(" "+t._s(e.modifiedTime)+" ")]),i("td",{staticClass:"is-hidden-mobile is-hidden-touch"},[t._v(t._s(e.size))]),i("td",{staticClass:"is-hidden-mobile is-hidden-touch"},[i("span",{staticClass:"icon",on:{click:function(i){return i.stopPropagation(),t.copy(e.path)}}},[i("i",{staticClass:"fa fa-copy faa-shake animated-hover",attrs:{title:t.$t("list.opt.copy"),"aria-hidden":"true"}})]),i("span",{staticClass:"icon",on:{click:function(i){return i.stopPropagation(),t.go(e,"_blank")}}},[i("i",{staticClass:"fa fa-external-link faa-shake animated-hover",attrs:{title:t.$t("list.opt.newTab"),"aria-hidden":"true"}})]),"application/vnd.google-apps.folder"!==e.mimeType?i("span",{staticClass:"icon",on:{click:function(i){return i.stopPropagation(),t.go(e,"down")}}},[i("i",{staticClass:"fa fa-download faa-shake animated-hover",attrs:{"aria-hidden":"true",title:t.$t("list.opt.download")}})]):t._e()])])})),0)])},a=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"caret-wrapper"},[i("i",{staticClass:"sort-caret ascending"}),i("i",{staticClass:"sort-caret descending"})])}],n={props:{data:{type:Array,default:function(){return[]}},icons:{type:Function},go:{type:Function},copy:{type:Function}},computed:{columns:function(){return[{name:this.$t("list.title.file"),style:""},{name:this.$t("list.title.moditime"),style:"width:20%",class:"is-hidden-mobile is-hidden-touch"},{name:this.$t("list.title.size"),style:"width:10.5%",class:"is-hidden-mobile is-hidden-touch"},{name:this.$t("list.title.operation"),style:"width:13.5%",class:"is-hidden-mobile is-hidden-touch"}]},isShowDesc:function(){return window.themeOptions.render.desc||!1}}},o=n,l=i("2877"),c=Object(l["a"])(o,s,a,!1,null,null,null);e["default"]=c.exports}}]);
|
1
dist/js/chunk-2d0c4c28.32f0d528.js
vendored
Normal file
1
dist/js/chunk-2d0c4c28.32f0d528.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(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"),r=e("5d44"),i=e.n(r),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 '}},components:{},methods:{render:function(){var n=this;this.content=this.defaultContent;var t=new i.a;Object(s["g"])(this.option,(function(e){n.content=t.render(e)}))}}},u=a,d=e("2877"),f=Object(d["a"])(u,o,c,!1,null,null,null);t["default"]=f.exports}}]);
|
1
dist/js/chunk-48822c69.15514e05.js
vendored
Normal file
1
dist/js/chunk-48822c69.15514e05.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
dist/js/chunk-48822c69.15514e05.js.gz
vendored
Normal file
BIN
dist/js/chunk-48822c69.15514e05.js.gz
vendored
Normal file
Binary file not shown.
1
dist/js/chunk-498d4d6d.467d8cc0.js
vendored
Normal file
1
dist/js/chunk-498d4d6d.467d8cc0.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(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}}]);
|
8
dist/js/chunk-d364e3a0.a8119811.js
vendored
Normal file
8
dist/js/chunk-d364e3a0.a8119811.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
dist/js/chunk-d364e3a0.a8119811.js.gz
vendored
Normal file
BIN
dist/js/chunk-d364e3a0.a8119811.js.gz
vendored
Normal file
Binary file not shown.
23
dist/js/chunk-vendors.d9b6bd36.js
vendored
Normal file
23
dist/js/chunk-vendors.d9b6bd36.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
dist/js/chunk-vendors.d9b6bd36.js.gz
vendored
Normal file
BIN
dist/js/chunk-vendors.d9b6bd36.js.gz
vendored
Normal file
Binary file not shown.
9
dist/style.css
vendored
Normal file
9
dist/style.css
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
@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-498d4d6d.30be7901.css);
|
||||
@import url(css/chunk-48822c69.ee3330ec.css);
|
||||
@import url(css/chunk-2458ab2f.187979d2.css);
|
||||
@import url(css/chunk-0856609f.187979d2.css);
|
||||
@import url(css/app.4e38b73f.css);
|
20
package-lock.json
generated
20
package-lock.json
generated
@ -2970,7 +2970,7 @@
|
||||
},
|
||||
"chokidar": {
|
||||
"version": "2.1.8",
|
||||
"resolved": "https://registry.npm.taobao.org/chokidar/download/chokidar-2.1.8.tgz?cache=0&sync_timestamp=1587380303979&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fchokidar%2Fdownload%2Fchokidar-2.1.8.tgz",
|
||||
"resolved": "https://registry.npm.taobao.org/chokidar/download/chokidar-2.1.8.tgz",
|
||||
"integrity": "sha1-gEs6e2qZNYw8XGHnHYco8EHP+Rc=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
@ -3662,7 +3662,7 @@
|
||||
},
|
||||
"cookie": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npm.taobao.org/cookie/download/cookie-0.4.0.tgz?cache=0&sync_timestamp=1587525873712&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcookie%2Fdownload%2Fcookie-0.4.0.tgz",
|
||||
"resolved": "https://registry.npm.taobao.org/cookie/download/cookie-0.4.0.tgz",
|
||||
"integrity": "sha1-vrQ35wIrO21JAZ0IhmUwPr6cFLo=",
|
||||
"dev": true
|
||||
},
|
||||
@ -5625,7 +5625,7 @@
|
||||
},
|
||||
"fsevents": {
|
||||
"version": "1.2.12",
|
||||
"resolved": "https://registry.npm.taobao.org/fsevents/download/fsevents-1.2.12.tgz?cache=0&sync_timestamp=1587572647225&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffsevents%2Fdownload%2Ffsevents-1.2.12.tgz",
|
||||
"resolved": "https://registry.npm.taobao.org/fsevents/download/fsevents-1.2.12.tgz?cache=0&sync_timestamp=1584609406420&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffsevents%2Fdownload%2Ffsevents-1.2.12.tgz",
|
||||
"integrity": "sha1-234NjsOwtFck/U2D1DVUqPHw3lw=",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
@ -7828,7 +7828,7 @@
|
||||
},
|
||||
"make-dir": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npm.taobao.org/make-dir/download/make-dir-2.1.0.tgz?cache=0&sync_timestamp=1587567576732&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmake-dir%2Fdownload%2Fmake-dir-2.1.0.tgz",
|
||||
"resolved": "https://registry.npm.taobao.org/make-dir/download/make-dir-2.1.0.tgz?cache=0&sync_timestamp=1581538411621&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmake-dir%2Fdownload%2Fmake-dir-2.1.0.tgz",
|
||||
"integrity": "sha1-XwMQ4YuL6JjMBwCSlaMK5B6R5vU=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
@ -8031,7 +8031,7 @@
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.43.0",
|
||||
"resolved": "https://registry.npm.taobao.org/mime-db/download/mime-db-1.43.0.tgz",
|
||||
"resolved": "https://registry.npm.taobao.org/mime-db/download/mime-db-1.43.0.tgz?cache=0&sync_timestamp=1578281193492&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-db%2Fdownload%2Fmime-db-1.43.0.tgz",
|
||||
"integrity": "sha1-ChLgUCZQ5HPXNVNQUOfI9OtPrlg="
|
||||
},
|
||||
"mime-types": {
|
||||
@ -8213,7 +8213,7 @@
|
||||
},
|
||||
"mkdirp": {
|
||||
"version": "0.5.5",
|
||||
"resolved": "https://registry.npm.taobao.org/mkdirp/download/mkdirp-0.5.5.tgz?cache=0&sync_timestamp=1587535418745&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmkdirp%2Fdownload%2Fmkdirp-0.5.5.tgz",
|
||||
"resolved": "https://registry.npm.taobao.org/mkdirp/download/mkdirp-0.5.5.tgz",
|
||||
"integrity": "sha1-2Rzv1i0UNsoPQWIOJRKI1CAJne8=",
|
||||
"requires": {
|
||||
"minimist": "^1.2.5"
|
||||
@ -11347,7 +11347,7 @@
|
||||
},
|
||||
"statuses": {
|
||||
"version": "1.5.0",
|
||||
"resolved": "https://registry.npm.taobao.org/statuses/download/statuses-1.5.0.tgz?cache=0&sync_timestamp=1587327902535&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstatuses%2Fdownload%2Fstatuses-1.5.0.tgz",
|
||||
"resolved": "http://registry.npm.taobao.org/statuses/download/statuses-1.5.0.tgz",
|
||||
"integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=",
|
||||
"dev": true
|
||||
},
|
||||
@ -12297,7 +12297,7 @@
|
||||
},
|
||||
"vue": {
|
||||
"version": "2.6.11",
|
||||
"resolved": "https://registry.npm.taobao.org/vue/download/vue-2.6.11.tgz?cache=0&sync_timestamp=1587416859096&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue%2Fdownload%2Fvue-2.6.11.tgz",
|
||||
"resolved": "https://registry.npm.taobao.org/vue/download/vue-2.6.11.tgz?cache=0&sync_timestamp=1587066278092&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue%2Fdownload%2Fvue-2.6.11.tgz",
|
||||
"integrity": "sha1-dllNh31LEiNEBuhONSdcbVFBJcU="
|
||||
},
|
||||
"vue-axios": {
|
||||
@ -12939,7 +12939,7 @@
|
||||
},
|
||||
"wrap-ansi": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-2.1.0.tgz?cache=0&sync_timestamp=1587574502741&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwrap-ansi%2Fdownload%2Fwrap-ansi-2.1.0.tgz",
|
||||
"resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-2.1.0.tgz",
|
||||
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
@ -12971,7 +12971,7 @@
|
||||
},
|
||||
"yargs": {
|
||||
"version": "12.0.5",
|
||||
"resolved": "https://registry.npm.taobao.org/yargs/download/yargs-12.0.5.tgz",
|
||||
"resolved": "https://registry.npm.taobao.org/yargs/download/yargs-12.0.5.tgz?cache=0&sync_timestamp=1584344069946&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-12.0.5.tgz",
|
||||
"integrity": "sha1-BfWZe2CWR7ZPZrgeO0sQo2jnrRM=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
version: '1.1.0',
|
||||
roots: [
|
||||
{
|
||||
id: "0AEofxddwF4bAUk9PVA",
|
||||
id: "",
|
||||
name: "TeamDrive",
|
||||
pass: "",
|
||||
},
|
||||
@ -27,7 +27,7 @@
|
||||
pass: "",
|
||||
},
|
||||
{
|
||||
id: "1ZUli0boWXTpAedKDzE_IF9CWT10G6V86",
|
||||
id: "",
|
||||
name: "folder1",
|
||||
pass: "",
|
||||
}
|
||||
|
7
src/libs/util.cdn.js
Normal file
7
src/libs/util.cdn.js
Normal file
@ -0,0 +1,7 @@
|
||||
export default function cdnpath(path) {
|
||||
let cdn = process.env.VUE_APP_CDN_PATH;
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
return cdn + path;
|
||||
}
|
||||
return path;
|
||||
}
|
65
src/main.js
65
src/main.js
@ -1,41 +1,44 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App.vue'
|
||||
import ElementUI from 'element-ui'
|
||||
import 'element-ui/lib/theme-chalk/icon.css'
|
||||
import 'element-ui/lib/theme-chalk/notification.css'
|
||||
import 'element-ui/lib/theme-chalk/loading.css'
|
||||
import axios from '@utils/axios'
|
||||
import VueAxios from 'vue-axios'
|
||||
import router from './router'
|
||||
import i18n from './i18n'
|
||||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/icon.css";
|
||||
import "element-ui/lib/theme-chalk/notification.css";
|
||||
import "element-ui/lib/theme-chalk/loading.css";
|
||||
import axios from "@utils/axios";
|
||||
import VueAxios from "vue-axios";
|
||||
import router from "./router";
|
||||
import i18n from "./i18n";
|
||||
// store
|
||||
import store from '@/store/index'
|
||||
import VueClipboard from 'vue-clipboard2'
|
||||
import infiniteScroll from 'vue-infinite-scroll'
|
||||
import VueLazyload from 'vue-lazyload'
|
||||
import Viewer from 'v-viewer'
|
||||
import 'viewerjs/dist/viewer.css'
|
||||
import "@/assets/style/theme/register.scss"
|
||||
import store from "@/store/index";
|
||||
import VueClipboard from "vue-clipboard2";
|
||||
import infiniteScroll from "vue-infinite-scroll";
|
||||
import VueLazyload from "vue-lazyload";
|
||||
import Viewer from "v-viewer";
|
||||
import cdnpath from "./libs/util.cdn";
|
||||
import "viewerjs/dist/viewer.css";
|
||||
import "@/assets/style/theme/register.scss";
|
||||
|
||||
document.write(`<script>var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="https://hm.baidu.com/hm.js?b5880d23c0d350f0a4c8ac671320847e";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();</script>`);
|
||||
document.write(
|
||||
`<script>var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="https://hm.baidu.com/hm.js?6be1011f95a1bfcdb2179fe2ae6e58fe";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s)})();</script>`
|
||||
);
|
||||
|
||||
Vue.config.productionTip = false
|
||||
Vue.use(ElementUI)
|
||||
Vue.use(VueAxios,axios)
|
||||
Vue.use(VueClipboard)
|
||||
Vue.use(infiniteScroll)
|
||||
Vue.config.productionTip = false;
|
||||
Vue.use(ElementUI);
|
||||
Vue.use(VueAxios, axios);
|
||||
Vue.use(cdnpath);
|
||||
Vue.use(VueClipboard);
|
||||
Vue.use(infiniteScroll);
|
||||
Vue.use(VueLazyload, {
|
||||
// error: 'dist/error.png',
|
||||
loading: 'https://cloud.jsonpop.cn/go2index/vue/airplane.gif'
|
||||
})
|
||||
Vue.use(Viewer)
|
||||
loading: cdnpath("/images/airplane.gif"),
|
||||
});
|
||||
Vue.use(Viewer);
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
i18n,
|
||||
render: h => h(App),
|
||||
render: (h) => h(App),
|
||||
mounted() {
|
||||
this.$store.dispatch('acrou/view/load')
|
||||
}
|
||||
}).$mount('#app')
|
||||
this.$store.dispatch("acrou/view/load");
|
||||
},
|
||||
}).$mount("#app");
|
||||
|
@ -21,26 +21,13 @@ import BreadCrumb from "./common/BreadCrumb";
|
||||
import Footer from "./common/Footer";
|
||||
export default {
|
||||
data: function () {
|
||||
return {
|
||||
path: "",
|
||||
show: "list",
|
||||
text: { file: {}, path: "" },
|
||||
headmd: { display: false, file: {}, path: "" },
|
||||
readmemd: { display: false, file: {}, path: "" },
|
||||
};
|
||||
return {};
|
||||
},
|
||||
components: {
|
||||
Head,
|
||||
BreadCrumb,
|
||||
Footer: Footer,
|
||||
},
|
||||
methods: {
|
||||
setHeadmd(val) {
|
||||
this.headmd = val;
|
||||
},
|
||||
setReadmemd(val) {
|
||||
this.readmemd = val;
|
||||
},
|
||||
},
|
||||
methods: {},
|
||||
};
|
||||
</script>
|
||||
|
@ -12,7 +12,7 @@ process.env.VUE_APP_VERSION = require('./package.json').version
|
||||
process.env.VUE_APP_G2INDEX_VERSION = require('./package.json').g2index
|
||||
|
||||
// 基础路径 注意发布之前要先修改这里
|
||||
let publicPath = process.env.VUE_APP_PUBLIC_PATH || "/";
|
||||
let publicPath = process.env.VUE_APP_CDN_PATH || "/";
|
||||
|
||||
// 设置不参与构建的库
|
||||
let externals = {};
|
||||
|
Loading…
Reference in New Issue
Block a user