home: changed links, no need to be logged in anymore

This commit is contained in:
AdrienLSH 2024-05-14 16:23:33 +02:00
parent 3d9e0208a2
commit e376cde2d9
5 changed files with 19 additions and 30 deletions

View File

@ -9,9 +9,8 @@
"homeWindowTitle": "Quoicoubouse",
"homeTitle": "Quoicoubouse",
"homeOnline": "Jouer en crampté",
"homeOffline": "Jouer hors crampté",
"homeSettings": "Roue Crampté",
"homeLogout": "Déconnexion crampté",
"homePongOffline": "Jouer hors crampté",
"homeTicTacToeOffline": "Quoicoumorpion hors crampté",
"loginWindowTitle": "Quoicouconnec",
"loginFormTitle": "Quoicouconnec",
"loginFormUsername": "Nom d'crampté",
@ -38,7 +37,6 @@
"profileBlock": "Quoicoubloquer",
"gameGoalTaken": "Tu es quoicoucringe",
"gamePlayersListName": "Crampteurs",
"ticTacToe": "Quoicoumorpion hors crampté",
"gamemodeChoice" : "Mode de crampté",
"ticTacToeOnline" : "Quoicoumorpion crampté",
"ticTacToeTitle": "Cramption",

View File

@ -9,9 +9,8 @@
"homeWindowTitle": "Home",
"homeTitle": "Home",
"homeOnline": "Play online",
"homeOffline": "Play offline",
"homeSettings": "Settings",
"homeLogout": "Logout",
"homePongOffline": "Play pong offline",
"homeTicTacToeOffline": "Play TicTacToe offline",
"loginWindowTitle": "Login",
"loginFormTitle": "Login",
"loginFormUsername": "Username",
@ -38,7 +37,6 @@
"profileBlock": "Block",
"gameGoalTaken": "Goal Taken",
"gamePlayersListName": "Players",
"ticTacToe": "TicTacToe offline",
"ticTacToeTitle": "TicTacToe",
"gamemodeChoice" : "Gamemode",
"ruleTitle" : "Rules",

View File

@ -9,9 +9,8 @@
"homeWindowTitle": "Maison",
"homeTitle": "Maison",
"homeOnline": "Jouer en ligne",
"homeOffline": "Jouer hors ligne",
"homeSettings": "Paramètres",
"homeLogout": "Déconnexion",
"homePongOffline": "Jouer à pong hors ligne",
"homeTicTacToeOffline" : "Jouer au morpion hors ligne",
"loginWindowTitle": "Connexion",
"loginFormTitle": "Connexion",
"loginFormUsername": "Nom d'utilisateur",
@ -38,7 +37,6 @@
"profileBlock": "Bloquer",
"gameGoalTaken": "But pris",
"gamePlayersListName": "Joueurs",
"ticTacToe" : "Morpion hors ligne",
"ticTacToeTitle": "Morpion",
"gamemodeChoice" : "Mode de jeu",
"ruleTitle" : "Règles",

View File

@ -9,9 +9,8 @@
"homeWindowTitle": "Tomo",
"homeTitle": "Tomo",
"homeOnline": "Mute tawa",
"homeOffline": "Mute lon",
"homeSettings": "Nasin",
"homeLogout": "Tawa ala",
"homePongOffline": "Mute lon",
"homeTicTacToeOffline": "TicTacToe offline",
"loginWindowTitle": "Open",
"loginFormTitle": "Open",
"loginFormUsername": "nimi pi jan Open",
@ -38,7 +37,6 @@
"profileBlock": "Tawa e nimi pi jan ni",
"gameGoalTaken": "Wile pali",
"gamePlayersListName": "Musi",
"ticTacToe": "TicTacToe offline",
"ticTacToeTitle": "TicTacToe",
"gamemodeChoice" : "sitelen sitelen",
"ruleTitle" : "Rules",

View File

@ -1,20 +1,17 @@
import { lang } from "../index.js";
import AbstractAuthenticatedView from "./abstracts/AbstractAuthenticatedView.js";
import AbstractView from './abstracts/AbstractView.js'
export default class extends AbstractAuthenticatedView {
export default class extends AbstractView {
constructor(params) {
super(params, 'homeWindowTitle');
this.redirect_url = "/login";
}
async getHtml() {
return /* HTML */ `
<h1>${lang.get('homeTitle', 'Home')}</h1>
<a href="/matchmaking" data-link>${lang.get('homeOnline', 'Play online')}</a>
<a href="/games/pong/offline" data-link>${lang.get('homeOffline', 'Play offline')}</a>
<a href="/games/tictactoe/offline" data-link>${lang.get('ticTacToe')}</a>
<a href="/settings" data-link>${lang.get('homeSettings', 'Settings')}</a>
<a href="/logout" data-link>${lang.get('homeLogout', 'Logout')}</a>
<a href="/matchmaking" data-link>${lang.get('homeOnline')}</a>
<a href="/games/pong/offline" data-link>${lang.get('homePongOffline')}</a>
<a href="/games/tictactoe/offline" data-link>${lang.get('homeTicTacToeOffline')}</a>
`;
}
}