text stringlengths 10 953k |
|---|
import path from 'path'
import { removeDir, copyDirRec, readJSON, writeFolder } from '../utils/path-utils'
// @ts-ignore
import projectJson from '../../uidl-samples/project.json'
import { createVueNuxtGenerator } from '../../../src'
import { ProjectUIDL } from '../../../src/typings/uidl-definitions'
import { ProjectG... |
import moment, { Moment } from 'moment'
interface Variable {
name: string
calc: () => number | string
}
interface ExternalVariable extends Variable {}
interface InternalVariable extends Variable {}
interface CalcVariableDescription {
name: string
lookBehind: number
type: 'current' | 'sum' | 'avg'
}
inter... |
/*
MIT License
Copyright (c) 2020 Looker Data Sciences, 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 rights
to use, copy, modi... |
import { ContactDTO } from 'src/common/dto/contact.dto';
import { CredentialDTO } from 'src/common/dto/credential.dto';
import { Credential } from 'src/common/entities/credential.entity';
export class CredentialMapper {
dtoToEntity(credentialDTO: CredentialDTO): Credential {
return new Credential(credentialDTO.c... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome... |
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { EmailVerificationModalComponent } from '@core/components/email-verification-modal/email-verification-modal.component';
import { RegisterDialogService } from '@core/services/register-dialog.service';
import { UserService } fro... |
export function* rangeGenerator(from: number, to: number) {
let value = from;
while (value < to) {
yield value++;
}
} |
abstract class StringVO {
readonly value: string;
constructor(value: string) {
this.value = value;
}
toString(): string {
return this.value;
}
}
export { StringVO }; |
<TS language="de" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Rechts-Klick um Adresse oder Bezeichnung zu bearbeiten</translation>
</message>
<message>
<source>Create a new address</source>
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About agcCOIN</source>
<translation>Acerca de agcCOIN</translation>
</message>
<message>
<loc... |
import { Injectable } from '@angular/core';
import { CanActivate, Router } from '@angular/router';
import { AuthService } from '../shared/auth.service';
@Injectable({
providedIn: 'root'
})
export class AuthGuard implements CanActivate {
constructor(private authService: AuthService, private router: Router) {}
c... |
import { PlayerError } from '@src/PlayerError';
export interface IData {
paused: boolean;
view: ViewTypes;
visibleControls: boolean;
progressPercentage: number;
bufferedPercentage: number;
volumeBarPercentage: number;
isVolumeControlsOpen: boolean;
isFullscreen: boolean;
isPip: boolean;
pipSupporte... |
import { Writable, writable } from "svelte/store";
export const currentPage: Writable<PrismaPage> = writable('map');
export const changePage = (newPage: PrismaPage) => {
currentPage.set(newPage);
}
export const currentStep: Writable<number> = writable(1); |
import {useTimeAgo} from '@sanity/base/hooks'
import {MenuItem, MenuItemGroup} from '@sanity/base/__legacy/@sanity/components'
import {Chunk} from '@sanity/field/diff'
import {Path} from '@sanity/types'
import {Layer} from '@sanity/ui'
import classNames from 'classnames'
import {negate, upperFirst} from 'lodash'
import... |
import { writeFile } from 'rxline/fs';
import { StaticRenderer } from '@connectv/sdh';
import { PostProcessPlugin } from '@connectv/sdh/transport';
import { CompProcessPlugin } from '@connectv/html';
import { ThemePlugin } from './theme';
/**
*
* A rendering plugin representing an external stylesheet containing st... |
import { CreateDetalleDto } from './create-detalle.dto';
declare const EditDetalleDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateDetalleDto>>;
export declare class EditDetalleDto extends EditDetalleDto_base {
}
export {}; |
import { Component, OnInit } from '@angular/core';
import { Paciente } from 'app/models/pacientes';
import { MinsaService } from 'app/services/minsa.service';
@Component({
selector: 'app-landing',
templateUrl: './landing.component.html',
styleUrls: ['./landing.component.scss']
})
export class LandingCompo... |
import React from 'react';
import App from './App';
import Provider from './Provider';
export default () => (
<Provider>
<App />
</Provider>
); |
/**
* @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 {TmplAstBoundEvent, TmplAstNode, TmplAstRecursiveVisitor} from '@angular/compiler';
import * as ts from 'types... |
/// <reference types="react" />
import { ViewStyle } from "react-native";
import AbstractChart, { AbstractChartProps } from "./AbstractChart";
export interface PieChartProps extends AbstractChartProps {
totalValue?: string;
data: Array<any>;
width: number;
height: number;
accessor: string;
backgroundColor: ... |
export class User {
id: number;
name: string;
username: string;
email: string;
phone: number;
website: string;
} |
// This module does not really exist.
// This is just to get `export as namespace fabric;` to work and to be re-exportable from `index.d.ts`.
export as namespace fabric;
export const isLikelyNode: boolean;
export const isTouchSupported: boolean;
export const version: string;
export const iMatrix: number[];
export let... |
/**
* @license
* Copyright 2022 Dynatrace LLC
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
import { Controller, Get, Res } from '@nestjs/common';
import { AppService } from './app.service';
import { Response } from 'express';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
getHello(@Res() res: Response): void {
return this.appService.getHe... |
import * as express from 'express';
import * as bodyParser from 'body-parser';
import * as cors from 'cors';
import * as tmp from 'tmp';
import * as request from 'request';
import * as NodeCache from 'node-cache';
import * as shortid from 'shortid';
import * as fs from 'fs';
import * as HttpStatus from 'http-status-cod... |
export {
SkyTokensComponent
} from '@skyux/indicators/modules/tokens/tokens.component'; |
export * as actionCreators from "./action-creators";
export * from "./store";
export * from "./reducers/index"; |
export const fTransactionRequest = {
nonce: 6,
gasPrice: '0x012a05f200',
gasLimit: '0x5208',
to: '0xB2BB2b958aFA2e96dAb3F3Ce7162B87dAea39017',
value: '0x2386f26fc10000',
data: '0x',
chainId: 3
};
export const fTransactionRequestEIP1559 = {
nonce: 6,
maxFeePerGas: '0x4a817c800',
maxPriorityFeePerGas... |
import { Options } from "./options";
import { Instance, FlatpickrFn } from "./instance";
declare global {
interface HTMLElement {
flatpickr: (config?: Options) => Instance | Instance[];
_flatpickr?: Instance;
}
interface NodeList {
flatpickr: (config?: Options) => Instance | Instanc... |
import { homedir } from 'os'
import { resolve } from 'path'
const humanizePath = (path: string) => {
const resolved: string = resolve(path)
const _homedir = homedir()
if (resolved.indexOf(_homedir) === 0) {
return `~${resolved.substr(_homedir.length)}`
}
return resolved
}
export default humanizePath |
import { ProjectComponentDetectorFactory, ProjectComponentContextFactory } from '../../types';
import { IProjectComponentDetector } from '../../detectors/IProjectComponentDetector';
import { LanguageAtPath, ProgrammingLanguage, ProjectComponent } from '../../model';
import { ProjectComponentContext } from '../projectCo... |
/*
* Public API Surface of dot-env-helper
*/
export * from './lib/dot-env-helper'; |
import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import { PagesComponent } from './pages.component';
import { DashboardComponent } from './dashboard/dashboard.component';
const routes: Routes = [{
path: '',
component: PagesComponent,
children: [{
path: 'dashb... |
import React from 'react';
import { resolveComponent } from '../../utils/resolveComponent';
import { QueryMethods } from '../query';
import {
rootNode,
card,
primaryButton,
secondaryButton,
documentWithCardState,
} from '../../tests/fixtures';
import { parseNodeFromJSX } from '../../utils/parseNodeFromJSX';
i... |
import * as React from 'react';
import { action } from '@/utils/action';
import Dialog from '../../../Dialog';
import { Paragraph } from '@/index';
import { updateKnob } from '@/utils/storybookEventEmitter';
export const small = () => {
const open = true;
const onClose = () => {
updateKnob('open', false);
}... |
import { NgModule } from "@angular/core";
import { DocumentRef } from "./document-ref";
import { WindowRef } from "./window-ref";
@NgModule({
providers: [DocumentRef, WindowRef]
})
export class BrowserGlobalsModule { }
export { DocumentRef, WindowRef }; |
/*
* @Author: Innei
* @Date: 2020-05-12 15:52:01
* @LastEditTime: 2021-01-15 14:54:28
* @LastEditors: Innei
* @FilePath: /server/apps/server/src/app.module.ts
* @MIT
*/
import { CommonModule } from '@libs/common'
import { DbModule } from '@libs/db'
import {
MiddlewareConsumer,
Module,
NestModule,
Provid... |
import { Module } from '@nestjs/common'
import { ConfigService } from './config.service'
@Module({
providers: [
{
provide: ConfigService,
useValue: new ConfigService(
`${process.env.NODE_ENV || 'development'}.env`,
),
},
],
exports: [ConfigService],
})
export class ConfigModule ... |
/********************************************************************************
* Copyright (C) 2019 Red Hat, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*... |
import { useCallback, useState } from 'react';
import { Calculator } from 'utils-lib';
import logo from './logo.svg';
import './App.css';
function App() {
const [count, setCount] = useState(0);
const handleClick = useCallback(() => {
setCount(Calculator.Add(count, 1));
}, [count]);
return (
<div cla... |
import { _UnmarshalledTimeSeriesServiceStatistics } from "./_TimeSeriesServiceStatistics";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetTimeSeriesServiceStatisticsOutput shape
*/
export interface GetTimeSeriesServiceStatisticsOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>The collecti... |
import React, { Component } from "react";
import Post from "./Post";
import { RouteComponentProps } from "react-router-dom";
import GlobalContext from "../contexts/GlobalContext";
type PostContainerState = {
postData: any;
};
export type PostContainerParams = {
postId: string;
};
export default class PostContain... |
import { Component, OnInit } from '@angular/core';
import { JobService } from '../job.service';
import { SubscriptionComponent } from '../../infrastructure/subscription-component';
import { trigger, transition, stagger, animate, keyframes, style, query } from '@angular/animations';
import { Job } from '../job';
@Compo... |
import { saveAs } from 'file-saver';
import { isNotDefined } from '@togglecorp/fujs';
// FIXME: move this somewhere nice
interface Row {
[key: string]: string | number | boolean | undefined | null;
}
export function convertTableData<T>(
data: T[] | undefined | null,
columns: {
// id: string;
... |
/*!
* Copyright(c) Rafael Dias
* MIT Licensed
*/
export interface IComunicacaoService {
enviarEmailBoasVindas(detinatario: string): void;
enviarRecuperacaoSenha(detinatario: string): void;
enviarJustificativaContaNaoCriada(detinatario: string, justificativa: string): void;
} |
import mongoose from "mongoose";
import { Db } from "mongodb";
import { database_url } from "./config";
export default async function initialize(): Promise<Db> {
if (database_url == undefined) {
return new Promise((_, reject) => {
reject("Database URL not specified!");
});
}
const connection = awa... |
import Sugar from 'sugar';
import { inlineRefsToChildren } from '../../components/UnigraphCore/InlineSearchPopup';
import { ATodoList, setHours, getMinDate, getMaxDate } from './utils';
export const parseTodoObject: (arg0: string, refs?: any[]) => ATodoList = (
todoString: string,
refs?: any[],
) => {
// T... |
import { Icon, Link as ChakraLink, Text, LinkProps } from "@chakra-ui/react"
import React, { ElementType } from "react";
import { ActiveLink } from "../ActiveLink";
interface NavLinkProps extends LinkProps {
children: string;
href: string;
icon: ElementType;
}
export function NavLink({children, icon, href, ...... |
import Browser from '@robot/shared/modules/browser/infra/puppeteer/models/Browser';
import Page from '@robot/shared/modules/browser/infra/puppeteer/models/Page';
import PuppeteerBrowserProvider from '@robot/shared/modules/browser/providers/BrowserProvider/implementations/PuppeteerBrowserProvider';
import ixcConfig fro... |
import { IconButton, IStackTokens, Label, Stack } from '@fluentui/react';
import { ArrowConfig } from 'konva/lib/shapes/Arrow';
import * as React from 'react';
import { Arrow, Group, Rect } from 'react-konva';
import icon from '../assets/marker/arrow.png';
import { CompactColorPicker } from '../CompactColorPicker';
imp... |
import { loader } from 'webpack'
import { join } from 'path'
import { parse } from 'querystring'
import { BUILD_MANIFEST, REACT_LOADABLE_MANIFEST } from 'next-server/constants'
import { isDynamicRoute } from 'next-server/dist/lib/router/utils'
export type ServerlessLoaderQuery = {
page: string
distDir: string
ab... |
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { lt } from 'semver';
import { throttleTime } from 'rxjs/operators';
import { environ... |
import Connection from '../../../../connection';
import Parent from '../../../../parent/parent';
import Parameter from '../../../../../dist/table/column/parameter';
import {Connection as OrmConnection} from 'typeorm';
import Entity from '../../../../../dist/table/entity';
import Standard from '../../../../../dist/table... |
import { Exception } from '@adonisjs/core/build/standalone'
/**
* Unable to create container
*/
export class CannotCreateContainerException extends Exception {
/* tslint:disable:no-unused-variable */
private containerName: string
/* tslint:disable:no-unused-variable */
private original: any
public static i... |
import { SevereIrritationEmoji, SevereIrritationEmojiSecondary } from './svgs';
import { IconProps, useIcon } from '../../shared-components/icon';
export default (props: IconProps) =>
useIcon(SevereIrritationEmoji, SevereIrritationEmojiSecondary, props); |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../../types/input";
import * as outputs from "../../types/output";
import * as utilities from "..... |
/* tslint:disable:component-class-suffix */
// #docregion imports
import { Component, Input, OnChanges } from '@angular/core';
import { FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Address, Hero, states } from '../data-model';
// #enddocregion imports
@Component({
... |
import axios from "axios";
import {Deal, Market, Order, Token} from "./interfaces";
import * as fs from "fs";
import {SetFormat, SheetsService} from "./sheets";
import {getMarketCapTable} from "./market-cap";
import {getBacklogTable} from "./backlog";
let waxToken: Token
// usually game master contracts
const SUPPLY_... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About INPERIA</source>
<translation>Über INPERIA</translation>
</message>
<message>
<location... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../../types/input";
import * as outputs from "../../types/output";
import * as utilities from "..... |
import { Component, OnInit, Input, OnChanges } from '@angular/core';
import { state, style, transition, animate, trigger, sequence, keyframes } from '@angular/animations';
@Component({
selector: 'app-toaster',
templateUrl: './toaster.component.html',
styleUrls: ['./toaster.component.less'],
animations: [
t... |
/**
* @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 'reflect-metadata';
import {ElementRef, QueryList, ΔsetComponentScope as setComponentScope} from '@angular/co... |
import * as execa from 'execa';
import {IssueCreate, IssueUpdate} from 'issues/types';
import {getOperations, getOrigin} from '../helpers';
describe('getOrigin()', () => {
const execaSpy = jest.spyOn(execa, 'default');
test('should return the origin', async () => {
const repo = await getOrigin();
expect(r... |
import { Request, Response } from 'express'
class TestController {
public async index (_req: Request, res: Response): Promise<Response> {
return res.json({
message: 'Hello world :)'
})
}
}
const testController = new TestController()
export { testController } |
import React from 'react';
import { Typography } from '@material-ui/core';
import NotInterestedIcon from '@material-ui/icons/NotInterested';
import { Container, Content } from './style';
interface AlertProps {
title: string;
textBody: string;
icon?: boolean;
}
export const Empty = ({ title, textBody, icon = fal... |
import ShapeSetting = SubatomicConfig.ShapeSetting;
import MovementSetting = SubatomicConfig.MovementSetting;
import LinkInteractionSetting = SubatomicConfig.LinkInteractionSetting;
import RepulseInteractionSetting = SubatomicConfig.RepulseInteractionSetting;
import BubbleInteractionSetting = SubatomicConfig.BubbleInte... |
import {
BeginSectionFragment,
EndSectionFragment,
InlineSectionFragment,
ParentFragment,
ShowFragment,
YieldFragment,
} from '../fragments/section';
import { Context, Fragment, Rule } from "../CompilerInterface";
import { Token } from "../Token";
declare module "../CompilerInterface" {
int... |
const sendMailMock = jest.fn().mockReturnValue(() => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return {} as any;
});
// eslint-disable-next-line import/first
import { NodemailerProvider } from './nodemailer.provider';
jest.mock('nodemailer', () => {
return {
createTransport: jest.fn()... |
import { StorageBlobMiddleware } from ".";
import { Middleware, CloudContext } from "@multicloud/sls-core";
import { AzureContext } from "..";
import { Stream } from "stream";
describe("Storage Queue Middleware", () => {
let middleware: Middleware;
beforeEach(() => {
middleware = StorageBlobMiddleware();
})... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TerminalScrapComponent } from './terminal-scrap.component';
describe('TerminalScrapComponent', () => {
let component: TerminalScrapComponent;
let fixture: ComponentFixture<TerminalScrapComponent>;
beforeEach(async(() => {
Te... |
export default sap.ui.commons.layout.ResponsiveFlowLayoutData; |
import { Test, TestingModule } from '@nestjs/testing';
import { CriptoController } from './cripto.controller';
describe('CriptoController', () => {
let controller: CriptoController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [CriptoController],
... |
import { Typography } from '@material-ui/core';
import * as React from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import App from './App';
import configureStore from './configureStore';
const { persistor, store } = configureStore();
function ReduxRo... |
/* tslint:disable */
/* eslint-disable */
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type routes_FairExhibitorsQueryVariables = {
slug: string;
};
export type routes_FairExhibitorsQueryResponse = {
readonly fair: {
readonly " $fragmentRefs": Fr... |
import { createStandardAction, ActionType } from "typesafe-actions";
import { FilePathInfo } from "../types/FilePathInfo";
import { RequestStatus } from "../../main/sagas/bulkImportSaga";
export const BulkImportActions = {
previewBulkImport: createStandardAction('bulkImport/PREVIEW_BULK_IMPORT')<FilePathInfo>(),
... |
<TS language="pl" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Kliknij prawym przyciskiem myszki w celu edycji adresu lub etykiety</translation>
</message>
<message>
<source>Create a new address... |
// Initial file from https://github.com/rolandstarke/node-cache-manager-fs-hash @ af52d2d
/*!
The MIT License (MIT)
Copyright (c) 2017 Roland Starke
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 Softwar... |
import {
CoreEvents,
CoreState,
EventTypeMap,
MutationState,
MutationStatesSubject,
MutationStateSubjects,
StateBuilder,
StateUpdater,
} from './mutationState'
import { ConfigGenerators, ConfigArguments, ConfigProperties } from './config'
import { ExecutionResult } from 'graphql/execution'
import { Doc... |
import {Base} from '@dyno.gg/dyno-core';
import * as eris from '@dyno.gg/eris';
import * as dyno from 'Dyno';
import * as moment from 'moment-timezone';
import {default as CustomCommands} from './index';
export default class Parser extends Base {
public module: CustomCommands;
private channelRegex: RegExp = new Reg... |
import { IsMongoId, IsNotEmpty } from "class-validator";
export class UserInfoDTO{
@IsNotEmpty()
@IsMongoId()
public _id: string;
@IsNotEmpty()
public firstname: string;
@IsNotEmpty()
public lastname: string;
} |
import { Product } from '../../products/models/product.model';
export interface CartModel {
totalQty? : number;
totalPrice? : number;
shippingCost?: number;
shippingLimit?: number;
shippingType?: string;
items: Product[];
} |
import express from 'express';
import { buildRoutes } from '../builder';
import apiUser from '../../routes/api/meals';
describe('buildRoutes', () => {
it('should apply the given route on the express application', () => {
const app: express.Application = express();
app.get = jest.fn();
buildRoutes(app, [... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';
import { HttpHeaders } from '@angular/common/http';
import { PatientDetail } from '../data/PatientDetails';
import * as Rx from "rxjs/Rx";
import { from, Observable, throwError } from 'rxjs';
import { map, ... |
import React from 'react'
import { Icon, Tooltip } from 'antd'
import { IconProps } from 'antd/lib/icon'
import AppSideMenus from './side-menus.json'
import './app-sidebar.less'
interface SideMenuItem {
key: string
href: string
title: string
icon: string
}
interface State {
activeMenuKey: string
}
export ... |
import React, { useState, ReactNode, PropsWithoutRef } from "react"
import { FormProvider, useForm, UseFormOptions } from "react-hook-form"
import * as z from "zod"
type FormProps<S extends z.ZodType<any, any>> = {
/** All your form fields */
children: ReactNode
/** Text to display in the submit button */
subm... |
import { useState } from 'react'
import { mount } from '@cypress/react'
import { Accordion, AccordionPanel } from '@maker-ui/accordion'
/**
* @component
* Accordion
* AccordionPanel
*
* @tests
* Accordion
* - Render with defaults
* - Prop: `css`
* - Prop: `showSingle`
* - Prop: `icon`
* - Prop: `customIcon`... |
export class Position {
public id: string;
public name: string;
public iconURI: string;
private readonly portrait: string;
public constructor(data: FFB.Protocol.Messages.PositionType) {
this.id = data.positionId;
this.name = data.positionName;
this.iconURI = data.urlIconSet;... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Subject } from 'rxjs';
import { AuthService } from '../auth/auth.service';
import { Duel } from './duel';
import { Player } from './player';
@Injectable()
export class DuelsService {
private headers = { 'Content-... |
/**
* @license
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
export default [
['authentication_login_dialog_title', 'Authentication'],
['authentication_login', 'Login'],
['authentication_logout', 'Logout'],
['authentication_authenticate', 'Authenticate'],
['authentication_request_token', 'Additional authentication is required'],
['authentication_administration_user_c... |
// Type definitions for MQTT
// Project: https://github.com/mqttjs/MQTT.js
// Definitions by: Pekka Leppänen <https://github.com/PekkaPLeppanen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module 'mqtt' {
namespace mqtt {
import R... |
const useDefaultProps = <T extends Record<string | number, any>, D extends Partial<T>>(
props: T,
defaultProps: D,
): T & Required<D> => {
let nextProps = {} as T
const propsKeys: Array<keyof T> = Object.keys(props || {})
const defaultKeys: Array<keyof T> = Object.keys(defaultProps || {})
for (const propsN... |
import React from 'react';
import { Box, Button, Icon, Row } from '@tlon/indigo-react';
import { signMethods } from './Send';
const signMethodLabels = {
bridge: 'Sign with Bridge',
masterTicket: 'Sign with Master Ticket',
external: 'Sign Externally (PSBT)',
};
type Props = {
signReady: boolean;
initPayment:... |
import { expect, fixture, html } from '@open-wc/testing';
import sinon from 'sinon';
import type SlFormatDate from './format-date';
describe('<sl-format-date>', () => {
describe('defaults ', () => {
let clock: sinon.SinonFakeTimers;
beforeEach(() => {
// fake timer so `new Date()` can be tested
... |
export interface Shards {
total: number;
successful: number;
failed: number;
}
export interface Hits {
total: number;
max_score: number;
hits: any[];
}
export interface Bucket {
vendorThingID?: string;
key_as_string?: Date;
key: string;
doc_count: number;
}
export interface ByTerm {
doc_count_e... |
// @ts-ignore
import createDebug from 'debug';
// @ts-ignore
import { inspectable } from 'inspectable';
// @ts-ignore
import { Middleware, compose, noopNext } from 'middleware-io';
// @ts-ignore
// @ts-ignore
import { Agent, globalAgent } from 'https';
// @ts-ignore
// @ts-ignore
import {
// @ts-ignore
Composer,
// ... |
import { Routes, RouterModule } from '@angular/router';
import { PageOneComponent } from './page-one.component';
// Route Configuration
const pageOneRoutes: Routes = [
{ path: 'pageone', component: PageOneComponent },
];
export const routes = RouterModule.forChild(pageOneRoutes); |
export const Crucible = require('@godsflaw/crucible').CrucibleJSON; |
import { Observable } from 'rxjs';
import { useRegion } from 'components/Region';
import { SelectedLogs } from './SelectedLogs';
import { useSelelectedData } from './useSelectedData';
export const useSelectedLogs = (): Observable<SelectedLogs> =>
useSelelectedData(useRegion().logs.data); |
import { Document } from 'mongoose';
export interface RnaDistribution {
_id: string;
model: string;
tissue: string;
min: number;
max: number;
first_quartile: number;
median: number;
third_quartile: number;
}
export type RnaDistributionDocument = RnaDistribution & Document; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.