goindex-theme-r/dist/js/chunk-50779d2e.f2a32ba4.js
2020-05-31 01:11:00 +08:00

7 lines
38 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-50779d2e","chunk-91c3565e","chunk-2d0b2ee4","chunk-2a286362","chunk-2d0c4c28"],{"25e0":function(t,e,i){"use strict";i.r(e);var n=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,n){return i("th",{key:n,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,n){return i("tr",{key:n},[i("td",{attrs:{title:e.name},on:{click:function(i){return i.target!==i.currentTarget?null:t.action(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.action(e,"copy")}}},[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.action(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.action(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"})])}],r={props:{data:{type:Array,default:function(){return[]}},icons:{type:Function},action:{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=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);e["default"]=l.exports},"2a7a":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"g2-grid-view"},[i("div",{staticClass:"columns is-multiline"},t._l(t.folders,(function(e,n){return i("div",{key:"folder_"+n,staticClass:"column is-one-quarter",on:{click:function(i){return t.action(e)}}},[i("div",{staticClass:"card g2-grid-view-card g2-grid-view-folder"},[i("div",{staticClass:"media"},[i("div",{staticClass:"content",attrs:{title:e.name}},[i("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":t.getIcon(e.mimeType)}})]),t._v(" "+t._s(e.name)+" ")])])])])})),0),i("div",{staticClass:"columns is-multiline"},t._l(t.files,(function(e,n){return i("div",{key:"file_"+n,staticClass:"column is-one-quarter",on:{click:function(i){return t.action(e,"view")}}},[i("div",{staticClass:"card g2-grid-view-card"},[i("div",{class:"card-image"+(-1!=e.mimeType.indexOf("video")?" g2-grid-view-play":"")},[i("i"),i("figure",{staticClass:"image is-square"},[e.thumbnailLink?i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.thum(e.thumbnailLink),expression:"thum(file.thumbnailLink)"}],attrs:{alt:e.name}}):i("svg",{staticClass:"file-icon iconfont",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":t.getIcon(e.mimeType)}})])])]),i("div",{staticClass:"media g2-grid-view-file"},[i("div",{staticClass:"content",attrs:{title:e.name}},[i("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":t.getIcon(e.mimeType)}})]),t._v(" "+t._s(e.name)+" ")])])])])})),0)])},a=[],r=(i("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:{}}),o=r,s=(i("677f"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"1871190e",null);e["default"]=l.exports},"2db9":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("nav",{staticClass:"breadcrumb level g2-breadcrumb is-hidden-mobile is-hidden-touch",attrs:{"aria-label":"breadcrumbs"}},[i("div",{staticClass:"level-left"},[i("div",{staticClass:"level-item"},[i("ul",[i("li",[i("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,n){return i("li",{key:n,class:n+1==t.navs.length?"is-active":""},[n+1==t.navs.length?i("a",{attrs:{"aria-current":"page",href:"#"}},[t._v(t._s(e.title))]):i("a",{on:{click:function(i){return t.go(e.path)}}},[t._v(t._s(e.title))])])}))],2)])]),i("div",{staticClass:"level-right"},[i("div",{staticClass:"level-item"},[i("view-mode")],1)])])])},a=[],r=(i("ac1f"),i("466d"),i("1276"),i("498a"),i("f3f7")),o=i("45d8"),s={props:["name"],components:{ViewMode:r["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(o["d"])(this.$route.params.path));var i=e.trim("/").split("/"),n="/";if(i.length>0){var a=[];for(var r in i){var s=i[r];""!=s&&(s=decodeURIComponent(s),n+=i[r]+"/",s.match("[0-9]+:")||a.push({path:n,title:s}))}this.navs=a}}else this.navs=[]}}},l=s,d=(i("c9d4"),i("2877")),c=Object(d["a"])(l,n,a,!1,null,"3b7c6fae",null);e["default"]=c.exports},"3bcf":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"content",domProps:{innerHTML:t._s(t.content)}})},a=[],r=i("45d8"),o=i("0e54"),s=i.n(o),l={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 t=this;this.content=this.defaultContent,Object(r["g"])(this.option,(function(e){t.content=s()(e)}))}}},d=l,c=i("2877"),u=Object(c["a"])(d,n,a,!1,null,null,null);e["default"]=u.exports},"45a1":function(t,e,i){},"498a":function(t,e,i){"use strict";var n=i("23e7"),a=i("58a8").trim,r=i("c8d2");n({target:"String",proto:!0,forced:r("trim")},{trim:function(){return a(this)}})},5899:function(t,e){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},"58a8":function(t,e,i){var n=i("1d80"),a=i("5899"),r="["+a+"]",o=RegExp("^"+r+r+"*"),s=RegExp(r+r+"*$"),l=function(t){return function(e){var i=String(n(e));return 1&t&&(i=i.replace(o,"")),2&t&&(i=i.replace(s,"")),i}};t.exports={start:l(1),end:l(2),trim:l(3)}},"677f":function(t,e,i){"use strict";var n=i("45a1"),a=i.n(n);a.a},a844:function(t,e,i){},c740:function(t,e,i){"use strict";var n=i("23e7"),a=i("b727").findIndex,r=i("44d2"),o=i("ae40"),s="findIndex",l=!0,d=o(s);s in[]&&Array(1)[s]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!d},{findIndex:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),r(s)},c8d2:function(t,e,i){var n=i("d039"),a=i("5899"),r="…";t.exports=function(t){return n((function(){return!!a[t]()||r[t]()!=r||a[t].name!==t}))}},c9d4:function(t,e,i){"use strict";var n=i("a844"),a=i.n(n);a.a},e166:function(t,e,i){
/*!
* vue-infinite-loading v2.4.5
* (c) 2016-2020 PeachScript
* MIT License
*/
!function(e,i){t.exports=i()}(0,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=9)}([function(t,e,i){var n=i(6);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,i(3).default)("6223ff68",n,!0,{})},function(t,e,i){var n=i(8);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,i(3).default)("27f0e51f",n,!0,{})},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i,n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var r=(i=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),o=a.sources.map((function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},a=0;a<this.length;a++){var r=this[a][0];"number"==typeof r&&(n[r]=!0)}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&n[o[0]]||(i&&!o[2]?o[2]=i:i&&(o[2]="("+o[2]+") and ("+i+")"),e.push(o))}},e}},function(t,e,i){"use strict";function n(t,e){for(var i=[],n={},a=0;a<e.length;a++){var r=e[a],o=r[0],s={id:t+":"+a,css:r[1],media:r[2],sourceMap:r[3]};n[o]?n[o].parts.push(s):i.push(n[o]={id:o,parts:[s]})}return i}i.r(e),i.d(e,"default",(function(){return f}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},o=a&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,i,a){d=i,u=a||{};var o=n(t,e);return h(o),function(e){for(var i=[],a=0;a<o.length;a++){var s=o[a];(l=r[s.id]).refs--,i.push(l)}for(e?h(o=n(t,e)):o=[],a=0;a<i.length;a++){var l;if(0===(l=i[a]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete r[l.id]}}}}function h(t){for(var e=0;e<t.length;e++){var i=t[e],n=r[i.id];if(n){n.refs++;for(var a=0;a<n.parts.length;a++)n.parts[a](i.parts[a]);for(;a<i.parts.length;a++)n.parts.push(g(i.parts[a]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{var o=[];for(a=0;a<i.parts.length;a++)o.push(g(i.parts[a]));r[i.id]={id:i.id,refs:1,parts:o}}}}function m(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function g(t){var e,i,n=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(n){if(d)return c;n.parentNode.removeChild(n)}if(p){var a=l++;n=s||(s=m()),e=w.bind(null,n,a,!1),i=w.bind(null,n,a,!0)}else n=m(),e=y.bind(null,n),i=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else i()}}var b,v=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function w(t,e,i,n){var a=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=v(e,a);else{var r=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function y(t,e){var i=e.css,n=e.media,a=e.sourceMap;if(n&&t.setAttribute("media",n),u.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),a&&(i+="\n/*# sourceURL="+a.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}},function(t,e){function i(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=i=function(t){return typeof t}:t.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}t.exports=i},function(t,e,i){"use strict";i.r(e);var n=i(0),a=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e.default=a.a},function(t,e,i){(t.exports=i(2)(!1)).push([t.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""])},function(t,e,i){"use strict";i.r(e);var n=i(1),a=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e.default=a.a},function(t,e,i){(t.exports=i(2)(!1)).push([t.i,".infinite-loading-container[data-v-644ea9c9]{clear:both;text-align:center}.infinite-loading-container[data-v-644ea9c9] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-644ea9c9]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-644ea9c9]:not(:active):hover{opacity:.8}",""])},function(t,e,i){"use strict";i.r(e);var n={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},a=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t={passive:!0},!0}});window.addEventListener("testpassive",e,e),window.remove("testpassive",e,e)}catch(t){}return t}(),r={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n ajax('https://www.example.com/api/news')\n .then((res) => {\n if (res.data.length) {\n $state.loaded();\n } else {\n $state.complete();\n }\n });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},o={INFINITE_LOOP:["executed the callback function more than ".concat(n.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n ...\n \x3c!-- set force-use-infinite-wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n ...\n \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"10px 0"},d={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:n,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:r,ERRORS:o,STATUS:s},c=i(4),u=i.n(c),p={BUBBLES:{render:function(t){return t("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(t){return t("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(t){return t("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(t){return t("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(t){return t("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return t("span",{attrs:{class:"wave-item"}})})))}}};function f(t,e,i,n,a,r,o,s){var l,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:d}}var h=f({name:"Spinner",computed:{spinnerView:function(){return p[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return d.slots.spinner&&"string"==typeof d.slots.spinner?{render:function(){return this._v(d.slots.spinner)}}:"object"===u()(d.slots.spinner)?d.slots.spinner:p[d.props.spinner.toUpperCase()]||p.DEFAULT}}},(function(){var t=this.$createElement;return(this._self._c||t)(this.spinnerView,{tag:"component"})}),[],!1,(function(t){var e=i(5);e.__inject__&&e.__inject__(t)}),"46b20d22",null).exports;function m(t){"production"!==d.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t))}function g(t){console.error("[Vue-infinite-loading error]: ".concat(t))}var b={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift()}),d.system.throttleLimit)))},reset:function(){this.timers.forEach((function(t){clearTimeout(t)})),this.timers.length=0,this.caches=[]}},v={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0}),d.system.loopCheckTimeout),this.times>d.system.loopCheckMaxCalls&&(g(o.INFINITE_LOOP),this.isChecked=!0)}},w={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e)},remove:function(t){void 0!==t[this.key]&&delete t[this.key]}};function y(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())}))}function x(t){return t.offsetWidth+t.offsetHeight>0}var k=f({name:"InfiniteLoading",data:function(){return{scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:d.slots}},components:{Spinner:h},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(d.slots).forEach((function(i){var n=y(i);(!t.$slots[n]&&!d.slots[i].render||t.$slots[n]&&!t.$slots[n][0].tag)&&(e[i]=l)})),e}},props:{distance:{type:Number,default:d.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:d.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset()}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent()}),{immediate:!0}),this.scrollHandler=function(e){t.status===s.READY&&(e&&e.constructor===Event&&x(t.$el)?b.throttle(t.attemptLoad):t.attemptLoad())},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,a)}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){w.restore(t.scrollParent)})),t.status===s.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||m(r.STATE_CHANGER)})),this.$on("$InfiniteLoading:complete",(function(e){t.status=s.COMPLETE,t.$nextTick((function(){t.$forceUpdate()})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,a),e&&e.target===t||m(r.STATE_CHANGER)})),this.$on("$InfiniteLoading:reset",(function(e){t.status=s.READY,t.isFirstLoad=!0,w.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,a),setTimeout((function(){b.reset(),t.scrollHandler()}),1),e&&e.target===t||m(r.IDENTIFIER)})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t})},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t})},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t})},error:function(){t.status=s.ERROR,b.reset()}},this.onInfinite&&m(r.INFINITE_EVENT)},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a)},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,a)},methods:{attemptLoad:function(t){var e=this;this.status!==s.COMPLETE&&x(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){w.save(e.scrollParent)})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||v.isChecked||v.track()):this.status===s.LOADING&&(this.status=s.READY)},getCurrentDistance:function(){var t;return t="top"===this.direction?"number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom),t},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return"string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:(!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1||e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.getScrollParent(e.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(b.reset(),w.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a))}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"infinite-loading-container"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",[i("spinner",{attrs:{spinner:t.spinner}})])],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",[t.slots.noResults.render?i(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]])],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",[t.slots.noMore.render?i(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]])],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",[t.slots.error.render?i(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n "+t._s(t.slots.error)+"\n "),i("br"),t._v(" "),i("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]],{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=i(7);e.__inject__&&e.__inject__(t)}),"644ea9c9",null).exports;function _(t){d.mode=t.config.productionTip?"development":"production"}Object.defineProperty(k,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(d.props,e&&e.props),Object.assign(d.slots,e&&e.slots),Object.assign(d.system,e&&e.system),t.component("infinite-loading",k),_(t)}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",k),_(window.Vue)),e.default=k}])}))},e65d:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.renderHeadMD&&t.headmd.display?i("headmd",{staticStyle:{margin:"1rem 0"},attrs:{option:t.headmd}}):t._e(),i("bread-crumb",{ref:"breadcrumb"}),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"golist"},["list"===t.mode?i("list-view",{attrs:{data:t.files,icons:t.getIcon,action:t.action,copy:t.copy}}):t._e(),"list"!==t.mode?i("grid-view",{staticClass:"g2-content",attrs:{data:t.files,getIcon:t.getIcon,action:t.action,thum:t.thum}}):t._e(),i("infinite-loading",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],ref:"infinite",attrs:{spinner:"bubbles"},on:{infinite:t.infiniteHandler}},[i("div",{attrs:{slot:"no-more"},slot:"no-more"}),i("div",{attrs:{slot:"no-results"},slot:"no-results"})]),i("div",{directives:[{name:"show",rawName:"v-show",value:0===t.files.length,expression:"files.length === 0"}],staticClass:"has-text-centered no-content"})],1),i("div",{staticClass:"is-divider",attrs:{"data-content":t.$t("list.total")+" "+t.files.length+" "+t.$t("list.item")}}),t.renderReadMeMD&&t.readmemd.display?i("readmemd",{attrs:{option:t.readmemd}}):t._e(),t.viewer&&t.images&&t.images.length>0?i("viewer",{ref:"viewer",staticClass:"is-hidden",attrs:{images:t.images,options:{toolbar:!0,url:"data-source"}},on:{inited:t.inited}},t._l(t.images,(function(e){return i("img",{key:e.path,staticClass:"image",attrs:{src:t.thum(e.thumbnailLink),"data-source":e.path,alt:e.name}})})),0):t._e()],1)},a=[],r=(i("99af"),i("4de4"),i("c740"),i("4160"),i("c975"),i("d81d"),i("b0c0"),i("ac1f"),i("5319"),i("159b"),i("2909")),o=i("5530"),s=i("45d8"),l=i("5880"),d=i("2db9"),c=i("25e0"),u=i("2a7a"),p=i("3bcf"),f=i("e166"),h=i.n(f),m={name:"GoList",components:{BreadCrumb:d["default"],ListView:c["default"],GridView:u["default"],Headmd:p["default"],Readmemd:p["default"],InfiniteLoading:h.a},data:function(){return{infiniteId:+new Date,loading:!0,page:{page_token:null,page_index:0},files:[],viewer:!1,icon:{"application/vnd.google-apps.folder":"icon-morenwenjianjia","video/mp4":"icon-mp","video/x-matroska":"icon-mkv","video/x-msvideo":"icon-avi","video/webm":"icon-webm","text/plain":"icon-txt","text/markdown":"icon-markdown","text/x-ssa":"icon-ASS","text/html":"icon-html","text/x-python-script":"icon-python","text/x-java":"icon-java1","text/x-sh":"icon-SH","application/x-subrip":"icon-srt","application/zip":"icon-zip","application/x-zip-compressed":"icon-zip","application/rar":"icon-rar","application/pdf":"icon-pdf","application/json":"icon-JSON1","application/x-yaml":"icon-YML","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"icon-word","image/bmp":"icon-img","image/jpeg":"icon-img","image/png":"icon-img","image/gif":"icon-img"},headmd:{display:!1,file:{},path:""},readmemd:{display:!1,file:{},path:""}}},computed:Object(o["a"])({},Object(l["mapState"])("acrou/view",["mode"]),{images:function(){return this.files.filter((function(t){return-1!=t.mimeType.indexOf("image")}))},renderHeadMD:function(){return window.themeOptions.render.head_md||!1},renderReadMeMD:function(){return window.themeOptions.render.readme_md||!1}}),created:function(){this.render()},methods:{infiniteHandler:function(t){this.page.page_token&&(this.page.page_index++,this.render(t))},render:function(t){var e=this;this.headmd={display:!1,file:{},path:""},this.readmemd={display:!1,file:{},path:""};var i=this.$route.path,n=localStorage.getItem("password"+i),a=this.$route.query.q,s=Object(o["a"])({q:a?decodeURIComponent(a):"",password:n||null},this.page);this.axios.post(i,s).then((function(n){var a=n.data;if(a){if(a.error&&"401"==a.error.code)return void e.checkPassword(i);var o,s=a.data;if(!s)return;if(e.page={page_token:a.nextPageToken,page_index:a.curPageIndex},t)(o=e.files).push.apply(o,Object(r["a"])(e.buildFiles(s.files)));else e.files=e.buildFiles(s.files);s.files&&e.renderMd(s.files,i)}a.nextPageToken?e.$refs.infinite.stateChanger.loaded():e.$refs.infinite.stateChanger.complete(),e.loading=!1})).catch((function(t){e.loading=!1,console.log(t)}))},buildFiles:function(t){var e=this.$route.path;return t?t.map((function(t){var i=e+Object(s["c"])(t.name,t),n="application/vnd.google-apps.folder"===t.mimeType,a=n?"-":Object(s["f"])(t.size);return Object(o["a"])({path:i},t,{modifiedTime:Object(s["e"])(t.modifiedTime),size:a,isFolder:n})})).sort((function(t,e){return t.isFolder&&e.isFolder?0:t.isFolder?-1:1})):[]},checkPassword:function(t){var e=prompt(this.$t("list.auth"),"");localStorage.setItem("password"+t,e),null!=e&&""!=e?this.render(t):this.$router.go(-1)},copy:function(t){var e=this,i=window.location.origin;t=i+encodeURI(t),this.$copyText(t).then((function(){e.$notify({title:e.$t("notify.title"),message:e.$t("copy.success"),type:"success"})})).catch((function(){e.$notify.error({title:e.$t("notify.title"),message:e.$t("copy.error")})}))},thum:function(t){return t?"/".concat(this.$route.params.id,":view?url=").concat(t):""},inited:function(t){this.$viewer=t},action:function(t,e){var i=this;if(-1!=t.mimeType.indexOf("image"))return this.viewer=!0,void this.$nextTick((function(){var e=i.images.findIndex((function(e){return e.path===t.path}));i.$viewer.view(e)}));var n=this.$route.params.cmd;n&&"search"===n?this.goSearchResult(t,e):this.target(t,e)},target:function(t,e){var i=t.path;"_blank"!==e?"copy"!==e?"down"!==e&&(Object(s["a"])(i)||t.isFolder)?"view"!==e?"application/vnd.google-apps.folder"!==t.mimeType||this.$router.push({path:i}):this.$router.push({path:Object(s["b"])(i)}):location.href=i.replace(/^\/(\d+:)\//,"/$1down/"):this.copy(i):window.open(i)},renderMd:function(t,e){var i=this,n=this.$route.params.cmd;n||t.forEach((function(t){"HEAD.md"===t.name&&(i.headmd={display:!0,file:t,path:e+t.name}),"README.md"===t.name&&(i.readmemd={display:!0,file:t,path:e+t.name})}))},goSearchResult:function(t,e){var i=this;this.loading=!0;var n=this.$route.params.id;this.axios.post("/".concat(n,":id2path"),{id:t.id}).then((function(a){i.loading=!1;var r=a.data;r&&(t.path="/".concat(n,":").concat(r),i.target(t,e))})).catch((function(t){i.loading=!1,console.log(t)}))},getIcon:function(t){return"#"+(this.icon[t]?this.icon[t]:"icon-weizhi")}}},g=m,b=i("2877"),v=Object(b["a"])(g,n,a,!1,null,null,null);e["default"]=v.exports}}]);