text
stringlengths
3.08k
15.5k
<filename>packages/web-api/src/controllers/scan-request-controller.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { GuidGenerator, RestApiConfig, ServiceConfiguration, Url } from 'common'; import { inject, injectable } from 'inversify'; import { isEmpty, isNil ...
import { graphql, PageProps } from "gatsby"; import * as queryString from "query-string"; import React from "react"; import { DefundUtils } from "../../DefundUtils"; import { EmailData } from "../../types/TemplateData"; import { EmailConfig, EmailProps, OptionalLayoutProps, } from "../../types/PropTypes"; import ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<filename>packages/draft-ts/src/component/selection/expandRangeToStartOfLine.tsx<gh_stars>10-100 /** * 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 onca...
import { MouseEvent, useCallback, useState } from 'react'; import { FiCheckSquare, FiFolder, FiTrash } from 'react-icons/fi'; import { toast } from 'react-toastify'; import '../styles/tasklist.scss'; import { Dropdown } from './Dropdown'; import { Modal } from './Modal'; interface Task { id: number; title: strin...
<filename>frontend/src/ts/main.ts<gh_stars>1-10 import "@/assets/sass/common.sass"; import * as constants from "@/ts/utils/consts"; import * as runtimeConsts from "@/ts/utils/runtimeConsts"; import { browserVersion, isChrome, isMobile, WS_API_URL, } from "@/ts/utils/runtimeConsts"; // Should be after initStore...
<reponame>simon428/hlink<gh_stars>0 import ansiEscapes from 'ansi-escapes' import wrapAnsi from 'wrap-ansi' import { log } from './utils.js' type TokenType = Record<string, any> type OptionsType = { stream?: NodeJS.WriteStream curr?: number total: number complete?: string incomplete?: string head?: string ...
import { Grid, GridItem, useColorModeValue, Table, Thead, Tbody, Td, Th, Tr } from "@chakra-ui/react"; import { useEffect, useState } from "react"; import { ResponsiveContainer, Cell, Pie, PieChart } from "recharts"; import { Card } from "../atoms/Card"; import { londonFilterString, knownNodesFilterString, normalizeCli...
<reponame>BOLT04/ketting<filename>src/utils/fetch-helper.ts import OAuth2 from 'fetch-mw-oauth2'; import { AuthOptions, KettingInit } from '../types'; import * as base64 from './base64'; import './fetch-polyfill'; import { parse } from './url'; type DomainOptions = { fetchInit?: RequestInit, auth?: AuthOptions, ...
/* Converted from JavaScript to TypeScript by * nmtigor (https://github.com/nmtigor) @2022 */ /* Copyright 2012 Mozilla 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 * *...
<filename>server/__tests__/metadata/provider/igdb.test.ts<gh_stars>100-1000 import axios from 'axios'; import { clearDatabase, runMigrations } from '__tests__/__utils__/utils'; import { IGDB } from 'src/metadata/provider/igdb'; import detailsResponse from './mock/igdb/detailsResponse.json'; import searchResponse ...
import React, { useState, useMemo, useCallback } from 'react' import { SerializedDocWithSupplemental } from '../../../cloud/interfaces/db/doc' import { SerializedTeam } from '../../../cloud/interfaces/db/team' import ContentManagerRow from './ContentManagerRow' import { getDocTitle, getDocId } from '../../../cloud/lib/...
<filename>test/api/deskew-api-tests-v3_0.ts /* * -------------------------------------------------------------------------------------------------------------------- * <copyright company="Aspose"> * Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved. * </copyright> * <summary> * Permission is hereby grante...
<gh_stars>0 import fs from 'fs'; import { Processor } from '../src/lib'; import { HTMLParser } from '../src/utils/parser'; import { StyleSheet } from '../src/utils/style'; // Example from [Tailwind Playground](https://play.tailwindcss.com/) const html = `<!-- Welcome to Tailwind Play, the official Tailwind CSS playgro...
import { History } from 'history' import dateFormat from 'dateformat' import update from 'immutability-helper' import * as React from 'react' import { Button, Checkbox, Divider, Grid, Header, Icon, Input, Loader } from 'semantic-ui-react' import { createFile, deleteFile, downloadFileData, getFi...
import util from 'util'; import { Connection, createConnection, DefinitionLink, DocumentSymbol, InitializeResult, ProposedFeatures, SymbolInformation, TextDocumentSyncKind, } from 'vscode-languageserver/node'; import { ComlinkDocument } from './document'; import { ComlinkDocuments } from './documents';...
import { SimpleType, toTypeString } from "ts-simple-type"; import { Program, Type, TypeChecker } from "typescript"; import { ComponentCSSProperty } from "../../../analyze"; import { AnalyzeComponentsResult } from "../../../analyze/analyze-components"; import { ComponentCSSPart } from "../../../analyze/types/component-c...
<gh_stars>1-10 import { Component, ViewChild, OnInit } from '@angular/core'; import { IOutboundDocument, IOutboundDocumentItems } from '../entities/outbound-document/outbound-document.interface'; import { OutboundDocumentService } from '../services/outbound-document/outbound-document.service'; import { ModalComponen...
<filename>editor/src/components/canvas/canvas-strategies/absolute-resize-bounding-box-strategy.tsx import { isHorizontalPoint } from 'utopia-api/core' import { getLayoutProperty } from '../../../core/layout/getLayoutProperty' import { framePointForPinnedProp } from '../../../core/layout/layout-helpers-new' import { Met...
const DFG_VERSION = '0.18.1'; export enum QueryDetail { LABEL = 'LABEL', SKELETON = 'SKELETON', SUMMARY = 'SUMMARY', FULL = 'FULL', } export enum VariableType { POINT2 = 'RoME.Point2', POSE2 = 'RoME.Pose2', } export type Variable = { label: string; dataEntry: string; nstime: string; variableType:...
'use strict'; import { Uri } from 'vscode'; import { configuration, DateStyle, GravatarDefaultStyle } from '../../configuration'; import { Container } from '../../container'; import { Dates, Strings } from '../../system'; import { CommitFormatter } from '../formatters/formatters'; import { Git } from '../git'; import {...
import React, { useState } from 'react'; import styled from 'styled-components'; import { useSelector, useDispatch } from 'react-redux'; import { RouteComponentProps } from 'react-router-dom'; import { createNewWallet } from '../../redux/wallet/actions'; import { CorneredContainer, BackButton } from '../../components/c...
import styled from 'styled-components'; import { update, propEq, findIndex, prop, prepend, remove } from 'ramda'; import PlayerSelector from './PlayerSelector'; import TurnoverCategoriesSelector from './TurnoverCategoriesSelector'; import { TurnoverCategoriesType, StatHistoryType } from './types'; import { TURNOVER_CAT...
import React, { useEffect, useState } from 'react'; import { Button, Col, Drawer, Form, Input, Row, Select } from 'antd'; import { FormComponentProps } from 'antd/lib/form'; import { SqlRule } from '../data'; import Action from '@/pages/rule-engine/sqlRule/save/actions'; import AceEditor from 'react-ace'; import 'ace-b...
<reponame>agentcatcat/noclip.website<gh_stars>0 import { GfxSamplerBinding, GfxBufferBinding, GfxBindingsDescriptor, GfxRenderPipelineDescriptor, GfxBindingLayoutDescriptor, GfxInputLayoutDescriptor, GfxVertexAttributeDescriptor, GfxProgram, GfxMegaStateDescriptor, GfxAttachmentState, GfxChannelBlendState } from './Gf...
<reponame>jansav/lens /** * Copyright (c) 2021 OpenLens Authors * * 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, ...
import * as vscode from 'vscode'; import * as fs from 'fs'; interface FileTime {[key: string]: number}; const STATUS_BAR_TEXT = 'FileOpenTimeRecorder'; const INACTIVE = 'other files'; const WORKSPACE_ROOT_PATH = vscode.workspace.rootPath ? `${vscode.workspace.rootPath}/` : '/'; const DEFAULT_OUTPUT_PATH = `${WORKSPAC...
import { Request, Response, response } from "express" import * as webServer from "./webServer" import Firestore from "./gcloud/Firestore" import Key from "../data/Key" import Entity from "../data/Entity" import Patch, { createPatch } from "../data/Patch" import Model from "../data/Model" import clonePatch from "../util...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-world', templateUrl: './world.component.html', styleUrls: ['./world.component.css'] }) export class WorldComponent implements OnInit { private portal: Portal = new Portal(); private world: World = new World(2000); private tickIn...
import {getFirebaseAdmin, verifyIdToken} from 'next-firebase-auth' import initAuth from '../../../utils/initAuth' import {v4 as uuidv4} from 'uuid'; import * as Yup from "yup"; import {timezones} from '../../../variables/timezones' initAuth() // TODO: Hookup event browse, and make searchable const addNewEventSchem...
<reponame>niklabh/polkassembly // Copyright 2018-2020 @paritytech/polkassembly authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { ApiPromise } from '@polkadot/api'; import { Compact, Option } from '@polkadot/t...
import { $Class } from "jassijs/remote/Jassi"; import registry from "jassijs/remote/Registry"; import { Context, RemoteObject } from "jassijs/remote/RemoteObject"; import { Setting } from "jassijs/remote/security/Setting"; import { Server } from "./Server"; import { Test } from "./Test"; declare global { expo...
<filename>packages/web-server/src/certificate-generator.ts import * as forge from 'node-forge'; export interface GeneratorOptions { days? : number; extensions? : any[]; // todo algorithm? : 'sha256'; pkcs7? : boolean; clientCertificate? : boolean; clientCertificateCN? : string; keySize? : n...
import couchbase = require('couchbase'); var cluster = new couchbase.Cluster('couchbase://127.0.0.1'); cluster.authenticate('username', 'password'); cluster.authenticate({username: 'username', password: 'password'}); cluster.authenticate(new couchbase.ClassicAuthenticator({'bucket': 'password'}, 'username', 'password'...
/// !doc /// Stream transform for simple JSON streams /// /// ## "Simple" JSON streams /// /// A _simple JSON stream_ is a text stream with the following format: /// /// * the stream starts with `[` and ends with `]` /// * items are serialized in JSON format and separated by commas /// /// In other words, the whole str...
<reponame>willsmart/jira-in-order enum Stage { todo = 'Todo', dev = 'Dev', review = 'Review', qa = 'QA', done = 'Done', } enum Platform { ios = 'iOS', web = 'Web', android = 'Android', infrastructure = 'Infrastructure', www = 'www', none = 'None', } enum Requires { review = 'Review', qa = 'Q...
import { Buffer } from "https://deno.land/std@0.79.0/node/buffer.ts"; import { LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes, } from "../LexRuntimeServiceClient.ts"; import { PostContentRequest, PostContentResponse } from "../models/models_0.ts"; import { deserializeAws_restJson1P...
import * as React from 'react' import * as Kb from '../../../../common-adapters' import * as Styles from '../../../../styles' import * as ChatConstants from '../../../../constants/chat2' import * as ChatTypes from '../../../../constants/types/chat2' import * as Chat2Gen from '../../../../actions/chat2-gen' import * as ...
<gh_stars>0 import configModule from 'config' import { pascalCase } from 'change-case' import parseGitUrl from 'git-url-parse' // eslint-disable-next-line const minimist = require('minimist') const args = minimist(process.argv) export interface AccountEnvData { account: string region: string } type EnvironmentV...
<gh_stars>1-10 import globalConfig = require("../lib/config"); import AnimatedModelLoader = require("../lib/animatedModelLoader") const cDefaultColor = 0x008800; const cMovingColor = 0x880000; export enum State { move = 0, pick = 1, hover = 2, hide = 3, undef = 4 } export class MarkerView { ...
<gh_stars>1-10 import * as cliProgress from 'cli-progress'; import {Manifest, ManifestFile} from './manifest'; import {asyncify, mapLimit} from 'async'; import {Datastore} from '@google-cloud/datastore'; import {Storage} from '@google-cloud/storage'; import chalk from 'chalk'; import {entity} from '@google-cloud/data...
<filename>src/formatter/advplFormatting.ts import { DocumentFormattingEditProvider, TextDocument, FormattingOptions, CancellationToken, ProviderResult, TextEdit, DocumentRangeFormattingEditProvider } from 'vscode'; import { FormattingRules, RuleMatch } from './formmatingRules'; import * as fs from 'fs'; import * as vsc...
'use strict'; import * as vscode from 'vscode'; import * as fs from 'fs'; interface SurroundingSettings { settings: SurroundingSetting[]; } interface SurroundingSetting { index: number; key: string; prefix: string; postfix: string; } let DEBUG: boolean = false; let CONFIGFOLDER = "/.vscode"; let ...
<reponame>JoanGi/langium /****************************************************************************** * Copyright 2021 TypeFox GmbH * This program and the accompanying materials are made available under the * terms of the MIT License, which is available in the project root. **************************************...
<gh_stars>0 import { MerchantSafe, PrepaidCardSafe, DepotSafe, } from '@cardstack/cardpay-sdk'; import { BridgedTokenSymbol } from '@cardstack/web-client/utils/token'; import { Resolver } from 'did-resolver'; import { encodeDID, getResolver } from '@cardstack/did-resolver'; import Web3 from 'web3'; // created at...
<filename>server/api/radarr.ts import Axios, { AxiosInstance } from 'axios'; import { RadarrSettings } from '../lib/settings'; import logger from '../logger'; interface RadarrMovieOptions { title: string; qualityProfileId: number; minimumAvailability: string; profileId: number; year: number; rootFolderPath...
import {NextFunction, Request, Response} from "express"; import {check, validationResult} from "express-validator/check"; import * as moment from "moment"; import * as errorMessages from "../../model/error.messages"; import {createGovUkErrorData, GovUkErrorData} from "../../model/govuk.error.data"; import {ValidationEr...
<gh_stars>1-10 import Filters from './filters' import Validators from './validators' import { clone, groupErrors, initializePromise, getTypeName, initializeFunctions, initializeChildPromise, filterDataByFields, prefilledDataByFields, getChildData, isEqual } from './helper' import { FiveNoSchema } from '../typings/app' ...
<gh_stars>1-10 import { Component, OnInit, HostBinding, Input, Output, EventEmitter, ElementRef, HostListener } from '@angular/core'; import { trigger, transition, query, style, animate, group } from '@angular/animations'; import { SmartSliderService } from '../smart-slider.service'; import { SmartSliderItem } from '.....
/** * Copyright 2020 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...
/** * @file Exports the various types of objects used by Mainframe in its API. * @author Monkatraz */ // Imports for FaunaDB types import type { values as v } from 'faunadb' type Ref = v.Ref // ------- // USERS export interface Social { /** A reference to the user's actual User document. * This document ca...
import { Component, Injector, Input, OnDestroy, OnInit } from '@angular/core'; import { Data } from '@angular/router'; import { OdeComponent } from 'ngx-ode-core'; import { BundlesService } from 'ngx-ode-sijil'; import { InputFileService } from 'ngx-ode-ui'; import { ApplicationModel } from 'src/app/core/store/models/a...
import anyTest, { TestInterface, ExecutionContext } from 'ava'; import chalk from 'chalk'; import * as logSymbols from 'log-symbols'; import * as proxyquire from 'proxyquire'; import * as sinon from 'sinon'; import * as table from 'text-table'; const stripAnsi = require('strip-ansi'); import * as utils from '@hint/uti...
import * as React from "react"; import { IFieldProps } from "./Field"; import { KeyObject } from "crypto"; export interface IFields { [key: string]: IFieldProps; } interface IFormProps { //The http path that will be posted to action: string; /* The props for all the fields on the form */ fields: IFields; ...
'use strict'; import { Container } from '../../container'; import { GitAuthor, GitLogCommit, GitRevisionReference, GitStashCommit, Repository } from '../../git/models'; import { CommandQuickPickItem, CommitFilesQuickPickItem, GitCommandQuickPickItem } from '../../quickpicks'; import { ViewsWithRepositoryFolders } from ...
import * as React from 'react'; import axios, { CancelTokenSource } from 'axios'; import { withTranslation, WithTranslation } from 'react-i18next'; import { ListItem, List, Button, ListItemText, Checkbox, createStyles, Theme, withStyles, WithStyles, ListItemSecondaryAction, Dialog, DialogContent, DialogActions, withMob...
<gh_stars>0 import { Config } from "../Config"; import { Logger, getLogger, addLogWriter } from "../logging/Logger"; import * as Messages from "../WindowMessages"; import { Pty, BufferSizeChange } from "../pty/Pty"; import { PtyConnector, PtyOptions, EnvironmentMap } from "./pty/PtyConnector"; import * as PtyConnector...
<reponame>michael-scheurer/wepublish import {EventEmitter} from 'events' import TypedEmitter from 'typed-emitter' import {Context} from './context' import {User} from './db/user' import {Article} from './db/article' import {Peer} from './db/peer' import {Page} from './db/page' import {Author} from './db/author' import ...
import { Attributes, Elements, UIButtonSettings, UIFieldSettings, UIGroupData } from '@ryusei/code'; import { CLASS_ACTIVE, CLASS_BUTTON, CLASS_INPUT } from '../../constants/classes'; import { activeElement, addClass, append, assert, attr, create, hasClass, html, isString, isUndefined, normalizeKe...
export type FieldType = "f64" | "f32" | "u32" | "u16" | " u8" | "i32" | "i16" | "i8" | "union" | "struct"; export interface Field extends Array<any> { [0]: string; [1]: FieldType; [2]?: any; } const TYPES = { "f64": [64, "Float", false], "f32": [32, "Float", false], "u32": [32,...
import init, { get_errors, introspect } from '../../../pkg/naga_compiler' import { Logger } from 'core/recoil/atoms/console' import { getStructDecl, File, Model, ExtensionShader, Namespace, Dependency, getStructFromModel, ValidationResult } from '@core/types' const REGEX_SYNCS = /@sync\s+var\s*<?([\w+\s*,\s*]*)>?\...
import { eventFromException } from "@sentry/browser"; import { getCurrentHub } from "@sentry/core"; import { Integration, Severity } from "@sentry/types"; import { addExceptionMechanism, getGlobalObject, logger } from "@sentry/utils"; import { ReactNativeClient } from "../client"; /** ReactNativeErrorHandlers Options...
<reponame>shandysiswandi/troodon<filename>algorithms/SAW.ts /*! ***************************************************************************** Copyright (c) the Trodoon authors. All rights reserved. MIT License. ***************************************************************************** */ import { Attribute } from "...
import React from 'react' import { Observable, of, tap, timer, zip, delay } from 'rxjs' import { DataSink } from '../../sonification/DataSink' import { Datum } from '../../sonification/Datum' import { OutputEngine } from '../../sonification/OutputEngine' import { NoteHandler } from '../../sonification/handler/NoteHandl...
import { FunctionComponent, memo, useContext, useEffect, useState, } from "react"; import { Provider, useDispatch } from "react-redux"; import { BrowserRouter as Router } from "react-router-dom"; import logger from "redux-logger"; import { inspect } from "@xstate/inspect"; import App from "@app/App"; import {...
import { AllocateRewardsCall as AllocateBeaconRewardsCall, BeaconRewards, ReceiveApprovalCall as ReceiveBeaconApprovalCall, RewardReceived as BeaconRewardReceived } from "../generated/BeaconRewards/BeaconRewards"; import { AllocateRewardsCall as AllocateECDSARewardsCall, ECDSARewards, ReceiveApprovalCall as R...
/* eslint-disable camelcase */ /* eslint-disable quote-props */ import { createHmac } from 'crypto' import { Context } from 'koishi-core' import { camelize, defineProperty, Time, Random } from 'koishi-utils' import { encode } from 'querystring' import { CommonPayload, addListeners, defaultEvents } from './events' impo...
import { ClaRunner} from "../src/claRunner" import * as github from '@actions/github'; import { IInputSettings } from "../src/inputSettings" import { Whitelist } from "../src/claWhitelist"; import { PullAuthors } from "../src/pullAuthors"; import { Author } from "../src/authorMap"; import { ClaFileRepository } from ".....
/** * Copyright 2019, OpenCensus 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/LICENSE-2.0 * * Unless required by applicable law or ...
import React, { useState, useEffect } from "react"; import { StaticQuery, graphql } from "gatsby"; import { MDXProvider } from "@mdx-js/tag"; import { Global, css } from "@emotion/core"; import styled from "@emotion/styled"; import Helmet from "react-helmet"; import Link from "gatsby-link"; import "prismjs/themes/prism...
import * as d3 from 'd3-geo'; import { GeoProjection } from 'd3-geo'; import { Feature, Geometry } from 'geojson'; import * as topojson from 'topojson-client'; import { Topology, Objects, GeometryObject } from 'topojson-specification'; import { getDistrictCount } from './sharedFunctions'; import { MapType, WorkerReque...
<filename>src/settings.ts 'use strict'; import * as d3 from 'd3'; import * as L from 'leaflet'; import * as R from 'ramda'; export interface Settings { colour_scale: [string, string]; neutral: string; create_gap: boolean; dataset: string; origin: L.LatLngLiteral; projection: 'greatcircle' | 'equirectangul...
import { action, observable } from "mobx"; import { Field } from "./Field" import { Action, BoolOp } from "./Machine" import { ActionStatement, Block, BoolExpr, CallStatement, Construct, Def, IfStatement, LoopStatement, Program } from "./Program" export interface Coordinates { x: number y: number } export cla...
'use strict'; import * as Net from 'net'; import * as vscode from 'vscode'; import * as path from 'path'; import { WorkspaceFolder, DebugConfiguration, ProviderResult, CancellationToken } from 'vscode'; import { PerlDebugSession } from './perlDebug'; /* * Set the following compile time flag to true if the * debug...
import cmp = require('./component'); import actions = require('./utils/action_chain'); import errors = require('./utils/errors'); import async = require('./utils/async'); declare var document; /** Component implementation bindings */ export interface ComponentsImpl { /** Should the component with the given dom no...
/* * Copyright 2021 <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 wr...
// React import React, { FunctionComponent, useEffect, useRef, useState } from "react"; // NextJS import { useRouter } from "next/router"; import Head from "next/head"; // Hooks import { useAuth } from "../../hooks/useAuth"; import { useAlert } from "../../hooks/useAlert"; import { useStore } from "../../hooks/useSto...
<filename>src/commands/help.ts /** @module Yuuko */ import {Command, CommandProcess, CommandRequirements, GuildCommandProcess, PrivateCommandProcess} from '../Yuuko'; /** * Returns the help text for a command. * @param {Command} command The command to get the help text for. * @param {string} displayedCommandName T...
import React from "react"; import { gql, useMutation } from "@apollo/client"; import { Button, Card } from "react-native-paper"; import styled from "styled-components/native"; import { IEventType } from "../../types"; interface Props { data: any; onSelect?: (id: string) => void; isDetailView?: boolean; } expor...
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. /* eslint-disable no-console */ /* eslint-disable ...
<reponame>Corey-ONeal/opentrons-app_ws-remote<gh_stars>0 import type { LabwareDefinition2 } from '@opentrons/shared-data' import type { Options } from './fields' interface Pipette { displayName: string tiprack: string } const pipettes: Record<string, Pipette> = { p20_single_gen2: { displayName: 'P20 Single ...
import React, { useEffect, useRef, useMemo, useState } from 'react'; import withDefaults from '../utils/with-defaults'; import useTheme from '../use-theme'; import CSSTransition from '../utils/css-transition'; import { isChildElement } from '../utils/collections'; import ModalCloseButton from './modal-close-button'; im...
import { Button, // ErrorBoundary, TextField, helpers as utils, withStyles, } from '@kudoo/components'; import { I18n } from '@lingui/core'; import { withI18n } from '@lingui/react'; // import Grid from '@material-ui/core/Grid'; import cx from 'classnames'; import { Formik } from 'formik'; // import idx from ...
/* * Copyright © 2021 Atomist, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
import { LightningStrike } from 'three/examples/jsm/geometries/LightningStrike.js'; import * as THREE from 'three'; import { WORLD_SIZE } from '../../utils/lba'; import { findSection, getGroundInfo } from '../../game/loop/physicsIsland'; let currentLightning = null; export function loadLightning(props, islandSection...
import { defaultAbiCoder } from "@ethersproject/abi"; import { BigNumber } from "@ethersproject/bignumber"; import { Zero } from "@ethersproject/constants"; import { FlashUniswapV2Errors } from "@hifi/errors"; import { USDC, WBTC, price } from "@hifi/helpers"; import { expect } from "chai"; import type { GodModeErc20 ...
import React, { Component, SyntheticEvent } from 'react'; import { tacticalMoveOptions } from '../Game/GameRules'; import { MilitaryBaseTypes } from '../Entities/WorldObjects/Bases/MilitaryBaseTypes'; import { MapLocation } from '../Entities/MapObjects/MapLocation'; import { TickerComponent } from './TickerComponent'; ...
/*! * Copyright 2014 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 appli...
<filename>src/app/components/setup/phase-status-management/phase-status-management.component.ts<gh_stars>0 import { Dock, DockControl, KeyValuePair } from './../../common/dock.controls'; import { Component, OnInit, ViewChild } from '@angular/core'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; im...
import React, { SyntheticEvent } from "react"; import { connect } from "react-redux"; import { RouteComponentProps } from "react-router-dom"; import { bindActionCreators } from "redux"; import { strings, interpolate } from "../../../../common/strings"; import IProjectActions, * as projectActions from "../../../../redux...
import { BanEntry } from '../../models/BanEntry'; import { AutoSizer, List, ListRowProps, WindowScroller } from 'react-virtualized'; import { Callout, Classes, H5, InputGroup, NonIdealState, Spinner } from '@blueprintjs/core'; import * as React from 'react'; import { UblEntryRow } from './UblEntryRow'; import { filter,...
<reponame>StirlingMarketingGroup/tscc<filename>packages/tscc-spec/test/shared/Graph.ts ///<reference types="jest"/> import {DirectedTreeBase, DirectedTree, DirectedTreeWithOrdering, DirectedTreeWithLeafs} from "@tscc/tscc-spec" function compareGraphStructure(nodes, edges, poset) { for (let id of nodes) { let node =...
import type Koa from 'koa'; import type { BackendContext } from './context'; import type { Context, State } from '.'; import type { Effect } from 'xxscreeps/utility/types'; import type { Server } from 'http'; import { IncomingMessage, ServerResponse } from 'http'; import sockjs from 'sockjs'; import config from 'xxscre...
import { hasOwnProperty } from '@wareset-utilites/object/hasOwnProperty' import { forEachLeft } from '@wareset-utilites/array/forEachLeft' import { isFunction } from '@wareset-utilites/is/isFunction' import { includes } from '@wareset-utilites/array/includes' import { isObject } from '@wareset-utilites/is/isObject' imp...
<gh_stars>1-10 import LootTable from 'oldschooljs/dist/structures/LootTable'; const DiedTable = new LootTable() .add('Adamant dagger') .add('Adamant full helm') .add('Adamant mace', [2, 3]) .add('Adamant pickaxe') .add('Adamant platebody') .add('Adamant platelegs') .add('Adamant plateskirt') .add('Adamant scim...
import { Component, DebugElement, Input } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FormBuilder, FormGroup, FormGroupDirective, FormsModule, NgControl, ReactiveFormsModule, Validators, } from '@angular/forms'; import { By } from '@angular/plat...
import Document, { Head, Main, NextScript } from "next/document"; import { ServerStyleSheet } from "styled-components"; export const title = "Learnit"; const description = "Learnit helps you find the best resources to learn any new topic."; const url = `https://learnit.now.sh`; const thumbnail = `${url}/static/graph...
<filename>lib/k9policy.ts<gh_stars>1-10 import {AnyPrincipal, ArnPrincipal, Effect, PolicyStatement, PolicyStatementProps} from "@aws-cdk/aws-iam"; import {readFileSync} from 'fs'; import {stringify} from "querystring"; export type ArnEqualsTest = "ArnEquals" export type ArnLikeTest = "ArnLike"; export type ArnCondi...
/* eslint-disable max-len */ import { readTsConfig, transpileSingleTs } from '@wfh/plink/wfh/dist/ts-compiler'; import * as fs from 'fs'; import * as _ from 'lodash'; import * as log4js from 'log4js'; import { Observable, of, throwError } from 'rxjs'; import {map} from 'rxjs/operators'; import {config} from '@wfh/plin...
import React from 'react'; import { Suggestion } from './types/Suggestion'; import AutocompleteSuggestion from './AutocompleteSuggestion'; import './autocomplete.less'; export interface AutocompleteProps { onSelect: (value: Suggestion) => void; onChange: (value: string) => void; placeholder: string; su...