text
stringlengths
3.3k
33k
/** * Copyright (c) 2019, 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 { EventEmitter } from 'events' import fs from 'fs' import net from 'net' import path from 'path' import { Disposable, DocumentSelector, Emitter, TextDocument } from 'vscode-languageserver-protocol' import { ForkOptions, LanguageClient, LanguageClientOptions, RevealOutputChannelOn, ServerOptions, SpawnOptions, St...
<reponame>Rostov1991/amcharts5 import type { Lang } from "../.internal/Lang"; // FRENCH const lang: Lang = { "AD": "Andorre", "AE": "Émirats arabes unis", "AF": "Afghanistan", "AG": "Antigua-et-Barbuda", "AI": "Anguilla", "AL": "Albanie", "AM": "Arménie", "AO": "Angola", "AQ": "Antarctique", "AR": "Argentine...
<gh_stars>10-100 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. /// <reference path="../../typings/hashFiles.d.ts" /> /// <reference path="../../typings/request.d.ts" /> /// <reference path="../../typings/wrench.d.ts" />...
<reponame>phxgbl/appsmith<filename>app/client/src/sagas/PostEvaluationSagas.ts import { ENTITY_TYPE, Message } from "entities/AppsmithConsole"; import { DataTree } from "entities/DataTree/dataTreeFactory"; import { getEntityNameAndPropertyPath, isAction, isWidget, } from "workers/evaluationUtils"; import { Eval...
import { SourceError, Variant } from 'js-slang/dist/types'; import { AcademyState } from '../../features/academy/AcademyTypes'; import { AchievementState } from '../../features/achievement/AchievementTypes'; import { DashboardState } from '../../features/dashboard/DashboardTypes'; import { Grading } from '../../featur...
import { Client, ClientBase, Pool, PoolClient, QueryResult } from 'pg' import Config from './Config' import {Context} from './Container' import { Logger } from './util' import patch from './util/patch' export const SQL = require('sql-template-strings') export type Executor<T, U> = (client: T) => Promise<U> export c...
import BungieImage from 'app/dim-ui/BungieImage'; import { StatTotalToggle } from 'app/dim-ui/CustomStatTotal'; import ExternalLink from 'app/dim-ui/ExternalLink'; import PressTip from 'app/dim-ui/PressTip'; import { t } from 'app/i18next-t'; import { D1Item, D1Stat, DimItem, DimSocket, DimStat } from 'app/inventory/it...
<reponame>1424667164/angular<gh_stars>1-10 import { AsyncTestCompleter, beforeEach, ddescribe, xdescribe, describe, dispatchEvent, expect, iit, inject, IS_DARTIUM, beforeEachBindings, it, xit, TestComponentBuilder, By, Scope } from 'angular2/test_lib'; import {DOM} from 'angular2/src/do...
<reponame>raja1203/angular /** * @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 {ɵisMissingTranslationError, ɵmakeTemplateObject, ɵParsedTranslation, ɵtranslate} f...
<reponame>isaquerochak/tds-vscode<filename>src/compileKey/compileKey.ts import * as vscode from 'vscode'; import * as path from 'path'; import * as nls from 'vscode-nls'; import * as fs from 'fs'; import { languageClient, permissionStatusBarItem } from '../extension'; import Utils from '../utils'; let localize = nls.l...
<gh_stars>10-100 import { Injectable } from '@angular/core'; import { HttpManager } from 'central-ui-core'; import { RequestOptions, Headers } from '@angular/http'; import { EnvironmentConfig } from '../config/service.config'; const from = Math.round((new Date().getTime()-(7 * 24 * 60 * 60 * 1000))/1000); const to = M...
<reponame>jpellizzari/lua-in-js<filename>src/lib/string.ts import printj from 'printj' import { Table } from '../Table' import { LuaError } from '../LuaError' import { tostring, posrelat, coerceArgToNumber, coerceArgToString, hasOwnProperty, LuaType } from '../utils' const ROSETTA_STONE: Record<string, string> = ...
import Axios, { AxiosRequestConfig } from 'axios'; import { ENV } from '@waldur/configs/default'; import { get, getAll, getById, post, sendForm, getList, getFirst, patch, deleteById, getSelectData, parseResultCount, put, } from '@waldur/core/api'; import { SubmitCartRequest } from '@waldur/mark...
/** * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { ValueCell } from '../../../mol-util'; import { GeometryUtils } from '../geometry'; import { ParamDefinition as PD } from '../../../mol-util/param-definition'; import { Trans...
import React, { useReducer, useEffect, useContext, useState } from 'react' import { Select, Space, Tooltip, Drawer, Button, Dropdown, Menu, Checkbox, } from 'antd' import { SettingOutlined, ReloadOutlined, DownOutlined, } from '@ant-design/icons' import { ScrollablePane } from 'office-ui-fabric-re...
<reponame>SidharthBihary/graphql-engine import { RequestTransform, RequestTransformBody, RequestTransformMethod, } from '@/metadata/types'; import { getLSItem, setLSItem, LS_KEYS } from '@/utils/localStorage'; import { defaultRequestContentType, GraphiQlHeader, KeyValuePair, RequestTransformState, Reque...
import * as clc from "cli-color"; import * as ProgressBar from "progress"; import * as apiv2 from "../apiv2"; import * as firestore from "../gcp/firestore"; import { FirebaseError } from "../error"; import { logger } from "../logger"; import * as utils from "../utils"; import { firestoreOriginOrEmulator } from "../api...
<gh_stars>0 import { util } from 'chai' import type { SpyImpl } from 'tinyspy' import * as tinyspy from 'tinyspy' interface MockResultReturn<T> { type: 'return' value: T } interface MockResultIncomplete { type: 'incomplete' value: undefined } interface MockResultThrow { type: 'throw' value: any } type Moc...
import { ICritter } from '../model/ICritter'; import { ICheckedCritterList } from '../model/ICheckedCritterList'; import { convertDates, isInTimeRange, createAdjustedEndTime } from './dateHelpers'; import { hemisphere } from '../model/Hemisphere'; import { sortType } from '../model/SortType'; import { ICritterList } fr...
import fs from 'fs/promises'; import path from 'path'; import { chalk } from 'zx'; import { oraPromise } from 'ora'; import { AnyObject, FilePath, Primitive } from './compiler/types'; import { ErrorHook, ERROR_HOOK, DEFAULT_LEFT_PADDING_SIZE } from './constants'; export function info(msg: string, leftPaddingSize = DE...
import * as util from 'util'; import * as opentype from 'opentype.js'; import * as fontFinder from 'font-finder'; import * as lru from 'lru-cache'; import { Font, LigatureData, FlattenedLookupTree, LookupTree, Options } from './types'; import mergeTrees from './merge'; import walkTree from './walk'; import mer...
import * as crypto from 'crypto'; import * as path from 'path'; import * as sfs from 'fs-extra'; import { GitProcess } from 'dugite'; import { getNwoFromRepoUrl } from './github-api'; import { toIso8601 } from 'iso8601'; import { statNoException, statSyncNoException } from './promise-array'; import { rimraf, mkdirp, ...
import {Clock, pressToStart} from "./boilerplate"; import {Audio, AudioT, textNoteToNumber} from './audio'; import {NineOhGen, ThreeOhGen} from "./pattern"; import {UI} from "./ui"; import { DrumPattern, genericParameter, NineOhMachine, NoteGenerator, NumericParameter, parameter, Pattern, Progr...
import { Component, Inject, OnDestroy, OnInit } from '@angular/core'; import { AutoSubscription, AutoSubscriptions } from 'auto-subscriptions'; import { select, Store } from '@ngrx/store'; import { floationMenuClassNameForExport, imageryStatusClassNameForExport, selectActiveMapId, selectIsMinimalistViewMode, SetMi...
<reponame>TalRandi/FinalProject import { Component, OnDestroy, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { stat } from 'fs'; import { Subscription } from 'rxjs'; import { finalize } from 'rxjs/operators'; import { AuthenticationService } from 'src/app/authentication/authentication....
/* @license * Copyright 2019 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
<gh_stars>0 import { HashTable, Helpers } from "./helpers"; import { Question } from "./question"; import { JsonObject } from "./jsonobject"; import { QuestionFactory } from "./questionfactory"; import { LocalizableString } from "./localizablestring"; import { ExpressionRunner } from "./conditions"; /** * A Model for...
<filename>ui/src/tracks/thread_state/frontend.ts // Copyright (C) 2019 The Android Open Source Project // // 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/lic...
import { spawn } from 'child_process'; import { access } from 'fs'; import * as path from 'path'; import { URL } from 'url'; import { createConnection, Files, TextDocuments, TextDocument, Diagnostic, DiagnosticSeverity, ProposedFeatures } from 'vscode-languageserver'; import * as notificat...
import * as fs from 'fs-extra'; import * as path from 'path'; import { performance } from 'perf_hooks'; import { WorkspaceFolder } from 'vscode-languageserver'; import { URI } from 'vscode-uri'; import { CodeModDefinition, CodeModExports, CodeModScope } from '../codeModTypes'; import { noop } from '../utils/helpers'; ...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. import { mono_wasm_new_root, WasmRoot } from "./roots"; import { GCHandle, Int32Ptr, JSHandleDisposed, MonoArray, MonoArrayNull, MonoObject, MonoObjectNull, MonoString } from...
import * as functions from "firebase-functions"; import * as admin from "firebase-admin"; import * as express from "express"; import * as bodyParser from "body-parser"; import * as cors from "cors"; import * as dateFormat from "dateformat"; import { getUser } from "../../../get-user"; const firebase = admin.initialize...
<reponame>erikkemperman/tslint /** * @license * Copyright 2017 Palantir Technologies, 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/LICEN...
/* * 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 React, { useState } from 'react'; import { i18n } from '@kbn/i18n'; imp...
import { Component, Input, Output, EventEmitter, ViewChildren, QueryList, OnInit, OnDestroy, OnChanges, SimpleChange } from '@angular/core'; import { NgModel } from '@angular/forms'; import { Subscription } from 'rxjs'; import { IpRestrictionsService } from './ip-restrictions.service'; import { DiffUtil } from '../../u...
import { Constructor } from '@jovotech/common'; import { PartialDeep } from 'type-fest'; import { Carousel, DynamicEntities, DynamicEntityMap, isSSML, MessageValue, NormalizedOutputTemplate, OutputTemplate, OutputTemplateBase, OutputTemplatePlatforms, PlainObjectType, plainToClass, QuickReplyVal...
// Copyright 2016-2018, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
import React, { useMemo, useContext, useState, useCallback } from "react"; import { FormattedMessage, Context } from "@oursky/react-messageformat"; import { TextField, Checkbox, Dropdown, IDropdownOption, TagPicker, Label, ITag, } from "@fluentui/react"; import cn from "classnames"; import deepEqual from ...
<reponame>bayesimpact/tds-frontend import * as gfilter from 'geojson-filter' import { chain, chunk, keyBy, uniq } from 'lodash' import { LngLat, LngLatBounds } from 'mapbox-gl' import { combineLatest } from 'rxjs' import { filter, startWith } from 'rxjs/operators' import { Plugin } from 'undux' import { CONFIG } from '...
<reponame>Dynatrace/sketchmine<gh_stars>100-1000 import { ParseArrayLiteral, ParseArrayType, ParseClassDeclaration, ParseDecorator, ParseExpression, ParseGeneric, ParseIndexSignature, ParseInterfaceDeclaration, ParseIntersectionType, ParseMethod, ParseNode, ParseObjectLiteral, ParseParenthesiz...
import * as bitcoin from 'bitcoinjs-lib' import { getState } from 'redux/core' import actions from 'redux/actions' import config from './externalConfig' import constants from './constants' import api from './api' import BigNumber from 'bignumber.js' const hasAdminFee = ( config && config.opts && config.opts...
// -- 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 Public License version 3. // // OpenProject is a fork of ChiliProject, which is a...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<reponame>leptonone/lepton-js /* Copyright 2020-2021 Lepton Interaction. 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 applicabl...
<gh_stars>0 // Copyright (c) 2018-present, Cruise LLC // This source code is licensed under the Apache License, Version 2.0, // found in the LICENSE file in the root directory of this source tree. // You may not use this file except in compliance with the License. import { Time, Callback, Filelike, Constructor } from...
import { Tween, TweenName } from '../types/core/tweens' /** * @description Linear */ export const linear: Tween = (t, b, c, d) => { return (c * t) / d + b } /** * @description Sine */ export const easeInSine: Tween = (t, b, c, d) => { return -c * Math.cos((t / d) * (Math.PI / 2)) + c + b } export const easeO...
<gh_stars>10-100 export { KBPagesRendererDirective, KBPage } from "./render.component"; import { Component, Input, Output, EventEmitter, ContentChild, ContentChildren, ElementRef, QueryList } from '@angular/core'; import { KBPagesRendererDirective } from "./render.component"; import { KBNavButtonComponent } from './...
<reponame>Dzarr/talk import { execute, ExecutionResult, GraphQLSchema, parse, subscribe, } from "graphql"; import http, { IncomingMessage } from "http"; import { ConnectionContext, ExecutionParams, OperationMessage, OperationMessagePayload, SubscriptionServer, } from "subscriptions-transport-ws"; i...
/* * Copyright 2020 Spotify AB * * 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...
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import * as PropTypes from 'prop-types'; import * as classNames from 'classnames'; import * as keycode from 'keycode'; import * as warning from 'warning'; import ElementChildren from '../ElementChildren'; import { createChainedFunction } from 'onix-...
<filename>src/gen-utils.ts /** * PptxGenJS: Utility Methods */ import { EMU, REGEX_HEX_COLOR, SCHEME_COLOR_NAMES, DEF_FONT_COLOR, ONEPT } from './core-enums' import { IChartOpts, ILayout, ShapeFill, IGlowOptions, ISlideLib } from './core-interfaces' /** * Convert string percentages to number relative to slide size...
<reponame>altfoxie/vscode-gitignore import * as vscode from 'vscode'; import {Cache, CacheItem} from './cache'; import * as GitHubApi from 'github'; import * as HttpsProxyAgent from 'https-proxy-agent'; import * as fs from 'fs'; import { join as joinPath } from 'path'; import * as https from 'https'; import * as url f...
<filename>src/data.ts import string from "../data/data.string.json"; import bits from "../data/data.bits.bin"; import pagebits from "../data/data.pagebits.bin"; import name from "../data/data.name.bin"; import dnrp from "../data/data.dnrp.bin"; import gc from "../data/data.gc.bin"; import block from "../data/data.block...
<gh_stars>0 /* eslint-disable @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment */ importScripts('resource://gre/modules/osfile.jsm') import type { ITranslator } from '../../translators/lib/translator' import type { Translators } from '../.....
<filename>app/src/lib/server/handler.ts /* cypherpost.io Developed @ Stackmate India */ // ------------------ '(◣ ◢)' --------------------- import * as crypto from "crypto"; import * as fs from "fs"; import { handleError } from '../errors/e'; import { logger, r_500 } from "../logger/winston"; import { S5UID } from "../...
<gh_stars>1-10 import { Row, RowKey } from '@t/store/data'; import { Store } from '@t/store'; import { OptRow, OptAppendTreeRow } from '@t/options'; import { createViewRow, getFormattedValue } from '../store/data'; import { getRowHeight, findIndexByRowKey, findRowByRowKey } from '../query/data'; import { notify } from ...
<reponame>sermmor/twitter-link-telegram-bot import Twitter from 'twitter'; import Telegraf from 'telegraf'; import { readFile, writeFileSync } from 'fs'; import { extractMessagesFromTweets, MessageData, getLastTweetId, filterTweets, ResquestParams } from './utils'; import { extractTwitterData, TwitterData } from '....
import * as WebSocket from 'ws' import * as uuid from 'uuid/v4' import { EnrichedWebSocket, V2, CommunicationArea } from './utils' import { FlowStatus, MessageType, GenericMessage, ChatMessage, PositionMessage, ClientDisconnectedFromServerMessage, ProfileMessage, ClockSkewMessage, FlowStatusMessage } ...
import test from 'ava' import * as fs from 'fs' import * as sh from 'shelljs' import * as tmp from 'tmp' import { createNamespace } from './helpers' const mssqlns = "mssql" const testns = "mssql-app" const mssqlName = "mssqlinst" const password = "<PASSWORD>" const hostname = `${mssqlName}.${mssqlns}.svc.cluster.local...
import IConfigureSessionOptions from '@secret-agent/core-interfaces/IConfigureSessionOptions'; import ISessionMeta from '@secret-agent/core-interfaces/ISessionMeta'; import { IJsPath } from 'awaited-dom/base/AwaitedPath'; import ICreateSessionOptions from '@secret-agent/core-interfaces/ICreateSessionOptions'; import { ...
import { invalid, request, ResponseValidation, unhandled, valid } from 'shared/lib/http'; import { ClientHttpMethod, Defined, Id, IfDefined } from 'shared/lib/types'; // Types interface ActionTypes { rawResponse: unknown; validResponse: unknown; invalidResponse: unknown; } interface ActionWithBodyTypes extends...
import { Autowired, Bean, ColDef, ColGroupDef, Column, ColumnController, GridOptionsWrapper, NumberSequence, _ } from "@ag-grid-community/core"; export interface PivotColDefServiceResult { pivotColumnGroupDefs: (ColDef | ColGroupDef)[]; pivotColumnDefs: ColDef[]; } @Bean('p...
// Copyright 2019 Cognite AS import * as THREE from 'three'; import GeometryGroup from './GeometryGroup'; import { TypedArray, MeshNormalMaterial } from 'three'; import { RenderedMeshNameType } from './Types'; import { computeBoundingBox } from './GeometryUtils'; const globalMatrix = new THREE.Matrix4(); const global...
/* * a theme inspired by Muzli && unbuntu */ import { lighten, darken } from 'polished' const primaryColor = '#615c79' const bannerBg = '#2f2c3c' const contentBg = '#242029' const contentBoxBg = '#27232d' const fontColor = primaryColor const sidebarBg = '#222029' const markdownFont = '#7F8189' const descText = '#5...
import * as _ from 'lodash-es'; import { Dispatch } from 'react-redux'; import { ActionType as Action, action } from 'typesafe-actions'; import { cacheResources, getResources as getResources_, DiscoveryResources, } from '../module/k8s/get-resources'; import { k8sList, k8sWatch, k8sGet } from '../module/k8s/resou...
import React, { useState, useEffect } from "react"; import { Formik, Form, FieldArray } from "formik"; import { FormikButtons } from "./formik-helpers/FormikButtons"; import { IPurificationPlant, IApiAction, ICollectionWithSubitem, } from "../../lib/common/interfaces"; import { SpotEditorInput } from "./elements/...
import * as PIXI from 'pixi.js'; import gsap, { Power0 } from 'gsap'; import PixiPlugin from 'gsap/PixiPlugin'; import * as PIXISOUND from 'pixi-sound'; import jrvascii from './util/jrvascii'; import { browserVisibility } from './util/browserVisibility'; import initPIXI, { PixiConfig } from './pixi'; import { APP_N...
/* * Copyright 2018-present Open Networking Foundation * * 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 appli...
<reponame>darckoune/ng2-semantic-ui import { Directive, ContentChild, forwardRef, Renderer2, ElementRef, AfterContentInit, ContentChildren, QueryList, Input, HostListener, ChangeDetectorRef, OnDestroy } from "@angular/core"; import { Transition, SuiTransition, TransitionController, TransitionDirection } from "....
import styled from '@emotion/styled'; import { Dayjs } from 'dayjs'; import React, { useEffect, useState } from 'react'; import { FormProvider, useForm } from 'react-hook-form'; import { BodyShort } from '@navikt/ds-react'; import { FlexColumn } from '../../../components/Flex'; import { OverstyringTimeoutModal } from...
import React, { useState, useRef, DragEvent, ChangeEvent } from 'react'; import BaseLogin from '../../components/baselogin/base-login'; import { FormikHelpers, useFormik } from 'formik'; import * as Yup from 'yup'; import { useHistory } from 'react-router-dom'; import TextField from '../../components/textfield/text-fie...
<gh_stars>0 import { checkGrants } from '.' export type ValuesObject<Keys extends string = string> = Record<Keys, GM.Value> export type ValuesPromiseObject<Keys extends string = string> = Record< Keys, Promise<GM.Value> > /** Ensure that the values passed are all strings for use with `localStorage` */ function en...
<filename>src/client.ts import * as BIP39 from 'bip39' // https://github.com/bitcoinjs/bip39 import * as Bitcoin from 'bitcoinjs-lib' // https://github.com/bitcoinjs/bitcoinjs-lib import * as WIF from 'wif' // https://github.com/bitcoinjs/wif import * as Utils from './utils' import { getAddressTxs, getAddressUtxos, get...
<reponame>wizsolucoes/angular-starter-schematic<filename>src/starter/index.ts import { Rule, SchematicContext, Tree, url, apply, mergeWith, SchematicsException, move, chain, MergeStrategy, forEach, noop, externalSchematic, } from '@angular-devkit/schematics'; import { NodePackageInstallTask }...
<gh_stars>1-10 import { BxVec3 } from '../bxCom/bxCmMath'; import { BxCmSeparatePatch_SurfaceEdge, BxCmSeparatePatch_Surface, BxCmSeparatePatch_Object } from '../bxCom/bxCmSeparatePatch'; import { BxTNodeType } from '../bxCom/bxCmGridInfo'; /* --------------------------- // JSON example { "minMax" : [ ...
<filename>lua_car_frontend/src/app/main-screen/main-screen.component.ts import { Component, OnInit, ElementRef, ViewChild } from '@angular/core'; import { SocketService } from '../services/socket.service'; import { HttpClient } from '@angular/common/http'; import { environment } from '../../environments/environment'; i...
<filename>src/lib/src/components/step/joyride-step.component.ts import { Component, Input, AfterViewInit, ViewEncapsulation, OnInit, OnDestroy, ElementRef, ViewChild, Renderer2, Injector, TemplateRef } from '@angular/core'; import { JoyrideStep } from '../../models/joyride-st...
import Ractive from "../ractive"; import { AddCompanyDialog } from "../AddCompanyDialog"; const toDateStr = (time: number) => { var date = new Date(time); var m: any = date.getMonth() + 1; var d: any = date.getDate(); if (m < 10) { m = "0" + m; } if (d < 10) { d = "0" + d; }...
import { GenesisBlockUtils, StaticNodeUtils } from '@celo/walletkit' import BigNumber from 'bignumber.js' import DeviceInfo from 'react-native-device-info' import * as RNFS from 'react-native-fs' import RNGeth from 'react-native-geth' import config from 'src/geth/network-config' import Logger from 'src/utils/Logger' im...
<filename>webtool/frontend/src/app/tour/tour-detail/tour-detail.component.ts import {BehaviorSubject, Observable, Subject} from 'rxjs'; import {Component, OnDestroy, OnInit} from '@angular/core'; import {select, Store} from '@ngrx/store'; import {FormArray, FormControl, FormGroup} from '@angular/forms'; import {AppStat...
// Copyright 2015-2021 Nkisi 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...
/** * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
<gh_stars>1-10 import moment from 'moment' import {pluralize} from './string' export function formatTimeForChat(time: number): string | null { const m = moment(time) const hma = m.format('h:mm A') const now = moment() const today = now.clone().startOf('day') if (m.isSame(today, 'd')) { return hma } c...
import {ImageSourcePropType, View} from 'react-native'; import React, {ReactElement, useMemo, useRef, useState} from 'react'; import TinderCard, { TinderCardDirection, TinderCardRef, } from '../../packages/TinderCard'; import {ContainerDeco} from '../../storybook/decorators'; import {storiesOf} from '@storybook/re...
import * as AudioDevice from '../../../lib/media/audioDevice'; import { Client } from '../../../lib/client'; describe('AudioDevice', () => { let inputDevice; let outputDevice; let mediaStream; let context; beforeAll(() => { inputDevice = { deviceId: 'default', kind: 'audioinput', label...
import { ITraktRollerWebsite, IWebsiteData } from "../TraktRoller"; import * as playerjs from "player.js"; const PlayerMetadataRegex = /vilos\.config\.media = (.*);$/m; const EpisodeRegex = /Episode ([\d\.]+)/; const SeasonRegex = /Season (\d+)/; const MovieRegexes = [ /Movie$/i, /Movie (Dub)$/i, /Movie (Sub)...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { RouterHistory, NavigationCallback, NavigationType, NavigationDirection, HistoryState, ValueContainer, normalizeBase, createHref, HistoryLocation, } from './common' import { computeScrollPosition, _ScrollPositionNormalized, } from '../scrollBehavior' import { warn } from '../warning' impor...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may no...
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react'; import React, { useState, useEffect } from 'react'; import DeckGL from '@deck.gl/react'; import { GeoJsonLayer, IconLayer } from '@deck.gl/layers'; // GeoJsonLayer import { StaticMap, NavigationControl, _MapContext as MapContext, Mark...
import type { AxiosRequestConfig, AxiosResponse, Method } from 'axios' import axios from 'axios' import { HTTPError, ObjectAlreadyExists, ObjectNotFound, ObjectUnprocessable, RequestMalformed, RequestUnauthorized, ServerError } from './Errors' import TypesenseError from './Errors/TypesenseError'...
/* eslint-disable no-unused-expressions */ import React, { Component, ElementType, createRef, MutableRefObject, FunctionComponent, ImgHTMLAttributes, RefObject, CSSProperties, } from "react" import { getWrapperProps, hasNativeLazyLoadSupport, storeImageloaded, hasImageLoaded, gatsbyImageIsInst...
<filename>packages/core/src/mapping/MappingManager.ts import { Container, Service } from "typedi"; import { EntityMetadata, ObjectType } from "typeorm"; import { ObjectLiteral, get, pluck } from "@entity-routes/shared"; import { JoinAndSelectExposedPropsOptions, RelationManager } from "../database"; import { GROUPS_M...
<gh_stars>1-10 /** * Copyright 2021 Expedia, 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...
<gh_stars>0 import { call, put, select, take, takeEvery, takeLatest } from 'redux-saga/effects' import { createIdentity } from 'eth-crypto' import { Account } from 'web3x/account' import { Authenticator } from 'dcl-crypto' import { DEBUG_KERNEL_LOG, ETHEREUM_NETWORK, PREVIEW } from 'config' import { createDummyLogger...
<reponame>IBM/diem /* eslint-disable @typescript-eslint/indent */ import { setTimeout } from 'timers/promises'; import * as FS from 'fs'; import * as https from 'https'; import * as YAML from 'js-yaml'; import Axios, { AxiosRequestConfig, Method as HttpMethod } from 'axios'; import { serializeError } from 'serialize-er...
import { HardwareItem, ReservedHardwareItem, User } from '../../db/entity'; import { Repository } from 'typeorm'; import { ApiError, HttpResponseCode } from '../../util/errorHandling'; import { LoggerLevels, QueryLogger } from '../../util/logging'; import { HardwareObject } from './hardwareObjectOptions'; import { Rese...
import { convertPublicKeyToX25519, convertSecretKeyToX25519 } from '@stablelib/ed25519' import { computePublicKey } from '@ethersproject/signing-key' import { computeAddress } from '@ethersproject/transactions' import { DIDDocumentSection, IAgentContext, IIdentifier, IKey, IResolver } from '@veramo/core' import { DIDDo...
import React, { MouseEvent, KeyboardEvent, useCallback, useMemo } from 'react' import classNames from 'classnames' import * as H from 'history' import { Observable } from 'rxjs' import { map } from 'rxjs/operators' import { HoverMerged } from '@sourcegraph/client-api' import { Hoverifier } from '@sourcegraph/codeinte...