text
stringlengths
3.3k
33k
import React, { useState, useEffect } from 'react'; import { useGetCreatorFormFieldsQuery, useUpdateProfileMutation, useSignUpCreatorMutation } from 'graphql-api'; import { useLanguageContext } from 'context/languageContext'; import { useUiContext } from 'context/uiContext'; import { setUserInfo } from 'st...
<filename>src/askContainer/webViews/deploySkillWebview/deployHostedSkillManager.ts<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Alexa Skills Toolkit for Visual Studio Code * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-Li...
<reponame>orz-forks/ass-js import MnemonicX86 from '../../x86/MnemonicX86'; import MnemonicVariationsX86 from '../../x86/MnemonicVariationsX86'; import * as a from '../atoms'; const mnemonic_add_0 = new MnemonicX86; mnemonic_add_0.mnemonic = "rol"; mnemonic_add_0.operandSize = 8; mnemonic_ad...
<filename>test/helper/test_timeline.ts import fs from 'fs'; import path from 'path'; import chai from 'chai'; import Regexes from '../../resources/regexes'; import { LooseTriggerSet } from '../../types/trigger'; import { CommonReplacement, commonReplacement, partialCommonReplacementKeys, } from '../....
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** @jsx jsx */ import { css, jsx } from '@emotion/core'; import formatMessage from 'format-message'; import React, { useMemo, useCallback, useEffect, useRef, FocusEvent, KeyboardEvent, useState, FormEvent } from 'react'; import { TextField, IT...
import { ethers } from "ethers"; import { getAddresses } from "../../constants"; import { StakingContract, MemoTokenContract, TimeTokenContract } from "../../abi"; import { setAll } from "../../helpers"; import { createSlice, createSelector, createAsyncThunk } from "@reduxjs/toolkit"; import { JsonRpcProvider } from "@...
<reponame>naftalimurgor/lib import { adapters, CHAIN_NAMESPACE, CHAIN_REFERENCE, toAssetId } from '@shapeshiftoss/caip' import { FindAllMarketArgs, HistoryData, HistoryTimeframe, MarketCapResult, MarketData, MarketDataArgs, PriceHistoryArgs } from '@shapeshiftoss/types' import { ChainId, Yearn } from '@yf...
<filename>core/common/src/ECSqlReader.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------...
import { ZWaveError, ZWaveErrorCodes } from "../error/ZWaveError"; import { log } from "../util/logger"; import { num2hex } from "../util/strings"; import { CommandClass, commandClass, CommandClasses, expectedCCResponse, implementedVersion } from "./CommandClass"; // TODO: encode duration: // SET: // 0x00 = instantly ...
/** * mongo-tenant - Multi-tenancy for mongoose on document level. * * @copyright Copyright (c) 2016-2017, craftup * @copyright Copyright (c) 2022, dvprrsh * @license https://github.com/WeAreNova/mongoose-tenant/blob/main/LICENSE MIT */ import type mongodb from "mongodb"; import type { Aggregate, Any...
import * as React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import _ from 'lodash'; import shallowEqual from '../utils/shallowEqual'; import { polyfill } from 'react-lifecycles-compat'; import { findNodeOfTree } from '../utils/treeUtils'; import IntlContext from '../IntlProv...
<reponame>JuliaWinchester/aleph-fork2 import { ComponentDefinition } from "aframe"; import { Constants } from "../../Constants"; import { AlCamera } from "../../interfaces"; import { ThreeUtils } from "../../utils"; import { AlControlEvents } from "../../utils/AlControlEvents"; interface AlOrbitControlState { animat...
import { openWindow, setLeagueFeatures } from '.'; import { INTERESTED_IN_LEAGUE_FEATURES, LEAGUE_LAUNCHER_ID } from './constants'; import { Live, TrophyClient } from '../../components/trophies/types'; import { Account } from '../accounts'; import { error, log } from '../logs'; import { waitFor } from '../utils/async';...
<filename>src/serialisation/deserialisers.ts import { getAttributeMetadata, getClassForJsonapiType, getConstructorForJsonapiType, getLinkMetadata, getMetaMetadata, getRelationshipMetadata, } from "../decorators"; import { jsonapiIdentifier, unresolvedIdentifier, ResourceIdentifier, ResourceLinkage,...
import { HttpEventType } from '@angular/common/http'; import { Component, ElementRef, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { FormArray, FormControl, FormGroupDirective, Validators } from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; import { MatSelectionListChange...
import React, {useEffect, useState} from 'react' import {useMediaQuery} from 'react-responsive' import {useHistory} from 'react-router' import {useSelector} from 'react-redux' import {OwnershipDocument, Property} from '../API/queries/types/graphqlFragmentTypes' import {ReduxState} from '../redux/reducers/all_reducers'...
<reponame>eosrio/eos-transit import { Api, JsonRpc } from 'eosjs'; import uuid from 'uuid/v4'; import { WalletAccessContext, WalletProvider, Wallet, WalletState, AccountInfo, StateListener, StateUnsubscribeFn, DiscoveryAccount, DiscoveryData, DiscoveryOptions } from './types'; import { makeStateContainer } fr...
/* eslint-disable header/header */ // Copyright (c) 2012 <NAME> // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, ...
<reponame>p2p-org/polkadot-profit-transformer import { IBlock, IWatchdogRestartResponse, IWatchdogService, IWatchdogStatus, VerifierStatus } from './watchdog.types' import { StakingService } from '../staking' import { ConfigService } from '../config' import { BlocksService } from '../blocks' import { EventRecord, Signe...
<reponame>germanz/harp.gl<gh_stars>1-10 /* * Copyright (C) 2020 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import { GeoBox, GeoCoordinates, mercatorProjection, sphereProjection } from "@here/harp-geoutils"; import { GUI } from "dat.gui"; impor...
import React, { Component } from 'react'; import Alarm from './Alarm'; import './App.css'; interface State { isOnAir: boolean; isLoggedIn: boolean; isConnected: boolean; shouldConnect: boolean; isGettingUserMicData: boolean; password: string; } class App extends Component<any, State> { socket: WebSocket...
<filename>src/extension.ts // Copyright (c) 2019-2020 <NAME> // Copyright (c) 2017 <NAME> <<EMAIL>> // 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 ...
import { ConfigurationParser } from './parser'; import { DefaultConstructed, cloneExcept } from 'der20/common/utility'; import { DialogResult, Change, Failure, Success } from './result'; import { ConfigurationLoader } from './loader'; import { ConfigurationValueBase } from 'der20/config/base'; import { ExportContext, P...
import { Address } from '@celo/connect' import { GroupVoterReward, VoterReward } from '@celo/contractkit/lib/wrappers/Election' import { AccountSlashed } from '@celo/contractkit/lib/wrappers/LockedGold' import { Validator, ValidatorReward } from '@celo/contractkit/lib/wrappers/Validators' import { eqAddress } from '@ce...
/* * Copyright (c) 2017-2018 LabKey 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 l...
<reponame>ioriayane/vscode-leme-writing-studio import { Position } from 'vscode'; export enum CharType { asciiAlphabet, // contains number asciiSymbol, asciiBracket, kanji, kana, alphabet, symbol, bracket, whitespace, crlf, other, } export interface CharData { type: C...
import * as fs from "fs"; import * as os from "os"; import * as path from "path"; import * as child_process from "child_process"; import * as core from "@actions/core"; import * as io from "@actions/io"; import * as exec from "@actions/exec"; import * as installer from "./installer"; import * as mycnf from "./mycnf"; ...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import { Observer } from 'rxjs/Observer'; import { of } from 'rxjs/observable/of'; import { forkJoin } from 'rxjs/observable/forkJoin'; import 'rxjs/add/operator/map'; import 'rxj...
import { flatMap, sortBy, identity, each, some, pull, find, includes, startsWith, bind, groupBy, isNumber } from 'lodash'; import { DriverState, Models, IOmnisharpClientStatus } from 'omnisharp-client'; import { normalize } from 'path'; import { Observable, ReplaySubject, Subject } from 'rxjs'; import { CompositeDispos...
import React from 'react'; import Dropzone from 'react-dropzone'; import {CardShadow, CardButton} from '../visus/Card/Card'; import {formatSize, shallowEqual, capitalize} from '../../utils'; import { Metadata, RelatedFile, TabularVariable, AugmentationType, } from '../../api/types'; import {ProfileResult, profi...
<filename>Demo-Start/app/customers/customer.component.ts<gh_stars>0 import { Component, OnInit, ElementRef, Renderer, Inject } from '@angular/core'; // Importing NgForm is not needed when creating a reactive form // import { NgForm } from '@angular/forms'; // Import Angular Reactive Forms Building Blocks FormGroup and...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *--------------------------------------------------------------...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { AfterViewInit, ChangeDetectionStrategy, Component, ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, HostBinding, Input...
<filename>src/commands/pokemon/flavor.ts /** * @file Pokémon FlavorCommand - Gets flavor text from a Pokémon * * Different forms are supported. Generally you want to write it all as 1 word with the form appended. For example * `necrozmaduskmane` or `metagrossmega`. Due to message limit size it fetches as many e...
/** * @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 {ProceduralRenderer3, RElement, Renderer3} from '../interfaces/renderer'; import {setStylingMapsSyncFn} from './bin...
/** * @packageDocumentation * @module Parts.MPU6050 */ import Obniz from "../../../obniz"; import { ObnizPartsInfo } from "../../../obniz/ObnizPartsInterface"; import I2cImu6, { accelRange, gyroRange, I2cImu6AbstractOptions, Inertia6, Xyz } from "../../i2cImu6"; import { I2cInfo } from "../../i2cParts"; export int...
<reponame>das-praktische-schreinerlein/mycms-commons import {utils} from 'js-data'; import { DescValidationRule, KeywordValidationRule, NumberValidationRule } from '../../search-commons/model/forms/generic-validator.util'; import {SqlQueryBuilder} from '../../search-commons/services/sql-query.builder'; impo...
<filename>src/store/modules/network/eosNetwork.ts<gh_stars>10-100 import { createModule, mutation, action } from "vuex-class-component"; import { NetworkModule, TokenBalanceReturn, GetBalanceParam, TokenBalanceParam, TransferParam } from "@/types/bancor"; import { compareString, compareToken, assetToDec...
<filename>packages/x-components/src/x-installer/x-installer/x-installer.ts<gh_stars>10-100 import { EmpathyAdapterConfig } from '@empathyco/x-adapter'; import { deepMerge } from '@empathyco/x-deep-merge'; import Vue, { PluginObject, VueConstructor } from 'vue'; import { BaseXBus } from '../../plugins/x-bus'; import { X...
import React, { useState } from 'react'; import clsx from 'clsx'; import CssBaseline from '@material-ui/core/CssBaseline'; import { useHistory, withRouter } from 'react-router-dom'; import client from '../../lib/client'; import Drawer from '@material-ui/core/Drawer'; import AppBar from '@material-ui/core/AppBar'; impor...
/** * @file BNF Grammar Definition to TParser Definition Meta-Compielr * @author zcy <<EMAIL>> * Created at 10/30/2016 */ import {Parser, Tokenizer} from "tparser"; import {IMyTokenizer, IMyParser} from "./compiler.def"; import testcode from './bnf.test'; function isArray(arr){ return Object.pro...
<gh_stars>0 import { Component, OnInit, Type, Input } from '@angular/core'; import { UserService } from './../../_services/user/user.service'; import { Router } from '@angular/router'; import { Subject } from 'rxjs'; import { map } from 'rxjs/operators'; import { Response } from '@angular/http'; import { FormBuilder...
<reponame>solace-iot-team/platform-api import L from '../../common/logger'; import { ErrorResponseInternal } from '../middlewares/error.handler'; import { PersistenceService } from './persistence.service'; import APIProductsService from './apiProducts.service'; import parser from '@asyncapi/parser'; import { AsyncAPIDo...
import React, { useState, useEffect, ChangeEvent, FormEvent} from 'react'; import { Link, useHistory} from "react-router-dom"; import { FiArrowLeft } from "react-icons/fi"; import { Map, TileLayer, Marker } from "react-leaflet"; import axios from "axios"; import { LeafletMouseEvent } from "leaflet"; import Swal from "s...
import React, { ReactElement, useCallback, useEffect, useState } from 'react'; import { hexToAscii } from 'src/utils/utils'; import { getNetworkConfig } from 'src/utils/marketsAndNetworksConfig'; import { Web3Context } from '../hooks/useWeb3Context'; import { getWallet, WalletType } from './WalletOptions'; import { A...
export const deviceExample = { "id": "<KEY>", "is_active": false, "is_private_session": true, "is_restricted": false, "name": "<NAME>", "type": "Computer", "volume_percent": 100 }; export type Playlist = { collaborative: boolean; external_urls: { spotify: string; }; ...
import { mcreviewproto } from '../../../gen/healthPlanFormDataProto' import { unlockedHealthPlanFormDataSchema } from './unlockedHealthPlanFormDataSchema' import { UnlockedHealthPlanFormDataType, LockedHealthPlanFormDataType, DocumentCategoryType, ActuarialFirmType, ContractAmendmentInfo, Federa...
<reponame>akropolisio/sparta import { PoolContract, PoolInstance, FundsModuleContract, FundsModuleInstance, AccessModuleContract, AccessModuleInstance, LiquidityModuleContract, LiquidityModuleInstance, LoanModuleStubContract, LoanModuleStubInstance, CurveModuleContract, CurveModuleInstance, ...
/* eslint-disable max-len */ import { FormControl, IconButton, InputLabel, MenuItem, OutlinedInput, Select, Tooltip, } from '@material-ui/core'; import { useTheme } from '@material-ui/core/styles'; import AssessmentOutlinedIcon from '@material-ui/icons/AssessmentOutlined'; import Plotly from 'plotly.js'; ...
<reponame>morrislaptop/geofirestore<gh_stars>0 import * as chai from 'chai'; import * as firebase from 'firebase'; import 'firebase/firestore'; import { GeoFirestore } from '../src'; import { GeoFirestoreQuery } from '../src/query'; /*************/ /* GLOBALS */ /*************/ const expect = chai.expect; // Define...
import { Knex } from 'knex'; import { SchemaInspector } from '../types/schema-inspector'; import { Table } from '../types/table'; import { Column } from '../types/column'; import { ForeignKey } from '../types/foreign-key'; import { stripQuotes } from '../utils/strip-quotes'; type RawColumn = { TABLE_NAME: string; ...
/** * @license * Copyright (c) 2019 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * b...
import { RelationshipContributionModel } from '../../data/contribution_models'; import { PackageTypes } from '../../config/package_types'; import { ContributionRelationship } from '../../config/contribution_relationship'; import { ContributionTierName } from '../../config/contribution_tier_name'; import { RosterEntry, ...
// NgRx import { createSelector, createSelectorFactory } from '@ngrx/store'; // store import { State } from '@gcv/gene/store/reducers/micro-tracks.reducer'; import * as fromParams from '@gcv/gene/store/selectors/params'; import { getSelectedGenesLoaded } from '@gcv/gene/store/selectors/gene'; import { getMicroTracksSta...
<reponame>heberleh/cime /** * @license * * Copyright 2019 Google LLC. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
import got from 'got'; import {parseXml, Document, Element} from 'libxmljs2'; import config from '../../lib/Config'; import logger from '../../lib/Logger'; import {MetadataParams} from '../../lib/Service'; import {MinimalItem} from '../../lib/ItemInterfaces'; import {updateItems, getCollectionsByMetadataId, getCollect...
<reponame>nguyenmanh1507/rsuite<filename>src/utils/treeUtils.ts import _ from 'lodash'; import shallowEqual from '../utils/shallowEqual'; import shallowEqualArray from '../utils/shallowEqualArray'; import { Node } from '../CheckTreePicker/utils'; import { TREE_NODE_DROP_POSITION } from '../constants'; import { TreePick...
import { Component, ElementRef, forwardRef, HostBinding, Inject, Injector, OnDestroy, OnInit, Optional, ViewChild, ViewEncapsulation } from '@angular/core'; import { FormControl, FormGroup, ValidationErrors, ValidatorFn } from '@angular/forms'; import { MatDialog } from '@angular/material'; import { DomSanitizer } from...
<reponame>guytish/salto /* * Copyright 2020 Salto Labs 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.apache.org/licenses/LICENSE-2.0 * * Unless...
/** * Manage LMS and other third-party integrations. * @module assignments */ import { profileName, profileIcon, profileGoogleSignout, profileCanvasURL, profilePreferredGoogleUser } from "./userdata"; import { get, writable, Writable } from 'svelte/store'; /** * Binary search: locates the ind...
import { cloneDeep, set as setIn, toPath } from 'lodash'; import type Document from '../Document'; import { InvalidParameterError } from '../errors'; import type { DataTransformer, DecryptFn, EncryptFn, MvAttribute, MvDataType, MvRecord, } from '../types'; import BaseSchemaType, { type Validator } from './BaseSch...
import * as fs from 'fs'; import { Main } from './ProjectFiles/Main'; import { tsconfig } from './ProjectFiles/tsconfig'; import { envSlash, createFolder, IFileContent } from './Functions'; // Engines import { iEngine } from './Engines/iEngine'; import { Handlebars } from './Engines/Handlebars/Handlebars'; // tasks i...
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; import { is, join, includes, concat, without, filter, any, values, indexBy, prop, } from 'ramda'; import {LabelValueAny, LabelValueAnyList, StylableLabelValue} from '../types'; import {AnyDict, Dazzle...
import path from 'path'; import { arr2str, exec, output_file, intersection, logInfo, logErr, logWarn, logSuc, logTime, PKJTOOL, STYLE, STRATEGY, BUILD, MARKDOWN } from '@omni-door/utils'; import { TPLS_INITIAL, TPLS_ORIGIN_INITIAL, TPLS_INITIAL_FN, TPLS_INITIAL_RETURE, TPLS_ORIGIN_...
<reponame>kristianmandrup/nx-extensions /* Originally from nrwl nx: packages/angular/src/utils/nx-devkit/ast-utils.ts */ import * as ts from 'typescript'; import { findNodes } from '@nrwl/workspace/src/utilities/typescript/find-nodes'; import { getSourceNodes } from '@nrwl/workspace/src/utilities/typescript/get-sourc...
<gh_stars>0 const INDENT_SIZE = 4; export interface ParserContext { fileName: string; } export function parseRenpyScript(code: string, ctx: ParserContext): Parser.ParsedScript { const lines = findRenpyLines(ctx, code); const script: Parser.ParsedScript = {} for (const line of lines) { const labelName = li...
import * as QRUtil from "./utils"; import { Grid } from "./grid"; import { QRPolynomial } from "./polynomial"; import { QRRSBlock } from "./block"; import { QRBitBuffer } from "./bitbuffer"; import { QR8bitByte } from "./byte"; export class QRCode { constructor(typeNumber: number, errorCorrectLevel: number) { th...
<reponame>np42/cqes import * as Component from '../Component'; import * as EventBus from '../EventBus'; import { eventHandler } from '../EventBus'; import { EventHandling } from '../EventBus'; import { Event } from '../Event'; import { EventNumber } from '../Event'; import { merge } from 'cqes...
<reponame>CYB3RL1F3/profilart<filename>src/providers/residentadvisor.ts import config from "../config"; import ResidentAdvisorAdapter from "../adapters/residentadvisor"; import Service from "../service"; import err from "../err"; import { RA_Scrapper } from "../lib/ra_scrapper"; import { withScope, captureException } f...
import React, { useState, useContext, useEffect } from 'react'; import { FlatList, StyleSheet, Text, TouchableOpacity, View, ImageBackground } from 'react-native'; import { Theme, Colors, Layout, baseStyle, activeOpacity, statusBarHeight } from '../../theme'; import topCategories from '../../mockdata/ourPicks.json'; im...
<filename>packages/engine/src/component/diff.ts import { JSX } from '../jsx/jsx-namespace'; import { isArray, isUndefined, isBoolean, pick } from '@antv/util'; import Component from './index'; import equal from './equal'; import Children from '../children'; import { renderShapeGroup, deleteElement } from '../canvas/ren...
import { RundownPlaylist, RundownPlaylistId } from '../../lib/collections/RundownPlaylists' import { ProtectedString, clone } from '../../lib/lib' import { Meteor } from 'meteor/meteor' import { Studio, Studios, StudioId } from '../../lib/collections/Studios' import { ShowStyleBase, ShowStyleBases } from '../../lib/col...
<filename>src/math/webgl/webgl_util.ts /* Copyright 2017 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 requ...
<reponame>KniLIM/client-core<gh_stars>0 import {useState} from 'react'; import {createModel} from 'hox'; import io from 'socket.io-client' import {IMsgRecord} from "../ChatBox/service"; import {ImagePipelineFactory, NotiPipelineFactory, TextPipelineFactory} from "../../models/pipeline"; import {ContentType, Msg, MsgTyp...
import { getLogger, LogContext } from '@balena/jellyfish-logger'; import type { JsonSchema } from '@balena/jellyfish-types'; import { Kernel } from 'autumndb'; import type { PostOptions, PostResults } from './consumer'; import type { ExecuteContract, ExecuteContractDefinition } from './types'; const logger = getLogger...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Form, Input, Popconfirm, Table, } from "antd"; // eslint-disable-next-line import/no-internal-modules, import/no-unassigned-import import "antd/lib/popconfirm/style/css"; // eslint-disable-n...
<reponame>sorabhSofttrix/assets import axios from "axios"; import * as bluebird from "bluebird"; import * as fs from "fs"; import * as path from "path"; import * as chalk from 'chalk'; import * as config from "../config"; import { ActionInterface, CheckStepInterface } from "../generic/interface"; import { Binance } fro...
<reponame>andburn/Sunwell<gh_stars>10-100 import CardDef from "./CardDef"; import AttackGem from "./Components/AttackGem"; import BodyText from "./Components/BodyText"; import CardArt from "./Components/CardArt"; import CardFrame from "./Components/CardFrame"; import CostGem from "./Components/CostGem"; import EliteDra...
import * as path from "path"; import { TestStatus } from "../enums"; import { Event, EventEmitter } from "../events"; import { ErrorNotification, Group, PrintNotification, Test } from "../test_protocol"; import { flatMap, notUndefined, uniq } from "../utils"; import { sortBy } from "../utils/array"; import { fsPath } f...
import React, { useState, ChangeEvent, FormEvent, useEffect } from "react"; import { useHistory } from "react-router-dom"; // Redux e Auth import { useSelector, RootStateOrAny } from "react-redux"; import { useDispatch } from "react-redux"; import { updateUser, removeUser } from "../../store/ducks/user/actions"; impor...
import * as _ from "lodash"; import { IDbMeta, IDbRelation } from "../IDbMeta"; import * as deepmerge from "deepmerge"; export function setDefaultValueForColumn(gQlSchemaNode, dbMetaNode, refDbMeta, refDbMetaCurrentTable, refDbMetaCurrentTableColumn) { const isExpression = _.get(gQlSchemaNode, "arguments[0].name.val...
import { Vue, Component, Ref, InjectReactive } from 'nuxt-property-decorator'; import { modifiers as m } from 'vue-tsx-support'; import { AsyncTable, SearchForm, TermEditForm } from '@/components'; import { gql, formatError } from '@/includes/functions'; import { TermTaxonomy, UserCapability } from '@/includes/datas'; ...
<reponame>toringo/swap-sdk<gh_stars>0 import JSBI from 'jsbi'; import { ChainId } from './constants'; import { mainnetTokens, testnetTokens } from "./tokens" import { Token } from './../entities/token'; import { Percent } from './../entities/fractions/percent'; import { WETH } from './WETH'; export const ROUTER_ADDRE...
<gh_stars>0 import {iterateCSSRules, iterateCSSDeclarations, replaceCSSRelativeURLsWithAbsolute, replaceCSSFontFace, replaceCSSVariables} from './css-rules'; import {getModifiableCSSDeclaration, getModifiedFallbackStyle, ModifiableCSSDeclaration, ModifiableCSSRule} from './modify-css'; import {bgFetch} from './network'...
// Copyright 2019 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 required by applicable law or agreed to in ...
import React, { Component, Children, cloneElement, isValidElement, ReactElement, ComponentType, } from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import compose from 'recompose/compose'; import classnames from 'classnames'; import ListItem from '@mat...
import type { RoomObject } from 'xxscreeps/game/object'; import * as C from 'xxscreeps/game/constants'; import * as Fn from 'xxscreeps/utility/functional'; import { intents } from 'xxscreeps/game'; import { extend } from 'xxscreeps/utility/utility'; import { chainIntentChecks, checkRange, checkSafeMode, checkTarget } f...
<filename>src/components/label/base.ts import { deepMix, each, map, isArray, get, clone, isNumber } from '@antv/util'; import ViewLayer from '../../base/view-layer'; import BaseComponent, { BaseComponentConfig } from '../base'; import { IGroup, IShape, View, Geometry, Element, Coordinate, MappingDatum, ...
/* eslint-disable no-console */ import { Device } from 'mediasoup-client'; import { MediaKind, RtpCapabilities, RtpParameters } from 'mediasoup-client/lib/RtpParameters'; import { DtlsParameters, TransportOptions, Transport } from 'mediasoup-client/lib/Transport'; import { ConsumerOptions } from 'mediasoup-client/lib/C...
"use strict"; import * as vscode from "vscode"; import { Git, findGit, Repository, GitError } from "@bammoo/git"; import { getConfigList, updateConfigList, CUSTOM_GIT_CONFIG, IGNORE_CURRENT_ROOT_GIT_CONFIG, GitConfig, generateGitConfigKey, getConfigQueryInterval, removeRootFromIgnoreList, addRootToIgn...
import { SexpOpcodes, WellKnownAttrName, WireFormat } from '@glimmer/interfaces'; import { LOCAL_SHOULD_LOG } from '@glimmer/local-debug-flags'; import { exhausted, LOCAL_LOGGER } from '@glimmer/util'; import { OptionalList } from '../../shared/list'; import { deflateAttrName, deflateTagName } from '../../utils'; impo...
<reponame>lschierer/ffn-parser import { Chapter, Story } from "./model"; export const DEFAULT_GENRES = [ "General", "Romance", "Humor", "Drama", "Poetry", "Action", "Adventure", "Mystery", "Horror", "Parody", "Angst", "Supernatural", "Suspense", "Sci-Fi", "Fantasy", "Spiritual", "Trag...
import { GatsbyNode } from "gatsby"; import { resolve } from "path"; import { languages, Language } from "./utils/translations"; import { TagID } from "./types/tags"; // Create redirect from from path to to path // Both with or without trailing slash // The fromPath should not have trailing slash const createRedirects...
import { defineAnc, props } from '../_utils/defineComponent'; import { IndexListProps, IndexListEvents, IndexListScopedSlots } from './types'; import List, { ListProps } from '../List'; import { isElementSticky } from '../_utils/bom'; import { VueInstance } from '../types'; import { $prefix } from '../_config/variables...
import React, { useState, useEffect } from 'react'; import { useGlobal } from 'reactn'; import { Redirect } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { IState, IWelcomeStrings, User, OfflineProject } from '../model'; import { Record } from '@orbit/data'; import localStrings from '../se...
import { groupCollapsed } from 'console'; import { generateKeySync } from 'crypto'; import { App, Modal, Notice, Plugin, PluginSettingTab, Setting } from 'obsidian'; const Papa = require('papaparse'); let handlebars = require('handlebars'); let hb_helpers = require('@budibase/handlebars-helpers')({handlebars: ha...
// 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 c from 'child_process'; import * as fs from 'fs'; import { EOL } from 'os'; import { join, relative } from 'path'; import { promisify } from 'util'; import { commands...
/* eslint global-require: off, no-console: off, promise/always-return: off */ /** * 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. * * When running `npm run build` or `npm run build:main`, this fil...
import React, { useEffect } from "react"; import useScript from "./useScript"; // DTOs type EpochInMillis = number type RFC3999Date = string type DriftValue = | string | number | boolean | Date | EpochInMillis | RFC3999Date interface DriftWidget { hide(): void; show(): void; } interface DriftAPI { w...
const VIDEO_RAM_OFFSET = 0x3C00; const M3_TO_UTF = [ "\u0020", "\u00a3", "\u007c", "\u00e9", "\u00dc", "\u00c5", "\u00ac", "\u00f6", "\u00d8", "\u00f9", "\u00f1", "\u0060", "\u0101", "\ue00d", "\u00c4", "\u00c3", "\u00d1", "\u00d6", "\u00d8", "\u00d5", "\u00df", "\u00fc", "\u00f5", "\u00e6", "\u00e4", "\u00e0...