text stringlengths 3.08k 15.5k |
|---|
import BandwidthRtc, {
ParticipantJoinedEvent,
ParticipantLeftEvent,
ParticipantPublishedEvent
} from "@bandwidth/webrtc-node-sdk";
import { Agent, AgentNotFoundError, AgentOfflineError } from "./types";
const websocketUrl = <string>process.env.WEBRTC_SERVER_URL;
const sipDestination = <string>process.env.SIP_D... |
import { IHunk, IChange } from '../../types';
import { insertHunk, textLinesToHunk } from './insert_hunk';
import {
computeLineNumberFactory,
isInHunkFactory,
isBetweenHunksFactory,
getCorrespondingLineNumberFactory,
} from './factory';
import { first } from './util';
type RawCodeOrLines = string | string[];
... |
<filename>milo/frontend/resultui/src/components/tooltip.ts
// Copyright 2021 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LI... |
<filename>src/application/model-layer/user/user-service.ts<gh_stars>0
import { WebsocketHandler } from 'reactive-websocket';
import { AuthenticationType } from './authentication-types';
import { DatabaseAdapter } from '../../../adapter/services/database-adapter';
import { DatabasePort, ReplicaObject } from '../../../a... |
export type WindupMember<ElementType, MetadataType> =
| ElementType
| Windup<ElementType, MetadataType>;
export type Windup<ElementType, MetadataType> = [
Array<WindupMember<ElementType, MetadataType>>,
Array<WindupMember<ElementType, MetadataType>>,
MetadataType
];
export function isPlayedWindup<ElementType... |
/**
* @license MIT
* @copyright OmniSharp Team
* @summary Adds support for https://github.com/Microsoft/language-server-protocol (and more!) to https://atom.io
*/
/* tslint:disable:no-require-imports no-any */
import * as _ from 'lodash';
import { Observable } from 'rxjs';
import { IResolver } from 'atom-lan... |
<reponame>scenario-data/scenario-database
import { LocalDate, LocalDateTime } from "js-joda";
import { BranchId, isBranchId, isVersionId, VersionId } from "../temporal";
import { isUserId, UserId } from "../user";
import { isBoolean, isBuffer, isInteger, isLocalDate, isLocalDateTime, isNumber, isString } from "../misc/... |
<gh_stars>0
import AwaitedHandler from '../AwaitedHandler';
import inspectInstanceProperties from '../inspectInstanceProperties';
import StateMachine from '../StateMachine';
import AwaitedPath from '../AwaitedPath';
import Constructable from '../Constructable';
import AwaitedIterator from '../AwaitedIterator';
import N... |
import Logger from '../../handlers/Logger';
const TuyaDevice = require('tuyapi'); // eslint-disable-line @typescript-eslint/no-var-requires
export const DEVICE_TYPES = ['rgb_bulb', 'plug'];
export const TICK_TIMEOUT = 10;
export const HEARTBEAT_TIMEOUT = 15;
export type TDeviceData = {
deviceId: string,
key... |
import { Subscription } from "rxjs";
import { UserState } from "../codecs/Dashboard.codec";
import { Dashboard, DashboardProps } from "../models/Dashboard";
import { Panel, PanelState } from "../models/panel";
import { PanelId, WidgetInstanceId } from "../models/types";
import { WidgetInstance } from "../models/Widget... |
import React from 'react';
import { ESvar } from '@navikt/familie-form-elements';
import { useApp } from '../../../context/AppContext';
import { useEøs } from '../../../context/EøsContext';
import AlertStripe from '../../Felleskomponenter/AlertStripe/AlertStripe';
import Datovelger from '../../Felleskomponenter/Datov... |
import _ from 'lodash';
import axios from 'axios';
import runScripts from './run-scripts';
import WvPbEventPayload from "../models/WvPbEventPayload";
function LoadNodeDesignHtmlFromServerToStack(newNode,oldMeta,scope){
if(typeof newNode["options"] !== 'object'){
if(!newNode["options"]){
... |
import { App } from "@web-atoms/core/dist/App";
import { CancelToken } from "@web-atoms/core/dist/core/types";
import { Inject } from "@web-atoms/core/dist/di/Inject";
import { Cloner } from "../models/Cloner";
import IClrEntity from "../models/IClrEntity";
import IEntityModel, { EntityContext } from "../models/IEntity... |
import React, { useState, useEffect } from 'react';
import InputText from '../../../../../components/InputText';
import Button from '../../../../../components/Button';
import { Meta, UseMetas } from '../../../../../contexts/GoalsContext';
import retornarIdDoUsuario from '../../../../../helpers/retornarIdDoUsuario';
i... |
<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*----------------------------------------------------... |
<reponame>toldsoftware/azure-functions-server<gh_stars>1-10
export function injectFunctionWrapper(webpackSource: string, ownSourceCode: string) {
return globals + webpackSource
// simple functions at beginning of file (not constructors)
// function name(...)
.replace(new RegExp(`(\\n)functio... |
import { ContributionType, __DEV_RESOURCE_REF_PLACEHOLDER } from '@flogo-web/core';
import { Engine } from './engine';
import { logger, engineLogger } from '../../common/logging';
import { config } from '../../config/app-config';
import { ContribInstallController } from '../contrib-install-controller';
import { install... |
import { DefaultModelScalars, EqualityOperators, Expand, LogicalOperators, OneKey, QuantityOperators, SortDirection, TypeTraversal } from '../..'
import { AbstractDAOContext } from '../daoContext/daoContext'
import { DAOMiddleware } from './middlewares/middlewares.types'
import { AnyProjection, ModelProjection } from '... |
import { SkyraCommand } from '@lib/structures/SkyraCommand';
import { UserSettings } from '@lib/types/settings/UserSettings';
import { cdnFolder } from '@utils/constants';
import { fetchAvatar } from '@utils/util';
import { Canvas } from 'canvas-constructor';
import { readFile } from 'fs-nextra';
import { CommandStore,... |
import { Transport } from '@nestjs/microservices';
import { NestExpressApplication } from '@nestjs/platform-express';
import { DocumentBuilder, OpenAPIObject, SwaggerCustomOptions, SwaggerModule } from '@nestjs/swagger';
import { existsSync, unlink, writeFile } from 'fs';
import {
AsyncApiDocumentBuilder,
AsyncApiM... |
import { EventEmitter } from 'eventemitter3';
import { Address, Db, LocalStorage } from '@oasislabs/common';
import { Idl, fromWasm } from './idl';
import { Rpcs, RpcFactory } from './rpc';
import { RpcCoder } from './coder';
import { DeployHeaderReader } from './deploy/header';
import { OasisGateway, defaultOasisGatew... |
import http from "http";
import ws from "websocket";
import redis, { RedisClient } from "redis";
import { connection } from "websocket";
import EventEmitter from "events";
import { v4 as uuid } from "uuid";
interface ConnectionWrapper {
connection: connection;
_id: string;
[key: string]: any;
//closedGracefull... |
<filename>examples/example9.component.spec.ts
// tslint:disable
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Pipe, PipeTransform, Injectable, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, Directive, Input, Output } from '@angular/core';
import { isPlatformBrowser } from '@angular/commo... |
/*
* Copyright 2021 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 i... |
import React, {
useCallback,
useMemo,
useEffect,
useState,
useRef,
} from 'react';
import axios, { CancelTokenSource } from 'axios';
import { useTranslation } from 'react-i18next';
import { AssetDetails } from 'utils/models/asset-details';
import { backendUrl, currentChainId } from 'utils/classifiers';
impor... |
import { LitElement, html, property, eventOptions, PropertyValues, query } from '../base';
import { OverlayEvent, OverlayEventType, OverLayScope, OverlayElement } from '../overlay';
import { QuickFactEvent, QuickFactEventType } from '../quick-fact';
import {
ApplicationGuideEvent,
ApplicationGuideEventType,
... |
<gh_stars>1-10
import RG from './rg';
export interface EvtArgs {
[key: string]: any;
}
export interface Listener {
hasNotify: boolean;
notify: (evtName: string, args: EvtArgs) => void;
listenerID?: number; // Added in EventPool
}
/* Event pool can be used to emit events and register callbacks for li... |
/*
* (C) Copyright 2020 Radix DLT Ltd
*
* 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, including without limitation
* the rights to use, copy, modify, merge, publi... |
<gh_stars>1-10
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { clamp, getNearestScale } from './utils'
export interface IOptions {
/** use Event.preventDefault with the touchmove events */
prevent?: boolean
/** listen touch events */
touch?: boolean
/** listen mouse events... |
import * as fs from 'fs';
import * as path from 'path';
import * as Discord from 'discord.js';
import * as log4js from 'log4js';
import { IFilter, PreFilter } from "./filter";
import { IActor, CommandActor, VoiceActor, REChatActor, AIChatActor } from "./actor";
import { UserAliaManager, UserPermissionManager } from ".... |
<filename>packages/api-cardano-db-hasura/src/queryComplexity.ts
import {
ComplexityEstimator,
ComplexityEstimatorArgs
} from 'graphql-query-complexity'
type ComplexityExtension = {
extensions: {
complexity?: number | ComplexityEstimator;
baseCost?: number;
};
};
export type ComplexityMapping = { [key:... |
import React, { FC } from 'react';
import { Grid, Typography, Button } from '@material-ui/core';
import { RouteComponentProps, withRouter } from 'react-router';
import { ParallaxBanner } from 'react-scroll-parallax';
import { Defer } from 'react-wait-content';
import { isSafari, isIE } from 'react-device-detect';
impo... |
import {AREA, DEFAULT_FONT, HALF_LINE_COLOR, HALF_LINE_WIDTH, SIDE, UNIT} from '../../utils/constants';
import GameState from './state';
import {throwIfNull} from '../../utils/utils';
import Destructible from './interfaces/destructible';
import emitter from '../../modules/emitter';
import SubscriptableMixin from './mix... |
import { useEffect, useState } from 'react'
import { GetStaticPaths, GetStaticProps } from 'next'
import * as fs from 'fs'
import { NextSeo } from 'next-seo'
import type { AppProps } from 'next/app'
import { useRouter } from 'next/router'
import ErrorPage from 'next/error'
import getConfig from 'next/config'
import { L... |
/**
* 省市院校三级联动组件
* @author xq
* @since 2020-03-03
* @description 省市院校三级联动组件
*/
// tslint:disable:no-any
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms';
import { NzMessageService } from 'ng-zorro-antd';
import { SchoolService }... |
import React from 'react';
import './home.scss';
import { HubConnectionBuilder, HubConnection } from '@microsoft/signalr';
import DataGrid, { Pager, Paging, Column, Editing, Form, FormItem, SearchPanel, FilterPanel, Texts } from 'devextreme-react/data-grid';
import CustomStore from 'devextreme/data/custom_store';
impor... |
<reponame>doctorbebo/angular-component-library<gh_stars>0
import { boolean, number, select, text } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import { DrawerNavItem } from '@pxblue/angular-components';
import * as Colors from '@pxblue/colors';
const footerImage = require('../../as... |
import React from "react";
import { graphql, useFragment, readInlineData } from "react-relay";
import { getDateOnly } from "@wdp/lib/helpers";
import pick from "lodash/pick";
import MutationForm, {
useRenderForm,
useToVariables,
Forms,
useIsSuccess,
useOnFailure,
} from "components/api/MutationForm";
import t... |
<reponame>manniwatch/manniwatch
/*!
* Source https://github.com/manniwatch/manniwatch Package: client-ng
*/
import { IVehicleLocation } from '@manniwatch/api-types';
import { Coordinate } from 'ol/coordinate';
import { fromLonLat } from 'ol/proj';
import CircleStyle from 'ol/style/Circle';
import Fill from 'ol/style... |
/*!
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
import {t} from '@lingui/macro'
import {Trans} from '@lingui/react'
import {ActionLink} from 'components/ui/DbLink'
import {RotationTable} from 'components/ui/RotationTable'
import {Event, Events} from 'event'
import {Analyser} from 'parser/core/Analyser'
import {EventHook} from 'parser/core/Dispatcher'
import {filter}... |
import * as PIXI from 'pixi.js';
import React, { useCallback, useContext, useEffect, useReducer, useState } from 'react';
import { GraphicsContext, PropsContext, RenderingContext } from '../contexts';
import { useGraphicsProps, usePropsContext } from '../hooks';
import { PixiGraphicsProps } from '../props';
import {
... |
<gh_stars>1-10
import RG from '../rg';
import {Entity} from '../entity';
import {Level} from '../level';
import {getQuestVerb} from '../component/component.quest';
type ZoneBase = import('../world').ZoneBase;
//---------------------------------------------------------------------------
// QUESTDATA for storing quest... |
import { HttpParams } from "@angular/common/http";
import { Injectable, OnDestroy } from "@angular/core";
import {
ContinuationToken,
DataCache,
EntityView,
HttpCode,
HttpRequestOptions,
ListOptionsAttributes,
ListResponse,
ListView,
ServerError,
} from "@batch-flask/core";
import { ... |
import {
createVentSegments,
getMapSize,
initializeDangerMap,
generateDangerMap,
numberOfDangerousPoints,
isHorizontalVerticalOr45Degrees,
Segment,
DangerMap,
} from './day05';
const segments: Segment[] = [
{
start: { x: 0, y: 9 },
end: { x: 5, y: 9 },
},
{
start: { x: 8, y: 0 },
... |
import { AxisOptions, MapOptions } from '../../src/map/options';
import { GUID, getByID } from '../../src/utils';
import { assert } from 'chai';
let KARMA_INSERTED_HTML: string;
const DUMMY_PROPERTIES = {
first: {
values: [],
},
second: {
values: [],
},
third: {
values: []... |
import { createServer, Server, IncomingMessage as RawIncomingMessage, ServerResponse as RawServerResponse } from "http";
export function express() {
return new App();
}
type RawRequestHandler = (req: RawIncomingMessage, res: RawServerResponse) => void;
interface IncomingMessage extends RawIncomingMessage {
params... |
import React from 'react';
import { v4 as uuid } from 'uuid';
import { AnimatedValue } from './AnimatedValue';
import { AnimationLoop } from './AnimationLoop';
import { eventListener } from './dispose';
import css from './Scrollbar.module.css';
// TODO: decouple
import { borderDrag } from '../TileLayout';
export type ... |
import { Pipeline, Watcher } from "@abmaonline/aemsync";
import chalk from "chalk";
import decode from "decode-html";
import gfs from "graceful-fs";
import minimist from "minimist";
import opn from "opn";
import path from "path";
import packageInfo from "./../package.json";
import * as bsWrapper from "./bs-wrapper";
im... |
<filename>example/src/common/util/ajax.ts
/* tslint:disable:no-any */
import { Result, Ok, Err } from 'space-lift'
import { Observable } from 'kaiju'
import { Validator, errorDebugString, ValidationError } from 'validation.ts'
import { RemoteData, NotAsked, Loading, Success, Failure } from 'common/util/remoteData'
... |
import React, { Fragment, useContext } from "react"
import { COLORS, WINDOWS_REPLAYER_URL } from "../const"
import { state } from "../state"
import { Data, DataContext, DataEvent, DataPlayer, endReasonToString } from "../types"
import "./event.scss"
const Player: React.FC<{id: number, timestamp: number}> = ({id, times... |
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
/**
* AWS Elastic Kubernetes Service
*/
export interface DataAwsEksNodeGroupConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/provi... |
/*
* Copyright 2021 Collate
* 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,... |
import {ResolvedDependency, ResolvedProvider, resolveProvider} from './resolved_provider';
import {ProviderKey} from './key';
import {Provider, ProviderToken} from './provider';
import {Type} from './type';
const _UNDEFINED = new Object();
const _THROW_NOT_FOUND = new Object();
export interface DisposeCallback {
... |
import { ChildProcess, spawn } from 'child_process'
import { BasicList, ListContext, ListItem, ListTask, Location, Neovim, Position, Range, workspace } from 'coc.nvim'
import { EventEmitter } from 'events'
import minimatch from 'minimatch'
import path from 'path'
import readline from 'readline'
import { URI } from 'vsc... |
/**
* TODO:
*
* [x] Add created at to the metaarray
* [ ] Handle click, scroll to the replied message
* [ ] Add highlight upon click
*/
import React, { ReactElement, useRef, useContext } from 'react';
import { GroupChannel, AdminMessage, UserMessage, FileMessage } from 'sendbird';
import Label, { LabelTypography... |
<reponame>greatWeber/screenCapture
import utils from "./utils";
/**
* 绘画 -- 类 (模拟拖拽及确定大小位置)
*/
interface params {
target: HTMLElement,
dragingCb?: Function,
dragEndCb?: Function,
drawingCb?: Function,
drawEndCb?: Function,
}
interface size {
width?: number,
height?: number,
clientW?... |
/**
* 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.
*
* @format
* @flow
* @emails oncall+draft_js
*
* This file is a fork of DraftEditorContents.react.js for tree nodes
*
* This i... |
import * as cdk from "@aws-cdk/core";
import * as logs from "@aws-cdk/aws-logs";
import * as apig from "@aws-cdk/aws-apigatewayv2";
import * as apigIntegrations from "@aws-cdk/aws-apigatewayv2-integrations";
import { App } from "./App";
import {
Function as Func,
FunctionProps,
FunctionDefinition,
} from "./Func... |
import { useService } from "@common/modules/ContainerModule";
import type { ComputedDatum } from "@nivo/circle-packing/dist/types/types";
import { useCallback, useEffect, useState } from "react";
import { useBreadcrumbStore } from "../store/BreadcrumbStore";
import {
setInitialAttachmentPerLevel,
setPreviousAt... |
<gh_stars>0
import * as THREE from "three"
import { Node, State } from "../../../codeCharta.model"
import { CodeMapGeometricDescription } from "./codeMapGeometricDescription"
import { CodeMapBuilding } from "./codeMapBuilding"
import { IntermediateVertexData } from "./intermediateVertexData"
import { BoxGeometryGenerat... |
import Link from 'next/link'
import React, { useState } from 'react'
import Header from '../../components/header'
import Skeleton from 'react-loading-skeleton'
import { FiEdit3, FiRotateCw } from 'react-icons/fi'
import { BsNewspaper } from 'react-icons/bs'
import blogStyles from '../../styles/blog.module.css'
impo... |
<filename>src/conversor/conversor.service.ts<gh_stars>1-10
/* eslint-disable prettier/prettier */
import { Injectable } from '@nestjs/common';
import xlsx from 'node-xlsx';
import XLSXTransformStream from 'xlsx-write-stream';
const conversionFactory = require('html-to-xlsx');
const util = require('util');
const fs = re... |
import {
Chat,
ChatChannel,
ChatType,
FeedType,
PhotoAttachment,
ReplyAttachment,
ReplyChat as ReplyChatObject,
VideoAttachment,
} from 'node-kakao';
import React from 'react';
import styled from 'styled-components';
import { isUrl } from '../../../utils/isUrl';
import Deleted from '../types/Deleted';
i... |
export * from "./Barcode";
export * from "./Beacon";
export * from "./Location";
export * from "./Field";
export * from "./NFC";
export * from "./Semantics";
export * from "./PassFields";
export * from "./Personalize";
export * from "./Certificates";
import Joi from "joi";
import { Barcode } from "./Barcode";
import ... |
<reponame>yuttana76/wrPub<filename>src/app/views/trade/services/workFlow.service.ts
import { Injectable } from '../../../../../node_modules/@angular/core';
import { HttpClient } from '@angular/common/http';
import { Subject } from 'rxjs';
import { map } from 'rxjs/operators';
import { Router } from '@angular/router';
i... |
import { error } from 'util';
import { Component } from '@nestjs/common';
import { RealmService } from '../realm/realm.service';
import { GotthardpService } from '../gotthardp/gotthardp.service';
import { GotthardpwsService } from '../gotthardpws/gotthardpws.service';
import { MeteoService } from '../meteo/meteo.servic... |
import { Component, Output, EventEmitter, ViewChild } from '@angular/core';
import { NgForm, FormControl } from '@angular/forms';
import { AuthService } from '../../core/auth/auth.service';
import { UserCreds } from '../../users/user.model';
const EMAIL_REGEX = new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:... |
/* eslint-disable no-var */
/* eslint-disable vars-on-top */
import type { Document, Model, Types } from 'mongoose';
export enum UserRole {
ADMIN = 'admin',
USER = 'user',
}
declare global {
var User: Model<IUserSchema>;
var Keys: Model<IKeysSchema>;
var VoteID: Model<IVoteIDSchema>;
var VoteEvent: Model<... |
<gh_stars>10-100
/*
* @Author: legends-killer
* @Date: 2021-11-27 01:10:49
* @LastEditors: legends-killer
* @LastEditTime: 2021-11-29 15:51:15
* @Description: 错误检测定时任务,检测错误阈值,发送邮件
*/
import { Application, Context } from 'egg'
import { systemErrorReportEmailTemplate } from '../../constant'
import { ISystemInfo, Sy... |
<gh_stars>100-1000
// package: tendermint.consensus
// file: tendermint/consensus/wal.proto
/* tslint:disable */
/* eslint-disable */
import * as jspb from "google-protobuf";
import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb";
import * as tendermint_consensus_types_pb from "../../tendermint/consensus/types_... |
import * as React from "react";
import styled from "@emotion/styled";
import { AppContext, View, Range, File, CursorPosition } from "../state";
import { type HLJSApi } from "highlight.js";
import usePrevious from "../util/usePrevious";
const { useContext, useEffect, useMemo, useRef } = React;
let _hljs: HLJSApi | null... |
import { DocumentRange } from "../types";
/** Type alias for renderer state */
export type ChefRS = {
stack: string[];
currentKitchen: {
ingredients: IngredientBox;
bowls: { [k: number]: MixingBowl };
dishes: { [k: number]: BakingDish };
};
};
/********************************
******** UTILITY ALIA... |
<gh_stars>0
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// 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, including without limitation the rights
// to use, ... |
<filename>src/sharedmodels/segments/serpentine.ts
/**
* Immutable class Serpentine
*/
import {Segment, SERPENTINE} from './segment';
import {Vector, Position, vector_phi} from './vector';
import {vector_subtract, vector_distance, position_add, vector_rotate} from './vector';
import {ANZAHL_PUNKTE_PRO_EINHEIT} from '... |
<filename>tests/VesselServer.test.ts
import { ActionType, ItemType, PERMISSION, ResponseCode } from "../src/enums"
import VesselServer from "../src/VesselServer"
import Vessel from "../src/Vessel"
import fetch from "node-fetch"
import {
Api,
FetchOptions,
IndexArray,
Invite,
Item,
NID,
Sid,
VesselResponse,
} fr... |
import jassijs, { $Class } from "jassijs/remote/Jassi";
import { Debugger } from "jassijs_editor/Debugger";
import { CodeEditor } from "jassijs_editor/CodeEditor";
import { OptionDialog } from "jassijs/ui/OptionDialog";
import { TSSourceMap } from "jassijs_editor/util/TSSourceMap";
import { Reloader } from "jassijs/uti... |
<filename>src/ng2-mselect-tags.component.ts
import { Component, forwardRef, Input, OnInit, OnDestroy, ViewChild, ElementRef } from '@angular/core';
import { NG_VALUE_ACCESSOR, ControlValueAccessor, FormControl } from '@angular/forms';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subs... |
import axios from 'axios';
import { OpenshiftConfig, OptionalUser, Authorizations, GitProviderConfig } from '../types';
import { AuthenticationApi } from '../authentication-api';
export const AUTH_HEADER_KEY = 'Authorization';
export const OPENSHIFT_AUTH_HEADER_KEY = 'X-OpenShift-Authorization';
export const GIT_AUTH_... |
import { Nexbounce } from 'nexbounce/nexbounce.js';
import { Nexstate } from 'nexstate/nexstate.js';
import { css, html, nothing, WidgetTemplate } from 'nexwidget/nexwidget.js';
import { AppBarWidget } from '../app-bar/app-bar.js';
import { Nexinterface } from '../base/base.js';
import '../button/button.js';
import { B... |
<reponame>colestrode/bolt<filename>src/ExpressReceiver.ts
import { EventEmitter } from 'events';
import { Receiver, ReceiverEvent, ReceiverAckTimeoutError } from './types';
import { createServer, Server } from 'http';
import express, { Request, Response, Application, RequestHandler, NextFunction } from 'express';
impor... |
import {
Server,
State,
StateReference,
SuiteInfo,
SuitePredicate
} from '@test-ui/core';
import { PredicateObject, toPredicate } from 'object-predicate';
import { QUnitModuleDetails, getAllModuleData } from 'qunit-metadata';
import YouAreI from 'youarei';
import {
normalizeRunEndEvent,
normalizeRunStartE... |
<filename>src/utils.ts
import { Container } from "./container"
import { FactoryGraph, isProductionNode, MAX_CONTAINER_LINKS } from "./graph"
import { Industry } from "./industry"
import { isOre } from "./items"
import { TransferContainer } from "./transfer-container"
import {
isByproductTransferUnit,
isCatalyst... |
/*!
=========================================================
* Paper Kit React - v1.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/paper-kit-react
* Copyright 2019 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://github.com... |
import React, { useState, forwardRef } from 'react'
import {
TextArea,
Input,
RadioGroup,
RadioButton,
Button,
Icon,
} from '@QCFE/lego-ui'
import { trim, filter } from 'lodash-es'
import tw, { css, styled } from 'twin.macro'
import { FlexBox } from 'components/Box'
import { Tooltip } from '../Tooltip'
con... |
<reponame>laskasn/cordra-client-js<gh_stars>0
export const Base64 = { decode, encode, encodeUrlSafe };
const un = undefined;
const base64DecodeArray = [
un, un, un, un, un, un, un, un, un, un, un, un, un, un, un, un,
un, un, un, un, un, un, un, un, un, un, un, un, un, un, un, un,
un, un, un, un, un, un, u... |
/**
* Take the middle value from three numbers.
*/
export function middleNum(n: number, min: number, max: number): number {
if (n < min) return min
if (n > max) return max
return n
}
/**
* Adds a class to an element.
*/
export function addClass(element: HTMLElement, name: string): void {
const oldList: s... |
import React from "react";
import {
Dialog,
DialogActions,
DialogTitle,
DialogContent,
withStyles,
WithStyles,
TextField,
Button,
Tooltip,
IconButton,
Grid,
} from "@material-ui/core";
import { Skeleton } from "@material-ui/lab";
import { Send, Chat } from "@material-ui/icons";
import { Link } fro... |
/**
* Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose eithe... |
import {
Component, Input, ComponentFactoryResolver, ViewContainerRef, ViewChild,
Directive, AfterViewInit, Type, ComponentRef, SimpleChanges, ChangeDetectorRef
} from '@angular/core';
import * as _ from 'lodash';
import { NodeUtils } from "../node.utils";
@Directive({
selector: '[include-host]',
})
export cl... |
const numberDel = '⏰';
export interface Loop<T>{
'➰': T[],
'🎬': (t: T) => any,
}
export interface LoopTemplate<TItemContainer, TItem>{
'➰': (t: TItemContainer) => TItem[],
'🎬': (t: TItem) => any,
}
export interface IProperty{
type?: any,
setter?: any,
readOnly?: boolean
//uid?: strin... |
<reponame>timknip/glTF-Transform
import {
ExtensionProperty,
IProperty,
Nullable,
PropertyType,
Texture,
TextureChannel,
TextureInfo,
} from '@gltf-transform/core';
import { KHR_MATERIALS_CLEARCOAT } from '../constants';
interface IClearcoat extends IProperty {
clearcoatFactor: number;
clearcoatTexture: Textu... |
import Blockly from 'blockly';
import { IType } from '@tezwell/smartts-sdk/typings/type';
import { IToString } from '@tezwell/smartts-sdk/typings/shared';
import { IExpression } from '@tezwell/smartts-sdk/typings/expression';
import type { Block, Workspace, BlocklyGenerator } from 'src/typings/blockly';
import BlockK... |
<filename>src/bgis/ol/control/ScaleLine.ts
import {MapEvent} from "ol";
import {State} from "ol/View";
import {Control} from "ol/control";
import Units from "ol/proj/Units";
import {getPointResolution} from "ol/proj";
/**
* 25.4mm = 1 inch
* 0.28mm = pixel size according to the OGC WMTS specification
*
* @const
*... |
<filename>ts/src/program.ts
import { PublicKey } from "@solana/web3.js";
import { inflate } from "pako";
import Provider from "./provider";
import { RpcFactory } from "./rpc";
import { Idl, idlAddress, decodeIdlAccount } from "./idl";
import Coder, { eventDiscriminator } from "./coder";
import { Rpcs, Ixs, Txs, Account... |
import React, { useState } from 'react';
import useWindowEvent from '../hooks/useWindowEvent';
import useWindowSize from '../hooks/useWindowSize';
import { clamp } from '../utils';
const imageWidth = 3560;
const imageHeight = 7256;
const imageAspectRatio = imageWidth / imageHeight;
const MapImage = () => {
const {... |
<filename>citrus-admin-client/src/main/resources/src/app/components/test/test.state.ts<gh_stars>1-10
import {Injectable} from "@angular/core";
import {Action, Store} from "@ngrx/store";
import {Test, TestGroup, TestDetail} from "../../model/tests";
import {AppState} from "../../state.module";
import {AsyncActionType, A... |
<reponame>ahmedsaab/easylancer-nest-api
import {
Inject,
Injectable,
forwardRef,
ConflictException,
UnprocessableEntityException,
} from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { ObjectId } from 'mongodb';
import { Task, AnyTask, TaskDocument,... |
import React, { PureComponent } from 'react';
import { Popconfirm, Button, Divider, Dropdown, Menu, Icon, Modal, message } from 'antd';
import { Form2 } from '@/containers';
import { RESET_FORM } from './constants';
import { UPDATE_FORM_CONTROLS } from './tools';
import {
updateUser,
saveUserPasswordByAdmin,
dele... |
import { expect } from "chai";
import { patchTree, FlameTree } from "./patchTree";
import { flames } from "../testHelpers";
import { Tree, DevNode, ID } from "../../../../store/types";
export function toTimings(tree: Tree, flame: FlameTree) {
return Array.from(flame.values())
.map(x => {
const node = tree.get(x.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.