Firebase local hosting works
ng build --watch firebase serve
This commit is contained in:
parent
2932b08bfb
commit
debb63f2e2
5 changed files with 29 additions and 19 deletions
|
@ -4,7 +4,7 @@
|
|||
"indexes": "firestore.indexes.json"
|
||||
},
|
||||
"hosting": {
|
||||
"public": "dist",
|
||||
"public": "dist/Szakdolgozat",
|
||||
"ignore": [
|
||||
"firebase.json",
|
||||
"**/.*",
|
||||
|
|
22
package-lock.json
generated
22
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -28,5 +28,5 @@
|
|||
A jelszó megadása kötelező.
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
<button mat-raised-button color="primary" (click)="doLogin()">Bejelentkezés</button>
|
||||
<button mat-raised-button color="primary" (click)="doRegister()">Regisztráció</button>
|
||||
</form>
|
||||
|
|
|
@ -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ó');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,13 +8,15 @@
|
|||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<!-- The core Firebase JS SDK is always required and must be listed first -->
|
||||
<script src="/__/firebase/8.1.2/firebase-app.js"></script>
|
||||
|
||||
<!-- Initialize Firebase -->
|
||||
<script src="/__/firebase/init.js"></script>
|
||||
</head>
|
||||
<body class="mat-typography">
|
||||
<app-root></app-root>
|
||||
<!-- Insert these scripts at the bottom of the HTML, but before you use any Firebase services -->
|
||||
<!-- Firebase App (the core Firebase SDK) is always required and must be listed first -->
|
||||
<script src="/__/firebase/8.1.2/firebase-app.js"></script>
|
||||
|
||||
<!-- Add Firebase products that you want to use -->
|
||||
<script src="/__/firebase/8.1.2/firebase-auth.js"></script>
|
||||
<script src="/__/firebase/8.1.2/firebase-firestore.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue