text
stringlengths
3.3k
33k
import Two from "two.js"; import * as React from "react"; import * as ReactDOMServer from "react-dom/server"; import { makeConnector, makeBox, makeInfoBox, makeGradient, makeHopper, } from "./src/render"; import { startPhysics } from "./src/physics"; import { processTDV } from "./src/process"; import { Vector...
<reponame>the-codinator/catan<filename>server-azure/src/impl/game/graph-helper.ts import { BadRequestError } from '../../core/catan-error'; export function validateVertex(vertex: number): void { if (!Number.isInteger(vertex) || vertex < 0 || vertex >= vertexToAdjacentVertexMatrix.length) { throw new BadRequestEr...
import * as path from 'path'; import { promisify } from 'util'; import { pathExists, remove, stat } from 'fs-extra'; import * as glob from 'glob'; import * as minimatch from 'minimatch'; import { Compiler } from 'webpack'; import { AfterEmitCleanOptions, BeforeBuildCleanOptions, BuildConfigInternal, CleanOptions } fr...
<reponame>virtualstate/x import {assertVNode, isFragmentVNode, VNode} from "./vnode"; import {isSourceReference} from "./source-reference"; import {union} from "@virtualstate/union"; import {isAsyncIterable, isPromise} from "iterable"; import {deferred} from "./deferred"; export const ToString = Symbol.for("@virtualst...
import {RefObject} from 'react'; import {Emitter} from '@co-hooks/emitter'; import {FileStatus, IBaseFile, IFileUploadErrorMessage, IFileUploadEvent, IFileUploadOptions} from '..'; import {FileClass} from './file'; interface IFilesMap { [key: string]: FileClass; } interface IObject { [key: string]: string; } ...
import {Pos,Rect,Log} from "./util"; import {Sprite} from "./sprite"; import {TileSheet,TileIndex} from "./tile"; import {OffBuf,NewOffBuf} from "./offbuf"; import {Grid} from "./grid"; interface WorldDefn { w: number, h: number, wcell: number, tsItems: TileSheet, tsActors: TileSheet, tsTerrainLayers: Tile...
<reponame>ojanvafai/mailtriager import { assert, collapseArrow, expandArrow } from '../Base.js'; import { ALL, NONE, SelectBox, SelectChangedEvent, SOME } from '../SelectBox.js'; import { AfterFocusRowEvent, ThreadRow } from './ThreadRow.js'; import { ThreadRowGroupBase } from './ThreadRowGroupBase.js'; // TODO: Find...
'use strict'; import mqtt from 'mqtt' import { RoombaState } from "../roomba-state"; export type iRobotPacketV2 = mqtt.Packet & { payload?: any; } export interface ApiCommandV2 { command?: any; time?: number; initiator?: string; state?: any; } type PrefReturn = Promise<RoombaState | Partial<RoombaState> |...
// The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; import * as cp from 'child_process'; import * as path from 'path'; class Item extends vscode.TreeItem { constructor(o: { id: Number, time: numb...
// externals import { fs } from "./deps.ts"; // utils import { overlayMetaDataFields } from "./exifOverwriter/exifOverwriter.ts"; import { ExifOrientation, ExifTableData } from "./jpeg/exifFormatTypes.ts"; import { orientationToNumber } from "./jpeg/exifTagValueConverters.ts"; import { extract } from "./jpeg/extractor...
<reponame>jtcheng26/canvas-task-extension<gh_stars>1-10 import Options from '../Content/modules/types/options'; import './index.css'; const storedUserOptions = [ 'startDate', 'period', 'startHour', 'startMinutes', 'sidebar', 'dash_courses', 'due_date_headings', 'show_locked_assignments', ]; function o...
<gh_stars>0 import DataLoader from 'dataloader' import { Connection, ObjectLiteral, ObjectType, QueryRunner, SelectQueryBuilder, } from 'typeorm' import { DriverUtils } from 'typeorm/driver/DriverUtils' import { groupBy, objectId } from './utils' function getQueryRunner(qb: SelectQueryBuilder<any>): QueryRun...
/** * Copyright (c) 2021, Diabeloop * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of condi...
<gh_stars>100-1000 import fs from "fs-extra"; import chalk from "chalk"; import memoize from "mem"; import { dirname, relative, basename } from "path"; import { cosmiconfigSync } from "cosmiconfig"; import { EmittedAsset, InputOption, InputOptions, OutputBundle, PluginContext, TransformPluginContext } from "rollup"; im...
import React, {useEffect, useRef, useState} from 'react'; import {useDispatch, useSelector} from "react-redux"; import {RootState} from "typesafe-actions"; import { actions as peerActions } from '../store/peer'; import { Col, Row, Typography, Space, Button, Drawer, Form, Select, Tag, Divider } from ...
<filename>src/util/TickMath.ts import assert from "assert"; import JSBI from "jsbi"; import { ZERO, ONE, TWO, Q32, MaxUint128, MaxUint256, } from "../enum/InternalConstants"; const POWERS_OF_2 = [128, 64, 32, 16, 8, 4, 2, 1].map( (pow: number): [number, JSBI] => [ pow, JSBI.exponentiate(TWO, JSBI...
/* Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2019 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, ...
<reponame>miniature-octo-guide/spatial-volume-controller // import { v4 as uuidv4 } from 'uuid' import { SpeakerBox } from './interfaces/SpeakerBox' import { ListenerBox } from './interfaces/ListenerBox' import { GetGainRequest } from './interfaces/GetGainRequest' import { SetGainRequest } from './interfaces/SetGainRe...
//Get list of unlockables from playerStats or settings let unlockableIdsList: [string] = ["RoboMeister", "Rosie", "TinkerMeister", "RamBamQueen", "HiveLord", "Salvator"]; function confirmAccountCreation() { let username: string = (<HTMLInputElement>document.getElementById("accountCreationUsername")).value; let pass...
<reponame>mclimb/redo<filename>pkgs/utils/src/common.ts<gh_stars>0 import moize from "moize" import isDeepEqual from "fast-deep-equal" import deepMerge from "deepmerge" import { Number, Object as TSO } from "ts-toolbelt" export const merge = deepMerge export const memoize = moize as <F extends Function>(f: F) => F exp...
import React, { useState } from 'react'; import { State } from 'react-powerplug'; import * as Tone from 'tone'; import { Chord, Note, Interval } from '@tonaljs/tonal'; import { Harmony } from '../../../content/drafts/voicing/Harmony'; import { Voicing } from '../../../content/drafts/voicing/Voicing'; import Keyboard fr...
import { PublicArrayGetterRemover } from './index'; import { arraysMatch } from '@writetome51/arrays-match'; let getAndRemove = new PublicArrayGetterRemover([1, 1, 2, 3, 3, 4, 5, 5, 6, 7, 8, 9, 10]); let otherArr = getAndRemove.data; // Test 1 let result = getAndRemove.byIndex(-1); if (result === 10) console.log('t...
import { Component } from '@angular/core'; class PyFunction { constructor(jsonObject?) { if (jsonObject != null) { this.id = jsonObject.id; this.name = jsonObject.name; } } id : number = -1; name : string = "Untitled"; } class PyModule { constructor(jsonObject?) { if (jsonObject != ...
<gh_stars>1-10 /** * Created with Webstrom. * Author: 刘云 * Date: 2019/8/20 * Time: 21:37 * */ import Timer from '@liuyunjs/timer'; import { START, MOVE, CANCEL, PAN, PINCH, ROTATE, SWIPE, PRESS, TOUCH, TAP, UP, INPUT_MOVE, INPUT_TYPE_MAP, INPUT_START, } from '@liuyunjs/gesture-consts';...
<gh_stars>0 import type { IncomingMessage, ServerResponse } from 'http'; import { resolve } from 'path'; import type { Applize, IApplizeOptions } from '.'; import { findRoute } from '.'; import type { APITypesGeneral, JSONStyle } from '../api/schema'; import type { ICookie, ISetCookie } from './cookie'; import type { S...
let DragDropTouch:any (function (DragDropTouchExport) { type DropEffect = 'none'|'copy'|'link'|'move' type allowedEffect = ( 'none'|'copy'|'copyLink'|'copyMove'|'link'|'linkMove'|'move'|'all'|'uninitialized' ) type simulatedDataTransfer = { _dropEffect:DropEffect, _effectAllowed:allowedEffect ...
import { CallOperation } from '../../operations/call'; import { GraphNode, isNodeDefinition, NodeDefinition, NodeDependency, NodeExecutionContext, NodeLike, StatefulGraphNode, StatefulNodeType, } from '../../types/graph'; import createNodeDefinition from '../../utils/create-node-definition'; import { cr...
<filename>packages/layers/src/core/BaseLayer.ts<gh_stars>0 import { IEncodeFeature, IFontService, IGlobalConfigService, IIconService, IInteractionService, ILayer, ILayerInitializationOptions, ILayerPlugin, IMapService, IModel, IModelInitializationOptions, IMultiPassRenderer, IRendererService, ...
<filename>src/assets.ts /* AUTO GENERATED FILE. DO NOT MODIFY. YOU WILL LOSE YOUR CHANGES ON BUILD. */ export namespace Images { export class ImagesBackgroundTemplate { static getName(): string { return 'background_template'; } static getPNG(): string { return require('assets/images/background_tem...
///<reference path="typings/node/node.d.ts"/> ///<reference path="typings/express/express.d.ts"/> ///<reference path="JSONMocker.ts"/> import express = require('express'); import fs = require('fs'); import jsonmocker = require("./JSONMocker");jsonmocker; import JSONMocker = jsonmocker.JSONMocker; import Pool = jsonmoc...
import React, { useState, useRef } from 'react' import { Form, Checkbox, Button, Grid, Header, Input, Message } from '@mw-kit/mw-ui' import { useForm, Controller } from 'react-hook-form' import { useHistory } from 'react-router-dom' // validator import * as yup from 'yup' import { yupResolver } from '@ho...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import React from 'react'; import { Animated, GestureResponderEvent, ImageProps, ImageStyle, ListRenderItemInfo, StyleProp, StyleSheet, TextStyle,...
<filename>ui/src/tree/AzExtTreeDataProvider.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *----------------...
import * as vscode from 'vscode'; import { ParamHintCompletionProvider, ReturnHintCompletionProvider, TypeCompletionItem, VariableCompletionProvider } from './completionProvider'; import { InferApiData, InferApiPayload, transformInferApiData } from "./type4pyData"; import { paramHintTrigger, returnHintT...
// export * from '../../common/socket' import * as _ from '../../common/lodash' import * as core from '../../common/core' import * as http from '../../common/http' import * as security from '../adapters/security' import * as qs from 'querystring' import Sockette from 'sockette' import Emitter from '../../common/emitte...
<reponame>shinyoshiaki/wrtct<filename>packages/rtp/src/rtcp/rtpfb/twcc.ts import debug from "debug"; import range from "lodash/range"; import { BitWriter2, bufferReader, bufferWriter, getBit, } from "../../../../common/src"; import { RtcpHeader } from "../header"; const log = debug("werift/rtp/rtcp/rtpfb/twcc...
/* eslint-disable no-param-reassign */ import type { ReactElement } from 'react'; import { useContext } from 'react'; import React, { useMemo } from 'react'; import { Row, Col, Form, Divider, ConfigProvider } from 'antd'; import type { FormInstance, FormProps } from 'antd/lib/form/Form'; import RcResizeObserver from 'r...
<gh_stars>1-10 /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Platform, supportsPassiveEventListeners} from '@angular/cdk/platform'; import { Directive, ...
import { pure } from '../tiv' /// Effect Def declare const Return: unique symbol abstract class Effect<A> { [Return]!: A constructor() { ;(this as any).k = () => {} } } type AnyEffect = Effect<any> /// Eff Monad Def export type Eff<E extends AnyEffect, A> = Pure<E, A> | Impure<E, A> class Pure<E extends A...
<filename>packages/menu/mwc-menu-surface-base.ts /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ // Style preference for leading underscores. // tslint:disable:strip-private-property-underscore import {MDCMenuSurfaceAdapter} from '@material/menu-surface/adapter'; import {Corner...
<filename>src/stores/VideoChannelStore.ts /* Copyright 2022 The Matrix.org Foundation C.I.C. 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 r...
import util = require('util'); import coroutine = require('coroutine'); import Utilities = require("./Utilities"); import ChainInstance = require("./ChainInstance"); var prepareConditions = function (opts: FxOrmQuery.ChainFindOptions) { return Utilities.transformPropertyNames( opts.conditions, opts.prope...
import {Transform, TransformCallback} from 'stream'; import {CacheControl} from "./PrerenderedControl"; interface TrackItem { index: number; open: boolean; close: boolean; closing: boolean; position: 0; } interface CacheTrack { buffer: string; noCache: boolean; variables: Record<string, string>; } in...
/* Imports: External */ import { BigNumber, ethers, constants } from 'ethers' import { Logger } from '@eth-optimism/common-ts' import { getContractFactory } from '@metis.io/contracts' import { fromHexString, toHexString, toRpcHexString, EventArgsSequencerBatchAppended, } from '@eth-optimism/core-utils' /* Impo...
import type { AstroComponentMetadata, Renderer } from '../../@types/astro-core'; import type { SSRResult, SSRElement } from '../../@types/astro-runtime'; import type { TopLevelAstro } from '../../@types/astro-runtime'; import shorthash from 'shorthash'; import { extractDirectives, generateHydrateScript } from './hydra...
<filename>src/react/useSMSubscription.tsx<gh_stars>0 import React from 'react'; import { convertQueryDefinitionToQueryInfo } from '../queryDefinitionAdapters'; import { QueryDataReturn, UseSubscriptionReturn, Maybe, UseSubscriptionQueryDefinitions, } from '../types'; import { ISMContext, ISMContextSubscription...
/** * @license * Copyright 2018 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 a...
import { RTMClient, LogLevel } from "@slack/rtm-api"; import { Main, ISlackTeam } from "./Main"; import { SlackEventHandler } from "./SlackEventHandler"; import { Logging } from "matrix-appservice-bridge"; import { PuppetEntry } from "./datastore/Models"; import { ConversationsInfoResponse, ConversationsMembersResponse...
import * as ethers from 'ethers' import { AbstractContract, expect, RevertError, ZERO_ADDRESS } from './utils' import * as utils from './utils' import { SkyweaverAssets, ERC1155Mock, ConquestEntriesFactory } from 'src/gen/typechain' import { BigNumber, constants } from 'ethers' import { web3 } fro...
// @Libs import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { Col, Form, Input, Modal, Row, Select, Switch, Tooltip } from 'antd'; import debounce from 'lodash/debounce'; import get from 'lodash/get'; import set from 'lodash/set'; import cn from 'classnames'; // @Components import ...
<gh_stars>0 import { tagNames } from "@webmc/nbt"; import { applyEdit, SearchQuery } from "../../src/common/Operations"; import { NbtFile, NbtEdit, EditorMessage, ViewMessage } from "../../src/common/types" import { MapEditor } from './MapEditor'; import { RegionEditor } from "./RegionEditor"; import { SnbtEditor } fro...
/** * Copyright (C) 2021 Alibaba Group Holding Limited * All rights reserved. */ import { Color } from '@gs.i/utils-math' import earcut from 'earcut' // @TODO 体积过大,需要全部换成按需引入 // import * as turf from '@turf/turf' import { flattenEach } from '@turf/meta' import { getGeom, getCoords } from '@turf/invariant' import bb...
import React from 'react'; import { Image, ScrollView, Switch, TouchableOpacity, View } from 'react-native'; import { Text, Button, List, Avatar, Title, Dialog, TextInput, Chip, Card, Badge, Paragraph, FAB, Portal,ProgressBar,Colors } from 'react-native-paper'; import { useDispatch, useSelector } from 'react-redux'; i...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import moment from 'moment-timezone'; import React, { FC, useCallback, useEff...
// Classes and definitions that have to do with modeling and decisions around code generation // // Does not include the actual code generation itself. import { schema } from '@aws-cdk/cfnspec'; import codemaker = require('codemaker'); import { itemTypeNames, PropertyAttributeName, scalarTypeNames, SpecName } from './...
import { ModuleWithProviders } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { Store, StoreModule, StoreRootModule } from '@ngrx/store'; import { appReducers, AppState, BaseEntityValues, endpointEntityType, EndpointModel, entityCatalog, EntityCatalogEntityConfig, getDefau...
import { proxy, Remote } from 'comlink' import { noop, sortBy } from 'lodash' import { BehaviorSubject, EMPTY, ReplaySubject } from 'rxjs' import { debounceTime, mapTo } from 'rxjs/operators' import * as sourcegraph from 'sourcegraph' import { asError } from '@sourcegraph/common' import { Location, MarkupKind, Positio...
<filename>types/sharp/sharp-tests.ts import sharp = require("sharp"); import { createReadStream, createWriteStream } from "fs"; // Test samples taken from the official documentation const input: Buffer = new Buffer(0); const readableStream: NodeJS.ReadableStream = createReadStream(input); const writableStream: NodeJS...
import {TCMFeatureSynchronizer} from '../../tcm/tcm-feature-synchronizer'; import {Component, Output, EventEmitter} from '@angular/core'; import {ModalController, ToastController, NavController, PopoverController, ViewController,AlertController,Events} from 'ionic-angular'; import {FeatureService} from '../../../servic...
import { HassEntity } from "home-assistant-js-websocket/dist/types"; import { css, CSSResult, customElement, html, LitElement, property, PropertyValues, TemplateResult, } from "lit-element"; import { styleMap } from "lit-html/directives/style-map"; import "@thomasloven/round-slider"; import { applyThem...
<reponame>MeasureAuthoringTool/model-info-parser import _ from "lodash"; import FileWriter from "../FileWriter"; import classTemplate, { TemplateContext as ClassTemplateContext, } from "../templates/typescript/classes/classTemplate"; import interfaceTemplate, { TemplateContext as InterfaceTemplateContext, } from "....
/* Copyright 2020 the Deno authors. All rights reserved. MIT license. */ import React, { useState } from "react"; import Link from "next/link"; import Transition from "./Transition"; function Header({ subtitle, widerContent, }: { subtitle?: string; widerContent?: boolean; }): React.ReactElement { const [men...
import { Address, IDAOState, IProposalStage, Vote } from "@daostack/client"; import classNames from "classnames"; import AccountPopup from "components/Account/AccountPopup"; import AccountProfileName from "components/Account/AccountProfileName"; import ProposalCountdown from "components/Shared/ProposalCountdown"; impor...
<reponame>vknabel/vscode-swiftlint<filename>src/lint.ts import { TextDocument, Diagnostic, DiagnosticSeverity, Range, Uri, WorkspaceFolder, Position, workspace, RelativePattern, } from "vscode"; import { ExecException, ExecFileOptionsWithStringEncoding, } from "child_process"; import Current from ...
/** @jsxRuntime classic */ /** @jsx jsx */ //@ts-nocheck import React, { useMemo, useState, useEffect } from 'react' import { Themed, jsx } from 'theme-ui' import smoothscroll from 'smoothscroll-polyfill' import { ArrowLeft, ChevronUp, Plus } from '../../components/icons' import { NextSeo } from 'next-seo' import { use...
import { Breadcrumbs, List, ListItem, ListItemText, Typography, Container } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import useMediaQuery from '@material-ui/core/useMediaQuery'; import NavigateNextIcon from '@material-ui/icons/NavigateNext'; import React, ...
<filename>src/data-loader-store-and-loader.ts import isPromise from 'is-promise' import { DataProviderEvents } from './events' import { LoaderState, LoaderStatus } from './data-loader-state' import { getDataState } from './state-helper' export interface DataLoaderState { [paramsHash: string]: LoaderState<any> } e...
import { parseAnswer, GameEvent, GameRank, RoomStatus, EmitScoreDetails, EmitQuestions, EmitQuestion, GameTime, RoomEvent, EmitPlayerScore, DifficultyEnum, Answer, TopTimeAnswer, } from '@squiz/shared'; import Round from 'App/Models/Round'; import { shuffle } from 'App/Utils/Array'; import { S...
import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { withRouter, RouteComponentProps } from 'react-router-dom'; import ReactMarkdown from 'react-markdown'; import styled from 'styled-components/macro'; import NumberFormat from 'r...
<reponame>peque-ts/peque import sinon from 'sinon'; import { suite } from 'uvu'; import * as assert from 'uvu/assert'; import { wait } from '../../../test/test.utils'; import { LifeCycleEventsType, OnControllerDestroy, OnControllerInit, OnModuleDestroy, OnModuleInit, OnProviderDestroy, OnProviderInit, ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Denops } from "../deps.ts"; /** * The result is a Number, which is |TRUE| if {expr} is * defined, zero otherwise. * * For checking for a supported feature use |has()|. * For checking if a file exists use |filereadable()|. * * The {expr} argument is a string, which contains one of these: * &option-nam...
import axios from "axios"; import React, { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import { useLocation, useHistory, useParams } from "react-router"; import { Link } from "react-router-dom"; import { RootState } from "../../../store"; import { COMMENT, LIKE, MIXED_POST...
'use strict'; import * as vscode from 'vscode'; import * as fs from 'fs'; import * as path from 'path'; import * as terser from 'terser'; import * as cleancss from 'clean-css'; type ConfSettings = { showMessage: boolean; loadExternal: boolean; setGlobal: boolean; }; type FileStats = { original: numbe...
<reponame>MrBondt/bclub-tools<gh_stars>1-10 import { IMember, IChatLog, StoreNames } from 'models'; import { DatabaseService } from './database.service'; import { Injectable } from '@angular/core'; import * as JSZip from 'jszip'; import { Observable, from } from 'rxjs'; import { switchMap } from 'rxjs/operators'; cons...
<gh_stars>0 // Copyright (c) TileDB // Distributed under the terms of the MIT License. import { DOMWidgetModel, DOMWidgetView, ISerializers } from '@jupyter-widgets/base'; import * as d3 from 'd3'; import debounce from './debounce'; import { MODULE_NAME, MODULE_VERSION } from './version'; import '../css/widget.css...
<filename>client/shared/src/search/query/hover.ts<gh_stars>0 import * as Monaco from 'monaco-editor' import { decorate, toMonacoRange, DecoratedToken, MetaRegexp, MetaRegexpKind, MetaRevision, MetaGitRevision, MetaSourcegraphRevision, MetaStructural, MetaStructuralKind, Meta...
<gh_stars>1-10 import { ParsedConfig, BaseVisitor, EnumValuesMap, indentMultiline, indent } from '@graphql-codegen/visitor-plugin-common'; import { JavaResolversPluginRawConfig } from './index'; import { GraphQLSchema, EnumTypeDefinitionNode, EnumValueDefinitionNode, InputObjectTypeDefinitionNode, ObjectTypeD...
<filename>src/Text.tsx import * as THREE from "three"; import { Euler, ShaderMaterial } from "three"; import { updateVector } from "./Actions"; import { TEXT_COLOR } from "./Constants"; import LineHandles from "./LineHandles"; import State from "./State"; const makeCanvas = (c: HTMLCanvasElement, chars: string[], colo...
//onsave jtree build produce treeBase.node.js import { treeNotationTypes } from "../products/treeNotationTypes" const { jtree } = require("../index.js") const { Disk } = require("../products/Disk.node.js") const fs = require("fs") const GrammarProgram = jtree.GrammarProgram const TreeUtils = jtree.Utils const TreeN...
export interface AdapterResult { value: Buffer flags: number, cas: bigint recycle: () => void } export interface Counter { value: bigint, cas: bigint } export interface Stats { /** Process id of this server process (32u) */ pid: number /** Number of secs since the server started (32u) */ uptime: n...
import React, { useEffect, useState } from 'react'; import { Namespace, TFunction, useTranslation } from 'react-i18next'; import { LumConstants } from '@lum-network/sdk-javascript'; import { ProposalStatus } from '@lum-network/sdk-javascript/build/codec/cosmos/gov/v1beta1/gov'; import numeral from 'numeral'; import da...
/* eslint-disable no-var */ declare var internalBinding: any; declare var nodeProcess: any; declare var isolatedWorld: any; declare var binding: { get: (name: string) => any; process: NodeJS.Process; createPreloadScript: (src: string) => Function }; declare const BUILDFLAG: (flag: boolean) => boolean; declare const E...
import { assert } from '@0x/assert'; import { FallthroughResolver, FSResolver, NameResolver, NPMResolver, RelativeFSResolver, Resolver, SpyResolver, URLResolver, } from '@0x/sol-resolver'; import { logUtils } from '@0x/utils'; import { execSync } from 'child_process'; import * as chokida...
import React from 'react'; import { HashRouter as Router, Routes, Route, Link as RouterLink, useLocation } from 'react-router-dom'; import type { AnyAction } from '@reduxjs/toolkit'; import { IconButton, Box, CloseButton, Flex, HStack, Icon, useColorModeValue, Link, Drawer, Drawe...
import { assert } from 'chai'; import { Enum, Identifiable, IdentifiableMap, Composite, CompositeMap } from '../'; class Customer extends Identifiable { public static readonly Null = new Customer('0'); constructor(id: string = null) { super(id); } } class TreeStructure extends Composite<TreeStructure> { ...
import { AppBaseData, AppDataComplete, AppDataForProjects } from './sync.model'; import { MODEL_VERSION_KEY } from '../../app.constants'; import { isEntityStateConsistent } from '../../util/check-fix-entity-state-consistency'; import { devError } from '../../util/dev-error'; import { Tag } from '../../features/tag/tag....
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { ILabShell, JupyterFrontEnd, JupyterFrontEndPlugin, ILayoutRestorer } from '@jupyterlab/application'; import { MainAreaWidget, WidgetTracker, ToolbarButton } from '@jupyterlab/apputils'; impor...
import { dirname, relative } from '@stoplight/path'; import { isPlainObject, extractPointerFromRef, extractSourceFromRef } from '@stoplight/json'; import { DiagnosticSeverity } from '@stoplight/types'; import { minimatch } from './utils/minimatch'; import { Rule, StringifiedRule } from './rule'; import type { FileRul...
<gh_stars>1-10 import { Component, AfterViewInit, Inject, Input, OnDestroy, EventEmitter, Output, OnInit } from '@angular/core'; import {FormControl} from '@angular/forms'; import { HttpClient } from '@angular/common/http'; import { Subject, Observable, Subscription, forkJoin, CompletionObserver } from 'rxjs'; import {...
import { getDisplayPath, getPagePath, getParent, isAll, isAnnotate, isApplyConstrain, isArray, isEither, isExport, isGeneric, isObject, isOptional, isProject, isReadonly, isString, isTuple, TyAll, TyAnnotate, TyApply, TyApplyConstrain, ...
import { logger } from '@sentry/core'; import { getHubFromCarrier, Scope } from '@sentry/hub'; import { SentryEvent, Severity } from '@sentry/types'; import { forget } from '@sentry/utils/async'; import { serialize } from '@sentry/utils/object'; import * as cookie from 'cookie'; import * as domain from 'domain'; import...
<filename>src/visualComponent/tooltipComponent.ts<gh_stars>10-100 /** * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
<reponame>mtrimolet/fastify-oapi import { FastifySchema, RouteHandler, HTTPMethods } from "fastify"; import * as $RefParser from "@apidevtools/json-schema-ref-parser"; import { OpenAPIObject, PathItemObject, OperationObject, ParameterObject, RequestBodyObject, ResponseObject, SchemaObject,...
<filename>src/lib/pipeline/module/standardHtmlFormatter.ts import { DocumentNode, HtmlFormatter, Node, NodeType, NodeWithChildren, TextNode } from '../..'; /** * Standard HTML formatter. * Implements minification, basic pretty formatting, and bypass modes. */ export class StandardHtmlFormatt...
<reponame>goverdhan1/zephyr<gh_stars>0 import { FETCH_PROJECT_SUMMARIES, FETCH_PROJECT_DETAILS_BY_ID, FETCH_ALL_PROJECTS, NEXT_PAGE_PROJECT_SETUP_GRID , PREV_PAGE_PROJECT_SETUP_GRID, EDIT_PROJECT, DELETE_PROJECT, ADD_PROJECT, FETCH_PROJECT_DETAILS, CLEAR_PROJECTS_EVENTS, FETCH_USER_ALLOCATED_PROJECT_DETAILS, FE...
<gh_stars>0 import { AxiosInstance, AxiosRequestConfig } from "axios"; import * as querystringUtil from "querystring"; import { createClient } from "../client"; import { JweUtil, Logger } from "../util"; import { isNil } from "lodash"; import { SingpassMyInfoError } from "../util/error/SingpassMyinfoError"; export enu...
import { NSImageBase, srcProperty, isLoadingProperty } from './ns-image-cache-common'; import { View, Property, booleanConverter } from 'ui/core/view'; import * as application from 'application'; import * as platform from 'platform'; import * as utils from 'utils/utils'; import * as appSettings from 'application-settin...
import { Ranges } from "../../../scripts/common"; import { version as v } from "../package.json"; const version: string = v; interface Obj { i: number; val: any; } type Callback = (obj: Obj) => void; function rIterate( str: string, originalRanges: Ranges, cb: Callback, offset = 0 ): void { if (typeof st...
<reponame>edwardnguyen225/mattermost-webapp // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {batchActions} from 'redux-batched-actions'; import { fetchMyChannelsAndMembers, getChannelByNameAndTeamName, getChannelStats, selectChanne...