text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import wkx from 'wkx'; // @ts-ignore import reproject from 'reproject'; import pointToLineDistance from '@turf/point-to-line-distance'; import polygonToLine from '@turf/polygon-to-line'; import booleanPointInPolygon from '@turf/boolean-point-in-polygon'; // @ts-ignore import pointDistance from '@turf/distance'; import ...
the_stack
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState, } from 'react'; import { assert, translate as $t, useKresusState } from '../../helpers'; import { get } from '../../store'; import { DEFAULT_CHART_PERIOD, DEFAULT_CHART_TYPE } from '../../../shared/setti...
the_stack
/// <reference path="../../elements.d.ts" /> import { CodeEditBehaviorScriptInstance, CodeEditBehaviorStylesheetInstance, CodeEditBehavior } from "../editpages/code-edit-pages/code-edit-behavior"; import { DividerEdit } from '../editpages/divider-edit/divider-edit'; import { Polymer } from '../../../../tools/definiti...
the_stack
'use strict'; import { window, ExtensionContext, Uri, ViewColumn, WebviewPanel, commands, Disposable, workspace, TextEditorRevealType, TextEditor, Range, Webview } from 'vscode'; import * as path from 'path'; import { showError, ensureAbsoluteGlobalStoragePath } from '../utils'; import { StateResolver } from './S...
the_stack
import { Matrix } from './matrix' import { Vector3 } from './vector3' export class Quaternion { /** The internal elements for this type. */ public v: Float32Array /** Creates a new Quaternion */ constructor(x: number, y: number, z: number, w: number) { this.v = new Float32Array(4) this.v[0] = x ...
the_stack
import { Widgets } from "../../@types/blessed.d"; import { strWidth, charWidth } from "neo-blessed/lib/unicode"; import * as unicode from "neo-blessed/lib/unicode"; import { Widget } from "./widget/Widget"; import { Logger } from "../common/Logger"; import { StringUtils } from "../common/StringUtils"; import { ColorCon...
the_stack
import { createToken, Lexer, TokenType } from 'chevrotain'; export interface TokenVocabulary { [vocab: string]: TokenType; } export const ReservedKeyword = createToken({ name: 'KeywordReserved', pattern: Lexer.NA, }); export const Keyword = createToken({ name: 'Keyword', pattern: Lexer.NA, }); export cons...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApplicationOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { BatchManagementClient } from "../...
the_stack
import * as cdk from '@aws-cdk/core'; import * as cfn_parse from '@aws-cdk/core/lib/cfn-parse'; /** * Properties for defining a `AWS::EFS::AccessPoint`. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-accesspoint.html * @external */ export interface CfnAccessPointProps { ...
the_stack
const { round } = Math; /** Gnome libs imports */ import * as Clutter from 'clutter'; import * as Cogl from 'cogl'; import * as GObject from 'gobject'; import * as Meta from 'meta'; import { MsWindow } from 'src/layout/msWorkspace/msWindow'; import { Portion, PortionBorder } from 'src/layout/msWorkspace/portion'; impo...
the_stack
import assert from "assert"; import { CharCode } from "../core/charcode.js"; import { formatDiagnostic, logDiagnostics, logVerboseTestOutput } from "../core/diagnostics.js"; import { hasParseError, NodeFlags, parse, visitChildren } from "../core/parser.js"; import { CadlScriptNode, Node, SourceFile, SyntaxKind } from "...
the_stack
import React from 'react' import ReactDOM from 'react-dom/server' import tap from 'tap' import {PortableText} from '../src/react-portable-text' import { PortableTextReactComponents, PortableTextMarkComponent, PortableTextProps, MissingComponentHandler, } from '../src/types' import * as fixtures from './fixtures...
the_stack
import { SideDimensions, Dimensions } from "../scripts/itemTypeHelpers"; export const sideViewDimensions1: SideDimensions[] = [ { itemId: 0, name: "The Void", side: "none", dimensions: { x: 0, y: 0, width: 0, height: 0 }, }, { itemId: 1, name: "Camo Hat", side: "back", ...
the_stack
import { AnyObject, DataObject, PropertyDefinition, Type, } from '@loopback/repository'; import {HttpErrors, Model} from '@loopback/rest'; import {QueryList} from '../query-list'; import {Errors, TWO} from '../../const'; import {SearchQuery, SearchResult} from '../../models'; import { ColumnMap, isSearchabl...
the_stack
import { attr, observable, Observable } from "@microsoft/fast-element"; import { keyArrowDown, keyArrowUp, keyEnd, keyEnter, keyEscape, keyHome, keySpace, keyTab, uniqueId, } from "@microsoft/fast-web-utilities"; import { FoundationElement } from "../foundation-element"; import { isL...
the_stack
import { Handler, PreSignUpTriggerEvent, PreSignUpTriggerHandler, PostConfirmationTriggerEvent, PostConfirmationTriggerHandler, PreAuthenticationTriggerEvent, PreAuthenticationTriggerHandler, PostAuthenticationTriggerEvent, PostAuthenticationTriggerHandler, CreateAuthChallengeTriggerEvent, Creat...
the_stack
import { configureStore, createAction, createSlice, isAnyOf, } from '@reduxjs/toolkit' import type { AnyAction, PayloadAction, Action } from '@reduxjs/toolkit' import { createListenerMiddleware, TaskAbortError } from '../index' import type { TypedAddListener } from '../index' describe('Saga-style Effects Sc...
the_stack
import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { MainData, Torrent, UserPreferences } from '../../utils/Interfaces'; // UI Components import { MatSpinner } from '@angular/material/progress-spinner'; // Helpers import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { D...
the_stack
import { Gantt } from '../base/gantt'; import { KeyboardEventArgs, isNullOrUndefined, getValue } from '@syncfusion/ej2-base'; import { IKeyPressedEventArgs, IGanttData, ColumnModel, ITaskData } from '..'; import { TextBox } from '@syncfusion/ej2-inputs'; import { ISelectedCell, IIndex } from '@syncfusion/ej2-grids'; im...
the_stack
'use strict'; import * as nls from 'vscode-nls'; import * as vscode from 'vscode'; import { join, isAbsolute, dirname, relative } from 'path'; import * as fs from 'fs'; import { writeToConsole, mkdirP, Logger } from './utilities'; import { detectDebugType } from './protocolDetection'; import { resolveProcessId } from...
the_stack
import {PRNG, PRNGSeed} from '../../../sim/prng'; import {MoveCounter, RandomTeams} from '../../random-teams'; export class RandomBDSPTeams extends RandomTeams { constructor(format: Format | string, prng: PRNG | PRNGSeed | null) { super(format, prng); this.noStab = [...this.noStab, 'gigaimpact']; } getHighPrio...
the_stack
import {} from "mocha"; import sinon from "sinon"; import express from "express"; import nock from "nock"; import _ from "lodash"; import supertest from "supertest"; import Authenticator from "../Authenticator"; import setupTenantMode from "../setupTenantMode"; import createGenericProxyRouter from "../createGenericPr...
the_stack
import Head from "next/head"; export default function Home(props: ReturnType<typeof getStaticProps>["props"]) { return ( <> <Head> <title>Shiki Twoslash: Static Code Samples for JS Projects</title> <meta name="description" content="You take some Shiki, add a hint of the TypeScript compiler,...
the_stack
import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData } from '../../../../../types/data'; import { Trigg...
the_stack
import { Context, Recogniser } from '.'; import match, { Match } from '../match'; /** * Binary search implementation (recursive) */ function binarySearch(arr: number[], searchValue: number) { const find = ( arr: number[], searchValue: number, left: number, right: number ): number => { if (rig...
the_stack
export function log() { console.log('log'); } type MapKey = string|number; type MapableArray = MapKey[]; export type TruthTable = { [string: string]: boolean;[number: number]: boolean }; /** * Create a quick lookup map from list */ export function createMap(arr: MapableArray): TruthTable { return arr.reduce(...
the_stack
import {mockBoutCaneloGGG1} from "boxrec-mocks"; import {WinLossDraw} from "../../boxrec.constants"; import {WeightDivision} from "../../champions/boxrec.champions.constants"; import {BoxingBoutOutcome, BoxrecPromoter} from "../boxrec.event.constants"; import {BoutPageLast6, BoxrecEventBoutOutput} from "./boxrec.event....
the_stack
import * as am5 from "@amcharts/amcharts5"; import * as am5xy from "@amcharts/amcharts5/xy"; import * as am5radar from "@amcharts/amcharts5/radar"; import am5themes_Animated from "@amcharts/amcharts5/themes/Animated"; // Create root element // https://www.amcharts.com/docs/v5/getting-started/#Root_element con...
the_stack
module Kiwi.Components { /** * The Box Component is used to handle the various 'bounds' that each GameObject has. * There are two main different types of bounds (Bounds and Hitbox) with each one having three variants (each one is a rectangle) depending on what you are wanting: * * RawBounds: The bounding box of ...
the_stack
import { component, ComponentBlock, fields } from './DocumentEditor/component-blocks/api'; import { Relationships } from './DocumentEditor/relationship'; import { defaultDocumentFeatures, makeEditor, jsx } from './DocumentEditor/tests/utils'; import { PropValidationError, validateAndNormalizeDocument } from './validati...
the_stack
import React from 'react' import { store } from '../../../store' import { StoreContext } from 'storeon/react' import { object, withKnobs, select, boolean, text, files } from '@storybook/addon-knobs' import uiManagmentApi from '../../../api/uiManagment/uiManagmentApi' import stylesApi from '../../../api/styles/stylesApi...
the_stack
export type Mask = MaskObj | MaskObj[] | boolean; /** * Plain object data for an ObjectMask instance. */ export interface MaskObj { [key: string]: Mask; } /** * Interface for "masked out" hook functions. */ export interface MaskedOutHook { /** * Call signature * @param path - Path on the object...
the_stack
import '../test/common-test-setup-karma'; import { extractAssociatedLabels, getApprovalInfo, getLabelStatus, getMaxAccounts, getRepresentativeValue, getVotingRange, getVotingRangeOrDefault, getRequirements, getTriggerVotes, hasNeutralStatus, labelCompare, LabelStatus, } from './label-util'; impo...
the_stack
import { Id64, Id64String, OpenMode } from "@itwin/core-bentley"; import { Angle, Arc3d, GeometryQuery, LineString3d, Loop, Range3d, StandardViewIndex } from "@itwin/core-geometry"; import { CategorySelector, DefinitionModel, DisplayStyle3d, IModelDb, ModelSelector, OrthographicViewDefinition, PhysicalModel, Snapshot...
the_stack
export class Token { type: TokenType; value?: string | number; meta?: string; constructor(type: TokenType, value?: string | number, meta?: string) { this.type = type; this.value = value; this.meta = meta; } } /* name operators associativity precedence level facto...
the_stack
const rowRegex = /^.*[\.#].*$/; enum LabelMode { None, Number, Letter } namespace pxtblockly { export class FieldMatrix extends Blockly.Field implements Blockly.FieldCustom { private static CELL_WIDTH = 25; private static CELL_HORIZONTAL_MARGIN = 7; private static CELL_VERTICA...
the_stack
"use strict"; import * as vscode from "vscode"; import LanguageIdentifier from "../contract/LanguageIdentifier"; import type IDisposable from "../IDisposable"; import { configManager } from "../configuration/manager"; import { DecorationClass, decorationClassConfigMap, decorationStyles } from "./constant"; import deco...
the_stack
import * as hex from "@stablelib/hex"; import { concat } from "@stablelib/bytes"; import { encode, decode, Simple, Tagged, TaggedEncoder, TaggedDecoder, DEFAULT_TAGGED_ENCODERS, DEFAULT_TAGGED_DECODERS } from "./cbor"; // Test vectors from RFC 7049: Appendix A. Examples. const encoderTestVectors = [ 0, "0...
the_stack
import { addComponent, Component, defineComponent, defineQuery, removeComponent } from "bitecs"; import { vec3, mat4 } from "gl-matrix"; import { GameState } from "../GameTypes"; import { shallowArraysEqual } from "../utils/shallowArraysEqual"; import { AddComponentMessage, //ExportGLTFMessage, RemoveComponentMe...
the_stack
import { Address, Algorithm, Amount, ChainId, isSendTransaction, isSwapAbortTransaction, isSwapClaimTransaction, isSwapOfferTransaction, PubkeyBundle, SendTransaction, SwapAbortTransaction, SwapClaimTransaction, SwapOfferTransaction, TimestampTimeout, UnsignedTransaction, } from "@iov/bcp"...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * AuthorizationOperations * __NOTE__: An instance of this class is automatically created for an * instance of the ManagementLockClient. */ export interface Aut...
the_stack
import * as assert from 'assert' import * as B from '../src/boolean' import { Endomorphism } from '../src/Endomorphism' import * as Eq from '../src/Eq' import { identity, pipe } from '../src/function' import * as N from '../src/number' import * as O from '../src/Option' import * as Ord from '../src/Ord' import * as _ f...
the_stack
import * as cdk from '@aws-cdk/core'; import * as s3 from '@aws-cdk/aws-s3'; import * as sns from '@aws-cdk/aws-sns'; import * as lambda from '@aws-cdk/aws-lambda'; import { StringParameter, CfnParameter } from '@aws-cdk/aws-ssm'; import * as kms from '@aws-cdk/aws-kms'; import * as fs from 'fs'; import { Role, ...
the_stack
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; import { AddApplicationCloudWatchLoggingOptionCommand, AddApplicationCloudWatchLoggingOptionCommandInput, AddApplicationCloudWatchLoggingOptionCommandOutput, } from "./commands/AddApplicationCloudWatchLoggingOptionCommand"; import { A...
the_stack
import * as svgson from 'svgson'; import { SVGPathData } from 'svg-pathdata'; import Frame from '../models/Base/Frame'; import ShapePath from '../models/Layer/ShapePath'; import ShapeGroup from '../models/Layer/ShapeGroup'; import Ellipse from '../models/Layer/Ellipse'; import Rectangle from '../models/Layer/Rectangle...
the_stack
import earcut from 'earcut'; // For Web Mercator projection const PI_4 = Math.PI / 4; const DEGREES_TO_RADIANS_HALF = Math.PI / 360; // 4 data formats are supported: // Simple Polygon: an array of points // Complex Polygon: an array of array of points (array of rings) // with the first ring representing the outer h...
the_stack
import {MDCFoundation} from '@material/base/foundation'; import {MDCRippleAdapter} from './adapter'; import {cssClasses, numbers, strings} from './constants'; import {MDCRipplePoint} from './types'; import {getNormalizedEventCoords} from './util'; interface ActivationStateType { isActivated?: boolean; hasDeactivat...
the_stack
import * as React from 'react'; import { BaseWebComponent, IDataFilterValueInfo, ExtensibilityConstants, IDataFilterInfo } from '@pnp/modern-search-extensibility'; import * as ReactDOM from 'react-dom'; import { IComboBoxOption, Label, Icon, SelectableOptionMenuItemType, ComboBox, IComboBox, mergeStyles, Fabric } from ...
the_stack
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class HealthLake...
the_stack
import { call, put, all, takeLatest, takeEvery } from 'redux-saga/effects' import { LOAD_ORGANIZATIONS, ADD_ORGANIZATION, EDIT_ORGANIZATION, DELETE_ORGANIZATION, LOAD_ORGANIZATION_DETAIL, LOAD_ORGANIZATIONS_ROLE, LOAD_ORGANIZATIONS_PROJECTS, LOAD_ORGANIZATIONS_MEMBERS, ADD_ROLE, DELETE_ROLE, REL_R...
the_stack
import 'jsdom-global/register'; import React from 'react'; import { useTimer } from './useTimer'; import { act } from 'react-dom/test-utils'; import { render, fireEvent } from '@testing-library/react'; jest.useFakeTimers(); describe('Start', () => { it('should start timer', () => { // Given const Component ...
the_stack
import React, { useState } from 'react'; import { Story, Meta } from '@storybook/react'; import { Button } from '@zendeskgarden/react-buttons'; import { Paragraph } from '@zendeskgarden/react-typography'; import { Modal, Header, Body, Footer, FooterItem, Close } from '@zendeskgarden/react-modals'; import { Col, Grid, R...
the_stack
import { Directionality } from '@angular/cdk/bidi'; import { Component, NgZone } from '@angular/core'; import { ComponentFixture, inject, TestBed, waitForAsync } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DateAdapter } from '@ptsecurity/cdk/datetime'; import { ENTER } from '@...
the_stack
declare namespace tableau { enum DashboardObjectType { BLANK = 'blank', WORKSHEET = 'worksheet', QUICK_FILTER = 'quickFilter', PARAMETER_CONTROL = 'parameterControl', PAGE_FILTER = 'pageFilter', LEGEND = 'legend', TITLE = 'title', TEXT = 'text', ...
the_stack
import { Board, Pin } from "johnny-five" enum Protocol {I2C, SPI} enum TransferType {Command, Data} type Direction = 'left' | 'left diagonal' | 'right' | 'right diagonal' type Black = 0x00 type White = 0x01 | 0xff type Color = Black | White type Pixel = [number, number, Color] interface OledOptions { height?: numbe...
the_stack
import { CompilerHost, log } from '@bazel/typescript'; import * as tsSimple from 'ts-simple-type'; import * as ts from 'typescript'; import * as svelte from '@svelte-ts/common'; import { createNonExistentPropertyDiagnostic, createComponentTypesNotAssignableDiagnostic, createDeclarationNotFoundDiagnostic, } from ...
the_stack
import Docker, { Container, ContainerInfo } from "dockerode"; import Joi from "joi"; import tar from "tar-stream"; import { EventEmitter } from "events"; import { LogLevelDesc, Logger, LoggerProvider, Bools, } from "@hyperledger/cactus-common"; import { ITestLedger } from "../i-test-ledger"; import { Streams } ...
the_stack
import * as Common from '../../core/common/common.js'; import * as Host from '../../core/host/host.js'; import * as i18n from '../../core/i18n/i18n.js'; import * as Platform from '../../core/platform/platform.js'; import * as SDK from '../../core/sdk/sdk.js'; import * as ObjectUI from '../../ui/legacy/components/object...
the_stack
import {test, expect, Page, Browser} from '@playwright/test'; import { waitForPlaygroundPreviewToLoad, freezeSnackbars, freezeDialogs, closeSnackbars, readClipboardText, } from './util'; const signInToGithub = async (page: Page): Promise<void> => { const [popup] = await Promise.all([ page.waitForEvent(...
the_stack
import * as ts from 'typescript' const IS_DEBUG_PRINT = false export default class Helper{ static operatorOverload( node: ts.Node, program, data, overloader, callback: ( node: ts.BinaryExpression, interfaceVaraible: ts.Expression, forceAp...
the_stack
import { Component, Input, Output, ElementRef, HostListener, EventEmitter, OnChanges, SimpleChanges, } from '@angular/core'; import { ISprkMastheadSelectorChoice } from '../sprk-masthead-selector/sprk-masthead-selector.interfaces'; @Component({ selector: 'sprk-masthead-selector', template: ` <d...
the_stack
import {FocusKeyManager} from '@angular/cdk/a11y'; import {Directionality} from '@angular/cdk/bidi'; import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion'; import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, ElementRef, Input, OnDestroy, ...
the_stack
import { ActionContext } from './ActionContext'; import { Component } from '../EntityComponentSystem/Component'; import { Entity } from '../EntityComponentSystem/Entity'; import { Actor } from '../Actor'; import { MotionComponent } from '../EntityComponentSystem/Components/MotionComponent'; import { TransformComponent ...
the_stack
* An [[Attestation]] certifies a [[Claim]], sent by a claimer in the form of a [[RequestForAttestation]]. [[Attestation]]s are **written on the blockchain** and are **revocable**. * Note: once an [[Attestation]] is stored, it can be sent to and stored with the claimer as a [[Credential]]. * * An [[Attestation]] can ...
the_stack
import {assert} from 'chai'; import {StringSpan} from '../src/IonSpan'; import {ParserTextRaw} from '../src/IonParserTextRaw'; import {IonTypes} from "../src/IonTypes"; import {IonType} from "../src/IonType"; import JSBI from "jsbi"; import {SymbolToken} from "../src/IonSymbolToken"; // a few notes/surprises: // - fie...
the_stack
import 'jest-extended'; import { times, pDelay, DataEntity, Omit, TSError, debugLogger } from '@terascope/utils'; import { Translator } from 'xlucene-translator'; import { SimpleRecord, SimpleRecordInput, dataType, schema } from './helpers/simple-index'; import { makeClient, cleanupIndexStore } from './helpers/...
the_stack
import { assertEquals, base64, date } from "./test_deps.ts"; import { getMainConfiguration } from "./config.ts"; import { generateSimpleClientTest } from "./helpers.ts"; import { Box, Circle, Float4, Float8, Line, LineSegment, Path, Point, Polygon, TID, Timestamp, } from "../query/types.ts"; // T...
the_stack
import { createMockLoggerClient, mochaLocalRegistry, mochaTmpdir as tmpdir, MockLoggerClient, repoVersions, } from "@adpt/testutils"; import { grep, messagesToString, MessageType, yarn, } from "@adpt/utils"; import * as fs from "fs-extra"; import * as path from "path"; import should ...
the_stack
import EventDispatcher from "./../../starling/events/EventDispatcher"; import MeshEffect from "./../../starling/rendering/MeshEffect"; import Point from "openfl/geom/Point"; import VertexDataFormat from "./../rendering/VertexDataFormat"; import IndexData from "./../rendering/IndexData"; import VertexData from "./../ren...
the_stack
import React from 'react'; import { toast } from 'react-toastify'; import userEvent from '@testing-library/user-event'; import { render, fireEvent, waitFor } from '../../../test-utils'; import { FREQUENCY_MULTIPLIER, HAInstanceTypes, HAReplicationForm } from './HAReplicationForm'; import { HAConfig, HAReplicationSchedu...
the_stack
import { existsSync, readFileSync } from 'fs' import { request } from 'https' import { copyFileAndCreateFolder, createFolderIfNotExists, writeFileAndCreateFolder } from './check_dependencies_fs' import * as semver from './check_dependencies_semver' function httpGet(params) { return new Promise((resolve, reject) => ...
the_stack
import { Material } from './Material'; import { MeshView } from './meshView'; import { bufferToUint16Array, bufferToFloat32Array } from './bufferUtil'; import { Gltf } from './gltfType'; const Cesium = require('cesium'); const util = require('./utility'); const Cartesian3 = Cesium.Cartesian3; const ComponentDatatype =...
the_stack
import { sqlRequest, translateSmartQuery } from '@app/api' import { IconCommonCopy, IconCommonRefresh, IconCommonSave, IconMiscDragToExplore } from '@app/assets/icons' import { FormButton } from '@app/components/kit/FormButton' import { Icon } from '@app/components/kit/Icon' import { ExploreSaveMenu } from '@app/compon...
the_stack
type Long = protobuf.Long; // DO NOT EDIT! This is a generated file. Edit the JSDoc in src/*.js instead and run 'npm run types'. /** Namespace pb_test. */ declare namespace pb_test { /** Properties of a HeartBeat. */ interface IHeartBeat { } /** Represents a HeartBeat. */ class HeartBeat implemen...
the_stack
import React, { useState, useEffect } from 'react'; import { PrimaryButton, DefaultButton, Stack, TextField, Dropdown, Spinner, IconButton, Pivot, PivotItem, IColumn, DetailsList, DetailsListLayoutMode, CheckboxVisibility, Text, SelectionMode } from '@fluentui/react'; import { AlternateIdentity, User, UserRole } from '...
the_stack
class eKit { /** * 根据name关键字创建一个Bitmap对象。name属性请参考resources/resource.json配置文件的内容。 * @param {string} name * @param {Object} settings? */ public static async createBitmapByPath(path: string, settings?: Object) { let result = new egret.Bitmap(); let texture: egret.Te...
the_stack
import {IconType, DocumentedType, UMLClassMemberVisibility, UMLClassMemberLifetime} from "../../common/types"; import {Icon} from "./icon"; /** * This maps into the iconTypes.svg [x,y] * * (0,0)-------x * | * | * y * */ const iconLocations = { [IconType.Global]: { x: 10, y: 0 }, [IconType.Namespace]: ...
the_stack
import { Component, Type, ViewChild, OnInit, Directive } from '@angular/core'; import { ComponentFixture, TestBed, fakeAsync, tick, waitForAsync } from '@angular/core/testing'; import { NxMaskModule } from './mask.module'; import { NxMaskDirective } from './mask.directive'; import { FormsModule, FormGroup, FormControl...
the_stack
import { And } from "../shared/And"; import { AckCallback } from "./AckCallback"; import { AuthCallback } from "./AuthCallback"; import { IGunConstructorOptions } from "./IGunConstructorOptions"; import { IGunDataType, IGunNodeDataType } from "./IGunDataType"; import { IGunFinalTreeMethods } from "./IGunFinalTreeMethod...
the_stack
import { wethAddresses } from "@airswap/constants"; import { Server } from "@airswap/libraries"; import { Levels, LightOrder } from "@airswap/types"; import { toAtomicString } from "@airswap/utils"; import { createAsyncThunk, createSelector, createSlice, PayloadAction, } from "@reduxjs/toolkit"; import BigNumb...
the_stack
import { IDocumentStore } from "../../../src"; import { disposeTestDocumentStore, testContext } from "../../Utils/TestUtil"; import moment = require("moment"); import { User } from "../../Assets/Entities"; import { assertThat } from "../../Utils/AssertExtensions"; describe("RavenDB_14164Test", function () { let s...
the_stack
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface MemberOrderingOption { default?: | 'never' | ( | 'signature' | 'field' | 'public-field' | 'public-decorated-field' | 'decorated-field' | 'static-field' | 'public-stati...
the_stack
import http from 'http' import crypto from 'crypto' import querystring from 'querystring' const randomUserAgent = (): string => { const userAgentList = [ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36", "Mozilla/5.0 (iPhone; CPU iPho...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Diagnostic } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagement...
the_stack
import { Block } from "./Block"; import { Vector2 } from "../Vector2"; import { Connector } from "./Connector"; import { BlockPortRegData, BlockParameterEditorRegData } from "./BlockDef"; import { BlockEditor } from "../Editor/BlockEditor"; import { BlockRunContextData } from "../Runner/BlockRunContextData"; import log...
the_stack
import { AppointmentSchema } from "./AppointmentSchema"; import { ComplexPropertyDefinition } from "../../../PropertyDefinitions/ComplexPropertyDefinition"; import { Dictionary, DictionaryWithPropertyDefitionKey, PropertyDefinitionDictionary } from "../../../AltDictionary"; import { EwsLogging } from "../../EwsLogging...
the_stack
import * as React from 'react'; import { injectIntl } from 'react-intl'; import Typography from 'antd/lib/typography'; import Drawer from '@synerise/ds-drawer'; import Button from '@synerise/ds-button'; import Icon from '@synerise/ds-icon'; import ItemFilter from '@synerise/ds-item-filter'; import { CloseM, FolderM, Se...
the_stack
/// <reference path="../guisprite.ts" /> module EZGUI.Component { export class Layout extends GUISprite { public guiMask; constructor(public settings, public themeId) { super(settings, themeId); } protected handleEvents() { super.handleEve...
the_stack
import * as React from "react"; import { animated, to } from "@react-spring/web"; import { Box } from "@chakra-ui/react"; import { useControls, useCreateStore, LevaInputs } from "leva"; import graphql from "babel-plugin-relay/macro"; import { useMutation, useQuery } from "relay-hooks"; import create from "zustand"; imp...
the_stack
import '../../../test/common-test-setup-karma'; import './gr-formatted-text'; import { GrFormattedText, Block, ListBlock, TextBlock, QuoteBlock, } from './gr-formatted-text'; const basicFixture = fixtureFromElement('gr-formatted-text'); suite('gr-formatted-text tests', () => { let element: GrFormattedText...
the_stack
import {Observable} from "data/observable"; import {ObservableArray} from "data/observable-array"; import TypeUtils = require("utils/types"); import {VirtualArray} from "data/virtual-array"; /** * Regular expression for trimming a string * at the beginning and the end. */ export const REGEX_TRIM: RegExp = ...
the_stack
import twemoji from 'twemoji'; import * as remixicons from '../remixicons'; import * as faLine from '../fontawesome/index-line'; import * as faFill from '../fontawesome/index-fill'; import * as faBrands from '../fontawesome/index-brands'; import IconFolderPlugin, { FolderIconObject } from './main'; import { ExplorerLe...
the_stack
import { WebGLRenderer, Scene, PerspectiveCamera, Object3D, Vector2, Raycaster, MeshPhongMaterial, WebGLRenderTarget, PMREMGenerator, RGBFormat, sRGBEncoding, EquirectangularReflectionMapping, DirectionalLight, Mesh, PlaneBufferGeometry, MeshPhysicalMaterial, DoubleSide, UnsignedByteType, AxesHelper, GridHelper, Textur...
the_stack
import { ArrayHelper } from '../../../ExtensionMethods'; import { DateTime } from "../../../DateTime"; import { EmailAddress } from "../../../ComplexProperties/EmailAddress"; import { ExchangeService } from "../../ExchangeService"; import { ExchangeVersion } from "../../../Enumerations/ExchangeVersion"; import { ItemA...
the_stack
import { DocumentStore, IDocumentStore, PutConnectionStringOperation, RavenConnectionString, AddEtlOperation, UpdateEtlOperation, ResetEtlOperation, RavenEtlConfiguration, Transformation, GetOngoingTaskInfoOperation } from "../../../../../src"; import { disposeTestDocumentStore, RavenTes...
the_stack
import { Application } from "spectron"; import { startApp, stopApp, setupElectronLogs, testSolutionPath, addSolution, clearSolutions, } from "./hooks"; import path from "path"; import fs from "fs/promises"; const expectedWCFProgram: string =` using CoreWCF.Configuration; using System.Net; using Microsoft.A...
the_stack
import { IExceptionContext, ITableSection, range } from 'lineupengine'; import { IGroupData, IGroupItem, IOrderedGroup, isGroup, Ranking } from '../model'; import { aria, cssClass, engineCssClass, SLOPEGRAPH_WIDTH } from '../styles'; import { IRankingHeaderContextContainer, EMode } from './interfaces'; import { forEach...
the_stack
import chai from 'chai'; import 'mocha'; const expect = chai.expect; import { Game } from '../src/Game'; import { Resource } from '../src/Resource'; import { DEFAULT_CONFIGS } from '../src/defaults'; describe('Test resource collection and distribution', () => { let game: Game; const rates = DEFAULT_CONFIGS.paramet...
the_stack
import { RedisClient, ClientOpts, ServerInfo } from 'redis'; import {EventEmitter} from "events"; type Callback<T> = (err: Error | null, reply: T) => void; type AsyncCallback<T> = (err: Error | null, reply: T) => Promise<void>; type OkOrError = 'OK'|Error export interface OverloadedCommand<T, U, R> { (arg1: T, arg2...
the_stack
import React from 'react' import { Text, View, StyleSheet } from 'react-native' import htmlparser from 'htmlparser2-without-node-native' import entities from 'entities' import ResizableImgComponent from './resizableImage' import InlineImgComponent from './inlineImage' import Web from './webview' import MarkText ...
the_stack