removed dashboard

This commit is contained in:
AdrienLSH 2024-03-20 13:50:15 +01:00
parent f9f723c4e6
commit 4e17de6d73
2 changed files with 0 additions and 22 deletions

View File

@ -1,6 +1,5 @@
import { Client } from "./api/Client.js"; import { Client } from "./api/Client.js";
import Dashboard from "./views/Dashboard.js";
import Search from "./views/Search.js"; import Search from "./views/Search.js";
import HomeView from "./views/HomeView.js"; import HomeView from "./views/HomeView.js";
import LogoutView from "./views/accounts/LogoutView.js"; import LogoutView from "./views/accounts/LogoutView.js";
@ -78,7 +77,6 @@ async function renderView(view)
const router = async(uri) => { const router = async(uri) => {
const routes = [ const routes = [
{ path: "/", view: Dashboard },
{ path: "/profiles/:id/history", view: GameHistoryView }, { path: "/profiles/:id/history", view: GameHistoryView },
{ path: "/profiles/:username", view: ProfilePageView }, { path: "/profiles/:username", view: ProfilePageView },
{ path: "/tournaments/create", view: TournamentCreateView }, { path: "/tournaments/create", view: TournamentCreateView },

View File

@ -1,20 +0,0 @@
import AbstractView from "./abstracts/AbstractView.js";
export default class extends AbstractView {
constructor(params) {
super(params, "Dashboard");
}
async getHtml() {
return `
<h1>Welcome back, Dom</h1>
<p>
Akel is a game engine designed to be easy to use. The purpose of the project is learning about game engine development, discovering new rendering processes and learning to use new tools. It is mainly coded on and for Linux but is cross-platform and has been tested on Windows and MacOS.
</p>
<p>
<a href="https://cdn.discordapp.com/attachments/1198285289236463699/1211450599007064074/malonerd.png?ex=6600b34a&is=65ee3e4a&hm=359877a4259663411dc24383562193e0e8862774022ca9989b6960f6628f1e2c&">Akel Engine</a>.
<a href="/posts" data-link>View recent posts</a>.
</p>
`;
}
}