text
stringlengths
3.08k
15.5k
import { ChangeDetectionStrategy, Component, OnDestroy, OnInit } from '@angular/core'; import { environment } from '../environments/environment'; import { NavigationEnd, Router } from '@angular/router'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { ROUTE } from './route-names'; e...
import * as fs from "fs"; import * as path from "path"; import * as Generator from "yeoman-generator"; // Stuff without types import chalk from "chalk"; import initPackageJson = require("init-package-json"); import * as uppercamelcase from "uppercamelcase"; import * as writeFileAtomic from "write-file-atomic"; import ...
<reponame>amazingandyyy/atlaskit import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of'; import { fromPromise } from 'rxjs/observable/fromPromise'; import fetch$ from './fetch'; import { map } from 'rxjs/operators/map'; import { catchError } from 'rxjs/operators/catchError'; import { Obje...
<reponame>sheff146/office-ui-fabric-react import { DocExcerpt, DocInlineTag, DocNodeKind, DocSection, DocComment, DocPlainText, DocParagraph, DocNode, DocNodeTransforms, DocLinkTag, DocNodeContainer, DocCodeSpan, DocBlock } from '@microsoft/tsdoc'; import { ApiItem, ApiModel, ExcerptToken, IEx...
/* * Copyright 2021 Larder Software Limited * * 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 o...
/* eslint no-underscore-dangle: ["error", { "allow": ["_rxs_id"] }] */ import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs'; import { distinctUntilChanged, filter, share } from 'rxjs/operators'; import { ContextHandle } from './context-handle'; import { DelayedEventQueue } from './delayed-event-que...
import React, { Component } from 'react'; import { Upload, Tooltip, Popover, Icon, Modal, Progress, message, Spin, Result } from 'antd'; import CopyToClipboard from 'react-copy-to-clipboard'; import { injectIntl } from 'react-intl'; const { Dragger } = Upload; interface PicSearcherProps { intl: any; } interface Pi...
<reponame>isabella232/spartacus-financial-services-accelerator import { Observable, of } from 'rxjs'; import { waitForAsync, TestBed, ComponentFixture, fakeAsync, } from '@angular/core/testing'; import { AnonymousConsentsConfig, AnonymousConsentsService, AuthService, Consent, ConsentTemplate, Global...
<filename>smartsonos/websocket.ts 'use strict'; /* The MIT License (MIT) Copyright (c) 2015 Sonos, Inc. 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 withou...
import type { IRoom, ISetting, ISupportedLanguage, IUser } from '@rocket.chat/core-typings'; import type { DeleteWriteOpResultObject } from 'mongodb'; import type { AddWebdavAccountMethod } from './methods/addWebdavAccount'; import type { FollowMessageMethod } from './methods/followMessage'; import type { GetReadRecei...
<gh_stars>10-100 import { Buildable } from "./buildable"; import { ignore, paramMetadataKey, ignoreMetadataKey } from "../decorations/params"; import { BuildingTree } from "./building-tree"; import { Reflection as Reflect } from '@abraham/reflection'; export class BuildableTree implements Buildable { constructor(...
<gh_stars>0 /* * Copyright 2020 Salto Labs 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 by...
import React, { useState } from 'react'; import { formatDistanceToNow } from 'date-fns'; import { ptBR } from 'date-fns/locale'; import Link from 'next/link'; import { FaYoutube, FaGuitar, FaAngleDown } from 'react-icons/fa'; import { IoClose } from 'react-icons/io5'; import { MdEdit } from 'react-icons/md'; import {...
// Copyright 2020 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 law or agreed to in ...
<reponame>cloud-hybrid/factory<gh_stars>0 import Assertion from "assert"; import FS from "fs"; import Module from "module"; import Path from "path"; import Process from "process"; import Utility from "util"; import { Argv } from "yargs"; import { Distributable } from "../../library/types/distributable.js"; const Rem...
import { INumericRange, RangeTypes } from 'mlchartlib'; import { ActionButton } from 'office-ui-fabric-react/lib/Button'; import { Icon } from 'office-ui-fabric-react/lib/Icon'; import { List } from 'office-ui-fabric-react/lib/List'; import { Modal } from 'office-ui-fabric-react/lib/Modal'; import { Stack, StackItem } ...
import * as fs from 'fs'; import WebSocket from 'ws'; import { Connection, Keypair, PublicKey, Transaction } from '@solana/web3.js'; import { makeCancelAllPerpOrdersInstruction, makePlacePerpOrder2Instruction, } from '../instruction'; import { BN, Config, FillEvent, I64_MAX_BN, MangoClient, PerpEventLay...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../../ui/components/expandable_list/expandable_list.js'; import * as Components from '../../components/components.js'; import * as i18n from '../...
/* * This file is part of 6502.ts, an emulator for 6502 based systems built * in Typescript * * Copyright (c) 2014 -- 2020 <NAME> and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to ...
import * as kd from "keydrown" import { Game } from "./game" export const enum InputExtra { HardDrop = 1 << 0, Hold = 1 << 1, Lock = 1 << 2, FinesseMove = 1 << 3, FinesseRotate = 1 << 4, } export class Input { // Left-right movement movement: number // Rotation amount rotation: number // Downward...
import { Component, OnInit, ViewChild } from '@angular/core'; import { MatPaginator } from '@angular/material/paginator'; import { MatSelectChange } from '@angular/material/select'; import { MatSnackBar } from '@angular/material/snack-bar'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource }...
<reponame>fcalderon/tslint-actions<filename>index.ts<gh_stars>0 import * as core from "@actions/core"; // tslint:disable-line // Currently @actions/github cannot be loaded via import statement due to typing error const github = require("@actions/github"); // tslint:disable-line import { Context } from "@actions/github/...
import * as React from 'react'; import { cloneElement, Children, ReactElement, useEffect, useRef } from 'react'; import clsx from 'clsx'; import { isRequired, FieldTitle, composeSyncValidators, RaRecord, useApplyInputDefaultValues, useGetValidationErrorMessage, } from 'ra-core'; import { useFiel...
//////////////////////////////////// import * as punycode from 'punycode' import { CharMapping, Font, } from './types' //////////////////////////////////// const ENCLOSED_LIGHT: CharMapping = { id: 'EnclosedLight', alphabet_upper: punycode.ucs2.decode('ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ'), alphabet_lower: punycode.ucs2....
<reponame>jeffersoncpf/moodleapp-ionic5_AVAIFPE<filename>src/addons/mod/wiki/services/handlers/prefetch.ts<gh_stars>0 // (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 o...
import { GenericEvent } from '../GenericEvent'; import { Util } from '../Util'; import { AllDayValue } from '../Settings'; import { FakeCalendarEvent } from './FakeCalendarEvent'; const DATE1 = new Date('1995-12-17T03:24:00'); const DATE2 = new Date('1995-12-18T04:56:00'); const DATE3 = new Date('1995-12-19T07:08:00')...
import { useCallback, useEffect, useRef, useState } from 'react' import createYouTubePlayer, { PlayerStates } from './youtube-player' import type { YouTubePlayerInterface, OptionsType, EventType, PlayerVars } from './youtube-player' import { YouTubePlayerType } from './youtube-player/types' interface Props { video...
export type OwmMap = { [key in 'day' | 'night']: { [key: number]: { icon: string; }; }; }; const OWM_MAP: OwmMap = { day: { 200: { icon: 'thunderstorm' }, 201: { icon: 'thunderstorm' }, 202: { icon: 'thunderstorm' }, 210: { icon: 'lightning' }, 211: { icon: 'lightning' }, 21...
import React, { useContext, useEffect, useState } from 'react'; import DialogModalBase from './DialogModalBase'; import Context from '../../context'; import { ModalContext } from '../../context/ModalContext'; import TagInput from '../forms/TagInput'; const accentColor = '#4E6AE6'; const emailValidationRegex = /^(([^<>...
import BodyScoper from './BodyScoper'; import EmptyInlineElement from '../inlineElements/EmptyInlineElement'; import getBlockElementAtNode from '../blockElements/getBlockElementAtNode'; import getInlineElementAtNode from '../inlineElements/getInlineElementAtNode'; import PartialInlineElement from '../inlineElements...
import { Component, PostConstruct, _, RefSelector } from '@ag-grid-community/core'; import { IDateTimeListModel, DateTimeListModel, Entry } from './dateTimeListModel'; interface DateTimeListOptions { onValueSelect: (value: Date) => void; initialValue?: Date; } export class DateTimeList extends Component { ...
<reponame>Tengda-He/OpenSearch-Dashboards /* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Any modifications Copyright OpenSearch Contributors. See * GitHub histo...
<reponame>CoolBitX-Technology/bc-ur import { arrayContains, arraysEqual, bufferXOR, getCRC, setDifference, split } from "./utils"; import { chooseFragments } from "./fountainUtils"; import { FountainEncoderPart } from "./fountainEncoder"; import { InvalidChecksumError } from "./errors"; export class FountainDecoderPar...
<gh_stars>0 'use strict'; import * as initDebug from 'debug'; import * as FileType from 'file-type'; import {ITokenizer} from 'strtok3/lib/type'; import * as Token from 'token-types'; import * as assert from 'assert'; import common from '../common/Util'; import {IPicture, IOptions} from '../type'; import {INativeMet...
<reponame>dlmateogarcialopez/monitoreo import { Component, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import * as moment from 'moment'; import { ServiceProvider } from '../../../config/services'; import { WEBSERVICE } from '../../../config/webservices'; import * as FileSaver from 'file-s...
/** @license * Copyright 2019 Esri * * 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 t...
<gh_stars>1-10 import assert = require("assert"); import { readFileSync } from "fs"; import { isAbsolute as pathIsAbsolute } from "path"; import { createVerify, createSign } from "crypto"; const publicKeyPath = require.resolve("../../src/activationKey/public.pem"); export { decodeActivationKey }; export { encodeActiva...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<reponame>TimurRK/nestjs-graphql-easy<filename>lib/loader/decorator.loader.ts import { GraphQLExecutionContext, ReturnTypeFunc } from '@nestjs/graphql'; import { createParamDecorator, ExecutionContext } from '@nestjs/common'; import { FragmentDefinitionNode, GraphQLResolveInfo, SelectionNode } from 'graphql'; import {...
<reponame>SrikanthJakkaslokam/KaveriProject import { Component, OnInit, ViewChild } from '@angular/core'; import { MatPaginator } from '@angular/material/paginator'; import { MatSnackBar } from '@angular/material/snack-bar'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/...
<reponame>MPOscar/shopping-backoffice-new import { AfterViewInit, Component, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { Router, ActivatedRoute } from '@angular/router'; // import { MatDialog, MatDialogRef } from '@angular/material/dialog'; impo...
import { joiResolver } from "@hookform/resolvers/joi"; import { UserRoleType } from "@prisma/client"; import Button from "components/Button"; import Icon from "components/Icon"; import SignUpLayout from "components/SignUpLayout"; import UserSignUpFormField from "components/UserSignUpFormField"; import Joi from "lib/val...
import React, { useEffect } from 'react'; // @ts-ignore import { withBemClass, BemBlockType } from 'canvas-panel-beta'; import withLocation from '../withLocation/withLocation'; import queryString from 'query-string'; import { ResetIcon } from '../Icons/Reset'; import './CanvasNavigation.scss'; interface CanvasNavigat...
<reponame>zikunrain/zbuffer.js export class Vec4 { public d: number[] = [0.0, 0.0, 0.0, 0.0] constructor(x: number = 0.0, y: number = 0.0, z: number = 0.0, w: number = 0.0) { this.d[0] = x this.d[1] = y this.d[2] = z this.d[3] = w } public sub(v: Vec4): Vec4 { const retVec: Vec4 = new Vec4...
<gh_stars>1-10 import * as R from 'ramda'; import { createQueryBuilder } from 'typeorm'; import CasbinSingleton from '../../lib/casbin'; import { convertJSONToStringInOrder } from '../../lib/casbin/JsonFilteredEnforcer'; import { User } from '../../model/user'; import { extractRoleTagFilter } from '../../utils/queryPar...
import Promise = require('bluebird'); import { ClientStack, NetworkResponse, GetEstatesResult, GetGroupsResult, GetUsersResult, LoginResponse } from '../ClientStack'; import { Map, Set } from 'immutable'; import { ReduxStore } from '../Redux'; import { IJob, IRegion, IEstate, IManager, IEstateMap, IGroup, IM...
<reponame>edemaine/solid-primitives import { Fn, warn } from "@solid-primitives/utils"; import { Accessor, createRoot, onCleanup, untrack } from "solid-js"; import { abs, accessor, ceil, floor, min, RangeProps, toFunction } from "./common"; /** * Reactively maps a number range of specified `stop`, `to` and `step`, wi...
import { Database } from './async-sqlite3' import { NotImplementedError, ParseError } from './custom-errors'; import { ArrowFunctionExpression, isArrowFunctionExpression, Expression, isObjectExpression, ObjectProperty, isObjectProperty, Identifier, isIdentifier, SourceLocation } from '@babel/types' import { parseExp...
<reponame>zamnuts/nodejs-logging /*! * Copyright 2015 Google 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 the License at * * http://www.apache.org/licenses/LICENSE-2...
<filename>packages/widget/types/core/src/interfaces.d.ts declare type constructor<T> = { new (...args: any[]): T; }; export declare type TContext = string | Element | Element[] | GlobalEventHandlers; declare type TWay = "parent" | "child" | "prev" | "next" | "self"; export interface IAttrs { parse(aElements: El...
<reponame>foxglove/rosbag2<gh_stars>1-10 import type { RosMsgDefinition } from "@foxglove/rosmsg"; import { definitions as commonDefs } from "@foxglove/rosmsg-msgs-common"; import { definitions as foxgloveDefs } from "@foxglove/rosmsg-msgs-foxglove"; import { MessageReader } from "@foxglove/rosmsg2-serialization"; impo...
import React, { useCallback } from 'react'; import Flatpickr from './flatpickr'; import moment from 'moment'; import { get } from '../../store'; import { endOfMonth, startOfMonth, translate as $t, useKresusState } from '../../helpers'; import { LOCALE } from '../../../shared/settings'; import './date-range.css'; c...
<filename>server/src/routes/management.ts import { Response, Router } from "express"; import { processQuery } from "../lib/database"; import { useAuth } from "../hooks"; import IRequest from "../interfaces/IRequest"; // import { v4 } from "uuid"; import { useAdminAuth } from "./values"; const router: Router = Router();...
import Amplify, { Geo, API } from 'aws-amplify'; import backendconfig from './backend-exports'; import awsconfig from './aws-exports'; Amplify.configure({ ...awsconfig, ...{ API: { endpoints: [{ name: "PizzaDeliveryTrackerBackend", endpoint: backendco...
<reponame>EdgeWalkerr/context import { get, isEqual, set } from 'lodash' import { IPath, IAtomPath, INode, IHashBidirectionalList } from './type' import { filter } from './filter' import typeOf from './typeOf' export const recursiveFindNode = ( hashBidirectionalList: IHashBidirectionalList, path: IAtomPath ): INod...
<reponame>whole-tale/ngx-dashboard import { Component, Inject, NgZone, OnInit } from '@angular/core'; import { MAT_DIALOG_DATA } from '@angular/material/dialog'; import { Dataset, Tale } from '@api/models'; import { DatasetService, FolderService, ItemService } from '@api/services'; import { FileElement } from '@files/m...
import type { ParseOptions, ResolvedOptions, Units } from './types'; import { day, en, es, global, hour, langs, late, minute, month, second, week, year, numberRegex } from './utils'; import escape = require('escape-string-regexp'); export = function parse<L extends boolean = false>( st...
import * as cn from "classnames"; import * as React from "react"; import { FormattedHTMLMessage, FormattedMessage } from "react-intl-phraseapp"; import { Col, Row } from "reactstrap"; import { compose } from "redux"; import { TRequestOutsourcedStatus, TRequestStatus } from "../../../lib/api/KycApi.interfaces"; import ...
<reponame>dads-software-brotherhood/sekc "use strict"; /* * Copyright (C) 1998-2017 by Northwoods Software Corporation. All Rights Reserved. */ import * as go from "../release/go"; import { DebugInspector } from "./DebugInspector"; var myDiagram: go.Diagram = null; export function init() { if (typeof (<any>window)...
import { customAlphabet } from 'nanoid'; import { createLogger } from '../logging'; import { scrapeHTML, isValidResource, getAdditionalMetadata, } from '../scraping'; import type { Resource, Env, Page, SubmissionStatus } from '../types'; /** * ID Generator based on nanoid * Using alphabets and digits only */ ...
import { objectKeys, unique, notSame, notSameNotFalsy } from 'misc-utils-of-mine-generic' import { attrs, Q, Q1, text, findAncestor } from '../dom/domUtil' import { loadXmlDom } from "../dom/jsdom" import { CompoundDef, Described, Descriptions, DoxBool, DoxCompoundKind, DoxMemberKind, DoxProtectionKind, DoxSectionKind,...
const jsxFragment = 'jsx.Fragment' const jsxTextNode = 'jsx.Text' type jsxDOMContainer = HTMLElement | DocumentFragment | null type jsxDOMElement = HTMLElement | DocumentFragment | Text function jsx (type: string | any, config: JSX.ElementChildrenAttribute): JSX.Element { if (typeof type === 'function') { if (t...
import { suite } from 'uvu'; import * as assert from 'uvu/assert'; import { Fraction, Vector, Line, Plane, SquareRoot } from '../index'; const vectorPlaneClass = suite('vector plane class'); const l1 = new Line(new Vector(1, 2, -1), new Vector(1, -2)); const p1 = new Plane(new Vector(1, 2, -1), { rhs: 3 }); const p1x...
/* In NativeScript, a file with the same name as an XML file is known as a code-behind file. The code-behind is a great place to place your view logic, and to set up your page’s data binding. */ import { NavigatedData, Page, EventData, ShownModallyData, ShowModalOptions, ViewBase } from "tns-core-modules/ui/page"; imp...
import { AfterViewInit, Directive, ElementRef, EventEmitter, HostBinding, HostListener, OnInit, Output, Renderer2, } from '@angular/core'; import { FOCUS_GROUP_ATTR, LockFocusConfig } from '../keyboard-focus.model'; import { TrapFocusDirective } from '../trap/trap-focus.directive'; import { LockFocusS...
import { dirname, resolve } from 'path'; import { loadJsonFileSync } from '@idlebox/node-json-edit'; import { pathExistsSync, readdirSync, readJsonSync } from 'fs-extra'; import { requireRushPathSync } from '../common/loadRushJson'; import { Immutable, ImmutableArray } from './deepReadonly'; import { IProjectConfig, IR...
<filename>micro-workflow2/client-server-nodejs-sample/shared/src/commons/workflowStepMappers.ts import { ResultForWorkflow } from './editTypes' import { BAD, fail, GOOD, pass } from './rop/rop' import { AsyncFuncStepDefinition, FuncStepDefinition, StepResult, SyncWorkflowStep, WorkflowStep } from './workflowStep' // e...
/** * @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 */ // Must be imported first, because Angular decorators throw on load. import 'reflect-metadata'; import {isSyntaxErr...
<gh_stars>1-10 /** * All APIs used for Views */ import * as store from './store'; import { IDoc } from './store/Doc'; import { confirm } from './utils/dialog'; import * as status from './utils/status'; import * as enc from './utils/enc'; const { CURRENT_ID, SELECTED_DOC_IDs, EDITING_DOC_IDs } = status.STATUS; exp...
import { BadRequestException } from '@nestjs/common'; import { v4 as uuid } from 'uuid'; import { sortAvailableVariantsByMeasure } from 'shared/utils'; import { AlgorithmEngine } from '../../entity'; import { AvailableVariant } from '../../entity/available-variant'; import { CalculationPayload, CalculationResponse } ...
import React, { useRef, useEffect } from 'react' import { connect } from 'react-redux' import stl from './roleForm.css' import { save, edit } from 'Duck/roles' import { Input, Button, Checkbox, Dropdown, Icon } from 'UI' interface Permission { name: string, value: string } interface Props { role: any, edit: (...
// Copyright 2015-2021 Swim.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 i...
<filename>frontend/src/redux/modules/upload.ts import { createReducer, createAction, ActionType } from 'typesafe-actions'; import { AuthState, PostData, uploadState } from '../../type'; import { select, put, call, takeLeading } from 'redux-saga/effects'; import RootState from '../../type'; import uploadService from...
import { Transition } from '@headlessui/react' import { ExclamationCircleIcon } from '@heroicons/react/solid' import FormError from 'components/atoms/form/FormError' import { useField } from 'formik' import React, { useState } from 'react' import { AiOutlineEye, AiOutlineEyeInvisible } from 'react-icons/ai' const Form...
import React, { useState, useEffect, useCallback } from "react"; import { ScrollView, View, StyleSheet, TouchableOpacity, Text, ToastAndroid, } from "react-native"; import { Ionicons, Entypo } from "@expo/vector-icons"; import { Toast } from "native-base"; import { Header, SingleItems } from "../../compone...
import Provider from "../interfaces/provider"; import Twit from "twit"; import config from "config"; import Sentiment from "sentiment"; import { SentimentAnalyzer } from "node-nlp"; import { Asset } from "./../models/asset"; import cryptoSymbolManagerPromise from "./../managers/cryptoSymbolManager"; /* istanbul ignore ...
<reponame>interlay/xopts import {providers, VoidSigner, utils} from 'ethers'; import FakeWeb3Provider from './helpers/FakeWeb3Provider'; import {Provider, Signer} from '../../lib/core'; import {createXOpts, XOpts} from '../../lib/xopts'; import {Deployments} from '../../lib/addresses'; import {expect} from 'chai'; im...
<filename>src/domain/usecase/AssetExchangeUseCase.ts import { TransactionRepository } from '@/domain/repository/TransactionRepository' import { WalletRepository } from '@/domain/repository/WalletRepository' import { AggregateTransactionRepository } from '@/domain/repository/AggregateTransactionRepository' import { Mosa...
import { addSimulcastSdpLocalDescription } from './simulcast'; const joinButton: HTMLButtonElement = <HTMLButtonElement>document.getElementById('join'); const endpointIdLabel: HTMLLabelElement = <HTMLLabelElement>document.getElementById('endpointId'); const dominantSpeakerLabel: HTMLLabelElement = <HTMLLabelElement>do...
import {HTMLManager} from "@jupyter-widgets/html-manager" import {ModelOptions, IClassicComm, shims} from "@jupyter-widgets/base" import * as utils from "@jupyter-widgets/base" import {Kernel, KernelManager, ServerConnection} from "@jupyterlab/services" import {isString} from "@bokehjs/core/util/types" export type Wi...
<reponame>Biological-Computation/crn-engine<filename>HTML5SharedGUI/GenericComponents/Scripts/KOBindings.ts // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // This file contains general-purpose additional KO bindings. import * as ko from 'knockout'; var parser = new DOMParser(); // Set up...
import { ENUM_MESSAGE_MODE } from '@/constants/base.constants'; import { isShowTimeMessageBetween } from '@/helpers/base.helpers'; import Hook from '@/hooks/Conversations/conversations.hook'; import { MESSAGE_MODEL } from '@/models/Messages.model'; import { FORM_MESSAGE_NAME, MESSAGE_LIMIT } from '@/pages/tin-nhan'; im...
import { BrowserModule, Title } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { NgModule, ApplicationRef } from '@angular/core'; import { removeNgStyles, createNewHosts, createInputTransfer } from '@angularclass/hmr'; import...
import { RESTDataSource } from 'apollo-datasource-rest' import BigNumber from 'bignumber.js' import { ATTESTATIONS_ADDRESS, BLOCKSCOUT_API, CONTRACT_SYMBOL_MAPPING, FAUCET_ADDRESS, VERIFICATION_REWARDS_ADDRESS, } from './config' import { EventArgs, EventInterface, EventTypes, TransferEvent } from './schema' i...
<reponame>VachaShah/notifications /* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for detai...
<filename>src/awscdk-construct.ts import * as semver from 'semver'; import { ConstructLibrary, ConstructLibraryOptions } from './construct-lib'; /** * Options for the construct-lib-aws project. */ export interface AwsCdkConstructLibraryOptions extends ConstructLibraryOptions { /** * Minimum target version this ...
/* * cloudbeaver - Cloud Database Manager * Copyright (C) 2020 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import { observer } from 'mobx-react'; import { useCallback } from 'react'; import styled, { css } from ...
import React, { useState, useEffect } from 'react'; import './list-basic.scss'; import { Action, ScrollData } from '../model'; import { addThemeCls, getEl } from '../../util/util'; import { Scroll } from '../scroll/scroll'; import { ListBasic } from './list-basic'; export interface ListProps { theme?: string[]; // t...
import L from 'leaflet' import { BaseLayers, Config, FileLayerPathGetter, getLayerFolder, getLayerImage, LayerWithName, Map, MapWithName, Maybe, Overlays, } from '.' type WebmapParameters = { webmap: L.Map config: Config map: MapWithName pathGetter?: FileLayerPathGetter } export class Webm...
<reponame>zeitlinger/gaia-engine<gh_stars>0 import { inRange, minBy, maxBy, uniq, difference, sortBy } from "lodash"; import { Grid, Hex } from "hexagrid"; import shortestPath from './shortest-path'; import {sumBy} from 'lodash'; import assert from 'assert'; type algorithms = "exhaustive" | "heuristic"; export default...
import { SpotLight } from "babylonjs/Lights/spotLight"; import { Vector3, Color3, Quaternion } from "babylonjs/Maths/math"; import { Nullable } from "babylonjs/types"; import { Light } from "babylonjs/Lights/light"; import { Node } from "babylonjs/node"; import { ShadowLight } from "babylonjs/Lights/shadowLight"; ...
<gh_stars>0 import { createState } from "@hookstate/core"; import { showDialog } from "../../../components/dialog/dialog_state"; import preloaderState from "../../../components/preloader/preloader_state"; import { get, post, uploadFile } from "../../../services/api"; import { filter, sort } from "../../../utils/globalF...
<filename>Client/index.ts import * as electron from "electron" import net = require("net") import fs = require("fs") import JsonSocket = require("json-socket") import {Frame} from "./frame" import {Inventory} from "./inventory" import {Spellbook} from "./spellbook" import {Level, LevelUpdate} from "./level" let spel...
import { Keyboard } from '../interfaces'; export enum Key { Unidentified = 0, Cancel = 3, Help = 6, Backspace = 8, Tab = 9, Clear = 12, Enter = 13, Shift = 16, Control = 17, Alt = 18, Pause = 19, CapsLock = 20, Escape = 27, Convert = 28, NonConvert = 29, Accept = 30, ModeChange = 31, ' ' = 32, Page...
import * as State from "./state"; import * as S from "@effectful/serialization"; import config from "./config"; function nop() {} const { context, defaultErrHandler, defaultFinHandler, native, closures, binds, undef, CLOSURE_META, CLOSURE_PARENT } = State; const weakMapSet = native.WeakMap.set; cons...
<filename>src/testHelpers.ts // tslint:disable no-non-null-assertion import bluebird from 'bluebird'; import cookie from 'cookie'; import { times, get } from 'lodash'; import { createAssignEnvironmentToViewerRequest } from './assignEnvironmentToViewerRequest'; import { createRouteRequestToOrigin } from './routeRequestT...
import React from 'react'; import { View, TouchableOpacity } from 'react-native'; import { IconValues } from '../icon/values'; import { normalize } from '../../styles/dimensions'; import Icon from '../icon/icon'; import stylesProvider from './styles'; import { smartConnect } from '../../core/utils/smart-connect'; impor...
import Web3 from 'web3'; import { getWeb3 } from '../utils/getWeb3'; import * as db from '../utils/database'; import * as contracts from '../utils/contracts'; const decimals = parseInt(process.env.TOKEN_DECIMALS) || 18; console.log('TOKEN_DECIMALS=', process.env.TOKEN_DECIMALS); let isActiveSyncBalances = false; /**...
<reponame>saydulk/openproject //-- copyright // OpenProject is a project management system. // Copyright (C) 2012-2015 the OpenProject Foundation (OPF) // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General License version 3. // // OpenProject is a fork of Ch...
<filename>src/main/typescript/wcardinal/ui/util/util-gesture-easing.ts /* * Copyright (C) 2019 Toshiba Corporation * SPDX-License-Identifier: Apache-2.0 */ import { DAnimation } from "../d-animation"; import { DAnimationBase } from "../d-animation-base"; import { DAnimationTimings } from "../d-animation-timings"; i...