text
stringlengths
3.08k
15.5k
import { Component, OnChanges, SimpleChanges, Input, Output, EventEmitter } from '@angular/core'; import { TooltipHelper } from '../../shared/shared'; import { AreaTypeIds, PolarityIds } from '../../shared/constants'; import { TrendRow } from '../trend'; import { FTHelperService } from '../../shared/service/helper/ftHe...
import { Injectable } from '@angular/core'; import { createEntityAdapter, EntityState } from '@ngrx/entity'; // MemoizedSelector is needed even if it's not being used in this file // Else you get this error // Exported variable 'workItemSelector' has or is using name 'MemoizedSelector' // from external module "@ngrx/s...
import * as React from "react"; import styled from 'styled-components' import { Container, Row, Col } from 'react-bootstrap' import { WmkImage as Img, Img as ImgClass } from 'wmk-image' import { documentToReactComponents } from '@contentful/rich-text-react-renderer' import { AiOutlineClose } from 'react-icons/ai' co...
import * as React from 'react'; import classNames from 'classnames'; import withStyles, { WithStyles } from 'react-jss'; import styles from './SidebarNavigation.styles'; import { DownArrow } from '../Icons'; import { useContext, useState } from 'react'; /** Interfaces */ export interface ISidebarNavigationContainerPro...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import Long from "long"; import * as log from "../log"; import { generate_uuid } from "rhea-promise"; import { isBuffer } from "util"; import { ConnectionContext } from "../connectionContext"; // This is the only dependenc...
import * as tf from '@tensorflow/tfjs' import { ThumbProcessor } from './thumb'; import * as assembler from './assembler' import * as U from './util' import { assignLayerInfos, compileModelCore, CompileResult, partialModels, shapeElts } from './compiler'; import { Options } from './ir'; const epsF32 = 0.00002 const ep...
//import {IPlan} from '../interfaces/iplan'; import {EstimateDirection} from '../enums'; import * as _ from 'lodash'; //import moment = require('moment'); import * as moment from 'moment'; export interface IPlan { id: string; name: string; content: any; query: string; createdOn: Date; planStats...
"use strict"; import Worker from "./worker/index"; import { Pokemon, Gender } from "./Pokemon"; import { BreedingNode, Nullable } from "./BreedingNode"; import { BreedingTreeFinder, BestTree } from "./BreedingTreeFinder"; interface TreeFinderData { treeFinder: BreedingTreeFinder; bestTree: BestTree; } async ...
<reponame>apmasell/shesmu import { actionDisplay, butterForPurgeCount } from "./action.js"; import { fetchJsonWithBusyDialog, refreshable, saveFile } from "./io.js"; import { br, dialog, radioSelector, refreshButton, setRootDashboard, singleState, tableFromRows, tableRow, buttonDanger, temporaryStat...
<filename>validate.ts import { makeJwt } from "./create.ts"; import type { Jose, Payload, JsonValue, Algorithm } from "./create.ts"; import { convertBase64urlToUint8Array } from "./base64/base64url.ts"; import { convertUint8ArrayToHex } from "./deps.ts"; type JwtObject = { header: Jose; payload: Payload; signature: st...
<reponame>fercamp09/int20171T import * as dialogs from 'ui/dialogs'; import * as URI from 'urijs'; import applicationSettings = require('application-settings'); import {appViewModel} from './AppViewModel'; import { SessionPort, Permission, PermissionType, PermissionState } from '@argonjs/argon' const P...
<reponame>xxsiders/moodletest // (C) Copyright 2015 Moodle Pty Ltd. // // 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>test/AvhGitFlow.test.ts import { resolve, join } from 'path'; import { AvhGitFlow } from '../src/avh/AvhGitFlow'; import { GitFlow } from '../src/api/GitFlow'; import { GitFlowTester } from './GitFlowTester'; import { assert } from 'chai'; import { AvhBranchListParser } from '../src/avh/AvhBranchListParser'; ...
/** * ✔ value * ✘ type: Partially. * ✔ password * ✔ placeholder * ✘ placeholder-style: Only placeholderTextColor(RN). * - placeholder-class * ✔ disabled * ✔ maxlength * ✘ cursor-spacing * - auto-focus * ✔ focus * ✔ confirmType(confirm-type) * ✔ confirmHold(confirm-hold) * ✔ cursor * ✔ selectionStart(sele...
<reponame>ryanhefner/contentful.js // Type definitions for contentful // Definitions by: <NAME> <https://github.com/googol> export interface AxiosProxyConfig { host: string; port?: number; auth?: { username: string; password: string; }; } export type ClientLogLevel = 'error' | 'warning...
/** * Wrapper for starting VM Workflows in Worker threads. * * Worker threads are used here because creating vm contexts is a long running * operation which blocks the Node.js event loop causing the SDK Worker to * become unresponsive. * * @module */ import { coresdk } from '@temporalio/proto'; import { Illega...
import * as React from "react"; import { Maybe, maybe } from "../../../Data/Maybe"; import { AdvantagesContainer } from "../../Containers/AdvantagesContainer"; import { AttributesContainer } from "../../Containers/AttributesContainer"; import { CombatTechniquesContainer } from "../../Containers/CombatTechniquesContaine...
import * as core from '@serverless-devs/core'; import _, { isEmpty } from 'lodash'; import { isAutoConfig, genServiceStateID, getCredentials } from './utils'; import { VpcConfig } from './interface/vpc'; const HANDlER_NAS_COMMANDS = ['ls', 'cp', 'rm', 'download', 'upload', 'command']; export async function toNasAbili...
import React, { useState, useEffect } from 'react'; import InputText from '../../../../../components/InputText'; import Button from '../../../../../components/Button'; import retornarIdDoUsuario from '../../../../../helpers/retornarIdDoUsuario'; import { useTheme } from 'styled-components/native'; import { DadosTem...
import 'leaflet/dist/leaflet.css'; import React, { useState, useEffect, FC, useRef } from 'react'; import { makeStyles, Theme, useMediaQuery } from '@material-ui/core'; import { MapContainer, Marker, Popup, TileLayer } from 'react-leaflet'; import './dashboard.css'; import { Link, Title, useTranslate, linkToRecord } fr...
import React, { FC, useEffect, useState } from 'react'; import { Button, Card, Col, Drawer, Form, Input, Row, Select, Space, Tooltip } from 'antd'; import { Template } from '../types'; import { Icon_GroupBot, Icon_ServiceBot, Icon_SingleBot, NORMAL_BOT, SERVICE_BOT, BOT_GROUP, BOT_LANGUAGES,...
<reponame>jiminj/actions-gh-pages import * as core from '@actions/core'; import * as exec from '@actions/exec'; import * as glob from '@actions/glob'; import path from 'path'; import fs from 'fs'; import {Inputs, CmdResult} from './interfaces'; import {createDir} from './utils'; import {cp, rm} from 'shelljs'; export ...
import { Client } from 'discord.js' import Economy from 'discord-economy-super' const bot = new Client({ partials: ['CHANNEL', 'GUILD_MEMBER', 'MESSAGE', 'REACTION', 'USER'], intents: [ 'GUILDS', 'GUILD_BANS', 'GUILD_EMOJIS_AND_STICKERS', 'GUILD_INTEGRATIONS', 'GUILD_INVITES', 'GUILD_MEMBERS', ...
import { loadFile, toString, toNumber, toStringArray, toLowerCaseString, } from "../../content-utils/xlsx-utils" import { CardData, BaseCard, cardContent, createIdContext, GameWorldModifier, WorldQuery, } from "../../content-utils" import { createLinkContext } from "./utils" ...
import log, { LOG_LEVEL } from "../../utility/Logger"; export type manaPoolTypes = "White" | "Blue" | "Red" | "Green" | "Black" | "Colorless"; export type manaCostTypes = manaPoolTypes | "Generic"; export default interface ManaCost { White: number; Blue: number; Red: number; Green: number; Black: ...
import React, { useEffect } from 'react'; import ItemPopupContainer from '../item-popup/ItemPopupContainer'; import ItemPickerContainer from '../item-picker/ItemPickerContainer'; import MoveAmountPopupContainer from '../inventory/MoveAmountPopupContainer'; import { t } from 'app/i18next-t'; import { itemTagList } from ...
<filename>src/locales/languages.ts import "./all-dayjs-locales" import dayjs from "dayjs" import i18next, { Resource } from "i18next" import { initReactI18next, useTranslation } from "react-i18next" import { NativeModules, Platform } from "react-native" import { StorageUtils } from "../utils" import ar from "./ar.js...
<gh_stars>0 import { AssetId, ChainId, toAssetId } from '@shapeshiftoss/caip' import { SupportedYearnVault } from '@shapeshiftoss/investor-yearn' import { USDC_PRECISION } from 'constants/UsdcPrecision' import { useTranslate } from 'react-polyglot' import { useSelector } from 'react-redux' import { bnOrZero } from 'lib...
<gh_stars>0 import { getProcessEnv } from './lib/get-process-env' import { getCDN } from './lib/parse-cdn' import fetch from 'unfetch' import { Analytics, AnalyticsSettings, InitOptions } from './analytics' import { Context } from './core/context' import { Plan } from './core/events' import { Plugin } from './core/plu...
import { shallowEqual } from 'fast-equals'; import * as PropTypes from 'prop-types'; import { Component } from 'react'; import { ConstructorOf, Omit, StoreUnsubscribeDelegate } from '../models'; import { AnuxStore, AnuxStores } from '../stores'; type StateSelectionDelegate<TState extends {} = {}, TNewSelection e...
<filename>packages/next/server/node-web-streams-helper.ts<gh_stars>1-10 export function readableStreamTee<T = any>( readable: ReadableStream<T> ): [ReadableStream<T>, ReadableStream<T>] { const transformStream = new TransformStream() const transformStream2 = new TransformStream() const writer = transformStream....
<reponame>jamesmcdonagh/Global_Azure_Bootcamp_2019 // // 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 Corpora...
/* Copyright 2019 City of Los Angeles. 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 a...
<reponame>lowkeyrd/fc<filename>src/lib/component/nas.ts<gh_stars>0 import * as core from '@serverless-devs/core'; import * as HELP from '../help/nas'; import { isAutoConfig } from '../utils'; import { VpcConfig } from '../interface/vpc'; import { NasConfig } from '../interface/nas'; import Client from '../client'; impo...
/* eslint-disable security/detect-object-injection */ import BigNumber from "bignumber.js"; /** * Throw an error if the assertion is false. */ export const assert = ( assertion: boolean, sentence?: string, ): assertion is true => { if (!assertion) { throw new Error(`Failed assertion${sentence ? ...
/** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors ma...
<gh_stars>1-10 import { Component } from './component'; import { Signal } from '../signal'; import { getUtf32Codes } from '../../util'; export type InputCommand = | 'complete' | 'newline' | 'backspace' | 'delete' | 'left' | 'right' | 'up' | 'down'; // Conversion of special key codes to input commands ...
<filename>src/git-helper.ts import * as github from '@actions/github' import {IGitCommandManager, createCommandManager} from './git-command-manager' import {IGitSourceSettings} from 'github-checkout/lib/git-source-settings' export interface IGitHelper { branchContainsTag(tag: string): Promise<string> branchExists(...
<reponame>equinor/lighthouse-client import { interpolateBlues } from 'd3-scale-chromatic'; import { DateTime } from 'luxon'; import { WorkOrder } from '../../../Types'; import { themeColors } from '../theme'; import { CreateSeriesArgs, Series } from '../Types'; import { interpolateColors } from './colorGenerator'; impo...
import { AST, ASTPlugin } from "@glimmer/syntax"; import GlimmerApp from '../../lib/broccoli/glimmer-app'; import { GlimmerAppOptions } from '../../lib/interfaces'; import { buildOutput, createTempDir, TempDir } from 'broccoli-test-helper'; import path = require('path'); import { readFileSync } from 'fs'; import * as ...
/* global google, document */ import React from 'react' import styled from 'styled-components' import { ILocation } from '../../../types/studyspaces' import { maxWidth, PHONE } from '../../styles/sizes' // Styles interface IMapWrapper { height?: string mobileHeight?: string } const MapWrapper = styled.div<IMapWra...
<gh_stars>0 import * as core from '@newrade/core-design-system'; import { SIZE, VIEWPORT } from '@newrade/core-design-system'; import { CSSSizing, CSSSizingV2, SizingRatioVarNames, SizingVarNames } from '../design-system'; import { cssVar } from '../utilities-iso/css-variables.utilities'; import { keys, px } from '../...
<reponame>oneblink/sdk-js<gh_stars>0 import Joi from 'joi' import { CUSTOM_OPTION_TYPE, SEARCH_OPTION_TYPE, optionTypes, DYNAMIC_OPTION_TYPE, FRESHDESK_FIELD_OPTION_TYPE, } from './common' export const id = Joi.string().guid().required() export const name = Joi.string().required() export const label = Joi.st...
import { getTarFilePath } from '@x-ray/core' import type { TExample, TExampleResult } from '@x-ray/core' import { map, toMapAsync } from 'iterama' import { piAll } from 'piall' import { access } from 'pifs' import puppeteer from 'puppeteer-core' import type { ElementHandle } from 'puppeteer-core' import { createElement...
<filename>packages/opencensus-exporter-jaeger/src/jaeger.ts<gh_stars>100-1000 /** * Copyright 2018, OpenCensus Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://w...
import Album = require('album'); import App = require('app'); import Common = require('common'); import $ = require('jquery'); import Hammer = require('hammer'); import Route = require('route'); /// <reference path="hammerjs.d.ts"/> class Viewer { private static emptyPixel = 'data:image/gif;base64,R0lGODlhAQABAIAAAA...
import { jsonSchemaProperties, jsonSchemaTypes, microdataItemtype, microdataProperty, microdataRoot, Types, } from '@stencila/schema' import fs from 'fs' import path from 'path' // Output path for the file containing generated CSS custom selector definitions const cssPath = path.join(__dirname, '..', 'sele...
<reponame>rossbulat/polkadot-staking-experience<gh_stars>1-10 // Copyright 2022 @paritytech/polkadot-staking-dashboard authors & contributors // SPDX-License-Identifier: Apache-2.0 import { NODE_ENDPOINTS } from 'consts'; import { NodeEndpoint } from 'types'; // configure theme const v = (light: string, dark: string)...
import csvparse from 'csv-parse'; import { Collection } from 'mongodb'; import { Writable } from 'stream'; import { v4 as uuid } from 'uuid'; import { Models } from 'itmat-commons'; type IJobEntryForFieldCuration = Models.JobModels.IJobEntryForFieldCuration; type IFieldEntry = Models.Field.IFieldEntry; type enumValueTy...
<reponame>ducdat0507/notations<gh_stars>0 import { Notation } from "./notation"; import Decimal from "break_infinity.js"; // The maximum number we can reliably find all prime factors for. const MAX_INT = 10006; const MAX_INT_DECIMAL = new Decimal(MAX_INT); const MAX_INT_LOG_10 = Math.log10(MAX_INT); // List o...
import { Router } from 'express'; import { sprintf } from 'sprintf-js'; import { IServiceRouter } from './IServiceRouter'; import { OSUDataService, IPerformanceData, IBeatmap } from '../services/OSUDataService'; import { OSUStatService, IPerformanceStats, OsuMods } from '../services/OSUStatService'; import * as time_ag...
import * as fs from "fs"; import * as path from "path"; import { ServiceClientCredentials } from "ms-rest"; import { WebSiteManagementClient } from "azure-arm-website"; import { AppServicePlanCollection, StringDictionary } from "azure-arm-website/lib/models"; import ResourceManagementClient, { ResourceManagementM...
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api'; import * as moo from 'moo'; export class SimeonHoverProvider implements monaco.languages.HoverProvider { // This enables us to pass in a function from PureScript that provides hover information hoverProvider: (word: string) => monaco.languages.Hove...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { Component, DebugElement, OnInit } from '@angular/core'; import { FormsModule, ReactiveFormsModule, FormGroup, FormBuilder, FormControl } from '@angular/forms'; import { DateRange } fro...
<gh_stars>1-10 import { Inject, Injectable } from '@angular/core'; import { AngularFirestore, AngularFirestoreCollection } from '@angular/fire/compat/firestore'; import { Observable, ReplaySubject, throwError } from 'rxjs'; import { map, shareReplay, take, tap } from 'rxjs/operators'; import { HttpClient } from '@angul...
import { unwindEdges, Edge } from '@good-idea/unwind-edges' import { Collection, Product, ShopifyImage, SanityArray, SanityShopifyDocumentPartial, SanityShopifyProductOption, SanityShopifyProductVariant, SanityShopifyProductDocumentPartial, SanityShopifyCollectionDocumentPartial, } from '@sane-shopify...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { Message } from '@phosphor/messaging'; import { Menu } from '@phosphor/widgets'; import { JupyterLab, JupyterLabPlugin } from '@jupyterlab/application'; import { ICommandPalette, IFrame, ILayoutRes...
import './PublicHeader.scss'; import i18next from 'i18next'; import React, { Component, createRef, Ref } from 'react'; import ResizeObserver from 'resize-observer-polyfill'; import nanamiPNG from '../../../assets/nanami.png'; import nanamiWebP from '../../../assets/nanami.webp'; import { logout } from '../../../store...
import { useMutation, useQuery } from "@apollo/client"; import { Box, Flex, Heading, IconButton, Image } from "@chakra-ui/core"; import { Link } from "@reach/router"; import React, { useContext, useState } from "react"; import { useTranslation } from "react-i18next"; import { FaMinus, FaPlus, FaTwitter } from "react-ic...
import { Localized } from "@fluent/react/compat"; import cn from "classnames"; import { get } from "lodash"; import React, { FunctionComponent } from "react"; import { Field, FieldProps, Form } from "react-final-form"; import { OnSubmit } from "coral-framework/lib/form"; import { customMessage, validateMaxLength, ...
import { Component, Inject, ViewChild, OnInit, AfterViewInit, OnDestroy } from '@angular/core'; import { Router } from '@angular/router'; import { Subscription } from "rxjs"; import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; import { environment } from '../../environments/environment'; imp...
import {HttpClient, HttpErrorResponse} from "@angular/common/http"; import { timeout } from 'rxjs/operators' // state of an upload export enum UploadStatus {IDLE = 1, UPLOADING = 2, ABORT = 3, DONE = 0, ERR = -1} // state of the uploader // TRY_UPLOADING is uploading state after an error (fo...
import * as Lib from 'requirex-postcss-bundle'; import { URL } from '../platform/URL'; import { Zalgo, keys, stringify } from '../platform/util'; import { features } from '../platform/features'; import { Importation } from '../Status'; import { Record } from '../Record'; import { SourceMap, SourceMapData } from '../So...
import _ from 'lodash'; import React, { useEffect, useRef, useState } from 'react'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import { Button, Form, Header } from 'semantic-ui-react'; import { useLedger, useParty } from '@daml/react'; import { Date as DamlDate, Decimal } from '@daml/types'; ...
import Cookies from 'cookies'; import { NextPageContext } from 'next'; import { IncomingMessage } from 'http'; import { parseCookies, destroyCookie } from 'nookies'; import { decode } from 'jsonwebtoken'; import startCase from 'lodash/startCase'; import toLower from 'lodash/toLower'; import { ID_TOKEN_COOKIE, R...
import { format_number } from '../pipes'; export class Question { text: string; query: string | string[]; parameters: object = {}; defaults: object | null = {}; headers: string[]; formatters: any[] = []; originalHeaders: string[] | null; } export class PreparedQuestionTextFragment { isText: boolean = ...
/******************************************************************************* The class that defines proposal data stored in transaction payloads Copyright: Copyright (c) 2020-2021 BOSAGORA Foundation All rights reserved. License: MIT License. See LICENSE for details. ********...
import React from 'react'; //eslint-disable-line import { styled, keyframes } from '@/styles/stitches.config'; const QUERY = `(prefers-reduced-motion: no-preference)`; const isRenderingOnServer = typeof window === `undefined`; const getInitialState = () => { // For our initial server render, we won`t know if the use...
<filename>cocos/core/assets/prefab.ts /* Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 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"), ...
<gh_stars>1-10 import { BuildConfig, BuildContext, Diagnostic, ModuleFile, ModuleFiles, StencilSystem, TranspileResults } from '../../util/interfaces'; import { buildError, catchError, isSassFile, normalizePath } from '../util'; import { componentClass } from './transformers/component-class'; import { getTsHost } fro...
<filename>extensions/ql-vscode/src/test-adapter.ts import * as path from 'path'; import * as vscode from 'vscode'; import { TestAdapter, TestLoadStartedEvent, TestLoadFinishedEvent, TestRunStartedEvent, TestRunFinishedEvent, TestSuiteEvent, TestEvent, TestSuiteInfo, TestInfo, TestHub } from 'vscode-...
/** * Copyright (c) 2020-present, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
<filename>tests/magic.spec.ts /** * Copyright (c) 2020 Bytedance Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import magic, { useProps, isModuleRegistered, MagicInstanceType } from '@/index'; import LifeCycle from '@/lib/LifeC...
<reponame>alarkbentley/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------...
<gh_stars>0 import clone from "lodash.clonedeep"; import { mergeAdvanced } from "object-merge-advanced"; import { arrayiffy } from "arrayiffy-if-string"; import { allEq } from "object-all-values-equal-to"; import isObj from "lodash.isplainobject"; import { version as v } from "../package.json"; const version: string ...
// // User-facing strings, to (at least) keep them all in one place in case we // might want to localize this extension in the future. // // NOTE: Every property should be a function that returns a string. The function // can optionally accept tokens as arguments to use in the generated string. // import { workspace...
import { FC, useState, useEffect } from 'react' import { find, isUndefined } from 'lodash' import { Query, Dictionary } from '@supabase/grid' import { PostgresRelationship, PostgresTable, PostgresColumn } from '@supabase/postgres-meta' import { useStore } from 'hooks' import { RowEditor, ColumnEditor, TableEditor } fr...
<reponame>pascal-klesse/cli<filename>src/extensions/helper.ts import * as fs from 'fs' import * as os from 'os' import { join, sep } from 'path' import { ExtendedGluegunToolbox } from '../interfaces/extended-gluegun-toolbox' /** * Common helper functions */ export class Helper { /** * Constructor for integratio...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. import * as fs from "fs"; import * as cp from "child_process"; import * as request from "request"; import * as URL from "url-parse"; import { dirname } from "path"; import {...
<gh_stars>100-1000 import { Chart, ChartItem, ChartConfiguration, CommonHoverOptions, ControllerDatasetOptions, PointOptions, PointProps, ScriptableContext, TooltipItem, PointElement, Scale, ScriptableAndArrayOptions, UpdateMode, } from 'chart.js'; import { merge } from 'chart.js/helpers'; imp...
import THREE = require('three'); import com from '../common/WorldInfo'; import Culling from './Culling'; import Interaction from './Interaction'; import WorldViewer from './WorldViewer'; import WorkerInterface from './WorkerInterface'; import Webcam from './Webcam'...
import * as React from 'react'; import {MDXProvider} from '@mdx-js/react'; import {styled} from '@twilio-paste/styling-library'; import {Anchor, isExternalUrl} from '@twilio-paste/anchor'; import type {AnchorProps} from '@twilio-paste/anchor'; import {Box} from '@twilio-paste/box'; import {Heading} from '@twilio-paste/...
<reponame>bashmish/polymer-tools<gh_stars>100-1000 /** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AU...
<gh_stars>0 import { Kind, DocumentNode, parse, SchemaDefinitionNode } from 'graphql/language'; import { validate, ValidationRule } from 'graphql/validation'; import { buildASTSchema } from 'graphql/utilities/buildASTSchema'; // Spec Section: "Subscriptions with Single Root Field" import { SingleFieldSubscriptions } f...
/// <reference path="../../../../typings.d.ts" /> import React from 'react'; import withReadme from 'storybook-readme/with-readme'; import {CanvasProvider, ContentDirection, StaticStates} from '@workday/canvas-kit-react/common'; import {ComponentStatesTable, withSnapshotsEnabled} from '../../../../utils/storybook'; i...
import { Link, Meta, Things } from "@garden/types"; import fs from "fs"; import os from "os"; import { join } from "path"; import { resolve } from "path"; import { findFilesDeep } from "./file"; import { logger } from "./logger"; import { process } from "./markdown"; import { FileThing } from "./thing"; const gardenM...
import React, { useRef, useState } from 'react'; import styled from 'styled-components'; import ClockNumber from './ClockNumber'; import ClockPin from './ClockPin'; import ClockPointer from './ClockPointer'; import { CLOCK_PIN_SIZE, CLOCK_SIZE } from './constants'; import { getHourOrMinuteRotateDeg, getHourByRotate...
// credit to https://gist.github.com/robinovitch61/483190546bf8f0617d2cd510f3b4b86d import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react' type Point = { x: number y: number } const ORIGIN = Object.freeze({ x: 0, y: 0 }) // adjust to device to avoid blur const { devicePixelR...
import { Component, ComponentDef, componentTypes } from "../componentList"; export type ComponentMap = Partial<{ [key in Component['type']]: Component[] }>; export type SingletonComponentMap = Partial<{ [key in Component['type']]: number }>; import * as Debug from 'debug'; const verbose = Debug('superfluous-laser:C...
import xs, { Stream } from 'xstream' import sampleCombine from 'xstream/extra/sampleCombine' import dropRepeats from 'xstream/extra/dropRepeats' import { DOMSource } from '@cycle/dom' import { Reducer, StateSource } from '@cycle/state' import { ...
import * as PIXI from "pixi.js"; import { Boid } from "../model/boid"; import { Neighbour, PointInfo, Vector } from "../model/types"; export type Position = { x: number; y: number; }; export class Util { public static random(min: number, max: number) { return min + Math.random() * (max - min); } /** ...
import { data } from 'src/data'; import base from 'src/data/1.0/data.json'; import hash from 'src/data/1.0/hash.json'; import mod from 'src/data/res/data.json'; import { Product, RateType, Step, RecipeSettings, Entities, Rational, RationalProduct, ItemSettings, Mod, Preset, toEntities, SankeyDat...
import { BasicBlock } from '@policy-engine/helpers/decorators'; import { HcsVcDocument, HcsVpDocument, HederaHelper, HederaUtils, VcSubject } from 'vc-modules'; import { Guardians } from '@helpers/guardians'; import { Inject } from '@helpers/decorators/inject'; import { Users } from '@helpers/users'; import { VcHelper ...
<gh_stars>10-100 // Type definitions for anyproxy 4.1 // Project: https://github.com/alibaba/anyproxy // Definitions by: <NAME> <https://github.com/SomaticIT> // <NAME> <https://github.com/roland-reed> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> im...
import * as postcss from 'postcss'; import { Diagnostics } from './diagnostics'; import { processPseudoStates } from './pseudo-states'; import { parseSelector } from './selector-utils'; import { Pojo, StateParsedValue } from './types'; const valueParser = require('postcss-value-parser'); /* tslint:disable:max-line-le...
import {vec3, vec4} from 'gl-matrix'; import Drawable from '../rendering/gl/Drawable'; import {gl} from '../globals'; import Flower from './Flower'; import Wahoo from './Wahoo'; class Mesh extends Drawable { indices: Uint32Array; positions: Float32Array; normals: Float32Array; center: vec4; ind : ...
<filename>src/utils/safient/worker.ts<gh_stars>1-10 import delay from 'delay' import fs from 'fs' import { Safe, Network, WorkerOptions, SafeStage, SafeMeta, Error } from '../../types' import { accountService, safeService } from '../../services' import { error, info, success, warning } from '../message' const DEFAULT...
import logger from '@sqltools/core/log'; import path from 'path'; import fs from 'fs'; import ConfigManager from '@sqltools/core/config-manager'; import { DISPLAY_NAME, EXT_NAME, ElectronNotSupportedNotification } from '@sqltools/core/constants'; import { commandExists } from '@sqltools/core/utils'; import { env as VSC...
// tslint:disable-next-line:no-implicit-dependencies import { Tree } from "@angular-devkit/schematics/src/tree/interface"; import * as fs from "fs"; import * as path from "path"; import * as ts from "typescript"; import { Util } from "../Util"; export class TypeScriptUtils { public static newLinePlaceHolder = "//I k...
/** * CoglPango-2.0 */ import type * as Gjs from './Gjs'; import type * as PangoCairo from './PangoCairo-1.0'; import type * as cairo from './cairo-1.0'; import type * as Pango from './Pango-1.0'; import type * as HarfBuzz from './HarfBuzz-0.0'; import type * as GObject from './GObject-2.0'; import type * as GLib fr...