All Downloads are FREE. Search and download functionalities are using the official Maven repository.

frontend.dist.js.app.ec663a8b.js Maven / Gradle / Ivy

There is a newer version: 3.0.0-alpha-29
Show newest version
(function(e){function t(t){for(var r,a,u=t[0],s=t[1],c=t[2],l=0,d=[];l0},logo:function(){var e;return(null!==(e=m.a.defaults.baseURL)&&void 0!==e?e:"")+"/elepy/logo"}}});function E(e,t){if("authenticated"===e)return!0;var n=function(e){return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")};return new RegExp("^"+t.split("*").map(n).join(".*")+"$").test(e)}var k=n("dd36"),y=n("8c4f"),w=function(e,t,n){function r(){v.getters.loggedIn&&n()}v.watch((function(e,t){return t.ready}),(function(t){!0===t?v.getters.loggedIn?r():n({path:"/login",query:{redirect:e.fullPath}}):r()}),{immediate:!0})},S=function(e,t,n){v.watch((function(e,t){return t.elepyInitialized}),(function(t){!0===t&&"/login"!==e.path?n({path:"/login"}):!1===t&&"/initial-user"!==e.path?n({path:"/initial-user"}):n()}),{immediate:!0})};r["a"].use(y["a"]);var _=[{path:"/login",component:function(){return n.e("chunk-5337ec5e").then(n.bind(null,"3bea"))},beforeEnter:S},{path:"/initial-user",component:function(){return n.e("chunk-74d2724a").then(n.bind(null,"b0ba"))},beforeEnter:S},{path:"/",component:function(){return n.e("chunk-43584e6c").then(n.bind(null,"427d"))},beforeEnter:w,children:[{path:"/",component:function(){return n.e("chunk-2d0e1fe1").then(n.bind(null,"7d97"))}},{path:"/:modelPath",name:"generic",component:function(){return Promise.all([n.e("chunk-3bd951f2"),n.e("chunk-42323b28")]).then(n.bind(null,"1bc7"))},meta:{title:null,auth:!1}},{path:"/:modelPath/edit/:recordId",component:function(){return Promise.all([n.e("chunk-3bd951f2"),n.e("chunk-2d0b722b")]).then(n.bind(null,"1faa"))}},{path:"/:modelPath/add",component:function(){return Promise.all([n.e("chunk-3bd951f2"),n.e("chunk-2d0b37ae")]).then(n.bind(null,"290a"))}}]}],O=new y["a"]({mode:"history",base:"/elepy/admin",routes:_,scrollBehavior:function(e,t,n){return n||{x:0,y:0}}}),I=O,T=n("0621");function R(e,t){return"#"+e.replace(/^#/,"").replace(/../g,(function(e){return("0"+Math.min(255,Math.max(0,parseInt(e,16)+t)).toString(16)).substr(-2)}))}r["a"].config.productionTip=!1,new r["a"]({router:I,store:v,render:function(e){return e(d)}}).$mount("#app"),k["a"].url="",v.dispatch("init"),m.a.interceptors.request.use((function(e){var t,n=Math.random().toString(36).substring(2)+Date.now().toString(36),r=null!==(t=e.description)&&void 0!==t?t:"Communicating with Elepy";return e.requestInfo={uniqueId:n,description:r},v.commit("ADD_LOAD_ITEM",e.requestInfo),e}),(function(e){return Promise.reject(e)})),m.a.interceptors.response.use((function(e){return v.commit("REMOVE_LOAD_ITEM",e.config.requestInfo.id),e}),(function(e){return v.commit("REMOVE_LOAD_ITEM",e.response.config.requestInfo.id),k["a"].displayError(e),Promise.reject(e)})),T["from"](v.getters.logo).getPalette().then((function(e){var t=e.Vibrant.hex,n=R(e.Vibrant.hex,-10),r=e.DarkVibrant.hsl;r="hsla("+360*r[0]+", 75%, 82%, 1)",document.documentElement.style.setProperty("--primary-color",t),document.documentElement.style.setProperty("--primary-hover-color",n),document.documentElement.style.setProperty("--primary-disabled-color",r)}))},"5c0b":function(e,t,n){"use strict";var r=n("9c0c"),a=n.n(r);a.a},"7c08":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"sidebar"}},[n("a",{staticClass:"sidebar-header uk-flex uk-flex-center",attrs:{href:"/admin"}},[n("img",{staticClass:"banner-image",attrs:{src:e.$store.getters.logo,alt:"logo"}})]),n("div",{staticClass:"sidebar-content"},[n("div",{staticClass:"sidebar-nav uk-light"},[n("h4",{staticClass:"sidebar-heading"},[e._v("Resources")]),n("ul",{staticClass:"sidebar-list"},e._l(this.allModels,(function(t){return e.canExecute(t.defaultActions.find)?n("li",{key:t.name},[n("router-link",{attrs:{to:t.path}},[n("span",{attrs:{"uk-icon":"folder"}}),e._v(" "+e._s(t.name))])],1):e._e()})),0),n("h4",{staticClass:"sidebar-heading"},[e._v("General")]),n("ul",{staticClass:"sidebar-list"},[n("li",[n("router-link",{attrs:{to:"/"}},[n("span",{attrs:{"uk-icon":"home"}}),e._v(" Admin Home")])],1),n("li",[n("a",{on:{click:e.logOut}},[n("span",{attrs:{"uk-icon":"sign-out"}}),e._v(" Log out")])])])])])])},a=[],o=n("f3f3"),i=n("2f62"),u={name:"SideBar",computed:Object(o["a"])({},Object(i["c"])(["allModels"]),{},Object(i["b"])(["canExecute"])),methods:{logOut:function(){var e=this;this.$store.dispatch("logOut").then((function(){return e.$router.push("/login")}))}}},s=u,c=(n("a736"),n("2877")),l=Object(c["a"])(s,r,a,!1,null,null,null);t["a"]=l.exports},"9c0c":function(e,t,n){},a0a6:function(e,t,n){},a736:function(e,t,n){"use strict";var r=n("a0a6"),a=n.n(r);a.a},dd36:function(e,t,n){"use strict";var r=n("8323"),a=n("0e54");t["a"]={url:"",displayResponse:function(e){this.display(e)},displayError:function(e){null==e.response?r.notification(e,{status:"danger",pos:"bottom-center"}):this.display(e.response)},display:function(e){var t;if(null==e.data.properties)r.notification(null!==(t=e.data.message)&&void 0!==t?t:e.data,{status:"primary",pos:"bottom-center"});else switch(e.data.properties.type){case"HTML":r.modal.dialog(e.data.message);break;case"MARKDOWN":r.modal.dialog(a(e.data.message,{sanitize:!1}));break;case"MESSAGE":r.notification(e.data.message,{status:"success",pos:"bottom-center"});break;case"ERROR":r.notification(e.data.message,{status:"danger",pos:"bottom-center"});break;case"REDIRECT":window.location=e.data.message;break;default:e.status<300?r.notification(e.data.message,{status:"success",pos:"bottom-center"}):r.notification(e.data.message,{status:"danger",pos:"bottom-center"});break}},redir:function(e){null!=e.response.data.message?window.location=e.response.data.message:window.location=e.response.data}}}});
//# sourceMappingURL=app.ec663a8b.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy