created login page

This commit is contained in:
Fran Jurmanović
2021-05-30 13:29:30 +02:00
parent ffad98acd6
commit eb0cca567d
11 changed files with 230 additions and 66 deletions

View File

@@ -11,11 +11,13 @@ class AppMainElement extends HTMLElement {
public authStore: AuthStore;
private httpClient: HttpClient;
public appService: AppService;
@closest appMain;
constructor() {
super();
}
connectedCallback() {
if (this.appMain !== this) return;
this.httpClient = new HttpClient();
this.appService = new AppService(this, this.httpClient);
this.routerService = new RouterService(this);
@@ -32,16 +34,22 @@ class AppMainElement extends HTMLElement {
component: "home-page",
},
{
path: "/rb",
path: "/register",
component: "register-page",
layout: "menu-layout",
},
{
path: "/login",
component: "login-page",
layout: "menu-layout",
},
{
path: "/unauthorized",
component: "register-page",
component: "login-page",
},
{
path: "token-expired",
component: "register-page",
component: "login-page",
},
]);
this.routerService.init();