text stringlengths 3.08k 15.5k |
|---|
import { InputObserver } from "./../InputObserver";
import * as Hammer from "hammerjs";
import { $ } from "../utils";
import { UNIQUEKEY, toAxis, convertInputType, createHammer, IInputType, IInputTypeObserver } from "./InputType";
import { Axis } from "../AxisManager";
export interface PinchInputOption {
scale?: numb... |
<reponame>u-makino/animate<filename>src/animate/load.ts
import { Loader, ILoaderResource } from '@pixi/loaders';
import { Container } from '@pixi/display';
import { AnimateAsset } from '../AnimateAsset';
import { MovieClip } from './MovieClip';
import { DrawCommands } from './Graphics';
import { utils } from './utils';... |
<gh_stars>10-100
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import * as _ from "lodash"
import * as path from "path"
import * as cdk from "@aws-cdk/core"
import * as logs from "@aws-cdk/aws-logs"
import * as iam from "@aws-cdk/aws-iam"
import * as cr from "@... |
import {
BaseNode,
UAReference,
UAObjectType,
UAVariable,
resolveReferenceNode,
resolveReferenceType,
UAVariableType
} from "node-opcua-address-space";
import { NodeClass } from "node-opcua-data-model";
import { NodeId, resolveNodeId } from "node-opcua-nodeid";
import { DataType } from "node... |
<gh_stars>0
// tslint:disable
import { Subject } from 'rxjs';
import { Component, OnInit, forwardRef, Input } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { AppService } from '../../../../core/services/app.service';
import { NzModalService } from 'ng-zorro-antd';
import { environment... |
<filename>mod.ts
// deno-lint-ignore no-explicit-any
type TObject = Record<string, any>;
export type TError = Error & { status?: number };
export type NextFunc = (err?: TError) => Response | Promise<Response>;
export type HttpRequest = Request & {
params: TObject;
conn: TObject;
path_url: string;
// deno-lint-i... |
<filename>src/controller/chrome-devtools.ts<gh_stars>0
/*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2017-2019 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may no... |
<reponame>StigNorland/qddt-client
import { distinctUntilChanged, debounceTime} from 'rxjs/operators';
import { Subject} from 'rxjs';
import { Component, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, OnDestroy, AfterViewInit} from '@angular/core';
import { Column } from './table.column';
import { LIST_C... |
import cheerio from 'cheerio';
import puppeteer from 'puppeteer';
import Redis from 'ioredis';
const delay = (time: number) => new Promise(resolve => setTimeout(resolve, time));
const urlForFolder = (folderNumber: string) => `${ process.env.HUDDLE_ROOT }#/folder/${ folderNumber }/list`;
type File = {
name: string;
... |
import { ValidatedResponse, ValidatedResponseArgs } from '@txstate-mws/graphql-server'
import { DateTime } from 'luxon'
import { isNotBlank, isNotNull } from 'txstate-utils'
import { Field, ID, InputType, ObjectType, registerEnumType } from 'type-graphql'
import { UrlSafeString, PagetreeType } from 'internal'
@ObjectT... |
<reponame>rodlukas/UP-admin
import * as React from "react"
import LectureService from "../api/services/LectureService"
import {
ApplicationType,
ClientType,
CourseType,
LectureType,
MembershipType,
} from "../types/models"
import { LOCALE_CZ } from "./constants"
import { addDays } from "./funcDate... |
import * as _ from 'lodash';
import * as path from 'path';
import { CommandUtils } from 'typeorm/commands/CommandUtils';
import { MigrationExecutor } from 'typeorm/migration/MigrationExecutor';
import format from 'prettier-eslint';
import { connectStorage, disconnectStorage } from './generator';
import { asyncForEach ... |
import { Chart, View } from '@antv/g2';
import DataSet from '@antv/data-set';
import { isArray, isFunction, isNumber, isString } from '@antv/util';
import { Params } from '../../core/adaptor';
import { log, LEVEL, getContainerSize } from '../../utils';
import { WordCloudOptions } from './types';
/**
* 用 DataS... |
import React, { useEffect, useState } from 'react';
import { Checkbox, Col, Form, Input, Modal, Row, Select, Upload } from 'antd';
import { TableListItem } from '../data';
import { OptionType } from '@/services/data';
import { LoadingOutlined, PlusOutlined } from '@ant-design/icons';
import { getApiServer, imageFileCom... |
import { StatusBar } from 'expo-status-bar';
import React, { useState } from 'react';
import { Alert, StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native';
import { Feather } from '@expo/vector-icons';
import * as Clipboard from 'expo-clipboard';
import * as DocumentPicker from 'expo-document-picke... |
import React from 'react';
import {createStyles, makeStyles, Theme} from '@material-ui/core/styles';
import Stepper from '@material-ui/core/Stepper';
import Step from '@material-ui/core/Step';
import StepLabel from '@material-ui/core/StepLabel';
import StepContent from '@material-ui/core/StepContent';
import Button fro... |
<gh_stars>1-10
import * as core from "@actions/core";
import * as github from "@actions/github";
import type { GitHub } from "@actions/github/lib/utils";
import { ActionConfig, getConfig } from "./action";
type Octokit = InstanceType<typeof GitHub>;
let config: ActionConfig;
let octokit: Octokit;
export enum Workflo... |
/* eslint-disable func-style, @typescript-eslint/no-unused-vars, @typescript-eslint/no-unused-vars-experimental */
import readdir, { readdirAsync, readdirIterator, readdirStream, readdirSync, Stats } from "../../";
const root = "path/to/some/directory";
const options = {};
const pathsCallback = (err: Error | null, pat... |
const through2 = require('through2')
import Vinyl = require('vinyl')
import PluginError = require('plugin-error')
const pkginfo = require('pkginfo')(module) // project package.json info into module.exports
const PLUGIN_NAME = module.exports.name
import * as loglevel from 'loglevel'
const log = loglevel.getLogger(PLUGIN... |
const [PENDING, FULFILLED, REJECTED] = [void 0, true, false];
class WorkerPromise {
get state () {
return PENDING;
}
get value () {
return void 0;
}
get settled () {
return false;
}
constructor (executor) {
if (typeof executor != "function") {
throw new TypeError(`Promise resolve... |
import type { User } from 'discord.js';
import he from 'he';
import { chika_detective_png } from '../../../shared/assets';
import {
baseEmbed,
cryingEmbed,
lightErrorEmbed,
withAuthorEmbed,
} from '../../../shared/embeds';
import { GenericChannel } from '../../../types/command';
import { QueueItem } from '../..... |
import { Component, OnInit, ChangeDetectionStrategy, Input, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
import Konva from 'konva';
import { BaseLayerRendererComponent } from '../base-layer-renderer/base-layer-renderer.component';
import { BattleState, ObjectType, ObjectState } from '../battle-state';
i... |
/**
* Copyright 2021 Angus.Fenying <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
import { format } from 'date-fns';
import * as puppeteer from 'puppeteer'
import { parseDate } from './utils';
export const HEADLESS = true;
export type Time = {
time: string,
date: string,
}
export enum Side {
Left = "left",
Right = "right"
}
export enum SessionTypeUrl {
Advanced = "advanced.html",
Int... |
<reponame>plantain-00/composable-editor-canvas
import { EllipseArc, Position, getEllipseAngle, equals, normalizeAngleInRange, normalizeAngleRange, rotatePositionByCenter, getResizeCursor, getPointsBounding } from '../../src'
import { angleDelta, ellipseModel, rotatePositionByEllipseCenter } from './ellipse-model'
impor... |
<reponame>m-sallam/monkfish<filename>src/moves.ts
import { Game } from "./game.ts";
import { Move } from "./move.ts";
import {
BLACK_BISHOP,
BLACK_KING,
BLACK_KNIGHT,
BLACK_PAWN,
BLACK_QUEEN,
BLACK_ROOK,
WHITE_BISHOP,
WHITE_KING,
WHITE_KNIGHT,
WHITE_PAWN,
WHITE_QUEEN,
WHITE_ROOK,
} from "./piece... |
import { expect } from 'chai';
import { Mavsdk, System, Telemetry, Action, Mission, MissionItem } from "../lib/addon";
let pause_already_done = false;
function sleep(millis: number) {
return new Promise(resolve => setTimeout(resolve, millis));
}
function make_mission_item(
latitude_deg: number,
longitud... |
import React from 'react';
import path from 'path';
import { renderToString } from 'react-dom/server';
import Loadable from 'react-loadable';
import { getBundles } from 'react-loadable/webpack';
import {
REACT_LOADABLE_MANIFEST,
BUILD_DIR,
CLIENT_BUILD_DIR,
SERVER_BUILD_DIR,
} from '@constants/index';
import {... |
/**
* Implementation of instagram-like zoom + pan
*/
import React, {
createRef,
CSSProperties,
ReactElement,
useEffect,
useState
} from 'react';
type ZoomableType = {
children: ReactElement | ReactElement[],
className?: string,
zIndex?: number,
style?: CSSProperties,
maxScale?: number, // Same as... |
/*
Main container for the Member Registration process
*/
// External Dependencies
import { Helmet } from 'react-helmet';
// import { navigate } from 'gatsby';
import React, {
FC, useEffect, useReducer
} from 'react';
// Internal Dependencies
import AuthUserContext from '../../components/session/AuthUserContext';
... |
import { CodeResult } from "near-api-js/lib/providers/provider"
import React, { useCallback, useContext, useEffect, useState } from "react"
import { useParams } from "react-router-dom"
import ActivityIcon from "../../assets/icons/ActivityIcon"
import ItemsIcon from "../../assets/icons/ItemsIcon"
import ActivityTable fr... |
import {
ChangeDetectionStrategy,
Component,
OnInit,
Inject,
ViewEncapsulation,
} from '@angular/core';
import {
CompactType,
GridsterConfig,
GridsterItem,
GridsterItemComponent,
GridsterPush,
GridType,
DisplayGrid
} from 'angular-gridster2';
import { single } from '../../../data';
import { MatD... |
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import { DocDeclarationReference, DocMemberSelector, SelectorKind } from '@microsoft/tsdoc';
import { ApiItem, ApiItemKind } from '../items/ApiItem';
import { Ap... |
import parse from 'co-body';
import Koa from 'koa';
import IncomingForm, { Fields, Files } from 'formidable';
import { Context, Next, HttpMethod } from '../../../typings';
const jsonTypes = [
'application/json',
'application/json-patch+json',
'application/vnd.api+json',
'application/csp-report',
];
const form... |
<filename>src/index.ts
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
import {... |
import * as fs from 'fs';
import { existsSync, mkdirSync, readFileSync } from 'fs';
import fetch from 'node-fetch';
import { basename, dirname, extname, parse, resolve } from 'path';
import * as util from 'util';
import * as vscode from 'vscode';
import { MessageOptions } from 'vscode';
import { Hanlder } from '../comm... |
import axios from "axios";
import { GetServerSideProps } from "next";
import Layout from "../components/layout";
import { createAuthHeaders, validateSessionAndFetch } from "../helpers/session";
import { absoluteUrl } from "../helpers/absolute-url";
import { signOut } from "next-auth/react";
import Alert from "../compo... |
<gh_stars>1-10
// modified from: https://github.com/geongeorge/Canvas-Txt
// Hair space character for precise justification
const SPACE = '\u200a';
const canvasTxt = {
debug: false,
align: 'center',
vAlign: 'middle',
fontSize: 14,
fontWeight: '',
fontStyle: '',
fontVariant: '',
font: 'Arial',
lineHe... |
/*
* Copyright (c) 2015 NAVER Corp.
* egjs projects are licensed under the MIT license
*/
import Flicking from "../Flicking";
import { range } from "../utils";
import { CLASS } from "../const/external";
import VirtualPanel from "./panel/VirtualPanel";
export interface VirtualOptions {
renderPanel: (panel: Virtua... |
import type { Query, Settings } from "../jsql";
class JSQLManager {
private queue: Array<any>;
private ready: boolean;
private worker: Worker;
private promises: {
[key: string]: {
success: Function;
fail: Function;
};
};
private settings: Settings;
c... |
export interface Vector2Like {
x: number;
y: number;
}
export interface Point {
position: Vector2Like;
prevPosition: Vector2Like;
}
export interface Line {
p1: Point;
p2: Point;
len: number;
}
export class Body {
stiffness: number;
bounce: number;
friction: number;
static:... |
<reponame>RBSystems/shipwright
import {
JsonObject,
JsonProperty,
JsonConverter,
JsonCustomConvert,
Any,
} from "json2typescript";
import { Person } from "src/app/objects/database";
import { DateConverter } from "./date";
@JsonObject("ResolutionInfo")
export class ResolutionInfo {
@JsonProperty("resolution... |
<filename>functions/src/services/security.service.ts
import {AgentModel, CollectionName, Role, User} from "pandalab-commons";
import * as admin from "firebase-admin";
import {HttpsError} from "firebase-functions/lib/providers/https";
import {DocumentSnapshot} from "firebase-functions/lib/providers/firestore";
import De... |
import React, { useCallback, useEffect, useMemo } from 'react';
import Page from '../../components/Page';
import { createGlobalStyle } from 'styled-components';
import { Route, Switch, useRouteMatch } from 'react-router-dom';
import { useWallet } from 'use-wallet';
import UnlockWallet from '../../components/UnlockWalle... |
import { injectable, inject } from "inversify";
import { IPersistenceProvider, ILogger, IWorkflowRegistry, IWorkflowExecutor, TYPES } from "../abstractions";
import { WorkflowHost } from "./workflow-host";
import { WorkflowInstance, ExecutionPointer, ExecutionResult, StepExecutionContext, WorkflowStepBase, WorkflowStat... |
import EyeglassModules, { resetGlobalCaches as resetGlobalModuleCaches } from "./modules/EyeglassModules";
import ModuleFunctions from "./modules/ModuleFunctions";
import ModuleImporter from "./importers/ModuleImporter";
import AssetImporter from "./importers/AssetImporter";
import FSImporter from "./importers/FSImport... |
import * as H from 'history'
import { upperFirst } from 'lodash'
import MapSearchIcon from 'mdi-react/MapSearchIcon'
import React, { useEffect, useCallback, useMemo, useState } from 'react'
import { Link } from 'react-router-dom'
import { Observable } from 'rxjs'
import { catchError, map, startWith } from 'rxjs/operato... |
import { largePrisonersListed, largePrisonersListedWithCell } from './bulkAppointmentsTestData'
import bulkAppointmentsSlipsRouter from '../routes/appointments/bulkAppointmentsSlipsRouter'
Reflect.deleteProperty(process.env, 'APPINSIGHTS_INSTRUMENTATIONKEY')
const prisonApi = {}
let req
let res
let logError
let contr... |
import {DEFAULT_OUT_DIR, Manifest} from '@polyfill-io-aot/common';
import {md5Object} from '@polyfill-io-aot/common/src/fns/md5Hash';
import {reducePolyfills} from '@polyfill-io-aot/common/src/fns/reducePolyfills';
import * as lib from '@polyfill-io-aot/common/src/PolyfillLibrary';
import {PolyfillBuffer} from '@polyfi... |
import { createStyles, Theme, WithStyles } from '@material-ui/core';
import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import Paper from '@material-ui/core/Paper';
import { withStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
impo... |
import { KlasaMessage, KlasaClient } from 'klasa';
import Util from '../utils/Util';
interface Player {
id: string;
val: string;
name: string;
}
export default class TicTacToe {
public message: KlasaMessage;
public client: KlasaClient;
public AI: boolean;
public player1: Player;
publ... |
<reponame>zozzz/yayp<gh_stars>0
export const RX_NS_CHARS = new RegExp(`[^\uFEFF\r\n\t ]+`, "g")
export const RX_NB_CHARS = new RegExp(`[^\r\n]+`, "g")
export const YAML_DIRECTIVE_VALUE = new RegExp(`\\d+\\.\\d+`, "g")
export const TAG_DIRECTIVE_HANDLE = /!([0-9A-Za-z]*!)?/g
export const TAG_DIRECTIVE_NS = /(?:[... |
// Copyright 2016-2020, Pulumi Corporation. All rights reserved.
import * as awsx from "@pulumi/awsx";
import * as pulumi from "@pulumi/pulumi"
import { config } from "process";
import * as random from "@pulumi/random";
import * as aws from "@pulumi/aws";
// Read stack inputs for Github key and Github secret and the... |
<gh_stars>1-10
import * as Logger from 'bunyan';
import CarrierStatus from '@modules/server.common/enums/CarrierStatus';
import Carrier from '@modules/server.common/entities/Carrier';
import { createEverLogger } from '../../helpers/Log';
import { DBService } from '@pyro/db-server';
import { inject, injectable } from 'i... |
import { Component, Vue } from 'vue-property-decorator';
import { LINK_DATA } from '@/config/dataname.config';
import LinkEmpty from '@/components/Admin/link-empty';
import mButton from '@/components/Mermaid/button';
interface Link {
icon: string;
items: object[];
name: string;
titleIconColor: string;
}
@Compo... |
import * as React from "react";
import {
HStack,
Text,
Spacer,
Button,
useDisclosure,
Box,
Switch,
IconButton,
Menu,
MenuButton,
MenuItem,
MenuList,
MenuDivider,
} from "@chakra-ui/react";
import EditCaseContainer from "../../core/modals/edit/EditCaseContainer";
import { HiOutlineDotsVertical ... |
import Discord from 'discord.js/src';
interface PollOptions {
client: Discord.Client;
message?: string;
title: string;
description?: string;
color?: Discord.ColorResolvable;
itemlist: Array<string>;
emojilist?: Array<string>;
endDate: Date;
anonymous?: boolean;
allowMultiple?: b... |
import React, { useState, useEffect, useRef, useCallback } from 'react';
import { FormHandles } from '@unform/core';
import { Form } from '@unform/web';
import * as Yup from 'yup';
import Switch from 'react-switch';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import 'react-tabs/style/react-tabs.css';
imp... |
import * as localforage from 'localforage';
import { Document } from '../model/document';
import { EditorState } from '../model/editorState';
import { Layer, LayerId } from '../model/layer';
import { Gif, GifFrame } from '../util/loadGif';
const debug = false;
const version = 0;
const versionKey = 'version';
const s... |
<reponame>hakubox/haku-vue<gh_stars>0
import axios, { AxiosRequestConfig, AxiosResponse } from "axios";
import { notification, message } from 'ant-design-vue';
import qs from 'qs';
import router from '@/config/router';
export function getToken(): string {
return 'Bearer ' + localStorage.getItem('Authorization');
}... |
import React, { useState, useEffect } from 'react';
import { ScrollView, Text, View } from 'react-native';
import { BorderlessButton } from 'react-native-gesture-handler';
import { Feather } from '@expo/vector-icons';
import AsyncStorage from '@react-native-community/async-storage'
import RNPickerSelect from 'react-nat... |
import * as React from 'react';
import { render } from 'react-dom';
import '../../../../../src/xs/rx'
import { Applicative, lift2,Semigroup, Functor, map, Traversable, FlatMap } from '../../../../../src/fantasy'
import {X} from '../../../../../src'
function xmount(component, dom) { render(React.createFactory(X)({}, com... |
import { setActiveModal } from 'fm3/actions/mainActions';
import { mapsDelete, mapsLoad, mapsSave } from 'fm3/actions/mapsActions';
import { useDateTimeFormat } from 'fm3/hooks/useDateTimeFormat';
import { useOnline } from 'fm3/hooks/useOnline';
import { useMessages } from 'fm3/l10nInjector';
import { ReactElement, use... |
<reponame>sanwasystem/gmail-api-client<gh_stars>0
import moment from "moment";
import * as _ from "lodash";
import * as Types from "./types";
import MailPayload from "./MailPayload";
/**
* 添付ファイル1個を示すクラス。
* Gmailの添付ファイルは message API でそのまま取得できる場合と、 attachment id だけが降ってくるので
* 個別にダウンロードしなければならない場合がある。
* このクラスはその両者をまと... |
/*
* @Author: wss
* @Date: 2019-04-23 21:54:36
* @Last Modified by: wss
* @Last Modified time: 2019-05-15 20:15:41
*/
const { ccclass, property, menu, disallowMultiple } = cc._decorator;
enum TYPE_MODE {
left2right,
right2left,
middle2sides,
sides2middle
}
/**转换文本 或数组类型 到文本 */
let transferT... |
<reponame>Shadow-Engine/Shadow-Engine
// Working with paths in Shadow Engine can be tricky because of things like path macro expansion where #sddr takes you to the Shadow Data Dir
// Not only that but Shadow is a cross-platform application, so directory structures can be weird across platforms, with naming conventions... |
let player
let bullets
let enemies
let cursors
let walls
let enemy
let bullet
let physics
let scene
let pointerUse
let pointerX
let pointerY
let lastBulletShot
export default class Scene1 extends Phaser.Scene {
constructor() {
super({ key: 'Scene1' })
}
preload() {
this.load.image('short... |
<reponame>idongliming/EBook-template<filename>src/web/Menu.ts
import { DebugLogger } from './DebugLogger';
import { Event } from './Event';
import { RectMode, rectModeChangeEvent, setRectMode } from './RectMode';
export enum ItemDecoration {
SELECTABLE,
BACK,
ICON_FOLDER,
ICON_LINK,
ICON_EQUALIZER,
ICON_FI... |
import { BrowserContext, Page, Protocol, CDPSession } from "puppeteer";
import { solveAmazonCaptcha } from "../../utils/amazon/captcha-detector";
import { logger, loggerWithId } from "../../utils/logger";
import { lastRequestHeadersCollector } from "../../browser-management/network-monitor";
import { createIncognitoBro... |
<reponame>ddusann/ts2yed<filename>src/objectStructure/FileDependency.ts
/**
* Copyright (c) 2019-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, inc... |
<gh_stars>10-100
import { ChannelData } from "./YtModel"
import { getJson, putJson, getJsonl } from "./Utils"
import _, { Dictionary, camelCase } from 'lodash'
import { DbModel } from './DbModel'
import { EsCfg, EsSearchRes, EsDocRes, EsDocsRes } from './Elastic'
import { uri, Uri } from './Uri'
import * as base64 from... |
import Logger, { setLogLevel } from 'src/logger'
import fs from 'fs'
import os from 'os'
import path from 'path'
import {
Bonders,
CommitTransfersConfig, Fees, Routes, Watchers,
defaultConfigFilePath,
setBonderPrivateKey,
setCommitTransfersConfig,
setConfigAddresses,
setConfigBonders,
setConfigByNetwork... |
// Type definitions for json-schema 4.0
// Project: https://www.npmjs.com/package/json-schema
// Definitions by: <NAME> <https://github.com/bcherny>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/// <reference types="node"/>
/**
* @see https://tools.ietf.org/html/draft... |
import { Interface } from '@ethersproject/abi';
import * as grpc from '@grpc/grpc-js';
import { TxExecution } from '../proto/exec_pb';
import { CallTx } from '../proto/payload_pb';
import { ExecutionEventsClient, IExecutionEventsClient } from '../proto/rpcevents_grpc_pb';
import { IQueryClient, QueryClient } from '../p... |
/**
* Copyright (c) <NAME> https://flsilva.com
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { forwardRef, Ref } from 'react';
import { View, ViewProps } from 'react-native';
import { MissingComponentThemeError } fro... |
<reponame>Moonpig/ag-psd
import {createCanvas} from 'canvas';
import {findPsdLayerById} from './findLayer';
import {LayerExtended, PsdExtended} from './ExtendedTypes';
export const recursiveListLayers = (layers: LayerExtended[], psd: PsdExtended): LayerExtended[] => {
let layersOut: LayerExtended[] = [];
for (let i... |
<gh_stars>0
/**
* @file configure
* @author <NAME> <<EMAIL>>
* @project @framework
* @license MIT {@link http://opensource.org/licenses/MIT}
*/
import * as ts from 'typescript'
import {exec, spawn} from 'child_process'
import {PluginFileHandler} from "@pomegranate/plugin-tools";
import {copy, emptyDir} from 'fs-ex... |
<gh_stars>1-10
import './test-helper';
import * as request from 'supertest';
import { Test } from '@nestjs/testing';
import { INestApplication, Injectable } from '@nestjs/common';
import { ShopifyAuthAfterHandler, ShopifyAuthModule } from '../src';
import Shopify, { SessionInterface } from '@shopify/shopify-api';
impo... |
import { Component, OnInit, Inject } from '@angular/core';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA, MatInput } from '@angular/material';
import { DataCommunicationService, OpportunitiesService } from '@app/core';
import { OrderService } from '@app/core/services/order.service';
import { opportunityTypeId } fro... |
import needle from 'needle';
import { APISnazError, APISnazIntegerFormat } from '../../util';
import { convert } from './turndown';
export type SteamProfileCountType =
| 'awards'
| 'badges'
| 'games'
| 'groups'
| 'reviews'
| 'friends'
| 'screenshots'
| 'workshop_files'
| 'guides'
| 'artwork'
| 'v... |
import FolderEntry, { FolderEntryType } from "../common/folder/FolderEntry";
import FTPConnection from "../common/ftp/FTPConnection";
import { addMessage } from "../common/ui/messages";
import { Packet, Packets } from "../protocol/packets";
interface PendingReply {
requestId: string;
handler: (data: any) => vo... |
import * as vscode from 'vscode';
import {isUndefined, isNull} from 'util';
export var term = vscode.window.createTerminal('bdd-output');
export class Record {
text = '';
file: vscode.Uri = vscode.Uri.prototype;
line: number = -1;
}
export class Search {
step_decs: Array<Record> = [];
step_files: Array<vscode.U... |
<reponame>bitjson/bitauth-npm-review<filename>src/configuration.ts
import { pathExists, readFile, writeFile } from 'fs-extra';
import * as pkgDir from 'pkg-dir';
// TODO: use?
// import * as stringifyPretty from 'json-stringify-pretty-compact';
import * as sortKeys from 'sort-keys';
import { resolveProjectRoot } from '... |
/* eslint-disable no-use-before-define */
import Vue from 'vue';
import Vuetify from 'vuetify';
import { render, fireEvent } from '@testing-library/vue';
import { Element } from '@reginaldlee/xml-js';
import store from '../store/index';
import * as gf from '../util/globalFunctions';
import ctyToBeLoaded from './cty';
... |
import React, { FunctionComponent } from 'react';
import { ConnectedProps, connect } from 'react-redux';
import { Helmet } from 'react-helmet-async';
import { Card, CardBody, CardHeader } from 'reactstrap';
import LogoOpenC2 from '../dependencies/img/openc2-logo.png';
import { RootState } from '../../reducers';
// Int... |
<reponame>tinesoft/release-github-actions<gh_stars>0
import fs from 'fs';
import moment from 'moment';
import path from 'path';
import { Logger, Command, Utils, GitHelper } from '@technote-space/github-action-helper';
import { GitHub } from '@actions/github/lib/github';
import { Context } from '@actions/github/lib/cont... |
<filename>packages/x-components/src/x-modules/facets/components/lists/__tests__/filters-search.spec.ts
import { Filter } from '@empathyco/x-types';
import { mount, Wrapper, WrapperArray } from '@vue/test-utils';
import Vue from 'vue';
import { getXComponentXModuleName, isXComponent } from '../../../../../components';
i... |
import {
createElement,
useRef,
useState,
useEffect,
CSSProperties,
useCallback,
useImperativeHandle,
} from 'rax';
import View from 'rax-view';
import findDOMNode from 'rax-find-dom-node';
import animate from 'universal-animation';
import { PullToRefreshState } from 'rax-pull-to-refresh-indicator';
imp... |
import chalk from 'chalk'
import fs from 'fs'
import os from 'os'
import { getBatteryLevel } from './commands'
import { CSV_SEPARATOR, DATA_FILENAME, DATE_FORMAT } from './constants'
import { BatteryLevel, Data, DateFormatted, HoursAndMinutes, Log } from './types'
import {
durationBetween,
durationToHoursAndMinutes... |
<gh_stars>1-10
import { injectable, inject } from "inversify";
import * as crypto from "crypto";
import log from "ts-log-class";
import * as jwt from "jsonwebtoken";
import * as Utils from "../utils";
import * as Models from "./models";
import * as Settings from "./settings";
export interface IRepo {
del(email: stri... |
<gh_stars>0
import { Location, History } from "history";
import { Key, pathToRegexp } from "path-to-regexp";
import React from "react";
export interface StaticContext {
statusCode?: number | undefined;
}
// export interface RouteComponentProps<
// Params extends { [K in keyof Params]?: string } = {},
// C exten... |
<reponame>AtomicFeasT/neo-expensive
interface iconsProps {
icon: 'alert' | 'danger' | 'success';
}
export const BaseMailTemplate = (email: string, { icon }: iconsProps) => {
let img = '';
switch (icon) {
case 'alert':
img = `
<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns... |
import fnName from "./fnName";
import clauseFromAlts from "./clauseFromAlts";
import { wall, any, zeroOrMore, and, cat, or, ExprClause, mapOf, maybe } from '../core';
import delayed from './delayed';
import match from './match';
import coerceIntoClause from './coerceIntoClause';
import { isStr, isPlainObj, instanceOf... |
import { parseHTML } from 'linkedom'
import { asyncIterableToStream } from 'whatwg-stream-to-async-iter';
import {
ParsedHTMLRewriterElement,
ParsedHTMLRewriterText,
ParsedHTMLRewriterComment,
ParsedHTMLRewriterDocumentType,
ParsedHTMLRewriterEnd,
promiseToAsyncIterable,
append,
treeWalkerToIter,
Awai... |
import { UUID } from "./uuid.ts";
import { BSONError, BSONTypeError } from "./error.ts";
import { Buffer } from "buffer";
import { concat, copy } from "https://deno.land/std@0.117.0/bytes/mod.ts";
export type BinarySequence = Uint8Array | number[];
export const enum BinarySizes {
BUFFER_SIZE = 256,
SUBTYPE_DEFAUL... |
/**
* @license
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
import net from 'net';
import tls from 'tls';
import url from 'url';
import {OutgoingHttpHeaders} from 'http';
import {Agent, ClientRequest, RequestOptions, AgentOptions} from 'agent-base';
import createDebug from 'debug'
import { Readable } from 'stream';
const debug = createDebug('ProxyAgent:Agent');
/**
* Credit ... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
import Planet from './Planet'
import Aspect from './Aspect';
import Person from './Person';
import { ChartDataArray, ChartType, ChartData, Point } from './Types'
import Sourcery from './Sourcery';
export class Chart {
_planets1: Array<Planet>;
_planets2: Array<Planet> = [];
_aspects: Array<Aspect> = [];
... |
import {
Message, MessageActionRow, ButtonInteraction, CacheType, MessagePayload, InteractionUpdateOptions, GuildMember,
} from 'discord.js'
import client from '../client'
import { ChSettingsData } from '../db/dbTypes'
import Managers from '../db/managers'
import { fetchMember, assignRoleById } from '../discUtils'
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.