export class ServerAuth { constructor (address, port, tlsEnabled) { this.address = address; this.port = port; this.isTLSenabled = !!tlsEnabled; } getAuth () { const serverdata = JSON.parse(localStorage.getItem(`server:${ !!this.isTLSenabled ? "wss" : "ws" }:${address}:${port}`) ?? "null"); if (!serverdata) return null; } } // Authorization form ServerAuth.authForm = document.createElement("div"); ["auth-window"].forEach(c => ServerAuth.authForm.classList.add(c)); ServerAuth.authForm.innerHTML = `

Authorization


Your username into server.
Your password into server.
Retry password for you don't forget password.

`; // Main menu form ServerAuth.mainMenuForm = document.createElement("div"); ["mainmenu-window"].forEach(c => ServerAuth.mainMenuForm.classList.add(c)); ServerAuth.mainMenuForm.innerHTML = `

Your Profile


`;