text
stringlengths
3.3k
33k
<filename>src/engine/processor/room.ts import type { RoomObject } from 'xxscreeps/game/object'; import type { Shard } from 'xxscreeps/engine/db'; import type { World } from 'xxscreeps/game/map'; import type { IntentParameters, IntentReceivers, IntentsForReceiver } from '.'; import type { Room } from 'xxscreeps/game/roo...
import { get, each, has, die, getArchtype, ImmerState, Patch, ProxyType, SetState, ES5ArrayState, ProxyArrayState, MapState, ES5ObjectState, ProxyObjectState, Archtype, isMap } from "./internal" export type PatchPath = (string | number)[] export function generatePatches( state: ImmerState, basePath:...
<reponame>BoomShotKapow/sourcepawn-vscode<gh_stars>10-100 import { CompletionItemKind, Range, workspace as Workspace } from "vscode"; import { existsSync, readFileSync } from "fs"; import { resolve, dirname } from "path"; import { URI } from "vscode-uri"; import { ItemsRepository } from "../Backend/spItemsRepository";...
import { computed, defineComponent, getCurrentInstance, ref, nextTick, onMounted, onUpdated, resolveDynamicComponent, h, unref, } from 'vue' import { isClient } from '@vueuse/core' import { hasOwn, isNumber, isString, getScrollBarWidth, } from '@element-plus/utils' import Scrollbar from '../...
<reponame>Brakebein/prisma-generator-nestjs-dto<filename>src/generator/helpers.ts import path from 'node:path'; import slash from 'slash'; import { isAnnotatedWith, isId, isRelation, isUnique, } from './field-classifiers'; import { scalarToTS } from './template-helpers'; import type { DMMF } from '@prisma/gene...
import chalk from 'chalk'; import R from 'ramda'; import BitId from '../../bit-id/bit-id'; import hasWildcard from '../../utils/string/has-wildcard'; import isBitIdMatchByWildcards from '../../utils/bit/is-bit-id-match-by-wildcards'; import { validateUserInputType } from '../../utils/validate-type'; import Component fr...
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react' import { View, ITouchEvent, ScrollView, CustomWrapper, BaseEventOrig, ScrollViewProps, } from '@tarojs/components' import { TaroElement } from '@tarojs/runtime' import { Loading } from './../loading' import { Empty } from './.....
<filename>subgraphs/exchange/src/pricing.ts<gh_stars>0 import { ADDRESS_ZERO, BIG_DECIMAL_1E18, BIG_DECIMAL_ONE, BIG_DECIMAL_ZERO, DAI, DAI_WETH_PAIR, FACTORY_ADDRESS, MINIMUM_LIQUIDITY_THRESHOLD_ETH, NATIVE, SUSHI_USDT_PAIR, USDC, USDC_WETH_PAIR, USDT, USDT_WETH_PAIR, WHITELIST, } from 'c...
<filename>src/controllers/invoices.ts import { models } from '../models' import { loadLightning } from '../utils/lightning' import * as socket from '../utils/socket' import * as jsonUtils from '../utils/json' import * as decodeUtils from '../utils/decode' import * as helpers from '../helpers' import { sendNotification ...
<reponame>xaviergonz/mobx-keystone import { computed, get, reaction, remove, set } from "mobx" import { assert, _ } from "spec.ts" import { clone, customRef, detach, findParent, getParent, getParentPath, getSnapshot, idProp, isRefOfType, model, Model, modelAction, modelIdKey, prop, Ref, ...
import { useState } from "react" import { Button, Chip, DropdownItem, Modal, Spinner, TextInput, Tooltip } from "@patternfly/react-core" import { WarningTriangleIcon } from "@patternfly/react-icons" import moment from "moment" import { useDispatch } from "react-redux" import { RenderFunction } from "../tests/reducers"...
<gh_stars>1-10 import { app, BrowserWindow, session, webContents, WebContents, MenuItemConstructorOptions } from 'electron/main'; const isMac = process.platform === 'darwin'; const isWindows = process.platform === 'win32'; const isLinux = process.platform === 'linux'; type RoleId = 'about' | 'close' | 'copy' | 'cut' ...
<filename>TrescopeServer/universal/scene-json-renderer/src/CameraCreateor.ts import {Box3} from "three/src/math/Box3"; import {OrthographicCamera, PerspectiveCamera, Vector3, Matrix4} from "three"; const viewType = { left: 'left', right: 'right', top: 'top', bottom: 'bottom', front: 'front', ba...
/** * Helper types for :hint */ import Logger from "@src/lib/logging" import * as DOM from "@src/lib/dom" import * as hinting from "@src/content/hinting" /** * Open mode: how to act on the selected hintable element */ export enum OpenMode { Default = "", Tab = "-t", BackgroundTab = "-b", Window = ...
<gh_stars>0 import { NodePlopAPI, AddManyActionConfig } from 'plop'; import { Actions } from 'node-plop'; import * as path from 'path'; import * as fs from 'fs-extra'; import * as jju from 'jju'; import _ from 'lodash'; import chalk from 'chalk'; import { spawnSync } from 'child_process'; import { findGitRoot, PackageJ...
import { FileHelper } from "./utils"; import { ServiceClientCredentials } from "ms-rest"; import { WebSiteManagementClient } from "azure-arm-website"; import { FileError, DeploymentError, AuthorizationError, SubscriptionError } from "../../errors"; import { SubscriptionItem, ResourceGroupItem } from "../azure-a...
<reponame>jncraton/node-poweredup import { BaseHub } from "./basehub"; import * as Consts from "../consts"; import { decodeMACAddress, decodeVersion, toBin, toHex } from "../utils"; import Debug = require("debug"); const debug = Debug("lpf2hub"); const modeInfoDebug = Debug("lpf2hubmodeinfo"); /** * @class LPF2Hu...
<reponame>lucero3210/assets import * as fs from "fs" import * as path from "path" import { ValidatorModel } from "./models"; const axios = require('axios') const Web3 = require('web3') const web3 = new Web3('ws://localhost:8546'); import { CoinTypeUtils, CoinType } from "@trustwallet/types"; const sizeOf = require("ima...
import { ApiError } from '@dvn/core/api'; import { Component, h, Host, Prop, State } from '@stencil/core'; import moment from 'moment'; import { Availability } from '@dvn/takvim/api/models'; import { TakvimApi } from '@dvn/takvim/api/takvimApi'; import { TakvimAvailabilitySettingsViewConfig } from '../takvim-availabili...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {Store} from '../reducers/index'; import {Logger} from '../fb-interfaces/Logger'; import {FlipperPlugin, Flip...
import { FC, createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react'; import Web3 from 'web3'; import { HttpProvider } from 'web3-core'; import { AbiItem } from 'web3-utils'; import EventEmitter from 'wolfy87-eventemitter'; import Icon from 'components/custom/icon'; import { Text } from 'co...
<reponame>Alabate/ant-plus /* * ANT+ profile: https://www.thisisant.com/developer/ant-plus/device-profiles/#521_tab * Spec sheet: https://www.thisisant.com/resources/bicycle-power/ */ import { Messages, SendCallback, AntPlusSensor, AntPlusScanner } from './ant'; class MuscleOxygenSensorState { constructor(deviceI...
<reponame>arndissler/generate-mail-extension-typings<filename>src/index.ts<gh_stars>0 import { existsSync } from "fs"; import { join, sep, resolve } from "path"; import { opendir, readFile, writeFile } from "fs/promises"; import meow from "meow"; interface SchemaPartFunctionParameter { readonly name: string; reado...
import React, { ComponentType, FC, ReactNode, useCallback, useContext, useEffect, useMemo, useRef, useState, } from 'react'; import { PressEvent } from '@react-types/shared'; import { useComponentRegistry } from '@bem-react/di'; import { makeChain } from '../../lib/makeChain'; import { Keys, isKeyCode } from ...
import classNames from "classnames"; import { useState, ReactNode, FormEvent } from "react"; import { isSport, WEBSITE_ROOT } from "../../common"; import { ActionButton, MoreLinks } from "../components"; import useTitleBar from "../hooks/useTitleBar"; import { downloadFile, helpers, safeLocalStorage, toWorker } from "....
<gh_stars>0 import { ChartwerkPod, VueChartwerkPodMixin, TickOrientation, TimeFormat, AxisFormat } from '@chartwerk/core'; import { BarTimeSerie, BarOptions, RowValues } from './types'; import * as d3 from 'd3'; import * as _ from 'lodash'; const DEFAULT_BAR_OPTIONS: BarOptions = { renderBarLabels: false, stack...
import React from 'react'; import moment from 'moment'; import { Button, ListGroup, ListGroupItem, Glyphicon } from 'react-bootstrap'; import { Field, FieldArray, InjectedFormProps } from 'redux-form'; import Form from './FormElements/Form'; import * as Validators from '../infrastructure/Val...
<reponame>bmoore-msft/vscode-azurearmtools<filename>src/documents/templates/scopes/TemplateScope.ts // ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------...
<gh_stars>1-10 /** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable local/ban-types-eventually */ import style = require('ansi-styles'); import...
class Matrix { a: number = 1; b: number = 0; c: number = 0; d: number = 1; e: number = 0; f: number = 0; constructor(data?: string) { this.apply(data); } apply(data?: string) { let values: Array<any> = [1, 0, 0, 1, 0, 0]; if (data) { values = data.split(','); } this.a = par...
import { Options as PrettierOptions } from "prettier"; import { capitalCase as originalCapitalCase } from "capital-case"; import { OptionalKind, ClassDeclarationStructure, SourceFile } from "ts-morph"; import { Options as GotOptions } from "got"; import { Options as ExecaOptions } from "execa"; import { CompilerOptions...
import { subectNameList } from './../../../../shared/services/shared-data'; import { Component, OnInit, ViewChild } from '@angular/core'; import { SharedServices } from '../../../../shared/services/SharedServices'; import { NgxSpinnerService } from 'ngx-spinner'; import { AlertService } from 'ngx-alerts'; import { MatD...
<filename>src/pages/hacks/accessing-private-data/index.html.ts<gh_stars>0 // metadata export const version = "0.8.13" export const title = "Accessing Private Data" export const description = "An example of accessing private data from a Solidity smart contract" const html = `<h3 id="vulnerability">Vulnerability</h3> ...
<filename>src/plugins/enter.ts<gh_stars>0 /*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2020 <NAME>. All rights reserved. https://xdsoft.net */ import * as consts from '../constants'; import { Dom } from '../mod...
import * as vscode from 'vscode'; import * as path from 'path'; import { getExtensionConfiguration } from './configurationHelper'; /** * returns a local file path relative to the extension root dir * @param filePath */ export function getResourcePath(webview: vscode.Webview, context: vscode.ExtensionContext, fileP...
/* © 2020 NetSuite Inc. User may not copy, modify, distribute, or re-bundle or otherwise make available this code; provided, however, if you are an authorized user with a NetSuite account or log-in, you may use this code subject to the terms that govern your access and use. */ /// <amd-module name="Backbone.Collec...
import G from "generatorics"; import _ from "lodash"; import React from "react"; import ReactDOM from "react-dom"; import { WaxAuthClient } from "wax-auth-client"; import "../../style/builder.less"; import { Error } from "../components/Error"; import { Footer } from "../components/Footer"; import { Header } from "../co...
import { $$ } from '../utils/Dom'; import { Assert } from '../misc/Assert'; import { Utils } from '../utils/Utils'; import { BaseComponent } from '../ui/Base/BaseComponent'; import * as _ from 'underscore'; export const MODEL_EVENTS = { PREPROCESS: 'preprocess', CHANGE_ONE: 'change:', CHANGE: 'change', RESET: ...
<gh_stars>1-10 /** * @license * Copyright 2016-2020 Balena 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/licenses/LICENSE-2.0 * * Unless required...
<filename>source/server/tasks/DocumentTask.ts /** * 3D Foundation Project * Copyright 2019 Smithsonian Institution * * 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.apach...
import { CHAOS, DEATH, DESTRUCTION, ORDER, TGrandAlliances } from './alliances' import { IInitialArmy } from 'types/army' import { BEASTS_OF_CHAOS, BIG_WAAAGH, BONESPLITTERZ, CHAOS_GRAND_ALLIANCE, CITIES_OF_SIGMAR, DAUGHTERS_OF_KHAINE, DEATH_GRAND_ALLIANCE, DESTRUCTION_GRAND_ALLIANCE, DISPOSSESSED, ...
<gh_stars>1-10 /* * Copyright 2021 Google LLC * * 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 * * Unless required by applicable la...
import * as t from 'babel-types' import traverse, { NodePath, Visitor } from 'babel-traverse' import { transform } from 'babel-core' import * as template from 'babel-template' import { buildImportStatement, codeFrameError, buildRender, buildBlockElement } from './utils' import { WXS } from './wxml' import { PageLifecyc...
import {GoldenSun} from "../GoldenSun"; import * as numbers from "../magic_numbers"; import {SpriteBase} from "../SpriteBase"; import * as utils from "../utils"; import {Window} from "../Window"; const DIALOG_CRYSTAL_KEY = "dialog_crystal"; //A dialog can be divided in N windows. Each division has a step index. //To ...
import '../assets/home.scss' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCircle, faStar } from '@fortawesome/free-solid-svg-icons' import HelloModal from './components/helloModal' import { ChangeEvent, KeyboardEvent, useEffect, useRef, useState } from 'react' import { Snackbar } from '@m...
import { Injectable } from '@angular/core'; import * as TestServerApi from 'types/test-server'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; /** interface for calls to the testServer */ interface Calls { /** requested command to execute on the server */ command: TestServerApi.Command; /** callback, when ...
import {afterEach, beforeEach, describe, it} from 'mocha'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import sinon from 'sinon'; import mockfs from 'mock-fs'; import nock from 'nock'; import fs from 'fs'; import AWS from 'aws-sdk'; import {Stream} from 'stream'; import * as s3Backend fr...
import React, { useEffect, useState } from 'react'; import { ArtCard } from '../../components/ArtCard'; import { Layout, Row, Divider, Col, Card, Tabs, Tag, Pagination, Skeleton, List, } from 'antd'; import Masonry from 'react-masonry-css'; import { Link } from 'react-router-dom'; import { useCreato...
<reponame>robdy/cli-microsoft365 import { Group, PlannerBucket, PlannerPlan, PlannerTask, PlannerTaskDetails, User } from '@microsoft/microsoft-graph-types'; import { Logger } from '../../../../cli'; import { CommandOption } from '../../../../Command'; import GlobalOptions from '../../../../GlobalOptions'; import reque...
<gh_stars>0 import {Directive, ElementRef, Inject, Injector, Input, OnChanges, OnDestroy, OnInit, SimpleChanges} from "@angular/core"; import "fattable"; import * as $ from "jquery"; import "rxjs/add/observable/fromEvent"; import "rxjs/add/operator/debounceTime"; import {Observable} from "rxjs/Observable"; import * as ...
import React from 'react'; import { StyleSheet, View } from 'react-native'; import { PanGestureHandler, PinchGestureHandler, State } from 'react-native-gesture-handler'; import Animated, { Easing } from 'react-native-reanimated'; import { ImageComponent } from './ImageComponent'; import { themes } from '../../constant...
import React, { useCallback } from 'react'; // @ts-ignore import { default as ReactSelect } from '@torkelo/react-select'; // @ts-ignore import Creatable from '@torkelo/react-select/creatable'; // @ts-ignore import { default as ReactAsyncSelect } from '@torkelo/react-select/async'; // @ts-ignore import { default as Asyn...
<filename>src/ui/Templates/Template.ts import { Logger } from '../../misc/Logger'; import { $$ } from '../../utils/Dom'; import { TemplateConditionEvaluator } from './TemplateConditionEvaluator'; import { TemplateFieldsEvaluator } from './TemplateFieldsEvaluator'; import { IQueryResult } from '../../rest/QueryResult'; ...
import type { ComponentOptions, Operation } from './options'; import Case from 'case'; import { promisify } from 'util'; import { fileURLToPath } from 'url'; import { dirname, join, relative } from 'path'; import fs from 'fs'; import mkdirp from 'mkdirp'; import { codegen } from './codegen.js'; import { processTempl...
import { importfunc } from './native'; export function readFile(filePath: string) { const open = importfunc(null, "open", 'int', ['string', 'int']); const read = importfunc(null, "read", 'uint', ['int', 'pointer', 'uint']); const lseek = importfunc(null, "lseek", 'int', ['int', 'int', 'int']); co...
import { NextApiHandler } from "next"; import NextAuth from "next-auth"; // @ts-ignore: TODO Ask `@types/next-auth` to extend their types? For example, to allow the callback `session` getting a `token` instead of a `user` as second parameter. See https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nex...
import React, { FC, Component, useEffect, useCallback, ReactNode } from "react"; import { useAtom, Provider } from "jotai"; import { BaseObjectsEvent, MessageActionEvent, PresenceEvent, SignalEvent, UUIDMetadataObject, ObjectCustom, FileEvent, StatusEvent, } from "pubnub"; import { usePubNub } from "pub...
<gh_stars>0 import { CancellationToken, Disposable, Event, EventEmitter, FileChangeEvent, FileChangeType, FileSearchOptions, FileSearchProvider, FileSearchQuery, FileStat, FileSystemError, FileSystemProvider, FileType, Position, Progress, Range, TextSearchComplete, TextSearchOptions,...
/* * Copyright 2018-2020 TON DEV SOLUTIONS LTD. * * Licensed under the SOFTWARE EVALUATION License (the "License"); you may not use * this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS I...
import React, {useEffect, useState} from "react"; import { AppBar, Button, Container, createStyles, DialogContent, DialogContentText, DialogTitle, IconButton, ListItemSecondaryAction, ListItemText, makeStyles, Paper, Snackbar, Theme, Toolbar, Typography } ...
<gh_stars>100-1000 import { Browser, commitEntity, getEntityFromElement, getEntitySelector, isCharacterValue, toArray, arrayPush, createElement, addRangeToSelection, createRange, moveChildNodes, getObjectKeys, } from 'roosterjs-editor-dom'; import { ChangeSource, ...
/** * @module 1-Top-Level */ /** a second comment */ import {IDropTargetMonitor} from './drop-target-monitor'; import {IDragSourceMonitor} from './drag-source-monitor'; import {TypeOrTypeArray} from './type-ish'; import {Observable, Subscription, SubscriptionLike, TeardownLogic} from 'rxjs'; import {IDragLayerMonito...
/** * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
import { Vector3 } from 'three' /** * Generates 2D-Coordinates in a very fast way. * * Based on work by: * @link http://www.openprocessing.org/sketch/15493 * * @param center Center of Hilbert curve. * @param size Total width of Hilbert curve. * @param iterations Number of subdivisions. * @param v0 ...
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ /** get some code from https://github.com/angular/material2 */ import { AfterContentChecked, AfterContentInit, ChangeDetectionStrategy,...
<filename>Node/core/src/dialogs/ActionSet.ts // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Builder SDK Github: // https://github.com/Microsoft/BotBuilder // // Copyright (c) Microsoft Corporation // All rights ...
<gh_stars>0 import { TimeInSeconds } from "../midi/types"; declare var window: any; function log10(x: number) { return Math.log(x) / Math.LN10; } export interface IAndySoundNode { readonly node?: AudioNode; readonly nodeInput?: AudioNode; } /* +-------------------+ | IAndySoundNode | | i - nodeInput ...
<gh_stars>1-10 /* * 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 expect from '@kbn/expect'; import { SavedObjectsErrorHe...
import Common, { Chain } from '@ethereumjs/common' /** * Default hardfork rules to run tests against */ export const DEFAULT_FORK_CONFIG = 'Istanbul' /** * Tests which should be fixed */ export const SKIP_BROKEN = [ 'ForkStressTest', // Only BlockchainTest, temporary till fixed (2020-05-23) 'ChainAtoChainB', ...
import type * as amf from "@akashic/amflow"; import {Trigger} from "@akashic/trigger"; import {action, observable, computed} from "mobx"; import {TimeKeeper} from "../../common/TimeKeeper"; import type {PlayAudioStateSummary} from "../../common/types/PlayAudioState"; import type {Player} from "../../common/types/Player...
<reponame>robertsLando/node-zwave-js import { CommandClasses, DSTInfo, formatDate, getDefaultDSTInfo, getDSTInfo, Maybe, MessageOrCCLogEntry, validatePayload, ZWaveError, ZWaveErrorCodes, } from "@zwave-js/core"; import { padStart } from "alcalzone-shared/strings"; import type { Driver } from "../driver/Drive...
<filename>treeComponent/willow/Willow.ts const superagent = require("superagent") const miuri = require("miuri.js") import jtree from "../../src/jtree" import jTreeTypes from "../../src/jTreeTypes" const stump = require("../../langs/stump/stump.js") const WillowConstants: jTreeTypes.stringMap = {} WillowConstants.Sh...
import AbstractComponent from "@components/AbstractComponent"; import React from "react"; import { View, Image, Text, Dimensions, NativeScrollEvent, NativeSyntheticEvent, StyleSheet, } from "react-native"; import colors from "@theme/colors"; import { ScrollView } from "react-native-gesture-handler"; impor...
import { BigNumber } from 'bignumber.js' import * as ethABI from 'ethereumjs-abi' import { WyvernProtocol } from 'wyvern-js' import { HowToCall, ReplacementEncoder, Network } from 'wyvern-js/lib/types' import { WyvernAtomicizerContract } from 'wyvern-js/lib/abi_gen/wyvern_atomicizer' import { AnnotatedFunctionABI, ...
<reponame>MarcosKerchner/json-server-auth import { Router, Handler } from 'express' import * as jwt from 'jsonwebtoken' import * as jsonServer from 'json-server' import { stringify } from 'querystring' import { JWT_SECRET_KEY } from './constants' import { bodyParsingHandler, errorHandler, goNext } from './shared-middle...
import React, { useState } from "react"; import { useDispatch, useSelector, shallowEqual } from "react-redux"; import cx from "classnames"; import Icon from "./Icon"; import { HostApi } from "../webview-api"; import { Range } from "vscode-languageserver-types"; import { useDidMount } from "../utilities/hooks"; import {...
/* * (C) Copyright 2017-2020 OpenVidu (https://openvidu.io) * * 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 ap...
/*--------------------------------------------------------------------------------------------- * 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 {description, program, requiredArg, usage, version, optionalArg} from 'commander-ts'; import * as fs from "fs"; import * as path from 'path'; import * as constants from './constants'; import {Parameter} from './Parameter'; @program() @version('1.0.0') @description('Code generator for tslapack') @us...
<filename>scenario/src/EventBuilder.ts<gh_stars>10-100 import { Event } from './Event'; import { addAction, World } from './World'; import { Invokation } from './Invokation'; import { Arg, Command, Fetcher, getFetcherValue, processCommandEvent, View } from './Command'; import { storeAndSaveContract } from './Networks';...
import { createBaseAttackFormula, KineticWeaponAttack, KineticWeaponAttackData, } from '@src/combat/attacks'; import { enumValues, RangedWeaponAccessory, RangedWeaponTrait, } from '@src/data-enums'; import type { ItemType } from '@src/entities/entity-types'; import { ArmorType } from '@src/features/active-a...
/* * Copyright 2022 ThoughtWorks, 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 agr...
import * as PUPPET from 'wechaty-puppet' import { log } from 'wechaty-puppet' import { GError, timeoutPromise, TimeoutPromiseGError, } from 'gerror' import { StateSwitch } from 'state-switch' import type { StateSwitchInterface, } from 'state-switch' i...
/** * @license * Copyright Google LLC 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 {ElementRef, Injector, SimpleChanges} from '@angular/core'; import {DirectiveRequireProperty, element as angu...
// github:tom-weatherhead/common-utilities.ts/src/dates.ts 'use strict'; import { zeroPadNumber } from './numbers'; export function getDateString(date: Date): string { // if (!date || !isDate(date)) { // date = new Date(); // } return `${date.getFullYear()}-${zeroPadNumber( date.getMonth() + 1, 2 )}-${zer...
import { Chapter, ChapterDetails, HomeSection, LanguageCode, Manga, MangaStatus, MangaTile, MangaUpdates, PagedResults, RequestHeaders, Response, SearchRequest, Source, TagSection, } from 'paperback-extensions-common' import { ICategory, IChapter, IPag...
<reponame>Kavya1234Shree/TwowheelersDashboard<filename>src/app/dialog-data-example-dialog/dialog-data-example-dialog.component.ts import { HttpClient } from '@angular/common/http'; import { Component, OnInit, Inject } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; impo...
/* * 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 { Aliases, AuthInfo, Connection, DefaultUserFiel...
<reponame>sudoorgza/gstore-node import extend from 'extend'; import is from 'is'; import { Transaction, Query as DatastoreQuery } from '@google-cloud/datastore'; import Model from './model'; import { EntityResponse } from './entity'; import helpers from './helpers'; import { GstoreError, ERROR_CODES } from './errors'...
/** * @file PropertyFieldAutoCompleteHost.tsx * Renders the controls for PropertyFieldAutoComplete component * * @copyright 2017 <NAME> * Released under MIT licence */ import * as React from 'react'; import { IPropertyFieldAutoCompletePropsInternal } from './PropertyFieldAutoComplete'; import { Label } from 'offi...
import array = require('dojo/_base/array'); import aspect = require('dojo/aspect'); import Deferred = require('dojo/Deferred'); import has = require('./has'); import requestUtil = require('dojo/request/util'); import whenAll = require('dojo/promise/all'); declare var process:any; export function addUnloadCallback(cal...
<filename>node_modules/angular2/ts/src/core/zone/ng_zone.ts import {ListWrapper, StringMapWrapper} from 'angular2/src/core/facade/collection'; import {normalizeBlank, isPresent, global} from 'angular2/src/core/facade/lang'; import {wtfLeave, wtfCreateScope, WtfScopeFn} from '../profile/profile'; export interface NgZo...
import React, { Component } from 'react' import { connect } from 'react-redux' import s from 'styled-components' import BellIcon from '../../../../public/img/bell.svg' import MachineAvailability from './MachineAvailability' import { BorderedCard, Row, Col, Subtext, NoData, ErrorMessage, } from '../shared' ...
import { IFrontendDomChangeEvent } from '@ulixee/hero-interfaces/IDomChangeEvent'; declare global { interface Window { getNodeById(id: number): Node; DomActions: typeof DomActions; } } // copied since we can't import data types enum DomActionType { newDocument = 0, location = 1, added = 2, removed...
<reponame>technologiestiftung/otc-data-storage import { MongoClient } from "mongodb"; import { PrismaClient } from "@prisma/client"; import groupBy from "lodash/groupBy"; // import Debug from "debug"; import { RawArea, RawDetection, RawRecording, MongoDetection, MongoRecording, MongoArea, Dictionary, } fr...
const enUs = { site_title: 'React Application EN_US', site_copyright: 'Copyright©{curDate, date, ::yyyy}', site_welcome: 'Welcome to {text}', role_type_system_administrator: 'SystemSetting Administrator', role_type_member: 'Member', role_super_administrator: 'Super Administrator', role_syste...
<reponame>JeppeKlitgaard/ObsidianAnkiBridge<gh_stars>10-100 import AnkiBridgePlugin from 'main' import { NoteBase } from 'notes/base' import { App, Notice } from 'obsidian' import { ProcessedFileResult } from './reader' import _ from 'lodash' import { AddNoteResponse, NotesInfoResponseEntity, UpdateNoteFiel...
<reponame>guyplusplus/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 { getNumTopClasses, getNumTopFeatureI...
<filename>node_modules/force-graph/dist/force-graph.d.ts interface GraphData { nodes: NodeObject[]; links: LinkObject[]; } type NodeObject = object & { id?: string | number; x?: number; y?: number; vx?: number; vy?: number; fx?: number; fy?: number; }; type LinkObject = object & { source?: string ...
import {GetValues_ForSchema, CE, CreateStringEnum, GetValues} from "web-vcore/nm/js-vextensions.js"; import {AddSchema, DB, MGLClass, GetSchemaJSON, Field} from "web-vcore/nm/mobx-graphlink.js"; import {QuoteAttachment} from "../nodeRevisions/@QuoteAttachment.js"; import {MediaAttachment} from "../nodeRevisions/@MediaA...