This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Directive, | |
| ElementRef, | |
| Output, | |
| EventEmitter, | |
| OnDestroy, | |
| inject, | |
| effect, | |
| input | |
| } from '@angular/core'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @HostListener('document:keydown.enter') | |
| onEnter(){ | |
| this.nextTo() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Injectable} from '@angular/core'; | |
| import {BehaviorSubject, catchError, from, map, Observable, ReplaySubject, switchMap, tap} from "rxjs"; | |
| import {AngularFireAuth} from "@angular/fire/compat/auth"; | |
| import firebase from "firebase/compat"; | |
| import {AngularFirestore} from "@angular/fire/compat/firestore"; | |
| import {UserUidService} from "./user-uid.service"; | |
| @Injectable({ | |
| providedIn: 'root' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable } from '@angular/core'; | |
| import {AngularFirestore, AngularFirestoreCollection, DocumentReference} from "@angular/fire/compat/firestore"; | |
| import {Progress} from "../models/data"; | |
| import {from, map, Observable, switchMap} from "rxjs"; | |
| interface Data {} | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable } from '@angular/core'; | |
| import {AngularFirestore, AngularFirestoreCollection, DocumentReference} from "@angular/fire/compat/firestore"; | |
| import {Progress} from "../models/data"; | |
| import {from, map, Observable, switchMap} from "rxjs"; | |
| interface Data { | |
| name:string | |
| id:string | |
| data:Progress[] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *{ | |
| padding: 0; | |
| margin: 0; | |
| outline: 0; | |
| border: 0; | |
| appearance: none; | |
| text-decoration: none ; | |
| list-style: none; | |
| box-sizing: border-box; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private handleError(error: HttpErrorResponse) { | |
| console.log('hh') | |
| const {message} = error.error.error | |
| switch (message) { | |
| case 'INVALID_EMAIL': | |
| this.error$.next('Invalid Email') | |
| break | |
| case 'INVALID_PASSWORD': | |
| this.error$.next('Invalid Password') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| request=request.clone({ | |
| setParams:{ | |
| auth:this.auth.token as string | |
| } | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const INTERCEPTORS_PROVIDERS:Provider = { | |
| provide:HTTP_INTERCEPTORS, | |
| multi:true, | |
| useClass:AuthInterceptor | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .main{ | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| height: 100vh; | |
| width: 100vw; | |
| background: #181818; | |
| .myForm { | |
| display: flex; |
NewerOlder