text
stringlengths
3.08k
15.5k
import * as CSpellSettings from './settings/CSpellSettings'; import * as Settings from './settings'; import { resolveTarget, determineSettingsPaths } from './settings'; import { window, TextEditor, Uri, workspace, commands, WorkspaceEdit, TextDocument, Range } from 'vscode'; import { TextEdit, LanguageClient } from 'v...
import chalk from 'chalk'; import commandExists from 'command-exists'; import { promises as fs, readFileSync } from 'fs'; import { prompt } from 'inquirer'; import kebabCase from 'lodash/kebabCase'; import path from 'path'; import gitPromise from 'simple-git/promise'; import { promptConfirm, promptInput } from '../../u...
<gh_stars>1-10 import { applyFormat, applyTextStyle, createDefaultHtmlSanitizerOptions, getInheritableStyles, getPendableFormatState, HtmlSanitizer, toArray, wrap, } from 'roosterjs-editor-dom'; import { BeforePasteEvent, ClipboardData, CreatePasteFragment, EditorCore, ...
import * as React from 'react'; import * as ReactDom from 'react-dom'; import { Version } from '@microsoft/sp-core-library'; import { IPropertyPaneConfiguration, PropertyPaneTextField, IPropertyPaneDropdownOption, PropertyPaneToggle, } from '@microsoft/sp-property-pane'; import { BaseClientSideWebPart } from '@...
<gh_stars>1-10 export as namespace JuristekParser; interface ParserRepository { url: string; type: string; } interface ParserInformation { version: number; name: string; repository: ParserRepository; } interface ArrayParser<T> extends ParserInformation { response: T[]; } interface ParserMetadata { _pa...
/* * SonarTS * Copyright (C) 2017-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or ...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------...
import rootStore from '@vue-storefront/core/store' import SearchQuery from '@vue-storefront/core/lib/search/searchQuery' import { remove as removeAccents } from 'remove-accents' import { Logger } from '@vue-storefront/core/lib/logger' import { formatCategoryLink } from '@vue-storefront/core/modules/url/helpers' import ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** * @license * Copyright 2018 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
import BigNumber from 'bignumber.js' import {decodeAccountID} from 'ripple-address-codec' import sha512Half from './sha512Half' import HashPrefix from './hash-prefix' import {SHAMap, NodeType} from './shamap' import {encode} from 'ripple-binary-codec' import ledgerspaces from './ledgerspaces' const padLeftZero = (stri...
<reponame>NicolasMahe/statechannels import {expectRevert} from '@statechannels/devtools'; import {ethers, Contract, Wallet, BigNumber, utils} from 'ethers'; const {AddressZero} = ethers.constants; import TokenArtifact from '../../../artifacts/contracts/Token.sol/Token.json'; import {Channel, getChannelId} from '../../...
// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Directory Service */ export interface DataAwsDirectoryServiceDirectoryConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/p...
import React from "react" import { Button, Container, FormControl, InputLabel, MenuItem, MenuProps, Select, TextField, FormControlLabel, Checkbox, Tooltip, } from "@material-ui/core" import CancelIcon from "@material-ui/icons/Cancel" import LowPriority from "@material-ui/icons/LowPriority" import...
<gh_stars>0 import { Creator, Citation, Distribution, FormattedResource, Funding, ResourceType, Funder, } from './types'; interface APICreator { identifier?: string; // orcid id '@type'?: string; affiliation?: {name: string}; name?: string; } // Format the creator field export const formatCreato...
/** * @author WMXPY * @namespace Organization * @description Sub Register */ import { DEFAULT_BRONTOSAURUS_NAMESPACE } from "@brontosaurus/definition"; import { SudooFormat } from "@sudoo/internationalization"; import { NeonButton } from "@sudoo/neon/button"; import { MARGIN, SIZE, WIDTH } from "@sudoo/neon/declar...
<gh_stars>100-1000 /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *------------------------------------------------------...
import {Component, DebugElement, ViewChild} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { TUI_DEFAULT_IDENTITY_MATCHER, TU...
<reponame>bennetfabian/semi-design import BaseFoundation, { DefaultAdapter, noopFunction } from '../base/foundation'; import { noop, isFunction, isNumber, isString } from 'lodash'; import calculateNodeHeight from './util/calculateNodeHeight'; import getSizingData from './util/getSizingData'; import isEn...
/** * adjust[宽度调整] * 参数说明: * - supportAdjust: 指定列表是否开启宽度调整 * - type: Boolean * - default: true * * 以下情况宽度调整将失效: * - 配置项中存在fullColumn * * 以下情况单一列的宽度调整功能将被禁用: * - 自动生成的选择列、序号列 * - columnData[disableCustomize] === true的列 * * 交互规则: * - 拖动时出现虚线,当拖动结束时宽度生效、虚线消失 * - 向右调整时当前列增大,下一列不变,表格总宽增大,超出容器...
import { pipe } from "fp-ts/lib/pipeable"; import { dropRight, reduce, last, head, map, flatten } from "fp-ts/lib/Array"; import * as O from "fp-ts/lib/Option"; import { StructureDefinition, ElementDefinition, ChoiceElementDefinition, FHIRPrimitives, ContentReferenceElementDefinition } from "./conformance"; ...
import { getLogger } from "log4js" import Long = require("long") import * as sqlite3 from "sqlite3" import { Address } from "../../common/address" import { BlockHeader } from "../../common/blockHeader" import { SignedTx } from "../../common/txSigned" import { hycontoString, strictAdd } from "@glosfer/hyconjs-util" imp...
<filename>browser-src/model/shahokokuho.ts import { Value, NumberValue, StringValue, BooleanValue, ensureString, ensureNumber, ensurePositiveInteger } from "../value"; export class Shahokokuho { public shahokokuhoId: number; public patientId: number; public hokenshaBangou: number; public hihokenshaKigou: string; ...
'use strict'; import { IConnection, createConnection, TextDocuments, InitializeParams, InitializeResult, RequestType, TextDocument } from 'vscode-languageserver'; import { LanguageService, LanguageSettings } from 'yaml-language-server/out/server/src/languageservice/yamlLanguageService'; import { parse as parseYAML } f...
<filename>src/uml-builder.ts /// <reference path="typings/graphviz/graphviz.d.ts"/> import * as graphviz from "graphviz"; import { Element, Module, Class, Method, Property, Visibility, QualifiedName, Lifetime } from "./ts-elements"; import { Collections } from "./extensions"; import { writeFileSync } from "fs"; expor...
import { observer } from 'mobx-react'; import React, { RefObject, forwardRef, useRef, useState } from 'react'; import Button from '@material-ui/core/Button'; import Icon from '@material-ui/core/Icon'; import Slider from '@material-ui/core/Slider'; import { Theme, makeStyles } from '@material-ui/core/styles'; import {...
<filename>test/adl-gen/types.ts /* @generated from adl module types */ import * as ADL from './runtime/adl'; /** * Phantom Key type naming the string key type */ export type StringKeyMap<_Key, Value> = {[key: string]: Value}; const StringKeyMap_AST : ADL.ScopedDecl = {"moduleName":"types","decl":{"annotations":[...
<reponame>CodeKits/ever import { NgModule, APP_INITIALIZER } from '@angular/core'; import { HttpClient, HttpClientModule } from '@angular/common/http'; import { BrowserModule } from '@angular/platform-browser'; import { InAppBrowser } from '@ionic-native/in-app-browser/ngx'; import { SplashScreen } from '@ionic-native/...
import { FunctionComponent, ReactElement, useMemo } from "react"; import { useCallback } from "react"; import { Button, CircularProgress, Divider, MenuItem, Typography, } from "@mui/material"; import { styled } from "@mui/material/styles"; import CheckCircle from "@mui/icons-material/CheckCircle";...
<filename>projects/storefrontlib/src/cms-components/navigation/search-box/search-box.component.spec.ts import { Component, Input, Pipe, PipeTransform } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { BrowserAnimatio...
<filename>UI/src/app/models/arrow.ts import { IRow } from 'src/app/models/row'; import { getSVGPoint } from '@utils/draw-utilites'; import { ConnectorType, IConnectionView, IConnector } from './connector'; import { ElementRef, EventEmitter, Renderer2 } from '@angular/core'; import { Exclude } from 'class-transformer'; ...
export enum PermissionEnum { "admin", "manageUserPermissionsView", "manageUserPermissionsManager", "manageUserRole", "managePlugins", "5-reserved", "viewAllUserProfiles", "manageUserRegistration", "8-reserved", "9-reserved", "10-reserved", "viewAllCourses", "addCourses", "manageCourses", "14-reserved", ...
<reponame>openharmony-sig-ci/ark_ts2abc<gh_stars>1-10 /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/license...
<reponame>skirby1996/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { PipelineResponse, SendRequest, PipelinePolicy } from "@azure/core-https"; import { OperationRequest, SerializerOptions, XmlOptions, XML_CHARKEY, RequiredSerializerOptions, OperationArguments, XML_ATTRKEY, OperationSpec,...
<reponame>ukmadlz/saas<gh_stars>1-10 import { action, decorate, IObservableArray, observable, runInAction, computed } from 'mobx'; import { addPostApiMethod, deletePostApiMethod, editDiscussionApiMethod, getPostListApiMethod, } from '../api/team-member'; import { Store } from './index'; import { Team } from '....
<gh_stars>0 import {INTERNAL, ROOT, modifyGeneratedFile} from "../_utils"; import {lstat, readDirectory, readFileText} from "@internal/fs"; import {AbsoluteFilePath} from "@internal/path"; import {pretty} from "@internal/pretty-format"; import {dedent} from "@internal/string-utils"; import {escapeXHTMLEntities} from "@...
<filename>src/core/drive/form_submission.ts import { FetchRequest, FetchMethod, fetchMethodFromString, FetchRequestHeaders } from "../../http/fetch_request" import { FetchResponse } from "../../http/fetch_response" import { expandURL } from "../url" import { dispatch } from "../../util" import { StreamMessage } from "....
/// <reference types="node" /> import { EventEmitter } from "events"; import { CoapResponse, RequestMethod } from "node-coap-client"; import { Accessory } from "./lib/accessory"; import { AllEventCallbacks, AllEvents } from "./lib/events"; import { Group, GroupInfo, GroupOperation } from "./lib/group"; import { LightOp...
// regex that contains all symbols applicable for expression used to AI detect an expression. const expressionSymbolsRegex = /[\+\-\*\/%\?:<>=!\|&\(\)^~]/; export module bindingConstants { export const sourceProperty = "sourceProperty"; export const targetProperty = "targetProperty"; export const expressi...
<gh_stars>1-10 import 'vis-network/dist/dist/vis-network.min.css' import { compact, get, invert, round } from 'lodash' import { DataSet } from 'vis-data' import { Network } from 'vis-network' import config from './config' import { locales } from './locales' import { NeuronConnectionData, NeuronData, WorkerHandlable }...
import { Button, Icon, Modal, Picker } from 'antd-mobile'; import classNames from 'classnames'; import { connect } from 'dva'; import LS from 'parsec-ls'; import React from 'react'; import * as theme from '../../theme'; const styles = require('./index.less'); interface IChapterData { parentId?: string | number; v...
/** * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
import type { Board, GameMode } from '$lib/data-model' import { toast } from '@zerodevx/svelte-toast' import { pickRandom } from '$lib/data-model' export function getShareTitle({ gameWon, guesses, gameMode, hardMode, day, }: { gameWon: boolean guesses: string[] gameMode: GameMode hardMode: boolean day?: numb...
<reponame>dgzornoza/kliveide import { VmEngine } from "./machines/VmEngine"; import { MachineApi } from "./machines/wa-api"; import { ZxSpectrum48 } from "./machines/spectrum/ZxSpectrum48"; import { ZxSpectrum128 } from "./machines/spectrum/ZxSpectrum128"; import { rendererProcessStore } from "./rendererProcessStore"; ...
<filename>packages/compiler-cli/ngcc/test/packages/entry_point_spec.ts /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {AbsoluteFsPath} from '../../../src/ng...
// Copyright 2021 <NAME>. All Rights Reserved. // Released under a MIT (SEI)-style license. See LICENSE.md in the project root for license information. import { CdkTableModule } from '@angular/cdk/table'; import { HttpClientModule } from '@angular/common/http'; import { ErrorHandler, NgModule } from '@angular/core'; i...
import { BloomApi } from "../../../utils/bloomApi"; import * as React from "react"; import * as ReactDOM from "react-dom"; import BloomButton from "../../../react_components/bloomButton"; import WebSocketManager from "../../../utils/WebSocketManager"; import "./pageControls.less"; import "errorHandler"; import theme f...
/** * @license * Copyright 2017 Google Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
<filename>src/builtin-addons/core/template-context-provider.ts<gh_stars>1-10 import * as path from 'path'; import * as fs from 'fs'; import { CompletionItem, CompletionItemKind } from 'vscode-languageserver/node'; import { isModuleUnificationApp, podModulePrefixForRoot, pureComponentName } from '../../utils/layout-hel...
/* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import * as os from 'os'; import { join } from 'path'; import { flags, FlagsConfig } fro...
import { get, mergeWith, merge, compact, filter } from 'lodash' import { getRepository, EntityManager } from 'typeorm' import { TxEntity, SwapEntity } from 'orm' import * as lcd from 'lib/lcd' import { collectorLogger as logger } from 'lib/logger' import { isNumeric, splitDenomAndAmount } from 'lib/common' import { d...
import React, { memo, useCallback, useRef, useState } from 'react'; import { useDrag } from 'react-use-gesture'; import { useSprings, a, useSpring } from 'react-spring'; import debounce from 'lodash/debounce'; import { Props } from './slider.types'; import { styles } from './slider.style'; const InstaCounter = ({ cur...
/* * Copyright (c) 2018-2021 aetheryx & <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
<reponame>threat-punter/kibana /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import Boom from 'boom'; import { ILegacyScope...
import dayjs from 'dayjs' import * as React from 'react' import { PanResponder, Platform, ScrollView, StyleSheet, Text, TouchableWithoutFeedback, View, ViewStyle, } from 'react-native' import { CalendarEvent } from './CalendarEvent' import { commonStyles } from './commonStyles' import { DayJSConvertedEv...
import Graph, { MultiGraph } from "graphology"; import { dfsFromNode } from "graphology-traversal"; import type { Attributes } from "graphology-types"; import type { App } from "obsidian"; // import { DIRECTIONS } from "./constants"; import type { Directions, UserHier } from "./interfaces"; // TODO - this is a hack to...
import React from "react" import {createGlobalStyle, ThemeContext} from "styled-components" import {SizeProps} from "../props/size-props" import {JSXElementProps, SetValue} from "../props" import {Language, SetValue$} from "../types/color-picker" import DV from "../default-value" import DOMHelper from "../helper/DOMHel...
import * as React from "react"; import { Table, Column } from "@dcos/ui-kit/dist/packages"; import NodesList from "#SRC/js/structs/NodesList"; import Node from "#SRC/js/structs/Node"; import { SortableColumnHeader } from "ui-kit-stage/SortableColumnHeader"; import { SortDirection } from "../types/SortDirection"; imp...
<filename>packages/unity-interface/portableExperiencesUtils.ts import { ContentMapping, EnvironmentData, LoadablePortableExperienceScene, MappingsResponse, SceneJsonData } from '../shared/types' import { getSceneNameFromJsonData } from '../shared/selectors' import { parseParcelPosition } from '../atomicHelper...
import * as RemoteData from '@devexperts/remote-data-ts'; import { Alert, Button, Loader, Modal } from '@navikt/ds-react'; import 'nav-frontend-tabell-style'; import * as React from 'react'; import DatePicker from 'react-datepicker'; import { ApiError } from '~api/apiClient'; import { fetchBakoverStatus, patchSøknader...
<filename>public/tinymce/src/core/main/ts/dom/StyleSheetLoader.ts /** * StyleSheetLoader.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ import { Arr, Fun, Future, Fu...
<reponame>NYPL-Simplified/opds-web-client<filename>packages/opds-web-client/src/components/mergeRootProps.ts import ActionsCreator from "../actions"; import DataFetcher from "../DataFetcher"; import { adapter } from "../OPDSDataAdapter"; import { CollectionData, BookData, AuthCallback, AuthCredentials } from "....
<filename>edureka/angular/training_material/EdurekaAngular/node_modules/hdr-histogram-js/src/ZigZagEncoding.ts /* * This is a TypeScript port of the original Java version, which was written by * <NAME> as described in * https://github.com/HdrHistogram/HdrHistogram * and released to the public domain, as explained a...
import {Configuration, ReconnectConfiguration} from './configuration'; import Communication from './index'; import {join} from 'path'; import {homedir} from 'os'; import {cwd} from 'process'; import {existsSync, readFileSync} from 'fs'; import {v4} from 'uuid'; import Session from './session'; import {connect, Server, ...
<gh_stars>1-10 /* -------------------------------------------------------------------------------------------- * Copyright (c) <NAME>. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * ----------------------------------------------------------------...
import { field, Logger, logger } from '@coder/logger'; import * as cp from 'child_process'; import { VSBuffer } from 'vs/base/common/buffer'; import { Emitter } from 'vs/base/common/event'; import { FileAccess } from 'vs/base/common/network'; import { ISocket } from 'vs/base/parts/ipc/common/ipc.net'; import { WebSocke...
<reponame>joshmarinacci/vized /* storage system Native JSON graph for persistence. store in local storage store at remote DB once logged in provide an auth button for remote DB storage provide a loader button using file input to load from JSON export and import to clean JSON export canvas to PNG provide a serializer...
<reponame>shivkanya9146/opentelemetry-js /* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<gh_stars>0 import { CreateElement, VNode } from 'vue'; import * as utils from '../../tc-utils/src'; const EVENT_POINTER_DOWN = utils.Window.PointerEvent ? 'pointerdown' : 'touchstart mousedown'; const EVENT_POINTER_MOVE = utils.Window.PointerEvent ? 'pointermove' : 'touchmove mousemove'; const EVENT_POINTER_UP = ( ...
import React from "react"; import {PropertyDescription} from "./Description"; import {ReactComponent as FloatIcon} from "./resources/icons/Float.svg" import {ReactComponent as EnumIcon} from "./resources/icons/Enum.svg" import {ReactComponent as BoolIcon} from "./resources/icons/Bool.svg" import {ReactComponent as Time...
import * as xcConsole from "../utils/expServerXcConsole"; import * as HttpStatus from "../../../assets/js/httpStatus"; const httpStatus = HttpStatus.httpStatus; import support from "../utils/expServerSupport"; import * as cookieParser from "cookie-parser"; import { Router } from "express" export const router = Router()...
<filename>node_modules/antlr4ts/tree/pattern/ParseTreePatternMatcher.d.ts<gh_stars>1-10 /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ import { Chunk } from "./Chunk"; import { Lexer } from "../....
import { IComputedValue, IObservable, IObservableArray, IObservableValue, observable, ObservableMap, ObservableSet, runInAction, } from 'mobx'; import { fromPromise } from 'mobx-utils'; import { IIsObservableObject } from 'mobx/dist/internal'; type IFunction = (...args: any[]) => void; interface Track...
<reponame>hector/Tone.js<filename>Tone/effect/Tremolo.ts import { StereoEffect, StereoEffectOptions } from "./StereoEffect"; import { LFO } from "../source/oscillator/LFO"; import { Gain } from "../core/context/Gain"; import { Signal } from "../signal/Signal"; import { Degrees, Frequency, NormalRange, Time } from "../c...
import * as semver from 'semver'; import { execSync } from 'child_process'; import path from 'path'; import { dirExists, dirRead, fileAdd, fileCreate, fileDate, fileExec, fileJsonCreate, zipCreate, zipExtract, } from './file'; import { getPlatform, pathGetDirectory, pathGetFilename, pathGetId, pathGe...
import { Button, createStyles, FormLabel, Grid, LinearProgress, makeStyles, SnackbarContent, Theme } from '@material-ui/core' import { red } from '@material-ui/core/colors' import ErrorIcon from '@material-ui/icons/Error' import React, { Component } from 'react' import NumberFormat from 'react-number-fo...
import Level from '../interfaces/level'; import Source from '../interfaces/source'; import { DVR_THRESHOLD, EVENT_OPTIONS } from '../utils/constants'; import { addEvent } from '../utils/events'; import { isAudio, isVideo } from '../utils/general'; import { isHlsSource } from '../utils/media'; import Native from './nati...
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. import type { MediaType } from "./media_type.ts"; /** Additional meta data that is used to enrich the output of the module * graph. */ export interface CacheInfo { /** The string path to where the local version of the content is located. Fo...
import React, { FC, createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react'; import { useSessionStorage } from 'react-use-storage'; import SafeProvider, { useSafeAppsSDK } from '@gnosis.pm/safe-apps-react-sdk'; import { AbstractConnector } from '@web3-react/abstract-connector'; impor...
<filename>src/encoding/address.ts import base32 from 'hi-base32'; import * as nacl from '../nacl/naclWrappers'; import * as utils from '../utils/utils'; import { encodeUint64 } from './uint64'; import { Address } from '../types/address'; import { MultisigMetadata } from '../types/multisig'; const ALGORAND_ADDRESS_BYTE...
import { Object3D, sRGBEncoding, Box3, Vector3 } from 'three' import { Easing, Tween } from '@tweenjs/tween.js' import { getComponent, hasComponent, addComponent, removeComponent, defineQuery } from '../ecs/functions/ComponentFunctions' import { AssetLoader } from '../assets/classes/AssetLoader' import { O...
<filename>kernel/packages/shared/world/positionThings.ts<gh_stars>0 const qs: any = require('query-string') import { Vector3, ReadOnlyVector3, ReadOnlyQuaternion, Vector2, ReadOnlyVector2 } from 'decentraland-ecs/src/decentraland/math' import { Observable } from 'decentraland-ecs/src/ecs/Observable' import { ...
// CommentForm Component: import React, { useState } from 'react' import { useMutation } from '@apollo/react-hooks' import { Form, Formik, Field, ErrorMessage } from 'formik' import * as Yup from 'yup' // Theme + ui import * as S from './styles.scss' import theme from '../../gatsby-plugin-theme-ui' import { Flex, ...
<filename>src/unoplayground.ts import * as vscode from 'vscode'; import * as path from 'path'; /* import * as fs from 'fs'; import { ExtensionUtils } from './ExtensionUtils'; */ /** * React to the first load of content * After the receive of the onload message we need to wait more 1s to load the XAML * @param panel...
import * as React from 'react' import { AutocompletingTextArea, AutocompletingInput, IAutocompletionProvider, } from '../autocompletion' import { CommitIdentity } from '../../models/commit-identity' import { ICommitMessage } from '../../lib/app-state' import { Dispatcher } from '../../lib/dispatcher' import { IGi...
import { Component, Input, Output, EventEmitter, ChangeDetectorRef } from '@angular/core'; import { Format } from '../../pipes/format'; export interface GridAction { action: string, items: { key: string, item: string }[] } @Component({ selector: 'poc-grid', styleUrls: ['./poc-grid.c...
import { AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CompleteMultipartUploadOutput, CreateMultipartUploadCommand, CreateMultipartUploadRequest, HeadBucketCommand, ListPartsCommand, Part, S3Client, S3ClientConfig, UploadPartCommand, UploadPartRequest } from '@aws-sdk/client-s3'; ...
import core = require('./interfaces'); var days = [ null, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ]; var operationOrder = [ 'year', 'month', 'dayOfMonth', 'hours', 'minutes', 'seconds', 'milliseconds' ]; function isLeapYear(year: number): boolean { var date = new Date(year, 1, 29); return date.getDate() ==...
<reponame>jfarid27/augur-1 import { utils as ethersUtils } from "ethers"; import { OrderEventType as LogOrderEventType } from "./state/logs/types"; import { BigNumber } from "bignumber.js"; export const NULL_ADDRESS = "0x0000000000000000000000000000000000000000"; export enum ACCOUNT_TYPES { U_PORT = "uPort", LEDG...
import { ResponsiveBreakpoint } from '../components/Grid/Row'; import { arrayBetween } from './array'; export type MarginValue = number | [number, number] | [number, number, number, number]; export type MarginClassNameInput = MarginValue | Partial<Record<ResponsiveBreakpoint, MarginValue>>; const availableMarginLevel...
import * as fs from 'fs'; import * as log from '@vladmandic/pilogger'; import * as compile from './compile'; import * as watch from './watch'; import * as serve from './serve'; import * as lint from './lint'; import * as typedoc from './typedoc'; import * as typings from './typings'; import * as helpers from './helpers...
import dbg from "../../debug/debug.js"; const debug = dbg("parse"); import { lex } from "../lexer/lexer.ts"; import type { AST, Token, Rule, Decl } from "../../ast/mod.ts"; let _comments: boolean; // Whether comments are allowed. let _depth: number; // Current block nesting depth. let _position: boolean; // Whether t...
<gh_stars>10-100 import * as settings from '../settings.json'; export interface AppSettings { readonly debug: boolean; readonly verbose: boolean; readonly tcp_error: boolean; readonly appkey: string; readonly appSecret: string; readonly appCommon: {[key: string...
import * as vscode from 'vscode'; import * as fs from 'fs'; import * as path from 'path'; import { Trace as TspTrace } from 'tsp-typescript-client/lib/models/trace'; import { TraceManager } from '@trace-viewer/base/lib/trace-manager'; import { ExperimentManager } from '@trace-viewer/base/lib/experiment-manager'; import...
import React from 'react' import { Modal, Button, Typography, Space, Radio, Checkbox } from 'antd' import type { User, Project } from 'umi' import { useCounter, useControllableValue, useRequest } from '@/hooks' import { IconButton } from '@/components' import api from '@/api' import styles from './Invite.less' const...
<filename>src/utils/functions.ts<gh_stars>10-100 import { SrcConfig } from '@/models/user'; import moment from 'moment'; import { SITE_BASIC_INFO } from './constant'; // import { createElement } from 'react'; moment.lang('zh-cn'); interface Ref { current?: { getValue?: Function; }; } export function delay(tim...
import { type Command, type CommandGroup, type CommandoClient, type CommandoGuild, SettingProvider } from 'discord.js-commando' import type { Command as CommandEntity, GuildCommand as GuildCommandEntity, Guild as GuildEntity, Role as RoleEntity, RoleMessage as RoleMessageEntity, Tag as TagEntity }...
<reponame>jas-trainning/wijmo-system-min import * as wjcCore from 'wijmo/wijmo'; import * as wjcChart from 'wijmo/wijmo.chart'; export declare class _RangeSlider { private static _HRANGESLIDER; private static _VRANGESLIDER; private static _RANGESLIDER_DECBTN; private static _RANGESLIDER_INCBTN; priv...
<filename>projects/view/src/app/layout/view/monitor-interval/auxiliar/UserSelection.model.ts import { dateToDatePicker } from "shared/functions"; import * as moment from "moment"; export class UserSelectionModel { title: any; entity_selection: any; options: any; legend: any; mode: any; type: any; start...