mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 01:12:14 +00:00
1 line
18 KiB
JavaScript
Vendored
1 line
18 KiB
JavaScript
Vendored
(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{"+Pqb":function(e,t,a){"use strict";var i={name:"ProgressBar",props:["progress"]},o=(a("7Vv5"),a("KHd+")),s=Object(o.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,"3c785a84",null);t.a=s.exports},"/M7z":function(e,t,a){"use strict";a("ZbQM")},"1wHr":function(e,t,a){"use strict";a("aKcM")},"2Sb1":function(e,t,a){"use strict";var i={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:a("CjXH").h}},o=(a("1wHr"),a("KHd+")),s=Object(o.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,"8bbfeb00",null);t.a=s.exports},"2ojD":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".text-label[data-v-acb23b3a]{font-size:.75em;color:#afafaf;font-weight:700;display:block;margin-bottom:20px}.dark-mode .text-label[data-v-acb23b3a]{color:#00bc7e}",""])},"3OWm":function(e,t,a){"use strict";a.r(t);var i=a("CjXH"),o=a("xnZf"),s=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 g(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 p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?g(Object(a),!0).forEach((function(t){u(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(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:o.a,CreditCardIcon:i.p,HardDriveIcon:i.F,SectionTitle:r.a,FileTextIcon:i.z,MobileHeader:s.a,PageHeader:n.a,ColorLabel:d.a,Trash2Icon:i.ib,UserIcon:i.nb,LockIcon:i.N,Spinner:l.a},computed:p(p({},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).then((function(t){e.user=t.data,e.isLoading=!1}))}},created:function(){this.fetchUser()}},h=(a("VQ4A"),a("KHd+")),f=Object(h.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,"15152ac4",null);t.default=f.exports},"4qJ1":function(e,t,a){var i=a("wHe2");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},"5iZi":function(e,t,a){var i=a("lNml");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},"7Vv5":function(e,t,a){"use strict";a("9Xxg")},"7w3u":function(e,t,a){"use strict";a("5iZi")},"9Xxg":function(e,t,a){var i=a("n9ek");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},"D4g/":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".page-header[data-v-8bbfeb00]{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-8bbfeb00]{font-size:1.125em;font-weight:700;color:#1b2539}.page-header .go-back[data-v-8bbfeb00]{margin-right:10px;cursor:pointer}.page-header .go-back svg[data-v-8bbfeb00]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:960px){.page-header .title[data-v-8bbfeb00]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-8bbfeb00]{display:none}}.dark-mode .page-header[data-v-8bbfeb00]{background:#151515}.dark-mode .page-header .title[data-v-8bbfeb00]{color:#bec6cf}.dark-mode .page-header .icon path[data-v-8bbfeb00]{fill:#00bc7e}",""])},D62o:function(e,t,a){"use strict";var i=a("xCqy"),o=a("CjXH"),s={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:o.h,MenuIcon:o.P},methods:{showMobileNavigation:function(){i.a.$emit("mobile-menu:show","user-navigation")},goBack:function(){this.$router.back()}}},r=(a("ayom"),a("KHd+")),n=Object(r.a)(s,(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,"39c25ac0",null);t.a=n.exports},LcTr:function(e,t,a){var i=a("2ojD");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},Pb6s:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".mobile-header[data-v-39c25ac0]{padding:10px 0;text-align:center;background:#fff;position:sticky;display:none;z-index:6;top:0}.mobile-header>div[data-v-39c25ac0]{flex-grow:1;align-self:center;white-space:nowrap}.mobile-header .go-back[data-v-39c25ac0]{text-align:left}.mobile-header .location-name[data-v-39c25ac0]{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-39c25ac0]{text-align:right}.mobile-header .icon[data-v-39c25ac0]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:690px){.mobile-header[data-v-39c25ac0]{display:flex;margin-bottom:15px}}.dark-mode .mobile-header[data-v-39c25ac0]{background:#151515}.dark-mode .mobile-header .location-name[data-v-39c25ac0]{color:#bec6cf}",""])},THmQ:function(e,t,a){"use strict";var i={name:"SectionTitle"},o=(a("pL59"),a("KHd+")),s=Object(o.a)(i,(function(){var e=this.$createElement;return(this._self._c||e)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"acb23b3a",null);t.a=s.exports},VPUT:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".detail-storage-item[data-v-39e09627]{margin-bottom:35px}.detail-storage-item.disk .icon circle[data-v-39e09627],.detail-storage-item.disk .icon line[data-v-39e09627],.detail-storage-item.disk .icon path[data-v-39e09627],.detail-storage-item.disk .icon polygon[data-v-39e09627],.detail-storage-item.disk .icon polyline[data-v-39e09627],.detail-storage-item.disk .icon rect[data-v-39e09627]{stroke:#1b2539}.detail-storage-item.disk .storage-progress[data-v-39e09627] span{background:#1b2539}.detail-storage-item.images .icon circle[data-v-39e09627],.detail-storage-item.images .icon line[data-v-39e09627],.detail-storage-item.images .icon path[data-v-39e09627],.detail-storage-item.images .icon polygon[data-v-39e09627],.detail-storage-item.images .icon polyline[data-v-39e09627],.detail-storage-item.images .icon rect[data-v-39e09627]{stroke:#9d66fe}.detail-storage-item.images .storage-progress[data-v-39e09627] span{background:#9d66fe}.detail-storage-item.videos .icon circle[data-v-39e09627],.detail-storage-item.videos .icon line[data-v-39e09627],.detail-storage-item.videos .icon path[data-v-39e09627],.detail-storage-item.videos .icon polygon[data-v-39e09627],.detail-storage-item.videos .icon polyline[data-v-39e09627],.detail-storage-item.videos .icon rect[data-v-39e09627]{stroke:#ffbd2d}.detail-storage-item.videos .storage-progress[data-v-39e09627] span{background:#ffbd2d}.detail-storage-item.audios .icon circle[data-v-39e09627],.detail-storage-item.audios .icon line[data-v-39e09627],.detail-storage-item.audios .icon path[data-v-39e09627],.detail-storage-item.audios .icon polygon[data-v-39e09627],.detail-storage-item.audios .icon polyline[data-v-39e09627],.detail-storage-item.audios .icon rect[data-v-39e09627]{stroke:#fe66a1}.detail-storage-item.audios .storage-progress[data-v-39e09627] span{background:#fe66a1}.detail-storage-item.documents .icon circle[data-v-39e09627],.detail-storage-item.documents .icon line[data-v-39e09627],.detail-storage-item.documents .icon path[data-v-39e09627],.detail-storage-item.documents .icon polygon[data-v-39e09627],.detail-storage-item.documents .icon polyline[data-v-39e09627],.detail-storage-item.documents .icon rect[data-v-39e09627]{stroke:#fe6057}.detail-storage-item.documents .storage-progress[data-v-39e09627] span{background:#fe6057}.detail-storage-item.others .icon circle[data-v-39e09627],.detail-storage-item.others .icon line[data-v-39e09627],.detail-storage-item.others .icon path[data-v-39e09627],.detail-storage-item.others .icon polygon[data-v-39e09627],.detail-storage-item.others .icon polyline[data-v-39e09627],.detail-storage-item.others .icon rect[data-v-39e09627]{stroke:#1b2539}.detail-storage-item.others .storage-progress[data-v-39e09627] span{background:#1b2539}.header-storage-item[data-v-39e09627]{display:flex;align-items:flex-start;margin-bottom:10px}.header-storage-item .icon[data-v-39e09627]{width:35px}.header-storage-item .type[data-v-39e09627]{font-size:.9375em;color:#1b2539}.header-storage-item .total-size[data-v-39e09627]{font-size:.625em;display:block;color:rgba(27,37,57,.7)}.dark-mode .header-storage-item .type[data-v-39e09627]{color:#bec6cf}.dark-mode .header-storage-item .total-size[data-v-39e09627]{color:#7d858c}.dark-mode .detail-storage-item.disk .icon circle[data-v-39e09627],.dark-mode .detail-storage-item.disk .icon line[data-v-39e09627],.dark-mode .detail-storage-item.disk .icon path[data-v-39e09627],.dark-mode .detail-storage-item.disk .icon polygon[data-v-39e09627],.dark-mode .detail-storage-item.disk .icon polyline[data-v-39e09627],.dark-mode .detail-storage-item.disk .icon rect[data-v-39e09627],.dark-mode .detail-storage-item.others .icon circle[data-v-39e09627],.dark-mode .detail-storage-item.others .icon line[data-v-39e09627],.dark-mode .detail-storage-item.others .icon path[data-v-39e09627],.dark-mode .detail-storage-item.others .icon polygon[data-v-39e09627],.dark-mode .detail-storage-item.others .icon polyline[data-v-39e09627],.dark-mode .detail-storage-item.others .icon rect[data-v-39e09627]{stroke:#41454e}.dark-mode .detail-storage-item.disk .storage-progress[data-v-39e09627] span,.dark-mode .detail-storage-item.others .storage-progress[data-v-39e09627] span{background:#41454e}",""])},VQ4A:function(e,t,a){"use strict";a("4qJ1")},ZbQM:function(e,t,a){var i=a("VPUT");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},aKcM:function(e,t,a){var i=a("D4g/");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},ayom:function(e,t,a){"use strict";a("uXZy")},kPoH:function(e,t,a){"use strict";var i={name:"ColorLabel",props:["color"]},o=(a("7w3u"),a("KHd+")),s=Object(o.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,"00f26e1e",null);t.a=s.exports},lNml:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".color-label[data-v-00f26e1e]{text-transform:capitalize;font-size:.75em;display:inline-block;border-radius:6px;font-weight:700;padding:4px 6px}.color-label.purple[data-v-00f26e1e]{color:#9d66fe;background:rgba(157,102,254,.1)}.color-label.yellow[data-v-00f26e1e]{color:#ffbd2d;background:rgba(255,189,45,.1)}.color-label.green[data-v-00f26e1e]{color:#00bc7e;background:rgba(0,188,126,.1)}.color-label.red[data-v-00f26e1e]{color:#fd397a;background:rgba(253,57,122,.1)}",""])},n9ek:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".progress-bar[data-v-3c785a84]{width:100%;height:5px;background:#f4f5f6;margin-top:6px;border-radius:10px}.progress-bar span[data-v-3c785a84]{display:block;height:100%;border-radius:10px;max-width:100%}.dark-mode .progress-bar[data-v-3c785a84]{background:#1e2024}@media only screen and (min-width:680px){.dark-mode .progress-bar[data-v-3c785a84]{background:#1e2024}}",""])},pL59:function(e,t,a){"use strict";a("LcTr")},uXZy:function(e,t,a){var i=a("Pb6s");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},wHe2:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".user-thumbnail[data-v-15152ac4]{display:flex;align-items:center;cursor:pointer;padding-bottom:10px;padding-top:15px}.user-thumbnail .avatar[data-v-15152ac4]{margin-right:20px;position:relative}.user-thumbnail .avatar img[data-v-15152ac4]{line-height:0;width:62px;height:62px;border-radius:12px;z-index:1;position:relative}.user-thumbnail .avatar img.blurred[data-v-15152ac4]{position:absolute;left:0;top:2px;z-index:0;filter:blur(8px);opacity:.5;top:0}.user-thumbnail .info .name[data-v-15152ac4]{display:block;font-size:1.0625em;line-height:1}.user-thumbnail .info .email[data-v-15152ac4]{color:rgba(27,37,57,.7);font-size:.875em}.dark-mode .user-thumbnail .info .email[data-v-15152ac4]{color:#7d858c}",""])},xnZf:function(e,t,a){"use strict";var i=a("+Pqb"),o=a("CjXH"),s={name:"StorageItemDetail",props:["percentage","title","type","used"],components:{HardDriveIcon:o.F,FileTextIcon:o.z,ProgressBar:i.a,MusicIcon:o.U,VideoIcon:o.qb,ImageIcon:o.H,FileIcon:o.y}},r=(a("/M7z"),a("KHd+")),n=Object(r.a)(s,(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,"39e09627",null);t.a=n.exports}}]); |