text stringlengths 3.08k 15.5k |
|---|
<reponame>meeech/vscode-kubernetes-tools
'use strict';
import * as vscode from 'vscode';
import opn = require('opn');
import { createReadStream } from 'fs';
import { resolve } from 'path';
import { fs } from '../../fs';
import { portForwardToPod, buildPortMapping } from './port-forward';
import { Kubectl } from '../.... |
import * as React from 'react';
import * as ReactNative from 'react-native';
export interface StripeOptions {
publishableKey: string;
merchantId?: string;
androidPayMode?: string;
}
export type AccountHolderType = 'company' | 'individual';
export type ApplePayNetworks =
| 'american_express'
| 'discover'
... |
import React from 'react';
import { Story } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import opplysningAdresseType from '@fpsak-frontend/kodeverk/src/opplysningAdresseType';
import relatertYtelseTilstand from '@fpsak-frontend/kodeverk/src/relatertYtelseTilstand';
import navBrukerKjonn... |
<gh_stars>0
const SerialPort = require('serialport');
const Delimiter = require('@serialport/parser-delimiter');
const AvrGirl = require('avrgirl-arduino');
const path = require('path');
const fs = require('fs');
import { BehaviorSubject, Subject } from 'rxjs';
import { share } from 'rxjs/operators';
import * as Promi... |
import * as React from 'react';
import { useEffect, useState } from 'react';
import { View, Text, Image, StyleSheet, TouchableOpacity, Alert, ActivityIndicator } from 'react-native';
import { StackActions, useNavigation, useRoute } from '@react-navigation/native';
import api from '../../services/api';
interface Produc... |
import { UploadFile } from 'ngx-uploader';
import {
PLAYLIST_PARSE,
PLAYLIST_UPDATE,
} from './../../../shared/ipc-commands';
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MockComponent, MockModule, MockPipe, Mo... |
import http from 'http';
import ws from 'ws';
import { getErrorFromUnknown, TRPCError } from '../errors';
import { BaseOptions, CreateContextFn } from '../http';
import { callProcedure } from '../internals/callProcedure';
import { AnyRouter, ProcedureType } from '../router';
import {
TRPCErrorResponse,
TRPCReconnec... |
<reponame>LeventZheng/angular-material
import { CommonModule } from '@angular/common';
import { Component, OnInit, OnDestroy, AfterViewInit, OnChanges, Input, ElementRef, ViewChild, NgModule } from '@angular/core';
declare var waveLoading:any;
class IndicatorOption {
barColor?: string = '#35D46A';
barBgColor?: stri... |
import React, { useContext } from 'react';
import { ThemeContext } from 'styled-components';
import { last, isDate } from 'lodash';
import { extent as d3extent } from 'd3-array';
import { LinePath } from '@vx/shape';
import { ParentSize } from '@vx/responsive';
import { scaleLinear, scaleTime } from '@vx/scale';
import... |
<gh_stars>1-10
import { Component, Input, OnInit, Optional } from '@angular/core';
import { ActivatedRoute, NavigationEnd, Params, Router } from '@angular/router';
import { UriUtilities } from 'diagnostic-data';
import { IDialogContentProps, IPanelProps, PanelType } from 'office-ui-fabric-react';
import { ApplensGlobal... |
import cs from 'classnames'
import * as React from 'react'
import { useScreenshotHandler } from './useScreenshotHandler'
import { NavItem } from '@cypress/design-system'
import SplitPane from 'react-split-pane'
// Need to register these once per app. Depending which components are consumed
// from @cypress/design-syst... |
import { relative, posix, sep } from 'path';
import { types as t, PluginObj, PluginPass, NodePath } from '@babel/core';
import template from '@babel/template';
import { getPackageInfo } from '@vanilla-extract/integration';
const packageIdentifier = '@vanilla-extract/css';
const filescopePackageIdentifier = '@vanilla-e... |
// Get User Tweet timeline by user ID
// https://developer.twitter.com/en/docs/twitter-api/tweets/timelines/quick-start
import { extractTweet } from "./extractors";
import { extractASIN, getAmazonDomainTLD } from "../amazon/simple-url-operations";
import { splitInChunks } from "../basics";
import { exchangeSyncGBP } f... |
import * as express from "express";
import { NextFunction } from "express";
import { DateTime } from "luxon";
import HttpException from "../exceptions/HttpException";
import { availableCalendarTimes, getNextMonthsDate, getNextWeekDate, numberOfColumns } from "../helpers/date.helper";
import { db } from "../models";
imp... |
<reponame>breeze-sandbox/breeze-next
import { core } from './core';
import { BreezeEnum } from './enum';
import { assertConfig } from './assert-param';
/**
MergeStrategy is an 'Enum' that determines how entities are merged into an EntityManager.
@class MergeStrategy
@static
**/
export class MergeStrategy extends Bre... |
<gh_stars>0
import polyfills from '../interop';
import { isBlobLike } from './is-utils';
import type { RevClient } from '../rev-client';
import type { Rev } from '../types';
export type FileUploadType = string | File | Blob | AsyncIterable<any>;
export interface UploadFileOptions {
/** specify filename of v... |
/*
* 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 { ApolloError, ApolloQueryResult } from 'apollo-client';
import { Docu... |
import React, { useState } from 'react';
import {
IonButton,
IonCard,
IonCardContent,
IonCardHeader,
IonCardSubtitle,
IonCardTitle,
IonCol,
IonContent,
IonGrid,
IonHeader,
IonIcon,
IonImg,
IonModal,
IonPage,
IonRow,
IonTitle,
IonToolbar,
} from '@ionic... |
import React from 'react'
import styled from 'styled-components'
import { TYPE } from '../../theme'
import { AutoColumn } from '../Column'
//import getFormattedNumber from '../Function/get-formatted-number'
import HeaderSlideshow from '../Slideshow/HeaderSlideshow'
import TextOne from '../Slideshow/headerSlides/TextO... |
/// <reference types="node" />
import { connectToGaiaHub, uploadToGaiaHub, BLOCKSTACK_GAIA_HUB_LABEL } from './hub';
import { CipherTextEncoding } from '../encryption/ec';
import { UserSession } from '../auth/userSession';
export interface EncryptionOptions {
/**
* If set to `true` the data is signed using ECD... |
<reponame>Fishbowler/jsxc
import { AbstractPlugin, IMetaData } from '../plugin/AbstractPlugin';
import PluginAPI from '../plugin/PluginAPI';
import Translation from '@util/Translation';
import * as Namespace from '@connection/xmpp/namespace';
import { IContact } from '@src/Contact.interface';
import UUID from '@util/UU... |
import { FC, useState } from "react";
import { useFormik } from "formik";
import * as yup from 'yup';
import isEmpty from "lodash/isEmpty";
import {
H3,
Pill,
Stack,
Button,
HorizontalDivider,
useDeskproAppTheme,
TextAreaWithDisplay,
useDeskproAppClient,
} from "@deskpro/app-sdk";
import... |
import path from 'path';
import slash from 'slash';
import crypto from 'crypto';
import * as babel from '@babel/core';
import * as types from '@babel/types';
import traverse from '@babel/traverse';
import {
getModuleResolvePkg,
getModuleResolvePath,
getModuleResolveContent,
} from '../../utils/moduleResolver';
im... |
<reponame>nrkno/v-connection
/**
* Utility functions for transforming AtomPub XML to Javascript objects.
*
* Relevant specifications include [RFC5023](https://tools.ietf.org/html/rfc5023)
* and [RFC4287](https://tools.ietf.org/html/rfc4287).
*/
import * as Xml2JS from 'xml2js'
/**
* Representation of an Ato... |
import React, { useState, useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { Resizable } from 're-resizable';
import IconButton from '@material-ui/core/IconButton';
import CloseIcon from '@material-ui/icons/Close';
import Autorenew from '@material-ui/icons/Autorenew';
import Keyb... |
<gh_stars>1-10
import * as vec3 from 'toybox/math/vec3';
import {Bridge} from 'entity/bridge';
import {EntityType} from 'entity/entity';
import {Mesh, Scene, Trigger} from 'scene';
export let stencilRooms: boolean[] = [];
function maybeSwapLara_(levelName: string, scene: Scene) {
// Swap Lara's mesh when at home.
... |
import { Invoice } from "@daml.js/daml-factoring/lib/Factoring/Invoice";
import React, { ChangeEvent, useMemo, useState } from "react";
import { InputField } from "../../InputField/InputField";
import { useRegistryLookup } from "../../RegistryLookup";
import { SolidButton } from "../../SolidButton/SolidButton";
import ... |
/**
* @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 * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as ts from 'typescript';
... |
<gh_stars>0
/**
* @file 视频流类
* @author xxx
*/
interface cameraOption {
width?: number;
height?: number;
mirror?: boolean;
targetCanvas?: HTMLCanvasElement;
onSuccess?: () => void;
onError?: NavigatorUserMediaErrorCallback;
onNotSupported?: () => void;
onFrame?: (canvas: HTMLCanvasEle... |
import React, {
Children,
createContext,
forwardRef,
HTMLAttributes,
useState,
useEffect,
useRef,
} from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { useForkedRef } from '../../utils/hooks'
const isVisible = (element: HTMLDivElement) => {
const rect = element... |
import {
createFloorEl,
createMetaline,
createBtn,
createPushCount,
} from "./createEl";
import { getFirstElByXPath } from "./utils";
import { updateElevator, clickElevatorBtn, keydownCopy } from "./handler";
function addFloor(pushes: Array<HTMLElement>): void {
let floor = 1;
const maxFloorDigits = pushes... |
import { Injectable, Inject, NgZone } from '@angular/core';
import { HttpClient, HttpResponse, HttpHeaders } from '@angular/common/http';
import { Observable, of, Subject } from 'rxjs';
import { catchError, map, publishReplay, switchMap, tap } from 'rxjs/operators';
import { Broadcaster } from 'ngx-base';
import { AU... |
<filename>src/algorithms/dijkstra.ts
import { Graph, Neighbour } from '../graph'
import { Grid } from '../grid'
import { point, SearchResult, CameFrom, Costs } from '../util'
interface DijkstraOptions {
diagonal: boolean,
passDiagonal: boolean,
smoothenPath: boolean,
bidirectional: boolean
}
export... |
<filename>packages/saaskit/src/_reference/saas.ts
import { Story } from './story'
import { Noun } from './types/word'
import { Color, Font } from './marketing.ts_'
import { Icon, LandingPage, Logo, Website } from '.';
// import colors from './colors'
// export colors
export interface SaaS extends Product {
plans... |
<gh_stars>1-10
export type ArmourList = keyof typeof armours
export interface ArmourData {
name: ArmourList;
desciption: string[];
reputation: number;
stats: ArmourStats
}
export interface ArmourStats {
armour: number;
concealment: number;
dodge: number;
speed: number;
stamina: number;
steadiness: number;
}... |
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
// Node module: @loopback/context
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import debugFactory from 'debug';
import {EventEmitter} from 'events';
import {promisify} from 'util';
import {Bindin... |
function IndexOfFirst<T>(list: Array<T>, predicate: (T) => boolean): number {
for(let i = 0; i < list.length; i++) {
if(predicate(list[i])) return i;
}
return -1;
}
export class EmitterDataPoint {
ForwardVoltage: number; // Volts
CurrentDraw: number; // Amps
Output: number; // Lumens
... |
import { BaseAdmin, OnDetailObjectLoadedProps } from './admin'
import type { Accessor, GenericAccessor, WidgetProps } from './typing'
import { Filter, Provider, ResponseCache } from './admin/providers/interfaces'
import { LocalCache } from './admin/providers/caches'
import { BaseProvider } from './admin/providers'
impo... |
import React, { useState } from 'react'
import { Linking, View, StyleSheet, TextInput } from 'react-native'
import { IconButton, ActivityIndicator } from 'react-native-paper'
import RadialGradient from 'react-native-radial-gradient'
import Toast from 'react-native-simple-toast'
import { KeyboardAwareScrollView } from '... |
import * as glob from "glob";
import { join, dirname } from "path";
import * as fs from "fs";
import { retry } from "@lifeomic/attempt";
const JupiterOneClient = require("@jupiterone/jupiterone-client-nodejs");
if (!process.env.J1_API_TOKEN) {
throw new Error('Missing J1_API_TOKEN ENV Var!');
}
if (!process.env.J1... |
/*
* Copyright (c) 2011 <NAME> <<EMAIL>>
* MIT Licensed
*/
import * as debugBuilder from 'debug';
import * as httpNtlm from 'httpntlm';
import * as _ from 'lodash';
import * as req from 'request';
import * as url from 'url';
import * as uuid from 'uuid/v4';
import { IHeaders, IOptions } from './types';
const debug... |
<reponame>matengfei131/kpc<filename>components/dropdown/useKeyboard.ts
import {
onBeforeUpdate,
onMounted,
onUpdated,
useInstance,
findDomFromVNode,
provide,
inject,
Component,
Children,
VNodeComponentClass,
isComponentClass,
isComponentFunction,
hasVNodeChildren,
... |
import { Colors } from '../../common/util/colors.js';
import { f32, isFloatValue, Scalar, Value, Vector } from './conversion.js';
import { correctlyRounded, oneULP, withinULP } from './math.js';
/** Comparison describes the result of a Comparator function. */
export interface Comparison {
matched: boolean; // True ... |
<reponame>Esanim/erc725.js
// This file contains the mock providers used for tests
import AbiCoder from 'web3-eth-abi';
import { METHODS } from '../src/lib/constants';
import { Method } from '../src/types/Method';
interface HttpProviderPayload {
jsonrpc: '2.0';
method: string;
params: Array<{
to: string;
... |
import { hasNoValue, hasValue, isNotEmpty } from '../../shared/empty.util';
import { DSpaceSerializer } from '../dspace-rest/dspace.serializer';
import { CacheableObject } from '../cache/object-cache.reducer';
import { Serializer } from '../serializer';
import { PageInfo } from '../shared/page-info.model';
import { Obj... |
<reponame>hellojackhui/bodymovin-parser
/**
* @author 惠嘉伟
* @email <EMAIL>
* @create date 2021-05-19 17:37:31
* @modify date 2021-05-19 17:37:31
* @desc Miniprogram compiler
*/
import CoreParser from "@bodymovin-parser/compiler-core";
import isEqual from "./utils/is-equal";
import { buildAnimeList, buildTransfor... |
import { writeFile, mkdir } from 'fs/promises'
import { promises as fsp } from 'fs'
import type { RollupOptions, OutputOptions, OutputChunk } from 'rollup'
import { rollup } from 'rollup'
import commonjs from '@rollup/plugin-commonjs'
import { nodeResolve } from '@rollup/plugin-node-resolve'
import alias from '@rollup/... |
import yargs from 'yargs';
import { fsExists } from '../util/fs';
import { getAllRuntimePresetNames } from '../util/runtime-presets';
import { CantaraCommand } from './commands';
import { chooseRuntimePresetName } from './interactive';
interface BuildYargsCommandsParams {
availableCommands: CantaraCommand[];
cmdTo... |
import { AxiosRequestConfig } from "axios";
import DotsLoader from "components/DotsLoader";
import { useEffect, useState } from "react";
import { Controller, useForm } from "react-hook-form";
import { useNavigate, useParams } from "react-router-dom";
import Select from "react-select";
import { toast } from "react-toast... |
'use strict'
import { Neovim } from '@chemzqm/neovim'
import path from 'path'
import { Variable, VariableResolver } from "./parser"
import WorkspaceFolderController from '../core/workspaceFolder'
import { v4 as uuid } from 'uuid'
import { URI } from 'vscode-uri'
const logger = require('../util/logger')('snippets-variab... |
<filename>src/QB.ts
import { issue_folder, issue_folder2, workbench_folder } from "./main";
import { existsSync, readdirSync, readFileSync } from "fs";
import { join } from "path";
import { copyFile, readFile, writeFile } from "fs/promises";
import { IBIssue, IIssue, SanitizeIssue } from "./IssueUtil";
export type Map... |
import esaml2 = require('../index');
import { readFileSync, writeFileSync } from 'fs';
import test from 'ava';
import * as fs from 'fs';
import * as url from 'url';
import { DOMParser as dom } from '@xmldom/xmldom';
import { xpath as select } from 'xml-crypto';
import { extract } from '../src/extractor';
const {
Ide... |
import React, { FC, useMemo, useState } from "react";
import classNames from "clsx";
import { ReactComponent as CodeAltIcon } from "app/icons/code-alt.svg";
import { ReactComponent as EyeIcon } from "app/icons/eye.svg";
import { ReactComponent as HashIcon } from "app/icons/hash.svg";
import ExpensesView, { ModifyFeeA... |
<gh_stars>0
import { TTBundle, TTIriRef } from "@/models/TripleTree";
import { IM } from "@/vocabulary/IM";
import { RDFS } from "@/vocabulary/RDFS";
import { isArrayHasLength, isObjectHasKeys } from "./DataTypeCheckers";
// min 2 characters
const indentSize = " ";
export function bundleToText(bundle: TTBundle, defa... |
/**
* This file contains utility functions for the search onboarding tour.
*/
import Shepherd from 'shepherd.js'
import { eventLogger } from '../../tracking/eventLogger'
import { isEqual } from 'lodash'
import { LANGUAGES } from '../../../../shared/src/search/parser/filters'
export const HAS_CANCELLED_TOUR_KEY = 'ha... |
import { User as NzUser } from '@delon/theme';
import { JWTTokenModel } from '@delon/auth';
//#region OSharp Tools
export class AjaxResult {
Type: AjaxResultType;
Content?: string;
Data?: any;
}
export enum AjaxResultType {
Info = 203,
Success = 200,
Error = 500,
UnAuth = 401,
Forbidden = 403,
NoFoun... |
/**
* 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... |
<gh_stars>0
import {ActorRdfMetadataExtract, IActionRdfMetadataExtract,
IActorRdfMetadataExtractOutput} from "@comunica/bus-rdf-metadata-extract";
import {IActorArgs, IActorTest} from "@comunica/core";
import * as RDF from "rdf-js";
import {parse as parseUriTemplate, UriTemplate} from "uritemplate";
/**
* An RDF Me... |
<gh_stars>0
/// <reference path="../../declarations.d.ts" />
import { NgRedux } from '@angular-redux/store';
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { denormalize, normalize } from 'normalizr';
import { Observable } from 'rxjs';
import * as ImmutableProxy f... |
export enum VCXCode {
SUCCESS = 0,
INDY_WALLET_RECORD_NOT_FOUND = 212,
INDY_DUPLICATE_WALLET_RECORD = 213,
UNKNOWN_ERROR = 1001,
CONNECTION_ERROR = 1002,
INVALID_CONNECTION_HANDLE = 1003,
INVALID_CONFIGURATION = 1004,
NOT_READY = 1005,
NO_ENDPOINT = 1006,
INVALID_OPTION = 1007,
INVALID_DID = 1008,... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { Fun } from '@ephox/katamari';
import { Insert, SugarElement ... |
import { RefKey } from '../utils/symbols'
import { proxy, isPlainObject, warn, def } from '../utils'
import { reactive, isReactive, shallowReactive } from './reactive'
import { readonlySet } from '../utils/sets'
import { set } from './set'
declare const _refBrand: unique symbol
export interface Ref<T = any> {
readon... |
<reponame>gregzanch/cram
import * as THREE from "three";
import Container from "../objects/container";
import { TransformControls } from "./TransformControls";
type point = {
x: number;
y: number;
};
const dist = (p1: point, p2: THREE.Vector3) => Math.sqrt((p2.y - p1.y) ** 2 + (p2.x - p1.x) ** 2);
const THRESHOLD =... |
import React, { useState } from "react";
import { Button, Divider, Input, Modal, Progress } from "antd";
import { FacebookOutlined, TwitterOutlined } from "@ant-design/icons";
import { ethers } from "ethers";
import { useContractReader } from "src/hooks";
import NFTSmall from "src/components/NFTSmall";
import NFTLarg... |
import deepFreeze from 'deep-freeze-strict';
import Metalsmith from 'metalsmith';
import path from 'path';
import { CachedPreviewResponseInterface } from './cache/preview';
import lookup from './lookup';
import { NetlifyDeployData } from './netlify';
import { normalizeOptions } from './options';
import { isNotVoid, pa... |
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
import { PinoLogger } from 'nestjs-pino';
import { Repository } from 'typeorm';
import { snakeCase, camelCase } from 'typeorm/util/StringUtils';
import { FindManyOptions } from 'typeorm/find-options/FindManyOptions';
import { FindOneOptions } from ... |
import * as path from 'path';
import { Configuration } from '@nuxt/types';
import { cosmiconfigSync } from 'cosmiconfig';
import { NormalModuleReplacementPlugin } from 'webpack';
import WebpackInjectPlugin, { ENTRY_ORDER } from 'webpack-inject-plugin';
interface DockiteConfig {
app: {
title: string;
descrip... |
<filename>src/parser/cbz.ts
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on ... |
import { DiscordPrompt } from "../DiscordPrompt"
import { PromptCollector, Rejection, PromptNode, Errors } from "prompt-anything"
import { DiscordPromptRunner } from '../DiscordPromptRunner'
import { EventEmitter } from 'events';
import { DiscordChannel } from '../DiscordChannel';
import { MenuVisual } from '../visuals... |
<gh_stars>0
import { Command } from 'commander'
import { existsSync, lstatSync } from 'fs'
import { sync as globSync } from 'glob'
import { createInterface } from 'readline'
import { sep, resolve } from 'path'
import { Deployer } from '@faasjs/deployer'
import { defaultsEnv } from '../helper'
import Cluster from 'clust... |
<gh_stars>10-100
export class Node<T = Function> {
children = new Map<string, Node<T>>();
path = "";
handler: T | undefined;
constructor(node?: Partial<Node<T>>) {
if (node) {
Object.assign(this, node);
}
}
add(path: string, handler: T): void {
let n: Node<T> = this;
let i = 0;
... |
import {
Ref,
computed,
} from '@vue/composition-api';
import {
configureFactoryParams,
Context,
CustomQuery,
FactoryParams,
Logger,
sharedRef,
} from '@vue-storefront/core';
import { ComposableFunctionArgs, PlatformApi } from '@vue-storefront/core/lib/src/types';
import { UseWishlist, UseWishlistErrors... |
import { generate } from "randomstring"
import {
NON_EXECUTABLE_FILE_MODE,
EXECUTABLE_FILE_MODE,
} from "../src/patch/parse"
import { assertNever } from "../src/assertNever"
export interface File {
contents: string
mode: number
}
export interface Files {
[filePath: string]: File
}
export interface TestCase... |
import micro from 'micro';
import listen from 'test-listen';
import { createApolloFetch } from 'apollo-fetch';
import { NODE_MAJOR_VERSION } from 'apollo-server-integration-testsuite';
import { gql } from 'apollo-server-core';
import FormData from 'form-data';
import fs from 'fs';
import rp from 'request-promise';
imp... |
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2018-2022 <NAME> and Semmtech B.V.
import * as React from "react";
import { Spinner } from "reactstrap";
import { resolveInject } from "app/di";
import {
ISparqlExecutor,
SparqlQueryParameters
} from "app/services/infrastructure/sparql-executor";
import {
... |
<filename>ui/src/modules/Users/hooks.ts<gh_stars>100-1000
/*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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:/... |
<filename>source/canvasrecorder.ts
/* spellchecker: disable */
import { Canvas } from './canvas';
import { assert } from './auxiliaries';
/* spellchecker: enable */
declare let MediaRecorder: any;
type CanvasCaptureMediaStream = any;
type MediaRecorder = any;
type ImagesAvailableCallback = (images: Array<Blob>) =... |
import {IWorkerResult} from "./IWorkerResult";
import {Job} from "./Jobs/Job";
import {App} from "../AppContainer";
import Redis from "../Redis/Redis";
import {Log} from "../Common";
import {DateTime} from "@envuso/date-time-helper";
import {QueueConfiguration} from "../Contracts/Configuration/QueueConfigurationContrac... |
<filename>pipeline/headers-to-interfaces/parse.ts
import { ANTLRInputStream, CommonTokenStream, Token, Lexer, ParserRuleContext } from 'antlr4ts';
import { ParseTreeListener } from 'antlr4ts/tree/ParseTreeListener';
import { ParseTreeWalker } from 'antlr4ts/tree/ParseTreeWalker';
import { SatisfactoryHeaderLexer } fro... |
<gh_stars>0
import { Tier, Cycle, PaymentMethod, SubStatus, OrderType, Edition } from "./enums";
import { DateTime } from "luxon";
import { Flash } from "../widget/flash";
import { localizeTier, membershipSource } from "./localization";
import { subsMap } from "../config/sitemap";
export interface Membership {
id: s... |
import { DeleteOutlined, LoadingOutlined, PlusOutlined } from '@ant-design/icons';
import { css } from '@emotion/css';
import React, { CSSProperties, FC, MutableRefObject, ReactNode, useRef } from 'react';
export interface FileInstance {
/** 显示文件夹选择器 */
showOpenFilePicker: () => void;
}
interface FileProps {
... |
import * as chalk from 'chalk';
import * as fs from 'fs';
import * as path from 'path';
import { Logger } from '../../../../cli';
import {
CommandOption
} from '../../../../Command';
import GlobalOptions from '../../../../GlobalOptions';
import request from '../../../../request';
import AzmgmtCommand from '../../../b... |
/* eslint-disable camelcase */
import urljoin from 'url-join';
import Request from './request';
import {
BounceData,
ComplaintData,
PagesList,
PagesListAccumulator,
ParsedPage,
ParsedPagesList,
SuppressionCreationData,
SuppressionCreationResponse,
SuppressionCreationResult,
SuppressionDestroyRespon... |
import { Component, OnInit, EventEmitter, Input, Output } from '@angular/core';
import * as moment_ from 'moment';
const moment = moment_;
import { IWeekDay, WEEKDAY_NAMES, WeekDayShort, MonthShort } from './week-day-selector.helper';
interface IDay {
moment: moment.Moment;
day: number;
weekday: WeekDayShort;
... |
import { Component } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { CategoryForm, Labels, Constraint, Datastore, Document, FieldDocument, FieldResource, Named,
ProjectConfiguration, Query, Resource, Relation } from 'idai-field-core';
import { isEmpty, flow, includedIn, i... |
<reponame>Jellybooks/jbks-shared-web<gh_stars>0
/* Copyright 2020 Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license,
* available in the LICENSE file present in the Github repository of the project.
*/
import { MediaType } from "../Format/MediaType";
import { Prope... |
import { shareLatest } from "@react-rxjs/core"
import {
GroupedObservable,
identity,
noop,
Observable,
Subject,
Subscription,
} from "rxjs"
import { map } from "rxjs/operators"
export interface KeyChanges<K> {
type: "add" | "remove"
keys: Iterable<K>
}
/**
* Groups the elements from the source stream... |
<reponame>ProvarTesting/provardx
/*
* Copyright (c) 2020 Make Positive Provar Ltd
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.md file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { flags, SfdxCommand } from '@salesforce/comma... |
<reponame>DeskCodeSolution/passkit-generator
import Joi from "joi";
/**
* For a better description of every single field,
* please refer to Apple official documentation.
*
* @see https://developer.apple.com/documentation/walletpasses/semantictags
*/
/**
* @see https://developer.apple.com/documentation/walletpas... |
<reponame>juhly/idai-field
import {dropRightWhile, includedIn, is, isArray, isNot, isObject, isAssociative, Map,
Associative, isEmpty, isnt, flow, cond, dissoc} from 'tsfun';
import {update, reduce, forEach} from 'tsfun/associative';
import {filter} from 'tsfun/collection';
import {NewResource, Resource} from 'idai... |
<reponame>faidlurrohman/CODEIGNITER
import { Cell, Id, Option } from '@ephox/katamari';
import { Attr, Traverse } from '@ephox/sugar';
import * as AddEventsBehaviour from '../../api/behaviour/AddEventsBehaviour';
import * as AlloyEvents from '../../api/events/AlloyEvents';
import * as AlloyTriggers from '../../api/eve... |
<filename>src/runtime/storageNG/drivers/firebase.ts
/**
* @license
* Copyright (c) 2019 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional ... |
import React, { ReactElement, useEffect, useRef } from "react";
import { ModeTypes } from "../../../../pages";
import { makeStyles } from "@material-ui/core";
import { genRandomNumber } from "../../../../src/Util";
import { IEmoji, GifEmojis, RegularEmojis } from "../../shared/Canvas/EmojiList";
import AniamtedEmoji fr... |
import { ThunkDispatch } from "redux-thunk";
import api from "../api";
import { flatmap } from "../common/helpers/commonHelper";
import type { DateRangeT } from "../api/types";
import { defaultSuccess, defaultError } from "../common/actions";
import { loadPreviousQuery } from "../previous-queries/list/actions";
impo... |
<reponame>gocario/goldensun_html5<filename>base/game_events/ChestEvent.ts
import {Item} from "../Item";
import {MainChar} from "../MainChar";
import {NPC} from "../NPC";
import {base_actions, directions} from "../utils";
import {DialogManager} from "../utils/DialogManager";
import {GameEvent, event_types} from "./GameE... |
<reponame>CC-lee/nicholasblog
import { execLib } from 'execlib';
interface Froalaset {
emoticonsSet: { code: string; desc: string; }[];
}
var froalaset = function () {
var emoticonsSet: [
{ code: '1f601', desc: 'grinning face with smiling eyes' },
{ code: '1f602', desc: 'face with tears of joy' },
{ co... |
<reponame>andreadistefano/graphql-compose-elasticsearch
/* eslint-disable no-use-before-define, no-param-reassign */
import {
ObjectTypeComposer,
SchemaComposer,
upperFirst,
isObject,
ComposeInputTypeDefinition,
ComposeOutputTypeDefinition,
} from 'graphql-compose';
import { ElasticGeoPointType } from './e... |
import React from 'react';
import classnames from 'classnames';
import memoizeOne from 'memoize-one';
import moment from 'moment';
import {
getDatesBetween,
getWeekDayName,
monthDayHasher,
} from '../../utils/dateUtil';
import {
allocateDailyEvents,
isTotalDayEvent,
getEventsTimeRange,
} from '../../utils/e... |
/*
* 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 React, { FunctionComponent, useEffect, useRef } from 'react';
import { t, Trans } from '@lingui/macro';
import { User } from 'mediatracker-api';
import { useNotificationPlatformsCredentials } from 'src/api/notificationPlatformsCredentials';
import { useUser } from 'src/api/user';
import { CheckboxWithTitleAndDes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.