text
stringlengths
3.3k
33k
import * as React from "react" import {Condition, ConditionBuilder, ConditionJSONProps, SetConditionFn, UndefinedCondition} from "./Condition"; import {Process} from "./Processes"; import {External} from "./Externals"; import {ChangeEvent, RefObject} from "react"; import {Transformer} from "./Transformer"; import {Form...
import { join } from 'path'; import { homedir } from 'os'; import { readdirSync, existsSync, readFileSync, lstatSync, unlinkSync, rmdirSync } from 'fs'; import { Config } from './config'; import chokidar from 'chokidar' import Zip from 'adm-zip'; // import log from 'electron-log' import { ipcRenderer } from 'electron';...
<filename>system/lib/base/MasterSlaveBaseNodeDriver.ts import DriverBase from '../../base/DriverBase'; import IndexedEvents from '../IndexedEvents'; import Polling from '../Polling'; import Sender from '../Sender'; import { hexNumToString, isEqualUint8Array, stringToUint8Array } from '../binaryHelpers'; import Co...
import { ActionExecutionContext, BlueprintMappings, ConfigItemValue, IBlueprintConfig, IBlueprintMutatablePart, IBlueprintPart, IBlueprintPartInstance, IBlueprintPiece, IBlueprintPieceInstance, IBlueprintResolvedPieceInstance, OmitId } from '@sofie-automation/blueprints-integration' import { DVEConfigInput, ...
export var SpatialFilterUtils = { SpatialFilterPolygon: null, SpatialFilterCircle: null, SpatialFilterVertex: null, SpatialFilterMiddleVertex: null, }; SpatialFilterUtils.SpatialFilterPolygon = L.Polygon.extend({ options: { className: "leaflet-interactive spatial-filter-polygon" } }); SpatialFilterUtils.Spati...
<filename>src/worker/executors/select/order_by.ts<gh_stars>100-1000 import { Select } from "./"; import { removeSpace, getDataType, getError, LogHelper } from "@/worker/utils"; import { ERROR_TYPE, DATA_TYPE, ICaseOption, IColumn, IOrderQuery } from "@/common"; export const processGroupDistinctAggr = function (this: S...
/* * Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * BK-BASE 蓝鲸基础平台 is licensed under the MIT License. * * License for BK-BASE 蓝鲸基础平台: * ----------------------------------------------------...
<filename>src/utils/tistoryUtils.ts import { getDrive, getLoginPage, copyClipBoard, btnClick, switchToFrame, switchToDefault, switchToParent, } from "./webDriverUtils"; import { WebDriver, By, Key, until } from "selenium-webdriver"; import { getRandom } from "."; import { write } from "clipboardy"; /** ...
import { create, tsx, invalidator } from "@dojo/framework/core/vdom"; import icache from "@dojo/framework/core/middleware/icache"; import cache from "@dojo/framework/core/middleware/cache"; import dimensions from "@dojo/framework/core/middleware/dimensions"; import { widgetInstanceMap } from "@dojo/framework/core/vdom"...
<filename>apps/api/src/services/data-export/data-export-fields.ts import { orderBy } from 'lodash'; import { PromptQuestion } from '@common/prompts'; import { ExportSectionId, ExportField as BaseExportField } from '@common/types/models'; import { NutrientTableCsvMappingField } from '@api/db/models/foods'; import { Nutr...
<filename>pulumi/folio/folio.ts import * as k8s from "@pulumi/kubernetes"; import * as input from "@pulumi/kubernetes/types/input"; import * as eks from "@pulumi/eks"; import { Resource } from "@pulumi/pulumi"; import { SecretArgs } from "./interfaces/SecretArgs"; import { FolioModule } from "./classes/FolioModule"; ...
import { FastifyRequest, FastifyReply } from "fastify"; import { MangaService } from "../lib/manga/services"; import validator from "validator"; import MangaSchema from "../models/MangaSchema"; import moment from "moment"; import { config } from '../config'; import { mangaServicesResponse, mangaServicesResponsePages } ...
<filename>src/controller/index.ts<gh_stars>0 // SPDX-FileCopyrightText: 2018-2019 <NAME> <<EMAIL>> // SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> // // SPDX-License-Identifier: MIT import { Engine, TilingEngine } from "../engine"; import Window from "../engine/window"; import { WindowState } from "../engine/window";...
import { BasicContainer, Container } from 'engine/container' import { Creature } from 'engine/creature' import { Item } from 'engine/item' import { TerrainType, TerrainTypes } from 'engine/terrain-db' import { Scriptable } from 'engine/types' import { keys, stubTrue } from 'lodash' import { filter, findIndex } from 'lo...
<gh_stars>0 /** * Precisely APIs * Enhance & enrich your data, applications, business processes, and workflows with rich location, information, and identify APIs. * * The version of the OpenAPI document: 11.9.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * ht...
<gh_stars>1-10 import * as aws from '@pulumi/aws'; import * as TE from 'fp-ts/lib/TaskEither'; import * as T from 'fp-ts/lib/Task'; import * as E from 'fp-ts/lib/Either'; import * as W from 'fp-ts/lib/Writer'; import { pipe } from 'fp-ts/lib/pipeable'; import { LambdaOptions, LambdaExecutionError, LambdaResource } f...
import SalesforceSchemaService from '@lib/salesforce/salesforceSchemaService'; import { Logger , LifecyclePolicy, injectable } from '@vlocode/core'; import JsForceConnectionProvider from '@lib/salesforce/connection/jsForceConnectionProvider'; import { CancellationToken } from 'vscode'; import { Timer , AsyncEventEmitte...
import Box from "@material-ui/core/Box"; import Button from "@material-ui/core/Button"; import Dialog from "@material-ui/core/Dialog"; import DialogActions from "@material-ui/core/DialogActions"; import DialogContent from "@material-ui/core/DialogContent"; import DialogTitle from "@material-ui/core/DialogTitle"; import...
import { flag } from "../lib" const STRINGLITERALS = [ <const>"never", <const>"flag1", <const>"flag2", <const>"flag3", <const>"all" ]; const NUMBERLITERALS = [ <const>0, <const>1, <const>2, <const>3, <const>4, <const>5, <const>6, <const>7 ]; const FLAGS = [ <const>0, <const>1, <const>2, ...
<reponame>blslade-neumont/turbo-winner<filename>api-server/src/game/game.ts<gh_stars>0 import { Player, PLAYER_REMOVAL_TIME } from './player'; import { Bullet, BULLET_DAMAGE } from "./bullet"; import { io } from '../sockets'; import { PlayerDetailsT, BulletDetailsT, BlockDetailsT, WorldDetailsT } from './packet-meta'; ...
import React, { useState } from 'react' import { Link, useParams, useLocation } from 'react-router-dom' import FavoriteIcon from '@material-ui/icons/Favorite' import FavoriteBorderIcon from '@material-ui/icons/FavoriteBorder' import ErrorOutlineIcon from '@material-ui/icons/ErrorOutline' import DiscFullIcon from '@mate...
import { sharedPlayer } from "config/Config"; import { Log } from "Log"; import { BuildingAbilityBase, Wc3BuildingAbility } from "systems/abilities/BuildingAbilityBase"; import { IAbility } from "systems/abilities/IAbility"; import { AbilitySlotManager } from "systems/ability-slots/AbilitySlotManager"; import { Craftin...
import { Client } from 'eris' import { promisify } from 'util' import { MongoClient, Document } from 'mongodb' import { JwtPayload, verify, sign } from 'jsonwebtoken' import { NextApiRequest, NextApiResponse } from 'next' import { randomBytes, createCipheriv, createDecipheriv, createHash } from 'crypto' import { Apollo...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'rea...
<filename>packages/plugins/local-storage/src/local-fs.ts<gh_stars>0 /* eslint-disable no-undef */ import buildDebug from 'debug'; import fs from 'fs'; import _ from 'lodash'; import path from 'path'; import { VerdaccioError, errorUtils } from '@verdaccio/core'; import { readFile, unlockFile } from '@verdaccio/file-loc...
<filename>src/Altinn.Apps/AppFrontend/react/altinn-app-frontend/src/utils/formLayout.ts import { ITextResource } from 'altinn-shared/types'; import { IInstantiationButtonProps } from 'src/components/base/InstantiationButtonComponent'; import { IAttachmentState } from 'src/shared/resources/attachments/attachmentReducer'...
import styled, { css } from 'styled-components'; import { rgba, rem, tint, shade, em } from 'polished'; import { FeaturedIcon } from './FeaturedIcon'; import { a11yColor } from '../../../themes'; import { white, black } from '../../../color'; const buttonCore = css` position: relative; display: flex; align-ite...
<filename>src/RequestHandler.ts /* eslint-disable @typescript-eslint/ban-types */ /* eslint-disable no-async-promise-executor */ import { EventEmitter } from "events"; import crypto from "crypto"; import c from "centra"; import Endpoints from "./Endpoints"; import FormData from "form-data"; const { version } = requir...
import { LoadingSpinner } from '@sourcegraph/react-loading-spinner' import AlertCircleIcon from 'mdi-react/AlertCircleIcon' import MapSearchIcon from 'mdi-react/MapSearchIcon' import * as React from 'react' import { matchPath, Route, RouteComponentProps, Switch } from 'react-router' import { combineLatest, merge, Obser...
import Button from "@material-ui/core/Button"; import CircularProgress from "@material-ui/core/CircularProgress"; import Dialog from "@material-ui/core/Dialog"; import DialogActions from "@material-ui/core/DialogActions"; import DialogContent from "@material-ui/core/DialogContent"; import DialogTitle from "@material-ui...
<filename>src/atlasComponents/userAnnotations/tools/poly.ts import { IAnnotationTools, IAnnotationGeometry, TAnnotationEvent, IAnnotationEvents, AbsToolClass, INgAnnotationTypes, TNgAnnotationEv, TToolType, TBaseAnnotationGeomtrySpec, TSandsPolyLine, getCoord, TCallbackFunction } from "./type"; import { Point, TPointJs...
/** * @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 { Path, getSystemPath, join as _join, normalize, virtualFs } from '@angular-devkit/core'; import { NodeJsSyncH...
import { MultiGraph } from "graphology"; import { debug, error } from "loglevel"; import { normalizePath, Notice, Pos, TFile, TFolder } from "obsidian"; import { wait } from "obsidian-community-lib"; import { addCSVCrumbs, getCSVRows } from "./AlternativeHierarchies/CSVCrumbs"; import { addDataviewNotesToGraph } from "...
import invariant from "invariant"; import React, { Component, ComponentType } from "react"; import { Platform, ScrollViewProps, SectionBase, SectionListProps, ViewToken, VirtualizedList, } from "react-native"; import ItemWithSeparator from "./ItemWithSeparator"; import ScrollView, { ScrollResponderType } fr...
<gh_stars>0 import { bind, forwardRef, Component, ComponentRef, Directive, DynamicComponentLoader, ElementRef, Host, Injectable, ResolvedBinding, SkipSelf, Injector, View, ViewEncapsulation } from 'angular2/core'; import {ObservableWrapper, Promise, PromiseWrapper} from 'angular2/src/core/f...
<filename>packages/compiler-ssr/src/transforms/ssrTransformComponent.ts import { NodeTransform, NodeTypes, ElementTypes, createCallExpression, resolveComponentType, buildProps, ComponentNode, SlotFnBuilder, createFunctionExpression, buildSlots, FunctionExpression, TemplateChildNode, ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { Component, Fragment } from 'react'; import { EuiButton, ...
/* * Copyright (c) 2018. <NAME> (https://reactivechart.com) */ import {ICanvasChildShape} from "../index"; import {applyNone, CanvasContext} from "../../context/index"; import {normalizeRad, pi05, pi1, pi15, pi2} from "../../../../../math/transform/polar"; import {ICanvasConfig} from "../create"; import {BoundingBo...
import {directions, is_close} from "../utils"; import {DialogManager} from "../utils/DialogManager"; import {NPC, npc_types} from "../NPC"; import {GoldenSun} from "../GoldenSun"; import {Button} from "../XGamepad"; import {BattleEvent} from "./BattleEvent"; import {BranchEvent} from "./BranchEvent"; import {EventValue...
import { State, Action, StateContext, Selector, Actions, NgxsOnInit, ofActionSuccessful } from '@ngxs/store'; import { FirebaseService } from '../services/firebase.service'; import { forkJoin, Observable, of } from 'rxjs'; import { map, debounceTime, mergeMap } from 'rxjs/operators'; import { SelfEvalPhase, Documen...
import React, { useState, useContext } from 'react' import { View, Text, StyleSheet, Linking, FlatList, Image, TouchableOpacity, StatusBar, ImageSourcePropType } from 'react-native' import { RFValue } from 'react-native-responsive-fontsize' import { AppBottomSheetTouchableWrapper } from '../../components/AppBottomSheet...
/** * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.o...
<gh_stars>100-1000 type ModuleDescriptor = { rpcHandle: string methods: MethodDescriptor[] } type MethodDescriptor = { name: string } type DecentralandInterface = { loadModule(moduleName: string): PromiseLike<ModuleDescriptor> callRpc(moduleHandle: string, methodName: string, args: ArrayLike<any>): PromiseLik...
import React from 'react' import styles from './TopBar.module.scss' import API, { staticData, defineCurrentTerm } from '../../utils/api' import { Comparables } from '../../domain/Comparable' import Degree from '../../domain/Degree' import Course from '../../domain/Course' import Shift from '../../domain/Shift' import ...
<filename>control/src/lib/services/Tick.ts import {ITickObserver} from './ITickObserver' import { MarketUtilities } from '../utilities/marketUtilities'; import { TwsService } from './tws.service'; import { Day } from 'jde-framework'; import { ProtoUtilities } from 'jde-framework'; import * as ib2 from 'jde-cpp/ib'; ...
<reponame>tatthien/og-image<filename>api/_lib/template.ts import { readFileSync } from 'fs'; import marked from 'marked'; import { sanitizeHtml } from './sanitizer'; import { ParsedRequest } from './types'; const twemoji = require('twemoji'); const twOptions = { folder: 'svg', ext: '.svg' }; const emojify = (text: str...
/* * Copyright (c) 2020 Broadcom. * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifi...
<gh_stars>1-10 import { useClickable, UseClickableProps } from "@chakra-ui/clickable" import { useDescendant, useDescendants } from "@chakra-ui/descendant" import { useControllableState, useId, useSafeLayoutEffect, } from "@chakra-ui/hooks" import { callAllHandlers, Dict, isUndefined, normalizeEventKey, }...
<filename>packages/core/src/util/resolvers.ts /* The MIT License Copyright (c) 2017-2019 EclipseSource Munich https://github.com/eclipsesource/jsonforms Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
<reponame>MichaelDeBoey/graphql-tools<filename>packages/mock/src/mocking.ts import { graphql, GraphQLSchema, GraphQLObjectType, GraphQLList, GraphQLType, GraphQLResolveInfo, getNullableType, getNamedType, GraphQLFieldResolver, GraphQLNullableType, isSchema, isObjectType, isInterfaceType, isL...
<reponame>ielgnaw/bkui-vue3 /* * Tencent is pleased to support the open source community by making * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT L...
const BUTTONA = 0; const BUTTONB = 1; const BUTTONX = 2; const BUTTONY = 3; const BUTTONLSHOULDER1 = 4; const BUTTONRSHOULDER1 = 5; const BUTTONLSHOULDER2 = 6; const BUTTONRSHOULDER2 = 7; const BUTTONSELECT = 8; const BUTTONSTART = 9; const BUTTONUP = 12; const BUTTONDOWN = 13; const BUTTONLEFT = 14; const BUTTONRIGHT ...
<gh_stars>0 /* © 2020 NetSuite Inc. User may not copy, modify, distribute, or re-bundle or otherwise make available this code; provided, however, if you are an authorized user with a NetSuite account or log-in, you may use this code subject to the terms that govern your access and use. */ /// <amd-module name="Ret...
import { Test, TestingModule } from '@nestjs/testing'; import { Config } from '../Config'; import { ActorService } from '../Services/ActorService'; import { RedisManager } from '../Handlers/redis/RedisManager'; import { join } from 'path'; import { ActorManager } from '../Core/ActorManager'; import { MessageService ...
<filename>packages/x6/src/graph/transform.ts import { Dom, NumberExt } from '../util' import { Rectangle } from '../geometry' import { Transform } from '../addon/transform' import { Node } from '../model/node' import { Base } from './base' export class TransformManager extends Base { protected widgets: WeakMap<Node,...
import React, { useCallback, useEffect, useState } from "react"; interface Props { /** * The URI of the github issue you want to load comments from. Using the following structure: `USER/REPOSITORY_NAME/issues/ISSUE_NUMBER` */ issueUri: string; /** * Should the comments (and their network request) be hid...
export interface DebugRow { f: number; key: number; slots: DebugItem[][]; active: number; } export interface DebugItem { frame: number; event: string; char: number; msg: string; raw: string; color: string; icon: string; amount: number; target: ""; } export function parseLog( active: string...
import React, { useEffect, useRef, useState } from "react"; import { Dimensions, KeyboardTypeOptions, Modal, Platform, ScrollView, Text, TextInput, TouchableHighlight, View } from "react-native"; import { APPLE_BLUE_COLOR, BACKGROUND_COLOR, GRAY_COLOR, GREEN_COLOR, LIGHT_GRAY_COLOR, MEDIUM_FONT_SIZE, SMALL_FONT_SIZE, U...
import { IReporterOptions } from "./reporter-options"; import { IFlattenedRuleSet } from "./rule-set"; import { ModuleSystemType, OutputType } from "./shared-types"; import { IDoNotFollowType, IExcludeType, IFocusType, IIncludeOnlyType, } from "./filter-types"; import { IBaselineViolations } from "./baseline-vi...
<reponame>madeinfree/ezpay-invoice-sdk import crypto = require("crypto"); import axios from 'axios' import FormData from 'form-data' import { DEVELOPMENT_ENDPOINT, PRODUCTION_ENDPOINT } from './Constants' type Data = { /** Default "JSON" */ ResponseType: 'JSON' | 'String' TimeStamp: string MerchantOrderNo...
'use strict'; import IRichLanguageConfiguration = monaco.languages.LanguageConfiguration; import ILanguage = monaco.languages.IMonarchLanguage; // Allow for running under nodejs/requirejs in tests const _monaco: typeof monaco = (typeof monaco === 'undefined' ? (<any>self).monaco : monaco); const EMPTY_ELEMENTS: stri...
// Libraries import {parse} from 'src/external/parser' import {get} from 'lodash' // API import { runQuery, RunQueryResult, RunQuerySuccessResult, } from 'src/shared/apis/query' import {runStatusesQuery} from 'src/alerting/utils/statusEvents' // Actions import {notify} from 'src/shared/actions/notifications' im...
<filename>packages/tyranid-tdgen/src/collection.ts import * as _ from 'lodash'; import { Tyr } from 'tyranid'; import * as names from './names'; import { escapeString, pad, wrappedUnionType } from './util'; import { addField, addComment, commentsFor } from './base'; /** * produce union type alias for enum id values ...
import { Component, OnInit, ViewChild, TemplateRef, ElementRef, OnDestroy } from '@angular/core'; import { NbWindowService, NbWindowRef } from '@nebular/theme'; import { MapaService } from './mapa.service'; import {FormControl} from '@angular/forms'; import { Observable } from 'rxjs'; import {map, startWith} from 'rxjs...
import makeDebug from 'debug'; import Analyzer, { Import, LiteralImport, TemplateImport } from './analyzer'; import Package, { DepResolution } from './package'; import { shallowEqual } from './util'; import { flatten, partition } from 'lodash'; import BundleConfig from './bundle-config'; import { join } from 'path'; im...
<filename>x-pack/plugins/alerts/server/alerts_client_conflict_retries.test.ts<gh_stars>0 /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic Li...
import { Indexer, helpers, Script, RPC, hd, config, Cell, commons, core, WitnessArgs, toolkit, BI, } from "@ckb-lumos/lumos"; import { values } from "@ckb-lumos/base"; import { parseFromInfo, MultisigScript } from "@ckb-lumos/common-scripts/lib/from_info"; import { BIish } from "@ckb-lumos/bi"; ...
import React, { FC, useState } from 'react' import { partition, isEmpty, isUndefined } from 'lodash' import { Alert, Button, IconEdit, IconHelpCircle, IconKey, IconTrash, Typography, } from '@supabase/ui' import { PostgresTable, PostgresColumn, PostgresRelationship } from '@supabase/postgres-meta' import ...
import React, { Component } from 'react'; import { autobind } from 'core-decorators'; import { Scroll, Event, IPartialOptions } from './base/index'; import Loading from './loading'; import './scroll.css'; const defaultProps = { requestErrorTime: 10000, pullDownTime: 200, pullDownBounceTime: 0, pullDownContent:...
<filename>packages/svelte2tsx/src/svelte2tsx/nodes/ComponentEvents.ts import ts from 'typescript'; import { EventHandler } from './event-handler'; import { getVariableAtTopLevel, getLastLeadingDoc } from '../utils/tsAst'; /** * This class accumulates all events that are dispatched from the component. * It also track...
export const DEFAULT_ATTRIBUTE = '__default__'; export type XmlTag = { type: 'xml'; /** xml token name excluding namespace, brackets, attributes etc */ name: string; isClosingTag: boolean; }; export type Attribute = { type: 'attribute'; /** A word property(/annotatedField) id, such as lemma, pos, word, etc... *...
import React, { useState } from 'react' import { View, ScrollView, Share, StatusBar, TouchableOpacity } from 'react-native' import { Layout, Text } from '@ui-kitten/components' import { useTranslation } from 'react-i18next' import ImagePicker, { ImageOrVideo } from 'react-native-image-crop-picker' import beapi from '@...
<filename>packages/engine/src/ot/utils.ts import { isEqual } from 'lodash-es'; import OTJSON from 'ot-json0'; import { NodeInterface } from '../types/node'; import { FOCUS, ANCHOR, CURSOR } from '../constants/selection'; import { CARD_SELECTOR } from '../constants/card'; import { Op, Path, ObjectInsertOp, ObjectDe...
<gh_stars>10-100 import {readFile as readFileCb} from 'fs'; import {resolve} from 'path'; import {promisify} from 'util'; import {EventEmitter} from 'events'; import {cloneAndFreezeArray} from '@mashroom/mashroom-utils/lib/readonly_utils'; import {evaluateTemplatesInConfigObject, INVALID_PLUGIN_NAME_CHARACTERS} from '...
import { GameLiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GameLiftClient"; import { PutScalingPolicyInput, PutScalingPolicyOutput } from "../models/models_0"; import { deserializeAws_json1_1PutScalingPolicyCommand, serializeAws_json1_1PutScalingPolicyCommand, } from "../protocols/Aws_j...
'use strict'; import * as paths from 'path'; import { commands, ExtensionContext, extensions, window, workspace } from 'vscode'; import { Commands, registerCommands } from './commands'; import { configuration, Configuration } from './configuration'; import { ContextKeys, GlobalState, GlyphChars, setContext, SyncedState...
<filename>packages/graphics/src/utils/buildLine.ts import { Point, SHAPES } from '@pixi/math'; import type { Polygon } from '@pixi/math'; import type { GraphicsData } from '../GraphicsData'; import type { GraphicsGeometry } from '../GraphicsGeometry'; /** * Builds a line to draw using the polygon method. * * Ignor...
<filename>src/classes/Player.ts import chalk from 'chalk'; import ytdl, { getInfo } from 'discord-ytdl-core'; import { Client, Guild, Message, StreamDispatcher, VoiceChannel } from 'discord.js'; import ms from 'ms'; import { logger } from '../app'; import { quickEmbed } from '../util/styleUtil'; import { Queue } from ...
/** * @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 {GeneratedFile, ParseSourceSpan, Position} from '@angular/compiler'; import * as ts from 'typescript'; impor...
/* @extends string */ import type { OBJECT } from "./types.d.ts"; import { _lwr, EMPTY_STRING, to_string } from "./string.ts"; // // Un fichier de test existe pour ce fichier, vous devez le voir si vous avez // besoin de connaître les cas d'implémentation des différentes fonctions que // vous avez besoin da...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {Modal} from 'react-bootstrap'; import {useIntl} from 'react-intl'; import {useDispatch, useSelector} from 'react-redux'; import styled from 'styled-components'; import {tra...
<reponame>JiglioNero/vscode-react-native<filename>test/smoke/package/src/debugIos.test.ts<gh_stars>0 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. import * as assert from "assert"; import { AppiumHelper, AppiumClient, P...
import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; import { requestAPI } from './embl-tools-jl'; import { LabIcon } from '@jupyterlab/ui-components'; import { ILauncher } from '@jupyterlab/launcher'; import { PathExt } from '@jupyterlab/coreutils'; import { ISettingRegistry } from '@...
<reponame>KaKaLab/werewolves-bot import { ApplicationCommand, ApplicationCommandData, Client, CommandInteraction, DMChannel, Guild, InteractionReplyOptions, Message, MessageComponentInteraction, MessageEmbedOptions } from 'discord.js'; import { ApplicationCommandOptionTypes } from 'discord.js/typing...
/******************************************************************************** * Copyright (C) 2018 Red Hat, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. *...
import { Axis, Board, Move } from "." import { scrambleBoard } from "./scramble" interface Transition { value: number start: number startTime: number time: number duration: number } interface Pointer { x: number y: number col: number row: number moveX: number moveY: number } export class Game {...
<reponame>lytico/ag-grid import { Selection } from "../../../scene/selection"; import { HdpiCanvas } from "../../../canvas/hdpiCanvas"; import { reactive } from "../../../util/observable"; import { Label } from "../../label"; import { SeriesNodeDatum, SeriesTooltip, TooltipRendererParams } from "../series"; import { Hi...
<filename>src/DeviceControllers/BaseController.ts import { deviceTypesMap } from '../DeviceTypesMap'; import { clamp, parseDeviceState } from '../utils/miscUtils' import { Animations } from '../utils/Animations'; import { _ } from 'lodash' import { Transport } from 'magichome-core'; import { IDeviceCommand, IDeviceInfo...
/** * Video组件的样式参考了[uni-app](https://github.com/dcloudio/uni-app/tree/master/packages/uni-h5)的实现 */ import React, { Component } from 'react' // import Danmu from './danmu' // import Controls from './controls' import { formatTime } from './utils' import { VideoProps } from '@tarojs/components/types/Video' import { ...
<reponame>ZeyuanWei/backstage /* * Copyright 2020 The Backstage 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 ...
<gh_stars>0 import {AggregateOp} from 'vega'; import {Aggregate} from '../aggregate'; import {Channel, FacetChannel, GeoPositionChannel, getSizeType, PositionScaleChannel} from '../channel'; import {TypedFieldDef, Value} from '../channeldef'; import {SplitParentProperty} from '../compile/split'; import {CompositeMark} ...
<reponame>pnigos/pxt enum Day { Monday = "Monday", Tuesday = "Tuesday", Wednesday = "Wednesday", Thursday = "Thursday", Friday = "Friday", All = "All" } interface Lesson { title: string; description: string; url: string; img: string; time: number; // hour in PST, 24 hr clock...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { Protocol as Cdp } from 'devtools-protocol'; import { ICpuProfileRaw, IAnnotationLocation } from './types'; import { maybeFileUrl...
import React, { useState } from "react"; import { makeStyles } from "@material-ui/styles"; import clsx from "clsx"; const primaryColor = () => (props: any) => props.primaryColor; const secondaryColor = () => (props: any) => props.secondaryColor; const hoverColor = () => (props: any) => props.hoverColor || props.primar...
import {IInputs, IOutputs} from "./generated/ManifestTypes"; import DataSetInterfaces = ComponentFramework.PropertyHelper.DataSetApi; type DataSet = ComponentFramework.PropertyTypes.DataSet; import Cy from "cytoscape"; interface NodeData { id: string; content: string; recordId: string; }; interface EdgeData { id:...
<reponame>kin0055/mot-fmt import * as vscode from 'vscode'; // Hex file types var TYPES = { //DATA: 0x00, //EOF: 0x01, //EXTSEGADDRESS: 0x02, //STARTSEGADDRESS: 0x03, //EXTLINADDRESS: 0x04, //STARTLINADDRESS: 0x05, //for motorola type MOT_MARK:0x00, MOT_DATA_2ADDR:0x01, MOT_DATA...
/** * 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. */ import { BaseTokens, ParserCore, SimpleToken, StringToken, createParser, isAlpha, isDigit, } from "@internal/parser-core"; ...
import { ActiveFiltersInfo, FilterType, FILTER_ACTION_APPEND, AllFilterTypes } from '../../types/Filters'; import { hasHealth } from '../../types/Health'; import { ServiceListItem } from '../../types/ServiceList'; import { SortField } from '../../types/SortFilters'; import { istioSidecarFilter, healthFilter, labe...
<reponame>MewX/archen<filename>src/accessor.ts import DataLoader = require('dataloader'); import { Schema, Model, SimpleField, ForeignKeyField, Field, RelatedField, Database, Table, Document, Filter, SelectOptions, ConnectionPool, Row, Value, QueryBuilder } from 'sqlit'; import { cursorQ...