text stringlengths 3.08k 15.5k |
|---|
'use strict';
import * as path from 'path';
import * as vscode from 'vscode';
import {ChildProcess, spawn} from 'child_process';
import {OSType, getOSType} from './utils';
import {Telemetry} from './telemetry';
const execa = require('execa');
const fs = require('fs');
export enum CLICommand {
LogsTail,
}
const cl... |
import { Inject, Injectable, Provider } from '@angular/core';
import { Http, Response } from '@angular/http';
import { Observable, Observer, Subscription, Subject } from 'rxjs/Rx';
import { EventName, Message } from './api';
import { ProcessStream, EditorStream } from './index';
import { InputStream } from './input.str... |
<filename>src/neuroglancer/datasource/precomputed/frontend.ts
/**
* @license
* Copyright 2016 Google 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/l... |
<gh_stars>0
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { FocusZoneProps, IFocusZone } from './FocusZone.types';
interface Point {
left: number;
top: number;
}
export declare class FocusZone extends React.Component<FocusZoneProps> implements IFocusZone {
static propTypes:... |
<filename>contract/src/lib/contracts/participant.spec.ts
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... |
<reponame>myazarc/hepsiburada-api<gh_stars>0
import { AxiosResponse } from "axios";
//#region getOrders
interface IGetOrdersQueryParams {
offset?: number;
limit?: number;
begindate?: string;
enddate?: string;
}
interface IPrice {
currency: string;
amount: number;
}
interface IHBDiscount {
totalPrice: I... |
<reponame>Schmongi/sfdx-jayree-plugin
/*
* Copyright (c) 2020, jayree
* 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
*/
import * as fs from 'fs';
import * as path from 'path';
import { ... |
import mx from "mx";
const { mxStencil, mxConstants, mxUtils, mxStencilRegistry, mxCellRenderer } =
mx;
import resources from "resources/resources";
const { STENCIL_PATH } = resources;
class StencilRegistry {
setGlobals() {
/**
* Overrides stencil registry for dynamic loading of stencils.
*/
/**
*... |
/** @format */
// import 'v8-compile-cache';
import program from 'commander';
import { execSync } from 'child_process';
import { common, logger, registerAction, configSet } from './utils';
import { PROCESS_ENV_TEMPLATE_NAME, DEFAULT_REGIRSTRY } from './constants/static-variable';
import path from 'path';
import os fro... |
import { RefObject } from "react";
import {RenderedStyles} from './CreatePropsObject';
class Square{
public size:number
private y_size:number
private x_pos:number
private y_pos:number
private start:{x:number,y:number,x_pos:number,y_pos:number,time:number}
private last:{x:number,y:number}
... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, enableProdMode, isDevMode, ErrorHandler } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { RouterModule } from '@angular/router';
import... |
<reponame>openharmony-gitee-mirror/third_party_jsframework<filename>runtime/vdom/Document.ts
/*
* 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 AS... |
<reponame>Lyrkan/fftt-server<gh_stars>1-10
import { Game, GameModel } from './model/game';
import { GameStatus } from '../common/statuses/game-status';
import { LoggerInterface } from '../common/logger/logger';
import { Matchmaker } from './matchmaker';
import { NodeNotFoundError } from './nodes/errors/node-not-found-e... |
import {ConnectionTransport} from 'puppeteer-core';
interface CDPCommand {
id: number;
method: string;
params: any;
sessionId?: string;
}
interface CDPCommandResponse extends CDPCommand {
error?: {
message?: string;
};
result?: any;
}
interface CDPEvent {
method: string;
params: any;
sessionI... |
import { existsSync } from 'fs';
import { join } from 'path';
import {
configLoader,
PluginResolution,
Logger,
debug,
lodash,
readPkg
} from '@walrus/shared-utils';
import {
ICommandOpts,
ICommandFun,
IRawArgs,
IConfig,
IArgs
} from '@walrus/types';
import helpCommand from './commands/help';
impor... |
<filename>mod.ts
import { difference, removeEmptyValues } from "./util.ts";
export interface DotenvConfig {
[key: string]: string;
}
export interface ConfigOptions {
path?: string;
export?: boolean;
safe?: boolean;
example?: string;
allowEmptyValues?: boolean;
defaults?: string;
}
interface ParseResult... |
<filename>packages/auth/server/resolvers/Auth.ts
import * as crypto from "crypto";
import { MergedServerContext } from "../../shared/types/PluginResolver";
import { roles, STATUS, UserList } from "../../shared/types/User";
import { AccountExistsError, InvalidEmailError, InvalidVerificationError } from "../Errors";
impo... |
<reponame>taoqf/lodash<gh_stars>1-10
/*
* @Author: taoqf
* @Date: 2016-06-15 11:59:02
* @Last Modified by: taoqf
* @Last Modified time: 2016-06-17 15:54:49
* @CopyRight 飞道科技
*/
import toString from './toString';
/** Used to match non-compound words composed of alphanumeric characters. */
const reBasicWord = /[... |
import { AxiosResponse } from "axios";
import _ from "lodash";
import { replaceUrl } from "./url";
import config from "../config";
const hrefRegex = /href=['"]((?:[^"'\/]*\/)*([^'"]+))['"]/g;
const srcRegex = /src=['"]((?:[^"'\/]*\/)*([^'"]+))['"]/g;
const srcsetRegex = /srcset=['"]([^'"]+)['"]/g;
const urlRegex = /ur... |
import { DynamoDB } from 'aws-sdk'
import {
BatchUploadDatabaseItem,
BatchUpload,
UploadResultStatus,
DownloadDatabaseItem,
reducedStatus,
File
} from '../model/Models'
import { DocumentClient } from 'aws-sdk/clients/dynamodb'
import * as AWS from 'aws-sdk'
// @ts-ignore
import dotenv from 'dotenv'
import {... |
<filename>server/src/input/pdf2json/pdf2json.ts
/**
* Copyright 2019 AXA Group Operations S.A.
*
* 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/LI... |
import { Box, CircularProgress, Paper, Typography } from '@material-ui/core'
import { getGearset } from 'parse/etro/parser'
import { Friend } from 'parse/fflogs/fight'
import { FFLogsParser } from 'parse/fflogs/parser'
import * as React from 'react'
import { RouteComponentProps } from 'react-router-dom'
import { Gear, ... |
import {
AccessoryConfig,
AccessoryPlugin,
API,
CharacteristicSetCallback,
CharacteristicValue,
HAP,
Logging,
Service
} from 'homebridge';
import { statSync } from 'fs';
import { setPwm } from 'pi-blaster.js';
import { promisify } from 'util';
import { SmartLedStripConfig } from './configTypes';
let ha... |
<filename>src/texture-screen.ts
import { debug_time, debug_timeEnd } from './debug'
import { GL_TEXTURE3, GL_TEXTURE_2D, GL_RGBA, GL_UNSIGNED_BYTE, GL_CLAMP_TO_EDGE } from './gl/gl-constants'
import { glSetTextureSampling } from './gl/gl-utils'
//import { createElement } from './page'
import { sin, TWO_PI, clamp } from... |
<filename>src/common.ts
import * as querystring from 'querystring';
import fetch, { RequestInit, Response } from 'node-fetch';
import { AuthenticationClient } from './authentication';
const RetryDelay = 10000; // Delay (in milliseconds) before retrying after a "202 Accepted" response
function sleep(ms: number) { retu... |
import React from 'react'
const fakeHost = `https://a.com`
interface ITransform {
code: string
local: boolean
scope: Record<string, any>
}
interface TransformReturnType {
result: string
imports: Record<string, any>
error?: Error
cssText?: string
}
interface ImportValue {
value: string
isDestructing: boolea... |
/* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
<reponame>notanengineercom/wotan
import { excludeDeclarationFiles, AbstractRule, Replacement } from '@fimbul/ymir';
import * as ts from 'typescript';
import { isReassignmentTarget, isSpreadElement, isArrayLiteralExpression, isSpreadAssignment } from 'tsutils';
@excludeDeclarationFiles
export class Rule extends Abstrac... |
import { Component, OnInit, AfterViewInit, DoCheck } from '@angular/core';
import { TableData } from '../../md/md-table/md-table.component';
import { LegendItem, ChartType } from '../../md/md-chart/md-chart.component';
import * as Chartist from 'chartist';
import { Articulo, Articulos, Usuario, Usuariovalid, Venta, Ve... |
import {
ICallout,
ICodeSample,
IPreprocessedItems,
} from 'kontent-docs-shared-code';
import { ISchemas } from '../generate/getSchemaObjects';
import {
getItemData,
getReferenceObject,
isNonEmptyTextOrRichTextLinksElement,
} from './helpers';
const html2commonmark = require('html2commonmark');... |
import {Inject, Injectable, InjectionToken} from "@angular/core";
import {DirectoryEntry, File, Flags} from "@ionic-native/file/ngx";
import {Platform} from "@ionic/angular";
import {UserEntity} from "../../../entity/user.entity";
import {DownloadRequestOptions, FILE_DOWNLOADER, FileDownloader} from "../../../providers... |
<filename>src/service.ts
/*
* Node Web Bluetooth
* Copyright (c) 2017 <NAME>
*
* The MIT License (MIT)
*
* 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... |
import { Databinder } from "jassijs/ui/Databinder";
import { Upload } from "jassijs/ui/Upload";
import { Textbox } from "jassijs/ui/Textbox";
import { Image } from "jassijs/ui/Image";
import { HTMLPanel } from "jassijs/ui/HTMLPanel";
import { Button } from "jassijs/ui/Button";
import { Repeater } from "jassijs/ui/Repea... |
<filename>codegen/automation/actions/model/fieldTypeDefinition.ts
/**
* Custom Workflow Actions
* Create custom workflow actions
*
* The version of the OpenAPI document: v4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not... |
<reponame>ant-design/sketch-json-api<filename>src/structures/Layer.ts
import { v4 } from "uuid";
import SketchType from "../types";
import { assignDeep } from "../utils";
export interface LayerConstrOpts {
class?: SketchType.LayerClass;
data?: any; // TODO: SketchType.Layer
}
const randomSymbolMaster = () => {
... |
import { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { sortArrayByObjectProperty } from '@ionaru/array-utils';
import { EVE, IUniverseTypeData, Mineral, Ore } from '@ionaru/eve-utils';
import { ITableHeader } from '../../components/sor-table/sor-table.component';... |
<reponame>tarojsx/history
import Taro from '@tarojs/taro'
import queryString from 'query-string'
interface TaroHistoryOptions {
/** app.config.js 内容, taro 3.0.0-rc.1 及以上可省略. */
appConfig?: Taro.AppConfig
}
export interface TaroHistoryRouterInfo {
path: string
params: Record<string, string>
query?:... |
import {Alert, Button, Col, Form, Row} from "react-bootstrap";
import {Formik} from "formik";
import * as Yup from "yup";
import React, {Component} from "react";
import {ConfigType} from "../Home";
import ContactFormField from "./ContactFormField";
import {APIError} from "../../utils";
type PropsType = {
initial_... |
import { IDocument, ITagNode } from 'svg-vdom';
import { IParamsOption, IPathResultItem, IRuleOption } from '../../typings';
import { douglasPeucker } from '../algorithm/douglas-peucker';
import { LineTypes } from '../const';
import { checkSubPath } from '../path/check-sub-paths';
import { doCompute } from '../path/do-... |
import React, { useContext, useRef } from 'react';
import { fade } from '@material-ui/core/styles';
import SearchIcon from '@material-ui/icons/Search';
import { nanoid } from 'nanoid/non-secure';
import Brightness4Icon from '@material-ui/icons/Brightness4';
import { toggleDarkTheme } from '../stores/themeStore';
import... |
<filename>src/compiler/copy/copy-tasks.ts
import * as d from '../../declarations';
import { catchError, normalizePath } from '../util';
export async function copyTasks(config: d.Config, compilerCtx: d.CompilerCtx, diagnostics: d.Diagnostic[], commit: boolean) {
if (!config.copy) {
config.logger.debug(`copy task... |
import clsx from "clsx";
import { GetServerSideProps } from "next";
import {
Dispatch,
ReactNode,
SetStateAction,
useEffect,
useRef,
useState,
} from "react";
import { io } from "socket.io-client";
import Container from "../components/ui/Container";
import Searchbox from "../components/ui/Searchbox";
import TextL... |
import {
ChangeDetectionStrategy,
Component,
ElementRef,
EventEmitter,
HostListener,
Inject,
LOCALE_ID,
OnInit,
QueryList,
ViewChildren,
ViewEncapsulation,
TrackByFunction
} from '@angular/core';
import { AbstractControl } from '@angular/forms';
import { BehaviorSubject } from 'rxjs';
import { ... |
<reponame>nsmarts-Jun/angular-simple-white-board
import { AfterViewInit, Component, ElementRef, Inject, OnDestroy, OnInit, Renderer2, ViewChild, HostListener } from '@angular/core';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { of, Subject, fromEvent } from 'rxjs';
import... |
<reponame>YBFACC/lc-tool
/**
* @license MIT
* @copyright 2020 YBFACC
*/
// AVL树节点
class AVLTreeNode {
val: number
height: number
left: AVLTreeNode | null
right: AVLTreeNode | null
left_count = 0
rihgt_count = 0
count = 1
constructor(val: number) {
this.val = val
this.left = this.right = null... |
import { Observable } from 'rxjs/internal/Observable'
export interface IListEffect<Payload = any, Actions = any> {
(
selector: IListEffectExtendsEffectSelector<Payload, Actions>,
actions: Actions
): void
}
export interface IListTableContext {
primaryKey: string
dataSource: any[]
loading: boolean
li... |
<reponame>ahmedmrefaat/lang
// Copyright 2017 <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 appl... |
<reponame>wallegame/obj_isaque<gh_stars>0
import { Command, Arguments, Server, CommonMessages, Permission } from "../../definitions";
import { Message, RichEmbed } from "discord.js";
import * as stringSimilarity from 'string-similarity';
import request from 'request';
import { JSDOM } from "jsdom";
import fs from 'fs';... |
import * as React from "react";
import PlotlyChart from 'react-plotlyjs-ts';
import * as Plotly from 'plotly.js'
import { any } from "prop-types";
//import { mergeClasses } from "@material-ui/styles";
var zerorpc = require('zerorpc');
type IntensityPlotDisplayProps = {
zerorcpPort: Number,
updateRate: Number
... |
<gh_stars>10-100
import _ from "lodash";
import * as Tone from "tone";
import { GlobalConfig } from "../config";
import { StatSnapshot } from "../stats";
import { randomItem, randomItems, roundUpToMultiple } from "../utils";
import { Module, PlaySettings } from "./types";
type DrumType = "kick" | "snare" | "hihat" | ... |
<gh_stars>0
// 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';
import * as fs from 'fs';
import * as cp from "child_process";
// this method is called when your extension is activated
// your ex... |
import loadable from "@loadable/component";
import Head from "next/head";
import React, { useMemo } from "react";
import { Column, useFilters, useSortBy, useTable } from "react-table";
import { PLURALIZED_METADATA_LABEL } from "src/common/constants/metadata";
import { ROUTES } from "src/common/constants/routes";
import... |
import { colors, path } from '../deps.ts'
import { existsDirSync } from '../shared/fs.ts'
import log from '../shared/log.ts'
import util from '../shared/util.ts'
import type { ServerRequest } from '../types.ts'
import { VERSION } from '../version.ts'
export const reLocaleID = /^[a-z]{2}(-[a-zA-Z0-9]+)?$/
export const ... |
<filename>src/travis.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import jsonlint from 'jsonlint'
import { Context, Logger } from 'probot'
import { Headers } from 'request'
import request from 'request-pr... |
// currently, attempting to squelch jsx-props-no-spreading on the 2 relevant lines
// (in Autocomplete.renderInput prop) causes the prod build (but *not* dev!) to fail
// by failing to render the second Autocomplete, so it is suppressed for the file
/* eslint-disable react/jsx-props-no-spreading */
import {
AppBar,
... |
import {RouteProp, useNavigation, useRoute} from '@react-navigation/native';
import {StackNavigationProp} from '@react-navigation/stack';
import React, {useEffect, useState, useLayoutEffect} from 'react';
import {
View,
StyleSheet,
SectionList,
SafeAreaView,
Text,
Button,
Image,
TouchableOpacity,
} from... |
<filename>lib/useCanvas.ts
import { useEffect, useRef, useState } from "react";
import { createContext } from "vm";
import History from "./history";
import { PenTool, EraserTool } from "./tools";
export enum Color {
black,
red,
orange,
yellow,
green,
blue,
purple,
pink,
white,
}
const COLORS = [
"#000000",
... |
export { Component, bound, element, property, state };
import { RawHandler, RawTemplate } from "./raw";
import { render } from "./render";
interface Component {
constructor: typeof Component;
}
type Constructable<T> = new () => T;
type Primitive = string | number | boolean;
type Structure = Record<string, unknown>... |
<reponame>petermezei/angular2-cli
import * as ts from 'typescript';
import {convertDecorators} from './decorator-annotator';
import {processES5} from './es5processor';
import {ModulesManifest} from './modules_manifest';
import {annotate} from './tsickle';
export enum Pass {
None,
DecoratorDownlevel,
Tsickle
}
... |
import { Context, State, addLocation, e, copyState } from './common';
import {
Label,
Command,
CommandParameter,
Identifier,
Literal,
CookedText,
Text,
Script,
Content,
Comment
} from './kstree';
import {
readNonQuoteString,
readSpaces,
curChar,
readQuotedString,
... |
import {
ConnectionResult,
GetMemberPlansArgs,
CreateMemberPlanArgs,
DBMemberPlanAdapter,
DeleteMemberPlanArgs,
InputCursorType,
LimitType,
MemberPlan,
MemberPlanSort,
OptionalMemberPlan,
SortOrder,
UpdateMemberPlanArgs
} from '@wepublish/api'
import {Collection, Db, FilterQuery, MongoCountPrefe... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
AppBar,
Button,
Card,
CardActions,
CardContent,
CardHeader,
Collapse,
Container,
CssBaseline,
Divider,
IconButton,
makeStyles,
TextField,
Toolbar,
Typography,
} from '@material-ui/core';
import { ExpandMoreOutlined } from '@m... |
// This is a modified version of react-monaco-editor found here: https://github.com/superRaytin/react-monaco-editor
// TODO: Move back to using the npm module. Blocked by adding support for the electron environment.
import * as React from 'react';
export interface ReactMonacoEditorProps {
width?: string | number;
... |
import { EventEmitter } from 'events';
export type prog = { name: string, progress: number, children: prog[] };
/**
* A class to track progress of, well, "things".
* You pass it a name and a promise returning function (e.g. an async function).
* This function will be called with "this" set to the Progress instance... |
import { createId } from './createId';
import { diff } from 'jsondiffpatch';
import { saveHistoryEntry } from './createHistoryEntry';
import { runEachSetStateEmitters, runSetStateDoneEmitters } from './delayedEmitters';
import {
maxDepthReached,
missingMutatorFunc,
missingOnDoneHandler,
missingOnErrorHandler,
miss... |
<reponame>awslabs/machine-downtime-monitor-on-aws<gh_stars>1-10
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import moment from 'moment';
import { IConfigItem, IMessageFormatConfigItem, IMachineConfigItem, ConfigType } from '../util/gql-schema-interfaces'... |
<filename>src/app/shared/models/badge.ts
/**
* A class to represent badges
* @class
*
* @property badge_id identification for a badge
* @property badge_photo photoname for the badge
* @property badge_description description what the badge is all about
* @property badge_conditions conditions needed to accomplish ... |
<filename>legacy/packages/soba/abstractions/src/lib/billboard/billboard.stories.ts
import { NgtOrbitControlsModule } from '@angular-three/controls/orbit-controls';
import { NgtCoreModule } from '@angular-three/core';
import { NgtGroupModule } from '@angular-three/core/group';
import {
NgtAmbientLightModule,
NgtPoin... |
<filename>src/lib/colorconversion.ts
// From https://stackoverflow.com/a/9493060/694640
/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0... |
<gh_stars>1-10
import express, {Application} from 'express';
import {ExtensionContext, log4File} from '@wfh/plink';
import _ from 'lodash';
import Path from 'path';
import _cors from 'cors';
let log = log4File(__filename);
// let swig = require('swig-templates');
interface RouterDefCallback {
(app: Application, exp... |
import {$} from 'chrome://resources/js/util.m.js';
import {AudioBroker} from './audio_broker.js';
import {Page, PageNavigator} from './page.js';
export class InputPage extends Page {
testInputFeedback: Map<string, null|string>;
private analyserLeft?: AnalyserNode;
private analyserRight?: AnalyserNode;
privat... |
import { useState, useLayoutEffect } from 'react';
import dot from 'dot-object';
import _ from 'lodash';
import axios, { AxiosResponse } from 'axios';
import { ICreate, IObjectKeys, IStore, ICache, IApiAction } from './types';
import pubSub from './pubsub';
import { update } from '../utils';
import { devToolsConnect, ... |
import { Typography } from 'antd';
import getQueryResult from 'api/widgets/getQuery';
import Spinner from 'components/Spinner';
import GridGraphComponent from 'container/GridGraphComponent';
import getChartData from 'lib/getChartData';
import GetMaxMinTime from 'lib/getMaxMinTime';
import GetStartAndEndTime from 'lib/g... |
<filename>spec/indent-detective-spec.tsx
import path from "path"
import { TextEditor } from "atom"
import { IndentSetting } from "../src/indent-detective"
import { StatusBar, Tile } from "atom/status-bar"
// IndentView (it only has the fields that are needed)
interface IndentView {
items: IndentSetting[]
elem... |
/* eslint-disable no-use-before-define */
/* eslint-disable no-underscore-dangle */
import Icon from "./style-guide/Icon";
import type { IconPropsType } from "./style-guide/Icon";
const sg = "sg-button";
const SGD = `${sg}--`;
/**
* @param {ButtonElement} that
* @returns {JQueryButtonElement}
*/
function Identify$... |
import * as React from "react"
import { Editor, EditorState, ContentState, convertFromRaw, RawDraftContentState } from "draft-js"
import { Layer, LayerProps } from "./Layer"
import { ConstraintProperties, ConstraintValues, UserConstraintValues } from "../types/Constraints"
import { draftStyleFunction } from "../style/d... |
import { Vec3 } from '../math/Vec3';
const CATMULLROM = 'catmullrom';
const CUBICBEZIER = 'cubicbezier';
const QUADRATICBEZIER = 'quadraticbezier';
// temp
const _a0 = new Vec3(),
_a1 = new Vec3(),
_a2 = new Vec3(),
_a3 = new Vec3();
/**
* Get the control points of cubic bezier curve.
* @param {*} i
*... |
/* eslint-disable no-console */
/* eslint-disable no-alert */
/* eslint-disable no-restricted-globals */
/* eslint-disable react/jsx-curly-newline */
/* eslint-disable react/jsx-props-no-spreading */
/* eslint-disable react/display-name */
import React, { forwardRef, useState, useEffect } from 'react';
import { Connect... |
import bundle from './validation.nls';
import { create } from '@dojo/framework/core/vdom';
import i18n from '@dojo/framework/core/middleware/i18n';
const upperCaseRegEx = /[A-Z]/;
const numbersRegEx = /\d/;
interface LengthMin {
min: number;
max?: number;
}
interface LengthMax {
min?: number;
max: number;
}
int... |
<reponame>momocow/HanaYome
import * as electron from 'electron'
import * as channels from '../../channels'
import * as config from '../../util/config'
import * as globals from '../../view/globals'
import { ViewLogger } from '../../view/service/logging'
import { $ } from '../../view/jquery'
const translate = electron.... |
<reponame>stodan/maas-schemas
/*
undefined
MaaS schema for address related information
!!! AUTO GENERATED BY CONVERT.TS REFRAIN FROM MANUAL EDITING !!!
*/
import * as t from 'io-ts';
import * as Common_ from 'maas-schemas-ts/core/components/common';
import { NonEmptyArray } from 'fp-ts/lib/NonEmptyArray';
import { ... |
import create, { State } from "zustand";
import { combine } from "zustand/middleware";
import useMediaConfigurations from "./useMediaConfiguration";
import { usePeerCallState } from "../../providers/PeerCallWrapper";
interface IUseMediaStreamState extends State {
mediaStream: MediaStream;
displayMediaStream: Media... |
/* eslint-disable camelcase */
import * as R from 'ramda';
import def from './IndicateSightedDefinition';
import { STIX_SIGHTING_RELATIONSHIP } from '../../schema/stixSightingRelationship';
import type { StixRelation, StixSighting } from '../../types/stix-sro';
import type { Event } from '../../types/event';
import { S... |
import {
workspace as Workspace,
window as Window,
WorkspaceFolder
} from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
import * as os from 'os';
import { execSync } from 'child_process';
import * as detectIndent from 'detect-indent';
import * as findUp from 'find-up';
import phpfmt from 'phpf... |
import React, { FC, useState } from 'react';
import { useParams } from 'react-router-dom';
import { observer, inject } from 'mobx-react';
import Store from '../../store';
import ReactModal from 'react-modal';
import { Box, IconButton, Button, Typography } from '@material-ui/core';
import { Delete as DeleteIcon, Edit ... |
import * as Https from "https"
import { URL } from "url"
import { RocketChatStatus } from ".."
import { logMessage } from "./internals"
/**
* Builds a request options object used by the Node.js HTTPS client from the
* given base URL and API request options.
* @param serverUrl The base URL used to create the URL for... |
import { trimCanvas } from './trimCanvas';
export interface IFont {
name: string;
size: number;
}
export interface IPoint {
x: number;
y: number;
}
export interface IDrawTextResult {
canvas: HTMLCanvasElement;
cursor: IPoint;
lines: string[];
}
export const TextAlign = {
CENTER: 'center',
LEFT: 'l... |
<filename>application/application/src/app/app.component.ts
import { Component, OnInit } from '@angular/core';
import { Platform, ToastController } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AuthConfig, OAuthS... |
<filename>src/core/decorators.ts
import { pick, debounce } from "../helpers/util";
import { queryToState, stateToQuery, IQueryParser, IQueryStringify } from "../helpers/convert";
import { filterQuery } from "../helpers/url";
import { isArray, isObject } from "../helpers/type";
import { deepEqual } from "../helpers/deep... |
<reponame>pritamkhose/MyCRM
import { Component, OnInit, Inject } from "@angular/core";
import { MatDialog, MAT_DIALOG_DATA, MatDialogRef } from "@angular/material";
import { Router } from "@angular/router";
import { environment } from "../../environments/environment";
import { HttpResponse, HttpEventType } from "@angu... |
let TODOS: TodoListType;
const initData = [
{
id: 1,
name: "吃饭",
isCompleted: true
},
{
id: 2,
name: "睡觉",
isCompleted: false
},
{
id: 3,
name: "打豆豆",
isCompleted: false
}
];
TODOS = initData;
// 初始化
renderTodoList();
function createElementFromHTML(htmlString: string) ... |
import React, { useState } from 'react'
import { signInWithPopup, GoogleAuthProvider } from 'firebase/auth'
import Avatar from '@mui/material/Avatar'
import Button from '@mui/material/Button'
import Paper from '@mui/material/Paper'
import Box from '@mui/material/Box'
import Grid from '@mui/material/Grid'
import LockOu... |
import { FurAffinityRequest } from './fur-affinity-request';
import { Parser } from './parsers';
import { Extension } from './extension';
import { StorageFields } from './interfaces/storage-fields.interface';
import { RecordCollection } from './interfaces/record-collection.interface';
import { RecordPlural } from './en... |
import { createTransformer } from "mobx-utils";
import defined from "terriajs-cesium/Source/Core/defined";
import isDefined from "../Core/isDefined";
import loadXML from "../Core/loadXML";
import makeRealPromise from "../Core/makeRealPromise";
import TerriaError from "../Core/TerriaError";
import xml2json from "../Thir... |
// tslint:disable:max-classes-per-file
import * as fs from 'fs';
import * as path from 'path';
import * as util from 'util';
import Logger from '../tools/env.logger';
import guid from '../tools/tools.guid';
import ServicePaths from '../services/service.paths';
// tslint:disable-next-line:no-var-requires
const GitHub... |
import { EmbedField, MessageEmbed } from 'discord.js';
import { IKamihimeDB, IKamihimeFandom, IKamihimeFandomFormatted } from '../../../../typings';
import IErosClientOptions from '../../../../typings/auth';
import C from '../../../util/Constants';
import ErosClient from '../../ErosClient';
// eslint-disable-next-line... |
<gh_stars>100-1000
import {
DefaultTreeCommentNode,
DefaultTreeDocument,
DefaultTreeDocumentType,
DefaultTreeElement,
DefaultTreeNode,
DefaultTreeTextNode,
} from 'parse5';
import { Options } from './Options';
import PugNode from './PugNode';
// Defines the type of parsed HTML nodes.
export enum Nodes {
... |
/* Angular components */
import { BrowserModule } from "@angular/platform-browser";
import { CommonModule, HashLocationStrategy, LocationStrategy } from "@angular/common";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { Http, HttpModule, RequestOptions, XHRBackend } from "@angular/http";
imp... |
<reponame>ErwannGui/Project-Angular
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
// import Data from '../assets/data.json';
export class City {
private name: string;
private options: any;
public data: any;
construct... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CalendarComponent } from './calendar.component';
import { CalendarModule, CalendarUtils, CalendarDateFormatter, DateAdapter, CalendarEvent } from 'angular-calendar';
import { HttpClientTestingModule, HttpTestingController } from '@angul... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.