Files
vuefilemanager/public/chunks/pages.js
T
2021-03-26 16:59:08 +01:00

1 line
15 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{"0rhn":function(t,n,a){var e=a("MWZw");"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(e,i);e.locals&&(t.exports=e.locals)},"2Sb1":function(t,n,a){"use strict";var e={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:a("CjXH").g}},i=(a("JOXf"),a("KHd+")),o=Object(i.a)(e,(function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"page-header"},[t.canBack?a("div",{staticClass:"go-back",on:{click:function(n){return t.$router.back()}}},[a("chevron-left-icon",{attrs:{size:"17"}})],1):t._e(),t._v(" "),a("div",{staticClass:"content"},[a("h1",{staticClass:"title"},[t._v(t._s(t.title))])])])}),[],!1,null,"9fd0a424",null);n.a=o.exports},"3eeM":function(t,n,a){(t.exports=a("I1BE")(!1)).push([t.i,".page-header[data-v-9fd0a424] {\n display: flex;\n align-items: center;\n background: white;\n z-index: 9;\n width: 100%;\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n padding-top: 20px;\n padding-bottom: 20px;\n}\n.page-header .title[data-v-9fd0a424] {\n font-size: 1.125em;\n font-weight: 700;\n color: #1B2539;\n}\n.page-header .go-back[data-v-9fd0a424] {\n margin-right: 10px;\n cursor: pointer;\n}\n.page-header .go-back svg[data-v-9fd0a424] {\n vertical-align: middle;\n margin-top: -4px;\n}\n@media only screen and (max-width: 960px) {\n.page-header .title[data-v-9fd0a424] {\n font-size: 1.125em;\n}\n}\n@media only screen and (max-width: 690px) {\n.page-header[data-v-9fd0a424] {\n display: none;\n}\n}\n@media (prefers-color-scheme: dark) {\n.page-header[data-v-9fd0a424] {\n background: #131414;\n}\n.page-header .title[data-v-9fd0a424] {\n color: #bec6cf;\n}\n.page-header .icon path[data-v-9fd0a424] {\n fill: #00BC7E;\n}\n}\n",""])},"72Uq":function(t,n,a){var e=a("BEAu");"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(e,i);e.locals&&(t.exports=e.locals)},AEYP:function(t,n,a){"use strict";var e=a("G02l");a.n(e).a},BEAu:function(t,n,a){(t.exports=a("I1BE")(!1)).push([t.i,".table-tools[data-v-57f8ba4f] {\n background: white;\n display: flex;\n justify-content: space-between;\n padding: 15px 0 10px;\n position: -webkit-sticky;\n position: sticky;\n top: 40px;\n z-index: 9;\n}\n.table .cell-item[data-v-57f8ba4f] {\n font-size: 0.9375em;\n white-space: nowrap;\n}\n.table .name[data-v-57f8ba4f] {\n font-weight: 700;\n cursor: pointer;\n}\n@media only screen and (max-width: 690px) {\n.table-tools[data-v-57f8ba4f] {\n padding: 0 0 5px;\n}\n}\n@media (prefers-color-scheme: dark) {\n.table-tools[data-v-57f8ba4f] {\n background: #131414;\n}\n.action-icons .icon[data-v-57f8ba4f] {\n cursor: pointer;\n}\n.action-icons .icon circle[data-v-57f8ba4f], .action-icons .icon path[data-v-57f8ba4f], .action-icons .icon line[data-v-57f8ba4f], .action-icons .icon polyline[data-v-57f8ba4f] {\n stroke: #bec6cf;\n}\n.user-thumbnail .info .email[data-v-57f8ba4f] {\n color: #7d858c;\n}\n}\n",""])},Ck8b:function(t,n,a){(t.exports=a("I1BE")(!1)).push([t.i,".mobile-action-button[data-v-8fb504b8] {\n background: #f4f5f6;\n margin-right: 15px;\n border-radius: 8px;\n padding: 7px 10px;\n cursor: pointer;\n border: none;\n transition: 150ms all ease;\n /*&:hover {\n background: rgba($theme, 0.1);\n\n .icon {\n path, line, polyline, rect, circle {\n stroke: $theme;\n }\n }\n\n .label {\n color: $theme;\n }\n }*/\n}\n.mobile-action-button .flex[data-v-8fb504b8] {\n display: flex;\n align-items: center;\n}\n.mobile-action-button .icon[data-v-8fb504b8] {\n margin-right: 10px;\n font-size: 0.875em;\n}\n.mobile-action-button .icon path[data-v-8fb504b8], .mobile-action-button .icon line[data-v-8fb504b8], .mobile-action-button .icon polyline[data-v-8fb504b8], .mobile-action-button .icon rect[data-v-8fb504b8], .mobile-action-button .icon circle[data-v-8fb504b8] {\n transition: 150ms all ease;\n}\n.mobile-action-button .label[data-v-8fb504b8] {\n transition: 150ms all ease;\n font-size: 0.875em;\n font-weight: 700;\n color: #1B2539;\n}\n.mobile-action-button[data-v-8fb504b8]:active {\n transform: scale(0.95);\n}\n@media (prefers-color-scheme: dark) {\n.mobile-action-button[data-v-8fb504b8] {\n background: #1e2024;\n}\n.mobile-action-button path[data-v-8fb504b8], .mobile-action-button line[data-v-8fb504b8], .mobile-action-button polyline[data-v-8fb504b8], .mobile-action-button rect[data-v-8fb504b8], .mobile-action-button circle[data-v-8fb504b8] {\n color: inherit;\n}\n.mobile-action-button .label[data-v-8fb504b8] {\n color: #bec6cf;\n}\n}\n",""])},Fqzo:function(t,n,a){"use strict";var e=a("KHd+"),i=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("svg",{attrs:{width:"15px",height:"15px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"VueFileManager",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"}},[n("g",{attrs:{id:"Storage-Alert-Copy",transform:"translate(-1092.000000, -28.000000)",stroke:"#000000","stroke-width":"1.4"}},[n("g",{attrs:{id:"Toolbar",transform:"translate(331.000000, 19.000000)"}},[n("g",{attrs:{id:"Tools",transform:"translate(581.000000, 9.000000)"}},[n("g",{attrs:{id:"sort-icon",transform:"translate(181.000000, 1.000000)"}},[n("rect",{attrs:{id:"Rectangle",x:"9.77777778",y:"0",width:"6.22222222",height:"6.22222222"}}),this._v(" "),n("rect",{attrs:{id:"Rectangle",x:"9.77777778",y:"9.77777778",width:"6.22222222",height:"6.22222222"}}),this._v(" "),n("line",{attrs:{x1:"0",y1:"2",x2:"6",y2:"2",id:"Path"}}),this._v(" "),n("line",{attrs:{x1:"0",y1:"8",x2:"6",y2:"8",id:"Path"}}),this._v(" "),n("line",{attrs:{x1:"0",y1:"14",x2:"6",y2:"14",id:"Path"}})])])])])])])}),[],!1,null,null,null);n.a=i.exports},G02l:function(t,n,a){var e=a("Ck8b");"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(e,i);e.locals&&(t.exports=e.locals)},JOXf:function(t,n,a){"use strict";var e=a("nr4+");a.n(e).a},LedX:function(t,n,a){"use strict";var e=a("WEWl");a.n(e).a},MWZw:function(t,n,a){(t.exports=a("I1BE")(!1)).push([t.i,".color-label[data-v-5c508dbf] {\n text-transform: capitalize;\n font-size: 0.75em;\n display: inline-block;\n border-radius: 6px;\n font-weight: 700;\n padding: 4px 6px;\n}\n.color-label.purple[data-v-5c508dbf] {\n color: #9D66FE;\n background: rgba(157, 102, 254, 0.1);\n}\n.color-label.yellow[data-v-5c508dbf] {\n color: #FFBD2D;\n background: rgba(255, 189, 45, 0.1);\n}\n.color-label.green[data-v-5c508dbf] {\n color: #00BC7E;\n background: rgba(0, 188, 126, 0.1);\n}\n.color-label.red[data-v-5c508dbf] {\n color: #fd397a;\n background: rgba(253, 57, 122, 0.1);\n}\n",""])},Q0s8:function(t,n,a){"use strict";var e=a("72Uq");a.n(e).a},THmQ:function(t,n,a){"use strict";var e={name:"SectionTitle"},i=(a("UHE7"),a("KHd+")),o=Object(i.a)(e,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"6d799cf2",null);n.a=o.exports},UHE7:function(t,n,a){"use strict";var e=a("UmJ6");a.n(e).a},UmJ6:function(t,n,a){var e=a("vFyo");"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(e,i);e.locals&&(t.exports=e.locals)},WEWl:function(t,n,a){var e=a("sGz8");"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(e,i);e.locals&&(t.exports=e.locals)},d6jx:function(t,n,a){"use strict";a.r(n);var e=a("6TPS"),i=a("t5U/"),o=a("KfIT"),s=a("xxrA"),r=a("D62o"),c=a("THmQ"),l=a("Nv84"),d=a("CjXH"),u=a("2Sb1"),p=a("kPoH"),b=a("zTYo"),f=(a("vDqi"),{name:"Pages",components:{MobileActionButton:i.a,EmptyPageContent:o.a,DatatableWrapper:e.a,SectionTitle:c.a,MobileHeader:r.a,SwitchInput:s.a,Trash2Icon:d.Z,PageHeader:u.a,ButtonBase:l.a,ColorLabel:p.a,Edit2Icon:d.r,Spinner:b.a},data:function(){return{isLoading:!0,columns:[{label:this.$t("admin_pages.table.page"),field:"title",sortable:!0},{label:this.$t("admin_pages.table.slug"),field:"slug",sortable:!0},{label:this.$t("admin_pages.table.status"),field:"visibility",sortable:!0},{label:this.$t("admin_page_user.table.action"),sortable:!1}]}},methods:{changeStatus:function(t,n){this.$updateText("/admin/pages/"+n,"visibility",t)}}}),v=(a("Q0s8"),a("KHd+")),h=Object(v.a)(f,(function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{attrs:{id:"single-page"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.isLoading,expression:"! isLoading"}],attrs:{id:"page-content"}},[a("MobileHeader",{attrs:{title:t.$router.currentRoute.meta.title}}),t._v(" "),a("PageHeader",{attrs:{title:t.$router.currentRoute.meta.title}}),t._v(" "),a("div",{staticClass:"content-page"},[a("DatatableWrapper",{staticClass:"table table-users",attrs:{api:"/api/admin/pages",paginator:!1,columns:t.columns},on:{init:function(n){t.isLoading=!1}},scopedSlots:t._u([{key:"default",fn:function(n){var e=n.row;return[a("tr",[a("td",{staticClass:"name",staticStyle:{"min-width":"200px"}},[a("router-link",{staticClass:"cell-item",attrs:{to:{name:"PageEdit",params:{slug:e.data.attributes.slug}},tag:"div"}},[a("span",[t._v(t._s(e.data.attributes.title))])])],1),t._v(" "),a("td",[a("span",{staticClass:"cell-item"},[t._v("\n "+t._s(e.data.attributes.slug)+"\n ")])]),t._v(" "),a("td",[a("span",{staticClass:"cell-item"},[a("SwitchInput",{staticClass:"switch",attrs:{state:e.data.attributes.visibility},on:{input:function(n){return t.changeStatus(n,e.data.attributes.slug)}}})],1)]),t._v(" "),a("td",[a("div",{staticClass:"action-icons"},[a("router-link",{attrs:{to:{name:"PageEdit",params:{slug:e.data.attributes.slug}}}},[a("Edit2Icon",{staticClass:"icon icon-edit",attrs:{size:"15"}})],1)],1)])])]}}])})],1)],1),t._v(" "),t.isLoading?a("div",{attrs:{id:"loader"}},[a("Spinner")],1):t._e()])}),[],!1,null,"57f8ba4f",null);n.default=h.exports},kPoH:function(t,n,a){"use strict";var e={name:"ColorLabel",props:["color"]},i=(a("m6y/"),a("KHd+")),o=Object(i.a)(e,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"color-label",class:this.color},[this._t("default")],2)}),[],!1,null,"5c508dbf",null);n.a=o.exports},"m6y/":function(t,n,a){"use strict";var e=a("0rhn");a.n(e).a},"nr4+":function(t,n,a){var e=a("3eeM");"string"==typeof e&&(e=[[t.i,e,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(e,i);e.locals&&(t.exports=e.locals)},sGz8:function(t,n,a){(t.exports=a("I1BE")(!1)).push([t.i,".input-wrapper[data-v-421ca226] {\n display: flex;\n width: 100%;\n}\n.input-wrapper .input-label[data-v-421ca226] {\n color: #1B2539;\n}\n.input-wrapper .switch-content[data-v-421ca226] {\n width: 100%;\n}\n.input-wrapper .switch-content[data-v-421ca226]:last-child {\n width: 80px;\n}\n.switch[data-v-421ca226] {\n width: 50px;\n height: 28px;\n border-radius: 50px;\n display: block;\n background: #f1f1f5;\n position: relative;\n transition: 0.3s all ease;\n}\n.switch .switch-button[data-v-421ca226] {\n transition: 0.3s all ease;\n width: 22px;\n height: 22px;\n border-radius: 50px;\n display: block;\n background: white;\n position: absolute;\n top: 3px;\n left: 3px;\n box-shadow: 0 2px 4px rgba(37, 38, 94, 0.1);\n cursor: pointer;\n}\n.switch.active .switch-button[data-v-421ca226] {\n left: 25px;\n}\n@media (prefers-color-scheme: dark) {\n.switch[data-v-421ca226] {\n background: #1e2024;\n}\n.popup-wrapper .switch[data-v-421ca226] {\n background: #25272c;\n}\n}\n",""])},"t5U/":function(t,n,a){"use strict";var e=a("CjXH"),i={name:"MobileActionButton",props:["icon"],components:{SortingAndPreviewIcon:a("Fqzo").a,CheckSquareIcon:e.e,DollarSignIcon:e.p,CreditCardIcon:e.n,FolderPlusIcon:e.y,UserPlusIcon:e.eb,XSquareIcon:e.ib,CheckIcon:e.d,TrashIcon:e.ab,PlusIcon:e.P,ListIcon:e.G,GridIcon:e.z}},o=(a("AEYP"),a("KHd+")),s=Object(o.a)(i,(function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("button",{staticClass:"mobile-action-button"},[a("div",{staticClass:"flex"},["credit-card"===t.icon?a("credit-card-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"folder-plus"===t.icon?a("folder-plus-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"th-list"===t.icon?a("list-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"trash"===t.icon?a("trash-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"th"===t.icon?a("grid-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"user-plus"===t.icon?a("user-plus-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"plus"===t.icon?a("plus-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"check-square"===t.icon?a("check-square-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"x-square"===t.icon?a("x-square-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"check"===t.icon?a("check-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"dollar-sign"===t.icon?a("dollar-sign-icon",{staticClass:"icon dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"preview-sorting"===t.icon?a("sorting-and-preview-icon",{staticClass:"icon preview-sorting",attrs:{size:"15"}}):t._e(),t._v(" "),a("span",{staticClass:"label"},[t._t("default")],2)],1)])}),[],!1,null,"8fb504b8",null);n.a=s.exports},vFyo:function(t,n,a){(t.exports=a("I1BE")(!1)).push([t.i,".text-label[data-v-6d799cf2] {\n font-size: 0.75em;\n color: #AFAFAF;\n font-weight: 700;\n display: block;\n margin-bottom: 20px;\n}\n@media (prefers-color-scheme: dark) {\n.text-label[data-v-6d799cf2] {\n color: #00BC7E;\n}\n}\n",""])},xxrA:function(t,n,a){"use strict";var e={name:"SwitchInput",props:["label","name","state","info"],data:function(){return{isSwitched:void 0}},methods:{changeState:function(){this.isSwitched=!this.isSwitched,this.$emit("input",this.isSwitched)}},mounted:function(){this.isSwitched=this.state}},i=(a("LedX"),a("KHd+")),o=Object(i.a)(e,(function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"input-wrapper"},[a("div",{staticClass:"switch-content"},[t.label?a("label",{staticClass:"input-label"},[t._v(t._s(t.label)+":")]):t._e(),t._v(" "),t.info?a("small",{staticClass:"input-info"},[t._v(t._s(t.info))]):t._e()]),t._v(" "),a("div",{staticClass:"switch-content text-right"},[a("div",{staticClass:"switch",class:{active:t.isSwitched},on:{click:t.changeState}},[a("div",{staticClass:"switch-button"})])])])}),[],!1,null,"421ca226",null);n.a=o.exports}}]);