text stringlengths 3.08k 15.5k |
|---|
<reponame>beeme1mr/barista
/**
* @license
* Copyright 2020 Dynatrace LLC
* 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 requi... |
<filename>packages/botbuilder-transcript-cosmosdb/src/index.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { Activity, PagedResult, TranscriptInfo, TranscriptStore } from 'botbuilder-core';
import { Collection, DocumentClient } from 'documentdb';
import { cre... |
<filename>src/createStore.ts
/**
* @author empty916
* @email [<EMAIL>]
* @create date 2019-08-09 17:12:36
* @modify date 2019-08-09 17:12:36
* @desc [description]
*/
type anyFn = (...arg: any[]) => any;
type TActions = {
[type: string]: anyFn,
};
type TMaps = {
[p: string]: (state: any) => unknown;
};
export i... |
import { GetStaticPaths, GetStaticProps } from 'next';
import Head from 'next/head';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { FiCalendar, FiUser, FiClock } from 'react-icons/fi';
import { format, parseISO } from 'date-fns';
import { ptBR } from 'date-fns/locale';
import { RichText... |
import {css, html, PropertyValues} from 'lit';
import {customElement, property, query} from 'lit/decorators.js';
import {HandDrawnBase, RoughObjCanvas, RoughObjSvg} from './base/hand-drawn-base';
import {Options} from "roughjs/bin/core";
enum HandDrawnIconType {
LOADING = 'loading',
CROSS = 'cross',
TICK = 'tick... |
/*
* codeFlow.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
* Author: <NAME>
*
* Data structures that track the code flow (or more accurately,
* the inverse of code flow) starting with return statements and
* working back to the entry. This allows us to work out the
* types at eac... |
<filename>src/index.ts
import { Client } from 'ssh2';
import { SSHAgentDeamon } from './ssh-agent';
import fs from 'fs';
import { SSHAgentClient } from './ssh-agent/client';
import { debug as d } from 'debug';
d.formatters.b = (v) => v.toString('base64');
const debug = d('ssh');
export interface HostData {
host... |
/* eslint-disable @typescript-eslint/naming-convention */
import { USER_PROFILE } from '@locokit/lck-glossary'
import { AbilityBuilder, makeAbilityFromRules } from 'feathers-casl'
import { AppAbility, resolveAction } from './definitions'
import { HookContext, Params, Query } from '@feathersjs/feathers'
import { LckAcl... |
<filename>src/structure/structure.ts
/**
* @packageDocumentation
* @module structure
*/
import assert from 'assert';
import {JSmolWidget} from './widget';
import {structure2JSmol} from './jsmol';
import {Structure, Environment} from '../dataset';
import {Indexes, EnvironmentIndexer} from '../utils';
function grou... |
import {
removalLogger,
statsLogger,
} from '@pnpm/core-loggers'
import {
Lockfile,
LockfileImporter,
PackageSnapshots,
} from '@pnpm/lockfile-types'
import { packageIdFromSnapshot } from '@pnpm/lockfile-utils'
import logger from '@pnpm/logger'
import readModulesDir from '@pnpm/read-modules-dir'
import { Stor... |
/* eslint-disable no-multi-assign */
/* eslint-disable no-restricted-syntax */
/* eslint-disable guard-for-in */
/* eslint-disable no-param-reassign */
/**
* https://github.com/think2011/ref-line/edit/master/src/ref-line.js
*/
import VideoManager from './VideoManager';
interface Conditions {
[key: string]: any[];... |
<filename>src/module.api/poolpair.controller.e2e.ts
import { PoolPairController } from '@src/module.api/poolpair.controller'
import { MasterNodeRegTestContainer } from '@defichain/testcontainers'
import { NestFastifyApplication } from '@nestjs/platform-fastify'
import { createTestingApp, stopTestingApp, waitForIndexedH... |
<reponame>bstchow/core-utils
/* Internal Imports */
import { add0x, remove0x, toVerifiedBytes, encodeHex, getLen } from '../common'
import { Coder, Signature, Uint16, Uint8, Uint24, Address } from './types'
/***********************
* TxTypes and TxData *
**********************/
export enum TxType {
EIP155 = 0,
... |
import { Responses } from '@blockfrost/blockfrost-js';
import { getApi } from '../utils/blockfrostAPI';
import * as Types from '../types';
import { bDecode, bEncodePool, bDecodeMultipleOwners } from '../utils/';
export const getInfo = async (pools: string[]): Promise<Types.PoolInfoGetResult[]> => {
const api = getAp... |
<gh_stars>100-1000
import editorStyle from "../util/defaultStyle";
import Anchor from '../item/anchor';
import { ShapeOptions } from '@antv/g6/lib/interface/shape';
const dashArray = [
[0,1],
[0,2],
[1,2],
[0,1,1,2],
[0,2,1,2],
[1,2,1,2],
[2,2,1,2],
[3,2,1,2],
[4,2,1,2]
];
const interval = 9;
const l... |
import { clone, compact, findLastIndex, once } from "lodash"
import React, { Component } from "react"
import ReactDOM from "react-dom"
import styled, { StyledFunction } from "styled-components"
import { pMedia } from "../../Helpers"
import { ArticleData } from "../Typings"
import { Authors } from "./Authors"
import { E... |
import React from 'react';
import Header from 'components/Header';
import Footer from 'components/Footer';
import Title from 'components/Title';
import { CourseContent } from 'utility/types';
import usePromise from 'utility/usePromise';
import { getExercises, postCourse } from 'utility/api';
import Loading from './Loa... |
import React from 'react'
import { formatCurrency } from '../lib/utils'
import { TaxFormUserInput } from '../types/TaxFormUserInput'
import { Page } from '../components/Page'
import Decimal from 'decimal.js'
import { BackLink } from '../components/BackLink'
import { CheckboxSmall, FormWrapper, Input } from '../componen... |
import Vue from 'vue'
import { reactive } from '@vue/composition-api'
import { loadItem, loadItemUmd } from '@/components/mobile-render/render/utils'
import { Page, setCurrentPage, currentPage } from './page'
import { NodeItemBasic, NodeUmd, setCurrentNode } from './node'
import { deepClone, loadSdkSystem, inAdminPlatf... |
<filename>client/src/helpers/helpers.ts
import { ref, customRef } from "vue";
import queryString from "query-string";
export const debounce = (fn: Function, delay = 1000, immediate = false) => {
let timeout: ReturnType<typeof setTimeout>;
return (...args: any[]) => {
if (immediate && !timeout) fn(...args);
... |
// @strict: true
// @declaration: true
// Inference from template literal type to template literal type
type Foo1<T> = T extends `*${infer U}*` ? U : never;
type T01 = Foo1<'hello'>;
type T02 = Foo1<'*hello*'>;
type T03 = Foo1<'**hello**'>;
type T04 = Foo1<`*${string}*`>;
type T05 = Foo1<`*${number}*`>;
... |
import React, { useEffect, useMemo, useRef, useState } from 'react';
import { throttle } from 'throttle-debounce';
import uPlot, { AlignedData } from 'uplot';
import usePrevious from 'hooks/usePrevious';
import useResize from 'hooks/useResize';
import Message, { MessageType } from 'shared/components/Message';
import {... |
import base64url from 'base64url';
import {
AssertionCredentialJSON,
AuthenticatorDevice,
UserVerificationRequirement,
} from '@simplewebauthn/typescript-types';
import decodeClientDataJSON from '../helpers/decodeClientDataJSON';
import toHash from '../helpers/toHash';
import convertPublicKeyToPEM from '../helpe... |
import React, { useContext, useEffect, useState } from "react";
import styled from "styled-components";
import gameContext from "../../context/gameContext";
import gameService from "../../services/gameService";
import socketService from "../../services/socketService";
import Messages from "../chat";
interface I... |
import { Grid, Link, Tooltip } from '@mui/material';
import { DataGrid, GridRenderCellParams, GridRowsProp } from '@mui/x-data-grid';
import {
Paper,
RenderOnInterval,
TestFailureBadge,
TestRetriesBadge,
TestSkippedBadge,
TestSuccessBadge,
} from '@sorry-cypress/dashboard/components/';
import {
getInstanc... |
import { observable, action } from 'mobx';
import * as memoize from 'mem';
import TransactionModel from './Transaction';
import getWeb3 from '../getWeb3';
import { Transaction, TransactionReceipt, Contract, Block } from 'web3/types';
import { GENESIS_BLOCK } from '../config';
const range = (from: number, to: number) =... |
/// <reference path="helper.ts"/>
const foundationConfig = function(elem: any, isInit: boolean): any {
if (!isInit) {
return $(elem).foundation();
}
};
let bloodHoundConfig = {
engine: new Bloodhound({
remote: {
url: "/search/suggest/%QUERY%",
wildcard: "%QUERY%"
... |
import { RouteProp } from '@react-navigation/core'
import { StackScreenProps } from '@react-navigation/stack'
import React, { useState } from 'react'
import { useTranslation } from 'react-i18next'
import { SafeAreaView, ScrollView, StyleSheet, Text, View, ViewStyle } from 'react-native'
import { TouchableWithoutFeedbac... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import fs from 'fs';
import * as jose from 'jose';
import pako from 'pako';
import * as crypto from 'crypto';
import {ClaimData, parseClaimsData} from './selective-disclosure'
import { decodeQrFile, qrToJws } from './qr';
interface JWSPayload ... |
import { Component, ChangeDetectionStrategy, Input, Inject } from '@angular/core';
import { PositionEdgesService } from '../../shared/position-edges.service';
import { SortedTableHeaderComponent, SortedTableComponent } from '../../shared/sorted-table.component';
import { COMPENDIUM_CONFIG } from '../constants';
import... |
import * as path from 'path';
import * as url from 'url';
import * as createDebug from 'debug';
import * as assert from 'assert';
import * as getPort from 'get-port';
import * as http from 'http';
import { existsSync } from 'fs';
import { sync as glob } from 'glob';
import { readFileSync as readFile, existsSync as exis... |
import { Asset } from '../../assets/asset';
import { ImageAsset } from '../../assets/image-asset';
import { SpriteFrame } from '../../assets/sprite-frame';
import { Texture2D } from '../../assets/texture-2d';
import { Rect } from '../../core/value-types';
import { GFXDevice } from '../../gfx/device';
import { customiza... |
import {
forwardRef,
Inject,
Injectable,
Logger,
OnModuleDestroy,
OnModuleInit,
} from '@nestjs/common';
import { CronExpression, SchedulerRegistry } from '@nestjs/schedule';
import * as Queue from 'bee-queue';
import { CronJob } from 'cron';
import { Web3Connection, WEB3_CONNECTION } from '../web3/web3.mo... |
import React, { forwardRef, useState, useImperativeHandle, useMemo, RefObject } from 'react';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import classNames from 'classnames';
import { TreeNodeState, TreeNodeValue, TypeTreeNodeModel } from '../_common/js/tree/types';
import TreeNode from '..... |
<gh_stars>1-10
import { Bind, ContextManager } from "dreamstate";
// Lib.
import { Optional } from "@Lib/ts/types";
import { getFromLocalStorage, Logger, removeLocalStorageItem, setLocalStorageItem } from "@Lib/utils";
// Api.
import {
getAuthInfo,
IAuthInfoResponse,
ILoginResponse,
IRegisterResponse, ITokenD... |
import yargs from "yargs";
import { hideBin } from "yargs/helpers";
import fetch from "node-fetch";
import {
REPORTS_FOLDER,
URL_GRAPHQL_ENDPOINT,
BLOCK_WHERE_PRIVATE_SALES_HAVE_ROYALTIES,
} from "./constant";
import { GraphQLDatasource } from "./datasources/graphQL_datasource";
import { OpenseaSalesRe... |
import * as Rdf from './rdf-model';
export class GroupedQuad {
constructor(
readonly subject: Rdf.Quad['subject'] | BlankGroup | BlankList,
readonly predicate: Rdf.Quad['predicate'],
readonly object: Rdf.Quad['object'] | BlankGroup | BlankList,
readonly graph: Rdf.Quad['graph']
) {}
get termType(... |
import { Transform, registerTransform } from "../transitions";
import { RGroup, Bond, StraightArrow } from "@/models";
import { State, Action, StateMachine } from "..";
import { Constants } from "@/utils";
interface Point { x: number; y: number; }
// tslint:disable-next-line: no-empty
const mouseDownMoving: Transform... |
<filename>src/subscription/subscribe.ts
import { inspect } from '../jsutils/inspect';
import { isAsyncIterable } from '../jsutils/isAsyncIterable';
import { addPath, pathToArray } from '../jsutils/Path';
import type { Maybe } from '../jsutils/Maybe';
import { GraphQLError } from '../error/GraphQLError';
import { locat... |
<reponame>Free-Side/crowdwalk
import { Component, ElementRef, ViewChild } from '@angular/core';
import { latLng, tileLayer, Map, polyline, Layer, marker, Marker, icon, LatLng, latLngBounds } from "leaflet";
import { Point, VideoData, VideoDataLoader } from 'src/app/home/video-data';
import * as p5 from 'p5';
@Componen... |
<filename>src/discord-table.ts
export function createDiscordTable(props: DiscordTableProps): Array<string> {
return new DiscordTable(props).constructTable();
}
const DEFAULT_MAX_COLUMN_LENGTH: number = 50;
const DEFAULT_SPACES_BETWEEN_COLUMNS: number = 5;
interface DiscordTableProps {
readonly headers?: DiscordT... |
<filename>src/system.ts<gh_stars>1-10
// [VexFlow](http://vexflow.com) - Copyright (c) <NAME> 2010.
// MIT License
import { Element } from './element';
import { Factory } from './factory';
import { Formatter, FormatterOptions } from './formatter';
import { Note } from './note';
import { Stave, StaveOptions } from './s... |
import { Polygon, MultiPolygon } from '@turf/helpers';
import { BBox } from '../bbox';
import { CRS_IDS, CRS } from '../crs';
import { Effects } from '../mapDataManipulation/const';
/**
* Specifies the content that should be fetched (area, time or time interval, modifiers, output format,...).
*/
export type GetMapP... |
import { expect } from 'chai';
import * as fs from 'fs-extra';
import 'mocha';
import * as path from 'path';
import * as bqrs from 'semmle-bqrs';
import { FileReader } from 'semmle-io-node';
import * as tmp from 'tmp';
import * as url from 'url';
import { CancellationTokenSource } from 'vscode-jsonrpc';
import * as mes... |
import { Av, AvNodeTransform, AvSharedTextureInfo, AvVolume, EndpointAddr, EVolumeType, g_builtinModelPanel, nodeTransformToMat4, PanelMouseEventType, AvVector } from '@aardvarkxr/aardvark-shared';
import { vec2, vec4 } from '@tlaukkan/tsm';
import bind from 'bind-decorator';
import * as React from 'react';
import { Av... |
import {
CircularProgress,
makeStyles,
Toolbar,
Tooltip,
} from "@material-ui/core"
import {
FastForward,
FastRewind,
FiberManualRecord,
Loop,
Pause,
PlayArrow,
Stop,
} from "@material-ui/icons"
import { observer } from "mobx-react-lite"
import { FC } from "react"
import styled from "styled-compon... |
import {Component,Input,ChangeDetectionStrategy} from 'angular2/core';
import {HTTP_PROVIDERS} from 'angular2/http';
import 'rxjs/add/operator/map';
import 'rxjs/Rx';
import {Dropdown,PickList,MultiSelect,InputText,Messages,DataTable,Button,Dialog,Column,Header,Footer} from 'primeng/primeng';
import {Checkbox} from 'pr... |
<reponame>Iceymann18777/vscode-docker
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------... |
/*
* Copyright 2020, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
import * as React from "react";
import {
Grid,
GridItem,
Form,
FormGroup,
TextInput,
Dropdown,
DropdownToggle,
DropdownItem,
DropdownPosition
} from "@patte... |
<gh_stars>0
const mmap_lib_raw_ = require("../build/Release/kiflash")
type FileDescriptor = number
type MapProtectionFlags = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | number
// TODO: neat shit!
type MapProtectionFlagsList = Array<
| MmapIo["PROT_NONE"]
| MmapIo["PROT_READ"]
| MmapIo["PROT_WRITE"]
| MmapIo["PRO... |
import { Component, OnInit } from '@angular/core';
import { AndroidPermissions } from '@ionic-native/android-permissions/ngx';
import { LocationAccuracy } from '@ionic-native/location-accuracy/ngx';
import { Geolocation } from "@ionic-native/geolocation/ngx";
import { GunsCovidEvents, CovidApiService, GunsCovidResponse... |
import chai from "chai";
import { ethers } from "hardhat";
import { solidity } from "ethereum-waffle";
import { deployToken, initToken, CREATOR_ROLE, deployIDMinter } from "./utils";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { ERC721DAOToken, FixedPriceSpecificIDMinter } from "../typ... |
import { TilgjengeligeDager, MorsForbruk, ForelderForbruk, Forbruk } from 'shared/types';
import { FordelingDeltOmsorg, FordelingIkkeDeltOmsorg } from 'shared/components/fordelingGraf/types';
import { IntlShape } from 'react-intl';
import { getVarighetString } from 'common/util/intlUtils';
import getMessage from 'commo... |
<reponame>yevbar/sourcegraph-1<filename>web/src/util/url.ts<gh_stars>1-10
import { Position, Range, Selection } from '@sourcegraph/extension-api-types'
import {
AbsoluteRepoFile,
encodeRepoRev,
LineOrPositionOrRange,
ParsedRepoURI,
parseHash,
PositionSpec,
RenderModeSpec,
RepoFile,
t... |
// Copyright 2018 Google LLC
//
// 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 ... |
import { document, window, HTMLTableElement, HTMLStyleElement } from '@ephox/dom-globals';
import { Fun, Option } from '@ephox/katamari';
import {
Attr,
Body,
Compare,
Direction,
DomEvent,
Element,
Insert,
Node,
Replication,
Selection,
SelectorFind,
Traverse,
WindowSelection,
EventArgs,
} fr... |
import * as babel from "@babel/core";
import { NodePath } from "@babel/traverse";
import {
Expression,
ObjectProperty,
PatternLike,
RestElement,
VariableDeclarator
} from "@babel/types";
export function collectDeclaredVariablesShallow(
t: typeof babel.types,
paths: NodePath[]
): Map<string, NodePath> {
... |
import { Component, OnInit, AfterViewInit, Input, Output, EventEmitter } from '@angular/core';
import { ChangeDetectorRef } from '@angular/core';
import { GaugesManager } from '../gauges/gauges.component';
import { Hmi, View, GaugeSettings, SelElement, LayoutSettings, ViewType, CardWidget, CardWidgetType } from '../_m... |
<reponame>TriangleJuice/chatbot_widget_angular
import { TestBed } from '@angular/core/testing';
import { IconModule } from '@acpaas-ui/ngx-icon';
import { Observable } from 'rxjs';
import {
of,
throwError,
} from 'rxjs';
import { ChatbotModule } from '..';
import { ChatbotComponent } from './chatbot.com... |
<gh_stars>10-100
import { Subject, BehaviorSubject } from 'rxjs';
import { InjectStore } from '../../projects/react-state/src/decorators/inject-store.decorator';
import { Async } from '../../projects/react-state/src/decorators/async.decorator';
import { StateKeeper } from '../../projects/react-state/src/state/history';... |
import React from "react"
import styled, { DefaultTheme } from "styled-components"
import { Edit } from "../icons/edit"
import { GwenTheme } from "../theme"
import { LevelAvatarData, LevelData } from "../types"
import { LevelBadge } from "./level-badge"
import { LevelTranslation } from "./translations"
type Props = {
... |
import React from 'react'
import * as yup from 'yup'
import { useForm, UseFormReturn } from 'react-hook-form'
import { yupResolver } from '@hookform/resolvers/yup'
import cn from 'classnames'
import Input from 'common/components/Form/Input'
import { TAddNFTState, TNFTData } from '../AddNFT.state'
import { TOption } fr... |
// extractor for homu.komica.org/*
enum ExtractorState {
START,
FIRSTPOST,
REPLY
}
const replyInfoRegex: RegExp = /^ (\d\d)\/(\d\d)\/(\d\d)...(\d\d):(\d\d):(\d\d) ID:(.*) No\.(.*) $/;
function extractInfoToReply(infoText: string, reply: komicaExtractor.Reply): void {
'use strict';
const regexMatch: R... |
/*
* 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 React, { useState } from 'react';
import styled from 'styled-components... |
import color from '@heroku-cli/color'
import {Command, flags} from '@heroku-cli/command'
import {OAuthAuthorization} from '@heroku-cli/schema'
import {HTTP, HTTPError} from 'http-call'
import {applyActionSpinner} from '../../../async-actions'
import {getBorealisPgApiUrl, getBorealisPgAuthHeader} from '../../../borealis... |
<filename>tests/graph_test.ts
import { GraphMixin } from "../graph.ts";
import { AdjacencyMatrixUnweightedDirected } from "../adjacency-matrix-unweighted-directed.ts";
import { AdjacencyMatrixUnweightedUndirected } from "../adjacency-matrix-unweighted-undirected.ts";
import { AdjacencyListMixin } from "../adjacency-lis... |
<reponame>ander2/estropadak-angular
import { DataSource } from '@angular/cdk/table';
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import { BehaviorSubject, forkJoin, Observable } from 'rxjs';
import { QueryBuilderConfig } from 'angular2-query-... |
<gh_stars>0
import Context from "./context.js";
import { ErrorCode } from "./error.js";
import fhir from "./fhir.js";
import { JWSPayload, JWK, JWSHeader, IssuerInfo } from "./types.js";
import { is, clone } from "./utils.js";
import convert from "./convert.js";
import { sign as cryptoSign, verify as cryptoVerify } fro... |
import { EventEmitter } from 'events';
import { ClientFeaturesResponse, FeatureInterface } from '../feature';
import { get } from '../request';
import { CustomHeaders, CustomHeadersFunction } from '../headers';
import getUrl from '../url-utils';
import { HttpOptions } from '../http-options';
import { TagFilter } from '... |
import { LitElement, html, css, customElement, property} from 'lit-element';
import { nothing } from "lit-html";
export type imageMode = 'image' | 'background';
const STR_MY_RECENT = "My recent";
const STR_SEE_MORE = "See more";
const STR_SEE_LESS = "See less";
const STR_ALL_IMAGES = "All images";
@customElement("im... |
import {
getShortestPaths,
getSimplePaths
} from '../node_modules/@xstate/graph';
import { StateMachine, EventObject, State, StateValue } from 'xstate';
interface TestMeta<T> {
test?: (testContext: T) => Promise<void>;
description?: string | ((state: State<any, any>) => string);
skip?: boolean;
}
interface ... |
import { OperationException, OperationExceptionType, SessionException, SessionExceptionType } from './exception'
import { Post, TranslateFault } from './service'
import { Event, Guid } from './system'
import { Context as SessionContext, Session, SigninStatus, SessionService } from './session'
import { IView, ViewModel... |
import User from './User';
import * as firebase from 'firebase';
const { Timestamp } = firebase.firestore;
/**
* データベースにユーザを新規登録する
*
* @param firebaseUser
* @param db
* @param timestamp
*/
export async function addUser(firebaseUser, db, timestamp) {
// ローカルストレージにユーザ情報がなければデータを更新する
const user: User = new ... |
import React, {useState} from 'react';
import Border from '../../../components/Border';
import Button from '../../../components/Button';
import Card from '../../../components/Card';
import InputText from '../../../components/forms/InputText';
import Label from '../../../components/forms/Label';
import Modal from '../.... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Undirected } from "./undirected";
/**
* A class that represents a Frequented Region.
*/
export class FR {
nodes: any[];
descendants: any[];
paths: object;
intervals: object;
supporting: any[];
avgAlpha: number;
constructor(nodes = []) {
this.nodes = nodes;
this.descendants = [];
th... |
import { Command } from "../types/commands.ts";
import { Embed } from "./Embed.ts";
import {
botCache,
Collection,
editMessage,
Message,
sendMessage,
} from "../../deps.ts";
/** This function should be used when you want to convert milliseconds to a human readable format like 1d5h. */
export function humaniz... |
<reponame>maxhuse/helpdesk-rrn
import { Map, Record } from 'immutable';
import { ITEMS_PER_PAGE_OPTIONS, sortOrder, sortType } from 'client-constants';
import { Reducer, Dispatch } from 'redux';
export type TSort = Map<string, string>;
export type TFilters = Map<string, boolean | string | number>;
type TSortArguments... |
<reponame>wensonH/ts-sequelize
'use strict';
import * as chai from 'chai';
import DataTypes from '../../../lib/data-types';
import {Sequelize} from '../../../lib/sequelize';
import Support from '../../support';
const expect = chai.expect;
const expectsql = Support.expectsql;
const current = Support.sequelize;
const sq... |
import React, { useCallback, useState, useEffect, useRef } from "react";
import { Search, Plus } from "react-feather";
import styled from "styled-components";
import { withRouter, RouteComponentProps } from "react-router";
import { Button } from "reakit";
import {
LARGE_MOBILE_BREAKPOINT,
DROP,
LOAD,
}... |
import { functionKey, nameValuePair } from './../entity/functionSettings';
import { injectable } from 'inversify';
import * as request from 'request';
import * as linq from 'linq-es2015';
import { configBase } from "./serviceBase";
import { IFunctionTestService } from "../contract/ServiceContracts";
import { function... |
/// <reference path="../../typings/globals/react/index.d.ts" />
/// <reference path="../../typings/globals/react-dom/index.d.ts" />
/// <reference path="../../built/pxtlib.d.ts" />
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as workspace from "./workspace";
import * as data from "./... |
import { BaseConfig } from './_baseConfig';
import { IfirebaseParam } from '@/lib/types';
import { mockAboutDesc } from '@/__mocks__';
import { arrayFactorys } from '@/utils';
/** @desc App config */
class AppConfig extends BaseConfig {
private TOP_PAGE_IMAGES = AppConfig.generateRunImage(this.runEnv);
public get... |
import React, { useContext, useState, useEffect } from 'react';
import { dataContext } from '../context/storeApi';
import { tags } from '../data/constants';
import { ICardToEdit, users } from '../data/data';
interface ModalProps {
handleModalVisible: () => void;
cardToEdit?: ICardToEdit;
}
const Modal: React.FC<M... |
import React, { useCallback, useMemo } from "react";
import download from "downloadjs";
import { isEmpty } from "lodash";
import { Icon } from "@rmwc/icon";
import * as models from "../models";
import { EnumButtonStyle, Button } from "../Components/Button";
import useBuildWatchStatus from "./useBuildWatchStatus";
imp... |
<reponame>AKhodus/adcm
// 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, ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import './item-details.scss';
import autobind from 'autobind-decorator';
import { resolve } from 'inversify-react';
import { observer } from 'mobx-react';
import React, { Component } from 'react';
import { IconButton } from '@fluentui/react/l... |
import { isFunction, log, cancelEffect, runEffect } from './util';
import { IEffect, ITask, ITaskOptions, ITaskStartInfo, SagaError, TaskState, IEffectContext } from './types';
const TASK_CANCEL = {
toString() {
return '@@SagaLight/TASK_CANCEL';
},
};
const STATE_NEW = 'new';
const STATE_RUNNING = 'running';
cons... |
<gh_stars>10-100
import { doesExist, mustExist } from '@apextoaster/js-utils';
import { isNil } from 'lodash';
import { Container } from 'noicejs';
import { CheckRBAC, Controller, ControllerData, Handler } from '..';
import { Command, CommandVerb } from '../../entity/Command';
import { Context } from '../../entity/Con... |
import * as Handlebars from '../node_modules/handlebars/dist/handlebars.js';
export const main = Handlebars.compile(`
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed"
data-toggle="collapse... |
<reponame>Lema-Bkr/Apiwatch-Frontend<filename>src/app/dashboard/service/api/capteur.service.ts
/* Copyright 2018-present Mellisphera
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.apa... |
<gh_stars>1-10
// Interfaces
import {
Configuration,
} from 'webpack';
// Webpack packages
import {
// HotModuleReplacementPlugin,
LoaderOptionsPlugin,
DefinePlugin,
} from 'webpack';
import * as webpackMerge from 'webpack-merge';
// Plugins
import { DllBundlesPlugin } from 'webpack-dll-bundles-plugin';
impor... |
import React, { useState } from 'react'
import { View as MotiView } from '@motify/components'
import { View, StyleSheet } from 'react-native'
import { LinearGradient } from 'expo-linear-gradient'
import { AnimatePresence, MotiTransitionProp } from '@motify/core'
type Props = {
/**
* Optional height of the contai... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Framework Emulator Github:
// https://github.com/Microsoft/BotFramwork-Emulator
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// ... |
/*
* Created on 2020-11-2 14:59:05
* Created by litt1e-p
*
* The MIT License (MIT)
* Copyright (c) 2020 litt1e-p
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* i... |
<filename>src/components/login/btc-manual.ts
import {
customElement,
FASTElement,
html,
css,
attr,
Observable,
observable
} from "@microsoft/fast-element";
import {
Imparter,
IOverhideHub,
PaymentsInfo,
NetworkType
} from '../hub/definitions';
import w3Css from "../../static/w3.css";
import widg... |
<reponame>play-co/typeflex
export const YGAlignCount = 8;
export enum YGAlign {
Auto,
FlexStart,
Center,
FlexEnd,
Stretch,
Baseline,
SpaceBetween,
SpaceAround
}
export function YGAlignToString(value : YGAlign): string {
switch(value) {
case YGAlign.Auto:
return ... |
<filename>clients/client-dynamodb/commands/DescribeLimitsCommand.ts
import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { DescribeLimitsInput, DescribeLimitsOutput } from "../models/models_0";
import {
deserializeAws_json1_0DescribeLimitsCommand,
serialize... |
<reponame>majakurcius/website
import styled, { media } from "@styled";
import Grid from "@styled/Grid";
import RoadmapTop from "@static/img/roadmap-top.svg";
export const Wrapper = styled.div`
position: relative;
margin-top: 72px;
margin-bottom: -132px;
padding-bottom: 72px;
padding-top: 32px;
background... |
import React, { Component } from 'react';
import { Frame, GetSDK, sdkKey } from '@mp/common';
import { Game, Types, Events } from 'phaser';
import { WelcomeScene } from '../scenes/WelcomeScene';
import { GameScene } from '../scenes/GameScene';
import { SceneIds } from '../scenes/SceneIds';
import { ISceneConfig } from ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.