text
stringlengths
3.08k
15.5k
<gh_stars>10-100 import { Component, ComponentState, ComponentData } from '../component.js'; import { Entity } from '../entity.js'; import { ObjectPool } from '../pool.js'; import { World } from '../world.js'; import { Archetype } from './archetype.js'; import { ComponentClass, ComponentOf, Constructor, EntityO...
<gh_stars>1-10 /** * (c) Copyright 2019-20 Hewlett Packard Enterprise Development LP * * 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 * * Unles...
<reponame>Zielak/cardsGame import { def, limit, logs, sortByIdx } from "@cardsgame/utils" import { ArraySchema } from "@colyseus/schema" import { globalEntitiesContext } from "../annotations/entitiesContext" import type { State } from "../state" import type { ChildTrait } from "./child" import { executeHook } from "....
<reponame>kshetline/aw-clock import { TimePoller } from './time-poller'; import { NtpData } from './ntp-data'; import { isNumber, isString, processMillis } from '@tubular/util'; import { NtpPoller } from './ntp-poller'; import { BACK_IN_TIME_THRESHOLD, TimeInfo } from './shared-types'; import { abs, round } from '@tubu...
/** Returns a function that triggers an event. The function has members such * as `.handle()` to add a handler, `.id` (a string), `.handlerCount()` and * `.removeAllHandlers()`. * @param {EventHandleConfiguration|string} [config] Event id or configuration. * @returns {function} The event. */ export function crea...
/** * @license MIT * Copyright (c) 2022 <NAME>, <NAME>, <NAME>, <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 * ...
<reponame>artur-szpot/minion-official import { SyntaxElementEnum as SE, Syntax, SyntaxElementEnum } from '../classes/syntax' import { executeNext, executePrev, executeZoom, executeMaxWidthChange, executePageSizeChange, executeGotoPage, executeToggleInputMode } from './functions/displayChange' import { executeToggleSave...
import './polyfill' import commonConfig from '@src/common/config' import { defaultCanvasHeight, defaultCanvasWidth, EVENT_NAMES, isRuntimeSupported, } from '@src/common/constants' import Events from '@src/common/events' import { CommonConfig } from '@src/types/common-config' import { getNumberValueOfStyle, ...
<reponame>kontrollanten/node-uploadx import * as bytes from 'bytes'; import * as http from 'http'; import { BaseStorage, DiskStorage, DiskStorageOptions, File, FileInit, Metadata } from '../storages'; import { ERRORS, fail, getHeader, setHeaders, typeis } from '../utils'; import { BaseHandler, Headers } fro...
<reponame>seasketch/next<filename>packages/api/src/auth/jwks.ts import NodeRSA from "node-rsa"; import jwt from "jsonwebtoken"; import crypto from "crypto"; import { promisify } from "util"; import { DBClient } from "../dbClient"; const generateKeyPair = promisify(crypto.generateKeyPair); export type JWK = { kty: "R...
<reponame>fkochan/opyn-vaults<gh_stars>0 import { Artifacts, BuildInfo, CompilerInput, CompilerOutput, CompilerOutputBytecode, } from "hardhat/types"; import { parseFullyQualifiedName } from "hardhat/utils/contract-names"; import { LibraryNames } from "./libraries"; import { inferSolcVersion, measureExec...
import { AbstractControlOptions as NgAbstractControlOptions, ValidationErrors as AnyValidationErrors, } from '@angular/forms'; import { Observable } from 'rxjs'; import { FormControl } from './formControl'; import { FormArray } from './formArray'; import { FormGroup } from './formGroup'; import { IAbstractControl }...
import preact from "preact"; import {isNotLetter} from "../utils/strings"; import * as arrays from "../utils/arrays"; import {Link} from "preact-router/src"; interface RichContentProps { content: string limit?: number } export function RichContent(props: RichContentProps) { if (props.content) { return ( ...
import path from 'path'; import { Configuration, DefinePlugin, HotModuleReplacementPlugin, RuleSetRule } from 'webpack'; import HTMLWebpackPlugin from 'html-webpack-plugin'; import TerserPlugin from 'terser-webpack-plugin'; import PnpWebpackPlugin from 'pnp-webpack-plugin'; import CopyPlugin from 'copy-webpack-plug...
import { SubSelector, BrowserData, Selector, HTMLScannerOptions, } from "./types"; import puppeteer, { ElementHandle } from "puppeteer-core"; import { DocsetEntries, mergeEntries } from "docset-tools-types"; interface GetterFunction { (element: ElementHandle<HTMLElement>): Promise<ElementHandle<HTMLElement>>...
// Copyright (c) 2021-2022 <NAME> // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. import fc, { Arbitrary } from 'fast-check'; import { Byte, Char, id } from '@fp4ts/core'; import { Right, Set } from '@fp4ts/cats'; import { Parser, StringS...
import { PythonShell, Options } from 'python-shell'; import { NcConfig } from './configObj'; import { DefaultNcConfig } from './configDefault'; import { compileConfig } from './compileConfig'; // from: https://decipher.dev/30-seconds-of-typescript/docs/promisify/ const promisify = (func: Function) => (...args: any[]) ...
<gh_stars>0 import TelegramBot from "node-telegram-bot-api"; import { CronJob } from "cron"; const Holidays = require("date-holidays"); const SwedishHolidays = new Holidays("SE"); import * as wahlin from "./wahlin"; import { Browser } from "puppeteer"; // replace the value below with the Telegram token you receive fr...
import React, { useCallback, useEffect, useState, useRef, useMemo } from 'react' import { ActivityIndicator, FlatList, ScrollView } from 'react-native' import { useTranslation } from 'react-i18next' import { useTheme } from 'styled-components/native' import { Provider, ProviderDayAvailability } from 'core/services/api/...
<filename>src/model/Fleet.ts import Ship from "./Ship"; import MongoConnector from './db/MongoConnector'; const connector = new MongoConnector(); export default class Fleet { //Is ship allow to be placed next to each other? default is no private allowAdjacent = process.env.allow_adjacent || false; private...
import {SourceUnit, ContractDefinition, VariableDeclaration, UserDefinedTypeName, IdentifierPath} from 'solidity-ast'; import { findAll } from 'solidity-ast/utils'; import { getNodeBounds } from '../solc/ast-utils'; import {Transformation, TransformHelper} from './type'; import { TransformerTools } from '../transform'...
<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreDocument, DocumentReference } from '@angular/fire/firestore'; import { AlertController, IonItemSliding, ToastController } from '@ionic/angular'; import { ActivatedRoute, Router } from '@...
import registerComponent, { ComponentMeta, } from "@plasmicapp/host/registerComponent"; import { DynamicCollectionGrid, dynamicCollectionGridProps, useSelector, } from "@plasmicpkgs/plasmic-basic-components"; import React, { ReactNode, useEffect, useState } from "react"; const productFragment = ` fragment Prod...
import * as ui from '../ui'; import { types } from '../api_types'; import { myRunsStore } from './runsStore'; import { omegaup } from '../omegaup'; import { getMaxScore } from './navigation'; import T from '../lang'; export const scoreboardColors = [ '#FB3F51', '#FF5D40', '#FFA240', '#FFC740', '#59EA3A', '...
import { SlashCommand, CommandOptionType, SlashCreator, CommandContext } from 'slash-create'; import { randArray, randInt, times } from '../util'; const NEGATIVE_SIDED = [ '> {{username}} wanted a negative-sided die, which would have ripped space and time itself.', '> {{username}} wanted a negative-sided die, whic...
/* eslint-disable */ import React, { useState, useEffect } from 'react'; import { Collapse, Notification, Loading, Button, Icon, Divider } from '@alifd/next'; import MobileScaffoldCard from '@/components/MobileScaffoldCard'; import ScaffoldCard from '@/components/ScaffoldCard'; import NotFound from '@/components/NotFou...
<gh_stars>1-10 import { SecureContextConfig } from './interfaces' import { DIDClient } from "@verida/did-client" import { DIDDocument, Interfaces } from "@verida/did-document" const Url = require('url-parse') /** * Class representing the link between a DID and Storage context */ export default class StorageLink { ...
<gh_stars>10-100 import { GrantTypeEnum } from '../enum/grant-type.enum'; import { Injectable, NotFoundException, UnauthorizedException, } from '@nestjs/common'; import * as Sentry from '@sentry/node'; import { InvalidClientCredentialsError } from '../exception/invalid-client-credentials.error'; import { ClientCr...
import fs from "fs"; import HtmlWebpackPlugin from "html-webpack-plugin"; import path from "path"; import webpack from "webpack"; import { getBundleIntrospections } from "../../../components/procedures/getBundleIntrospection"; import { RearguardConfig } from "../../../configs/RearguardConfig"; import { getDLLAssetsPa...
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Thingpedia // // Copyright 2019-2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance wi...
import '../style/blocker.scss'; import {browser} from 'webextension-polyfill-ts'; import {checkDisablelist} from './util/link-util'; import {Websites, pageType} from './util/page-type'; import {shouldBlock} from './util/result-util'; import {ClassifierOutput} from './detection/classifier'; // check if the extension ha...
import config from "./config/config"; import utils from "./utils/utils"; import MEE6Api, { GuildDetailsPlayer } from "./core/MEE6Api"; const mee6 = new MEE6Api(); var currentData: any = {}; var currentTab: string | null = null; /* ###### # ...
import { Box, Button, Grid, Link, styled, Theme, Typography, useMediaQuery, useTheme, SvgIcon, // withStyles, } from "@material-ui/core"; import React from "react"; import { Header } from "./Header"; import HomebaseLogo from "assets/logos/homebase_logo.svg"; import Vector1 from "assets/vectors/Vec...
/** * Copyright (c) Microsoft Corporation * All rights reserved. * * MIT License * * 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 * th...
<reponame>iofirag/stenciljs-gis-example import * as L from 'leaflet'; // Leaflet Heat-Map import 'leaflet.heat'; // Leaflet Marker-Cluster import 'leaflet.markercluster/dist/MarkerCluster.css'; import 'leaflet.markercluster/dist/MarkerCluster.Default.css'; import 'leaflet.markercluster'; import * as _ from 'lodash'; ...
<filename>src/extension.ts import * as vscode from "vscode"; import * as Parser from "web-tree-sitter"; import * as path from "path"; import { LanguageStillLoadingError, UnsupportedLanguageError } from "./errors"; interface Language { module: string; parser?: Parser; } // Be sure to declare the language in packag...
<filename>src/ts/clients/GethClient.ts const axios = require("axios").default import { BigNumber } from "ethers" import { VError } from "verror" import { MessageType, Trace, TransactionDetails } from "../transaction" import { transactionHash } from "../utils/regEx" import { hexlify, toUtf8String } from "ethers/lib/ut...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *------------------------------------------------...
import {Injectable} from '@angular/core'; import {HttpClient, HttpHeaders} from '@angular/common/http'; import {catchError, filter, map, switchMap, tap} from 'rxjs/operators'; import {HTTP} from '../../../app.constants'; import {UsersGetAllResponse} from '../../../business-logic/model/users/usersGetAllResponse'; import...
<filename>models/squeezenet/squeezenet.ts /** * @license * Copyright 2017 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/licen...
// Color Names generated from http://chir.ag/projects/name-that-color export const Colors = { WHITE: "#FFFFFF", WHITE_SMOKE: "#F4F4F4", POLAR: "#E9FAF3", GEYSER: "#D3DEE3", GEYSER_LIGHT: "#E7E7E7", ATHENS_GRAY: "#EBEFF2", CONCRETE: "#F3F3F3", MYSTIC: "#E1E8ED", AQUA_HAZE: "#EEF2F5", GRAY_CHATEAU: "#...
import { getCategories } from './categories'; import { DecimalCount } from '../types/displayValue'; import { toDateTimeValueFormatter } from './dateTimeFormatters'; import { getOffsetFromSIPrefix, SIPrefix, currency } from './symbolFormatters'; import { TimeZone } from '../types'; export interface FormattedValue { t...
/* * Copyright 2020 IBM 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 obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import { XsdElement } from '@ips/shared-js'; import { xsdRootElementSelector, xsdToString } from '@ips/shared-js/xsd'; import { le } from 'binary-search-bounds'; import { Dictionary } from 'lodash'; import values from 'lodash-es/values'; import { ThunkAction } from 'redux-thunk'; import * as Stringifier from 'xmlbuilde...
<reponame>juan-rsk/safe-react import contract from 'truffle-contract' import ProxyFactorySol from '../../rsk-abis/GnosisSafeProxyFactory.json' import GnosisSafeSol from '../../rsk-abis/GnosisSafe.json' import SafeProxy from '@gnosis.pm/safe-contracts/build/contracts/GnosisSafeProxy.json' import { ensureOnce } from 'src...
<reponame>roynalnaruto/optics-monorepo import { optics, ethers } from 'hardhat'; import { expect } from 'chai'; import * as utils from './utils'; import { getTestDeploy } from '../testChain'; import { increaseTimestampBy } from '../utils'; import { Updater, MessageStatus } from '../../lib'; import { Update, Signer, By...
import React, { useRef, useImperativeHandle } from 'react'; import styled from 'styled-components'; import { OverflowProps, overflow, height, HeightProps, compose, } from 'styled-system'; import { useDatepicker, MonthType, UseDatepickerProps, FormatFunction, dayLabelFormat as dayLabelFormatFn, wee...
import React, { useCallback, useMemo } from "react"; import { Link } from "react-router-dom"; import { isEmpty } from "lodash"; import { Icon, Tooltip, CircularProgress } from "@amplication/design-system"; import { useQuery } from "@apollo/client"; import * as models from "../models"; import { EnumButtonStyle, Button...
<reponame>guzmanoj/angular-components import { Subject } from 'rxjs'; import { debounceTime, distinctUntilChanged, filter, map, startWith, takeUntil, tap, withLatestFrom, } from 'rxjs/operators'; import { ListRange } from '@angular/cdk/collections'; import { CdkVirtualForOf, Cdk...
import { utils } from '@common/utils'; import { EJobStatus, IJobResponse, IJobSchema } from '@models'; import { pubSub } from '@config/pubsub'; import { addTrace } from '@functions'; import { ICapacity } from '@interfaces'; import { crdconfig, ICrdConfig } from '../../spark-operator/base.crd'; import { spark, sparkCred...
<filename>src/handler/colors.ts import { Neovim } from '@chemzqm/neovim' import { CancellationTokenSource, ColorInformation, Disposable, Position } from 'vscode-languageserver-protocol' import events from '../events' import extensions from '../extensions' import languages from '../languages' import Document from '../mo...
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import chalk from '@casual-simulation/chalk'; import { getType } from '../get-type'; import { format as p...
import React, { useCallback, useEffect, useState } from 'react' import { EventEmitter } from 'events' import MsgrContext, { accountService, initialState, PersistentOptionsKeys } from './context' import { initialLaunch, openingDaemon, openingClients, openingListingEvents, openingLocalSettings, openingCloseConvos,...
<reponame>Iffyyy/vue-admin-demo // Parse the time to string export const parseTime = ( time?: object | string | number | null, cFormat?: string ): string | null => { if (time === undefined || !time) { return null } const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}' let date: Date if (typeof time === ...
import { TSTable } from './tstable'; import TSParserFactory from './parser/tsparserfactory'; import GroupCallModifierTerm from './expressions/terms/groupcallmodifierterm'; import { tstables } from './tstables'; import { tableparser } from './parser/tableparser'; import { callparser } from './parser/callparser'; import ...
<reponame>Jytesh/node-sql-ts<gh_stars>10-100 /* eslint-disable max-classes-per-file */ import { INodeable } from '../nodeable.js'; import type { AtNode, BinaryNode, CaseNode, CastNode, InNode, NotInNode, OrderByValueNode, PostfixUnaryNode, SliceNode, TernaryNode } from './_intern...
/** * Defines the Alignment. They are * * near - Align the element to the left. * * center - Align the element to the center. * * far - Align the element to the right. * * */ export type Alignment = /** Define the left alignment. */ 'Near' | /** Define the center alignment. */ 'Center' | /*...
import React from 'react' import { View, ScrollView, TouchableOpacity, Text as TextNative, TouchableWithoutFeedback, StatusBar, } from 'react-native' import { Layout, Icon } from '@ui-kitten/components' import { useTranslation } from 'react-i18next' import { useNavigation } from '@berty-tech/navigation' import {...
// // Copyright (c) Microsoft. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // import express from 'express'; import asyncHandler from 'express-async-handler'; const router = express.Router(); import { getProviders } from '../../../../transitional'; import { Te...
import { QueryFn, DocumentChangeAction } from '@angular/fire/firestore'; import { Observable, combineLatest, Subscription, of } from 'rxjs'; import { arrayUpdate, arrayAdd, arrayRemove, withTransaction, arrayUpsert } from '@datorama/akita'; import { tap, finalize } from 'rxjs/operators'; import { CollectionService, Col...
const workCondition = `L’équipe de 5 médecins en place cherche 2 nouveaux confrères en activité libérale à temps plein pour renforcer l’effectif et anticiper 2 départs en retraite. Cabinet médical pluridisciplinaire (non labellisé) accueillant : - 5 médecins généralistes, 1 médecin remplaçant, - 1 dentiste, 1 ostéopat...
import * as React from "react"; import { ScrollView, StyleSheet, View } from "react-native"; import { Button, Layout, Text, Input, Card, RadioGroup, Radio, } from "@ui-kitten/components"; import { useSelector } from "react-redux"; import { darkModeSelector, nicknameSelector, radi...
import NetgearRouter = require('netgear'); // note: options can be passed in here. See login options. const router = new NetgearRouter(); // discover a netgear router, including IP address and SOAP port. The discovered address and SOAP port will override previous settings router .discover() .then(discovered =...
import Reconciler, { OpaqueHandle } from "react-reconciler"; import { Type, Instance, TextInstance, HostContext, PublicInstance, Props, TimeoutHandle, NoTimeout, UpdatePayload, Container } from "./json-renderer-types"; import { debug } from "../logger"; const context: HostContext = { name: "cont...
import { Peripheral } from "@abandonware/noble"; import { NobleDevice } from "./nobleabstraction"; import { BaseHub } from "./hubs/basehub"; import { DuploTrainBase } from "./hubs/duplotrainbase"; import { Hub } from "./hubs/hub"; import { Mario } from "./hubs/mario"; import { MoveHub } from "./hubs/movehub"; import ...
import React, { useState, ReactText, ReactNode, RefObject, useRef, useEffect, } from 'react'; import { View, StyleSheet, Pressable, ScrollView, Text, Animated, } from 'react-native'; import { colors } from '../colors'; import Label from './Label'; import Modal from './Modal'; interface Item { ...
<reponame>saltyJeff/kangrat import {Kangrat, TemplateElement, Schema, BowerElement} from '../kangratschema'; import * as fs from 'fs-extra'; import * as winston from 'winston'; import * as path from 'path'; import * as bower from 'bower'; //the replacables const IMPORTS = `<!--KANGRAT-IMPORTS-->`; const BINDINGS = `[/*...
import { StreamStore, ReadStreamResult } from '../types/stream-store' import { StreamSubscriptionOptions, StreamStoreNotifier, StreamSubscription, SubscribeAt, MessageProcessor, } from '../types/subscriptions' import { createResetEvent } from '../utils/reset-event' import { DisposedError } from '../errors/err...
<filename>packages/common/src/types.ts import type { Readable, Writable } from 'svelte/store'; export type DeepSetResult<Data extends Obj, Value> = { [key in keyof Data]: Data[key] extends Obj ? DeepSetResult<Data[key], Value> : Value; }; export type CreateSubmitHandlerConfig<Data extends Obj> = { onSubmi...
<gh_stars>0 // Copyright 2017-2021 @axiasolar-js/types authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { CodecHash, Hash } from '../interfaces/runtime'; import type { Constructor, ISet, Registry } from '../types'; import { assert, BN, bnToBn, bnToU8a, isBn, isNumber, isString, isU8a, isUndef...
import ArrayBufferSlice from "../ArrayBufferSlice"; import { TileState, Texture} from "../Common/N64/RDP"; import { RSPSharedOutput, Vertex } from "./f3dex"; import { align, assert, hexzero } from "../util"; import { ImageSize, decodeTex_RGBA16, decodeTex_RGBA32, decodeTex_CI4, parseTLUT, TextureLUT, decodeTex_I8 } fro...
import { RedirectRpcClient } from '@nimiq/rpc'; import { RequestBehavior, RedirectRequestBehavior, IFrameRequestBehavior, } from './RequestBehavior'; import { KeyguardCommand } from './KeyguardCommand'; import { CreateRequest, DeriveAddressRequest, DeriveAddressesRequest, EmptyRequest, ...
<filename>otros/WB0B30DGR/ace-angular/projects/ng-ace-demo/src/app/pages/cards/cards.component.ts import { Component, OnInit, AfterViewInit, NgZone, ChangeDetectorRef, ViewEncapsulation } from '@angular/core'; import { DomService } from 'ng-ace-admin'; import Sortable from 'sortablejs'; import Util from '@ace/util';...
import { ENV } from '@ember/-internals/environment'; import { peekMeta } from '@ember/-internals/meta'; import { schedule } from '@ember/runloop'; import { combine, CURRENT_TAG, Tag, validate, value } from '@glimmer/reference'; import { getChainTagsForKey } from './chain-tags'; import changeEvent from './change_event';...
<reponame>Leomotors/s-bot-framework<gh_stars>0 import { AudioPlayer, AudioPlayerError, AudioPlayerStatus, AudioResource, createAudioPlayer, createAudioResource, DiscordGatewayAdapterCreator, entersState, getVoiceConnection, joinVoiceChannel, VoiceConnectionStatus, } from "@di...
import { SPSRouteRenderer, prod, scullyConfig, registerPlugin, ScullyConfig, setPluginConfig, log, logError, enableSPS, } from '@scullyio/scully'; import { docLink } from '@scullyio/scully-plugin-docs-link-update'; import { GoogleAnalytics } from '@scullyio/scully-plugin-google-analytics'; import { Lo...
<reponame>flying-sheep/optolith-client import { StringKeyObject } from "../../../Data/Record" import { SID } from "../../Models/Wiki/wikiTypeHelpers" import { SortNames } from "../../Views/Universal/SortOptions" export interface RawUser { id: string displayName: string } export interface RawHeroBase { readonly ...
<reponame>aaatifali/edcertsWallet<gh_stars>0 /* tslint:disable:no-unused-variable */ import { HttpModule, ResponseOptions, Response, ResponseType, RequestMethod, Http, BaseRequestOptions, XHRBackend } from '@angular/http'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; imp...
<reponame>ericyd/vscode-markdown 'use strict'; // See https://github.com/Microsoft/vscode/tree/master/extensions/markdown/src import * as fs from "fs"; import * as path from 'path'; import * as vscode from 'vscode'; import { officialExtPath, slugify } from './util'; const hljs = require(path.join(officialExtPath, 'n...
import path from "path" import fs from "fs" import { reqREG, wxsSrcREG, importREG, emitFile, externals, EXTENSIONS, getFullPath, replaceRules, extractConfig, resolveImports, parseVueRequest, getRegExpMatchedCode, getNativeImportsHelperCode, cacheAssetPath, } from "../utils" import { compil...
<reponame>sandeepxooa/Hyperledger-Fabric-on-Azure-Kubernetes-Service import Axios, { AxiosRequestConfig } from "axios"; import * as chalk from "chalk"; import { ResourceManagementClient } from "@azure/arm-resources"; import { interactiveLogin, AzureCliCredentials } from "@azure/ms-rest-nodeauth"; import { ConnectionPro...
<filename>packages/sdk-codegen/src/exampleInfo.ts /* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including...
import "./common.scss"; import * as SDK from "azure-devops-extension-sdk"; import * as React from "react"; import { Button } from "azure-devops-ui/Button"; import { ButtonGroup } from "azure-devops-ui/ButtonGroup"; import * as Spinner from "react-spinkit"; import { showRootComponent } from "./common"; import { SummaryC...
<reponame>denis-colliot/flipper /** * 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 pako from 'pako'; import {Request, Header, ResponseInfo} from './types'; impo...
import { Injectable, EventEmitter } from '@angular/core'; import { Node, Link, ForceDirectedGraph } from './models'; import * as d3 from 'd3'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import { json } from 'd3'; import { Test } from 'src/app/test'; imp...
/*! * Copyright (c) 2019 <NAME>. All rights reserved. * Licensed under the MIT license. * See LICENSE file in the project root for full license information. */ import * as colors from 'colors/safe'; import * as fs from 'fs'; import * as path from 'path'; import * as prompt from 'prompt'; import * as shell from 'she...
/* eslint-disable no-undef */ import * as React from 'react'; import * as _ from 'lodash-es'; // eslint-disable-next-line no-unused-vars import { K8sResourceKindReference, referenceFor } from '../module/k8s'; import { cloneBuild, formatBuildDuration } from '../module/k8s/builds'; import { ColHead, DetailsPage, List, L...
<gh_stars>1-10 'use strict'; import { CancellationToken, DocumentSymbol, DocumentSymbolProvider, Location, Range, SymbolInformation, SymbolKind, TextDocument, Uri } from 'vscode'; import { LanguageClient } from 'vscode-languageclient'; import { IFileSystem } from '../common/platform/types'; import { createDefe...
/** * Copyright 2018 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 applic...
import React, { useEffect, useState } from 'react'; import { ActionSheetIOS, Modal, Platform, RefreshControl, SafeAreaView, TouchableOpacity, TouchableWithoutFeedback, View, VirtualizedList, } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import { CustomHeader, Fo...
/* * Copyright (c) 2018 <NAME> (<EMAIL>). * * 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 agre...
import {randomBytes} from 'crypto' import {promises as fs} from 'fs' import {createServer, IncomingMessage, ServerResponse} from 'http' import {Socket} from 'net' import {join, basename} from 'path' import {URL} from 'url' import {promisify} from 'util' import {HttpStatus} from '@nestjs/common' import Bluebird from 'b...
import { bot } from "./config"; import { ReposGetResponse, ReposCreateForkParams, ReposListForOrgParams, ReposListForOrgResponseItem, AppsListInstallationsResponseItem, AppsListReposResponse, AppsListReposResponseRepositoriesItem } from "@octokit/rest"; import { Application } from "probot"; import { GitHubAPI ...
<filename>build-package.ts import * as fs from "fs"; import { EOL } from "os"; import * as path from "path"; import * as shelljs from "shelljs"; import * as winston from "winston"; import * as util from "util"; const logger = new winston.Logger({ level: "silly", transports: [ new (winston.transports.C...
<reponame>smahr/cloud-commerce-spartacus-storefront import { HttpClientTestingModule, HttpTestingController, TestRequest, } from '@angular/common/http/testing'; import { TestBed } from '@angular/core/testing'; import { CMS_COMPONENT_NORMALIZER } from '../../../cms/connectors/component/converters'; import { CmsStr...
<filename>packages/to-dom-nodes/src/index.ts import { defaultMetaTransformer, render as genericHtmlRender, RenderMarkRule, renderNodeRule, renderMarkRule, TransformedMeta, TransformMetaFn, } from 'datocms-structured-text-generic-html-renderer'; import { Adapter, isBlock, isInlineItem, isItemLink, ...
import React from "react"; import { IButtonProps, MaybeElement, Button, IconName, } from "@blueprintjs/core"; import styled, { css } from "styled-components"; import { ButtonStyle } from "widgets/ButtonWidget"; import { Theme, darkenHover, darkenActive } from "constants/DefaultTheme"; import _ from "lodash"; im...
// (C) 2007-2021 GoodData Corporation import * as fs from "fs"; import * as path from "path"; import { format } from "prettier"; import { OptionalKind, Project, SourceFile, VariableDeclarationKind, VariableStatementStructure, } from "ts-morph"; import { IRecording, RecordingType } from "../recordin...
<filename>src/canvas-utils.ts import { Tween, Easing, update } from '@tweenjs/tween.js'; import { Dropdown, DropdownOption, DropdownSeparator } from './dropdown'; import './canvas-utils.less' import { Message } from './message'; export abstract class Stage { public ctx: StageContext2D; public origin = { x: 0, y:...
<gh_stars>0 import { SuperComponent, wxComponent } from '../common/src/index'; import config from '../common/config'; import { MessageProps } from './message.interface'; import props from './props'; const { prefix } = config; const name = `${prefix}-message`; // 展示动画持续时间 const SHOW_DURATION = 500; @wxComponent() expo...