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 function flatten<T>(array: T[], depth?: number): Generator<T>; | |
export function flatten<T>(array: T[][], depth?: number): Generator<T>; | |
export function flatten<T>(array: T[][][], depth?: number): Generator<T>; | |
export function flatten<T>(array: T[][][][], depth?: number): Generator<T>; | |
export function flatten<T>(array: T[][][][][], depth?: number): Generator<T>; | |
export function flatten<T>(array: T[][][][][][][], depth?: number): Generator<T>; | |
export function flatten<T>(array: T[][][][][][][][], depth?: number): Generator<T>; | |
export function flatten<T>(array: T[][][][][][][][][], depth?: number): Generator<T>; | |
export function flatten<T>(array: T[][][][][][][][][][], depth?: number): Generator<T>; | |
export function flatten<T>(array: T[][][][][][][][][][][], depth?: number): Generator<T>; |
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 function Reader<T>(...arg: ObjectType<T>[]): MethodDecorator { | |
// return ( | |
// target: object, | |
// propertyKey: string | symbol, | |
// descriptor: TypedPropertyDescriptor<any> | |
// ) => { | |
// const method = descriptor.value; | |
// descriptor.value = function(args: unknown[]) { | |
// args = args || []; |
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
type ObjectType<T> = new (...args: unknown[]) => T; | |
const C = new Map(); | |
const ascii = (a: string) => a.charCodeAt(0); | |
const toHashKey = <T>(c: ObjectType<T>) => | |
`${c}` | |
.split('') | |
.map(ascii) |
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 { CoreModule, Module, Controller, Query, Type, GraphQLObjectType, GraphQLString, GraphQLFloat, GraphQLInt } from "@gapi/core"; | |
import { VoyagerModule } from "@gapi/voyager"; | |
import { Neo4JModule, graphRequest } from "@rxdi/neo4j"; | |
import { makeAugmentedSchema } from "neo4j-graphql-js"; | |
import { mergeSchemas } from "graphql-tools"; | |
const typeDefs = ` | |
type Movie { | |
title: String | |
year: Int |
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
<script | |
type="text/javascript" | |
src="https://rawcdn.githack.com/rxdi/graphql-webcomponent/dd8686a81f88ba481d3b4d22d2459bfcbdcff9ed/dist/regular/0.0.15.js" | |
></script> | |
<setup-graphql | |
uri="https://countries.trevorblades.com/" | |
pubsub="wss://pubsub.youvolio.com/subscriptions" | |
></setup-graphql> |
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
<script src="./index.ts"></script> | |
<div id="app"></div> | |
<!-- State management --> | |
<script> | |
const APP_STATE = 'state'; | |
const INITIAL_STATE = { clicked: true }; | |
const getState = () => Container.get(APP_STATE).asObservable() |
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
<script src="https://ipfs.io/ipfs/QmfXGKAeDwVZF9THVCKtYRjcNrhBG6iuBStXrNoBRGimFp/index.js"></script> | |
<div id="app"></div> | |
<!-- State management --> | |
<script> | |
const APP_STATE = 'state'; | |
const INITIAL_STATE = { clicked: true }; | |
const getState = () => Container.get(APP_STATE).asObservable() |
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 { html, Component, LitElement, css } from '@rxdi/lit-html'; | |
import RedRock from '@client/assets/images/background/red-rock.png'; | |
import BlueWater from '@client/assets/images/background/blue-water.png'; | |
import Atmosphere from '@client/assets/images/background/plant-with-athmosphear.png'; | |
interface PricingTemplate { | |
title: string; | |
subTitle: string; | |
slogan: string; |
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 { | |
Module, | |
CoreModule, | |
Bootstrap, | |
ON_REQUEST_HANDLER, | |
GRAPHQL_PLUGIN_CONFIG, | |
Container | |
} from '@gapi/core'; | |
import { | |
MicroserviceModule, |
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 { html, Component, LitElement, css, property, async, TemplateResult } from '@rxdi/lit-html'; | |
import { Inject } from '@rxdi/core'; | |
import { map, switchMap } from 'rxjs/operators'; | |
import { combineLatest, of, Observable, isObservable, from } from 'rxjs'; | |
import { ResponsiveService } from '@rxdi/ui-components/services'; | |
/** | |
* @customElement flex-grid | |
*/ | |
@Component({ |