text stringlengths 3.08k 15.5k |
|---|
// Copyright 2019 <NAME>. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
import React from 'react';
import bind from 'bind-decorator';
import { Colors } from '../Colors';
import { UserControllerContext } from '../controllers/UserCon... |
import GameTime from "../lib/GameTime";
import React from "react";
export const colorScale = function (x: any) {
const COLOR_SCALE = [
// negative
[65, 182, 196],
[127, 205, 187],
[199, 233, 180],
[237, 248, 177],
// positive
[255, 255, 204],
[255, 237, 160],
[254, 217, 118],
... |
/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, forwardRef, Renderer2, ViewChild } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
i... |
import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cli';
import {Configuration, MessageName, Project, ReportError, StreamReport, Workspace} from '@yarnpkg/core';
import {miscUtils, structUtils} from '@yarnpkg/core';
import... |
import '@ui5/webcomponents-icons/dist/navigation-down-arrow.js';
import '@ui5/webcomponents-icons/dist/navigation-right-arrow.js';
import React, { MutableRefObject, ReactNode, useCallback, useMemo } from 'react';
import { useVirtual } from 'react-virtual';
import { useRect } from '../../../internal/useRect';
import { R... |
class Mischmasch {
private wordsArray: Array<string>; // used in _actualNucleus()
private words: Set<string>;
private static instance: Mischmasch;
constructor(arr: Array<string>) {
this.wordsArray = arr;
this.words = new Set(arr); // for performance(?)
}
static rand(min: number, max:... |
<filename>packages/r3f-perf/src/headless.tsx
import { FC, HTMLAttributes, useEffect, useRef } from 'react';
import {
addEffect,
addAfterEffect,
useThree,
addTail,
} from '@react-three/fiber';
import GLPerf from './perf';
import create from 'zustand';
import { PerfProps } from '.';
import {
Material,
Mesh,
... |
import { PreviewCollector } from "../png/PreviewCollector";
import type {
EntityType,
FactorioEntity,
FactorioTile,
TileType,
} from "../types/factorio";
import {
SE_TILE_SIZE_PYLON,
SE_TILE_SIZE_SOLAR_PANEL,
SE_TILE_SIZE_SUPERCHARGER,
TILES_PER_PIXEL,
TILE_SIZE_ACCUMULATOR,
TILE_SIZE_RADAR,
TILE_... |
<reponame>margorski/launcher
import { OpenDialogOptions } from 'electron';
import { SharedSocket } from './back/SharedSocket';
import { IAppConfigData } from './config/interfaces';
import { LangContainer, LangFile } from './lang';
import { ILogEntry } from './Log/interface';
import { IAppPreferencesData } from './prefe... |
import webpack, { Configuration } from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import InlineChunkHtmlPlugin from 'react-dev-utils/InlineChunkHtmlPlugin';
import InterpolateHtmlPlugin from 'react-dev-utils/InterpolateHtmlPlugin';
import WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMis... |
import { Planet } from '@darkforest_eth/types';
import { StatIdx } from '../../_types/global/GlobalTypes';
export declare const SilverIcon: ({ color }: {
color?: string | undefined;
}) => JSX.Element;
export declare const SilverGrowthIcon: ({ color }: {
color?: string | undefined;
}) => JSX.Element;
export decl... |
import { lodash } from '@umijs/utils';
class ModuleNode {
file: string;
importers = new Set<ModuleNode>();
importedModules = new Set<ModuleNode>();
isDependency: boolean = false;
isRoot: boolean = false;
version: string | null = null;
constructor(file: string) {
this.file = file;
}
}
interface IDe... |
import React, { useState, useCallback } from 'react';
import { Components, registerComponent, } from '../../lib/vulcan-lib';
import { useSingle } from '../../lib/crud/withSingle';
import { sequenceGetPageUrl } from '../../lib/collections/sequences/helpers';
import NoSSR from 'react-no-ssr';
import { userCanDo, userOwns... |
import React, { useMemo, CSSProperties, HTMLAttributes, MouseEvent } from 'react';
import cc from 'classcat';
const nodeEnv: string = process.env.NODE_ENV as string;
if (nodeEnv !== 'production') {
const whyDidYouRender = require('@welldone-software/why-did-you-render');
whyDidYouRender(React);
}
import GraphVie... |
import * as t from 'babel-types'
import { IComponentObj } from '../mini/interface'
import traverse from 'babel-traverse'
import { cssImports, printLog, resolveScriptPath, resolveStylePath } from '../util'
import * as path from 'path'
import * as wxTransformer from '@tarojs/transformer-wx'
import { PARSE_AST_TYPE, proce... |
<gh_stars>100-1000
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*------------------------------------------------------... |
<gh_stars>0
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
// fork of prompt from prosemirror-example-setup
// TODO I should swap out the menu w/ a Fabric setup
const prefix = "ProseMirror-prompt";
export function openPrompt(options) {
const wrapper = doc... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* R... |
import {
Table,
Thead,
Tbody,
Tr,
Th,
Td,
Text,
Button,
Flex,
Link,
useDisclosure,
Spinner
} from "@chakra-ui/react"
import { formatUnits } from "ethers/lib/utils";
import { useMemo, useState } from "react";
import { BiLinkExternal } from 'react-icons/bi';
import ModalSettle from "../../../../co... |
'use strict';
import * as React from 'react';
import RN = require('react-native');
// removes from interface T the members of interface K
type Omit<T, K> = Pick<T, Exclude<keyof T, keyof K>>;
// All of T becomes optional except for Keys
type PartiallyRequired<T, Keys extends keyof T = keyof T> = Pick<Partial<T>, Excl... |
<reponame>jakutis/stylable
import postcssValueParser from 'postcss-value-parser';
import type {
ParameterInformation,
SignatureHelp,
SignatureInformation,
} from 'vscode-languageserver';
import { StateParsedValue, systemValidators } from '@stylable/core';
import type { ProviderPosition } from '../completion... |
import cls from 'classnames';
import React from 'react';
import { ViewState, getIcon, useInjectable, DisposableCollection } from '@opensumi/ide-core-browser';
import { DebugState, IDebugSessionManager } from '../../../common';
import { DebugSession } from '../../debug-session';
import { DebugSessionManager } from '..... |
import * as cssesc from 'cssesc'
type Node = {
name: string
penalty: number
level?: number
}
type Path = Node[]
enum Limit {
All,
Two,
One,
}
export type Options = {
root: Element
idName: (name: string) => boolean
className: (name: string) => boolean
tagName: (name: string) => boolean
seedMinL... |
<filename>src/particles/emitter.ts
import { Vector } from "../components/vector";
import { settings } from "../settings";
import { randomInsideRect } from "../systems/random";
import { evaluateVariation } from "../systems/variation";
import { overrideDefaults } from "../util/config";
import { ParticleModifierModule } f... |
<reponame>glekner/kubevirt-openshift-dynamic-plugin
import classNames from 'classnames';
import * as _ from 'lodash';
import { Kebab } from '@kubevirt-internal';
import { NodeKind } from '@kubevirt-types';
import { getName } from '../../../../selectors';
import {
getNodeAffinityPreferredTerms,
getNodeAffinityRequ... |
import { Vowel } from './vowel'
export interface VowelMetadata {
endConsonant: 'none' | 'optional' | 'required'
toneMarkIndex: number | undefined
startConsonantIndex: number
}
export const VowelToMetadata: Record<Vowel, VowelMetadata> = {
เอียว: { endConsonant: 'none', toneMarkIndex: 3, startConsonantIndex: 1... |
<reponame>limhawjia/js-slang
/* tslint:disable:max-classes-per-file */
import {
Options as AcornOptions,
parse as acornParse,
parseExpressionAt as acornParseAt,
Position
} from 'acorn'
import { parse as acornLooseParse } from 'acorn-loose'
import { ancestor, AncestorWalkerFn } from '../utils/walkers'
import * a... |
<gh_stars>0
/*
originally taken from: http://www.sumbera.com/gist/js/leaflet/canvas/L.CanvasOverlay.js, added and customized as part of this lib because of need from library
Generic Canvas Overlay for leaflet,
<NAME>, April , 2014
- added userDrawFunc that is called when Canvas need to be redrawn
- added few usef... |
/**
* Copyright 2015 CANAL+ Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
import { Injectable } from '@angular/core';
import { ISearchResults } from 'app/models/search';
import { Constants } from './constants';
const encode = encodeURIComponent;
window['encodeURIComponent'] = (component: string) => {
return encode(component).replace(/[!'()*]/g, (c) => {
// Also encode !, ', (, ), and *
... |
import React, { PureComponent, ReactNode, RefObject } from 'react'
import {
Clipboard,
Keyboard,
StyleProp,
Text,
TextInputChangeEventData,
TextInputKeyPressEventData,
TextStyle,
View,
ViewStyle,
} from 'react-native'
import OtpInput from './OtpInput'
import defaultStyles from './defaultStyles'
inte... |
import "cross-fetch";
import "cross-fetch/polyfill";
import * as graph from "@microsoft/microsoft-graph-client";
import * as id from "@azure/identity";
import * as common from "@data-heaving/common";
import * as pulumi from "@data-heaving/pulumi-azure-pipeline-setup";
import * as fs from "fs/promises";
import * as pulu... |
import PromptError from '../../Prompt/error';
import { HTML_TYPE, IMAGE_TYPES, VIDEO_TYPES, PLAIN_TEXT, MARKDOWN_TYPES, AUDIO_TYPES } from '../../../Config/file.config';
import getBasename from '../../Functions/path/basename';
import xlsx from 'xlsx';
import FileAPI from '../../../Service/files';
import { eURLify, URLi... |
<reponame>KillerGoldFisch/EasyData<gh_stars>1-10
import { DataGroup, AggregateColumn, AggregationColumnStore, GroupDescriptor } from './aggr_structures'
import { DataRow } from "./data_row";
/**
* Represents AggregationSettings structure prepared for saving into a storage.
*/
export interface AggregationSettingsData... |
//
// Copyright (c) 2021 Cisco Systems, Inc and its affiliates
// All rights reserved
//
import { FieldChange, FieldMap, FormFieldInstance, FormField, FormGroup } from "@msx/forms";
import { Subject, Subscription, Observable, BehaviorSubject, zip } from 'rxjs';
import BaseForm from './base-form';
import { take } from ... |
/**
* created by zbf at 2019-12-13 10:24:20
*
* 设置foucs位置/选中元素
*
* @param tarDom 目标元素
* @param startPos 选中开始位置
* @param endPos 结束位置
*/
export const setPosition = (
tarDom: HTMLInputElement | HTMLTextAreaElement,
startPos = 0,
endPos = startPos
): void => {
if (tarDom.setSelectionRange) {
// setTimeo... |
import { v4 as uuid } from "uuid";
import { EMPTY_CONNECT_STATE, IGraphReactReducer } from "../contexts/GraphStateContext";
import { ICanvasEdge } from "../models/edge";
import { GraphEdgeEvent, GraphNodeEvent, GraphPortEvent } from "../models/event";
import { IGraphState } from "../models/state";
import { GraphEdgeSta... |
import { Group, PlannerBucket, PlannerPlan, PlannerTask } from '@microsoft/microsoft-graph-types';
import { Logger } from '../../../../cli';
import { CommandOption } from '../../../../Command';
import GlobalOptions from '../../../../GlobalOptions';
import request from '../../../../request';
import { validation } from '... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { Cell, Fun } from '@ephox/katamari';
import * as CaretFormat ... |
<gh_stars>0
import * as tut from "../../Tutorial/Core";
import * as tg from "../../TutorialGraph/index";
import { RequiredState } from "../../Tutorial/RequiredState";
import { getOrError, getPlayerHero } from "../../util";
import { GoalTracker } from "../../Goals";
const sectionName: SectionName = SectionName.Chapter4... |
import React from 'react';
import {useQuery} from '@apollo/client';
import * as yup from 'yup';
import {useFormik} from 'formik';
import api from 'shared/utils/api';
import Router from 'next/router';
import {VIEW_AFFILIATES} from 'shared/queries/publishers';
import Layout from 'layouts';
import Widget from 'components... |
<reponame>ktsakalozos/kui<filename>plugins/plugin-k8s/src/lib/util/help.ts
/*
* Copyright 2018 IBM Corporation
*
* 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... |
import * as path from 'path';
import { Writable, WritableOptions } from 'stream';
import { StringDecoder, NodeStringDecoder } from 'string_decoder';
import { diffTemplate, formatDifferences, ResourceDifference, ResourceImpact } from '@aws-cdk/cloudformation-diff';
import { Diagnostic, DiagnosticReason, DestructiveChang... |
<gh_stars>1-10
import _ = require("lodash");
import {PolicyHelper} from "./PolicyHelper";
/**
* Copyright 2018 Software Lab, TU Darmstadt, Germany
*
* 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 th... |
import { useEffect, useRef, useState } from "react"
import {
Candidate,
SpanItem,
} from 'components/suggest'
import { lcsLenMatch } from 'common/algo/lcs'
import { fullFilterSnippet, getAllFormulas, isFormula, Snippet } from 'core/snippet'
import { TextManager } from './text'
import { useCursor } from './cursor'
imp... |
import React, { useLayoutEffect, useState } from 'react';
import * as ReactDOM from 'react-dom/client';
import { createHashHistory, createBrowserHistory } from 'history';
import type { HashHistory, BrowserHistory, Action, Location } from 'history';
import { createHistorySingle } from './utils/history-single.js';
import... |
<filename>test/test-kitchen.ts<gh_stars>0
import test from 'ava';
import chalk from 'chalk';
import * as cp from 'child_process';
import * as fs from 'fs';
import * as ncp from 'ncp';
import * as path from 'path';
import pify from 'pify';
import rimraf from 'rimraf';
import * as tmp from 'tmp';
interface ExecResult {
... |
import { Directive, AfterViewInit, ElementRef, AfterViewChecked, OnDestroy, Input } from '@angular/core';
import { DragService, UIDragState } from '../../services/drag/drag.service';
import * as interact from 'interactjs';
@Directive({
// tslint:disable-next-line:directive-selector
selector: '[draggable]'
})
exp... |
import * as core from '@actions/core'
import * as exec from '@actions/exec'
import path from 'path'
import fs from 'fs'
import {CacheListener} from './cache-reporting'
import {saveCache, restoreCache, cacheDebug, isCacheDebuggingEnabled, tryDelete, generateCacheKey} from './cache-utils'
import {ConfigurationCacheEntryE... |
// Libraries
import React, {
ChangeEvent,
KeyboardEvent,
forwardRef,
RefObject,
useState,
} from 'react'
import classnames from 'classnames'
// Components
import {Icon} from '../Icon/Base/Icon'
// Styles
import './Toggle.scss'
// Types
import {
Omit,
ComponentColor,
ComponentSize,
IconFont,
Stand... |
<reponame>prismamedia/graphql-platform
import { Scalars } from '@prismamedia/graphql-platform-scalars';
import {
addPath,
assertIterable,
assertPlainObject,
assertScalarValue,
Path,
} from '@prismamedia/graphql-platform-utils';
import { Memoize } from '@prismamedia/ts-memoize';
import { GraphQLList, GraphQLNo... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
<filename>lib/index.ts
/**
Serial port info with metadata. Only the `path` is guaranteed. If unavailable the other fields will be undefined. The `path` is either the path or an identifier (eg `COM1`) used to open the SerialPort.
We make an effort to identify the hardware attached and have consistent results betwee... |
import * as React from 'react';
import JqxColorPicker from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcolorpicker';
import JqxDropDownButton from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdropdownbutton';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App... |
<reponame>NiloCK/statechannels<gh_stars>0
import {makeAddress, State} from '@statechannels/wallet-core';
import {defaultTestConfig} from '../..';
import {createLogger} from '../../logger';
import {DBDefundChannelObjective} from '../../models/objective';
import {Store} from '../../wallet/store';
import {testKnex as kne... |
import * as R from 'ramda'
const { ZalgoPromise } = require('zalgo-promise')
export const Promise = ZalgoPromise
export const { all, resolve } = ZalgoPromise
const nodeKeys = (obj: any) =>
Object.keys(obj || {}).filter(key => key && key !== '_' && key !== '#')
export const nowOr = R.curry((defaultValue, promise) =>... |
import { SpringOption } from './springSettings/types'
export type FlipId = string | number
export type ChildAsFunction = (props: object) => React.ReactNode
export type FlippedChildren = React.ReactNode | ChildAsFunction
export interface SerializableFlippedProps {
children: FlippedChildren
portalKey?: string
/... |
<filename>src/documents/templates/deploymentTemplateCodeLenses.ts
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// tslint:disable: max-classes-... |
import {
EventSegUiInteractionState,
VNode,
DateComponent,
RefObject,
CssDimValue,
createElement,
PositionCache,
memoize,
addDays,
RefMap,
DateRange,
NowTimer,
DateMarker,
DateProfile,
Fragment,
Hit,
DayTableCell,
} from '@fullcalendar/common'
import { TableSeg, splitSegsByRow, splitIn... |
import axios from 'axios'
import { Formik, FormikActions, FormikProps } from 'formik'
import React, { PureComponent } from 'react'
import * as Yup from 'yup'
import Input from '../commons/input'
import { constants } from '../utils/constants'
import { getItemFromStorage, storeItem } from '../utils/localStorage'
import ... |
<reponame>ithaka/pharos<gh_stars>10-100
import { html, nothing } from 'lit';
import { property, query } from 'lit/decorators.js';
import type { PropertyValues, TemplateResult, CSSResultArray } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { textInputStyles } from './pharos-text-input.css'... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export declare const VERSION = 3;
export declare type MetadataEntry = ClassMetadata | FunctionMetadata | MetadataValu... |
import PropTypes from 'prop-types';
import React from 'react';
import { RouteComponentProps, withRouter } from 'react-router-dom';
import { createFragmentContainer } from 'react-relay';
import { graphql } from 'babel-plugin-relay/macro';
import Paper from '@material-ui/core/Paper';
import { createStyles, Tooltip, WithS... |
/**
* @file Select
* @description
* @author fex
* @date 2017-11-07
*/
import React from 'react';
import 'react-datetime/css/react-datetime.css';
import { ControllerStateAndHelpers } from 'downshift';
import { ClassNamesFn } from '../theme';
export interface Option {
label?: string;
value?: any;
disable... |
import { type } from 'os';
import { useEffect, useState } from 'react';
import '../../styles/components/pagination/pagination.scss';
import BreakView from './BreakView';
import PageView from './PageView';
interface IProp {
type?: 'simple' | 'advanced',
onPageChange?: (page: number) => void,
showGoto?:boole... |
<reponame>AvivBenchorin/OpenSearch-Dashboards<filename>src/plugins/console/public/lib/row_parser.ts
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed ... |
<filename>frontend/src/ts/components.ts<gh_stars>0
/** Class represents Tab component */
export class Tabs {
private headers: Array<HTMLButtonElement> = [];
private contents: Array<HTMLDivElement> = [];
/**
* The event callback signature for tabs
*
* @callback tabChange
*/
/**
* Add a Tab
* ... |
<reponame>G-arj/FluidFramework
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import assert from "assert";
import { IContainer, IHostLoader } from "@fluidframework/container-definitions";
import { Container } from "@fluidframework/container-load... |
<reponame>mattleff/mockttp
/**
* @module Mockttp
*/
/// <reference path="../../custom-typings/asynciterator.d.ts" />
import * as path from 'path';
import * as fs from '../util/fs';
import * as _ from 'lodash';
import * as express from 'express';
import * as cors from 'cors';
import * as http from 'http';
import * a... |
import fs = require('fs');
import os = require('os');
import path = require('path');
import ts = require('typescript');
var FILENAME_TS = 'file.ts';
function tss(code: string, options?: ts.CompilerOptions): string {
if (options) {
return new tss.TypeScriptSimple(options).compile(code);
} else {
... |
import React from 'react'
import { useTranslation } from 'react-i18next'
import styled from 'styled-components'
import { hasComponent } from '@xrengine/engine/src/ecs/functions/ComponentFunctions'
import { useWorld } from '@xrengine/engine/src/ecs/functions/SystemHooks'
import { PersistTagComponent } from '@xrengine/e... |
import { endVideoChat, leave } from '../../transports/SocketWebRTCClientFunctions'
import { EngineEvents } from '@xrengine/engine/src/ecs/classes/EngineEvents'
import { Network } from '@xrengine/engine/src/networking/classes/Network'
import { MediaStreams } from '@xrengine/engine/src/networking/systems/MediaStreamSyste... |
/*
* 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 in writing, software
* distributed u... |
<reponame>JhonArlex/shopizer-admin
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { LocalDataSource } from 'ng2-smart-table';
// import { TreeNode } from 'primeng/primeng';
import { ProductAttributesService } from '../../services/product-attributes.se... |
import * as vscode from 'vscode';
import { Kubectl } from '../../kubectl';
import * as kubectlUtils from '../../kubectlUtils';
import { Host } from '../../host';
import { affectsUs } from '../config/config';
import { ExplorerExtender, ExplorerUICustomizer } from './explorer.extension';
import * as providerResult from ... |
import { Snapshot } from './snapshot';
import { DiamondError, IServerListManager, ServerListMgrOptions } from './interface';
import { CURRENT_UNIT } from './const';
const Base = require('sdk-base');
const debug = require('debug')('diamond-client');
const path = require('path');
const assert = require('assert');
const ... |
/*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import { Point } from "pixi.js";
import { DBase, DBaseOptions } from "./d-base";
import { DContentOptions } from "./d-content";
import { DPane, DPaneOptions, DThemePane } from "./d-pane";
import { DTreeNode } from "./d-tree-node";
... |
<reponame>matipuig/flyweight-handlebars<filename>tests/index.test.ts
/**
* TESTS FOR INDEX.
*/
import fs from 'fs';
import path from 'path';
import FlyweightHandlebars from '../src';
const hb = new FlyweightHandlebars();
const TEMPLATES_DIR = path.join(__dirname, 'templates-test');
hb.setTemplatesPath(TEMPLATES_DI... |
import Instance from "./Instance";
import { anyConfigObject } from "./types";
const ATTR_EDIT_CONTAINER = 'data-flyter-edit';
const ATTR_ACTION_CONTAINER = 'data-flyter-action';
const ATTR_SUBMIT_BTN = 'data-flyter-submit';
const ATTR_CANCEL_BTN = 'data-flyter-cancel';
const ATTR_READ_CONTAINER = 'data-flyter-read';
c... |
<gh_stars>0
import marked from 'marked';
import { sanitizeHtml } from './sanitizer';
import { ParsedRequest, Style, Theme } from './types';
import * as hero from 'hero-patterns';
import fs from 'fs';
const twemoji = require('twemoji');
const twOptions = { folder: 'svg', ext: '.svg' };
const emojify = (text: string) =>... |
<reponame>Allen-Groads/marketplace
// Copyright 2017-2021 @polkadot/apps, UseTech authors & contributors
// SPDX-License-Identifier: Apache-2.0
import BN from 'bn.js';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { Abi, ContractPromise } from '@polkadot/api-contract';
import envConfig fro... |
import { GherkinComment, GherkinLocation, GherkinTag } from "./gherkinObject";
import { Comment } from "./ast/comment";
import { getDebugger } from "./debug";
const debug = getDebugger("common");
export const safeString = (s = ""): string => {
const safe = s.replace(/\s/g, "_");
debug("safeString(s: '%s') => '%s'"... |
<reponame>tomByrer/svg-slimming<filename>src/slimming/rules/compute-path.ts
import { propEq, or } from 'ramda';
import { douglasPeucker } from '../algorithm/douglas-peucker';
import { LineTypes } from '../const';
import { plus } from '../math/plus';
import { checkSubPath } from '../path/check-sub-paths';
import { doCom... |
/*********************************************************************
* Copyright (c) Intel Corporation 2019
* SPDX-License-Identifier: Apache-2.0
* Author : <NAME>
**********************************************************************/
import * as React from 'react'
import { IDataProcessor } from '../../../core/... |
<gh_stars>0
import { KeyCode } from './keyCodes';
/**
* keyboardEvent.code
*/
export declare const enum ScanCode {
None = 0,
Hyper = 1,
Super = 2,
Fn = 3,
FnLock = 4,
Suspend = 5,
Resume = 6,
Turbo = 7,
Sleep = 8,
WakeUp = 9,
KeyA = 10,
KeyB = 11,
KeyC = 12,
Key... |
import { AuthProvider } from './auth-provider.js'
import { AccountId } from 'caip'
import { encodeRpcMessage, getConsentMessage, LinkProof } from './util.js'
import * as uint8arrays from 'uint8arrays'
import * as sha256 from '@stablelib/sha256'
import { Ocap, OcapParams, OcapTypes, buildOcapRequestMessage } from './oca... |
import { Injectable } from '@angular/core';
import { JhiLanguageService } from 'ng-jhipster';
import { SessionStorageService } from 'ngx-webstorage';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { BehaviorSubject, Observable, of } from 'rxjs';
import { catchError, distinctUntilChanged, map } ... |
import { Currency, ETHER, JSBI, TokenAmount } from '@swap/sdk'
import React, { useCallback, useEffect, useState } from 'react'
import { Plus } from 'react-feather'
import { Text } from 'rebass'
import { ButtonDropdownLight } from '../../components/Button'
import { LightCard } from '../../components/Card'
import { AutoC... |
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { SparqlService } from '../sparql.service';
import { ListComponent } from '../list/list.component';
import { ItemData } from '../itemdata';
@Component({
selector: 'app-person',
templateUrl: './person.component.html',
styleUrls... |
import React, { useRef, useState } from 'react';
import { DropdownItem } from '../navbar/DropdownItem';
import {
Comment as TComment,
ReportType,
Role,
User,
ReportEntityMutationHookResult,
} from '@oasis-sh/react-gql';
import { formatDate, formatNumber } from '../../utils/format';
import { ThreeDots } from '... |
// tslint:disable-next-line: file-header
import * as DynamicCdnWebpackPlugin from 'dynamic-cdn-webpack-plugin';
import * as Glob from 'fast-glob';
import * as Fs from 'fs-extra';
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
import * as _ from 'lodash';
import * as moduleToCdn from 'module-to-cdn';
import ... |
<gh_stars>1-10
import { get as configGet, getDataService } from '../../config';
import { request } from '../../utils/request';
import { parseTx } from './parse';
import {
T_API_TX,
T_TX,
ITransfer,
txApi,
IIssue,
IReissue,
IBurn,
IExchange,
ILease,
ICancelLeasing,
ICreateAlia... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import {
EuiButton,
// @ts-ignore
EuiColorPicker,
EuiFieldText,
Eui... |
import type * as Builders from '../generators';
import type { Game } from '@core';
import type { GameTileData } from '@lib';
import type { Color, Vector2 } from '@lib/types';
import type { GeneratorPayload, GeneratorResponse } from '@workers/maps';
import type { Entity } from 'tecs';
import { Cell } from '@core/entiti... |
import { timedResult } from "@thi.ng/bench/timed";
import { hueRgb } from "@thi.ng/color/rgb/hue-rgb";
import type { FloatSym, Vec2Sym, Vec3Sym } from "@thi.ng/shader-ast";
import { renderPixels, targetJS } from "@thi.ng/shader-ast-js";
import { fogExp2 } from "@thi.ng/shader-ast-stdlib/fog/exp2";
import {
diffuseL... |
<reponame>tdecker91/puzzle-visualizer
import { Turn, TurnType } from "../../algorithms/algorithm";
import { parseSkewbAlgorithm } from "../../algorithms/skewb";
import { fillArray } from "../../utils/arrays";
import { Simulator } from "./../simulator";
/**
* Simulates a standard skewb
*
* Imagine the faces like thi... |
import { NextPage } from 'next';
import React, { useRef, useState } from 'react';
import Grid from '@material-ui/core/Grid';
import styled from 'styled-components';
import RotateLeftIcon from '@material-ui/icons/RotateLeft';
import SaveIcon from '@material-ui/icons/Save';
import CloudUploadIcon from '@material-ui/icons... |
<gh_stars>10-100
/*
* Copyright 2021-Present The Serverless Workflow Specification 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.... |
import { PLAYER_STATE, MEDIA_TYPE } from 'events/events';
import type { GenericObject } from 'types/generic.type';
import type { TracksMixin, SimpleAudioTrack } from 'providers/tracks-mixin';
import type { VideoActionsInt } from 'providers/video-actions-mixin';
import type { VideoAttachedInt } from 'providers/video-att... |
import {logger} from '../../../utils/logger';
import {WebserviceClient} from '../../../utils/webservice-client';
import {LastFM} from './lastfm-rest-data';
import {LastFMClientApiOptions} from './lastfm-client.interface';
import {Response} from 'node-fetch';
const log = logger('LastFM');
class LastFMClientBeautify {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.