text stringlengths 3.08k 15.5k |
|---|
import { Action, Actions, Layout, Model, TabNode } from "flexlayout-react";
import { useCallback, useEffect, useRef } from "react";
import toast from "react-hot-toast";
import {
useRecoilCallback,
useRecoilState,
useRecoilValueLoadable,
} from "recoil";
import DiagramOptions from "./components/DiagramOptions";
im... |
<filename>src/plugins/MathJaxRenderer.ts
import {mathjax} from 'mathjax-full/js/mathjax'
import {TeX} from 'mathjax-full/js/input/tex'
import {SVG} from 'mathjax-full/js/output/svg'
import {liteAdaptor, LiteAdaptor} from 'mathjax-full/js/adaptors/liteAdaptor'
import {RegisterHTMLHandler} from 'mathjax-full/js/handlers/... |
/*
Copyright (c) Walmart Inc.
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 * as k8s from "@kubernetes/client-node";
import {
IComponentContext,
IInputSource,
IRequireInitialization,
Lifecycle,
makeLifecycle... |
import { INestApplicationContext, WebSocketAdapter, Logger } from '@nestjs/common';
import { IoAdapter } from '@nestjs/platform-socket.io';
import socketio from 'socket.io';
import { RedisPropagatorService } from '../redis-propagator/redis-propagator.service';
import { SocketStateService } from './socket-state.servic... |
<reponame>leizongmin/leizm-async-throttle
/**
* 执行超时错误
*/
export class AsyncThrottleRunTimeoutError extends Error {
public name: string = "AsyncThrottleRunTimeoutError";
public code: string = "RUN_TIMEOUT";
}
/**
* 等待超时错误
*/
export class AsyncThrottleWaitTimeoutError extends Error {
public name: string = "As... |
import {Component, HostListener, OnInit, ViewChild} from '@angular/core';
import {ActivatedRoute} from "@angular/router";
import {SheetService} from "../services/sheet.service";
import {Submission} from "../models/submission";
import {Exercise} from "../models/exercise";
import {TaskService} from "../services/task.serv... |
/* eslint-disable dot-notation */
/* eslint-disable no-unused-vars */
/* eslint-disable react/self-closing-comp */
/* eslint-disable react/jsx-no-bind */
/* eslint-disable react/react-in-jsx-scope */
/* eslint-disable prettier/prettier */
import React, { useEffect, useRef, useContext } from 'react';
import { ModalDataC... |
<filename>packages/core/src/components/molecules/p6-modal/p6-modal.stories.ts<gh_stars>0
import { library } from '@fortawesome/fontawesome-svg-core';
import { faHeart, faReply, faRetweet } from '@fortawesome/free-solid-svg-icons';
import { html, TemplateResult } from 'lit-html';
export default {
title: 'Molecules/Mo... |
import { Injectable } from "@angular/core";
import { ArrayType, ControlPin, DataPin, NodeDescriptor, Type } from "./types";
import * as builtins from "./builtins.json";
import { boolType, floatType, intType, strType } from "./intrinsics";
import { IDefinitionCategory, INodeDescriptor } from "./serialisation";
import { ... |
import assertExists from "@xtjs/lib/js/assertExists";
import classNames from "@xtjs/lib/js/classNames";
import nativeOrdering from "@xtjs/lib/js/nativeOrdering";
import mapDefined from "@xtjs/lib/js/mapDefined";
import { DateTime, Duration } from "luxon";
import React, { Fragment, MutableRefObject, useEffect, useState ... |
<gh_stars>0
import { Palette } from '../color/types'
import { h, css, populateElement } from '../util'
import { paletteToImage, slicePalette } from '../color/palette'
import { createCanvasContext } from '../image'
import { line } from '../operations/line'
import { floodFill } from '../operations/floodfill'
import { cre... |
import React, { FC, useEffect, useRef } from "react";
import { Dimensions, View, StyleSheet, ScrollView, KeyboardAvoidingView, Platform } from "react-native";
import AppText from "../components/AppText";
import ListItem from "../components/ListItem";
import { SliderBox } from "react-native-image-slider-box";
impor... |
import React, {ReactNode, HTMLAttributes, forwardRef} from 'react'
import {useBem} from '@csszen/hooks.usebem'
import type {Property, Globals} from 'csstype'
type SelfPosition = 'center' | 'end' | 'flex-end' | 'flex-start' | 'self-end' | 'self-start' | 'start'
type ContentDistribution = 'space-around' | 'space-betwee... |
<gh_stars>100-1000
import { CellMatrix, CellMatrixProps, StickyRanges, translateLocationIdxToLookupKey } from './CellMatrix';
import { GridColumn, GridRow } from './InternalModel';
import { Range } from './Range';
export interface StickyEdges {
leftStickyColumns: number;
topStickyRows: number;
}
export interf... |
<reponame>intuition-robotics/thunderstorm
/*
* Testelot is a typescript scenario composing framework
*
* Copyright (C) 2020 Intuition Robotics
*
* 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 Lice... |
import { CartItem } from '@/types/cart';
import {
getDefaultOptionFromProduct,
getProductVariant,
} from '@/hooks/product/helpers';
import {
SelectedExtra,
SelectedOptions,
TDerivedExtraGroup,
TProductDetail,
} from '@/types/product';
import { intersection, get } from 'lodash';
import React, {
createConte... |
import { FastifyInstance, FastifyRequest, FastifyReply, FastifyServerOptions, fastify } from 'fastify'
import fs from 'fs'
import http from 'http'
import http2 from 'http2'
import { getReasonPhrase } from 'http-status-codes'
type ErrorHandler = (error: Error, req: FastifyRequest, res: FastifyReply) => Promise<void>
e... |
import {AView} from '../AView';
import {IViewContext, ISelection} from '../../base/interfaces';
import {IDTypeManager, ParseRangeUtils, Range, I18nextManager} from 'phovea_core';
import {ResolveUtils} from '../ResolveUtils';
import {ITDPMessage, ITDPSetItemSelectionMessage, ITDPSetParameterMessage} from './interfaces';... |
import ConcreteBinding from './binding.js';
import PluginContainer from './plugins.js';
import LocalizationPlugin from './plugin/localization.js';
export type DirectiveMap = { [key: string]: Constructor<IDirective<any>> };
export const uuidRegex: RegExp = /{([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12... |
/**
* ⚠️ !!!STOP: ESSENTIAL RULES MUST BE AUTOFIXABLE !!! ⚠️
* When adding rules here, you need to make sure they are compatible with
* `typescript-eslint`, as some rules such as `no-array-constructor` aren't compatible.
*/
const essentialRules = {
'react/jsx-boolean-value': 'error',
'react/jsx-fragments': ['er... |
import {applyChange} from "deep-diff";
import Hashes from "jshashes";
const preferencesKey = "preferences";
const tocKey = "toc.json";
const eventsPrefix = "events/";
const artifactsPrefix = "artifacts/";
import {Vector, Graph} from "@plastic-io/plastic-io"; // eslint-disable-line
interface Toc {
[key: string]: Toc... |
<filename>src/git-helper.ts<gh_stars>0
import * as os from 'os';
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as github from '@actions/github';
import type { components } from '@octokit/openapi-types';
import * as packageHelper from './package-helper';
export type Commit = c... |
import { FilterNode } from '../operation-node/filter-node.js'
import {
freeze,
isBoolean,
isFunction,
isNull,
isString,
} from '../util/object-utils.js'
import { AnySelectQueryBuilder, AnyRawBuilder } from '../util/type-utils.js'
import { isOperationNodeSource } from '../operation-node/operation-node-source.j... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
import Jimp, { MIME_PNG } from 'jimp';
import { SchwenzoClient } from '../../core/SchwenzoBot';
import { Message } from 'discord.js';
import { PrismaClient } from '@prisma/client';
import Component from '../../core/Component';
import ImageBlob from '../ImageBlob';
class Link {
private message: string;
private imag... |
<reponame>paulotrc/AngularExemplo
import {Compiler, Injectable, Injector, NgModuleFactory, NgModuleRef, Type} from '@angular/core';
import {HttpRequest, HttpResponse, HttpHandler, HttpEvent, HttpInterceptor, HTTP_INTERCEPTORS} from '@angular/common/http';
import {Observable, of, throwError, from } from 'rxjs';
import {... |
import { assertStatic, createEffect, createSignal, DestructionScope, getScope, onCleanup, onUpdate, runInScope, sample, Signal } from "@dynein/state"
import { addNode, setInsertionState } from "@dynein/dom"
import { WatchedArray } from "@dynein/watched-builtins"
enum RenderState {
keep,
add,
remove
}
interface Ite... |
<reponame>jiayisheji/simple-ui
import { CollectionViewer, DataSource, isDataSource, ListRange } from '@angular/cdk/collections';
import { AfterContentChecked, Directive, EventEmitter, Input, isDevMode, OnDestroy, OnInit, Output, TrackByFunction } from '@angular/core';
import { BooleanInput, toBoolean } from '@ngx-simpl... |
import React, { useEffect, useState } from "react";
import { useTheme } from "styled-components";
import { Modal, useModal } from ".";
import { ModalProps } from "./types";
import Button from "../../components/Button/Button";
import Heading from "../../components/Heading/Heading";
export default {
title: "Widgets/Mo... |
<filename>src/plugins/namespaceResources.ts
/*
Copyright (c) Walmart Inc.
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 {ActionGroupSpec, ActionContextType, ActionOutputStyle, ActionOutput, ActionContextOrder} from '../actions/... |
export declare type ListPredict<T> = T | ((item?: any, index?: number, list?: List<T>) => boolean);
export declare class List<T> {
private $;
constructor(...args: T[]);
push(item: T): number;
get length(): number;
splice(start: number, deleteCount: number, ...items: T[]): this;
join(separator?: ... |
<gh_stars>0
/** @format */
import { Block } from '@/typings/muya'
import Muya from '../..'
import './index.css'
const CIRCLES = ['top-left', 'top-right', 'bottom-left', 'bottom-right']
const CIRCLE_RADIO = 6
class Transformer {
static pluginName = 'transformer'
muya: Muya
reference: HTMLElement | null
imag... |
import { FACTIONS, FLAGS } from "./utils/constants"
import jwt, { Secret } from "jsonwebtoken"
import { config } from "./config"
import { getFlags } from "./utils/helpers"
import getRawBody from "raw-body"
import got from "got"
import http from "http"
import sqlite from "better-sqlite3"
const db = sqlite("data/db.sql... |
import { IntegerType, FieldOptions, StringOptions, StringType, TimestampType, FloatType, BooleanType, UUIDType, TimeType, TimetzType, TimestamptzType, DateType, EnumType, Schema, Field } from "@snowtop/ent";
import bcryptjs from "bcryptjs"
import { getValue } from "./value";
import { validate as validateUUid } from "uu... |
import React, { useRef, useState } from "react";
import styled from "styled-components";
import { remote } from "electron";
const SvgHeight = 180;
const steps = 5;
const accentColor = remote.systemPreferences.getAccentColor();
const KnobSVG = styled.svg`
.cls-1 {
fill: #545353;
}
.cls-2 {
font-size: 20... |
import { Action } from 'redux';
import { ThunkDispatch } from 'redux-thunk';
import { AppConfig, AppRuntime } from './store';
import { AppError, BaseStoreState } from '../store';
import { Channel } from '../../lib/windowChannel';
import { getParamsFromDOM } from '../../lib/IFrameIntegration';
import { authAuthorized }... |
'use strict';
//polyfills
const process = require('suman-browser-polyfills/modules/process');
const global = require('suman-browser-polyfills/modules/global');
//core
const fs = require('fs');
const cp = require('child_process');
const path = require('path');
const os = require('os');
//npm
const async = require('as... |
import GnosisSafeSol from '@gnosis.pm/safe-contracts/build/contracts/GnosisSafe.json'
import { BigNumber } from 'bignumber.js'
import { AbiItem } from 'web3-utils'
import { CALL } from '.'
import { getGnosisSafeInstanceAt } from 'src/logic/contracts/safeContracts'
import { generateSignaturesFromTxConfirmations } from... |
import { Model, Pojo } from "objection";
import * as decorators from "../util/objection";
import { evaluateRangeCondition, RankedTierCondition, RoleCombinator, TypedRoleCondition } from "../types/conditions";
import User, { UserRank } from "./user";
import config from "../config";
import omit = require("lodash.omit");
... |
<reponame>DeBortoliWines/openproject
// -- copyright
// OpenProject is an open source project management software.
// Copyright (C) 2012-2020 the OpenProject GmbH
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProje... |
import qs from 'querystring';
import axios, {AxiosResponse} from 'axios';
import scrapeIt from 'scrape-it';
import {Challenge, SolvedInfo, Profile} from './BasicTypes';
const SAFELIMIT = 100;
const getAxiosClientTW = () => {
const clientTW = axios.create({
xsrfCookieName: 'csrftoken',
});
clientTW.defaults.withC... |
import { getAddress } from '@ethersproject/address';
import { formatUnits } from '@ethersproject/units';
import { subgraphRequest } from '../../utils';
export const author = 'Kittyslasher';
export const version = '0.2.0';
const HONEYSWAP_SUBGRAPH_URL = {
'100': {
exchange: 'https://api.thegraph.com/subgraphs/na... |
import sha256, { hmac } from 'fast-sha256'
import { Headers } from 'cross-fetch'
export interface CredentialInfo {
readonly accessKeyId: string,
readonly secretAccessKey: string,
readonly regionName: string
}
export interface RequestInfo {
readonly method: string,
readonly url: URL,
readonly s... |
<gh_stars>1-10
import * as TypeORM from "typeorm";
import Model from "./common";
declare var syzoj, ErrorMessage: any;
import User from "./user";
import Problem from "./problem";
import Contest from "./contest";
const Judger = syzoj.lib('judger');
enum Status {
ACCEPTED = "Accepted",
COMPILE_ERROR = "Compile Er... |
<gh_stars>0
import path from "path"
import fs from "fs"
import chalk from "chalk"
import { cosmiconfigSync } from "cosmiconfig"
import { validate } from "jest-validate"
export type CatalogFormat = "lingui" | "minimal" | "po" | "csv"
export type CatalogFormatOptions = {
origins?: boolean
}
export type OrderBy = "me... |
import { AppState } from '../app-state'
import { BehaviorSubject, combineLatest, merge, Observable, of } from 'rxjs'
import {
filterCtxMessage,
PyYouwol as pyYw,
WebSocketResponse$,
} from '@youwol/http-clients'
import { map, scan, shareReplay } from 'rxjs/operators'
import { PackageView } from './package/... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {matchRoutes} from 'react-router-config';
import fs from 'fs-extra';
import _ from 'lodash';
import type {RouteConfig, Repo... |
<reponame>dandycheung/use-gesture
import { EngineMap } from './actions'
import { parse } from './config/resolver'
import { isTouch, parseProp, toHandlerProp, touchIds } from './utils/events'
import { EventStore } from './EventStore'
import { TimeoutStore } from './TimeoutStore'
import { chain } from './utils/fn'
import... |
// Type definitions for i18next v2.0.17
// Project: http://i18next.com
// Definitions by: <NAME> <https://github.com/mdocter>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Sources: https://github.com/jamuhl/i18next/
/// <reference path="../express/express.d.ts" />
/// <reference path="../jquer... |
import React, { useEffect, useMemo, useRef, useState } from 'react'
import { Player, PlayerRef, findCurrent } from '@posthog/react-rrweb-player'
import { Card, Col, Input, Row, Skeleton, Tag } from 'antd'
import {
UserOutlined,
FieldTimeOutlined,
PlusOutlined,
SyncOutlined,
LaptopOutlined,
Mobil... |
import { ParamValue } from 'components/Parameter/Parameter';
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';
import { BotConfig, Device, Entity, Flow, InstagramProfile } from 'types';
type Profile = {
name: string;
params: Record<string, ParamValue>;
};
type EntityKey... |
import { Gain } from "../../core/context/Gain";
import { connectSeries, ToneAudioNode } from "../../core/context/ToneAudioNode";
import { Frequency } from "../../core/type/Units";
import { optionsFromArguments } from "../../core/util/Defaults";
import { readOnly, writable } from "../../core/util/Interface";
import { is... |
import { IRipper } from './json-ripper.interface';
import { ICacheableDataCollection } from './../interfaces/data-collection';
import { ICacheableDocumentResource } from './../interfaces/data-object';
import { Resource } from './../resource';
import { DexieDataProvider } from '../data-providers/dexie-data-provider';
im... |
import autoprefixer from 'autoprefixer'
import TerserPlugin from 'terser-webpack-plugin'
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
import CssoWebpackPlugin from 'csso-webpack-plugin'
import WriteFilePlugin from 'write-file-webpack-plugin'
const log = require('debug')('bp:webpack')
import escapeRegex f... |
/// <reference path="timezonecomplete-1.3.0.d.ts" />
import tc = require("timezonecomplete-1.3.0");
var b: boolean = tc.isLeapYear(2014);
var n: number = tc.daysInMonth(2014, 10);
var s: string = tc.isoString(2014, 6, 30, 22, 10, 11, 230);
// DURATION
var d: tc.Duration;
var d1: tc.Duration = tc.Duration.hours(24);... |
import type { Ref, ShallowRef } from 'vue-demi'
import { ref, shallowRef } from 'vue-demi'
import { isString, until } from '@vueuse/shared'
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource } from 'axios'
import axios from 'axios'
export interface UseAxiosReturn<T> {
/**
... |
<reponame>ryandudek/equal-access<gh_stars>100-1000
/******************************************************************************
Copyright:: 2020- IBM, 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 ... |
<reponame>dnvgithub/camn
import { LoggerOptions, LoggerColorsOption, LoggerFilterOption, LogMsg } from '../models/logger';
import { HttpClient, HttpHeaders, HttpXhrBackend } from '@angular/common/http';
declare var console;
const httpClient = new HttpClient(new HttpXhrBackend({ build: () => new XMLHttpRequest() }));
... |
import { ContextMessageUpdate } from 'telegraf';
import ClientError from '../../lib/errors/client';
import ValidateError from '../../lib/errors/validate';
import { getQuizKb } from '../../lib/keyboards';
import { Attachment, MessageParse, PromptFunc, State } from '../../types/prompt';
import { QuestionKey } from '../..... |
import { vec3 } from "gl-matrix";
import { BoundingBoxEmpty, BoundingBoxExtendByPoint } from "../graphics/shared";
const ATOM_NAME = 'ATOM ';
const RESIDUE_NAME = 'SEQRES';
export class Atom {
serial: number | null = null;
name: string | null = null;
altLoc: string | null = null;
resName: string | null = nul... |
/**
* 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
* distribu... |
<filename>src/util/struct_array.ts
// Note: all "sizes" are measured in bytes
import assert from 'assert';
import type {Transferable} from '../types/transferable';
const viewTypes = {
'Int8': Int8Array,
'Uint8': Uint8Array,
'Int16': Int16Array,
'Uint16': Uint16Array,
'Int32': Int32Array,
'Uin... |
import { EventEmitter } from 'events';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
export interface IXmlAttribute {
name: string;
value: string;
}
export interface IWsdlBaseOptions {
attributesKey?: string;
valueKey?: string;
xmlKey?: string;
overrideR... |
<gh_stars>1-10
import { uniqBy, List } from "lodash"
import { IGatsbyState } from "../redux/types"
import { Stats } from "webpack"
interface ICompilation {
modules: IModule[]
}
interface IReason extends Omit<Stats.Reason, "module"> {
module: IModule
}
interface IModule extends Omit<Stats.FnModules, "identifier" ... |
import { Action } from '@ngrx/store';
import { ErrorPayload } from '../shared/models/errorPayload';
import { DialogConfig } from '../shared/models/alertData';
import { RTLConfiguration, Settings, ConfigSettingsNode, GetInfoRoot, SSO } from '../shared/models/RTLconfig';
import { ServicesEnum } from '../shared/services/... |
<filename>templates/typescript/samples/sample-skill/src/dialogs/mainDialog.ts<gh_stars>1-10
/**
* Copyright(c) Microsoft Corporation.All rights reserved.
* Licensed under the MIT License.
*/
import {
Activity,
ActivityTypes,
BotFrameworkAdapter,
BotTelemetryClient,
RecognizerResult,
StatePro... |
import React, {useRef} from 'react';
import {Animated, ImageBackground, View} from 'react-native';
import Feather from 'react-native-vector-icons/Feather';
import {useSafeAreaInsets} from 'react-native-safe-area-context';
// import i18n from 'i18n-js';
import {BlurView} from 'expo-blur';
import dayjs from 'dayjs';
i... |
import type {
moneyMarket,
Rate,
StableDenom,
UST,
WASMContractResult,
} from '@anchor-protocol/types';
import { ContractAddress, HumanAddr } from '@anchor-protocol/types';
import { createMap, map, Mapped, useMap } from '@terra-dev/use-map';
import { useContractAddress } from 'base/contexts/contract';
import ... |
import { KJUR, ASN1HEX, KEYUTIL, b64toBA, b64tohex, RSAKey, X509, X509CRL } from 'jsrsasign';
const ec = new KJUR.crypto.ECDSA({ curve: 'secp256r1', pub: '1a2b3c', prv: '1a2b3c' });
ec.generateKeyPairHex();
ec.getPublicKeyXYHex();
ec.parseSigHex('30...');
ec.parseSigHexInHexRS('30...');
const mac = new KJUR.crypto.Ma... |
import { PlusOutlined, HomeOutlined, ContactsOutlined, ClusterOutlined } from '@ant-design/icons';
import { Avatar, Card, Col, Divider, Input, Row, Tag } from 'antd';
import React, { useState, useRef } from 'react';
import { GridContent } from '@ant-design/pro-layout';
import { Link, useRequest } from 'umi';
import typ... |
// @ts-nocheck
import { new_ws, set_ws, set_ws_state, ws, ws_state, ws_states } from './basics.js';
import { process_cmd, request_initial_config } from './commands.js';
import {
arraybuffer2type_header,
HEADER_TAG_COMMAND,
HEADER_TAG_DATA, HEADER_TAG_NODE,
HEADER_TAG_PIPELINE,
process_pipeline_headers,
TYP... |
<reponame>chaurov/cord-api-v3<filename>cord-api-v3/lib/cord-api-v3-stack.ts
import * as cdk from '@aws-cdk/core';
import ec2 = require("@aws-cdk/aws-ec2");
import ecs = require("@aws-cdk/aws-ecs");
import repo = require("@aws-cdk/aws-ecr");
import ecs_patterns = require("@aws-cdk/aws-ecs-patterns");
import elbv2 = requ... |
import * as os from 'os';
import {Page} from 'puppeteer';
import axios from 'axios';
import * as auth from './authentication';
import * as selector from './selector';
import {GotifyTest, newTest, newPluginDir} from './setup';
import {innerText, waitForCount, waitForExists} from './utils';
const pluginSupported = ['li... |
import { NgModule } from '@angular/core'
import { BrowserModule, Title } from '@angular/platform-browser'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'
import { FormsModule } from '@angular/forms'
import { React... |
import {ApolloProvider} from '@apollo/react-hooks';
import {MemoryRouter} from 'react-router-dom';
import {provider as Web3Provider} from 'web3-core/types';
import {Provider} from 'react-redux';
import {QueryClient, QueryClientProvider} from 'react-query';
import {Store} from 'redux';
import React, {useEffect, useMemo,... |
<filename>src/modules/Simulator.ts
import JulianDate from "./JulianDate";
import { PerformanceCounter } from "./PerformanceCounter";
import { Satellite } from "./Satellite";
import * as config from "../assets/config.json";
import { CanvasInstructions } from "./@types/CanvasInstructions";
type ViewerLayers = {
... |
/**
* BookmarksPane.tsx
*
* UX for rendering the bookmarks experience in the sidebar
*/
import * as React from "react"
import styled from "styled-components"
import * as path from "path"
import { Event, IDisposable, IEvent } from "oni-types"
import { SidebarPane } from "./../Sidebar"
import { IBookmark, IBookm... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
import * as Modkit from '../../src/index';
import { ModkitManifest, ModkitDependency } from '../../src/types/modkit';
import { loadByManifest, loadByUrl, validateManifest } from '../../src/helpers/manifest';
import { ModkitModuleFormatType, ModkitDependencyType } from '../../src/types/enum';
import { load as loadAmd }... |
import {Unit} from './units-constants';
import {
UnitData,
createResolveLocale,
toObject,
UnifiedNumberFormatLocaleData,
supportedLocales,
getCanonicalLocales,
unpackData,
setInternalSlot,
getOption,
getInternalSlot,
} from '@formatjs/intl-utils';
/**
* Check if a formatting number with unit is su... |
import { Box, Flex, Sans, space, Spinner, Theme } from "@artsy/palette"
import { ViewingRoomArtworks_viewingRoom } from "__generated__/ViewingRoomArtworks_viewingRoom.graphql"
import { ViewingRoomArtworksRendererQuery } from "__generated__/ViewingRoomArtworksRendererQuery.graphql"
import ImageView from "lib/Components/... |
<reponame>rince/blitz<filename>packages/core/src/types.ts<gh_stars>0
import {IncomingMessage, ServerResponse} from "http"
import {NextRouter} from "next/router"
import {NextApiRequest, NextApiResponse, NextComponentType, NextPageContext} from "next/types"
import {AuthenticateOptions, Strategy} from "passport"
import {M... |
<gh_stars>1-10
/**
* @module node-opcua-pseudo-session
*/
import { AttributeIds, BrowseDirection, makeResultMask } from "node-opcua-data-model";
import { DataValue } from "node-opcua-data-value";
import { NodeIdLike, resolveNodeId } from "node-opcua-nodeid";
import {
BrowseDescription,
BrowseDescripti... |
<filename>packages/node-opcua-transport/source/message_builder_base.ts
/**
* @module node-opcua-transport
*/
import { EventEmitter } from "events";
import { assert } from "node-opcua-assert";
import { BinaryStream } from "node-opcua-binary-stream";
import { createFastUninitializedBuffer } from "node-opcua-buffer-uti... |
<filename>index.ts
import fetch from "node-fetch";
import { CustomPlugin, DisTubeError, Playlist, Song, checkInvalidKey } from "distube";
import type { GuildMember, StageChannel, TextChannel, VoiceChannel } from "discord.js";
import type { PlaylistInfo, Queue, SearchResult } from "distube";
const urlRegex = /^https?:\/... |
<filename>tools/getBalance.ts
// Ad-hoc script to get balances from exchanges and output the result in CSV format.
import * as _ from 'lodash';
import { getConfigRoot, findBrokerConfig } from '../src/configUtil';
import BitflyerApi from '../src/Bitflyer/BrokerApi';
import CoincheckApi from '../src/Coincheck/BrokerApi'... |
<reponame>ldrobner/gm-games
import { PHASE } from "../../common";
import { team } from "../core";
import { idb } from "../db";
import { g, helpers } from "../util";
import type { UpdateEvents, ViewInput } from "../../common/types";
const updateTeamFinances = async (
inputs: ViewInput<"teamFinances">,
updateEvents: U... |
import {Actions, createEffect} from "@ngrx/effects";
import {concatMap, filter, finalize, map, mergeMap, switchMap, takeUntil, tap, throttleTime, withLatestFrom} from "rxjs/operators";
import {EMPTY, forkJoin, from, merge, of} from "rxjs";
import {Injectable, NgZone} from "@angular/core";
import {omit, pick} from "reme... |
import { useState } from 'react'
import { Story, Meta } from '@storybook/react'
import {
Table,
TableProps,
Typography,
Icon,
Checkbox,
TextField,
Switch,
Button,
Menu,
SingleSelect,
EdsProvider,
} from '../../src'
import { save, more_vertical, copy, folder } from '@equinor/eds-icons'
import { tok... |
import { Env } from "../component/component";
import { QWeb } from "../qweb/index";
import { makeDirective } from "./directive";
import { LINK_TEMPLATE, LINK_TEMPLATE_NAME } from "./Link";
type NavigationGuard = (info: {
env: Env;
to: Route | null;
from: Route | null;
}) => boolean | Destination;
export interfa... |
/*!
* Adapted from path-to-regexp at https://github.com/pillarjs/path-to-regexp
* which is licensed as:
*
* The MIT License (MIT)
*
* Copyright (c) 2014 <NAME> (<EMAIL>)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "... |
/**
* Copyright (c) Microsoft 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 agr... |
import type { ExtractPropTypes, VNode, CSSProperties } from 'vue'
import { defineComponent, getCurrentInstance, ref, computed, nextTick, watch, reactive, createCommentVNode, h } from 'vue'
import usePosition, { positionProps } from '@vue-cesium/composables/private/use-position'
import type { VcCompassEvt, VcComponentIn... |
<filename>08/lib.ts
import { isnt } from "../util/functional.ts";
import { countSetBits } from "../util/number.ts";
export type DisplayLine = {
signal: number[];
output: number[];
};
/**
* a a a a a a a a a a a a
* b c b c b c b c
* b c ... |
<filename>src/index.ts
import * as fs from "fs";
import * as yaml from "js-yaml";
import * as _ from "lodash";
import * as luxon from "luxon";
import * as yargs from "yargs";
import {
Config,
ProcessedGame,
ProcessedGameList,
ProviderTeam,
ProcessedFeedList,
ProviderGame,
getGameId,
ProcessedFeed,
se... |
<reponame>wdrach/tarx<gh_stars>0
import { Subject } from 'rxjs';
import axios from 'axios';
import WS from 'ws';
import { Price, Candle, Candles, log } from "../lib";
import { LogLevel, Granularity } from "../constants";
import { CoinbaseProduct, COINBASE_EARLIEST_TIMESTAMP, COINBASE_API } from "./constants";
export ... |
import { useRouter } from "next/router";
import dynamic from "next/dynamic";
import { useState } from "react";
import { Tab } from "@headlessui/react";
import axios from "axios";
import classNames from "classnames";
import Image from "next/image";
import SimpleGallery from "@components/Gallery/SimpleGallery";
const Ma... |
import express from 'express';
import morgan from 'morgan';
import cors from 'cors';
import jwt from 'express-jwt';
import { authTokenHandler } from './routes/auth-token';
import { platformInfoHandler } from './routes/platform-info';
import { metrics } from './metrics';
import { importHandler } from './routes/import';
... |
import React, { useState, useEffect } from "react";
import { Layout, Row, Col, Form, Button, } from 'antd';
import { useFormik } from "formik";
import * as datasets from "../../Config/datasets"
import { SERVER } from "../../Config/Server.config";
import { Redirect, Link } from "react-router-dom";
import CarouselAutoPla... |
import { Vec4 } from "../Math/Vector";
import { IconCache, CheckValue, DpiSize } from "./UiCommon";
export enum MessageIcon {
None,
Infomation,
Warning,
Error,
}
export enum MessageButton {
Ok /**/ = 0x01,
Yes /**/ = 0x02,
No /**/ = 0x04,
Retry /**/ = 0x08,
Cancel /**/ = 0x10,
Close /**/ = 0x20,
OkCancel ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.