text stringlengths 10 953k |
|---|
import type FirebaseNamespace from 'firebase/app'
import { AuthClient } from './'
export type Firebase = typeof FirebaseNamespace
// @TODO: Firebase doesn't export a list of providerIds they use
// But I found them here: https://github.com/firebase/firebase-js-sdk/blob/a5768b0aa7d7ce732279931aa436e988c9f36487/packag... |
import { WithStyle } from '@medly-components/utils';
import type { FC } from 'react';
import { memo } from 'react';
import PauseCircleFilledIconSvg from '../../assets/Media/pause_circle_filled_24px_rounded.svg';
import SvgIcon, { SvgIconProps } from '../../SvgIcon';
const Component: FC<SvgIconProps> = memo(props => {
... |
/*
* Copyright (c) 2020 Broadcom.
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifi... |
import { NumberRange } from "./range";
export class Colour{
constructor(public red: number, public green: number, public blue: number){
}
}
export class LooseColour{
constructor(
public red: NumberRange,
public green: NumberRange,
public blue: NumberRange){
}
con... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>Monero::AddressBookImpl</name>
<message>
<location filename="../src/wallet/api/address_book.cpp" line="53"/>
<source>Invalid destination address</source>
<translation type="unfinished"></translation>
... |
// <!-- Everything below this line is generated. DO NOT EDIT. -->
import moment = require('moment');
import semver = require('semver');
import { gocodeClose, Tool } from './goTools';
export const allToolsInformation: { [key: string]: Tool } = {
'gocode': {
name: 'gocode',
importPath: 'github.com/mdempsky/gocode'... |
<TS language="es_CO" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { AppService } from './app.service';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserMod... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { environment } from '../environments/environment';
import { Issue, Label } from './models/repository';
@Injectable({
providedIn: 'root'
})
ex... |
import { InternalServerErrorException } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import { CurrenciesRepository, CurrenciesService } from './currencies.service';
describe('CurrenciesService', () => {
let service: CurrenciesService;
let repository: CurrenciesRepository;
before... |
import { NextApiResponse } from "next";
import useAuth from "hooks/useAuth";
import { IRequest } from "types/IRequest";
import { Company } from "types/Company";
import { Citizen } from "types/Citizen";
export default async function handler(req: IRequest, res: NextApiResponse) {
const { method } = req;
try {
a... |
module minerva.core.render {
export interface IRenderTapin extends pipe.ITriTapin {
(input: IInput, state: IState, output: IOutput, ctx: RenderContext, region: Rect, tree: IUpdaterTree):boolean;
}
export interface IInput extends pipe.IPipeInput {
totalIsRenderVisible: boolean;
totalO... |
import {ChangeDetectorRef, Component, ElementRef, Input, OnInit, ViewChild, ViewEncapsulation} from '@angular/core';
import {ToastrService} from '../../../@core/mock/toastr-service';
import {NbDialogRef, NbToastrService} from '@nebular/theme';
import {FormControl, FormGroup, Validators} from '@angular/forms';
import {R... |
import { findPriceHistoryByCaip19 } from '@shapeshiftoss/market-service'
import { HistoryTimeframe } from '@shapeshiftoss/types'
import { act, renderHook } from '@testing-library/react-hooks'
import { ethereum } from 'jest/mocks/assets'
import { usePriceHistory } from './usePriceHistory'
jest.mock('@shapeshiftoss/mar... |
import {Component} from '@angular/core';
import { EmailService } from './email.service';
import { FormControl, Validators } from '@angular/forms';
@Component({
selector: 'app-email',
templateUrl: './email.component.html',
styleUrls: ['./email.component.scss'],
})
export class EmailComponent {
public emailFor... |
/**
*
*
* OpenAPI spec version: 20200531
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as sho... |
import { Polygon, MultiPolygon, Feature, FeatureCollection } from '@spatial/helpers';
/**
* http://turfjs.org/docs/#unkink-polygon
*/
export default function unkinkPolygon<T extends Polygon | MultiPolygon>(
geojson: Feature<T> | FeatureCollection<T> | T
): FeatureCollection<Polygon>; |
import React from 'react'
import { BaseInput } from '../util/Input'
import { MassachusettsInfo, primaryEligible } from '../../common'
import { SignatureBase, StatelessInfo, NoSignature } from './Base'
export const Massachusetts = () => {
const [ party, setParty ] = React.useState<string>('')
const massachusettsPr... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Liracoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line=... |
import {
ComponentBindings,
Event,
ForwardRef,
JSXTemplate,
OneWay,
RefObject,
Slot,
Template,
} from '@devextreme-generator/declarations';
import {
DateHeaderData,
DateTimeCellTemplateProps,
Group,
GroupPanelData,
ResourceCellTemplateProps,
TimePanelData,
} from '../types';
import { DateTab... |
import nodemailer, { Transporter } from 'nodemailer';
import { injectable, inject } from 'tsyringe';
import ISendMailDTO from '../dtos/ISendMailDTO';
import IMailProvider from '../models/IMailProvider';
import IMailTemplateProvider from '@shared/container/providers/MailTemplateProvider/models/IMailTemplateProvider';
... |
export { GridError } from '@qgrid/core/infrastructure/error';
export { Disposable } from './lib/infrastructure/disposable';
export { GridModel, GridEventArg, GridEvent } from './lib/grid/grid-model';
export { GridModule } from './lib/grid/grid.module';
export { GridComponent } from './lib/grid/grid.component';
export ... |
import { Controller, Get, Patch, Post, Body, Delete, Param, Type } from '@nestjs/common';
import { CreateTodoDto, UpdateTodoDto } from './dto/create-todo.dto';
import { TodosService } from './todos.service';
import { ApiUseTags, ApiResponse, ApiOperation, ApiOkResponse, ApiImplicitParam } from '@nestjs/swagger';
import... |
'use strict';
import { CancellationTokenSource, commands, Range, TextDocumentShowOptions, TextEditor, Uri, window } from 'vscode';
import { FileAnnotationType } from '../configuration';
import { GlyphChars } from '../constants';
import { Container } from '../container';
import { GitBranch, GitTag, GitUri } from '../git... |
/**
*
* 功能描述:
*
* @className ExistsCondition
* @projectName type-iorm
* @author yanshaowen
* @date 2019/4/7 21:38
*/
import {AbstractCondition} from "./AbstractCondition";
import {ISelect} from "../ISelect";
import {IContext} from "../IContext";
import {Keywords} from "./Keywords";
export class ExistsCondition... |
import { ApiProperty } from '@nestjs/swagger';
import {
Column,
DataType,
Model,
Table,
BelongsToMany,
} from 'sequelize-typescript';
import { User } from 'src/users/user.model';
import { UserRoles } from './user-roles.model';
interface RoleCreationAttrs {
value: string;
description: string;
}
@Table({ ... |
import React from 'react';
export const Context = React.createContext<{ isShowing: boolean; onClose?: () => void }>({
isShowing: false,
});
export const ContentContext = React.createContext<{ testId: string | undefined }>({
testId: undefined,
}); |
import { GoogleAddressFieldType } from './googleAutocompleteTypes';
export default class AddressSelector {
protected _address: google.maps.GeocoderAddressComponent[] | undefined;
protected _name: string;
constructor(
googlePlace: google.maps.places.PlaceResult
) {
const { address_compo... |
import { Injectable } from '@angular/core';
import { Day } from '../models/Day';
import { Observable } from 'rxjs';
import { SchedulePartialState } from './schedule.reducer';
import { Store, select } from '@ngrx/store';
import { scheduleQuery } from './schedule.selectors';
import { GetDaysAction, UpsertDayAction } from... |
import { Wallet } from 'xpring-common-js'
import { AccountInfo } from '../generated/web/legacy/account_info_pb'
import { Fee } from '../generated/web/legacy/fee_pb'
import { SubmitSignedTransactionResponse } from '../generated/web/legacy/submit_signed_transaction_response_pb'
import { LedgerSequence } from '../generate... |
import { join, basename, dirname } from 'path'
import { spawn } from 'child_process'
import { sync as globSync } from 'glob'
import chalk from 'chalk'
process.env.DEBUG = 'element-cli:console-reporter'
let only: string | undefined = process.env.SMOKE_ONLY
const elementRoot = dirname(process.cwd())
// run tests
conso... |
// Importing Types:
import type { ChainTokenData, SolChainTokenData, TerraChainTokenData } from 'cookietrack-types';
/* ========================================================================================================================================================================= */
// Ethereum:
export const... |
import _debug from 'debug'
import SwapApp, { constants, SwapInterface, util } from 'swap.app'
import BigNumber from 'bignumber.js'
import InputDataDecoder from 'ethereum-input-data-decoder'
const debug = _debug('swap.core:swaps')
class EthSwap extends SwapInterface {
address: string
abi: any[]
_swapName: string... |
import { text } from '@storybook/addon-knobs';
import { storiesOf } from '@storybook/vue';
import Vue from 'vue';
import { componentsHierarchyRootSeparator } from '../../../conf/storybook/utils';
import { CHIP_NAME } from '../component-names';
import ChipPlugin, { MChipMode } from './chip';
Vue.use(ChipPlugin);
sto... |
/**
* otplib-preset-default
*
* Provides fully initialised classes that are targeted
* at the node environment. This is meant for getting started
* quickly.
*
* If you want to use your own Base32 and/or crypto plugin, it
* would be better to create a new file in your project and initialise
* the core classes m... |
import { React, IntlShape, ImmutableArray, Expression, UseDataSource, Immutable } from 'jimu-core'
import { TextInput, Radio } from 'jimu-ui'
import { SettingRow } from 'jimu-ui/advanced/setting-components'
import defaultMessages from '../translations/default'
import { ExpressionInput, ExpressionInputType } from 'jimu-... |
//#region imports
import { Dispatch } from 'react-redux';
import { RootState } from 'reducers';
import { transform } from 'actions/transformation';
import { TransformRequest } from 'lib/types';
//#endregion
export const mapStateToProps = (state: RootState) => ({ meta: state.transform.meta });
export const mapDispatch... |
import { Routes } from '@angular/router';
import {loginRoutes} from './login/login.route';
import {registerRoutes} from './register/register.route';
import {activateRoutes} from './activate/activate.route';
import {passwordresetRoutes} from './password-reset/password-reset.route';
import {settingsRoutes} from './settin... |
import React from 'react'
import { connect } from 'react-redux'
import { RouteComponentProps } from 'react-router'
import BaseActionComponent from '../app/base-action-component'
import ResourceJSON from '../../../backend/decorators/resource-json.interface'
import { ReduxState } from '../../store/store'
import { NoReso... |
import { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client";
import { DeleteQueryLoggingConfigRequest, DeleteQueryLoggingConfigResponse } from "../models/models_0";
import {
deserializeAws_restXmlDeleteQueryLoggingConfigCommand,
serializeAws_restXmlDeleteQueryLoggingConfigC... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CoursesController } from './courses.controller';
import { CoursesService } from './courses.service';
import { Course } from './entities/course.entity';
import { Tag } from './entities/tag.entity';
@Module({
imports: [T... |
import Phaser, { GameObjects } from 'phaser'
import { debugDraw } from '../utils/debug'
import { createAdventurerAnims } from '../anims/AdventurerAnims'
import { createChestAnims } from '../anims/TreasureAnims'
import { createLizardAnims } from '../anims/EnemyAnims'
import Lizard from '../enemies/lizard'
import '../... |
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
expor... |
<TS language="hu" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>A cím vagy címke szerkeszteséhez kattintson a jobb gombbal</translation>
</message>
<message>
<source>Create a new address</source>... |
import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectConnection, InjectRepository } from '@nestjs/typeorm';
import { Connection, Repository } from 'typeorm';
import { ComplexQuestionService } from './complex-question/complex-question.service';
import { CreateSurveyDto } from './dto/create-surv... |
import React, { useEffect } from 'react';
import { animated } from 'react-spring';
import { mount } from 'enzyme';
import { AnimatedBarGroup, BarGroup, BarSeries, DataProvider, useEventEmitter } from '../../src';
import setupTooltipTest from '../mocks/setupTooltipTest';
const providerProps = {
initialDimensions: { w... |
// Name: Kyle Cree
// Id: 1505970
import React from 'react';
import { API } from 'aws-amplify';
import { Redirect } from 'react-router';
import { Glyphicon } from 'react-bootstrap';
interface AddToCartProps {
bookId: string;
price: number;
variant?: string;
}
interface AddToCartState {
loading: boolean;
toC... |
import {
ExecutionContext,
Injectable,
Logger,
CallHandler,
NestInterceptor,
} from '@nestjs/common';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
@Injectable()
export class LoggingInterceptor implements NestInterceptor {
intercept(context: ExecutionContext, next: CallHandler): ... |
import { ILogger } from '@auto-it/core';
export default function setTokenOnCI(logger: ILogger): Promise<void>;
//# sourceMappingURL=set-npm-token.d.ts.map |
export default interface IErrorPage {
title: string,
error: string
} |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
import * as uuid from 'uuid';
export default (prefix: string = ''): string => `${prefix}_${uuid()}`; |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { EventEmitter } from "events";
import { TaskManagerFactory } from "@fluidframework/agent-scheduler";
import { ITelemetryLogger } from "@fluidframework/common-definitions";
import {
IFluidObject,
IFlu... |
/**
* Created by Lucas Teske on 02/05/17.
*/
export { printQuantoHeader, QuantoColors, isRunningInNodeJS, validateEmail, validateCPF, validateCNPJ, undefinedOrNull, validateField, validateDateFormat, validateStringLength, calcDvMod11, calcDvMod11Sub11, calcDvAgencia, calcDvConta, calcDvMod10, cleanUndefinedMembers, F... |
// Copyright 2019-2022 @polkadot/extension-koni-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import Toggle from '@polkadot/extension-koni-ui/components/Toggle';
import useTranslation from '@polkadot/extensi... |
import { Entity, Column, PrimaryGeneratedColumn, ManyToMany, JoinTable } from 'typeorm';
import { Auditoria } from './Auditoria.entity';
@Entity()
export class EstadoCivil extends Auditoria {
@Column({ type: "varchar", length: 100 })
descricao: string;
} |
import { ContainerModule, interfaces } from 'inversify';
import CounterModule from '@sample-stack/counter-module-server';
import { config } from '../config';
import { NATS_MOLECULER_COUNTER_SERIVCE } from '@sample-stack/counter-module-server';
import { Feature } from '@common-stack/server-core';
const subTopic = conf... |
export * from './SearchFilter'; |
import { TokenTransactionType } from 'src/apollo/types'
import { ExchangeConfirmationCardProps } from 'src/exchange/ExchangeConfirmationCard'
import { CURRENCIES, CURRENCY_ENUM } from 'src/geth/consts'
import i18n from 'src/i18n'
import { navigate } from 'src/navigator/NavigationService'
import { Screens } from 'src/na... |
import { createHmac } from 'crypto'
import ApiCall from './ApiCall'
import { KeyCreateSchema, KeySchema } from './Key'
import { SearchParams } from './Documents'
const RESOURCEPATH = '/keys'
export interface KeysRetrieveSchema {
keys: KeySchema[]
}
export interface GenerateScopedSearchKeyParams extends Partial<Sea... |
export default class Scanner {
i = 0;
constructor(private s: string) {}
get current() {
return this.s[this.i];
}
advance() {
this.i += 1;
}
hasMore() {
return this.i < this.s.length;
}
consumeUntil(until: string) {
let res = '';
while (this.hasMore() && this.current !== until)... |
export type Options = {
BruteForceOptions: {
MaxThreads: number,
BatchCount: number,
RetryCount: number,
}
} |
export class DOM {
chatBox: HTMLElement;
messageInput: HTMLInputElement;
constructor(){
this.chatBox = this.findDOMElementById('chat');
this.messageInput = <HTMLInputElement>this.findDOMElementById('message');
}
public getNewMessage(){
return this.messageInput.value;
}
public displayM... |
import { defineComponent, ref, computed } from "vue";
export default defineComponent({
setup() {
const counter = ref<number>(0);
const twiceTheCounter = computed(() => counter.value * 2);
const twiceTheCounter2 = computed(() => counter.value * 2);
const twiceTheCounter3 = computed(() => counter.value ... |
import { asyncSequenceOf } from "../../src/Sequence";
describe("sortedBy", () => {
it("should sort by the given key descending", async () => {
const a4 = { a: 4 };
const a1 = { a: 1 };
const a3 = { a: 3 };
const a23 = { a: 23 };
const array = await asyncSequenceOf(a4, a1, a3, a23)
.sortedB... |
import Object = require('nashorn/java/lang/Object');
import OffsetKey = require('nashorn/com/intellij/codeInsight/completion/OffsetKey');
import Language = require('nashorn/com/intellij/lang/Language');
import Editor = require('nashorn/com/intellij/openapi/editor/Editor');
import Caret = require('nashorn/com/intellij/o... |
import { IContainerIterator, IContainerReverseIterator } from "../linear/IContainer";
import { IAssociativeContainer } from "./IAssociativeContainer";
import { IForwardIterator } from "../../../iterator/IForwardIterator";
// import { Pair } from "../../../utility/Pair";
export interface ISetContainer<Key,
Un... |
import {Component, OnInit} from '@angular/core';
import {ApiService} from '../_services/api/api.service';
import {Hit, Query} from '../_models/query';
import {Study, StudyStatus} from '../_models/study';
import {AuthenticationService} from '../_services/authentication/authentication-service';
import {User} from '../_mo... |
import React, { useEffect } from 'react';
const obj = {};
const Filter = ({ data, newFilters, fq }) => {
function headingCollapsable() {
const headings = document.querySelectorAll('.filters__heading');
Array.prototype.forEach.call(headings, (h: any) => {
const btn = h.querySelector('button');
co... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pam" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DigitalCashCoin</source>
<translation type="unfinished"/>
</message>
<message>
<locati... |
import { parseBlockInfo } from "block-info";
import { encode } from "html-entities";
import MarkdownIt from "markdown-it";
const delimiters = [["^^^", "^^^"]];
export const useTripleHatReference = (md: MarkdownIt) => {
md.inline.ruler.before(
"escape",
"litvis:triple-hat-reference",
(state, silent) => {... |
import { ComponentProps, FC } from 'react';
import { SliderArrowLeft } from '@vtex/store-ui';
declare type Props = ComponentProps<typeof SliderArrowLeft>;
declare const ShelfArrowLeft: FC<Props>;
export default ShelfArrowLeft; |
import { BelongsTo, Column, DataType, ForeignKey, HasOne, Model, Table } from "sequelize-typescript";
import { User } from "../users/user.model";
@Table({
timestamps: true
})
export class Budget extends Model {
@Column({ primaryKey: true, autoIncrement: false })
id: string;
@Column({
type: DataType.DOUBL... |
import { GenerateArgs, CodeFileLike } from '../types'
import { GraphQLTypeObject } from '../source-helper'
import {
fieldsFromModelDefinition,
shouldScaffoldFieldResolver,
isParentType,
} from './common'
export { format } from './ts-generator'
function renderResolvers(
type: GraphQLTypeObject,
args: Generat... |
export const routes = {
SELECT_PROJECT: '/select-project',
PROJECT: '/show-project',
LOGIN: '/login',
ACCESS_TOKEN: '/access_token/:token',
}; |
import { DeployFunction } from "hardhat-deploy/types";
const func: DeployFunction = async ({
getNamedAccounts,
deployments,
ethers,
}) => {
const { execute } = deployments;
const { mastermind } = await getNamedAccounts();
const farm = await deployments.get("RugSanctuary");
// await execute(
// 'Seco... |
/***********************************************************
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License
**********************************************************/
import { createSelector } from 'reselect';
import { DigitalTwinInterfacePropertiesWrapper } from '../..... |
import { MsalAuthProvider, LoginType } from "react-aad-msal";
// The auth provider should be a singleton. Best practice is to only have it ever instantiated once.
// Avoid creating an instance inside the component it will be recreated on each render.
// If two providers are created on the same page it will cause authe... |
import { assert, expect } from 'chai';
import 'mocha';
import { Series } from 'data-forge';
import "../index";
describe('data-forge-plot - series', () => {
it('plot series with no configuration', () => {
const series = new Series({ index: [1, 2, 3], values: [10, 20, 30] });
const plotAPI = serie... |
/**
* Copyright 2015 CANAL+ Group
*
* 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 agreed t... |
import * as t from 'assert';
import { Context } from '../../src/common';
import { Token } from '../../src/token';
import { create } from '../../src/parser';
import { scanSingleToken } from '../../src/lexer/scan';
describe('Lexer - Numberic literals', () => {
const tokens: [Context, Token, string, number | bigint][] ... |
import { Component } from '@angular/core';
import {
I3JS, NgxBaseComponent,
NgxGeometryComponent, NgxMaterialComponent,
NgxMeshComponent, IRendererTimer, THREE
} from 'ngx3js';
@Component({
selector: 'app-webgl-instancing-modified',
templateUrl: './webgl-instancing-modified.component.html',
styleUrls: ['./webgl-... |
import { Mockgoose } from "mockgoose";
import * as mongoose from "mongoose";
(mongoose as any).Promise = global.Promise;
if (process.env.NODE_ENV === "testing") {
const mockgoose = new Mockgoose(mongoose);
mockgoose.helper.setDbVersion("3.4.3");
mockgoose.prepareStorage().then((): void => {
mong... |
import { Traceable, SimplePath } from "."
import { Point2D } from "../types/sol"
import { v } from ".."
export default class Spiral implements Traceable {
path: SimplePath
constructor({
at,
a: sA = 0,
l,
n,
rate = 0.005,
}: {
at: Point2D
a?: number
l: number
n: number
rat... |
import { Link } from './types';
import searchInArray from './searchObjectInArray';
describe('Search in array', () => {
const links: Link[] = [];
beforeAll(() => {
links.push(
{ language: 'test', name: 'test', url: 'url1' },
{ language: 'test', name: 'test', url: 'url2' },
{ language: 'test', ... |
import { expect, haveResource, MatchStyle, ResourcePart } from '@aws-cdk/assert';
import ec2 = require('@aws-cdk/aws-ec2');
import iam = require('@aws-cdk/aws-iam');
import logs = require('@aws-cdk/aws-logs');
import sqs = require('@aws-cdk/aws-sqs');
import cdk = require('@aws-cdk/core');
import { Test } from 'nodeuni... |
import Phaser from "phaser";
import { preload } from "./scenes/preload";
import { cage } from "./scenes/cage";
import { Level } from "./scenes/level";
import { chatCarpincho } from "./scenes/chatCarpincho";
import { UIScene } from "./scenes/uiScene";
import { mainMenu } from "./scenes/mainMenu";
import { pausaScene } f... |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type WeatherAlertDocument = WeatherAlert & Document;
@Schema()
export class WeatherAlert {
@Prop() timestamp: number;
@Prop() warning: string;
@Prop([String]) cities: string[];
}
export const WeatherAler... |
/* eslint-disable no-invalid-this */
import mongoose, { Schema } from 'mongoose'
import config from '../../../config'
import _ from 'lodash'
import { Presistence } from '../../../utils/enums'
import { NewUserI, UpdateUserI, UserBaseClass, UserI } from '../../../interfaces/userInterface'
import bcrypt from 'bcryptjs'
... |
import { Component, OnInit, Input } from '@angular/core';
import { Seguimiento } from '../../../modelos/seguimiento.model';
import Swal from 'sweetalert2';
@Component({
selector: 'app-eliminar-seguimiento',
templateUrl: './eliminar-seguimiento.component.html',
styleUrls: ['./eliminar-seguimiento.component.css']
}... |
import { Injectable } from '@angular/core';
import { API } from '../API';
import { HttpClient } from '@angular/common/http';
import { MsgService } from '../msg/msg.service';
import { GET, DELETE, POST, PUT } from '../../../decorators/request.decorator';
@Injectable({ providedIn: 'root' })
export class ListService {
co... |
export const Phone = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="feather feather-phone">
<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.9... |
import {IRepo} from '../IRepo'
import {PostDocument} from '../../models'
export interface IPostsRepo extends IRepo<PostDocument> {} |
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
import { createDS, columnFactory } from '@pebula/ngrid';
import { Person, DemoDataSource } from '@pebula/apps/shared-data';
import { Example } from '@pebula/apps/shared';
@Component({
selector: 'pbl-row-column-definitions-example... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
const { cd, exec, echo, touch } = require("shelljs")
const { readFileSync } = require("fs")
const url = require("url")
let repoUrl
let pkg = JSON.parse(readFileSync("package.json") as any)
if (typeof pkg.repository === "object") {
if (!pkg.repository.hasOwnProperty("url")) {
throw new Error("URL does not exist i... |
import { PackageJson, Builder, Config } from './types';
import minimatch from 'minimatch';
interface ErrorResponse {
code: string;
message: string;
}
const src: string = 'package.json';
const config: Config = { zeroConfig: true };
// Static builders are special cased in `@now/static-build`
const BUILDERS = new M... |
export default (o: unknown): string => {
return JSON.stringify(o, null, 2);
}; |
import React from "react";
import { Result } from "antd";
import check, { IAuthorityType } from "./CheckPermissions";
import AuthorizedRoute from "./AuthorizedRoute";
import Secured from "./Secured";
interface AuthorizedProps {
authority: IAuthorityType;
noMatch?: React.ReactNode;
currentAuthority: string | str... |
/**
* (c) 2022, Micro:bit Educational Foundation and contributors
*
* SPDX-License-Identifier: MIT
*/
import { useToken } from "@chakra-ui/system";
import React, { ReactNode, useContext, useEffect, useMemo } from "react";
import { Terminal } from "xterm";
import { FitAddon } from "xterm-addon-fit";
import useAction... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.