text stringlengths 3.3k 33k |
|---|
<gh_stars>0
/**
* crud-actions.ts file
*/
import { ITreeData } from '../base/interface';
import { isNullOrUndefined, extend, getValue } from '@syncfusion/ej2-base';
import { TreeGrid } from '../base';
import { DataManager } from '@syncfusion/ej2-data';
import { extendArray, getPlainData, getParentData } from '../util... |
<filename>src/m365/file/commands/file-add.ts
import * as fs from 'fs';
import * as path from 'path';
import * as url from 'url';
import { Logger } from '../../../cli';
import {
CommandOption
} from '../../../Command';
import GlobalOptions from '../../../GlobalOptions';
import request from '../../../request';
import G... |
/**
* @license
* Copyright 2017 Google Inc.
*
* 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 ... |
<reponame>marko-tisma/sms-emu
import * as alu from "./alu";
import { Bus } from "./bus";
import { decode, Instruction, InterruptMode } from "./decoder";
import { Register } from "./register";
import { generateInstructionTable } from "./table_generator";
import { toSigned } from "./util";
export enum RegisterName {
... |
import React, { useCallback, useMemo, useState } from 'react';
import {
DATA_ATTRIBUTE_DROP_CONTAINER,
IconFont,
scrollBlockEleIntoView,
TextStyle,
useBlock,
useEditorContext,
useFocusIdx,
useHoverIdx,
useRefState,
} from 'easy-email-editor';
import {
BasicType,
BlockManager,
getChildIdx,
getI... |
import { AnyOS, LinuxOS } from './getos';
import { resolveConfig, ResolveConfigVariables } from './resolveConfig';
import debug from 'debug';
import * as semver from 'semver';
import { isNullOrUndefined } from './utils';
import { BaseDryMongoBinaryOptions, DryMongoBinary } from './DryMongoBinary';
import { URL } from '... |
import {isNumber, isObject} from 'vega-util';
import {Channel} from '../channel';
import {Config} from '../config';
import {Encoding, extractTransformsFromEncoding} from '../encoding';
import * as log from '../log';
import {isMarkDef, MarkDef} from '../mark';
import {GenericUnitSpec, NormalizedLayerSpec, NormalizedUnit... |
<gh_stars>1-10
import {Bean, Context, Autowired} from "../../context/context";
import {RowNode} from "../../entities/rowNode";
import {Utils as _} from "../../utils";
import {GridOptionsWrapper} from "../../gridOptionsWrapper";
import {SelectionController} from "../../selectionController";
import {EventService} from ".... |
import { Api } from "../Api";
import { Method } from "../Method";
import { ParameterType } from "../Parameter";
import * as fs from "fs";
import * as path from "path";
import * as CommonGenerator from "./CommonGenerator";
import { ModificableTemplate } from "./CommonGenerator";
import { TypescriptFile } from "../Typesc... |
/* tslint:disable:ordered-imports */
import * as React from 'react';
class JqxTree extends React.PureComponent<ITreeProps, IState> {
protected static getDerivedStateFromProps(props: ITreeProps, state: IState): null | IState {
if (!Object.is) {
Object.is = function (x, y) {
if (... |
<filename>src/vendor/confluence/main/inject-frame.ts<gh_stars>1-10
import {
dd,
qs,
} from "#/util/dom";
import {
confluence_editor_injections,
} from '#/common/static';
export const SR_HASH_VE_PAGE_EDIT_MODE = '#editor';
// export const P_SRC_WYSIWYG_EDITOR = 'https://ced-cdn-test.s3-us-gov-west-1.amazonaws.com/... |
import { ListItemIcon, ListItemText, Menu, MenuItem } from '@material-ui/core';
import _ from 'lodash';
import React from 'react';
import { getRandomInt, UnigraphObject } from 'unigraph-dev-common/lib/api/unigraph';
import { AutoDynamicViewCallbacks, ContextMenuGenerator } from '../../types/ObjectView';
import { isMult... |
import { Express } from 'express';
import { isNil, orderBy } from 'lodash';
import MetaData from '../classes/MetaData';
import Settings from '../classes/Settings';
import {
ASSIGN_TEACUP_KEY,
ASSIGN_TEAPOT_KEY,
BOOT_STAGES,
BOOT_STAGES_KEY, BOOT_STAGES_LIST, EXPRESS_DIRECTIVES,
PLUGINS_KEY, REGISTERED_DIRECTI... |
import { DateKind } from "./Date";
import { second } from "./Date";
import { minute } from "./Date";
import { hour } from "./Date";
import { day } from "./Date";
import { month } from "./Date";
import { year } from "./Date";
import { escape } from "./RegExp";
import { hasInterface, toString } from "./Util";
const fsFo... |
import fs from 'fs';
import net from 'net';
import byline from 'byline';
import { ApiClient } from 'backend/api/api-client';
import { DisposableContainer, disposableFromFunction } from 'backend/disposable-container';
import { FsService } from 'backend/fs/fs-service';
import { GameService } from 'backend/game/game... |
<reponame>guildes/ponferrada
import { Address, isSendTransaction, SendTransaction, UnsignedTransaction, WithCreator } from "@iov/bcp";
import {
BnsConnection,
CreateProposalTx,
isCreateProposalTx,
isRegisterUsernameTx,
isVoteTx,
RegisterUsernameTx,
VoteTx,
} from "@iov/bns";
import { Bip39, Random } from ... |
import { EthersSigner, ContractDependenciesEthers } from '@augurproject/contract-dependencies-ethers';
import { EthersProvider } from '@augurproject/ethersjs-provider';
import { SubscriptionEventName } from '@augurproject/sdk-lite';
import { logger, LoggerLevels, SDKConfiguration } from '@augurproject/utils';
import { ... |
<filename>public/app/features/live/centrifuge/service.ts
import Centrifuge from 'centrifuge/dist/centrifuge';
import { LiveDataStreamOptions } from '@grafana/runtime';
import { toDataQueryError } from '@grafana/runtime/src/utils/toDataQueryError';
import { BehaviorSubject, Observable } from 'rxjs';
import {
DataFrame... |
import { APIResource } from '../../store/src/types/api.types';
import { IService, IServiceBinding } from './cf-api-svc.types';
import { CfUser } from './store/types/cf-user.types';
export interface StratosCFEntity {
cfGuid: string;
}
export interface IQuotaDefinition {
guid?: string;
name: string;
organizatio... |
import { uniq, difference, last } from 'lodash'
import { strip } from 'clean-text-utils'
import { getArmy } from 'utils/getArmy'
import {
BEASTCLAW_RAIDERS,
BEASTS_OF_CHAOS,
BONESPLITTERZ,
DAUGHTERS_OF_KHAINE,
DISPOSSESSED,
EVERCHOSEN,
FLESH_EATER_COURTS,
FYRESLAYERS,
GLOOMSPITE_GITZ,
GUTBUSTERS,
... |
<filename>src/services/Logquacious.ts
import { Results } from "./Results"
import { Loading } from "./Loading"
import { Elasticsearch, IDataSource, Result } from "../backends/elasticsearch/Elasticsearch"
import { Query } from "./Query"
import { Histogram } from "./Histogram"
import { Display, DisplayCallback, Filter } f... |
import { SplashScreen } from '@capacitor/splash-screen';
import { IonButton, IonCol, IonContent, IonGrid, IonPage, IonRow, isPlatform } from '@ionic/react';
import { NativeBiometric } from 'capacitor-native-biometric';
import React, { useEffect, useState, ReactElement } from 'react';
import { useQuery } from 'react-que... |
import "jest";
import * as R from "ramda";
import { RootNode, NodeKind, Split } from "../interfaces/input";
import {
AnimationKind,
planAnimation,
AnimationGroup,
} from "../plan-animation";
describe("planAnimation", () => {
const templatedTest = (template: string) => () => {
const testCase = parseCase(tem... |
export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
export const af: (start: PluralCategory, end: PluralCategory) => "other";
export const ak: (start: PluralCategory, end: PluralCategory) => "one" | "other";
export const am: (start: PluralCategory, end: PluralCategory) => "one" | "other";
e... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*-----------------------------------------------------------... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import { SynthesisAdapterBase } from "../../common.speech/Exports";
import {
BackgroundEvent,
createNoDashGuid,
Events,
IAudioDestination,
INumberDictionary
} from "../../common/Exports";
import { AudioS... |
<filename>metaspace/graphql/src/modules/project/ProjectSourceRepository.ts<gh_stars>10-100
import { Brackets, EntityManager, EntityRepository } from 'typeorm'
import { Context, ContextUser } from '../../context'
import { Project as ProjectModel, UserProjectRoleOptions as UPRO } from './model'
import { ProjectSource } f... |
// We want to polyfill first.
import '../../shared/polyfills'
import React, { useCallback, useEffect, useMemo, useState } from 'react'
import { trimEnd, uniq } from 'lodash'
import { render } from 'react-dom'
import { from, noop, Observable } from 'rxjs'
import { catchError, distinctUntilChanged, map, mapTo } from 'r... |
<filename>src/angular-app/bellows/apps/userprofile/user-profile-app.component.ts
import * as angular from 'angular';
import {UserService} from '../../core/api/user.service';
import {ApplicationHeaderService} from '../../core/application-header.service';
import {BreadcrumbService} from '../../core/breadcrumbs/breadcrum... |
import React, { useRef } from 'react';
import PropTypes from 'prop-types';
import { Transition } from 'react-transition-group';
import IconButton from '@leafygreen-ui/icon-button';
import CaretUpIcon from '@leafygreen-ui/icon/dist/CaretUp';
import CaretDownIcon from '@leafygreen-ui/icon/dist/CaretDown';
import { css, c... |
<reponame>rafikalid/typescript-path-fix<filename>src/index.ts
import { readFileSync, statSync } from 'fs';
import ts from 'typescript';
import Through from 'through2';
import Vinyl from 'vinyl';
import { resolve, dirname, relative, sep as PathSep } from 'path';
const isWindows = PathSep === '\\';
export class Converte... |
<gh_stars>1-10
import * as crypto from 'crypto';
import { v4 as uuid } from 'uuid';
import { AxiosInstance } from 'axios';
import { mixinRequest, request } from '../services/request';
import { UserClient } from './user';
import { AddressClient } from './address';
import {
AddressClientRequest,
AddressCreateParams,... |
import {LedController, RgbColor} from '7-segment-display-controller';
import {Animations} from '7-segment-timer.contracts';
import {Animator} from './animator';
import {DividerDisplay} from './divider-display';
import {NumberDisplay} from './number-display';
const ledsPerSegment: number = 3;
const segmentsPerDigit: ... |
<reponame>lokokung/cts<gh_stars>0
export const description = `
Stress tests for GPUAdapter.requestDevice.
`;
import { Fixture } from '../../common/framework/fixture.js';
import { makeTestGroup } from '../../common/framework/test_group.js';
import { attemptGarbageCollection } from '../../common/util/collect_garbage.js'... |
/*
Copyright 2020 Adobe. All rights reserved.
This file is licensed to you 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 agre... |
import { Vec3 } from "./vec3";
/* Column-first */
class Mat4 {
private static _tmpMatrix = null; // helps for internal computing
private static get tmpMatrix(): Mat4 {
if (Mat4._tmpMatrix === null) {
Mat4._tmpMatrix = new Mat4();
}
return Mat4._tmpMatrix;
}
privat... |
<reponame>jason-appliedis/sp-dev-fx-controls-react
import { IContext } from '../Interfaces';
import { SPHelper } from './SPHelper';
import '../extensions/String.extensions';
import * as _ from '@microsoft/sp-lodash-subset';
import * as strings from 'ControlStrings';
export const IMG_SUPPORTED_EXTENSIONS = ".gif,.jpg... |
import React, { ReactElement, useContext } from 'react';
import {
AlignmentActionTypes,
AlignmentState,
} from 'contexts/alignment/reducer';
import { AlignmentContext } from 'contexts/alignment';
import { Link, Gloss, TextSegment, TextSegmentType } from 'core/structs';
import { findLinkForTextSegment } from 'core... |
import { Bit_Operation } from './bit-operation';
const _FNV32_PRIME = 16777619;
const _FNV64_PRIME = new Uint32Array( [ 0x000001B3, 0x100 ] );
const _SHA256_K = [
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74... |
<filename>src/renderer/dom-api.ts
import { AppGlobal, DomApi, EventEmitterData } from '../declarations';
import { KEY_CODE_MAP, NODE_TYPE } from '../util/constants';
import { toLowerCase } from '../util/helpers';
export const createDomApi = (App: AppGlobal, win: any, doc: Document): DomApi => {
// using the $ prefi... |
<reponame>XBS-Nathan/checkout-sdk-js<filename>src/payment/strategies/braintree/braintree.ts<gh_stars>0
import { BraintreePaypalButtonInitializeOptions } from '../../../checkout-buttons/strategies/braintree';
import { PaymentMethod } from '../../index';
import { GooglePaymentData, GooglePayBraintreeDataRequest, GooglePa... |
/**
* @license
* Copyright (C) 2017 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 require... |
<reponame>OWLThreatIntel/opencti<filename>opencti-platform/opencti-graphql/src/types/store.d.ts
import { SortResults } from '@elastic/elasticsearch/api/types';
import {
INPUT_BCC,
INPUT_BELONGS_TO,
INPUT_BODY_MULTIPART,
INPUT_BODY_RAW,
INPUT_CC,
INPUT_CHILD,
INPUT_CONTAINS,
INPUT_CONTENT,
INPUT_CREATO... |
import React, { ChangeEvent, FC, useEffect, useState, useContext } from 'react'
import getUnixTime from 'date-fns/getUnixTime'
import 'bulma-calendar/dist/css/bulma-calendar.min.css'
// @ts-ignore
import bulmaCalendar from 'bulma-calendar/dist/js/bulma-calendar.min.js'
import './farmer.css'
import {
ICreateProductPay... |
import React, { ReactNode } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import omit from 'lodash/omit';
import isEqual from 'lodash/isEqual';
import debounce from 'lodash/debounce';
import { action, computed, observable, toJS } from 'mobx';
import { pxToRem } from 'choerodon... |
<reponame>sheedydan/office365-cli
import { ContextInfo, ClientSvcResponse, ClientSvcResponseContents } from '../../spo';
import config from '../../../../config';
import request from '../../../../request';
import commands from '../../commands';
import GlobalOptions from '../../../../GlobalOptions';
import {
CommandOpt... |
/**
* Copyright 2018 ZenyWay S.A.S., <NAME>
* @author <NAME>
* @license Apache Version 2.0
*
* 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.... |
<gh_stars>0
/**
* This is a test script, to check all commands on a physical device
*/
import { MicroPythonDevice } from '../src/main';
// import { MicroPythonDevice } from 'micropython-ctl';
import assert from 'assert'
import crypto from 'crypto';
import { Buffer } from 'buffer'
import { SerialPort } from 'serialpor... |
<reponame>bevry/extract-timestamp
/** The regular expression used for finding a timestamp */
const timestampsRegex =
/(?:(?:(?<hours>\d{1,2}):)?(?<minutes>\d{1,2}):(?<seconds>\d{1,2})|(?<bits>(?:\d{1,2}(?:[hms]| ?(?:hour|min(?:ute)?|sec(?:ond)?)s?) ?)+))/
/** The regular expression used for extracting a timestmap in ... |
<reponame>sigerello/fuse-box<filename>src/quantum/plugin/QuantumOptions.ts
import { WebIndexPluginClass } from "../../plugins/WebIndexPlugin";
import { QuantumCore } from "./QuantumCore";
import { readFuseBoxModule, hashString } from "../../Utils";
import { FileAbstraction } from "../core/FileAbstraction";
import {... |
import React, { useState } from "react";
import { clipboard } from "electron";
import { useDispatch, useSelector } from "react-redux";
import ScriptEditor from "../script/ScriptEditor";
import castEventValue from "lib/helpers/castEventValue";
import { DropdownButton } from "ui/buttons/DropdownButton";
import { MenuDivi... |
<reponame>bumble-org/rollup-plugin-chrome-extension
import { promises as fs } from 'fs'
import MagicString from 'magic-string'
import { PreRenderedAsset, PreRenderedChunk } from 'rollup'
import { TransformResult, ViteDevServer } from 'vite'
import {
fileById,
idBySource,
ownerById,
setFileMeta,
setOutputMeta,... |
/**
* This file is open-source. This means that it can be reproduced in whole
* or in part, stored in a retrieval system transmitted in any form, or by
* any means electronic with my prior permission as an author and owner
* Please refer to the terms of the license agreement in the root of the project
*
* (c) 202... |
/// Bond assignment from position, taken directly from 3Dmol.js & adapted to
/// TypeScript
/// 3Dmol.js is licensed under a BSD-3-Clause license.
/// Copyright (c) 2014, University of Pittsburgh and contributors
import { AtomSpec } from './index';
// Covalent radii
const COVALENT_RADII: Record<string, number> = {
... |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
<gh_stars>100-1000
import { some, isEqual, reverse } from 'lodash';
import path from 'path';
import process from 'process';
import { getBuildArtifacts } from '../artifacts/BuildArtifacts';
import Contract from '../artifacts/Contract.js';
import { BuildArtifacts } from '../artifacts/BuildArtifacts.js';
import { Node, No... |
import { Knex } from 'knex';
import EventEmitter from 'events';
import { v4 as uuidv4 } from 'uuid';
import metricsHelper from '../util/metrics-helper';
import { DB_TIME } from '../metric-events';
import { Logger, LogProvider } from '../logger';
import NotFoundError from '../error/notfound-error';
import {
FeatureT... |
/**
* @license
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
import Rating from '../models/rating';
import Movies_model from '../models/movie'; //CRINCH
import Rating_model_movies from '../models/rating'; //CRINCH
import Rating_model_users from '../models/rating'; //CRINCH
import Rating_model_processing from '../models/rating'; //CRINCH
import BaseCtrl from './base';
/****... |
<reponame>marcello3d/json-diff3<filename>src/node-diff3.ts
// Based on https://github.com/bhousel/node-diff3
// MIT License
// Changes:
// - Migrated to TypeScript, use let/const
// - Removed unused functions
// - Generalized for any array type
import fastDiff from 'fast-diff';
import * as fastMyersDiff from 'fast-mye... |
/**
* Alerts is a collection of selectors which determine if there are any Alerts
* to display based on the current redux state.
*/
import _ from "lodash";
import moment from "moment";
import { createSelector } from "reselect";
import { Store } from "redux";
import { ThunkAction } from "redux-thunk";
import { Loca... |
<gh_stars>0
import PointerTracker, { Pointer } from 'pointer-tracker';
import './styles.css';
interface Point {
clientX: number;
clientY: number;
}
interface ChangeOptions {
/**
* Fire a 'change' event if values are different to current values
*/
allowChangeEvent?: boolean;
}
interface ApplyChangeOpts ... |
import {
h,
defineComponent,
ref,
inject,
computed,
onUpdated,
onMounted,
watch,
} from 'vue'
import { NOOP, capitalize } from '@vue/shared'
import {
useResizeObserver,
useDocumentVisibility,
useWindowFocus,
} from '@vueuse/core'
import { debounce } from 'lodash-unified'
import {
buildProps,
d... |
<gh_stars>0
import { System_Array, MethodHandle } from '../Platform/Platform';
import { getRenderTreeEditPtr, renderTreeEdit, RenderTreeEditPointer, EditType } from './RenderTreeEdit';
import { getTreeFramePtr, renderTreeFrame, FrameType, RenderTreeFramePointer } from './RenderTreeFrame';
import { platform } from '../E... |
import { ChangeEvent, MouseEvent, useCallback, useEffect, useMemo, useState } from 'react';
import { Link, useHistory } from 'react-router-dom';
import zxcvbn from 'zxcvbn';
import {
alpha,
Button,
CircularProgress,
Collapse,
Container,
IconButton,
InputAdornment,
LinearProgress,
styled,
TextField,
... |
<reponame>project-kotinos/apicurio-studio<filename>front-end/studio/src/app/pages/apis/{apiId}/editor/_components/editors/security-scheme-editor.component.ts
/**
* @license
* Copyright 2018 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... |
<reponame>thehubbleproject/hubble-contracts
import { BigNumber, Wallet } from "ethers";
import { BlsSigner } from "./blsSigner";
import { PubkeyDatabaseEngine, StateDatabaseEngine } from "./client/database";
import { StorageManager } from "./client/storageEngine";
import { BatchMemoryStorage } from "./client/storageEng... |
import { bind } from 'lodash-decorators';
import * as React from 'react';
import styled, { css } from 'styled-components';
import { SelectLabel } from './label';
import { keys, getValueOptions, getWindow, toKey } from './utils';
import { SelectProps, Option } from './typings';
import { ValueComponentMulti } from './val... |
<filename>packages/launchdarkly-adapter/modules/adapter/adapter.ts<gh_stars>1-10
import type { DeepReadonly } from 'ts-essentials';
import type {
TFlagName,
TFlagVariation,
TAdapterStatus,
TUser,
TFlag,
TFlags,
TLaunchDarklyAdapterArgs,
TAdapterEventHandlers,
} from '@flopflip/types';
import {
TLaunch... |
import React, { useState, useEffect, useRef } from 'react'
import hash from 'object-hash'
import {
Toolbar, Typography, Backdrop
// , Button
, Hidden
, IconButton, Chip,
Avatar, Box, Container, Paper
// , Dialog
, DialogTitle
, DialogActions, DialogContent, Theme, useTheme,
createSty... |
<filename>src/rules/whitespaceRule.ts
/**
* @license
* Copyright 2013 Palantir Technologies, Inc.
*
* 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/license... |
<gh_stars>0
import { getTalentStatKey } from "../../../Build/Build"
import { FormulaItem, IFormulaSheet } from "../../../Types/character"
import { basicDMGFormula } from "../../../Util/FormulaUtil"
const data = {
baseStat: {
characterHP: [1144, 2967, 3948, 5908, 6605, 7599, 8528, 9533, 10230, 11243, 11940, 12965... |
import { AdapterRequest, AdapterResponse, Middleware } from '@chainlink/types'
import hash from 'object-hash'
import { logger } from '../external-adapter'
import {
delay,
exponentialBackOffMs,
getHashOpts,
getWithCoalescing,
parseBool,
uuid,
} from '../util'
import * as local from './local'
import * as metr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { FC, Fragment, useEffect, useState } from 'react'
import {
WallCreateCommentParams,
WallCreateCommentResponse,
WallGetByIdExtendedResponse,
WallGetByIdParams,
WallGetCommentsExtendedResponse,
WallGetCommentsParams,
WallWallComment,
WallWallpostAttachment,
WallWallpostFull,
} from '@vkontakte/a... |
interface IToastrOptions {
closeButton?: boolean;
debug?: boolean;
positionClass?: string;
onclick?: () => void;
showDuration?: string;
hideDuration?: string;
timeOut?: string;
extendedTimeOut?: string;
showEasing?: string;
hideEasing?: string;
showMethod?: string;
hideMe... |
/* eslint-disable jsx-a11y/label-has-associated-control */
import React, {
useEffect,
useState,
useCallback,
ChangeEvent,
FormEvent,
useContext,
} from 'react';
import { Link, useHistory, useParams } from 'react-router-dom';
import { FiArrowLeft } from 'react-icons/fi';
import Toggle from 'react-toggle';
im... |
/*---------------------------------------------------------------------------------------------
* 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 React, {Component} from 'react'
import {css} from 'aphrodite/no-important'
import {EVENTS} from 'griffith-message'
import {logger, ua} from 'griffith-utils'
import {PlaybackRate, Quality, PlaySource} from '../types'
import VideoSourceContext from '../contexts/VideoSourceContext'
import VideoWithMessage, {VideoCo... |
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from 'react-native-screens/native-stack';
import PermissionError from '../pages/PermissionError';
import React, { useState, } from 'react';
import HomePage from '../pages/HomePage';
import Settings from '../pages/Settings'... |
<filename>src/ts/__tests__/privacyGroupManagement.test.ts
import { providers, utils } from '../index'
jest.setTimeout(15000)
const urlNode1 = "http://localhost:20000";
const providerNode1 = new providers.PrivateJsonRpcProvider(urlNode1);
providerNode1.on('debug', (info) => {
console.log(`Sent "${info.action}" ac... |
import React, {ChangeEvent, Dispatch, FC, useCallback, useEffect, useMemo} from 'react';
import {useDispatch, useSelector} from 'react-redux';
import clsx from 'clsx';
import noop from 'lodash/noop';
import {Account} from 'thenewboston';
import {Button, Icon, IconType} from '@thenewboston/ui';
import ExpandableText fr... |
<gh_stars>1-10
import { Writable, Readable, Transform, Stream, Duplex } from "readable-stream";
import {
Writable as NodeJSWritable,
Readable as NodeJSReadable,
Transform as NodeJSTransform,
Duplex as NodeJSDuplex,
} from "stream";
import MultiReadStream from "multistream";
import MultiWriteStream from "multi-w... |
import { Component, run, reactive, version } from 'reactive-tsx'
import * as pako from 'pako'
import * as monaco from 'monaco-editor'
import reactiveTsxTransformer from 'reactive-tsx/lib/transformer'
import removeExportTransformer from 'reactive-tsx/lib/transformer-remove-export'
import * as ts from 'typescript'
import... |
<gh_stars>0
import { LOCKFILE_POLLING_RATE } from "./../constants";
import https from "https";
import log from "electron-log";
import { readFileSync } from "fs";
import { BrowserWindow, ipcMain } from "electron";
import axios, { AxiosRequestHeaders, AxiosResponse, Method } from "axios";
import LcuWebsocketReply from "@... |
<filename>packages/server/src/modules/inspections/services/CreateInspectionService.ts
import { addDays, endOfDay } from 'date-fns';
import { injectable, inject } from 'tsyringe';
import IStorageProvider from '@shared/container/providers/StorageProvider/models/IStorageProvider';
import Inspection from '@modules/inspec... |
import { useEffect, useState } from 'react';
import styled from 'styled-components';
import ProductImage from '../../components/itemBuy/ProductImage';
import ProductName from '../../components/itemBuy/ProductName';
import ProductCategory from '../../components/itemBuy/ProductCategory';
import DealRegion from '../../co... |
<gh_stars>0
import { Element, ElementContent } from './element';
import { ElementAction } from './element-action';
import { isEqual } from 'lodash';
import * as Mobx from 'mobx';
import { Page } from './page';
import { PatternLibrary } from './pattern-library';
import * as Types from '../types';
import { UserStore } fr... |
import * as React from "react";
import { OnHover } from "@libs/OnHover.tsx";
import { RightOutlined, DownOutlined } from "@ant-design/icons";
import { useHistory, useLocation } from "react-router-dom";
let currentScrollTopOfSideNav = 0;
const getParentPath = (
pages: Pages,
targetPath: string
): string | unde... |
<filename>nodejs/awsx/network.ts
// Copyright 2016-2018, Pulumi Corporation.
//
// 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
//
// Unl... |
<filename>packages/angular-v10/angular-v10.webpack.ts
import { BuilderContext } from '@angular-devkit/architect';
import { DevServerBuilderOptions } from '@angular-devkit/build-angular';
import {
getBrowserConfig,
getCommonConfig,
getStatsConfig,
getStylesConfig,
getAotConfig,
getNonAotConfig
} from '@angul... |
type Constructor<T> = { new(...args: any[]): T };
type Factory<T> = (ctor: Constructor<T>) => T;
type PropertyNames<T> = { [K in keyof T]: K }[keyof T];
export type PropertyOptions<T> = { [P in PropertyNames<T>]?: SerializablePropertyOptions<NonNullable<T[P]>> };
export type SerializableTypeInfo<T> = {
readonly au... |
import {Buffer} from 'buffer';
import WebSocketServer from './WebSocketServer';
import * as stream from 'stream';
import {randomFillSync} from 'crypto';
class KeepAlive {
ws: WebSocket;
private currentIndex: number;
private tryCount: number;
private timer?: NodeJS.Timeout;
private _listener: any;
constru... |
<reponame>ledhed2222/ripple-lib
import { IncomingMessage } from 'http'
import { request as httpsRequest, RequestOptions } from 'https'
import { isValidClassicAddress } from 'ripple-address-codec'
import type { Client } from '..'
import { RippledError, XRPLFaucetError } from '../errors'
import { GeneratedAddress } fro... |
<filename>src/Glevb.ts
import Point2D from './Point2D';
import GlevbSettings from './GlevbSettings';
import KeyState from './KeyState';
import MouseProperties from './MouseProperties';
import GlevbEvent from './GlevbEvent';
import Keys from './Keys';
const defaults: GlevbSettings = Object.freeze({
root: document.g... |
<reponame>webmaster128/ponferrada<filename>packages/sanes-browser-extension/src/extension/background/model/persona/index.ts
import { Address, Amount, ChainId, isSendTransaction, SendTransaction, UnsignedTransaction } from "@iov/bcp";
import {
bnsCodec,
BnsConnection,
BnsUsernameNft,
CreateProposalTx,
DeleteAc... |
<gh_stars>0
/**
* @license
* Copyright (C) 2017 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
*
* Un... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import KeyCode from 'rc-util/lib/KeyCode';
import contains from 'rc-util/lib/Dom/contains';
import Animate from 'rc-animate';
import LazyRenderBox from './LazyRenderBox';
import getScrollBarSize from 'rc-util/lib/getScrollBarSize';
import IDialogPro... |
<reponame>vergecurrency/MyVergies
import { LocaleDefinition } from '@/locale/locale'
const en: LocaleDefinition = {
name: 'English',
main: {
menu: {
wallets: 'Wallets',
add: 'Add new wallet',
blockchain: 'Blockchain',
settings: 'Settings',
about: 'About'
},
copiedSuccessfu... |
<reponame>bovandersteene/angular-testing-library
import { ChangeDetectorRef, Component, Type, NgZone, SimpleChange, OnChanges, SimpleChanges } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { BrowserAnimationsModule, NoopAn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.