text stringlengths 3.3k 33k |
|---|
import * as React from 'react';
import { BaseComponent, IBaseProps, IBaseState, BaseStyle } from '../../BaseComponent';
import { AppView, ProjectDDTree, AppFind, AppGridMenu, AppGrid } from './grid/index';
import { MapProvider } from './MapProvider';
import { gridDetail } from './StructureDemo';
import '../sass/Map.sc... |
<filename>packages/maps/src/amap/index.ts
/**
* AMapService
*/
import {
Bounds,
CoordinateSystem,
ICoordinateSystemService,
ILngLat,
IMapConfig,
IMapService,
IPoint,
IViewport,
MapServiceEvent,
MapType,
TYPES,
} from '@antv/l7-core';
import { DOM } from '@antv/l7-utils';
import { inject, injecta... |
<filename>apps/editor/src/wysiwyg/wwEditor.ts<gh_stars>1-10
import { EditorView, NodeView } from 'prosemirror-view';
import { Node as ProsemirrorNode, Slice, Fragment, Mark, Schema } from 'prosemirror-model';
import isNumber from 'tui-code-snippet/type/isNumber';
import EditorBase from '@/base';
import { getWwCommands... |
<reponame>CodeMooseUS/vscode-devtools<filename>src/extension.ts
import * as path from 'path';
import * as vscode from 'vscode';
import WebSocket from 'ws';
import TelemetryReporter from './telemetry';
import QuickPickItem = vscode.QuickPickItem;
import * as utils from './utils';
import packageJson from "../package.json... |
import React, { PureComponent } from 'react';
import { PanelProps } from '@grafana/data';
import { ACESVGOptions, SVGIDMapping } from 'types';
import { css } from 'emotion';
import { stylesFactory } from '@grafana/ui';
import { SVG, Element as SVGElement, Dom as SVGDom, extend as SVGExtend, Runner as SVGRunner } from '... |
import 'reflect-metadata';
import { container, singleton } from 'tsyringe';
import { IActivityBarItem, IMenuBarItem } from 'mo/model';
import { MenuBarEvent } from 'mo/model/workbench/menuBar';
import { MenuBarMode } from 'mo/model/workbench/layout';
import { Controller } from 'mo/react/controller';
import {
IMenuB... |
/*eslint-disable*/
import React,{useState} from 'react';
import _ from 'lodash'
import { css } from 'emotion';
import { connect } from 'react-redux'
import { useLocation } from 'react-router-dom'
import classNames from 'classnames'
import { User } from 'src/core/services/context';
import { Icon, IconName, ThemeType, ... |
import { debounce } from 'lodash';
import { Platform, Dimensions, Image, StyleSheet, TouchableOpacity, Text, View, ActivityIndicator } from 'react-native';
import React, { Component } from 'react';
import FeatherIcon from 'react-native-vector-icons/Feather';
import { Colors } from '../../styles/colors';
import { Activi... |
<reponame>kjleitz/turtello-client-web
import { toArray } from '@/concerns/utilities';
import authios, { refreshAuth } from '@/concerns/authios';
import MessageResource, { MessageDocument, MessagesDocument } from '@/types/MessageResource';
import Theme from '@/types/Theme';
import ThreadResource, { ThreadDocument, Threa... |
<reponame>SheepTester/two-crying-green-v-forms<filename>src/utils/quarters.ts
type Date = number
function date (year: number, month: number, date: number): Date {
return new Date(year, month - 1, date).getTime()
}
export type Quarter = {
name: string
start: Date
finals: Date
end: Date
}
/*
// Scraped from ... |
<gh_stars>10-100
export interface FriendDto {
gameName: string;
gameTag: string;
id: number;
summonerId: number;
groupId: number;
groupName: string;
icon: number;
name: string;
puuid: string;
selected: boolean;
oldNames: OldNames[];
notifications: NotificationDto[];
r... |
<filename>frontend/inventory/devices.component.ts<gh_stars>10-100
/*
* NETCONF servers Inventory
*/
import {Component, OnInit, Input} from '@angular/core';
import {Router} from '@angular/router';
import { NgbModal, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { ViewChild } from '@angular/core';
import ... |
<filename>src/app/sf1/sf1.service.ts
import { Injectable } from '@angular/core'
import { Headers, Http } from '@angular/http';
import { Observable } from 'rxjs/Observable'
import 'rxjs/add/operator/map'
import { SF1SearchExp } from './sf1-search.service';
/**
* 专利摘要数据
*/
export interface Patent {
// sf1
// 专利信息... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { IDisplayState } from './interfaces';
import { SearchInstance } from './searchinstance';
import { ReactWidget, UseSignal } from '@jupyterlab/apputils';
import { Signal } from '@phosphor/signaling';
import { W... |
<reponame>heholek/quix
import UrlPattern from 'url-pattern';
import {
IUser,
IFile,
INotebook,
INote,
IFolder,
createUser,
createNotebook,
createFolder,
createFile,
createNote,
createFolderPayload,
} from '@wix/quix-shared';
const mocks = {
'/api/user': () => createUser(),
'/api/events': () =... |
import { HttpClient } from '@angular/common/http';
import { Component, ViewEncapsulation } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import { AppSvc } from './app.service';
const templateStr: string = `
<h1> Autocomplete Directive Test - Local Source </h1>
<fieldset... |
import AddIcon from 'mdi-react/AddIcon'
import React, { useCallback, useEffect, useMemo, useState } from 'react'
import { RouteComponentProps } from 'react-router'
import { EMPTY, Observable } from 'rxjs'
import { catchError, tap } from 'rxjs/operators'
import { LoadingSpinner } from '@sourcegraph/react-loading-spinne... |
import React, { useState, useEffect } from "react";
import {
ScrollView,
View,
StyleSheet,
Switch,
Text,
TextInput,
TouchableOpacity,
Image,
ActivityIndicator,
} from "react-native";
import { TextInputMask } from "react-native-masked-text";
import { Feather } from "@expo/vector-icons";
import { RectButton } fr... |
<reponame>nemo-js/vendure
import { Injectable, OnApplicationBootstrap } from '@nestjs/common';
import { Args, Mutation, Query, Resolver } from '@nestjs/graphql';
import {
Administrator,
Ctx,
EventBus,
InternalServerError,
NativeAuthenticationMethod,
PluginCommonModule,
RequestContext,
Tr... |
/* GENERATED FILE */
import { useContext } from "solid-js";
import { IconContext } from "../lib";
const renderPathFor = (weight: string, color: string) => {
switch (weight) {
case "bold":
return (
<>
<line x1="128" y1="40" x2="128" y2="216" fill="none" stroke={color} stroke-linecap="rou... |
<gh_stars>0
import { Envelope } from "../schema/envelope";
import { Payload } from "../schema/payload";
import * as crypto from "crypto";
import baseX from "base-x";
const bs58 = baseX(
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
);
export interface JsonProps {
readonly indent: number;
readonly... |
import {GoldenSun} from "../GoldenSun";
import {InteractableObjects} from "../interactable_objects/InteractableObjects";
import {directions, get_directions, split_direction} from "../utils";
import * as _ from "lodash";
export enum event_types {
CLIMB = "climb",
SPEED = "speed",
TELEPORT = "teleport",
... |
import * as React from 'react'
import { FormGroup, ValueLine, EntityLine, EntityCombo, EntityDetail, EntityRepeater, EntityTabRepeater, EntityTable } from '@framework/Lines'
import { SubTokensOptions } from '@framework/FindOptions'
import { TypeContext } from '@framework/TypeContext'
import { EmailTemplateEntity, E... |
// Модуль отображает шары
import Ball from '../lib/ball';
import levels from '../levels';
import React, { FC, useEffect, useMemo, useRef, useState } from 'react';
import { fps } from '../lib/utils';
import { gameActions } from '../reducer';
import { useSelector } from 'react-redux';
import { useAction } from '@common/... |
/**
* @module EdtfConverter
*/
import { compact, flatten, get, isArray, isString, mergeWith, uniq, zip } from 'lodash';
import * as moment from 'moment';
import parseWords from './parse-words';
import preprocessText from './preprocess-text';
interface IEdtfPartResult {
cleanEdtf: string;
detectedModifiers: ICus... |
import * as React from 'react';
import { GridEvents } from '../../../constants/eventsConstants';
import { GridComponentProps } from '../../../GridComponentProps';
import { GridApiRef } from '../../../models/api/gridApiRef';
import { GridFilterApi } from '../../../models/api/gridFilterApi';
import { GridFeatureModeConst... |
import { Duplex, Readable, DuplexOptions } from "stream";
import Pbf from "pbf";
import { ProtoMessageUtils } from "@claasahl/spotware-protobuf";
import { logInput, logOutput } from "./logger";
import { Messages, deserialize, serialize } from "./messages";
export declare interface SpotwareSocket extends Duplex {
ad... |
<reponame>LuckyRG/swift-cloud-api<filename>song-play-counts/services/song-play-counts.service.ts<gh_stars>0
import dbConnectionPool from '../../db-config';
import SongWithPlayCount from '../models/song-with-play-counts';
import { SongPlayCountsListPaginated } from '../models/song-play-counts-paginated';
import YearPlay... |
<filename>src/animated-scroll-to.ts
export type TCoords = [number | null | undefined, number | null | undefined];
export interface IOptions {
cancelOnUserAction?: boolean
easing?: (t:number) => number
elementToScroll?: Element | Window
horizontalOffset?: number
maxDuration?: number
minDuration?: number
p... |
import {Component, NgZone, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {Web3Service} from '../../util/web3.service';
import {QRTOKEN_SMART_CONTRACT_ADDRESS, QRTOKEN_SMART_CONTRACT_ADDRESS_v1} from '../../util/qrtoken-smart-contract';
import {MerkleTree} from '../../util/... |
import { Pixel, PixelVariables, PixelVariablesClass } from './models/pixel';
import { CenterOfBiomassSum } from './models/shared';
export const metersToFeetConstant = 3.28084;
const metersToAcresConstant = 0.00024711;
export const pixelsToAcreConstant = 30 * 30 * metersToAcresConstant; // ~0.22 acres, area of one pixel... |
import * as React from 'react';
import { CEPH_STORAGE_NAMESPACE } from '@odf/shared/constants';
import { useModalLauncher } from '@odf/shared/modals/modalLauncher';
import { getName } from '@odf/shared/selectors';
import { referenceForModel } from '@odf/shared/utils';
import {
getAPIVersionForModel,
k8sCreate,
} fr... |
<reponame>balupton/cac
import path from 'path'
import EventEmitter from 'events'
import chalk from 'chalk'
import minimost from 'minimost'
import readPkg from 'read-pkg-up'
import Command, { ICommandOptions, CommandHandler } from './Command'
import Options, { IOptionsInput } from './Options'
import Help from './Help'
i... |
<gh_stars>1-10
/*
* Copyright © 2020 Atomist, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { V1Deployment, V1DeploymentList, V1ObjectMeta, V1ReplicaSet, V1ReplicaSetList } from "@kubernetes/client-node";
import { BaseComponent, css, format } from "@uifabric/utilities";
import { IStatusProps, Status... |
<gh_stars>100-1000
import * as vscode from 'vscode';
interface ExpressionInfo {
functionName: string;
parameterPosition: number;
}
interface RelativeExpressionInfo {
startPosition: number;
parameterPosition: number;
}
const CLJ_TEXT_DELIMITER = `"`;
const CLJ_TEXT_ESCAPE = `\\`;
const CLJ_COMMENT_DEL... |
<reponame>alticator/editor
var editor = document.getElementById("edit");
var fileData = document.getElementById("file-data");
const {ipcRenderer} = require("electron");
var path = require("path");
var fs = require("fs");
var savePreferences: SaveData = {
saveName: "Unsaved Note",
content: "",
saveInfo: "Un... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { Task, RuntimeContext, chunkedSubtask } from '../../../mol-task'
import { Tokenizer, TokenBuilder } from '../common/text/tokenizer'
import { ReaderResult as Result } from '../resu... |
import React, {
FunctionComponent,
useState,
useEffect,
useContext,
createRef,
ChangeEvent,
MouseEvent,
KeyboardEvent,
FocusEvent,
CSSProperties,
} from 'react';
import { Link, useHistory, useParams } from 'react-router-dom';
import { Helmet } from 'react-helmet';
import { toast } from 'react-toasti... |
import { JSONOutput } from "typedoc";
import { defaultTextsOptions } from "../constants/options.constants";
import { PluginOptions } from "../types/package.types";
import { getKindName } from "../utils/file.utils";
import { KindTypes } from "./md.constants";
type CardBlockInputType = {
link: string;
title: string... |
/*
* Copyright 2018 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/**
* Window.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 DomQuery from 'tinymce/core/api/dom/DomQuery';
import Env from 'tinymce/core/api/Env';
import Dela... |
import { HttpClient, HttpEvent, HttpEventType, HttpHeaders, HttpProgressEvent, HttpResponse, HttpResponseBase } from "@angular/common/http";
import { Inject, Injectable, InjectionToken, Optional } from "@angular/core";
import { mergeMap as _observableMergeMap, catchError as _observableCatch } from 'rxjs/operators';
imp... |
import * as Enumerable from 'linq'
import * as _ from 'lodash'
import * as R from 'ramda'
import * as $ from 'jquery'
import { GridColumn} from '../GridColumns'
import { performEnumerableSort, EngineOptions } from './engine_utils'
//let P: any = require('./parser')
//let Parser = P.Parser
//declare let Parser; //... |
// import { action, observable } from "../mobx/main"; // "view-intent-mobx";
import { process } from "uniqid";
import { IIntent, INavState } from "./types";
import { View } from "./view";
import { ViewTypeStore } from "./view-type-store";
import { Helper } from "./helper";
import { Is, Url, List } from "utility-collect... |
<reponame>Ayden-Franklin/Amazon-Fee-Calculator
// sync product category by countryCode
export const CountryCategory: Record<string, Array<string>> = {
us: [
'Automotive',
'Electronics',
'Books',
'Tools & Home Improvement',
'Patio, Lawn & Garden',
'Cell Phones & Accessories',
'Kitchen & Din... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Suspense } from 'react';
import {
Database,
Operation,
ServiceProtocol,
Scene,
newOperation,
Atom,
useTrace,
} from '@stableinf/io';
import { Future } from './Future';
import { currentOperation, runInOperation } ... |
import { SelectionState, ContentState, Modifier, ContentBlock } from "@gland/draft-ts";
import { identifier } from "../../public/constants";
import { getTextData } from "../../model";
import { basicSelState, getForwardSel, splitBlock, getParentKeys, getBlockData, setBlockData, findNearInputBlock, isInputBlock } from "... |
/*
* Configurable variables. You may need to tweak these to be compatible with
* the server-side, but the defaults work in most cases.
*/
const hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */
const chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */
/*
* These... |
import React from 'react'
import styles from './caster.module.scss'
type PointData = { x : number, y : number }
type LineData = { a : PointData, b : PointData }
type OnPointMove = ((point : PointData) => void) | null
type PointProps = {
model : PointData,
movable : boolean,
onMove : OnPointMove,
st... |
import {Request, Response} from "express";
import dayjs from "dayjs";
import {error, ok} from "../../module/constants/state";
import cache_query = require("../../module/mysql_cache");
import {ErrorHandlerFactory} from "../../decorator/ErrorHandler";
import ContestModeChecker from "../../decorator/common/ContestModeChec... |
<reponame>PatrykJankowski/OnlineShopFrontend
import {JsonSchemaErrorBase} from './error';
import {Serializer} from './serializer';
import {SchemaNode, TypeScriptType} from './node';
export class InvalidSchema extends JsonSchemaErrorBase {}
export class InvalidValueError extends JsonSchemaErrorBase {}
export class Mis... |
import { Component, OnInit, AfterViewInit, Inject } from '@angular/core';
import { MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog';
import Errores from 'src/app/Backend/XML/Analizador/Excepciones/NodoErrores';
import tablaSimbolos from 'src/app/Backend/XML/Analizador/Simbolos/tablaSimbolos';
import { Inici... |
import {
CommandButton,
DefaultButton,
FocusTrapCallout,
FocusZone,
FontWeights,
INavLink,
ITheme,
Nav,
PrimaryButton,
Stack,
mergeStyleSets,
} from '@fluentui/react';
import React, { Component } from 'react';
import { Redirect, Route, withRouter } from 'react-router';
import... |
// import slug from 'slug'
import {Module} from 'documittu-analyzer-ts'
import {basename, dirname, join, normalize} from 'path'
import {ApiDocs, ModulePageConfig, Page, TopLevel} from './entities'
import {moduleUrl, rootUrl, defaultTitle} from './urls'
function slug(a) {return a.replace(/[^a-zA-Z0-9-]/g, '-').replace(... |
<reponame>mathematicalmichael/polynote<filename>polynote-frontend/polynote/ui/util/tags.ts
'use strict';
type ContentElement = (Node | string | undefined)
export type Content = ContentElement | ContentElement[]
function appendContent(el: Node, content: Content) {
if (!(content instanceof Array)) {
content... |
<reponame>EuPathDB-Infra/WDKClient<filename>Client/src/Utils/StrategyUtils.ts
import { StepTree } from 'wdk-client/Utils/WdkUser';
import { AddType, PartialUiStepTree } from 'wdk-client/Views/Strategy/Types';
type SimilarTreesDiffResult =
| { areSimilar: false }
| { areSimilar: true, diffs: { oldStepId: number, ne... |
import {
isFileModuleRef,
isPackageModuleRef,
parseModuleRef,
} from "@rnx-kit/tools-node";
import path from "path";
import ts from "typescript";
import {
ExtensionsJavaScript,
ExtensionsJSON,
ExtensionsTypeScript,
} from "./extension";
import {
changeModuleResolutionHostToLogFileSystemReads,
logModule... |
<gh_stars>0
export interface ImageDataRow {
id: number;
x: number;
y: number;
rotation: number;
fontSize: number;
fontType: number;
familyName: string;
fontColor: number;
frameColor: number;
frameSize: number;
opacity: number;
}
export interface ImageData {
id: number;
... |
<gh_stars>1-10
const data = require("../public/json/materia.json");
export function materiaIDToValueAndTier(materiaID: number): { materiaID: number; tier: number; } {
const materiaIDAsString = "" + materiaID;
for (const row of data) {
if (row.includes(materiaIDAsString)) {
return {
... |
<reponame>keiderlingt/Test<filename>ts/editquiz.ts
// -*- js -*-
/* 2013 by Ezer IT Consulting. All rights reserved. E-mail: <EMAIL> */
/// <reference path="bootstrap/bootstrap.d.ts" />
/// <reference path="jquery/jquery.d.ts" />
/// <reference path="jqueryui/jqueryui.d.ts" />
/// <reference path="configuration.ts" />... |
export interface PartitionKeyRangePropertiesNames {
MinInclusive: "minInclusive";
MaxExclusive: "maxExclusive";
Id: "id";
}
/**
* @hidden
*/
export declare const Constants: {
HttpHeaders: {
Authorization: string;
ETag: string;
MethodOverride: string;
Slug: string;
... |
<gh_stars>100-1000
import { h, Component, Options, VNode } from "preact";
import { RendererConfig10 } from "../renderer";
import { serialize, isEditable } from "../utils";
import { getComponent, getHookState, getComponentHooks } from "../vnode";
import { parseStackTrace } from "errorstacks";
import { HookType } from ".... |
import {Promise, PromiseWrapper, EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
import {Map, MapWrapper, List, ListWrapper} from 'angular2/src/facade/collection';
import {
isBlank,
isString,
StringWrapper,
isPresent,
Type,
isArray,
BaseException
} from 'angular2/src/facade/lang';
impo... |
<filename>packages/compat/src/resolver.ts
import { Resolver, warn, TemplateCompiler } from '@embroider/core';
import {
ComponentRules,
PackageRules,
PreprocessedComponentRule,
preprocessComponentRule,
ActivePackageRules,
ModuleRules,
} from './dependency-rules';
import Options from './options';
import { joi... |
// Copyright 2015-2020 SWIM.AI inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... |
<filename>src/app/shared/services/validation.service.ts
import { Injectable } from '@angular/core';
import { AbstractControl } from '@angular/forms';
@Injectable({
providedIn: 'root'
})
export class ValidationService {
//Sprint 3 Code starts
emailFormat = "[A-Za-z0-9._%-]+@[A-Za-z0-9._%-]+\\.[a-z]{2,3}";
phon... |
import Eris from 'eris';
import { oneLine } from 'common-tags';
import CommandsModule from '.';
import DexareClient from '../../client';
import { PermissionNames } from '../../constants';
import CommandContext from './context';
import { ClientEvent } from '../../client/events';
/** The options for a {@link DexareComma... |
<gh_stars>1-10
import express from "express";
import cors from "cors";
import { argosStateService } from "./state";
import { ArgosEvent, StreamsMessage } from "./model";
import { sha3_256 } from "js-sha3";
import { v4 as uuidv4 } from "uuid";
const fetch = require("node-fetch");
const fs = require("fs");
const http_po... |
<gh_stars>0
import HQR, { loadHqr } from '../hqr';
import WebApi from '../webapi';
import { ResourceTypes } from './parse';
const ResourceStrategy = {
TRANSIENT: 0,
STATIC: 1,
};
const HQRExtensions = [
'.HQR',
'.VOX',
'.ILE',
'.OBL',
'.zip',
];
const ResourceName = {
NONE: 'NONE',
... |
import * as React from "react"
import { CSSTransition, TransitionGroup } from "react-transition-group"
import { DataImport, Link, Reify, Widget, UUID, SizeUtils } from "capstone"
import Mirrorable from "gps/Mirrorable"
import InteractableCard, { CardModel } from "./InteractableCard"
import EdgeBoardCreator from "./Edge... |
import assets from "./assets.ts";
import {
assert,
argsParse,
pathJoin,
serve,
ServerRequest,
unreachable,
} from "./deps.ts";
import { DocRenderer, escape } from "./renderer.ts";
const decoder = new TextDecoder();
/*
* Request handling
*/
const doc_prefix = "/doc/";
async function handleDoc(req: Serve... |
import * as kleur from "kleur";
import * as _ from "lodash";
import { Provider, Configuration } from "oidc-provider";
import { IdentityProvider } from "../../idp";
import { Logger } from "../../lib/logger";
import { OIDCAdapterProxy, OIDCAdapterProxyConstructorOptions, OIDCAdapterProxyConstructors } from "./adapter";
i... |
import { BigInt, Bytes, Address, ethereum } from "@graphprotocol/graph-ts"
import { log } from '@graphprotocol/graph-ts'
import { Swapped as SwappedTuppleEvent, Swapped1 as SwappedEvent } from "../generated/AMMWrapperWithPath/AMMWrapperWithPath"
import { ZERO, addTradedToken, getUser, getEventID } from "./helper"
impor... |
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import { FontIcon, Modal } from '@fluentui/react'
import { useBoolean } from '@uifabric/react-hooks'
import { observer } from 'mobx-react-lite'
import { useState, useEffect, useRef, useCallback }... |
<gh_stars>1-10
import { HdDate } from '@assets/hd-date/hd-date';
import { DateTime } from 'luxon';
import { TimeZone } from '../models/timezone.model';
declare var require;
const timeZonesStr: string = require('raw-loader!./timezones.txt');
let timezoneOffsetCash = new Map<string, number>();
let timezoneCashTimeout... |
/*
* Licensed to Gisaïa under one or more contributor
* license agreements. See the NOTICE.txt file distributed with
* this work for additional information regarding copyright
* ownership. Gisaïa licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except ... |
/**
* Copyright © INOVUA TRADING.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Row from './Row';
import getRowSpans from './getRowSpans';
const emptyObject = Object.freeze ? Object.freeze({}) : ... |
import React, { useState } from 'react'
import styled from 'styled-components'
import { graphql } from 'gatsby'
import SEO from '../components/SEO'
import Button from '../components/ui/Button'
import TextField from '@material-ui/core/TextField'
import Container from '../components/Container'
import Radio from '@materia... |
import m, {ClassComponent, Vnode, Child} from "mithril";
import Logo from "../partials/Logo";
import Ui from "xbreader/models/Ui";
import Slider from "xbreader/models/Slider";
import Reader from "./Reader";
import Publication from "xbreader/models/Publication";
export interface InterfaceAttrs {
model: Ui;
slid... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
<filename>src/LinkedHashMap.ts<gh_stars>10-100
/**
* @license
* Copyright <NAME> 2017 All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/larrydiamond/typescriptcollectionsframework/blob/master/LICENSE
*/
import {AllFieldHash... |
// TIPOS PRIMITIVOS
let verdadeiro: boolean; // false ou true
let numeros: number; // todos os numéricos
let palavras: string; // caracteres
let qualquer: any; // qualquer tipo como no js, por default será tipo any no ts
let nunca: never; // tipagem para código inacessivel, como uma função lançada throw
let desconheci... |
/**
* @license
* Copyright 2017 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
import * as React from "react";
import classNames from "clsx";
import { cache } from "swr";
import { Link, navigate } from "lib/woozie";
import { T } from "lib/i18n/react";
import {
useAssets,
getAssetKey,
searchAssets,
useAccount,
useBalanceSWRKey,
TempleAsset,
} from "lib/temple/front";
import Money from ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
//
// 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:
// ... |
// This method receives set of transitions by another party and applies it
// banks normally pass forward payments, end users normally decode payloads and unlock hashlocks
const nacl = require('../../lib/nacl')
import { utils, ethers } from 'ethers'
function swapType(array, fromType, toType) {
array.forEach(ele... |
<filename>src/components/persona/PersonaBarUse.ts
import { useEffect, useState } from 'react'
import { compact, flatMap, groupBy, indexBy, mapValues, pick, uniq } from 'remeda'
import { getBounds, getTextWidth, pointTranslate, Rect } from '../../common/Draw'
import { md } from '../../common/Channel'
import { compac... |
<reponame>gdoumen/ant-plus
/*
* ANT+ profile: https://www.thisisant.com/developer/ant-plus/device-profiles/#523_tab
* Spec sheet: https://www.thisisant.com/resources/bicycle-speed-and-cadence/
*/
import Ant = require('./ant');
const Messages = Ant.Messages;
const Constants = Ant.Constants;
class CadenceSensorStat... |
<reponame>unicef-polymer/etools-types<gh_stars>0
import {
InterventionActivity,
InterventionAmendment,
InterventionQuarter,
ManagementBudget
} from '../intervention.types';
import { ReviewAttachment } from '../attachments.types';
import { Permission } from '../global.types';
import { LocationObject } from '../l... |
import { Component, OnInit , ChangeDetectorRef, ChangeDetectionStrategy, NgZone, AfterContentChecked, AfterViewInit, ElementRef, ViewChild} from '@angular/core';
import { GlobalDataService } from '../../../providers/index';
import { Http, Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
im... |
/**
* 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... |
<reponame>ibelenski/angular-mdc-web<gh_stars>0
import {
AfterContentInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChildren,
Directive,
ElementRef,
EventEmitter,
HostBinding,
Input,
NgZone,
OnDestroy,
Output,
QueryList,
Renderer2,
ViewChild,
} from '@angular/core';
i... |
import { posix } from "https://deno.land/std@0.115.1/path/mod.ts";
// Normalize to POSIX/web (forward) slashes
const { join, dirname } = posix;
/** Goldsmith's global metadata.
*
* Plugins that add properties that are known at compile time should extend this definition to add all properties (as
* optional propert... |
import { longestCommonSubstring } from 'string-algorithms'
import onScan from 'onscan.js'
import HealthIdCard from './health-id-card'
import AamvsIdCard from './aamva-id-card'
export { onScan }
interface scanrayOptions {
blockKeyboardEventsDuringScan?: boolean
blockAltKeyEvents?: boolean
blockBadKeyboardShortcu... |
import { Set, List } from "immutable";
import * as QueryString from "query-string";
import Configuration, {
EventType,
IAd,
IConfigurationJSON,
IStream,
ITrackingURL,
LinearEvents
} from "./Configuration";
import { round } from "./Util";
export type TQueryParams = { [key: string]: string };
// Injected by... |
import {NativeModules, Platform} from 'react-native';
import EventTarget from 'event-target-shim';
import {
RTCConfiguration,
RTCLogger as logger,
RTCEvent,
RTCIceServer,
RTCIceCandidate,
RTCMediaStreamConstraints,
RTCPeerConnection,
RTCSessionDescription,
getUserMedia,
stopUserMedia,
// react-na... |
<gh_stars>0
import { Settings } from '@dungeonz/configs';
import { message, warning } from '@dungeonz/utils';
import { Types } from 'mongoose';
import { ItemState } from '.';
import { AccountDocument } from '../account';
import Player from '../entities/classes/Player';
import { ItemsList } from '../items';
import Item ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.