schema {
type
index
reverse
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
" Show a few lines of context around the cursor. Note that this makes the | |
" text scroll if you mouse-click near the start or end of the window. | |
set scrolloff=5 | |
" Do incremental searching. | |
set incsearch | |
" Don't use Ex mode, use Q for formatting. | |
map Q gq |
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
{ | |
"security.workspace.trust.untrustedFiles": "open", | |
"json.maxItemsComputed": 100000, | |
"git.openRepositoryInParentFolders": "never", | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"[typescript]": { | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[json]": { |
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
// Service | |
@Injectable() | |
export class OnDestroyService implements OnDestroy { | |
triggered$ = new Subject() | |
ngOnDestroy() { | |
this.triggered$.next() | |
this.triggered$.complete() | |
} |
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 { Response, ResponseOptions } from '@angular/http'; | |
class ErrorResponse extends Response implements Error { | |
name: any; | |
message: any; | |
} | |
export function mockError(errorResponseOpts: any) { | |
return new ErrorResponse(new ResponseOptions(errorResponseOpts)); | |
}; |
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
@Effect() | |
selectAndLoadStore$: Observable<Action> = this.actions$ | |
.ofType(storeActions.SELECT_AND_LOAD_STORE) | |
.withLatestFrom(this.store.select(ngrx.storeState)) | |
.map(([action, storeState]) => [action.payload, storeState]) | |
.switchMap(([storeName, storeState]) => { | |
const existsInStore = Boolean(storeState.urlNameMap[storeName]); | |
return Observable.if( | |
() => existsInStore, | |
Observable.of(new storeActions.SetSelectedStore(storeName)), |
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
// Tools | |
// File Watchers | |
// Pug/Jade | |
// Watcher Settings - Arguments | |
$FileName$ -O ""{'doctype':'html'}"" |
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 {Store, State} from "@ngrx/store"; | |
import {EmailTemplateState} from "./shared/email-template/ngrx/reducer.email-template"; | |
import {EmailTemplate} from "./shared/email-template/model.email-template"; | |
import {compose} from "@ngrx/core"; | |
import {Observable} from "rxjs"; | |
let styles = require('./communications.sass'); | |
@Component({ | |
selector: 'communications', | |
template: require('./communications.component.jade'), |
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 {Store, State} from "@ngrx/store"; | |
import {EmailTemplateState} from "./shared/email-template/ngrx/reducer.email-template"; | |
import {EmailTemplate} from "./shared/email-template/model.email-template"; | |
import {compose} from "@ngrx/core"; | |
import {Observable} from "rxjs"; | |
let styles = require('./communications.sass'); | |
@Component({ | |
selector: 'communications', | |
template: require('./communications.component.jade'), |
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
let templateUrl: string = require('./date-filter.jade'); | |
require('./date-filters.sass'); | |
// note: to call the on change values you must match this call signature | |
// on-validation-change='vm.validationChange(valid)', | |
// on-date-change='vm.dateChange({toDate: toDate, fromDate: fromDate})', | |
export function dateFilter(): ng.IDirective { | |
return { | |
restrict: 'A', |
NewerOlder