text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { auth, host } from '../main'; import { i18n } from '../model/i18n'; import { Utils, _, __ } from '../helpers/utils'; import { Doc, DocType } from '../model/doc'; import { strings } from '../model/strings'; import { PBICloudDataset, PBICloudDatasetConnectionMode, PBICloudDatasetEndorsement } from '../model/pbi-...
the_stack
import type { Server } from "http"; import type { Server as SecureServer } from "https"; import { Optional } from "typescript-optional"; import type { Express } from "express"; import OAS from "../../json/openapi.json"; import { Secp256k1Keys, Logger, Checks, LoggerProvider, JsObjectSigner, IJsObjectSignerO...
the_stack
import {Context} from '@rundeck/testdeck/context' import {CreateContext} from '@rundeck/testdeck/test/selenium' import {ProjectCreatePage} from 'pages/projectCreate.page' import {LoginPage} from 'pages/login.page' import {JobCreatePage} from 'pages/jobCreate.page' import {JobShowPage} from "pages/jobShow.page" import {...
the_stack
"use strict"; import { CoeCliCommands, TextParseFunction } from '../../src/commands/commands' import { LoginCommand } from '../../src/commands/login' import { AA4AMCommand } from '../../src/commands/aa4am' import { RunCommand } from '../../src/commands/run' import { CLICommand } from '../../src/commands/cli' import { m...
the_stack
import {ConnectionManager} from "./connection/ConnectionManager.ts"; import {Connection} from "./connection/Connection.ts"; import {MetadataArgsStorage} from "./metadata-args/MetadataArgsStorage.ts"; import {ConnectionOptions} from "./connection/ConnectionOptions.ts"; import {getFromContainer} from "./container.ts"; im...
the_stack
import { Lambda1, Lambda1_deps, Lambda1_toFunction, Lambda2, Lambda2_deps, Lambda2_toFunction, Lambda3, Lambda3_deps, Lambda3_toFunction, Lambda4, Lambda4_deps, Lambda4_toFunction, Lambda5, Lambda5_deps, Lambda5_toFunction, Lambda6, Lambda6_deps, Lambda6_toFunction, ...
the_stack
declare const Module: any; export const enum MarshalType { String, Int, Long, Float, Double, Handle } export class Handle { private readonly _value: number get value(): number { return this._value } constructor(value: number) { this._value = value } } exp...
the_stack
import "./folder-icon.less"; import "./focus.less"; import { getApi } from "@aidenlx/obsidian-icon-shortcodes"; import { AFItem, CachedMetadata, debounce, EventRef, FileExplorer, FolderItem, TAbstractFile, TFile, TFolder, } from "obsidian"; import { dirname } from "path"; import ALxFolderNote from "...
the_stack
import { IBlockType } from '../store/storetype'; import { LinesTypes } from './calcRender'; import { marklineConfig } from './marklineConfig'; export interface RealStyle { width: number; height: number; left: number; right: number; top: number; bottom: number; } /** * * * @export 吸附间距之前已经算出,该函数直接做处理 * @para...
the_stack
import {Annotation, Position} from './position' import {Socket} from './gtp_socket' import {Color, Move, N, Nullable, gtpColor, movesEqual, setBoardSize, stonesEqual, toGtp} from './base' import {Graph} from './graph' import * as lyr from './layer' import {Log} from './log' import {Board} from './board' import * as uti...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { Endpoint, EndpointsListByProfileOptionalParams, ResourceUsage, EndpointsListResourceUsageOptionalParams, EndpointsGetOptionalParams, EndpointsGetResponse, EndpointsCr...
the_stack
import cheerio from 'cheerio'; import htmlToText from 'html-to-text'; import * as _ from 'underscore'; import { Comments } from '../lib/collections/comments/collection'; import { questionAnswersSort } from '../lib/collections/comments/views'; import { postGetCommentCountStr } from '../lib/collections/posts/helpers'; im...
the_stack
import type { DataStore, SortParams, Schema, BaseConfig } from '@tanker/datastore-base'; import { errors as dbErrors, transform } from '@tanker/datastore-base'; const { deserializeBinary: fromDB, serializeBinary: toDB } = transform; export type Config = BaseConfig; export type { Schema }; function extractSortKey(so...
the_stack
import anyTest, { TestInterface } from 'ava'; import { NohmClass } from '../ts'; import * as child_process from 'child_process'; import * as testArgs from './testArgs'; import { cleanUpPromise, sleep } from './helper'; import { IPropertyDiff } from '../ts/model.header'; import { register } from './pubsub/Model'; int...
the_stack
import { ButtonGroup, Classes, Dialog, Intent, NonIdealState, Spinner } from '@blueprintjs/core'; import { IconNames } from '@blueprintjs/icons'; import classNames from 'classnames'; import * as React from 'react'; import { InterpreterOutput } from '../application/ApplicationTypes'; import { Assessment, Assessment...
the_stack
import React from 'react' import classnames from 'classnames' import { vec2 } from 'gl-matrix' import { PhotoWork } from 'common/CommonTypes' import { CameraMetrics, getInvertedProjectionMatrix, createProjectionMatrix } from 'common/util/CameraMetrics' import { Point, Size, Rect, Side, Corner, corners, Insets, zeroIns...
the_stack
import {authenticate, UserProfileFactory} from '@loopback/authentication'; import {inject} from '@loopback/core'; import { MockTestOauth2SocialApp, MyUser, userRepository, } from '@loopback/mock-oauth2-provider'; import {get, Response, RestApplication, RestBindings} from '@loopback/rest'; import {SecurityBindings...
the_stack
namespace ts.projectSystem { describe("unittests:: tsserver:: Project Errors", () => { function checkProjectErrors(projectFiles: server.ProjectFilesWithTSDiagnostics, expectedErrors: readonly string[]): void { assert.isTrue(projectFiles !== undefined, "missing project files"); ch...
the_stack
import { ValueCell } from '../../../mol-util'; import { Mat4, Vec3, Vec4 } from '../../../mol-math/linear-algebra'; import { transformPositionArray, GroupMapping, createGroupMapping } from '../../util'; import { GeometryUtils } from '../geometry'; import { createColors } from '../color-data'; import { createMarkers } f...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/deploymentOperationsMappers"; import * as Parameters from "../models/parameters"; import { ResourceManagementClientContext } from "../resourceManagementClientContext"; /** Class representing a Deployme...
the_stack
/// <reference path="../../definitions/Q.d.ts" /> /// <reference path="../../definitions/shelljs.d.ts" /> import path = require('path'); import fs = require('fs'); import zlib = require('zlib'); import stream = require('stream'); import Q = require("q"); import shelljs = require("shelljs"); import ctxm = require('../....
the_stack
import * as os from 'os'; import * as fs from 'fs'; import * as path from 'path'; import * as tl from 'azure-pipelines-task-lib/task'; import * as trm from 'azure-pipelines-task-lib/toolrunner'; import httpClient = require("typed-rest-client/HttpClient"); import httpInterfaces = require("typed-rest-client/Interfaces"...
the_stack
import { Display, screen } from 'electron' import { ipcMain as ipc } from 'electron-better-ipc' import electronLog from 'electron-log' import { maxBy } from 'lodash' import moment from 'moment' import { ImageSource, SatelliteView } from '../shared/config_types' import { VIEW_DOWNLOAD_PROGRESS } from '../shared/IpcDefi...
the_stack
import { ChildProcess, spawn } from 'child_process'; import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; import stream from 'stream'; import { app, App, BrowserWindow, ipcMain } from 'electron'; import { Task, tasklist } from 'tasklist'; import { BackendCode } from '@/electron-main/backend...
the_stack
import { GeneratorOptions } from "@babel/generator"; import traverse, { Visitor, NodePath } from "@babel/traverse"; import template from "@babel/template"; import * as t from "@babel/types"; import { ParserOptions } from "@babel/parser"; export { ParserOptions, GeneratorOptions, t as types, template, ...
the_stack
import { TokenReader, IRenderSettings, defaultRenderSettings } from "../helpers"; import { CSSToken, stringToTokens } from "./css"; import { CSSValue, parseValue, renderValue } from "./value"; /* CSS Selectors: */ interface IFullSelector { tagName: string, classes: string[], id: string, child: ISelecto...
the_stack
import React, { PureComponent } from 'react' import styled, { css } from 'react-emotion' import Dialog from './dialog' import { DefaultButton, GreenButton } from './buttons' import { Destination, CustomCategories, CategoryPreferences, PreferenceDialogTemplate } from '../types' const hideOnMobile = css` @medi...
the_stack
import { PLAYER, PLAYER_STATS_TABLES, RATINGS, PLAYER_SUMMARY, isSport, DEFAULT_JERSEY, } from "../../common"; import { player } from "../core"; import { idb } from "../db"; import { face, formatEventText, g, getTeamColors, getTeamInfoBySeason, helpers, processPlayersHallOfFame, random, } from "../util"; ...
the_stack
import { Injectable } from '@angular/core'; import { CoreSites, CoreSitesCommonWSOptions } from '@services/sites'; import { CoreWSExternalWarning } from '@services/ws'; import { CoreTextUtils } from '@services/utils/text'; import { CoreTimeUtils } from '@services/utils/time'; import { CoreUser } from '@features/user/s...
the_stack
import { elementUpdated, expect, fixture, oneEvent } from '@open-wc/testing'; import { mock, spy, stub, useFakeTimers } from 'sinon'; import { safelyDefineCustomElement } from '../../../utils/dom'; import { keysOf } from '../../../utils/object'; import { equal, isFunction } from '../../../utils/unit'; import { CanPlay...
the_stack
import React, { Dispatch, PropsWithChildren, SetStateAction, SyntheticEvent, } from "react"; import produce from "immer"; import get from "lodash/get"; import chunk from "lodash/chunk"; import { Alert, Accessibility, Box, Checkbox, Dropdown, DropdownItemProps, Flex, FormDropdown as FluentUIFo...
the_stack
module android.app { import DialogInterface = android.content.DialogInterface; import Drawable = android.graphics.drawable.Drawable; import Bundle = android.os.Bundle; import Message = android.os.Message; import TypedValue = android.util.TypedValue; import KeyEvent = android.view.KeyEvent; import MotionEvent = android....
the_stack
/// <reference types="jquery" /> /// <reference types="knockout" /> // By default, Durandal uses JQuery's Defer/Promise implementation, but durandal supports injecting/configuring // usage of different JavaScript Defer/Promise libraries (f.ex. Q or ES6 Promise polyfills). // You might therefore want to use a different...
the_stack
import { ExecFileException } from 'child_process' import * as fs from 'fs' import * as path from 'path' import { option } from 'fp-ts' import { Tail } from 'tail' import * as vscode from 'vscode' import * as AW2E from '@shared/activity-webview-to-extension' import * as E2AW from '@shared/extension-to-activity-webview...
the_stack
// <copyright file="submit-idea.tsx" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> import * as React from "react"; import { WithTranslation, withTranslation } from "react-i18next"; import * as microsoftTeams from "@microsoft/teams-js"; import { Text, Flex, Provider, Label, Inpu...
the_stack
import electron from 'electron'; import memoize from 'memoize-one'; import React from 'react'; import Realm from 'realm'; import { ClassFocussedHandler, IPropertyWithName, ListFocussedHandler, IsEmbeddedTypeChecker, SingleListFocussedHandler, JsonViewerDialogExecutor, } from '..'; import { store } from '.....
the_stack
import React, { ReactNode, CSSProperties, useContext, useState, useImperativeHandle, useRef, useEffect, } from 'react'; import { isUndefined, isObject } from '../_util/is'; import cs from '../_util/classNames'; import { ConfigContext } from '../ConfigProvider'; import IconDown from '../../icon/react-icon/...
the_stack
import { shallowMount, Wrapper } from '@vue/test-utils'; import { DateTime } from 'luxon'; import CustomGranularityCalendar from '@/components/DatePicker/CustomGranularityCalendar.vue'; import { DECADE_NAV, RANGE_PICKERS, WEEK_NAV } from '@/components/DatePicker/GranularityConfigs'; import { DateRange } from '@/lib/da...
the_stack
const { sprintf } = require('sprintf-js'); interface StringToStringMap { [key: string]: string; } interface CodeToCountryMap { [key: string]: string[]; } const codeToLanguageE_: StringToStringMap = {}; codeToLanguageE_['aa'] = 'Afar'; codeToLanguageE_['ab'] = 'Abkhazian'; codeToLanguageE_['af'] = 'Afrikaans'; code...
the_stack
import { PluginEndpointDiscovery, PluginCacheManager, } from '@backstage/backend-common'; import { CatalogClient } from '@backstage/catalog-client'; import { stringifyEntityRef } from '@backstage/catalog-model'; import { Config } from '@backstage/config'; import { NotFoundError } from '@backstage/errors'; import { ...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/fileServersMappers"; import * as Parameters from "../models/parameters"; import { BatchAIManagementClientContext } from "../batchAIManagementClien...
the_stack
import * as PP from '../../shared/property-path' import { arbitraryJSBlock, clearTopLevelElementUniqueIDs, isJSXArbitraryBlock, isJSXElement, isUtopiaJSXComponent, jsxArbitraryBlock, jsxAttributeOtherJavaScript, jsxAttributeValue, jsxElement, utopiaJSXComponent, defaultPropsParam, getJSXAttribut...
the_stack
import * as THREE from "three"; import { Transform } from "./Transform"; /** * @class ViewportCoords * * @classdesc Provides methods for calculating 2D coordinate conversions * as well as 3D projection and unprojection. * * Basic coordinates are 2D coordinates on the [0, 1] interval and * have the origin point...
the_stack
import { InspectorHost } from '@bfemulator/sdk-client'; import { Splitter } from '@bfemulator/ui-react'; import { IBotConfiguration, IQnAService, ServiceTypes } from 'botframework-config/lib/schema'; import * as React from 'react'; import * as styles from './App.scss'; import AppStateAdapter from './AppStateAdapter'; ...
the_stack
// tslint:disable:no-unused-expression max-func-body-length promise-function-async max-line-length no-unnecessary-class // tslint:disable:no-non-null-assertion object-literal-key-quotes variable-name no-constant-condition import * as assert from 'assert'; import { isNullOrUndefined } from 'util'; import { DeploymentTe...
the_stack
import { v3, Vec3 } from "../../math/Vec3"; import { DistanceResult } from '../../alg/result'; import { Segment } from './Segment'; import { delta4 } from '../../math/Math'; import { Ray } from './Ray'; import { Triangle } from './Triangle'; import { Polyline } from './Polyline'; import { Plane } from "./Plane"; const...
the_stack
import * as vscode from 'vscode'; import * as fs from 'fs-extra'; import * as chai from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as sinon from 'sinon'; import * as sinonChai from 'sinon-chai'; import { version as currentExtensionVersion, dependencies as extDeps } from '../../package.json'; i...
the_stack
import * as React from "react" import makeStyles from "@material-ui/core/styles/makeStyles" import Typography from "@material-ui/core/Typography" import { RequestStatus } from "@/types" import { Url, StorageKey } from "@/constants" import ExternalLink from "@/components/ExternalLink" import LabeledCheckbox from "@/co...
the_stack
import BrowserEmulator from '@secret-agent/default-browser-emulator'; import Log from '@secret-agent/commons/Logger'; import { IPuppetPage } from '@secret-agent/interfaces/IPuppetPage'; import IPuppetContext from '@secret-agent/interfaces/IPuppetContext'; import Core from '@secret-agent/core'; import CorePlugins from '...
the_stack
import { IdleTransaction, Span, Transaction } from '@sentry/tracing'; import { Measurements } from '@sentry/types'; import { logger, timestampInSeconds } from '@sentry/utils'; export interface StallMeasurements extends Measurements { 'stall_count': { value: number, unit: string }; 'stall_total_time': { value: numb...
the_stack
import { deepNormalizeScriptCov, normalizeFunctionCov, normalizeProcessCov, normalizeRangeTree, normalizeScriptCov, } from "./normalize"; import { RangeTree } from "./range-tree"; import { FunctionCov, ProcessCov, Range, RangeCov, ScriptCov } from "./types"; /** * Merges a list of process coverages. * * T...
the_stack
import { InternalSchema, SchemaModel, ModelField, PersistentModel, isGraphQLScalarType, QueryOne, PredicatesGroup, isPredicateObj, SortPredicatesGroup, PredicateObject, isPredicateGroup, isModelFieldType, isTargetNameAssociation, isModelAttributeAuth, ModelAttributeAuth, ModelAuthRule, utils, } from '@...
the_stack
import { delay, all, call, CallEffect } from "redux-saga/effects"; import { reduceCollection, addResourcesWithVolumeUpdates } from "./utils"; import { log, SECOND } from "@opstrace/utils"; import { find, K8sResource, Nodes, Ingresses, StorageClasses, PersistentVolumeClaims, ServiceAccounts, Persistent...
the_stack
import addon from '../utils/addon'; import { NodeLayout } from './QLayout'; import { NativeElement } from '../core/Component'; import { FlexLayout } from '../core/FlexLayout'; import { WidgetAttribute, WindowType, ContextMenuPolicy, FocusReason, FocusPolicy } from '../QtEnums'; import { QIcon } from '../QtGui/QIcon'; i...
the_stack
import { fireEvent, render, screen, waitForElementToBeRemoved } from 'src/utils/test-utils' import Field from '../forms/Field' import TextField from '../forms/TextField' import StepperForm, { StepFormElement } from './StepperForm' describe('<StepperForm>', () => { it('Renders StepperForm component', () => { cons...
the_stack
* 讯飞错误代码 * * @export * @interface IResponseMessage */ export interface IResponseCode { /** * 错误代码 * * @type {string} * @memberof IResponseCode */ Code: string; /** * 描述(中文) * * @type {string} * @memberof IResponseCode */ DescriptionCN: string; /*...
the_stack
import React, {useState, useContext, useEffect} from "react"; import {Modal, Table} from "antd"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {faPencilAlt, faFileExport, faTrashAlt, faTimes} from "@fortawesome/free-solid-svg-icons"; import {UserContext} from "../../../../util/user-context"; im...
the_stack
import React, { useState, useEffect } from 'react'; import { message, Form, Input, Icon, Button, Select, Transfer, Upload, Divider, Modal, Tag, Tooltip, } from 'antd'; import { UploadProps } from 'antd/lib/upload/interface'; import { FormComponentProps } from 'antd/lib/form'; import { useDispatc...
the_stack
import * as models from '../models'; /* generated type guards */ export function isBlob(arg: any): arg is models.Blob { return ( arg != null && typeof arg === 'object' && // content?: string ( typeof arg.content === 'undefined' || typeof arg.content === 'string' ) && // encoding?: ('utf-8' | 'base64...
the_stack
import React, { useState, useEffect, useCallback } from "react"; import { cloneDeep } from "lodash"; import { css } from "emotion"; import { Dialog, DialogContent, DialogTitle, DialogActions } from "@webiny/ui/Dialog"; import { Form } from "@webiny/form"; import { Tabs, Tab } from "@webiny/ui/Tabs"; import { i18n } fro...
the_stack
module android.widget { import R = android.R; import ColorStateList = android.content.res.ColorStateList; import Resources = android.content.res.Resources; import Canvas = android.graphics.Canvas; import Paint = android.graphics.Paint; import Path = android.graphics.Path; import Rect = android.graphics.Rect; import Col...
the_stack
import {computed, Computed, computedArray} from 'grainjs'; import {MutableObsArray, obsArray, ObsArray, observable, Observable} from 'grainjs'; import {dom, LiveIndex, makeLiveIndex, styled} from 'grainjs'; // Grist client libs import {DocComm} from 'app/client/components/DocComm'; import {selectFiles, uploadFiles} fr...
the_stack
import { localize } from 'vs/nls'; import { URI } from 'vs/base/common/uri'; import { VSBuffer } from 'vs/base/common/buffer'; import { CancellationToken } from 'vs/base/common/cancellation'; import { Event } from 'vs/base/common/event'; import { Disposable, IDisposable } from 'vs/base/common/lifecycle'; import { Schem...
the_stack
import { Autowired, Bean, Optional } from "../../context/context"; import { GridOptions } from "../../entities/gridOptions"; import { FrameworkComponentWrapper } from "./frameworkComponentWrapper"; import { ColDef, ColGroupDef, CellEditorSelectorFunc, CellRendererSelectorFunc, CellEditorSelectorResult } from "../../ent...
the_stack
import { buildSchema, GraphQLSchema, GraphQLString, GraphQLObjectType, GraphQLNonNull, } from 'graphql' import { Hono } from '../../hono' import { errorMessages, graphqlServer } from '.' // Do not show `console.error` messages jest.spyOn(console, 'error').mockImplementation() describe('errorMessages', () =>...
the_stack
import * as assert from 'assert'; import { IExtensionManifest, ExtensionUntrustedWorkspaceSupportType } from 'vs/platform/extensions/common/extensions'; import { ExtensionManifestPropertiesService } from 'vs/workbench/services/extensions/common/extensionManifestPropertiesService'; import { TestConfigurationService } fr...
the_stack
import {assert} from '@esm-bundle/chai'; import { MergedAsyncIterables, relativeUrlPath, resolveUrlPath, classifySpecifier, parseNpmStyleSpecifier, fileExtension, changeFileExtension, charToLineAndChar, } from '../typescript-worker/util.js'; suite('MergedAsyncIterables', () => { const flush = async <...
the_stack
declare module DevExpress { /** @deprecated Use DevExpress.events.EventObject instead */ export type dxEvent = DevExpress.events.EventObject /** @deprecated Use DevExpress.events.event instead */ export type event = DevExpress.events.event } declare module DevExpress.viz { /** @deprecated Use DevEx...
the_stack
* Hyperledger Cactus Plugin - Odap Hermes * Implementation for Odap and Hermes * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Configu...
the_stack
import { JSONSchema4 } from 'json-schema'; const upperFirst = (x: string) => x.slice(0, 1).toUpperCase() + x.slice(1); const makeEvent = (name: string, description: string, params: JSONSchema4) => ({ [`${upperFirst(name)}Event`]: { allOf: [ { $ref: '#/definitions/Event' }, { type: 'object', ...
the_stack
import { assert } from 'chai' import bigInt from 'big-integer' import { FakeIlpNetworkClientResponses } from './fakes/fake-ilp-network-client' import { PaymentRequest } from '../../src/ILP/model/payment-request' import IlpError from '../../src/ILP/ilp-error' import FakeDefaultIlpClient from './fakes/fake-default-ilp-cl...
the_stack
'use strict'; import * as server from "./server" import { DocumentFormattingParams, TextEdit, Files, TextDocument, Range, Position } from 'vscode-languageserver' import * as stream from 'stream' let skProtocolProcess = null let skeHandler = null export function initializeSourcekite() { if (skProtocolProcess...
the_stack
// aliases for shorter compressed code (most minifers don't do this) const ab = ArrayBuffer, u8 = Uint8Array, u16 = Uint16Array, i16 = Int16Array, u32 = Uint32Array, i32 = Int32Array; // Huffman decoding table interface HDT { // initial bits b: number; // symbols s: Uint8Array; // num bits n: Uint8Array; }...
the_stack
import * as parseXml from '../parser/types'; import { PropertyResolver } from './property-resolver'; import { PropertyHandlerProvider, WidgetResolveResult } from '../providers/property-handler-provider'; import { RootWidgetModel, ImportModel, WidgetModel, PropertyModel, ParamModel, VariableModel } from '../models/model...
the_stack
import { _backburner, run } from '@ember/runloop'; import { set, setProperties, get, getProperties } from '@ember/object'; import type Resolver from '@ember/application/resolver'; import { setOwner } from '@ember/application'; import buildOwner, { Owner } from './build-owner'; import { _setupAJAXHooks, _teardownAJAXHo...
the_stack
import type { FullResourceLocation, ProcessorContext } from '@spyglassmc/core' import { Arrayable } from '@spyglassmc/core' import { localeQuote, localize } from '@spyglassmc/locales' import type { EnumKind } from '../node/index.js' export interface Attribute { name: string, value: AttributeValue, } export type Att...
the_stack
import { catchError, concat as observableConcat, EMPTY, ignoreElements, map, mapTo, merge as observableMerge, mergeMap, Observable, of as observableOf, ReplaySubject, startWith, switchMap, take, } from "rxjs"; import config from "../../../config"; import { formatError } from "../../../errors...
the_stack
import React, { ChangeEvent, MouseEvent, FocusEvent, ReactNode, ElementType } from 'react'; import shallowEqual from 'shallowequal'; import { debounce } from 'debounce'; import { nanoid } from 'nanoid'; import { CommonProps, DaDataSuggestion } from './types'; import { makeRequest } from './request'; export type BasePr...
the_stack
import { DEBUG, EDITOR, TEST } from 'internal:constants'; import { IFeatureMap } from 'pal/system-info'; import { EventTarget } from '../../../cocos/core/event'; import { BrowserType, NetworkType, OS, Platform, Language, Feature } from '../enum-type'; class SystemInfo extends EventTarget { public readonly networkT...
the_stack
import { cloneDeepFast } from './cloneDeepFast' import { Merge, OneOrMore } from '../types' export interface TreeDataNode extends Record<any, any> {} export type TreeDataSingleRootData<TNode extends TreeDataNode> = TNode export type TreeDataMultipleRootData<TNode extends TreeDataNode> = TNode[] export type TreeData...
the_stack
import { Constants } from '../commons/CommonConstants'; export default class StringUtils { /** * Splits text into several paragraphs, each containing header * string and body string array * * Example input: * ["objectives", * " talkToHartin" * " completeQuest"] * * Example output: ...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * A scheduled job that can publish a pubsub message or a http request * every X interval of time, using crontab format string. * * To use Cloud Scheduler your proj...
the_stack
import * as IORedis from 'ioredis'; import { Module, RedisModuleOptions } from './module.base'; import { RedisAI } from './redis-ai/redis-ai'; import { RedisAICommander } from './redis-ai/redis-ai.commander'; import { RedisBloom } from './bloom/redisbloom'; import { RedisBloomCMK } from './bloom-cmk/redisbloom-cmk'; im...
the_stack
module es { /** * 表示右手3 * 3的浮点矩阵,可以存储平移、缩放和旋转信息。 */ export class Matrix2D implements IEquatable<Matrix2D> { public m11: number = 0; // x 缩放 public m12: number = 0; public m21: number = 0; public m22: number = 0; public m31: number = 0; publ...
the_stack
function test_init() { Kakao.init('JAVASCRIPT_KEY'); console.log(Kakao.isInitialized()); } /** * Example from https://developers.kakao.com/docs/latest/ko/kakaologin/js#login */ function test_loginAuthorize() { Kakao.Auth.authorize({ redirectUri: '{REDIRECT_URI}', }); } function test_loginSet...
the_stack
import * as iam from '@aws-cdk/aws-iam'; import { Duration, IResource, Resource } from '@aws-cdk/core'; import { Construct } from 'constructs'; import { CloudFormationInit } from './cfn-init'; import { Connections, IConnectable } from './connections'; import { CfnInstance } from './ec2.generated'; import { InstanceType...
the_stack
import { App, Fragment, cloneVNode } from 'vue' import { $g } from './config' import { $cookie } from './cookie' const availablePrefixs = ['moz', 'ms', 'webkit'] class MiTools { /** * Set title. * @param title */ setTitle(title?: string): void { const powered = $g.powered ?? 'Powered by...
the_stack
import { BSQRegex } from "../../ast/bsqregex"; import { SymbolicActionMode } from "../../compiler/mir_assembly"; import { MIRResolvedTypeKey } from "../../compiler/mir_ops"; import { SMTExp, SMTTypeInfo, VerifierOptions } from "./smt_exp"; type SMT2FileInfo = { TYPE_TAG_DECLS: string[], ORDINAL_TYPE_TAG_DECLS:...
the_stack
import { logger } from '../util' import { NetworkCryptoConfigPeerOrgType, NetworkCreatePeerOrgType, NetworkPeerPortType } from '../model/type/network.type' import CryptoConfigYaml from '../model/yaml/network/cryptoConfigYaml' import PeerDockerComposeYaml from '../model/yaml/docker-compose/peerDockerComposeYaml' import ...
the_stack
module Helper._CommandingSurface { "use strict"; var _Constants = Helper.require("WinJS/Controls/CommandingSurface/_Constants"); var _CommandingSurface = <typeof WinJS.UI.PrivateCommandingSurface> Helper.require("WinJS/Controls/CommandingSurface/_CommandingSurface")._CommandingSurface; export interface...
the_stack
namespace LiteMol.Plugin.Views.Transform.Molecule { "use strict"; import Transformer = Bootstrap.Entity.Transformer export class CreateFromData extends Transform.ControllerBase<Bootstrap.Components.Transform.Controller<Transformer.Molecule.CreateFromDataParams>> { protected renderContr...
the_stack
import { KeyboardEvents } from '../src/keyboard'; import { extend } from '../src/util'; import { createElement } from '../src/dom'; let ele: HTMLElement; let objKeyConfig: any; ele = createElement('div', { id: 'keytest' }); // Spec for KeyConfig Framework describe('KeyConfig', (): void => { describe('instan...
the_stack
import { SagaIterator } from 'redux-saga'; import { call, put, select } from 'redux-saga/effects'; import { ADD_NEW_USERS_TO_COURSE, CREATE_COURSE } from 'src/features/academy/AcademyTypes'; import { UsernameRoleGroup } from 'src/pages/academy/adminPanel/subcomponents/AddUserPanel'; import { OverallState, Role } from ...
the_stack
import React from 'react' import Utils from '../../../utils/utils' import { CanvasPoint, CanvasRectangle, CanvasVector } from '../../../core/shared/math-utils' import { ElementPath } from '../../../core/shared/project-file-types' import { Guideline, Guidelines, XAxisGuideline, YAxisGuideline } from '../guideline' //TOD...
the_stack
import _ from 'lodash'; import { AppResource, Component, ComponentDSL, Content, ContentVersion, DslSchemas, EditorEntry, ResourceType, } from '@foxpage/foxpage-server-types'; import { TYPE } from '../../../config/constant'; import * as Model from '../../models'; import { ComponentContentInfo, Componen...
the_stack
import { VerticalRefreshRateContext } from '@seorii/win32-displayconfig' import { BrowserWindow } from './browserWindow' import * as electron from 'electron' import process from 'process' import debug from './debug' function sleep(duration: number) { return new Promise<void>((resolve: () => void) => setTimeout(reso...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormAppointment { interface Header extends DevKit.Controls.IHeader { /** Enter the user or team who is assigned to manage the record. This field is updated every time the record is assigned to a different user. */ OwnerId: De...
the_stack
import { ActorSystemRef, localActorRef, LocalActorRef, LocalActorSystemRef, localTemporaryRef } from "./references"; import { Deferral } from './deferral'; import { applyOrThrowIfStopped } from './system-map'; import Queue from './vendored/denque'; import assert from './assert'; import { defaultSupervisionPolicy, Super...
the_stack
import type { JSX } from 'preact' import { h, Fragment } from 'preact' import { useContext, useState, useEffect, useMemo } from 'preact/hooks' import { useTitle } from 'hoofd/preact' import Modal from './util/Modal' import UserContext from './UserContext' import { Endpoints, Routes } from '../constants' import Spoti...
the_stack
import * as O from "../src" import * as U from "./test-utils" test("isNil", () => { expect(O.isNil(undefined)).toBe(true) expect(O.isNil(null)).toBe(true) expect(O.isNil(0)).toBe(false) }) test("isUndefined", () => { expect(O.isUndefined(undefined)).toBe(true) expect(O.isUndefined(null)).toBe(false) expec...
the_stack