Files
ploi-core/public/js/65.js
2021-02-10 13:56:20 +01:00

1 line
7.7 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[65,73],{0:function(t,e,s){"use strict";function a(t,e,s,a,r,i,n,o){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=s,l._compiled=!0),a&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),n?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}s.d(e,"a",(function(){return a}))},141:function(t,e,s){"use strict";s.r(e);var a=s(17),r=s(1),i=s(6),n=s(7),o=s(8),c=s(9),l=s(10),u=s(2),d=s(11),p=s(12),_=s(4),m=s(5),v=s(3),h=s(15),f=s(16),b=s(31),y=s(19),x=s(38),g=s(20),T=s(22),k=s(23),C=s(24),S=s(25),B=s(21),w={layout:v.a,metaInfo:function(){return{title:"".concat(this.__("Synchronize providers"))}},components:{TopBar:a.default,Container:r.a,Content:i.a,Page:n.a,PageHeader:o.a,PageHeaderTitle:c.a,PageBody:l.a,Button:u.a,List:d.a,ListItem:p.a,StatusBubble:_.a,NotificationBadge:m.a,SettingsLayout:h.a,SettingsSegment:f.a,Pagination:b.a,Tabs:x.default,Table:g.a,TableHead:T.a,TableHeader:k.a,TableRow:C.a,TableBody:S.a,TableData:B.a},props:{availableProviders:Array},methods:{useNotification:y.a,syncProvider:function(t){window.axios.post(this.route("admin.services.providers.sync",t.id).url()).then((function(){Object(y.a)({variant:"success",title:"Providers",message:"Provider has been synchronized to this system"})}))}}},P=s(0),$=Object(P.a)(w,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("Page",[s("TopBar"),t._v(" "),s("Content",[s("Container",[s("PageHeader",{scopedSlots:t._u([{key:"start",fn:function(){return[s("PageHeaderTitle",[t._v(t._s(t.__("Synchronize providers")))])]},proxy:!0}])}),t._v(" "),s("PageBody",[s("SettingsLayout",{scopedSlots:t._u([{key:"nav",fn:function(){return[s("Tabs")]},proxy:!0},{key:"segments",fn:function(){return[s("SettingsSegment",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v(t._s(t.__("Overview")))]},proxy:!0},{key:"subtitle",fn:function(){return[t._v(t._s(t.__("You can synchronize your server providers here. After that, you'll be able to set a default provider per package. So servers created by a user via a package will always be put on that selected provider.")))]},proxy:!0},{key:"content",fn:function(){return[s("Table",{attrs:{caption:"Available providers overview"}},[s("TableHead",[s("TableRow",[s("TableHeader",[t._v(t._s(t.__("Name")))]),t._v(" "),s("TableHeader",[t._v(t._s(t.__("Label")))]),t._v(" "),s("TableHeader")],1)],1),t._v(" "),s("TableBody",t._l(t.availableProviders,(function(e){return s("TableRow",{key:e.id},[s("TableData",[t._v(t._s(e.name))]),t._v(" "),s("TableData",[t._v(t._s(e.label))]),t._v(" "),s("TableData",{staticClass:"text-right"},[s("Button",{attrs:{size:"sm"},on:{click:function(s){return t.syncProvider(e)}}},[t._v("\n "+t._s(t.__("Synchronize"))+"\n ")])],1)],1)})),1)],1)]},proxy:!0}])})]},proxy:!0}])})],1)],1)],1)],1)}),[],!1,null,null,null);e.default=$.exports},15:function(t,e,s){"use strict";var a={props:{items:{type:Array,required:!1}}},r=s(0),i=Object(r.a)(a,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"grid grid-cols-4 gap-8 md:gap-16"},[e("aside",{staticClass:"col-span-4 md:col-span-1"},[this._t("nav")],2),this._v(" "),e("section",{staticClass:"col-span-4 md:col-span-3"},[e("div",{staticClass:"space-y-16"},[this._t("segments")],2)])])}),[],!1,null,null,null);e.a=i.exports},16:function(t,e,s){"use strict";var a=s(0),r=Object(a.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"px-8 pb-8 space-y-6 border rounded border-low-emphasis"},[e("header",{staticClass:"-mt-4"},[e("h2",{staticClass:"inline-flex px-4 -mx-4 font-medium bg-surface-1 text-title"},[this._t("title")],2),this._v(" "),e("p",{staticClass:"mt-1 text-small text-medium-emphasis"},[this._t("subtitle")],2)]),this._v(" "),e("div",{staticClass:"space-y-4"},[this._t("form"),this._v(" "),this._t("content")],2)])}),[],!1,null,null,null);e.a=r.exports},17:function(t,e,s){"use strict";s.r(e);var a=s(39),r=s(40),i=s(41),n=s(42),o={components:{TopBar:a.a,Breadcrumbs:r.a,TabBar:i.a,TopBarTabBarContainer:n.a},data:function(){return{tabBars:[{title:"Dashboard",to:this.route("admin.dashboard"),active:this.route().current("admin.dashboard")||this.route().current("admin.settings")||this.route().current("admin.system")},{title:this.__("Users"),to:this.route("admin.users.index"),active:this.route().current("admin.users.*")},{title:this.__("Packages"),to:this.route("admin.packages.index"),active:this.route().current("admin.packages.*")},this.$page.props.settings.support?{title:"".concat(this.__("Support")," (").concat(this.$page.props.openTickets,")"),to:this.route("admin.support.index"),active:this.route().current("admin.support.*")}:null,this.$page.props.settings.documentation?{title:this.__("Documentation"),to:this.route("admin.documentation.index"),active:this.route().current("admin.documentation.*")}:null,{title:"Services",to:this.route("admin.services.index"),active:this.route().current("admin.services.*")}],breadcrumbs:[{title:this.$page.props.settings.name,to:"/"},{title:this.__("Administration"),to:this.route("admin.dashboard")}]}}},c=s(0),l=Object(c.a)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("TopBar",{scopedSlots:t._u([{key:"breadcrumbs",fn:function(){return[s("Breadcrumbs",{attrs:{items:t.breadcrumbs}})]},proxy:!0},{key:"tab-bar",fn:function(){return[s("TopBarTabBarContainer",[s("TabBar",{attrs:{items:t.tabBars}})],1)]},proxy:!0}])})}),[],!1,null,null,null);e.default=l.exports},31:function(t,e,s){"use strict";var a={props:{links:Object},computed:{determineLinks:function(){return this.links.meta?this.links.meta:this.links}}},r=s(0),i=Object(r.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.determineLinks.per_page<t.determineLinks.total?s("div",{staticClass:"mt-6 -mb-1 flex flex-wrap"},[t._l(t.determineLinks.links,(function(e,a){return[null===e.url?s("div",{key:a,staticClass:"mr-1 mb-1 px-4 py-3 text-sm border rounded text-gray-400",class:{"ml-auto":"Next"===e.label}},[t._v(t._s(e.label))]):s("inertia-link",{key:a,staticClass:"mr-1 mb-1 px-2 py-1 text-sm rounded",class:{"shadow text-high-emphasis bg-surface-1":e.active,"ml-auto":"Next"===e.label},attrs:{href:e.url}},[t._v(t._s(e.label))])]}))],2):t._e()}),[],!1,null,null,null);e.a=i.exports},38:function(t,e,s){"use strict";s.r(e);var a={data:function(){return{items:[{title:this.__("Overview"),to:this.route("admin.services.index"),active:this.route().current("admin.services.index")},{title:this.__("Synchronize servers"),to:this.route("admin.services.servers.index"),active:this.route().current("admin.services.servers.index")},{title:this.__("Synchronize providers"),to:this.route("admin.services.providers.index"),active:this.route().current("admin.services.providers.index")}]}}},r=s(0),i=Object(r.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ul",{staticClass:"-ml-4 space-y-1"},t._l(t.items,(function(e){return s("li",[s("inertia-link",{staticClass:"flex items-center h-10 px-4 font-medium text-medium-emphasis",class:{"rounded shadow text-primary bg-surface-3":e.active},attrs:{href:e.to}},[t._v(t._s(e.title)+" "+t._s(e.route))])],1)})),0)}),[],!1,null,null,null);e.default=i.exports}}]);