text stringlengths 3.08k 15.5k |
|---|
/**
* MenuButton.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
import Factory from 'tinymce/core/api/ui/Factory';
import Button from './Button';
import MenuBar from... |
import fs from 'fs';
import path from 'path';
import 'lodash.combinations';
import lodash from 'lodash';
import { Contract } from '@ethersproject/contracts';
import { ethers } from 'hardhat';
import log from './log';
export enum Network {
BSC = 'bsc',
}
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000... |
import 'dotenv-safe/config';
import cors from 'cors';
import express from 'express';
import { v4 } from 'uuid';
import { InMemorySessionStore, Move, User } from './sessionStore';
import { logoSvg } from './helper';
const PORT = process.env.PORT;
const app = express();
app.use(
cors({
origin: process.... |
<reponame>iron-rings/react-native-ui-kitten
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import React from 'react';
import {
styled,
StyledComponentProps,
} from '../../theme';
import {
BaseCalendarCom... |
import { Fragment, FunctionComponent, h } from 'preact';
import { useLayoutEffect, useMemo, useRef, useState } from 'preact/hooks';
import { Blacklist } from './blacklist';
import { Baseline, ScopedBaseline } from './components/baseline';
import { Button, LinkButton } from './components/button';
import { Details, Detai... |
<gh_stars>0
import { Client, Room } from 'colyseus.js'
import { IComputer, IOfficeState, IPlayer as IPlayerBase } from '../../../types/IOfficeState'
import { Message } from '../../../types/Messages'
import WebRTC from '../web/WebRTC'
import { phaserEvents, Event } from '../events/EventCenter'
import store from '../stor... |
import { Config, Options, OpSet, ResolvedOptions, Drawable, SVGNS } from './core';
import { RoughGenerator } from './generator';
import { Point } from './geometry';
const hasDocument = typeof document !== 'undefined';
export class RoughSVG {
private gen: RoughGenerator;
private svg: SVGSVGElement;
private _defs... |
<gh_stars>0
/*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This program is also distributed with certain ... |
<filename>src/fetcher.ts
import {
_TypedFetch,
ApiError,
ApiResponse,
CustomRequestInit,
DefaultPayload,
Fetch,
FetchConfig,
FetchRequest,
Method,
Middleware,
OpArgType,
OpenapiPaths,
OpErrorType,
TypedFetch,
} from "./types.ts";
const sendBody = (method: Method) =>
method === "post" ||
... |
<reponame>dwmorrin/backend-mongo
import { EC } from "../../utils/types";
import { getUnsafeMultipleStatementConnection } from "../../utils/db";
import { crud, query, respond, withResource } from "../../utils/crud";
import withActiveSemester from "../../utils/withActiveSemester";
const getMany = crud.readMany("SELECT *... |
<filename>src/api/cache/index.ts
'use strict';
import { wait } from '../../utils';
import Logger from '../../utils/logger';
import io from '../../io';
interface CachedResponse {
response: any;
date: Date;
}
interface CachedResponses {
[path: string]: CachedResponse;
}
interface CachedCall {
path: string;
... |
<gh_stars>0
import { Address } from '@xchainjs/xchain-client'
import { Asset, AssetAmount, baseToAsset } from '@xchainjs/xchain-util'
import { Chain } from '@xchainjs/xchain-util'
import * as A from 'fp-ts/Array'
import * as FP from 'fp-ts/function'
import * as O from 'fp-ts/Option'
import { Network } from '../../shar... |
import Long from "long";
import _m0 from "protobufjs/minimal";
import { MerklePrefix } from "../../../../ibc/core/commitment/v1/commitment";
export declare const protobufPackage = "ibc.core.connection.v1";
/**
* State defines if a connection is in one of the following states:
* INIT, TRYOPEN, OPEN or UNINITIALIZED.
... |
<gh_stars>0
/**
* @license
*
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import findLast from 'lodash-es/findLast.js';
import { html, query, property, customElement } from 'lit-element';
... |
import { first, isEmpty, assign } from "lodash-es";
import * as queryString from "query-string";
let _DEV_: boolean = false;
export interface IRouteRule<T = { [k: string]: any }> {
path: string;
name?: string;
title?: string;
next?: IRouteRule[];
queries?: string[];
extra?: T;
}
interface ISimpleObject {... |
import React, { useContext, useEffect, useState } from 'react';
//@ts-ignore
import SortableTree, { isDescendant } from '@nosferatu500/react-sortable-tree';
//@ts-ignore
import type { TreeItem } from '@nosferatu500/react-sortable-tree';
import TreeNodeRenderer from '../renderer/TreeNodeRenderer';
import { store as exam... |
import * as path from 'path';
import * as webpack from 'webpack';
// just in case you run into any typescript error when configuring `devServer`
import 'webpack-dev-server';
const nodeExternals = require('webpack-node-externals');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { StatsWriterPlugin } =... |
import "focus-visible";
// import { ADA } from "@arkecosystem/platform-sdk-ada";
import { ARK } from "@arkecosystem/platform-sdk-ark";
// import { ATOM } from "@arkecosystem/platform-sdk-atom";
// import { AVAX } from "@arkecosystem/platform-sdk-avax";
// import { BTC } from "@arkecosystem/platform-sdk-btc";
// import... |
<gh_stars>1-10
import {
AnyObject,
App,
axios,
AxiosError,
AxiosResponse,
Extensible,
ExtensibleConfig,
HandleRequest,
Jovo,
JovoError,
Platform,
Server,
StoredElementSession,
UnknownObject,
} from '@jovotech/framework';
import _cloneDeep from 'lodash.clonedeep';
import {
DEFAULT_FACEBOOK_... |
<filename>packages/mobx-state-tree/src/core/type/type.ts
import { action } from "mobx"
import {
EMPTY_ARRAY,
fail,
isMutable,
isStateTreeNode,
getStateTreeNode,
IContext,
IValidationResult,
typecheck,
typeCheckFailure,
typeCheckSuccess,
INode,
IStateTreeNode,
IJsonPa... |
import { IS_ELECTRON } from '@angular-console/environment';
import { FADE_IN } from '@angular-console/ui';
import {
CommandRunner,
Settings,
toggleItemInArray,
Telemetry
} from '@angular-console/utils';
import {
animate,
state,
style,
transition,
trigger
} from '@angular/animations';
import {
Change... |
import { MenuIcon, XIcon } from '@heroicons/react/outline';
import { ChevronDownIcon } from '@heroicons/react/solid';
import { Popover, Transition } from '@headlessui/react';
import { REPOSITORY, SITE_NAME } from 'src/config';
import { ToolTag } from '../../interfaces/tools';
import { Container } from '../elements';
im... |
import '@testing-library/cypress/add-commands'
import './onboardingCommands'
import './walletCommands'
/* eslint-disable @typescript-eslint/no-var-requires */
const compareSnapshotCommand = require('cypress-image-diff-js/dist/command')
compareSnapshotCommand()
// ***********************************************
// Thi... |
import { createSelector } from 'reselect';
import { ActionReducer } from '@ngrx/store';
import * as fromRouter from '@ngrx/router-store';
import { environment } from '../../environments/environment';
/**
* The compose function is one of our most handy tools. In basic terms, you give
* it any number of functions and ... |
/**
* 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 * as FormatUtils from './FormatUtils';
import Editor from '../... |
import { enableProdMode, Pipe, PipeTransform, NgModule, NgModuleRef, NgZone, StaticProvider } from '@angular/core';
import { APP_BASE_HREF, VERSION } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import type... |
<filename>server/controllers/ProfilesController.ts
import * as express from 'express';
import { Profile } from '../models/Profile';
import { Interest } from '../models/Interest';
interface IProfile {
name: string;
age: number;
image: string;
interests: IInterest[];
favoriteFood: string;
_id: string;
}
interfac... |
import { ElrondMaiar } from "../ElrondMaiar";
import { TokenAmount } from "./Position";
import { bn, erc20, erc20abi, Network, sleep, throttle, web3, zero } from "@defi.org/web3-candies";
import { ContractCallContext, Multicall } from "ethereum-multicall";
import { PriceOracle } from "./PriceOracle";
import _ from "lod... |
import { SortDirection } from '../common';
export enum ModelEntryStatus {
ACTIVE = 'ACTIVE',
INACTIVE = 'INACTIVE',
DELETED = 'DELETED'
}
export type ModelEntryStatuses = keyof ModelEntryStatus;
export const MODEL_ENTRY_STATUSES: ModelEntryStatuses[] = Object.keys(ModelEntryStatus) as ModelEntryStatuses[]... |
import React, { useContext, useRef, useState } from 'react';
import { useHistory } from 'react-router-dom';
import { generateQuestionnaire } from '../../helpers/generateQuestionnaire';
import { TreeContext } from '../../store/treeStore/treeStore';
import Btn from '../Btn/Btn';
import MoreIcon from '../../images/icons/e... |
import { nanoid } from "nanoid";
import { TezosOperationError } from "@taquito/taquito";
import {
TemplePageMessageType,
TemplePageMessage,
TempleDAppMessageType,
TempleDAppRequest,
TempleDAppResponse,
TempleDAppErrorType,
TempleDAppNetwork,
TempleDAppMetadata,
TempleDAppPermission,
} from "./types";
... |
<filename>src/server/Model/Api/ScheduleModel.ts
import * as apid from '../../../../node_modules/mirakurun/api';
import CheckRule from '../../Util/CheckRule';
import DateUtil from '../../Util/DateUtil';
import * as DBSchema from '../DB/DBSchema';
import { ProgramsDBInterface } from '../DB/ProgramsDB';
import { ServicesD... |
<gh_stars>0
import { Construct } from 'constructs'
import {
aws_sqs as sqs,
aws_sns as sns,
aws_dynamodb as ddb,
aws_iam as iam,
aws_events as e,
aws_sns_subscriptions as subs,
aws_events_targets as et,
aws_stepfunctions as sf,
aws_stepfunctions_tasks as sft,
aws_lambda as lambda,
Duration,
} fr... |
<gh_stars>1-10
/**
* @author mbostock, extended and ported to TypeScript by <NAME>
* @date 2020-05-19
* @modified 2021-02-08 Fixed a lot of es2015 compatibility issues.
* @version 1.0.2
* @file contextPolygonIncircle
* @public
*/
import { Circle } from "../../Circle";
import { geomutils } from "../.... |
import { useMemo } from 'react';
import { GetStaticPaths, GetStaticProps } from 'next';
import { useRouter } from 'next/router';
import Prismic from '@prismicio/client';
import Head from 'next/head';
import { FiCalendar, FiClock, FiUser } from 'react-icons/fi';
import { getPrismicClient } from '../../services/prismic';... |
<reponame>gisumit/one-platform
/* GraphQL resolver implementations */
import { IResolvers } from '@graphql-tools/utils';
import { isEmpty } from 'lodash';
import Apps from './model';
import uniqueIdFromPath from '../../utils/unique-id-from-path';
import AppsHelper from '../../utils/apps-helper';
import { createDatabase... |
import { BIP32Interface, fromBase58 } from 'bip32';
import { payments } from 'liquidjs-lib';
import { BlindingDataLike } from 'liquidjs-lib/types/psbt';
import { Slip77Interface, fromMasterBlindingKey } from 'slip77';
import { AddressInterface, IdentityType } from '../types';
import {
checkIdentityType,
isValidExt... |
import {
AuthorizationCode,
AuthorizationCodeModel,
Client,
Falsey,
RefreshToken,
RefreshTokenModel,
Token,
User,
} from 'oauth2-server';
import { Database } from '../../lib/db';
import oAuthClients from '../../config/oauth-clients';
import { logTag } from '../../lib/logger';
import { SettablePromise } from '..... |
import { keyBy, uniqBy, includes, reverse } from 'lodash';
import { NamedTypeNode, DirectiveNode, DirectiveDefinitionNode, InputValueDefinitionNode, FieldDefinitionNode, DefinitionNode, TypeNode, Kind, SelectionNode } from 'graphql';
const builtinTypes = ['String', 'Float', 'Int', 'Boolean', 'ID', 'Upload'];
const bu... |
import * as React from "react";
import {
Collapse, createStyles, Divider, FormControl, FormControlLabel, Grid, InputAdornment, InputLabel, MenuItem, Select,
Switch, TextField, Theme, Tooltip, withStyles
} from "@material-ui/core";
import {GeneralSettings} from "../../data/Config";
import {WC} from "../../data/con... |
import * as Starling from 'starling-developer-sdk'
import { DateTime } from 'luxon'
import * as Ynab from 'ynab'
import { SaveTransaction, TransactionDetail } from 'ynab'
import BigNumber from 'bignumber.js'
const { STARLING_ACCESS_TOKEN, YNAB_ACCESS_TOKEN, YNAB_ACCOUNT_ID, YNAB_BUDGET_ID } = process.env
// Default ch... |
import { Injectable, TemplateRef } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { isNil } from 'ramda';
import { merge, Observable, of, Subject } from 'rxjs';
import { filter, flatMap, mapTo, shareReplay, take, takeUntil } from 'rxjs/operators';
import { AlertType } from '../common.type... |
<reponame>wanliLiu/ws-scrcpy<gh_stars>100-1000
import { BaseClient } from '../../client/BaseClient';
import { QVHackMoreBox } from '../toolbox/QVHackMoreBox';
import { QVHackToolBox } from '../toolbox/QVHackToolBox';
import WdaConnection from '../WdaConnection';
import { WsQVHackClient } from './WsQVHackClient';
import... |
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import { AriaAttrNameToPropNameMap } from '@lwc/shared';
import { HTML_ATTRIBUTE_ELEMENT_MAP } from './utils/... |
import * as React from 'react';
import * as classNames from 'classnames';
import { ICustomDateRangeProps, ICustomDateRangeState, IDateValidation, DateValidator } from './CustomDateRange.Props';
import { Dialog } from '../Dialog/Dialog';
import { DateTimePicker } from '../DateTimePicker/DateTimePicker';
import { DialogF... |
import { createRouter, Router } from "stencil-router-v2";
export interface UfeElement {
element: string,
attributes: Array<{name: string, value: any}>,
labels?: {[name: string]: string},
load_url: string,
roles?: string[]
}
export interface UfeWebApp extends UfeElement{
title: string;
deta... |
<gh_stars>100-1000
import axios, { AxiosInstance } from 'axios';
import https from 'https';
const errorCodeDescriptions = {
'100': 'Unknown error',
'101': 'Invalid parameters',
'102': 'API does not exist',
'103': 'Method does not exist',
'104': 'This API version is not supported',
'105': 'Insuf... |
import * as React from 'react';
import { module } from 'angular';
import { react2angular } from 'react2angular';
import { IEcsServerGroupCommand } from '../../serverGroupConfiguration.service';
import { HelpField, TetheredSelect, withErrorBoundary } from '@spinnaker/core';
import { Alert } from 'react-bootstrap';
impor... |
<reponame>celo-org/celo-oracle
import BigNumber from 'bignumber.js'
import Logger from 'bunyan'
import { DataAggregatorConfig } from './data_aggregator'
import { Ticker } from './exchange_adapters/base'
import { doFnWithErrorContext } from './utils'
import { MetricCollector } from './metric_collector'
import { Weighted... |
import React, {FC, useRef, useEffect, useState, useMemo} from 'react';
import {useTheme} from '@material-ui/core/styles';
import Brush from '../common/Brush';
import xAxis from '../Utils/XAxis';
import {dimensionGetter, brushDataGetter, dimensionTypeGetter} from '../../utils/WidgetHelpers';
import {nextTimeWrapper, nex... |
import { UploadForm } from "../../src/upload/form/upload-form"
import {
getDummyFile,
mockDataTransferItemList,
mockFileList
} from "./mock-files-and-folders"
import { FileUploader } from "../../src/upload"
import { KeycloakInstance, KeycloakTokenParsed } from "keycloak-js"
import { createMockKeycloakInstance } f... |
<filename>mobile/src/viewModels/CheckInViewModel.ts
import { reaction, transaction, observable, computed, toJS } from 'mobx';
import { asyncComputed } from 'computed-async-mobx';
import { ClientJournalEntryIded } from 'common/models/ClientEntries';
import { StorageReferenceViewModel } from 'common/viewModels/StorageRef... |
<reponame>jbicker/npm-dependency-graph
/*
* Copyright (C) 2018 TypeFox
*
* 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
*/
import { injecta... |
<gh_stars>0
import {
Chapter,
ChapterDetails,
ContentRating,
HomeSection,
Manga,
MangaUpdates,
PagedResults,
SearchRequest,
Source,
SourceInfo,
TagSection,
TagType,
Request,
HomeSectionType
} from 'paperback-extensions-common'
import { Parser } from './Parser'
c... |
import {
IRobotSpec,
WheelMountingPoint,
IRobotWheelAndMount,
} from "../../specs/RobotSpecs";
import { SimRobotWheel } from "./SimRobotWheel";
import { SimMotor } from "./SimMotor";
import { Vector3d, Vector2d } from "../../SimTypes";
import { Vector3dUtil } from "../../utils/VectorUtil";
import { clamp } from "... |
import {} from './../config/paths';
import Listr from 'listr';
import { stringify } from 'yaml';
import fs from 'fs';
import path from 'path';
import { promisify } from 'util';
import { omit, forEach } from 'lodash/fp';
import { MainCtx } from '../main';
import {
TENANT_CONFIG,
API_CONFIG,
API_CONFIG_DIR,
API_... |
import {
BN,
keccak,
keccak256,
rlphash,
zeros,
bufferToInt,
TWO_POW256
} from 'ethereumjs-util'
import {
params,
fnv,
fnvBuffer,
bufReverse,
getEpoc,
getCacheSize,
getFullSize,
getSeed
} from './util'
import type { LevelUp } from 'levelup'
import type { Block, BlockHeader } from '@ethereu... |
import React, { useState, useEffect } from 'react';
import StringUtils from '../Util/StringUtils';
import { useEpiserver, useIContentRepository, useServiceContainer, useServerSideRendering } from '../Hooks/Context';
import { ContentReference, ContentLinkService } from '../Models/ContentLink';
import IContent from '../M... |
import { isWhitespace } from "../common/utils";
import { TokenTypes } from "./constants";
const enum States {
Text,
COMMENT,
STRING_LITERAL,
IDENTIFIER
}
const spaceAfter = ["for", "let", "some", "every", "if"];
const spaceBeforeAndAfter = [
"or",
"and",
"eq",
"ne",
"lt",
"le",... |
<reponame>devylstudios/cache
import ms from 'ms'
import { Action } from '../types'
import Cache from './Cache'
class MemoryCache extends Cache {
private store: Map<any, { value: any, expiresAt?: number }>
private consumedMemory: number
constructor(config?: {
maxAge?: string | number
maxAmount?: number
... |
<gh_stars>100-1000
import * as Types from "@patternplate/types";
import * as Color from "color";
import { merge } from "lodash";
import { fonts } from "./fonts";
export interface Theme {
colors: {
active: string;
error: string;
warning: string;
info: string;
success: string;
background: stri... |
import {
Plugin, MountData, Next, usePlugin, UseifyPlugin, DeployData
} from '@faasjs/func'
import { Logger } from '@faasjs/logger'
import { deepMerge } from '@faasjs/deep_merge'
import IORedis, { RedisOptions } from 'ioredis'
export type RedisConfig = {
name?: string
config?: RedisOptions
}
declare let global:... |
// Copyright 2017-2021 @polkadot/types-create authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { CodecRegistry } from '@polkadot/types-codec/types';
import type { TypeDef } from '@polkadot/types-create/types';
import { assert, isNumber, isUndefined, objectSpread, stringify } from '@polkadot/u... |
import {createStyles, makeStyles} from "@material-ui/styles";
import React from 'react'
import {useRef, useEffect} from "react";
import {loadModules} from "esri-loader";
const useStyles = makeStyles(createStyles({
root : {},
overviewDiv: {
position: "absolute",
ri... |
<reponame>benjackwhite/posthog.com
import { kea } from 'kea'
import { EMAIL_GATED_SIGNUP_PREFIX, FEATURE_FLAGS } from 'lib/constants'
import { isValidEmailAddress } from 'lib/utils'
import { posthogAnalyticsLogic } from './posthogAnalyticsLogic'
export enum SignupModalView {
EMAIL_PROMPT = 'EMAIL_PROMPT',
DEPL... |
<gh_stars>0
import EventEmitter from 'events';
import * as qs from 'querystring';
import isPlainObject from 'is-plain-object';
import Externals from '../core/Externals';
function findHeaderName(name, headers) {
name = name.toLowerCase();
return Object.keys(headers).reduce((res, key) => {
if (res) retur... |
<gh_stars>1-10
import '../types';
import { NodeFilterTS, VisibleNamespaces } from '../types';
import {
isAttr,
isCDATASection,
isCharacterData,
isComment,
isDocument,
isDocumentFragment,
isDocumentType,
isElement,
isEntityReference,
isProcessingInstruction,
isText,
} from '../utils';
const htmln... |
import { Locator, UniDriverList, UniDriver, MapFn, waitFor, NoElementWithLocatorError, MultipleElementsWithLocatorError, isMultipleElementsWithLocatorError, EnterValueOptions } from '@unidriver/core';
import { ElementHandle, Page, Frame } from 'playwright';
type BaseElementContainer = { page: Page | Frame; selector: s... |
import AWS = require('aws-sdk');
import { any, AnyShape, Mapper, MapperFactory, Shape, Value } from '@punchcard/shape';
import { Json } from '@punchcard/shape-json';
import { Build } from '../core/build';
import { CDK } from '../core/cdk';
import { Dependency } from '../core/dependency';
import { Resource } from '../c... |
import * as fs from "fs";
import * as posix from "posix";
import { asyncIter } from "ballvalve";
import * as bigInt from "big-integer";
import { Header } from "./header";
import { Bottle } from "./bottle";
import { BottleType, BottleCap } from "./bottle_cap"
enum Field {
IntSize = 0,
IntPosixMode = 1,
IntCreated... |
import { AbsToolClass, getCoord, IAnnotationEvents, IAnnotationGeometry, IAnnotationTools, INgAnnotationTypes, TAnnotationEvent, TBaseAnnotationGeomtrySpec, TCallbackFunction, TNgAnnotationEv, TSandsPoint, TToolType } from "./type";
import { Observable, Subject, Subscription } from "rxjs";
import { Directive, OnDestroy... |
// Copyright 2016-2018, Pulumi 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/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
import { app, BrowserWindow,Menu,dialog, ipcMain } from 'electron'
import { overlayWindow } from '../'
import * as fs from 'fs'
import * as _ from 'lodash'
import 'isomorphic-unfetch'
import * as path from 'path'
import { Map } from './types/Map'
const prompt = require('electron-prompt');
//app.disableHardwareAccele... |
<gh_stars>1-10
import { AnyAction, Dispatch } from "redux";
import { IocModule, inject } from "../../common/IocModule";
import { addAction, CommonActions } from "../../common/Actions";
import { RootState, StakeTokenState } from "../../common/RootState";
import { StakingAppClient, StakingAppServiceActions } from "../../... |
<reponame>rhalff/hokus
import * as fs from "fs-extra";
import { SiteSource } from "./types";
import { WorkspaceHeader } from "./../../global-types";
import pathHelper from "../path-helper";
import { appEventEmitter, WorkspaceFileChangedEvent, SiteTouchedEvent } from "../app-event-emmiter";
import * as simpleGit from "s... |
import * as React from 'react';
import { delay } from 'rewire-common';
import { countries, searcher } from './demo-data';
import { Observe } from 'rewire-core';
import {
Form,
FormView,
Modal,
TransitionWrapper,
validator,
field,
error,
} from ... |
import fs from 'fs';
import path from 'path';
import chalk from 'chalk';
import glob from 'glob';
import _ from 'lodash';
import ora from 'ora';
import ts from 'typescript';
import yargs from 'yargs';
import {checkSource, applyPrefixes, extractSamples} from './code-sample';
import {startLog, log, flushLog, logFile} f... |
import React, { useLayoutEffect, useRef, useState } from "react";
import { Text } from "@visx/text";
import { GlyphDot } from "@visx/glyph";
import { DataLeaf } from "./IamGroot";
const Icon = require(`../../svg/graphsymbols/download.svg`).default;
interface LeafProps {
data: DataLeaf;
index: number;
width: num... |
<filename>src/personality/die-roll.ts
import { Message, MessageEmbed } from 'discord.js';
import { DependencyContainer } from '../interfaces/dependency-container';
import { Personality } from '../interfaces/personality';
import { MessageType } from '../types';
const maxNumberDice = 8;
const maxNumberSides = 100;
cons... |
import { MethodNotImplementedError } from "./Errors";
import { Copilot } from "./Copilot";
import * as fs from "fs-extra";
import * as simplegit from 'simple-git/promise';
import { strictEqual } from "assert";
export interface ProjectMeta {
stages: Array<Stage>;
}
export interface Stage {
/**
* ID of the ... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------... |
import {Component, OnDestroy, OnInit} from '@angular/core';
import {MyMeta, Post, Typetag} from '../../models';
import {TypetagService} from '../../shared-service/model/typetag.service';
import {StorageService} from '../../shared-service/utils/storage.service';
import {PostService} from '../../shared-service/model/post... |
import React from "react";
import { ModalProps, Modal } from "@/components/Molecules";
import { Label, BaseAsset } from "@/components/Atoms";
import {
alpha,
Box,
IconButton,
Typography,
useTheme,
Button,
} from "@mui/material";
import CloseIcon from "@mui/icons-material/Close";
import { useDispatch } fr... |
import {
InstancedInterleavedBuffer,
InterleavedBufferAttribute,
Line3,
MathUtils,
Matrix4,
Mesh,
PerspectiveCamera,
Raycaster,
Vector3,
Vector4,
BufferAttribute,
Intersection,
} from 'three'
import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry'
import { LineMaterial } from '../li... |
import React, { useState } from "react";
import { useForm } from "react-hook-form";
import type { clutch as IClutch } from "@clutch-sh/api";
import type { BaseWorkflowProps, ClutchError } from "@clutch-sh/core";
import {
Button,
ButtonGroup,
client,
Dialog,
DialogActions,
DialogContent,
Form,
useNavigat... |
import {
BOOLEAN_OP_FACTORIES,
FACTORIES,
mainNodeId,
SKIP_AUTO_PROPS,
SKIP_GROUP_PROPS,
SKIP_IN_INSTANCE_PROPS
} from "./common";
/**
* Create a real Figma node from an object produced by `serializeNode`.
*
* @param obj A previously serialized node, i.e. something that `serializeNode` returned.
* @ret... |
<filename>src/store/modules/d3store.ts
import * as d3 from 'd3';
import { forceSimulation } from 'd3-force';
import { HEIGHT, WIDTH } from '@/utils/consts';
import {
D3DragEvent,
Simulation,
SimulationNodeDatum,
SubjectPosition,
} from 'd3';
import { Link, Node } from '@/utils/types';
export const d3store = {
... |
<gh_stars>0
import "mocha"
import { assert } from "chai"
import apply from 'querycraft-to-function'
import toElastic from './toElastic'
import ESQueryAggregationSource, { getBucketsFromAggregationOutput, Bucket } from './Aggregations'
import { Aggregation, AbstractAggregationSource, BucketsAggregation, FilterAggregatio... |
<reponame>WaiSiuKei/fin<gh_stars>1-10
import { ContextKeyExpr } from '@fin/contextkey';
import { OperatingSystem, OS } from '@fin/platform';
import { createKeybinding, Keybinding, KeybindingType, KeyCode, SimpleKeybinding, ChordKeybinding } from '@fin/keyboard';
import { CommandsRegistry, ICommandHandler } from '@fin/c... |
<filename>test/app/src/widget.ts
/*!
* Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses... |
import { readdirSync, statSync } from 'fs';
import { join, relative } from 'path';
import { Readable } from 'stream';
import { us_listen_socket_close, TemplatedApp, HttpResponse, HttpRequest } from 'uWebSockets.js';
import { watch } from 'chokidar';
import { wsConfig } from './livereload';
import sendFile from './send... |
import { AlphaState } from "../../shaders/states/AlphaState";
import { CullState } from "../../shaders/states/CullState";
import { DepthState } from "../../shaders/states/DepthState";
import { OffsetState } from "../../shaders/states/OffsetState";
import { WireState } from "../../shaders/states/WireState";
import { GL2... |
import { RegionType, CamelCasedProps } from './../interface';
import { DeployDashboardInputs } from './dashboard';
export interface CreateAlarmOptions {
// 告警 ID
id?: string;
// 告警名称,唯一
name: string;
// 通知模板 ID
noticeId: string;
// 日志集 ID
logsetId: string;
// 主题 ID
topicId: string;
// 监控对象
targ... |
import * as path from 'path';
// we must use a relative path here instead of tsconfig#paths
// see https://github.com/monounity/karma-typescript/issues/315
import * as d from '../../internal';
/**
* Utilities for creating a test bed to execute HTML rendering tests against
*/
type DomTestUtilities = {
/**
* Cre... |
import React, { useCallback, useState, useEffect } from "react";
import {
withStyles,
WithStyles,
createStyles,
Theme,
Typography,
TextField,
Button,
} from "@material-ui/core";
import { useForm } from "react-hook-form";
import {
KeyboardDatePicker,
MuiPickersUtilsProvider,
} from "@material-ui/picker... |
import { World } from '@antv/g-webgpu';
import * as dat from 'dat.gui';
import { quat, vec3, vec4 } from 'gl-matrix';
import React, { useEffect, useState } from 'react';
import ReactDOM from 'react-dom';
import Stats from 'stats.js';
const vertexShaderGLSL = `
attribute vec3 position;
attribute vec3 offset;
attribute ... |
<reponame>XevoInc/balena-supervisor
import { ClientRequest } from 'http';
import * as https from 'https';
import * as _ from 'lodash';
import * as stream from 'stream';
import * as url from 'url';
import * as zlib from 'zlib';
import { LogBackend, LogMessage } from './log-backend';
import log from '../lib/supervisor-... |
import React, { useState, useEffect } from 'react'
import Badge from './badge'
import Configuration from '../../../common/types/configType'
import { getDevIconClassName, getHeroPattern } from '../../../common/helpers'
const Card: React.FC<Configuration> = (config) => {
const [backgroundPattern, setBackgroundPatte... |
<filename>packages/recore-fx/src/obx/derivation.ts
import { IObservable, IDepTreeNode, addObserver, removeObserver } from './observable/observable';
import { globalState } from './global-state';
export enum DerivationState {
// before being run or (outside batch and not being observed)
// at this point derivation ... |
import { DefaultStore, FirebaseStore, IStore } from "./Store"
import { TradeActions } from "./TradeActions"
import { Statistics } from "./Statistics"
import { Exchange } from "./Exchange"
import { IScores } from "./Scores"
import { Log, SECONDS_IN_MIN, TICK_INTERVAL_MIN } from "./Common"
import {
AssetsResponse,
Co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.