text stringlengths 3.3k 33k |
|---|
import React, {Fragment, useCallback, useEffect, useRef, useState} from 'react'
import {Dialog, Listbox, Transition} from '@headlessui/react'
import {CheckIcon, PlusIcon, SelectorIcon} from '@heroicons/react/solid'
import classNames from 'classnames'
import {useSelector} from 'react-redux'
import {IFunnel} from '../../... |
<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { User } from '@app/_models';
import { FormGroup, FormBuilder, FormControl, Validators, ControlContainer } from '@angular/forms';
import { AuthenticationService } from '@app/_services/authentication.service';
import { EmployeeService } from '@app/_se... |
<gh_stars>0
import Chart from "chart.js";
import { ResultsPresenter } from "../../Services/MusicGenreClassifier";
import AudioClipClassificationResults from "../../Entities/AudioClipClassificationResults";
const CHART_FONT_COLOR = "white";
Chart.defaults.global.defaultFontColor = CHART_FONT_COLOR;
export default c... |
import * as React from 'react';
import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import FormControl from '@material-ui/core/FormControl';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Checkbox from '@material-ui/core/Checkbox';
import Input from '... |
<filename>plugins/plugin-chart-echarts/src/Graph/transformProps.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 ASF licenses this file
* t... |
import {
ActionInput,
ActionType,
ExecutedAction,
IntendedAction,
StakeTokensAction,
StakeTokensInput,
TransferTokensAction,
TransferTokensInput,
UnstakeTokensAction,
UnstakeTokensInput,
} from '../actions'
import {
TransactionIntent,
TransactionIntentBuilderDoNotEncryptInput,
TransactionIntentBuilderDoNot... |
import * as React from 'react'
import Typography from '@material-ui/core/Typography'
import Grid from '@material-ui/core/Grid'
import { Link } from 'react-router-dom'
import Paper from '@material-ui/core/Paper'
import ThumbsUpDownIcon from '@material-ui/icons/ThumbsUpDown'
import VisibilityIcon from '@material-ui... |
<gh_stars>0
/* eslint-disable camelcase */
import * as gql from "gql-query-builder";
import IQueryBuilderOptions from "gql-query-builder/build/IQueryBuilderOptions";
import Request from "..";
type CommonSuccessResponseDataType = { success: true };
type CommonFailedResponseDataType = {
success: false;
message?: str... |
<reponame>fram-x/react-native-fluid
import { Animations, AnimationNode } from "./types";
import { DefaultTime } from "../../Utilities";
import * as Constants from "../../Types/Constants";
import { TransitionItem } from "../../Components/Types/TransitionItem";
import { InterpolationInfo } from "../../Components/Types/In... |
<reponame>human-crafted/mds-core
/*
Copyright 2019 City of Los Angeles.
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
Unles... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {shallow, mount} from 'enzyme';
import {FormattedMessage, IntlProvider} from 'react-intl';
import AlertBanner from 'components/alert_banner';
import LoadingScreen from 'com... |
<filename>swim-js/swim-toolkit/swim-maps/swim-map/src/main/geo/GeoView.ts<gh_stars>100-1000
// Copyright 2015-2021 Swim.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:... |
/*******************************************************************************
* Copyright 2019 Cognizant Technology Solutions
*
* 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
*
* ... |
<gh_stars>0
import * as React from 'react';
import { ownerDocument } from '@material-ui/core/utils';
import { GridEvents } from '../../constants/eventsConstants';
import { GridApiRef } from '../../models/api/gridApiRef';
import {
GridContainerProps,
GridScrollBarState,
GridViewportSizeState,
} from '../../models/... |
/*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import { DApplications } from "./d-applications";
import { DBaseShadow } from "./d-base";
import {
DCanvasContainer,
DCanvasContainerEvents,
DCanvasContainerOptions,
DThemeCanvasContainer
} from "./d-canvas-container";
import {... |
/* jslint node: true */
import cloneDeep from 'lodash.clonedeep'
import debug from 'debug'
import merge from 'lodash.merge'
import util from 'util'
import EventEmitter from 'events'
const log = debug('sourced')
/**
* Extending native Error.
*
* @class {Function} EntityError
* @param {String} msg The error messag... |
<filename>src/util/types.ts<gh_stars>10-100
/* Types are based on responses for Volvo 2020 XC60 T8 */
export interface Config {
readonly name: string;
readonly region: string;
readonly email: string;
readonly password: string;
// Optional values
readonly VIN?: string;
readonly updateInterval: number; // s... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import * as vscode from 'vscode';
import { AzExtTreeItem, AzureParentTreeItem, IActionContext, TreeItemIconPath } from 'vscode-azureextensionui';
import { AzureSubscriptionTreeItem } from './AzureSubscriptionTreeItem';
import { DataFilterParent... |
import { observer, disposeOnUnmount } from "mobx-react";
import { observable, autorun, computed, action, runInAction } from "mobx";
import * as React from "react";
import * as classNames from "classnames";
import { Rectangle, Point } from "../../utils/Point";
import { SvgLine } from "../../utils/SvgElements";
// import... |
import * as dom from './dom';
import * as patch from './patch';
import * as utils from './utils';
/**
* DOMChange defines a type which represent a string of html, a DocumentFragment containing
*
*/
export type DOMChange = string | DocumentFragment | patch.JSONNode;
/**
* EventHandler defines a function interface ... |
import type { IElement, IGroup, IShape, ShapeAttrs } from '@antv/g-canvas';
import { Group } from '@antv/g-canvas';
import { each, get } from 'lodash';
import type { PointObject, ScrollBarCfg } from './interface';
import { ScrollBarTheme } from '@/common/interface/theme';
import { MIN_SCROLL_BAR_HEIGHT } from '@/common... |
<reponame>yiminghe/kison<gh_stars>10-100
// TODO: improve Tuple type
type Optional<T> = T | undefined;
type OneOrMore<T> = T extends Array<infer U> ? [...T, ...U[]] : [T, ...T[]];
type ZeroOrMore<T> = T extends Array<infer U> ? U[] : T[];
export type AstNode = AstSymbolNode | AstTokenNode;
// replace start
export typ... |
<reponame>Lixfeld/vscode-gdt-extension
export const recordTypes: {[key: string]: string} = {
'6300': 'Stammdaten anfordern',
'6301': 'Stammdaten übermitteln',
'6302': 'Neue Untersuchung anfordern',
'6303': 'Angeforderte Untersuchung stornieren',
'6310': 'Daten einer Untersuchung übermitteln',
'6... |
<gh_stars>1-10
/**
* utils
*/
import { StructureTree } from '@fatesigner/utils/structure-tree';
import { isNullOrUndefined } from '@fatesigner/utils/type-check';
import { IMenu } from '@/app/types/menu';
import { IRouteConfig } from '@/app/types/route';
/**
* 高亮搜索关键字
* @param keywords
* @param text
* @param cl... |
<reponame>yotamberk/ansyn
import { ProjectableRaster } from '@ansyn/ol';
// skipOnValue is the value which the image do not require any processing (e.i. the natural/default value)
export const IMG_PROCESS_ORDER = [
{ ArgumentName: 'Histogram', skipOnValue: 0 },
{ ArgumentName: 'Gamma', skipOnValue: 100 },
{ Argumen... |
import { Entity, AliveTag } from "../BuiltinComponents";
import { IComponentRawArray, ComponentDataArray } from './ComponentDataArray';
export interface IComponentCtor<T> {
new(): T;
createRawArray(capacity: number): IComponentRawArray<T>;
isSystemState?: true;
}
export class Archetype {
private stati... |
<filename>src/services/userPoolService.ts
import {
AttributeListType,
AttributeType,
MFAOptionListType,
SchemaAttributesListType,
UserPoolType,
UserStatusType,
} from "aws-sdk/clients/cognitoidentityserviceprovider";
import { InvalidParameterError } from "../errors";
import { AppClient, newId } from "./appC... |
<gh_stars>1-10
import {
addPath,
indefinite,
isPlainObject,
Path,
UnexpectedValueError,
UnreachableValueError,
} from '@prismamedia/graphql-platform-utils';
import {
GraphQLBoolean,
GraphQLInputFieldConfig,
GraphQLInputFieldConfigMap,
GraphQLInputObjectType,
} from 'graphql';
import { camelize } fro... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) <NAME>. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* -------------------------------------------------------------------------------... |
<reponame>osommersell264/shiny
import $ from "jquery";
import { triggerFileInputChanged } from "../events/shiny_inputchanged";
import { $escape } from "../utils";
import { ShinyApp } from "../shiny/shinyapp";
import { getFileInputBinding } from "../shiny/initedMethods";
type JobId = string;
type UploadUrl = string;
ty... |
<gh_stars>0
//
// Copyright ( c ) 2550/2007, autotelicum/Hoigaard,
// http://musprite.sourceforge.net.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of sourc... |
// Copyright (c) 2018 Covalent IO
import chalk from "chalk";
import * as child_process from "child_process";
import * as diff from "diff";
import * as editdistance from "fast-levenshtein";
import * as hash from "object-hash";
import * as jp from "jsonpath-plus";
import * as yargs from "yargs";
interface ILabels {
[... |
<reponame>ssb-ngi-pointer/manyverse-with-index-feeds
// SPDX-FileCopyrightText: 2018-2021 The Manyverse Authors
//
// SPDX-License-Identifier: MPL-2.0
import xs from 'xstream';
import {PureComponent, ReactElement} from 'react';
import {
View,
StyleSheet,
NativeScrollEvent,
Animated,
Easing,
ViewStyle,
Pl... |
<gh_stars>0
import { CraiIndex, IndexedCramFile } from '@gmod/cram'
import {
BaseFeatureDataAdapter,
BaseOptions,
} from '@jbrowse/core/data_adapters/BaseAdapter'
import { Region } from '@jbrowse/core/util/types'
import { checkAbortSignal } from '@jbrowse/core/util'
import { openLocation } from '@jbrowse/core/util/... |
/**
* think 子域名模块
* 该模块可以轻松的实现二级, 三级甚至更多的域名
*/
// 加载模块
import * as fs from 'fs';
import * as path from 'path';
import think from './../think';
import * as cluster from 'cluster';
// 用户接口地址, 开启子域后只针对www域名生效
const {option, tool} = think;
const __ISMASTER: boolean = cluster.isMaster;
// 设置常量
const THINK_USER_PATH: s... |
/* eslint-disable no-return-assign */
import React, { Component } from 'react';
import _get from 'lodash/get';
import { View, Animated, StyleSheet, Image, Easing, StyleProp } from 'react-native';
import {
getOptionsByType,
getCurtainGestureByType,
createCurtainPanResponder,
parseImageSource,
} from './utils';
... |
<filename>gulpfile.ts
import { paths, dist } from './config/config';
const gulp = require('gulp');
const server = require('browser-sync').create();
const Mem = require('gulp-mem');
const prefixer = require('gulp-autoprefixer');
const concat = require('gulp-concat');
const filter = require('gulp-filter');
const sass = ... |
import { AnonymizedSuperJsonDocument } from '@superfaceai/ast';
import createDebug from 'debug';
import { FailurePolicyReason } from '../client/failure/policy';
import { Config } from '../config';
import {
FetchInstance,
JSON_CONTENT,
stringBody,
} from '../internal/interpreter/http/interfaces';
import { SuperJs... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
import React, { useMemo, useState } from 'react'
import { useRouter } from 'next/router'
import 'focus-visible'
import { SkipNavContent } from '@reach/skip-nav'
import { ThemeProvider } from 'next-themes'
import { Heading, PageMapItem, PageOpt } from 'nextra'
import cn from 'classnames'
import Head from './head'
import... |
<filename>src/app/money/analytics/label-breakdown.component.ts<gh_stars>0
import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
import { ChartData, ChartTooltipCallback, ChartTooltipItem } from 'chart.js';
import { getPaletteColor } from 'src/app/core/color-util';
import { Ke... |
import { catchError, filter, exhaustMap, merge, map, Subject, switchMap, shareReplay, distinctUntilChanged, of, Observable, BehaviorSubject, first } from 'rxjs';
import { Component, Input, EventEmitter, Output, OnDestroy, ElementRef, HostListener, ChangeDetectorRef, Directive } from '@angular/core';
import { DbxInjecti... |
/*class Greeter {
element: HTMLElement;
span: HTMLElement;
timerToken: number;
constructor(element: HTMLElement) {
this.element = element;
this.element.innerHTML += "The time is: ";
this.span = document.createElement('span');
this.element.appendChild(this.span);
... |
<gh_stars>10-100
import {igFont, igFontAlign} from '@city41/impact.ts/dist/font';
import {igGame} from '@city41/impact.ts/dist/game';
import {igImage} from '@city41/impact.ts/dist/image';
import {KEY} from '@city41/impact.ts/dist/input';
import {ig, main} from '@city41/impact.ts/dist/impact';
import {Camera} from '../p... |
<filename>datepicker/src/lib/calendar.ts
/**
* @license
* Copyright Google LLC 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 {
AfterContentInit,
AfterViewChecked,
ChangeDetectionStrategy,
... |
<reponame>AshishKapoor/rill-developer<filename>src/lib/util/model-structure.test.ts
import { extractCTEs, extractCoreSelectStatements, extractFromStatements, extractCoreWhereClauses, extractJoins } from "./model-structure";
const q1 = `
WITH cte1 AS (
SELECt * from tbl1 LIMIT 100
),
cte2 AS (
SELECT * from cte... |
<gh_stars>1-10
import {
ILogger,
noop,
} from '@aurelia/kernel';
import {
observable,
} from '@aurelia/runtime';
import {
SortOption,
} from './sorting-options.js';
import {
Writable
} from './util.js';
const defaultPageSize = 50;
/**
* Handles the data part of the grid.
* This has very ... |
<reponame>jonathonherbert/prosemirror-typerighter
import clamp from "lodash/clamp";
import { Node } from "prosemirror-model";
import { TextSelection } from "prosemirror-state";
import { findParentNode } from "prosemirror-utils";
import { IRange } from "../interfaces/IMatch";
import { IBlock } from "../interfaces/IMatch... |
import React from 'react';
import {
Avatar,
Badge,
Box,
Button,
Code,
HStack,
Heading,
IconButton,
LinkBox,
LinkOverlay,
Menu,
MenuButton,
MenuDivider,
MenuItem,
MenuList,
Portal,
Text,
Wrap,
WrapItem,
} from '@chakra-ui/react';
import { useTranslation } from 'react-i18next';
impo... |
import { promises as fs } from 'fs'
import { resolve, join } from 'path'
import * as Shell from 'shelljs'
import { ParseFeRouteItem } from 'ssr-types'
import { getCwd, getPagesDir, getFeDir, accessFile } from './cwd'
import { loadConfig } from './loadConfig'
const debug = require('debug')('ssr:parse')
const { dynamic,... |
import { ID, Ent, Viewer, EdgeQueryableDataOptions, Data } from "../base";
import { DefaultLimit, getCursor } from "../ent";
import * as clause from "../clause";
import memoize from "memoizee";
export interface EdgeQuery<T extends Ent, TEdge extends Data> {
// if more than one, the single-version methods should thro... |
import React, { useCallback, useEffect, useMemo, useState } from "react";
import {
MultiSelect,
MultiSelectProps,
MultiSelectorData,
SelectorLruOptions,
} from "../../standalone";
import Model, {
ModelFieldName,
PageVisibility,
} from "../../backend-integration/Model/Model";
import { debouncePromise } from "../..... |
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { V1Deployment, V1DeploymentList, V1ObjectMeta, V1Pod, V1ReplicaSet, V1ReplicaSetList } from "@kubernetes/client-node";
import { Ago } from "azure-devops-ui/Ago";
import { CardContent, CustomCard } from "azur... |
/* GENERATED FILE */
import { useContext } from "solid-js";
import { IconContext } from "../lib";
const renderPathFor = (weight: string, color: string) => {
switch (weight) {
case "bold":
return (
<>
<rect x="56" y="32" width="144" height="192" rx="71.99993" stroke-width="24" stroke={co... |
import { EncryptionType, JSONContainerData, KeyDerivationFunction } from "../CustomTypes.js";
import { encrypt, decrypt, hash, getRandomBytes, algorithmIvBytes } from "./CryptoFunctions.js";
import { log, convertToUint8Array, convertToBase64, convertFromBase64, compareArrays } from "../Functions.js";
import { Identity ... |
import { XMutationObserver } from '../lib/XMutationObserver';
interface NodeData {
/**
* Unique identifier of node
*/
id: number;
/**
* With each update of node, this value increase
*/
updateId: number;
/**
* Context who contains `updateId` when was translate in last time
*/
translateContext: numbe... |
interface IN {
VERSION: string;
url: string;
debug: boolean;
compression: boolean;
secured: boolean;
maxIdle: number;
maxConnections: number;
requestQueue: Array<Noaj.Request>;
requestQueueLock: boolean;
connections: Array<Noaj.Connection>;
gc(): void;
autoGc(): void;
... |
<gh_stars>100-1000
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ---------------------------------------------... |
<filename>src/breakpoints.ts
import { DebugProtocol as VSCodeDebugProtocol } from 'vscode-debugprotocol'
import * as vscode from 'vscode-debugadapter'
import { EventEmitter } from 'events'
import * as xdebug from './xdebugConnection'
import * as util from 'util'
export declare interface BreakpointManager {
on(even... |
<filename>src/engine/template-engine.ts
import { Expression } from 'expression-engine'
import { Template, TemplateContent, StyleGuide } from '../model'
import { layoutFlex } from './layout-engine'
import { evaluate, evaluateSizeExpression, evaluateUrlExpression, evaluateTextExpression, evaluateFontSizeExpression, eval... |
import { DateTime } from "luxon";
import QueryString from "qs";
import React, { useEffect, useMemo, useState } from "react";
import { useHistory, useLocation, useParams } from "react-router";
import { Button, Container, Dimmer, Divider, Form, Grid, Header, Icon, Loader, Message, Progress, Segment, Table } from "sem... |
import { createElement } from 'react';
import createListComponent, { defaultItemKey, State } from './createListComponent';
import ItemMeasurer from './ItemMeasurer';
import { Props, ScrollToAlign } from './createListComponent';
const DEFAULT_ESTIMATED_ITEM_SIZE = 50;
type DynamicProps = Props<any> & {
estimatedIt... |
declare const module: { exports?: { [name: string]: any } };
module.exports = {};
interface Context {
root: any,
current: any,
path: string,
errors: { [name: string]: ValError }
[name: string]: any
}
interface ValError {
field: string,
msg: string
}
interface Validator<T> {
(ctx: Cont... |
import * as React from 'react';
import Typography from '@material-ui/core/Typography';
import * as Model from '../../../modules/products/model';
import CircularProgress from '@material-ui/core/CircularProgress';
import { CustomSnackbar, SnackbarType, SnackbarTypeEnum } from '../../../widgets/custom-snackbar';
import Ta... |
import React, { useState, createRef } from 'react';
import { IoCloseCircleOutline } from 'react-icons/io5';
import { FiEye, FiEyeOff } from 'react-icons/fi';
import Modal from 'react-modal';
import Resizer from "react-image-file-resizer";
import api from '../services/api';
import tokenCredentials from '../services/tok... |
<gh_stars>10-100
import {
DataGrid,
BasicKeyHandler,
BasicMouseHandler,
BasicSelectionModel,
DataModel,
MutableDataModel,
CellRenderer,
TextRenderer
} from '@lumino/datagrid';
import { StackedPanel } from '@lumino/widgets';
import { Signal } from "@lumino/signaling";
import {
ITrans... |
import * as cache from '@actions/cache'
import * as core from '@actions/core'
import crypto from 'crypto'
import {promises as fs} from 'fs'
import PromisePool from 'native-promise-pool'
import * as path from 'path'
import recursiveReaddir from 'recursive-readdir'
import format from 'string-format'
import {CommandHelpe... |
import { Lexer } from "../src/lexer";
import type { Token } from "../src/token";
import {
AnnotationToken,
ArraySymbolToken,
ColonSymbolToken,
CommaSymbolToken,
CurlyCloseSymbolToken,
CurlyOpenSymbolToken,
EnumKeywordToken,
EqualSymbolToken,
ErrorKeywordToken,
ExclamationMarkSymbolToken,
FnKeyword... |
import React, { useEffect } from "react";
import * as d3 from "d3";
import { ProvideGraph } from "../api/models/ProvideGraph";
import { FindNode } from "../api/models/FindNode";
interface ProvideChartProps {
data: ProvideGraph;
}
function renderChartFn(graphData: ProvideGraph) {
const margin = { top: 30, right: 3... |
// <copyright file="close-project-page.tsx" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
import * as React from "react";
import { ItemLayout, Flex, Image, Text, CloseIcon, Button } from "@fluentui/react-northstar";
import * as microsoftTeams from "@microsoft/teams-js";
import ... |
<reponame>gogi2811/vscode-blockman<filename>src/pythonAlgos/python-algo.ts<gh_stars>0
// if (workString[i] === coolStartIndicator) {
// allStartEndIndicators.push({
// globalIndexZero: i,
// lineZero: currLineZero,
// inLineIndexZero: currInLineIndexZero,
// type: "s",
// });
// ... |
import React from 'react';
import { InteractionManager, StyleSheet, Text, TouchableOpacity, View, Image } from 'react-native';
import PropTypes from 'prop-types';
import Toast from 'react-native-root-toast';
import PickList from '@hecom/react-native-picklist';
import i18n from 'i18n-js';
import ArrowImage from '@hecom/... |
import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import TextField from '@material-ui/core/TextField';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-... |
import { assert } from "node-opcua-assert";
import { NodeClass, QualifiedName } from "node-opcua-data-model";
import { makeNodeId, NodeId, NodeIdLike, NodeIdType, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
import { LineFile } from "node-opcua-utils";
import {
BaseNode as BaseNodePublic,
UAReferenceT... |
import React, { useEffect, useState, useReducer, useMemo } from 'react';
import { useParams, useDispatch, useSelector, history } from 'umi';
import { getStringDay } from '@/utils/utils';
import throttle from 'lodash/throttle';
import classnames from 'classnames';
import { Helmet } from 'react-helmet';
import { Skeleton... |
<gh_stars>1-10
import * as PIXI from 'pixi.js';
export type ColorType = number;
export type CoordsType = {
x: number;
y: number;
};
const styleFontTextPipe = new PIXI.TextStyle({
fontFamily: 'Arial',
fontSize: 18,
fill: 'black',
stroke: '#000000',
// strokeThickness: 0,
// dropShadow: tru... |
<reponame>AliceHsieh/pragma
import * as _ from "lodash";
export enum Entity {
OBSTRUCTED,
UNOBSTRUCTED,
WINDMILL,
REACTOR,
PYLON,
TREE,
ORCHARD,
FARM,
MINE,
FORGE,
FACTORY,
HOSPITAL,
WEAPON,
GREENHOUSE,
VAULT,
}
export enum GridMode {
VIEW_MODE,
BUILD_MODE,
DELETE_MODE,
}
export type IGrid = ITile[... |
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/// <reference types="trusted-types" />
import type { Directive } from './directive.js';
/**
* Used to sanitize any value before it is written into the DOM. This can be
* used to implement a security policy of allowed and disall... |
import { isRelative } from "sparqler/core";
import { Context } from "../Context/Context";
import { DocumentsRegistry } from "../DocumentsRegistry/DocumentsRegistry";
import { IllegalArgumentError } from "../Errors/IllegalArgumentError";
import { IDAlreadyInUseError } from "../Errors/IDAlreadyInUseError";
import { T... |
<reponame>nikolaymatrosov/nodejs-sdk
/* eslint-disable */
import { messageTypeRegistry } from "../../../typeRegistry";
import Long from "long";
import _m0 from "protobufjs/minimal";
import { Any } from "../../../google/protobuf/any";
import { Timestamp } from "../../../google/protobuf/timestamp";
import { Status } from... |
/**
* FF Typescript Foundation Library
* Copyright 2021 <NAME>, Frame Factory GmbH
*
* License: MIT
*/
import CustomElement, { customElement, property, PropertyValues } from "./CustomElement";
import Splitter, { ISplitterChangeEvent, SplitterDirection } from "./Splitter";
import { DockContentRegistry } from "./D... |
<reponame>ucdavis/wucols-backend
import fetch from "node-fetch";
import { Data, DataLookups, Photo, Plant, WaterUseCode } from "./types";
import { Context } from "@azure/functions";
import dataLookups from "./data-lookups.json";
const baseUrl = "https://wucolsplants.sf.ucdavis.edu";
const plantTypeCodeByName: { [key... |
import express from 'express';
import { setSkipSync } from './entities/user.entity';
import { MailClient, NodemailerClient } from './mail-client';
import Response from './response';
import UFS from './ufs';
import { LocalUFS } from './ufs';
export default interface Config {
disabledDb: boolean;
db: {
t... |
<reponame>LukeG294/BrainlyTools_Extension<filename>src/popup/components/AccountDeleteReports.ts
/* eslint-disable no-underscore-dangle */
import CreateElement from "@components/CreateElement";
import Build from "@root/helpers/Build";
import HideElement from "@root/helpers/HideElement";
import ServerReq from "@ServerReq... |
/*!
* V4Fire Client Core
* https://github.com/V4Fire/Client
*
* Released under the MIT license
* https://github.com/V4Fire/Client/blob/master/LICENSE
*/
import { identity } from 'core/functools/helpers';
import type { VNodeData } from 'vue';
import config from 'core/component/engines/zero/config';
import { doc... |
const { version } = require('../package.json')
import * as Discord from 'discord.js'
import * as Task from '@/tasks'
import * as Utils from '@/utils'
import Localization from '@/localization'
import { MsgTracker, MongoDB } from '@/db'
import { CommandRouter, routeLoader } from '@/router'
import { BotMonitor } from '@/m... |
import mapValues from "./utils/mapValues"
import { isObjectLike } from "./utils/isPlainObject"
import { Observable } from "rxjs/Observable"
import "rxjs/add/observable/combineLatest"
import { Subject } from "rxjs/Subject"
import createGetter, { Getter } from "./utils/createGetter"
export interface IField {
model: st... |
<reponame>thepercival/voetbaljs
/**
* Created by coen on 18-10-17.
*/
import { Game } from 'voetbaljs/game';
import { Poule } from 'voetbaljs/poule';
import { PoulePlace } from 'voetbaljs/pouleplace';
import { Ranking } from 'voetbaljs/ranking';
import { Team } from 'voetbaljs/team';
import { QualifyRule } from '../... |
import * as SuperAgent from "superagent";
import SparqlJsonParser from "./json";
import TurtleParser, { getTurtleAsStatements } from "./turtleFamily";
import SparqlXmlParser from "./xml";
import bindingsToCsv from "../bindingsToCsv";
import { cloneDeep } from "lodash-es";
import N3 from "n3";
namespace Parser {
expo... |
import { VirtualRepeat } from '../src/virtual-repeat';
import { ITestAppInterface } from './interfaces';
export type AsyncQueue = (func: (...args: any[]) => any) => void;
export function createAssertionQueue(): AsyncQueue {
let queue: Array<() => any> = [];
let next = () => {
if (queue.length) {
setTime... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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 b... |
type Mime = {
names: string[];
extension: string;
};
export class MimeUtils {
static findExtension(mimeType: string): string | undefined {
return this.findMime(mimeType)?.extension;
}
static findMime(mimeType: string): Mime | undefined {
return mimes.find(item => {
return !!item.names.find(nam... |
/*
* Copyright 2020 gRPC authors.
*
* 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 t... |
import { EventEmitter } from "events";
import { cfg } from "../../../server/core/config";
var version = cfg.config.version
import * as iotnxt from "./iotnxtqueue";
import * as _ from "lodash";
import { logger } from "../../../server/shared/log";
import { CorePacket } from "../../../server/shared/interfaces"
expor... |
import { AfterContentInit, Component, ViewChild, ElementRef, Input, OnDestroy } from '@angular/core';
import { sortPairs, IPair, ISortedFile } from '../../../../thirdparty/code/engine';
import { MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
import { MatInput } from '@angu... |
<filename>extensions/time-master/src/recorders/keystrokeStats/recorder.ts
import { TextDocument, TextDocumentChangeEvent, WindowState, window, TextDocumentContentChangeEvent, workspace } from 'vscode';
import { checkIsO2 } from '@appworks/common-service';
import { isFileActive } from '../../utils/common';
import { Proj... |
import React, { Component } from 'react';
import { observer } from 'mobx-react';
import classnames from 'classnames';
import vjf from 'mobx-react-form/lib/validators/VJF';
import { Autocomplete } from 'react-polymorph/lib/components/Autocomplete';
import { AutocompleteSkin } from 'react-polymorph/lib/skins/simple/Autoc... |
import * as React from 'react'
import * as Container from '../../../../../util/container'
import * as Kb from '../../../../../common-adapters'
import {LayoutEvent} from '../../../../../common-adapters/box'
import * as Constants from '../../../../../constants/chat2'
import * as Types from '../../../../../constants/types... |
import { IconTree, IconType } from '../lib'
// THIS FILE IS AUTO GENERATED
export declare const TiAdjustBrightness: IconType;
export declare const TiAdjustContrast: IconType;
export declare const TiAnchorOutline: IconType;
export declare const TiAnchor: IconType;
export declare const TiArchive: IconType;
export declare... |
import {Document, Schema} from 'mongoose';
import mongoose from './_database';
import {URL} from 'url';
import fetch from 'node-fetch';
import cheerio from 'cheerio';
import * as _ from 'lodash';
import {LRUMap} from 'lru_map';
import sharp, {Metadata} from 'sharp';
import {ImageFormat, ImageFormatMimeType, ImageForma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.