goindex-theme-r/dist/js/chunk-0856609f.03c96958.js

1 line
12 KiB
JavaScript
Raw Normal View History

2020-05-22 02:11:32 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0856609f","chunk-2458ab2f","chunk-2d0b2ee4","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",{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"})])}],s={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=s,r=i("2877"),c=Object(r["a"])(o,n,a,!1,null,null,null);e["default"]=c.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.go(e)}}},[i("div",{staticClass:"card g2-grid-view-card g2-grid-view-folder"},[i("div",{staticClass:"media"},[i("div",{staticClass:"content"},[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.go(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}}):t._e()])]),i("div",{staticClass:"media g2-grid-view-file"},[i("div",{staticClass:"content"},[i("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":t.getIcon(e.mimeType)}})]),t._v(" "+t._s(e.name