text
stringlengths
3.08k
15.5k
/****************************************************************************** * Copyright 2021 TypeFox GmbH * This program and the accompanying materials are made available under the * terms of the MIT License, which is available in the project root. ***************************************************************...
/* eslint-disable @typescript-eslint/no-explicit-any */ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { NotebookDocument, Uri, Event } from 'vscode'; import { IExtensionApi } from '../platform/api'; import { IDisposable } from '../platform/common/t...
<reponame>linusromlandSkola/JS-Multiplayer-Game //Changeable default values let renderScale = 1; //Unchangable variables let playerX = 0; let playerY = 0; let windowWidth = 0; let windowHeight = 0; let areaW = 0; let areaH = 0; let xMult = 0; let yMult = 0; function onWindowResize() { windowWidth = window.innerWidt...
import * as React from 'react'; import { Cache, ListifyProps, MembersCache, SortDirection } from '../types'; import { applyFilters, debounce, estimateDebounceWait, filterByQueryString, paginate, sort, } from '../utils'; type State<T> = { pageNumber: number; queryString: string; activeFilters: string...
<reponame>bartick/AniFarm import { Message, MessageEmbed, User } from 'discord.js'; import { SlashCommandBuilder, SlashCommandStringOption } from '@discordjs/builders'; import { Command, Card, LocationFloor, ClientUser, CustomCommandInteraction } from './../interfaces'; import { paginate, getCard, getLocationFloor } fr...
#!/usr/bin/env node import * as inquirer from 'inquirer'; import * as fs from 'fs'; import * as path from 'path'; import * as shell from 'shelljs'; import * as template from './utils/template'; import chalk from 'chalk'; import * as yargs from 'yargs'; const CHOICES = fs.readdirSync(path.join(__dirname, 'templates'))...
import React, {memo, Suspense, useCallback, useState} from 'react'; import cache from '@ohoareau/cache'; import {connect} from 'react-redux'; import {arrayize} from '@ohoareau/array'; import {formValueSelector} from 'redux-form'; import describeContentContainer from '@ohoareau/contents'; import {getModule, getDefinitio...
import * as chokidar from 'chokidar'; import * as WebSocket from 'ws'; import * as kleur from 'kleur'; import * as path from 'path'; import * as http from 'http'; import * as fs from 'fs'; const DEFAULT_WS_PORT = 1238; const DEFAULT_SERVE_PATH = '/__autoreload.js'; export interface SharedOptions { /** * What port ...
import axios, { AxiosInstance } from 'axios'; import { js2xml, xml2js } from 'xml-js'; import { Credentials, InventoryUpdate, OccupancyRate, Package, Portal, Reservation, RoomRate } from './types'; import { clone, cloneXmlBooleans, cloneXmlStrings, dateToStr, transformToArray } from './util'; import { xmlOneCallToReser...
<filename>typescript/display-manager.ts import { ipcMain, globalShortcut, app, Tray, BrowserWindow, dialog, shell, remote, screen } from 'electron' import * as url from 'url' const osascript = require('node-osascript') import * as path from 'path' const assetsDirectory = path.join(__dirname, '../asset...
/* * Copyright (c) 2020, 2021, Oracle and/or its affiliates. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2.0, * as published by the Free Software Foundation. * * This program is also distributed with certain software (in...
<reponame>oscarlorentzon/ray-tracer import { Canvas, Point, Sphere, PhongMaterial, PointLight, Color, Camera, Renderer, Scene, Matrix4, PhongMaterialParameters, Plane, StripePattern, GradientPattern, BlendPattern, SceneObject, SolidPattern, } from '../...
<filename>web/src/containers/Main/hooks/index.ts import { useService } from 'aidbox-react/src/hooks/service'; import { getFHIRResource, saveFHIRResource } from 'aidbox-react/src/services/fhir'; import { Bundle, Mapping, Questionnaire, QuestionnaireResponse, Reference } from 'shared/src/contrib/aidbox'; import { service...
import { Gulp } from "gulp"; import glob from "glob"; import fs from "fs"; import path from "path"; import webpack from "webpack"; import mkdirp from "mkdirp"; import express from "express"; import compression from "compression"; import os from "os"; import chalk from "chalk"; let WebpackDevMiddleware = require("webpa...
<gh_stars>1-10 // tslint:disable: no-console import * as fs from "fs"; import * as ProgressBar from "progress"; import * as puppeteer from "puppeteer"; import * as readline from "readline"; (async () => { /** * Read credentials */ const rl = readline.createInterface({ input: process.stdin, output: p...
<filename>src/treeData.ts<gh_stars>1-10 /* * @Description: 树型数据处理方法集 * @Author: GM20171202 * @Date: 2018-05-10 09:41:02 * @Last Modified by: GM20171202 * @Last Modified time: 2019-04-17 14:57:53 */ import isArray from 'lodash/isArray'; import isNil from 'lodash/isNil'; /** * @description 将一维数组组装为多维数组及对应的 Map 结构...
import React, { useState, useEffect, useMemo } from 'react'; import { Typography } from '@material-ui/core'; import { DARK_GRAY, MEDIUM_GRAY } from '../../constants/colors'; import { NumberInput, DateInput } from './NumberAndDateInputs'; import Button from './Button'; import Notification from './Notification'; import ...
import cp from "child_process"; import { Readable, Writable } from "stream"; import { Observable, Subject } from "rxjs"; import { filter, first, map, share } from "rxjs/operators"; import { MessageType, Request, RequestMessage, Response, ResponseMessage, } from "@app/api"; const VARINT_FLAG = 1 << 7; class Sen...
import { AfterViewInit, Component, DebugEventListener, OnInit, } from "@angular/core"; import { Router } from "@angular/router"; import { FormGroup, FormBuilder, Validators } from "@angular/forms"; import { AppSettings } from "../../_core/settings/app.settings"; import { Settings } from "../../_core/settings/ap...
<filename>dev-app/lib/LunchVue.ts import * as request from 'request' import * as cheerio from 'cheerio' /** * It indicates that you have used some of the following library: * neis-meal 1.0.0 (https://github.com/OnLiU211/neis-meal) * * Thank you very much for your help ⸻ @Danuel (https://twitter.com/_danuel_) */ ...
import path from 'path' import fs from 'fs' import fg from 'fast-glob' import { init, parse } from 'es-module-lexer' import { assertNotNull } from './assert' import { getCircles } from './algo' export type Options = { /** * The current working directory in which to search. */ cwd: string, /** * Glob pat...
<filename>src/commands/autoindex/private/processFiles.ts /* eslint-disable unicorn/numeric-separators-style */ /* eslint-disable unicorn/number-literal-case */ import chalk from "chalk"; import { detectExportType, exclusions, createAutoindexContent } from "./index"; import { IAutoindexFile } from "./reference"; import ...
<gh_stars>10-100 import { ICanvasText } from './ICanvasText'; import { Pen } from '../penmanger/Pen'; import { IStyle, FillStyleType, HAlignMode, VAlignMode } from '../Types'; import { AlignPositionMode, AlignPositionModeString } from '../../../../utils/types/AlignPositionMode'; import { SyncFont, SyncStyle, Sy...
<gh_stars>10-100 import { code as vertexShaderCode } from './shaders/vertex.vert' import { code as fragmentShaderCode } from './shaders/fragment.frag' import { debug_time, debug_timeEnd, debug_mode, debug_exec, debug_reportClear, debug_checkShaderProgramLinkStatus, debug_checkShaderCompileStatus } from '....
<filename>src/loader/index.ts<gh_stars>10-100 "use strict"; import path from "path"; import * as webpack from "webpack"; import loaderUtils from "loader-utils"; import escapeRegExp from "escape-string-regexp"; import type { MarkoMeta, Config } from "@marko/compiler"; import getAssetCode from "./get-asset-code"; impor...
/* eslint-disable react/jsx-props-no-spreading */ import { FormInstance } from 'antd/lib/form/Form'; import * as React from 'react'; import { useQuery, QueryHookOptions } from '@apollo/react-hooks'; import { notification, Form, Input } from 'antd'; import changeCase from 'change-case'; import { DocumentNode } from 'g...
import m, { FactoryComponent } from 'mithril' import { component, getValue, renderModel, setValue, ComponentModel, ValueSource, ComponentAttrs, ValueCodec, } from '../../core' import { call, clamp, cssClass, dragUtil, getTouchInTarget, twuiClass } from '../../core/utils' import type { NumberModel } fro...
import {ErrorResponse} from 'apollo-link-error'; import {GraphQLError} from 'graphql'; import {AuthorizationError} from './errors/authorization.error'; import {isAuthorizationGraphQLError, isCriticalGraphQLError} from './errors/grahpql/graphql-error'; import {GraphQLSchemaError} from './errors/grahpql/graphql-schema-er...
import React, { useContext } from 'react' import { View, Image, Text, StyleSheet, Platform, Dimensions } from 'react-native' import { widthPercentageToDP as wp, heightPercentageToDP as hp, } from 'react-native-responsive-screen' import Colors from '../common/Colors' import Fonts from '../common/Fonts' import { RFVa...
/* * Copyright (c) 2020-2021 <NAME>, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions...
import { isArray } from 'lodash'; import React from 'react'; import { useMeasure } from 'react-use'; import styled, { css } from 'styled-components'; import { IReqoreTabsListItem } from '.'; import { ReqorePopover } from '../..'; import { TABS_SIZE_TO_PX, TSizes } from '../../constants/sizes'; import { IReqoreIntent, I...
<reponame>nimiq/vue-components<gh_stars>10-100 import { Cookie } from '@nimiq/utils'; import { Vue, Component } from 'vue-property-decorator'; type I18n$tVariables = { [key: string]: string | number } | any[]; /** * i18n mixin for vue-components that provides a similar, but reduced, api as vue-i18n. This is to avoid...
import axios from 'axios'; import { JSDOM } from 'jsdom'; import leftPad = require('left-pad'); import { first, map, tail, trim } from 'lodash'; import * as moment from 'moment'; import * as striptags from 'striptags'; import { BirthdayDate, BirthdayParameter } from './parseMonth'; const BASE_URL = 'http://www.keyakiz...
import { defineComponent } from 'vue'; import { useRouter } from 'vue-router'; import { elementIcon } from './image'; import './layout.scss'; interface GroupNode { name: string; route?: string; children?: GroupNode[]; } export const Layout = defineComponent({ setup(_, ctx) { const data: GroupNode[] = [ ...
<filename>src/AutoCouchCRDT.ts import Automerge from 'automerge'; import uuid from 'uuid'; import { registry } from './ObjectRegistry'; import { db } from './Database'; import { standardCatch } from './Utils'; /** * Base type of the internal AutoCouch type that contains the ID and type of the object */ export type A...
<filename>src/app/_shared/modules/ngx-dnd/sortable.component.ts // Copyright (C) 2016 <NAME> // This project is licensed under the terms of the MIT license. // https://github.com/akserg/ng2-dnd import { ChangeDetectorRef, ContentChildren, ViewChildren, ViewChild, asNativeElements, QueryList, OnInit, NgZone } from '@an...
import { useCallback, useEffect, useMemo } from 'react'; import { v4 as uuidv4 } from 'uuid'; import { useList } from './useList'; import { Binding, defaultBindingOptions } from '../bindings'; import { OperationType, defaultOperationLabels, defaultTypeOperationsMap, defaultNoValueOperations, mapOperationToSel...
<reponame>dogballs/battle-city import { Size } from '../Size'; import { Vector } from '../Vector'; import { Font } from './Font'; import { NullFont } from './fonts'; export enum TextAlignment { Left, Center, Right, } export interface TextOptions { alignment?: TextAlignment; letterSpacing?: number; lineSp...
<reponame>porrtal/microsoft-authentication-library-for-js /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { useCallback, useEffect, useState, useRef } from "react"; import { PopupRequest, RedirectRequest, SsoSilentRequest, InteractionType, AuthenticationRes...
<reponame>Axolotl-Token/axolotl_statechannels<gh_stars>1-10 import {expectRevert} from '@statechannels/devtools'; import {Contract, Wallet, ethers} from 'ethers'; import AssetHolderArtifact from '../../../artifacts/contracts/test/TESTAssetHolder.sol/TESTAssetHolder.json'; import NitroAdjudicatorArtifact from '../../.....
import React, { Component, ChangeEvent } from 'react'; import M from 'materialize-css'; import { IAuthenticatedUser, Timeline } from '../../store/types'; import { update, deleteEntity } from '../../store/actions/timelineActions'; export interface ITimelineCardProps { key: string; timeline: Timeline; ...
// Copyright 2015-2017 Palo Alto Networks, 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 la...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { CancellationToken, NotebookCell, NotebookCellRunState } from 'vscode'; import { createDeferred } from '../../../common/utils/async'; import { StopWatch } from '../../../common/utils/stopWatch'; impor...
<gh_stars>0 import { Project, Scene3D, PhysicsLoader, THREE, ExtendedObject3D, ExtendedMesh } from 'enable3d' import { Keyboard } from '@yandeu/keyboard' const keyboard = new Keyboard() let actions = {l: 0, r: 0, u: 0, d: 0 } let flipL // let right_pivot, axeL, flip, sphere2, pivot, pale class MainScene extends Scene3...
/** * @description 菜单配置 * @author wangfupeng */ const SINA_PATH1 = 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal' const SINA_PATH2 = 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal' // 表情菜单数据结构类型 export type EmotionsContentType = { alt: string src: string } export type EmotionsT...
<reponame>joshbalfour/foundations<gh_stars>10-100 import { currencyFormatter } from './results-helpers' import { PickedPagedResultPropertyModel_ } from '../../types' export const minNumOfBedrooms: { value: number; label: string }[] = [ { value: 0, label: 'No min' }, { value: 1, label: '1' }, { value: 2, label: '...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { BehaviorSubject, of } from 'rxjs'; import { take, map, tap, delay, switchMap } from 'rxjs/operators'; import { Place } from './place.model'; import { AuthService } from '../auth/auth.service'; import { PlaceLocation...
import { graphql } from "react-relay"; import { ConnectionHandler, Environment, RecordProxy, RecordSourceSelectorProxy, } from "relay-runtime"; import { createSubscription, requestSubscription, SubscriptionVariables, } from "coral-framework/lib/relay"; import { GQLCOMMENT_SORT, GQLCOMMENT_SORT_RL } from ...
<gh_stars>1-10 import { CheckConclusion, diff, createSummary, printSchemaFromEndpoint, } from '@graphql-inspector/github'; import {buildSchema, Source} from 'graphql'; import {readFileSync} from 'fs'; import {resolve} from 'path'; import {execSync} from 'child_process'; import * as core from '@actions/core'; i...
import * as _ from 'lodash'; import { apiVersionForModel, k8sCreate, k8sGet, k8sPatchByName, K8sResourceKind, } from '@console/internal/module/k8s'; import { CustomResourceDefinitionModel, NodeModel, SecretModel } from '@console/internal/models'; import { K8sModel } from '@console/dynamic-plugin-sdk'; import ...
import React, { FunctionComponent, useState, useEffect, useCallback, useRef } from 'react' import classNames from 'classnames' import { useLocation, useHistory } from 'react-router' import { ErrorLike } from '@sourcegraph/common' import { useTemporarySetting } from '@sourcegraph/shared/src/settings/temporary/useTempo...
import Store from '@ember-data/store'; import Component from '@ember/component'; import { action } from '@ember/object'; import { inject as service } from '@ember/service'; import { waitFor } from '@ember/test-waiters'; import { ValidationObject } from 'ember-changeset-validations'; import { validateFormat } from 'embe...
import * as React from 'react'; import { ReactChildren } from '../types'; import { clamp } from '../shared/src/utils'; import { IoIosArrowDroprightCircle, IoIosArrowDropleftCircle } from 'react-icons/io'; import styles from './Carousel.module.scss'; import cn from 'classnames'; function useHookWithRefCallback<T>(init:...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { UnionToTuple } from "@utils/types"; import { ApplicationCommand, Client, CloseEvent, Collection, DMChannel, Guild, GuildBan, GuildChannel, GuildEmoji, GuildMember, Interaction, InvalidRequestWarningData, Invite, Message, Mes...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { join, resolve } from 'path'; import { mkdirp } from 'fs-extra'; import { app, ipcMain } from 'electron'; import fixPath from 'fix-path'; import { UpdateInfo } from 'electron-updater'; import { AppUpdaterSettings, UserSettings } from '...
<reponame>vitonsky/react-elegant-ui<filename>src/hooks/behavior/useKeyboardNavigation.ts import { useEffect } from 'react'; import { findIndexLoop } from '../../lib/findIndexLoop'; import { isKeyCode, Keys } from '../../lib/keyboard'; import { useImmutableCallback } from '../useImmutableCallback'; export interface Ke...
<reponame>cruzdanilo/decentraland import { call, put, select, take, takeEvery } from 'redux-saga/effects' import { DEBUG_MESSAGES } from 'config' import { initializeEngine, setLoadingScreenVisible } from 'unity-interface/dcl' import { waitingForRenderer, UNEXPECTED_ERROR } from 'shared/loading/types' import { createL...
import sync, { getFrameData } from "framesync" import { circOut, linear, mix, mixColor, PlaybackControls, progress as calcProgress, } from "popmotion" import { animate } from "../../../animation/animate" import { ResolvedValues, VisualElement } from "../../../render/types" import { EasingFunctio...
<reponame>proofofbeauty/LONDON-monorepo import { ethers } from 'hardhat'; import { BigNumber, Signer } from 'ethers'; import { LondonBurn } from '../typechain-types/LondonBurn'; import { LondonBurnMinter } from '../typechain-types/LondonBurnMinter'; import { ERC20Mintable } from '../typechain-types/ERC20Mintable'; imp...
// eslint-disable-next-line max-classes-per-file import { hasProperty, isArray, isDefined, isObject, isString, } from '@apigames/json'; import { IRestClient } from '@apigames/rest-client'; import { LoadDateTime as LoadDateTimeHelper, LoadGeospatialPoint as LoadGeospatialPointHelper, } from '../helpers'; import { ...
import { NextPage, NextPageContext } from "next"; import Head from "next/head"; import { getOfficers, deleteOfficer } from "requests/Officer"; import { Officer, User } from 'utils/types'; import { useState } from "react"; import Router from "next/router"; import urls from "utils/urls"; import Navigation from "compone...
import React from 'react'; import { Input, Row, Col, Button, Dropdown, Menu, Form, Switch, Tooltip } from 'antd'; import { DownOutlined } from '@ant-design/icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import styles from '../../styles/fields.module.scss'; import { faAlignLeft, faExpandArrows...
import React, { useCallback, useMemo, useEffect } from 'react' import * as H from 'history' import { Subject } from 'rxjs' import { repeatWhen, withLatestFrom, filter, map, delay } from 'rxjs/operators' import { HoverMerged } from '@sourcegraph/client-api' import { createHoverifier } from '@sourcegraph/codeintellify'...
<reponame>undefinedDarkness/ewwxml import { readFileSync, existsSync, writeFileSync } from 'fs' import { performance } from 'perf_hooks' import * as builtin from './builtin.js' export function special_tag_handling(tag: string) { switch (tag.trim()) { case "var": return "defvar" default: return tag } } exp...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as fs from 'fs-extra'; import * as path from 'path'; import { DistributionManager, extractZipArchive, codeQlLauncherName } from '../distribution'; import fetch from 'node-fetch'; import { workspace } from 'vscode'; /** * This module ensures that the proper CLI is available for tests of the extension. * Ther...
import { ChangeDetectorRef, ComponentFactoryResolver, ElementRef, EventEmitter, Injector, NgZone, OnDestroy, OnInit, Renderer2, TemplateRef, ViewContainerRef, ApplicationRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { Observable } from 'rxjs'; import { Live } from '../util/ac...
import RepositoryInterface, {DeleteOptions, QueryOptions, Repository} from '../../repository'; import DataSourceRecord from '../../../../domain_objects/data_warehouse/import/data_source'; import DataSourceMapper from '../../../mappers/data_warehouse/import/data_source_mapper'; import HttpDataSourceImpl from '../../../....
import { ItemHashTag } from '@destinyitemmanager/dim-api-types'; import { destinyVersionSelector } from 'app/accounts/selectors'; import { currentProfileSelector, settingsSelector } from 'app/dim-api/selectors'; import { RootState } from 'app/store/types'; import { emptyObject, emptySet } from 'app/utils/empty'; import...
<gh_stars>0 // Theme / Design system: // Types // ___________________________________________________________________ type ThemeShape = { breakpoints: string[] mq: { [key: string]: string } initialColorModeName?: string useColorSchemeMediaQuery?: boolean useBodyStyles?: boolean useRootStyles?: boole...
<reponame>amityadav0/algorand-builder<filename>packages/algob/src/lib/account.ts import { Account as AccountSDK, Kmd, mnemonicToSecretKey, MultiSigAccount, multisigAddress } from "algosdk"; import * as fs from "fs"; import YAML from "yaml"; import CfgErrors, { ErrorPutter } from "../internal/core/config/config-errors"...
/* eslint-disable @typescript-eslint/no-empty-function */ import cn from 'classnames' import PropTypes from 'prop-types' import React, { useCallback, useImperativeHandle, useMemo, MutableRefObject, } from 'react' import ListOption, { ListOptionProps } from './ListOption' import ListOptionGroup from './ListOptio...
import { ActionFilter, FlattenedFunnelStep, FlattenedFunnelStepByBreakdown, FunnelStep, FunnelStepReference, FunnelStepWithConversionMetrics, } from '~/types' import { getReferenceStep, getSeriesColor, humanizeOrder } from 'scenes/funnels/funnelUtils' import { RenderedCell } from 'rc-table/lib/i...
<gh_stars>1-10 import * as path from "path"; import { workspace, ExtensionContext, ExtensionMode, commands, window, Uri, ViewColumn } from "vscode"; import { LanguageClient, LanguageClientOptions, ServerOptions, TransportKind } from "vscode-languageclient/node"; let client: LanguageClient; export function activate(co...
import Ajv, {JSONSchemaType, DefinedError} from "ajv"; import Schema from "./types/schema"; import Storage from './storageService'; import CID from "cids"; const store = new Storage(); import SeedService from "./seedService"; const seedService = new SeedService(); const p = { "name" : "Portfolio", "slug": "po...
import { Driver, FantasyObservable, FantasyObserver, DisposeFunction, Sources, Sinks, FantasySubscription, } from '@cycle/run' import { adapt } from '@cycle/run/lib/adapt'; import isolate from '@cycle/isolate'; import { Stream } from 'xstream'; import xs from 'xstream'; import fromEvent from 'xstream...
import { ThemedIcon, ThemedText, ThemedView } from '@components/themed' import { tailwind } from '@tailwind' import { translate } from '@translations' import React from 'react' import { LoanVaultState } from '@muirglacier/whale-api-client/dist/api/loan' import BigNumber from 'bignumber.js' import { CollateralizationR...
import ec2 = require('@aws-cdk/aws-ec2'); /** * Properties for EksOptimizedAmi */ export interface EksOptimizedAmiProps { /** * What instance type to retrieve the image for (normal or GPU-optimized) * * @default Normal */ nodeType?: NodeType; /** * The Kubernetes version to use * * @defau...
<reponame>witemple-msft/azure-sdk-for-js // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { delay } from "@azure/core-util"; import { AccessToken, GetTokenOptions } from "@azure/core-auth"; import { createHttpHeaders, PipelineRequestOptions, createPipelineRequest, RestError } f...
/* tslint:disable:no-reference */ /// <reference path="../models/interface.ts" /> /// <reference path="../models/backup.ts" /> /// <reference path="./ui.ts" /> function getVersion() { return chrome.runtime.getManifest().version; } async function syncTimeWithGoogle() { return new Promise( (resolve: (value: s...
import { fork } from 'child_process'; import * as CircularJSON from 'circular-json'; import * as debug from 'debug'; import * as Mocha from 'mocha'; import { resolve as pathResolve } from 'path'; import RunnerMain from './runner'; import TaskManager from './task-manager'; import { removeDebugArgs, subprocessParseR...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { Store } from '@ngrx/store'; import { Subject, combineLatest } from 'rxjs'; import { filter, pluck, takeUntil, distinctUntilChanged } from ...
//****************************************************************************************************** // MeterAvailability.tsx - Gbtc // // Copyright © 2020, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements....
import React, { ComponentProps, useRef } from 'react'; import FocusLock from 'react-focus-lock'; import createComponent, { Component, IFunctionProps, Merge, PropGetter, styled, } from '@semcore/core'; import { Box } from '@semcore/flex-box'; import { FadeInOut, IFadeInOutProps, ITransformProps, Transform } fr...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { ISessionContext } from '@jupyterlab/apputils'; import { Session } from '@jupyterlab/services'; import { ITranslator, nullTranslator, TranslationBundle } from '@jupyterlab/translation'; import { VDomMod...
/*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>. All rights reserved. *--------------------------------------------------------------------------------------------*/ import { Event, Emitter } from 'bg/base/common/event'; import { Disposable, IDi...
/*! * Copyright 2014 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.0 * * Unless required by appli...
<reponame>gamer-gang/gamerbot import { codeBlock } from '@discordjs/builders'; import { Embed } from '@gamerbot/util'; import axios, { AxiosRequestConfig } from 'axios'; import { Message } from 'discord.js'; import { HypixelCacheResponse } from 'hypixel-cache'; import { Player } from 'hypixel-types'; import { ChatComma...
<filename>public/app/core/services/search_srv.ts<gh_stars>0 import _ from 'lodash'; // @ts-ignore import { IQService } from 'angular'; import coreModule from 'app/core/core_module'; import impressionSrv from 'app/core/services/impression_srv'; import store from 'app/core/store'; import { contextSrv } from 'app/core/se...
import { Fab, IconButton, List, ListItem, ListItemText, ListSubheader, makeStyles, Popover, Snackbar, Tooltip, Typography, } from "@material-ui/core"; import CloseIcon from "@material-ui/icons/Close"; import MoreVertIcon from "@material-ui/icons/MoreVert"; import React, { memo, MouseEvent, useStat...
import { isServer, detectOS, getEventListenerOptions, } from './utils' type OverflowHiddenPcStyleType = 'overflow' | 'boxSizing' | 'paddingRight' type OverflowHiddenMobileStyleType = 'top' | 'width' | 'height' | 'overflow' | 'position' type Nullable<T> = T | Array<T> | null let lockedNum = 0 let initialCl...
import '../styles/common.css'; import React from 'react'; import ReactDom from 'react-dom'; import {makeStyles} from '@material-ui/core'; import logo from '../images/logo/logo-rr.png'; import backgroundImage from '../images/background/background_smb.png'; import {CurrentRun, TournamentCurrent} from '../../../nodecg/re...
/** * Store is where data is stored from the API. */ import { RecordTable, Record } from './RecordTable'; import { ResourceType } from './ResourceType'; export interface RecordTables { [key: string]: RecordTable<{}>; } export interface SubscribeEvent<T extends Record = Record> { type: 'mapping' | 'remove';...
import * as cloudwatch from '@aws-cdk/aws-cloudwatch'; import * as iam from '@aws-cdk/aws-iam'; import * as kinesis from '@aws-cdk/aws-kinesis'; import * as firehose from '@aws-cdk/aws-kinesisfirehose'; import * as lambda from '@aws-cdk/aws-lambda'; import * as s3 from '@aws-cdk/aws-s3'; import * as cdk from '@aws-cdk/...
import { performance, PerformanceObserver } from 'perf_hooks'; import { Hub, Peer } from '../src'; import Automerge from 'automerge'; import { Subject } from 'rxjs'; import { bufferTime, filter, map } from 'rxjs/operators'; class TestHub { peerlist: any; hub: any; hubDoc: any; hubMsgBufferInput: any; hubMsgB...
<filename>src/Encode.ts import { writeMidi } from "midi-file"; import type { MidiControllerEvent, MidiData, MidiEndOfTrackEvent, MidiEvent, MidiKeySignatureEvent, MidiNoteOffEvent, MidiNoteOnEvent, MidiPitchBendEvent, MidiProgramChangeEvent, MidiSetTempoEvent, MidiTextEvent, MidiTimeSignatureEvent, MidiTrackNameE...
import * as asar from 'asar'; import { createTempDir } from './temp-utils'; import * as fs from 'fs-extra'; import { Metadata, Options, PersonMetadata } from './options'; import * as path from 'path'; import spawn from './spawn-promise'; import template from 'lodash.template'; export { Options } from './options'; con...
/* eslint-disable @typescript-eslint/no-explicit-any */ import * as bitcoin from "bitcoinjs-lib"; import bs58 from "bs58"; import { padStart } from "lodash"; import { DerivationModes } from "./types"; import { Currency, ICrypto } from "./crypto/types"; import cryptoFactory from "./crypto/factory"; import { fallbackVali...
/** * This Component shows the button/icon for a user to "like" a comment * It also shows how many likes the comment currently has * The button will be highlighted a different color if the current user has already liked the comment * If the user clicks the button and the comment is currently already liked by them, ...
import { Component, ElementRef, EventEmitter, forwardRef, HostListener, Input, OnChanges, OnInit, Output, Renderer2, SimpleChanges, ViewChild } from '@angular/core'; import {DadataType, NgxDadataService} from './ngx-dadata.service'; import {Subject, timer} from 'rxjs'; import {debounce} from 'rx...