chunk-79198c4a.3ad154a3.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79198c4a"],{"0fd9":function(t,e,i){"use strict";i("4b85");var s=i("2b0e"),n=i("d9f7"),r=i("80d2");const a=["sm","md","lg","xl"],o=["start","end","center"];function l(t,e){return a.reduce((i,s)=>(i[t+Object(r["E"])(s)]=e(),i),{})}const c=t=>[...o,"baseline","stretch"].includes(t),d=l("align",()=>({type:String,default:null,validator:c})),h=t=>[...o,"space-between","space-around"].includes(t),u=l("justify",()=>({type:String,default:null,validator:h})),g=t=>[...o,"space-between","space-around","stretch"].includes(t),m=l("alignContent",()=>({type:String,default:null,validator:g})),p={align:Object.keys(d),justify:Object.keys(u),alignContent:Object.keys(m)},f={align:"align",justify:"justify",alignContent:"align-content"};function v(t,e,i){let s=f[t];if(null!=i){if(e){const i=e.replace(t,"");s+="-"+i}return s+="-"+i,s.toLowerCase()}}const b=new Map;e["a"]=s["default"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:c},...d,justify:{type:String,default:null,validator:h},...u,alignContent:{type:String,default:null,validator:g},...m},render(t,{props:e,data:i,children:s}){let r="";for(const n in e)r+=String(e[n]);let a=b.get(r);if(!a){let t;for(t in a=[],p)p[t].forEach(i=>{const s=e[i],n=v(t,i,s);n&&a.push(n)});a.push({"no-gutters":e.noGutters,"row--dense":e.dense,["align-"+e.align]:e.align,["justify-"+e.justify]:e.justify,["align-content-"+e.alignContent]:e.alignContent}),b.set(r,a)}return t(e.tag,Object(n["a"])(i,{staticClass:"row",class:a}),s)}})},"132d":function(t,e,i){"use strict";i("4804");var s,n=i("7e2b"),r=i("a9ad"),a=i("af2b"),o=i("7560"),l=i("80d2"),c=i("2b0e"),d=i("58df");function h(t){return["fas","far","fal","fab","fad"].some(e=>t.includes(e))}function u(t){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4}(function(t){t["xSmall"]="12px",t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(s||(s={}));const g=Object(d["a"])(n["a"],r["a"],a["a"],o["a"]).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){let t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),Object(l["B"])(this,t)},getSize(){const t={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=Object(l["y"])(t).find(e=>t[e]);return e&&s[e]||Object(l["g"])(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:{"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0,...this.attrs$},on:this.listeners$}},getSvgWrapperData(){const t=this.getSize(),e={...this.getDefaultData(),style:t?{fontSize:t,height:t,width:t}:void 0};return this.applyColors(e),e},applyColors(t){t.class={...t.class,...this.themeClasses},this.setTextColor(this.color,t)},renderFontIcon(t,e){const i=[],s=this.getDefaultData();let n="material-icons";const r=t.indexOf("-"),a=r<=-1;a?i.push(t):(n=t.slice(0,r),h(n)&&(n="")),s.class[n]=!0,s.class[t]=!a;const o=this.getSize();return o&&(s.style={fontSize:o}),this.applyColors(s),e(this.hasClickListener?"button":this.tag,s,i)},renderSvgIcon(t,e){const i=this.getSize(),s={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:i||"24",width:i||"24",role:"img","aria-hidden":!0}};return e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",s,[e("path",{attrs:{d:t}})])])},renderSvgIconComponent(t,e){const i={class:{"v-icon__svg":!0}},s=this.getSize();s&&(i.style={fontSize:s,height:s,width:s}),this.applyColors(i);const n=t.component;return i.props=t.props,i.nativeOn=i.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(n,i)])}},render(t){const e=this.getIcon();return"string"===typeof e?u(e)?this.renderSvgIcon(e,t):this.renderFontIcon(e,t):this.renderSvgIconComponent(e,t)}});e["a"]=c["default"].extend({name:"v-icon",$_wrapperFor:g,functional:!0,render(t,{data:e,children:i}){let s="";return e.domProps&&(s=e.domProps.textContent||e.domProps.innerHTML||s,delete e.domProps.textContent,delete e.domProps.innerHTML),t(g,e,s?[s]:i)}})},"36a7":function(t,e,i){},4804:function(t,e,i){},"62ad":function(t,e,i){"use strict";i("4b85");var s=i("2b0e"),n=i("d9f7"),r=i("80d2");const a=["sm","md","lg","xl"],o=(()=>a.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),l=(()=>a.reduce((t,e)=>(t["offset"+Object(r["E"])(e)]={type:[String,Number],default:null},t),{}))(),c=(()=>a.reduce((t,e)=>(t["order"+Object(r["E"])(e)]={type:[String,Number],default:null},t),{}))(),d={col:Object.keys(o),offset:Object.keys(l),order:Object.keys(c)};function h(t,e,i){let s=t;if(null!=i&&!1!==i){if(e){const i=e.replace(t,"");s+="-"+i}return"col"!==t||""!==i&&!0!==i?(s+="-"+i,s.toLowerCase()):s.toLowerCase()}}const u=new Map;e["a"]=s["default"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...o,offset:{type:[String,Number],default:null},...l,order:{type:[String,Number],default:null},...c,alignSelf:{type:String,default:null,validator:t=>["auto","start","end","center","baseline","stretch"].includes(t)},tag:{type:String,default:"div"}},render(t,{props:e,data:i,children:s,parent:r}){let a="";for(const n in e)a+=String(e[n]);let o=u.get(a);if(!o){let t;for(t in o=[],d)d[t].forEach(i=>{const s=e[i],n=h(t,i,s);n&&o.push(n)});const i=o.some(t=>t.startsWith("col-"));o.push({col:!i||!e.cols,["col-"+e.cols]:e.cols,["offset-"+e.offset]:e.offset,["order-"+e.order]:e.order,["align-self-"+e.alignSelf]:e.alignSelf}),u.set(a,o)}return t(e.tag,Object(n["a"])(i,{class:o}),s)}})},"8ce9":function(t,e,i){},"8efc":function(t,e,i){},"90a2":function(t,e,i){"use strict";function s(t,e){const i=e.modifiers||{},s=e.value,{handler:r,options:a}="object"===typeof s?s:{handler:s,options:{}},o=new IntersectionObserver((e=[],s)=>{if(t._observe){if(r&&(!i.quiet||t._observe.init)){const t=Boolean(e.find(t=>t.isIntersecting));r(e,s,t)}t._observe.init&&i.once?n(t):t._observe.init=!0}},a);t._observe={init:!1,observer:o},o.observe(t)}function n(t){t._observe&&(t._observe.observer.unobserve(t),delete t._observe)}const r={inserted:s,unbind:n};e["a"]=r},"9d26":function(t,e,i){"use strict";var s=i("132d");e["a"]=s["a"]},adda:function(t,e,i){"use strict";i("8efc");var s=i("90a2"),n=(i("36a7"),i("24b2")),r=i("58df"),a=Object(r["a"])(n["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number]},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content"},this.$slots.default)}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),o=a,l=i("7560"),c=i("d9f7"),d=i("d9bd");const h="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(r["a"])(o,l["a"]).extend({name:"v-img",directives:{intersect:s["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),e&&t.push(`url("${e}")`);const i=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[i]):i}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,e,i){if(!h||i||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(d["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,t.src=this.normalisedSrc.src,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,e=100){const i=()=>{const{naturalHeight:s,naturalWidth:n}=t;s||n?(this.naturalWidth=n,this.calculatedAspectRatio=n/s):null!=e&&!this.hasError&&setTimeout(i,e)};i()},genContent(){const t=o.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){if(this.$slots.placeholder){const t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},this.$slots.placeholder)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},t):t[0]}}},render(t){const e=o.options.render.call(this,t),i=Object(c["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:h?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,i,e.children)}})},b2e6:function(t,e,i){"use strict";var s=i("b649"),n=i.n(s);n.a},b649:function(t,e,i){},ce7e:function(t,e,i){"use strict";i("8ce9");var s=i("7560");e["a"]=s["a"].extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(t){let e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":e,...this.$attrs},on:this.$listeners})}})},f003: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("v-container",[i("v-row",[i("v-col",{attrs:{cols:"2"}},[i("v-sheet",{attrs:{rounded:"lg"}},[i("v-list",{attrs:{color:"transparent"}},[i("router-link",{attrs:{to:"/user/home"}},[i("v-row",{attrs:{justify:"center",align:"center"}},[i("v-col",{staticStyle:{"text-align":"center"},attrs:{cols:"12"}},[i("v-avatar",{attrs:{size:"62"}},[i("v-img",{attrs:{src:this.$store.state.user.userInfo.avatarUrl}})],1)],1)],1),i("v-row",{attrs:{justify:"center",align:"center"}},[i("v-col",{staticStyle:{"text-align":"center"},attrs:{cols:"12"}},[t._v(" "+t._s(this.$store.state.user.userInfo.username)+" ")])],1)],1),t._l(t.items,(function(e){return i("router-link",{key:e.text,attrs:{to:e.link}},[i("v-list-item",{attrs:{link:""}},[i("v-list-item-action",[i("v-icon",[t._v(t._s(e.icon))])],1),i("v-list-item-content",[i("v-list-item-title",[t._v(" "+t._s(e.text)+" ")])],1)],1)],1)})),i("v-divider",{staticClass:"my-2"}),i("v-list-item",{attrs:{link:"",color:"grey lighten-4"}},[i("v-list-item-content",[i("v-list-item-title",[t._v(" Refresh ")])],1)],1)],2)],1)],1),i("v-col",[i("v-sheet",{attrs:{"min-height":"70vh",rounded:"lg"}},[i("router-view")],1)],1)],1)],1)},n=[],r=i("f3a1"),a={data:function(){return{CheckPower:r["a"],drawer:!0,items:[{icon:"mdi-upload",text:"投稿",link:"/studio/upload"},{icon:"mdi-filmstrip-box-multiple",text:"稿件列表",link:"/studio"},{icon:"mdi-database",text:"数据统计",link:"/studio/statistics"}],adminList:[{icon:"mdi-playlist-edit",text:"分类管理",link:"/studio/admin/category"},{icon:"mdi-application",text:"邀请码",link:"/studio/admin/invitation"},{icon:"mdi-video",text:"待审核",link:"/studio/admin/examine"},{icon:"mdi-filmstrip-box-multiple",text:"投稿列表",link:"/studio/admin/article/list"},{icon:"mdi-file",text:"文件列表",link:"/studio/admin/file/list"},{icon:"mdi-account-multiple",text:"用户列表",link:"/studio/admin/userlist"},{icon:"mdi-square-edit-outline",text:"网页设置",link:"/studio/admin/websetting"}]}},mounted:function(){},created:function(){},methods:{}},o=a,l=(i("b2e6"),i("2877")),c=i("6544"),d=i.n(c),h=i("8212"),u=i("62ad"),g=i("a523"),m=i("ce7e"),p=i("132d"),f=i("adda"),v=i("8860"),b=i("da13"),S=i("1800"),y=i("5d23"),_=i("0fd9"),x=i("8dd9"),C=Object(l["a"])(o,s,n,!1,null,"42f6f3c9",null);e["default"]=C.exports;d()(C,{VAvatar:h["a"],VCol:u["a"],VContainer:g["a"],VDivider:m["a"],VIcon:p["a"],VImg:f["a"],VList:v["a"],VListItem:b["a"],VListItemAction:S["a"],VListItemContent:y["a"],VListItemTitle:y["b"],VRow:_["a"],VSheet:x["a"]})},f3a1:function(t,e,i){"use strict";function s(t){return"user"}function n(t){return!0}function r(t){return!0}var a,o,l={checkPower:s,updateUserRole:r,checkVip:n},c=l,d=i("2877"),h=Object(d["a"])(c,a,o,!1,null,null,null);e["a"]=h.exports}}]);