text
stringlengths
3.3k
33k
import { CliDeclaration, ResolveCliDeclaration } from "./type-logic"; import { createKebabAlias, findKeyCollision } from "./utils"; import { Parser, prepareCliDeclaration } from "./parser"; import { Writer, Exiter, ArgvProvider, EnvProvider } from "./cli-helper"; import { Printer } from "./printer"; import { isError } ...
import React, { FC, ReactNode } from 'react'; import { MouseEventHandler } from 'react'; import { useState, useRef } from 'react'; export const HamburgerMenuPage = () => { const [isOpen, setIsOpen] = useState(false); const toggle = () => { setIsOpen(!isOpen); }; return ( <Navbar bgColor="bg-green-70...
import React, { useCallback, Fragment } from 'react'; import { last, isNumber, max } from 'lodash'; import { AxisLeft } from '@vx/axis'; import { Group } from '@vx/group'; import { ParentSize } from '@vx/responsive'; import { scaleLinear } from '@vx/scale'; import { useTooltip } from '@vx/tooltip'; import { formatPerce...
/* * Copyright 2019 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import { WebPartContext } from "@microsoft/sp-webpart-base"; import { SPHttpClient } from "@microsoft/sp-http"; import { ISearchResult, BingQuerySearchParams, IRecentFile } from "./FilesSearchService.types"; import { find } from "office-ui-fabric-react/lib/Utilities"; import { ExtensionContext } from "@microsoft/sp-ext...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
<gh_stars>10-100 import { computed } from "mobx"; import { createTransformer } from "mobx-utils"; import filterOutUndefined from "../Core/filterOutUndefined"; import isDefined from "../Core/isDefined"; import { JsonObject } from "../Core/Json"; import ConstantColorMap from "../Map/ConstantColorMap"; import DiscreteColo...
import { binarySearchEpsilon as binarySearch } from '../core/data/utils/binary-search'; import { errorID } from '../core/platform/CCDebug'; import { Vec2 } from '../core/value-types'; import { computeRatioByType, CurveType, CurveValue, DynamicAnimCurve, ICurveTarget } from './animation-curve'; import { bezier } from '....
import * as React from 'react'; import { useState, useMemo, useCallback } from 'react'; import classNames from 'classnames'; import ResizeObserver from 'rc-resize-observer'; import useLayoutEffect from 'rc-util/lib/hooks/useLayoutEffect'; import Tag from './Tag'; import { useBatchFrameState } from '../hooks/useBatchFra...
<filename>server/src/types/graphql.tsx import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; export type Maybe<T> = T | null; export type RequireFields<T, K extends keyof T> = { [X in Exclude<keyof T, K>]?: T[X] } & { [P in K]-?: NonNullable<T[P]> }; /** All built-in and custom scala...
<gh_stars>1-10 /** * @author: zenggo * @Date: 2018-04-27 13:57:17 * @Last Modified by: zenggo * @Last Modified time: 2018-05-02 18:20:58 */ import { TElement, TType, FabricObject, FabricCanvas, LineStyle, LineWidth, Colors } from '../data' const fabric = require('fabric') import SizeManager from '../sizeManager...
<reponame>pimterry/http-server-mock import * as _ from 'lodash'; import * as net from 'net'; import { TLSSocket } from 'tls'; import * as http from 'http'; import * as http2 from 'http2'; import * as stream from 'stream'; import * as querystring from 'querystring'; import now = require("performance-now"); import * as u...
import * as React from 'react' import * as THREE from 'three' import { useFrame, useThree } from '@react-three/fiber' export type SizeProps = { box: THREE.Box3 size: THREE.Vector3 center: THREE.Vector3 distance: number } export type BoundsApi = { getSize: () => SizeProps refresh(object?: THREE.Object3D | ...
/// <amd-module name="Browser/_Event/Server/worker/event-bus.worker" /> /// <reference path="../resources/stomp.d.ts" /> /// <reference path="messages.d.ts" /> const VERSION = 318.350; import * as Page from '../worker-connect/messages/Page'; import { Subscribe } from 'Browser/_Event/Server/worker/subscribe'; import { ...
<reponame>alii13/live-ide<gh_stars>10-100 import type { editor } from 'monaco-editor'; import * as R from 'remeda'; import { TypedEventEmitter } from '../lib/TypedEventEmitter'; import { CodeModel } from './CodeModel'; import { CodeActionsCallbackMap, CodeChangesData, CursorUpdatedData, MarkerSeverity, Monaco...
<gh_stars>1-10 import { BaseVisitor, EnumValuesMap, indent, indentMultiline, ParsedConfig, transformComment, getBaseTypeNode, buildScalarsFromConfig, } from '@graphql-codegen/visitor-plugin-common'; import { KotlinResolversPluginRawConfig } from './config'; import { EnumTypeDefinitionNode, EnumValue...
import { apiUrl } from 'config'; import Head from 'next/head'; import TopReview from 'components/mentors/TopReview'; import OtherMentorsView from 'components/mentors/OtherMentorsView'; import ContactMentorForm from 'components/mentors/ContactMentorForm'; import { mentorType, subjectStrengthType } from 'types/mentor'; ...
import React, { ChangeEvent, KeyboardEvent, useEffect, useMemo, useRef, useState, } from "react"; import { debounce } from "lodash"; import algoliasearch from "algoliasearch"; import { useMousetrap } from "use-mousetrap"; import { useRouter } from "next/router"; import { Box, CircularProgress, IconBut...
<gh_stars>1-10 import { View } from "../core/view"; import { CacheLayerType, isDataURI, isFileOrResourcePath, layout, RESOURCE_PREFIX, FILE_PREFIX } from "../../utils/utils"; import { parse } from "../../css-value"; import { path, knownFolders } from "../../file-system"; import { android as androidApp } from "../../app...
import { ApiClientBase } from "./ApiClientBase"; import { AreaStatsResponse, AssessmentInfosRequest, AssessmentResponse, Consent, LoginOrRegisterResponse, PatientInfosRequest, PiiRequest, StartupInfo, TokenInfoRequest, TokenInfoResponse, UserResponse } from "./dto/UserAPIContract...
/** * @module node-opcua-factory */ import { assert } from "node-opcua-assert"; import { coerceBoolean, coerceByte, coerceByteString, coerceDateTime, coerceDouble, coerceExpandedNodeId, coerceFloat, coerceInt16, coerceInt32, coerceInt64, coerceInt8, coerceNodeId, coerceSByte, coerceUInt16, co...
/******************************************************************************** * Copyright (C) 2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * Th...
// Type definitions for apostrophe 2.67 // Project: https://github.com/apostrophecms/apostrophe#readme // Definitions by: <NAME> <https://github.com/afholderman> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 export = apostrophe; export as namespace apos; declare functio...
/** * Copyright (c) 2022 Dell Inc., or its subsidiaries. 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 */ im...
<reponame>bobisapotato/gerrit<filename>polygerrit-ui/app/elements/admin/gr-group-members/gr-group-members.ts /** * @license * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
<filename>src/config-view/editors/scratch/init.ts /** * MyBricks Opensource * https://mybricks.world * This source code is licensed under the MIT license. * * MyBricks team @2019 * mailTo:<EMAIL> wechatID:ALJZJZ */ import initBlocks from './blocks/initBlocks' import BlocklyContext from "./BlocklyContext"; let ...
// These are the characters used to output literals (but we support aliases for some of these) const hexChars = [".", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]; export interface Coord { x: number, y: number } export interface BitmapData { width: number; height: number;...
import React from "react" import {makeStyles} from "@material-ui/core/styles" import {useObserver} from "mobx-react-lite" import Grid from "@material-ui/core/Grid" import Typography from "@material-ui/core/Typography" import {useTranslation} from "react-i18next" import Slider from "@material-ui/core/Slider" import {sco...
import * as typescript from 'typescript'; import { Chalk } from 'chalk'; export interface SourceMap { sources: any[]; file: string; sourcesContent: string[]; } export interface ErrorInfo { code: number; severity: Severity; content: string; file: string; line: number; character: number; } export int...
import * as d3 from 'd3'; import './ProcessGraphic.scss'; import { Component } from "./../../Interfaces/Component"; import { PlaybackControls } from '../PlaybackControls/PlaybackControls'; import { ServerClient } from '../../../ServerClient/ServerClient'; import { Utils } from '../../Utils'; import { TsqRange } from '....
import * as clc from "cli-color"; import * as fs from "fs"; import * as path from "path"; import { FirebaseError } from "../error"; import { logger } from "../logger"; import { logBullet } from "../utils"; const FUNCTIONS_EMULATOR_DOTENV = ".env.local"; const RESERVED_PREFIXES = ["X_GOOGLE_", "FIREBASE_", "EXT_"]; c...
<reponame>duongnhn/vscode-js-debug<filename>src/adapter/breakpoints/breakpointBase.ts<gh_stars>0 /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { BreakpointManager } from '../br...
<filename>projects/renderer/src/app/accessibility/accessibility.manager.ts /* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org...
<gh_stars>0 // AI CORE import * as fs from 'fs'; import autobind from 'autobind-decorator'; import * as loki from 'lokijs'; import * as request from 'request-promise-native'; import * as chalk from 'chalk'; import { v4 as uuid } from 'uuid'; const delay = require('timeout-as-promise'); import config from '@/config'; ...
<reponame>fhdyt/gig /** * FormValidation (https://formvalidation.io) * The best validation library for JavaScript * (c) 2013 - 2021 <NAME> <<EMAIL>> */ import { Localization, ValidateFunctionInterface, ValidateInput, ValidateOptions, ValidateResult, } from '../core/Core'; import fo...
<filename>src/animation.ts import { Clock } from "three"; import { PlayerObject } from "./model.js"; export interface IAnimation { play(player: PlayerObject, time: number): void; } export type AnimationFn = (player: PlayerObject, time: number) => void; export type Animation = AnimationFn | IAnimation; export funct...
#!/usr/bin/env node import mri from 'mri'; import execa from 'execa'; import * as fs from 'fs-extra'; import * as path from 'path'; import chalk from 'chalk'; import resolve from 'resolve'; import { pascalCase as toPascalCase, paramCase as toParamCase, } from 'change-case'; import prompts from 'prompts'; import re...
import { FilterOutlined, PlusOutlined } from "@ant-design/icons"; import { ThreeBarsIcon, XIcon } from "@primer/octicons-v2-react"; import { AutoComplete, Button, Checkbox, Input, Modal, Space, Typography } from "antd"; import Item from "antd/lib/list/Item"; import Paragraph from "antd/lib/typography/Paragraph"; import...
<filename>src/compiler/entries/entry-modules.ts import * as d from '../../declarations'; import { buildError, buildWarn, catchError } from '../util'; import { calcComponentDependencies } from './component-dependencies'; import { DEFAULT_STYLE_MODE, ENCAPSULATION } from '../../util/constants'; import { generateComponent...
<reponame>spitz-dan-l/wreck import {World, WorldSpec, update_thread_maker} from './world'; import { traverse_thread, ParserThread, RawConsumeSpec, Parser, gate } from './parser'; import { deep_equal, drop_keys } from './utils'; import { find_historical } from './interpretation'; /* Take a world and return some pro...
import * as crypto from 'crypto' import { EventEmitter } from 'events' import { WriteStream } from 'fs' import { Readable } from 'stream' import * as request from 'superagent' import * as WebSocket from 'ws' import { URL } from 'url' import { Env, Gender, Language, XfYunApp } from '../env' const BUFFER_SIZE = 1280 l...
<filename>addons/xterm-addon-serialize/src/SerializeAddon.test.ts /** * Copyright (c) 2018 The xterm.js authors. All rights reserved. * @license MIT */ import jsdom = require('jsdom'); import { assert } from 'chai'; import { SerializeAddon } from './SerializeAddon'; import { Terminal } from 'browser/public/Terminal...
import * as vscode from "vscode"; import * as os from "os"; import ICommand from "./ICommand"; import * as fileStore from "../store/fileStore"; import { EXEC, START_DEV_MODE, SYNC_SERVICE } from "./constants"; import registerCommand from "./register"; import { TMP_APP, TMP_DEVSTART_APPEND_COMMAND, TMP_KUBECONFIG...
/** * @ignore */ /** a second comment */ import { Backend, DragDropManager } from 'dnd-core'; import { NgZone } from '@angular/core'; import { invariant } from './invariant'; import { TypeOrTypeArray } from '../type-ish'; import { Subscription, Observable, ReplaySubject, BehaviorSubject, Teardown...
<gh_stars>10-100 import { Hash } from "@siteimprove/alfa-hash"; import { Parser } from "@siteimprove/alfa-parser"; import { Slice } from "@siteimprove/alfa-slice"; import { Token } from "../../syntax/token"; import { Value } from "../../value"; import { Number } from "../number"; const { map } = Parser; /** * @pub...
/* Copyright 2017 Google Inc. 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 applicable law or agreed to in ...
import * as fs from "fs"; import * as path from "path"; import { DiagnosticMessages } from "../diagnostics"; import { CompilerOptions } from "../options"; import { Checker, Resolver } from "../checker"; import { StringWriter } from "../stringwriter"; import { SyntaxKind, tokenToString } from "../tokens"; import ...
import * as React from 'react'; import { AmplifyProvider, Authenticator, Button, Card, Flex, Grid, Heading, IconChevronRight, Image, Link, Text, TextField, ToggleButton, ToggleButtonGroup, View, useTheme, } from '@aws-amplify/ui-react'; import { Copy } from '@/components/Copy'; import ...
<gh_stars>0 import { createContainer } from 'unstated-next'; import { useMemo, useEffect, useState } from 'react'; import { useRecoilValue } from 'recoil'; import { ethers } from 'ethers'; import { renBTCToken } from 'contracts'; import Connector from 'containers/Connector'; import { appReadyState } from 'store/app'; ...
<reponame>MoralCode/universal-router /** * Universal Router (https://www.kriasoft.com/universal-router/) * * Copyright (c) 2015-present Kriasoft. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import { match, Path, Match...
import * as R from "ramda"; import { authz, graphTypes, getEnvironmentName, getEnvironmentsByEnvParentId, } from "@core/lib/graph"; import { exit } from "../../lib/process"; import { Argv } from "yargs"; import { dispatch, initCore } from "../../lib/core"; import { BaseArgs } from "../../types"; import { Client...
import React from 'react'; import { action, computed, configure, observable } from 'mobx'; import { observer } from 'mobx-react'; import ReactDOM from 'react-dom'; import { FieldFeedback, FieldFeedbacks, FormWithConstraints, Input as _Input, InputProps } from 'react-form-with-constraints'; import { DisplayFie...
<filename>src/store/object.ts import { transaction, toJS, makeAutoObservable, AnnotationsMap, CreateObservableOptions, isObservableProp, isComputedProp, isAction as isMobxAction, action as mobxAction, } from 'mobx'; declare global { // eslint-disable-next-line @typescript-eslint/no-namespace expo...
/* * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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...
<filename>src/modules/design/property-panel/indextabs/forms/sections/basics/basics.ts import {EventAggregator} from 'aurelia-event-aggregator'; import {inject} from 'aurelia-framework'; import {ValidateEvent, ValidationController, ValidationRules} from 'aurelia-validation'; import { IEnumValue, IExtensionElement, ...
<filename>aws/client/lib/aws-v4.ts import * as CryptoJS from "crypto-js"; import { Method } from "axios"; import { HttpRequestConfig } from "@mcma/client"; import { McmaException } from "@mcma/core"; const AWS_SHA_256 = "AWS4-HMAC-SHA256"; const AWS4_REQUEST = "aws4_request"; const AWS4 = "AWS4"; const X_AMZ_DATE = "...
import * as XmlCore from "xml-core"; import request from "sync-request"; import { TrustedList, X509Certificate } from "../tl"; const MozillaAttributes = { CKA_CLASS: "CKA_CLASS", CKA_TOKEN: "CKA_TOKEN", CKA_PRIVATE: "CKA_PRIVATE", CKA_MODIFIABLE: "CKA_MODIFIABLE", CKA_LABEL: "CKA_LABEL", CKA_CERTIFICATE_TY...
import React, { Component } from 'react'; import { Card, CardBody, Table, Row, Col, CardFooter, Badge, Button, Modal, ModalHeader, ModalBody, ModalFooter, FormGroup, Form, Label, Input, InputGroup, InputGroupAddon, InputGroupText, CardHeade...
<reponame>vitale232/ngrid import * as Path from 'path'; import * as FS from 'fs'; import * as globby from 'globby'; import * as matter from 'gray-matter'; import { SyncHook } from 'tapable'; import * as webpack from 'webpack'; import * as unified from 'unified'; import * as markdown from 'remark-parse'; import * as rem...
<reponame>dnegstad/umbrella<gh_stars>0 import type { DeepPath, OptPathVal, Path, Path0, Path1, Path2, Path3, Path4, Path5, Path6, Path7, Path8, PathVal, Watch, } from "@thi.ng/api"; import { assert } from "@thi.ng/errors/assert"; import { illegalState } from "@thi...
import { LatLngBounds } from 'leaflet'; import { union } from 'lodash'; import { reaction, IReactionDisposer } from 'mobx'; import { inject, observer } from 'mobx-react'; import React, { Component } from 'react'; import { Polyline } from 'react-leaflet'; import ClusterNodeMarker from '~/components/map/layers/markers/Cl...
import * as React from 'react'; import { useState } from 'react'; import Timeline, { TimelineGroupBase, TimelineItemBase, TimelineItem, TimelineGroup, TimelineHeaders, SidebarHeader, DateHeader, CustomHeader, } from 'react-calendar-timeline'; import * as moment from 'moment'; import { Mo...
import {PythonShell, Options} from 'python-shell' export interface FrameSummary { _line: string filename: string lineno: number locals: {} name: string } export interface UserError{ __cause__: UserError __context__: UserError _str: string cause: UserError context: UserError exc_traceback: {} exc_type: { ...
<reponame>laroue/core import { generators } from "@arkecosystem/core-test-utils"; import "jest-extended"; import { NetworkState, NetworkStateStatus } from "@arkecosystem/core-p2p"; import { Bignum, models } from "@arkecosystem/crypto"; import { testnet } from "../../crypto/src/networks"; import { defaults } from "../s...
<reponame>Gcaufy/wechaty-puppet-padpro import EventEmitter from 'events' import http, { ClientRequest, IncomingMessage, RequestOptions, } from 'http' import HttpProxyAgent from 'http-proxy-agent' import net, { Socket } from 'net' import { ApiOptions } from '../api-options' import { log, SEND_SHORT_RETRY_COUN...
import React from "react"; import { Helmet } from "react-helmet"; import Hero from "../../components/Hero"; function PrivacyPolicy(props) { return ( <> <Helmet> <title>Privacy Policy | Sailing Channels</title> </Helmet> <Hero title="Privacy Policy" /> <h3 className="is-size-3 top-spacer">Data Cont...
import { GenericModelSerializer, PiError } from "@projectit/core"; import { ProjectYModelUnitType, XXunit, XX } from "../language/gen"; import { ProjectYEnvironment } from "../config/gen/ProjectYEnvironment"; import { FileHandler } from "../../utils/FileHandler"; const writer = ProjectYEnvironment.getInstance().writer...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Framework Emulator Github: // https://github.com/Microsoft/BotFramwork-Emulator // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // ...
<filename>src/plugin/wrap/parser.ts /* * @Author: qiansc * @Date: 2019-04-28 14:43:21 * @Last Modified by: qiansc * @Last Modified time: 2019-11-28 15:47:41 */ import { generate } from 'escodegen'; import { parse, parseScript } from 'esprima'; import { traverse } from 'estraverse'; import { existsSync } from 'fs';...
<filename>test/BondingSetup.ts<gh_stars>0 import { expect } from "chai"; import { ContractTransaction, Signer, BigNumber } from "ethers"; import { ethers, getNamedAccounts, network } from "hardhat"; import { Bonding } from "../artifacts/types/Bonding"; import { BondingShare } from "../artifacts/types/BondingShare"; imp...
import * as mdast from "./models/mdast"; import type { Alignment, Content as AllContent, ContentCanvas, ContentImage, ContentOrderedList, ContentTable, ContentText, ContentUnorderedList, Style, TableCell, TDocumentDefinitions, TDocumentInformation, } from "pdfmake/interfaces"; import { error, is...
<reponame>blaqueMani/ever-gauzy<gh_stars>0 import { Injectable, OnDestroy } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { ITimeLog, ITimerToggleInput, TimeLogType, ITimerStatus, IOrganization, TimerState, TimeLogSourceEnum } from '@leano/contracts'; import { toLocal } from '@l...
import orderBy from "lodash-es/orderBy"; import { AwardsByPlayer, GetTopPlayersOptions, getPlayers, getTopPlayers, leagueLeaders, teamAwards, addSimpleAndTeamAwardsToAwardsByPlayer, saveAwardsByPlayer, } from "./awards"; import { idb } from "../../db"; import { defaultGameAttributes, g, helpers } from "../../ut...
<reponame>Axeldnahcram/panel<gh_stars>1-10 import {linspace} from "@bokehjs/core/util/array" import {Enum} from "@bokehjs/core/kinds" export const ARRAY_TYPES = { uint8: Uint8Array, int8: Int8Array, uint16: Uint16Array, int16: Int16Array, uint32: Uint32Array, int32: Int32Array, float32: Float3...
<reponame>max-vasin/resolve<filename>packages/runtime/adapters/readmodel-adapters/readmodel-postgresql-serverless/src/types.ts import type { ObjectFixedIntersectionToObject, CommonAdapterPool, CommonAdapterOptions, AdapterOperations, AdapterConnection, AdapterImplementation, StoreApi, PerformanceTracerL...
import { Fragment, FunctionalComponent, h } from 'preact'; import bgImgJpeg from 'asset-url:./scores-bg.jpg'; import bgImgAvif from 'asset-url:./scores-bg.avif'; import alphaTauriImg from 'asset-url:./alpha-tauri.svg'; import alfaRomeoImg from 'asset-url:./alfa-romeo.svg'; import redBullImg from 'asset-url:./red-bull.s...
import React, { Fragment, ReactElement, useReducer, useState } from "react"; import { useCollection, useCollectionData, useDocumentData, } from "react-firebase-hooks/firestore"; import { View, StyleSheet, Text, Alert } from "react-native"; import { ScrollView } from "react-native-gesture-handler"; import { Commen...
<reponame>KennySchl/oldschoolbot import { MessageAttachment, MessageEmbed } from 'discord.js'; import { objectValues } from 'e'; import { CommandStore, KlasaMessage, KlasaUser } from 'klasa'; import { Bank } from 'oldschooljs'; import { Color } from '../../lib/constants'; import { defaultGear, globalPresets, resolveGe...
import { Injectable } from '@angular/core'; import { XHRBackend, Headers, Request, Response, RequestMethod, RequestOptionsArgs, ResponseOptions, ResponseOptionsArgs, ConnectionBackend, RequestOptions } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { MessageService } from './message/message...
/* * 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...
/**** I had to add this to node_modules/babylonjs/babylon.module.d.ts * issue is latest version of typescript vs latest version of babylon * * interface OffscreenCanvas extends HTMLCanvasElement{} interface MouseWheelEvent extends PointerEvent{} interface OffscreenCanvasRenderingContext2D extends CanvasRenderingC...
import { ChainId } from 'medxswap-sdk'; import { Configuration } from './basis-cash/config'; import { BankInfo } from './basis-cash'; import { formatUnits } from 'ethers/lib/utils'; import { BigNumber } from 'ethers'; const configurations: { [env: string]: Configuration } = { development: { chainId: 128, eth...
import { ethPlorer, ETHTokenExplorer, SecureWalletName, InsecureWalletName } from './data'; import { EtherscanNode, InfuraNode, RPCNode, Web3Node } from 'libs/nodes'; import { networkIdToName } from 'libs/values'; import { ETH_DEFAULT, ETH_TREZOR, ETH_LEDGER, ETC_LEDGER, ETC_TREZOR, ETH_TESTNET, EXP_DEFAU...
import BinaryStream from '../../common/binarystream'; import TokenStream from './tokenstream'; import AnimatedObject from './animatedobject'; export const enum FilterMode { None = 0, Transparent = 1, Blend = 2, Additive = 3, AddAlpha = 4, Modulate = 5, Modulate2x = 6, } export const enum Flags { None ...
<filename>src/utils/Common.ts<gh_stars>1-10 import {walk} from "fs-extra"; import * as Path from "path"; import * as i from "./../Interfaces"; import * as e from "./../Enums"; import * as _ from "lodash"; import * as fs from "fs"; import {KeyCode} from "./../Enums"; import {EnvironmentPath} from "../shell/Environment";...
import { css, cx } from 'emotion' import { Interpolation } from 'create-emotion' export interface ReactDiffViewerStyles { diffContainer?: string diffRemoved?: string diffAdded?: string line?: string highlightedGutter?: string contentText?: string gutter?: string highlightedLine?: string lineNumber?: ...
<filename>tooltip/src/tooltip.ts<gh_stars>0 import {EditorView, ViewPlugin, ViewUpdate, themeClass, Direction} from "@codemirror/next/view" import {StateEffect, StateEffectType, Facet, StateField, Extension, MapMode} from "@codemirror/next/state" type Rect = {left: number, right: number, top: number, bottom: number} ...
// Following the dialog guideline WAI-ARIA 1.2 // https://www.w3.org/TR/wai-aria-practices-1.2/examples/dialog-modal/dialog.html import { base, Color, ColorContrast, ColorProps, ModelProps, ResponsiveProps, SpacingProps, StandardProps, useEscKeyboardEvent, VisualProps } from "@zenbu-ui/core" import { Icon } from "@zen...
<reponame>stuartpb/itwinjs-core<gh_stars>100-1000 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-----------------------...
import { Observer, Scene, TransformNode, Tools } from 'babylonjs'; import cloneDeep from 'lodash/cloneDeep'; import INucleusContext from './common/INucleusContext'; import Component from './Component'; import InternalComponentCollection from './internals/InternalComponentCollection'; import IInternalSystemRegistrar fr...
<reponame>kruss/chipmunk // tslint:disable:max-classes-per-file import * as path from 'path'; import * as FS from '../../tools/fs'; import * as fs from 'fs'; import * as Tools from '../../tools/index'; import * as semver from 'semver'; import Logger from '../../tools/env.logger'; import ServicePaths from '../../servi...
<filename>src/mol-repr/visual.ts /** * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { RuntimeContext } from '../mol-task'; import { GraphicsRenderObject } from '../mol-gl/render-object'; import { PickingId } from '../mol-geo/g...
<reponame>mgjbroadbent/ediplug import crypto from 'crypto'; import { Agent } from 'http'; import axios from 'axios'; import parser from 'fast-xml-parser'; export interface Options { timeout?: number; host: string; port?: number; username?: string; password?: string; } interface Config { timeout: number; ...
<gh_stars>0 import Effects from './util/Effects' import Component from './components/Component' import LbImage from './components/LbImage' import LbOverlay from './components/LbOverlay' import LbNumberLabel from './components/LbNumberLabel' import LightBoxState from './LightBoxState' import LbCaption from './components...
import { faEyeSlash, faFill } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import React, { useCallback, useEffect, useState } from "react"; import styled from "styled-components"; import Slot from "../../../data/encounter/Slot"; import Player from "../../.....
import async from 'async'; import xml2js from 'xml2js'; import { range } from 'lodash'; import { Cache, KeyPath } from './cache'; import { ensureArray } from './util'; import { findPartialReviewsForBook } from './reviews'; import { handleRequestErrors, makeGetRequest } from './network'; import { Logger } from './logge...
import {Component, ElementRef, OnInit, ViewChild, ViewEncapsulation} from '@angular/core'; import {DataService} from './services/data.service'; import {HttpClient} from '@angular/common/http'; import { MatDialog } from '@angular/material/dialog'; import { MatPaginator } from '@angular/material/paginator'; import { MatS...
import { ExternalMediaAttributes, MediaAttributes, MentionAttributes, MediaSingleAttributes, ApplicationCardAttributes, CellAttributes, LinkAttributes, TableAttributes, CardAttributes, BreakoutMarkAttrs, AlignmentAttributes, IndentationMarkAttributes, } from '@atlaskit/adf-schema'; import { Fr...
import React, { ChangeEvent, CSSProperties, createRef, RefObject } from "react"; import RGB_VALUE_TABLE from "./RGB_VALUES_TABLE"; import * as gzip from 'gzip-js'; import EmulatorMode from "./emulatorMode"; class Emulator extends React.Component<{setAppState: Function, mode: EmulatorMode}, {started: boolean, roms: str...
import { useEffect, MutableRefObject } from 'react'; import { effectsInitialsArray, eventOptions, initialsArray } from '../../../containers/Track/Instruments' import { getSample, returnInstrument } from '../../../lib/Tone/initializers' import { RecursivePartial } from '../../../containers/Track/Instruments' import useP...