text
stringlengths
3.08k
15.5k
import {Component, EventEmitter, HostBinding, Input, Output, TemplateRef, ViewContainerRef} from "@angular/core"; import {CdkOverlayOrigin, ConnectedPosition, Overlay, OverlayRef} from "@angular/cdk/overlay"; import {MatDialog, MatDialogRef} from "@angular/material/dialog"; import {ThemePalette} from "@angular/material...
import { onCleanup, createRoot, untrack, createSignal, Owner, Accessor, Transition } from "./signal"; const FALLBACK = Symbol("fallback"); function dispose(d: (() => void)[]) { for (let i = 0; i < d.length; i++) d[i](); } // Modified version of mapSample from S-array[https://github.com/adamhaile/S-arr...
<reponame>lacrosse91/jupyterlab<gh_stars>0 // Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import * as path from 'path'; import * as webpack from 'webpack'; import { Build } from './build'; import { merge } from 'webpack-merge'; import * as fs from 'fs-extra'; imp...
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * 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...
// Copyright 2017-2020 @polkadot/app-settings authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { ActionStatus } from '@polkadot/react-components/Status/types'; import React, { useCallback, useEffect, useState } from 'react'; import { Trans } from 'react-i18next'; import store from 'store'; im...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { entriesToObject } from './utils/entriesToObject'; import { wait } from './utils/wait'; import { HttpError } from './HttpError'; /** * `Promise<`[`Response`](https://fetch.spec.whatwg.org/#response)`>` with added methods from [`Body`](https://fetch.spec.whatwg.org/#body-mixin). */ // https://github.com/micro...
import { convertFromMicroDenom } from 'util/conversion' // extend window with CosmosJS and Keplr properties interface CosmosKeplrWindow extends Window { keplr: any getOfflineSigner: Function } declare let window: CosmosKeplrWindow export const connectKeplr = async () => { // Keplr extension injects the offline...
/* * Copyright 2020 The Backstage Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
import React from 'react'; import dayjs from 'dayjs'; import '../dayjsExtensions'; import { DecoratedButton } from '../view/DecoratedButton'; import { IApiEvent } from '../api/ApiInterfaces'; import { EventModel, UserModel } from '../api/models'; import { ApiDataService } from '../api/ApiDataService'; import { ApiTask...
<filename>src/utils/utilities.ts<gh_stars>1-10 import { toCamelCase } from "strman"; /** * Internal helper to check if parameter is a string * @param {*} value * @returns {boolean} */ export const isString = (value: any): value is string => { return typeof value === "string" || value instanceof String; }; /** ...
import { PropertyType, UIFieldValue } from "@lsql/core"; import React from "react"; import { base64 } from "rfc4648"; import styles from "./FieldBuilder.module.css"; import { indexString } from "../common"; interface InputProps { data: UIFieldValue elementIndex: number[]; update(newValue: UIFieldValue): void; } //...
<reponame>chadfraser/RootlogParser<filename>src/interfaces/rootgame.ts import { Action } from './actions'; export type Map = 'Fall' | 'Winter' | 'Lake' | 'Mountain'; export type Deck = 'Standard' | 'E&P'; export enum Suit { Bird = 'B', Fox = 'F', Mouse = 'M', Rabbit = 'R' } export enum Faction { Marquise ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @fileoverview * @suppress {globalThis} */ const NEWLINE = '\n'; const IGNORE_FRAMES: {[k: string]: true} = ...
import path from 'path' import { Configuration } from '@nuxt/types' const hostname = 'https://markdown-editor-simple.web.app' const config: Configuration = { /* ** Nuxt rendering mode ** See https://nuxtjs.org/api/configuration-mode */ mode: 'universal', srcDir: 'src', /* ** Nuxt target ** See...
<reponame>jolt-network/cli<gh_stars>1-10 import { BasicConfig } from './config/basic-config'; import { getNewBlocks } from './utils/helpers'; import { getJobMetadata } from './utils/io'; import { setupLogger } from './utils/loggers'; import { bnMin, toGwei } from './utils/math'; import { Block } from '@ethersproject/ab...
import * as React from 'react' import { Renderer, TLBounds, TLKeyboardEventHandler, TLPinchEventHandler, TLPointerEventHandler, TLWheelEventHandler, } from '@tldraw/core' import { useStateDesigner } from '@state-designer/react' import { shapeUtils } from './shapes' import { machine } from './state/machine' ...
<gh_stars>0 import "jest"; import {guid} from "dyna-guid"; import {getMemoryStats} from "dyna-memory-stats"; import {DynaNodeClient, DynaNodeMessage, DynaNodeServer, DynaRamDisk, IDynaNodeServerConfig, IError} from "dyna-node/dist/commonJs/node"; import {COMMAND_healthStatsUpdate, DynaHealthService, EInstanceType, ICO...
/* * Copyright 2021 <NAME> * 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 in wr...
<filename>src/flow/flowValueConversion.ts import { FillRule, LineCap, LineJoin, OriginBehavior, RGBAColor, RGBColor, TransformBehavior, ValueType, } from "~/types"; import { capToRange } from "~/util/math"; const toNumber: Partial<Record<ValueType, (value: unknown) => number | undefined>> = { [ValueType.Any]:...
import * as Lint from "tslint"; import * as ts from "typescript"; import { failure } from "../util"; export class Rule extends Lint.Rules.AbstractRule { static metadata: Lint.IRuleMetadata = { ruleName: "strict-export-declare-modifiers", description: "Enforces strict rules about where the 'export' and 'decl...
import { TmxJson, Layer, TsxJson, TileLayer, GroupLayer, ObjectLayer, ImageLayer } from './model/tiled'; import { isTileLayer, isGroupLayer, isObjectLayer, isImageLayer, isEllipse, isPoint, isPolygon, isPolyline, isRectangle, isText, isTilemapObject } from './helpers'; impor...
<gh_stars>1-10 import { LoxObject } from "./types" import { SyntaxError } from "./error" export enum TokenType { // Single character tokens LeftParen = "LeftParen", // '(' RightParen = "RightParen", // ')' LeftBrace = "LeftBrace", // '{' RightBrace = "RightBrace", // '}' Comma = "Comma", // ',' Dot = "Do...
import * as React from 'react'; import clsx from 'clsx'; import MenuIcon from '@material-ui/icons/Menu'; import DrawerMenu from './components/DrawerMenu'; import Github from '../_shared/svgIcons/GithubIcon'; import SettingsIcon from '@material-ui/icons/Settings'; import LightbulbOutlineIcon from '../_shared/svgIcons/Li...
<filename>lib/selectors.ts import { Range, TextBuffer, TextEditor, Point } from "atom"; export interface Selector { statusbarName: string; matches(buffer: TextBuffer, range: Range): boolean; nextLeft(buffer: TextBuffer, from: Point): Range | undefined; nextRight(buffer: TextBuffer, from: Point): Range | undefi...
/** * FF Typescript Foundation Library * Copyright 2021 <NAME>, Frame Factory GmbH * * License: MIT */ import math from "@ff/core/math"; import Color, { Vector3 } from "@ff/core/Color"; import "./LineEdit"; import { ILineEditChangeEvent } from "./LineEdit"; import LinearSlider, { ILinearSliderChangeEvent} from "...
<filename>frontend/packages/console-plugin-sdk/src/typings/dashboards.ts import { SubsystemHealth } from '@console/internal/components/dashboards-page/overview-dashboard/health-card'; import { GridPosition } from '@console/internal/components/dashboard/grid'; import { FirehoseResource, Humanize } from '@console/interna...
<reponame>muchas/tesco-auto-trolley<filename>src/main.ts import * as $ from 'jquery'; import patterns from './patterns'; import { findProduct, getProduct, addToTrolley, resetTrolley } from './tesco_api'; const aliases = { 'bor<NAME>': 2003000323849, 'maślanki': 2003009324991, 'łosoś wędzony na gorąco': 20...
import * as DMVAST from 'vast-client'; const VASTUrl = 'http://example.dailymotion.com/vast.xml'; function cb(response: DMVAST.VastResponse, error: Error): void { if (error) return; // process the VAST response const ads: DMVAST.VastAd[] = response.ads; const linearCreative = response.ads[0].creatives....
<filename>packages/tracing/src/browser/browsertracing.ts import { Hub } from '@sentry/hub'; import { EventProcessor, Integration, Transaction as TransactionType, TransactionContext } from '@sentry/types'; import { logger } from '@sentry/utils'; import { startIdleTransaction } from '../hubextensions'; import { DEFAULT_...
import * as Message from './message' import {Context} from './context' import logger from './logger' import * as Utils from './utils' import {startAuth} from './cmd-auth' export enum ReturnType { Ok = 'ok', Error = 'error', } export type Result<T> = Readonly<{type: ReturnType.Ok; result: T}> export type Error<E e...
import { AddIcon, Button, IconButton, MinusIcon, Skeleton, Text, useModal } from '@pancakeswap/uikit' import { useWeb3React } from '@web3-react/core' import ConnectWalletButton from 'components/ConnectWalletButton' import { ToastDescriptionWithTx } from 'components/Toast' import { BASE_ADD_LIQUIDITY_URL } from 'config'...
import { certs, certsQueryID } from "@/atoms/cert"; import { emulatorConnection, emulatorProjectId } from "@/atoms/ui"; import { ignoreBackdropEvent, toBase64 } from "@/utils/common"; import { Anchor, Button } from "@zendeskgarden/react-buttons"; import { FileUpload, Input } from "@zendeskgarden/react-forms"; import { ...
import { getLinode, getLinodeLishToken, Linode, } from '@linode/api-v4/lib/linodes'; import * as React from 'react'; import { matchPath, RouteComponentProps, withRouter } from 'react-router-dom'; import CircleProgress from 'src/components/CircleProgress'; import TabPanels from 'src/components/core/ReachTabPanels'...
// Copyright (c) 2015-2016 <NAME> // MIT License, see LICENSE file for full terms. import * as path from 'path'; import * as ts from 'typescript'; import * as babel from 'babel-core'; import * as SourceMap from 'source-map'; import * as _ from 'lodash'; function isSourceMappingURLComment(comment: string): boolean { ...
<reponame>Salem-Abderaouf/svg2pdf.js<filename>src/nodes/text.ts import { Context } from '../context/context' import { TextChunk } from '../textchunk' import { defaultBoundingBox } from '../utils/bbox' import { mapAlignmentBaseline, toPixels } from '../utils/misc' import { getAttribute, nodeIs, svgNodeAndChildrenVisible...
import React, { memo, useState, useEffect, useRef } from "react"; import { isEmpty } from "lodash"; import "./Claymate.css"; import { Drawing, Scene } from "./types"; import { exportToGif } from "./exportToGif"; import { exportToHtml, previewHtml } from "./exportToHtml"; import AnimateConfig, { AnimateOptions } from "...
<reponame>waitingsong/base64 import { baseChars, } from '../src/lib/config' import { _dummy } from './patch' // @ts-ignore export const isIE = /* @cc_on!@*/false || !! document.documentMode // @ts-ignore export const isEdge = ! isIE && !! window.StyleMedia export const input1: Array<string | number | bigint> = [ ...
<filename>packages/util/src/array.ts /** * Flatten a two dimensional array into a one dimensional array * @param arr The array to be flattened. * @returns A one dimensional array. */ export function flat<T>(arr: T[][]): T[] { return arr.reduce((flattened, subArr) => [...flattened, ...subArr], []); } /** * Remov...
/** * @license * Copyright 2018 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/licenses/LICENSE-2.0 * * Unless required by...
<filename>src/utils/utils.ts<gh_stars>10-100 import { ArrowKeys, CropValue, Directions, AspectRatio, Status } from "../types"; import { State } from "../reducers"; export const arePassiveListenersSupported = (): boolean => { try { const options = Object.defineProperty({}, "passive", { get: (): bo...
import React, { Component } from 'react'; import autoHeight from '../autoHeight'; import styles from './index.less'; /* eslint no-return-assign: 0 */ /* eslint no-mixed-operators: 0 */ // riddle: https://riddle.alibaba-inc.com/riddles/2d9a4b90 export interface WaterWaveProps { title: React.ReactNode; color?: str...
<filename>genset.app/src/app/components/admin/bulk-upload/bulk-upload-add/bulk-upload-add.component.ts import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router' import { FormControl, FormGroup, Validators } from '@angular/forms' import { NgxSpinne...
import { LogLevel } from 'lines-logger'; export enum GrowlType { SUCCESS = 'col-success', INFO = 'col-info', ERROR = 'col-error' } export interface GrowlModel { id: number; html: string; type: GrowlType; } export type permissions_type = ('audio' | 'video')[] export interface PlatformUtil { askPermissions(....
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
<gh_stars>0 import { convertNumberSkeletonToNumberFormatOptions, isArgumentElement, isDateElement, isDateTimeSkeleton, isLiteralElement, isNumberElement, isNumberSkeleton, isPluralElement, isPoundElement, isSelectElement, isTimeElement, MessageFormatElement, parseDateTimeSkeleton, isTagEleme...
import React from "react"; import { random, range } from "lodash"; import { VictoryPie } from "@packages/victory-pie"; import { VictoryTooltip } from "@packages/victory-tooltip"; import { VictoryTheme } from "@packages/victory-core"; interface VictoryPieDemoState { data: { x: string; y: number; label?: s...
import classNames from 'classnames'; import { isNull, isUndefined } from 'lodash'; import { useCallback, useEffect, useState } from 'react'; import { GrPieChart } from 'react-icons/gr'; import { IoIosArrowBack } from 'react-icons/io'; import { useLocation, useNavigate, useParams } from 'react-router-dom'; import API f...
<reponame>MaxGraey/xi-electron import { elt, removeChildrenAndAdd, /* removeChildren */ } from '../../../utils/dom'; import EventEmitter from '../../../utils/emitter'; export type FontOptions = { family?: string, size?: number }; /** * This class calculates font widths, heights and baselines. It also provides *...
// dojo import i18n from "dojo/i18n!./InteractiveLegend/nls/Legend"; // esri.widgets.Widget import Widget = require("esri/widgets/Widget"); // esri.core.accessorSupport.decorators import { aliasOf, property, subclass, cast } from "esri/core/accessorSupport/decorators"; // esri.widgets.support.widget import {...
<gh_stars>0 import {enhanceNodeInspectClass} from "@internal/node"; import { ResourceGetDetails, ResourceOptions, ResourceTree, ResourceTreeEntry, ResourcesContainer, } from "./types"; import {extractResource} from "./index"; import {getEnvVarBoolean} from "@internal/cli-environment"; import {createResourceContain...
<reponame>MasterCash/Viseur<filename>src/games/saloon/tile.ts // This is a class to represent the Tile object in the game. // If you want to render it in the game do so here. import { Immutable } from "src/utils"; import { Viseur } from "src/viseur"; import { makeRenderable } from "src/viseur/game"; import { GameObject...
import React from "react"; import axios from "axios"; import { JobProgress } from "farmbot/dist"; import { SemverResult, semverCompare, fallbackData } from "../../util"; import { OsUpdateButtonProps } from "./interfaces"; import { checkControllerUpdates, bulkToggleControlPanel, toggleControlPanel, } from "../../devic...
import React from 'react' import Flv from './components/Flv' import { connect } from 'dva'; import type { Dispatch } from 'umi'; import {Button, Input, Select, Radio, Checkbox} from 'antd'; import flvjs from 'flv.js' import type FlvJs from 'flv.js'; import type { DevListItem } from '../devices-management/data' import t...
import React, { useState, useEffect, useMemo } from "react"; import { useQueryParams, navigate } from "raviger"; import ListFilter from "./ListFilter"; import ResourceBoard from "./ResourceBoard"; import { RESOURCE_CHOICES } from "../../Common/constants"; import { make as SlideOver } from "../Common/SlideOver.gen"; // ...
// Copyright 2020 Vircadia Contributors // // 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 applicabl...
import { IssuesDatabase, IIssue } from '../databases/issues-database' import { API, IAPIIssue } from '../api' import { Account } from '../../models/account' import { GitHubRepository } from '../../models/github-repository' import { compare, compareDescending } from '../compare' import { DefaultMaxHits } from '../../ui/...
<gh_stars>10-100 import { parse, evaluate, DocumentNode, Node, ObjectNode, } from '@humanwhocodes/momoa'; import { GeoJSON } from 'geojson'; import { HintError, makeIssue } from './errors'; import { GeoJSONTypeSet, GEOJSON_TYPES, GEOJSON_GEOMETRY_TYPES, GEOJSON_GEOMETRY_TYPES_EX_GEOMETRY_COLLECTION, ...
<reponame>kuzeydev/abaplint import {Issue} from "../issue"; import {ABAPRule} from "./_abap_rule"; import {BasicRuleConfig} from "./_basic_rule_config"; import * as Statements from "../abap/2_statements/statements"; import * as Expressions from "../abap/2_statements/expressions"; import * as Structures from "../abap/3_...
<reponame>jeremyosborne/dnpk // // All code within the game should, except otherwise and explicitly noted, make // use of this particular random number generator. // // Reasons code might not use this random number generator: // // - Terrain generation that runs in its own process over time. // // This file exists to a...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; import * as utilities from "./utilities"; e...
/** * @license * Copyright 2017 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 ...
<gh_stars>0 interface IMinMax { Length: number, Msg: string } interface IError { ErrorMsg: string, Type: string, Code: Function, Regex: RegExp, Equal: { To: any, Msg: string }, Is: { Required: boolean, Msg: string }, Min: IMinMax, Max: IMinMax, MinMax: { ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Typefox. All rights reserved. *--------------------------------------------------------------------------------------------*/ import * as assert from 'assert'; import * as fs from 'fs'; import * as path f...
<gh_stars>0 /** * umi-plugin-oss * * @export * @param {*} api umi相关 * @param {*} options 插件配置 */ import { IApi } from 'umi-plugin-types'; const OSS = require('ali-oss'); const path = require('path'); const fs = require('fs'); const os = require('os'); /** * OSS配置 */ export interface OssConfig {...
import React, { useState } from 'react' import { observer } from 'mobx-react' import TextField from '@material-ui/core/TextField' import FileSelector from '@jbrowse/core/ui/FileSelector' import { FileLocation } from '@jbrowse/core/util/types' import { Grid, MenuItem, Paper } from '@material-ui/core' import { makeStyles...
<reponame>dbismut/vue-use-gesture<gh_stars>100-1000 import { computed, onMounted, onUnmounted, reactive, Ref, ref, watch, toRefs } from 'vue-demi' import { SpringConfig, noWobble } from './presets' import { raf, cancelRaf, now, isArray, stepper, isFunction } from './utils' const msPerFrame = 1000 / 60 type NumericalV...
import { Animated, Dimensions, LayoutAnimation, PanResponder, Text, UIManager, ViewStyle, } from 'react-native'; import React, { PropsWithChildren, ReactElement, Ref, forwardRef, useCallback, useImperativeHandle, useMemo, useState, } from 'react'; import styled from 'styled-components/nat...
<reponame>wdaimee/learn import { Inject, Injectable } from '@nestjs/common'; import Listr from 'listr'; import { Connection, Repository } from 'typeorm'; import { UserService } from '../../User/User.service'; import { DatabaseService } from '../Database.service'; import { UserPreferencesService } from '../../UserPrefe...
<filename>src/components/SplitPane/hooks/useSplitPaneResize.ts import * as React from 'react'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { SplitPaneProps, CollapseOptions } from '..'; import { useDragState, BeginDragCallback, DragState } from './effects/useDragState'; import ...
<filename>src/commons/workspace/WorkspaceActions.ts<gh_stars>0 import { action } from 'typesafe-actions'; import { Context } from 'x-slang'; import { Variant } from 'x-slang/dist/types'; import { SET_EDITOR_READONLY } from '../../features/sourceRecorder/sourcecast/SourcecastTypes'; import { SourceLanguage } from '../a...
/** * 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 agreed to...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may no...
<reponame>bartlomieju/dprint-swc-ecma-ast-view<filename>generation/analyze/analyze_ast_crate.ts import type { AstEnumDefinition, AstEnumVariantDefinition, AstStructDefinition, AstStructFieldDefinition, PlainEnumDefinition, PlainEnumVariantDefinition, TypeDefinition, } from "./analysis_types.ts"; import ty...
import { getBitSize } from "./utilities.ts"; import type { BitFieldConstructor, BitFieldStructure, } from "./bit-field-types.ts"; const SIGN_BIT = 2147483647; const MAX_BITWISE_SIZE = 31; class BitField< K extends PropertyKey, > implements BitFieldStructure<K, number> { static schema: Record<PropertyKey, numb...
/** * 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 applicable law or agreed to...
/** * Copyright 2017 Google Inc. All rights reserved. * Modifications copyright (c) Microsoft 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.or...
/** * @license * * Copyright IBM Corp. 2020, 2022 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { customElement, property, query, state } from 'lit-element'; import settings from 'carbon-components/es/globals/js/set...
<reponame>g787543/boclips-player<gh_stars>0 import deepmerge from 'deepmerge'; import { addListener as addResizeListener } from 'resize-detector'; import uuid from 'uuid/v1'; import { AxiosBoclipsApiClient } from '../BoclipsApiClient/AxiosBoclipsApiClient'; import { BoclipsApiClient } from '../BoclipsApiClient/BoclipsA...
/* eslint-disable react-native/no-inline-styles */ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState, } from 'react'; import { Platform, // @ts-ignore Pressable, StyleSheet, useWindowDimensions, View, ViewProps, } from 'react-native'; import Backdrop fro...
<gh_stars>1-10 import { ControllerEvent, MIDIControlEvents } from "midifile-ts" import { ImmediateEvent, MIDIEvent, MIDIEventBody, SynthEvent, } from "../SynthEvent" import { DistributiveOmit } from "../types" import { insertSorted } from "./insertSorted" import { logger } from "./logger" import { SynthProcesso...
import { Modifier, Placement } from '@popperjs/core'; import React, { useEffect, useMemo, useRef, useState } from 'react'; import ReactDOM from 'react-dom'; import { usePopper } from 'react-popper'; import { UUIFunctionComponent, UUIFunctionComponentProps } from '../../core'; import ReactHelper from '../../utils/ReactH...
<filename>packages/opencensus-exporter-stackdriver/test/test-stackdriver-cloudtrace.ts /** * Copyright 2018, OpenCensus Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * This script is used by the build server to compute the version number of the packages. * The release version number is based on what's in the lerna.json/package.json. * The CI will supply the build number a...
import { PerspectiveCamera } from 'three/src/cameras/PerspectiveCamera'; import type { Object3D } from 'three/src/core/Object3D'; import type { Matrix4 } from 'three/src/math/Matrix4'; import { Vector3 } from 'three/src/math/Vector3'; import { Clock } from 'three/src/core/Clock'; import { Vector } from '@/utils/Vector...
import { TuringHelperFactory } from "@turing/contracts/gen/types"; import { Contract } from "@ethersproject/contracts"; import { abis, addresses } from "@turing/contracts"; import { utils } from "ethers"; import { shortenAddress, useContractFunction, useEthers } from "@usedapp/core"; import { CustomButton, SmallerParag...
/** * ❌: The expectation should be equal to false * ✅: The expectation should be equal to true * ➖: The expectation can be equal to true or false */ import type { Type } from '../../src/types'; import values from '../__Fixtures/values'; import isOfType from '../../src/isOfType'; import isInt from '../../src/isInt'...
<gh_stars>10-100 import { mapValues, isPlainObject, pickBy } from 'lodash'; import { EventEmitter } from 'events'; import { PostTransactionResolver, isPostTransactionResolver, } from '../PostTransactionResolver'; import { TransactionSpec, ErrorCodes, TransactionStatus, PolyTransactionTags, } from '../types'...
/** * Copyright (c) 2018, Gnock * Copyright (c) 2018-2020, ExploShot * Copyright (c) 2018-2020, The Qwertycoin Project * Copyright (c) 2018-2020, The Masari Project * Copyright (c) 2014-2018, MyMonero.com * * All rights reserved. * Redistribution and use in source and binary forms, wi...
import {WebmateAPISession} from "../webmate-api-session"; import {UriTemplate, WebmateAPIClient} from "../webmate-api-client"; import {WebmateAuthInfo} from "../webmate-auth-info"; import {WebmateEnvironment} from "../webmate-environment"; import {BrowserSessionId, BrowserSessionStateId} from "../types"; import {Browse...
<gh_stars>0 import { Connector, Pagination } from './types'; import mapValues from 'lodash/mapValues'; import isEmpty from 'lodash/isEmpty'; import reduce from 'lodash/reduce'; import * as firebase from 'firebase'; import { paginator, filter } from 'canner-graphql-utils'; import { Field, Types } from 'canner-graphql-ut...
<gh_stars>10-100 import { MbPlugin } from './plugins'; import { unflatten } from '../utils'; import { Data } from '../utils'; import MbContext from '../../context/context'; export interface Ctx { time?: string; language?: string; territory?: string; composer_name?: string; } function multipleSelectArray(value...
/* eslint-disable no-console */ 'use strict' import * as React from 'react' import {useParams, useHistory} from 'react-router-dom' import { tryGetNFT, isOptedIntoApp } from './lib/algorand' import {Tag, Card, FormGroup, Label, Button, MultistepDialog, DialogStep, Classes, NumericInput, Elevation} from '@blueprintjs/co...
import React, { useEffect, useState } from 'react' import styled, { css } from 'styled-components' import PropTypes from 'prop-types' import { useCombobox } from 'downshift' import { IoIosArrowDown } from 'react-icons/io' import { Box, Props as BoxPros } from '../Box' import { Input } from '../Input' import { Loading ...
import { camelCaseToDash, defer, DefferObject, generateQuickGuid, scheduleMicrotask, validateSelector, } from '@atomify/shared'; import { clear, Hooks, ListenMap, Property, setCurrentElement } from '../hooks'; import { DID_LOAD_SYMBOL, DID_UNLOAD_SYMBOL, Phase, PHASE_SYMBOL, ...
<reponame>dlid/pkv-xmca<filename>lib/xTouchMini.class.ts<gh_stars>0 import { differenceInSeconds } from 'date-fns'; import * as easymidi from 'easymidi'; import { Observable, Subject } from 'rxjs'; import { Logger, LogService } from './log/logService.class'; export interface NotChangeEvent { channel: easymidi.Chan...
<gh_stars>0 import { FileType } from '../../../../helpers/enums/FileType'; import { Bot } from '../../Bot'; import { Channel, Message, TextChannel, Snowflake, Collection } from 'discord.js'; import { EmojiReader } from '../../../../dal/readers/EmojiReader'; import { Printer } from '../../../../console/Printer'; import ...
import { Component, Prop, Element, Host, Event, EventEmitter, h, Method } from '@stencil/core'; import { HostElement } from '@stencil/core/dist/declarations'; import { Inject, exportToGlobal } from '../../utils/utils'; import { ComponentStyle, Placement } from '../../global/typing'; export type NotificationCreate...
import { ChunkDependencies, ChunkExports } from '../../Chunk'; import { GetInterop } from '../../rollup/types'; import { GenerateCodeSnippets } from '../../utils/generateCodeSnippets'; import { defaultInteropHelpersByInteropType, isDefaultAProperty, namespaceInteropHelpersByInteropType } from '../../utils/interopHel...
import { dirname, isAbsolute, relative, normalize } from 'path'; import type { GraphQLSchema, DocumentNode } from 'graphql'; import type { Source } from '@graphql-tools/utils'; import minimatch from 'minimatch'; import { LoadSchemaOptions as ToolsLoadSchemaOptions, LoadTypedefsOptions as ToolsLoadTypedefsOptions, ...