text
stringlengths
9.82k
47.8k
import { install } from "source-map-support"; install(); import process from "process"; import fs from "fs"; import path from "path"; import http2 from "http2"; const { HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS, HTTP2_HEADER_CONTENT_LENGTH, HTTP2_HEADER_CONTENT_TYPE, } = http2.constants; i...
import * as path from "path"; import * as fsextra from "fs-extra"; import * as _ from "lodash"; import * as Environment from "yeoman-environment"; import * as inquirer from "inquirer"; import { ReplayUtils, ReplayState } from "./replayUtils"; const datauri = require("datauri"); // eslint-disable-line @typescript-eslint...
<reponame>jamesbond004/FluidFramework /*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { ITelemetryBaseLogger } from '@fluidframework/common-definitions'; import Denque from 'denque'; import { assert, fail, noop } from './Common'; import { ...
<gh_stars>1-10 import { TaskHandler } from './TaskHandler' import { ID, Obj, EventType, StatusCode, ChunkResponse, ProgressPayload, RequestOpts, UploadFormData, UploadFile, UploadTask, FileChunk, BaseParams, } from '../../interface' import { forkJoin, from, Observable, Subscriber, of, ...
import { promises as fs } from 'fs'; import { Logger } from 'winston'; import { CPCApiHelpers } from './blizzard-api-helpers.js'; import { static_sources } from './cached-data-sources.js'; import { getRegionCode } from './getRegionCode.js'; import { RunConfiguration } from './RunConfiguration.js'; import { textFriendly...
import {SubTransformer, SubTransformerTransformParams} from "main_transformer" import {DecorateMethodTypesTaskDef} from "transformer_config" import * as Tsc from "typescript" import * as Path from "path" import {arrayToPropertyAccessChain, createLiteralOfValue, declarationExtendsMarker, isNodeAbstract, typeHasMarker} f...
import type { RawSelfRole } from "./SelfRole"; import SelfRole from "./SelfRole"; import type { RawPrefix } from "./Prefix"; import Prefix from "./Prefix"; import type { RawTag, TagKV } from "./Tag"; import Tag from "./Tag"; import type { AnyRawEntry } from "./ModLog/All"; import { BanEntry, ClearWarningsEntry, Dele...
<reponame>rgesteve/ui-widget-toolkit import { ICss, IEvent, EventType, UIElement, IBuffer, ITooltipData, ILegendItem } from '../../../interface/ui-base'; import { IFlameChartValue, IMinMaxValue, ITraceValue } from '../../../interface/chart/series-data'; import { ILayer, IStackLayer, ITraceValueLayer, Render...
import React, { useState, useEffect, useCallback } from "react"; import Row from "react-bootstrap/Row"; import Col from "react-bootstrap/Col"; import Button from "react-bootstrap/Button"; import Form from "react-bootstrap/Form"; import Dropdown from "react-bootstrap/Dropdown"; import { compose } from "redux"; import { ...
<gh_stars>0 //////////////////////////////////////////////////////////////// // // NOTE: to compile this run "npm run dev" (then ctrl+c once "event - compiled successfully") // ("npm run build" also works but takes longer) // // NOTE: test code is under src/__tests__ // System imports import { NextApiRequest, NextApi...
import { d3Event, select as d3Select, SVGZoomWidget, Utility } from "@hpcc-js/common"; import { HTMLTooltip } from "@hpcc-js/html"; import { scaleLinear as d3ScaleLinear } from "d3-scale"; import { React, render, LabelledRect } from "@hpcc-js/react"; export type IGanttData = [ string, number, number, any? ]; export i...
/* Copyright (c) Walmart Inc. 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 _ from 'lodash' import hljs from 'highlight.js/lib/highlight' import { ActionOutput } from "../actions/actionSpec" import yaml from 'json-to-pretty-yam...
// Rewrite of http://www.websiteasteroids.com var ASTEROIDS = ASTEROIDS || { nKill: 0, players: [] }; class Vec2 { // mutable math xy, or rotation / velocity x:number; y:number; constructor(x, y) { this.x = x; this.y = y; } copy() { return new Vec2(this.x, this.y); } add(vec) { this.x += vec.x; this.y += vec.y; r...
<reponame>validide/resizable-table-columns import { ResizableConstants } from './resizable-constants'; import { ResizableEventData } from './resizable-event-data'; import { ResizableOptions } from './resizable-options'; interface IHeaderDetails<T> { el: HTMLElement, detail: T; } interface IIndexedCollection<T> { ...
<reponame>aishimeth2135/Toram_Grimoire import { markRaw } from 'vue'; import Grimoire from '@/shared/Grimoire'; import { handleFormula } from '@/shared/utils/data'; import { SubWeapon, SubArmor, CharacterEquipment } from '@/lib/Character/CharacterEquipment'; import { EquipmentTypes } from '@/lib/Character/CharacterEq...
import { ApplicationClientMessage, ConnectMessage, LifecycleMessage, Message, MessageType, } from "./messages"; import { v4 as uuidv4 } from "uuid"; import { ClientConnectionStatus, ConnectionStatusResult, MessageCallback, StatusCallback, } from "./types"; import { PROTOCOL_VERSION } from "./constants...
<reponame>falegh/verdaccio import assert from 'assert'; import async, { AsyncResultArrayCallback } from 'async'; import buildDebug from 'debug'; import _ from 'lodash'; import { hasProxyTo } from '@verdaccio/config'; import { API_ERROR, DIST_TAGS, HTTP_STATUS, errorUtils, pkgUtils, validatioUtils, } from '...
<reponame>oliver2619/cube-island import {Scene, PerspectiveCamera, FogExp2, Geometry, Vector3, Vector2, Face3, Mesh, Object3D, WebGLRenderer, Camera, PCFShadowMap, LOD, Group} from "three"; import {SunStoreData} from "./sun"; import {Person, PersonStoreData} from "./person"; import {InputControlService} from "../app/se...
/** * Composer * * Composer is offered composition API for Vue 3 * This module is offered new style vue-i18n API */ import { ref, computed, getCurrentInstance, ComponentInternalInstance, Text, createVNode, watch, VNode, VNodeArrayChildren } from 'vue' import { WritableComputedRef, ComputedRef...
import { IAttributes, IController, IDirective, IScope } from "angular"; import { L10n, conf, http, session, TrackingService, TrackedAction, TrackedActionFromWidget } from "ode-ngjs-front"; import gsap = require("gsap"); import { ITimelineFactory, ITimelineNotification } from "ode-ts-client"; import * as $ from "jquery...
import React, { forwardRef, useState, useRef, useImperativeHandle, useEffect, ReactNode, isValidElement, Ref, cloneElement, } from 'react'; import { Animated, View, Dimensions, Modal, Easing, LayoutChangeEvent, BackHandler, KeyboardAvoidingView, Keyboard, ScrollView, FlatList, ...
<filename>packages/draft-ts/src/model/encoding/convertFromHTMLToContentBlocks.tsx /** * 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 * @flow * @emails oncall+draft_js */...
<filename>src/Power.ts<gh_stars>1-10 import { L } from "./Localization"; import { OvaleDebug } from "./Debug"; import { OvaleProfiler } from "./Profiler"; import { Ovale } from "./Ovale"; import { OvaleAura } from "./Aura"; import { OvaleFuture } from "./Future"; import { OvaleData, SpellInfo } from "./Data"; im...
<gh_stars>0 import { Application } from 'express-ws'; import express from 'express'; import WebSocket from 'ws'; import { isJsonString } from 'unigraph-dev-common/lib/utils/utils'; import DgraphClient from './dgraphClient'; import { insertsToUpsert } from 'unigraph-dev-common/lib/utils/txnWrapper'; import { EventAddNot...
 import * as React from "react"; import * as ReactDOM from "react-dom"; // import akDispatcher = require("./AkDispatcher"); import AkDispatcher = // akDispatcher.Core.AkDispatcher; import AkBaseLegal = // require("./../08legal/BaseLegal"); import * as utilFile from "./Util"; import * as eventFile from "./Event";...
import { autobind } from "core-decorators"; import * as _ from "lodash"; import { inject, observer } from "mobx-react"; import * as React from "react"; import * as DayPicker from "react-day-picker"; import * as ReactQuill from "react-quill/src/"; import { Quill } from "react-quill/src/"; import * as Modal from "boron...
<filename>src/modules/uv-seadragoncenterpanel-module/SeadragonCenterPanel.ts import BaseCommands = require("../uv-shared-module/BaseCommands"); import Commands = require("../../extensions/uv-seadragon-extension/Commands"); import CenterPanel = require("../uv-shared-module/CenterPanel"); import ISeadragonExtension = req...
<filename>ui/src/plugins/built-in/panel/graph/GraphPanelCtrl.ts import _ from 'lodash' import { PanelProps, PanelData, DataFrame, TimeRange, PanelEvents,getValueFormat,formattedValueToString,dateTimeFormat, getFlotPairsConstant,getColorFromHexRgbOrName,getTimeField,AnnotationEvent,currentTheme } from 'src/packa...
<filename>backend/proto/flow/flow_pb.d.ts<gh_stars>0 import * as jspb from "google-protobuf" import * as google_protobuf_wrappers_pb from 'google-protobuf/google/protobuf/wrappers_pb'; import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; export class Flow extends jspb.Message ...
const fs = require("fs"); const path = require("path"); const _ = require("underscore"); const objectql = require("@steedos/objectql"); const Fiber = require("fibers"); const xlsx = require("node-xlsx"); const moment = require("moment"); declare var Creator: any; type ImportOptions = { objectName: string; external...
import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, Component, ContentChildren, DoCheck, ElementRef, EmbeddedViewRef, Inject, Input, IterableChangeRecord, IterableChanges, IterableDiffer, IterableDiffers, NgZone, OnDestroy, OnInit, QueryList, Renderer2, ViewChild, ...
<reponame>benbtx/project import BaseWidget = require('core/BaseWidget.class'); import Map = require('esri/map'); import BlankPanel = require('widgets/BlankPanel/Widget'); import Draw = require("esri/toolbars/draw"); import SimpleMarkerSymbol = require("esri/symbols/SimpleMarkerSymbol"); import SimpleLineSymbol = requir...
// HyperMD, copyright (c) by laobubu // Distributed under an MIT license: http://laobubu.net/HyperMD/LICENSE // // powerful keymap for HyperMD and Markdown modes // import * as CodeMirror from 'codemirror' import { Token, Position, cmpPos } from 'codemirror' import { cm_t } from '../core/type' import { TokenSeeker, re...
<gh_stars>100-1000 /** * Copyright (c) Haiku 2016-2018. All rights reserved. */ import {IHaikuComponent, IRenderer, MountLayout} from '../../api'; import HaikuBase, {GLOBAL_LISTENER_KEY} from '../../HaikuBase'; import {getNodeCompositeId} from '../../HaikuComponent'; import assign from '../../vendor/assign'; import ...
// Polyfill for flat (IE & Edge) const flat = require("array.prototype.flat"); flat.shim(); import { ExcelUtils } from "./excelutils"; import { RectangleUtils } from "./rectangleutils"; import { Timer } from "./timer"; import { JSONclone } from "./jsonclone"; import { find_all_proposed_fixes } from "./groupme"; import...
import { Component, OnInit } from '@angular/core'; // version 2 import { AngularFireAuth } from 'angularfire2/auth'; import { auth } from 'firebase'; //version 5++ // import { AngularFireAuth } from '@angular/fire/auth'; // import { auth } from 'firebase/app'; import { AngularFirestore, AngularFirestoreCollection, ...
class BookHeader extends ReaderPagination { private parentReader: ReaderLayout; private bookId: string; private versionId: string; private sc: ServerCommunication; private bookTitle: string; private audioOnly: boolean = true; private toolButtons: JQuery<HTMLButtonElement> = $(); constr...
<reponame>desto-git/scrollbar.js<gh_stars>1-10 // int = px, float = % // note however that 1.0 === 1, so it will be identified as an int. to say 100%, use something very close to it, e.g. 0.9999 type TDistance = number; interface IConfig { prefix ?: string; buttonDistance ?: TDistance; trackDistance ?: TDi...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import * as cp from 'child_process'; import * as fs from 'fs-plus'; import * as path from 'path'; import * as vscode from 'vscode'; import {MessageItem} from 'vscode'; import * as WinReg from 'winreg'; import {CancelOperat...
import { isArray, processCaretTraps } from './utils'; import { IEMASKS } from './inscricaoestadual'; import createNumberMask from 'text-mask-addons/dist/createNumberMask' import { mask_iptu } from './iptu/iptu'; export const MASKS = { aih: { text: '000000000000-0', // 351923414312-8 textMask: [/\d/, /\d/, /\...
/*****************************************************************************\ * XVT authored by: <NAME> <<EMAIL>> * * an asynchronous terminal session handler * * * * - emulation interface...
import React, { PureComponent } from 'react'; import * as R from 'ramda'; import Stylesheet from 'core/Stylesheet'; import { KEY_CODES, isCtrlMetaKey, isCtrlDown, isNavKey } from 'dash-table/utils/unicode'; import * as actions from 'dash-table/utils/actions'; import ExportButton from 'dash-table/compon...
import { has_prop } from './utils'; // Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM // at the end of hydration without touching the remaining nodes. let is_hydrating = false; export function start_hydrating() { is_hydrating = true; } export function end_hydrating()...
/* Copyright 2020 the Deno authors. All rights reserved. MIT license. */ import React, { useMemo, useState, useEffect } from "react"; import { useRouter } from "next/router"; import Link from "next/link"; import Head from "next/head"; import twas from "twas"; import { parseNameVersion, denoDocAvailableForURL, is...
<filename>js/jquery.terminal.d.ts /* * helper types */ type anyFunction = (...args: any[]) => any; type StringOrNumber = string | number | null; type JSONObject = { [key: string]: TypeOrArray<StringOrNumber | boolean | JSONObject> } type mapFunction = (key: string, value: anyFunction) => any; type voidFunction ...
<reponame>isoosiss7/statechannels import {Transaction, TransactionOrKnex, UniqueViolationError} from 'objection'; import { Objective, Outcome, SignedStateWithHash, SignedStateVarsWithHash, calculateChannelId, StateVariables, ChannelConstants, Participant, deserializeObjective, isOpenChannel, isClo...
<reponame>vikasmsg/pinpoint<filename>web/src/main/angular/src/app/core/components/real-time/real-time-chart.component.ts<gh_stars>1-10 import { Component, OnInit, ViewChild, ElementRef, Input, Output, AfterViewInit, OnDestroy, EventEmitter, OnChanges, SimpleChanges, NgZone, Renderer2 } from '@angular/core'; import * as...
import { Request, Response } from "express"; import { Logger } from "../utils/logger"; import { isUserVIP } from "../utils/isUserVIP"; import { getMaxResThumbnail, YouTubeAPI } from "../utils/youtubeApi"; import { APIVideoInfo } from "../types/youtubeApi.model"; import { db, privateDB } from "../databases/databases"; i...
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- // tslint:disable:promise-function-async // Grandfathered in // The module "vscode" contains the...
import * as React from "react"; import type { GlobalState } from "./globalState"; import type { NodeMaterialBlock } from "core/Materials/Node/nodeMaterialBlock"; import { NodeListComponent } from "./components/nodeList/nodeListComponent"; import { PropertyTabComponent } from "./components/propertyTab/propertyTabC...
const colorName = require('color-name'); import { throwError, ErrorCode, SyntaxError } from './errors'; export type ValueType = | 'string' | 'number' | 'percentage' | 'angle' | 'color' | 'length' | 'time' | 'frequency' | 'array'; /** * Those are relative units that can't be evaluated statically, a...
<gh_stars>0 import { ColorMixin } from '../mixins'; import { LuaArray } from "@wowts/lua"; export const enum AuctionHouseCommoditySortOrder { UnitPrice = 0, Quantity = 1 } export const enum AuctionHouseFilter { UncollectedOnly = 0, UsableOnly = 1, UpgradesOnly = 2, ExactMatch = 3, PoorQualit...
import React, { createRef } from "react" import Button from "@material-ui/core/Button"; import Dialog from "@material-ui/core/Dialog"; import Hidden from "@material-ui/core/Hidden"; import { createStyles, withStyles, WithStyles } from "@material-ui/core/styles"; import Typography from "@material-ui/core/Typography"; i...
export const FEMALE_FIRST_NAMES = [ 'Olivia', 'Emma', 'Ava', 'Sophia', 'Isabella', 'Charlotte', 'Amelia', 'Mia', 'Harper', 'Evelyn', 'Abigail', 'Emily', 'Ella', 'Elizabeth', 'Camila', 'Luna', 'Sofia', 'Avery', 'Mila', 'Aria', 'Scarlett', 'Penelope', 'Layla', 'Chloe', 'V...
import {RelativeLayout, RelativeLayoutOrientation} from "./RelativeLayout"; import {ZoneLayout} from "./ZoneLayout"; import {TaskInstructions} from "../TaskInstructions"; import {ContextVisualization} from "../ContextVisualization"; import {DOMParser} from 'xmldom'; import React, {createElement, ReactElement, ReactNode...
<reponame>liux-pro/blinker-js import * as mqtt from 'mqtt'; import axios from 'axios'; import { BehaviorSubject, Subject } from 'rxjs'; import { Widget } from './widget'; import bonjour from 'bonjour'; import * as WebSocket from 'ws'; import * as schedule from 'node-schedule'; import * as pauseable from 'pauseable'; im...
<gh_stars>0 'use strict' // **Github:** https://github.com/fidm/x509 // // **License:** MIT import { isIP } from 'net' /** * Converts IP string into buffer, 4 bytes for IPv4, and 16 bytes for IPv6. * It will return null when IP string invalid. * * ```js * console.log(bytesFromIP('::1')) // <Buffer 00 00 00 00 00...
import { isNullOrUndefined, closest as closestElement, classList, remove, MouseEventArgs } from '@syncfusion/ej2-base'; import { DropEventArgs, setValue, createElement, BlazorDragEventArgs } from '@syncfusion/ej2-base'; import { SfTreeGrid } from './sf-treegrid-fn'; import { ITreeData } from './interface'; import { par...
<reponame>larspontoppidan/notesntodos<gh_stars>1-10 /* app.ts - Notes'n'Todos frontend main application implementation MIT license - see LICENSE file in Notes'n'Todos project root CodeMirror v6 is used for the note edit box. No 3rd party platform is utilized in this front end. Copyright 2021 - <NAME> <...
<filename>app/view/components/testcase-eas/cycle/testcase-eas-cycle.component.ts ///<reference path='../../../../utils/localstorage/local-storage.util.ts'/> import {Component, AfterViewInit, OnInit, ComponentRef, Input, ViewContainerRef, OnChanges, ElementRef, ComponentFactory, ComponentFactoryResolver, /*Component...
<gh_stars>1-10 /** * @license * Copyright 2021 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
import { Buffer } from 'buffer'; import AssetFingerprint from '@emurgo/cip14-js'; import { TransactionBuilder, Transaction, TransactionOutputs, TransactionUnspentOutput, CoinSelectionStrategyCIP2, NativeScript, AssetName, Int, BigNum, BaseAddress } from '@emurgo/cardano-serialization-lib-browser' import { ProtocolPara...
<gh_stars>0 import { Component, OnDestroy, OnInit } from '@angular/core'; import { SafeHtml } from '@angular/platform-browser'; import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; import { trigger, style, animate, transition } from '@a...
import { ElementRef, ChangeDetectorRef } from '@angular/core' import { Observable } from 'rxjs/Observable'; import { Subscription } from 'rxjs/Subscription'; import { MmirProvider } from '../mmir-provider'; import { RecognitionEmma , UnderstandingEmma , ShowSpeechStateOptions , RecognitionType , SpeechRecogniti...
class ShipopProduceIdol { produceType : string = ""; seasonNum : string = ""; remainSeasonWeek : string = ""; name : string = ""; vocal : string = ""; dance : string = ""; visual : string = ""; mental : str...
import type { NotebookActionInsertInput, NotebookFocus, NotebookFocusInsertInput, NotebookTarget, NotebookTargetInsertInput, } from '$lib/graphql/_gen/typed-document-nodes'; import type { BeneficiaryAccount } from '$lib/types'; import type { EndpointOutput } from '@sveltejs/kit'; import type { ServerRequest } from...
/* * Copyright 2018 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 { Pvc, StatusPvc } from './../app/plugins/kubernetes/components/virtual-machines/model' import { CloudProviders } from 'k8s/components/infrastructure/cloudProviders/model' import { CustomerMetadata } from './model' // Keep these for now, this way we can easily see which have had types generated // export interf...
<filename>packages/engine/src/xr/classes/LegsManager.ts import { Quaternion, Vector3, Euler, Matrix4, Object3D } from 'three' import { Helpers } from '../functions/Helpers' const stepRate = 0.2 const stepHeight = 0.2 const stepMinDistance = 0 const stepMaxDistance = 0.25 const stepRestitutionDistance = 0.8 // const mi...
<filename>src/utils/pontosControle.ts const pontosControle = [ {cod:"", label:""}, {cod: "1.1.1", label:"1.1.1 - Prestação de contas anual – execução orçamentária"}, {cod:"1.1.2" , label:"1.1.2 - Despesa – realização sem prévio empenho"}, {cod:"1.1.3" , label:"1.1.3 - Transferência de recursos orçamentários ao...
import { SectionHeading } from "../site/SectionHeading" import * as cheerio from "cheerio" import urlSlug from "url-slug" import * as lodash from "lodash" import * as React from "react" import * as ReactDOMServer from "react-dom/server" import { HTTPS_ONLY } from "../settings/serverSettings" import { getTables } from "...
<reponame>AvariceBrah/osb import { Canvas, CanvasRenderingContext2D, createCanvas, Image } from 'canvas'; import { MessageAttachment, MessageOptions } from 'discord.js'; import { objectEntries } from 'e'; import fs from 'fs'; import { KlasaUser, Task } from 'klasa'; import { Events } from '../lib/constants'; import { ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
export { getUpdatePrompts, getPatchPrompts, getIgnorePrompts, getPrompts, nextSteps, startOver, }; import * as _ from 'lodash'; import * as semver from 'semver'; import { format as fmt } from 'util'; import * as debugModule from 'debug'; const debug = debugModule('snyk'); import * as protect from '../../.....
<reponame>LesterCovax/arcadeanalytics /*- * #%L * Arcade Analytics * %% * Copyright (C) 2018 - 2019 ArcadeAnalytics * %% * 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:...
import { ElementInstanceMetadata, JSXAttribute, JSXElement, JSXElementName, ElementInstanceMetadataMap, SettableLayoutSystem, } from '../../core/shared/element-template' import { KeysPressed, Key } from '../../utils/keyboard' import { IndexPosition } from '../../utils/utils' import { CanvasRectangle, Size, ...
import { isEmpty, cloneDeep, upperFirst } from 'lodash'; import { StructureDefinition, PathPart, ElementDefinition, InstanceDefinition, ValueSet, CodeSystem } from '.'; import { AssignmentRule, Rule, InsertRule, ConceptRule, ValueSetConceptComponentRule, CaretValueRule, AssignmentValueType } f...
import { isValid, validOutcode } from "postcode"; import { Outcode, OutcodeInterface, OutcodeTuple } from "./outcode"; import { QueryResult } from "pg"; import { query, ForeignColumn, RowExtract, Relationship, getClient, generateMethods, Relation, csvExtractor, } from "./base"; import QueryStream from "...
import { DOMParser } from 'prosemirror-model'; import forEachOwnProperties from 'tui-code-snippet/collection/forEachOwnProperties'; import extend from 'tui-code-snippet/object/extend'; import css from 'tui-code-snippet/domUtil/css'; import addClass from 'tui-code-snippet/domUtil/addClass'; import removeClass from 'tui-...
import { distinctUntilChanged, filter } from 'rxjs/operators'; import { Directive, ElementRef, HostListener, Input, Output, EventEmitter, Renderer2, OnInit, AfterViewInit, OnDestroy, NgZone } from '@angular/core'; import { DropEvent } from '../shared/drop-event.model'; import { DragDropService } f...
import { RefObject, ReactNode } from 'react'; import { ViewProps, Animated, FlatListProps, ViewStyle, StyleProp, ScrollViewProps, View, ListRenderItemInfo, } from 'react-native'; import { LongPressGestureHandlerStateChangeEvent, GestureHandlerGestureEvent, GestureHandlerGestureEventNativeEvent, LongPressGes...
import * as arrayUtil from "dojo/_base/array"; import * as declare from "dojo/_base/declare"; import * as Deferred from "dojo/_base/Deferred"; import * as lang from "dojo/_base/lang"; import * as dom from "dojo/dom"; import * as html from "dojo/html"; import * as on from "dojo/on"; import * as topic from "dojo/topic"; ...
import axios from 'axios' import { Payload, Message, MessagePage, MessageSet, Profile, PayloadEntry, } from './relay_pb' import p2pkh from './p2pkh_pb' import { AuthWrapper } from '../auth_wrapper/wrapper_pb' import pop from '../pop' // TODO: Relay code should not depend on Stamp base code. Fix this import...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
// Common helpers for GX rendering. import { mat4 } from 'gl-matrix'; import * as GX from './gx_enum'; import * as GX_Material from './gx_material'; import * as GX_Texture from './gx_texture'; import * as Viewer from '../viewer'; import { assert, nArray } from '../util'; import { LoadedVertexData, LoadedVertexPacke...
import { v4 as uuidv4 } from 'uuid'; import { Position } from 'vscode-languageserver-textdocument'; import { DiagnosticSeverity, FoldingRange } from 'vscode-languageserver-types'; import { StatamicProject } from '../projects/statamicProject'; import { trimLeft, trimRight, trimString } from './../utils/strings'; import ...
<filename>ui-ngx/src/app/shared/models/query/query.models.ts /// /// Copyright © 2016-2021 The Thingsboard 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://w...
import { watch, computed, inject, getCurrentInstance, reactive, DebuggerEvent, WatchOptions, UnwrapRef, markRaw, isRef, isReactive, effectScope, EffectScope, ComputedRef, toRef, toRefs, Ref, ref, set, del, isVue2, } from 'vue-demi' import { StateTree, SubscriptionCallback, ...
<filename>src/object.ts<gh_stars>100-1000 /* Copyright 2014 darkf 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 o...
<filename>src/index.ts import { BaseParams, GetDataTxsParams, DataTransaction, GetMassTransferTxsParams, MassTransferTransaction, GetTransferTxsParams, TransferTransaction, GetIssueTxsParams, GetInvokeScriptTxsParams, IssueTransaction, Tx, SetScriptTransaction, Order, OrderStatus, Orderboo...
import { CommonConfigDefault } from '../Config/CommonConfig' import Twisty3D from './Twisty3D' import Permutation from '../Permutation' import Tween from '../Tween' import * as THREE from 'three' const faceToNum: {[s: string]: number} = {U: 0, F: 1, R: 2, D: 3, B: 4, L: 5} const suffixToNum: {[f: string]: number} = {'...
import { BigNumber } from '@ethersproject/bignumber' import { Pool, RToken, RouteLeg, MultiRoute, RouteStatus } from '../types/MultiRouterTypes' import { ASSERT, calcInByOut, calcOutByIn, closeValues, calcPrice } from '../utils/MultiRouterMath' export class Edge { readonly GasConsumption = 40_000 readonly MINIMUM_...
import mountElement from 'utils/mount'; import React, { createContext, useCallback, useContext, useEffect, useMemo, useReducer, useRef, useState, } from 'react'; import * as JSONbig from 'json-bigint'; import { useLocalStorage } from '@rehooks/local-storage'; import SplitPane from 'react-split-pane'; i...
import * as angular from "angular"; import {moduleName} from "./module-name"; import "pascalprecht.translate"; import * as _ from 'underscore'; import {OpsManagerJobService} from "../services/ops-manager-jobs.service"; import IconService from "../services/IconStatusService"; import TabService from "../../services/tab.s...
<reponame>kitsonk/swc // Loaded from https://deno.land/x/graphql_deno@v15.0.0/lib/execution/execute.js import arrayFrom from '../polyfills/arrayFrom.js'; import inspect from '../jsutils/inspect.js'; import memoize3 from '../jsutils/memoize3.js'; import invariant from '../jsutils/invariant.js'; import devAssert from '...
/* istanbul ignore file */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import * as basic from './basic'; import * as named from './named'; export class EzspStruct { /* eslint-disable-next-line @typescript-eslint/no-explicit-any*/ static serialize(cls: any, obj: any): Buffer { ...
<filename>client/app/heatmap/heatmap.ts // // Copyright 2019 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/LICE...
<filename>src/ol-street-view.ts import { Feature, PluggableMap, View } from 'ol'; import { transform } from 'ol/proj'; import { Style, Icon } from 'ol/style'; import { Vector as VectorSource, XYZ } from 'ol/source'; import { Vector as VectorLayer, Tile as TileLayer } from 'ol/layer'; import { Select, Translate } from '...
// idk why i do this lol declare namespace surface { function SetDrawColor(this: void, col: IColor | Color): void function SetDrawColor(this: void, r: number, g: number, b: number, a?: number): void function DrawPoly(this: void, vertices: PolygonVertex | table): void function DrawRect(this: void, x: number, y: numb...
<filename>src/BrightScriptDebugSession.ts<gh_stars>0 import * as eol from 'eol'; import * as findInFiles from 'find-in-files'; import * as fsExtra from 'fs-extra'; import * as glob from 'glob'; import * as path from 'path'; import { Breakpoint, DebugSession, InitializedEvent, OutputEvent, Source, ...