text
stringlengths
3.08k
15.5k
<gh_stars>1-10 import {AriaSliderThumbProps} from "@react-types/slider"; import {clamp, focusWithoutScrolling, mergeProps, useGlobalListeners} from "@react-aria/utils"; import {getSliderThumbId, sliderIds} from "./utils"; import React, {ChangeEvent, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, RefObject, u...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { HTTP, CloudEvent } from "cloudevents"; import { IncomingMessage, ServerResponse } from "http"; import { URL } from "url"; import * as utils from "./utils"; import { ConnectRequest, ConnectResponse, UserEventRequest, Disconnec...
/** * @license * Copyright Google Inc. 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 {Injector, Type} from '@angular/core'; import {Subscription} from 'rxjs'; import {ComponentNgElementStrategy...
<reponame>apellicc/primeng<gh_stars>1-10 import { NgModule, Directive, ElementRef, HostListener, Input, forwardRef, Output, EventEmitter } from '@angular/core'; import { CommonModule } from '@angular/common'; import { DomHandler } from 'primeng/dom'; import { Validator, AbstractControl, NG_VALIDATORS } from '@angular/f...
import { ScrollEventData } from "."; import { View, layout, ScrollViewBase, scrollBarIndicatorVisibleProperty } from "./scroll-view-common"; import { ios as iosUtils } from "../../utils/utils"; // HACK: Webpack. Use a fully-qualified import to allow resolve.extensions(.ios.js) to // kick in. `../utils` doesn't seem to...
<reponame>Mu-L/airbyte<filename>airbyte-webapp/src/hooks/services/useConnectionHook.tsx import { useCallback, useMemo } from "react"; import { useFetcher, useResource } from "rest-hooks"; import FrequencyConfig from "config/FrequencyConfig.json"; import { useConfig } from "config"; import { Connection, ConnectionC...
/** * @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 ts from 'typescript'; import {OwningModule, Reference} from '../../imports'; import {ClassDeclaration, ClassM...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useCallback, useMemo} from 'react' import {useIntl} from 'react-intl' import FullCalendar, {EventClickArg, EventChangeArg, EventInput, EventContentArg} from '@fullcalendar/react' import inte...
// Copyright (c) 2021, NVIDIA 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 ...
import * as earth from '../earth' import { ArcSecond, DEG2RAD, Degree, JulianDay, RAD2DEG } from '../constants' import { getEclipticLatitude, getEclipticLongitude, getRadiusVector } from './coordinates' import { getDistanceToLightTime } from '../elliptical' const sin = Math.sin const cos = Math.cos const sqrt = Math.s...
import { ActionContext } from "vuex"; import { State as RootState } from "@/store/index"; import Relationship from "@/services/api/v2/relationship.service"; import { ITopic } from "@/interfaces/api/v2/topic.interface"; import { IEntityFacetField, IEntityFilter, } from "@/interfaces/entity-filter.interface"; import ...
import * as React from 'react'; import Link from 'next/link'; import dynamic from 'next/dynamic'; import { useRouter } from 'next/router'; import { PageContentContainer } from '../layouts/Containers'; import { ButtonOlive, ButtonTransparent } from '../button/Button'; import { OALogoShort, OALogoFull } from '../icons';...
import { ethers, BigNumber } from "ethers"; import { addresses } from "../constants"; import { abi as ierc20ABI } from "../abi/IERC20.json"; import { abi as wsOHM } from "../abi/wsOHM.json"; import { clearPendingTxn, fetchPendingTxns, getWrappingTypeText } from "./PendingTxnsSlice"; import { createAsyncThunk } from "@r...
<gh_stars>0 var PLAYER_SPEED = 0.2; class Player extends egret.DisplayObjectContainer { appearance: egret.Bitmap; fsm: StateMachine; _moveState:MoveState; _idelState:IdleState; posX: number; posY: number; curAnimation: Animation; isLeftFacing = false; animationList; /* ...
import { debounce } from 'lodash'; import React, { useCallback, useEffect, useRef, useState, ReactNode, } from 'react'; import { useSpring } from 'react-spring'; import TitleCard from '../TitleCard'; import { defineMessages, FormattedMessage } from 'react-intl'; const messages = defineMessages({ noresults:...
<filename>site/lib/types.ts import { Entity, IEntityDatum, IModelDatum, Model, Property } from "@alephdata/followthemoney" export interface IContent { slug: string content: string title: string path: string summary: string | null } export interface IArticleInfo { slug: string title: string date: stri...
<reponame>biocoat/cell<gh_stars>0 const loadJson = require('load-json-file'); // import loadJson = require('load-json-file'); const { ipcRenderer } = require('electron'); const path = require('path'); // import forms from 'forms'; const forms = require('forms'); const fields = forms.fields; const validators = forms....
<reponame>kieferrm/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------------...
import { ReadableStream, create as createStream } from './stream'; import Axios, { AxiosInstance, AxiosRequestConfig, AxiosError } from 'axios'; import { ListResponse } from './response'; import { Contact, Course, District, DistrictAdmin, Event, Profile, School, SchoolAdmin, Section, Student, Teacher, Term,...
<reponame>utkarshgupta901/G2<filename>src/chart/util/scale-pool.ts /** * view 中缓存 scale 的类 */ import { deepMix, each, get, isNumber, last } from '@antv/util'; import { Scale, Coordinate } from '../../dependents'; import { Data, LooseObject, ScaleOption, ViewCfg } from '../../interface'; import { createScaleByField, s...
/* * Copyright (C) 2017-2019 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import { ProjectionType } from "@here/harp-geoutils"; import { HorizontalAlignment, VerticalAlignment } from "@here/harp-text-canvas"; import { assert, MathUtils } from "@...
<gh_stars>0 /// <reference types="node" /> import { CeloTransactionObject, CeloTxObject, Contract, EventLog, PastEventOptions } from '@celo/connect'; import BigNumber from 'bignumber.js'; import { ICeloVersionedContract } from '../generated/ICeloVersionedContract'; import { ContractKit } from '../kit'; import { Contrac...
/** * @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 {FocusMonitor, FocusableOption, FocusOrigin} from '@angular/cdk/a11y'; import {BooleanInput} from '@angular/cd...
<filename>src/app/search/search-filters/stats.tsx import { tl } from 'app/i18next-t'; import { DimItem } from 'app/inventory/item-types'; import { DimStore } from 'app/inventory/store-types'; import { maxLightItemSet, maxStatLoadout } from 'app/loadout/auto-loadouts'; import _ from 'lodash'; import { FilterDefinition }...
<gh_stars>1-10 import {createEntityAdapter, EntityAdapter, EntityState} from '@ngrx/entity'; import {Project, WorkStartEnd} from '../project.model'; import {ProjectActions, ProjectActionTypes} from './project.actions'; import {createFeatureSelector, createSelector} from '@ngrx/store'; import {FIRST_PROJECT} from '../pr...
import { ActiveColumnAddress, FilterState, Store } from '../store/types'; import { notify } from '../helper/observable'; import { findProp, findPropIndex } from '../helper/common'; import { composeConditionFn, getFilterConditionFn } from '../helper/filter'; import { getUniqColumnData } from '../query/data'; import { Fi...
import React, { Component } from 'react'; import { connect, ConnectedProps } from 'react-redux'; import { ScreenBackground, ScreenContent } from '../components/ScreenComponents'; import WidgetListComponent from '../components/WidgetListComponent'; import { EncryptedSettingsEnum, ItemTypes, StoreConstants } from '../mod...
import React, { useEffect, useLayoutEffect, useRef } from "react"; import { Node, Operation } from "slate"; import { ReactEditor } from "slate-react"; import { useDevEditorRead } from "../atom/devEditor"; import { useUpdateApp } from "../atom/updateApp"; import { useUpdateDevtools } from "../atom/updateDevtools"; impor...
<reponame>poolifier/poolifier<filename>src/worker/abstract-worker.ts<gh_stars>10-100 import { AsyncResource } from 'async_hooks' import type { Worker } from 'cluster' import type { MessagePort } from 'worker_threads' import type { MessageValue } from '../utility-types' import { EMPTY_FUNCTION } from '../utils' import t...
<filename>src/common/helpers.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------...
import * as vscode from "vscode"; import * as path from "path"; import * as settings from "./settings"; import * as child_process from "child_process"; import * as fs from "fs"; import * as util from "util"; import { TestSuiteInfo, TestInfo, TestRunStartedEvent, TestRunFinishedEvent, TestSuiteEvent, TestEvent, TestDeco...
<gh_stars>10-100 /* undefined Request schema for bookings-agency-options !!! AUTO GENERATED BY IOTSFJS REFRAIN FROM MANUAL EDITING !!! See https://www.npmjs.com/package/io-ts-from-json-schema */ import * as t from 'io-ts'; import * as TravelMode_ from '../../../core/components/travel-mode'; import * as Units_ from ...
<reponame>jfbeats/arweave-js import * as ArweaveUtils from "./utils"; import deepHash from "./deepHash"; import { Chunk, Proof, generateTransactionChunks } from "./merkle"; class BaseObject { [key: string]: any; public get(field: string): string; public get( field: string, options: { decode: true; strin...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Handle } from 'dojo-core/interfaces'; import { queueMicroTask } from 'dojo-core/queue'; import WeakMap from 'dojo-core/WeakMap'; interface ElementStructure { node: HTMLElement, kids?: ElementStructure[] } interface IteratorCallback { (value: HTMLElement, index?: number, array?: HTMLElement[]|Node...
<filename>src/engine/db/mutex.ts import type { Effect } from 'xxscreeps/utility/types'; import type { KeyValProvider, PubSubProvider } from './storage/provider'; import type { Subscription } from './channel'; import { Deferred, mustNotReject } from 'xxscreeps/utility/async'; import { Channel } from './channel'; import ...
<filename>jsonrpc/src/node/ril.ts /* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * ------------------------------...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { nbformat } from '@jupyterlab/coreutils'; // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires const cloneDeep = require('lodash/cloneDeep'); import '....
import * as joinPaths from 'url-join'; import AxiosLib, { AxiosInstance, AxiosPromise, AxiosProxyConfig, AxiosRequestConfig, AxiosResponse } from 'axios'; import inspect from 'logspect'; /** * Indicates whether the request was a success or not (between 200-300). */ export functio...
/* * 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 React, { FC, Fragment, useEffect, useState } from 'react'; import { ...
import { keycode, modifierkeytype } from "../QMK/keycodes"; import { keycodeToUsbcode, isKeycode } from "../QMK"; import { KeycapText } from "../Components/Key"; import { LANGS } from "../Langs"; import { QmkFunctionResult } from "../QMK/functions"; import { ReferenceKeyboardKey } from "../ReferenceKeyboards/index"; e...
/** * FF Typescript Foundation Library * Copyright 2021 <NAME>, Frame Factory GmbH * * License: MIT */ import * as React from "react"; import { MouseEvent as ReactMouseEvent, PointerEvent as ReactPointerEvent, ReactNode } from "react"; import { IComponentProps, IComponentEvent } from "./common"; imp...
<reponame>talentlessguy/compress<gh_stars>0 // from https://github.com/nodeca/pako import { concatUint8Array } from "../utils/uint8.ts"; import * as zlib_inflate from "./zlib/inflate.ts"; import STATUS from "./zlib/status.ts"; import { message as msg, CODE } from "./zlib/messages.ts"; import ZStream from "./zlib/zstrea...
import { sendServerPeer } from '../../../../../api/server/peer' import { buildIOTurnConfig } from '../../../../../api/server/peer/config' import { newPeerReceiverId } from '../../../../../api/server/peer/id' import { Callback } from '../../../../../Callback' import { $ } from '../../../../../Class/$' import { Config } ...
<filename>assets/admin/tinymce/modules/tinymce/src/plugins/paste/main/ts/core/Quirks.ts /** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://ww...
'use strict'; import { RequestHandler } from 'express'; import { Operation } from 'express-openapi'; import { ATTACHMENT_TYPE } from '../../../../../../constants/attachments'; import { PROJECT_ROLE } from '../../../../../../constants/roles'; import { getDBConnection, IDBConnection } from '../../../../../../database/db'...
<reponame>stschoberg/vscode<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. *---------------------...
<reponame>XianyuTech/kraken<gh_stars>1000+ /** * This file will expose global functions for specs to use. * * - setElementStyle: Apply style object to a specfic DOM. * - setElementProps: Apply attrs object to a specfic DOM. * - sleep: wait for several seconds. * - create: create element. * - snapshot: match snap...
import React, { FunctionComponent, useContext } from "react"; import { GestureResponderEvent, Image, ImageSourcePropType, StyleSheet, Text, View, ViewStyle, } from "react-native"; import { ThemeContext } from "../providers/ThemeProvider"; import { ColorScheme } from "../providers/ColorScheme"; import { Io...
import { expect } from 'chai'; import type { Collection, Db, MongoClient } from '../../../src'; import { loadSpecTests } from '../../spec'; import { legacyRunOnToRunOnRequirement } from '../../tools/spec-runner'; import { isAnyRequirementSatisfied } from '../../tools/unified-spec-runner/unified-utils'; interface Retr...
<gh_stars>0 import { parseCssSelector, stringifySelectorAst, walk, SelectorNode, Selector, SelectorList, FunctionalSelector, Class, Attribute, Invalid, ImmutableSelectorList, ImmutableSelectorNode, } from '@tokey/css-selector-parser'; import cloneDeep from 'lodash.clonede...
<filename>packages/test-runner-core/src/runner/TestRunner.ts import { TestRunnerCoreConfig } from '../config/TestRunnerCoreConfig'; import { createTestSessions } from './createSessionGroups'; import { TestSession } from '../test-session/TestSession'; import { getTestCoverage, TestCoverage } from '../coverage/getTestCov...
<filename>lib/job/compute-next-run-at.ts<gh_stars>0 import { Job } from "."; import * as parser from "cron-parser"; import humanInterval from "human-interval"; import createDebugger from "debug"; import moment from "moment-timezone"; // @ts-expect-error import date from "date.js"; const debug = createDebugger("agenda:...
<reponame>chatreek/newconsensus /* * @license NewConsensus Platform v0.1 * (c) 2020-2021 KaoGeek. http://kaogeek.dev * License: MIT. https://opensource.org/licenses/MIT * Author: chalucks <<EMAIL>>, shiorin <<EMAIL>> */ import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@a...
<reponame>weilbith/clientlib import { BigNumber } from 'bignumber.js' import { ethers } from 'ethers' import { AddressZero } from 'ethers/constants' import * as TrustlinesContractsAbi from 'trustlines-contracts-abi' import { TLProvider } from './providers/TLProvider' import { TLSigner } from './signers/TLSigner' impo...
import React, { Component } from 'react'; import { injectIntl, WrappedComponentProps, FormattedMessage } from 'react-intl'; import { Link } from 'react-router-dom'; import _ from 'lodash'; import { Button, Form, Select, Input, TreeSelect } from 'antd'; import { FormProps } from 'antd/lib/form'; import { renderTreeNodes...
import lock from '../utils/lock' import { models } from '../models' import * as socket from '../utils/socket' import * as jsonUtils from '../utils/json' import * as network from '../network' import constants from '../constants' import { success, failure200, failure } from '../utils/res' import { logging, sphinxLogger }...
import * as fs from "fs"; import * as os from "os"; import * as path from "path"; import { CodeStreamSession } from "session"; import { URI } from "vscode-uri"; import { SessionContainer } from "../container"; import { GitRemoteParser } from "../git/parsers/remoteParser"; import { Logger } from "../logger"; import { M...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * 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 ri...
import * as Database from 'better-sqlite3'; import { Database as SqliteDatabase, Transaction } from 'better-sqlite3'; import Log from '@ulixee/commons/lib/Logger'; import SqliteTable from '@ulixee/commons/lib/SqliteTable'; import * as fs from 'fs'; import ResourcesTable from '../models/ResourcesTable'; import DomChange...
import * as React from "react"; import classNames from "clsx"; import { Link } from "lib/woozie"; import { useThanosClient, useRelevantAccounts, useAccount, useSetAccountPkh, } from "lib/thanos/front"; import { PopperRenderProps } from "lib/ui/Popper"; import { T } from "lib/i18n/react"; import { useAppEnv, ope...
<gh_stars>0 /** * Maps between 'real temps' (degrees °C/°F), and 'levels' used by client API. * * Locally temps range from 10°C - 45°C, and 50°F - 113°F, but the Eight Sleep * API uses a value between -100 (max cooling) to +100 (max heating), independent * of the temp units. * * Eight Sleep app gives users the ...
<reponame>jsfix-updater/react-rocketjump import defaultActionCreators from './actions/defaultActionCreators' import defaultMakeSelectors from './defaultMakeSelectors' import createMakeObservable, { mergeMakeObservables, } from './effect/createMakeObservable' import { TAKE_EFFECT_LATEST } from './effect/takeEffects' i...
<reponame>InMyLife888/LogicFlow import { remove } from 'lodash-es'; import { EdgeData } from '@logicflow/core'; class GroupShrink { static pluginName = 'group-shrink'; group = null; // group节点 lf = null; // lf 实例 shrinkWidth = 100; // 收缩后节点宽度 shrinkHeight = 60; // 收缩后节点高度 constructor({ lf }) { this.lf...
<reponame>syncfusion/ej2-vue import { Options } from 'vue-class-component'; import { ComponentBase, EJComponentDecorator, getProps, allVue, gh } from '@syncfusion/ej2-vue-base'; import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base'; import { TreeView } from '@syncfusion/ej2-navigations'; // {{VueImport}...
<filename>cypress/support/commands.ts // @ts-check ///<reference path="../global.d.ts" /> import { makeBtcAccount } from '../../cypress/factories/bitcoin/account' import { makeEthAccount } from '../../cypress/factories/ethereum/account' import { wallet } from '../../cypress/fixtures/wallet' import { getWalletDbInstanc...
/** * Copyright (c) Microsoft 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 agr...
import { call, put, all, takeEvery } from 'redux-saga/effects' import {ADD_SCHEDULES, DELETE_SCHEDULES, LOAD_SCHEDULES, CHANGE_SCHEDULE_STATUS, UPDATE_SCHEDULES, LOAD_VIZS} from './constants' import { schedulesLoaded, loadSchedulesFail, scheduleAdded, addScheduleFail, scheduleDeleted, deleteScheduleFail, ...
<filename>client/src/app/user/auth.service.ts import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { AuthHttp, JwtHelper } from 'angular2-jwt'; import { Router, NavigationEnd } from '@angular/router'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; impor...
<filename>packages/service-model/src/TreeModel/index.ts<gh_stars>0 import { isApiModel } from "../ApiModel"; import { normalizeModel } from "./normalizeModel"; import { getSerializationType } from "./getSerializationType"; import { convertXmlNamespace } from "./convertXmlNamespace"; import { Blob as ProtocolBlob, B...
/* * 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 ...
import React, { Component } from 'react'; import { graphql } from 'gatsby'; import Helmet from 'react-helmet'; import ReactHtmlParser from 'react-html-parser'; import { scroller } from 'react-scroll'; import { Icon } from 'antd'; import cx from 'classnames'; import kebabCase from 'lodash/kebabCase'; import get from 'lo...
<filename>src/debugging/coreclr/vsdbgClient.ts /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import * as path from 'path'; import * as process from 'process'; import { Memento } from ...
<gh_stars>0 'use strict'; // The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as child_process from 'child_process'; import * as fs from 'fs'; import * as mm from 'micromatch'; import * as path from 'path'; import * as vsc...
<reponame>hausea/legend-studio<filename>packages/legend-art/src/utils/TextEditorUtils.ts<gh_stars>1-10 /** * Copyright (c) 2020-present, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ import { LitElement, html, css } from "lit"; import { customElement, property, state } from "lit/decorators.js"; import { styleMap } from "lit/directives/style-map.js"; import { ShogiBoard } from "./shogi-board"; import { ShogiHa...
#!/usr/bin/env node import { existsSync } from 'fs' import arg from 'next/dist/compiled/arg/index.js' import { resolve, join } from 'path' import chalk from 'chalk' import { cliCommand } from '../bin/next' import { ESLINT_DEFAULT_DIRS } from '../lib/constants' import { runLintCheck } from '../lib/eslint/runLintCheck' ...
<reponame>Arjunan95/saned_ui import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { AppComponent } from './app.component'; import { HeroFormComponent } from './he...
<filename>src/utils/utils.ts import { Schema, SchemaField } from '../dal/dao/schemas/schemas.types' import { DataTypeAdapter } from '../dal/drivers/drivers.types' import { isPlainObject } from 'is-plain-object' import knex, { Knex } from 'knex' import { Db, MongoClient } from 'mongodb' export type OneKey<K extends str...
/** * Copyright 2020 Baidu Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
import * as React from 'react' import * as RPCChatTypes from '../../constants/types/rpc-chat-gen' import * as Constants from '../../constants/settings' import * as Kb from '../../common-adapters' import * as Styles from '../../styles' export type Props = { unfurlMode?: RPCChatTypes.UnfurlMode unfurlWhitelist?: Arr...
<filename>src/archetype/loadArchetypesStep.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import * as fse from "fs-extra"; import * as path from "path"; import { Disposable, QuickInputButtons, QuickPick, QuickPickItem, window } from "vscode"; import { getMavenLocalRe...
<gh_stars>100-1000 import WeakMap from '../../../src/shim/WeakMap'; import { ShimIterator } from '../../../src/shim/iterator'; const { registerSuite } = intern.getInterface('object'); const { assert } = intern.getPlugin('chai'); interface Key {} registerSuite('WeakMap', { construction: { 'no arguments'() { con...
import { GeneArtworks_gene } from "__generated__/GeneArtworks_gene.graphql" import { ArtworkFilterNavigator, FilterModalMode } from "lib/Components/ArtworkFilter" import { ArtworkFiltersStoreProvider } from "lib/Components/ArtworkFilter/ArtworkFilterStore" import { FilteredArtworkGridZeroState } from "lib/Components/Ar...
<gh_stars>1-10 /** * Copyright (c) Microsoft 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 applic...
<gh_stars>10-100 import { Installation, Subscription } from "../models"; import { NextFunction, Request, Response } from "express"; import { getInstallations, InstallationResults } from "./get-jira-configuration"; import { GitHubAPI } from "probot"; import { Octokit } from "@octokit/rest"; import { booleanFlag, Boolean...
<reponame>cfanoulis/skyra import type { SkyraCommand } from '#lib/structures'; import { floatPromise, isGuildMessage, resolveOnErrorCodes } from '#utils/common'; import { Store } from '@sapphire/framework'; import { Time } from '@sapphire/time-utilities'; import { RESTJSONErrorCodes } from 'discord-api-types/v6'; impor...
<reponame>AChandel01071994/file-encryption-decryption-in-node import * as fs from 'fs'; import { Transform } from 'stream'; import * as zlib from 'zlib'; import * as crypto from 'crypto'; import * as appRoot from 'app-root-path'; import { v4 as uuidv4 } from 'uuid'; import { Response } from 'express'; // typings not a...
<filename>src/streamingCalls/streaming.ts<gh_stars>0 /** * Copyright 2019 Google LLC * 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 ...
import React, { Component } from 'react'; import { FieldArray as FormikFieldArray, Form as FormikForm, Formik, FormikActions, FormikProps } from 'formik'; import * as Yup from 'yup'; import FormDateInput from './date-input/FormDateInput'; import FormTextInput from './text-input/FormTextInput'; import FormMentionTexta...
import { ChangeEvent, Dispatch, FocusEventHandler, InputHTMLAttributes, RefObject, useCallback, useLayoutEffect, useRef, } from 'react' import { noop } from 'rxjs' import { FieldState, FormAPI, ValidationResult } from './useForm' import { getEventValue } from './utils/get-event-value' ...
<gh_stars>1-10 import { writable } from "svelte/store"; import { toInt, isPositiveInteger, notification } from "./utils"; import type TodoistPlugin from "."; import semverCompare from "semver-compare"; import { App, Notice, PluginSettingTab, Setting } from "obsidian"; export const SettingsInstance = writable<ISettings...
import * as React from 'react' import Box, {Box2} from './box' import Icon from './icon' import Text from './text' import * as Styles from '../styles' type Color = 'blue' | 'red' | 'yellow' | 'green' | 'grey' | 'white' type _Segment = { onClick?: () => void text: string } type Segment = _Segment | string | null |...
<reponame>jeremy-coleman/office-react-mono-simplified<gh_stars>1-10 import { IKeytipLike } from './IKeytipLike'; import { arraysEqual, replaceElement, findIndex, find, EventGroup, getId } from '@uifabric/utilities'; import { KeytipEvents } from './KeytipConstants'; export interface IUniqueKeytip { uniqueID: string; ...
<reponame>eps1lon/material-ui-pickers import { arrayIncludes } from './utils'; import { ParsableDate } from '../constants/prop-types'; import { BasePickerProps } from '../typings/BasePicker'; import { DatePickerView } from '../DatePicker/DatePicker'; import { MuiPickersAdapter } from '../_shared/hooks/useUtils'; import...
import { Draft, original } from 'immer'; import * as Filters from '../../../data/Filters'; import { applyFilter } from '../../../data/FiltersManager'; import { Datum1D, generateSpectrumFromPublicationString, } from '../../../data/data1d/Spectrum1D'; import getReferenceShift from '../../../data/data1d/getReferenceS...
import { EventEmitter } from 'events'; import { Connection } from 'typeorm'; import { Center, Course } from '../../../entities'; import { DepartmentDTO, GroupDTO } from '../dto'; import { ImportCourse } from './course'; import { getConnection } from './connection'; import { ImportCenter } from './center'; import { I...
<gh_stars>1-10 import flatten from "lodash/flatten"; import { g, random } from "../../../worker/util"; import newScheduleCrappy from "./newScheduleCrappy"; /** * Creates a new regular season schedule for 30 teams. * * This makes an NBA-like schedule in terms of conference matchups, division matchups, and home/away ...
import {join} from 'path' import {range} from 'lodash' import {createPool, sql} from 'slonik' import {setupSlonikMigrator} from '../src' import * as dedent from 'dedent' import {fsSyncer} from 'fs-syncer' const slonik = createPool('postgresql://postgres:postgres@localhost:5433/postgres', {idleTimeout: 1}) const milli...
import { ActionDefinition, IntegrationError } from '@segment/actions-core' import { CURRENCY_ISO_CODES } from '../constants' import { PromotionProductItem } from '../ga4-types' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' /** * Following GA4 View Promotion Spec a...