text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { getAbandonSeedAddress } from "@ledgerhq/cryptoassets"; import { log } from "@ledgerhq/logs"; import { from } from "rxjs"; import secp256k1 from "secp256k1"; import invariant from "invariant"; import { TransportStatusError, WrongDeviceForAccount } from "@ledgerhq/errors"; import { delay } from "../../promise"; ...
the_stack
import {useEffect, useState} from "react"; import {CameraOutlined, EyeOutlined, SaveOutlined, SendOutlined} from '@ant-design/icons'; import {Button, Input, Modal, Radio} from "antd"; import Form from "antd/es/form"; import Row from "antd/es/grid/row"; import Col from "antd/es/grid/col"; import Divider from "antd/es/di...
the_stack
import type { AttachJsonRpcTransport, AttachMessageTransport, AttachProtocolTransport, AttachSession, Cancellation, DebugCallback, DetachSession, ErrorResponse, Notification, OnClose, OnError, OnEvent, OnMessage, OnNotification, ProtocolError, ProtocolTransport, RaceCancellation, Req...
the_stack
import { isIsomorphicApp } from './iso-component'; import { resolveAssetsPath, getStaticBucketName } from '../libs/iso-libs'; import * as deepmerge from 'deepmerge'; import { IConfigParseResult } from '../libs/config-parse-result'; import {IPlugin, forwardChildIamRoleStatements} from '../libs/plugin'; import { PARSER_M...
the_stack
import * as assert from 'assert' import * as Automerge from 'automerge' import { Backend, Frontend, Counter, Doc } from 'automerge' const UUID_PATTERN = /^[0-9a-f]{32}$/ interface BirdList { birds: Automerge.List<string> } interface NumberBox { number: number } describe('TypeScript support', () => { describe(...
the_stack
import { RouteRecognizer, RouteHandler, ConfigurableRoute, State, RecognizedRoute } from 'aurelia-route-recognizer'; import { Container } from 'aurelia-dependency-injection'; import { History, NavigationOptions } from 'aurelia-history'; import { NavigationInstruction, NavigationInstructionInit } from './navigation-inst...
the_stack
import { chimeeLog } from 'chimee-helper-log'; import { style } from 'dom-helpers'; import { addClass } from 'dom-helpers/class'; import { off as removeEvent, on as addEvent } from 'dom-helpers/events'; import { querySelectorAll } from 'dom-helpers/query'; import { esFullscreen } from 'es-fullscreen'; import { isArray,...
the_stack
import { DefinitionType } from '@yozora/ast' import type { INodePoint } from '@yozora/character' import { AsciiCodePoint, calcStringFromNodePoints } from '@yozora/character' import type { IMatchBlockHookCreator, IPhrasingContentLine, IResultOfEatContinuationText, IResultOfEatOpener, IResultOfOnClose, } from '...
the_stack
module LightSpeed { export class Player extends BABYLON.LeaderBoard.Character { shipLevel: number; levelMax: number; levelPoints: number; highScore: number; constructor() { super(); } } export class PlayerShip { shipLevel: number = 0;...
the_stack
'use strict'; import { KongPlugin, KongApi, KongApiConfig } from "./kong-interfaces"; // ==================== // WICKED TYPES // ==================== /** * Options defining how wicked awaits an URL. */ export interface WickedAwaitOptions { /** The expected status code */ statusCode?: number, /** Maxim...
the_stack
export namespace TrendPredictionModels { /** * All the information needed to identify a variable. * @export * @interface BasicVariableDefinition */ export interface BasicVariableDefinition { /** * * @type {string} * @memberof BasicVariableDefinition ...
the_stack
import * as $protobuf from 'protobufjs'; /** Namespace cosmos. */ export namespace cosmos { /** Namespace base. */ namespace base { /** Namespace v1beta1. */ namespace v1beta1 { /** Properties of a Coin. */ interface ICoin { /** Coin denom */ denom?: string | null; /** Coin amount */ amount...
the_stack
import EXTENT from '../data/extent'; import {SymbolInstanceArray} from '../data/array_types.g'; import type {SymbolInstance} from '../data/array_types.g'; import type {OverscaledTileID} from '../source/tile_id'; import type SymbolBucket from '../data/bucket/symbol_bucket'; import type StyleLayer from '../style/style_...
the_stack
import * as ObjC from '../objc'; import * as ObjCTypeUtils from '../objc-type-utils'; import * as Maybe from '../maybe'; const UI_GEOMETRY_IMPORT: ObjC.Import = { file: 'UIGeometry.h', isPublic: false, requiresCPlusPlus: false, library: 'UIKit', }; const NSOBJECT_CODING_STATEMENTS: CodingStatements = { codi...
the_stack
module android.view { import Activity = android.app.Activity; import KeyEvent = android.view.KeyEvent; import MenuItem = android.view.MenuItem; import ArrayList = java.util.ArrayList; import Context = android.content.Context; /** * Interface for managing the items in a menu. * <p> * By default, every Activity suppo...
the_stack
import { Component, Input, Output, OnChanges, SimpleChanges, EventEmitter } from '@angular/core'; import uniq from 'lodash-es/uniq'; import isArray from 'lodash-es/isArray'; import replace from 'lodash-es/replace'; import get from 'lodash-es/get'; import { WorkflowHelper } from '../services/workflowhelper.service'; c...
the_stack
import * as httpStatus from 'http-status'; import { Injectable } from 'injection-js'; import 'reflect-metadata'; import { Cache, CacheService } from '../../caching'; import { DocumentNotFoundException, Exception } from '../../error'; import { isNilOrWhiteSpace } from '../../utils'; import { Dictionary } from '../../uti...
the_stack
import { EventEmitter } from "../../EventEmitter"; import { Util } from "../../Util.class"; import { Protocol } from "../../Protocol.static"; import { Socket } from "./Socket"; var http, qs, webrtc; if (Util.isNodejs) { qs = require('querystring'); http = require('http'); try { webrtc = require('...
the_stack
import * as dotenv from 'dotenv'; import * as fs from 'fs'; import Manifest from '../src/Manifest'; import Traveler from '../src/Traveler'; import { TypeDefinition } from '../src/type-definitions/additions'; import { BungieMembershipType } from '../src/type-definitions/app'; import { DestinyComponentType, PlatformErro...
the_stack
import { BaseResource, CloudError } from "ms-rest-azure"; import * as moment from "moment"; export { BaseResource, CloudError }; /** * The Resource definition */ export interface Resource extends BaseResource { /** * Resource Id */ readonly id?: string; /** * Resource name */ readonly name?...
the_stack
import { aws_apigateway, aws_iam } from "aws-cdk-lib"; import { APIGatewayProxyEvent, APIGatewayProxyResult, APIGatewayEventRequestContext, } from "aws-lambda"; import { FunctionDecl, validateFunctionDecl } from "./declaration"; import { ErrorCodes, SynthError } from "./error-code"; import { CallExpr, Expr, Ident...
the_stack
import { expect } from 'chai' import { constructArnInOtherRegion, isMultiRegionAwsKmsArn, mrkAwareAwsKmsKeyIdCompare, parseAwsKmsKeyArn, parseAwsKmsResource, validAwsKmsIdentifier, isMultiRegionAwsKmsIdentifier, } from '../src/arn_parsing' describe('parseAwsKmsKeyArn', () => { it('parses a valid ARN', ...
the_stack
import { Injectable } from '@angular/core'; import { Observable, BehaviorSubject } from 'rxjs'; import { NotificationService } from '../../../notification/notification.service'; import { Status } from '../../../common/status'; import { ApiError, ApiErrorType } from '../../../error/api-error'; import { HttpClient } fro...
the_stack
import { write } from './domUtils'; /** * XML HTTP request wrapper. See also: {@link mxUtils.get}, {@link mxUtils.post} and * {@link mxUtils.load}. This class provides a cross-browser abstraction for Ajax * requests. * * ### Encoding: * * For encoding parameter values, the built-in encodeURIComponent JavaScript...
the_stack
import { Provider } from '@angular/core'; import { ComponentFixture, fakeAsync, TestBed, tick, } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatCheckboxModule } from '@angular/material/checkbox'; import { MatDia...
the_stack
import type { SubmitBody } from '../../typings/pinejs-client-core'; import type { InjectedDependenciesParam, InjectedOptionsParam, PineOptions, PineTypedResult, Application, ApplicationTag, ApplicationVariable, BuildVariable, Device, } from '..'; import type { CurrentService, CurrentServiceWithCommit, Devic...
the_stack
import * as React from 'react'; import * as ReactDOM from "react-dom"; import './App.css'; import JqxButton from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxbuttons'; import JqxTooltip from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtooltip'; import JqxTreeGrid, { ITreeGridProps, jqx } from 'jqwidgets-scripts/jqwidg...
the_stack
import type InjectedScript from './injectedScript'; import { elementText } from './selectorEvaluator'; type SelectorToken = { engine: string; selector: string; score: number; // Lower is better. }; const cacheAllowText = new Map<Element, SelectorToken[] | null>(); const cacheDisallowText = new Map<Element, Sel...
the_stack
import { Component, ComponentInterface, Element, Event, EventEmitter, h, Host, Listen, Method, Prop, State, Watch, } from '@stencil/core'; import { SuperTabsConfig } from '../interface'; import { checkGesture, debugLog, getNormalizedScrollX, pointerCoord, scrollEl, STCoord } from '../utils'; @...
the_stack
import { Modal, Tag, Typography, Button, message } from 'antd'; import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; import { BookOutlined, PlusOutlined } from '@ant-design/icons'; import { useEntityRegistry } from '../../useEntityRegistry'; import {...
the_stack
import { AwaitTransactionSuccessOpts, EncoderOverrides, ContractFunctionObj, ContractTxFunctionObj, SendTransactionOpts, BaseContract, PromiseWithTransactionHash, methodAbiToFunctionSignature, linkLibrariesInBytecode, } from '@0x/base-contract'; import { schemas } from '@0x/json-sche...
the_stack
/*global Observer*/ interface RequestFn { (src: string, responseCallback, callContext: RequestHandlerCallContext) : void; }; interface RequestOwner { request: RequestFn; }; interface RequestOnLoadCB { (asset: any, status: number, callContext: RequestHandlerCallContext): void; } interface RequestHand...
the_stack
import { fireEvent, render } from '@testing-library/react' import React from 'react' import { Table, XTable } from './table' import { wave } from './ui' const name = 'table', cell11 = 'Quick brown fox.', cell21 = 'Jumps over a dog.', cell31 = 'Wooo hooo.' let tableProps: Table describe('Table.tsx', () => { ...
the_stack
import * as path from 'path'; import * as fs from 'fs'; import * as Color from 'color'; import {template} from 'lodash'; import {promisify} from 'util'; import {TwaManifest} from './TwaManifest'; import {ShortcutInfo} from './ShortcutInfo'; import {Log} from './Log'; import {ImageHelper, IconDefinition} from './ImageHe...
the_stack
import assert from "assert"; import { ReadableStream, ReadableStreamBYOBReadResult } from "stream/web"; import { ArrayBufferViewConstructor, FixedLengthStream, Request, Response, } from "@miniflare/core"; import { utf8Encode } from "@miniflare/shared-test"; import test, { ThrowsExpectation } from "ava"; functi...
the_stack
import { h, JSX, Component, createRef, ComponentType } from 'preact'; import b from 'bem-react-helper'; import { getHandleClickProps } from 'common/accessibility'; import { COMMENT_NODE_CLASSNAME_PREFIX } from 'common/constants'; import { StaticStore } from 'common/static-store'; import { debounce } from 'utils/debou...
the_stack
import { Injectable } from '@angular/core'; import { Plugin, Cordova, AwesomeCordovaNativePlugin } from '@awesome-cordova-plugins/core'; import { Observable } from 'rxjs'; /** * @deprecated use ATTRIBUTION_NETWORK instead * * Enum for attribution networks * @readonly * @enum {number} */ export enum ATTRIBUTION_N...
the_stack
export interface Account { /** Gets or sets the identifier. */ id?: string; /** Identity Info on the tracked resource */ identity?: Identity; /** Gets or sets the location. */ location?: string; /** Gets or sets the name. */ name?: string; /** Gets or sets the properties. */ properties?: AccountProp...
the_stack
import { Button, Row, Select, Space, Tabs, Transfer, Tree } from 'antd'; import { FilterConditionType } from 'app/constants'; import useI18NPrefix, { I18NComponentProps } from 'app/hooks/useI18NPrefix'; import useMount from 'app/hooks/useMount'; import ChartFilterCondition, { ConditionBuilder, } from 'app/models/Char...
the_stack
import * as chalk from "chalk"; import { UAState, UAStateVariable, UATransition, UATransition_Base, UATransitionVariable } from "node-opcua-nodeset-ua"; import { assert } from "node-opcua-assert"; import { ObjectTypeIds } from "node-opcua-constants"; import { coerceLocalizedText, LocalizedText, NodeClass } from "node-o...
the_stack
import * as fs from "fs"; import * as glob from "glob"; import { join } from "path"; import * as readline from "readline"; import * as Yargs from "yargs"; import { CloudSqlite, EditableWorkspaceDb, IModelHost, IModelHostConfiguration, IModelJsFs, ITwinWorkspaceDb, WorkspaceContainerId, WorkspaceDbName, WorkspaceR...
the_stack
import * as React from 'react'; import styles from './AddJsCssReference.module.scss'; import { IAddJsCssReferenceProps } from './IAddJsCssReferenceProps'; import { escape } from '@microsoft/sp-lodash-subset'; import { TextField, MaskedTextField } from 'office-ui-fabric-react/lib/TextField'; import { ListView, IViewFiel...
the_stack
import React, { useState, useRef, useEffect, useContext, useMemo, useCallback, MutableRefObject, RefObject, } from 'react' import { encode, decode } from '@kunigi/string-compression' import cn from 'classnames' import copy from 'copy-to-clipboard' import { BN } from 'ethereumjs-util' import { useRouter...
the_stack
export as namespace Reselect; export type Selector<S, R> = (state: S) => R; export type OutputSelector<S, R, C> = Selector<S, R> & { resultFunc: C; recomputations: () => number; resetRecomputations: () => number; } export type ParametricSelector<S, P, R> = (state: S, props: P, ...args: any[]) => R; export typ...
the_stack
import { calculatePosition, OffsetPosition,calculateRelativeBasedPosition } from '../../src/common/position'; import {createElement} from '@syncfusion/ej2-base'; describe('Position Module Specs', () => { let element: HTMLElement; let offset: OffsetPosition = { left: 228, top: 220 }; function updateoffset()...
the_stack
import Stream = require("stream"); import File = require("fs"); // Note: The 'import * as Foo from "./Foo' syntax avoids the "compiler re-write problem" that breaks debugger hover inspection import * as IC from "./ICProcess"; import * as Configuration from "./Configuration"; import * as StringEncoding from "./StringEnc...
the_stack
import * as sinon from "sinon"; import { ClientContextMock, ContextMock, EntityMock, EventContextMock, FormItemMock, FormSelectorMock, ItemCollectionMock, ProcessManagerMock, ProcessMock, StageMock, StepMock, StringAttributeMock, UiMock, UserSettingsMock } from "....
the_stack
import { CancellationToken } from 'vscode-languageserver'; import { Declaration, DeclarationType, isAliasDeclaration } from '../analyzer/declaration'; import * as ParseTreeUtils from '../analyzer/parseTreeUtils'; import { SourceMapper } from '../analyzer/sourceMapper'; import { Symbol } from '../analyzer/symbol'; impo...
the_stack
import { EventEmitter } from '@angular/core'; import { cloneArray, cloneValue, IBaseEventArgs, resolveNestedPath, yieldingLoop } from '../../core/utils'; import { GridColumnDataType, DataUtil } from '../../data-operations/data-util'; import { ExportUtilities } from './export-utilities'; import { IgxExporterOptionsBase ...
the_stack
import { convertToGraph, stripInsertInputClientFields, convertToInsertInput } from "."; /* * */ test("convertToGraph - object should return as expected", () => { const foo = { id: 1, bar: { id: 2, name: "foo bar" } }; const fragment = convertToGraph({ input: foo, fieldMap: { typenames: { bar: "Bar" } } }); e...
the_stack
import type NodePath from "./index"; // This file contains Babels metainterpreter that can evaluate static code. const VALID_CALLEES = ["String", "Number", "Math"]; const INVALID_METHODS = ["random"]; /** * Walk the input `node` and statically evaluate if it's truthy. * * Returning `true` when we're sure that the...
the_stack
import { assert } from 'chai'; import { sort, inPlaceSort, createNewSortInstance, } from '../src/sort'; describe('sort', () => { let flatArray:number[]; let flatNaturalArray:string[]; let students:{ name:string, dob:Date, address:{ streetNumber?:number }, }[]; let multiPropArray:{ name:...
the_stack
import { SwatchRGB } from "@fluentui/web-components"; import { parseColorHexRGB } from "@microsoft/fast-colors"; import { DesignToken, DesignTokenValue } from "@microsoft/fast-foundation"; import { AdditionalData, AppliedDesignToken, AppliedRecipe, PluginNodeData, ReadonlyAppliedDesignTokens, Re...
the_stack
import PostNodeBuilder from 'mobiledoc-kit/models/post-node-builder' import Post from 'mobiledoc-kit/models/post' import { Dict, Maybe } from 'mobiledoc-kit/utils/types' import Atom from 'mobiledoc-kit/models/atom' import { keys } from 'mobiledoc-kit/utils/object-utils' import Markup from 'mobiledoc-kit/models/markup' ...
the_stack
import { html, render } from 'lit-html'; import BXRadioButtonGroup, { RADIO_BUTTON_ORIENTATION } from '../../src/components/radio-button/radio-button-group'; import { RADIO_BUTTON_LABEL_POSITION } from '../../src/components/radio-button/radio-button'; import { Default } from '../../src/components/radio-button/radio-but...
the_stack
import { ContractTransaction, Signer, providers, constants, BigNumber } from 'ethers'; import { batchPaymentsArtifact } from '@requestnetwork/smart-contracts'; import { BatchPayments__factory } from '@requestnetwork/smart-contracts/types'; import { ClientTypes, PaymentTypes } from '@requestnetwork/types'; import { ITra...
the_stack
import chai, { expect } from 'chai'; import { BigNumber } from 'ethers'; import { solidity } from 'ethereum-waffle'; import { DRE, advanceBlockTo, advanceBlock, waitForTx, getImpersonatedSigner, evmSnapshot, evmRevert, } from '../helpers/misc-utils'; import { makeSuite, setupTestEnvironment, TestEnv } fr...
the_stack
import { useMutation, useQuery } from '@apollo/client'; import { FormControl, FormControlLabel, Radio, RadioGroup, Typography, } from '@material-ui/core'; import { ButtonFilled, ButtonOutlined, InputField, Modal } from 'litmus-ui'; import React, { useEffect, useState } from 'react'; import { useTranslation } ...
the_stack
import * as vscode from "vscode"; import assert from "assert"; import { EmacsEmulator } from "../../../emulator"; import { assertTextEqual, cleanUpWorkspace, setEmptyCursors, assertCursorsEqual, setupWorkspace, assertSelectionsEqual, } from "../utils"; import { KillRing } from "../../../kill-yank/kill-ring"...
the_stack
import {fromEvent, Unsubscribable} from 'rxjs'; import {auditTime} from 'rxjs/operators'; import {defaultsDeep, divide, add} from 'lodash-es'; let doc: Document = document; type Grid = boolean | number | { width: number, height: number } | { x?: number, y?: number }[] interface setting { [propName: string]: any; ...
the_stack
import type vscode from 'vscode'; import { IRPCProtocol } from '@opensumi/ide-connection'; import { IExtensionInfo, Uri } from '@opensumi/ide-core-common'; import { MainThreadAPIIdentifier, IMainThreadCommands, CommandHandler, } from '@opensumi/ide-extension/lib/common/vscode'; import * as types from '@opensumi/...
the_stack
import { Color, hexColorToInt } from '@alyle/ui/color'; import { _STYLE_MAP, Styles, LyClasses } from './theme/style'; import { StyleCollection, StyleTemplate } from './parse'; import { memoize } from './minimal/memoize'; export class LyStyleUtils { name: string; typography: { fontFamily?: string; htmlFont...
the_stack
import { ConventionSiteModel, PanelTextModel, PanelFacadeModel, PanelShadowModel, PanelFilterModel, PanelAnimationModel, } from "../../panel-widget-appearance/model"; import { isObject } from "@ng-public/util"; import { ProfileModel } from "../../panel-scope-enchantment/model"; import { EventMod...
the_stack
module Charting { declare var IPython:any; declare var datalab:any; // Wrappers for Plotly.js and Google Charts abstract class ChartLibraryDriver { chartModule:any; constructor(protected dom:HTMLElement, protected chartStyle:string) { } abstract requires(url: string, chartStyle:string):Array<...
the_stack
import * as path from 'path'; import {google} from '../../protos/protos'; import {grpc} from 'google-gax'; import * as protoLoader from '@grpc/proto-loader'; // eslint-disable-next-line node/no-extraneous-import import {Metadata} from '@grpc/grpc-js'; import {Transaction} from '../../src'; import protobuf = google.span...
the_stack
import { ComponentType } from 'react'; import { obx, computed, autorun, makeObservable, IReactionPublic, IReactionOptions, IReactionDisposer } from '@alilc/lowcode-editor-core'; import { ProjectSchema, ComponentMetadata, ComponentAction, NpmInfo, IEditor, CompositeObject, PropsList, isNodeSchema, Node...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [lex-v2](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlexv2.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/refere...
the_stack
import React, { Component } from 'react' import { StyleSheet, Text, View, Image, Dimensions, InteractionManager, ActivityIndicator, StatusBar, Animated, Easing, Linking, ScrollView } from 'react-native' import Interactable from 'react-native-interactable' import Ionicons from 'react-native-vec...
the_stack
import React from "react"; import { storiesOf } from "@storybook/react"; import { action } from "@storybook/addon-actions"; import { withInfo } from "@storybook/addon-info"; import { LazyImage } from "../src/index"; import { Container, Divider } from "./utils"; import { LazyImageOpinionated } from "./OpinionatedCompone...
the_stack
'use strict'; import cp = require('child_process'); import path = require("path"); import fs = require('fs'); import async = require('async'); import {getCleanTrace} from 'clean-trace'; import * as util from "util"; import * as assert from 'assert'; import * as Domain from 'domain'; // project import log from '../../...
the_stack
import { ObserverLocator, Scope, Expression, ICollectionObserverSplice, OverrideContext, BindingExpression, } from 'aurelia-binding'; import { BoundViewFactory, ViewSlot, ViewResources, TargetInstruction, IStaticResourceConfig, ElementEvents, } from 'aurelia-templating'; import { AbstractRepea...
the_stack
import plugin from '../' import Client, { EventDeliveryPayload } from '@bugsnag/core/client' type EnhancedWindow = Window & typeof globalThis & { onerror: OnErrorEventHandlerNonNull } let window: EnhancedWindow describe('plugin: window onerror', () => { beforeEach(() => { window = {} as unknown as EnhancedWindow ...
the_stack
import React from 'react' export const LogoAscii: React.FunctionComponent<{ fontSize?: number }> = ({ fontSize = 8 }) => { // colors are hardcoded as it's a 1-to-1 conversion from src-cli ASCII logo const color_af5f5f = { color: '#af5f5f' } const color_d75f00 = { color: '#d75f00' } const color_ff5f00 =...
the_stack
export enum FilterType { repo = 'repo', repogroup = 'repogroup', repohasfile = 'repohasfile', repohascommitafter = 'repohascommitafter', file = 'file', type = 'type', case = 'case', lang = 'lang', fork = 'fork', archived = 'archived', visibility = 'visibility', count = 'c...
the_stack
import React from 'react'; import { connect } from 'react-redux'; import { RouteComponentProps } from 'react-router-dom'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; ...
the_stack
import { userInfo } from 'os'; import type vscode from 'vscode'; import { IRPCProtocol } from '@opensumi/ide-connection'; import { Event, Emitter, getDebugLogger, isUndefined, DisposableStore, IDisposable, Deferred, Disposable, CancellationTokenSource, uuid, } from '@opensumi/ide-core-common'; imp...
the_stack
import { useCallbackRef } from '@radix-ui/react-use-callback-ref' import { useEscapeKeydown } from '@radix-ui/react-use-escape-keydown' import { useComposedRefs } from '@tamagui/compose-refs' import { composeEventHandlers } from '@tamagui/core' import * as React from 'react' import * as ReactDOM from 'react-dom' impor...
the_stack
import { options } from '@tko/utils'; import { applyBindings } from '@tko/bind'; import { observable as Observable } from '@tko/observable'; import { DataBindProvider } from '@tko/provider.databind' import { MultiProvider } from '@tko/provider.multi' import { VirtualProvider } from '@tko/provider.virtual...
the_stack
import AWSMock from 'aws-sdk-mock' import AWS, { CostExplorer, CloudWatch, CloudWatchLogs } from 'aws-sdk' import { Logger } from '@cloud-carbon-footprint/common' import { StorageEstimator } from '@cloud-carbon-footprint/core' import EBS from '../lib/EBS' import { AWS_REGIONS } from '../lib/AWSRegions' import { Service...
the_stack
import * as React from 'react'; import { connect } from 'react-redux'; import { Dispatch } from 'redux'; import { resetSettings, updateSetting } from '../../../redux/Actions'; import { initialState } from '../../../redux/State'; import { cadLog, isChrome, isFirefox, isFirefoxNotAndroid, } from '../../../service...
the_stack
export interface Node { id: string /* The id of the node. */ parent?: Node | null /* The parent of this node. */ children?: Node[] | null /* The children of this node. */ } export interface RootQueryType { allSitePage?: SitePageConnection | null /* Connection to all SitePage nodes */ allSitePlugin?...
the_stack
import * as Common from '../../../../core/common/common.js'; import * as i18n from '../../../../core/i18n/i18n.js'; import * as Platform from '../../../../core/platform/platform.js'; import * as Formatter from '../../../../models/formatter/formatter.js'; import * as TextUtils from '../../../../models/text_utils/text_ut...
the_stack
const throttle = require('lodash.throttle') //the export exists to indicate that the file is a module for typescript to allow the code to use global object export {}; //define variable types for typscript here declare global { interface devTools { renderers: { size?: number }; // onCommitFiberRoot(any?); ...
the_stack
import { AggregationAttrs, AVAILABLE_TABLES, getHiddenStackHelperColumns, getParentStackWhereFilter, getStackColumn, getStackDepthColumn, PivotAttrs, } from './pivot_table_common'; export function getPivotAlias(pivot: PivotAttrs): string { return `${pivot.tableName} ${pivot.columnName}`; } export func...
the_stack
import { computed, reactive, ref, toRefs, watch } from 'vue' import { createPinia, defineStore, DefineStoreOptions, setActivePinia, StateTree, } from '../src' function defineOptions< O extends Omit<DefineStoreOptions<string, StateTree, any, any>, 'id'> >(options: O): O { return options } describe('HMR',...
the_stack
import { createApiPipelineWithUrl, ApiInvokeOptions } from 'farrow-api-client' /** * {@label AddPetInput} */ export type AddPetInput = { /** * @remarks Pet object that needs to be added to the store */ body: Pet } /** * {@label Pet} */ export type Pet = { id: number category: Category name: string...
the_stack
// TypeScript Version: 2.2 import * as braces from 'braces'; declare namespace micromatch { interface Item { glob: string; regex: RegExp; input: string; output: string; } interface Options { /** * Allow glob patterns without slashes to match a file path base...
the_stack
import axios, { AxiosRequestConfig } from 'axios' import sdk, { Device, DeviceInformation, ScryptedDeviceBase, OnOff, DeviceProvider, ScryptedDeviceType, ThermostatMode, Thermometer, HumiditySensor, TemperatureSetting, Settings, Setting, ScryptedInterface, Refresh, TemperatureUnit, HumidityCommand, HumidityMode, Humidi...
the_stack
'use strict' import * as Debug from 'debug' import { EventEmitter2 } from 'eventemitter2' import EWMA from './EWMA' import Histogram from './metrics/histogram' const fclone = (data: Object) => JSON.parse(JSON.stringify(data)) const log = Debug('axm:features:tracing:aggregator') export interface Span { name: string...
the_stack
import { component } from 'vuets' import { copyp, defp, extractMsg, bit_clear_and_set } from 'coreds/lib/util' import { PojoState, HasState } from 'coreds/lib/types' import { diffFieldTo } from 'coreds/lib/diff' import { bindFocus, debounce, Keys } from 'coreds-ui/lib/dom_util' import { nextTick } from 'vue' import { u...
the_stack
import {equal as assertEqual, notEqual as assertNotEqual} from 'assert'; import {exposeClosureState, injectIntoHead, parseHTML} from '../src/lib/transformations'; import {DEFAULT_AGENT_URL, DEFAULT_BABEL_POLYFILL_URL} from '../src/lib/mitmproxy_interceptor'; import {readFileSync} from 'fs'; const AGENT_SOURCE = readFi...
the_stack
import { mat3, mat4, vec3 } from 'gl-matrix'; import { auxiliaries } from 'webgl-operate'; import { Camera, Canvas, Context, DefaultFramebuffer, EventProvider, ForwardSceneRenderPass, Framebuffer, Geometry, GLTFAlphaMode, GLTFLoader, GLTFPbrMaterial, GLTFPrimitive, ...
the_stack
import { h, render, Fragment } from "preact"; import { useState, useEffect, useRef, useCallback, useMemo } from "preact/hooks"; import { Os, Storage, Notification, RegularFont, GoogleFont, Theme, NotesObject, NotesOrder, Sync, Message, MessageType, } from "shared/storage/schema"; import { setThem...
the_stack
import {SimpleChanges} from '@angular/core'; import * as _moment from 'moment'; import {DlDateTimePickerModel} from './dl-date-time-picker-model'; import {DlModelProvider} from './dl-model-provider'; /** * Work around for moment namespace conflict when used with webpack and rollup. * See https://github.com/dherges/n...
the_stack
import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import * as shx from 'shelljs';...
the_stack
import * as os from 'os'; import * as fs from 'fs'; import * as path from 'path'; import * as assert from 'assert'; import * as vscode from 'vscode'; import { MonitorView } from '../../MonitorView'; import { Settings } from "../../Settings"; import * as SharedConstants from '../../SharedConstants'; import axios from '...
the_stack
import { buildThunks, PatchQueryResultThunk, UpdateQueryResultThunk } from './buildThunks'; import { ActionCreatorWithPayload, AnyAction, Middleware, Reducer, ThunkAction, ThunkDispatch } from '@reduxjs/toolkit'; import { EndpointDefinitions, QueryArgFrom, QueryDefinition, MutationDefinition, AssertTagTypes, ...
the_stack
import * as chai from 'chai'; import * as fs from 'fs'; import { DeclarationGenerator } from '../../src/generator/declarationGenerator'; import { TypingGenerator } from '../../src/generator/typingGenerator'; const expect = chai.expect; describe('SObject Javacript type declaration generator', () => { let typePath = ...
the_stack
import { compatibleAsync, safeExec } from 'rx-util' const LastUpdateKey = 'LastUpdate' const LastValueKey = 'LastValue' /** * 在固定时间周期内只执行函数一次 * @param {Function} fn 执行的函数 * @param {Number} time 时间周期 * @returns {Function} 包装后的函数 */ function onceOfCycle(fn: (...args: any[]) => any, time: number) { const get = wi...
the_stack
import { Client, ClientOptions } from '@src/core' import { asyncSome, NonOptional } from '@src/utils' import { ChannelsCachingPolicy, EmojisCachingPolicy, GlobalCachingPolicy, GuildsCachingPolicy, GuildMembersCachingPolicy, MessagesCachingPolicy, OverwritesCachingPolicy, PermissionOverwriteTypes, Pres...
the_stack