text
stringlengths
3.08k
15.5k
import * as core from '@actions/core'; import * as github from '@actions/github'; import * as types from '@octokit/types'; import { Logger, LoggingLevel } from './logger'; type Label = { name: string; checked: boolean; }; /** * Extract `checked` value from an object * @param body string that contains labels *...
// @TODO quote https://www.ecma-international.org/wp-content/uploads/ECMA-262_1st_edition_june_1997.pdf numbskull export interface ILiteral { get value(): any // { return this._value; }; toNumber(): NumericLiteral; // { return new NumericLiteral( new Number( this._value ).valueOf() ); } toString(): StringLiteral;...
<reponame>iwe7/chrome-plugin import { Iwe7HtmlElement } from './element-observable/element-observable'; import { tap, map, switchMap, take, debounceTime } from 'rxjs/operators'; import { Observable, fromEvent } from 'rxjs'; import { merge } from 'rxjs'; export default class ChromeElement { allElements: any[] = []; ...
<filename>src/controller/IndicatorStreams.ts import { ExchangeService, ICandle } from "exchange-service"; import { ObjectID } from "mongodb"; import { createQuery } from "odata-v4-mongodb"; import { Edm, odata, ODataController, ODataQuery } from "odata-v4-server"; import connect from "../connect"; import { IndicatorStr...
import { Color, Vector3 } from "@oasis-engine/math"; import { Camera } from "../../Camera"; import { assignmentClone, deepClone, ignoreClone } from "../../clone/CloneManager"; import { Entity } from "../../Entity"; import { Material, RenderQueueType } from "../../material"; import { Renderer } from "../../Renderer"; im...
import { Explorer } from "@harmonyhub/discover"; import { EventEmitter } from "events"; import autobind from "autobind-decorator"; import { getHarmonyClient as Client } from "@harmonyhub/client"; import { HarmonyClient } from "@harmonyhub/client/dist/harmonyclient"; // var Queue = require('queue'); // var Promise = r...
import { useState, useCallback } from 'react'; import { useCurrentUser } from '../components/common/withUser'; import { useUpdateCurrentUser } from '../components/hooks/useUpdateCurrentUser'; import { useMulti } from './crud/withMulti'; import { defaultVisibilityTags } from './publicSettings'; import filter from 'lodas...
import { factory as ajaxFactory, IRequestInit, IAjaxFactory, } from "./ajaxFactory"; import { IToken, IAccessToken } from "."; import JwtDecode from "jwt-decode"; import Cookies from "js-cookie"; import Constants from "settings/Constants"; export interface IOauthInit extends IRequestInit { refreshTokenUrl?: st...
import Commerce = require('@chec/commerce.js'); import Products = require('@chec/commerce.js/features/products'); const commerce = new Commerce('{your_public_key}'); const limit = 50; const categorySlug = 'shoes'; const productId = 'prod_1ypbroE658n4ea'; const variantId = 'vrnt_Kvg9l6Apq51bB7'; const productPermalink...
<filename>src/facade/sdkFacade.ts import EvaluatorFacade, {TabContextFactory} from './evaluatorFacade'; import TrackerFacade from './trackerFacade'; import Context, {TokenScope} from '../context'; import UserFacade from './userFacade'; import Token from '../token'; import {formatCause} from '../error'; import {configur...
import { MapPlayer, playerColors, Unit } from "w3ts/index"; import { ForceType } from "./forces/force-type"; import { Crewmember } from "app/crewmember/crewmember-type"; import { WeaponEntityAttackType } from "app/weapons/weapon-attack-type"; import { Log } from "lib/serilog/serilog"; import { SyncSaveLoad } from "lib/...
import React from 'react'; import { Link } from 'react-router-dom'; import HelmetWrapper from '../common/HelmetWrapper'; import Toggle, { ToggleThemeProps } from '../components/ToggleTheme'; import * as inlineHomeData from '../_data/InlineHome.json'; import './InlineHome.css'; const EXCLUDED_FILE_TYPE = ['Batchfile']...
<filename>src/workerfarm/Worker.ts import childProcess from 'child_process'; import { EventEmitter } from 'events'; import * as errorUtils from './errorUtils'; import { WorkerCall, WorkerResponse, WorkerErrorResponse, WorkerOperationName, WorkerMessage, MasterMessage, MasterRequest } from './ipcTypes'; import { WorkerP...
<filename>test.ts<gh_stars>0 function jdpackTest() { function testOne(fmt: string, data0: any[]) { function checksame(a: any, b: any) { function fail(msg: string): never { debugger throw (`jdpack test error: ${msg} (at ${fmt}; a=${JSON.stringify(a)}; b=${JSON.stri...
<filename>packages/watchmen-web-client/src/admin/simulator/body/run/pipeline/vote.ts<gh_stars>0 import { isDeleteTopicAction, isReadTopicAction, isWriteTopicAction } from '@/services/data/tuples/pipeline-stage-unit-action/pipeline-stage-unit-action-utils'; import {Pipeline} from '@/services/data/tuples/pipeline-type...
<reponame>janus/wallet<gh_stars>1-10 const providerManager = () => ` class InjectedProvider { constructor (asset) { this.asset = asset } setClient () {} getMethod (method) { return (...args) => window.providerManager.proxy('CAL_REQUEST', { asset: this.asset, method, args }) } }...
import { container } from 'tsyringe'; import { Button, styled } from '@mui/material'; import { T, useTranslate } from '@tolgee/react'; import { useHistory } from 'react-router-dom'; import { LINKS, PARAMS } from 'tg.constants/links'; import { confirmation } from 'tg.hooks/confirmation'; import { useProject } from 'tg.h...
<reponame>swapnilogale/openapi-cli import { NodeType, listOf, mapOf } from '.'; import { Oas3Types } from './oas3' const DefinitionRoot: NodeType = { properties: { openapi: null, info: 'Info', servers: listOf('Server'), security: listOf('SecurityRequirement'), tags: listOf('Tag'), externalDoc...
import { Contract, Signer, ethers, Wallet, BigNumber, providers } from 'ethers' import { BaseService } from '@eth-optimism/common-ts' import { loadContract, loadContractFromManager } from '@eth-optimism/contracts' import chalk from 'chalk' const L2_GENESIS_BLOCK = 1 import { L1ProviderWrapper, L2ProviderWrapper,...
import React, { Component, createRef, RefObject } from 'react'; import _ from 'lodash'; import Remaining from './Remaining'; import Timer from './Timer'; import Status from './Status'; // import style from './Indicator.module.scss'; import Utils, { ICssSelector } from 'utils/Utils'; interface IProps { timeToCount: n...
import {x25519} from 'bcrypto'; import {Buffer} from "buffer"; import Wrap from 'it-pb-rpc'; import DuplexPair from 'it-pair/duplex'; import ensureBuffer from 'it-buffer'; import pipe from 'it-pipe'; import {encode, decode} from 'it-length-prefixed'; import {XXHandshake} from "./handshake-xx"; import {IKHandshake} fro...
<gh_stars>1-10 import parse from "csv-parse"; import { LocationInfo } from "./types"; import { getFullLocationName } from "./utils"; export interface ParsedCSV { [location: string]: ParsedCSVRow; } export interface ParsedCSVRow { [column: string]: string | number | undefined; } /** * The column names in global ...
// import throttle from "../utils/throttle"; export enum Direction { Y = "y", X = "x", } export enum Size { Y = "height", X = "width", } export interface Option<T> { starting?: T; doing?: T; ending?: T; } export interface InputOption extends Option<string> { startTopMargin?: string; // starting 이벤트중 top...
/** * Simple log written in TypeScript. * @copyright 2021 <NAME> (https://github.com/sam-19) * @license MIT */ import { SimpleLogType, ValidLevel } from './index.d' /** * A static logger for application events. * * All events are recorded, but only events of sufficient importance * are printed directly to co...
/* * 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 { EuiButton, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem } from '@elasti...
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
<reponame>zwahf1/Thesis import {Promise} from 'es6-promise' export type HttpMethod = 'POST' | 'PUT' | 'GET' | 'DELETE' ; export interface ApiCallArgs { url: string; method: HttpMethod; headers?: any; payload?: any; jsonBody?: boolean; } ; export type imageType = ...
<reponame>travetto/travetto import { PathUtil } from '../path'; import { ScanEntry, ScanFs } from '../scan'; import { EnvUtil } from '../env'; export type SimpleEntry = Pick<ScanEntry, 'module' | 'file'>; type ScanTest = ((x: string) => boolean) | { test: (x: string) => boolean }; export type FindConfig = { folder?: s...
import { Injectable, SecurityContext } from '@angular/core'; import * as showdown from 'showdown'; import * as ace from 'brace'; import { DomSanitizer } from '@angular/platform-browser'; import { MarkDownElement } from 'app/entities/quiz-question'; import { ExplanationCommand, HintCommand } from 'app/markdown-editor/do...
/*----------------------------------------------------------------------------------------------- * Copyright (c) <NAME><<EMAIL>>. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. *------------------------------------------------------------------...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { DebugElement } from '@angular/core'; import { By, BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { HomeContentComponent } from './homeCon...
import sift from './index.d' sift({ $exists:true}, ['craig',null]); //['craig'] var siftExists = sift({$exists:true}); siftExists('craig'); //true siftExists(null); //false ['craig', null].filter(siftExists); //['craig'] var sifter = sift({$exists:true}, function(user) { return !!user.name; }); sifter([ { name...
import { FC, useState, useEffect } from 'react'; import { useParams, useHistory } from 'react-router-dom'; import axios, { AxiosResponse } from 'axios'; import { Form, Input, Button, Select, Row, Col, Space, Popconfirm } from 'antd'; import { SaveOutlined, StopOutlined } from '@ant-design/icons'; import { connect } fro...
import { documentParamsToURIParams } from '@graphql-ez/utils/clientURI'; import { cleanObject } from '@graphql-ez/utils/object'; import { LazyPromise } from '@graphql-ez/utils/promise'; import { getURLWebsocketVersion } from '@graphql-ez/utils/url'; import type { TypedDocumentNode } from '@graphql-typed-document-node/c...
import { SafeAppProvider } from "@gnosis.pm/safe-apps-provider"; import { useSafeAppsSDK } from "@gnosis.pm/safe-apps-react-sdk"; import BigNumber from "bignumber.js"; import { ethers } from "ethers"; import { useCallback, useMemo } from "react"; import { erc1155Instance } from "../transfers/erc1155"; import { erc165I...
<gh_stars>0 import * as filepath from "path"; import * as fs from "fs"; import * as ejs from "ejs"; import { check, LexicaError, loadYaml } from "../util"; import { renderArticle } from "../markdown"; import * as yaml from "yaml"; type Author = { id: string; name: string; }; type Category = { type: string; sl...
<gh_stars>1-10 /** * Searches for devices */ import { ENS } from '../contracts' import { toHex, toAdr, toBytes32, verifyValidAddress, verifyValidBytes32, NULLADR } from '../utils/eth' import config from './config' import web3 from './web3' import { BlockType, EventLog } from '../types/types.d' import Web3 from '../ty...
import React, { useReducer, useEffect, useState } from "react"; import { Button, Grid, makeStyles, TextField, Typography, } from "@material-ui/core"; import { ActionResult } from "../models/Action"; import { IBasePayload, IStringPayload } from "../models/IPayloads"; import { useNavigate } from "react-router-d...
let _ = require('lodash'); let async = require('async'); let geojson = require('geojson-utils'); import { ConfigParams } from 'pip-services3-commons-node'; import { IConfigurable } from 'pip-services3-commons-node'; import { IReferences } from 'pip-services3-commons-node'; import { Descriptor } from 'pip-services3-com...
<gh_stars>0 /* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OBJECT_IDENTIFIER, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { Label, _decode_Label, _encode_Label } from "../PKCS-15/Label.ta"; export { Label, _decode_Labe...
/** * Copyright (C) 2021 Alibaba Group Holding Limited * All rights reserved. */ import { StandardLayer } from '@polaris.gl/gsi' import { Color } from '@gs.i/utils-math' import { GLine, DefaultGLineConfig } from '@gs.i/frontend-gline' import { isDISPOSED } from '@gs.i/schema-scene' export const defaultGLineConfig ...
/** * @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...
<filename>src/commands/compare.ts import { SlashCommandBuilder } from '@discordjs/builders'; import { MessageEmbed, MessageAttachment, Message } from 'discord.js'; import { paginate, sqldb } from './../utils' import Canvas from 'canvas'; import { Card, Command, CustomCommandInteraction } from '../interfaces'; function...
<gh_stars>1-10 // import webpack from 'webpack' import { rollup, watch, RollupOptions, RollupBuild, RollupWatcher } from 'rollup' import * as path from 'path' import * as fs from 'fs' import * as copyDir from 'copy-dir' import * as rimraf from 'rimraf' import { ForkTsCheckerWebpackPlugin } from './' import { ...
<filename>src/app/components/table-data/table-data.component.ts import { HttpClient } from '@angular/common/http'; import { Component, ViewChild, AfterViewInit } from '@angular/core'; import { MatPaginator, MatSort, MatDialog, MatSnackBar } from '@angular/material'; import { merge, Observable, of as observableOf } from...
import { DocumentClient } from "aws-sdk/clients/dynamodb"; import { Key, KeyDefinition } from "./types"; import { AbstractFetcher } from "./AbstractFetcher"; type BatchGetItems<KD extends KeyDefinition> = { tableName: string; keys: Key<KD>[] }; type TransactGetItems<KD extends KeyDefinition> = { tableName: string; key...
import { Box, makeStyles, useTheme } from '@material-ui/core'; import moment from 'moment'; import React from 'react'; import { NoteItem } from '@slater-notes/core'; import { useStoreActions, useStoreState } from '../../../store/typedHooks'; import DefaultDialog from '../../../components/Dialogs/DefaultDialog'; import ...
import { mount, VueWrapper } from '@vue/test-utils'; import { ComponentPublicInstance, nextTick, ref } from 'vue'; import { getBodyElement } from '@coast/__tests__/utils/utils'; import Dialog from '../Dialog.vue'; import { openDialog } from './../openDialog'; jest.mock('../../style/iconfont/index.js'); const AXIOM = ...
<gh_stars>1-10 import { Binder, BinderWrapper } from "@ribajs/core"; import { concat } from "@ribajs/utils/src/type"; import { ALocalesService } from "../../services/locales-base.service"; // see star.binder.ts export interface BinderAttributeChangedEvent { detail: { name: string; oldValue: string; newVa...
<reponame>borjarus/oni import { IRasterizedGlyph } from "./IRasterizedGlyph" const backgroundColor = "black" const foregroundColor = "white" export interface IGlyphAtlasOptions { fontFamily: string fontSize: string fontWeight: number | string lineHeightInPixels: number linePaddingInPixels: number ...
import { BooleanInt, CrowdinApi, isOptionalNumber, PaginationOptions, PatchRequest, ResponseList, ResponseObject, } from '../core'; /** * Source strings are the text units for translation. Instead of modifying source files, you can manage source strings one by one. * * Use API to add, ed...
declare function __non_webpack_require__(fn: string) const fs = __non_webpack_require__('fs') import * as JSZip from 'jszip' import {Nes} from '../../src/nes/nes' import {INoiseChannel, IPulseChannel, PadValue, WaveType} from '../../src/nes/apu' import {Util} from '../../src/util/util' import {AudioManager} from '../...
<reponame>mikeplus64/solid-typefu-router5<gh_stars>10-100 import { State as R5RouteState, Router as Router5, Route } from "router5"; import { Unsubscribe } from "router5/dist/types/base"; import { Store } from "solid-js/store"; import { Any, Object, String, Union } from "ts-toolbelt"; export interface RouteState ex...
import { inject, Optional } from "aurelia-dependency-injection"; import { EventAggregator } from "aurelia-event-aggregator"; import { HttpClient, HttpResponseMessage } from "aurelia-http-client"; import { buildQueryString } from "aurelia-path"; import { Router, NavModel } from "aurelia-router"; import { TypeBinder } fr...
<filename>src/RequestHandler.ts import { HttpMethodTemplate, RequestTemplate } from "@triply/utils/lib/Routes"; import App from "./App"; import { TriplyDbJsError } from "./utils/Error"; import fetch from "cross-fetch"; import FormData from "form-data"; import debug from "debug"; const log = debug("triply:triplydb-js:ht...
/* This code is a derived code of react-rnd https://github.com/bokuweb/react-rnd . The license of react-rnd is as follows: The MIT License (MIT) Copyright (c) 2017 @bokuweb Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { useDispatch, useSelector } from "react-redux"; import { Button, Dropdown, Form, Icon, Input, Tab, Table } from "semantic-ui-react"; import Spinner from "../../../components/common/Spinner"; import NoResults from "../../../...
<gh_stars>0 import { Injectable } from '@nestjs/common'; import { Interval, NestSchedule } from 'nest-schedule'; import { PuppeteerService } from './puppeteer.service'; import RedisService from './redis.service'; import type { Page } from 'puppeteer'; @Injectable() export class DouyuService extends NestSchedule { pa...
<reponame>kkokosa/mirrorsharp import type { PartData, CompletionItemData, ChangeData } from '../ts/interfaces/protocol'; import mirrorsharp, { MirrorSharpOptions, MirrorSharpInstance } from '../ts/mirrorsharp'; import { Keyboard } from 'keysim'; jest.useFakeTimers(); (() => { // clean JSDOM between tests ...
<reponame>YujinAtMicrosoft/BotFramework-Composer // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /* eslint-disable react-hooks/rules-of-hooks */ import { CallbackInterface, useRecoilCallback } from 'recoil'; import { CognitiveServicesManagementClient } from '@azure/arm-cognitiveservices'; im...
import { Injectable } from "@angular/core"; import { LocationStrategy } from "@angular/common"; import { routerLog } from "../trace"; import { Frame, NavigationTransition } from "tns-core-modules/ui/frame"; import { isPresent } from "../lang-facade"; export interface NavigationOptions { clearHistory?: boolean; ...
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // // @ts-nocheck import * as React from 'react'; import { useQuery } from 'react-query'; import { useErrorHandler, withErrorBoundary } from 'react-error-boundary'; import { useTable } from 'react-table'; import { useTranslation } from 'react-i18next'; i...
<filename>admin/e2e/ak-ReusableMethods.ts import { browser, element, by, protractor} from 'protractor'; let Obj_Rep = require('./ak-ObjectRepository.json'); //import { RavenErrorHandler } from '../src/app/app.module'; //let err: RavenErrorHandler = new RavenErrorHandler(); export class BaseTestWebAKAdmin { // This me...
<gh_stars>1-10 import { jsonMapper, Schema, TYPES } from '../../../mapper' export interface EventDate { date: string dateTime: string timezone: string } export interface EventUser { id: string email: string displayName: string self: boolean } export interface EventAttendee extends EventUser { o...
import { ApiClient, arrayToString, boundsToString, coordinatesToString, } from '../lib'; import type { ApiClientConfiguration, Transport } from '../lib'; import { Bounds, Coordinates } from './response.model'; export interface AutosuggestSuggestion { country: string; nearestPlace: string; words: string; ...
<filename>src/lsp/lsp.ts /** * Copyright (c) 2018 Red Hat, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v...
import React, { FocusEvent, RefObject } from "react"; import { Translation } from "react-i18next"; import "./MultiSelect.scss"; import MultiSelectOption from "./Option"; const VD = 300; export type OptionData<T> = {[key:string]:{name:string,value:T}}; export default class MultiSelect<T> extends React.Component<{text...
import { DirResult, FileResult, tmpdir, tmpName, tmpNameSync, dir, dirSync, file, fileSync, setGracefulCleanup, TmpNameOptions, FileOptions, FileOptionsDiscardFd, DirOptions, FileResultNoFd, FileCallback, FileCallbackNoFd, DirCallback, TmpNameC...
import { Component, Input, forwardRef, OnDestroy, EventEmitter, Output, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, AfterViewInit, OnChanges, SimpleChanges, NgZone, } from '@angular/core'; import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'; import { ScriptService...
<gh_stars>1-10 import { TemplateObject, html, css, StructureTemplate } from "genry"; import { kebabCase, camelCase, upperFirst } from "lodash"; enum ComponentPart { template, style, theme, } enum Part { service, module, pipe, component, index, } function createComponentTemplate( p...
import { IndexStatus, Commit, Stash } from '../stateObjects'; import { IConflictBlock, calculateBlocks } from '../../renderer/components/Merging/util/blocks'; import { Maybe, nothing, just } from '../../util/maybe'; import create from 'zustand/vanilla'; import createHook from 'zustand'; import { Middleware } from './ty...
<reponame>isabella232/ui5-migration<gh_stars>10-100 import * as ESTree from "estree"; import * as path from "path"; import * as recast from "recast"; import * as Mod from "../Migration"; import {Reporter, ReportLevel} from "../Migration"; import {AnalyzeCharacter, CodeStyleAnalyzer} from "./CodeStyleAnalyzer"; import...
import React, { useState, useEffect, ChangeEvent, FormEvent } from "react"; import { Map, TileLayer, Marker } from "react-leaflet"; import axios from "axios"; import { LeafletMouseEvent } from "leaflet"; import { Link } from "react-router-dom"; import { FiCheckCircle, FiArrowLeft } from "react-icons/fi"; import Header...
<filename>src/store/modules/tenant/index.ts import { Module } from "vuex"; import { TenantState, RootState } from "@/types/stateTypes"; import store from "@/store"; import { SubscriptionGetCurrentResponse } from "@/application/contracts/master/subscriptions/SubscriptionGetCurrentResponse"; import { SubscriptionCardDto ...
<gh_stars>1-10 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. import * as child_process from "child_process"; import * as Q from "q"; import * as os from "os"; import { window, WorkspaceConfiguration, workspace, Uri, co...
import preact from "preact" import {FieldValidation} from "../../utils/Validation" import {RichContent} from "../RichContent" import {FlatSecondaryButton} from "../buttons"; import popinContent from "../popin/PopinContent"; interface RichInputProps { id: string label: string name: string placeholder?: string ...
const TAG: string = 'corefunc/arcfetch.ts'; import { btoa } from 'abab'; import syslog from '../syslog/syslog'; import fetch, { Request } from 'node-fetch'; import { archash } from 'archash4all'; export interface ArcFetchHeaders { [key: string]: string; } export type ArcFetchRestUrl = string; export enum ArcFetchMe...
interface Memo { [key: number]: number } /** * Solves the tour and modifies memo with distance values for * subsets. * @param {number[][]} m * @param {Memo[]} memo * @param {number} S * @param {number} N */ const solveDynamic = (m: number[][], memo: Memo[], S: number, N: number): void => { // start from...
import iam = require('@aws-cdk/aws-iam'); import kinesis = require('@aws-cdk/aws-kinesis'); import { StartingPosition } from '@aws-cdk/aws-lambda'; import events = require('@aws-cdk/aws-lambda-event-sources'); import cdk = require('@aws-cdk/cdk'); import AWS = require('aws-sdk'); import uuid = require('uuid'); import {...
import { ApolloError, useLazyQuery } from '@apollo/client'; import React from 'react'; import { GetMessagesDocument, GetRoomMessagesFailureType, RoomEventSubscription, RoomMessageEventFragment, } from '@flocon-trpg/typed-document-node-v0.7.1'; import { AllRoomMessages, Message, RoomMessagesC...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *--------------------------------------------------------------...
<reponame>moritzmhmk/dicom.ts<gh_stars>10-100 /* eslint-disable no-bitwise */ // @ts-ignore import { convertBytes } from "@wearemothership/dicom-character-set"; import { Charset, DefaultCharset } from "./constants"; let crcTable: number[]; export const MAX_VALUE = 9007199254740991; export const MIN_VALUE = -900719925...
<filename>packages/engine/src/physics/behaviors/colliderCreateFunctions.ts import { PhysicsSystem } from '../systems/PhysicsSystem' import { CollisionGroups, DefaultCollisionMask } from '../enums/CollisionGroups' import { ShapeType, SHAPES, Body, BodyType } from 'three-physx' import { Entity } from '../../ecs/classes/E...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ri...
import React, { FC, useState } from 'react'; import { Grid, Button, Typography, TextField, CircularProgress, } from '@material-ui/core'; import { CheckCircle, AlertCircle } from 'react-feather'; import { makeStyles } from '@material-ui/core/styles'; import { BigNumber, constants } from 'ethers'; import { Fu...
import React, { useEffect, useRef, useState, useContext, createContext } from 'react'; import { getPDFFactory, getPDFViewport, PDFFactory } from '../../readPdf'; import './RenderComic.css'; import { PDFPageProxy } from 'pdfjs-dist'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faChevronRigh...
<reponame>Vreath-core/vreath-cli<filename>test/setup.ts import * as vr from 'vreath' import {promisify} from 'util' import bigInt from 'big-integer' import * as fs from 'fs' import * as path from 'path' import {peer_info, chain_info} from '../logic/data' import {DBSet, make_db_obj} from './common' const PeerId = requir...
import { Component, Input, Output, EventEmitter } from '@angular/core' import { Validators, FormBuilder } from '@angular/forms' import { StorefrontsService } from '../storefronts.service' import { ApiClient } from '@ordercloud/angular-sdk' import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons' import { ...
import * as _ from 'lodash'; import MenuItem from 'material-ui/MenuItem'; import * as React from 'react'; import { Link as ScrollLink } from 'react-scroll'; import { VersionDropDown } from 'ts/pages/shared/version_drop_down'; import { MenuSubsectionsBySection, Styles } from 'ts/types'; import { colors } from 'ts/utils/...
import entries from './bp-registry/sequences.json'; import { BreachProtocolRawData, DaemonsRawData } from './common'; import { FocusDaemonSequenceCompareStrategy } from './compare-strategy'; import { Daemon, findOverlap, generateSequences, parseDaemons, Sequence, } from './sequence'; interface SequenceEntry ...
'use strict'; import _ = require('lodash'); import RequestType = require('./data/request-type'); import IAppHandlers = require('./interfaces/iapp-handlers'); import IOutputSpeech = require('./interfaces/ioutputspeech'); import IResponse = require('./interfaces/iresponse'); /** * Creates output speech object used for ...
<reponame>patrickliu-sa/braid-design-system import mapValues from 'lodash/mapValues'; import { style, styleMap, ClassRef } from 'sku/treat'; import { Theme } from 'treat/theme'; import basekick from './basekick'; import { getAccessibleVariant, isLight, mapToStyleProperty } from '../../utils'; import { TextBreakpoint } ...
<reponame>zebulonj/teraslice import { promisify } from 'util'; import isPlainObject from 'is-plain-object'; import cloneDeep from 'lodash.clonedeep'; import kindOf from 'kind-of'; /** A simplified implemation of lodash isString */ export function isString(val: any): val is string { return typeof val === 'string' ?...
import { v4 as uuid } from "uuid"; import { opponent, Player, ProjectileState, WeaponType, } from "../shared/protocol"; import { systemAttributes } from "../shared/systems"; import { DeepWritable, sendStateToWindow, state, updateUnusedEnergy, } from "./state"; let intervalId: number | null = null; exp...
/* eslint-disable require-jsdoc */ import { GLProvider, compileProgram } from "parsegraph-compileprogram"; import Color from "parsegraph-color"; import { Matrix4x4 } from "parsegraph-matrix"; import alphaWeetPainterVertexShader from "./WeetPainter_VertexShader.glsl"; import alphaWeetPainterFragmentShader from "./WeetPa...
// Copyright PrimeObjects Software Inc. and other contributors <https://www.primeobjects.com/> // // This source code is licensed under the MIT license. // The detail information can be found in the LICENSE file in the root directory of this source tree. export { getServerSidePropsForPage } from './pages/serv...
import React, { useState } from 'react' import { Button, Checkbox, Input, message, Modal } from 'antd' import copy from 'copy-to-clipboard' import produce from 'immer' import classNames from 'classnames' import { Handler } from '../../reducers/@domain' import './Table.scss' interface BaseRow { id: number } export i...
import { Accessibility, listItemBehavior, ListItemBehaviorProps } from '@fluentui/accessibility'; import { ComponentWithAs, getElementType, useUnhandledProps, useAccessibility, useFluentContext, useStyles, useTelemetry, useContextSelectors, } from '@fluentui/react-bindings'; import cx from 'classnames';...
import { Provider, Signer } from "koilib/lib/browser"; import { CallContractOperationJson, TransactionJson, BlockJson, } from "koilib/lib/interface"; import { Messenger, Sender } from "./Messenger"; import * as storage from "./storage"; const EXPIRATION_ID = 30 * 60 * 1000; // 30 minutes let tabIdRequester: num...
import { html, TemplateResult } from 'lit'; import { live } from 'lit/directives/live.js'; import { emit } from '~/internal/event'; import { isArray } from '~/utilities/common'; import SlCheckbox from '../checkbox/checkbox'; import SlColumn from '../column/column'; import { iteratorNodeData, TreeNodeData } from '../tre...