text
stringlengths
3.08k
15.5k
import { Subscription } from "rxjs" import { Input, Component, Output, EventEmitter, TemplateRef, ViewChild, ElementRef, QueryList, ContentChildren } from "@angular/core" import { AgmInfoWindow, LatLngBounds, LatLng, MarkerManager, GoogleMapsAPIWrapper, AgmMarker } from "@agm/core" import { GoogleMap } fro...
import jsPDF from 'jspdf'; import { ApplicationStatus, LeaseStatus } from '../../@types/__generated__/globalTypes'; import { UNMARKED_WINTER_STORAGE_NOTICES } from './__generated__/UNMARKED_WINTER_STORAGE_NOTICES'; import { getChoiceFromWinterStorageAreaChoices } from '../unmarkedWsNoticeView/utils'; import { Customer...
<reponame>Creatoon/deploy<gh_stars>1-10 import { promises as fs } from 'fs'; import { LanguageId, MetaCallJSON } from 'metacall-protocol/deployment'; import { findRunners, generateJsonsFromFiles, generatePackage, PackageError } from 'metacall-protocol/package'; import { Plans } from 'metacall-protocol/plan'; import...
<reponame>breeffy/react-native-calendar<gh_stars>100-1000 import type { StyleProp, TextStyle } from 'react-native'; /** Converts array to union of array values */ /** type Foo = ValuesOf<["key1", "key2"]> */ /** becomes type Foo = "key1" | "key2" */ export type ValuesOf<T extends any[]> = T[number]; export type...
import L from '../../common/logger'; import APIProduct = Components.Schemas.APIProduct; import AppListitem = Components.Schemas.AppListItem; import CommonEntityNameList = Components.Schemas.CommonEntityNameList; import CommonEntityNames = Components.Schemas.CommonEntityNames; import { PersistenceService } from './persi...
<filename>src/app/pages/article/components/tag/tag.component.ts /** * @file 标签列表页面组件 * @desc app/page/article/component/tag * @author Surmon <https://github.com/surmon-china> */ import * as lodash from 'lodash'; import * as API_PATH from '@app/constants/api'; import { ModalDirective } from 'ngx-bootstrap/modal'; i...
/* * @license NewConsensus Platform v0.1 * (c) 2020-2021 KaoGeek. http://kaogeek.dev * License: MIT. https://opensource.org/licenses/MIT * Author: chalucks <<EMAIL>>, shiorin <<EMAIL>> */ import { Component, OnInit } from '@angular/core'; import { Router, NavigationEnd } from '@angular/router'; import { Proposal...
import * as PropTypes from 'prop-types'; import * as React from 'react'; import { convertToMeridiem } from '../_helpers/time-utils'; import Calendar from '../DatePicker/components/Calendar'; import YearSelection from '../DatePicker/components/YearSelection'; import TimePickerView from '../TimePicker/components/TimePic...
import Machine from "./models/machine.ts"; import { ArangoMachine } from "./models/mod.ts"; import { Document } from "https://deno.land/x/darango/mod.ts"; import { posix as path } from "https://deno.land/std@0.95.0/path/mod.ts"; export interface MockStat { name: string; isFile: boolean; isDirectory: boolean; p...
/* * 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 ...
<reponame>Derpspace1/restream-layouts import clone from 'clone'; import {ReplicantBrowser} from 'nodecg/types/browser'; // eslint-disable-line import Vue from 'vue'; import Vuex from 'vuex'; import { AllCamNames, AllGameLayouts, AllInterviews, BestOfX, Bingoboard, BingoboardMeta, BingoboardM...
import { AttributeType, gl, IAnimateOption, IEncodeFeature, IModel, } from '@antv/l7-core'; import { rgb2arr } from '@antv/l7-utils'; import { isBoolean, isNumber } from 'lodash'; import BaseModel, { styleOffset, styleSingle } from '../../core/BaseModel'; import { PointExtrudeTriangulation } from '../../core/...
import * as React from 'react'; import { KeyEntry, LensProps, Lens } from '../framework/contracts'; import { Link } from 'react-router-dom'; import { ChildrenProp, ClassProp } from '../contracts/component'; import { TrackProgress } from '../contracts/challenge'; import { SmallDangerButton, SmallPrimaryButton } f...
import Grid from '@material-ui/core/Grid'; import React, {useState} from 'react'; import Camera from 'react-html5-camera-photo'; import Button from '@material-ui/core/Button'; import 'react-html5-camera-photo/build/css/index.css'; import ImageUpload from '../components/ImageUpload'; import Typography from '@material-ui...
'use strict'; import {State, store} from '../store'; import {MarkRecord} from '../store/factory/Mark'; import {TextRecord} from '../store/factory/marks/Text'; import {InteractionRecord} from '../store/factory/Interaction'; import {WidgetRecord} from '../store/factory/Widget'; const Bounds = require('vega-scenegraph')....
<reponame>CEO-NextMindCoin/trusteeWallet /** * @version 0.20 * https://gist.github.com/WietseWind/19df307c3c68748543971242284ade4d * * https://xrpl.org/rippleapi-reference.html#preparepayment * https://xrpl.org/rippleapi-reference.html#sign * https://xrpl.org/rippleapi-reference.html#submit */ import BlocksoftCr...
import * as path from 'path'; import * as dgram from 'dgram'; import {getTime} from './util'; import {AdminGame} from './game/AdminGame'; import {Map} from './game/Map'; import {Game} from './game/Game'; import {Bot} from './Bot'; import {createLoggerFor} from './Logger'; import {CRC32} from './CRC32'; import {BNetColl...
import {createDateFromSlashFormat, safeMatch, stripCommasFromNumberString} from 'augment-vir'; import {dateWithinRange} from '../../augments/date'; import {ParsedOutput, ParsedTransaction} from '../parsed-output'; import {CombineWithBaseParserOptions} from '../parser-options'; import {createStatementParser} from '../st...
import { EventEmitter2 } from 'eventemitter2' import { emptyGraphSpec } from '../spec/emptySpec' import { ComponentSpec, GraphComponentSpec, GraphSpec, GraphSpecs, PinsSpec, Spec, Specs, } from '../types' import { Dict } from '../types/Dict' import { Unlisten } from '../Unlisten' import { uuidNotIn } from...
import { isBlank, isDigit, isNotBlank, StringBuffer } from '../../utils/text'; /* * This implementation is ported from JIRA with minimal modifications * It uses a mutable "StringBuffer" to parse links. It would be ideal to * move this to operating on immutable strings instead if possible * * TODO: CS-596 Replace...
import React, { useLayoutEffect, useCallback, ReactNode, createContext, useContext, useMemo } from 'react' import { EventEmitter } from 'events' import StrictEventEmitter from 'strict-event-emitter-types' import { useUpdate } from 'react-use' import { LanguageType } from 'nhitomi-api' import stringify from 'json-stable...
<reponame>marciocadev/iam-policy-generator import {writeFileSync} from 'fs'; import {resolve} from 'path'; import winston, {Logger} from 'winston'; import foreach = require('lodash.foreach'); import camelCase = require('lodash.camelcase'); import toUpper = require('lodash.toupper'); import snakeCase = require('lodash.s...
import React, { useEffect, createRef } from 'react' import { css } from '@emotion/core' import * as THREE from 'three' import TWEEN from '@tweenjs/tween.js' import Stats from 'three/examples/jsm/libs/stats.module.js' import { GUI } from 'three/examples/jsm/libs/dat.gui.module.js' import { OrbitControls } from 'three/ex...
import { L } from "./Localization"; import LibDataBroker from "@wowts/lib_data_broker-1.1"; import LibDBIcon from "@wowts/lib_d_b_icon-1.0"; import { OvaleDebug } from "./Debug"; import { OvaleOptions } from "./Options"; import { Ovale } from "./Ovale"; import { OvaleScripts, DEFAULT_NAME } from "./Scripts"; import { O...
<reponame>EricRabil/racecord import { Store } from "../types/structures/store"; import { StoreManager } from "../util/StoreManager"; import { ActionTypes } from "../types/structures/action"; import { ChannelRecord } from "../records/ChannelRecord"; import { ChannelCreatePayload } from "../util/gateway/GatewayEvents"; i...
<filename>src/sqs-client.ts import { SQS } from 'aws-sdk' import * as uuid from 'uuid' import { Consumer } from 'sqs-consumer' import { DefaultTaskContext } from './context' import { createTaskConsumer } from './task-consumer' import { BatchSubmitTaskResponseEntry, BatchSubmitTaskError, BatchSubmitTaskStatus, G...
import e from "express"; import * as dbConnect from "./models/db-connection"; import { config } from "./config"; import multer from "multer"; import cors from "cors"; //import passport from "passport" //var GoogleStrategy = require('passport-google-oauth20').Strategy; import * as breeder from "./models/mocker-popula...
<gh_stars>1-10 import { Attendance, AppUser, AppUserRole, Event, EventType } from '@Entities'; import { MultipleAttendanceQuery, AttendanceRequest, GetAttendanceQuery } from '@Payloads'; import { AppUserService, AppUserServiceImpl } from './AppUserService'; import { getRepository, FindManyOptions, Not, IsNull } from '...
<reponame>aazaff/cosmos-visualizer<filename>frontend-shared/src/visualizer-app/knowledge-base/search-page.ts import h from "@macrostrat/hyper"; import { InfiniteScrollView, APIResultProps, useAPIView, useAPIResult, } from "@macrostrat/ui-components"; import { Spinner, Intent } from "@blueprintjs/core"; import {...
<reponame>LukeG294/BrainlyTools_Extension import CreateElement from "@components/CreateElement"; import notification from "@components/notification2"; import HideElement from "@root/helpers/HideElement"; import InsertBefore from "@root/helpers/InsertBefore"; import readFileAsync from "@root/helpers/readFileAsync"; impo...
import Button from "@material-ui/core/Button"; import DialogContentText from "@material-ui/core/DialogContentText"; import React from "react"; import ActionDialog from "@saleor/components/ActionDialog"; import { configurationMenuUrl } from "@saleor/configuration"; import useBulkActions from "@saleor/hooks/useBulkActio...
<gh_stars>1-10 // interval is in seconds (can be decimal) export class Timer { constructor(intervalInMS, func, maxCallCount = -1) { //Assert(IsNumber(intervalInMS), "Interval must be a number."); this.intervalInMS = intervalInMS; this.func = func; this.maxCallCount = maxCallCount; /*if (TimerContext.default_...
/** * @module node-opcua-address-space.AlarmsAndConditions */ import { assert } from "node-opcua-assert"; import { NodeId } from "node-opcua-nodeid"; import { StatusCodes } from "node-opcua-status-code"; import { UAEventType } from "../../source"; import { NamespacePrivate } from "../namespace_private"; import { _in...
/* * 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, { useCallback, useEffect, memo, useMemo } from 'react'; import ...
import * as os from "os"; import * as crypto from "crypto" import fetch from "node-fetch" import WebSocket from "ws"; import {Logger} from "homebridge"; import Timeout = NodeJS.Timeout; interface LookUpResult { urlREST: string; urlWebSocket: string; } export class HmIPConnector { private readonly accessP...
<reponame>domschmidt/koku<gh_stars>1-10 import {AfterViewInit, Component, ElementRef, Inject, ViewChild} from '@angular/core'; import {MAT_DIALOG_DATA, MatDialog, MatDialogRef} from "@angular/material/dialog"; import {ActivityService} from "../activity.service"; import {FormControl, NgForm, Validators} from "@angular/f...
import {Component, EventEmitter, Inject, ViewChild, ViewContainerRef} from "@angular/core"; import {MAT_DIALOG_DATA, MatDialog, MatDialogRef} from "@angular/material"; import {ChatComponent} from "../UiComponents/Chat/chat.component"; import {Chat} from "../Data/Chat"; import {AppUser} from "../Data/AppUser"; import {C...
/* This example requires Tailwind CSS v2.0+ */ const posts = [ { title: "Boost your conversion rate", href: "#", category: { name: "Article", href: "#" }, description: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Architecto accusantium praesentium eius, ut at...
import { deflate, inflate, inflateSync, deflateSync, deflateRaw, inflateRaw, inflateRawSync, deflateRawSync, gunzip, gzip, gunzipSync, gzipSync, unzip, unzipSync, constants, createBrotliCompress, BrotliOptions, createBrotliDecompress, BrotliCom...
import React from "react"; import { Button, Col, Container, Row } from "react-bootstrap"; import hbtn1 from "../assets/buttons/hbtn1.png"; import hbtn2 from "../assets/buttons/hbtn2.png"; import hbtn3 from "../assets/buttons/hbtn3.png"; import solana from "../assets/buttons/solana.jpg"; import icon from "../asset...
// Copyright 2018, <NAME>. // // 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 // without limitation the rights to use, copy, modify, merge, publish, // ...
<gh_stars>100-1000 import Augur from "augur.js"; import * as Knex from "knex"; import * as path from "path"; import { EventEmitter } from "events"; import { format } from "util"; import { runServer, RunServerResult, shutdownServers } from "./server/run-server"; import { bulkSyncAugurNodeWithBlockchain } from "./blockch...
import { h, Component } from 'preact'; import { connect } from './hoc'; import { DispatchProps } from '../dispatch/create'; import { cls, convertTableToData, isSupportWindowClipboardData, setClipboardSelection, WindowWithClipboard, } from '../helper/dom'; import { KeyboardEventCommandType, KeyboardEventType, ...
<gh_stars>0 import fs from 'fs'; import path from 'path'; import parseCliArgs, {OptionDefinition} from 'command-line-args'; import {watch} from 'chokidar'; import {GraphQLSchema} from 'graphql'; import {buildGraphqlSchema, defineServerTypes, defineClientTypes} from '.'; import debounce from './debounce'; const optio...
import { useEffect, useState } from 'react'; import { FiCalendar, FiUser, FiClock } from 'react-icons/fi'; import { GetStaticPaths, GetStaticProps } from 'next'; import { useRouter } from 'next/router'; import Link from 'next/link'; import { format, parseISO } from 'date-fns'; import { ptBR } from 'date-fns/locale'; ...
import { AppBar, Box, Button, Dialog, Fab, IconButton, Toolbar, Typography } from '@material-ui/core'; import { createStyles, makeStyles, Theme } from '@material-ui/core/styles'; import CloseIcon from '@material-ui/icons/Close'; import CheckCircleOutlineIcon from '@material-ui/icons/CheckCircleOutline'; import CheckCir...
// 存储全局变量 import { observable, action, computed } from 'mobx'; import { en_US, zh_CN } from '@/language'; import * as Wallet from '@/utils/wallet'; import * as Api from './api/common.api' import { IAccountBalanceStore, ICommonStore } from './interface/common.interface'; import hashConfig from '@/config/hash.config'; im...
<gh_stars>1-10 import * as React from 'react' export type StatusValue = | 'rejected_file_type' | 'rejected_max_files' | 'preparing' | 'error_file_size' | 'error_validation' | 'ready' | 'started' | 'getting_upload_params' | 'error_upload_params' | 'uploading' | 'exception_upload' | 'aborted' |...
import React from 'react'; import { Typography } from '@material-ui/core'; import FileManager, { IFileData, IRemoteFileData, TOnError, TGetUploadParams, } from '../../../src/lib'; import 'react-file-manager-css'; // It's necessary to import overridden stylesheet after the main stylesheet import '../o...
import { Dictionary, flattenDeep, get, isArray, isEqual, isFunction, isInteger, isNil, isNumber, isString, isUndefined, mapKeys, mapValues, some } from 'lodash'; import { IEntityAttributes } from '@diaspora/dev-typings/entity'; import { QueryLanguage } from '@diaspora/dev-typings/queryLanguage'; import { AAdapter } f...
<filename>src/api/bot/interfaces/line.ts import * as EventEmitter from 'events'; import * as express from 'express'; import * as request from 'request'; import * as crypto from 'crypto'; import User from '../../models/user'; import config from '../../../conf'; import BotCore from '../core'; import _redis from '../../.....
<filename>src/reducers/utils.ts import { RequestType, RestApiReducerType } from "../models/ReducerStorage"; import { HttpError, filterNulls } from "../.."; import { StringOrNumberKeys } from "../models/Schema"; const INIT_REQUEST: RequestType<any> = { didInvalidate: true, error: null, isFetching: false, ...
import { computed, defineComponent, ref, watch } from "vue" import Select from "@/components/forms/Select" import { PaneBasicLayout } from "@/layouts/layouts/SplitPane" import { AnnotationEditor, DescriptionEditor } from "@/layouts/editors" import { IdResponse } from "@/functions/adapter-http/impl/generic" import { Sim...
import * as omd from "@hpcc-js/observable-md"; import { Observable, OJSRuntimeError } from "@hpcc-js/observable-md"; import { Class, HTMLWidget, SVGWidget, Widget } from "@hpcc-js/common"; import { expect } from "chai"; import { classDef, renderWide } from "../../test-data/src/index"; const text = `\ \`\`\` import {ch...
<filename>functions/src/snapshot.ts import * as functions from "firebase-functions"; import { database } from "./database"; import * as github from "./github"; import * as util from "./util"; import { snapshot } from "./types"; import * as config from "./config"; const gh_client = new github.GithubClient( config.get...
import { UserEntitiesV1 } from './entities.v1.types'; export interface UserV1 { id_str: string; id: number; name: string; screen_name: string; location: string; derived?: any; url: string | null; description: string | null; protected: boolean; verified: boolean; followers_cou...
<filename>src/main.ts import * as core from '@actions/core' import {exec} from '@actions/exec' import {default as axios} from 'axios' import {Toolkit} from 'actions-toolkit' import * as github from '@actions/github' import * as octokitRest from '@octokit/rest' import {createAnnotatedTag, getDefaultBranch} from './git-h...
<reponame>typoerr/event-delegation import ava, { TestInterface } from 'ava' import { DOMWindow, JSDOM } from 'jsdom' import * as sinon from 'sinon' import { closest, proxy, fire, EventDelegator } from '../src/event-delegator' interface TestContext { dom: JSDOM window: DOMWindow doc: Document a: HTMLElement b...
/* Objective: Implement permission set sync Trigger source: Permission set sync notification which in turn is triggered by permission set topic handler when it determines that there is a permission set being created/updated that has not yet been provisione...
<filename>src/app/pages/admin/admin-config/admin-config.service.ts import { catchError, first, map, shareReplay, switchMap, tap } from 'rxjs/operators'; import { CoreService } from '../../../core/core.service'; import { AngularFireAuth } from '@angular/fire/auth'; import { AngularFirestore } from '@angular/fire/firest...
<reponame>Jaza/react-tinacms-s3<gh_stars>1-10 /** Copyright 2021 Forestry.io Holdings, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless r...
<gh_stars>0 import { WORDS } from '../constants/wordlist'; import { VALID_GUESSES } from '../constants/validGuesses'; import { WRONG_SPOT_MESSAGE, NOT_CONTAINED_MESSAGE, } from '../constants/strings'; import { getGuessStatuses } from './statuses'; import { default as GraphemeSplitter } from 'grapheme-splitter'; imp...
import { ChannelLogsQueryOptions, Client, Collection, DMChannel, Emoji, Message, Snowflake, TextChannel, } from 'discord.js' import BidiMultiMap from './bidimultimap' import {FlagsAndArgs} from './command' import {log, ClientError} from './error' import { escapeMarkdownChars, formatDate, pluralize...
import { sync as mkdirp } from 'mkdirp'; import { writeFile } from 'fs'; import { promisify } from 'util'; import { Hero, Berry, Champion, SpSkill, Boss, Bread, Sigil, Goddess, Faction, Fish, FishingGear, TranslationIndexSection, TranslationIndices, TranslationIndex, GenericConstructor, Serialize, Translations, Int...
import { PixiComponent, useApp } from '@inlet/react-pixi' import * as R from 'colay/ramda' import { Viewport as ViewportNative } from 'pixi-viewport' import * as PIXI from 'pixi.js' // import Cull from 'pixi-cull' import React from 'react' import { wrapComponent, useForwardRef } from 'colay-ui' import { getBoundingBox,...
<filename>ts-src/core/mixin/animation.ts import Util = require('../../util/index'); const ReservedProps = { delay: 'delay', repeat: 'repeat', rotate: 'rotate' }; const colorRalaredProps = { fill: 'fill', stroke: 'stroke', fillStyle: 'fillStyle', strokeStyle: 'strokeStyle' }; function getFromAttrs(toAttrs, shape) { ...
<gh_stars>1-10 /* * Copyright (c) 2020 <NAME> * * 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 without limitation the rights * to use, copy, modify, merg...
import React, { useEffect, useState } from 'react'; import styled, { CSSProp } from 'styled-components'; import { Button, IdentityBadge, IconDown, LinkBase, } from '@aragon/ui'; import Web3 from 'web3'; // import { connect } from '../../utils/web3'; import SignOutButtonWrapper from '../common/SignOutButtonWrapper'; ...
<reponame>pillimoj/ore-ui import { ReactElement } from 'react' import * as testingLibrary from '@testing-library/dom' import { setupAct } from './setupAct' import { Matcher, MatcherOptions, waitForOptions, SelectorMatcherOptions, ByRoleMatcher, ByRoleOptions, FireFunction, FireObject, } from '@testing-l...
<reponame>naveedkhan8067/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *----------------------------...
<reponame>dmattia/aws-sdk-client-mock /* eslint-disable no-console */ /* * Checks if all AWS SDK v3 clients can be mocked properly based on their types. */ import child_process from 'child_process'; import * as fs from 'fs'; import tsd from 'tsd'; import packageJson from '../package.json'; const dir = './compatibi...
<filename>mapnik/app.ts /* * Copyright 2019-2020 <NAME> * * 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>0x706b/principia.ts import type { ExecutionStrategy } from '../../ExecutionStrategy' import type { Stream } from '../core' import * as C from '../../collection/immutable/Conc' import * as E from '../../Either' import { flow, pipe } from '../../function' import * as IO from '../../IO' import * as Ca from '../...
import * as React from 'react'; import Button from 'react-bootstrap/Button'; import { getPaymentToken, PaymentFormDetails, PaymentData } from 'app/services/payments'; interface PaymentFormProps { submitted: (data: PaymentData) => void; } interface PaymentFormState { cardUrl: string; token?: string; c...
import React, { useCallback, useEffect, useRef, useState } from 'react' import { allPass } from 'ramda' import { makeStyles } from '@material-ui/styles' import { pmkCliOverviewLink } from 'k8s/links' import { defaultEtcBackupPath } from 'app/constants' import { capitalizeString, castBoolToStr } from 'utils/misc' impo...
import * as debug from 'debug'; import { Handler } from 'express'; import { IAuthenticatorConstructor } from '../plugins'; export enum HttpMethod {'connect', 'delete', 'get', 'head', 'post', 'put', 'patch', 'trace'} export type HttpMethods = 'connect' | 'delete' | 'get' | 'head' | 'post' | 'put' | 'patch' | 'trace' |...
/* * @Author: <NAME> * @Date: 2022-01-26 14:10:10 * @Last Modified by: <NAME> * @Last Modified time: 2022-03-22 14:23:36 */ import * as semver from 'semver'; import * as chalk from 'chalk'; import request from '@request'; import { getAvailableVersions } from '@@install/utils/resolve-deps'; import env from '@en...
<gh_stars>1-10 import _ from "lodash"; import Vue from "vue"; import moment from "moment"; import { ActionContext, Module } from "vuex"; import { debug } from "@/lib"; import { Station, FirmwareInfo } from "../types"; import { FirmwareTableRow } from "../row-types"; import { ActionTypes, UpgradeStationFirmwareAction } ...
<reponame>wasi-master/typesplainer-vscode<filename>src/extension.ts // The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; const util = require('util'); const exec = util.promisify(require('child_proc...
<gh_stars>0 import {Component, HostListener, OnDestroy, OnInit, ViewChild} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {ToastService} from 'ng-bootstrap-ext'; import {EMPTY, of, Subscription} from 'rxjs'; import {debounceTime, distinctUntilChanged, filter, map, share, switchMap, tap} fr...
/** * * Copyright (c) 2014 All Rights Reserved by the SDL Group. * * 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 * ...
<reponame>yiqu/SquadFIFA import { Component, OnInit, Input, Output, EventEmitter, OnDestroy } from '@angular/core'; import { IGame, GoalDetail, IGameController, Game } from 'src/app/shared/model/season.model'; import * as moment from 'moment'; import { FormBuilder, FormGroup, FormArray, Validators, FormControl } from '...
import cx from "classnames"; import { nanoid } from "nanoid"; import { ChangeEvent, forwardRef, InputHTMLAttributes, ReactNode, useCallback, useEffect, useLayoutEffect, useRef, useState, } from "react"; import { Control, useWatch } from "react-hook-form"; import { debounce } from "../../utils/lodash/d...
<reponame>StevenJNPearce/monorepo<filename>packages/types/src/node.ts import { BigNumber } from "ethers/utils"; import { AppABIEncodings, AppInstanceInfo, BlockchainAsset } from "./data-types"; import { AppInstanceID, SolidityABIEncoderV2Type } from "./simple-types"; export interface INodeProvider { onMessage...
<reponame>lmxyjy/typehole import { tsquery } from "@phenomnomnominal/tsquery"; import f from "fastify"; import * as ts from "typescript"; import * as vscode from "vscode"; import { getConfiguration } from "./config"; import { getEditorRange, getProjectRoot } from "./editor/utils"; import { error, log } from "./logger...
<reponame>jitsucom/jitsu-sdk import { ProjectTemplate } from "../../lib/template"; import { jitsuCliVersion } from "../../lib/version"; export type TemplateVars = { license?: "MIT" | "Other"; packageName: string; type: "destination" | "source" | "transform"; jitsuVersion?: string; }; export const packageJsonT...
/* eslint-disable @typescript-eslint/no-namespace */ import type { createPostLoader } from "@post/post.loader"; import type { createFileLoader } from "@file/file.loader"; import type { createBoardLoader } from "@board/board.loader"; import { SQSPluginConfig } from "@file/plugins/sqs.plugin"; export namespace API { ...
import { TransferProgressEvent } from '@azure/core-http'; import { BlockBlobClient } from '@azure/storage-blob'; import { findWithAttr, removeFirstOccurenceCharacter } from 'components/common/helpers/datasetHelpers'; const { BlobServiceClient } = require('@azure/storage-blob'); /* export const uploadFile2 = async ( ...
<reponame>fangwd/yareq import { resolve as resolveUrl, URL } from 'url'; import { request as httpRequest, RequestOptions, IncomingMessage } from 'http'; import { request as httpsRequest } from 'https'; import { Response } from './response'; import { parseUrl, pickAssign, setHeader, setProxy, inflate } from './utils'; ...
<reponame>amccool/core-SignalR<filename>client-ts/Microsoft.AspNetCore.SignalR.Client.TS/HubConnection.ts // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. import { ConnectionClosed } from "./Common" im...
<filename>src/app/transcriber/alveo-transcriber/alveo-transcriber.component.ts import { Component, HostListener, ViewChild, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { MatDialog } from '@angular/material'; import { DialogComponent } from '../dialog/dialog.component'; import { Pl...
// React Imports import React, { FC, Ref, useRef } from "react"; import { Link } from "react-router-dom"; import { useForm } from "react-hook-form"; import { ProviderContext } from "notistack"; import Badge from "../../Badge"; import { useSearchParams } from "../../../Hooks"; import InputField from "./InputField"; // ...
import { FsScoringClass } from '@classes/sdob-scoring/fs-scoring.class'; import { config } from '@lib/config'; import { first, insert, query } from '@lib/db'; import { PoolConnection, ResultSetHeader, RowDataPacket } from 'mysql2'; export const insertEventScorecard = (videoId: number, userId: number, ...
/** * Copyright 2016 Palantir Technologies, Inc. All rights reserved. * Licensed under the Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0 */ import { Grid, IColumnIndices } from "../common/grid"; import { Rect, Utils } from "../common/index"; import { ICoordinateData } from "../interaction...
import { ClassDeclaration, InterfaceDeclarationStructure, MethodSignatureStructure, ObjectLiteralExpression, PropertySignatureStructure, Scope, TypeGuards, TypeParameterDeclarationStructure, ts } from 'ts-morph'; // import * as ts from 'typescript'; import { findAscendant, getKindName } from 'typescript-ast-util'; impo...
import {Browser, Protocol, Page, HTTPResponse} from 'puppeteer-core'; import RecaptchaPlugin, { PuppeteerExtraPluginRecaptcha, } from 'puppeteer-extra-plugin-recaptcha'; import * as config from '../../config.json'; import {error, log} from '../logger'; import {getPage} from '../puppeteer'; export class ReCAPTCHASer...
/** * * @license * Copyright (C) 2016 <NAME> * * 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...
<filename>src/core.ts<gh_stars>0 import * as uuid from 'uuid'; export interface Route { path: string; component: any; props?: any; children?: Route[]; } export interface RouteOptions { data?: any; replace?: boolean; push?: boolean; } export interface RouteParams { [key: string]: string; } export int...
import type { TRPCClientErrorLike } from "@trpc/react"; import type { Procedure } from "@trpc/server/dist/declarations/src/internals/procedure"; import type { Router, ProcedureRecord, } from "@trpc/server/dist/declarations/src/router"; import type { Subscription } from "@trpc/server/dist/declarations/src/subscripti...
import { IRouterDefine, IController, IRouter, IRoute, ArgsExtraction, ARGS, ArgsResolveStatic, Constructor, IRoutePathConfig, IRouteUrlPattern, } from "../metadata"; import { defaultOnBuild } from "../entrance/build"; import { defaultOnCreate } from "../entrance/create"; import { RouterMap } from "....