text
stringlengths
3.08k
15.5k
import * as path from 'path'; import * as vscode from 'vscode'; const cats = { 'Coding Cat': 'https://media.giphy.com/media/JIX9t2j0ZTN9S/giphy.gif', 'Compiling Cat': 'https://media.giphy.com/media/mlvseq9yvZhba/giphy.gif', 'Testing Cat': 'https://media.giphy.com/media/3oriO0OEd9QIDdllqo/giphy.gif' }; /** * Manag...
import warning from 'tiny-warning'; import invariant from 'tiny-invariant'; import { useCallback, useEffect } from 'react'; import { SWRConfiguration } from 'swr'; import { CHAINS } from '@lido-sdk/constants'; import { BaseProvider, JsonRpcProvider, Web3Provider, } from '@ethersproject/providers'; import { BigNum...
import {Finder, React, Modules, classNames} from "dium"; const {Flex, Button, Text, Switch, SwitchItem, TextInput, Slider} = Modules; const {FormSection, FormTitle, FormItem, FormText, FormDivider} = Modules.Form; const SingleSelect = Finder.byName("SingleSelect"); const {margins} = Modules; export const settings = ...
<reponame>tonlabs/dapp-services-ranger import { aql, Database } from "arangojs"; import { Config } from "arangojs/connection"; export class BmtDb { readonly config: Config; readonly arango_db: Database; summary: DbSummary; private constructor(config: Config) { this.config = config; thi...
import * as style from './style/style.scss'; interface MenuItem { id:string; label:string; callback: Function; } interface MenuEventDetail { items:MenuItem[], relativeElement:HTMLElement, options: MenuOptions, } interface MenuStateInterface { isShowing:boolean; mouseX: number; mouseY...
import * as fs from 'fs'; import * as path from 'path'; const ncu = require('npm-check-updates'); import * as semver from 'semver'; import * as yargs from 'yargs'; import { loadFrameworkVersionInformation, determineInstalledVersions, FrameworkVersionInformation, FrameworkVersionInformationStatic, FrameworkVer...
import React from 'react' import { Menu, Layout, Empty, Switch, Tooltip } from 'antd'; import { Link, withRouter, RouteComponentProps } from 'react-router-dom' import { SAGA_GETMENUTREE } from '@/redux/constants/sagaType' import { connect } from 'react-redux'; import { Dispatch } from 'redux'; import { menuAccessType, ...
<filename>src/app/core/services/UnqualifiedLeads.service.ts import { Injectable } from '@angular/core'; import { JsonApiService } from './json-api.service'; import { Observable, of } from 'rxjs'; import { Router } from '@angular/router'; import { UnqualifiedLeads } from '../models/UnqualifiedLeads.model'; import { Api...
<reponame>IgniteUI/igniteui-live-editing-samples /* eslint-disable no-shadow */ /* eslint-disable @typescript-eslint/naming-convention */ import { ChangeDetectorRef, Component, ElementRef, OnInit, Renderer2, ViewChild } from '@angular/core'; import { IDropBaseEventArgs, IDropDroppedEventArgs } from 'igniteui-angular'; ...
/** * @module DynamoDb */ import pMap from 'p-map'; import pRetry from 'p-retry'; import range from 'lodash/range'; import { DocumentClient } from 'aws-sdk/lib/dynamodb/document_client'; import { RecordDoesNotExist } from '@cumulus/errors'; import { dynamodb, dynamodbDocClient } from './services'; import { improveS...
/* functions: every function is a single-value collection of pairs input = domain output = range 1) Total 2) Deterministic 3) No Observable Side-Effects */ /** * 1) Total * a fn is `total` if for every input there is a corresponding output */ function incNotTot(i: number): 1 | 2 | 3 | undefined { i...
import * as React from "react"; import { createContext, useEffect, useState } from "react"; import { checkEditMode, labkeyActionSelectWithPromise, } from "../../query/helpers"; import { ActionURL, Filter } from "@labkey/api"; import { ConfigProps, ContextProps, InfoProps, infoStates, RowObj, } from "../ty...
import React, { ReactElement, useState } from 'react'; import { Badge, Button, Card, CardActions, CardBody, CardHeader, CardTitle, Flex, FlexItem, Toolbar, ToolbarContent, ToolbarGroup, ToolbarItem, Tooltip, } from '@patternfly/react-core'; import { OutlinedQuesti...
<filename>src/lib/tube.service.ts import got from 'got'; import * as urllib from 'url'; import * as querystring from 'querystring'; /* * String#indexOf() that supports regex too. */ const indexOf = (haystack: any, needle: any) => { return needle instanceof RegExp ? haystack.search(needle) : haystack.indexOf(nee...
import { BaseCommand, WorkspaceRequiredError } from '@yarnpkg/cli' import { CommandContext, Configuration, formatUtils, miscUtils, Project, Report, StreamReport, structUtils, Workspace, } from '@yarnpkg/core' import { Option } from 'clipanion' import { MiniCli } from 'clipanion/lib/advanced/Cli' impor...
import { CanvasRenderingContext2D, createCanvas } from 'canvas'; interface Option { size: { width: number; height: number; }; canvasStyle: { backgroundColor: string; border: { color: string; width: number; }; padding: { horizontal: number; betweenTitleAndBody: numb...
<reponame>sunrisemovement/hugo-sunrise-hub-website import { DATA, toDayOfWeek, toWeekOfYear, toDayOfYear, makeOffsetString, parseOffsetString, pad, signedpad, epochMSNS, DateTimeLike } from './Shared' import { Instant } from './Instant' import { OffsetDateTime } from './OffsetDateTime' import { CivilDate } from './Ci...
<reponame>Martingale-cloud/GoProf import { Component, OnDestroy } from "@angular/core"; import { ModalDialogParams } from "nativescript-angular/directives/dialogs"; import { Data } from "./../data/data.service"; import * as camera from "nativescript-camera"; import { Image } from "tns-core-modules/ui/image"; var app...
import React, { FC, ReactElement, Ref, useImperativeHandle, forwardRef, useCallback, useLayoutEffect, useRef } from 'react'; import { useId } from 'rdk'; import { Node, NodeProps } from './symbols/Node'; import { Edge, EdgeProps } from './symbols/Edge'; import { ElkRoot, CanvasDirection, useLayout } fro...
import { Box, Flex } from '@rebass/grid'; import { AxiosResponse } from 'axios'; import * as React from 'react'; import { toast } from 'react-toastify'; import { ACCOUNT_NOT_CONFIRMED_MSG, BUS_SHOPIFY_PAGE, EMAIL_SENT, FrontendRoute, FrontendRoute as routes, HackerStatus, RESEND_CONF_EMAIL, } from '../.....
<reponame>logerzhu/simple-graphql import _ from 'lodash' import Sequelize from 'sequelize' import StringHelper from '../utils/StringHelper' import { SGColumnFieldConfig, SGConditionFieldMapper, SGHookOptionsMap, SGInputFieldConfig, SGInputFieldConfigMap, SGPluginConfig, SGPluginOptions } from '..' import ...
#!/usr/bin/env node import fs from 'fs'; import xlsx from 'xlsx'; import chalk from 'chalk'; import { requestFile, requestConfig, requestSheets, confirm, requestColumnNames, requestString, } from './lib/request'; import * as utils from './lib/utils'; import { Row, Table } from './types'; /** * Apply `t...
<gh_stars>10-100 /* eslint-disable @typescript-eslint/no-unused-vars */ import { Widgets } from "neo-blessed"; import { strWidth } from "neo-blessed/lib/unicode"; import { Widget } from "./widget/Widget"; import { File } from "../common/File"; import { sprintf } from "sprintf-js"; import { StringUtils } from "../common...
import path from 'path' import * as AWS from 'aws-sdk' import { APIGatewayProxyEvent } from 'aws-lambda' import { TaskEither, taskify, fromEither, fromIO, fromLeft, taskEither, } from 'fp-ts/lib/TaskEither' import { fromNullable, Option } from 'fp-ts/lib/Option' import { fromOption, Either } from 'fp-ts/lib...
import { ADD_TAG, REMOVE_TAG } from "../../queries/tag"; import { ArrowLeftIcon, DownloadIcon, TrashIcon } from "@heroicons/react/outline"; import { useMutation, useQuery } from "@apollo/client"; import Tag from "../../components/Tag"; import TagInput from "../../components/TagInput"; import { createSearchParams, Link,...
<gh_stars>1-10 import gql from 'graphql-tag'; import {client as create, uploadMiddleware} from 'rewire-graphql'; // const client = create('http://localhost:3010/graphql', {mode: 'cors'}); const client = create('http://api.worksight.services:3010/graphql'); const query = gql` query($...
<filename>packages/target-ethers-v5/src/index.ts import { readFileSync } from 'fs' import { compact, partition, uniqBy } from 'lodash' import { join, relative, resolve } from 'path' import { Dictionary } from 'ts-essentials' import { BytecodeWithLinkReferences, CodegenConfig, Config, Contract, createBarrelFil...
import { IPanelStyles, Panel, PanelType, } from "@fluentui/react/lib/Panel" import { useBoolean } from "@fluentui/react-hooks" import { useState, useEffect, useRef, MutableRefObject, ReactElement } from "react" import { IMessageBarStyles, MessageBar, MessageBarType, Stack, Separator, IStackStyles, I...
<gh_stars>10-100 import { ApolloQueryResult } from 'apollo-client'; import _ from 'lodash'; import EndpointPath from '~/enums/endpointPath'; import NodeStopFactory from '~/factories/nodeStopFactory'; import ApolloClient from '~/helpers/ApolloClient'; import IExternalArmamentInfo from '~/models/externals/IExternalArmame...
<filename>lib/utils.ts<gh_stars>1-10 const actionMessageRegex = /^\u0001ACTION ([^\u0001]+)\u0001$/; const justinFanRegex = /^(justinfan)(\d+$)/; const unescapeIRCRegex = /\\([sn:r\\])/g; const escapeIRCRegex = /([ \n;\r\\])/g; const ircEscapedChars: Record<string, string> = { s: ' ', n: '', ':': ';', r: '' }; const ir...
<gh_stars>1-10 import { isDigit, Char } from "../char"; import { StringIterator } from "./string-iterator"; import { AST, RangeRepetitionNode, GroupNode, AssertionNode, CharacterClassNode, CharacterNode, Node, AlternationNode, ConcatenationNode, RepetitionNode, CharacterSetNode, CharacterRangeNo...
// Shuting Yard Algorithm class Queue<T> { private data: Array<T>; private size: number; private front: number; private rear: number; constructor(size:number){ this.size = size; this.data = new Array<T>(size); this.front = -1; this.rear = -1; } isEmpty(): bo...
<filename>src/component/classes/adapter.ts import { BehaviorSubject, Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Scroller } from '../scroller'; import { Logger } from './logger'; import { Buffer } from './buffer'; import { AdapterContext } from './adapterContext'; import { ADAPTE...
import { Reducer } from 'redux'; import { ADD_CONFIG, REMOVE_CONFIG, LOAD_CONFIGS, ConfigurationAction } from 'Actions/ConfigurationActions'; import { Configuration, ReportTypes, Policy, ValidOperator } from 'Interfaces/Configuration'; import * as fs from 'fs'; import * as path from 'path'; import { remote, app } from ...
<filename>packages/bus-rdf-join/lib/ActorRdfJoin.ts import {Bindings, IActorQueryOperationOutput, IActorQueryOperationOutputBindings} from "@comunica/bus-query-operation"; import {Actor, IAction, IActorArgs} from "@comunica/core"; import {IMediatorTypeIterations} from "@comunica/mediatortype-iterations"; import {Empt...
import { UnitPropsButCooler, Options, AtomicUnit } from "./Unit" export interface ParsedUnit<V = any> { units?: AtomicUnit<V>[] dimension?: Record<string, number>, value?: V } type findUnitFn<T> = (unitString: string) => { unit: UnitPropsButCooler<T>, prefix: string } | null /** * Returns a new Parser. */ e...
<gh_stars>0 import * as ethers from 'ethers'; import { BigNumber } from 'ethers'; import { NonceManager } from '@ethersproject/experimental'; import { BeaconProxy, ProxyAddresses } from './proxyUtils'; import * as contracts from '../../typechain/optics-core'; type Address = string; // Optic's complete contract suite ...
import { api, par } from "../i_api"; import { qALL, getTable } from "../api_util"; import { reduction_tree } from "./rap2-taobo"; import { 检测元素状态 } from "../../util/dom/element"; const $$ = qALL; /** 获取Yapi平台的api */ export async function getYapiApi(): Promise<api> { await new Promise((s) => { 参数全展开(s); }); ...
<filename>frontend/app/components/wp-query-menu/wp-query-menu.directive.ts // -- copyright // OpenProject is a project management system. // Copyright (C) 2012-2018 the OpenProject Foundation (OPF) // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public...
<reponame>adversinc/meteor-smart-router<gh_stars>1-10 /** * The route entry type. * * To be extended by template params used as names of templates in layout * ("top", "left" etc) * * @example * interface RouteParams { * main?: string; * } * * export interface RouteSet { * [key: string]: Route & RoutePara...
import './style.scss'; import { Explosions } from './ts/explosions'; import { Grid, Vignette } from './ts/foreground'; import { Background, Stars } from './ts/background'; import { Bullets } from './ts/bullets'; import { Enemy } from './ts/enemy'; import { Player } from './ts/player'; import { Sounds } from './ts/sound...
import { Codec, connect, createInbox, JsMsg, Msg, NatsConnection } from "nats"; import { consumerOpts } from "nats/lib/nats-base-client/jsconsumeropts"; import { LoginData } from "../LoginData"; import { ChatEvent, Message } from "../ChatEvent"; import { getTypedConfig } from "./Config"; import { logger } from "./...
<gh_stars>1-10 import { flatten } from "lodash"; import { DecorationRangeBehavior, Selection, TextEditor } from "vscode"; import { getSelectionInfo, performEditsAndUpdateFullSelectionInfos, } from "../core/updateSelections/updateSelections"; import { Target } from "../typings/target.types"; import { EditWithRangeUp...
import { Injectable, EventEmitter } from "@angular/core"; import { Feature } from "geojson"; import * as L from "leaflet"; export interface IFeatureLayer { feature?: any; featureId?: string; layerId?: string; } @Injectable() export class MapControlService { public events: any; public map: any; private map...
/* eslint-disable no-param-reassign */ import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios'; import qs from 'qs'; import { toast } from 'react-toastify'; import { CreatePostRequestUnionType, CreateTagRequestType, DirectionResponseType, ExpertResponseType, ExpertsResponseType, GetExpe...
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit'; import { Database, NewQuery, Query } from '../../models/database'; import { NewDatabaseRequestBody, NewQueryRequestBody, GetUserInfoRequestResponse } from '../../models/api'; import { constructDatabase } from '../../utils/construct...
import React from "react"; import styles from "./FaqSection.module.scss"; import Grid from "@material-ui/core/Grid"; import Typography from "@material-ui/core/Typography"; import { Accordion, AccordionSummary } from "@material-ui/core"; import AccordionDetails from "@material-ui/core/AccordionDetails"; import ExpandMor...
<gh_stars>10-100 import * as EC2 from "aws-sdk/clients/ec2"; import * as tags from "./tags"; import { DocumentedError } from "../../errors"; export interface SecurityGroup { id: string; } export async function createLoadBalancerSecurityGroup( region: string, name: string, vpcId: string, tags: tags.Tag[] ):...
<reponame>e-Spirit/fsxa-nuxt-module import { Module } from "@nuxt/types"; import { join, resolve } from "path"; import * as fs from "fs"; import defaults from "./defaults"; import merge from "lodash.merge"; import createMiddleware, { CustomRoute } from "../api"; import { FSXARemoteApi, LogLevel, NavigationItem } from "...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import debug from 'debug'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import path from 'path'; import webpack, { Configuration, WebpackPluginInstance } from 'webpack'; import { merge as webpackMerge } from 'webpack-merge'; import { WebpackPluginConfig, WebpackPluginEntryPoint, WebpackPreloadEntryPoint } from ...
import React, { useEffect } from 'react'; import { useDispatch } from 'react-redux'; import { useHistory, Link as RouteLink } from 'react-router-dom'; import { makeStyles } from '@material-ui/core/styles'; import { Avatar, Box, Link, Button, Card, CardActions, CardContent, CardHeader, Grid, IconButton, Skeleton, Typogr...
<reponame>MarkArranz/material2 import {task, src, dest} from 'gulp'; import {Dgeni} from 'dgeni'; import * as path from 'path'; import {buildConfig, sequenceTask} from 'material2-build-tools'; import {apiDocsPackage} from '../../dgeni/index'; // There are no type definitions available for these imports. const markdown...
<filename>hooks/trades.ts import { Currency, CurrencyAmount, Pair, Token, ChainId, WETH, Trade } from '../forks/@uniswap/sdk/dist' import flatMap from 'lodash/flatMap' import { useMemo } from 'react' import { PairState, usePairs } from '../data/reserves' import { wrappedCurrency } from '../utils/blockchain' import { E...
import { env, exit, logger } from 'flex-dev-utils'; import { Environment } from 'flex-dev-utils/dist/env'; import { FlexPluginError } from 'flex-dev-utils/dist/errors'; import { addCWDNodeModule, getPaths, readPluginsJson, setCwd, writeJSONFile } from 'flex-dev-utils/dist/fs'; import { findPort, getDefaultPort } from '...
/* The MIT License (MIT) Copyright (c) 2015 <NAME> 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, modify, merge, publi...
<reponame>b-zurg/typescript-is import * as ts from 'typescript'; import * as tsutils from 'tsutils/typeguard/3.0'; import { VisitorContext } from './visitor-context'; import * as VisitorUtils from './visitor-utils'; import { setIntersection, setUnion } from './utils'; function visitRegularObjectType(type: ts.Type, vis...
import EventEmitter from 'events' import {READY_STATE, AsyncMessage, MethodParams} from './types' import type Channel from './Channel' import type Connection from './Connection' import {expBackoff} from './util' type BasicConsumeParams = MethodParams['basic.consume'] export interface ConsumerProps extends BasicConsume...
<reponame>marsprince/vue-next<gh_stars>0 import { CompilerOptions, CodegenResult, CompilerError, NodeTransform, ParserOptions, RootNode } from '@vue/compiler-core' import { SourceMapConsumer, SourceMapGenerator, RawSourceMap } from 'source-map' import { transformAssetUrl, AssetURLOptions, createAssetU...
<reponame>vincentLiuxiang/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------...
import React, { useState } from 'react' import { Formik, Form, Field } from 'formik' import { useMutation } from 'react-apollo' import gql from 'graphql-tag' import { CompanyApplication } from '@island.is/gjafakort-web/graphql/schema' import { FieldInput, FieldNumberInput, KeyValue, } from '@island.is/gjafakort-...
/// /// Copyright © 2016-2021 The Thingsboard Authors /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may obtain a copy of the License at /// /// http://www.apache.org/licenses/LICENSE-2.0 /// /// Unless required by...
<filename>frontend/src/functions/adapter-http/server.ts<gh_stars>1-10 import { computed } from "vue" import axios, { AxiosError, Method } from "axios" import { BasicException, AllException } from "./exception" export interface HttpInstance { /** * 发送一个请求到server。 */ request<R, E extends BasicException...
import ray from "./ray"; import { hitRecord } from "./hitable"; import vec3 from "./vec3"; import { randomInUnitSphere } from './task.worker'; export default abstract class material { abstract scatter(rIn: ray, rec: hitRecord, attenuation: vec3, scattered: ray) : boolean; } /** * Lambertian (diffuse material) *...
import React, { Component } from 'react'; import AddChildProps from './AddChildProps'; import { withStyles, Theme } from '@material-ui/core/styles'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Tree from 'react-d3-tree'; import Props from './Props'; import HtmlAttr from './...
import { Component, OnInit, Renderer, ViewChild, ElementRef, Directive } from '@angular/core'; import { Router, ActivatedRoute, NavigationEnd, NavigationStart } from '@angular/router'; import { ROUTES } from '../.././sidebar/sidebar.component'; import { Subscription } from 'rxjs/Subscription'; import { Location, Locati...
/* GENERATED FILE */ import { useContext } from "solid-js"; import { IconContext } from "../lib"; const renderPathFor = (weight: string, color: string) => { switch (weight) { case "bold": return ( <> <line x1="120" y1="88.00002" x2="88" y2="224.00002" fill="none" stroke={color} stroke-l...
import { formDataIterator, getBoundary } from '../form-data' import { streamToIterator } from '../utils' import * as util from '../is' const INTERNALS = Symbol('internal body') abstract class BaseBody implements Body { abstract headers: Headers [INTERNALS]: { bodyInit?: BodyInit boundary?: string dis...
import { location, fetch } from 'global'; import dedent from 'ts-dedent'; import { transformStoriesRawToStoriesHash, StoriesRaw, StoryInput, StoriesHash, } from '../lib/stories'; import { ModuleFn } from '../index'; export interface SubState { refs: Refs; } type Versions = Record<string, string>; export t...
import * as React from 'react'; import { useStyletron } from 'baseui'; import { StyledLink } from 'baseui/link'; import { Input } from 'baseui/input'; import { Radio, RadioGroup } from 'baseui/radio'; import { Checkbox } from 'baseui/checkbox'; import { Select, SIZE } from 'baseui/select'; import { StatefulTooltip } fr...
<reponame>Greblys/components export declare const MAT_SELECT_CONFIG: InjectionToken<MatSelectConfig>; export declare const MAT_SELECT_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>; export declare const MAT_SELECT_SCROLL_STRATEGY_PROVIDER: { provide: InjectionToken<() => ScrollStrategy>; deps: (typeof ...
import * as path from 'path'; import * as fs from 'fs'; import * as fse from 'fs-extra'; import { getCode, genUpperName, genUrl, generateDoc } from './utils'; import { toHtml } from './generate-md'; import { ModuleConfig, SiteConfig } from '../interfaces'; const MT = require('mark-twain'); const JsonML = require('jsonm...
import * as React from 'react' import Escape from 'react-escape' import { withTranslation } from 'react-i18next' import { ContextMenu, MenuItem } from '@jstarpl/react-contextmenu' import { Part } from '../../../lib/collections/Parts' import { RundownPlaylist } from '../../../lib/collections/RundownPlaylists' import { T...
<gh_stars>1-10 import { EmitterSkeleton } from "./api/emitter"; import { StateUpdateState } from "./api/state"; import { AnimeStatusType as MyAnimeListAnimeStatusType, MangaStatusType as MyAnimeListMangaStatusType } from "./integrations/myanimelist"; import { TokenInfo as MyAnimeListTokenInfo } from "./integrat...
<reponame>anttisirkiahome/angu2test import {argv} from 'yargs'; import {join} from 'path'; import {InjectableDependency, Environments} from './seed.config.interfaces'; export const ENVIRONMENTS: Environments = { DEVELOPMENT: 'dev', PRODUCTION: 'prod' }; export class SeedConfig { PORT = argv['po...
/* * Wire * Copyright (C) 2018 Wire Swiss GmbH * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This progr...
<reponame>sunwenteng/bgserver import * as Long from "long"; const digit = [ '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' ]; const size = 34; function numtoCode(num: Long, shift:...
import { Command, CommandArg, getArgVariants, matchName, Terminal, ToolController, } from "../core"; import { controllers, findControllerAndCommandByAlias, } from "../controllers"; import { formatTable, } from "../core/utils"; import { printUsage } from "../everdev/help"; import { pr...
<reponame>thinkbaer/node-typeorm-aios import {expect} from 'chai'; import {suite, test, timeout} from '@testdeck/mocha'; import { Column, createConnection, DatabaseType, Entity, getConnectionManager, PrimaryGeneratedColumn, Table, TableColumn } from 'typeorm'; import {AiosConnectionOptions} from '../../...
import * as React from 'react'; import * as _ from 'lodash'; import { Link } from 'react-router-dom'; import { MsgBox } from '@console/internal/components/utils/status-box'; import { K8sResourceKind, GroupVersionKind, referenceForModel, referenceForGroupVersionKind, } from '@console/internal/module/k8s'; import...
<filename>packages/core/testing/src/testing_internal.ts<gh_stars>0 /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {ɵisPromise as isPromise, ɵmerge as merge}...
<filename>packages/components/virtual-list/src/components/dynamic-size-list.ts import { throwError } from '@element-plus/utils' import createList from '../builders/build-list' import { isHorizontal } from '../utils' import { AUTO_ALIGNMENT, CENTERED_ALIGNMENT, DEFAULT_DYNAMIC_LIST_ITEM_SIZE, END_ALIGNMENT, ...
// If true, the current page is the article edit page. // If false, the current page is the article creation page. var articleEdit: boolean = Boolean($("meta[name=\"article-edit\"]").attr("content")); // Initialize a clipboard for the article file URLs. var clipboard = new Clipboard('.btn-article-file-url'); /* * Cr...
import React, { useEffect, useRef } from 'react'; import PropTypes from 'prop-types'; import getPosition from 'dom-lib/getPosition'; import scrollTop from 'dom-lib/scrollTop'; import partial from 'lodash/partial'; import camelCase from 'lodash/camelCase'; import isNumber from 'lodash/isNumber'; import { DateUtils, scro...
// Type definitions for react-relay 1.3 // Project: https://github.com/facebook/relay // Definitions by: <NAME> <https://github.com/graphcool> // <NAME> <https://github.com/voxmatt> // <NAME> <https://github.com/alloy> // <NAME> <https://github.com/npirotte> // ...
<filename>core/frontend/src/render/webgl/TechniqueFlags.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *---...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<gh_stars>0 import { Node } from "./node"; import { Board } from "./board"; import { Anthill } from "./anthill"; import { Sugar } from "./sugar"; import { Ant } from "./ant"; import { Apple } from "./apple"; import { MyAnt } from "./myant"; import { BoardObject } from "./boardObject"; import { Keys } from "./keys"; imp...
<reponame>ozzpy/material-components-web /** * @license * Copyright 2016 Google 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 t...
<reponame>vaporyorg/dapp-react-2.0 import { isBN, toBN, toWei, fromWei } from 'web3-utils' import { DATA_LOAD_STRING, FIXED_DECIMAL_AMOUNT, WEBSOCKET_URLS } from 'globals' // eslint-disable-next-line import/prefer-default- const windowLoaded = new Promise((resolve) => { if (typeof window === 'undefined') { resol...
import * as React from 'react'; import { ChangeEventHandler, Component, FunctionComponent, ReactNode } from 'react'; import { connect } from 'react-redux'; import { Redirect } from 'react-router'; import { Link } from 'react-router-dom'; import { InjectedIntlProps } from 'react-intl'; import { Button, Container...
<filename>packages/components/roving-focus-group/__tests__/roving-focus-item.spec.ts import { defineComponent, inject, nextTick, ref } from 'vue' import { mount } from '@vue/test-utils' import { composeRefs } from '@element-plus/utils' import { EVENT_CODE } from '@element-plus/constants' import { ROVING_FOCUS_COLLECT...
<gh_stars>0 import { loadCultureFiles } from '../common/culture-loader'; import { ListView, Virtualization } from '@syncfusion/ej2-lists'; import { Browser } from '@syncfusion/ej2-base'; import { Splitter } from '@syncfusion/ej2-layouts'; import { enableRipple } from '@syncfusion/ej2-base'; enableRipple(true); /** * ...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { arrayToTree } from 'performant-array-to-tree'; import { createContext, useContext, useState } from 'react'; import useSWR from 'swr'; import useSWRInfinite from 'swr/infinite'; import { useUser } from './use-user'; import type { CommentType, User } from ...
<filename>src/lib/core/ripple/ripple-renderer.ts import { ElementRef, } from '@angular/core'; /** TODO: internal */ export enum ForegroundRippleState { NEW, EXPANDING, FADING_OUT, } /** * Wrapper for a foreground ripple DOM element and its animation state. * TODO: internal */ export class ForegroundRipple ...
import * as React from 'react'; import { useCallback, FunctionComponent } from 'react'; import PropTypes from 'prop-types'; import get from 'lodash/get'; import FormLabel from '@material-ui/core/FormLabel'; import FormControl, { FormControlProps } from '@material-ui/core/FormControl'; import FormGroup from '@material-u...
<gh_stars>0 import {Scpper} from "./Scpper"; import {SiteMember, WikidotPage, WikidotUser} from "./structures"; import {Api} from "./types"; import SiteResolvable from "./structures/SiteResolvable"; const branches = Object.assign({ "scp-wiki.net": "en", "www.scp-wiki.net": "en", "scpwiki.com": "en", "w...
import * as Bluebird from "bluebird"; import * as _ from "lodash"; import "source-map-support/register"; import * as VError from "verror"; import { commands, CompletionItem, CompletionItemKind, Disposable, ExtensionContext, languages, Position, Range, TextDocument, Uri, window, workspace, } from "vscode"; i...
import * as React from 'react' import ButtonContent from '../assets/ButtonContent' import GoogleIcon from '../assets/GoogleIcon' import { SynapseClient } from '../utils' import { getEndpoint, BackendDestinationEnum, } from '../utils/functions/getEndpoint' type State = { username: string password: string emai...
import * as React from "react"; import { colorToRGBA, isDefined } from "../utils"; const helper = (props) => { const { coordinate: displayCoordinate, show, type, orient, edgeAt, hideLine } = props; const { fill, opacity, fontFamily, fontSize, textFill, lineStroke, lineOpacity, arrowWidth } = props; const...