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
| $mat-lt-sm: "(max-width: 599px)"; | |
| $mat-lt-md: "(max-width: 959px)"; | |
| $mat-lt-lg: "(max-width: 1279px)"; | |
| $mat-lt-xl: "(max-width: 1919px)"; | |
| $mat-gt-xs: "(min-width: 600px)"; | |
| $mat-gt-sm: "(min-width: 960px)"; | |
| $mat-gt-md: "(min-width: 1280px)"; | |
| $mat-gt-xl: "(min-width: 1920px)"; | |
| $mat-xs: $mat-lt-sm; | |
| $mat-sm: $mat-gt-xs and $mat-lt-md; |
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, DebugElement} from '@angular/core'; | |
| import {ComponentFixture, TestBed} from '@angular/core/testing'; | |
| import {By} from '@angular/platform-browser'; | |
| import {ObserveDirective} from './observe.directive'; | |
| import {BehaviorSubject, Observable, of, throwError} from 'rxjs'; | |
| @Component({ | |
| selector: 'test-component', | |
| template: ` | |
| <span id="next-value" *observe="value$ as value; before loading; error error;"> |
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 type Matcher<T> = (query: string) => T[]; | |
| export type ValueProject<T> = (target: T) => Array<string | number>; | |
| export type MatcherFactory = <T>(targets: T[], project: ValueProject<T>) => Matcher<T>; | |
| export const defaultProject = <T>(target: T) => Object.values(target); | |
| const isMatchable = prop => typeof prop == 'number' || typeof prop == 'string' | |
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 { join, dirname } = require('path') | |
| const sharp = require('sharp') | |
| const { Storage } = require('@google-cloud/storage') | |
| const { promisify } = require('util') | |
| const pump = promisify(require('pump')) | |
| const gcs = new Storage() | |
| const SIZE = 128 | |
| const PREFIX = 'thumb@' |
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 {filter, map, shareReplay, catchError} from 'rxjs/operators' | |
| import {Observable, Subject, throwError, defer} from 'rxjs' | |
| import {Option} from 'fp-ts/lib/Option' | |
| import {HttpErrorResponse} from '@angular/common/http' | |
| import {HttpStatus} from 'http-status-codes' | |
| /** | |
| * Deserializes plain object to class instance. | |
| * | |
| * @param ClassType class to instantiate |
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 { Observable, throwError } from 'rxjs' | |
| import { catchError } from 'rxjs/operators' | |
| import { HttpErrorResponse } from '@angular/common/http' | |
| export const throwForCodes = (codeErrors: Array<[number, () => Error]>) => { | |
| const mappedCodeErrors = new Map(codeErrors) | |
| return <T>(source: Observable<T>) => | |
| source.pipe(catchError(error => { | |
| if (error instanceof HttpErrorResponse) { | |
| const mappedErrorFn = mappedCodeErrors.get(error.status) |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="__PACKAGE__" | |
| android:versionCode="1" | |
| android:versionName="1.0"> | |
| <supports-screens | |
| android:smallScreens="true" | |
| android:normalScreens="true" | |
| android:largeScreens="true" |