text
stringlengths
3.08k
15.5k
<reponame>reecen96/gemfarm-test<filename>tests/gem-bank/gem-bank.looper.test.ts import * as anchor from '@project-serum/anchor'; import { BN } from '@project-serum/anchor'; import { GemBankClient } from './gem-bank.client'; import { Keypair, LAMPORTS_PER_SOL, PublicKey } from '@solana/web3.js'; import { ITokenData } fr...
<filename>libs/tty/src/services/meta/screen.service.ts import { forwardRef, Inject, Injectable } from '@nestjs/common'; import { EMPTY, INCREMENT, is, SINGLE, START } from '@steggy/utilities'; import chalk from 'chalk'; import { ReadStream } from 'fs'; import MuteStream from 'mute-stream'; import { createInterface, Int...
import keysToObject from 'keys-to-object'; import { Args, Data, fieldIs, Obj, Record, RecordValue, Resolver, ResolveRequest, Schema, } from '../typings'; import { createCompare, getId, isEqual, isNewId, mapArray, mapDataAsync, mergeRecord, noUndef, undefOr, } from '../utils'; import...
import React from 'react'; import {connect} from 'react-redux'; import {AppState} from 'store/reducers'; import './style.less'; import {intervalUnits, MoneyStream} from 'modules/money_streams/types'; import {Button, Form, Icon, Input, Select, Tooltip} from 'antd'; import Unit from 'components/Unit'; import {Link} from ...
/* GisViewerProps and it children goes here */ export interface GisViewerProps extends CcProps { tileLayers: TileLayerDefinition[]; mapSettings?: MapSettings; defaultMarkerIcon?: DefaultMarkerIcon; shapeLayers?: ShapeLayerDefinition[]; layersController?: LayersControllerOptions; searchBox?: Se...
<filename>rest-api/caterpillar-core/src/dynamic-access-control/services/runtime-operations-mediator.ts import { sendThroughSocket } from "./../../app"; import { print, TypeMessage, printSeparator, } from "../../adapters/messages/console-log"; import { RuntimeOperationCall } from "./../utils/structs/async-requests...
import debugModule from "debug"; const debug = debugModule("source-fetcher:sourcify"); import type { Fetcher, FetcherConstructor } from "./types"; import type * as Types from "./types"; import { removeLibraries, InvalidNetworkError } from "./common"; import { networkNamesById, networksByName } from "./networks"; impor...
/** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors ma...
<reponame>AndreTeixeira1998/utask<filename>ui/dashboard/projects/utask-lib/src/lib/utask-lib.module.ts import { AutofocusDirective } from './@directives/autofocus.directive'; import { BoxComponent } from './@components/box/box.component'; import { ChartCommonModule, PieChartModule } from '@swimlane/ngx-charts'; import ...
<filename>src/triple.ts export interface TargetTriple { triple: string; targetOs: string; targetArch: string; vendors: string[]; abi: string; libc: string; } export function findTargetTriple(line: string): string | null { const target_triple_re = /^Target:\s+(.*)/; const target_triple_match = target_tr...
<reponame>xiaohanxu-nick/angular /** * @license * Copyright Google LLC 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 */ ////////////////////////////////////// // THIS FILE HAS GLOBAL SIDE EFFECT // // ...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Framework Emulator Github: // https://github.com/Microsoft/BotFramwork-Emulator // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // ...
<filename>modules/decrypt-node/test/verify_stream.test.ts // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /* eslint-env mocha */ import * as chai from 'chai' // @ts-ignore import chaiAsPromised from 'chai-as-promised' import * as util from 'util' import * as...
import * as mongoose from "mongoose"; import logger from "../utils/logger"; import { deleteNullOrUndefied } from "../utils/utils"; import { Client, Code, GetAccessToken, GetAuthorizationCode, GetClient, GetRefreshToken, GetUser, GetUserFromClient, OAuth2Model, RevokeAuthorizationCode, RevokeToken, SaveAuthorizationCode...
<filename>test/smoke/src/main.ts<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. *----------------...
import { component } from "node_modules/vue/types/umd" function removeSelected () { const selectedNodes: any = figma.currentPage.selection let newSelection = [] selectedNodes.forEach((node: FrameNode) => { newSelection.push(node.parent) node.remove() }) figma.currentPage.selection = newSelection } f...
<filename>src/indexed-db.ts import { useCallback } from 'react'; import { validateBeforeTransaction } from './Utils'; import { ObjectStoreMeta, ObjectStoreSchema } from './indexed-hooks'; import { createReadwriteTransaction } from './createReadwriteTransaction'; import { createReadonlyTransaction } from './createReadon...
/// <reference types="@emotion/react/types/css-prop" /> import React, { ReactNode } from 'react'; import 'twin.macro'; import clsx from 'clsx'; import Link from 'next/link'; import { signOut, useSession } from 'next-auth/client'; import { Container, createStyles, Divider, IconButton, List, ListItem, ListI...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { UMMonitorStatesAdapter } from './adapter_types'; import { INDEX_NAME...
import {EventEmitter} from 'events'; import is from '@sindresorhus/is'; import PCancelable from 'p-cancelable'; import { RequestError, HTTPError, RetryError } from '../core/errors.js'; import {CancelError} from './types.js'; import Request from '../core/index.js'; import {parseBody, isResponseOk} from '../core/respo...
<filename>src/ad-products/templates/safe-uap/safe-big-fancy-ad-proxy.ts<gh_stars>0 import { AdSlot, btfBlockerService, context, slotService, templateService, utils, } from '@ad-engine/core'; import { UapConfig, universalAdPackage } from '../uap'; import { FanTakeoverCampaignConfig } from './safe-fan-takeover-elem...
/* * Copyright 2020 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import { extractParentFromKey } from '@remix-ui/helper' import React from 'react' import { action } from '../types' import { displayNotification, displayPopUp, fileAddedSuccess, fileRemovedSuccess, fileRenamedSuccess, folderAddedSuccess, loadLocalhostError, loadLocalhostRequest, loadLocalhostSuccess, removeContextMenuI...
import React, { useLayoutEffect, useState } from 'react'; import clsx from 'clsx'; import { useSelector } from 'react-redux'; import { useAlert } from 'react-alert'; import { browser } from 'webextension-polyfill-ts'; // import { useHistory } from 'react-router-dom'; import Layout from 'scenes/common/Layout'; import Bu...
import axios, { AxiosResponse, AxiosError } from 'axios'; import Vue from 'vue'; import Vuex, { StoreOptions, GetterTree, MutationTree, ActionTree } from 'vuex'; import { Moment } from 'moment'; import { moment } from './moment'; import { DateRange } from 'moment-range'; import { getTicketId } from './utils'; Vue.use(...
<gh_stars>0 import { HueHandler } from './hue'; import { HueLightConfig } from './models/hue/light-config'; import { PiholeHandler } from './pihole'; import { SpotifyHandler } from './spotify'; import { randomString } from './utils'; let cors = require("cors"); let express = require("express"); let bodyparser = requir...
<gh_stars>1-10 import express from 'express'; import { SuccessResponse, SuccessMsgResponse } from '../../../core/ApiResponse' import { ProtectedRequest, RoleRequest } from 'app-request'; import { BadRequestError, ForbiddenError } from '../../../core/ApiError'; import BlogRepo from '../../../database/repository/BlogRepo...
<filename>cocos/core/pipeline/deferred/deferred-pipeline-scene-data.ts /* Copyright (c) 2020 <NAME> Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free...
import { useEffect, useRef } from 'react'; import { QueryFunction, QueryKey, useQuery, useQueryClient, UseQueryResult, PlaceholderDataFunction, } from 'react-query'; import type { RetryDelayValue, RetryValue, } from 'react-query/types/core/retryer'; import { Observable, of, firstValueFrom } from 'rxjs';...
import { Result } from 'ant-design-vue'; import { type RouteRecordRaw } from 'vue-router'; import { notFound, errorRoute } from './staticModules/error'; import { REDIRECT_ROUTE } from './staticModules/besidesLayout'; import outsideLayout from './outsideLayout'; import RouterView from '@/layout/routerView/index.vue'; im...
/** The MIT License (MIT) Copyright(c) 2016-present <NAME> */ import { Utils, IErrorHandler, IPromise, DummyError, BaseObject } from "jriapp_shared"; import { DATA_ATTR, ELVIEW_NM, BindScope } from "./consts"; import { IElViewFactory, IElView, ILifeTimeScope, IBindArgs, TBindingOptions, IDataBindingService...
import { forceReflow } from './utils'; // This is only used for development and should be set to false for release const _DBG_COORD_ = false && process.env.NODE_ENV !== 'production'; export const enum AnimationPhase { INITIALIZE, MEASURE, SET_START_STATE, ACTIVATE_TRANSITIONS, REGISTER_LISTENERS, ACTIVATE...
<gh_stars>0 import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cli'; import {Configuration, LocatorHash, Package} from '@yarnpkg/core'; import {IdentHash, Project} from '@yarnpkg/core'; import {miscUtils, structUtils} from '@yarnpkg/core'; import {Command} ...
<reponame>jshackell-sfdc/sfdx-scanner<filename>src/lib/JreSetupManager.ts import {Logger, SfdxError, Messages} from '@salesforce/core'; import {AsyncCreatable} from '@salesforce/kit'; import {Controller} from '../ioc.config'; import process = require('process'); import findJavaHome = require('find-java-home'); import ...
import axios from "axios"; import { Button } from 'primereact/button'; import { Dropdown } from 'primereact/dropdown'; import { InputText } from 'primereact/inputtext'; import { InputTextarea } from 'primereact/inputtextarea'; import { Message } from 'primereact/message'; import React from 'react'; import * as M...
<filename>examples/samples/topicFilters.ts import { Namespace, SubscriptionClient, TopicClient, SendableMessageInfo, OnMessage, OnError, MessagingError, delay, ServiceBusMessage } from "../../lib"; import * as dotenv from "dotenv"; import { CorrelationFilter } from "../../lib/core/managementClient"; d...
<gh_stars>1-10 import {Client, Snowflake} from "discord.js"; import {EventEmitter} from "events"; import {ICustomArgType} from "../commands/command"; import {ICommandHandler} from "../commands/commandHandler"; import {IFragmentManager} from "../fragments/fragmentManager"; import Localisation from "./localisation"; impo...
import * as React from 'react'; import { useState } from 'react'; import KeymapService, { KeymapItem } from '@joplin/lib/services/KeymapService'; import { ShortcutRecorder } from './ShortcutRecorder'; import getLabel from './utils/getLabel'; import useKeymap from './utils/useKeymap'; import useCommandStatus from './ut...
// metadata export const version = "0.8.10" export const title = "Contract that Creates other Contracts" export const description = "Learn how to create new contracts from inside of a contract with Solidity" const html = `<p>Contracts can be created by other contracts using the <code>new</code> keyword. Since 0.8.0,...
/** * @license * Copyright Google LLC 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 { ComponentHarness, ComponentHarnessConstructor, HarnessPredicate, parallel } from '@angular/cdk/testi...
export declare const EXPANSION_PANEL_ANIMATION_TIMING = "225ms cubic-bezier(0.4,0.0,0.2,1)"; export declare const MAT_ACCORDION: InjectionToken<MatAccordionBase>; export declare const MAT_EXPANSION_PANEL_DEFAULT_OPTIONS: InjectionToken<MatExpansionPanelDefaultOptions>; export declare class MatAccordion extends CdkAc...
import { getChildNode } from "../utils/utils"; import { MoveParser } from "../moves/Moves"; import { getStatsTable } from "../stats/Stats"; import { TOutput } from "../main"; function getTypes(element: Element) { const { children: { 0: firstChild } } = element; const childTag = firstChild.tagName === "A" ? "...
import * as React from 'react' import { FRIENDLY_MESSAGES } from 'oa-shared' import Flex from 'src/components/Flex' import Heading from 'src/components/Heading' import styled from 'styled-components' import theme from 'src/themes/styled.theme' import { Button } from 'src/components/Button' import Text from 'src/compone...
<gh_stars>0 import { createAction } from 'redux-act' import { remoteFunction } from '../../util/webextensionRPC' import analytics from '../../analytics' import { Thunk } from '../../options/types' import * as selectors from './selectors' import * as constants from './constants' import { SearchResult } from '../types' ...
/** * A module containing a metronome based on Tone.js. The timing is done * using the underlying WebAudio clock, so it is accurate, and the metronome * fires callbacks for every audible click, quarter and bar marks. * * @license * Copyright 2012 Google Inc. All Rights Reserved. * Licensed under the Apache Licen...
<filename>src/utils/poet_hash.ts<gh_stars>0 /** * 根据概率分布随机抽取一项,返回索引 * @param p 概率分布 */ export function randomChoice(p: number[]): number { const r = Math.random() let ptr = 0 for (let i = 0; i < p.length - 1; i++) { if (r >= ptr && r < ptr + p[i]) { return i } else { ptr += p[i] } } ...
import { AbiItem } from 'web3-utils' import GnosisSafeSol from '@gnosis.pm/safe-contracts/build/contracts/GnosisSafe.json' import ProxyFactorySol from '@gnosis.pm/safe-contracts/build/contracts/GnosisSafeProxyFactory.json' import Web3 from 'web3' import { HARMONY_NETWORK } from 'src/config/networks/network.d' import {...
import { AnyControlInstance, Control, Device } from "./Device"; import { CreateEvent, Event } from "./Events.js"; import { Reactive } from "./Reactive.js"; import { SubscribeablePool } from "./Subscription.js"; import { CreateActiveUserPool, User } from "./User.js"; import { API, Uncertain } from './Api'; import { LogU...
/** * @license * Copyright 2019 Google LLC. 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 ...
import * as React from 'react'; import { Checkbox, Label, Input, Dropdown, Placeholder, PlaceholderParagraph, Button } from '@/index'; import { updateSchemaFunction, ColumnSchema, Schema, Data, onSelectAllFunction, GridProps, updateFilterListFunction, } from '../grid/Grid'; import { hasSchema, getPluralSu...
import * as React from "react"; import produce from "immer"; import gql from "graphql-tag"; import { RunMetadataProviderMessageFragment } from "./types/RunMetadataProviderMessageFragment"; import { TempMetadataEntryFragment } from "./types/TempMetadataEntryFragment"; export enum IStepState { WAITING = "waiting", ...
import { getLanguageFromKey, getParsedLanguageFromText, getTextResourceByKey } from 'altinn-shared/utils'; import { ILayoutComponent, ILayoutGroup, ISelectionComponentProps } from 'src/features/form/layout'; import { IDataModelBindings, IComponentValidations, ITextResource, ITextResourceBindings, IOption, IOptions, IVa...
import { Address, BigDecimal, BigInt, ethereum, log, } from "@graphprotocol/graph-ts"; import { Borrow, Deposit, Liquidate, Repay, Withdraw, } from "../../generated/schema"; import { ACTIVE_POOL, BIGINT_ZERO, STABILITY_POOL, ZERO_ADDRESS, } from "../utils/constants"; import { getOrCreateLi...
<reponame>Fleischers/msb<gh_stars>0 import {EventEmitter} from "events"; export let createChannelManager: msb.createChannelManager; export let channelManager: msb.channelManager; export let configure: msb.configure; export let messageFactory: msb.messageFactory; export let Collector: msb.Collector; export let Requeste...
import * as React from 'react'; import IconCaretDown = require('react-icons/lib/fa/caret-down'); import IconCaretUp = require('react-icons/lib/fa/caret-up'); import { compose } from 'recompose'; import { DropDownButtonProps } from 'rendition'; import styled, { StyledFunction, withTheme } from 'styled-components'; impor...
/** * Copyright (c) 2019-2020 SUSE LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publ...
/* * Tencent is pleased to support the open source community by making * Hippy available. * * Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. * 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. ...
<gh_stars>10-100 import { HEAD_COUNT_KEY, HEAD_ATTRS_KEY, SELF_CLOSING_TAGS } from "./constants" import { createElement } from "./create-element" import { stringifyAttrs } from "./stringify-attrs" import { isEqualNode } from "./utils" export type HeadElementAttrs = Record<string, any> export type HeadElement = { type...
import {DatasetIndex} from './datasets' type softwareAvailability = "open" | "partial" | "closed" interface IImagingMetadata { id: string institution: string gridSpacing: UnitfulVector dimensions: UnitfulVector startDate: string duration: string biasVoltage: Number scanRate: Number current: Number ...
<filename>sourcecode/src/app/site/lists/state/list-state.ts<gh_stars>0 import {Action, Selector, State, StateContext, Store} from '@ngxs/store'; import { AttachItem, CreateOrUpdateList, DeleteList, DetachItem, ReloadList, ReorderList, ResetState, UpdateDetails } from './list-actions'; import...
/* MIT License Copyright 2021 <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, copy, modify, merge, publish, distribute...
<gh_stars>1-10 import { randInt, roll } from 'e'; import { Bank } from '../..'; import { ItemBank, OpenableOpenOptions } from '../../meta/types'; import LootTable from '../../structures/LootTable'; import SimpleOpenable from '../../structures/SimpleOpenable'; const LowSeedPackTable = new LootTable() .add('Potato see...
import EventDispatcher from "lib/temple/event/EventDispatcher"; import IDebuggable from "lib/temple/core/IDebuggable"; import FacebookResult from "lib/facebook/FacebookResult"; import CommonEvent from "lib/temple/event/CommonEvent"; import FacebookEvent from "lib/facebook/FacebookEvent"; import Log from "../temple/util...
import React, { useEffect, useState } from "react"; import { FormattedMessage } from "react-intl"; import styled from "styled-components"; import { useFormik } from "formik"; import * as yup from "yup"; import { usePolkadotJS } from "@polkadot/api-provider"; import Button from "../../components/Button"; import Input fr...
"use strict"; import Animation, {Frame} from './animation'; import { support } from './support-test'; import { bitsToNum, byteToBitArr, makeWordArray, ParseCallback, ParseOptions, readByte, readString, readWord, subBuffer } from "./parse_base"; /** * @param {ArrayBuffer} buffer * @param {ParseOpti...
import { select, Selection } from 'd3-selection'; import { axisTickFindByIndex } from '../axis'; import { arrayFlat, debug, nodeToString, rectRound, siblingIndex } from '../core'; import { chartCartesian, chartCartesianUpdateAxes, chartCartesianData, ChartCartesian, } from '../core/chart-cartesian'; import { ...
'use strict'; /*! Based on https://github.com/ddo/oauth-1.0a Licensed under MIT License. Copyright (c) 2014 Ddo */ import * as crypto from 'crypto'; import { StringFormats } from './StringFormats'; export type OAuth1SignatureMethod = 'PLAINTEXT' | 'HMAC-SHA1'; export interface OAuth1Request { method: string; uri: ...
import { posix as path } from "path"; import { ChildProcess } from "child_process"; import shell from "shelljs"; import fetch, { RequestInit } from "node-fetch"; import Config from "../config/Config.js"; import util from "../util/Util.js"; import Logger, { LogLevel } from "../cli/Logger.js"; import BufferedTerminal fr...
<reponame>VincentWijshoff/BachelorTest import ChatClient from '../app/client.js'; import ChatServer from '../app/server.js'; import * as debugModule from 'debug'; const debug = debugModule('test:connection'); import Bag from '../bag'; import { writeFileSync } from 'fs'; import { generateKeyPairSync } from 'crypto'; imp...
import * as React from 'react'; import { SearchBox, Link } from 'office-ui-fabric-react/lib'; import { ApiService } from '../services/ApiService' import { DocumentApiService, DocumentService } from '../services' import {Loading} from './Loading'; import { DetailsList, DetailsListLayoutMode, IColumn, Sel...
import {XtallatX, deconstruct, intersection} from './xtal-latx.js'; import {hydrate} from 'trans-render/hydrate.js'; export {XtallatX, camelToLisp, de, intersection, define, lispToCamel, mergeProps, p, symbolize} from './xtal-latx.js'; import {transform} from 'trans-render/transform.js'; import { SelectiveUpdate, P...
<gh_stars>0 import { HomeRetaliationCardViewModelMapper } from './retaliation/HomeRetaliationCardViewModelMapper' import { Retaliation } from './../../core/entities/Retaliation' import { News } from '../../core/entities/News' import { Poll } from '../../core/entities/Poll' import { Profile } from '../../core/entities/P...
import debugModule from "debug"; const debug = debugModule("codec:abi-data:encode"); import * as Format from "@truffle/codec/format"; import * as Conversion from "@truffle/codec/conversion"; import * as Basic from "@truffle/codec/basic"; import * as Bytes from "@truffle/codec/bytes"; import * as Evm from "@truffle/cod...
<gh_stars>10-100 import { useEffect, useState } from "react"; import { ensure } from "@mendix/pluggable-widgets-tools"; import { Big } from "big.js"; import { ObjectItem } from "mendix"; import { BarSeriesType } from "../../typings/BarChartProps"; import { BarChartSeries, BarDataPoints } from "../components/BarChart";...
<filename>packages/eos-transit-whalevault-provider/src/index.ts import { Api, ApiInterfaces, RpcInterfaces, JsonRpc } from 'eosjs'; import { WalletProvider, NetworkConfig, WalletAuth, DiscoveryOptions } from 'eos-transit'; declare global { interface Window { whalevault: any; } } window.whalevault = window....
<gh_stars>10-100 import { Color } from "./Color"; import { ILabColorPoint, LABColor } from "./LABColor"; import { SRGBColor } from "./SRGBColor"; /** * Palette settings. */ export interface IPaletteSettings { lightness: number; lightnessVariation: number; minGrayness: number; maxGrayness: number; ...
<reponame>steedos/core import { Event, URI, IDisposable, MaybeNull, MaybePromise } from '@opensumi/ide-core-common'; import { IEditorGroup } from '@opensumi/ide-editor'; import { ITheme } from '@opensumi/ide-theme'; export const EDITOR_WEBVIEW_SCHEME = 'editor-webview'; /** * webview Panel实际上是一个iframe中的内容 * 叫webview...
// TODO: organize better? import { bundle } from '../tests/utils'; import puppeteer from 'puppeteer'; import { performance } from 'perf_hooks'; import * as path from 'path'; import * as fs from 'fs/promises'; // TODO: organize better (use external math package?) import * as math from '../packages/mui-plus/src/utils/mat...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may no...
import findUp from 'find-up' import fs from 'fs' import path from 'path' import { promisify } from 'util' import resolve from 'next/dist/compiled/resolve/index.js' import { execOnce } from '../../next-server/lib/utils' const readdir = promisify(fs.readdir) export type PluginMetaData = { requiredEnv: string[] midd...
<gh_stars>0 import { HttpClient } from '@angular/common/http'; import { Component, OnInit, Input, Output, EventEmitter, HostListener } from '@angular/core'; import { LcuMarkdownDocsConfig, LcuMarkdownDocChangeEvent, LcuMarkdownDoc } from '../../models/docs-config'; import { isString } from 'util'; imp...
import { camelCase, Class, Constructable, IContainer, IRegistry, IResourceDefinition, IResourceKind, IResourceType, Registration, Writable } from '@aurelia/kernel'; import { AttributeInstruction, BindingMode, BindingType, CallBindingInstruction, ForOfStatement, FromViewBindingInstruction...
<filename>lib/components/mse/index.ts import registerDebug from 'debug' import { Sink } from '../component' import { Writable, Readable } from 'stream' import { MessageType, Message } from '../message' import { packetType, BYE } from '../../utils/protocols/rtcp' import { MediaTrack } from '../../utils/protocols/isom' ...
import {Future, TaqError, SanitizedAbsPath, SanitizedUrl} from './taqueria-utils-types.ts' import memoizy from "https://deno.land/x/memoizy@1.0.0/fp.ts" import {pipe} from "https://deno.land/x/fun@v1.0.0/fns.ts" import {chain, attemptP, map, Future as Fluture, reject, resolve, mapRej} from 'https://cdn.jsdelivr.net/gh/...
import React, { useState, memo, useEffect, useMemo } from 'react' import { Link, Box, Stack, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, FormControl, FormLabel, Input, FormErrorMessage, FormHelperText, ModalFooter, Button, useDisclosure, Text, } from ...
<reponame>rgfoley/actor-helpers<gh_stars>0 /** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS...
import { Address, Hash, Quantity, bnToQuantity, HexData, bufferToHexData, bufferToAddress, numberToQuantity, quantityToNumber } from './model' import { Tag, RpcTransactionRequest, FilterRequest, RpcLogObject, RpcTransactionResponse, RpcBlockResponse, RpcTransactionReceipt, toFakeTransaction, RpcRichBl...
import {EventAggregator} from 'aurelia-event-aggregator'; import {inject} from 'aurelia-framework'; import {OpenIdConnect} from 'aurelia-open-id-connect'; import {Router} from 'aurelia-router'; import {User} from 'oidc-client'; import {IIdentity} from '@essential-projects/iam_contracts'; import {IAuthenticationServic...
import { Reader, Writer } from "protobufjs/minimal"; import { Any } from "../../../../google/protobuf/any"; export declare const protobufPackage = "ibc.core.client.v1"; /** MsgCreateClient defines a message to create an IBC client */ export interface MsgCreateClient { /** light client state */ clientState: Any ...
import { Component, OnInit, Input } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Project } from '../../../classes/project'; import { UserService } from '../../../services/user.service'; import { ProjectService } from '../../../services/project.service'; import { Observable, o...
<gh_stars>10-100 import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import { initDashboard, InitDashboardArgs } from './initDashboard'; import { DashboardRouteInfo } from 'app/types'; import { getBackendSrv } from 'app/core/services/backend_srv'; import { dashboardInitCompleted, dashboa...
<gh_stars>100-1000 import { domSearch, domSearchAll, sleep, useUnsafeWindow } from '../../core/utils'; import { logger, message } from '../../main'; import { useSettings, useContext } from '../../store'; /** * 切换下一个任务 * * @param removeTask 是否标记为已完成 */ export function nextTask(removeTask: boolean = true) {...
import { useEffect, useRef, useMemo, FC } from 'react'; import { createPortal } from 'react-dom'; import cx from 'classnames'; // Downshift; import { useSelect, useMultipleSelection } from 'downshift'; import Toggle from 'components/forms/select/toggle'; import Menu from 'components/forms/select/menu'; import Checkbox...
<reponame>monofuel/badMars import Context from '../context'; import GamePlanet from '../map/map'; import ChunkLayer from '../map/chunkLayer'; import GameUser from '../user'; import GameSession from '../user/session'; import UnitStat from '../unit/unitStat'; import { SyncEvent } from 'ts-events'; import { WrappedError }...
<filename>packages/runtime/utils/src/domApis.ts<gh_stars>1-10 import { makeMap } from './utils'; export interface Text { content: string; type: 'text' | 'comment'; } export interface Node { key?: string; type: 'element'; tagName: string; children: Array<Node | Text>; attributes: Array<Record<string, str...
import { Fragment } from "react"; import { Disclosure, Menu, Transition } from "@headlessui/react"; import { BellIcon, MenuIcon, XIcon } from "@heroicons/react/outline"; import Link from "next/link"; import React from "react"; import electron from "electron"; import News from "./news"; import About from "./About"; impo...
import React from 'react'; import { Link as ReactRouterLink, useHistory, } from 'react-router-dom'; import { card, expansion, expansionDetailed, pokemon, } from '../types'; import { getExpansion, } from '../utils/api'; import { formatCardName, formatExpansionName, getDynamicCardSearchPlaceholder, } ...
<gh_stars>0 import { getTypeHintFromType } from "../../util/get-type-hint-from-type"; import { Program, TypeChecker } from "typescript"; import { AnalyzerResult } from "../../analyze/types/analyzer-result"; import { ComponentDefinition } from "../../analyze/types/component-definition"; import { ComponentEvent } from "....
import React, { cloneElement, useCallback, useRef, KeyboardEvent, useState, FC, ReactNode, MutableRefObject, RefObject, createRef, } from 'react'; import styles from './tabs.module.css'; export interface TabListProps { size?: 'small' | 'large' | 'xlarge' | ''; disabledOptions?: number[]; isDi...
<reponame>showbie-socrative/mathlive<gh_stars>1-10 import { isArray } from '../common/types'; import { hidePopover, showPopoverWithLatex } from './popover'; // @revisit import { suggest } from '../core/definitions'; import type { MathfieldPrivate } from './mathfield-class'; import { selectionIsCollapsed } from './mode...