text stringlengths 3.3k 33k |
|---|
import React, { FC, useState, useEffect } from 'react';
import { KeyringPair } from '@polkadot/keyring/types';
import { Button, SemanticCOLORS } from 'semantic-ui-react';
import { web3FromSource } from '@polkadot/extension-dapp';
import { useSubstrate } from '..';
import utils from '../utils';
interface ITxButton {
... |
import { BundlePolicy, Pipeline, RTCPeerConnection, RtcpPacket, RtcpPayloadSpecificFeedback, RTCRtpTransceiver, RtpPacket, uint16Add } from "@koush/werift";
import { FullIntraRequest } from "@koush/werift/lib/rtp/src/rtcp/psfb/fullIntraRequest";
import { listenZeroSingleClient } from "@scrypted/common/src/listen-cluste... |
import moment from 'moment';
import { StønadskontoType, OppholdsÅrsak } from 'app/api/types/UttaksplanDto';
import { Tidsperiode } from 'app/types/Tidsperiode';
import { isEqual } from 'lodash';
import { UttaksplanColor } from 'app/types/uttaksplan/UttaksplanColor';
import { IntlShape } from 'react-intl';
import Period... |
<reponame>DonaldTdz/syq
export class Activitys implements IActivitys {
id: string;
title: string;
classInt: string;
costInt: number;
ageClassInt: string;
iconImg: string;
bTitle: string;
leaderInt: string;
activityMessage: string;
beCarefulMessage: string;
outActivityMessage:... |
import ArgumentType from './arguments/argumentType';
import booleanArg from './arguments/booleanArg';
import numberArg from './arguments/numberArg';
import rawArg from './arguments/rawArg';
import stringArg from './arguments/stringArg';
import Command from './command';
import Argument from './argument';
import Suggesti... |
<filename>src/features/guidUtilsProvider.ts
import path = require('path');
import * as vscode from 'vscode';
import * as fs from 'fs';
import { AssetsTocProvider } from './outline/assetsTocProvider';
import * as xmldoc from 'xmldoc';
const _TAGS_TO_COMPLETE: { [index: string]: string[] } = {
/* eslint-disable @types... |
import * as React from 'react';
import {
View,
Text,
StyleSheet,
TouchableOpacity,
Dimensions,
} from 'react-native';
import ProgressBar, { ProgressBarProps } from 'react-native-form-progress';
import {
DateTyper,
CheckBoxes,
SingleImageSelector,
MultipleImageSelector,
Otp,
InputText,
AutoComple... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import * as AsyncLock from "async-lock";
import * as log from "../log";
import { StorageError } from "azure-storage";
import { EPHDiagnosticInfo } from "../modelT... |
import { CharacterData } from 'pipeline'
import { Translate } from '../../../../Components/Translate'
import { TalentSheet } from '../../../../Types/character'
import { CharacterKey, ElementKey } from '../../../../Types/consts'
import { customDmgNode, dataObjForCharacterSheet, dmgNode } from '../../dataUtil'
import { b... |
<gh_stars>0
// @ts-check
export type Omit<T, U> = Pick<T, Exclude<keyof T, U>>;
export declare interface RunAllParams extends Omit<RunDefaultParams, 'tsTask'> {
esmTask: () => any;
jsTask: () => any;
}
export declare interface RunDefaultParams {
cleanTask: () => Promise<string[]>;
lintTask: () => any;
copyTa... |
import { FC, useCallback, useEffect, useRef, useState, useMemo } from 'react'
import { app } from '../../lib/firebase'
import { useObjectVal } from 'react-firebase-hooks/database'
import { useToasts } from 'react-toast-notifications'
import useInterval from '../hooks/useInterval'
import { useAuthUser } from '../provide... |
type ScreenType = '横屏' | '竖屏'
interface Thread {
[key: string]: any
}
declare const com: any
interface AutoStorage {
/**
* 取key对应的值,值不存在时返回defaultValue或undefined
* @param key
* @param defaultValue
*/
get(key: string, defaultValue?: any): any
/**
* 把value保存到key,value必须是可JSON... |
<gh_stars>0
import winston from "winston";
import puppeteer from "puppeteer";
import { eachLimit } from "async";
const DEBUG = process.env.NODE_ENV !== "production";
const LOGLEVEL = process.env.LOGLEVEL || (DEBUG ? "debug" : "info");
const DNDTOOLS_URL_BASE = "https://dndtools.net";
//const DNDTOOLS_URL_BASE = "http:... |
<gh_stars>0
import ServiceElectron, { IPCMessages as IPCElectronMessages, Subscription } from '../services/service.electron';
import Logger from '../tools/env.logger';
import * as fs from 'fs';
import ControllerStreamFileReader from './controller.stream.file.reader';
import { RGSearchWrapper } from './controller.stream... |
/* 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 may not... |
<reponame>luanshixia/eMind
// emind.js
export const hMargin = 100;
export const vMargin = 10;
export const cornerRadius = 5;
export const cpOffset = 50;
export const mapPadding = 100;
export const textHeight = 15;
export const nodePadding = 10;
export const nodeClass = 'emind-node';
export const linkClass = 'emind-li... |
<reponame>tylervz/angular2-jwt
import "core-js";
import {AuthConfig, AuthHttp, tokenNotExpired, JwtHelper} from "./angular2-jwt";
import {Observable} from "rxjs";
import {encodeTestToken} from "./angular2-jwt-test-helpers";
import {Request} from '@angular/http';
const expiredToken=encodeTestToken({
"exp": 0
});
... |
<filename>lib/parse.ts
import {
General,
Metadata,
Difficulty,
BeatmapBase,
Beatmap,
TimingPoint,
SliderCurve,
HitObject,
} from './types'
import { Vec2 } from './vec2'
const CIRCLE_OBJECT_BIT = 1 << 0
const SLIDER_OBJECT_BIT = 1 << 1
const SPINNER_OBJECT_BIT = 1 << 3
const HOLD_OBJECT_BIT = 1 << 7
co... |
<filename>lib/ohtge.ts
import { Terminal } from 'xterm';
import 'xterm/css/xterm.css';
import './ohtge.css';
export type InputCallback = (input: string | undefined) => void | Promise<void>;
export type StyleCode = 'reset' | 'bold' | 'dim' | 'italic' | 'underline' | 'inverse' | 'hidden' | 'strikethrough'
| 'black'... |
<filename>src/schema/IdbSchemaCreator.ts
import Dexie from "dexie";
import {
BREAK,
buildASTSchema,
DefinitionNode,
DirectiveDefinitionNode,
DocumentNode,
getNamedType,
GraphQLNonNull,
GraphQLObjectType,
GraphQLOutputType,
GraphQLSchema,
isListType,
isNamedType,
isNonNullType,
isObjectType,
... |
import * as fs from 'fs';
import JSON5 from 'json5';
import * as path from 'path';
import * as vscode from 'vscode';
import { extensionConfig, EXTENSION_NAME } from './extension';
import { IConfig, IExtension, ISnippetFile, SessionCache, SnippetFileExtensions } from './types';
import { dirExists, isObject, log } from '... |
import * as dom from '../dom'
import * as types from './types'
import * as looks from './looks'
import * as split from './split'
import * as fns from './fns'
import * as load from './load'
export const rowMarkSelected = (looks: looks.Looks, ui: HTMLElement, primary: HTMLElement, secondary: HTMLElement) => {
ui.classN... |
<reponame>Minigugus/webcontainer-shell
import { Deferrable, deferrable } from './utils';
export interface IService {
call(req: unknown): Promise<unknown>;
}
export type ServiceRequest<T extends IService> =
T extends { call(req: infer R): any }
? R
: unknown;
export type ServiceResponse<T extends IService> =
... |
import { useCallback, useState } from "react";
import Error from "next/error";
import { useDropzone } from "react-dropzone";
import { useForm } from "react-hook-form";
import { useRouter } from "next/router";
import useSWR from "swr";
import { Product } from "@prisma/client";
import Breadcrumb from "../../../../compon... |
/**
* Created by adrian on 5/15/17.
*/
import {EventEmitter, Injectable} from '@angular/core';
import { Http, Headers, RequestOptions, Response, URLSearchParams } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import {Inbox} from "../_models/inbox";
import {Subject} from "rxjs/Subject";
import '... |
<reponame>MageFroh/zigbee-herdsman<gh_stars>0
/* jshint node: true */
'use strict';
import * as ZCL from '../../zcl';
var Concentrate = require('concentrate'),
DChunks = require('../../dissolve-chunks'),
ru = DChunks().Rule();
var zclmeta = require('./zclmeta');
var parsedBufLen = 0;
/*********************... |
<gh_stars>1-10
/**
* 为何!assest中有了,为什么不输出到目录下面
*/
import { Compiler, compilation } from 'webpack'
import Path from 'path'
import Fs from 'fs'
import {
getWebpackSystemInfos,
setRuntimeChunk,
makeEnvironment,
getOutput,
getEntry,
getSearchExtInfo,
getBelongFileType,
getAppJsonAdditionalD... |
<reponame>paroi-tech/nextcloud-node-client<gh_stars>0
import Client, { ClientError } from "./client";
import FileSystemElement from "./fileSystemElement";
import UserGroup from "./userGroup";
import User from "./user";
import FormData from "form-data";
import { format } from "path";
export enum SharePermission {
all... |
import {
AuthData,
configureFetch,
DelegationService,
Environment,
ItemService,
NewItem,
SDKTemplate,
Secrets,
TemplateService,
UserService,
} from '@meeco/sdk';
const $ = id => document.getElementById(id)!;
const $get = (id: string) => ($(id) as HTMLInputElement)?.value;
const $set = (id: string, ... |
<gh_stars>1-10
import { Component, OnInit, ViewChild, Input, AfterViewInit } from '@angular/core';
import { UseCaseService } from './../use-case.service';
import { NotificationService } from '../services/notification.service';
import { ApiResponse } from '../model/api.response';
import { ApiResponseInterface } from '..... |
import { Frag, Write } from "@ot-builder/bin-util";
import { ImpLib } from "@ot-builder/common-impl";
import { Assert, Errors } from "@ot-builder/errors";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gdef, Gpos, Gsub, GsubGpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
impo... |
<filename>src/src/app/crud/actions/cud.actions.ts
import { Action } from '@ngrx/store';
import { IScopedData } from 'src/app/services/models/others/scoped-data';
import { ICreateQuestion } from 'src/app/services/models/question/create-question';
import { IQuestionIndexWithScope } from 'src/app/services/models/question/... |
<reponame>rahilvora/glimmer.js
import { assert, unwrapTemplate } from '@glimmer/util';
import {
ComponentManager as VMComponentManager,
ComponentCapabilities as VMComponentCapabilities,
Dict,
Option,
VMArguments,
CapturedArguments,
JitRuntimeResolver,
WithJitStaticLayout,
Template,
TemplateOk,
Env... |
import { PubSub } from "apollo-server";
import {
ApolloServer,
ApolloServerExpressConfig,
PubSubEngine,
} from "apollo-server-express";
import { getMainDefinition } from "apollo-utilities";
import * as bodyParser from "body-parser";
import * as express from "express";
import { MapSimpleTable } from "fanout-graphq... |
<gh_stars>10-100
/*---------------------------------------------------------------------------------------------
* Copyright (c) EXL, Inc. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------------------------------... |
import { gql, useQuery } from '@apollo/client'
import { Trans, plural, select } from '@lingui/macro'
import { useLingui } from '@lingui/react'
import { extent, max } from 'd3-array'
import { scaleLinear, scaleTime } from 'd3-scale'
import { line } from 'd3-shape'
import { differenceInDays, endOfToday, startOfDay, subDa... |
<filename>packages/eos-transit-walletconnect-provider/src/plugin.ts
import { ethers, providers, utils } from 'ethers';
import WalletConnectProvider from '@walletconnect/web3-provider';
import EosTransitWeb3ProviderCore, {
DiscoveryOptions,
DiscoverResponse,
isAString,
NetworkConfig,
PluginMetaData,
PushTran... |
import { observable, runInAction } from 'mobx';
import { observer } from 'mobx-react';
import * as React from 'react';
import { withRouter } from 'react-router-dom';
import { BaseComponent } from '../../common/ui/BaseComponent';
import { NotificationPanel, NotificationType } from '../../common/ui/NotificationPanel';
im... |
<filename>projects/angular-spectre/src/lib/autocomplete/autocomplete.component.ts
// tslint:disable-next-line:max-line-length
import { Component, OnInit, OnDestroy, AfterContentInit, OnChanges, Input, Optional, HostBinding, ViewChild, ElementRef, Output, EventEmitter, TemplateRef, ChangeDetectorRef, ContentChild } from... |
import { get, cloneDeep, isEqual, isObject } from 'lodash-es';
import type { PipelineParameterModel } from '@/models';
interface FormRules {
regex: any;
optional: boolean;
range: string;
}
function isQualifiedListData(item: PipelineParameterModel) {
return !(Array.isArray(item.value) && item.listParameter);
... |
import React from "react";
import {useState, useEffect} from "react";
import {SERVICE_SERVER, HOME} from "../misc/config";
import {IStore, ICollection, IShowDetail, ICloseDetail} from "../misc/interfaces";
import {IBrowseResult, IBrowseStruc, ISearchObject, IResultList, ISendPage, ISendCandidate, IFacetCandidate, ISear... |
<gh_stars>10-100
import {Dispatch} from 'redux';
import {csvParse, tsvParse} from 'd3-dsv';
import {generateDomain, prepareMeta, logError} from '../utils';
import {
AppState,
ColumnHeader,
DataType,
GenWidget,
LanguageExtension,
Template,
TemplateMap,
WidgetType,
} from '../types';
import * as actionTyp... |
<filename>src/editable-contracts.ts<gh_stars>1-10
// Tech debt
// 1) Profile memory
// 2) Debug how it works
// 3) Object structure change (array -> object -> array)
// 4) Object validation runs two times on child change
// Test that derivation is optimal
import { isObservable, entries, IObservableArray, IObservableOb... |
<filename>packages/astro/src/core/build/generate.ts
import type { OutputAsset, OutputChunk, RollupOutput } from 'rollup';
import type { AstroConfig, ComponentInstance, EndpointHandler, SSRLoadedRenderer } from '../../@types/astro';
import type { PageBuildData, StaticBuildOptions, SingleFileBuiltModule } from './types';... |
import { Button, ButtonGroup } from '@blueprintjs/core';
import { forEach, size } from 'lodash';
import React, { useContext, useEffect, useState } from 'react';
import useMount from 'react-use/lib/useMount';
import compose from 'recompose/compose';
import styled from 'styled-components';
import { TTranslator } from '..... |
import axios from "axios";
import readXlsxFile from "read-excel-file/node";
import { ICievsCase, defaultCase, Gender, OutcomeId, Classification, DocumentType, RacaCor } from "../interfaces/CievsCaseInterface";
import { DefaultCase } from "../interfaces/DefaultCase";
import { getSpreadsheetPath } from "../utils/GetSprea... |
import React, { Component } from 'react';
import { TouchableOpacity, Image, View, Animated, ScrollView, ScrollViewProps, Text, ImageSourcePropType } from 'react-native';
import { get } from 'lodash';
import i18n from '../utils/i18n';
import { isIOS, isAndroid } from '../utils/os';
import chroma from 'chroma-js';
impor... |
import classnames from 'classnames';
import _ from 'lodash';
import { inject, observer } from 'mobx-react';
import Moment from 'moment';
import React from 'react';
import { FaTrashAlt } from 'react-icons/fa';
import { IoIosRedo } from 'react-icons/io';
import { Button } from '~/components/controls';
import InputContain... |
<reponame>rhyst/strava-directus
import got from "got";
import getFull from "./full";
import { Readable } from "stream";
import nunjucks from "nunjucks";
import cookieParser from "cookie-parser";
import crypto from "crypto";
import { json } from "express";
import fs from "fs";
import path from "path";
import indexTempl... |
import { stat, move, remove, readdir, createReadStream, readFile, utimes, createWriteStream, writeFile, unlink } from 'fs-extra';
import mime from 'mime-types';
import ow from 'ow';
import { join, dirname, parse, resolve } from 'path';
import stream from 'stream';
import util from 'util';
import { isStream, isBuffer } ... |
import { SwapperManager, ZrxSwapper } from '@shapeshiftoss/swapper'
import { Asset, GetQuoteInput, Quote, SwapperType } from '@shapeshiftoss/types'
import debounce from 'lodash/debounce'
import { useCallback, useEffect, useRef, useState } from 'react'
import { useFormContext, useWatch } from 'react-hook-form'
import { ... |
/*
* Copyright 2019 <NAME>, MIT License
*
* Parts taken from react-codemirror2
* Copyright 2019 <NAME>, MIT License
* https://github.com/scniro/react-codemirror2/blob/a633e7dd673ddf5bdb07e2ed664a03aa47159bfa/src/index.tsx
*/
/**
* ## Controlled vs. uncontrolled
*
* This hook acts as a hybrid between a control... |
/**
* @author https://tools.ietf.org/html/rfc7231#section-6.1
*
* Content based on the above RFC site
*/
/*
* It indicates that the REST API successfully carried out whatever action the client
* requested, and that no more specific code in the 2xx series is appropriate. Unlike
* the 204 status code, a 200 resp... |
import 'apollo-server-env';
import 'apollo-env';
import {
GraphQLSchema,
extendSchema,
Kind,
isTypeDefinitionNode,
isTypeExtensionNode,
GraphQLError,
GraphQLNamedType,
isObjectType,
FieldDefinitionNode,
InputValueDefinitionNode,
DocumentNode,
GraphQLObjectType,
specifiedDirectives,
TypeDefin... |
import JSZip from "jszip";
import { xml2js } from "xml-js";
import { XmlNode } from "./types";
import MakiObject from "./runtime/MakiObject";
import GuiObject from "./runtime/GuiObject";
let nextId = 0;
export function getId(): number {
return nextId++;
}
// Breadth-first tree map
// TODO: Type this so the return t... |
<filename>plugins/git-release-manager/src/features/CreateReleaseCandidate/hooks/useCreateReleaseCandidate.ts<gh_stars>1-10
/*
* Copyright 2021 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... |
<reponame>biosimulations/Biosimulations
import { Component, Input, ViewChild } from '@angular/core';
import {
RawSimulationLog,
CombineArchiveLog,
SedDocumentLog,
SedTaskLog,
SedReportLog,
SedPlot2DLog,
SedPlot3DLog,
StructuredLogLevel,
} from '../../../../simulation-logs-datamodel';
import {
Simulati... |
import * as vscode from "vscode";
import _ from 'lodash';
export class ParseError extends Error{}
export enum StatementType{
Class,
Function,
Other
}
export enum InclusionMode{
SelectionOnly,
Chunk
}
const startLiteral: any = {
')': '(',
']': '[',
'}': '{',
};
// decorators are... |
import {Component, Inject, OnDestroy, OnInit, ViewEncapsulation} from '@angular/core'
import {MAT_DIALOG_DATA, MatCalendarCellCssClasses, MatDatepickerInputEvent, MatDialog, MatDialogRef} from '@angular/material'
import {ReportCardEntryAtom} from '../models/report-card-entry.model'
import {fullUserName} from '../utils/... |
import {IToolbarItem} from '../../interfaces/toolbar';
import {ToolbarType} from '../../interfaces/toolbarType';
import * as _ from 'lodash';
const CUSTOM_ID = 'custom_';
/**
* @memberof miqStaticAssets
* @ngdoc controller
* @name ToolbarController
* @param $window {ng.IWindowService} window service for redirecti... |
import {CenterRotatable, CenterRotatableView, CenterRotatableData} from "./center_rotatable"
import {generic_area_legend} from "./utils"
import {PointGeometry, RectGeometry} from "core/geometry"
import {LineVector, FillVector} from "core/property_mixins"
import {Arrayable} from "core/types"
import {Class} from "core/cl... |
<filename>src/service/filters.ts
interface IFilter {
formatNumber: (source: number, format?: string) => string;
formatSize: (bytes: any, zeroToEmpty?: boolean, type?: string) => string;
formatSizeWithNegative: (bytes: any, zeroToEmpty?: boolean, type?: string) => string;
formatSpeed: (bytes: any, zeroToEmpty: b... |
<filename>stronghold/src/account/accountsdb.ts
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import { BufferMap } from 'buffer-map'
import { StrongholdTransact... |
import { Storage } from '@google-cloud/storage';
import { Datastore, DatastoreOptions } from '@google-cloud/datastore';
import { getServiceUnavailable, getInternalError, VerdaccioError } from '@verdaccio/commons-api';
import GoogleCloudStorageHandler from './storage';
import StorageHelper, { IStorageHelper } from './st... |
import * as React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { openModal, IModalProps } from '../Modals';
import { FindOptions, FindMode, ResultRow, ModalFindOptions, FindOptionsParsed } from '../FindOptions'
import { getQueryNiceName, PseudoType, QueryKey, getTypeInfo } fr... |
// WebRidge Design
// PR for spelling mistakes is very welcome!
interface TranslationDatabase {
[key: string]: {
en: string
nl: string
}
}
export default {
title: {
en: 'Contact Tracing',
nl: 'Contacten Traceren',
},
subtitle: {
en: "Let's beat COVID-19 together",
nl: 'Samen krijgen ... |
import type { BasicTableProps, FetchParams, SorterResult } from '../types/table';
import type { PaginationProps } from '../types/pagination';
import {
ref,
unref,
ComputedRef,
computed,
onMounted,
watch,
reactive,
Ref,
watchEffect,
} from 'vue';
import { useTimeoutFn } from '/@/hooks/core/useTimeout';... |
/*
Copyright 2019 New Vector Ltd
Copyright 2019 <NAME> <<EMAIL>>
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
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/lice... |
<filename>server/src/server.ts
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* --------------------------... |
import webpack, { RuleSetRule, Configuration } from 'webpack';
import path from 'path';
import fs from 'fs';
import { readConfig, searchScriptFile } from '@bytedance/mona-shared';
import { ProjectConfig, AppConfig } from '@bytedance/mona'
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import ReactRefreshWe... |
'use strict';
import { Client } from './clients/client_interface';
import { Dialogue } from './spec/dialogue';
import { Message, MessageType } from './spec/message';
import { Response } from './spec/response';
import { Turn, TurnType } from './spec/turn';
import { Config } from './config';
import { DialogueInvalidError... |
<reponame>digimatronics/MS_Visual_Studio
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*----------------------... |
<filename>packages/dataprovider/src/buildGqlQuery.ts<gh_stars>10-100
import {
ArgumentNode,
DocumentNode,
FieldNode,
IntrospectionField,
parse,
SelectionNode,
TypeKind,
VariableDefinitionNode,
} from "graphql";
import { QUERY_TYPES } from "ra-data-graphql";
import { DELETE, GET_LIST, GET_MANY, GET_MANY_... |
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { StackNavigationOptions, StackNavigationProp } from '@react-navigation/stack';
import { RouteProp } from '@react-navigation/native';
import { connect } from 'react-redux';
import { KeyboardAwareScrollView } from '@codler/react-native-ke... |
<gh_stars>0
import _ from 'lodash'
import Vue from 'vue'
import Vuex from 'vuex'
import username from 'username'
import { UsedConnection } from '../common/appdb/models/used_connection'
import { SavedConnection } from '../common/appdb/models/saved_connection'
import ConnectionProvider from '../lib/connection-provider'
... |
<gh_stars>1-10
// Copyright (C) 2019 The Android Open Source Project
//
// 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 req... |
<reponame>nitaxmx/celo-monorepo
import { ensureLeading0x, toChecksumAddress } from '@celo/utils/lib/address'
import { EIP712TypedData, generateTypedDataHash } from '@celo/utils/lib/sign-typed-data-utils'
import { parseSignatureWithoutPrefix, Signature } from '@celo/utils/lib/signatureUtils'
import debugFactory from 'de... |
<filename>src/convert.ts
export interface Unit {
name: {
singular: string;
plural: string;
};
to_anchor: number;
anchor_shift?: number;
}
export interface Conversion<
TMeasures extends string,
TSystems extends string,
TUnits extends string
> {
abbr: TUnits;
measure: TMeasures;
system: TSyst... |
import { MongoDriverError } from '../error';
import {
GridFSBucketReadStream,
GridFSBucketReadStreamOptions,
GridFSBucketReadStreamOptionsWithRevision,
GridFSFile
} from './download';
import { GridFSBucketWriteStream, GridFSBucketWriteStreamOptions, GridFSChunk } from './upload';
import { executeLegacyOperation... |
<gh_stars>1-10
import {BitMask, IBitMask, IReadOnlyBitMask} from '../shared/BitMask';
import {mandatoryPressureLevels} from '../stnm/Parser';
/**
* Represents a JSON-type string stored in `h.0`, `h.1`, .. keys in the localStorage.
*/
export declare interface IStorageHistoryEntity {
block: string, // block express... |
<reponame>gristlabs/grainjs<filename>lib/domevent.ts
/**
* domevent provides a way to listen to DOM events, similar to JQuery's `on()` function. Its
* methods are also exposed via the dom.js module, as `dom.on()`, etc.
*
* It is typically used as an argument to the dom() function:
*
* dom('div', dom.on('click'... |
<reponame>Hemankita/refarch-kc-ui
import { Component, OnInit } from '@angular/core';
import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http';
import { Ship } from './ship';
import { Container } from './container';
import { ViewChild, ElementRef } from '@angular/core';
import { FleetService } f... |
import * as vscode from "vscode";
import * as utilities from "../utilities";
import * as fs from "fs";
import * as path from "path";
import * as state from "../state"
import * as connector from "../connector";
import {nClient, cljSession, cljsSession} from "../connector";
import statusbar from "../statusbar";
import { ... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
<reponame>skytangleisky/vue-element-admin
interface JQuery {
zTree: IzTree;
}
interface IJSON {
[key: string]: any
}
interface ITreeNode {
checked?: boolean;
children?: Array<ITreeNode>;
chkDisabled?: boolean;
click?: CallBackOnFn;
getCheckStatus?: () => object;
getIndex?: () => number;
getNextNode?... |
import "raf/polyfill"
import createMemoryHistory from "history/createMemoryHistory"
import { newRouter, routerPath, Router } from "../src/kpd-router"
import * as React from "react"
import { createRenderer, ShallowRenderer } from "react-test-renderer/shallow"
import * as ReactTestUtils from "react-dom/test-utils"
impo... |
import React, { memo, useContext, useEffect, useState } from 'react'
import cx from 'classnames'
import { createUseStyles } from 'react-jss'
import winImg from '../../../assets/img/end_win.svg'
import loseImg from '../../../assets/img/end_lose.svg'
import tieImg from '../../../assets/img/end_tie.svg'
// import firewor... |
<filename>lambdas/src/apis/collections/controllers/wearables.ts
import { toQueryParams } from '@dcl/catalyst-node-commons'
import { EntityType } from 'dcl-catalyst-commons'
import { EthAddress } from 'dcl-crypto'
import { Request, Response } from 'express'
import log4js from 'log4js'
import { asArray, asInt } from '../... |
import {
Component,
OnInit,
AfterViewInit,
Input,
Output,
EventEmitter,
forwardRef,
ElementRef,
ViewChild, OnDestroy
} from '@angular/core';
import {Router, ActivatedRoute} from '@angular/router';
import {FormBuilder, Validators} from '@angular/forms';
import {Observable, Subject} f... |
<reponame>widgetworks/js-webflow-api
import fetch from 'isomorphic-fetch';
import qs from 'qs';
import { isObjectEmpty } from './utils';
import ResponseWrapper from './ResponseWrapper';
import WebflowError, { buildRequiredArgError } from './WebflowError';
import {IApiItem, IForCollection, IForCollectionItem, IForSite,... |
import * as React from 'react';
import { ChessInstance, Move, Square as TSquare } from 'chess.js';
import { PromotionOverlay, PromotionPiece } from './PromotionOverlay';
import { Square, SquareHighlight } from './Square';
import { useDimensions } from '../useDimensions';
import styles from './Board.css';
interface B... |
/** @jsxRuntime classic */
/** @jsx jsx */
// eslint-disable-next-line no-unused-vars
import React from 'react'
import { css, jsx, keyframes } from '@emotion/react'
import Global, { common } from '../../styles/global'
import baseColor, { grey, green, red, blue, yellow } from '../../styles/colors'
import { weight } from... |
const entities: {[name: string]: string} = {
quot: "\u0022",
amp: "&",
apos: "\u0027",
lt: "<",
gt: ">",
nbsp: "\u00A0",
iexcl: "\u00A1",
cent: "\u00A2",
pound: "\u00A3",
curren: "\u00A4",
yen: "\u00A5",
brvbar: "\u00A6",
sect: "\u00A7",
uml: "\u00A8",
copy: "\u00A9",
ordf: "\u00AA",
l... |
<reponame>alphabr/primeng
import {NgModule,Component,ElementRef,AfterViewChecked,AfterViewInit,OnDestroy,Input,Output,EventEmitter,ChangeDetectionStrategy} from '@angular/core';
import {CommonModule} from '@angular/common';
import {DomHandler} from 'primeng/dom';
@Component({
selector: 'p-galleria',
template: ... |
<gh_stars>0
/**
* @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 {AotCompilerHost, StaticSymbol} from '@angular/compiler';
import {AngularCompilerOptions, Metadat... |
/**
* Created by ananya.chandra on 14/09/18.
*/
import * as React from "react";
import * as PropTypes from "prop-types";
import { StyleProp, View, ViewStyle } from "react-native";
import RecyclerListView, { RecyclerListViewState, RecyclerListViewProps } from "./RecyclerListView";
import { ScrollEvent } from "./scrol... |
import { Component, Input, Output, EventEmitter, OnChanges, ChangeDetectionStrategy, TemplateRef } from '@angular/core';
import { trigger, style, animate, transition } from '@angular/animations';
import { formatLabel, escapeLabel } from '../common/label.helper';
import { DataItem } from '../models/chart-data.model';
im... |
<filename>packages/redis/src/RedisStreamSource.ts
/*
Copyright (c) Walmart Inc.
This source code is licensed under the Apache 2.0 license found in the
LICENSE file in the root directory of this source tree.
*/
import {
IInputSource,
IRequireInitialization,
IDisposable,
MessageRef,
IComponentContex... |
"use strict";
import * as vscode from "vscode";
import * as Abstract from "abstract-sdk";
import * as path from "path";
import * as cp from "child_process";
import prettyHtml from "json-pretty-html";
interface Entry {
id: string;
title: string;
type: string;
obj: any;
}
function descriptorForEntry(entry: Entr... |
/* eslint-disable consistent-return */
/* eslint-disable no-nested-ternary */
import {
Button,
Icon,
Input,
message,
Modal,
Popconfirm,
Row,
Table,
Divider,
Pagination,
} from 'antd';
import FormItem from 'antd/lib/form/FormItem';
import _ from 'lodash';
import { isMoment } from 'moment';
import Rea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.