text
stringlengths
3.08k
15.5k
import * as fs from "fs" import * as util from "util" import * as _mkdirp from "mkdirp" import * as _rimraf from "rimraf" import * as pngjs from "pngjs" import shellExecute from "./shell-execute" import * as types from "./types" import * as paths from "./paths" import * as utilities from "./utilities" import * as png f...
import * as parseSync from 'csv-parse/lib/sync' export interface Options { pretty?: boolean csvComment?: string | undefined csvDelimiter?: string | undefined csvQuote?: string | undefined csvEscape?: string | undefined tableDelimiter?: string cellPadding?: string firstLineMarker?: string delimiterOnB...
<gh_stars>0 import * as seleniumStandalone from "selenium-standalone"; import {_, Q, Path, Request, child_process, Url} from "./externals"; import {Helpers} from "./Helpers/Helpers"; export declare type WebDriverConfig = seleniumStandalone.InstallOpts & seleniumStandalone.StartOpts; export enum WebDriverType { S...
/* Copyright (c) 2021, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the followin...
<gh_stars>1-10 import fs from 'fs'; import path from 'path'; import xml2json from 'xml-js'; import { ScriptLine } from '../import/hearThis/hearThisImport'; import { fileFilters } from '../../src/App/constants'; import { DEFAULT_HEARTHIS_XML_FILE } from './hear-this'; export function isDirectory(source: string): boolea...
/* * Copyright 2019 gRPC 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 agreed t...
<filename>client/src/extension.ts /* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * ------------------------------...
<filename>packages/game/src/game/stores/phaser.ts import { observable, action, computed, when, autorun } from 'mobx'; import * as Phaser from 'phaser-ce'; import GameStore from 'game/stores/game'; import UiStore from 'game/stores/ui'; import TerritoryView from 'game/phaser/territory'; import EdgeView from 'game/phaser...
import { NativeModules, Platform } from 'react-native' import type { MapwizeApi, ApiFilter, Venue, DirectionPoint, DirectionMode, Placelist, SearchParams, MapwizeConfiguration, } from './types' const { RNMWZApi } = NativeModules let count: number = 0 export const createApi = ( mapwizeConfiguration:...
<reponame>positive-js/mosaic-builds import { ComponentType, Portal } from '@angular/cdk/portal'; import { AfterContentInit, AfterViewChecked, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; import { DateAdapter, McDateFormats } from '@ptsecurity/cdk/datetime'; import { Subje...
/** * @module develop-parse * * Module for parsing of Typescript configuration definitions * during development of a package using Configa. */ import * as typedoc from 'typedoc' import json5 from 'json5' import { Application, log, Option, Validator } from './common' import { validateDefault } from './develop-sche...
import type { NextPage, GetStaticPaths, GetStaticProps } from "next"; import { CardRow, Layout, Section, SectionContent } from "components/layout"; import { Heading1 } from "components/typography"; import AboutProject from "components/project/about"; import ProjectCard from "components/project/card"; import ContributeB...
import clsx from 'clsx'; import PropTypes from 'prop-types'; import React from 'react'; import { env } from '@xl-vision/utils'; import { useConstantFn } from '@xl-vision/hooks'; import Ripple, { RippleRef } from '../Ripple'; import { styled } from '../styles'; import { useTheme } from '../ThemeProvider'; export type B...
import { faSearch } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import * as Either from "fp-ts/lib/Either"; import { pipe } from "fp-ts/lib/function"; import * as t from "io-ts"; import { PathReporter } from "io-ts/lib/PathReporter"; import NProgress from ...
import BoxtingButton from '@/components/buttons/boxting_button'; import { FormControl, FormLabel, Box, Input, useToast, Textarea, Select, FormErrorMessage, } from '@chakra-ui/core'; import { ButtonType } from '@/components/buttons/utils'; import React, { ChangeEvent, useState } from 'rea...
import {Component, Input, OnInit} from '@angular/core'; import {AjaxService} from "./net"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import cloneDeep from 'lodash/cloneDeep' const template = ` <div class="vfi-modal"> <div class="close-wrapper"> <button class="close-icon" (click)="activeModal.di...
import { isAsyncIterable } from "../_internal/utils"; import { Reject, Resolve } from "../types/Utils"; export class Concurrent { length: number; constructor(length: number) { this.length = length; } static of(length: number) { return new Concurrent(length); } } export const isConcurrent = (concur...
import { Injectable } from '@angular/core'; import { Store } from '@ngrx/store'; import 'rxjs/add/operator/filter'; import 'rxjs/add/operator/first'; import * as KudosPollDefinition from '../../../../build/contracts/KudosPoll.json'; import { SmartContract } from './smart-contract.abstract'; import { Web3Service, Conn...
<reponame>weBuilt/asterios-launcher-launcher // This file is required by the index.html file and will // be executed in the renderer process for that window. // No Node.js APIs are available in this process unless // nodeIntegration is set to true in webPreferences. // Use preload.js to selectively enable features // n...
<reponame>rainbowgardenscollectivedev/chronos<filename>src/web-extensions/tabs/types.d.ts export interface Tab { /** The ID of the tab. Tab IDs are unique within a browser session. */ id?: number; /** The zero-based index of the tab within its window. */ index: number; /** The ID of the window the tab is cont...
import { IProductionCompany, INetwork } from "../core/interface/company"; import { ISeries, ISeriesDetails, ISeason } from "../core/interface/tv"; import { IMember } from "../core/interface/credits"; import { IGenre } from "../core/interface/info"; import { Compone...
<reponame>KshamaG/vscode-ibmcloud-schematics<gh_stars>1-10 /** * IBM Cloud Schematics * (C) Copyright IBM Corp. 2021 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...
<filename>src/app/shared/rest-api.service.ts import { Injectable } from '@angular/core'; import { Observable, forkJoin } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { map } from 'rxjs/operators'; import { NewsFeed, Source, SourceType } from './models/news-feed.model'; import { DailyWeather } ...
import { html } from 'uhtml' // eslint-disable-next-line no-unused-vars import { ChatClient, PrivmsgMessage, UsernoticeMessage, ClearmsgMessage, ClearchatMessage } from 'dank-twitch-irc' import Random from './random' // This is a "Proof of Concept". const urlParams = new URLSearchParams(window.location.search) cons...
<filename>testing/lib/lib.ts import {signInUser} from "./cognito"; import fetch from 'node-fetch'; import {users} from "./fixtures" export const testURL = process.env.TEST_URL || 'http://localhost:3000/dev/' // For testing purposes, this wil generate a JWT with the user's info from our database // To avoid having to...
/* * Copyright (c) Microsoft * All rights reserved. * MIT License * * 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 u...
<gh_stars>1-10 import { DOCUMENT } from '@angular/common'; import { Inject, Injectable, RendererFactory2 } from '@angular/core'; import { NavigationEnd, Router, RouterEvent } from '@angular/router'; import { Subject } from 'rxjs'; import { PdsbLibConfiguration } from '../lib-configuration'; import { MessageData } from ...
<filename>test/default.test.ts /* eslint-disable no-restricted-syntax */ import Ajv from "ajv"; import fs from "fs"; import path from "path"; import { getAddress } from "@ethersproject/address"; import { schema } from "@uniswap/token-lists"; import currentPancakeswapDefaultList from "../lists/pancakeswap-default.json";...
import * as crypto from "crypto" import fs from "fs" import path from "path" import { cacheAssetPath, cacheUtilsImports, emitFile, externals, getFullPath, EXTENSIONS, getNativeImportsHelperCode, getRegExpMatchedCode, reqREG, genPreprocessOptions, genPostcssUrlOptions, customRequire } from '../ut...
import invariant from 'tiny-invariant'; import { v5 as uuid } from 'uuid'; import { rslError } from '../rslError'; import { SDKCheckLogin, SDKGenerateUser, SDKImplementation, SDKLoader, SDKLogin, SDKLogout, } from '../types'; import { getQueryStringValue } from '../utils'; const GITHUB_API = 'https://api.g...
import React, { useState, useContext, Fragment } from "react"; import { Close32 } from "@carbon/icons-react"; import { useLocation } from "react-router-dom"; import { Form, TextInput, Dropdown } from "carbon-components-react"; import { ComponentProps, InputTextComponent } from "../Components"; import { NodeContext } fr...
import * as _ from 'underscore'; import { Channels, Integrations } from '../../../db/models'; import { CONVERSATION_STATUSES } from '../../../db/models/definitions/constants'; import { fixDate } from '../../utils'; interface IIn { $in: string[]; } interface IExists { $exists: boolean; } export inter...
<reponame>jilles-sg/rx-player /** * Copyright 2015 CANAL+ Group * * 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...
<reponame>Dimas625/tessera import { extend, logger, render_template, events } from '../../util' import * as core from '../../core' import Summation from './summation' import Model from '../model' import * as app from '../../app/app' import * as charts from '../../charts/core' import * as graphite from '../../data/graph...
<gh_stars>100-1000 export interface AggrCalculationError extends Error { level? : number; } export interface AggrCalculationOptions { maxLevel?: number; resultObtained?(result?: any, level?: number); errorOccurred?(error:AggrCalculationError); } export interface AggregatesCalculator { getAggrCo...
<gh_stars>1-10 import {Attributes, Not, System, World, Entity} from 'ecsy'; import {Position, Player, PlayerRole} from 'lancer-shared/lib/components'; import * as PIXI from 'pixi.js'; import {getLoader} from './resources'; import {Sprite} from './sprite'; import {SpriteResources} from './sprite_resources'; import {Rend...
<gh_stars>0 import cheerio from "cheerio"; import delay from "delay"; import url from "url"; import tough from "tough-cookie"; const clearenceCookies = {}; export function axiosCloudflare(axios) { function isCloudflareResponse(response) { if ( typeof response.headers["cf-ray"] !== "undefined" && type...
// package: index.ask.rpc // file: index/ask/rpc/rpc.proto import * as jspb from "google-protobuf"; export class Query extends jspb.Message { getMaxPrice(): number; setMaxPrice(value: number): void; getPieceSize(): number; setPieceSize(value: number): void; getLimit(): number; setLimit(value: number): v...
// import { makeSortDemoData, randArrayOfNumbers } from './sortUtils'; import { fix, makeSortDemoData, randArrayOfNumbers } from '../sortUtils'; import { ISorter, ISortState, MakeSortDataFunc } from '../typedefs'; export function* mergeSort(unsortedArray: number[], makeSortData: MakeSortDataFunc): Iterator<ISortState>...
import { BadRequestException, Inject, Injectable } from '@nestjs/common'; import { Response } from 'express'; import { User } from 'src/user/entities/user.entity'; import { DeepPartial, Repository } from 'typeorm'; import * as ytdl from 'ytdl-core'; import * as contentDisposition from 'content-disposition'; import { In...
import { useActions, useValues } from 'kea' import React, { useMemo } from 'react' import { insightLogic } from 'scenes/insights/insightLogic' import { funnelLogic } from './funnelLogic' import './FunnelBarChart.scss' import { ChartParams, FunnelStepWithConversionMetrics } from '~/types' import { LemonRow } from 'lib/c...
<reponame>kedevked/quickdraw import { createCanvas, Canvas, ImageData } from 'canvas' interface config { vectorImages: number[][][][]; side?: number; lineDiameter?: number; padding?: number; bgColor?: number[]; fgColor?: number[]; resizeSize?: number; saveImage?: boolean; prefix?: s...
// Based on https://github.com/thomcc/pcg-random // see also http://www.pcg-random.org/ // multiply two 64 bit numbers (given in parts), and store the result in `out`. function mul64_( out: Int32Array, aHi: number, aLo: number, bHi: number, bLo: number ) { var c1 = ((aLo >>> 16) * (bLo & 0xffff)) >>> 0 v...
<gh_stars>0 import { Group } from '@shared/models'; import { type, ActionWithPayload } from '@shared/utility'; export const ActionTypes = { // Groups list SORT_ITEMS: type('[Groups] Sort groups'), SORT_ITEMS_SUCCESS: type('[Groups] Sort groups success'), SORT_ITEMS_FAIL: ...
import { Component, Input , OnDestroy} from '@angular/core'; import { NotificationService } from './../services/notification.service'; import {MatSnackBar} from '@angular/material'; // Custom Daily Rates type class DailyRates { avgDailyCostRate:number; avgDailyRevenueRate:number; } const totalHrsInDay:number...
import React, { useState, useMemo, useEffect } from 'react' import { StyleSheet, Text, View, TouchableOpacity } from 'react-native' import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view' import HeaderTitle from '../../components/HeaderTitle' import { inject, observer } from 'mobx-react' impor...
import fs from 'fs' import path from 'path' import acceptLanguage from 'accept-language' import _debug from 'debug' import Koa, { Middleware } from 'koa' import proxy from 'koa-better-http-proxy' import compose from 'koa-compose' import compress from 'koa-compress' import logger from 'koa-logger' import session from '...
<reponame>GeoffreyKarnbach/tgi-pages export interface ParsedInstruction { aMux: boolean; mbr: boolean; mar: boolean; rdWr: ReadWrite; ms: boolean; enS: boolean; cond: Condition; alu: Alu; sh: Shift; sBus: number; bBus: number; aBus: number; adr: number; originalInstruction: string; } export...
import { child$, VirtualDOM } from "@youwol/flux-view"; import { Backend } from "../../backend/router"; import { statusClassesDict } from "./utils"; import { LogsView } from "../../logs-view"; import { PackagesState } from "./packages-view"; import { ExpandableGroup } from "@youwol/fv-group"; import { map, mergeMap } f...
import * as React from "react"; import { Checkbox, TableRow, TableCell, Table, TableHead, TableBody, Grid } from "@material-ui/core"; import * as Utils from "../../lib/Core/Utils"; import { FlashCard, FlashCardId } from "../../FlashCard"; import { Pitch } from "../../lib/TheoryLib/Pitch"; import { FlashCardStudySessio...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT-0 * * 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...
import Vue from 'vue'; import Anchor from '@/components/common/anchor/anchor.vue'; import GlobalmenuAnchor from './globalmenu-anchor.vue'; import TreeMenu from '@/components/common/tree-node/tree-menu.vue'; //import clickOutside from 'directives/click-outside'; import { GlobalmenuAnchorVue } from './globalmenu-anchor'...
<reponame>dlyz/md-link-checker import * as vscode from 'vscode'; import { IGrammar, IToken } from 'vscode-textmate'; import { Slugifier, Slug } from './slugify'; import { GrammarProvider } from './textmate/GrammarProvider'; import { getEmbeddedGrammarDescriptor, markdownScopeName } from './textmate/MarkdownGrammar'; e...
<gh_stars>1-10 /* * @Author: mikey.zhaopeng * @Date: 2018-07-05 00:18:32 * @Last Modified by: <NAME> * @Last Modified time: 2018-09-27 20:12:20 */ import * as antlr4ts from "antlr4ts"; import * as path from "path"; import * as _ from "lodash"; import { JapeParserVisitor } from "./JapeParserVisitor"; import { M...
<gh_stars>100-1000 /* basic math */ export function mean(series: Array<number>) { let sum = 0; for (let i = 0; i < series.length; i++) { sum += series[i]; } return sum / series.length; } export function sd(series: Array<number>) { let E = mean(series); let E2 = mean(pointwise((x: number) => x * x, ser...
import fs from 'fs'; import path from 'path'; import { HmrContext, IndexHtmlTransformContext, ModuleNode, Plugin, UserConfig } from 'vite'; // @ts-ignore import * as relative from 'require-relative'; import { handleHotUpdate } from './handleHotUpdate'; import { log } from './utils/log'; import { compileSvelte, getCom...
import { GlobPattern, GlobPatternNormalized, GlobPatternWithOptionalRoot, GlobPatternWithRoot, PathInterface, } from './GlobMatcherTypes'; import * as Path from 'path'; const { posix } = Path; const relRegExp = /^\.[\\/]/; /** * This function tries its best to determine if `fileOrGlob` is a path ...
<reponame>fal-works/p5-extension import p5 from "p5"; import * as CCC from "@fal-works/creative-coding-core"; import { RectangleRegion, FitBox, Vector2D, returnVoid } from "./ccc"; import { p } from "./shared"; import { drawScaled } from "./draw/transform"; import { getWindowSize } from "./misc/window"; import { Sketc...
<reponame>mobile-command-center/Starport import TelecomFormData from './TelecomFormData'; import { getBankNameByBankCode, getCardNameByCardCode, getGiftCardNameByCode } from '../utils/FinancialUtil'; export default class TelecomDTO { private formData: TelecomFormData; constructor(formData: TelecomFormData) { ...
<gh_stars>1-10 import * as _log from './log'; import { combinePaths, normalizePath } from './ts-path-utils'; import * as crypto from 'crypto'; import * as fs from 'fs'; import * as path from 'path'; import * as TSType from 'typescript'; export interface ScriptInfo { version: string; snapshot: TSType.IScriptSnapsho...
<gh_stars>0 import { ChatBubble } from '../src' import { Config } from '../src/types' import 'whatwg-fetch' // polyfill for jest const USER_AGENT = `botsquad-sdk-testsuite/0.0` declare global { namespace jest { interface Matchers<R> { toError(value: RegExp): R } } } Object.assign(expect).extend({ ...
<reponame>concord-consortium/cloud-file-manager // TODO: This file was created by bulk-decaffeinate. // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full ...
<filename>providers/reminders/reminder.ts import {useReducer, Reducer, useEffect, useCallback} from 'react'; import PushNotification from 'react-native-push-notification'; import {TFunction} from 'i18next'; import { add, format, getHours, getMinutes, getSeconds, getTime, isFuture, isToday, parse, st...
<filename>scripts/fragment.ts import {appendFileSync,existsSync,unlinkSync,readFileSync} from "fs"; import {execSync,} from "child_process"; import { posix } from "path"; const args = process.argv.slice(2); // 判断 if (args.length===0) { process.exit(0); } const prettierobj = (obj:string|Object)=>{ switch (typeof...
<gh_stars>0 // // Copyright 2019 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 require...
/* eslint-disable max-classes-per-file */ /* eslint-disable no-await-in-loop */ import path from 'path'; import { DepGraph } from 'dependency-graph'; import postcss, { CssSyntaxError, Root as PostCSSRoot } from 'postcss'; // @ts-ignore import slug from 'unique-slug'; import { Root } from './Ast'; import { JazzFile, ...
<filename>index.d.ts // Type definitions for quill-blot-formatter 1.0 // Project: https://github.com/Fandom-OSS/quill-blot-formatter // Definitions by: <NAME> <https://github.com/guillaume-ro-fr> export as namespace QuillBlotFormatter; export interface OverlayOptions { // classname applied to the overlay element ...
import { renderAST } from "@roblox-ts/luau-ast"; import { RojoResolver } from "@roblox-ts/rojo-resolver"; import { PATH_SEP, pathJoin, VirtualFileSystem } from "Project/classes/VirtualFileSystem"; import { validateCompilerOptions } from "Project/functions/validateCompilerOptions"; import { getCustomPreEmitDiagnostics }...
/** * Copyright 2019 Red Hat, Inc. and others. * 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 a...
import { Injectable, ComponentFactoryResolver, ChangeDetectorRef, Provider, SkipSelf, Optional, EmbeddedViewRef, } from '@angular/core'; import { Injector, ComponentRef, ViewContainerRef, TemplateRef } from '@angular/core'; import { TemplatePortal, ComponentPortal } from '@angular/cdk/portal'; import { Ov...
<filename>feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-image/configurator-attribute-multi-selection-image.component.spec.ts import { ChangeDetectionStrategy, Component, Directive, Input, } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@a...
import _ from 'lodash'; import { Transactions, Validation } from 'multicrypto-wallet-core'; import { IAddress } from 'src/lib/model/address'; import { IChain, INotificationData } from '..'; import logger from '../../logger'; const Common = require('../../common'); const Constants = Common.Constants; const Defaults = C...
<reponame>inga-lovinde/micro-build-server "use strict"; import * as _ from "underscore"; import { createGithub, IGithub } from "./github-wrapper"; import { getStatusMessageFromRelease } from "./report-processor"; import { Settings } from "./types"; interface IRepoOptions { readonly branch: string; readonly b...
import Vue, { PropType } from 'vue' import { eventHandlers, READY_EVENT } from '../constants' const PDisplayObject = Vue.extend({ props: { events: { type: Array as PropType<string[]>, default: () => { return [] } }, shouldRender: { type: Boolean, default: true }, alpha: { type: Number, default: 1 }, ...
import { schema, required, string, number, notEmpty, array, numeric, minLength, maxLength, email, url, minNumbersInString, maxNumbersInString, } from './index' interface Product { name: string price: number description: string } type PartialProduct = Partial<Product> const productSche...
<filename>packages/web-sockets/test/plugin.spec.ts import assert from "assert"; import { Request } from "@miniflare/core"; import type { FetchEvent } from "@miniflare/core"; import { Compatibility, NoOpLog, PluginContext } from "@miniflare/shared"; import { noop, triggerPromise, useMiniflare, useServer, } from ...
<filename>lib/core/services/user-preferences.service.ts /*! * @license * Copyright 2019 Alfresco Software, Ltd. * * 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.apac...
import { forwardRef, Suspense, useImperativeHandle } from "react"; import DateFnsUtils from "@date-io/date-fns"; import { Alert } from "components/common/alert"; import AppBar from "@material-ui/core/AppBar"; import Toolbar from "@material-ui/core/Toolbar"; import Typography from "@material-ui/core/Typography"; import ...
<reponame>laquasicinque/webdev-support-bot<filename>src/v2/autorespond/thanks/threadThanks.ts import type { ButtonInteraction, Client, CommandInteraction, Message, SelectMenuInteraction, ThreadMember, } from 'discord.js'; import { MessageActionRow, MessageButton, Collection, MessageSelectMenu, } fro...
import { IconButton, IStackTokens, Label, Stack } from '@fluentui/react'; import { ArrowConfig } from 'konva/lib/shapes/Arrow'; import * as React from 'react'; import { Arrow, Group, Rect } from 'react-konva'; import icon from '../assets/marker/arrow.png'; import { CompactColorPicker } from '../CompactColorPicker'; imp...
// @ts-nocheck import {useMoralis, useWeb3ExecuteFunction} from "react-moralis"; import { useState} from "react"; import marketplaceInterface from "./interface"; import useERC20 from "../../../../../../hooks/useERC20"; import useERC721 from "../../../../../../hooks/useERC721"; const useMarketplace = (marketplaceAddres...
import * as path from "path"; import * as vscode from "vscode"; import * as which from "which"; import { downloadAndUnzip } from "./utils"; interface CrossString { windows: string; macos: string; linux: string; } // Select string based on OS function selectCrossString(crossString: CrossString): string { ...
import Button, { BtnTypes } from '@celo/react-components/components/Button' import ReviewFrame from '@celo/react-components/components/ReviewFrame' import ReviewHeader from '@celo/react-components/components/ReviewHeader' import colors from '@celo/react-components/styles/colors' import { CURRENCY_ENUM } from '@celo/uti...
<gh_stars>0 /** * To match accessibility requirement, we always provide an input in the component. * Other element will not set `tabIndex` to avoid `onBlur` sequence problem. * For focused select, we set `aria-live="polite"` to update the accessibility content. * * ref: * - keyboard: https://developer.mozilla.org...
<filename>src/types.ts export interface Config { apiKey: string; lineChannelAccessToken: string; postTime: string; timezone: string; youTubeAPIKey: string; } // eslint-disable-next-line @typescript-eslint/no-explicit-any export const isConfig = function isArgConfig(arg: any): arg is Config { const exce...
import { AdalService } from 'adal-angular4'; import * as momentNs from 'moment'; import { map, catchError } from 'rxjs/operators'; import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, NavigationExtras, Router } from '@angular/router'; import { ResourceServiceInputs, ResourceType, ResourceType...
import { Category, Font, FONT_FAMILY_DEFAULT, FontManager, Options, OPTIONS_DEFAULTS, Script, SortOption, Variant, } from "@samuelmeuli/font-manager"; import React, { KeyboardEvent, PureComponent, ReactElement } from "react"; type LoadingStatus = "loading" | "finished" | "error"; interface Props { // Requir...
<reponame>jsamr/docusaurus<gh_stars>0 /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import chalk from 'chalk'; import CopyWebpackPlugin from 'copy-webpack-plugin'; import fs fr...
<filename>www/store.ts import { counters, fields, items, StoreField, StoreFieldValue, StoreItem } from "./store.data"; import { cuid } from "./store/cuid"; import { publish } from "./services/event.service"; import { isObject } from "./common/validation/is.object"; // For performance reasons, we generate a cuid o...
<gh_stars>1-10 // Type definitions for react-sortable-tree 0.3 // Project: https://frontend-collective.github.io/react-sortable-tree // Definitions by: <NAME> <https://github.com/wouterhardeman> // <NAME> <https://github.com/jzoric> // <NAME> <https://github.com/kevinsperrine> // ...
import { defineMessages } from "react-intl"; const PAGE_DETAILS = "/PageDetail"; const SELECT_FRAMEWORKS = "/SelectFrameworks"; const SELECT_PAGES = "/SelectPages"; const AZURE_LOGIN = "/AzureLogin"; const REVIEW_AND_GENERATE = "/ReviewAndGenerate"; const NEW_PROJECT = "/"; const PROJECT_NAME_CHARACTER_LIMIT = 50; c...
import React from 'react'; import styles from './extension-tree-view.module.less'; import { isOSX, useInjectable } from '@opensumi/ide-core-browser'; import { Injector } from '@opensumi/di'; import { observer } from 'mobx-react-lite'; import { ViewState } from '@opensumi/ide-core-browser'; import { WelcomeView } from '...
<reponame>see7788/electronRouterState<gh_stars>1-10 import * as fs from 'mz/fs' import * as path from 'path' const nodeModule = require('module') // eslint-disable-line @typescript-eslint/no-var-requires const nodeRequire = (global as any).require function normalizePath (path: string): string { const cygwinPrefix ...
import { Class, Constructable, DI, IContainer, IResourceKind, IResourceType, Registration, Reporter, Writable } from '@aurelia/kernel'; import { buildTemplateDefinition, customElementBehavior, customElementKey, customElementName, ITemplateDefinition, TemplateDefinition } from '../definiti...
import React, { FC, ReactNode, ReactElement, ComponentProps, useRef, } from 'react' import classNames from 'classnames' import { useSpring, animated } from '@react-spring/web' import { NativeProps, withNativeProps } from '../../utils/native-props' import { usePropsValue } from '../../utils/use-props-value' im...
<reponame>solcrazyape/wallet-adapter<gh_stars>1-10 import { BaseSignerWalletAdapter, WalletAccountError, WalletConnectionError, WalletDisconnectedError, WalletDisconnectionError, WalletNotConnectedError, WalletPublicKeyError, WalletSignTransactionError, WalletWindowClosedError, } fro...
/* eslint-disable react-hooks/exhaustive-deps */ import React, { useEffect, useState } from "react"; //Dom import { Link } from "react-router-dom"; //Bootstrap import Button from "react-bootstrap/Button"; import Nav from "react-bootstrap/Nav"; //data import dataJSON from "../../data/neighborhoods.json"; //Redux e A...
import React, { useState, useCallback, useMemo, useEffect } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { useRouteMatch } from 'react-router-dom'; import { setDataDocNavSection, getDataDocNavSectionConfigFromStore, } from 'redux/querybookUI/action'; import { recentDataDocsS...
import * as React from 'react'; import { colorNames, sampleIsBold, ColorName } from '../defs/color-profile'; import { OneColorDisp } from './one-color'; import { ColorsTable, WholeWrapper, MainTableWrapper, ProfileListWrapper, } from './elements'; import { UserSettingsStore } from '../store'; import { withProps...
import * as Ajv from 'ajv' import * as chalk from 'chalk' import * as fs from 'fs' import * as yaml from 'js-yaml' import { importSchema } from 'graphql-import' import { GraphQLGenDefinition, Language, Models, File, } from 'graphqlgen-json-schema' import schema = require('graphqlgen-json-schema/dist/schema.jso...