mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-17 15:52:15 +00:00
1 line
18 KiB
JavaScript
Vendored
1 line
18 KiB
JavaScript
Vendored
(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{"+Pqb":function(e,t,a){"use strict";var i={name:"ProgressBar",props:["progress"]},s=(a("8L2t"),a("KHd+")),o=Object(s.a)(i,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"progress-bar"},[t("span",{staticClass:"bg-theme",style:{width:this.progress+"%"}})])}),[],!1,null,"6ec2be7a",null);t.a=o.exports},"+v8A":function(e,t,a){var i=a("hw5j");"string"==typeof i&&(i=[[e.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(e.exports=i.locals)},"0rhn":function(e,t,a){var i=a("MWZw");"string"==typeof i&&(i=[[e.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(e.exports=i.locals)},"2Sb1":function(e,t,a){"use strict";var i={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:a("CjXH").h}},s=(a("JOXf"),a("KHd+")),o=Object(s.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-header"},[e.canBack?a("div",{staticClass:"go-back",on:{click:function(t){return e.$router.back()}}},[a("chevron-left-icon",{attrs:{size:"17"}})],1):e._e(),e._v(" "),a("div",{staticClass:"content"},[a("h1",{staticClass:"title"},[e._v(e._s(e.title))])])])}),[],!1,null,"9fd0a424",null);t.a=o.exports},"3OWm":function(e,t,a){"use strict";a.r(t);var i=a("CjXH"),s=a("xnZf"),o=a("D62o"),r=a("THmQ"),n=a("2Sb1"),d=a("kPoH"),l=a("zTYo"),c=a("L2JU"),m=a("vDqi"),v=a.n(m);function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?p(Object(a),!0).forEach((function(t){u(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function u(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var b={name:"Profile",components:{StorageItemDetail:s.a,CreditCardIcon:i.o,HardDriveIcon:i.D,SectionTitle:r.a,FileTextIcon:i.x,MobileHeader:o.a,PageHeader:n.a,ColorLabel:d.a,Trash2Icon:i.cb,UserIcon:i.gb,LockIcon:i.K,Spinner:l.a},computed:g(g({},Object(c.b)(["config"])),{},{admin:function(){return this.$store.getters.user?this.$store.getters.user:void 0}}),data:function(){return{isLoading:!0,user:void 0}},methods:{fetchUser:function(){var e=this;v.a.get("/api/admin/users/"+this.$route.params.id+"/detail").then((function(t){e.user=t.data,e.isLoading=!1}))}},created:function(){this.fetchUser()}},f=(a("T+jz"),a("KHd+")),h=Object(f.a)(b,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"single-page"}},[e.isLoading?e._e():a("div",{attrs:{id:"page-content"}},[a("MobileHeader",{attrs:{title:e.$t(e.$router.currentRoute.meta.title)}}),e._v(" "),a("PageHeader",{attrs:{"can-back":!0,title:e.$t(e.$router.currentRoute.meta.title)}}),e._v(" "),a("div",{staticClass:"content-page"},[a("div",{staticClass:"user-thumbnail"},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:e.user.data.relationships.settings.data.attributes.avatar,alt:e.user.data.relationships.settings.data.attributes.name}})]),e._v(" "),a("div",{staticClass:"info"},[a("b",{staticClass:"name"},[e._v("\n "+e._s(e.user.data.relationships.settings.data.attributes.name)+"\n "),a("ColorLabel",{attrs:{color:"purple"}},[e._v("\n "+e._s(e.user.data.attributes.role)+"\n ")])],1),e._v(" "),a("span",{staticClass:"email"},[e._v(e._s(e.user.data.attributes.email))])])]),e._v(" "),a("div",{staticClass:"menu-list-wrapper horizontal"},[a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserDetail"}}},[a("div",{staticClass:"icon text-theme"},[a("user-icon",{attrs:{size:"17"}})],1),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.detail"))+"\n ")])]),e._v(" "),a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserStorage"}}},[a("div",{staticClass:"icon text-theme"},[a("hard-drive-icon",{attrs:{size:"17"}})],1),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.storage"))+"\n ")])]),e._v(" "),e.config.isSaaS?a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserSubscription"}}},[a("div",{staticClass:"icon text-theme"},[a("credit-card-icon",{attrs:{size:"17"}})],1),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.subscription"))+"\n ")])]):e._e(),e._v(" "),e.config.isSaaS?a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserInvoices"}}},[a("div",{staticClass:"icon text-theme"},[a("file-text-icon",{attrs:{size:"17"}})],1),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.invoices"))+"\n ")])]):e._e(),e._v(" "),a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserPassword"}}},[a("div",{staticClass:"icon text-theme"},[a("lock-icon",{attrs:{size:"17"}})],1),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.password"))+"\n ")])]),e._v(" "),e.admin&&e.user.data.relationships.settings.data.attributes.name!==e.admin.data.relationships.settings.data.attributes.name?a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserDelete"}}},[a("div",{staticClass:"icon text-theme"},[a("trash2-icon",{attrs:{size:"17"}})],1),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.delete"))+"\n ")])]):e._e()],1),e._v(" "),a("router-view",{attrs:{user:e.user},on:{"reload-user":e.fetchUser}})],1)],1),e._v(" "),e.isLoading?a("div",{attrs:{id:"loader"}},[a("Spinner")],1):e._e()])}),[],!1,null,"cbea643a",null);t.default=h.exports},"3eeM":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".page-header[data-v-9fd0a424]{display:flex;align-items:center;background:#fff;z-index:9;width:100%;position:sticky;top:0;padding-top:20px;padding-bottom:20px}.page-header .title[data-v-9fd0a424]{font-size:1.125em;font-weight:700;color:#1b2539}.page-header .go-back[data-v-9fd0a424]{margin-right:10px;cursor:pointer}.page-header .go-back svg[data-v-9fd0a424]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:960px){.page-header .title[data-v-9fd0a424]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-9fd0a424]{display:none}}@media (prefers-color-scheme:dark){.page-header[data-v-9fd0a424]{background:#131414}.page-header .title[data-v-9fd0a424]{color:#bec6cf}.page-header .icon path[data-v-9fd0a424]{fill:#00bc7e}}",""])},"46da":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".user-thumbnail[data-v-cbea643a]{display:flex;align-items:center;cursor:pointer;padding-bottom:10px;padding-top:15px}.user-thumbnail .avatar[data-v-cbea643a]{margin-right:20px;position:relative}.user-thumbnail .avatar img[data-v-cbea643a]{line-height:0;width:62px;height:62px;border-radius:12px;z-index:1;position:relative}.user-thumbnail .avatar img.blurred[data-v-cbea643a]{position:absolute;left:0;top:2px;z-index:0;filter:blur(8px);opacity:.5;top:0}.user-thumbnail .info .name[data-v-cbea643a]{display:block;font-size:1.0625em;line-height:1}.user-thumbnail .info .email[data-v-cbea643a]{color:rgba(27,37,57,.7);font-size:.875em}@media (prefers-color-scheme:dark){.user-thumbnail .info .email[data-v-cbea643a]{color:#7d858c}}",""])},"8L2t":function(e,t,a){"use strict";a("YQqd")},D62o:function(e,t,a){"use strict";var i=a("xCqy"),s=a("CjXH"),o={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:s.h,MenuIcon:s.M},methods:{showMobileNavigation:function(){i.a.$emit("mobile-menu:show","user-navigation")},goBack:function(){this.$router.back()}}},r=(a("R6Y3"),a("KHd+")),n=Object(r.a)(o,(function(){var e=this.$createElement,t=this._self._c||e;return t("header",{staticClass:"mobile-header"},[t("div",{staticClass:"go-back",on:{click:this.goBack}},[t("chevron-left-icon",{staticClass:"icon",attrs:{size:"17"}})],1),this._v(" "),t("div",{staticClass:"location-name"},[this._v(this._s(this.title))]),this._v(" "),t("div",{staticClass:"mobile-menu",on:{click:this.showMobileNavigation}},[t("menu-icon",{staticClass:"icon",attrs:{size:"17"}})],1)])}),[],!1,null,"699fe34a",null);t.a=n.exports},JOXf:function(e,t,a){"use strict";a("nr4+")},MWZw:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".color-label[data-v-5c508dbf]{text-transform:capitalize;font-size:.75em;display:inline-block;border-radius:6px;font-weight:700;padding:4px 6px}.color-label.purple[data-v-5c508dbf]{color:#9d66fe;background:rgba(157,102,254,.1)}.color-label.yellow[data-v-5c508dbf]{color:#ffbd2d;background:rgba(255,189,45,.1)}.color-label.green[data-v-5c508dbf]{color:#00bc7e;background:rgba(0,188,126,.1)}.color-label.red[data-v-5c508dbf]{color:#fd397a;background:rgba(253,57,122,.1)}",""])},R6Y3:function(e,t,a){"use strict";a("Xm12")},"T+jz":function(e,t,a){"use strict";a("cQjd")},THmQ:function(e,t,a){"use strict";var i={name:"SectionTitle"},s=(a("UHE7"),a("KHd+")),o=Object(s.a)(i,(function(){var e=this.$createElement;return(this._self._c||e)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"6d799cf2",null);t.a=o.exports},UHE7:function(e,t,a){"use strict";a("UmJ6")},UmJ6:function(e,t,a){var i=a("vFyo");"string"==typeof i&&(i=[[e.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(e.exports=i.locals)},Xm12:function(e,t,a){var i=a("q8nf");"string"==typeof i&&(i=[[e.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(e.exports=i.locals)},YQqd:function(e,t,a){var i=a("gvpH");"string"==typeof i&&(i=[[e.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(e.exports=i.locals)},cQjd:function(e,t,a){var i=a("46da");"string"==typeof i&&(i=[[e.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(e.exports=i.locals)},gvpH:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".progress-bar[data-v-6ec2be7a]{width:100%;height:5px;background:#f4f5f6;margin-top:6px;border-radius:10px}.progress-bar span[data-v-6ec2be7a]{display:block;height:100%;border-radius:10px;max-width:100%}@media (prefers-color-scheme:dark){.progress-bar[data-v-6ec2be7a]{background:#1e2024}}@media only screen and (min-width:680px) and (prefers-color-scheme:dark){.progress-bar[data-v-6ec2be7a]{background:#1e2024}}",""])},hw5j:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".detail-storage-item[data-v-d9e0536e]{margin-bottom:35px}.detail-storage-item.disk .icon circle[data-v-d9e0536e],.detail-storage-item.disk .icon line[data-v-d9e0536e],.detail-storage-item.disk .icon path[data-v-d9e0536e],.detail-storage-item.disk .icon polygon[data-v-d9e0536e],.detail-storage-item.disk .icon polyline[data-v-d9e0536e],.detail-storage-item.disk .icon rect[data-v-d9e0536e]{stroke:#1b2539}.detail-storage-item.disk .storage-progress[data-v-d9e0536e] span{background:#1b2539}.detail-storage-item.images .icon circle[data-v-d9e0536e],.detail-storage-item.images .icon line[data-v-d9e0536e],.detail-storage-item.images .icon path[data-v-d9e0536e],.detail-storage-item.images .icon polygon[data-v-d9e0536e],.detail-storage-item.images .icon polyline[data-v-d9e0536e],.detail-storage-item.images .icon rect[data-v-d9e0536e]{stroke:#9d66fe}.detail-storage-item.images .storage-progress[data-v-d9e0536e] span{background:#9d66fe}.detail-storage-item.videos .icon circle[data-v-d9e0536e],.detail-storage-item.videos .icon line[data-v-d9e0536e],.detail-storage-item.videos .icon path[data-v-d9e0536e],.detail-storage-item.videos .icon polygon[data-v-d9e0536e],.detail-storage-item.videos .icon polyline[data-v-d9e0536e],.detail-storage-item.videos .icon rect[data-v-d9e0536e]{stroke:#ffbd2d}.detail-storage-item.videos .storage-progress[data-v-d9e0536e] span{background:#ffbd2d}.detail-storage-item.audios .icon circle[data-v-d9e0536e],.detail-storage-item.audios .icon line[data-v-d9e0536e],.detail-storage-item.audios .icon path[data-v-d9e0536e],.detail-storage-item.audios .icon polygon[data-v-d9e0536e],.detail-storage-item.audios .icon polyline[data-v-d9e0536e],.detail-storage-item.audios .icon rect[data-v-d9e0536e]{stroke:#fe66a1}.detail-storage-item.audios .storage-progress[data-v-d9e0536e] span{background:#fe66a1}.detail-storage-item.documents .icon circle[data-v-d9e0536e],.detail-storage-item.documents .icon line[data-v-d9e0536e],.detail-storage-item.documents .icon path[data-v-d9e0536e],.detail-storage-item.documents .icon polygon[data-v-d9e0536e],.detail-storage-item.documents .icon polyline[data-v-d9e0536e],.detail-storage-item.documents .icon rect[data-v-d9e0536e]{stroke:#fe6057}.detail-storage-item.documents .storage-progress[data-v-d9e0536e] span{background:#fe6057}.detail-storage-item.others .icon circle[data-v-d9e0536e],.detail-storage-item.others .icon line[data-v-d9e0536e],.detail-storage-item.others .icon path[data-v-d9e0536e],.detail-storage-item.others .icon polygon[data-v-d9e0536e],.detail-storage-item.others .icon polyline[data-v-d9e0536e],.detail-storage-item.others .icon rect[data-v-d9e0536e]{stroke:#1b2539}.detail-storage-item.others .storage-progress[data-v-d9e0536e] span{background:#1b2539}.header-storage-item[data-v-d9e0536e]{display:flex;align-items:flex-start;margin-bottom:10px}.header-storage-item .icon[data-v-d9e0536e]{width:35px}.header-storage-item .type[data-v-d9e0536e]{font-size:.9375em;color:#1b2539}.header-storage-item .total-size[data-v-d9e0536e]{font-size:.625em;display:block;color:rgba(27,37,57,.7)}@media (prefers-color-scheme:dark){.header-storage-item .type[data-v-d9e0536e]{color:#bec6cf}.header-storage-item .total-size[data-v-d9e0536e]{color:#7d858c}.detail-storage-item.disk .icon circle[data-v-d9e0536e],.detail-storage-item.disk .icon line[data-v-d9e0536e],.detail-storage-item.disk .icon path[data-v-d9e0536e],.detail-storage-item.disk .icon polygon[data-v-d9e0536e],.detail-storage-item.disk .icon polyline[data-v-d9e0536e],.detail-storage-item.disk .icon rect[data-v-d9e0536e],.detail-storage-item.others .icon circle[data-v-d9e0536e],.detail-storage-item.others .icon line[data-v-d9e0536e],.detail-storage-item.others .icon path[data-v-d9e0536e],.detail-storage-item.others .icon polygon[data-v-d9e0536e],.detail-storage-item.others .icon polyline[data-v-d9e0536e],.detail-storage-item.others .icon rect[data-v-d9e0536e]{stroke:#41454e}.detail-storage-item.disk .storage-progress[data-v-d9e0536e] span,.detail-storage-item.others .storage-progress[data-v-d9e0536e] span{background:#41454e}}",""])},jCWY:function(e,t,a){"use strict";a("+v8A")},kPoH:function(e,t,a){"use strict";var i={name:"ColorLabel",props:["color"]},s=(a("m6y/"),a("KHd+")),o=Object(s.a)(i,(function(){var e=this.$createElement;return(this._self._c||e)("b",{staticClass:"color-label",class:this.color},[this._t("default")],2)}),[],!1,null,"5c508dbf",null);t.a=o.exports},"m6y/":function(e,t,a){"use strict";a("0rhn")},"nr4+":function(e,t,a){var i=a("3eeM");"string"==typeof i&&(i=[[e.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(e.exports=i.locals)},q8nf:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".mobile-header[data-v-699fe34a]{padding:10px 0;text-align:center;background:#fff;position:sticky;display:none;z-index:6;top:0}.mobile-header>div[data-v-699fe34a]{flex-grow:1;align-self:center;white-space:nowrap}.mobile-header .go-back[data-v-699fe34a]{text-align:left}.mobile-header .location-name[data-v-699fe34a]{line-height:1;text-align:center;width:100%;vertical-align:middle;font-size:.9375em;color:#1b2539;font-weight:700;max-width:220px;overflow:hidden;text-overflow:ellipsis;display:inline-block}.mobile-header .mobile-menu[data-v-699fe34a]{text-align:right}.mobile-header .icon[data-v-699fe34a]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:690px){.mobile-header[data-v-699fe34a]{display:flex;margin-bottom:15px}}@media (prefers-color-scheme:dark){.mobile-header[data-v-699fe34a]{background:#131414}.mobile-header .location-name[data-v-699fe34a]{color:#bec6cf}}",""])},vFyo:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".text-label[data-v-6d799cf2]{font-size:.75em;color:#afafaf;font-weight:700;display:block;margin-bottom:20px}@media (prefers-color-scheme:dark){.text-label[data-v-6d799cf2]{color:#00bc7e}}",""])},xnZf:function(e,t,a){"use strict";var i=a("+Pqb"),s=a("CjXH"),o={name:"StorageItemDetail",props:["percentage","title","type","used"],components:{HardDriveIcon:s.D,FileTextIcon:s.x,ProgressBar:i.a,MusicIcon:s.Q,VideoIcon:s.jb,ImageIcon:s.F,FileIcon:s.w}},r=(a("jCWY"),a("KHd+")),n=Object(r.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("article",{staticClass:"detail-storage-item",class:e.type},[a("div",{staticClass:"header-storage-item"},[a("div",{staticClass:"icon"},["images"==e.type?a("image-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"videos"==e.type?a("video-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"audios"==e.type?a("music-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"documents"==e.type?a("file-text-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"others"==e.type?a("file-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"disk"==e.type?a("hard-drive-icon",{attrs:{size:"23"}}):e._e()],1),e._v(" "),a("div",{staticClass:"title"},[a("b",{staticClass:"type"},[e._v(e._s(e.title))]),e._v(" "),a("span",{staticClass:"total-size"},[e._v(e._s(e.used))])])]),e._v(" "),a("ProgressBar",{staticClass:"storage-progress",attrs:{progress:e.percentage}})],1)}),[],!1,null,"d9e0536e",null);t.a=n.exports}}]); |