This file contains 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 {HttpClient} from '@angular/common/http'; | |
import {filter, first, map} from 'rxjs/operators'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class TwitterService { | |
constructor(public http: HttpClient) { |
This file contains 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 {Component, OnInit} from '@angular/core'; | |
import {FbService} from '../../services/fb/fb.service'; | |
import {Router} from '@angular/router'; | |
import {first} from 'rxjs/operators'; | |
@Component({ | |
selector: 'app-signup', | |
templateUrl: './signup.component.html', | |
styleUrls: ['./signup.component.css'] | |
}) |
This file contains 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
<div class="main__container"> | |
<div class="signup-card"> | |
<main class="signup-content"> | |
<span class="signup-header">Signup</span> | |
<!-- signup form --> | |
<form class="signup-form" (ngSubmit)="signup($event)" #authform="ngForm"> | |
<input ngModel type="email" autofocus placeholder="Email" name="email" class="signup-input" required> | |
<input ngModel type="password" placeholder="Password" name="password" class="signup-input" minlength="6" |
This file contains 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__container { | |
min-height: 90vh; | |
width: 90vw; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
overflow: hidden; | |
} | |
.signup-card { |
This file contains 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
<div class="main__container"> | |
<div class="login-card"> | |
<main class="login-content"> | |
<span class="login-header">Login</span> | |
<!-- login form --> | |
<form class="login-form" (ngSubmit)="login($event)" #authform="ngForm"> | |
<input ngModel type="email" autofocus placeholder="Email" name="email" class="login-input" required> | |
<input ngModel type="password" placeholder="Password" name="password" class="login-input" minlength="6" |
This file contains 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 {Component, OnInit} from '@angular/core'; | |
import {FbService} from '../../services/fb/fb.service'; | |
import {first, tap} from 'rxjs/operators'; | |
import {Router} from '@angular/router'; | |
@Component({ | |
selector: 'app-login', | |
templateUrl: './login.component.html', | |
styleUrls: ['./login.component.css'] | |
}) |
This file contains 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__container { | |
min-height: 90vh; | |
width: 90vw; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
overflow: hidden; | |
} | |
.login-card { |
This file contains 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
.error-wrapper { | |
position: fixed; | |
left: 50%; | |
bottom: 0; | |
transform: translate(-50%, 5rem); | |
width: 70%; | |
background-color: crimson; | |
color: white; | |
height: 4rem; | |
border-radius: 0.25rem 0.25rem 0 0; |
This file contains 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
TWITTER_CONSUMER_KEY=xxxxxxxxxxxxxxxxxxxxxxxxx | |
TWITTER_CONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
TWITTER_ACCESS_TOKEN_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
TWITTER_ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
This file contains 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 functions = require('firebase-functions'); | |
// environment variables | |
require("dotenv").config(); | |
/**⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘ | |
* ⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘ | |
**/ |
NewerOlder