text
stringlengths
3.3k
33k
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
import { AtomicLayoutNode } from '../../layout/atomic-node'; import { InlineLayoutNode } from '../../layout/inline-node'; import { ILayoutNode } from '../../layout/node'; import { InlineModelNode } from '../../model/inline-node'; import { IAttributes, IModelNode } from '../../model/node'; import { AtomicRenderNode } fr...
import React, {Component} from 'react'; //@ts-ignore import RecordRTC, {MediaStreamRecorder, MultiStreamRecorder, MRecordRTC, RecordRTCPromisesHandler} from 'recordrtc'; // In the renderer process. import {desktopCapturer} from 'electron'; import { getAllVideoMetaData, getVideo, sendVideoViaSocketIO, s...
<reponame>antvis/F7 const DEFAULT_OPTIONS = { touchStart: function () { }, touchMove: function () { }, touchEnd: function () { }, touchCancel: function () { }, multipointStart: function () { }, multipointEnd: function () { }, tap: function () { }, doubleTap: function () { }, longTap: function () { }, ...
<gh_stars>0 import { IDoesFilterPassParams, IFilterOptionDef, ProvidedFilterModel, } from '../../interfaces/iFilter'; import { RefSelector } from '../../widgets/componentAnnotations'; import { OptionsFactory } from './optionsFactory'; import { IProvidedFilterParams, ProvidedFilter } from './providedFilter'; impor...
<reponame>Zer0x00/HAP-NodeJS import assert from 'assert'; import crypto from "crypto"; import tweetnacl from 'tweetnacl'; import util from 'util'; import { AccessoryJsonObject } from "../../internal-types"; import { MacAddress } from "../../types"; import { Categories } from '../Accessory'; import { EventedHTTPServer, ...
<reponame>Vafilor/TimeTracker import $ from "jquery"; import Observable from "./observable"; import { TimeEntryApi, TimeEntryApiErrorCode } from "../core/api/time_entry_api"; import { ConfirmClickEvent, ConfirmDialog } from "./confirm_dialog"; import { ApiTimeEntry } from "../core/api/types"; import TimerView from "./t...
<filename>src/command.ts import { ApplicationCommandOption, ApplicationCommandPermissions, PartialApplicationCommand, PermissionNames } from './constants'; import CommandContext from './context'; import SlashCreator from './creator'; import { oneLine, validateOptions } from './util'; /** The options for a {@li...
<gh_stars>0 import { RouterContext } from '@koa/router' import bcrypt from 'bcrypt' import cuid from 'cuid' import httpErrors from 'http-errors' import Joi from 'joi' import { NydusServer } from 'nydus' import { assertUnreachable } from '../../../common/assert-unreachable' import { isValidEmail, isValidPassword, isVali...
import stream from 'stream' import fluente from 'fluente' import { Readable, Transform, Writable, isReadable, pipeline, readify } from 'fluido' import Herry from 'herry' import Ajv from 'ajv' import { Strategies, migrateStatus } from './migration' import { Mutation, MutationSettings, MutationState, ...
<filename>src/addons/mod/workshop/services/handlers/prefetch.ts<gh_stars>100-1000 // (C) Copyright 2015 Moodle Pty 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://ww...
<filename>packages/electron-builder-squirrel-windows/src/squirrelPack.ts import * as path from "path" import BluebirdPromise from "bluebird-lst-c" import { remove, copy, createWriteStream, unlink, ensureDir, stat } from "fs-extra-p" import { spawn, exec, prepareArgs, execWine, debug } from "electron-builder-util" impor...
import { getNodeBalancerStats, NodeBalancerStats, } from '@linode/api-v4/lib/nodebalancers'; import { pathOr } from 'ramda'; import * as React from 'react'; import { compose } from 'recompose'; import CircleProgress from 'src/components/CircleProgress'; import Paper from 'src/components/core/Paper'; import { crea...
import { Component, OnInit, ViewChild } from '@angular/core'; import { DialogService, DialogServiceConfig, DialogComponent } from 'ng2-bootstrap-modal'; import { ConfirmComponent } from '../confirm/confirm.component'; import { ElementRef, Renderer2 } from '@angular/core'; import { DomSanitizer } from '@angular/platform...
import debug from 'debug'; import { VoiceChannel, Message, MessageEmbed, StreamDispatcher } from 'discord.js'; import { ipcMain, IpcMainEvent } from 'electron'; import * as fs from 'fs'; import { homedir } from 'os'; import * as path from 'path'; import Main from '../main'; import DiscordStreamable from './discord'; im...
import { Writable, WritableOptions } from "stream"; import { Command, parseMessage, GameStartType, PreFrameUpdateType, PostFrameUpdateType, GameEndType, FrameEntryType } from "slp-parser-js"; import { Subject } from "rxjs"; import { PlayerType } from "slp-parser-js/dist/utils/slpReader"; import { takeUntil } from "rxj...
<filename>src/serve.ts /** Micro http/http2 server with file monitoring and automatic app rebuild - can process concurrent http requests - monitors specified filed and folders for changes - triggers library and application rebuild - any build errors are immediately displayed and can be corrected without need ...
<filename>src/integrations/thermopile/thermopile-occupancy.service.ts import { Pixel } from './pixel'; import * as math from 'mathjs'; import { Cluster } from './cluster'; import * as _ from 'lodash'; import { HeatmapOptions } from './thermopile-occupancy.config'; import * as PImg from 'pureimage'; import { WritableStr...
<filename>packages/node-opcua-transport/source/tcp_transport.ts /** * @module node-opcua-transport */ import * as chalk from "chalk"; import { EventEmitter } from "events"; import { Socket } from "net"; import { assert } from "node-opcua-assert"; import { createFastUninitializedBuffer } from "node-opcua-buff...
<reponame>reiinakano/magenta-js /** * A module containing a MIDI recorder. Note that WebMIDI only works natively * on Chrome. For this to work on other browsers, you need to load * the [WebMIDI polyfill]{@link http://cwilso.github.io/WebMIDIAPIShim/} * * @license * Copyright 2018 Google Inc. All Rights Reserved. ...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // 'use strict'; import _ from 'lodash'; import async = require('async'); import Q from 'q'; import { ICorporateLink } from './corporateLink'; import { Organizatio...
<reponame>paperbits/paperbits-styles<filename>src/workshops/typography/typography.ts<gh_stars>1-10 import * as ko from "knockout"; import * as Objects from "@paperbits/common/objects"; import * as Arrays from "@paperbits/common/arrays"; import template from "./typography.html"; import { StyleService } from "../../style...
import { isFunction } from '@redesign-system/theme' import { PRIMARY, SECONDARY, TERTIARY, ACCENT, PRIMARY_ACCENT, SECONDARY_ACCENT, TERTIARY_ACCENT, ACTIVE, PRIMARY_ACTIVE, SECONDARY_ACTIVE, TERTIARY_ACTIVE, ACTION, PRIMARY_ACTION, SECONDARY_ACTION, TERTIARY_ACTION, DANGER, PRIMARY_D...
import { BasicType, getNodeIdxFromClassName } from 'easy-email-core'; import { camelCase } from 'lodash-es'; import React from 'react'; import { getNodeTypeFromClassName, MERGE_TAG_CLASS_NAME, } from 'easy-email-core'; import { isTextBlock } from './isTextBlock'; import { MergeTagBadge } from './MergeTagBadge'; imp...
/* * Copyright (C) 2015 The Gravitee team (http://gravitee.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 requi...
<gh_stars>1-10 import {Component, OnDestroy, OnInit, ViewChild} from '@angular/core'; import {CrudService} from '../../../services/crud.service'; import {EditCollectionRequest, EditTableRequest, SchemaRequest} from '../../../models/ui-request.model'; import {ActivatedRoute, Router} from '@angular/router'; import {DbCol...
/** Copyright 2021 Forestry.io Holdings, 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 agreed to in writing,...
<gh_stars>0 import * as debugsx from 'debug-sx'; const debug: debugsx.IFullLogger = debugsx.createFullLogger('monitor'); import { EventEmitter } from 'events'; import * as fs from 'fs'; import * as path from 'path'; import { sprintf } from 'sprintf-js'; import * as nconf from 'nconf'; import { MonitorRecord, IMonito...
<filename>src/typescript/core/bind.ts<gh_stars>1-10 import {CURLIES, getTemplate, ParsedTemplate, SINGLE_CURLIES, TemplateTokenInfo, TemplateTokenType} from '../decorators/template' import {compose, isDef, isFunction, isUndef} from '../utils/functions' import {addPropertyListener, createObjectPropertyListener, deepValu...
import { Slider, Tag } from 'antd'; import React from 'react'; import { Frankenstein } from '../../utils/frankenstein'; import { Gygax } from '../../utils/gygax'; import { Utils } from '../../utils/utils'; import { Encounter, EncounterSlot, EncounterWave } from '../../models/encounter'; import { Monster } from '../.....
<gh_stars>1-10 interface SyncEvent { id: string, localId: string, sphereId: string, stoneId: string, cloudId: string, specialType: string, } interface SortedListData { id: string, viewKey: string, referenceId: string, sortedList: string[], cloudId: string, updatedAt: number, } interface SceneD...
<reponame>fernandoam14/ontouml-js import { Relation, ModelElement, Property, Class, Package } from '@libs/ontouml'; import { Ontouml2Gufo, getSuperProperty, getPackagePrefix } from './'; import _ from 'lodash'; export class UriManager { transformer: Ontouml2Gufo; id2Uri: { [key: string]: string }; uniqueUris: s...
import fs from "fs"; import path from "path"; import resolve from "resolve"; import webpack from "webpack"; import WebpackAssetsManifest from "webpack-assets-manifest"; import nodeExternals from "webpack-node-externals"; import cssnano from "cssnano"; import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plug...
<reponame>cname87/pp-cloudbuild<filename>frontend/src/app/app-module/services/auth-service/auth.service.ts import { Injectable, InjectionToken, Inject } from '@angular/core'; import originalCreateAuth0Client, { User, GetUserOptions, GetTokenSilentlyVerboseResponse, } from '@auth0/auth0-spa-js'; import Auth0Client...
<reponame>Hurobaki/ts-help import { StringHelpers } from '../helpers/StringHelpers'; /* ############### Exploitable data ############### */ const emptyStringWithoutSpace = ''; /* ############### Test 1 ############### */ const inputTest1 = emptyStringWithoutSpace; const expectedTest1 = true; /* ############### Te...
<reponame>samlanning/synesthesia-composer import * as fs from 'fs'; import * as path from 'path'; import {promisify} from 'util'; import { getPixelMap, PixelMap } from './lib/pixelmaps'; const KEYBOARDS_PATH = '/sys/bus/hid/drivers/razerkbd/'; const MOUSE_MATS_PATH = '/sys/bus/hid/drivers/razermousemat/'; const ENCOD...
<filename>src/utils/ts-plus-babel.ts import * as gulp from 'gulp'; import * as fs from 'fs-extra'; import * as gulpBabel from 'gulp-babel'; import * as gulpSass from 'gulp-dart-sass'; import * as gulpLess from 'gulp-less'; import * as gulpWatch from 'gulp-watch'; import * as gulpStripCssComments from 'gulp-strip-css-co...
import { each, findIndex, get, find, isObject, every } from '@antv/util'; import { Scale, Types } from '@antv/g2'; import { theme, animation as commonAnimation, scale, interaction as commonInteraction, annotation as commonAnnotation, limitInPlot as commonLimitInPlot, } from '../../adaptor/common'; import { ...
<filename>src/app/services/document.service.ts import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { environment } from '../../environments/environment'; import { Stored, StoreService } from './store.service'; import { Person } from '../model/Person'; import { UserService ...
import * as RMWC from '@srmwc/types'; import React from 'react'; import { MDCTopAppBarFoundation } from '@material/top-app-bar'; import { useClassNames, Tag, createComponent } from '@srmwc/base'; import { IconButton, IconButtonProps } from '@srmwc/icon-button'; import { useTopAppBarFoundation } from './foundation'; /*...
/** * A class to represent badges * @class * * @property badge_id identification for a badge * @property badge_photo photoname for the badge * @property badge_description description what the badge is all about * @property badge_conditions conditions needed to accomplish in order to obtain this badge */ export ...
import { EMA } from "technicalindicators" export const getTokens = async (axios: any, apiKey: string) => { let tokens: any = {} // top 50 tokens by capitalization if (process.env.NODE_ENV !== "test") console.log("==> Fetching ethplorer.io Top 50 tokens by capitalization...") let url = `https://api.ethplorer.i...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<gh_stars>1-10 // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // Implements APIs for the 'task' table. These endpoints can be accessed by a // regular work provider, but need additional filters to ensure that a work // provider can only access tasks that they have created. Hence, they could...
import * as aws from 'aws-sdk'; import * as fs from 'fs'; import * as _ from 'lodash'; import * as pathmod from 'path'; import {GenericCLIArguments} from '../cli/utils'; import configureAWS from '../configureAWS'; import def from '../default'; import {getKMSAliasForParameter} from '../params'; import {SUCCESS} from '.....
<gh_stars>0 import { API, Remote, Repository } from './git'; import * as vscode from 'vscode'; import { sendTelemetryData } from './util'; import * as gitURLParser from 'github-url-from-git'; interface IGithubRemoteInfo { owner: string; repo: string; } export interface ISelectionInfo { startLine: number; endLine:...
import { ClassComponent, Component, ComponentName, IComponentLifecycle, isClassComponent, RegisterTap, TComponent, Type } from "@symph/core"; import { getReactControllerMeta, IReactRoute, IReactRouteMeta, ReactRoute, ReactRouterService } from "@symph/react"; import { IScanOutModule } from "../../build/scanner/file-scan...
import fs = require('fs-extra'); import filenameUtils = require('./filename-utils'); import constants = require('../.constants'); import ariaTools = require('./aria-tools'); import msgTools = require('../bot_utils/msg-tools'); import TelegramBot = require('node-telegram-bot-api'); import details = require('../dl_model/...
<filename>src/timelion.ts<gh_stars>1-10 const EXP_FUNCTIONS = ['es','static','abs','bars','color','condition','cusum','derivative','divide','first','fit','hide','label','legend','lines','log','max','min','movingaverage','movingstd','multiply','points','precision','prop','range','scale_interval','subtract','sum','titl...
<reponame>eNepper/stencil import * as d from '../../../declarations'; import { augmentDiagnosticWithNode, buildWarn } from '@utils'; import { convertValueToLiteral, createStaticGetter, getAttributeTypeInfo, resolveType, serializeSymbol, validateReferences } from '../transform-utils'; import { getDeclarationParameters, ...
import { TinyEmitter as Emitter } from 'tiny-emitter'; import emojiData from './data/emoji'; import { i18n as defaultI18n } from './i18n'; import { CLASS_EMOJI_CONTAINER, CLASS_EMOJI, CLASS_EMOJI_AREA, CLASS_EMOJIS, CLASS_CATEGORY_NAME } from './classes'; import { CategoryButtons } from './categoryButtons'...
/// <reference path="moment.d.ts" /> moment().add('hours', 1).fromNow(); var day = new Date(2011, 9, 16); var dayWrapper = moment(day); var otherDay = moment(new Date(2020, 3, 7)); var day1 = moment(1318781876406); var day2 = moment.unix(1318781876); var day3 = moment("Dec 25, 1995"); var day4 = moment("1...
import * as React from 'react' import * as Sb from '../stories/storybook' import * as Kb from '../common-adapters' import Tracker from './index.desktop' const assertion = { assertion: '', color: 'blue', metas: [], proofURL: '', siteIcon: [], siteURL: '', state: 'valid' as 'valid', } const github = { ....
import { Binding } from "../bindings/binding"; import * as ERROR_MSGS from "../constants/error_msgs"; import { BindingScopeEnum, TargetTypeEnum } from "../constants/literal_types"; import * as METADATA_KEY from "../constants/metadata_keys"; import { interfaces } from "../interfaces/interfaces"; import { MetadataReader ...
import { Properties } from '@posthog/plugin-scaffold' import * as Sentry from '@sentry/node' import crypto from 'crypto' import { ProducerRecord } from 'kafkajs' import { DateTime } from 'luxon' import { defaultConfig } from '../../config/config' import { KAFKA_PERSON } from '../../config/kafka-topics' import { BasePe...
<filename>types/index.d.ts<gh_stars>0 import * as UppyUtils from '@uppy/utils' // Utility types type OmitKey<T, Key> = Pick<T, Exclude<keyof T, Key>> type UploadHandler = (fileIDs: string[]) => Promise<void> export interface IndexedObject<T> { [key: string]: T [key: number]: T } // These are defined in @uppy/ut...
import moment from "moment"; import { PlaceType, numPlaceTypes } from "./person"; import { Sim } from "./sim"; import * as util from "./util"; export class TimeStep { static readonly stepsInDay = 24; // This needs to be an integer. protected time: number = 0; static fromHours(hours: number): TimeStep ...
import BigNumber from 'bignumber.js' import React, { useEffect, useState } from 'react' import { Trans, useTranslation } from 'react-i18next' import { ActivityIndicator, Image, ScrollView, StyleSheet, Text, View } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import { useDispatch } f...
<gh_stars>1-10 /** * @classdesc A HobbyCurve/HobbyPath calculation class: compute a set of optimal * cubic Bézier curves from a sequence of vertices. * * This Hobby curve (path) implementation was strongly inspired by * the one by Prof. Dr. <NAME>: * Here's the website: * http://weitz.de/hobby/ * *...
import { applyPatches, createDraft, Draft, enablePatches, finishDraft, isDraft, original, setAutoFreeze } from 'immer'; import { Objectish, Patch } from 'immer/dist/internal'; import * as t from 'io-ts'; import { set } from '../datatypes/set'; import { Component, UnknownComponent } from '../component'; import { map } f...
<filename>src/test/Integration/applicationUploadTest.ts<gh_stars>0 import { Server } from '../../server'; import * as chai from 'chai'; import chaiHttp = require('chai-http'); import 'mocha'; import { expect } from 'chai'; import mongoose = require("mongoose"); import { verify } from 'jsonwebtoken'; import { ServiceF...
<filename>packages/apps-config/src/api/spec/chainx.ts // Copyright 2017-2022 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { OverrideBundleDefinition } from '@polkadot/types/types'; // structs need to be in order /* eslint-disable sort-keys */ const definitions: Over...
import { Contract } from '@ethersproject/contracts'; import { BaseProvider } from '@ethersproject/providers'; import BigNumber from 'bn.js'; import React, { useState, useEffect, useCallback, CSSProperties, ReactChild } from 'react'; import Blockies from './Blockies'; import Jazzicon from './Jazzicon'; // 24 hour TTL ...
<gh_stars>1-10 const momentTimezone = require('moment-timezone') const { promisify } = require('es6-promisify') import differenceInYears from 'date-fns/esm/differenceInYears' import format from 'date-fns/esm/format' import getYear from 'date-fns/esm/getYear' import startOfWeek from 'date-fns/esm/startOfWeek' import { ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import * as cors from 'cors'; import * as express from 'express'; import * as http from 'http'; import { IDisposable } from 'monaco-editor'; import * as path from 'path'; import * as socketIO from 'socket.io'; ...
import { computed, CSSProperties, defineComponent, HTMLAttributes, PropType, ref, watch, } from 'vue'; import ResizeObserver from '../vc-resize-observer'; import classNames from '../_util/classNames'; import { Key, VueNode } from '../_util/type'; import PropTypes from '../_util/vue-types'; import { Overfl...
<reponame>MenuDocs/erela.js-spotify import { Manager, Plugin, TrackUtils, UnresolvedTrack, UnresolvedQuery, LoadType, SearchQuery, ModifyRequest } from "erela.js"; import fetch from "petitio"; const BASE_URL = "https://api.spotify.com/v1"; const REGEX = /(?:https:\/\/open\.spotify\.com\...
/** * @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 {ComponentFactory, ComponentRef, Injector, NgModuleRef, SimpleChange, SimpleChanges, Type} from '@angular/cor...
<filename>packages/ext-angular-kitchensink/src/examples/grids/advanced_features/BigData/BigData.ts declare var Ext: any; import { Component } from '@angular/core'; import { model } from './GridModel'; import { BigDataService } from './BigData.service'; Ext.require([ 'Ext.grid.plugin.*', 'Ext.tip.ToolTip', 'Ext.d...
const { Midi } = require('@tonejs/midi') const Tone = require('tone/Tone') import { base } from "./base/base" import { UI } from "./ui/ui" import { event } from "./base/event" import { clone } from "./base/util" import { DUI } from "./dui/dui"; import { config } from "./constant/config"; import { theme, ThemeConfig } ...
import * as React from 'react'; import { AppHistory } from './appHistory'; import renderComponent from './util/renderComponent'; import { loadEntry, loadEntryContent, appendAssets, emptyAssets, cacheAssets } from './util/handleAssets'; import { setCache, getCache } from './util/cache'; import { callAppEnter, callAppLea...
import { Bip39, EnglishMnemonic, HdPath, pathToString, Random, Secp256k1, Secp256k1Keypair, sha256, Slip10, Slip10Curve, stringToPath, } from "@cosmjs/crypto"; import { Bech32, fromBase64, fromUtf8, toBase64, toUtf8 } from "@cosmjs/encoding"; import { assert, isNonNullObject } from "@cosmjs/utils"...
import { GettingStarted, Standards } from '@/app/components/pages/page'; import Meta from '@ulaval/modul-components/dist/meta/meta'; import { Messages } from '@ulaval/modul-components/dist/utils/i18n/i18n'; import Vue from 'vue'; import Router, { RouteConfig } from 'vue-router'; import { VueRouter } from 'vue-router/ty...
<filename>src/events/prepAsm.ts import { IEventWriteInfo, IEvent } from "./events"; import { getSymbols } from "../symbols/symbols"; import { getChainIndexValuesFromAbsoluteIndex } from "../adapter/boarddef"; import { Game, EventParameterType } from "../types"; import { $$hex } from "../utils/debug"; import { IEventIns...
<gh_stars>10-100 /******************************************************************************* * Copyright © 2021-2022 VMware, Inc. 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 ...
/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import PointComponent from './point-component'; import * as React from 'react'; import { Vec2 } from '../../../mol-math/linear-algebra'; interface LineGraphComponentState { points: V...
import { useState, useRef, useEffect } from 'react'; import { GetStaticPaths, GetStaticProps, NextPage } from 'next'; import { useRouter } from 'next/router'; import Head from 'next/head'; import Link from 'next/link'; import subDays from 'date-fns/subDays'; import isAfter from 'date-fns/isAfter'; import { ArrowLeft } ...
<gh_stars>0 import { Injectable } from "@angular/core"; import { Action, Selector, State, StateContext } from "@ngxs/store"; import { patch, updateItem } from "@ngxs/store/operators"; import { saveAs } from "file-saver"; import { catchError, finalize, map, switchMap, take, tap } from "rxjs/operators"; impor...
<gh_stars>0 export var data: { [key: string]: { [type: string]: any[] } } = { ['username']: { ['required']: [true, 'Username is required'], ['minlength']: [5, 'Username min length is 5'], ['maxlength']: [25, 'Username max length is 25'] }, ['password']: { ['required']: [true...
import React, { useState, useEffect } from 'react'; import { DataView, DropDown, LinkBase, Radio, Header, } from '@aragon/ui'; import { AskText, BidText } from './styled'; import { SectionTitle } from '../common'; import { getBasePairAskAndBids } from '../../utils/0x'; import * as types from '../../types'; import ...
<filename>packages/rxjs-debug/src/lib/meta.ts<gh_stars>0 import {asapScheduler, of, Subject} from 'rxjs'; import { audit, buffer, bufferCount, bufferTime, bufferToggle, bufferWhen, catchError, combineAll, combineLatest, concat, count, debounce, debounceTime, defaultIfEmpty, delay, delayW...
import fs from "fs-extra"; import log from "loglevel"; import path from "path"; import { dist, documentationRoot, projectRoot } from "../constants"; import format from "../utils/format"; import glob from "../utils/glob"; import list from "../utils/list"; import { ALWAYS_REQUIRED_DEPENDENCIES, ALWAYS_REQUIRED_DEV_D...
import {Keys} from "core/dom" import {UIEvent, PanEvent, TapEvent, MoveEvent, KeyEvent} from "core/ui_events" import * as p from "core/properties" import {isArray} from "core/util/types" import {MultiLine} from "../../glyphs/multi_line" import {Patches} from "../../glyphs/patches" import {GlyphRenderer} from "../../ren...
<gh_stars>10-100 import {InjectionToken} from '@angular/core'; import {ObIconService} from './icon.service'; export function iconFactory(iconService: ObIconService): () => void { return () => iconService.registerOnAppInit(); } export const ObTIconConfig = new InjectionToken<ObIconConfig>('Oblique icon configuration'...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { SugarElement } from '@ephox/sugar'; import Tools from '../ut...
<reponame>Rostov1991/amcharts5 import type { Lang } from "../.internal/Lang"; // MALTESE const lang: Lang = { "AD": "Andorra", "AE": "Emirati Għarab Maqgħuda", "AF": "Afganistan", "AG": "Antigua and Barbuda", "AI": "Angwilla", "AL": "Albanija", "AM": "Armenja", "AO": "Angola", "AQ": "Antartika", "AR": "Arġen...
/* * Copyright 2020 Adobe. All rights reserved. * This file is licensed 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.org/licenses/LICENSE-2.0 * * Unless required by appli...
<filename>src/Totem.ts import aceEvent, { AceEvent } from "@wowts/ace_event-3.0"; import { ipairs, pairs, LuaObj, LuaArray, kpairs } from "@wowts/lua"; import { GetTotemInfo, MAX_TOTEMS } from "@wowts/wow-mock"; import { SpellCast } from "./LastSpell"; import { StateModule, States } from "./State"; import { AceModule }...
<filename>app/menu/tools/profile/profile-elevation.component.ts import { Component, Input, SimpleChanges, AfterViewInit, OnChanges, OnDestroy, ViewChild, ElementRef, ChangeDetectionStrategy } from '@angular/core'; import { MapService } from '../../../map.service'; import { Symbols } from '../../symbols'; import { Cha...
<gh_stars>0 import { createSelector } from 'reselect'; import epsilon from 'src/constants/epsilon'; import { Matrix, IQuadrantProps, Vector, Path2D } from 'src/typings'; import calcControl from 'src/utils/calcControl'; import circlePlot from 'src/utils/circlePlot'; import angle from 'src/utils/angle'; import plot from ...
<filename>src/world/entity/livingEntity.ts import { IPosition, IVector } from "../../common/UI/domNode.js"; import { calcDistance, getEscapeVec, getRandomInt, } from "../../common/utils/math.js"; import PriorityQueue from "../../common/utils/priorityQueue/PriorityQueue.js"; import { World } from "../world.js"; im...
<gh_stars>0 import { config } from '../app'; import * as rp from 'request-promise-native'; import * as _ from 'lodash'; import * as ift_service from './ift-service'; export interface TraceOutput { productTraced: ProductInformation; inputEpcInfo: ProductInformation[]; } export interface ProductInformation { epc...
import { Input, View } from '@tarojs/components'; import Taro from '@tarojs/taro'; const { useEffect, useMemo, useRef, useState, useCallback } = Taro /** api **/; import { isExternalClass, isNormalClass, noop, useMemoAddUnit, bem, useMemoClassNames, CssProperties, ActiveProps } from '../utils'; import { InputProps } fr...
import React, { useCallback, useEffect, useState } from 'react'; import debug from 'debug'; import omit from 'lodash/omit'; import { useAudioConsumers, useAudioProducers, useLocalDevice, useVideoConsumers, useVideoProducers, } from '../hooks'; import useDispatch from '../redux/useDispatch'; import useMediasou...
import { Bezier } from 'bezier-js'; import { Trajectory, TrajectorySegment, Vector3, Vector3Tuple } from './types'; import { validateTrajectory } from './validation'; /** * Type specification for a pair of functions that can be used to evaluate the * position and velocity at a given fraction of a trajectory segment...
<gh_stars>1-10 /* * Copyright 2019 HERMENEUT Consortium *   * 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 b...
<gh_stars>0 import * as crypto from 'crypto'; const axios = require('axios'); const { composeAPI, createPrepareTransfers, generateAddress } = require('@iota/core'); const { asTransactionObject } = require('@iota/transaction-converter'); const iotaAreaCodes = require('@iota/area-codes'); const { getSettings, updateW...
<filename>src/scripts/background/sync.ts import dayjs from 'dayjs'; import * as S from 'microstruct'; import { apis } from '../apis'; import { postMessage } from '../messages'; import { Result } from '../types'; import { Mutex, errorResult, numberKeys, successResult } from '../utilities'; import { syncFile } from './cl...
import { faHome, faSave, faTimes, faKeyboard, faCube, faTrash, } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Formik, Field, Form as Form2, ErrorMessage, FieldArray } from 'formik'; import React from 'react'; import { Button, Col, ...
import { getStoreItem, isServer, onStoreChange, removeOnStoreChange, setStoreItem, TCromwellPage, TOrder, TPaymentSession, TStoreListItem, TUser, } from '@cromwell/core'; import { CContainer, getCStore, getRestApiClient, LoadBox } from '@cromwell/core-frontend'; import { Aler...