[WIP] multiple servers

This commit is contained in:
2022-01-30 14:13:05 +02:00
parent e11a283b2c
commit 805ae22f3b
37 changed files with 1183 additions and 554 deletions

View File

@@ -0,0 +1,30 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-lobby',
templateUrl: './lobby.page.html',
styleUrls: ['./lobby.page.scss'],
})
export class LobbyPage implements OnInit {
username = '';
user = {
username: ''
}
constructor() {}
ngOnInit() {
this.username = localStorage.getItem('username');
}
setName() {
this.username = this.user.username;
if (this.username.length > 16) {
this.username = this.username.substring(0, 16);
}
localStorage.setItem('username', this.username);
}
}