text
stringlengths
3.08k
15.5k
import type { TextDocument } from 'vscode-languageserver-textdocument'; import * as vscode from 'vscode-languageserver-protocol'; import * as shared from '@volar/shared'; import * as ts2 from '@volar/typescript-language-service'; import type * as ts from 'typescript/lib/tsserverlibrary'; import { hyphenate } from '@vue...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
<gh_stars>10-100 // Copyright (c) 2017 VMware, 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 r...
/* tslint:disable */ import { AnimationClassNames } from 'office-ui-fabric-react/lib/Styling'; import * as React from 'react'; import { ICustomNavLinkGroup, INavProps, INavState, INavLink, INavStyleProps, INavStyles, NavGroupType } from './Nav.types'; import { getStyles } from './Nav.styles'; import { Nav...
<gh_stars>10-100 /** * @license * * Copyright IBM Corp. 2020, 2021 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import '../index'; import { html } from 'lit-element'; import ifNonNull from 'carbon-web-components/es/global...
import { Location } from '@angular/common'; import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; import * as jQuery from 'jquery'; import { filter } from 'rxjs/operators'; import { RouteGuardService } from '../../guard/route-...
import { Instance } from '@src/Instance'; import { Module } from '@src/Module'; import { PlayerError } from '@src/PlayerError'; import { Events, StateChangeEventData } from '@src/types'; import { AdBreakType } from '@src/types'; import produce from 'immer'; import find from 'lodash/find'; interface State { ready: bo...
import { Component, TemplateFunction, ScopeBase } from "@ribajs/core"; import { EventDispatcher } from "@ribajs/events"; import { isNumber, justDigits } from "@ribajs/utils/src/type.js"; import { getUID } from "@ribajs/utils/src/dom.js"; import template from "./leaflet-map.component.html"; import * as Leaflet from "lea...
import { IGif } from 'f-giphy-pfft-js-types' import { getGifHeight } from 'f-giphy-pfft-js-util' import React, { useCallback, useEffect, useRef } from 'react' import getBestMedia from './rendition-selection' import { getErrorMessage, shouldFireQuartile } from './util' export type QuartileEvent = 0.25 | 0.5 | 0.75 cons...
/* * Copyright 2017-2018 Allegro.pl * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
import CoreParser from '@bodymovin-parser/compiler-core'; import HTMLParser from './html/html-parser'; import CSSParser from './css/css-parser'; import TreeBuilder from './TreeBuilder'; import { isBase64 } from './utils/utils'; interface IAnimeConfig { mode: 'linear' | 'ease' | 'auto' | 'steps(1)'; iterationC...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import * as React from "react"; import { storiesOf } from "@storybook/react"; import { withKnobs } from '@storybook/addon-knobs'; import { FakeApp } from './fake-app'; import { LegendContainer } from '../containers/legend'; import { TaskPaneContainer } from '../containers/task-pane'; import { ScaleDisplayContainer } fr...
import { ZWaveError, ZWaveErrorCodes } from "@zwave-js/core"; import { getErrorMessage } from "@zwave-js/shared"; import { isArray, isObject } from "alcalzone-shared/typeguards"; import * as fs from "fs-extra"; import JSON5 from "json5"; import * as path from "path"; const IMPORT_KEY = "$import"; const importSpecifier...
import { exists } from './Utils' import { v4 as uuid } from 'uuid' import { isString } from 'lodash' const GA_HOST = 'https://www.google-analytics.com' type UUID = string type RequestObject = { method?: string body?: string headers?: Record<string, string> } type EventOptions = { clientId?: UUID label?: s...
import { Entity, EntityId, EntityType, Pointer } from 'dcl-catalyst-commons' import LRU from 'lru-cache' import { EnvironmentConfig } from '../Environment' import { mapDeploymentsToEntities } from '../logic/deployments' import { getDeployments } from '../service/deployments/deployments' import { AppComponents } from '....
import { useEffect, useState } from "react"; import * as anchor from "@project-serum/anchor"; import { awaitTransactionSignatureConfirmation, CandyMachine, getCandyMachineState, mintMultipleToken, mintOneToken, } from "../utils/candyMachine"; import toast from "react-hot-toast"; import { useWallet } from "@so...
// GuestForm ----------------------------------------------------------------- // Detail editing form for Guest objects. // NOTE - style classes: text-left, text-right // External Modules ---------------------------------------------------------- import React, {useContext, useState} from "react"; import Button from...
/*! * @license * Copyright 2019 Alfresco Software, 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 required by app...
<reponame>cestcedric/mock-data-gen<filename>src/lib/mock-data-gen-arb.ts import * as fc from 'fast-check'; import { Arbitrary } from 'fast-check'; import * as t from 'io-ts'; import * as _ from 'lodash'; import * as r from 'random-seed'; import { assertDefined } from '../types/requireDefined'; import { randomUUID } f...
// Libs import { useEffect, useState } from 'react'; import { useFormik } from 'formik'; import { useQuery } from 'react-query-service'; // Components import { Button, Card, Checkbox, Col, Divider, Form, Input, notification, Row, Switch } from 'antd'; // Config import validationSchema from './validation.schema'; // ...
import { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core'; import { FormGroup, FormBuilder, Validators, AbstractControl, FormArray, FormControl, ValidatorFn } from '@angular/forms'; import { Router, ActivatedRoute } from '@angular/router'; import { Patient } from '../patient'...
import { WETH_CONTRACT_ADDRESS } from "config"; import { computeUniswapPairAddress, getIndexedUrl, getUniswapUrl, sendQuery, } from "helpers"; import { createAsyncThunk } from "@reduxjs/toolkit"; import type { IndexPool, Swap as PoolSwap } from "indexed-types"; import type { NormalizedIndexPoolTransactions } fr...
<reponame>jeremyschlatter/augur<gh_stars>0 import { useReducer } from 'react'; import { MARKETS_ACTIONS, MOCK_MARKETS_STATE, DEFAULT_MARKETS_STATE, } from 'modules/markets/store/constants'; import immutableDelete from 'immutable-delete'; import { Betslip } from 'modules/trading/store/betslip'; import { createBigN...
<reponame>allaboutapps/aaa-backend-stack import * as _ from "lodash"; import logger from "@aaa-backend-stack/logger"; import { BASE as Base } from "@aaa-backend-stack/rest"; import * as serverdate from "@aaa-backend-stack/serverdate"; import storage, { IInstances } from "@aaa-backend-stack/storage"; import { ZXCVBN } ...
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import { IMessageBus } from "./messageBus"; import { IRequestIdGenerator } from "./requestIdGenerator"; import { Document } from "./document"; im...
<filename>src/payment/strategies/braintree/braintree.ts import { GooglePaymentData, GooglePayCreator, TokenizePayload } from '../googlepay'; import { GooglePayBraintreeDataRequest, GooglePayBraintreePaymentDataRequestV1 } from '../googlepay/googlepay-braintree'; import { PaypalAuthorizeData, PaypalSDK } from '../paypal...
<gh_stars>0 import {GenerateCreepBodyOptions} from 'spawn-system/bodyTypes'; import {declareOrphan} from 'spawn-system/orphans'; export interface MissionMemory { creeps: string[]; nextCreep?: string; spawnSource?: string; } /** * Abstract Mission class from which all Misions are derived. * * Missions in gene...
<gh_stars>0 import { JSONSchema7, JSONSchema7Definition } from "json-schema"; import has from "lodash/has"; import get from "lodash/get"; import omit from "lodash/omit"; import isPlainObject from "lodash/isPlainObject"; import Yup from "../addMethods/"; import { getProperties, isSchemaObject } from "../../schema/"; imp...
import { sep, join } from "path" import { readFileSync } from "fs" import { exec } from "@actions/exec" import * as core from "@actions/core" import { GitHub, context } from "@actions/github" import type { Octokit } from "@octokit/rest" import flatMap from "lodash/flatMap" import filter from "lodash/filter" import map ...
import {ReglWrapper} from "./regl_wrap" import {cap_lookup, hatch_pattern_to_index, join_lookup} from "./webgl_utils" import {LineCap, LineJoin} from "core/enums" import {HatchPattern} from "core/property_mixins" import {uint32} from "core/types" import {Uniform} from "core/uniforms" import {color2rgba} from "core/util...
<reponame>L3bowski/webjack-shared import { DecisionsSetGetter, IDecisionsSet, IHandDecisionsData, INumberDictionary, IOptimalDecision } from '../types/basic-strategy'; import { IHand } from '../types/hand'; import { PlayerActions } from '../types/player-actions'; const nNumbers = (n: number) => ...
import { listen } from './dom'; import { isFunction, isUndefined, noop } from './unit'; export type WebKitPresentationMode = | 'picture-in-picture' | 'inline' | 'fullscreen'; declare global { interface Document { readonly pictureInPictureEnabled?: boolean; } interface Window { readonly safari?: b...
import React, { useMemo } from "react"; import Switch from "antd/lib/switch"; import Form from "antd/lib/form"; import Button from "antd/lib/button"; import Row from "antd/lib/row"; import notification from "antd/lib/notification"; import Typography from "antd/lib/typography"; import Col from "antd/lib/col"; import Tab...
<filename>desktop/scripts/start-flipper-server.ts /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ const dotenv = require('dotenv').config(); import child from 'chil...
<filename>src/languageservice/yamlLanguageService.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Red Hat, Inc. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in t...
/* eslint-disable max-len */ import React from 'react'; import { makeStyles, Grid, Container, Card, CardContent, Typography, } from '@material-ui/core'; import DateFnsUtils from '@date-io/date-fns'; import { MuiPickersUtilsProvider, KeyboardDatePicker, } from '@material-ui/pickers'; import { HumanizeDuratio...
import commands from '../../commands'; import GlobalOptions from '../../../../GlobalOptions'; import { CommandOption, CommandValidate } from '../../../../Command'; import Utils from '../../../../Utils'; import AadCommand from '../../../base/AadCommand'; import request from '../../../../request'; import { AppRoleAss...
import { readFile, readDir, getExtensionConfig, isValidModule, isTestFile, removeFilePaths, removeLocalFiles, removeBuiltInModules, LogHelper, } from './utils'; import * as vscode from 'vscode'; const detective = require('detective'); const es6detective = require('detective-es6'); im...
<gh_stars>0 /* * Copyright 2019 NEM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
<reponame>idoros/playwright<filename>src/server/webkit.ts /** * Copyright 2017 Google Inc. All rights reserved. * Modifications copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
import * as React from 'react'; import { Table, Tabs, PageHeader, Descriptions, Divider, Spin, Icon, Tooltip } from 'component/antd'; import { ILabelValue, ITopic, IAppItem, IConnectionInfo } from 'types/base-type'; import urlQuery from 'store/url-query'; import { tableFilter } from 'lib/utils'; import { app } from 'st...
<gh_stars>0 import styled from "styled-components"; export const StyledGrid = styled.div` display: grid; align-items: center; padding-left: ${({ theme }) => theme.space[0]}; grid-template-columns: auto auto auto; width: fit-content; grid-template-rows: auto; grid-auto-flow: row; padding-bottom: ${({ th...
<gh_stars>100-1000 import type { IQService } from 'angular'; import { module } from 'angular'; import _ from 'lodash'; import type { IInstanceType, IInstanceTypeCategory, IInstanceTypesByRegion, IPreferredInstanceType, } from '@spinnaker/core'; import { REST } from '@spinnaker/core'; import { categories, defa...
// Axios configuration import type { AxiosResponse } from 'axios' import type { RequestOptions, RequestResult } from '@suiji/types' import { clone, deepMerge, isFunction, isString, setObjToUrlParams, } from '@suiji/utils' import { ContentTypeEnum, RequestEnum, ResultEnum } from '@suiji/tokens' import { useI18...
<reponame>enverus-cts/terraform-aws-github-runner import { EC2, SSM } from 'aws-sdk'; import { LogFields, logger as rootLogger } from '../logger'; import ScaleError from './../scale-runners/ScaleError'; const logger = rootLogger.getChildLogger({ name: 'runners' }); export interface RunnerList { instanceId: string;...
<filename>node_modules/vega-embed/node_modules/vega-lite/src/compile/mark/init.ts import {Config} from '../../config'; import {Encoding, isAggregate} from '../../encoding'; import {FieldDef, isContinuous, isFieldDef} from '../../fielddef'; import * as log from '../../log'; import {AREA, BAR, CIRCLE, isMarkDef, LINE, M...
<reponame>twem007/p1 import fs = require('fs'); import xlsx = require('node-xlsx'); const argv = require('yargs').argv; let xlsxPath: string = argv.xlsxPath || process.cwd(); let os: string = argv.os || 'windows'; let outPath: string = null; if (os == 'mac') { outPath = `${xlsxPath}/outFile`; } else { outPath...
import { createStyles, withStyles, } from '@material-ui/core'; import * as React from 'react'; import { connect } from 'react-redux'; import FormDesignerActionDispatchers from '../actions/formDesignerActions/formDesignerActionDispatcher'; import { EditContainer } from '../containers/EditContainer'; import { makeGetLa...
<gh_stars>0 /** * Copyright (c) 2018-2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { Vec3 } from '../../../../../mol-math/linear-algebra'; import { NumberArray } from '../../../../../mol-util/type-helpers'; import { lerp } from '../../../../../mo...
import {AxiosPromise} from 'axios' import { deleteReposOwnerRepoIssuesCommentsId, getReposOwnerRepoIssuesCommentsId, getReposOwnerRepoIssuesNumber, getReposOwnerRepoIssuesNumberComments, getSearchIssues, patchReposOwnerRepoIssuesCommentsId, postReposOwnerIssues, postReposOwnerRepoIssuesNumberComments, }...
import React from 'react'; import { API } from 'core/api/ApiService'; import { IStageConfigProps, StageConfigField } from '../common'; import { Observable } from 'rxjs'; import Select from 'react-select'; interface IArgOptions { value?: string; } interface IState { isFetchingData: boolean; commands?: any[]; ...
import { BaseMetadataStore, DefaultMetadataStore, ClassMetadata, PropertyMetadata, } from './metadata'; import { Class } from './common/typings'; import faker from 'faker'; import chalk from 'chalk'; import { FactoryLogger } from './FactoryLogger'; //import { ClassValidatorAdapter } from './ClassValidatorAdapte...
<gh_stars>1-10 import * as _ from "lodash"; import HonestNode from "../pbft-constant-leader/HonestNode"; import BaseEvent from "../../simulation/BaseEvent"; import MessageEvent from "../../simulation/events/MessageEvent"; import TimeoutEvent from "../../simulation/events/TimeoutEvent"; import NodeStartEvent from "../.....
<gh_stars>10-100 import { action, computed, observable, makeObservable, runInAction } from 'mobx' import { AuthStore } from './AuthStore' import { EditorStore } from './EditorStore' import { ToastStore } from './ToastStore' import { getDocuments, createDocument, updateDocument, deleteDocument } from '../document-api' ...
<reponame>D10221/xstore<filename>src/SqliteStorage.ts import * as _ from 'underscore'; import * as path from 'path'; import {SerializeMap, ToMap, FromMap} from "./map_encoder"; import * as sqlite from 'sqlite3'; import {Lazy} from "./lazy"; import {Database} from "sqlite3"; import {ObservableBase} from "./DisposableBas...
/** * Copyright 2020, Yahoo Holdings Inc. * Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. */ import { readOnly } from '@ember/object/computed'; import Component from '@glimmer/component'; import { computed, action } from '@ember/object'; import { isPresent } from '@ember/u...
import { Animated, StyleProp, TextStyle, ViewStyle } from 'react-native'; import { SafeAreaView, NavigationRoute, NavigationDescriptor, NavigationAction, NavigationState, NavigationParams, NavigationScreenProp, NavigationNavigateAction, NavigationEventCallback, NavigationEventSubscription, Navigat...
<reponame>MaryGao/autorest.typescript<gh_stars>0 import { CodeModel, HttpHeader, Operation, Response, SchemaContext, SchemaResponse } from "@autorest/codemodel"; import { getResponseTypeName, getStatusCode, responseToSchemaResponse } from "./operationHelpers"; import { InterfaceDeclarationStructure,...
<filename>src/types.ts import { Theme, ThemeOptions } from '@material-ui/core/styles'; import { Language } from 'prism-react-renderer'; // Basic Components interface Table_RowsCommonProps { collapseContents?: string[]; transformValue?: (header: string, content: any) => string; headers: string[]; title?: strin...
<gh_stars>1-10 import { AxiosRequestConfig, AxiosResponse } from 'axios'; import { AzureAdUser, JwtKey, JwtPayload } from '../models'; import { Controller, ExecutionContext, Get, HttpService, Injectable, Module, SetMetadata, } from '@nestjs/common'; import { Observable, Observer } from 'rxjs'; import { Te...
<filename>components/table/src/addon/filter.component.ts /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter,...
/** @module @twilio-labs/serverless-api/dist/utils/fs */ import debug from 'debug'; import fs from 'fs'; import path, { extname } from 'path'; import { toUnix } from 'upath'; import recursiveReadDir from 'recursive-readdir'; import { promisify } from 'util'; import { AccessOptions, DirectoryContent, FileInfo, ...
import * as React from 'react' import styled from 'styled-components' import { TypographyInputTitle } from 'src/common-ui/components/design-library/typography' import { FullPage } from 'src/common-ui/components/design-library/FullPage' import { InputTextField } from 'src/common-ui/components/design-library/form/InputT...
<filename>packages/fs-kernels/src/spawnteract.ts /** * This module contains methods that allow you to launch ("spawn") Jupyter * kernels. You can spawn kernels either by name, by a `kernelSpec` or * by a `kernelSpec` and its connection information. * * Usage example: * ```js * // Spawn a kernel by name * var s...
import React from 'react' import styled from 'styled-components' import ShareAnnotationMenu from './components/ShareAnnotationMenu' import delay from 'src/util/delay' import { annotations as annotationsBG, contentSharing, } from 'src/util/remote-functions-background' import { executeReactStateUITask } from 'sr...
import { keyframes } from "goober"; import React, { useCallback } from "react"; import { ToastKind } from ".."; import { useToastful } from "../hooks/use-toastful"; import { iconPaths } from "../icon-paths"; import { Toast } from "../types"; import { resolveToastOutput } from "../utils"; const enterKeyframes = (factor...
<reponame>nithinrdy/oppia<gh_stars>0 // Copyright 2016 The Oppia Authors. 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/LI...
import { Player as PlayerType, Resolvers, Room as RoomType, User as UserType, } from './types'; import Deck from 'data/deck'; import Player from 'data/player'; import Room from 'data/room'; import User from 'data/user'; import { sendMessage } from 'services/socket'; const shuffle = (array: Array<...
<reponame>arodic/components<filename>src/core/io-element.test.ts import {Change, IoNode, RegisterIoNode, IoElement, RegisterIoElement} from '../iogui.js'; class TestNode extends IoNode { static get Properties(): any { return { prop0: String, prop2: Infinity, }; } } RegisterIoNode(TestNode); ex...
import React, { useEffect, useState } from "react"; import useSelectedExchange from "hooks/useSelectedExchange"; import tradeApi from "../../services/tradeApiClient"; import { useDispatch } from "react-redux"; import { showSuccessAlert, showErrorAlert } from "../../store/actions/ui"; import { Typography, Box, CircularP...
import * as React from 'react'; import * as Tone from 'tone'; import { DynamicMix } from '../../models/DynamicMix'; import { PartId } from '../../models/PartId'; import PlayerUI from './PlayerUI'; import VolumeUI from './VolumeUI'; interface VolumeLevels { vocals: number; accomp: number; drums: number; bass: n...
<gh_stars>0 import { bytesEqual, encodeBigInt, toHex } from '@rigidity/bls-signatures'; import { applyAtom, consAtom, quoteAtom } from '../constants/atoms'; import { keywords } from '../constants/keywords'; import { BetterSet } from '../types/BetterSet'; import { NodePath } from '../types/NodePath'; import { Program, P...
import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter, OnInit, TemplateRef, OnChanges, SimpleChanges, ContentChild, forwardRef, ChangeDetectorRef } from '@angular/core'; import {NgbRatingConfig} from './rating-config'; import {getValueInRange} from '../util/util'; import {Key}...
<filename>src/languages/common/CommonEditorMode.ts import { PanTypePart } from "../CommonASTNode"; import { CommonLocalizedStrings } from "./CommonLocalizedStrings"; export const enum ModeState { Base, Text, TextInterpolation, Comment, } export interface IEditorModeState { modeState: ModeState; quote?: st...
<filename>packages/core/src/script/zhs/work.ts import { domSearch, sleep, StringUtils, waitForRecognize } from '../../core/utils'; import { OCSWorker } from '../../core/worker'; import { defaultAnswerWrapperHandler } from '../../core/worker/answer.wrapper.handler'; import { logger } from '../../logger'; import { me...
import { Injectable } from '@nestjs/common'; import { SocketService } from '../socket/socket.service'; import { GLOBAL_BLK_LK } from 'src/config/blockLockConfig'; import { ProcesMessageService } from '../proces-message/proces-message.service'; import { Msgpack5Service } from '../msgpack5/msgpack5.service'; const file =...
import { Path } from '@angular-devkit/core'; import { apply, applyTemplates, chain, mergeWith, move, noop, Rule, SchematicContext, SchematicsException, Tree, url, } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; import { addImportToM...
<reponame>Mathews2115/TeslondaDash import { Component, ElementRef, AfterViewInit, ViewChild } from '@angular/core'; import { Element } from '@angular/compiler'; // HSR data import { HSRComm } from '../../../hsr-drive/comm.service'; import { HSR_CAN_IDS } from '../../../hsr-drive/hsr-data/base-hsr'; import { TorquePowe...
export var markupTests = []; export function registerMarkupTest(t) { markupTests.push(t); } export function registerMarkupTests(tests) { tests.forEach(t => markupTests.push(t)); } function format(html) { var tab = "\t"; var result = ""; var indent = ""; html.split(/>\s*</).forEach(function (element) { ...
import './styles.module.scss'; import Page from 'components/Page'; import { withErrorPage } from 'lib/client/errors'; import withStatusCode from 'lib/server/withStatusCode'; import Section from 'components/Section'; import { Perm } from 'lib/client/perms'; import { permToGetUserInPage } from 'lib/server/users/permToGet...
<filename>grpc/clients/js/generated/oracles/v1/oracle_spec_pb.d.ts // package: oracles.v1 // file: oracles/v1/oracle_spec.proto import * as jspb from "google-protobuf"; export class OracleSpecConfiguration extends jspb.Message { clearPubKeysList(): void; getPubKeysList(): Array<string>; setPubKeysList(value: Ar...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import * as VegaDeckGl from './vega-deck.gl'; import PolygonLayer, { PolygonLayerDatum } from '@deck.gl/layers/polygon-layer/polygon-layer'; import { AxisSelectionType, Column, SpecCapabilities, SpecColumns }...
/* eslint-disable @typescript-eslint/no-unused-vars */ import Koa from "koa" import Router from "koa-router" import bodyParser from "koa-bodyparser" import websocket from "koa-easy-ws" import cors from "@koa/cors" import WebSocket from "ws" import { PongWS, filterPingPongMessages } from "@cs125/pingpongws" import {...
<reponame>toldsoftware/told-you-it-was-down<gh_stars>0 import fetch from 'node-fetch'; import * as path from 'path'; import * as fsRaw from 'fs'; import * as util from 'util'; export const fs = { appendFile: util.promisify(fsRaw.appendFile), }; const TIMEOUT = 10000; const TIME_WARN = 1000; const KBPS_WARN = 1000;...
import { Transaction, EditorState, NodeSelection } from 'prosemirror-state'; import { pluginKey } from './main'; import { CardPluginState, Request, CardAppearance, CardReplacementInputMethod, } from '../types'; import { resolveCard, queueCards } from './actions'; import { appearanceForNodeType } from '../utils...
<gh_stars>0 import request from '../../../../request'; import commands from '../../commands'; import GlobalOptions from '../../../../GlobalOptions'; import { CommandOption, CommandValidate } from '../../../../Command'; import SpoCommand from '../../../base/SpoCommand'; import Utils from '../../../../Utils'; import ...
import * as d3 from "d3"; import {Branch, TreeData} from './tree-data-builder'; import {ColorMode, OpacityMode, SunburstRendererColor} from './sunburst-renderer-color'; import {HierarchyRectangularNode} from 'd3'; interface Rectangle { x0: number; y0: number; x1: number; y1: number; data: Branch; }...
import * as util from '../../../../../newgen/utils'; const constructAuthTokenUrlSpy = jest.spyOn(util, 'constructAuthTokenUrl'); import * as React from 'react'; import { mount } from 'enzyme'; import Button from '@atlaskit/button'; import { Auth, ProcessedFileState } from '@atlaskit/media-core'; import Spinner from '@...
<filename>src/server/documentation/raw/WikiReader.ts import fetch from "../../utils/fetch"; import { SymbolData } from "../../features/apiExplorer/Handler"; import Project from "../../projects/Project"; import printSymbolType from "../../projects/story/utils/printSymbolType"; const wikiUrl = "https://docs.larian.game"...
<reponame>Toucan-Sam/jfa-go<filename>ts/admin.ts import { toggleTheme, loadTheme } from "./modules/theme.js"; import { lang, LangFile, loadLangSelector } from "./modules/lang.js"; import { Modal } from "./modules/modal.js"; import { Tabs } from "./modules/tabs.js"; import { inviteList, createInvite } from "./modules/in...
import * as yaml from "js-yaml"; import { ThunkAction } from "redux-thunk"; import { ActionType, createAction } from "typesafe-actions"; import { AppRepository } from "../shared/AppRepository"; import Chart from "../shared/Chart"; import Secret from "../shared/Secret"; import { errorChart } from "./charts"; import { I...
import { EntityStatus, EntityClass, UserRole, UserRoleMode, EntityExtension, } from "@shared/enums"; import { IEntity, IOption } from "@shared/types"; import api from "api"; import { EntitySuggestionI, Suggester } from "components/Suggester/Suggester"; import { CEntity, CStatement, CTerritoryActant } from "co...
import React, { useState } from 'react'; import { useMulti } from '../../lib/crud/withMulti'; import { taggingNameCapitalSetting, taggingNameIsSet, taggingNamePluralCapitalSetting } from '../../lib/instanceSettings'; import { QueryLink } from '../../lib/reactRouterWrapper'; import { useLocation } from '../../lib/routeU...
import React from "react"; import styled from "styled-components"; import capitalize from "lodash/capitalize"; import kebabCase from "lodash/kebabCase"; import { TechTree } from "../../sources/wiki/data/techs"; import { namesForWiki } from "../../scripts/util"; import SuspenseImage from "./SuspenseImage"; type Buildi...
<gh_stars>1-10 /* * 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 { get } from 'lodash'; import { XPackMainPlugin } from ...
<gh_stars>10-100 import * as http from 'http'; import * as request from 'request-promise'; import { URL } from 'url'; import * as WS from 'ws'; import { readJSON, sendData } from './ipc'; import { delay, getWsProtocol } from './spotUtil'; function getWindowSize() { const stdout: any = process.stdout; const wi...
export declare const root = "root_daf01a6e"; export declare const picker = "picker_daf01a6e"; export declare const holder = "holder_daf01a6e"; export declare const pickerIsOpened = "pickerIsOpened_daf01a6e"; export declare const frame = "frame_daf01a6e"; export declare const wrap = "wrap_daf01a6e"; export declare const...
import { Directive, DoCheck, ElementRef, Inject, Injector, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, Component } from '@angular/core'; import { UpgradeComponent } from '@angular/upgrade/static'; import { QuizExercise } from '../../entities/quiz-exercise/quiz-exercise.model'; import 'angular'; import * as mome...
import puppeteer from 'puppeteer-core'; import locateChrome from 'locate-chrome'; import fs from 'fs'; import crypto from 'crypto'; import { promisify } from 'util'; import Article from './article'; import Group from './group'; import Project from './project'; class QiitaTeam { public domain = ''; public dir = '';...