text stringlengths 10 953k |
|---|
import { loadConfig } from './config'
import { createContext, PlaygroundContext } from './context'
import { startTerminal } from './helpers/terminal'
import { runPlayground } from './playground'
let context: PlaygroundContext
const start = async () => {
const config = loadConfig()
context = await createContext(co... |
import { FieldsValue, SectionEnum, StringArrayValue, StringValue } from '..';
export interface MerchantUpdate {
section: SectionEnum;
groups: MerchantUpdateGroups;
}
export interface MerchantUpdateGroupsValue {
[key: string]: MechantUpdateProperties | undefined;
}
export interface MerchantUpdateGroups extends ... |
import IChatService from "../IChatService";
/**
* Simple keyword based command interface
*/
export default interface IBasicCommand {
/**
* The command keyword
*/
readonly Trigger: string;
/**
* Description of the command (used by !help)
*/
readonly Description: string;
/**
... |
import { getProof, getIndex } from "./merkle";
import { Contract } from "@ethersproject/contracts";
import {
Web3Provider,
getDefaultProvider,
BaseProvider,
ExternalProvider,
JsonRpcFetchFunc,
} from "@ethersproject/providers";
import { useEffect, useState } from "react";
const ENS_TOKEN_CONTRACT_ADDRESS = "... |
import { ApiModelProperty } from "@nestjs/swagger";
import { IWPPageMeta } from "src/model/meta-data";
export class IWPSpacing {
@ApiModelProperty()
public distancePaddingTop?: IWPSpacingOptionsArray | IWPSpacingOptions;
@ApiModelProperty()
public distanceMarginTop?: IWPSpacingOptionsArray | IWPSpacingOptions;... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-r... |
/*
* Copyright 2017 OICR
*
* 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 type DetailCrypto = {
tx_hash: string;
}
export type DetailFiat = {
sender_name : string;
sender_bank: string;
sender_clabe: string;
receive_clabe: string;
numeric_reference: string;
concepto: string;
clave_rastreo: string;
beneficiary_name: string;
}
export type Funding = {... |
// *** 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 { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { User } from '../_models/user'
@Injectable({ providedIn: 'root' })
export class UserService {
constructor(private http: HttpClient) { }
getAll() {
return this.http.get<User[]>(`http://localhost:4000... |
import {StaveNote} from 'vexflow/src/stavenote';
import {VoiceEntry} from "opensheetmusicdisplay/build/dist/src/MusicalScore/VoiceData/VoiceEntry";
export default class SongElement {
private voiceEntries: VoiceEntry[];
constructor(voiceEntries: VoiceEntry[]) {
this.voiceEntries = voiceEntries;
}
... |
import { Category } from '@hint/utils-types';
import metas from '../../shared/metas.import';
/**
* Returns a list with all the hint categories.
*/
export const getCategories = () => {
return [...new Set(metas.map((meta) => {
return (meta.docs && meta.docs.category || Category.other);
}))].sort();
}; |
import {Application, ApplicationModes, ServerService} from 'stix';
import * as config from './config';
(async () => {
const mode: ApplicationModes = process.env.STIX_APPLICATION_MODE as ApplicationModes;
const app: Application = await new Application(config).launch(mode);
if (app.getMode() === ApplicationModes.... |
/* eslint-disable import/prefer-default-export */
import { createSelector } from 'reselect';
import { AppState, Locale } from './types';
export const app = (state: { app: AppState }): AppState => state.app;
export const getLocale = createSelector([app], (app): Locale => app.locale); |
// *** 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 { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* R... |
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import addons from '@storybook/addons';
import { STORY_CHANGED } from '@storybook/core-events';
import { Channel } from '@storybook/channels';
import { API } from '@storybook/api';
import Story from './Components/Story';
interface Props... |
import { IsIn, IsNotEmpty, IsOptional } from 'class-validator';
import { NeedleEnvironment } from '../enum/needle-environment.enum';
import { NeedleResult } from '../enum/needle-result.enum';
import { NeedleType } from '../enum/needle-type.enum';
export class GetNeedlesFilterDto {
@IsOptional()
@IsIn([NeedleType.C... |
/**
* accountName: string, displayName: string, avatarUrl:string, content:string, systemFlag: boolean
*/
export class TootModel {
displayName: string;
accountName: string;
avatarUrl: string;
content: string;
systemFlag: boolean;
/**
* @param accountName
* @param displayName
* @param avatarUrl
... |
export type ExternalUrls = Record<string, string> & { spotify: string };
export interface User {
display_name: string;
uri: string;
type: 'user';
external_urls: ExternalUrls;
}
export interface PlaylistTracks {
href: string;
total: number;
}
export interface Playlist {
external_urls: Exte... |
import {
Canvas,
Rotation,
CanvasVersion,
} from '../../cvat-canvas/src/typescript/canvas';
export {
Canvas,
Rotation,
CanvasVersion,
}; |
import { describe, it } from 'mocha';
import { assert } from 'chai';
import Tree from '../src/index';
describe('contains check', () => {
it ('should return false if the tree is empty', () => {
var tree = new Tree();
assert.isFalse(tree.contains(1));
});
it ('should return whether the tree conta... |
// *** 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 { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
//
// Copyright (c) Microsoft.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
import express = require('express');
const router = express.Router();
router.use('/data', (req, res) => {
const exploreUrl = req.app.settings.runtimeConfig.microsoftOpenSource.expl... |
import * as Injector from "./injector";
export { Component } from "./component";
export { Injectable } from "./injectable";
export { Inject } from "./inject";
export default Injector; |
import * as moment from 'moment';
import { IUTF } from '../../interfaces/stonex/utfDate';
import { ICartesianCoordinates } from '../../interfaces/stonex/cartesian-coordinates';
export const toUTF = function(GPSdate: number, GPStime: number): IUTF {
const gpsInit = moment([1980, 0, 6, 0, 0, 0]);
gpsInit.add(+GP... |
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import request from "supertest";
import { AppModule } from "../src/app.module";
describe('AppController (e2e)', () => {
let app: INestApplication;
beforeEach(async () => {
const moduleFixture: TestingModu... |
/*
* Copyright 2020 Actyx AG
*
* 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 to in ... |
// Incomplete, need to get the full types from my other device :D
//GENERAL
export interface Metadata{
serverID: string
timestamp: string
}
//Alliances
type Alliance = { id: string, name: string, tag: string, founder: string, foundDate: string, logo: string, open?: boolean, players?: {id: string}[] };
export ... |
import { put, call, all, takeLatest, takeEvery } from "redux-saga/effects";
import createPayload from "../createPayload";
import api from "./api";
import routines, { LoginTriggerProps, SignUpTriggerProps } from "./routines";
import UserProps from "../../types/User";
import SnackService from "../../services/SnackService... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {Reporter} from "@internal/cli-reporter";
import {SerializeCLIOptions, serializeCLIFlags} from "./serializeCLIFlags";
impor... |
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class TestLib3Service {
constructor() { }
} |
import { Canvas, CanvasRenderingContext2D, createCanvas, Image, loadImage } from "canvas";
import { decompressFrames, parseGIF } from "./gifuct-js";
import { QRCodeModel, QRErrorCorrectLevel, QRUtil } from "./qrcode";
import GIFEncoder from "./gif.js/GIFEncoder";
const defaultScale = 0.4;
export type ComponentOptions... |
import { Fun } from '@ephox/katamari';
import * as Behaviour from 'ephox/alloy/api/behaviour/Behaviour';
import { Positioning } from 'ephox/alloy/api/behaviour/Positioning';
import { AlloyComponent } from 'ephox/alloy/api/component/ComponentApi';
import * as GuiFactory from 'ephox/alloy/api/component/GuiFactory';
impor... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from "@angular/router";
import { PushNotificationsService } from "ng-push";
import { ProductService } from "../product.service";
@Component( {
selector: 'app-product-list',
templateUrl: './product-list.component.html',
styleUrls: ... |
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Component, h, Host } from '@stencil/core'
@Component({
tag: 'taro-keyboard-accessory-core'
})
export class KeyboardAccessory {
componentDidLoad () {
console.error('H5 暂不支持 KeyboardAccessory 组件!')
}
render () {
return (
<Host ... |
import * as React from "react";
import AppHeader from "../../../components/AppHeader";
import Container from "../../../components/Container";
import LanguageSwitch from "../../../components/LanguageSwitch";
import PageHeader from "../../../components/PageHeader";
import i18n from "../../../i18n";
import { maybe } from... |
import React, { MouseEvent } from "react";
import { ButtonUI } from "ui/index";
export function Button({
constructive,
destructive,
highlighted,
lined,
radius,
onClick,
}: ButtonType & ButtonRadius & ButtonNative) {
return (
<ButtonUI
type="button"
{...{ constructive, destructive, highlig... |
import Card from "@components/common/card";
import Layout from "@components/layouts/admin";
import Search from "@components/common/search";
import CouponList from "@components/coupon/coupon-list";
import LinkButton from "@components/ui/link-button";
import { useState } from "react";
import ErrorMessage from "@component... |
export interface Strings {
es: Es
}
export interface Es {} |
namespace Lesson06.Models {
export class Auto {
public make: string;
public model: string;
public year: number;
}
} |
import { Contact } from './../../core/model';
import { ContactsService } from './../contacts.service';
import { Component, OnInit, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from "@angular/material";
@Component({
selector: 'app-remove-contact',
templateUrl: './remove-contact.component.... |
import { MigrationInterface, QueryRunner, Table } from "typeorm";
export class CreateSurveys1614212065897 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: "surveys",
columns: [
{
... |
export interface InstallOptions {
size: ComponentSize
zIndex: number
locale?: any
i18n?: (...args: any[]) => string
}
let $ELEMENT = { } as InstallOptions
const setConfig = (option: InstallOptions): void => {
$ELEMENT = option
}
const getConfig = (key: keyof InstallOptions): unknown => {
return $ELEMENT[... |
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { PermissionPage } from './permission';
@NgModule({
declarations: [
PermissionPage,
],
imports: [
IonicPageModule.forChild(PermissionPage),
],
exports: [
PermissionPage
]
})
export class Permission... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { LegacyAPICaller } from 'src/core/server';
import { SearchResponse } f... |
import classNames from 'classnames';
import { ComponentClassNames } from '../../shared';
import { View } from '../../View';
export const IconCall = (props) => {
const { className, ...rest } = props;
return (
<View
as="span"
width="1em"
height="1em"
className={classNames(ComponentClassN... |
export class JsonSchemaService {
xxxID = Math.random();
private ENTITY_DEFAULTS = {
_key: '',
_title: '',
_description: '',
_$ref: '',
_default: '',
_enum: '',
_type: '',
_required: false,
__ID__: '',
_parent: '',
_hideKey:... |
// Helpers
import { VNode, VNodeData } from 'vue'
import mixins from '../../util/mixins'
import header from './mixins/header'
import { wrapInArray, convertToUnit } from '../../util/helpers'
import { DataTableHeader } from 'vuetify/types'
export default mixins(header).extend({
name: 'v-data-table-header-desktop',
... |
/*
* Copyright 2020 Spotify AB
*
* 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 to i... |
import { Injectable } from '@angular/core';
import { EntityState, EntityStore, StoreConfig, ActiveState } from '@datorama/akita';
import { RaceDay } from './race-day.model';
export interface RaceDayState extends EntityState<RaceDay, string>, ActiveState<string> {}
@Injectable({ providedIn: 'root' })
@StoreConfig({ na... |
import * as React from 'react';
import { render } from '@testing-library/react';
import { Store } from '@reduxjs/toolkit';
import { Provider } from 'react-redux';
import { configureAppStore } from 'store/configureStore';
import { Register } from '..';
const renderComponent = (store: Store) =>
render(
<Provider ... |
export const getProjection = (
angle: number,
a: number,
zMin: number,
zMax: number,
) => {
const ang = Math.tan((angle * 0.5 * Math.PI) / 180);
return [
0.5 / ang,
0,
0,
0,
0,
(0.5 * a) / ang,
0,
0,
0,
0,
-(zMax + zMin) / (zMax - zMin),
-1,
0,
0,
... |
import c from 'picocolors'
import { AssertionError } from 'chai'
import type { EnhancedSpy } from '../spy'
import { isMockFunction } from '../spy'
import { addSerializer } from '../snapshot/port/plugins'
import type { Constructable, Test } from '../../types'
import { assertTypes } from '../../utils'
import { unifiedDif... |
import Datasource from './datasource';
import InputQueryEditor from './InputQueryEditor';
import InputConfigCtrl from './legacy/InputConfigCtrl';
export { Datasource, InputQueryEditor as QueryEditor, InputConfigCtrl as ConfigCtrl }; |
import { Injectable } from '@angular/core';
import { HttpResponse } from '@angular/common/http';
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Routes } from '@angular/router';
import { UserRouteAccessService } from 'app/core';
import { Observable, of } from 'rxjs';
import { filter, map } from 'rxjs/ope... |
import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { CreateTaskDto } from './dto/create-task.dto';
import { GetTasksFilterDto } from './dto/get-tasks-filter.dto';
import { TaskStatus } from './task-status.enum';
import { Task } from './task.entity'... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-omidology',
templateUrl: './omidology.component.html',
styleUrls: ['./omidology.component.css']
})
export class OmidologyComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { Schema } from 'mongoose';
declare function MongooseFindByReference(schema: Schema): void;
export { MongooseFindByReference }; |
import { WithStyle } from '@medly-components/utils';
import React, { FC } from 'react';
import SmokingRoomsIconSvg from '../../assets/Places/smoking_rooms_24px_rounded.svg';
import SvgIcon, { SvgIconProps } from '../../SvgIcon';
const Component: FC<SvgIconProps> = React.memo(props => {
const { size, withHoverEffec... |
// noinspection CssInvalidHtmlTagReference
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { map, shareReplay } from 'rxjs/operators';
import { MainDataService, BookletConfig } from '../../shared/shared.module';
import { BackendService } from '../backend.service';
import {
B... |
import registerComponent, {
ComponentMeta,
} from "@plasmicapp/host/registerComponent";
import { OptGroup, Option } from "rc-select";
import { OptGroupProps } from "rc-select/lib/OptGroup";
import { OptionProps } from "rc-select/lib/Option";
import { Registerable } from "./registerable";
export const optionMeta: Com... |
import { ConfigModuleOptions, registerAs } from "@nestjs/config";
import * as Joi from "joi";
import databaseConfig from "./database.config";
const config = () => {
return {
env: process.env.NODE_NEV,
port: +process.env.PORT,
cors: process.env.CORS,
}
}
const validationSchema = Joi.object({
NODE_ENV... |
import { BrushPostitionProps, GraphMetric } from 'litmus-ui';
import {
ApplicationMetadata,
ListDashboardResponse,
Panel,
PanelGroup,
PanelGroupResponse,
PanelOption,
PanelResponse,
PromQuery,
updatePanelGroupInput,
} from './graphql/dashboardsDetails';
import { promQueryInput } from './graphql/promet... |
export * from './date-picker.module';
export * from './date-picker.component';
export * from './date-picker.directive';
export * from './date-picker-options.provider'; |
/// <reference types="react" />
import { MANA_GRAPH_BY_CHAIN_ID } from 'decentraland-dapps/dist/lib/chainConfiguration';
import Loader from './Loader';
export declare type ChainId = keyof typeof MANA_GRAPH_BY_CHAIN_ID;
export declare function fetchManaBalance(address: string, chainId: ChainId): Promise<number>;
export ... |
import React from 'react';
export interface ContextState {
input: string[],
flags: any,
config: {
name?: string,
description?: string,
version?: string
}
}
export interface RouterProps {
children: React.ReactNode,
argv?: string[],
version?: string
name?: string,... |
import { parseProto } from '../src';
test('Method type should be converted', () => {
const source = `
syntax = "proto3";
service MyService {
rpc MyMethod (MyRequest) returns (MyResponse);
}
message MyRequest {
string path = 1;
}
message MyResponse {
int32 status = 1;
}
`;
c... |
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="bootstrap.d.ts" />
$('body').off('.data-api');
$('body').off('.alert.data-api');
$(".btn.danger").button("toggle").addClass("fat");
$("#myModal").modal();
$("#myModal").modal({ keyboard: false });
$("#myModal").modal('show');
$('#myModal').on('show'... |
/**
* @file IconPlayOne 播放
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper('IconPlay-one', (props: ISvgIconProps) => (
'<?xml version="1.0" encoding="UTF-8"?>'
+ '<sv... |
export interface QuoteState {
author: string;
quote: string;
title: string;
}
export enum QuoteActionTypes {
FETCH_QUOTES = 'FETCH_QUOTES',
FETCH_QUOTES_SUCCESS = 'FETCH_QUOTES_SUCCESS',
FETCH_QUOTES_ERROR = 'FETCH_QUOTES_ERROR',
}
interface FetchQuoteRequestAction {
type: QuoteActionTypes.FETCH_QUOTES;... |
import moment from 'moment'
import { nanoid } from 'nanoid'
import {
formatName,
formatMonthsAndDays,
formatTimestampToDateTime,
formatTimestampToDate,
sortByDateTime,
} from '../utils'
const AdjudciationHistoryServiceFactory = (prisonApi) => {
const getAdjudications = async (context, offenderNumber, para... |
<TS language="ne" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>ठेगाना वा लेबल सम्पादन गर्न दायाँ-क्लिक गर्नुहोस्</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ExpertsComponent } from './experts/experts.component';
import { FormComponent } from './form/form.compon... |
import * as React from 'react';
const Image20FilledIcon = () => {
return(
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 64 (93537) - https://sket... |
// svg/hand-front-right.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgHandFrontRight = createSvgIcon(
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xli... |
export class appSettings {
public autoReopen: boolean = false;
public lastOpenFile: string = "";
public oAuth2Groups: Array<oAuth2Group> = [];
}
export class oAuth2Group {
public groupName: string = "";
public accessToken: string = "";
public oAuthClientId: strin... |
import { Component, h } from '@stencil/core';
@Component({
tag: 'app-root',
styleUrl: 'app-root.css',
shadow: false,
})
export class AppRoot {
render() {
return (
<div class="main">
<main>
<stencil-router>
<stencil-route-switch scrollTopOffset={0}>
<stencil... |
import { Module } from '@nestjs/common'
import { PassportModule } from '@nestjs/passport'
import { UserModule } from '../users/users.module'
import { AuthService } from './services/auth.service'
import { LocalStrategy } from './strategies/local.strategy'
import { AuthController } from './controllers/auth.controller'
im... |
import readline from 'readline';
import os from 'os';
import colors from 'colors/safe';
import portfinder from 'portfinder';
import Server from './server';
import { name, version } from '../package.json';
// tslint:disable-next-line: no-var-requires
const argv = require('minimist')(process.argv.slice(2));
console.log... |
import { RunnerOptions } from 'stryker-api/test_runner';
interface IsolatedRunnerOptions extends RunnerOptions {
sandboxWorkingFolder: string;
}
export default IsolatedRunnerOptions; |
// © Microsoft Corporation. All rights reserved.
import React, { useState, useEffect } from 'react';
import GroupCall from './containers/GroupCall';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import { reducer } from './core/reducers';
import thunk from 'redux-thunk';
i... |
import { ScrollEventData } from ".";
import { View, layout, ScrollViewBase, scrollBarIndicatorVisibleProperty } from "./scroll-view-common";
import { ios as iosUtils } from "../../utils/utils";
// HACK: Webpack. Use a fully-qualified import to allow resolve.extensions(.ios.js) to
// kick in. `../utils` doesn't seem to... |
import React, { useCallback, useRef } from 'react';
import { FiArrowLeft, FiMail, FiLock, FiUser } from 'react-icons/fi';
import { Form } from '@unform/web';
import { FormHandles } from '@unform/core';
import * as Yup from 'yup';
import { Link, useHistory } from 'react-router-dom';
import { Container, Content, Backgrou... |
import React from 'react';
export interface ITimelineChartProps {
data: Array<{
x: number;
y1: number;
y2?: number;
}>;
titleMap: { y1: string; y2?: string };
padding?: [number, number, number, number];
height?: number;
style?: React.CSSProperties;
}
export default class TimelineChart extends R... |
import { FN001008_DEP_react } from './rules/FN001008_DEP_react';
import { FN001009_DEP_react_dom } from './rules/FN001009_DEP_react_dom';
import { FN002004_DEVDEP_gulp } from './rules/FN002004_DEVDEP_gulp';
import { FN002007_DEVDEP_ajv } from './rules/FN002007_DEVDEP_ajv';
import { FN002013_DEVDEP_types_webpack_env } f... |
import {Component,VNode} from 'inferno';
import {IDefaultStores} from '../stores';
import HelmetDataInstance from './HelmetDataInstance';
import { ChangeDispatcher } from './ChangeDispatcher';
export default class Helmet extends Component<IDefaultStores>{
render(){
if(this.props.children){
let ... |
/// <reference types="node" />
import { GaxiosOptions, GaxiosResponse } from 'gaxios';
import * as stream from 'stream';
import { DefaultTransporter, Transporter } from '../transporters';
import { Compute } from './computeclient';
import { CredentialBody, JWTInput } from './credentials';
import { IdTokenClient } from '... |
import { FormArray, FormControl, FormGroup, ValidationErrors } from '@angular/forms';
export class CustomValidators {
static vaildContainerName(c: FormControl): ValidationErrors {
const cnum = c.value;
var reg = /^[a-zA-z]{4}[0-9]{7}$/
var isValid = true;
const message = {
'vaildCnum': {
... |
import {MigrationInterface, QueryRunner} from "typeorm";
export class addMoveAction1589658244464 implements MigrationInterface {
name = 'addMoveAction1589658244464'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "villainCard" ADD "moveActionMoveamount" ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
import { fireEvent, render, wait } from '@testing-library/react'
import 'jest';
import React from 'react';
import { unmountComponentAtNode } from 'react-dom';
import IAMFactory from '../../../context/factories/IAMFactory';
import SignIn from './index';
/**
* @ignore
*/
let container: Element | null = null;
beforeE... |
export const getChatTime = (date: any) => {
const hour = date.getHours();
const minutes = date.getMinutes();
return `${hour}:${minutes} ${hour > 12 ? 'PM' : 'AM'}`;
};
export const setDateChat = (dateParam: any) => {
const year = dateParam.getFullYear();
const month = dateParam.getMonth();
const date = da... |
import { I18nFormatMessage } from '../redux/reducers/i18n-reducer';
import { GetReduxState } from '../types/redux';
const extractFormatMessage = (getState: GetReduxState): I18nFormatMessage =>
getState().i18nReducer.formatMessage!;
export default extractFormatMessage; |
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {FooterComponent} from './footer.component';
import {RouterTestingModule} from '@angular/router/testing';
import {AppComponent} from '../../app.component';
import {ImprintComponent} from '../../pages/imprint/imprint.component';
import {ActivatedRo... |
import { FigmaDocumentJson } from './figma-document-json';
import { FigmaComponentJson } from './figma-component-json';
export interface FigmaFileDetailsJson {
name: string;
lastModified: string;
thumbnailUrl: string;
document: FigmaDocumentJson;
scemaVersion: number;
components: Map<String, Fi... |
import path from 'path';
import { loadPlugins } from '../src/loadPlugins';
describe('load plugins', () => {
test('should load user plugin successfully', () => {
const fixture = path.resolve(
__dirname,
'./fixtures/load-plugin/user-plugins',
);
const plugins = loadPlugins(fixture, [
{ c... |
import {SigninComponent} from "./signin/signin.component";
import {SignupComponent} from "./signup/signup.component";
import {ForgotPasswordComponent} from "./forgot-password/forgot-password.component";
import {NonAuthGuardService} from "../services/non-auth-guard.service";
export const AuthRoutes = [
{path: 'login'... |
declare let process:any;
/**
* Represent an Amazon Resource Name as defined on http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
*/
export class AmazonResourceName {
/**
* Defaults to 'aws'
* @type {string}
*/
public partition: string = 'aws';
public service: stri... |
import {
StackNavigationProp,
createStackNavigator,
} from '@react-navigation/stack';
import React from 'react';
import { RouteProp } from '@react-navigation/native';
export type StackParamList = {
Default: undefined;
};
export type defaultStackNavigationProp = StackNavigationProp<
StackParamList,
'Default... |
import { ValidationOptions } from '../ValidationOptions';
export declare const IS_MIME_TYPE = "isMimeType";
/**
* Check if the string matches to a valid MIME type format
* If given value is not a string, then it returns false.
*/
export declare function isMimeType(value: unknown): boolean;
/**
* Check if the string... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.