add: home
This commit is contained in:
17
frontend/static/js/views/HomeView.js
Normal file
17
frontend/static/js/views/HomeView.js
Normal file
@ -0,0 +1,17 @@
|
||||
import AbstractView from "./AbstractView.js";
|
||||
import { client, navigateTo } from "../index.js";
|
||||
|
||||
export default class extends AbstractView {
|
||||
constructor(params) {
|
||||
super(params);
|
||||
if (client.isAuthentificate() == false)
|
||||
navigateTo("/home");
|
||||
this.setTitle("register");
|
||||
}
|
||||
|
||||
async getHtml() {
|
||||
return `
|
||||
<h1>HOME</h1>
|
||||
`;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user