text stringlengths 3.3k 33k |
|---|
import * as Icons from './components';
const icons = {
activity: Icons.Activity,
airplay: Icons.Airplay,
'alert-circle': Icons.AlertCircle,
'alert-octagon': Icons.AlertOctagon,
'alert-triangle': Icons.AlertTriangle,
'align-center': Icons.AlignCenter,
'align-justify': Icons.AlignJustify,
'align-left': I... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import * as MRE from '@microsoft/mixed-reality-extension-sdk';
enum GameState {
Intro,
Play,
Celebration
}
enum GamePiece {
X,
O
}
/**
* The main class of this app. All the logic goes here.
*/
export defau... |
<filename>src/top-nav.ts
interface Item {
text: String;
icon: String;
children: Array<Item>;
click: Function;
tag: any;
path: Number[]
[index: string]: any;
}
interface Options {
id: string;
data: Array<Item>;
map: any;
click: Function;
home: Item;
back: Item;
style: any;
autoResize: fals... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Builder SDK Github:
// https://github.com/Microsoft/BotBuilder
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// Permission i... |
<filename>ui/src/frontend/router.ts
// Copyright (C) 2018 The Android Open Source Project
//
// 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... |
<filename>src/Medikit/Medikit.Website/angularApp/app/app.component.ts
import { animate, state, style, transition, trigger } from '@angular/animations';
import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Router } from '@angul... |
<reponame>ziplokk1/node-xmlcreate
/**
* Copyright (C) 2016-2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
<gh_stars>0
export declare type BorderRadiusTokens = {
borderRadiusNone: string;
borderRadiusSmall: string;
borderRadiusMedium: string;
borderRadiusLarge: string;
borderRadiusXLarge: string;
borderRadiusCircular: string;
};
export declare type BrandVariants = ColorVariants & {
shade60: stri... |
// Copyright (c) 2020 The Jaeger 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 applicable law or agree... |
import { Injectable } from '@angular/core';
export class Customer {
ID: number;
CompanyName: string;
Address: string;
City: string;
State: string;
Zipcode: number;
Phone: string;
Fax: string;
Website: string;
}
let сustomers: Customer[] = [{
"ID": 1,
"CompanyName": "Super M... |
import PluginError from 'plugin-error';
import through from 'through2';
import Path from 'path';
import fs from 'fs';
import File from 'vinyl';
import log from 'fancy-log'
import { promises as afs } from 'fs'
import { Transform, TransformCallback } from 'stream';
//---- End of impor... |
import { useState, useRef, useEffect } from 'react';
// helpers
import { useMedia } from 'react-use';
import { useFullpageOverflow } from 'helpers/use-fullpage-overflow';
// components
import ReactModal from 'react-modal';
import { Text, Icon } from 'design-system/atoms';
// assets
import RockWeathering from 'public... |
<gh_stars>1-10
import * as bunyan from "bunyan";
import * as config from "config";
import * as Docker from "dockerode";
import * as http from "http";
import * as pg from "pg";
import { IApplicationSettings } from "../common/models/IApplicationSettings";
import { IMiniDNSSettings } from "../common/models/IMiniDNSSetting... |
import { EventEmitter } from './event-emitter'
import { Socket } from './socket'
import { App } from './app'
import { Errors, compose, getLibraryName, isObject } from './utils'
import loader from './loader'
import { MiddlewareFnType, ContextType, NextFnType, ConfType, CustomCtxType, StoresType } from '../types'; // esl... |
import {
concat as observableConcat,
merge as observableMerge,
combineLatest as observableCombineLatest,
fromEvent as observableFromEvent,
of as observableOf,
BehaviorSubject,
Observable,
Subject,
} from "rxjs";
import {
switchMap,
distinctUntilChanged,
publishReplay,
re... |
<filename>public/tinymce/src/plugins/charmap/main/ts/core/CharMap.ts
/**
* CharMap.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
import Tools from 'tinymce/core/api... |
<filename>packages/dooringx-lib/src/core/markline/calcRender.ts
/*
* @Author: yehuozhili
* @Date: 2021-03-14 04:29:09
* @LastEditors: yehuozhili
* @LastEditTime: 2022-01-12 09:15:44
* @FilePath: \dooringx\packages\dooringx-lib\src\core\markline\calcRender.ts
*/
import { innerDragState } from '../innerDrag/state';... |
import { Component, OnInit, ElementRef, ViewChild, OnDestroy } from '@angular/core';
import { Automaton, State, Transition, Coords, AlphabetSymbol } from '../../entities/automaton';
import { AppStateService } from '../../services/app-state.service';
import { FiniteAutomaton } from '../../entities/finite-automaton';
imp... |
import React, { useCallback, useEffect, useRef, useState } from 'react';
import { Chart } from 'chart.js';
import { get } from '../../store';
import {
getWellsColors,
useKresusState,
assert,
translate as $t,
round2,
INTERNAL_TRANSFER_TYPE,
getFontColor,
} from '../../helpers';
import { DEFA... |
<reponame>pospi/tryorama
// import { combineConfigs, adjoin, unsupportedMergeConfigs } from "./config/combine";
import { ScenarioApi } from "./api";
import { trace } from "./util";
import * as T from "./types";
import * as _ from 'lodash'
import logger from "./logger";
// interface ApiPlayers<Config> {
// players: (... |
<gh_stars>0
import {Application} from 'hadouken-js-adapter/out/types/src/api/application/application';
import {_Window} from 'hadouken-js-adapter/out/types/src/api/window/window';
import {Identity} from 'hadouken-js-adapter/out/types/src/identity';
import {Layout, LayoutApp, TabGroup} from '../../client/types';
import... |
/**
@license
Copyright 2019 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... |
<gh_stars>1-10
import { Injectable, EventEmitter } from "@angular/core";
import { BLE } from "ionic-native";
import "rxjs/add/operator/first";
import { Buffer } from "buffer";
import * as crypto from "crypto-browserify";
// ported from https://github.com/ethitter/augustctl/blob/master/lib/lock_session.js
class LockSes... |
<reponame>ABAPlan/abaplan-core<gh_stars>1-10
import ArcgisMap = require('esri/map');
import Graphic = require('esri/graphic');
import SimpleLineSymbol = require('esri/symbols/SimpleLineSymbol');
import PictureFillSymbol = require('esri/symbols/PictureFillSymbol');
import SimpleFillSymbol = require('esri/symbols/SimpleF... |
import React, { useCallback, useEffect, useState } from "react";
import {
Button,
Drawer,
DrawerContent,
Dropdown,
DropdownItem,
DropdownToggle,
EmptyState,
EmptyStateIcon,
PageSection,
PageSectionVariants,
Split,
SplitItem,
Tab,
TabContent,
Tabs,
TabTitleText,
Text,
TextContent,
T... |
<reponame>robsonrosilva/advpl-sintax<filename>src/formmatingRules.ts
export interface Rule {
id: string;
options?: {
ident: boolean;
linesBefore: number;
linesAfter: number;
linesSameBlock: number;
};
}
export interface StructureRule extends Rule {
begin: RegExp; // Expressão do começo
noBegi... |
import * as chai from 'chai';
import * as _ from 'lodash';
import * as mongodb from 'mongodb';
import { Tyr } from 'tyranid';
import { Population } from '../src/core/population';
const { ObjectId } = mongodb;
const { expect } = chai;
export function add() {
describe('population.js', () => {
let Book: Tyr.Boo... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Directionality } from '@angular/cdk/bidi';
import { Platform } from '@angular/cdk/platform';
import { AfterCo... |
/* -----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
import { ReactWidget } from '@jupyterlab/apputils';
impor... |
<gh_stars>1-10
declare var ret: any;
declare var cep: any;
declare var window: any;
const EvalScript_ErrMessage = 'EvalScript error.';
export class CSXSWindowType {
_PANEL: string;
_MODELESS: string;
_MODAL_DIALOG: string;
constructor(
_PANEL: string,
_MODELESS: string,
_MODAL_DIALOG: string
) ... |
import { Firestore, DocumentReference } from "@google-cloud/firestore";
import { FirestoreLoader, FirestorePayload } from "./firestore-loader";
import { firestoreLoaderRequestStorage } from "./firestore-request-storage";
import { QueryOptions, QueryResponse } from "./firestore-query";
import {
asArray,
iots as t,
... |
<filename>packages/auto-label/src/auto-label.ts
// Copyright 2020 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Un... |
<reponame>spencerrdavid/commonspace
import 'babel-polyfill';
import { FeatureCollection } from 'geojson';
import path from 'path';
import fetch from 'isomorphic-fetch';
import {
adminUser,
surveyorUser,
SeaBassFishCountDataPoints,
SeaBassFishCountStudy,
MarchOnWashington,
SampleDataPointOne
} f... |
<gh_stars>10-100
import Template from "../../templates/template";
import Transform from "../transform";
import { ObfuscateOrder } from "../../order";
import {
Node,
Location,
CallExpression,
Identifier,
Literal,
FunctionDeclaration,
ReturnStatement,
MemberExpression,
SwitchStatement,
SwitchCase,
L... |
<reponame>kellertobias/tosk-studio
import { Socket } from 'net';
import arrayEquals from '/server/backend/helpers/array-equals';
import { BasicInterface } from './../basic-interface';
import { ConfigBackend } from '../../engine/config';
import { iModules } from '../../modules';
import { MacroEngine } from '../../engi... |
<filename>src/exp/exp.ts<gh_stars>10-100
/**
* Copyright 2021 Cloudflare Inc
*
* 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
*
* U... |
<gh_stars>100-1000
import { sortBy } from "lodash-es"
import { Twist } from "types"
import { Cap, FaceLike, Edge, Polyhedron } from "math/polyhedra"
import { PrismaticType } from "data/specs/common"
import PolyhedronSpecs from "data/specs/PolyhedronSpecs"
import Capstone from "data/specs/Capstone"
import Prismatic from... |
import Link from "next/link"
import Image from "next/image"
import { Layout } from "@components/Layout"
import { Callout } from "@components/Callout"
import { MetaHead } from "@components/MetaHead"
import { Config } from "config"
import demonstration from "../public/hero/demonstration.webp"
import falafel from "../p... |
<gh_stars>1-10
import { BreakpointsProps, CandidateProps } from '../../../types';
const loop = true;
/**
* Manual is faster than RegEx
* http://bjorn.tipling.com/state-and-regular-expressions-in-javascript
* http://jsperf.com/whitespace-character/5
*
* @param {string} char
*
* @returns {boolean}
*/
const isSp... |
<reponame>licanhua/webdriverio
import logger from '@wdio/logger'
import puppeteerCore from 'puppeteer-core'
import type { Page } from 'puppeteer-core/lib/cjs/puppeteer/common/Page'
import type { CDPSession } from 'puppeteer-core/lib/cjs/puppeteer/common/Connection'
import type { Viewport } from 'puppeteer-core/lib/cjs... |
<reponame>KelvinDong/-<gh_stars>1-10
import { Injectable, OnInit } from '@angular/core';
import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http';
import { Observable, of, pipe, throwError, Subject } from 'rxjs';
import { catchError, map, tap } from 'rxjs/operators';
import { Router, ActivatedR... |
/* Copyright 2020 The TensorFlow 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/LICENSE-2.0
Unless required by applicable law or a... |
// package: toit.model
// file: toit/model/organization.proto
import * as jspb from "google-protobuf";
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
export class Organization extends jspb.Message {
getId(): Uint8Array | string;
getId_asU8(): Uint8Array;
getId_asB6... |
<filename>libs/barista-components/quick-filter/src/quick-filter-default-data-source.ts
/**
* @license
* Copyright 2020 Dynatrace 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
*
* h... |
<reponame>JonathanWilbur/x500-ts<gh_stars>1-10
/* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OPTIONAL,
UTF8String,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
TBerror_code,
_decode_TBerror_code,
_encode_TBerror_... |
<reponame>roboderpy/DBotTheDiscordBot<filename>app/commands/fun/Roleplay.ts
//
// Copyright (C) 2017-2018 DBot.
//
// 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.apac... |
import React, { useReducer } from "react";
import { ScrollView, View, TouchableOpacity } from "react-native";
import { Button, Checkbox, Text, TextInput } from "react-native-paper";
import {
StackActions,
useNavigation,
CommonActions,
} from "@react-navigation/native";
import produce from "immer";
import { human } f... |
<filename>src/structures/Simulation.ts<gh_stars>0
import { v4 } from 'uuid';
import { beOrNotToBe as beornottobe, log, pickRandom, random } from '../utility';
import { ActionInteraction, ActionMove, Creature } from './Creature';
import { DeciderInteraction, DeciderMovement } from './Decider';
import { Cell, SimMap } f... |
<reponame>toddfoster/venite
import { WebSocketGateway, WebSocketServer, SubscribeMessage, OnGatewayConnection, OnGatewayDisconnect, WsException } from '@nestjs/websockets';
import { Socket } from 'socket.io';
import { LiturgicalDocument, ChangeMessage, CursorMessage, User, Change, Cursor } from '@venite/ldf';
import {... |
import { Divider } from "app/components/Divider";
import { Icon } from "app/components/Icon";
import { clickOutsideHandler } from "app/hooks";
import React, { useEffect, useRef, useState } from "react";
import { styled } from "twin.macro";
import { Position, Size } from "types";
import { defaultClasses, getStyles } fr... |
<reponame>michmichm/onnxjs
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import {Logger, Profiler} from '../../instrument';
import {GlslPreprocessor} from './glsl-preprocessor';
import {ProgramInfo} from './program-info';
import {TextureData} from './texture-data';
im... |
import * as React from 'react';
import Modal, { ModalProps } from 'nav-frontend-modal';
import './utenlandsoppholdModal.less';
import Knapp, { Hovedknapp } from 'nav-frontend-knapper';
import { Undertittel } from 'nav-frontend-typografi';
import {
UtenlandsoppholdType,
Utenlandsopphold,
UtenlandsoppholdSkje... |
import assert from 'assert';
import crypto from 'crypto';
import fs from 'fs';
import util from 'util';
import S3 from 'aws-sdk/clients/s3';
import { MongoClient, Collection, TransactionOptions, BulkWriteOperation, Db } from 'mongodb';
// @ts-ignore
import dive from 'dive';
// @ts-ignore
import Logger from 'basic-logge... |
import Path from 'path';
import crypto from 'crypto';
import Asset from './Asset';
import Bundler from './Bundler';
import Packager from './packagers/Packager';
export interface BundleOptions {
isolated?: boolean;
}
/**
* A Bundle represents an output file, containing multiple assets. Bundles can have
* child ... |
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
export func... |
import Logger from '../tools/env.logger';
import { dialog, SaveDialogReturnValue } from 'electron';
import * as fs from 'fs';
import * as path from 'path';
import { IService } from '../interfaces/interface.service';
import ServiceElectron, { IPCMessages, Subscription } from './service.electron';
import ServiceStorage, ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import {
Column,
ColumnFilter,
Filter,
FilterArguments,
FilterCallback,
GridOption,
JQueryUiSliderOption,
JQueryUiSliderResponse,
OperatorType,
OperatorString,
SearchTerm,
} from '../models/index';
// using external non-typed js libraries
declare const $: any;
const DEFAULT_MIN_VALUE = 0;
const ... |
<reponame>Osman-Sodefa/fast-check
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/no-unused-vars */
type Not<T> = T extends true ? false : true;
const Tes... |
<reponame>SebastienGllmt/storybook<filename>lib/csf-tools/src/CsfFile.ts
/* eslint-disable no-underscore-dangle */
import fs from 'fs-extra';
import dedent from 'ts-dedent';
import * as t from '@babel/types';
import generate from '@babel/generator';
import traverse from '@babel/traverse';
import { toId, isExportStory, ... |
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
/* eslint-env node */
const n = "xlsx";
/* vim: set ts=2 ft=javascript: */
import X = require("xlsx");
import 'exit-on-epipe';
import * as fs from 'fs';
import program = require('commander');
program
.version(X.version)
.usage('[options] <file> [sheetname]... |
import h from "../helper/helper";
const validator = require("validation/validator");
import Observer from "../asset/observer"
import SecuredDataApi from "../asset/securedDataWithMetaData"
import * as Bluebird from "bluebird"
const debug = require("debug");
const userService = require("users/userService").default;
impo... |
import React from 'react';
import { View, TouchableOpacity } from 'react-native';
import { Text, Button } from '../../library';
import stylesProvider from './styles';
import { withTheme, IThemeProps } from '../../core/theme/with-theme';
import { smartConnect } from '../../core/utils/smart-connect';
import { translate }... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------... |
/**
* 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
*/
import {
FlexRow,
FlexColumn,
FlexBox,
Input,
Text,
Tabs,
Tab,
Glyph,
ManagedTable,
Select,
st... |
import { each, get, isEmpty } from 'lodash';
import {
BrickAction,
ChildNodesType,
PageConfigType,
ComponentSchemaType,
PropsNodeType,
SelectedInfoType,
StateType,
BrickDesignStateType,
ConfigType,
STATE_PROPS,
} from '../types';
import { ReducerType } from '../reducers';
import { BrickdStoreType } ... |
<filename>src/stores/room-list/algorithms/list-ordering/Algorithm.ts<gh_stars>0
/*
Copyright 2020 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apa... |
<gh_stars>0
import codepipeline = require('@aws-cdk/aws-codepipeline')
import {
CodeBuildAction,
GitHubSourceAction,
GitHubTrigger,
ManualApprovalAction,
} from '@aws-cdk/aws-codepipeline-actions'
import { Role, ServicePrincipal } from '@aws-cdk/aws-iam'
import * as sns from '@aws-cdk/aws-sns'
import { StringPa... |
<reponame>but0n/Ashes
import { vec2, vec3, mat4, vec4, quat } from "../math";
export class Mesh {
attributes: Accessor[]; // AKA Vertexes
indices: Accessor; // AKA Triangles
// Render mode
mode: number;
data = {}; // Raw data
constructor(attributes: Accessor[], indices?: Accessor, mode =... |
import {
Socket,
SocketConnectOpts,
connect as connectSocket
} from "net";
import {
Readable,
Duplex
} from "stream";
export {
Socket,
SocketConnectOpts
};
export async function writeResponse(socket: Socket, httpVersion: string, statusCode: number, headers?: Record<string, string>): Prom... |
import { EtherscanProvider, StaticJsonRpcProvider } from '@ethersproject/providers';
import { transactor, TTransactor } from 'eth-components/functions';
import { useBalance, useContractLoader, useEventListener, useGasPrice, useOnRepetition } from 'eth-hooks';
import { useEthersContext } from 'eth-hooks/context';
import... |
<gh_stars>100-1000
import {
copyDelimiters,
reverseEval,
getFnInfo,
computeExpTransform,
getMapValue,
FnInfoType,
replaceExp,
} from '@/mal/utils'
import {
MalSeq,
getEvaluated,
isMap,
MalMap,
MalVal,
keywordFor as K,
isVector,
malEquals,
createList as L,
MalNode,
} from '@/mal/types'
import {
reactiv... |
/* eslint-disable no-underscore-dangle */
/* eslint-disable global-require */
import * as React from 'react';
import * as yup from 'yup';
import {
View,
Text,
StyleSheet,
Image,
Animated,
TouchableOpacity,
TouchableWithoutFeedback,
Keyboard,
PixelRatio,
} from 'react-native';
// import CreditCardTyp... |
/* @jsx jsx */
import React from "react"
import { Link, graphql } from "gatsby"
import {
Box,
Heading,
Text,
Image,
List,
ListItem,
Link as ChakraLink,
Divider,
BoxProps,
LinkProps,
ImageProps,
Grid,
Flex,
Badge,
Tooltip,
Icon,
PseudoBox,
Stack,
} from "@chakra-ui/core"
import { MDXP... |
import * as _ from 'lodash-es';
import * as fuzzy from 'fuzzysearch';
import { nodeStatus, volumeSnapshotStatus } from '@console/app/src/status';
import { getNodeRole, getLabelsAsString } from '@console/shared';
import { FilterValue, RowFilter } from '@console/dynamic-plugin-sdk';
import { routeStatus } from '../routes... |
<reponame>desfero/platform-frontend
import BigNumber from "bignumber.js";
import { floor } from "lodash";
import { appRoutes } from "../../components/appRoutes";
import { getRange } from "../../components/shared/formatters/FormatShortNumber";
import {
EAbbreviatedNumberOutputFormat,
ENumberInputFormat,
ENumberOu... |
<filename>ui-ngx/src/app/core/utils.ts
///
/// 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... |
<gh_stars>10-100
import modifyCode, { ModifyCodeResult } from 'modify-code';
import * as ts from 'typescript';
import { getHmrCode, hmrMetadataModules, hmrRuntimeModules } from './hmr';
import { nameConvention } from './name-convention';
import { IFileUnit, IPreprocessOptions, ResourceType } from './options';
import { ... |
<reponame>CiaccoDavide/DefinitelyTyped<filename>types/pollyjs__core/index.d.ts
// Type definitions for @pollyjs/core 4.3
// Project: https://github.com/netflix/pollyjs/tree/master/packages/@pollyjs/core
// Definitions by: feinoujc <https://github.com/feinoujc>
// <NAME> <https://github.com/BoruiGu>
// ... |
<reponame>AdamHerrmann/node-redis
import * as LinkedList from 'yallist';
import { AbortError } from '../errors';
import { RedisCommandArgument, RedisCommandArguments, RedisCommandRawReply } from '../commands';
// We need to use 'require', because it's not possible with Typescript to import
// classes that are exported... |
/**
* Copyright 2022 Fluence Labs Limited
*
* 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 ... |
import { debug } from "../../debug"
import * as node_fetch from "node-fetch"
import { Agent } from "http"
import HttpsProxyAgent from "https-proxy-agent"
import v from "voca"
import {
BitBucketServerPRDSL,
BitBucketServerCommit,
BitBucketServerPRComment,
JIRAIssue,
BitBucketServerPRActivity,
BitBucketServe... |
/* eslint-disable no-unused-expressions */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable no-loop-func */
import { useQuery } from '@apollo/client';
import { Typography } from '@material-ui/core';
import moment from 'moment';
import React, { useEffect } from 'react';
import { useTranslation } ... |
import evernote from "evernote";
import { defer, EMPTY, forkJoin, from, Observable } from "rxjs";
import {
bufferCount,
delay,
expand,
map,
reduce,
share,
switchMap,
tap,
} from "rxjs/operators";
import { config } from "./config";
import { log } from "./logger";
import { batchAndDelay, retryRequests } f... |
/// <reference path="../types/node/node.d.ts" />
/// <reference path="../types/log4js/log4js.d.ts" />
import * as fs from "fs";
import * as net from "net";
import * as colors from "colors";
import * as log4js from "log4js";
import {isNull, isDefined, isFunction, isArray, deferred} from "./utils/common";
import {IOptio... |
<gh_stars>0
import { ActivatedRoute } from '@angular/router';
import { Component, OnInit, ViewChild } from '@angular/core';
import { FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms';
import { HttpErrorResponse, HttpResponse } from '@angular/common/http';
import { JhiAlertService } from 'ng-jhipst... |
<filename>packages/vantui-cli/src/commands/mdcode.ts<gh_stars>100-1000
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable no-template-curly-in-string */
import { dirname, join } from 'path'
import { fileURLToPath } from 'url'
import fs from 'fs'
// eslint-disable-next-line import/no-named-as-defau... |
<reponame>michaelmior/github-action-benchmark
import * as core from '@actions/core';
import { promises as fs } from 'fs';
import * as os from 'os';
import * as path from 'path';
export type ToolType = 'cargo' | 'go' | 'benchmarkjs' | 'pytest' | 'googlecpp' | 'catch2' | 'jmh';
export interface Config {
name: string... |
import { BuildOptions, MetaIcon, Sources } from "./types";
import babelGenerator from "@babel/generator";
import * as t from "@babel/types";
import { pascalCase } from "change-case";
import { cli, Option } from "create-chakra-icons";
import degit from "degit";
import * as A from "fp-ts/Array";
import * as E from "fp-t... |
import * as myExtension from '../src/extension';
import * as vscodeTestContent from 'vscode-test-content';
import * as sinon from 'sinon';
import * as chai from 'chai';
import * as sinonChai from 'sinon-chai';
import * as mocha from 'mocha';
import { FileContents } from './../src/file-contents';
import { TemplateType }... |
<reponame>gromy92/zarm
import Color from 'color';
const darken = (color, percent) => {
const hsl = Color(color).hsl();
hsl.color[2] = hsl.color[2] - percent * 100;
return hsl.hex();
};
let base: any = {
// 主题色
theme_default: '#e6e6e6', // 默认色
theme_primary: '#00bc70', // 主色... |
import React, { useRef, useState, useEffect } from 'react';
import { IonPage, IonHeader, IonToolbar, IonTitle, IonContent, IonGrid, IonItem, IonLabel, IonList, IonButtons, IonButton, IonIcon, IonToggle, IonSegment, IonSegmentButton, IonModal, IonInput, IonItemSliding, IonItemOptions, IonItemOption, IonRefresher, IonRef... |
/* eslint-disable @typescript-eslint/ban-types */
import React, { useEffect } from "react";
import { ColumnAction } from "components/propertyControls/ColumnActionSelectorControl";
import Table from "components/designSystems/appsmith/Table";
import { debounce } from "lodash";
import { getMenuOptions } from "components/... |
import * as React from 'react'
import memoize from 'fast-memoize'
import {
ScrollViewProps,
View,
StyleSheet,
Animated,
NativeSyntheticEvent,
NativeScrollEvent,
ViewStyle
} from 'react-native'
const noop = () => { /**/ }
export type AnimationConfig = { animated?: boolean }
export type CollapsibleHeader... |
import { FC, useMemo } from "react";
import { SVGOverlay, Circle } from 'react-leaflet';
import rhumbDestination from '@turf/rhumb-destination';
import { point } from '@turf/helpers';
import { StyledTooltip as Tooltip } from './Tooltip';
import { LatLngTuple } from 'leaflet';
import { IDevice } from '../TableColumns/de... |
import { unpackParametersIntoObject } from "../../AddNode/lib/utils";
import { CreateFeedData, LocalFile, PipelineData } from "../types";
import ChrisAPIClient from "../../../../api/chrisapiclient";
import { InputType } from "../../AddNode/types";
import { Plugin, PluginInstance, PluginParameter } from "@fnndsc/chrisap... |
<gh_stars>0
import {decodeSystemProgram} from "./SystemProgram";
import {AbstractTrs80File} from "./Trs80File";
import {decodeTrs80File} from "./Trs80FileDecoder";
import {ProgramAnnotation} from "./ProgramAnnotation";
import {Trs80File} from "./Trs80FileDecoder";
// Low-speed header and sync constants.
const LOW_SPEE... |
<filename>core/clients/src/imodelhub/Versions.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.
*-------------... |
<gh_stars>1-10
// tools for using small wasm modules in the browser, deno and node
export {wrap};
type ModuleWrapper = {
imports: WebAssembly.Imports;
modulePromise: Promise<WebAssembly.Module>;
instancePromise: Promise<WebAssembly.Instance> | undefined;
maxPersistentMemory: number;
};
let modules: Record<stri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.