text stringlengths 3.3k 33k |
|---|
import { Request, Response, NextFunction } from "express";
const https = require("https");
// Redis client
const redis = require("redis");
const client = redis.createClient();
// Prefix for objecthandler import
const OH = require("../objecthandlers");
const koodistoUrl = process.env.KOODISTO_URL;
const callerId = p... |
import { GlobPattern, parseGlobPattern } from './glob';
export interface Pattern {}
export class ImportPattern implements Pattern {
readonly importPathPattern: ImportPathPattern;
readonly onlyDefault: boolean;
constructor(importPathPattern: ImportPathPattern, onlyDefault: boolean) {
this.importPathPattern = ... |
/*
* Copyright 2020 InfAI (CC SES)
*
* 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 ... |
<gh_stars>1-10
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { PROF_COLS, UNICODE_BLOCK } from "../src/constants"
import { SelectionBroker } from "../src/selection-broker"
import { TextView }... |
import { cloneDeep } from "lodash/fp";
import defaultOptions from "../../axis_utils/axis_config";
import Events from "../../shared/event_catalog";
import * as styles from "../../shared/styles";
import { ComponentConfigInfo, ComponentHoverPayload, D3Selection, EventBus, StateWriter } from "../../shared/typings";
import ... |
/* eslint-disable class-methods-use-this */
import React, { Component } from 'react';
import io, { Socket } from 'socket.io-client';
// import { browser, Tabs } from 'webextension-polyfill-ts';
class Popup extends Component {
state = {
roomId: localStorage.getItem('roomId')
? localStorage.getIt... |
import { Component, Host, Input, OnInit } from '@angular/core';
import { Form, FormControl, FormGroupDirective } from '@angular/forms';
import {MAT_DATE_FORMATS} from '@angular/material/core';
import {MatDatepicker} from '@angular/material/datepicker';
import { FormBuilder, Validators } from "@angular/forms";
// the `d... |
<gh_stars>0
import {
RatesUpdated as RatesUpdatedEvent,
AggregatorAdded as AggregatorAddedEvent,
} from '../../generated/subgraphs/latest-rates/ExchangeRates_13/ExchangeRates';
import {
AggregatorProxy as AggregatorProxyContract,
AggregatorConfirmed as AggregatorConfirmedEvent,
} from '../../generated/subgraph... |
import * as React from "react";
import kebabCase from "lodash-es/kebabCase";
import Grid from "@material-ui/core/Grid";
import TextField from "@material-ui/core/TextField";
import Select from "@material-ui/core/Select";
import FormLabel from "@material-ui/core/FormLabel";
import Checkbox from "@material-ui/core/Checkbo... |
// This file runs the glimrealm event.
let glimrealmUsers:userName[] = [];
let glimrealmStatus: glimRealmStatus = "ready";
let glimrealmTimer: NodeJS.Timeout = null
let glimrealmTimer2: NodeJS.Timeout = null
let glimrealmTimer3: NodeJS.Timeout = null
/**
* Starts a glimrealm instance. Activated by !glimrealm
*/
fu... |
/// <reference path="../vendor/jquery-plugins.d.ts" />
/// <reference path="config.d.ts" />
/// <reference path="interfaces.d.ts" />
/// <reference path="lazy_singleton.d.ts" />
import {App} from './app';
import {UI} from './ui';
import {Autosave} from './autosave';
import {PianoRoll} from './piano_roll';
import {Flmm... |
<gh_stars>0
/**
* MIT License
*
* Copyright (c) 2022 <NAME>
*
* 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, co... |
export function getActor() { // needed to control vaious initialisation in dnd5e
if (this.parent instanceof Item) return null;
return this.parent;
}
export async function createEmbeddedDocuments(wrapped, embeddedName, data, context) {
if (this.type !== "backpack" || embeddedName !== "Item") return wrapped(embed... |
<filename>src/stats/common.ts
import type { GameStartType, PostFrameUpdateType } from "../types";
export interface StatsType {
gameComplete: boolean;
lastFrame: number;
playableFrameCount: number;
stocks: StockType[];
conversions: ConversionType[];
combos: ComboType[];
actionCounts: ActionCountsType[];
... |
import React, { ReactElement, useCallback, useEffect, useState } from 'react';
import { useAppDispatch, useAppSelector } from '../../redux/store';
import { EmailUI } from '../../models/emails/EmailModels';
import { Button, TextField, IconButton, InputAdornment, Tooltip, Box } from '@mui/material';
import {
SideDrawer... |
import * as blessed from 'blessed';
import * as React from 'react';
import { KafkaConsumer } from '../consumer';
import { TimeStats, DataTable, MessageDetails, Message } from '../dashboard';
import { ConsumerMessagesScreen } from '../screens/consumer.messages.screen';
import { StatusScreen } from '../screens/status.scr... |
import { Component, OnInit, EventEmitter } from '@angular/core';
import { IonicPage, NavController, NavParams, PopoverController } from 'ionic-angular';
import { AuthService } from "../../services/auth.service";
import { AssessmentService } from "../../services/assessment.service";
import { TopbarComponent } from "../.... |
<gh_stars>0
import * as vscode from 'vscode';
import * as path from 'path';
import * as fs from 'fs';
import { JSONVisitor, visit } from 'jsonc-parser';
// import * as semver from 'semver';
const DEFAULT_NG_BIN_LOCATION = 'node_modules/.bin/ng';
const ANGULAR_CLI_CONF_FILENAMES = ['angular-cli.json', '.angular-cli.j... |
import { SplitType } from '../../src/models/splitType';
import type { Tab } from '../../src/models/tab';
import type { Pane } from '../../src/models/pane';
import { PaneService } from '../../src/services/paneService';
import { CloningService } from '../../src/services/cloningService';
import { Layout } from '../../src/... |
// Native
import path, { join } from "path";
// Packages
import "core-js/stable";
import {
BrowserWindow,
app,
ipcMain,
IpcMainEvent,
Tray,
Menu,
nativeImage,
shell,
MenuItem,
} from "electron";
import { autoUpdater } from "electron-updater";
import log from "electron-log";
import windowStateKeeper f... |
<filename>src/utils/common/compUtils.ts<gh_stars>10-100
import { useGlobSetting } from '/@/hooks/setting'
import { merge, random } from 'lodash-es'
import {isArray} from "/@/utils/is";
import { FormSchema } from '/@/components/Form'
const globSetting = useGlobSetting();
const baseApiUrl = globSetting.domainUrl;
/**
*... |
<filename>lib/session.ts
import {
HostConnection,
AgentSession,
AgentSessionId,
AgentMessageSink,
AgentMessageHandler,
AgentMessageRecord,
AgentMessageKind,
VariantDict,
} from "./protocol";
import { Crash } from "./crash";
import { Script, ScriptOptions } from "./script";
import { Signa... |
<gh_stars>0
import { Component } from '@angular/core';
import { FormControl } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { SuperadminService } from '../../superadmin.service';
import { CommonService } from '../../common.service';
export interface User {
name: string;
}
... |
import {Component, consume} from '@layr/component';
import {Routable, route} from '@layr/routable';
import React, {Fragment, useCallback} from 'react';
import {view, useAsyncMemo, useAsyncCall} from '@layr/react-integration';
import {jsx, css} from '@emotion/core';
import isEqual from 'lodash/isEqual';
import type {Co... |
<gh_stars>0
import {
binaryBufferToString,
CipherStrategy,
decryptBinaryWithKey,
decryptWithKey,
encryptBinaryWithKey,
stringAsBinaryBuffer,
} from '@meeco/cryppo';
import {
AttachmentApi,
AttachmentDirectUploadUrlResponse,
Configuration,
ConfigurationParameters,
CreateAttachmentResponse,
Direct... |
import React, { useRef, useState } from "react";
import {
BackHandler,
ImageSourcePropType,
ScrollView,
useWindowDimensions,
} from "react-native";
import { useFocusEffect, useNavigation } from "@react-navigation/native";
import PagerView from "react-native-pager-view";
import MapView, { Marker, PROVID... |
import { Record } from "../../commonTypes";
import { IField, FieldDictonary, IFieldSummary, IInsightSpace, InsightWorker, IMutField, IDataType, ISemanticType, IAnalyticType } from "./interfaces";
import { getFieldsSummary } from "./fieldSummary";
import { DataGraph } from "./dataGraph";
import { Cube } from "../../cube... |
<reponame>rayyreall/Bot-Whatsapp<gh_stars>1-10
import {Readable} from "stream";
import axios from "axios";
import * as fs from "fs";
import crypto from "crypto";
import sharp from "sharp";
import Bluebird from "bluebird";
import parsems, {Parsed} from "parse-ms";
import lodash from "lodash";
import { get } from "fast-l... |
<gh_stars>100-1000
/**
* <block type="device_show_leds">
<field name="LED00">FALSE</field>
<field name="LED10">FALSE</field>
<field name="LED20">FALSE</field>
<field name="LED30">FALSE</field>
<field name="LED40">FALSE</field>
<field name="LED01">FALSE</field>
<field name="LED11">FALS... |
import { PlusOutlined } from '@ant-design/icons';
import { Form } from '@ant-design/compatible';
import '@ant-design/compatible/assets/index.css';
import { Button, Input, Select, Upload, message, Radio, Modal } from 'antd';
import React, { Component, Fragment } from 'react';
import { FormComponentProps } from '@ant-de... |
import {
AuthContext,
DmssAPI,
DmtAPI,
EntityPickerButton,
Loading,
NewEntityButton,
UIPluginSelector,
useBlueprint,
} from '@dmt/common'
import React, { useContext, useState } from 'react'
import { AttributeField } from './AttributeField'
import { Button, Typography } from '@equinor/eds-core-react'
imp... |
<reponame>Azure/iot-central-file-upload-device<filename>device.ts
import { Mqtt } from 'azure-iot-device-mqtt';
import { SymmetricKeySecurityClient } from 'azure-iot-security-symmetric-key';
import { ProvisioningDeviceClient } from 'azure-iot-provisioning-device';
import { Mqtt as ProvisioningTransport } from 'azure-io... |
<gh_stars>0
import { Component, Inject, OnInit, ViewChild } from '@angular/core';
import { CRUDService } from '../services/crud-service';
import { FirebaseAuthService } from '../services/firebase-auth.service';
import { MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog';
import Swal from 'sweetalert2/dist/swe... |
import { graphql, Link } from "gatsby";
import React, { type FC, useState, useEffect } from "react";
import striptags from "striptags";
import RemoveIcon from "@nice-digital/icons/lib/Remove";
import { Alert } from "@nice-digital/nds-alert";
import { Breadcrumbs, Breadcrumb } from "@nice-digital/nds-breadcrumbs";
impo... |
<reponame>vicb/protobuf-ts
// Copyright 2008 Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this... |
<filename>src/eightSleepConnection.ts
import { readFile, writeFile, mkdir } from 'fs/promises';
import path from 'path';
import { EightSleepThermostatPlatform } from './platform';
import { clientAPI } from './clientRequest';
// ** Uncomment next line to import/enable mocking data
// import * as AxiosMock from './axiosM... |
import React, {
useMemo,
useCallback,
useState,
useEffect,
useRef,
} from "react";
import { Rnd } from "react-rnd";
import clsx from "clsx";
import { nanoid } from "nanoid";
import * as olProj from "ol/proj";
import "./ElementDetailsSettings.scss";
import { AppState } from "../../../types";
import {
Excal... |
import cn from 'classnames';
import React, {
BaseSyntheticEvent,
FC, SyntheticEvent, useEffect, useState,
} from 'react';
import { DraggableProvided, DraggableStateSnapshot, Droppable } from 'react-beautiful-dnd';
import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux'... |
/*
Copyright 2017 Esri
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, softwar... |
<reponame>vsh1ft/egzaminai-frontend
import { Injectable } from '@angular/core'
import { HttpRequest, HttpResponse, HttpHandler, HttpEvent, HttpInterceptor, HTTP_INTERCEPTORS } from '@angular/common/http'
import { Observable, of, throwError } from 'rxjs'
import { delay, mergeMap, materialize, dematerialize } from 'rxjs/... |
import React, { useState, useEffect, useRef, useMemo, useContext } from "react"
import { useRouter } from "next/router"
import moment from "moment"
import Head from "next/head"
import {
Field,
PageHeader,
MetaTags,
t,
Button,
debounce,
lRoute,
LocalizedLink,
ApiClientContext,
SiteAlert,
setSiteAle... |
import 'parsimmon';
import { DateTime, Duration } from 'luxon';
import { BinaryOp, TagSource, FolderSource, Source, VariableField, Field, Fields, Sources, NegatedSource } from './query';
import * as P from 'parsimmon';
///////////
// TYPES //
///////////
/** Provides a lookup table for unit durations of the given typ... |
/* eslint-disable camelcase */
export interface BaseModel {
id: string
payload: any
date_synced: Date
date_created: Date
date_updated: Date
is_deleted: boolean
}
export interface ItemModel extends BaseModel {
source_id: string
parent_id: string
subject_agg?: string[]
author_agg?: string[]
access... |
<gh_stars>0
import { GifCodec, GifFrame, GifUtil } from "gifwrap"
import { colord } from "colord"
import sharp from "sharp"
import { Canvas, CanvasRenderingContext2D, FontLibrary, Image, loadImage } from "skia-canvas/lib"
import { config, ctx } from "."
import { MakeFunction } from "./function"
import { PetPetCommand }... |
<reponame>SukuLab/suku-governance-eth-lib<filename>src/ethhelper.ts
import Web3 from 'web3';
import { Contract } from 'web3-eth-contract';
import { AbiItem } from 'web3-utils';
import { provider } from 'web3-providers';
import { Sign } from 'web3-eth-accounts';
import { EventEmitter } from 'events';
import abi from 'hu... |
/*
Copyright 2022 <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 to in writing, software
distribute... |
/*
* Copyright 2018-present Open Networking Foundation
*
* 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 appli... |
import { commands, Disposable, QuickPick, window } from "vscode";
import { ContextKey, defaultStatusBarTimeout } from "../constants";
import KeyListener, { KeybindingArgs } from "../keyListener";
import { setStatusBarMessage } from "../statusBar";
import { BaseMenuItem, convertToMenuLabel } from "./menuItem";
export c... |
import {Transaction, TxOut, CoinControl} from '../../daemon/firod';
import Vue from "vue";
import {cloneDeep, fromPairs} from "lodash";
export interface TXO extends TxOut {
blockHash?: string;
blockHeight?: number;
blockTime?: number;
isInstantSendLocked: boolean;
txid: string;
index: number;
... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------... |
<filename>scripts/check-public-api.ts
import { join, resolve } from 'path';
import { promises, readFileSync } from 'fs';
import { GlobSync } from 'glob';
import { createLogger, flatten } from '@sap-cloud-sdk/util';
import mock from 'mock-fs';
import { CompilerOptions } from 'typescript';
import {
readCompilerOptions,... |
/**
* @flow
* a classic use case of eject is when a user imports a component using `bit import` to update it,
* but the user has no intention to have the code as part of the project source code.
* the eject provides the option to delete the component locally and install it via the NPM client.
*
* an implementatio... |
///
/// Copyright © 2020 <EMAIL>
///
/// 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 ag... |
<filename>Node/core/src/dialogs/Prompts.ts<gh_stars>0
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Builder SDK Github:
// https://github.com/Microsoft/BotBuilder
//
// Copyright (c) Microsoft Corporation
// A... |
<gh_stars>1-10
/**
* @license
* Copyright Google Inc. 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://angular.io/license
*/
import {ModuleWithProviders, NgModule, NgModuleDef, NgModuleTransitiveScopes} from '../../metadata/ng... |
<reponame>DwayneGit/slate-md-serializer<filename>src/renderer.ts<gh_stars>0
import parser from "./parser";
import { Value } from "slate";
import { Record } from "immutable";
import { encode } from "./urls";
import { escapeMarkdownChars } from "./utils";
const String = Record({
object: "string",
text: "",
});
/**
... |
import { assocPath, compose, pathOr } from 'ramda';
import * as React from 'react';
import { Sticky, StickyProps } from 'react-sticky'
import Paper from '@material-ui/core/Paper';
import { StyleRulesCallback, Theme, withStyles, WithStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typ... |
<filename>packages/icon/src/react/icons/index.ts
export { AccountIcon } from './AccountIcon.dist'
export { AnalyticsIcon } from './AnalyticsIcon.dist'
export { ArrowDownIcon } from './ArrowDownIcon.dist'
export { ArrowDownRightIcon } from './ArrowDownRightIcon.dist'
export { ArrowLeftIcon } from './ArrowLeftIcon.dist'
... |
<gh_stars>10-100
const babelParser = require('@babel/parser');
const traverse = require('@babel/traverse').default;
const fs = require('fs');
const path = require('path');
let ID: number = 0;
type CacheStore = { [key: string]: number } | {};
type InvocationStore = { [key: string]: [] | string[] } | {};
type NodeStore... |
/**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*
* Adapted from LiteMol
*/
import { Task, RuntimeContext } from '../mol-task';
import { unzip, ungzip } from './zip/zip';
import { utf8Read } from '../mol... |
// tslint:disable:no-empty
import Button from "antd/lib/button";
import { FormComponentProps } from "antd/lib/form";
import Form, { WrappedFormUtils } from "antd/lib/form/Form";
import Input from "antd/lib/input";
import notification from "antd/lib/notification";
import Row from "antd/lib/row";
import Select from "antd... |
/*
* Copyright (c) 2018, SOW ( https://safeonline.world, https://www.facebook.com/safeonlineworld). (https://github.com/safeonlineworld/cwserver) All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
// 9:10 PM 5/2/2020
import { IResInfo } from './... |
<gh_stars>0
import { Chart } from "./chart";
import { Text } from "./text.en";
import { Target } from "./achart-creator";
const d3 = require("d3");
export class LineChart extends Chart
{
readonly CHART_WIDTH = 600
readonly SVG_HEIGHT = this.CHART_Y + this.CHART_HEIGHT + 2 * this.AXIS_HEIGHT + this.MARGIN... |
import {
CompileTimeConstants,
ComponentDefinitionState,
ConstantPool,
InternalComponentCapability,
ComponentDefinition,
ResolutionTimeConstants,
ResolvedComponentDefinition,
RuntimeConstants,
ModifierDefinitionState,
HelperDefinitionState,
Template,
} from '@glimmer/interfaces';
import { assert, ... |
import { createHash } from 'crypto';
import { basename, extname } from 'path';
import { URL } from 'url';
import { Assembly, validateAssembly } from '@jsii/spec';
import { metricScope, Configuration, Unit } from 'aws-embedded-metrics';
import type { Context, SQSEvent } from 'aws-lambda';
import { CacheStrategy } from ... |
import tcpPortUsed from "tcp-port-used";
import path from "path";
import { killAll, run } from "../../src"; //"polkadot-launch";
import {
BINARY_PATH,
RELAY_BINARY_PATH,
DISPLAY_LOG,
SPAWNING_TIME,
RELAY_CHAIN_NODE_NAMES,
} from "./constants";
const debug = require("debug")("test:para-node");
export async functio... |
/** # Command line functions
*
* This file contains functions to interact with the command line.
*
* If you want to bind them to keyboard shortcuts, be sure to prefix them with "ex.". For example, if you want to bind control-p to `prev_completion`, use:
*
* ```
* bind --mode=ex <C-p> ex.prev_completion
* ```
*... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import BigNumber from 'bignumber.js'
import React, { useCallback, useState } from 'react'
import styled from 'styled-components'
import { Button, IconButton, useModal, AddIcon, Image } from '@pancakeswap-libs/uikit'
import { useWeb3React } from '@web3-react/core'
import UnlockButton from 'components/UnlockButton'
... |
import * as PIXI from "pixi.js";
import "./style.css";
declare const VERSION: string;
const gameWidth = window.innerWidth * 0.9;
const gameHeight = window.innerHeight * 0.9;
console.log(`Welcome from pixi-typescript-boilerplate ${VERSION}`);
const app = new PIXI.Application({
backgroundColor: 0xd3d3d3,
widt... |
<reponame>Stremblay2/search-ui<gh_stars>0
import { $$ } from '../../utils/Dom';
import {
DistanceEvents,
IResolvingPositionEventArgs,
IGeolocationPosition,
IGeolocationPositionProvider,
IPositionResolvedEventArgs
} from '../../events/DistanceEvents';
import { analyticsActionCauseList, IAnalyticsActionCause }... |
<gh_stars>0
import { oneCentury, oneDay } from "../constants";
import { AstronomicalObject, Coordinate, OrbitalPosition, OrbitDefinition } from "../interfaces";
import { auToKm, toDegrees, toRadians } from "./conversions";
import moize from "moize";
import solarSystem from "../data/solarSystem";
export const getOrbit... |
import React, { useEffect, useMemo, useRef, useState } from "react";
import { renderToStaticMarkup } from "react-dom/server";
import "./ViewPage.css";
import { useHistory } from "react-router-dom";
import { useTransition, animated } from "react-spring";
import TopLeftBar from "./TopLeftBar";
import {
Chip,
Circ... |
<reponame>forcedotcom/salesforce-alm
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { SfdxError, Org, Messages, Logger } from '@... |
<gh_stars>1-10
// Types
import { PropertyChangeData } from '../../data/observable';
import { ViewBase } from '../core/view-base';
import { FontStyle, FontWeight } from '../styling/font-interfaces';
// Requires.
import { FormattedString } from './formatted-string';
import { Span } from './span';
import { View } from '.... |
<filename>packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.ts
/**
* @license
* Copyright Google Inc. 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://angular.io/license
*/
// tslint:disable
// TODO: cleanup... |
<gh_stars>0
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
// 'use strict';
export const SCROLL_FRAME_RATE: number = 10;
export interface ITransitionObj {
element: HTMLElement;
props: any;
transformations: any;
tweenObj... |
import { Component, NgZone, ViewChild } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Events, NavController, Platform } from 'ionic-angular';
import { ActionSheetProvider } from '../../providers/action-sheet/action-sheet';
import { AnalyticsProvider } from '../../providers/anal... |
/*
* Copyright (c) 2016-2020 <NAME> <<EMAIL>>
*
* 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, merg... |
<filename>manifests/runtime/slack/search/slack-team.ts<gh_stars>100-1000
import { SDK, search } from '@getstation/sdk';
/*
We forked the Slack library for @getstation/slack since we need to use
the browser version (the worker is a renderer process) and we are in a node context.
*/
// @ts-ignore
import * as slack fr... |
import React, { useState, useCallback, useEffect, useRef } from "react";
import { createStyles, makeStyles, Theme } from "@material-ui/core";
import clsx from "clsx";
import { useClickOutside } from "@iris/hooks";
const useStyles = makeStyles((theme: Theme) =>
createStyles({
labelDropDownOpen: {
position... |
<filename>types/kbm-robot/index.d.ts
// Type definitions for kbm-robot 0.0
// Project: https://github.com/kylepaulsen/kbm-robot
// Definitions by: <NAME> <https://github.com/usama8800>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.1
interface KBMRobot {
startJa... |
import { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { single, multi } from './data';
import { TdDataTableSortingOrder, TdDataTableService, ITdDataTableSortChangeEvent } from '@covalent/core/data-table';
import { TdDigitsPipe } from '@covalent/core/common';
im... |
// Copyright 2015 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 ... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { IDisposable, IEvent, IEventProvider, ITelemetryLogger } from "@fluidframework/common-definitions";
import { delay, TypedEventEmitter, assert } from "@fluidframework/common-utils";
import { ... |
import { makeAutoObservable } from 'mobx'
import { keyBy } from 'lodash'
import { uuidv4 } from 'lib/helpers'
import { get, post, patch, delete_ } from 'lib/common/fetch'
import { LogSqlSnippets, UserContent, UserContentMap } from 'types'
import { IRootStore } from '../RootStore'
import { API_URL } from 'lib/constants... |
import React, { ReactNode } from 'react';
import { Dispatch } from 'redux';
import { connect } from 'react-redux';
import PageController from 'wdk-client/Core/Controllers/PageController';
import { RootState } from 'wdk-client/Core/State/Types';
import { wrappable } from 'wdk-client/Utils/ComponentUtils';
import { Use... |
import { App, WebhookInterface } from './app';
import axios from 'axios';
import { Utils } from './utils';
import { Lambda } from 'aws-sdk';
import { Log } from './log';
import { Server } from './server';
import { createHmac } from "crypto";
export interface ClientEventData {
name: string;
channel: string;
... |
<reponame>Juicpt/webext-bridge<filename>src/internal.ts
import type { JsonValue } from 'type-fest'
import browser, { Runtime } from 'webextension-polyfill'
import { serializeError } from 'serialize-error'
import uuid from 'tiny-uid'
import { RuntimeContext, OnMessageCallback, IQueuedMessage, IInternalMessage, IBridgeMe... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {
humanizeDuration,
humanizeNumber,
splitChars,
} from "@internal/string-utils";
import {Reporter, ReporterStreamHandle}... |
<gh_stars>0
import compress from "./compress";
import EventToArray from "./converters/toarray";
import getPlugin from "./plugins";
import { IAddEventMessage, ICompressedBatchMessage, ITimestampedWorkerMessage, WorkerMessageType } from "@clarity-types/compressionworker";
import {
IBindingContainer, IClarityFields, IE... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React, {useEffect} from 'react';
import {FormattedMessage} from 'react-intl';
import {useDispatch, useSelector} from 'react-redux';
import {savePreferences} from 'mattermost-redux/actions/preferences... |
import React from 'react';
import { module, IPromise } from 'angular';
import { uniqWith, isEqual } from 'lodash';
import { react2angular } from 'react2angular';
import { Alert } from 'react-bootstrap';
import { Option } from 'react-select';
import {
IEcsContainerMapping,
IEcsDockerImage,
IEcsServerGroupCommand,
... |
import { Event, Notification } from 'linode-js-sdk/lib/account';
import { Image } from 'linode-js-sdk/lib/images';
import {
Disk,
LinodeSpecs,
LinodeStatus,
LinodeType,
scheduleOrQueueMigration
} from 'linode-js-sdk/lib/linodes';
import { APIError as APIErrorType } from 'linode-js-sdk/lib/types';
import { Vol... |
import store from '../../common/store'
import { retrieveEdge, retrieveDocument } from '../../common/retrieve'
import AiTmedError from '../../common/AiTmedError'
import DType from '../../common/DType'
import { CommonTypes } from '../../common/types'
import * as DocumentTypes from './types'
import { UnableToLocateValue... |
<reponame>suryadana/DefinitelyTyped
import {
Block,
Value,
Data,
BlockJSON,
Document,
Editor,
KeyUtils,
Range,
Point,
Inline,
Mark,
SchemaProperties,
Plugin,
Node,
Command,
Query,
Decoration,
} from "slate";
const data = Data.create({ foo: "bar " });
... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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 b... |
import { AgmCoreModule } from '@agm/core';
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatAutocompleteModule } from '@angular/mater... |
import * as core from '@dyno.gg/dyno-core';
import * as Eris from '@dyno.gg/eris';
import * as each from 'async-each';
import * as StatsD from 'hot-shots';
import * as moment from 'moment';
import config from './config';
import {logger} from './logger';
import {default as models} from './models';
import {default as red... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
// tslint:disable:no-any max-func-body-length no-empty no-require-imports no-var-requires
if ((Reflect as any).metadata === undefined) {
require('reflect-metadata');
}
import { Socket } from 'net';
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.