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
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// window opacity | |
opacity: 0.95, | |
// choose either `'stable'` for receiving highly polished, |
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
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'call' of undefined | |
TypeError: Cannot read property 'call' of undefined | |
at __webpack_require__ (/app/dist/server.js:142715:30) | |
at Function.requireEnsure [as e] (/app/dist/server.js:142734:25) | |
at ɵ1 (/app/dist/server.js:142985:38) | |
at RouterConfigLoader.loadModuleFactory (/app/dist/server.js:152511:39) | |
at RouterConfigLoader.load (/app/dist/server.js:152496:35) | |
at MergeMapSubscriber.project (/app/dist/server.js:151499:47) | |
at MergeMapSubscriber._tryNext (/app/dist/server.js:41981:27) | |
at MergeMapSubscriber._next (/app/dist/server.js:41971:18) |
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
⚡ nr build:ssr | |
> [email protected] build:ssr /app | |
> npm run build:bundles && npm run compile:server | |
> [email protected] build:bundles /app | |
> ng build --prod && ng run ng-fire-universal:server:production --bundleDependencies all | |
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
⚡ nr build:ssr | |
> [email protected] build:ssr /app | |
> npm run build:bundles && npm run compile:server | |
> [email protected] build:bundles /app | |
> ng build --prod && ng run ng-fire-universal:server:production --bundleDependencies all |
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
export class SearchService { | |
data: any; | |
results: IContact[]; | |
isFetching = false; | |
constructor(private functions: AngularFireFunctions) { } | |
public getResults(query: string) { | |
const call = this.functions.httpsCallable('searchContacts'); | |
this.isFetching = true; |
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 { Component, OnDestroy, ViewChild, ElementRef } from '@angular/core'; | |
import { Subscription, Subject, of } from 'rxjs'; | |
import { debounceTime, delay, distinctUntilChanged, flatMap, map, tap } from 'rxjs/operators'; | |
import { SearchService } from '../../services/search.service'; | |
@Component({ | |
selector: 'app-searchbox', | |
templateUrl: './searchbox.component.html', | |
styleUrls: ['./searchbox.component.scss'] |
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
<div class="searchbox"> | |
<input | |
#searchInput | |
type="text" | |
placeholder="Find a Person or Contact" | |
(keyup)="updateSearch.next($event)" | |
(focus)="showResults()"> | |
<i | |
class="search-icon fa fa-search" | |
(click)="focusInput()" |
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
.searchbox { | |
position: relative; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
max-width: 480px; | |
margin: 0 auto; | |
padding: 15px; | |
input { |
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 * as functions from 'firebase-functions'; | |
import * as firebase from 'firebase-admin'; | |
firebase.initializeApp(); | |
const env = functions.config(); | |
const auth = { | |
username: env.elasticsearch.username, | |
password: env.elasticsearch.password, | |
}; |