From debb63f2e27a226ee1ef0cba0479929a7f1660e3 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Fri, 11 Dec 2020 01:25:22 +0100 Subject: [PATCH] Firebase local hosting works ng build --watch firebase serve --- firebase.json | 2 +- package-lock.json | 22 ++++++++++++++++++---- src/app/register/register.component.html | 2 +- src/app/register/register.component.ts | 10 ++-------- src/index.html | 12 +++++++----- 5 files changed, 29 insertions(+), 19 deletions(-) diff --git a/firebase.json b/firebase.json index e86731b..587a30f 100644 --- a/firebase.json +++ b/firebase.json @@ -4,7 +4,7 @@ "indexes": "firestore.indexes.json" }, "hosting": { - "public": "dist", + "public": "dist/Szakdolgozat", "ignore": [ "firebase.json", "**/.*", diff --git a/package-lock.json b/package-lock.json index 6fc234b..dddf1dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6475,8 +6475,9 @@ "dev": true }, "ini": { - "version": "1.3.5", - "resolved": "", + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", + "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "dev": true }, "inquirer": { @@ -8151,6 +8152,13 @@ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", "dev": true }, + "nan": { + "version": "2.14.2", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.2.tgz", + "integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==", + "dev": true, + "optional": true + }, "nanomatch": { "version": "1.2.13", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", @@ -13038,7 +13046,10 @@ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", "dev": true, - "optional": true + "optional": true, + "requires": { + "nan": "^2.12.1" + } }, "glob-parent": { "version": "3.1.0", @@ -13670,7 +13681,10 @@ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", "dev": true, - "optional": true + "optional": true, + "requires": { + "nan": "^2.12.1" + } }, "glob-parent": { "version": "3.1.0", diff --git a/src/app/register/register.component.html b/src/app/register/register.component.html index f321abc..d12284f 100644 --- a/src/app/register/register.component.html +++ b/src/app/register/register.component.html @@ -28,5 +28,5 @@ A jelszó megadása kötelező. - + diff --git a/src/app/register/register.component.ts b/src/app/register/register.component.ts index 26f5a15..1b30070 100644 --- a/src/app/register/register.component.ts +++ b/src/app/register/register.component.ts @@ -49,23 +49,17 @@ export class RegisterComponent implements OnInit { * @param code Az ellenőrizendő hibatipus */ emailHasError(code: string): boolean { - console.log('Checking ' + code); const error = this.emailFormControl.hasError(code); - console.log('Error: ' + error); if (!error) { return false; } - console.log('Checking codes...'); for (const ec of this.emailErrorCodes) { - console.log('ec: ' + ec); if (ec === code) { break; } - console.log('It\'s different'); if (this.emailFormControl.hasError(ec)) { return false; } - console.log('No error for ec'); } return error; } @@ -73,8 +67,8 @@ export class RegisterComponent implements OnInit { ngOnInit(): void { } - doLogin(): void { - alert('Login'); + doRegister(): void { + alert('Regisztráció'); } } diff --git a/src/index.html b/src/index.html index 86964b8..b519681 100644 --- a/src/index.html +++ b/src/index.html @@ -8,13 +8,15 @@ - - - - - + + + + + + +