text
stringlengths
3.08k
15.5k
<filename>src/helpers/parser.ts<gh_stars>1-10 import _ from 'lodash'; import path from 'path'; import { ParsedArgs, ParsedOptions, MappedOptions, OptionRequirement, ParsedOptionContent, MappedOptionValue, ParsedOptionValue, Sanitizer, MappedArgs, ArgRequirement, MappedArgValue, } from '../interfa...
import React from 'react'; import { connect } from 'react-redux'; const { Checkbox, Input } = require('nav-frontend-skjema'); import { DispatchProps } from 'common/redux/types'; import { useIntl } from 'react-intl'; import AnnenForelder from '../../types/domain/AnnenForelder'; import getMessage from 'common/util/i18nUt...
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. // **********************************************...
import { basename } from 'path' import { ACCESS_TOKEN } from './auth' import { getAncestor } from './dom' import { getAccountPage, getAccounts } from './request' import { IAccount, Window } from './types/deftype' import { isHTMLElem } from './types/typeguards' // For window.origin // tslint:disable-next-line:interface...
import { Injectable } from '@nestjs/common'; import { HomeAssistantCoreService, LightDomainService, } from '@text-based/home-assistant'; import { AutoLogService, CacheManagerService, InjectCache, InjectConfig, InjectLogger, INVERT_VALUE, is, IsEmpty, } from '@text-based/utilities'; import { each } f...
<gh_stars>0 import { Component, Input } from '@angular/core'; import { Router } from '@angular/router'; import { CarritoComprasService } from './carritoCompras.service'; /** * This class represents the lazy loaded HomeComponent. */ @Component({ moduleId: module.id, selector: 'producto-cmp', templateUrl: 'producto....
<filename>testHelpers/server/ts/utils.ts /* Copyright (c) 2020, VRAI Labs and/or its affiliates. All rights reserved. * * This software is licensed under the Apache License, Version 2.0 (the * "License") as published by the Apache Software Foundation. * * You may not use this file except in compliance with the Lic...
import { Arr, Singleton, Strings, Type } from '@ephox/katamari'; import { Adjustments, ResizeBehaviour, ResizeWire, Sizes, TableConversions, TableGridSize, TableLookup, TableResize, Warehouse } from '@ephox/snooker'; import { Attribute, Css, SugarElement } from '@ephox/sugar'; import Editor from 'tinymce/core/api/Edit...
<gh_stars>1-10 import * as React from 'react'; import { GraphQLStore, StoreState } from './Store'; import { Context, fetchGraphql, GraphQLClient, Method, MethodConfig, Methods, MethodsDict } from './Client'; interface State extends HookState<any, any> { updated?: number; } export const GraphQLStoreC...
<filename>src/app/tools/tracks/tracks.component.ts<gh_stars>1-10 import { Component, OnInit } from '@angular/core'; import { GoogleAnalyticsService } from 'ngx-google-analytics'; import { readFile } from './track-reader'; import { Track, Cue, supportFormats } from './media-formats'; declare global { interface String ...
<gh_stars>1-10 import ma = require('vsts-task-lib/mock-answer'); import tmrm = require('vsts-task-lib/mock-run'); import path = require('path'); import fs = require('fs'); var Readable = require('stream').Readable var Writable = require('stream').Writable var Stats = require('fs').Stats var nock = require('nock'); l...
// Copyright (c) 2021, <NAME>ATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
<gh_stars>0 // Import LitElement base class and html helper function import { LitElement, html, property, customElement, TemplateResult, } from 'lit-element'; import { EntityStore } from 'remix-store'; interface Tab { id: string; // should be unique title: string; icon: string; tooltip: string; } f...
import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; import { stringify } from "query-string"; import langId from "./resolver"; type TransOptions = { from?: string; to: string; interfaceLang?: string; htmlTag?: boolean; resolve?: boolean; axiosConfig?: AxiosRequestConfig, contents?: Array<'t...
<filename>packages/web/src/logger.ts import { loggers, ILogger, IMidwayLogger, MidwayContextLogger, } from '@midwayjs/logger'; import { join, isAbsolute } from 'path'; import { existsSync, lstatSync, readFileSync, renameSync, unlinkSync, } from 'fs'; import { Application, EggLogger, Context } from 'eg...
<filename>src/vs/editor/contrib/smartSelect/common/smartSelect.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information....
/* This file contains the logic to report custom frontend events */ import { kea } from 'kea' import { keyMapping } from 'lib/components/PropertyKeyInfo' import posthog from 'posthog-js' import { userLogic } from 'scenes/userLogic' import { eventUsageLogicType } from './eventUsageLogicType' import { AnnotationType, Fil...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import styled from 'styled-components'; import { EuiDescriptionList, EuiH...
import {text} from 'd3-request'; import {select, selectAll, Selection} from 'd3-selection'; import * as hljs from 'highlight.js'; import embed, {vega} from 'vega-embed'; import {vegaLite} from 'vega-tooltip'; import {TopLevelExtendedSpec} from '../../src/spec'; import {runStreamingExample} from './streaming'; window['...
<reponame>gagliardetto/sourcegraph import * as metrics from './metrics' import * as pgModels from '../models/pg' import pRetry from 'p-retry' import { Configuration } from '../config/config' import { Connection, createConnection as _createConnection, EntityManager } from 'typeorm' import { instrument } from '../metrics...
import React, { PureComponent } from 'react'; import classnames from 'classnames'; import { BaseSearchBarProps } from './PropsType'; import Icon from '../icon'; import InputBase from '../input/InputBase'; let shouldUpdatePosition = false; export interface SearchBarProps extends BaseSearchBarProps { prefixCls?: stri...
<gh_stars>0 /*! * Copyright 2022 Google LLC. All Rights Reserved. * * 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 requi...
/* eslint-disable @typescript-eslint/no-empty-function */ /* eslint-disable no-console */ /* eslint-disable dot-notation */ import { Plugin, OnResolverCalledHook, EnvelopError, isAsyncIterable } from '@envelop/core'; import * as Sentry from '@sentry/node'; import type { Span } from '@sentry/types'; import { ExecutionAr...
<gh_stars>100-1000 import fs = require("fs-extra"); import yaml = require("js-yaml"); import request = require("request"); import path = require("path"); import {LoadOptions} from "js-yaml"; import {RecursiveNestingError} from "./errors/recursive-nesting.error"; function isUrl(s) { const regexp = /^(ftp|http|https...
<reponame>DenisCarriere/ascdk<gh_stars>0 import { IDXDB, SecondaryValue, SecondaryIterator } from "./idxdb"; import { DBI64, PrimaryIterator, PrimaryValue } from "./dbi64"; import { Name } from "./name"; import { check } from "./system"; export const SAME_PAYER = new Name(); const noAvailablePrimaryKey = <u64>(-2) //...
<reponame>fmeet/fm-react /* Copyright 2019 FM Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
<gh_stars>10-100 /** * Fault tolerance for a series of `Stream` (the "raw" value returned by an RPC). * * @module ModuleRpcClient * * @license * Copyright (c) Aiden.ai * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as e...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { AppBar, Button, Card, CardContent, CardHeader, CircularProgress, createStyles, FormControl, FormControlLabel, FormHelperText, InputAdornment, makeStyles, Paper, Radio, RadioGroup, TextField, Theme, Toolbar, Typography } from "@material-ui/core"; import { useWeb3React } from "@web3-react/core"; import { Web3Pro...
import { DICT1 } from '../data/dict1'; import { DICT2 } from '../data/dict2'; import { DICT3 } from '../data/dict3'; import { DICT4 } from '../data/dict4'; import { DICT5 } from '../data/dict5'; import { INITIAL_LIST } from '../data/initial'; const dictArr = [DICT1, DICT2, DICT3, DICT4, DICT5]; type GetPinYin = (word:...
/** * Copyright 2020 NT.GG 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 or agreed to...
import React, { useState } from 'react'; import { styled, keyframes } from '@stitches/react'; import { Cross2Icon, TriangleLeftIcon, TriangleRightIcon, } from '@radix-ui/react-icons'; import * as DialogPrimitive from '@radix-ui/react-dialog'; import { Box } from '../primitives/box'; import Image from 'next/image...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import * as fs from 'fs-extra'; import * as path from 'path'; import { CancellationTokenSource, Position, Uri, window, workspace } from 'vscode'; import { IProcessServiceFactory } from '../../client/common/pr...
import { Server, createServer, IncomingMessage } from 'http' import net, { Socket, AddressInfo } from 'net' import url from 'url' import request, { Response } from 'request' import { gunzip, inflate } from 'zlib' import { proxyLogger } from '../logging/loggers' import { EventProxy } from './EventProxy' import {...
<filename>packages/scroller/src/core.ts import { EventEmitter, EventListenerCb, listenCompose, Unlisten, } from '@smoovy/event'; import { Ticker } from '@smoovy/ticker'; import { TweenOptions } from '@smoovy/tween'; import { Coordinate, isNum } from '@smoovy/utils'; import { ScrollerDom, ScrollerDomConfig, ScrollerD...
<filename>scripts/build.ts import fs, { existsSync } from 'fs'; import { kebabCase } from 'lodash'; import path from 'path'; import { createInterface } from 'readline'; import { ExternalOption, rollup } from 'rollup'; import dts from 'rollup-plugin-dts'; import esbuild from 'rollup-plugin-esbuild'; import { typescriptP...
import React, { useState, useEffect, useMemo, useRef } from 'react'; import { processFile, ParseCallback, BaseRow } from '../parser'; import { FileStepState } from './file-step/FileStep'; import { FieldsStepState } from './fields-step/FieldsStep'; import { ImporterFilePreview, ImportInfo } from './ImporterProps'; impo...
// from https://www.w3.org/TR/css-color-4/#named-colors const colors: Record<string, string> = { aliceblue: '#F0F8FF', antiquewhite: '#FAEBD7', aqua: '#00FFFF', aquamarine: '#7FFFD4', azure: '#F0FFFF', beige: '#F5F5DC', bisque: '#FFE4C4', black: '#000000', blanchedalmond: '#FFEBCD', blue: '#0000FF'...
import * as arrify from 'arrify'; import {Service, GoogleAuthOptions} from '@google-cloud/common'; import {paginator} from '@google-cloud/paginator'; import {promisifyAll} from '@google-cloud/promisify'; import * as extend from 'extend'; import * as request from 'request'; import { CloudFunction } from './cloudfunctio...
import { Box, FormControl, FormLabel, Input, FormErrorMessage, Button, Center, Heading, InputGroup, InputRightElement, IconButton, useToast, Link, Divider, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, useDisclosure, Text, } from ...
<reponame>yahiro07/Kermite<filename>software/src/ui/features/ProjectQuickSetupWizard/store/ProjectQuickSetupStore.ts import { useEffect } from 'alumina'; import produce from 'immer'; import { compareObjectByJsonStringify, copyObjectProps, fallbackStandardFirmwareConfig, getNextFirmwareVariationId, IProjectLay...
<reponame>randomer/react-native-draggable-flatlist import Animated from "react-native-reanimated" import { State as GestureState } from "react-native-gesture-handler" let { or, set, cond, add, sub, block, eq, neq, and, divide, greaterThan, greaterOrEq, not, proc, Value, spring, lessTh...
/** * Copyright (c) 2021 OpenLens Authors * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, p...
<filename>packages/core/core/src/types/core.ts // Primitives export type SerializablePrimitive = string | number | boolean | null export type SerializableMap = { [key: string]: Serializable } export type SerializableArray = Array<Serializable> export type Serializable = | SerializablePrimitive | SerializableM...
<reponame>Soontao/c4codata import concat from "@newdash/newdash/concat"; import flatten from "@newdash/newdash/flatten"; import join from "@newdash/newdash/join"; import slice from "@newdash/newdash/slice"; import startsWith from "@newdash/newdash/startsWith"; import { JsonBatchRequest, JsonBatchRequestBundle } from "@...
import * as React from "react" import isString from "lodash/isString" import { DefaultProps } from "../types" import styled from "../utils/styled" import ContextMenuItem, { IContextMenuItem } from "./ContextMenu.Item" import { useUniqueId } from "../useUniqueId" import { useListbox } from "../useListbox" export inter...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import expect from '@kbn/expect'; import { FtrProviderContext } from '../../...
<reponame>jalenparham97/relancecrm-client import { isEmpty } from 'lodash'; import { config } from '@/core/config'; import { mailer, EmailParams, Recipient } from '@/server/libs/email/email-manager'; import { CreateInvoice, Invoice, InvoiceEmailData, InvoicePaymentDetails, InvoiceStatus, ServiceResponse, ...
import { Action, SkinImages, Cursors, SkinRegion, GenLetterWidths, PlaylistStyle, SkinGenExColors, DummyVizData, } from "../types"; import * as Utils from "../utils"; import { createSelector } from "reselect"; import { CLOSE_WINAMP, OPEN_WINAMP, SET_SKIN_DATA, START_WORKING, STEP_MARQUEE, S...
import {Injector} from '@angular/core'; import {I18nService} from 'core-app/modules/common/i18n/i18n.service'; import {timeOutput} from '../../../helpers/debug_output'; import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource'; import {States} from '../../states.service'; import {HalReso...
import { Stream } from 'stream'; import * as util from 'util'; import * as net from 'net'; import { Package } from 'omelox-protocol'; import { getLogger } from 'omelox-logger'; import { ISocket } from '../../interfaces/ISocket'; import { IHybridSocket } from './IHybridSocket'; import * as path from 'path'; let logger ...
<filename>src/extension/caspar.ts 'use strict'; // Native import {EventEmitter} from 'events'; import * as fs from 'fs'; import * as path from 'path'; // Packages import equals = require('deep-equal'); import osc = require('osc'); import * as CasparCG from 'casparcg-connection'; import debounce = require('lodash.debo...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * Copyright Zendesk, Inc. * * Use of this source code is governed under the Apache License, Version 2.0 * found at http://www.apache.org/licenses/LICENSE-2.0. */ import React, { useRef, useEffect, useState, useCallback, HTMLAttributes } from 'react'; import PropTypes from 'prop-types'; import { Reference } fr...
import React, { Dispatch, SetStateAction, useEffect, useState } from 'react'; import WizardComponent from './WizardComponent'; import planSelectors from '../../../../../plan/duck/selectors'; import { useSelector } from 'react-redux'; import { IPlanPersistentVolume, IMigPlan, IMigPlanStorageClass, } from '../../.....
<reponame>hgsolutions/vscode-idl import * as vscode from "vscode"; import * as fs from "fs"; import * as os from "os"; import * as cp from "child_process"; import { IDLAction, commandChildren } from "./idl-tree-view"; // store the IDL directory locatioons to check when auto-starting IDL const idlDirs: { [key: string]:...
<reponame>gully/bokeh import {XYGlyph, XYGlyphView, XYGlyphData} from "../glyphs/xy_glyph" import {PointGeometry, SpanGeometry, RectGeometry, PolyGeometry} from "core/geometry" import {DistanceSpec, AngleSpec} from "core/vectorization" import {LineMixinVector, FillMixinVector} from "core/property_mixins" import {Line, ...
import { HttpResponse } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, of, throwError } from 'rxjs'; import { catchError, delay, finalize, map, mergeMap, retryWhen } from 'rxjs/operators'; import { TradeRateLimitProvider } from '../provider/trade-rate-limit.provider'; impo...
/** * @license * Copyright Google LLC 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 {AssetGroupConfig, Manifest} from '../src/manifest'; import {sha1} from '../src/sha1'; import {MockResponse} ...
<filename>src/index.ts<gh_stars>10-100 /** Atoms */ import { Table, Tbody, Td, Tfoot, Th, Thead, Tr } from './Atoms/Table'; import Badge from './Atoms/Badge'; import Box from './Atoms/Box'; import Card from './Atoms/Card'; import CssGrid from './Atoms/CssGrid'; import DateTime from './Atoms/DateTime'; import DropdownBu...
import { clamp } from '../../util/clamp'; import * as PIXI from "pixi.js"; import { IdeaView } from './IdeaView'; import { Point } from './Point'; import { intersects } from '../../util/intersects'; import { Idea } from './Idea'; export interface Lane { name: string; id: number; }; export class IdeaContainer ...
import * as React from 'react' export const longText = ( <div> <p> This book is largely concerned with Hobbits, and from its pages a reader may discover much of their character and a little of their history. Further information will also be found in the selection from the Red Book of West...
/* * 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 appli...
<gh_stars>0 import AASFile from "./aasfile"; import { Area, AreaContents, AreaFlags, AreaPortal, Face, FaceFlags, Reachability, TravelType } from "./aastypes"; import * as _ from 'lodash'; export class AASInfo { public readonly file: AASFile; public readonly clusterCount: number; public groundFaceIds: number[] = [...
import { GeneratorEnumeratorTable } from "./Constants" import Stream from "./Stream" import { Chunk } from "./RiffParser" export class VersionTag { major: number minor: number static parse(stream: Stream) { const v = new VersionTag() v.major = stream.readInt8() v.minor = stream.readInt8() return...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* eslint-disable rulesdir/no_underscored_properties */ import * as Common from '../../core/common/common.js'; import * as i18n from '../../core/i18n/i18...
<gh_stars>1-10 import {NgModule,Component,ElementRef,OnDestroy,Input,Output,EventEmitter,Renderer2,ChangeDetectorRef,ViewChild} from '@angular/core'; import {trigger,state,style,transition,animate,AnimationEvent} from '@angular/animations'; import {CommonModule} from '@angular/common'; import {DomHandler} from 'primeng...
import { GUI } from "dat.gui"; import { EventDispatcher, OrthographicCamera, PerspectiveCamera, WebGLRenderer } from "three"; import { Demo } from "./Demo"; import * as events from "./demo-manager-events"; /** * Converts milliseconds to seconds. */ const MILLISECONDS_TO_SECONDS = 1.0 / 1e3; /** * Demo manag...
import { BaseCreep, createName, CreepSchema, GetBodyParts, getRoleShortName } from '../helpers/creep'; import { CreepBalancer } from '../creeps/base/balancer'; import { CreepBuilder } from '../creeps/base/builder'; import { CreepExcavator } from '../creeps/base/excavator'; import { CreepTruck } from '../creeps/base/tru...
/** * @file IEngagementHandler.ts * @copyright (c) Microsoft Corporation. All rights reserved. */ /** * Engagement logger log data interface * @internal */ export interface IEngagementHandler { /** Engagement user action logging operation **/ logData(data: IEngagementData): void; } /** * En...
<reponame>kolsson/use-tweaks import { SpecialInputTypes } from './types' // @ts-expect-error import get from 'get-value' // @ts-expect-error import set from 'set-value' import { Schema, Folder, Button, InputConstructor, TweakpaneType, Monitor } from './types' import { InputParams } from 'tweakpane/dist/types/api/types'...
import { ZoomTranslatePolicy } from './zoom'; import {selectAll, select} from "d3-selection"; import {zoom, zoomIdentity} from "d3-zoom"; import {scaleLinear} from "d3-scale" export class DrawingArea{ shapes = [] plots = new Map() groupShapes = undefined overallTranform = { ...
import { TaskDTO } from './TaskDTO'; import { ConfluenceConnection } from './ConfluenceConnection.model'; const fetch = require('node-fetch'); const Bluebird = require('bluebird'); fetch.Promise = Bluebird; // Rest API: https://developer.atlassian.com/cloud/confluence/rest/intro/ export class ConfluenceApi { con...
/** * @license * Copyright 2018 Google LLC. All Rights Reserved. * 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 a...
import { Editor } from '@tiptap/react'; import { useEffect, useRef, useState } from 'react'; import { useRouter } from 'next/router'; import { toast } from 'react-toastify'; import NProgress from 'nprogress'; import * as Fathom from 'fathom-client'; import posthog from 'posthog-js'; import { styled } from '../../stitch...
import { ux as UX } from '@cto.ai/sdk' import Command, { flags } from '@oclif/command' import Debug from 'debug' import * as OClifConfig from '@oclif/config' import _inquirer from '@cto.ai/inquirer' import jwt from 'jsonwebtoken' import axios from 'axios' import { defaultServicesList } from '~/services' import { asyn...
<gh_stars>1-10 /* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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 ...
/** * @author Kuitos * @homepage https://github.com/kuitos/ * @since 2018-06-25 17:01 */ import { mergeWith, pull } from 'lodash'; import { _getGlobalState, comparer, IReactionDisposer, reaction, runInAction } from 'mobx'; import Injector, { Snapshot } from '../core/dependency-inject/Injector'; import { getInjecto...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React from 'react'; import { connect, ConnectedProps } from 'react-red...
import { File, isAndroid, isEngine, NodeInterface, Plugin, READY_CARD_KEY, getExtensionName, PluginOptions, decodeCardValue, CARD_VALUE_KEY, encodeCardValue, } from '@aomao/engine'; import FileComponent from './component'; export interface Options extends PluginOptions { /** * 文件上传地址 */ action: strin...
import crypto from 'crypto' import { Codec, enumeration, exactly, GetType, optional, string, unknown } from 'purify-ts' import { ParsingError } from '../error' import { HttpClient, RequestMeta, Resource } from '../http' import { ensureArray, ensureInt } from '../parsing' import { getServiceStatusByResource } from './s...
<filename>server/server/index.ts import * as express from 'express' import * as expressSession from 'express-session' import * as bodyParser from 'body-parser' import * as cookieParser from 'cookie-parser' import * as connectMongo from 'connect-mongo' import {Express} from 'express-serve-static-core' import * as morga...
import { IConnextClient, ProtocolNames, ProtocolParams, IChannelSigner, EventName, EventNames, } from "@connext/types"; import { BigNumber, constants } from "ethers"; import { APP_PROTOCOL_TOO_LONG, CLIENT_INSTALL_FAILED, ClientTestMessagingInputOpts, createClientWithMessagingLimits, env, ETH_A...
<gh_stars>100-1000 import { SylApi } from '@syllepsis/adapter'; import { NodeType } from 'prosemirror-model'; import { EditorState } from 'prosemirror-state'; import { CellSelection, isInTable } from 'prosemirror-tables'; import { EditorView } from 'prosemirror-view'; import { NODE_NAME } from './const'; import { calc...
import React, { useEffect, useRef, useMemo } from 'react' import styled, { css } from 'styled-components' import Select from 'react-select' import { useTheme } from 'react-neu' import useBuySell from 'hooks/useBuySell' import MaxButton from './MaxButton' const TokenInputs: React.FC = () => { const { buySellToke...
import { SelNodeChild } from '../../shared/models/RTLconfig'; import { ErrorPayload } from '../../shared/models/errorPayload'; import { GetInfo, Peer, Fees, NetworkInfo, Balance, Channel, Payment, ListInvoices, PendingChannels, ClosedChannel, Transaction, SwitchRes, PendingChannelsGroup, SwapStatus } from '../../sh...
/* * Copyright © 2021 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modified, * propagated...
<reponame>landsman/admin import { FileUploadError } from '@contember/client' import { assertNever } from '../utils' import type { FileId } from './FileId' import type { FileUploadAction } from './FileUploadAction' import type { FileUploadMultiTemporalState } from './FileUploadMultiTemporalState' import { toFileId } fro...
<reponame>Allard-Ivan/sled-wolf import { Component, HostBinding, Input, OnInit, OnChanges, OnDestroy } from '@angular/core'; import { PlayerService, Track } from '../../../@core/data/player.service'; import { DomSanitizer, SafeStyle } from '@angular/platform-browser'; import { Http } from '@angular/http'; export enum ...
import { Observable } from 'babylonjs'; import { isUrl, loadFile, camelToKebab } from './helper'; export interface TemplateConfiguration { location?: string; // #template-id OR http://example.com/loading.html html?: string; // raw html string id?: string; config?: { [key: string]: string | n...
<reponame>piptouque/marcelle import kmeans from 'ml-kmeans'; import { Stream, Model, ClusteringResults, ModelOptions, StoredModel, ObjectId, Instance, } from '../../core'; import { Dataset, isDataset } from '../../core/dataset'; import { Catch, throwError } from '../../utils/error-handling'; import { save...
import type { RunFixture } from './fixture' import fix2_0 from './2_0' import fix2_1 from './2_1' import fix2_2 from './2_2' import fix2_3 from './2_3' import fix2_4 from './2_4' import fix2_5 from './2_5' import fix2_6 from './2_6' import fix2_7 from './2_7' import fix2_8 from './2_8' import fix2_9 from './2_9' import...
import callsites from "callsites"; import chalk from "chalk"; import { existsSync } from "fs"; import { toMatchImageSnapshot } from "jest-image-snapshot"; import { dirname, join, sep } from "path"; import { debugLogger } from "../logger"; import { fetch } from "../network/fetch"; import { Viewport } from "../screenshot...
import { PromiseType } from 'utility-types'; import { Test } from '@nestjs/testing'; import * as uuid from 'uuid'; import { assertDefined } from '@marxan/utils'; import { left } from 'fp-ts/Either'; import { PasswordRecoveryService, tokenInvalid, } from './password-recovery.service'; import { UserService } from './...
import { GitHubSerializer } from './GitHubSerializer' import { Readable, Writable } from 'stream' import { v2 as webdav } from 'webdav-server' import * as request from 'request' export interface GitHubAPIResource { name : string path : string sha : string size : number url : string html_url : s...
<gh_stars>10-100 /** * @description: fork by "@commitlint/types" v16.2.1 */ /** ========== rules ========== */ /** * Rules match the input either as successful or failed. * For example, when `header-full-stop` detects a full stop and is set as "always"; it's true. * If the `header-full-stop` discovers a full sto...
import type { ObjectId } from '../bson'; import { Code, Document } from '../bson'; import type { Collection } from '../collection'; import { Db } from '../db'; import { MongoCompatibilityError, MongoServerError } from '../error'; import { ReadPreference, ReadPreferenceMode } from '../read_preference'; import type { Ser...
<gh_stars>0 import esri = __esri; import ConfigurationSettings = require('../ConfigurationSettings'); import { init } from "esri/core/watchUtils"; import { eachAlways } from "esri/core/promiseUtils"; import Handles from 'esri/core/Handles'; interface esriWidgetProps { config: ConfigurationSettings; view: esri.MapVie...
import React, { FC, useEffect, useState, ReactNode } from "react"; import { PeopleCollection, Person } from "../../utils/MockData"; import { LinkedList } from "./SLL" import { FamilyName } from "../../enums"; type animatedFunction = () => ISLLActions<IPerson>; interface ISLLPageProps {} export const SLLPage: FC<ISLLP...
<filename>src/reducers/application.tsx /** * Copyright 2018-present Facebook. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * @format */ import {remote} from 'electron'; import uuidv1 from 'uuid/v1'; import {ReactElement} from 'react'; ...