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
| @mixin font-size($size, $important: false) { | |
| font-size: $size isImportant($important); | |
| } | |
| @function isImportant($important) { | |
| @if $important { | |
| @return '!important'; | |
| } @else { | |
| @return ''; | |
| } |
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
| name: Releases | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: |
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
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v1 | |
| with: | |
| node-version: '12.x' | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn pack --filename=release.tgz |
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
| name: Releases | |
| on: | |
| push: | |
| branches: [ master ] |
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
| const readline = require('readline'); | |
| const rl = readline.createInterface({ | |
| input: process.stdin, | |
| output: process.stdout | |
| }); | |
| rl.question(`Do a thing? (Y/n) `, answer => { | |
| if (!answer || answer.trim().toLowerCase() === 'y') { | |
| // do something |
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
| @Injectable() | |
| export class TodoEffects { | |
| @Effect() | |
| public fetchListOfTodos$: Observable<void> = this.action$.pipe( | |
| ofType(ActionTypes.FETCH_TODO_LIST), | |
| switchMap(() => | |
| this.todoListService.fetchTodoList().pipe( | |
| map((todos: Todo[]) => { | |
| return { | |
| type: ActionTypes.TODO_LIST_FETCHED, |
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
| @Injectable() | |
| export class TodoEffects { | |
| @Effect() | |
| public fetchListOfTodos$: Observable<void> = this.action$.pipe( | |
| ofType(ActionTypes.FETCH_TODO_LIST), | |
| switchMap(() => this.todoListService.fetchTodoList()), | |
| map((todos: Todo[]) => { | |
| return { | |
| type: ActionTypes.TODO_LIST_FETCHED, | |
| payload: { todos } |
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
| @Injectable() | |
| export class TodoEffects { | |
| @Effect() | |
| public fetchListOfTodos$: Observable<void> = this.action$.pipe( | |
| ofType(ActionTypes.FETCH_TODO_LIST), | |
| switchMap(() => this.todoListService.fetchTodoList()), | |
| map((todos: Todo[]) => { | |
| return { | |
| type: ActionTypes.TODO_LIST_FETCHED, | |
| payload: { todos } |
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
| @Injectable() | |
| export class AnalyticsEffects { | |
| @Effect({ dispatch: false }) | |
| public routeChange$: Observable<void> = this.action$.pipe( | |
| ofType(ROUTER_NAVIGATION), | |
| map(({ payload }) => { | |
| this.analyticsService.trackPageNavigation(payload); | |
| }) | |
| ); | |
| } |