text
stringlengths
3.08k
15.5k
<gh_stars>1-10 import test from 'tape' import { LocalAddress, CryptoUtils, Client } from '../../index' import { createTestClient, waitForMillisecondsAsync, createWeb3TestClient } from '../helpers' import { LoomProvider } from '../../loom-provider' import { deployContract } from '../evm-helpers' import { SignedTxMiddl...
import type Project from '@theatre/core/projects/Project' import type Sheet from '@theatre/core/sheets/Sheet' import type SheetTemplate from '@theatre/core/sheets/SheetTemplate' import type {SheetObjectPropTypeConfig} from '@theatre/core/sheets/TheatreSheet' import {emptyArray} from '@theatre/shared/utils' import type ...
import Session from "./Session"; import Model, { AnyModel, ModelClassMap } from "./Model"; import { createDatabase as defaultCreateDatabase } from "./db"; import { ForeignKey, ManyToMany, attr, Field } from "./fields"; import { Values, m2mName, m2mToFieldName, m2mFromFieldName } from "./utils"; import { DatabaseCreato...
/** * Copyright (c) oct16. * https://github.com/oct16 * * This source code is licensed under the GPL-3.0 license found in the * LICENSE file in the root directory of this source tree. * */ import { AudioOptionsData } from '@timecat/share' function encodePCM(bufferData: Float32Array, opts: AudioOptionsData) { ...
import React, { useMemo, useRef } from 'react'; import { getData, AggregateType, Operator, getDimension, } from '@alife/mock-core'; import { compute, RdxContext, RdxState, Status, UnwrapRdxValue, useRdxReset, useRdxStateLoader, waitForAll, } from '@alife/rdx'; import { Button, Input, Select, Tab...
import { Icon, Overlay } from "@blueprintjs/core"; import Button, { Category } from "components/ads/Button"; import { ONBOARDING_INTRO_CONNECT_DATA_WIDGET, ONBOARDING_INTRO_CONNECT_YOUR_DATABASE, HOW_APPSMITH_WORKS, ONBOARDING_INTRO_PUBLISH, BUILD_MY_FIRST_APP, ONBOARDING_INTRO_FOOTER, BUILD_APP_TOGETHER,...
<gh_stars>0 import * as _ from "lodash"; import Response from "./../utils/response"; import { manifest } from "./../manifest"; import AuthController from "../controllers/authController"; import { containerAPI } from '@project-sunbird/OpenRAP/api'; const uuidv1 = require('uuid/v1'); import { ILoggedInUser } from '../../...
<gh_stars>1-10 import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgModule, Injector, APP_INITIALIZER, LOCALE_ID } from '@angular/core'; import { registerLocaleData, PlatformLocation } from '@angular/common'; import { AbpM...
import React, { useState } from 'react'; import { useHistory } from 'react-router'; import SecondLayout from '@/components/SecondLayout'; import Disaster from '@/pages/InstanceList/Detail/Disaster'; import { Message, Dialog, Button } from '@alicloud/console-components'; import { getMiddlewareDetail } from '@/services/m...
import os from "os"; import Denque from "denque"; import inquirer, { QuestionCollection } from "inquirer"; import { spawn, Pool, Worker, FunctionThread } from "threads"; import { Logger } from "pino"; import { Surveys, WhoAmI } from "@/qualtrics"; import { greeting, info } from "@/cli/statement"; import { apiTokenQues...
<gh_stars>0 import sp from 'src/shape'; import { Ptr } from 'src/type'; import { IndexError, RunningTimeError } from 'src/exception'; import { between, isScalar } from 'src/utils'; import { checkIfShapeUnifyGenerator } from './utils'; import { PtrBase } from './PtrBase'; import core from 'src/core'; abstract class Ba...
import {CliHelper, Parameter} from '../test/cli.helper'; import { ClassDeclaration, InterfaceDeclarationStructure, MethodDeclaration, ParameterDeclaration, Scope, SourceFile } from 'ts-morph'; import {Schema} from './schema'; let helper: CliHelper; let file: SourceFile; let schema: Schema; let ...
<filename>app/lib/IcecastServer/oggVorbisDecoder.ts import stream from 'stream'; import { fromTraktor } from '../../utils/trackdata'; import { AppBus } from '../../utils/appbus'; const appBus = AppBus.instance; function emitTrackUpdate(data: any) { console.log('test'); console.log(data); appBus.eventEmitter.em...
<filename>member/member.ts import { FromText, NewPrivateKey, PrivateKey, PublicKey } from "../key/key"; import { Fault, Ok, Result } from "../utils/render"; export enum MemberType { Device = "Device", Person = "Person", } export interface MemberArg { Id: string; Type: MemberType; Name: string; Device: str...
import { Actor, AttributeId, CANCEL, chat, command, MinecraftPacketIds, nethook, NetworkIdentifier } from "bdsx"; import { netevent } from "bdsx"; import { BlockPos } from "bdsx/bds/blockpos"; import { TextPacket } from "bdsx/bds/packets"; import { Minecraft } from "bdsx/bds/server"; import { int32_t, uint32_t } from ...
import type { CompilerOptions } from "typescript" import { compressToEncodedURIComponent } from "./vendor/lzstring.min" /** * These are the defaults, but they also act as the list of all compiler options * which are parsed in the query params. */ export function getDefaultSandboxCompilerOptions(isJS: boolean, exis...
<reponame>janvarev/sexp-textgenscript-tsjs // --- support stream class ------- class Stream { _val: string; _pos: number = 0; constructor(val: string) { this._val = val; } public get peek(): string { return this._val.charAt(this._pos); } public next(): void { th...
<filename>src/core/impl/OpenKitImpl.ts /* * Copyright 2019 Dynatrace 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 req...
import { Tab as BPTab, Tabs as BPTabs, Button, Checkbox, ControlGroup, Dialog, FormGroup, HTMLSelect, InputGroup, Intent, } from '@blueprintjs/core'; import { IDropboxBackupFileRecord, VerifyStatus, exportToDropbox, generateNewDropboxBackupFileName, importFromDropbox, reloadBackupFiles, ...
<gh_stars>1-10 import type { JSX as _JSX } from "preact"; type Element = { type: | string | (( props: any, context: any, ) => Element | null | Promise<Element | null> | Generator<Element | null> | AsyncGenerator<Element | null>); props: any; key: string | number | null | undefined; ...
import {BakeVariable, IBakeRegion} from '@azbake/core' import { DeploymentContext } from '@azbake/core'; import { BaseUtility} from '@azbake/core' function stringCompareInsensitive(a: string, b: string) : boolean { return a.localeCompare(b,undefined, {sensitivity: 'accent'}) === 0; } export class CoreUtils exten...
import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, EventEmitter, Input, OnDestroy, OnInit, Output, TemplateRef, ViewChild } from '@angular/core'; import { InlineHelpComponent } from '...
<reponame>campersau/ak-lua-bibliothek-fuer-eep<filename>web-app/src/app/core/home/main-navigation.service.ts import { Observable, of, combineLatest } from 'rxjs'; import { Action, select, Store } from '@ngrx/store'; import * as fromRoot from '../../app.reducers'; import { Injectable } from '@angular/core'; import * as ...
<gh_stars>0 /* * 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. */ /* eslint-disable @kbn/eslint/no-restricted-paths */ import * as...
<reponame>wyattzheng/universe import { TextureProvider } from '@uni.js/texture'; import { BRICK_WIDTH } from './brick'; import { CompositeRectTileLayer } from '@pixi/tilemap'; import { StaticObject } from '../objects/static-object'; import { BricksData } from '../../server/land/land'; import { Vector2 } from '../../ser...
/* This module generates a random name for the players when they load up a page on the local server. Two paths can occur: If the player doesn't have a name in their cookie already then a random name is generated, it is then compared to the pre-existing list of names which have been used today. If the name has already...
import {NgModule,Component,Input,Output,ElementRef,EventEmitter,forwardRef,ViewChild,ChangeDetectorRef,ChangeDetectionStrategy, Injectable, Injector, OnInit, OnDestroy} from '@angular/core'; import {CommonModule} from '@angular/common'; import {NG_VALUE_ACCESSOR, ControlValueAccessor, NgControl} from '@angular/forms'; ...
import { ChoiceGroup, IChoiceGroupOption, IconButton, ITextFieldStyles, Label, mergeStyles, PrimaryButton, TextField, Dropdown, ICheckboxProps, Checkbox, } from "@fluentui/react"; import {Col, Container, Row} from "react-grid-system"; const optionRootClass = mergeStyles({di...
/* * Copyright © 2020 <NAME>, 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 i...
<filename>src/common/telemetryHelper.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. import * as Q from "q"; import {Telemetry} from "./telemetry"; import {TelemetryGenerator, IHasErrorCode} from "./telemetryGene...
<filename>packages/mongodb-memory-server-core/src/MongoMemoryServer.ts<gh_stars>0 import { ChildProcess } from 'child_process'; import tmp from 'tmp'; import getPort from 'get-port'; import { generateDbName } from './util/db_util'; import MongoInstance from './util/MongoInstance'; import { MongoBinaryOpts } from './uti...
import _ from 'lodash'; import * as Vts from 'vee-type-safe'; import * as Debug from '@modules/debug'; import * as Config from '@app/config'; import * as Network from '@modules/network'; import * as Coll from 'typescript-collections'; import { EP, isDateString } from '@common/interfaces'; interface Paginatio...
/* eslint-disable import/no-duplicates */ import type Intermodular from "intermodular"; import type { DataFile } from "intermodular"; import * as nunjucks from "nunjucks"; import * as path from "path"; import difference from "lodash.difference"; import union from "lodash.union"; import isEqual from "lodash.isequal"; t...
import { NowRequest, NowResponse } from '@vercel/node' export const handleValidationError = (res: NowResponse, error: any) => { res.status(400).json({ error: error.name, message: error.message, errors: error.errors }) } export const allowCors = fn => async (req, res) => { res.setHeader('Access-Contr...
import { Component } from "react" import { sendDelete } from "../../api/impl/cmd/delete"; import { sendFollow } from "../../api/impl/cmd/follow"; import { getFollowing } from "../../api/impl/getfollowing"; import { getUserPosts } from "../../api/impl/userposts"; import { getUserProfile } from "../../api/impl/userprofil...
<filename>packages/ricos-types/web/src/key-types.ts<gh_stars>100-1000 import type { LiteralUnion } from 'type-fest'; export type ModifierKeys = | 'Alt' | 'AltGraph' | 'CapsLock' | 'Ctrl' | 'Fn' | 'FnLock' | 'Hyper' | 'Meta' | 'NumLock' | 'ScrollLock' | 'Shift' | 'Super' | 'Symbol' | 'Symbol...
<reponame>JTarball/pwa-experiment<gh_stars>0 import { html, render } from "lit"; import { guard } from "lit/directives/guard.js"; import { formatError as defaultFormatError, GraphQLError, SourceLocation } from "graphql"; import { ApolloControllerOptions } from "@apollo-elements/core/apollo-controller"; import "@vaadin...
<filename>src/commandProvider.ts import * as vscode from "vscode" import { attackTags } from "./extension" const cp = require("child_process") export function sigmaCompile(cfg: any, rulepath: string) { let command = `sigmac --config ${cfg.config} --target ${cfg.target} ${cfg.additionalArgs || ""} ${rulepath}` ...
import {useState, useEffect} from 'react' import {useToggle} from 'ahooks' import { FooterToolbar, PageContainer } from '@ant-design/pro-layout' import { Row, Col, Card, message, Modal, Form } from 'antd' import { ExclamationCircleOutlined } from '@ant-design/icons' import SeacrhForm from '@/components/SearchForm' impo...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {Leak} from './index'; import {Element} from 'flipper'; /** * Utility Function to add a child element * @p...
// Imports ____________________________________________________________________ import * as run from './example'; const slice = Array.prototype.slice; const stringify = JSON.stringify; const parse = JSON.parse; // Variables __________________________________________________________________ var str:string = 'string...
<filename>src/index.tsx<gh_stars>0 import { useEffect, useReducer, Dispatch, useRef } from 'react'; import log from './logger'; const enum DispatchType { 'Update', 'Transition', } type Transition<Context, Events, State extends string, EventString extends string> = | State | { target: State; guard?...
import React, { useRef } from 'react'; import type { FormInstance } from 'antd'; // import styles from './index.less'; import { PageContainer } from '@ant-design/pro-layout'; import { Tag, Space, Button } from 'antd'; import type { ProColumns } from '@ant-design/pro-table'; import ProTable from '@ant-design/pro-table';...
import * as React from 'react'; import { features } from 'toolkit/extension/features'; import * as ynabUtils from 'toolkit/extension/utils/ynab'; import * as emberUtils from 'toolkit/extension/utils/ember'; import * as Collections from 'toolkit/extension/utils/collections'; import { isFeatureEnabled } from 'toolkit/ext...
<filename>packages/zwave-js/src/lib/commandclass/LockCC.ts import type { Maybe, MessageOrCCLogEntry, ValueID } from "@zwave-js/core"; import { CommandClasses, validatePayload, ValueMetadata, ZWaveError, ZWaveErrorCodes, } from "@zwave-js/core"; import { validateArgs } from "@zwave-js/transformers"; import type { D...
import { Component, Input, NgModule, OnInit, OnDestroy } from '@angular/core'; // Components import { IonicModule } from '@ionic/angular'; import { FhemComponentModule } from '../fhem-component.module'; // Services import { FhemService } from '../../../services/fhem.service'; import { SettingsService } from '../../.....
<reponame>motogp-bit/pokemon-showdown-1 /** * Typescript wrapper around the Python Artemis model. * By Mia. * @author mia-pi-git */ import * as child_process from 'child_process'; import {ProcessManager, Streams, Utils, Repl} from '../../lib'; import {Config} from '../config-loader'; import {toID} from '../../sim/...
import { AppConfig } from "../../app/models/interfaces/custom/AppConfig"; import { IPermission, IApplication, IMedia } from "../../app/models/interfaces"; const config: AppConfig = require("../../config/keys"); import ResourceBusiness from "../../app/business/RolePermissionBusiness"; import PermissionBusiness from "../...
<filename>src/app.ts enum STATUS { Pending, Finished, } type dType = string; //Validation interface TodoInputValidation { text: dType; min?: number; } //validation for todo input function validate(todo: TodoInputValidation) { let isValid = true; if (todo.min && todo.text....
<reponame>tescher/bountybot import constants from '../../constants/constants'; import mongo, { Db, UpdateWriteOpResult } from 'mongodb'; import BountyUtils from '../../../utils/BountyUtils'; import { GuildMember, Message, MessageEmbedOptions, TextChannel } from 'discord.js'; import ServiceUtils from '../../../utils/Ser...
<reponame>BurNing1993/whiteboard interface Point { x: number; y: number; } // 绘图类型 笔画|移除 export type PaintType = 'paint' | 'remove' interface Options { background?: string width?: number height?: number } export default class Canvas { color: string = 'black'; // 笔颜色 width: number = 20;// 笔宽度 removeWi...
<filename>src/containers.ts import { Cacher } from './storage' import SqrlErr from './err' import { compileScope, compileScopeIntoFunction } from './compile-string' import { hasOwnProp } from './utils' /* TYPES */ import { SqrlConfig } from './config' import { TemplateFunction } from './compile' import { ParentTempla...
import * as React from 'react'; import { useSharedValue, useAnimatedStyle, useAnimatedReaction, useAnimatedGestureHandler, withSpring, runOnJS, useWorkletCallback, } from 'react-native-reanimated'; // @ts-expect-error import SpringConfig from 'react-native/Libraries/Animated/SpringConfig'; i...
import { EventEmitter } from "../../../deps.ts"; import type { TaskContext } from "../../lib/core/context.ts"; import type { Graph, Task } from "../graph/graph.ts"; import type { TaskLogEvent, TaskEvent, EventSink } from "./events.ts"; interface TaskTracker { task: Task; dependenciesFinished: number; finished: b...
<reponame>cinerino/domain<gh_stars>0 /** * 返金取引サービス */ import * as moment from 'moment'; import * as factory from '../../factory'; import { MongoRepository as ActionRepo } from '../../repo/action'; import { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction'; import { MongoRepository as Pro...
<reponame>ThreadsStyling/json-patch-ot import {isValidIndex, replacePathIndices} from './utils'; export interface Options { acceptedWinsOnEqualPath?: boolean; } export enum OpType { add = 'add', remove = 'remove', replace = 'replace', copy = 'copy', move = 'move', test = 'test', } export interface Oper...
import consola, { Consola } from "consola"; import Emittery from "emittery"; import execa, { ExecaChildProcess } from "execa"; import fastify, { FastifyInstance, FastifyRequest } from "fastify"; import fs from "fs"; import loadJsonFile from "load-json-file"; import locatePath from "locate-path"; import makeDir from "ma...
import { AgnosticMediaGalleryItem, AgnosticAttribute, AgnosticPrice, ProductGetters } from '@vue-storefront/core'; import { ProductVariant, Image } from '@vue-storefront/spree-api/src/types'; import _ from 'lodash'; type ProductVariantFilters = any // TODO: Add interfaces for some of the methods in core // P...
import * as ec2 from '@aws-cdk/aws-ec2'; import * as ecs from '@aws-cdk/aws-ecs'; import * as events from '@aws-cdk/aws-events'; import * as iam from '@aws-cdk/aws-iam'; import * as cdk from '@aws-cdk/core'; import { Construct } from 'constructs'; import { ContainerOverride } from './ecs-task-properties'; import { sing...
import * as React from 'react' import { clamp } from '../lib/clamp' import { PullRequest } from '../models/pull-request' import { PullRequestBadge } from './branches' import { Dispatcher } from './dispatcher' import { Button } from './lib/button' import { SandboxedMarkdown } from './lib/sandboxed-markdown' import { Oct...
import * as React from "react"; import { GenerateConfig } from "wcx-picker/lib/generate"; import { Locale } from "wcx-picker/lib/interface"; import { Select, Radio, Button } from "antd"; import { CalendarMode } from "./generateCalendar"; import moment from "moment"; const YearSelectOffset = 10; const YearSelectTotal = ...
<filename>src/util/generateRoutes.ts import boom from '@hapi/boom'; import {plainToClass} from 'class-transformer'; import {validate} from 'class-validator'; import {Context} from 'koa'; import _ from 'lodash'; import {KoaControllerOptions} from '../'; import {isClass} from './tools'; async function _argumentInjectorP...
<reponame>ncaq/goodbye-rfc-2822-date-time // 他に全部のロケールを読み込む方法があれば誰か教えて下さい // せめてre exportしてファイルを分けたかったですがside effectを消去してしまうためうまくいかなかった import "moment/locale/ar"; import "moment/locale/af"; import "moment/locale/ar-dz"; import "moment/locale/ar-kw"; import "moment/locale/ar-ly"; import "moment/locale/ar-ma"; import "mo...
import { ActionWithPayload, TableCellsMap, AppThunk, CellCoordinates, CellMode, CellProps, GamePhase, } from "../../../consts"; import { Action } from "redux"; import { Game } from "../../../generator/generator"; import { getDuplicates } from "../helpers/gameTable"; import { getCurrentGame } from "../../a...
import React from 'react'; import {RouteComponentProps, Link} from 'react-router-dom'; import {Box, Flex} from 'theme-ui'; import request from 'superagent'; import { colors, notification, Alert, Button, Divider, Input, Text, TextArea, Title, Tooltip, } from '../common'; import {DeleteOutlined, Right...
<reponame>shankben/firebase-migrator import path from "path"; import { RetentionDays } from "@aws-cdk/aws-logs"; import { Bucket } from "@aws-cdk/aws-s3"; import { Arn, Construct, Duration, Stack } from "@aws-cdk/core"; import { Code, Function as LambdaFunction, LayerVersion, Runtime } from "@aws-cdk...
import express = require("express"); import https = require('https'); import http = require('http'); import net = require("net"); const debug = require("util").debuglog("noginx"); import * as CertManager from 'node-easy-cert' import { exec } from 'child_process'; import * as path from 'path' import { ApplicationRequest...
import axios from 'axios' import { getDateRangeChunks, sleep } from './utils' import { DateRange, IntradayData, EquityDetails, EquityTradeInfo, EquityCorporateInfo, HistoricalData, SeriesData, IndexDetails, GainersLoosersDetails, CorporateActions } from './interface' export enum...
<reponame>mevans845/healthcare // Copyright 2018 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 ...
import { fetchBearerToken, fetchBook } from "dataflow/opds1/fetch"; import ApplicationError from "errors"; import { FulfillableBook, FulfillmentLink, MediaSupportLevel, OPDS1 } from "interfaces"; import { DownloadMediaType } from "types/opds1"; import { bookIsAudiobook } from "utils/book"; import { APP_CONFIG, ...
// calibration panel with various calibration-related controls and info import * as React from 'react' import { useDispatch, useSelector } from 'react-redux' import { saveAs } from 'file-saver' import { Trans, useTranslation } from 'react-i18next' import type { Dispatch, State } from '../../../redux/types' import * a...
import axios, { AxiosResponse } from 'axios'; import tw from 'twin.macro'; import { css } from 'styled-components/macro'; //eslint-disable-line import { ReactComponent as TwitterIcon } from '../assets/twitter-icon.svg'; import { ReactComponent as GitHubIcon } from '../assets/github-icon.svg'; import React, { useEffect,...
<gh_stars>0 import { Buffer } from 'buffer/'; import { Agent, getDefaultAgent, ReadStateResponse } from './agent'; import * as cbor from './cbor'; import { hash } from './request_id'; import { BinaryBlob, blobFromText } from './types'; import { blsVerify } from './utils/bls'; import { Principal } from "./principal"; a...
interface AdjacencyList { [node: string]: Array<string> } interface State { readonly adjacencyList: AdjacencyList root: string | null readonly directed: boolean readonly acyclical: boolean } interface AddNode { (node: string): Graph } interface AddEdge { (node: string, edge: string): Graph } interface...
import { MyInfoMode } from '@opengovsg/myinfo-gov-client' import { ObjectId } from 'bson' import crypto from 'crypto' import _ from 'lodash' import { ISpcpMyInfo } from 'src/app/config/feature-manager' import { ILoginSchema, IPopulatedForm } from 'src/types' import { JwtName } from '../spcp.types' export const MOCK_...
// ==LICENSE-BEGIN== // Copyright 2017 European Digital Reading Lab. All rights reserved. // Licensed to the Readium Foundation under one or more contributor license agreements. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file exposed on Github (readium) in the proj...
<reponame>DavidBanksNZ/ng-tetris import {ITetrisState} from '../state.interface'; import {TetrominoType} from '../../enums/tetromino.enum'; import {Orientation} from '../../enums/orientation.enum'; import {ICell} from '../../interfaces/cell.interface'; import {unique} from '../../helpers/unique'; import {calculateSpace...
<filename>src/commands/dev/server.ts import fs from 'fs'; import path from 'path'; import * as mkcert from 'mkcert'; import { logWarn, logErr, requireCwd, exec, outputFile } from '@omni-door/utils'; import { EWServer, KNServer } from '../servers'; import open from './open'; /* import types */ import type { Co...
import { AfterViewInit, Component, OnDestroy, OnInit, ViewChild, Input } from '@angular/core'; import { Subscription } from 'rxjs'; import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; import { AlertService } from 'carey-alert'; import { Contact } from '../models/contact'; import { ContactService } from...
<reponame>NathanInbar/electron-react-boilerplate /* eslint global-require: off, no-console: off, promise/catch-or-return: off, promise/always-return: off */ import 'core-js/stable'; import 'regenerator-runtime/runtime'; import path from 'path'; import { app, BrowserWindow, shell, ipcMain } from 'electron'; // require...
import { TfCommand } from "../../lib/tfcommand"; import args = require("../../lib/arguments"); import colors = require("colors"); import extBase = require("./default"); import extInfo = require("./_lib/extensioninfo"); import trace = require("../../lib/trace"); import GalleryInterfaces = require("azure-devops-node-api/...
import React, { forwardRef } from 'react'; import { AxiosError } from 'axios'; import debug from 'debug'; import { connect, ConnectedProps } from 'react-redux'; import { createStyles, makeStyles, Theme } from '@material-ui/core'; import { useSnackbar } from 'notistack'; import { useTranslation } from 'react-i18next'; i...
import React, { forwardRef, memo, useCallback, useEffect, useMemo, useRef, useState, } from 'react'; import { Dimensions, FlatList, GestureResponderEvent, ListRenderItem, PanResponder, PixelRatio, SectionList, SectionListData, SectionListProps, StyleProp, StyleSheet, Text, TextPr...
import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cli'; import {Configuration, LocatorHash, Package, formatUtils, Descriptor} from '@yarnpkg/core'; import {IdentHash, Project} from '@yarnpkg/core'; import {miscUtils, structUtils, treeUtils} ...
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- import * as path from 'path'; import * as Completion from "../Completion"; import { DeploymentTem...
import React, { ReactElement, useReducer, useCallback } from "react"; import { Provider } from "react-redux"; import { useQueryParams, StringParam, updateInLocation } from "use-query-params"; import useSWR from "swr"; import useFilteredList from "../../../hooks/useFilteredList"; import SearchBox from "../../../co...
<filename>src/tester/test-runner.ts import { pathExists } from "fs-extra"; import * as fold from "travis-fold"; import * as yargs from "yargs"; import { FS, getDefinitelyTyped } from "../get-definitely-typed"; import { Options, TesterOptions } from "../lib/common"; import { AllPackages, TypingsData } from "../li...
import {ChartDataSets} from 'chart.js' import Color from 'color' import Module from 'parser/core/Module' import {AbstractGauge, AbstractGaugeOptions} from './AbstractGauge' function expectExist<T>(value?: T) { if (!value) { throw new Error('Missing something required. Check the stack trace.') } return value } i...
/******************************************************************************* * © Apployees Inc., 2019 * All Rights Reserved. ******************************************************************************/ import { RemoteCache } from "@nrwl/workspace/src/tasks-runner/tasks-runner-v2"; import levelup from "levelup...
/** * Copyright 2020 Angus.Fenying <<EMAIL>> * * 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 o...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Relay, ReplayRelay } from '../dist/RxRelay'; import { Observable } from 'rxjs/Observable'; import { Observer } from 'rxjs/Observer'; import { TestScheduler } from 'rxjs/testing/TestScheduler'; import { of } ...
<gh_stars>0 import { Camera, OrthographicCamera, PerspectiveCamera, Vector3 } from "three" import { ABOVE_FIELD_CAMERA, BLUE_GOAL_CAMERA, FREE_CAMERA, ORANGE_GOAL_CAMERA, ORTHOGRAPHIC, } from "../constants/gameObjectNames" import { dispatchCameraChange } from "../eventbus/events/cameraChange" import { dispat...
import React, { ChangeEvent, useEffect, useState } from "react"; import { BehaviorSubject, combineLatest, ObservedValueOf } from "rxjs"; import { map, concatMapTo, multicast } from "rxjs/operators"; type TodoItem = { id: number; text: string; isComplete: boolean }; const useBehaviorSubjectGetter = <T extends any>( b...
import * as React from "react"; import { EditMenuItem } from "./EditMenuItem"; import { addStepElement, addDivergingGateway } from "../model/action/addElement"; import { addBranch } from "../model/action/addBranch"; import { isChangeNextElementAllowed } from "../model/action/changeNextElement"; import { removeElement,...
// Inspired by https://github.com/tfoxy/webpack-lazy-dev-build /** The MIT License (MIT) Copyright (c) 2018 <NAME> 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 rest...
<reponame>mjm918/table import { drawContent, } from './drawContent'; import type { SpanningCellManager, } from './spanningCellManager'; import type { BorderConfig, DrawVerticalLine, } from './types/api'; import type { CellCoordinates, SeparatorGetter, } from './types/internal'; type Separator = { readonl...
import 'reflect-metadata'; import { DataSerializer, DataFrame, Model, CallbackSinkNode, CallbackSourceNode, ModelBuilder, WorkerServiceProxy, WorkerServiceCall, WorkerServiceResponse, Service, PullOptions, PushOptions, DataService, } from '../../'; // @openhps/core im...
import {ReactNode, RefObject, useMemo, useCallback, useEffect} from 'react'; import {FormProvider, useForm} from 'react-hook-form'; import {Localized, useLocalization} from '@fluent/react'; import {genUniqueId} from '@condict/ui'; import {emptyDescription} from '@condict/rich-text-editor'; import {LanguageId, PartOfS...
// Taken from: https://www.npmjs.com/package/highlight-words-core // If the PR for handling HTML element is merged, we may use the lib directly export type Chunk = { highlight: boolean start: number end: number } type HTMLTagLocation = { start: number end: number } /** * Creates an array of chunk objects ...
import { useMemo } from 'react'; const RGBA_PATTERN = /rgba?\(([0-9]+),([0-9]+),([0-9]+)(?:,(1|0|0\.[0-9]*))?\)/; /** * Color: * * Supported formats for string input are: * - #rgb * - #rrggbb * - #rrggbbaa * - rgb(r, g, b) (0 <= rgb <= 255) * - rgba(r, g, b, a) (0 <= rgb <= 255, 0 <= a <= 1) * * Suppo...