text
stringlengths
3.3k
33k
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { IDisposable, IEvent, IEventProvider, ITelemetryLogger } from "@fluidframework/common-definitions"; import { Deferred, delay, TypedEventEmitter } from "@fluidframework/common-utils"; import ...
import React, { useEffect, useState, Fragment, useContext } from 'react'; import SummaryCard from '../../components/SummaryCard'; import HTTP from '../../api/fetch'; import { TableBox, TableHeader, TableWrap, PopItem, Filter, IconBox, Flex, Sub, } from './style-components'; import { Reac...
import * as React from 'react' import * as THREE from 'three' import { useGLTF, Preload, OrbitControls, PerspectiveCamera, CameraShake, TransformControls, Environment, } from '@react-three/drei' import { Canvas, createPortal, useFrame, useThree } from '@react-three/fiber' import { useCallback, useEffect, ...
<filename>src/app/tools/tracks/media-formats.ts import { AV } from './av'; import jschardet from 'jschardet'; import { EncodingDetect } from './encoding-detect'; // tslint:disable: no-bitwise export class Track { constructor(public title = '', public duration = -1, public type = '') {} getTime() { return ( Ma...
<reponame>lguzzon-scratchbook/teleport-code-generators<gh_stars>0 import * as types from '@babel/types' import * as htmlUtils from '../../shared/utils/html-utils' import { objectToObjectExpression, convertValueToLiteral } from '../../shared/utils/ast-js-utils' import { capitalize, stringToUpperCamelCase } from '../../...
import React, { useState, useContext, useEffect } from 'react'; import { Group } from '@visx/group'; import { hierarchy, Tree } from '@visx/hierarchy'; import { LinearGradient } from '@visx/gradient'; import { useTooltip, useTooltipInPortal, defaultStyles } from '@visx/tooltip'; import { localPoint } from '@visx/event'...
<reponame>IgniteUI/igniteui-live-editing-samples /* eslint-disable @angular-eslint/component-class-suffix */ /* eslint-disable @angular-eslint/component-selector */ /* eslint-disable @typescript-eslint/naming-convention */ /* eslint-disable no-shadow */ import { animate, state, style, transition, trigger } from '@angul...
<gh_stars>0 import {describe, it} from 'mocha'; import {assert} from 'chai'; import {UTF8Utils} from "utils/UTF8Utils"; /** * DOCS: * http://www.columbia.edu/~fdc/utf8/ * https://www.browserling.com/tools/utf8-encode */ let data = [ // 1-byte {'text': '\0', 'encoded': '\0'}, {'text': '\x5C', 'encoded':...
import { faEnvelope } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Button, Card, CardActions, CardContent, CardMedia, Collapse, Container, Grid, IconButton, List, ListItem, ListItemText, Typograph...
import * as React from "react"; import Markdown from "markdown-to-jsx"; import { IAuthoredQuestionWrapper, TeacherTipType, QuestionWrapperLocation } from "../types"; import CheckA from "../icons/check_A.svg"; import XA from "../icons/x_A.svg"; import ExclamationSmall from "../icons/exclamation_small_A.svg"; import Excl...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import * as FileSaver from "file-saver"; import { saveAs } from "file-saver"; import { Dataset, deepClone, Specification } from "../../core"; import { BaseStore } from "../../core/store/base"; import { CharticulatorWorker } ...
import { GetStaticPaths, GetStaticProps } from 'next'; import Link from 'next/link'; import { useRouter } from 'next/router'; import { ParsedUrlQuery } from 'querystring'; import { FormEvent, useContext, useEffect, useReducer, useRef, useState } from 'react'; import { HiCheck, HiOutlineArrowRight, HiX } from 'react-ico...
<gh_stars>0 import _ from 'lodash' import { actionChannel, all, call, fork, put, race, select, take, takeEvery, takeLatest, } from 'redux-saga/effects' import { Column, ColumnSubscription, constants, createNotificationsCache, EnhancedGitHubEvent, EnhancementCache, enhanceNotifications...
/** * Copyright 2022 Fluence Labs Limited * * 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 * as cp from 'child_process'; import * as vscode from 'vscode'; import * as fs from 'fs-extra'; import * as cheerio from 'cheerio'; import path = require('path'); import crypto = require('crypto'); import { config, doWithProgress, getRpath, readContent, setContext, escapeHtml } from '../util'; import { exten...
import {Component, Input, OnDestroy, OnInit} from '@angular/core'; import {NbCalendarRange, NbDateService, NbThemeService, NbWindowService} from '@nebular/theme'; import {SolarData} from '../../@core/data/solar'; import { DayCellComponent } from '../extra-components/calendar/day-cell/day-cell.component'; import { DateP...
import { useEffect } from 'react'; import { breakpoints } from '@guardian/source-foundations'; import { makeGuardianBrowserCAPI } from '@root/src/model/window-guardian'; import { decideTheme } from '@root/src/web/lib/decideTheme'; import { decideDisplay } from '@root/src/web/lib/decideDisplay'; import { decideDesign...
<gh_stars>100-1000 import { Collection, Feature, MapBrowserEvent } from "ol"; import PointerInteraction from "ol/interaction/Pointer"; import { Coordinate, distance } from "ol/coordinate"; import { Extent } from "ol/extent"; import { Geometry, Polygon } from "ol/geom"; import { extractIogMaskFromLabel, extractSmar...
/// <reference path="../../../node_modules/aphrodite/typings/index.d.ts" /> import React from 'react'; import {StyleSheet, css} from 'aphrodite'; import {assignIn, isEqual} from 'lodash'; import onClickOutside from 'react-onclickoutside'; import ReactTooltip from 'react-tooltip'; import state from './stores/state'; im...
<gh_stars>0 // Copyright (c) 2018-present, Cruise LLC // This source code is licensed under the Apache License, Version 2.0, // found in the LICENSE file in the root directory of this source tree. // You may not use this file except in compliance with the License. import int53 from "int53"; import { Time, RosMsgDefin...
<filename>src/beautfier/core/output.ts /*jshint node:true */ /* The MIT License (MIT) Copyright (c) 2007-2018 <NAME>, <NAME>, and contributors. 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 So...
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/restrict-template-expressions */ /* eslint-disable @typescript-eslint/restrict-plus-operands */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ ...
import { Button, Card, Page, Spacer, useModal, useTheme, useToasts, Loading, } from "@verto/ui"; import { useEffect, useState } from "react"; import { cardAnimation } from "../../utils/animations"; import { AnimatePresence, motion } from "framer-motion"; import { GraphDataConfig, GraphOptions } from ".....
'use strict' import React from 'react' import get from 'lodash.get' export type I18nPath = { [key: string]: string | string[] | I18nPath | I18nPath[] } export type SetLocale = (lang: string) => Promise<void> export type Report = (error: Error) => void export type Clear = () => void export type Get<Result> = (path: st...
<filename>packages/client-mav/projects/xmacroscope-dvl-fw-plugin/src/lib/visualizations/scatterplot-map/scatterplot-map.component.ts import { Component, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, Output, SimpleChange, SimpleChanges, ViewChild, } from '@angular/core'; import { OnGraphicSymbolChange, OnProp...
import React, { useState, FunctionComponent } from 'react'; // Misc import * as movieAPI from '../../../../api/movieAPI'; import moment from 'moment'; import * as Constants from '../../../../utils/constants'; // Interface import { Movie, MovieUpdateInput, MovieUpdateValidation } from '../../../../interfaces/movie'; i...
<reponame>clinfc/wangeditor5-for-vue3<gh_stars>1-10 import { createEditor, IDomEditor, IEditorConfig, SlateDescendant, SlateEditor, SlateTransforms, } from '@wangeditor/editor' import debounce from 'lodash.debounce' import { computed, defineComponent, h, markRaw, onBeforeUnmount, onMounted, Pr...
import React, { Fragment, useState, useCallback, useEffect } from "react"; import dayjs from 'dayjs' import OrderList from "./OrderList"; import OrderGroup from "./OrderGroup"; import OrderDetail from "./OrderDetail" import "./Orders.css"; import TopCard from "../../common/components/TopCard"; import FileUploader fro...
<reponame>sudofox/flipnote.js<filename>src/encoders/LwzCompressor.ts import { ByteArray } from '../utils/byteArray'; /* LZWEncoder.js Authors <NAME> (original Java version - <EMAIL>) <NAME> (AS3 version - bytearray.org) <NAME> (JS version - <EMAIL>) <NAME> (ES6/TS version) Acknowledgements GIFCOMPR.C...
<reponame>p6m7g8/p6-cdktf-github-p6m7g8<filename>src/generated/providers/github/repository-file.ts // https://www.terraform.io/docs/providers/github/r/repository_file // generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; // Configuration export interface ...
/* * 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 _ from 'lodash'; import React from 'react'; import { GeoJsonPropertie...
import { DataProvider, LinkElementsParams, FilterParams } from '../provider'; import { Dictionary, ClassModel, LinkType, ElementModel, LinkModel, LinkCount, Property, PropertyModel, LocalizedString, ElementIri, ElementTypeIri, LinkTypeIri, PropertyTypeIri, } from '../model'; import { CompositeResponse, ...
import { Component, HostListener } from "@angular/core"; import { OpenVidu, Publisher, Session, StreamEvent, StreamManager, Subscriber, } from "openvidu-browser"; import { RemoteService } from "../../_services/remote.service"; import { AuthenticationService } from "../../_services/authentication.service"; import { ...
<filename>packages/api/src/handlers/storage.ts import * as crypto from "crypto" import Joi from "joi" import {isNil} from "lodash" import * as stream from "stream" import {v4 as uuid} from "uuid" import * as ws from "ws" import type {SubscribeToInvoiceInvoiceUpdatedEvent} from "lightning" import type expressWs from "ex...
<filename>src/termit-ui-common/model/Term.ts import * as _ from 'lodash'; import { ASSET_CONTEXT, AssetData, default as Asset } from './Asset'; import Utils from '../util/Utils'; import WithUnmappedProperties from './WithUnmappedProperties'; import VocabularyUtils from '../util/VocabularyUtils'; import { BASE_CONTEXT...
import { Currency, CurrencySymbol } from './types'; const currencies: Record<string, CurrencySymbol> = { [Currency.ALL]: { unicode: '4c, 65, 6b', symbol: undefined }, [Currency.AFN]: { unicode: '60b', symbol: undefined }, [Currency.ARS]: { unicode: '24', symbol: undefined }, [Currency.AWG]: { unicode: '192', s...
<gh_stars>10-100 /// <reference path="../../../base/utils.ts" /> /// <reference path="../../../base/geom.ts" /> /// <reference path="../../../base/sprite.ts" /> /// <reference path="../../../base/entity.ts" /> /// <reference path="../../../base/text.ts" /> /// <reference path="../../../base/scene.ts" /> /// <reference ...
import PropTypes from "prop-types"; import * as React from "react"; import { routerShape } from "react-router"; import { Hooks } from "PluginSDK"; import { i18nMark } from "@lingui/react"; import { ProductIcons } from "@dcos/ui-kit/dist/packages/icons/dist/product-icons-enum"; import Page from "#SRC/js/components/Page...
<reponame>CybexDex/CybexWeb<gh_stars>10-100 import alt from "alt-instance"; import WalletApi from "api/WalletApi"; import WalletDb from "stores/WalletDb"; import { ChainStore } from "cybexjs"; import { Apis } from "cybexjs-ws"; import marketUtils from "common/market_utils"; import accountUtils from "common/account_util...
import { sparql } from "@tpluscode/rdf-string"; import { SELECT } from "@tpluscode/sparql-builder"; import * as ns from "./namespace"; import { Cube, CubeDimension, LookupSource, Source, View, } from "rdf-cube-view-query"; import rdf from "rdf-ext"; import { Literal, NamedNode } from "rdf-js"; import { defau...
import {Component, Input} from '@angular/core' import {PositionData, Vector3, Waypoints} from '../protocol/type-definitions' import {DomSanitizer, SafeHtml} from '@angular/platform-browser' import {clamp, maxBy, minBy} from 'lodash' /** * */ /*function normalize(path: [number, number, number][]): [number, number, n...
import React, {useState} from 'react'; import styled from 'styled-components'; import BigNumber from 'bignumber.js'; import {ESD, ESDS} from "../../constants/tokens"; import {isPos, toBaseUnitBN, toTokenUnitsBN} from '../../utils/number'; import { bond, unbondUnderlying } from '../../utils/web3'; import BalanceBlock f...
import * as EditorJS from "@editorjs/editorjs"; import SelectionUtils from "./selection"; interface IContainers { inputContainer: HTMLDivElement; titleContainer: HTMLDivElement; targetContainer: HTMLDivElement; } interface IInputs { input: HTMLInputElement; title: HTMLInputElement; target: HTMLInputEleme...
import {Component, OnInit, ViewChild} from '@angular/core'; import {Runsheet} from '../../model/runsheet.model'; import {MatDialog, MatListOption, MatSelectionList} from '@angular/material'; import {RunsheetService} from '../runsheet/runsheet.service'; import {Router} from '@angular/router'; import {TripService} from '...
<reponame>lywyue/lywyue.github.io /** * easy-markdown - a simple markdown to html parser * Copyright (c) 2017, Tianzhen(<EMAIL>). (MIT License). */ class Reader { reader: string; readerTransfer: string; parser: any; lines: Array<string>; oneLineText: string; constructor(id: string) { ...
// project: https://github.com/Truth1984/tasklanguage // author : <NAME> // MIT LICENSE import * as colors from "colors/safe"; let promisify = async (func: any, ...args: any) => await func(...args); let checkFunction = (func: any) => (typeof func == "function" ? ["INJECT", func] : func); let logCommands = (index: num...
<gh_stars>1-10 const ScriptFragment = '<script[^>]*>([\\S\\s]*?)<\/script\\s*>'; const strip = (str: string) => { return str ? str.replace(/^\s+/, '').replace(/\s+$/, '') : ''; }; const stripTags = (str: string) => { return str ? str.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?(\/)?>|<\/\w+>/gi, '') : ''; }; const s...
import { useCallback, useEffect, useMemo, useReducer, useState } from "react"; import Player from "./Player"; import Waver from "./Waver"; import { CrossCorrelation, MonoMixer, MovingAverage, ResampleFFT, RhythmExtractor2013, } from "../essentia"; interface IProps { initialData: Float32Array; setWaves: (...
<reponame>oleespe/quickfeed import { IEventData, newEvent } from "./event"; export function trimChars(str: string, char: string): string { if (str.length === 0) { return ""; } let start = 0; let end = str.length - 1; while (str[start] === char) { start++; } while (str[end] ...
import fs from 'fs' import path from 'path' import * as api from '../../lib/api' import config from '../../config' import logger from '../../lib/logger' try { fs.mkdirSync(path.join(__dirname, '../../data/word')) } catch (error) { } // 是否为管理员 const isAdmin = (name: string) => { const allowed = getOp() if (allow...
import { FsDriverLocalResolver } from '@platform/cell.fs/lib/Resolver.Local'; import { Hash, DbLookup, NAME, Path, Schema, Stream, t, deleteUndefined, Image, IndexedDb, } from '../common'; const LocalFile = Schema.File.Path.Local; /** * A filesystem driver running against the browser [IndexedDB]...
<gh_stars>0 import { CancellationToken, commands, CompletionContext, DocumentSymbol, env, Position, TextDocument, Uri, } from "vscode"; import { EOL } from "os"; import { NextObjectIdCompletionItem } from "./NextObjectIdCompletionItem"; import { LABELS, URLS } from "../lib/constants"; im...
import { green, white, bgRed, red } from 'colors/safe'; import cliProgress from 'cli-progress'; import ConsoleProxy, { IConsoleMessage, ConsoleStream } from './consoleProxy'; import fs from 'fs'; import util from 'util'; import path from 'path'; import { DateTime } from 'luxon'; import { once } from 'events'; import * ...
<reponame>ntkoopman/ts-poet<gh_stars>10-100 import { Node } from './Node'; import { emitImports, ImportsName, sameModule, Import, ImportsDefault } from './Import'; import prettier, { Options, resolveConfig } from 'prettier'; import { isPlainObject } from './is-plain-object'; import { ConditionalOutput, MaybeOutput } fr...
import * as React from "react"; import {useEffect} from "react"; import Container from '@material-ui/core/Container'; import Grid from '@material-ui/core/Grid'; //import clsx from 'clsx'; import {/*useState, useEffect, */Fragment} from "react" import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/cor...
import { ExportToExcelService } from './../../services/export-to-excel.service'; import { PdfService } from './../../services/pdf.service'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { PageandtipsService } from './../../services/pageandtips.service'; import { Router } from '@angular/router'; import {...
<gh_stars>100-1000 import { AfterViewInit, Component, ElementRef, EventEmitter, forwardRef, Input, NgModule, OnDestroy, Output, Renderer2, ViewChild } from '@angular/core'; import {CommonModule} from '@angular/common'; import {DomRenderer} from '../common/dom'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from ...
<filename>src/app/toolbar.ts import { editor } from "./editor" import { menu } from "./menu" import { scriptsData } from "./script-data" import { isMac, dlog } from "./util" import * as warningMessage from "./warning-message" import savedScripts from "./saved-scripts" import { EL } from "./dom" class ToolbarUI { el...
import React, { useEffect, useState, useCallback } from 'react'; import { FormControl, makeStyles, Paper, Select, Typography, MenuItem, InputLabel, FormControlLabel, Checkbox, Switch, Divider, Chip, Tooltip, ListItemText, IconButton, } from '@material-ui/core'; import { DateRange } from 'm...
import childProcess from "child_process"; import { promises as fs } from "fs"; import path from "path"; import { URL } from "url"; import { promisify } from "util"; import dotenv from "dotenv"; import cron from "node-cron"; import picomatch from "picomatch"; import selfSigned from "selfsigned"; import { MiniflareError ...
<reponame>timsawyer/web-prototyping-tool /* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
<reponame>ericzbeard/sagemaker-studio-emr import { Construct } from "constructs"; import * as cdk from "aws-cdk-lib"; import * as sc from "@aws-cdk/aws-servicecatalog-alpha" import { EmrStack, EmrStackProps } from "./emr-product-stack"; import * as ec2 from "aws-cdk-lib/aws-ec2" import * as iam from "aws-cdk-lib/aws-ia...
import {Events, Target} from './minivents.js' function entries<T extends Record<string, any>>(obj: T): ([Extract<keyof T, string>, any])[] { return Object.entries(obj) as any } type Arg = Record<string, string | boolean | number> function encodeUrl(data: Arg) { let res = '' for (let [k, v] of entries(dat...
<filename>src/sync/deduplicator.ts<gh_stars>10-100 import {Redis} from "ioredis"; import { v4 as uuidv4 } from "uuid"; /** * * The generic idea of the Deduplicator(tm) is very simple: while executing the job, Deduplicator raises a flag (in redis) * to inform other job runners not to run the same job ("same"-ness is...
<reponame>HackMerced/HackMercedf18<filename>src/assets/pastHackathons.ts // HackMerced I import HACKMERCED_I_CHECK_IN from "./images/checkin.jpg"; import HACKMERCED_I_FOOD from "./images/hmfood.jpg"; import HACKMERCED_I_MACHINE from "./images/machine.jpg"; import HACKMERCED_I_TEACHING from "./images/teaching.jpg"; impo...
import { Vue, VueOptions, VNode, ComputedWatch, VueHookMethod, VueStatus, VNodeDirectiveMethod, VueRefs, VueSlots } from '../type/index' import { createNodeAt, makeCreateElement } from './vnode' import patch from './web/index' import webMethods from './web/dom' import Watch from './observer/watch' imp...
import React, { Component } from 'react'; import youTubePlayer from '@simonlc/youtube-player'; function shouldUpdateVideo(prevProps: YouTubeProps, props: YouTubeProps) { // A changing video should always trigger an update if (prevProps.videoId !== props.videoId) { return true; } // Otherwise, a change in ...
import ts from "typescript"; import { CancellationToken, Diagnostic, DiagnosticSeverity, } from "vscode-languageserver"; import { Document, getNodeIfIsInStartTag, getTextInRange, isRangeInTag, mapRangeToOriginal, } from "../../../lib/documents"; import { DiagnosticsProvider } from "../../interfaces"; im...
import deepMerge from './deepMerge' import { Value } from './index' import isPositiveNumber from './isPositiveNumber' export type Options = { backgroundColor: string color: string indicator: string radius: number size: number horizontalMargin: number verticalMargin: number horizontalPadding: number v...
<filename>src/index.ts import * as Re from "react" export type Behavior<T> = [ valueKeyed: [value: T, key: Key] , unsubscribe: Unsubscribe , setParent: ($: Behavior<unknown>) => void ] type Key = string & { __isKey: true } export type Unsubscribe = () => void export type Nothing = typeof nothing export const ...
import React, { useCallback, useState } from 'react'; import { Circle, Line } from 'react-konva'; import { getPointerAngle, snapAngle } from '../coord'; import { getResizeCursor } from '../cursor'; import { ActivePortal } from '../render/Portals'; import { CENTER_DOT_RADIUS } from '../render/SceneTheme'; import { Inner...
import {ChangeDetectionStrategy, Component, Inject, OnInit, PLATFORM_ID} from '@angular/core'; import * as d3 from 'd3'; import {FrequentlyTerm} from 'app/model/FrequentlyTerm'; import {DataSetService} from '@shared/services/dataset.service'; import {Router} from '@angular/router'; import {AsyncInitialisedComponent} f...
import { Atom, atom, Getter, SetStateAction, Setter, WritableAtom } from 'jotai'; import { atomWithQuery, atomFamilyWithQuery } from 'jotai-query-toolkit'; import { networkAtom, stacksSessionAtom, userStxAddressesAtom } from '@micro-stacks/react'; import { fetchReadOnlyFunction, fetchTransaction } from 'micro-stacks/ap...
<gh_stars>10-100 /* eslint-disable prefer-const */ import * as hp from "helper-js"; import draggableHelper, { Options, Store } from "draggable-helper"; import { obj, BaseNode } from "../types"; export interface Options2 extends Options { treeClass: string; nodeClass: string; nodeOuterClass: string; placeholder...
<gh_stars>0 import * as util from 'util'; import { Reader } from './endian-reader'; import * as constants from './elf-constants'; export class Parser extends Reader { public mapFlags (value: number, map: { [ key: number ]: number | string }): {[ key: string ]: boolean } { const res: any = {}; ...
<reponame>arolson101/ofx4js<gh_stars>1-10 import * as debug from 'debug'; import { AggregateUnmarshaller, RequestEnvelope, ResponseEnvelope, FinancialInstitutionImpl, BaseFinancialInstitutionData, OFXV1Connection, KnownCode, SignonRequestMessageSet, BankingRequestMessageSet, SignonResponseMessageSet...
import { ArrowLeftOutlined, DeleteOutlined, FileOutlined, } from "@ant-design/icons"; import { FetchResult } from "@apollo/client"; import { Button, Col, Form, Input, Popconfirm, Row, Space, Spin } from "antd"; import copy from "copy-to-clipboard"; import moment from "moment"; import React, { useContext, us...
import dynamodb = require('@aws-cdk/aws-dynamodb'); import lambda = require('@aws-cdk/aws-lambda'); import { Construct } from '@aws-cdk/core'; import cdk = require('@aws-cdk/core'); import apigateway = require('@aws-cdk/aws-apigateway'); import iam = require('@aws-cdk/aws-iam') import cognito = require ('@aws-cdk/aws-...
import { ControlsContact } from './../controls/ControlsContact'; import { ModelConstants, MODIFICATION____KEY } from '../../model/ModelConstants'; import { IRegressionResult } from '../../model/regression/IRegressionResult'; import { ObjectUtil } from '../../util/ObjectUtil'; import { ChartAgeGroup } from '../chart/Cha...
// Typescript port of the uuid.js // Copyright (c) 2018 <NAME> // BSD-2-Clause License https://opensource.org/licenses/BSD-2-Clause // // uuid.js // Copyright (c) 2010-2012 <NAME> // MIT License - http://opensource.org/licenses/mit-license.php import { MapOf } from "./interfaces"; declare const window: any;...
<filename>src/tag-tree-data-provider.ts import { debounce } from "debounce"; import * as fs from "fs"; import * as vscode from "vscode"; import { setsAreEqual } from "./sets"; import { FileNode, fileNodeSort } from "./tag-tree/file-node"; import { TagNode, tagNodeSort } from "./tag-tree/tag-node"; import { TagTree } fr...
import * as cassava from "cassava"; import * as giftbitRoutes from "giftbit-cassava-routes"; import * as superagent from "superagent"; import {validateConfig} from "./validateConfig"; import {GiftcardPurchaseParams} from "./GiftcardPurchaseParams"; import {createStripeCharge, rollbackCharge, updateStripeCharge} from "....
import { SensorTimeSeries } from '../../stores/dataStructures/dataset'; import { isSameArray } from '../../stores/utils'; import { MipmapCache } from './Mipmap'; import * as d3 from 'd3'; import * as React from 'react'; // Global mipmap cache for sensor plots. const mipmapCache = new MipmapCache(); // Component Sens...
<filename>package/src/grid-state.ts import { DI, IContainer, } from '@aurelia/kernel'; import { CustomElementDefinition, ViewFactory, } from '@aurelia/runtime-html'; import { SortDirection, SortOption, } from './sorting-options.js'; export interface ExportableGridState { columns: Exportable...
import * as React from 'react'; import { Component, FunctionComponent, ReactNode } from 'react'; import { connect } from 'react-redux'; import { Redirect } from 'react-router'; import { Link } from 'react-router-dom'; import { Button, ButtonProps, Container, Icon, ModalProps, Segment, Table } from '...
<reponame>getchill-app/app<filename>src/main/main.ts<gh_stars>0 /** * This module executes inside of electron's main process. You can start * electron renderer process from here and communicate with the other processes * through IPC. */ import { app, dialog, ipcMain, BrowserWindow, BrowserWindowConstruct...
<reponame>vitarn/qcloud-apigateway import QcloudAPI from 'qcloudapi-sdk' /** * Qcloud API Gateway API * * @example * new QcloudAPIGateway({ * SecretId: 'xxx', * SecretKey: 'xxx', * Region: 'sh' * }) * .describeServicesStatus() * .then(console.log) * * { totalCount: 1, serviceStatusSet: [ { serv...
/** * Copied and modified code from https://github.com/jhonmart/python-format-js/blob/master/index.js */ /* eslint-disable */ // @ts-nocheck export const isFormatString = (input: string) => !!input.match(/({.*?})/g) export const format = (input: string, ...param) => { let count = 0, removeStr = [], placeh...
// react import { MouseEvent, useCallback, useEffect, useRef, useState } from 'react' // third-party import classNames from 'classnames' import PhotoSwipe from 'photoswipe' import PhotoSwipeUIDefault from 'photoswipe/dist/photoswipe-ui-default' import Slick from 'react-slick' // application import AppLink from './App...
/* eslint-disable camelcase */ import { Entity, PrimaryGeneratedColumn, Index, Column, CreateDateColumn, UpdateDateColumn, BeforeInsert, BeforeUpdate, ManyToOne, JoinColumn, OneToMany, Check, } from 'typeorm'; import { IsString, IsEmail, IsEnum, Length, IsEmpty, IsOptional, IsISO86...
import { keys, isUndefined, isElement, isArray } from 'underscore'; export const isDef = (value: any) => typeof value !== 'undefined'; export const hasWin = () => typeof window !== 'undefined'; export const getGlobal = () => typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : ...
import { ChangeEventHandler, FocusEvent, FormEventHandler, KeyboardEventHandler, MouseEventHandler, useCallback, useEffect, useRef, useState, VFC, } from 'react'; import { GuideName, Nullable, Status } from 'src/types'; import { useGuideAutocomplete } from 'src/hooks'; import { Button, Col, Form, In...
import {MobileDatePicker} from "@mui/lab"; import DateAdapter from "@mui/lab/AdapterMoment"; import LocalizationProvider from "@mui/lab/LocalizationProvider"; import { Autocomplete, Checkbox, createFilterOptions, FormControlLabel, FormGroup, SelectChangeEvent, Stack, TextField, Typography, } from "@mu...
<filename>src/index.ts import { Point, distanceBetween, makeSvgContainer, makeCircle, makeLine, makeText } from './svg-utils'; export interface FretCoord { string: number, fret: number } export interface Dot extends FretCoord { color?: string, } export interface Opts { id: string, width: number, hei...
import * as path from 'path'; import * as fs from 'fs'; import { DOMParser, XMLSerializer } from 'xmldom'; import { promisify } from 'util'; import { ItemBuilder, ItemBuilderContext } from '../types'; import * as ncpWithCallback from 'ncp'; import * as parse5 from 'parse5'; const ncp = promisify(ncpWithCallback); typ...
import { FC, Fragment, useEffect, useState } from "react"; import styled from "styled-components"; import { Table, TD, TH } from "./utils"; import { SelectVersions } from "./SelectVersions"; import { useVersions } from "./VersionContext"; import ParameterTable from "./ParameterTable"; import useSlider, { useBooleanSlid...
import * as React from 'react'; import InputMask from 'react-input-mask'; import { Input, Form, Radio, Select, Button, Spin } from 'antd'; import { LeftOutlined, LoadingOutlined } from '@ant-design/icons'; import { api } from 'services/api'; import { BRAZILIAN_STATES } from 'utils/brazilianStates'; import * as S fro...
import db from "quick.db"; const Tinder = new db.table("Tinder"); import { timeToMidnight, msToTime } from "./functions"; import { editMessageWithPaginatedEmbeds } from "@cataclym/discord.js-pagination-ts-nsb"; import { MessageEmbed, Message, User, Guild } from "discord.js"; // import Canvas from "jimp"; import { getMe...
import React, { useLayoutEffect, useState, useRef } from 'react'; import { Observable, fromEvent, Subscription } from 'rxjs'; import { takeUntil, map, switchMap, filter, tap } from 'rxjs/operators'; import { PassiveEvent, TimelineDOMElements } from './constants'; import { getElementDirection, getElementDirectionF...
import { Container, Divider, Heading, HStack, IconButton, Image, Spinner, Stack, Table, TableCaption, Tbody, Td, Text, Th, Thead, Tr, VStack } from "@chakra-ui/react" import { getReputationCriteria, ReputationCriteria, ReputationLevel } from "@interep/...