text stringlengths 10 953k |
|---|
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { ISequencedDocumentMessage, MessageType } from "@fluidframework/protocol-definitions";
import {
IFluidDataStoreRuntime,
IChannelStorageService,
IChannelFactory,
} from "@fluidfr... |
console.log("Hello TypeScript") |
//
import React, { Component } from 'react';
import ImgCrop from 'antd-img-crop'; //引入图片裁剪组件
import { Upload, Button, Modal, message, Row, Col, Card, Image } from 'antd'; //引入上传、按钮、弹窗等antd组件
import { PlusOutlined } from '@ant-design/icons';
//base64图片文件
function getBase64(file: any) {
return new Promise((resolve,... |
import {Component} from "./Component";
import {getMilliSecconds, getMicroSeconds} from "./Uno/format-time";
const MHZ = 16000000;
const maxDistance = 300;
/*
This implementation might need revision from the specifications of the sensor.
*/
export class UltrasonicSensor extends Component{
private echoPin : number... |
import React from 'react';
import { MemoryEdges } from './MemoryEdges';
import { getMPAngle, getMPCoordinates, MemoryHexagonGrid } from './MemoryHexagonGrid';
import { Memory } from '../hexagony/Memory';
import { MemoryPointer } from '../hexagony/MemoryPointer';
import { MemoryPointerView } from './MemoryPointerView';
... |
import dotenv from "dotenv";
dotenv.config();
import express, { Application } from "express";
import { errorHandlerMiddleware } from "./middlewares/errorHandlerMiddleware";
import GeneralRoutes from "./routes/generalRoutes";
import { StartDatabase } from "./intraestructure/database/config";
import cors from "cors";
im... |
import {
buildErrorOptions,
determineErrorMessage,
ErrorOptions,
setUnsetErrorOptions
} from '@typescript-error/core';
import { ClientError } from '../base';
export class LockedError extends ClientError {
constructor(data?: string | Error | ErrorOptions, options?: ErrorOptions) {
options = ... |
import { getAppCommunity } from './community'
import { User, verifyAccount, register } from './identity';
import { EcdsaKey, Repo } from 'tupelo-lite';
import debug from 'debug';
import { EventEmitter } from 'events';
const Key = require("interface-datastore").Key
// TODO: this needs a rewrite, it was brought in from ... |
import { RouteTree } from "../RouteTree";
test("Route should build routes.tsx with correct pathname", () => {
const rootRoute = RouteTree.path("/").withRoutes(RouteTree.path("home"), RouteTree.path("about"));
expect(rootRoute.routes[0].path).toBe("/home");
expect(rootRoute.routes[0].parents()).toHaveLength(1);
... |
import { expect } from 'chai'
import { QuickReply } from '../../../src'
describe('QuickReply', function () {
it('should work', function () {
const json = (new QuickReply('foo', [
new QuickReply.Item(QuickReply.Item.ContentType.TEXT, {
title: 'foo1',
payload: 'bar1',
imageUrl: 'http... |
import { expect } from 'chai';
import * as Rx from '../../src/Rx';
import { lowerCaseO } from '../helpers/test-helper';
import marbleTestingSignature = require('../helpers/marble-testing'); // tslint:disable-line:no-require-imports
declare const {type, asDiagram};
declare const hot: typeof marbleTestingSignature.hot;
... |
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import typesChain from './chain';
import typesSpec from './spec';
export function getChainTypes (specName: string, chainN... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-manioc',
templateUrl: './manioc.component.html',
styleUrls: ['./manioc.component.css']
})
export class ManiocComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
import { BigNumber } from '@ethersproject/bignumber'
import { Contract } from '@ethersproject/contracts'
import { JSBI, Percent, Router, SwapParameters, Trade, TradeType } from 'moonwalkerswap-sdk-v2'
import { useMemo } from 'react'
import { BIPS_BASE, DEFAULT_DEADLINE_FROM_NOW, INITIAL_ALLOWED_SLIPPAGE } from '../cons... |
import { LitElement, TemplateResult } from "lit-element";
import { Subscription } from "rxjs";
import { EditorContext } from "@src/core/EditorContext";
import { observeStart, observeEnd, destroyRef } from "@src/core/Observable";
export class RxElement extends LitElement {
protected subscriptionList: Subscription[] =... |
import React from "react";
export interface SVGShapeProps<T> extends React.SVGProps<SVGPolygonElement> {
states?: T[];
selector?: (t: T) => boolean;
children?: React.ReactNode;
properties?: {
fill?: {colour: string};
stroke?: { colour: string; width: number };
clickable?: boolea... |
import { AlertGroupTypes, AlertSizes, AlertStatusTypes } from "@clr/core/alert";
import { CdsAlert, CdsAlertActions, CdsAlertGroup } from "@clr/react/alert";
import * as React from "react";
export interface IAlertGroupProps {
children: React.ReactNode;
alertActions?: string | JSX.Element;
closable?: boolean;
s... |
const initialState = {
userData: null,
};
const usersReducer = (state = initialState, action: any) => {
switch (action.type) {
case "SET_USER":
return {
...state,
userData: action.payload,
};
case "UPDATE_USER":
return {
...state,
userData: action.payload,
... |
import * as React from 'react'
import { shallow } from 'enzyme'
import ProjectorProperty, { ProjectorPropertyProps } from '../property'
describe('Projector', () => {
let wrapper
const props = {
config: {
primaryColour: '#000000',
secondaryColour: '#FFFFFF',
headerTextColour: '#FF0000',
... |
export class BinaryReadImpulse {
uri: string
constructor(uri: string) {
this.uri = uri;
}
} |
import { QuoteConfigCoreService } from './quote-config-core.service';
import { QuoteConfigMutatorService } from './quote-config-mutator.service';
import { QuoteConfigService } from './quote-config.service';
import { ColorEnum } from '../../../../enums/color.enum';
import { IconEnum } from '../../../../enums/icon.enum';... |
import type { ObjectHydrator } from '@mikro-orm/core';
import { Embeddable, Embedded, Entity, Enum, MikroORM, PrimaryKey, Property, wrap } from '@mikro-orm/core';
import { mockLogger } from '../../helpers';
enum AnimalType {
CAT,
DOG,
}
@Embeddable({ abstract: true, discriminatorColumn: 'type' })
abstract class A... |
/**
* Каталог объектов
* Основное отличие версии <b>3.0</b> от <b>2.0</b> в том, что в <b>3.0</b> с помощью одного метода можно получить ответ API сразу со всеми типами данных — с организациями, геообъектами, маршрутами и остановками, а не запрашивать данные по разным типам отдельным запросами.
*
* OpenAPI spec ve... |
import fs from 'fs'
import nock from 'nock'
import path from 'path'
import { Probot, ProbotOctokit } from 'probot'
import myProbotApp from '.'
import payload from './fixtures/issues.opened.json'
const issueCreatedBody = { body: 'Thanks for opening this issue!' }
const privateKey = fs.readFileSync(
path.join(__dirna... |
import { execute } from 'graphql';
import { gql } from 'graphql-tag';
import { prisma } from './example/builder';
import schema from './example/schema';
let queries: unknown[] = [];
prisma.$use((params, next) => {
queries.push(params);
return next(params);
});
describe('variants', () => {
afterEach(() => {
... |
import chalk from 'chalk';
export default () =>
`
${chalk.blue('Usage:')}
steps serve ${chalk.yellow('[opts]')}
${chalk.yellow('[Options]:')}
--help: Prints steps help`
; |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import { Link } from '../../common/schemas/link';
import configuration from '../../config/configuration';
type SummaryDocument = Summary & Document;
@Schema({ collection: 'summaries', timestamps: true })
class Summary... |
export interface PaginationInfo {
readonly pageNumber: number;
readonly pageSize: number;
readonly hasNextPage: boolean;
readonly hasPreviousPage: boolean;
readonly totalPages: number;
readonly totalItems: number;
} |
import { app } from 'electron';
import { spawnSync } from 'child_process';
import path from 'path';
import fs from 'fs-extra';
import { Store } from 'redux';
import dmg from 'dmg';
import {
downloadAndInstallAppSuccess,
downloadAndInstallAppFailure
} from '$Actions/application_actions';
import { MAC_OS, LINUX,... |
import * as React from 'react';
import {
DatePicker,
DayOfWeek,
Dropdown,
IDropdownOption,
mergeStyles,
defaultDatePickerStrings,
} from '@fluentui/react';
const days: IDropdownOption[] = [
{ text: 'Sunday', key: DayOfWeek.Sunday },
{ text: 'Monday', key: DayOfWeek.Monday },
{ text: 'Tuesday', key: D... |
import React from 'react';
import { intrinsicComponent } from './utils/functions';
import type { IconProps } from './icon.props';
export const Tick = intrinsicComponent<IconProps, SVGSVGElement>(
({ color = 'currentColor', size = 12, ...rest }, ref): JSX.Element => (
<svg
ref={ref}
width={size}
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import { Color } from "./color";
import { utcFormat } from "d3-time-format";
import { formatLocale, FormatLocaleDefinition } from "d3-format";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './pages/home/home.component';
import { AboutComponent } from './pages/about/about.... |
import { SetMetadata } from '@nestjs/common';
import { CRUD_MODULE_ROUTE_VALIDATION_METADATA } from '../../crud.constants';
import { CrudValidationOptions } from '../../crud.types';
/**
* Crud validate options decorator.
*
* Set the fallback ValidationPipe options for all method
* parameters called with the `CrudB... |
GOCAD TSurf 1
HEADER {
name:WTRA-SBCF-WEST-Hondo_detachment_S_dip-CFM5_500m
*visible:true
*solid*color:0.402673 0.247693 0.045586 1
}
GOCAD_ORIGINAL_COORDINATE_SYSTEM
NAME Default
AXIS_NAME "X" "Y" "Z"
AXIS_UNIT "m" "m" "m"
ZPOSITIVE Elevation
END_ORIGINAL_COORDINATE_SYSTEM
TFACE
VRTX 1 184056.90625 3793219.68750 -6417... |
class OkUrl {
private m_url: string;
private m_request: Response;
constructor(url: string) {
this.setUrl(url);
}
public toString(): string {
return this.m_url;
}
public setUrl(url: string): void {
this.m_url = url;
this.m_request = undefined;
}
pub... |
import { Component, OnInit } from '@angular/core';
import { Router, NavigationEnd } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { IUser } from '../../../shared/interface/user.interface';
@Component({
selector: 'app-sidebar',
templateUrl: './sidebar.component.html',
... |
import {Component} from '@angular/core';
/**
* @title Autosize sidenav
*/
@Component({
selector: 'sidenav-autosize-example',
templateUrl: 'sidenav-autosize-example.html',
styleUrls: ['sidenav-autosize-example.css'],
})
export class SidenavAutosizeExample {
showFiller = false;
} |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { IQmsControlDetails } from 'app/shared/model/qms-control-details.model';
@Component({
selector: 'jhi-qms-control-details-detail',
templateUrl: './qms-control-details-detail.component.html'
})
export cl... |
import React from "react";
import TeamBox from "./../Players/TeamBox";
import MatchBar from "../MatchBar/MatchBar";
import SeriesBox from "../MatchBar/SeriesBox";
import Observed from "./../Players/Observed";
import { CSGO, Team } from "csgogsi-socket";
import { Match } from "../../api/interfaces";
import RadarMaps fro... |
import { Injectable, Inject, forwardRef } from '@angular/core';
import { Subject, Observable } from 'rxjs';
import { ImgExifService } from './img-exif.service';
const MAX_STEPS = 15;
declare var self: any;
@Injectable()
export class ImgMaxSizeService {
timeAtStart: number;
initialFile: File;
constructor... |
// Type definitions for Paper.js v0.9.24
// Project: http://paperjs.org/
// Definitions by: Clark Stevenson <https://github.com/clark-stevenson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
type NativeMouseEvent = MouseEvent;
declare module 'paper' {
/**
* The version of Paper.js, as a... |
import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'app-userprofileinfo',
templateUrl: './userprofileinfo.component.html',
styleUrls: ['./userprofileinfo.component.css']
})
export class UserprofileinfoComponent implements OnInit {
constructor() { }
@Input() userInfo;
ngOnIn... |
import crypto from 'crypto';
export const validatePassword = (password: string, hash: string, salt: string): boolean => {
const hashVerify = crypto
.pbkdf2Sync(password, salt, 10000, 64, 'sha512')
.toString('hex');
return hashVerify === hash
}
export const generatePassword = (password: string): { s... |
import {Component, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {FormControl, ReactiveFormsModule} from '@angular/forms';
import {PageObject} from '@taiga-ui/testing';
import {NG_EVENT_PLUGINS} from '@tinkoff/ng-event-plugins';
import {TuiRangeComponent} from ... |
// Copyright 2017-2020 @polkadot/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
/* eslint-disable @typescript-eslint/no-var-requires */
import { ChainProperties, DispatchErrorModule } from '../interfaces/typ... |
/**
* Copyright 2019, OpenCensus Authors
*
* 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 ... |
import { BookingConfirmationComponent } from './booking-confirmation/booking-confirmation.component';
import { ConfirmationTemplateComponent } from './confirmation-template/confirmation-template.component';
import { MailSenderComponent } from './mail-sender/mail-sender.component';
import { AuthGuard } from './model-ser... |
/**
* Copyright (c) 2020 Chan Zewail
*
* This software is released under the MIT License.
* https: //opensource.org/licenses/MIT
*/
import { ProviderType } from '../../symbol';
export interface ProvideMetaData {
provideName?: any;
isShared?: boolean;
onMissingProviderkey?: any;
onConfigKey?: string;
on... |
import * as React from 'react';
declare namespace GatewayDest {
interface GatewayDestProps {
name: string;
tagName?: string;
component?: string | React.ComponentType;
}
}
declare class GatewayDest extends React.Component<GatewayDest.GatewayDestProps> { }
export = GatewayDest; |
const mobx = require("mobx");
import { IAtom } from "mobx";
export const useStrict: (s: boolean) => void = mobx.configure ?
(s => mobx.configure({ enforceActions: s ? "always" : "never" })) : mobx.useStrict
export type CreateAtom = (name: string, onBecomeObservedHandler?: () => void, onBecom... |
import { NextArbitrary } from '../../check/arbitrary/definition/NextArbitrary';
import { NextValue } from '../../check/arbitrary/definition/NextValue';
import { Random } from '../../random/generator/Random';
import { Stream } from '../../stream/Stream';
import { noUndefinedAsContext, UndefinedContextPlaceholder } from ... |
declare global {
interface Window {
RENDERING_CONTEXT: 'CANVAS' | 'WEBGL' | 'WEBGL2'
}
}
window.RENDERING_CONTEXT = 'CANVAS'
export default class CustomCanvas {
private _type: number
private _canvas: HTMLCanvasElement | undefined
private _context: CanvasRenderingContext2D | WebGLRenderingContext | null |... |
import { MongoClient, Collection } from 'mongodb'
export const MongoHelper = {
client: null as MongoClient,
uri: null as string,
async connect (uri: string): Promise<void> {
this.uri = uri
this.client = await MongoClient.connect(uri, {
useNewUrlParser: true,
useUnifiedTopology: true
})
... |
import { OperatorFunction, SchedulerLike } from "rxjs";
export declare function endWith<T, E1 = T>(v1: E1, scheduler?: SchedulerLike): OperatorFunction<T, T | E1>;
export declare function endWith<T, E1 = T, E2 = T>(v1: E1, v2: E2, scheduler?: SchedulerLike): OperatorFunction<T, T | E1 | E2>;
export declare function end... |
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import {
MatIconModule,
MatProgressSpinnerModule
} from '@angular/material';
import { AppComponent } from './app.component';
import { APP_BASE_HREF } from '@angular/common';
import { LoaderService... |
// prettier-ignore
const level = [
[100, 100, 100, 0, 0, 0, 0, 0, 0, 0],
[100, 64, 100, 100, 100, 100, 100, 0, 0, 0],
[100, 64, 64, 0, 0, 0, 100, 0, 0, 0],
[100, 0, 9, 9, 9, 52, 100, 0, 0, 0],
[100, 0, 0, 0, 0, 100, 100, 0, 0, 0],
[100, 100, 10... |
import React, { useRef } from 'react';
import { cloneDeep } from 'lodash';
import { DataFrame, FieldType, TimeRange } from '@grafana/data';
import { GraphNG, GraphNGProps, PlotLegend, UPlotConfigBuilder, usePanelContext, useTheme2 } from '@grafana/ui';
import { LegendDisplayMode } from '@grafana/schema';
import { BarCh... |
import { Component, OnInit } from '@angular/core';
import config from '../../config';
import { EventCenterForMicroApp } from '@micro-zoe/micro-app'
// @ts-ignore
// 因为vite子应用关闭了沙箱,我们需要为子应用appname-vite创建EventCenterForMicroApp对象来实现数据通信
window.eventCenterForAppNameVite = new EventCenterForMicroApp('appname-vite')
@Compo... |
// Copyright 2017-2021 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DeriveCollectiveProposal } from '@polkadot/api-derive/types';
import type { BountyStatus } from '@polkadot/types/interfaces';
import BN from 'bn.js';
import React, { useRef } from 'react';
import ... |
import { v4 } from "uuid";
import Base from "./base";
import Task from "./task";
import { AsyncResult } from "./result";
class TaskMessage {
constructor(
readonly headers: object,
readonly properties: object,
readonly body: [Array<any>, object, object] | object,
readonly sentEvent: object
) {}
}
e... |
import { Db } from 'mongodb'
import { RedisClient } from 'redis'
const Posts = async (parent: void, args: void, { db }: { db: Db }) => {
return await db.collection('post').find({}).toArray()
}
const test = () => "test!"
const recentChat = async (parent: void, args: void, { redis }: { redis: RedisClient }) => {
... |
import { pseudoRandomBytes } from 'crypto';
import { S3Event } from 'aws-lambda';
import * as AWS from 'aws-sdk';
import * as AWSMock from 'aws-sdk-mock';
const mockDistributionId = pseudoRandomBytes(16).toString('hex');
const mockPathPrefix = pseudoRandomBytes(16).toString('base64');
beforeEach(() => {
process.env... |
import * as React from "react";
export interface LoadButtonProps {
text?: string;
show: boolean;
}
function UpdatingLoader(props: LoadButtonProps) {
return (
<div className="updating-loader-container">
{props.show && (
<div className="updating-loader">
{props.text || "Updating"}
... |
export * as coreos from "./coreos/mod.ts"; |
/* eslint-disable @typescript-eslint/no-var-requires */
import React, { useState } from 'react';
import {
View,
ImageBackground,
Image,
Text,
TextInput,
KeyboardAvoidingView,
Platform,
} from 'react-native';
import { Feather as Icon } from '@expo/vector-icons';
import { RectButton } from 'react-native-ges... |
import React from "react";
import { ButtonComponent } from "Components";
import { useAuth } from "Hooks";
interface IFieldComponentProps {}
export function SignOutComponent ({}: IFieldComponentProps) {
const { logout } = useAuth();
const handleSignOut = (e: any) => {
e.preventDefault();
logout... |
import {ConverterService, InjectorService, Provider} from "@tsed/common";
import {Store} from "@tsed/core";
import * as SocketIO from "socket.io"; // tslint:disable-line: no-unused-variable
import {$log} from "ts-log-debug";
import {ISocketHandlerMetadata} from "../interfaces/ISocketHandlerMetadata";
import {ISocketPar... |
export default class EventBus {
private events: any = {};
/**
* Add a listener to a given event.
*
* @param event The name of the event
* @param listener A listener
*/
public on(event: string, listener: (data: any) => void) {
if (!this.events[event]) {
this.events[event] = [];
}
... |
<TS language="en_US" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Right-click to edit address or label</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
// Copyright 2017-2022 @polkadot/react-hooks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DeriveBounties, DeriveTreasuryProposals } from '@polkadot/api-derive/types';
import type { Balance } from '@polkadot/types/interfaces';
import { useEffect, useState } from 'react';
import { Derive... |
import { DB } from "https://deno.land/x/sqlite/mod.ts";
import { readJson } from "https://deno.land/std/fs/mod.ts";
import { DB_NAME } from "./constants.ts";
interface Data {
words: string[];
}
function isData(val: unknown): val is Data {
return (val as Data).words !== undefined;
}
const db = new DB(DB_NAME);
db... |
import React from 'react';
import { Box, styled, css, Flex } from '@modulz/design-system';
const tab1 = css.keyframes({
'0%': { opacity: '1' },
'29.9999%': { opacity: '1' },
'30%': { opacity: '.75' },
'69.9999%': { opacity: '.75' },
'70%': { opacity: '1' },
'100%': { opacity: '1' },
});
const tab2 = css.k... |
import { readFileSync } from 'fs';
import { reaction } from 'mobx';
import { TextDocument, Position, CompletionItemProvider, CancellationToken, CompletionContext, CompletionItem, CompletionList, ProviderResult, SnippetString, Uri, ExtensionContext } from 'vscode';
import { CompletionItemKind } from 'vscode-languageclie... |
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "../commands/CreateApplicationCommand";
import {
CreateConfigurationProfileCommandInput,
CreateConfigurationProfileCommandOutput,
} from "../commands/CreateConfigurationProfileCommand";
import {
CreateDeploymentStrategyCommandInput,
C... |
import React, { useState, useEffect } from "react";
import { useSelector } from "react-redux";
import styles from "./Header.module.scss";
import NavBar from "../NavBar";
import NavItem from "../NavItem";
import DropDownMenu from "../DropDownMenu";
import DropDownItem from "../DropDownItem";
import { dropDownData } f... |
import { configureStore } from '@reduxjs/toolkit';
import { act, fireEvent, render } from '@testing-library/react';
import React from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import { Preset } from '../../../app/constants/Preset';
import { Status } fro... |
import I18n = require('../interfaces.d');
declare var ktu:I18n.IFingerprint;
ktu = { rank: 137,
iso: 'ktu',
name: 'Kituba',
trigrams:
{ ' ya': 0,
'ya ': 1,
'na ': 2,
'a k': 3,
' na': 4,
'a y': 5,
'a m': 6,
' ku': 7,
'u y': 8,
'a n': 9,
'a b': 10,
' ba': 1... |
import styled, { keyframes } from 'styled-components';
import { shade } from 'polished';
export const Container = styled.div`
display: flex;
flex-direction: column;
`;
export const Header = styled.header`
width: 100%;
height: 144px;
display: flex;
align-items: center;
justify-content: center;
backgrou... |
import { ExportParams } from "@ag-grid-community/core";
import { BaseCreatorBeans, GridSerializingSession } from "./interfaces";
export declare abstract class BaseCreator<T, S extends GridSerializingSession<T>, P extends ExportParams<T>> {
private beans;
protected setBeans(beans: BaseCreatorBeans): void;
ex... |
import { KendraClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraClient";
import { DeleteIndexRequest } from "../models/models_0";
import {
deserializeAws_json1_1DeleteIndexCommand,
serializeAws_json1_1DeleteIndexCommand,
} from "../protocols/Aws_json1_1";
import { getSerdePlugin } from "... |
import { Optional } from '@ephox/katamari';
import { EventArgs, SugarPosition } from '@ephox/sugar';
const getData = (event: EventArgs<MouseEvent>): Optional<SugarPosition> => Optional.from(SugarPosition(event.x, event.y));
// When dragging with the mouse, the delta is simply the difference
// between the two positio... |
import { Component, Input, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'datepicker-popup',
templateUrl: './datepicker-popup.html'
})
export class DatepickerPopupComponent {
@Input()
model: any;
@Input()
id: string;
@Input()
required: boolean = false;
@Output()... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React from 'react';
import styles from './index.module.scss';
export default function UserLayout({ children }: { children: React.ReactNode }) {
return (
<div className={styles.container}>
<div className={styles.content}>{children}</div>
</div>
);
} |
/// <reference path="../../Typejector/Compiled/typejector.d.ts" />
declare module Example.ArgumentInjection {
} |
import { Request, Response, NextFunction } from 'express'
import { getCustomRepository } from 'typeorm'
import { UsersRepository } from '../repositories/UsersRepository'
export async function ensureAdmin(
request: Request,
response: Response,
next: NextFunction
) {
const { user_id } = request
const usersRep... |
import React, { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import { FiPlus, FiArrowRight } from 'react-icons/fi';
import { Map, TileLayer, Marker, Popup } from 'react-leaflet';
import mapIcon from '../utils/mapIcon';
import mapMarketImg from '../images/map-marker.svg';
import '../st... |
import TFS_Core_Contracts = require("Presentation/Scripts/TFS/Generated/TFS.Core.Contracts");
import WebApi_Contracts = require("VSS/WebApi/Contracts");
export interface AssociatedWorkItem {
assignedTo: string;
id: number;
state: string;
title: string;
url: string;
webUrl: string;
workItemTy... |
import R from 'ramda';
import semver from 'semver';
import chalk from 'chalk';
import { NothingToImport } from '../exceptions';
import { BitId, BitIds } from '../../bit-id';
import Component from '../component';
import { Consumer } from '../../consumer';
import { ComponentWithDependencies, Scope } from '../../scope';
i... |
export * from './TronService';
export * from './TronController'; |
import { CommonModule } from '@angular/common';
import { NgModule,CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { RxReactiveFormsModule } from '@rxweb/reactive-form-validators';
import {... |
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-ge... |
import { ConstructorChecksUpgradeData, VersionChanges } from '@angular/cdk/schematics';
export declare const constructorChecks: VersionChanges<ConstructorChecksUpgradeData>; |
import { SVGProps } from 'react';
declare const SvgAppceleratorPlainWordmark: (props: SVGProps<SVGSVGElement>) => JSX.Element;
export default SvgAppceleratorPlainWordmark; |
//import Autocomplete from '@material-ui/lab/Autocomplete';
import {
CHAIN_ID_SOLANA,
CHAIN_ID_TERRA,
isEVMChain,
} from "@certusone/wormhole-sdk";
import { TextField, Typography } from "@material-ui/core";
import { useCallback } from "react";
import { useDispatch, useSelector } from "react-redux";
import useGetS... |
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { APIService } from './api.service';
import { HelloComponent } from './hello.component';
describe('HelloComponent', () => {
... |
import * as spec from '@jsii/spec';
import * as Case from 'case';
import * as colors from 'colors/safe';
import * as crypto from 'crypto';
// eslint-disable-next-line @typescript-eslint/no-require-imports
import deepEqual = require('deep-equal');
import * as fs from 'fs-extra';
import * as log4js from 'log4js';
import ... |
import { Buffer } from 'buffer'
import * as fs from 'fs'
import * as path from 'path'
import * as util from 'util'
const Module = require('module')
// We modified the original process.argv to let node.js load the init.js,
// we need to restore it here.
process.argv.splice(1, 1)
// Clear search paths.
require('../com... |
import { Image } from "./image.model";
import { Theme } from "./theme.model";
export class Organization {
Theme: Theme;
_id: string;
name: string;
updatedAt: Date;
logo: Image;
constructor(Theme: Theme, _id: string, name: string, updatedAt: Date, logo: Image) {
this.Theme = Theme;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.