text stringlengths 3.08k 15.5k |
|---|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import { ProsemirrorNode, ResolvedPos, Schema } from 'prosemirror-model';
import { Selection, Transaction, NodeSelection } from 'prosemirror-state';
import { addParagraph } from '@/helper/manipulation';
import { TableOffsetMap } from '../helper/tableOffsetMap';
import { Direction } from '../nodes/table';
export type... |
<filename>src/processing/graph_generator.ts
import _, { groupBy, filter, map, sum, some, isUndefined, uniq, difference, flatMap, concat, mean, defaultTo, find } from 'lodash';
import { isPresent } from '../util/Utils';
import { ServiceDependencyGraphCtrl } from '../service_dependency_graph_ctrl';
import { GraphDataElem... |
<reponame>ascontract/as-scale-codec<filename>assembly/__tests__/Arrays/StringArray.spec.ts
import { Bytes } from "../../utils/Bytes";
import { ScaleString } from "../../ScaleString";
import { StringArray } from "../../Arrays/StringArray";
describe("StringArray", () => {
it("should encode string array", () => {
... |
// import React, { useState, useContext } from 'react';
// import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';
// Utility
import { searchabledDataType } from '../common/const';
// Graphql
import Amplify, { API, graphqlOperation } from 'aws-amplify';
import { listAudioByDataValue, listAudioMetaD... |
<filename>packages/i18n/src/index.ts<gh_stars>1-10
let i18next = require("i18next");
const sprintf = require("i18next-sprintf-postprocessor");
const _ = require("underscore");
// const XHR = require('i18next-xhr-backend');
const loadResources = {};
if(!i18next.use){
i18next = i18next.default
}
i18next.use(sprin... |
<reponame>arkhn/Cohort360<filename>src/services/cohortCreation/fetchCondition.ts
import { memoize } from 'lodash'
import { CONDITION_VS_URL, CONTEXT } from '../../constants'
import api from '../../services/api'
import apiRequest from '../../services/apiRequest'
import { capitalizeFirstLetter } from '../../utils/capita... |
<reponame>EdJoPaTo/wikidata-mall-telegram-game
import {MenuTemplate, Body} from 'telegraf-inline-menu'
import {Session, Context} from '../../../lib/types'
import {Shop, Product} from '../../../lib/types/shop'
import {Skills, SimpleSkill} from '../../../lib/types/skills'
import {Talent} from '../../../lib/types/people'... |
// Copyright 2020 The Kubermatic Kubernetes Platform contributors.
// 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 app... |
import {
ContentType,
CourseContent,
CourseInfo,
SemesterInfo,
SemesterType,
} from 'thu-learn-lib/lib/types';
import { Map } from 'immutable';
import orderBy from 'lodash/orderBy';
import {
ContentInfo,
DiscussionInfo,
FileInfo,
HomeworkInfo,
NotificationInfo,
QuestionInfo,
} from '../../types/d... |
<filename>src/cron/bundle.ts
import logger from "../logger";
import {
currentBlockHeight,
currentMultiplier,
} from "../constants";
import { bundleExecutorQueue, bundleQueue } from "../queues/queues";
import { workerConnection } from "../database/workerConnection.database";
import { Job } from "bullmq";
import { co... |
<gh_stars>0
import { ErrorType, Status } from '../data/types/sporenstreksTypes';
export enum Keys {
MY_PAGE = 'MY_PAGE',
DOCUMENT_TITLE = 'DOCUMENT_TITLE',
REFUNDS = 'REFUNDS',
ALL_REFUNDS = 'ALL_REFUNDS',
CHANGE = 'CHANGE',
FIND_OTHER_EMPLOYEE = 'FIND_OTHER_EMPLOYEE',
IDENTITY_NUMBER = 'IDENTITY_NUMBER'... |
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Thingpedia
//
// Copyright 2019-2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance wi... |
import Prism from "../vendor/prism";
import { Dropdown } from "./dropdown";
import {
languages as allLanguages,
PrismLanguage,
Language,
} from "./languages";
import { getDefaultLanguage, getSuggestions } from "./suggestions";
const RCH = {
class: {
suggestion: "rch-suggestion",
suggestionActive: "rch-suggesti... |
<reponame>Supermegadex/gamedeck
import { Scene } from "./Scene";
import { GObject } from "./GObject";
import ms from 'ms';
import { Vector2 } from "./Utils";
import { Input, Listenable } from "./Input";
import { Collision, SIDES } from "./Collisions";
interface ITimer {
frame?: number;
time?: number;
callback():... |
<gh_stars>0
import * as path from 'path';
import * as os from 'os';
import * as fs from 'fs';
import EmailCustomerNewBuyTemplate from './email.customerNewBuy.template';
const admin = require('firebase-admin');
const nodemailer = require('nodemailer');
const handlebars = require('handlebars');
const handlebarsIntl = ... |
import { VectorTileFeature } from "@mapbox/vector-tile";
import { action } from "mobx";
import JulianDate from "terriajs-cesium/Source/Core/JulianDate";
import Rectangle from "terriajs-cesium/Source/Core/Rectangle";
import TimeInterval from "terriajs-cesium/Source/Core/TimeInterval";
import ImageryLayerFeatureInfo from... |
<reponame>scriptnull/copybara-action
import * as artifact from "@actions/artifact";
import * as core from "@actions/core";
import path from "path";
import { context } from "@actions/github";
import { CopyBara, CopybaraConfig, RepoConfig } from "./copybara";
import { exit } from "./exit";
import { GitHub } from "./githu... |
<filename>src/patterns/pants/block.ts
import { angle, IPoint, measure, paths, point } from 'makerjs'
import { IAdjustedDart } from '../../helpers/dart'
import { pointAtAngle, pointAtDistance, rotateFn } from '../../helpers/point-angles'
import { IBlock } from '../../types/block'
import { IMeasurements } from '../../typ... |
import { useState, useEffect } from 'react'
import axios from "axios";
import { useSession } from 'next-auth/client'
import Layout from '../components/layout'
import Link from "next/link"
import { useRouter } from 'next/router'
import AccessDenied from '../components/access-denied'
import { Alert, ConfirmAlert } from "... |
import * as fs from "fs";
import * as path from "path";
import * as debug from 'debug';
import * as api from './api';
import { BasicAuth, CloudDirectorAuthentication } from './auth';
import * as mqtt from "mqtt";
import * as tls from 'tls';
import * as WS from 'ws';
import * as jwt from 'jsonwebtoken';
import { Transfe... |
<reponame>StephenMcConnel/BloomLibrary2<filename>src/connection/ParseServerConnection.ts<gh_stars>1-10
import axios from "axios";
import { LoggedInUser, User } from "./LoggedInUser";
import * as Sentry from "@sentry/browser";
// This file exports a function getConnection(), which returns the headers
// needed to talk ... |
import { App } from 'vue'
import { RouteLocationNormalizedLoaded } from 'vue-router'
import { Options } from './types/options'
import { Matomo } from './types/matomo'
import { getMatomo, getResolvedHref, loadScript } from './utils'
const defaultOptions = {
debug: false,
disableCookies: false,
requireCookieConsent: ... |
<reponame>BoZhao0817/Pokedex<filename>node_modules/jss/src/index.d.ts
import * as css from 'csstype'
// TODO: Type data better, currently typed as any for allowing to override it
type FnValue<R> = R | ((data: any) => R)
type NormalCssProperties = css.Properties<string | number>
type CssProperties = {[K in keyof Norma... |
<gh_stars>100-1000
/**
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import { IntAdjacencyGraph } from '../../../../mol-math/graph';
import { Unit } from '../../../../mol-model/structure';
import { GridLookup3... |
import { Component } from '../Base/Component';
import { ComponentOptions } from '../Base/ComponentOptions';
import { IComponentBindings } from '../Base/ComponentBindings';
import { Initialization } from '../Base/Initialization';
import { CardOverlayEvents } from '../../events/CardOverlayEvents';
import { $$ } from '../... |
/* eslint no-underscore-dangle: 0 */
import React, { useRef, useEffect, useState } from 'react';
import { UnControlled as CodeMirrorEditor } from 'react-codemirror2';
import { Editor } from 'codemirror';
import { useMedia } from 'react-use';
import classNames from 'classnames';
import { Result } from 'antd';
import deb... |
<filename>extensions/gitlab/src/utils.ts
import { getLocalStorageItem, ImageLike, ImageMask, setLocalStorageItem } from "@raycast/api";
import { Project } from "./gitlabapi";
import { GitLabIcons } from "./icons";
import * as fs from "fs/promises";
import * as fsSync from "fs";
import { constants } from "fs";
import * ... |
import * as React from 'react';
import styles from './PieChartDemo.module.scss';
import { IPieChartDemoProps } from './IPieChartDemo.types';
import * as strings from 'PieChartDemoWebPartStrings';
// used to add a chart control
import { ChartControl, ChartType } from '@pnp/spfx-controls-react/lib/ChartControl';
import ... |
import { component as injectable } from 'tsdi';
import { computed, observable } from 'mobx';
import * as startOfWeek from 'date-fns/start_of_week';
import * as addDays from 'date-fns/add_days';
import { getStorage, setStorage } from './utils/storage';
import { baseUrl, fetchUtil } from './utils/ajax';
import { parseCal... |
<gh_stars>0
// import { BuildOptions } from '@angular-devkit/build-angular/src/angular-cli-files/models/build-options';
import { IndexHtmlWebpackPluginOptions } from '@angular-devkit/build-angular/src/angular-cli-files/plugins/index-html-webpack-plugin';
import { CustomWebpackBrowserSchema, BuilderParameters } from '@u... |
<reponame>Pita/reco<filename>src/dfa-analyzer/CharRangeSequencePossibilities.ts
import { AST } from 'regexpp';
import { Flags, RegExpLiteral } from 'regexpp/ast';
import { CharRange } from '../generator/CharRange';
import { CharRangeSequence } from './CharRangeSequence';
import { dfaAnalyzeElement } from './dfaAnalyze'... |
import { addDocumentListener, createDragImage, onEvt, Point } from "./internal/dom-utils";
import { DragOperationController, DragOperationState } from "./internal/drag-operation-controller";
import { tryFindDraggableTarget } from "./internal/drag-utils";
import { detectFeatures } from "./internal/feature-detection";
/... |
import * as fs from "fs";
import * as path from "path";
import fetch from "node-fetch";
import { JSDOM } from "jsdom";
import innerText from "styleless-innertext";
fetchIDLs(process.argv.slice(2));
interface IDLSource {
url: string;
title: string;
deprecated?: boolean;
local?: boolean;
}
const idlSel... |
<reponame>AlexRogalskiy/ferma-enjoyer
import { sleep } from "../process/util";
import { getTranslation, plantOptions } from "./data";
import { action, computed, makeAutoObservable, observable } from "mobx";
interface Config {
whatWeWantToPlant: string;
fertNumber: string | number;
doPlantNew: boolean;
}
const d... |
/* tslint:disable no-bitwise */
import sum from 'lodash/sum';
export type Predicate<A, B = true> = (a: A, b?: B) => boolean;
export type ArrayPredicate<A> = (...a: A[]) => boolean;
// export const writeToDebugFile = (data: any, postfix = 0) => {
// // eslint-disable-next-line
// const fs = require('fs');
// fs... |
import { combineLatest, Observable, of, timer } from 'rxjs';
import { filter, flatMap, map, mapTo, materialize, pairwise, startWith, switchMap, take } from 'rxjs/operators';
export function entries<T>(obj: any): [string, T][] {
const ownProps = Object.keys(obj);
let i = ownProps.length;
const resArray = ne... |
import {
PluginEntry,
CardEntry,
PluginOptions,
NodeInterface,
} from '@aomao/engine';
//引入插件 begin
import Redo from '@aomao/plugin-redo';
import Undo from '@aomao/plugin-undo';
import Bold from '@aomao/plugin-bold';
import Code from '@aomao/plugin-code';
import Backcolor from '@aomao/plugin-backcolor';
import Font... |
/*tslint:disable:no-else-after-return*/
import { BaseStep, Field, StepInterface, ExpectedRecord } from '../../core/base-step';
import { Step, FieldDefinition, StepDefinition, RecordDefinition, StepRecord } from '../../proto/cog_pb';
import * as util from '@run-crank/utilities';
import { baseOperators } from '../../cli... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
export class HealthCheck extends pulumi.CustomResource {
/... |
import { useEffect, useRef } from 'react';
import clsx from 'clsx';
import { Button, makeStyles, useTheme } from '@material-ui/core';
import Video from 'twilio-video';
import { ActivePane, useAppStateContext } from '../AppStateProvider/AppStateProvider';
import { ArrowDown } from '../../icons/ArrowDown';
import { Arro... |
import { Injectable } from '@angular/core';
import { NgForm } from '@angular/forms';
import { ToastrService } from 'ngx-toastr';
declare let $rdf: any;
declare let solid: any;
const VCARD = $rdf.Namespace('http://www.w3.org/2006/vcard/ns#');
const FOAF = $rdf.Namespace('http://xmlns.com/foaf/0.1/');
// A service laye... |
/**
* The current vertical navigation state.
*/
export enum VNavState {
/** VNAV Disabled. */
Disabled,
/** VNAV Enabled and Inactive. */
Enabled_Inactive,
/** VNAV Enabled and Active. */
Enabled_Active
}
/**
* The current VNAV path mode.
*/
export enum VNavPathMode {
/** VNAV path is not active. ... |
<reponame>deleterium/SC-Simulator
// Author: <NAME>
// Project: https://github.com/deleterium/SC-Simulator
// License: BSD 3-Clause License
import {
Constants,
Blockchain
} from './index.js'
import { utils } from './utils.js'
import { MemoryObj } from './objTypes.js'
import { CPU } from './cpu.js'
/**
* Ob... |
<gh_stars>0
/** @format */
import { interaction, Application, Container, Sprite, Texture } from 'pixi.js'
import * as Tone from 'tone'
import createLogger from 'lib/log'
import { IGameEvent, GameEventType } from 'lib/ws'
const log = createLogger(__filename)
const synth = new Tone.Synth().toMaster()
/**
* Colors fo... |
import * as React from "react"
import {
Box,
explodeJson,
DetailLineAuto,
Pill,
PillLogoProps,
PillClickable,
MonospaceText
} from "@dfuse/explorer"
import { Cell } from "../../../atoms/ui-grid/ui-grid.component"
import { KeyValueFormatEllipsis, Text } from "../../../atoms/text/text.component"
import { ... |
import { ClientOptions, Client, Message, MessageEmbed, Intents, ApplicationCommandData, ApplicationCommand, Interaction } from 'discord.js';
import * as escapeRegExp from 'lodash.escaperegexp';
import * as has from 'lodash.has';
import { Command } from './command';
import { Argument } from './argument';
import { Contex... |
import { addPost, createGroup, uploadMultipleImages } from 'apis/mutations'
import placeholder from 'assets/svg/placeholder.png'
import Error from 'components/alerts/Error'
import Button from 'components/atoms/Button'
import FormInput from 'components/atoms/FormInput'
import { links } from 'constants/Links'
import { us... |
import type { Clock, MessageEvent, ScheduleRunner } from '../runner/index.js';
import type {
CommandMessage,
CommandResponder,
HelpInfo
} from './command-message.js';
import type {
VoiceConnection,
VoiceConnectionFactory
} from './voice-connection.js';
import { addHours, getMinutes, setMinutes, setSeconds } f... |
import {
getSingleRow,
getMultipleRows,
transactionSingleRow,
run,
} from "./connection";
import {
InconsistentPriceError,
InconsistentCartError,
NegativeStockError,
NoProductsError,
} from "@lib/api";
import { DatabaseError } from "pg";
export type Order = {
id: string;
name: string;
phonenumber... |
<reponame>tross78/placematch<gh_stars>0
import * as gulp from 'gulp';
import * as del from 'del';
import * as runSequence from 'run-sequence';
import * as plumber from 'gulp-plumber';
import * as typescript from 'gulp-typescript';
import * as inject from 'gulp-inject';
import * as template from 'gulp-template';
import ... |
<reponame>newportm/vscode-ecl
import { attachWorkspace, IECLErrorWarning } from "@hpcc-js/comms"; // npm link ../jpcc-js/hpcc-js-comms
import { scopedLogger } from "@hpcc-js/util";
import * as fs from "fs";
import * as path from "path";
import * as vscode from "vscode";
import { locateClientTools } from "./clientTools... |
<reponame>aidenlx/marginnote-companion
import { cloneDeep } from "lodash-es";
import MNComp from "./mn-main";
import TemplateSettings, {
ExtParams,
Templates,
TplCfgTypes,
} from "./typings/tpl-cfg";
export type MNCompSettings = {
defaultDateFormat: string;
autopasteOnlyNote: boolean;
aliasBelowH1: boolea... |
<gh_stars>0
import '@polymer/iron-icon/iron-icon.js';
import '@polymer/iron-icons/iron-icons.js';
import '@polymer/paper-button/paper-button.js';
import '@polymer/paper-icon-button/paper-icon-button.js';
import './filter-list';
import './file-format-selector';
import './data-connectors';
import './time-selector';
imp... |
import { Glue42Web, GlueWebFactoryFunction } from "../web";
import { Glue42Core, GlueCoreFactoryFunction } from "@glue42/core";
import { version } from "../package.json";
import { Windows } from "./windows/main";
import { Layouts } from "./layouts/main";
import { Channels } from "./channels/main";
import { AppManager }... |
<reponame>stripe/vscode-stripe<gh_stars>10-100
// package: rpc
// file: listen.proto
/* tslint:disable */
/* eslint-disable */
import * as jspb from "google-protobuf";
import * as common_pb from "./common_pb";
export class ListenRequest extends jspb.Message {
clearConnectHeadersList(): void;
getConnectHeade... |
import { extent } from 'd3';
import { Draft } from 'immer';
import { get1DDataXY } from '../../../data/data1d/Spectrum1D/get1DDataXY';
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D';
import { Datum1D } from '../../../data/types/data1d';
import { Datum2D } from '../../../data/types/data2d';
import nucle... |
import React, { useState, useEffect, cloneElement } from 'react'
import Methods from '../../methods'
import { tns } from 'tiny-slider/src/tiny-slider'
import 'tiny-slider/src/tiny-slider.scss'
type UncontrolledTabsProps = {
children: any
/** css class, 传入 className 会被转换成 class */
className?: string
dis... |
import {} from '@cloudflare/workers-types'
import * as pkg from '../package.json'
import * as polyfillLibrary from 'polyfill-library'
import * as UAParser from 'ua-parser-js'
type Flag = Record<string, Array<string>>
interface PolyFillOptions {
excludes: string[]
features: Record<string, Flag>
callback: string ... |
import { FC, useState, useEffect, useRef, ChangeEvent } from "react";
import TextField from "@mui/material/TextField";
import Dialog from "@mui/material/Dialog";
import DialogActions from "@mui/material/DialogActions";
import DialogContent from "@mui/material/DialogContent";
import DialogTitle from "@mui/material/Dialo... |
<filename>libraries/node-cli/src/Command.ts
// ----------------------------------------------------------------------------- STRUCT
export type TCommandHandler<G extends object> = ( cliArguments?:string[], cliOptions?:G, commandName?:string ) => any|Promise<any>
export type TCommandDefaultHandler = ( commandName:str... |
/**
* Construct class server to configure Express.
* Express serves the build artefacts produced by 'client'
* (scripts bundles, HTML files, source maps) as per configuration.
* The server acts as a reverse proxy for webpack-dev-server
*/
import * as path from "path";
import * as express from "express";
import no... |
<reponame>vettel-qin/ts-react-redux
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import TsconfigPathsWebpackPlugin from 'tsconfig-paths-webpack-plugin';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import UglifyjsPligin from 'uglifyjs-webpack-plugin';
import Optimiz... |
<filename>packages/api/core/src/util/forge-config.ts
import { ForgeConfig, IForgeResolvableMaker } from '@electron-forge/shared-types';
import fs from 'fs-extra';
import path from 'path';
import { template } from 'lodash';
import { readRawPackageJson } from './read-package-json';
import PluginInterface from './plugin-... |
import {
Fragment,
cloneElement,
createElement,
forwardRef,
isValidElement,
// Types
ElementType,
ReactElement,
} from 'react'
import { Props, XOR, __, Expand } from '../types'
import { match } from './match'
export enum Features {
/** No features at all */
None = 0,
/**
* When used, this wi... |
<reponame>summerscar/home-assistant-polymer<filename>src/panels/config/devices/ha-config-devices-dashboard.ts
import "@polymer/paper-tooltip/paper-tooltip";
import "@material/mwc-button";
import "@polymer/iron-icon/iron-icon";
import "@polymer/paper-item/paper-item";
import "@polymer/paper-item/paper-item-body";
impor... |
import {Button, Col, Row, Input, Switch, Tag} from 'antd';
import {DeleteOutlined, LoadingOutlined, UploadOutlined, RollbackOutlined} from '@ant-design/icons';
import * as React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators, Dispatch} from 'redux';
import * as _ from 'lodash';
import {... |
<gh_stars>1-10
import request from '../../../../request';
import commands from '../../commands';
import {
CommandOption, CommandValidate
} from '../../../../Command';
import SpoCommand from '../../../base/SpoCommand';
import Utils from '../../../../Utils';
import { ContextInfo } from '../../spo';
import GlobalOptions... |
<reponame>rezaa1/pwm
/*
* Password Management Servlets (PWM)
* http://www.pwm-project.org
*
* Copyright (c) 2006-2009 Novell, Inc.
* Copyright (c) 2009-2021 The PWM Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... |
import {
Box,
Button,
Flex,
LargeSelect,
Sans,
Separator,
Serif,
Spacer,
} from "@artsy/palette"
import {
Form,
Formik,
FormikHelpers as FormikActions,
FormikValues,
} from "formik"
import { dropWhile } from "lodash"
import * as React from "react"
import { RelayProp, createFragmentContainer, gra... |
import { DOMParser, Element, marky, Parser } from "../deps.ts";
import { NodeElement, Tag } from "./types.ts";
/**
* `RegExp`s for detecting Telegram, Vimeo, Twitter and YouTube URLs and finds the main things that we need to make a Telegra.ph compatible source value for `<iframe>`s.
*
* Found from several sources o... |
/**
* @license
* Copyright 2017 Google Inc. All Rights Reserved.
* 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 ... |
<filename>packages/explorer-for-endevor/src/dialogs/locations/endevorServiceDialogs.ts
/*
* Copyright (c) 2020 Broadcom.
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* w... |
/// <reference types="cypress" />
import get from "lodash/get";
import { Dictionary } from ".";
import { canonicalize, lex } from "./parser";
import { instantiate } from "./variables";
declare var cy: Cypress.Chainable;
/**
* Anything that can be evaluated by evalMacros: strings, arrays of strings,
* matrices of ... |
import React from 'react';
import type { Settings as LayoutSettings, MenuDataItem } from '@ant-design/pro-layout';
import { PageLoading } from '@ant-design/pro-layout';
import { SolutionOutlined, RocketFilled, ProfileFilled,
RadarChartOutlined, FileFilled, HomeFilled, SettingFilled, FlagFilled,
BarsOu... |
import { makeStyles } from '@material-ui/core/styles'
import TableBody from '@material-ui/core/TableBody'
import TableCell from '@material-ui/core/TableCell'
import TableFooter from '@material-ui/core/TableFooter'
import TableRow from '@material-ui/core/TableRow'
import Typography from '@material-ui/core/Typography'
im... |
import { Button, HTMLSelect, ProgressBar } from "@blueprintjs/core";
import { CheckCircleIcon } from "@heroicons/react/solid";
import axios, { AxiosError } from "axios";
import React, { useEffect, useState } from "react";
import { TextbookModel } from "../../../../src/types/models/textbookTypes";
import TableToolbox fr... |
import { QueryObserverSuccessResult, useMutation, useQuery, useQueryClient } from "react-query";
import { useCallback, useEffect, useState } from "react";
import { Connection, ConnectionConfiguration } from "core/domain/connection";
import { useAnalyticsService } from "hooks/services/Analytics/useAnalyticsService";
im... |
import * as io from '../io';
import * as models from '../models';
import { toEnvironmentKey } from './environmentUtils';
import { report } from './logUtils';
import { cloneResponse } from './requestUtils';
import { isString } from './stringUtils';
import { HookCancel, Hook } from 'hookpoint';
export function getDispla... |
<reponame>dunerunner/ng-vcl
/**
* this is a helper-class so that the Date-logic
* is not mashed with the components logic
*/
const MONTH_NAMES = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
];
const WEEK_DAYS = [
... |
import React, { ChangeEvent, ReactElement, useEffect, useState } from 'react'
import { Button, Drawer, styled, TextField } from '@material-ui/core'
import useStyles from './style'
import { getMusicAlbumCoverUrl } from '../../utils/music'
import useEditorModel from '../../models/editor'
import { Photo, Save } from '@mat... |
import { Constructor } from '@open-wc/dedupe-mixin';
import { LitElement } from '@lion/core';
import { FormatNumberOptions } from '@lion/localize/types/LocalizeMixinTypes';
import { ValidateHost } from './validate/ValidateMixinTypes';
import { FormControlHost } from './FormControlMixinTypes';
export declare class Form... |
<filename>src/taco-dependency-installer/installerRunner.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
/// <reference path="../typings/dependencyInstallerInterfaces.d.ts" />
/// <reference path="../typings/Q.d.ts" />
... |
import { Button, Fade, Step, StepContent, StepLabel, Stepper } from '@material-ui/core';
import Collapse from '@material-ui/core/Collapse';
import React, { useContext, useEffect, useState } from 'react';
import { cargoTypes } from '../../../models/cargo.models';
import { MessageType } from '../../../models/message.mod... |
<gh_stars>1-10
import express, { Express, NextFunction, Request, Response, Router } from 'express'
import cors from 'cors'
import { createReadStream } from 'fs'
import { stat } from 'fs/promises'
import { AcnMessage, AcnOkMessage, ErrorMessage, isAcnMessage, } from '@/common/Message'
import { getLogger } from '@/commo... |
<filename>src/public/scripts/vec3.ts<gh_stars>0
enum Axis {
x,
y,
z,
}
export class Vec3 {
x:number = 0
y:number = 0
z:number = 0
constructor(x?:number, y?:number, z?:number) {
this.x = x || 0
this.y = y || 0
this.z = z || 0
}
multiply(vec1:Vec3) : Vec3 {
this.x *= vec1.x
this.y *= vec1.y
th... |
import DateFnsUtils from "@date-io/date-fns";
import {
Box,
Button,
Checkbox,
FormControl,
FormControlLabel,
FormGroup,
FormHelperText,
FormLabel,
MenuItem,
Radio,
RadioGroup,
Switch,
TextField,
Typography,
} from "@material-ui/core";
import { DatePicker, MuiPickersUtilsProvider } from "@mat... |
<reponame>karpunets/thingsboard
///
/// Copyright © 2016-2020 The Thingsboard 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/LICENS... |
import { Scanner } from "./scanner"
import { parse } from "./parser"
import { ArrayLiteral, LastKind, Literal, Module, PrimitiveKind, TypeKind } from "../last"
import * as fs from "fs"
import { FileSet } from "../files"
import { inspect } from "util"
describe("parser", () => {
describe("examples", () => {
... |
<reponame>khengleng/mycardstack<filename>packages/cardpay-sdk/sdk/utils/general-utils.ts
import Web3 from 'web3';
import { networks } from '../constants';
import { Contract, EventData, PastEventOptions } from 'web3-eth-contract';
import { TransactionReceipt } from 'web3-core';
import BN from 'bn.js';
import { query as ... |
import * as React from "react"
import { PropertyControls, ControlType } from "framer"
import { Icon } from "./IconGenerator"
import styled from "styled-components"
const TabIcon = styled.div`
display: flex;
flex-wrap: wrap;
justify-content: center;
padding-top: 4px;
font-size: 10px;
align-items: center;
... |
import React from "react";
//
const options = {
elementType: ["line", "area", "bar"],
primaryAxisType: ["linear", "time", "log", "band"],
secondaryAxisType: ["linear", "time", "log", "band"],
primaryAxisPosition: ["top", "left", "right", "bottom"],
secondaryAxisPosition: ["top", "left", "right", "bottom"],
... |
import React from 'react';
import { fetchOVCPatientList } from './ovc-report.resource';
import { colDef } from '../../types';
import { useHistory, useLocation } from 'react-router-dom';
import PatientListDownload from '../../ui-components/patient-list-download/patient-list-download.component';
import DataTable, {
Tab... |
//
// Copyright © 2020 Province of British Columbia
//
// 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 la... |
<reponame>Noriller/manual-calculation<filename>src/operations/division/division.ts
import { Multiplication } from '../multiplication/multiplication';
import { addFloatToString } from '../shared/addFloatToString';
import { getFloatPosition } from '../shared/getFloatPosition';
import { Subtraction } from '../subtraction/... |
<reponame>nelsongonzalez/material-components-web-components
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {ObserverFoundation} from '../../controller/observer-foundation';
import {Easing} from '../../motion/animation';
import {FieldAdapter, FilledFieldAdapter, LabelTyp... |
<filename>packages/use-virtual-list/index.ts
import { ReactNode, RefObject, useEffect, useMemo, useRef, useState } from 'react';
const CLIENT_HEIGHT = window.innerHeight;
const FAIL_OFFSET = 2;
// get offset top for offset item
const getOffsetTop = (
offset: number,
// cache of measured item heights
heigh... |
<gh_stars>0
import * as path from 'path'
import * as net from 'net'
import { window, workspace, ExtensionContext, Task, tasks, ShellExecution, OutputChannel, Uri } from 'vscode'
import * as cp from 'child_process'
import { LanguageClient, LanguageClientOptions, StreamInfo } from 'vscode-languageclient'
import * as semv... |
import { EntityRepository, Repository } from 'typeorm';
import SpotDailyReport from '../models/SpotDailyReport';
interface RawReport {
spot_id: string;
spot_manager_id: string;
spot_github_login: string;
spot_avatar_url: string;
spot_top_language: string;
spot_github_id: string;
spot_name: string;
spo... |
import {
SourceCatalog,
StateService,
StreamReader,
StreamSink,
StreamConfiguration,
StreamPrototype,
} from "@jitsu/types/sources";
import { ConfigValidationResult, ExtensionDescriptor } from "@jitsu/types/extension";
export interface HelpscoutConfig {
clientId: string;
clientSecret: string;
refresh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.