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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> |
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
machine: | |
node: | |
version: 6.9.5 | |
dependencies: | |
pre: | |
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc' | |
test: | |
override: | |
- rm -rf $CIRCLE_ARTIFACTS/coverage |
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 { TestBed, inject } from '@angular/core/testing'; | |
import { ConvertStatusPipe } from './convert-status.pipe'; | |
import { ConversationStatus } from '@remedy/models'; | |
import { LoggingService } from '../core/services/logging.service'; | |
import { LoggingServiceMock } from './../core/services/logging.service.mock'; | |
describe(`ConvertStatusPipe`, () => { | |
let pipe; |
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
# Search for `analytics` only inside `./src/app` | |
git grep analytics -- "./src/app/*" |
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
<ng-content *ngIf="!optionTemplate"> | |
</ng-content> | |
<ng-container | |
*ngIf="optionTemplate" | |
[ngTemplateOutlet]="optionTemplate" | |
[ngTemplateOutletContext]="{$implicit: option}" | |
></ng-container> |
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
BUILD ERROR | |
ngx-tools/src/jwt-token-managment/reducer.ts(33,7): error TS2536: Type 'keyof C' cannot be used to index type '{ [x: string]: string; }'. | |
ngx-tools/src/jwt-token-managment/utilities/token-extractor.mock.ts(34,10): error TS2416: Property 'extractJwtToken' in type 'TokenExtractorMock<CM>' is not assignable to the same property in base type 'TokenExtractor<ClaimMap>'. | |
Type '<T extends Object | HttpResponse<any>>({ tokenName, isDefaultToken }: ExtractTokenParams<CM>) => ...' is not assignable to type '<T extends Object | HttpResponse<any>>({ tokenName, resetAllOtherTokens, isDefaultToken }: Extrac...'. | |
Types of parameters '__0' and '__0' are incompatible. | |
Type 'ExtractTokenParams<ClaimMap>' is not assignable to type 'ExtractTokenParams<CM>'. | |
Types of property 'tokenName' are incompatible. | |
Type 'string | number' is not assignable to type 'keyof CM'. | |
Type 'string' is not assignable to type 'keyof CM'. | |
ngx-tools/src/jwt-token-managment/utilities/retry-with-escala |
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 { NativeDateAdapter } from '@angular/material/core'; | |
export const TS_DATE_FORMATS = { | |
parse: { | |
dateInput: {month: 'short', year: 'numeric', day: 'numeric'}, | |
}, | |
display: { | |
dateInput: 'input', | |
monthYearLabel: 'inputMonth', |
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
removeByKey(array, params) { | |
array.some(function(item, index) { | |
if (array[index][params.key] === params.value) { | |
array.splice(index, 1); | |
return true; | |
} | |
return false; | |
}); | |
return array; | |
} |
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
// <a rel="smoothscroll" href="#foo">got to foo</a> | |
// <div id="foo">Foo content</div> | |
$(function () { | |
$('a[rel=smoothscroll]').click(function( event ) { | |
var location = window.location, | |
hash = $(this).attr('href') | |
; | |
$('html, body') | |
.stop() | |
.animate({scrollTop: $(hash).offset().top}, 800, function () { |
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 { Action, Store } from '@ngrx/store'; | |
import { Subject } from 'rxjs/Subject'; | |
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; | |
/** | |
* Standard mockstore that can be used in unittests to mock a @ngrx/store | |
* | |
* https://github.com/ngrx/store/issues/128#issuecomment-316654714 | |
*/ |