diff --git a/assets/index-83f55239.js b/assets/index-83f55239.js index 05b19bf..71c31cd 100644 --- a/assets/index-83f55239.js +++ b/assets/index-83f55239.js @@ -1057,7 +1057,7 @@ var ko=Object.defineProperty;var Mo=(s,t,e)=>t in s?ko(s,t,{enumerable:!0,config - `}}customElements.define("workspace-page",Au);const Su=[{path:"/MapAdmin",component:"status-page"},{path:"/MapAdmin/cache",component:"cache-page"},{path:"/MapAdmin/styles",component:"style-page"},{path:"/MapAdmin/documentation",component:"documentation-page"},{path:"/MapAdmin/gridsets",component:"gridset-page"},{path:"/MapAdmin/layers",component:"layer-page"},{path:"/MapAdmin/layergroups",component:"layergroup-page"},{path:"/MapAdmin/logs",component:"logs-page"},{path:"/MapAdmin/security",component:"security-page"},{path:"/MapAdmin/status",component:"status-page"},{path:"/MapAdmin/services",component:"service-page"},{path:"/MapAdmin/sources",component:"source-page"},{path:"/MapAdmin/workspaces",component:"workspace-page"},{path:void 0,component:"notfound-page"}];class Oo extends _{constructor(){super();C(this,"handleLogout",e=>{e.preventDefault(),this._isLoggedIn=!1,localStorage.removeItem("token"),localStorage.removeItem("identity"),this.toast({message:"Sikeres kijelentkezés",type:"success"})});C(this,"handleLogin",e=>{e.preventDefault(); localStorage.setItem("token",'abc'); localStorage.setItem("identity",JSON.stringify('123')); });this._isLoggedIn=!1}createRenderRoot(){const e=localStorage.getItem("token");return localStorage.getItem("identity")&&e&&(this._isLoggedIn=!0),this}willUpdate(e){this.classList.remove("show")}firstUpdated(e){this.classList.add("fade")}updated(e){this.classList.add("show")}toast(e){const n=document.getElementById("toast_messages"),i=document.createElement("toast-component");i.title=e.title,i.message=e.message,i.type=e.type,n.appendChild(i)}render(){return u` + `}}customElements.define("workspace-page",Au);const Su=[{path:"/MapAdmin",component:"status-page"},{path:"/MapAdmin/cache",component:"cache-page"},{path:"/MapAdmin/styles",component:"style-page"},{path:"/MapAdmin/documentation",component:"documentation-page"},{path:"/MapAdmin/gridsets",component:"gridset-page"},{path:"/MapAdmin/layers",component:"layer-page"},{path:"/MapAdmin/layergroups",component:"layergroup-page"},{path:"/MapAdmin/logs",component:"logs-page"},{path:"/MapAdmin/security",component:"security-page"},{path:"/MapAdmin/status",component:"status-page"},{path:"/MapAdmin/services",component:"service-page"},{path:"/MapAdmin/sources",component:"source-page"},{path:"/MapAdmin/workspaces",component:"workspace-page"},{path:void 0,component:"notfound-page"}];class Oo extends _{constructor(){super();C(this,"handleLogout",e=>{e.preventDefault(),this._isLoggedIn=!1,localStorage.removeItem("token"),localStorage.removeItem("identity"),this.toast({message:"Sikeres kijelentkezés",type:"success"})});C(this,"handleLogin",e=>{e.preventDefault(); localStorage.setItem("token",'abc'); localStorage.setItem("identity",JSON.stringify('123')); window.location.reload(); });this._isLoggedIn=!1}createRenderRoot(){const e=localStorage.getItem("token");return localStorage.getItem("identity")&&e&&(this._isLoggedIn=!0),this}willUpdate(e){this.classList.remove("show")}firstUpdated(e){this.classList.add("fade")}updated(e){this.classList.add("show")}toast(e){const n=document.getElementById("toast_messages"),i=document.createElement("toast-component");i.title=e.title,i.message=e.message,i.type=e.type,n.appendChild(i)}render(){return u` ${this._isLoggedIn?u`