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
/* | |
This class provides helpers for easy and typesafe mocking with spies | |
*/ | |
// get keys of type | |
export declare function keys<T extends object>(): Array<keyof T>; | |
export class SpyHelper { | |
/* |
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
export class GenericAction<ActionType, PayloadType> { | |
constructor(type: ActionType, payload?: PayloadType) { | |
this.type = type; | |
this.payload = payload; | |
} | |
type: ActionType; | |
payload?: PayloadType; |
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
"husky": { | |
"hooks": { | |
"pre-commit": "concurrently --kill-others \"npm run lint\" \"npm run test\" \"npm run build\"", | |
"pre-push": "git pull origin master" | |
} | |
} |
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
{ | |
"gitlens.advanced.messages": { | |
"suppressFileNotUnderSourceControlWarning": true, | |
"suppressShowKeyBindingsNotice": true | |
}, | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": true | |
}, | |
"workbench.editor.enablePreview": false, | |
"tslint.autoFixOnSave": true, |
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
<app-root> | |
<div class="container"> | |
<div class="row"> | |
<div id="loader"> | |
<div class="dot"></div> | |
<div class="dot"></div> | |
<div class="dot"></div> | |
<div class="dot"></div> | |
<div class="dot"></div> | |
<div class="dot"></div> |
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
/* You can add global styles to this file, and also import other style files */ | |
/* Bootstrap */ | |
@import '~bootstrap/scss/bootstrap'; | |
@import "styles/spinner"; | |
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 { Overlay, OverlayRef } from '@angular/cdk/overlay'; | |
import { ComponentPortal } from '@angular/cdk/portal'; | |
import { Injectable } from '@angular/core'; | |
import { SpinnerOverlayComponent } from '@app/core/spinner-overlay/spinner-overlay.component'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class SpinnerOverlayService { | |
private overlayRef: OverlayRef = null; |
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="spinner-wrapper"> | |
<app-spinner></app-spinner> | |
</div> |
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
.spinner-wrapper { | |
position: fixed; | |
width: 100%; | |
height: 100%; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
top: 0; | |
left: 0; | |
background-color: rgba(255, 255, 255, 0.5); |
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, Input, OnInit } from '@angular/core'; | |
@Component({ | |
selector: 'app-spinner-overlay', | |
templateUrl: './spinner-overlay.component.html', | |
styleUrls: ['./spinner-overlay.component.scss'] | |
}) | |
export class SpinnerOverlayComponent implements OnInit { | |
@Input() public message: string; | |
constructor() {} |
OlderNewer