text stringlengths 10 953k |
|---|
import * as Level from 'level'
/* External Imports */
import { SignedByDB, SignedByDecider } from '@pigi/ovm'
import {
getLogger,
SimpleClient,
DefaultSignatureProvider,
} from '@pigi/core-utils'
import { DB, BaseDB } from '@pigi/core-db'
import { ethers } from 'ethers'
/* Internal Imports */
import { Address, ... |
import { LoadingManager } from './LoadingManager';
/**
* Base class for implementing loaders.
*/
export class Loader {
constructor( manager?: LoadingManager );
crossOrigin: string;
path: string;
resourcePath: string;
requestHeader: { [header: string]: string };
manager: LoadingManager;
/*
load(): void;
... |
export class BitmapTextRenderer extends Renderer {
private mCanvas;
private mContext;
texture: Texture | null;
render(driver: any, session: any): void;
}
import { Renderer } from './Renderer';
import { Texture } from '../textures/Texture'; |
import '@graphql-codegen/testing';
import { plugin } from '../src/index';
import { buildSchema, parse, GraphQLSchema } from 'graphql';
import { validateTs } from '../../typescript/tests/validate';
import { plugin as tsPlugin } from '../../typescript/src';
import { plugin as tsOperationPlugin } from '../../operations/sr... |
import ServerModule from '@gqlapp/module-server-ts';
import schema from './schema.graphql';
import createResolvers from './resolvers';
import resources from './locales';
export default new ServerModule({
schema: [schema],
createResolversFunc: [createResolvers],
localization: [{ ns: 'contact', resources }]
}); |
import { expect } from 'chai';
import * as counter from './';
import { ICounter, ICounterAction } from 'models/counter';
/** Module */
describe('Counter Module', () => {
/** Actions */
describe('Actions', () => {
describe('Increment', () => {
it('has the correct type', () => {
const action: ICou... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { environment } from '../../environments/environment';
import {
// ApiResponse,
ApiResponseQuery,
PageQuery,
} from '../models';
import { Budget } from '../models/budget';
impo... |
import React from 'react';
import { Switch, Route, BrowserRouter } from 'react-router-dom';
import Main from '../pages/Main';
const routes: React.FC = () => {
return (
<BrowserRouter>
<Switch>
<Route path="/" exact component={Main} />
</Switch>
</BrowserRouter>
);
};
export default ro... |
import fs from 'fs-extra';
import path from 'path';
import { exec, ShellString } from 'shelljs';
import { Input } from 'enquirer';
import { PACKAGE_JSON } from '../../shared/constants/package.const';
import { getNpmAuthorName, getTemplatePath } from '../../shared/utils';
export const sortPackageJson = (): ShellString... |
import * as React from 'react';
import { useLaunchListQuery } from '../../generated/graphql';
import LaunchList, { OwnProps } from './LaunchList';
const LaunchListContainer = (props: OwnProps) => {
const { data, error, loading } = useLaunchListQuery();
if (loading) {
return <div>Loading...</div>;
}
if (e... |
import * as tmp from 'tmp';
export async function createTemporaryFile(
extension: string,
temporaryDirectory?: string,
): Promise<{ filePath: string; cleanupCallback: Function }> {
const options: { postfix: string; dir?: string } = { postfix: extension };
if (temporaryDirectory) {
options.dir =... |
export { ManaWhirl } from './mana-whirl'; |
import * as React from 'react';
interface Props {
person: string;
}
export const SayHello: React.FunctionComponent<Props> = (props) => {
const { person } = props;
return (
<h1>
Hello <strong>{person}</strong>
</h1>
);
}; |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import { SortDirection } from '@angular/material/sort';
import { ActivatedRoute } from '@angular/router';
import { Observable } from 'rxjs';
import {
debounceTime,
distinc... |
import { FrameworkConfiguration, PLATFORM } from 'aurelia-framework';
import * as __utils__ from './utils';
export { __utils__ as utils };
export * from './model/model';
export * from './Core';
export * from './view-model';
export * from './logging';
export * from './ui-services';
export function configure(config: Fr... |
/* eslint-disable */
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
Certificate,
_decode_Certificate,
_encode_Certificate,
} from "../AuthenticationFramework/Certificate.ta";
export {
Certificate,
_decode_Certificate,
_encode_Certif... |
import { Component, OnInit } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'about',
templateUrl: 'about.template.html'
})
export class AboutComponent implements OnInit{
constructor() { }
ngOnInit(){}
} |
import { PointerCoordinates, CSS, pointerCoord } from '../../util/dom';
import { ItemReorder, indexForItem, findReorderItem } from '../item/item-reorder';
import { UIEventManager } from '../../util/ui-event-manager';
const AUTO_SCROLL_MARGIN = 60;
const SCROLL_JUMP = 10;
const ITEM_REORDER_ACTIVE = 'reorder-active';
... |
import { StyleApplicatorFactory } from '@napred/ds';
import { RegisteredStyle } from 'react-native';
import applyStyles from './applyStyles';
import { StyleDefinition } from './types';
export const COMPONENT_PATH_PROP_NAME = 'compPath';
export const STRIP_PROPS_PROP_NAME = 'stripProps';
export const STYLERS_PROP_NAME ... |
import {
AvailableCityBuildItemsRegistry,
instance as availableCityBuildItemsRegistryInstance,
} from '@civ-clone/core-city-build/AvailableCityBuildItemsRegistry';
import {
CityBuildRegistry,
instance as cityBuildRegistryInstance,
} from '@civ-clone/core-city-build/CityBuildRegistry';
import {
CityGrowthRegis... |
import {
MultiCloseProcess,
MultiCloseReader,
MultiCloseWriter,
} from "../closers.ts";
import { OutputHandler } from "../proc-group.ts";
import { bytesToTextLines, readerToBytesUnbuffered } from "../utility.ts";
import { MuxAsyncIterator } from "../../deps.ts";
import { ErrorHandler } from "../error-support.ts";... |
import * as React from "react";
type OverscrollBgProps = {
topClassName: string;
bottomClassName: string;
};
const doc = document.documentElement;
const OverscrollBg: React.FC<OverscrollBgProps> = ({
topClassName,
bottomClassName,
}) => {
const prevScrollTopRef = React.useRef<number>();
const handleScro... |
import { Fragment } from 'react'
import { Disclosure, Menu, Transition } from '@headlessui/react'
import { BellIcon, MenuIcon, XIcon } from '@heroicons/react/outline'
import { classNames } from '../helpers/methods'
// MODEL
const user = {
name: 'Sergei Meza',
email: 'contact@sergeimeza.com',
imageUrl:
'https... |
import createApp from './app'
import HmppsAuthClient from './data/hmppsAuthClient'
import TokenStore from './data/tokenStore'
import GraphQLDemoService from './services/graphQLDemoService'
import UserService from './services/userService'
const hmppsAuthClient = new HmppsAuthClient(new TokenStore())
const userService =... |
import { nextTick } from 'vue';
import type { App } from 'vue';
import * as svg from '@element-plus/icons-vue';
import router from '/@/router/index';
import { store } from '/@/store/index';
import { i18n } from '/@/i18n/index';
import { Local } from '/@/utils/storage';
import SvgIcon from '/@/components/svgIcon/index.v... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {readFileSync, writeFileSync} from 'fs';
import {dirname, join} from 'path';
import * as shx from 'shelljs';
i... |
import React from 'react';
export interface Props {
className?: string;
children?: React.ReactNode;
}
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
export default _default; |
/*
* @author Vlad Stirbu
* @license MIT
*
* Copyright © 2014-2020
*/
import { FsmError } from './fsm-error';
import { clone, mapValues, includes, toArray, assign } from 'lodash';
import { EventEmitter } from 'events';
import { v4 } from 'uuid';
import * as stampit from 'stampit';
const defaults = (...args) =>
... |
export { default as debug } from "./debug";
export { default as getExistFile } from "./getExistFile";
export { default as formatReglikeObject } from "./formatReglikeObject";
export { default as formatNullStringToList } from "./formatNullStringToList";
export { default as getDefaultESBuildTarget } from "./getDefaultESBu... |
import { ValidationResult } from './result.model';
interface FieldValidatorArgs<CustomArgs> {
value: any;
values?: any;
customArgs?: CustomArgs;
message?: string | string[];
}
/**
* **Arguments**
* - fieldValidatorArgs: We pass here information like id of the field to validate, actual value, values and cus... |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" {...props}>
<path d="M0 96c0-35.35 28.65-64 64-64h512c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V96zm512 208h64... |
import * as Lint from 'tslint';
import * as ts from 'typescript';
import { NgWalker } from './angular/ngWalker';
import * as ast from '@angular/compiler';
import { BasicTemplateAstVisitor } from './angular/templates/basicTemplateAstVisitor';
import { ExpTypes } from './angular/expressionTypes';
import { Config } from '... |
export function gcd(a: number, b: number): number {
while(a != b) {
if(a > b) {
a -= b;
} else {
b -= a;
}
}
return b;
}
export function lcm(a: number, b: number): number {
return (a*b) / gcd(a, b);
} |
export { default } from './index.vue'
export * from './useFullScreenExtend' |
import React, { useEffect, useState, ChangeEvent, FormEvent } from 'react';
import { Link, useHistory } from 'react-router-dom';
import { FiArrowLeft } from 'react-icons/fi';
import { Map, TileLayer, Marker } from 'react-leaflet';
import axios from 'axios';
import { LeafletMouseEvent } from 'leaflet';
import api from '... |
export * from './Button';
export * from './Button.types';
export * from './renderButton';
export * from './useButton';
export * from './useButtonStyles';
//# sourceMappingURL=index.d.ts.map |
import { Observable } from 'rxjs/Observable';
import { RequestOptionsArgs, Response } from '@angular/http';
import { LocalStorageService, SessionStorageService } from 'ng2-webstorage';
import { JhiHttpInterceptor } from 'ng-jhipster';
export class AuthInterceptor extends JhiHttpInterceptor {
constructor(
... |
import {Genders} from "../enums/Genders";
export interface UserProfileUpdateRequest {
address: string;
name: string;
lastName: string;
gender: Genders;
latitude: number;
longitude: number;
email: string;
aboutMe: string;
personalId: string;
userName: string;
phoneNumber: str... |
import { useEffect, useState } from "react";
import { getDoubleColorRandomNumbers, getRandomNumbers } from "../utils";
const useRandomNumbers = (type: "lottery" | "doubleColor") => {
const [randomNumbers, setRandomNumbers] = useState<number[]>([]);
useEffect(() => {
if (type === "lottery") {
setRandomNumbers(g... |
import CircularProgress, { CircularProgressProps } from "@material-ui/core/CircularProgress";
import React, { useEffect, useRef, useState } from "react";
import styled from "styled-components";
export interface StreamSpinnerProps extends CircularProgressProps {
onVisible?: () => void;
disable: boolean;
}
expo... |
export type AppTypes = 'facebook' | 'gmail' | 'harmony' | 'hue' | 'ifttt' | 'lifx' | 'nest' |
'smartthings' | 'sms' | 'sonos' | 'tplink' | 'twitter' | 'wemo';
export interface Gesture {
name: string
app: AppTypes
pattern: boolean[]
id: string
}
export const ADD_GESTURE = 'ADD_GESTURE';
export const EDIT_GES... |
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { join } from 'path';
import { AppModule } from './app.module';
import * as compression from 'compression';
import * as helmet from 'helmet';
import { LoggerService } from './cross-cutting/logger/logger... |
import FormManager from './FormManager'
import DatalistInput from './modules/DatalistInput'
import DateInput from './modules/DateInput'
import RepeatInput from './modules/RepeatInput'
import SelectInput from './modules/SelectInput'
import RegexAttribute from './attributes/RegexAttribute'
import IgnoreAttribute from './... |
import {AnyAction} from 'redux';
import {all, call, fork, put, takeEvery} from 'redux-saga/effects';
import {UserActionTypes} from './types';
import {
userFetchManySuccess,
userFetchManyError,
userDeleteManySuccess,
userDeleteManyError,
userFetchSuccess,
userFetchError,
userExportSuccess,
userExportErro... |
import { collect } from '../../src'
describe('unless()', () => {
it('should execute the given callback when the first argument given to the method evaluates to false', () => {
const collection = collect([{ id: 1 }, { id: 2 }, { id: 3 }])
collection.unless(false, (c) => {
c.push({ id: 4 })
})
... |
import { Params, Provider } from './helper';
import { defineScopeProvider, getScope, initProvider, defineProviderToken, coveredScope } from './scope';
export const useProvide = <T extends Provider>(provider: T, initState?: Params<T>) => {
const scope = coveredScope();
defineProviderToken(provider);
defineScopeProv... |
import {Component,Input,Output} from '@angular/core';
import {MdList, MdListItem} from '@angular2-material/list';
@Component({
selector: 'product-line',
providers: [
// ShopService,
// ANGULAR2_GOOGLE_MAPS_PROVIDERS,
],
directives: [
// ANGULAR2_GOOGLE_MAPS_DIRECTIVES,
MdLi... |
export { grubbs } from './grubbs';
export { dixon } from './dixon'; |
import Document, { Head, Main, NextScript } from "next/document";
import * as React from "react";
export default class DefaultDocument extends Document {
public render() {
return (
<html lang="en">
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<... |
import React, {Component} from "react";
import {
Query, Builder, Utils,
//types:
ImmutableTree, Config, BuilderProps, JsonTree, JsonLogicTree
} from "react-awesome-query-builder";
import throttle from "lodash/throttle";
import loadConfig from "./config";
import loadedInitValue from "./init_value";
import loadedI... |
import React, { useState } from 'react'
import {
Modal,
ModalContent,
useDisclosure,
Button,
Box,
Heading,
Flex,
FormControl,
FormLabel,
Input,
Spacer
} from "@chakra-ui/react"
interface Props {
total: number,
}
const CheckoutForm = (props: any) => {
const { total }... |
export type Limiter<T> = (item: T, index: number) => boolean;
export const DEFAULT_LIMITER = <T>(item: T, index: number) => true; |
import { FileContent } from "../discordeno/file_content.ts";
import { Embed } from "../embeds/embed.ts";
import { AllowedMentions } from "./allowed_mentions.ts";
import { Attachment } from "./attachment.ts";
import { MessageComponents } from "./components/message_components.ts";
/** https://discord.com/developers/docs... |
import { inject, bindable, bindingMode, Disposable, BindingEngine, customElement, containerless } from 'aurelia-framework';
@inject(Element, BindingEngine)
@customElement('abt-checkbox-button')
@containerless()
export class BootstrapCheckboxButton {
@bindable({ defaultBindingMode: bindingMode.twoWay }) public val... |
import { getActions, ownerActions, buyActions } from '@/utils/shoppingActions'
describe('GET ACTIONS TEST', (): void => {
it('owner actions', () => {
const actions = getActions(true, false)
expect(actions).to.eql(ownerActions)
})
it('can buy', () => {
const actions = getActions(false, true)
expec... |
declare module "@coreui/coreui";
declare module "@coreui/react";
declare module "@coreui/coreui-plugin-chartjs-custom-tooltips";
declare module "@coreui/icons";
declare module "@flag-icon-css";
declare module "@font-awesome";
declare module "@simple-line-icons";
declare module "js-object-validation";
declare module "re... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... |
import colors from "./colors"
// my grommet theme config
export const myTheme = {
global: {
font: {
family: "Helvetica",
},
colors: {
...colors
},
},
} |
import {StaticReflector, StaticReflectorHost, StaticSymbol} from '@angular/compiler-cli/src/static_reflector';
import {animate, group, keyframes, sequence, state, style, transition, trigger} from '@angular/core';
import {beforeEach, ddescribe, describe, expect, iit, it} from '@angular/core/testing/testing_internal';
im... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {connect} from 'react-redux';
import {ActionCreatorsMapObject, bindActionCreators, Dispatch} from 'redux';
import {getLicenseConfig} from 'mattermost-redux/actions/general';
import {StatusOK} from 'm... |
export namespace DataUtils {
function toHalfFloat(val: number): number;
} |
/** Usable border radius */
export const borderRadius = {
small : 3,
medium: 5,
large : 8
}; |
import katex from 'katex/dist/katex';
import AsciiMathParser from 'asciimath2tex';
const parser = new AsciiMathParser();
// ″
export function math(code: string, setter: (string) => void) {
var segments = code.split('`');
if (segments.length % 2 === 1)
segments.push('');
let buffer = '';
for (let i=0; i <... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { experimental, virtualFs } from '@angular-devkit/core';
import { Observable } from 'rxjs';
export declare cla... |
import { TestBed } from '@angular/core/testing';
import { NgsHoverPreloadService } from './ngs-hover-preload.service';
describe('NgsHoverPreloadService', () => {
let service: NgsHoverPreloadService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(NgsHoverPreloadService);
... |
import { DiscordClientProvider, On, Once } from '@discord-nestjs/core';
import { Injectable, Logger } from '@nestjs/common';
import { Interaction } from 'discord.js';
import * as mongo from 'mongodb';
import { InjectDb } from 'nest-mongodb';
@Injectable()
export class BotGateway {
private readonly logger = new Logg... |
type Push<T, U> = any |
import * as React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import Listevisning from './listevisning/ListeVisning';
import Oppgavevisning from './oppgave-visning/OppgaveVisning';
import DokumentVisningSide from './dokument-visning/v2/DokumentVarselVisningSide';
import Traader from '... |
import { expect } from 'chai';
import vilkarType from '@fpsak-frontend/kodeverk/src/vilkarType';
import vilkarUtfallType from '@fpsak-frontend/kodeverk/src/vilkarUtfallType';
import klageVurdering from '@fpsak-frontend/kodeverk/src/klageVurdering';
import { hasIkkeOppfyltSoknadsfristvilkar, hasKlageVurderingSomIkkeErAv... |
export declare type GeneratorPaths = {
outputPath: string;
generatorPath: string;
isNode?: boolean;
};
export declare type GeneratorResolver = (baseDir: string, version?: string) => Promise<GeneratorPaths>;
export declare type PredefinedGeneratorResolvers = {
[generatorName: string]: GeneratorResolver;
... |
import { MdiReactIconComponentType } from './dist/typings';
declare const TimerOffIcon: MdiReactIconComponentType;
export default TimerOffIcon; |
export const PLATFORM_NAME = 'Kodi';
export const PLUGIN_NAME = 'homebridge-kodi'; |
import { WSChatMessageUpdated } from '@guildedjs/guilded-api-typings';
import type { Client } from '../../structures/Client';
import { PartialMessage } from '../../structures/Message';
import { events } from '../../typings';
import Event from './Event';
export default class ChatMessageUpdatedEvent extends Event {
... |
import { TAB_BORDER } from '../tab';
import { registerColor } from '../../color-registry';
import { localize } from '@opensumi/ide-core-common';
import { foreground } from '../base';
export const ktEditorBreadcrumbBorderDown = registerColor(
'kt.editorBreadcrumb.borderDown',
{
dark: '#2C3033',
light: '#F2F... |
import * as THREE from 'three';
let planes: any[] = [];
export class IFCRaycaster {
private camera: THREE.Camera;
private ifcModels: THREE.Object3D[];
private raycaster: THREE.Raycaster;
private canvas: HTMLCanvasElement;
private renderer: THREE.WebGLRenderer;
constructor(ifcModels: THREE.Object3D[], cam... |
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
/**
* Default Storybook 3D scene wrapper includes light, camera, orbit control, Z axus up, grid and axis helper.
* Such template allows to focus on storybook inputs/knobs and actions testing.
*
* @param content content template
*/
export const performanceSceneWrapper = (content: string) => `
<atft-orbit-controls s... |
export declare function getRepos(registryBase: string, username?: string, password?: string, pageSize?: number, maxPages?: number, options?: any): Promise<string[]>; |
import { CSSProperties } from 'react'
type Props = {
children: React.ReactNode
href: string
newTab?: boolean
style?: CSSProperties
className?: string
ariaLabel?: string
}
function ExternalLink({
children,
href,
newTab = true,
style = {},
className = '',
ariaLabel,
}: Props) {
return (
<a... |
/* global cy */
import React from "react";
import ProfilePage from "./ProfilePage";
import { haveUserLogged } from "../_helpers/precondition.helper";
import { userMock } from "../_test/test.data.helper";
import { mountVrtComponent } from "../_test/test.moun.helper";
describe("Profile page", () => {
before(() => {
... |
// Avatar mixin
import {config} from '../config';
import {rem} from '@barlus/styles';
export const avatarBase = (size = config.unit8) => ({
fontSize: rem(size / 2),
height: rem(size),
width: rem(size),
}); |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-inventory-home-hm',
templateUrl: './inventory-home-hm.page.html',
styleUrls: ['./inventory-home-hm.page.scss'],
})
export class InventoryHomeHmPage implements OnInit {
constructor(private r... |
import { ContainerTemplate } from '@blueriq/core/testing';
import { ContainerEmptyComponentMatcher } from './container.empty.component-matcher';
describe('ContainerEmptyComponentMatcher', () => {
const containerComponentMatcher = new ContainerEmptyComponentMatcher();
it('should match on empty container', () => {... |
import 'reflect-metadata';
const DI_IMPORTS_SYMBOL = Symbol('di:imports')
const DI_PROVIDERS_SYMBOL = Symbol('di:providers')
export interface Type<T=any> extends Function {
new (...args: Array<any>): T;
}
const moduleInstances: Map<any, any> = new Map();
export function Injectable(): ClassDecorator {
return (ta... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 Daimler TSS GmbH
import { interfaces } from 'inversify';
import 'reflect-metadata';
import { IDiContainer } from '../..';
export default function inject(serviceId?: string | symbol | interfaces.Newable<{}>) {
return (target: any, propertyKey: string) => {
Ob... |
import { style } from '@vanilla-extract/css'
import { theme } from '@island.is/island-ui/theme'
export const tablePadding = style({
paddingRight: theme.spacing[9],
paddingTop: theme.spacing[2],
paddingBottom: theme.spacing[2],
})
export const link = style({
transition: 'background-color ease 250ms',
borderR... |
import {Component} from '@angular/core';
import {MatDialog} from '@angular/material/dialog';
import {MatSnackBar} from '@angular/material/snack-bar';
import {Store} from '@ngrx/store';
import {CaptureProfileOptions, CaptureProfileResponse} from 'org_xprof/frontend/app/common/interfaces/capture_profile';
import {DataSer... |
import Button from "@material-ui/core/Button";
import ClickAwayListener from "@material-ui/core/ClickAwayListener";
import Grow from "@material-ui/core/Grow";
import IconButton from "@material-ui/core/IconButton";
import Paper from "@material-ui/core/Paper";
import Popper from "@material-ui/core/Popper";
import {
cre... |
export type PlatformUnion = 'pc' | 'psn' | 'xbl';
export type OverwatchStatsTypeUnion = 'competitiveStats' | 'quickPlayStats';
export interface CareerStats extends Record<string, HeroStats> {
allHeroes: HeroStats;
}
export type TopHeroes = Record<string, TopHeroStats>;
export interface TopHero {
hero: string;
tim... |
import { DataBrewClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataBrewClient";
import { CreateDatasetRequest, CreateDatasetResponse } from "../models/models_0";
import {
deserializeAws_restJson1CreateDatasetCommand,
serializeAws_restJson1CreateDatasetCommand,
} from "../protocols/Aws_restJ... |
import { ipcRenderer, remote } from 'electron'
import { pathExists } from 'fs-extra'
import { escape } from 'querystring'
import {
AccountsStore,
CloningRepositoriesStore,
GitHubUserStore,
GitStore,
IssuesStore,
PullRequestStore,
RepositoriesStore,
SignInStore,
} from '.'
import { Account } from '../../... |
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { customElement, property, state } from "lit/decorators";
import { styleMap } from "lit/directives/style-map";
import parseAspectRatio from "../../../common/util/parse-aspect-ratio";
import "../../../components/ha-card";
import "../../.... |
import { Request, Response, NextFunction } from 'express';
import { verify } from 'jsonwebtoken';
import AppError from '../../../../../shared/errors/AppError';
import authConfig from '../../../../../config/auth';
interface ITokenPayload {
iat: number;
exp: number;
sub: string;
}
export default function ensureA... |
import type { Instruction as ApiInstruction } from "../../api/instruction";
import type { PacmanCommand } from "../pacman";
export namespace Pacman {
export interface Options {
jsonOutputFilePaths: string[]
}
export type PluginName = "Pacman";
// eslint-disable-next-line @typescript-eslint/n... |
import {Inject, Injectable} from '@angular/core';
import { HttpClient } from '@angular/common/http';
import {Token, BalanceItem, Result, WINDOW, User} from '@/models';
import { Observable } from 'rxjs/Observable';
import { BehaviorSubject } from 'rxjs';
import {EnvService} from '@/services';
@Injectable()
export class... |
import {RouterStateSerializer} from '@ngrx/router-store';
import {Params, RouterStateSnapshot} from '@angular/router';
export interface RouterStateUrl {
url: string;
params: Params;
queryParams: Params;
}
export class SimpleRouterStateSerializer implements RouterStateSerializer<RouterStateUrl> {
serialize(rou... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GoalsComponent } from './goals.component';
describe('GoalsComponent', () => {
let component: GoalsComponent;
let fixture: ComponentFixture<GoalsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations... |
import withStatusCode from 'lib/server/withStatusCode';
import type { PublicUser } from 'lib/client/users';
import { getPublicUser } from 'lib/server/users';
import { connection } from 'lib/server/db';
import Label from 'components/Label';
import { Field } from 'formik';
import Row from 'components/Row';
import { useRo... |
import { formatDate } from '@angular/common';
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Post } from 'src/app/class/post';
import { environment } from 'src/environments/environment';
@Injectable({
providedIn: 'root'
})
export class PostService {
constru... |
let data;
const colors = ['#292D32', '#F15A69'];
function setup() {
p6_CreateCanvas();
noLoop();
}
function windowResized() {
p6_ResizeCanvas();
}
function preload() {
let url = 'https://api.jsonbin.io/b/621e98ad7caf5d67835cdb18';
data = loadJSON(url);
}
function draw() {
background(255, 250... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.