text
stringlengths
3.08k
15.5k
import { Invitation } from '@/invitation' import { ADMIN } from '@/role' import { bySeniority } from '@/team/bySeniority' import { MembershipRuleEnforcer, AddMemberAction, AddMemberRoleAction, RemoveMemberAction, RemoveMemberRoleAction, TeamAction, TeamContext, TeamLink, TeamSignatureChain, } from '@...
<filename>public/js/tinymce/modules/mcagar/src/main/ts/ephox/mcagar/api/pipeline/TinyUi.ts<gh_stars>0 import { Assertions, Chain, Mouse, Step, UiFinder } from '@ephox/agar'; import { Arr, Fun } from '@ephox/katamari'; import { SugarElement, SugarShadowDom, Visibility } from '@ephox/sugar'; import { Editor } from '../....
import { getAssociations, getAttributes, getIndexes, getModelName, getOptions, getHooks, ModelCtor, Sequelize, Model, getScopeOptionsGetters, resolveScope, } from 'sequelize-typescript'; import { InitOptions } from 'sequelize'; import { ExtendableModel } from './interfaces/extendable-model.interfa...
<filename>build/gulpfile.ts /* standard */ import { basename, dirname, join } from 'path' import { Stream, Transform } from 'stream' /* 3rd-party */ import del from 'del' import slugify from 'slugify' import merge from 'merge-stream' import Vinyl from 'vinyl' import autoprefixer from 'autoprefixer' import tap from 'g...
import type { TypeFunction, FlagSchema, FlagTypeOrSchema, Flags, InferFlagType, } from './types'; // https://stackoverflow.com/a/56249765/911407 declare global { interface ArrayConstructor { isArray(array: ReadonlyArray<any> | any): array is ReadonlyArray<any>; } } const kebabCasePattern = /-(\w)/g; export c...
import type { ComponentProps, ComponentType, FunctionComponent } from 'react'; import { useState } from 'react'; import styled from 'styled-components'; import { compact, find, map, without } from 'lodash'; import Actions from './Actions'; import type { PluginDescriptionWithVersion, PluginsCatalogWidgetConfiguration, ...
import apisearchUI from "apisearch-ui"; const resultTemplate = ` <div class="row"> {{#items}} <div class="col-6 col-sm-4 mb-3"> <div class="as-result__album" style="background-image: url('{{#metadata.img}}{{metadata.img}}{{/metadata.img}}{{^metadata.img}}https://raw.githubusercontent.c...
import React, {ReactElement} from "react"; import { Dialog, DialogActions, DialogContent, DialogTitle, DialogContentText, Button, TextField, RadioGroup, Radio, FormControlLabel, CircularProgress } from "@mui/material"; import {GENERIC_DIALOG_ZI} from "./zIndices"; type DialogText = stri...
/* * config: th配置 * */ import './style.less'; import jTool from '@jTool'; import { each } from '@jTool/utils'; import { getDiv, updateThWidth, setAreVisible, updateVisibleLast, updateScrollStatus, getFakeTh, getWrap, clearTargetEvent, updateFakeThead } from '@common/base'; import { updateCache, getSettings } from '@c...
import { addClass } from '../elementClass'; import { loadJSFile, loadJsList, loadModulePacks, topLevelImport } from './CCTools'; const global = window as any; /** * 游戏引擎适配器 */ export interface Adapter { canvas: HTMLCanvasElement | null; container: HTMLDivElement | null; frame: Record<string, unknown> | n...
import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { v4 as uuid } from 'uuid'; import { AppDispatch, AppGetState } from '..'; import { socketDeferred } from '../socket'; import { GameSliceState, CreateGameParams, GameJoinedEvent, GameUpdatedEvent, JoinGameParams, Alert, } from './types'; ...
<reponame>CarbonDesigns/carbon-ui<filename>src/properties/PropertyStore.ts import { handles, CarbonStore, dispatch, dispatchAction } from "../CarbonFlux"; import * as Immutable from "immutable"; import CarbonActions, { CarbonAction } from "../CarbonActions"; import { PropertyAction, PropertiesTab } from "./PropertyActi...
<gh_stars>1-10 import { readFileSync, writeFileSync } from 'fs'; import * as micromatch from 'micromatch'; import * as fg from 'fast-glob'; import { join, dirname, resolve } from 'path'; import * as chokidar from 'chokidar'; import { computed, observable, autorun, action, ObservableMap } from 'mobx'; import { Disposabl...
import Head from "next/head"; import { useRouter } from "next/router"; import { Tooltip } from "react-tippy"; import { motion } from "framer-motion"; // Types import type { NextPage } from "next"; // Hooks import { useActor } from "../../hooks/useActor"; // Functions import getFormattedDate from "../../functions/get...
export interface OrdersQuery { /** * The max number of orders to retrieve. */ maxResults?: number, /** * Specifies that no orders entered before this time should be returned. Valid ISO-8601 formats are: * yyyy-MM-dd. Date must be within 60 days from today's date. 'toEnteredTime' must al...
<gh_stars>10-100 import { DetailedChangeSet, DetailedCloudFormationStack, DetailedStackParameter, StackParameterKey, StackParameterNoEcho, StackParameterValue, } from "@takomo/aws-model" import { bold, green, red, yellow } from "@takomo/util" import R from "ramda" import { BaseIO } from "../../cli-io" impor...
import * as Declaration from 'tree-sitter-tony/dtn' import * as Source from 'tree-sitter-tony/tony' import { DeclarationDependency, Dependency, SourceDependency, } from './dependencies' import { DeclaredTermBinding, ImportedTermBinding, LocalTermBinding, TermBinding, TypeAssignment, TypeBinding, Typ...
import path from 'path'; import fs from 'fs-extra'; import inquirer from 'inquirer'; import { parseDocument, createNode, parse, stringify } from 'yaml'; import { Pair, Scalar } from 'yaml/types'; import logger from './common/logger'; import { getCredential } from '@serverless-devs/core'; import * as utils from './commo...
import React, { ForwardedRef, forwardRef, useEffect, useImperativeHandle, useReducer, useRef, } from 'react'; import { StyleSheet, useWindowDimensions, View, ViewStyle } from 'react-native'; import { MAX_HEIGHT_LIST } from '../../constants/styles'; import { initialData, reducer } from '../../st...
<filename>src/linq/peg/expressionvisitor.ts import { ODataParser, JavascriptParser, transform, parse } from './parser' import { ExpressionStack } from './expressionstack' import { IExpressionVisitor } from './interface/iexpressionvisitor' import { IExpression, Expression, ExpressionType } from './expression/express...
<filename>src/utils/position.ts /** * This file contains functions that help calculate * an elements position relative to another. * * for use in the Tooltip component * * credit * @see https://github.com/salimd83/bookslib/blob/main/src/ui/Tooltip.js */ /** * The possible options for the Tooltip position */ ...
import React, { FC, useCallback, useEffect, useRef, useState } from 'react'; import cn from 'classnames'; import { format, parseISO } from 'date-fns'; import { motion } from 'framer-motion'; import { useTranslation } from 'next-i18next'; import Linkify from 'react-linkify'; import { useMountedState } from 'react-use'; ...
/** * Copyright (c) 2015-present, Viro Media, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provid...
import { getTag, isBuffer, isFunction, isNull, isPrimitive, isSymbol } from '@curong/types'; import copyAttrs from './copyAttrs'; const weak = new WeakMap(); /** 拷贝基本类型的值 */ const copyBaseType = (value: any) => { return new (Object.getPrototypeOf(value).constructor)(value); }; /** 拷贝 `Ar...
import React from 'react'; import styled, { css } from 'styled-components'; import oc from 'open-color'; import { shadow } from '../../libs/styles'; interface ButtonProps { cyan?: boolean; } interface AddItemProps { name: string; native: string; divide: string; price: number; unit: string; onChangeNumbe...
import * as core from "@actions/core"; import * as github from "@actions/github"; import fetch from "node-fetch"; import fs from "fs"; import * as ghf from "./github_files"; import compareVersions from "compare-versions"; import path from "path"; export interface PackageManifest { filePath: string; packages: Arra...
<reponame>sugoroku-y/tsc4wsh const escapes = { '\t': 't', '\r': 'r', '\n': 'n', }; function toString(v: unknown): string { if (typeof v === 'string') { return `"${v.replace( /[\\""\t\n\r]/g, ch => '\\' + (escapes[ch as keyof typeof escapes] ?? ch) )}"`; } if (isPrimitive(v)) { return...
import { Component, Input, OnInit, OnChanges } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { CatalogItem } from '../../../shared/catalog-item'; import { CatalogService } from '../../../shared/catalog.service'; import { Location } from '@angular/common'; import { ActivatedRoute, ...
import { Database, Table } from './database'; import { DataType, getTypeName } from './print'; import { ForeignKeyField, getReferencingFields, isValue, Model, RelatedField, SimpleField } from './schema'; import { Document, Value } from './types'; import { Record } from './record'; export async function mock(table: Tab...
import { Box, Button, Text, Textarea } from '@chakra-ui/react'; import { useCallback, useContext, useEffect, useRef, useState } from 'react'; import axios, { AxiosError } from 'axios'; import { nanoid } from 'nanoid'; import { GlobalContext } from '../../../context/global'; import { IMessage, IGlobalContext, IGroupData...
// Copyright 2015-2021 Swim.inc // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
<gh_stars>0 import * as THREE from "three" import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js" import * as dat from "dat.gui" import { getFood } from "./food" import { range } from "../utils/array" /** * Base */ // Debug const debug = { background: { startColor: "#E76F51", endColor...
<reponame>Hackerspace-LeLab/glas import {Vector3} from './Vector3' import {Sphere} from './Sphere' import {Plane} from './Plane' import {Matrix4} from './Matrix4' import {Object3D} from '../core/Object3D' // import {Sprite} from '../objects/Sprite' import {Box3} from './Box3' /** * @author mrdoob / http://mrdoob.com...
import { ThisReceiver } from "@angular/compiler"; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit, ViewChild } from "@angular/core"; import { ChartConfiguration } from "chart.js"; import { BaseChartDirective } from "ng2-charts"; import { forkJoin, of, Subject } from "rxjs"; import { ca...
<filename>packages/cli/src/actions/login.ts import * as express from 'express' import * as crypto from 'crypto' import axios from 'axios' import * as inquirer from 'inquirer' import baseCommand from '../base-command' import { startServer, TDestroyableServer, UnavailablePort } from '../actions/startLocalServer' // TOD...
import * as $ from 'jquery'; import 'flexibility'; import 'calc-polyfill'; import 'picturefill'; import { MDCTextField } from '@material/textfield'; import { MDCSelect } from '@material/select'; import { MDCCheckbox, MDCCheckboxFoundation } from '@material/checkbox'; import * as is from 'is_js'; import 'jquery-validati...
<gh_stars>1-10 import { RequestSender } from '@bigcommerce/request-sender'; import { Cart } from '../../../cart'; import { Checkout, CheckoutStore, InternalCheckoutSelectors } from '../../../checkout'; import { InvalidArgumentError, NotInitializedError, NotInitializedErrorType } from '../../../common/error/errors'; im...
import * as React from "react"; import * as ReactDom from "react-dom"; import * as strings from "CustomLinksWebPartStrings"; import { Stack } from "office-ui-fabric-react"; import { FontIcon } from "office-ui-fabric-react/lib/Icon"; import { IReadonlyTheme, ThemeChangedEventArgs, ThemeProvider } from "@microsof...
import * as toolLib from './tool'; import * as taskLib from 'azure-pipelines-task-lib/task'; import * as restm from 'typed-rest-client/RestClient'; import * as os from 'os'; import * as path from 'path'; async function run() { try { // // Get an explicit version // await getNode('v5...
<filename>services/payment-service/src/providers/stripe/stripe.provider.ts import {inject, Provider} from '@loopback/core'; import {DataObject, repository} from '@loopback/repository'; import {HttpErrors} from '@loopback/rest'; import Handlebars from 'handlebars'; import {Orders, Subscriptions} from '../../models'; imp...
<reponame>appleskiller/neuron<filename>src/cdk/animation/index.ts import { Style } from '../../binding/factory/decorator'; import { isDefined, isEmpty, requestFrame } from 'neurons-utils'; export interface IAnimationConfig { duration?: number; onEnter?: () => void; onDone?: () => void; } export type Cance...
import {Controller, Delete, Get, Post, Put, PathParams, BodyParams} from "@tsed/common"; import {ILieuAVisiter} from "../interfaces/LieuAVisiter"; import {doExecution} from "../database/execute"; const oracledb = require('oracledb'); @Controller("/lieux") export class LieuAVisiterCtrl { /** * get all places t...
<gh_stars>10-100 import { Editor, NodeEntry, Transforms } from 'slate' import { ReactEditor } from 'slate-react' import { getTableElementColumnCount, getTableElementRowCount, TableElement } from './TableElement' import { createEmptyTableRowElement, isTableRowElement, TableRowElement, tableRowElementType } from './Table...
<reponame>themgt/hoppscotch import { onBeforeUnmount, onMounted } from "@nuxtjs/composition-api" import { HoppAction, invokeAction } from "./actions" import { isAppleDevice } from "./platformutils" import { isDOMElement, isTypableElement } from "./utils/dom" /** * This variable keeps track whether keybindings are bei...
import { StatusCodes } from 'http-status-codes'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import IAppState from '../interfaces/IAppState'; import RouteConstants from '....
import { Flex, Heading, Box, FormControl, Select, Input, Button, Text, Link, } from "@chakra-ui/react"; import { yupResolver } from "@hookform/resolvers/yup"; import { confirm as Confirm, arrowRight as ArrowRight, } from "assets/images/svgs"; import { Icon } from "components/Icon"; import NextLink from "next...
<gh_stars>0 type Timeout = NodeJS.Timeout; import Promised from './Promised'; import {DEFAULT_JOB_TIMEOUT_SEC} from './constants'; type QueuedCb = () => Promise<void> | void; // array like [pendingPromise, queuedCb, finishPromised] type QueuedItem = [Promised<void>, QueuedCb?, Promised<void>?]; enum ItemPosition { ...
import { ApolloClient, DefaultOptions, ApolloError } from "apollo-client"; import { InMemoryCache } from "apollo-cache-inmemory"; import { HttpLink } from "apollo-link-http"; import { onError } from "apollo-link-error"; import { ApolloLink, Observable, split } from "apollo-link"; import { WebSocketLink } from "apollo-l...
import * as path from 'path'; import * as fs from 'fs-extra'; import open from 'open'; import { Stats } from 'webpack'; import { JSDOM } from 'jsdom'; import { MaterialsMeta, MaterialsManifest, MaterialsComponentManifestItem, MaterialsPluginManifestItem, MaterialsActionManifestItem, MaterialsContainerManife...
<reponame>mfantcy/vscod-s3-fs<gh_stars>0 import { Disposable, Event, EventEmitter, FileChangeEvent, FileStat, FileSystemError, FileSystemProvider, FileType, Uri } from "vscode"; import { S3ClientWrapper } from "./s3-client-wrapper"; export class S3FileSystemProvider implements FileSystemProvider { private emitter ...
<reponame>curtisvo/ld46<filename>src/game.ts<gh_stars>0 import 'phaser'; import { Game } from 'phaser'; import WinScene from './winScene'; import IntroScene from './introScene'; import GameoverScene from './gameoverScene'; const CIRCLE_INIT_X: integer = 400; const CIRCLE_INIT_Y: integer = 200; const FAN_INIT_X: intege...
import React, { useEffect, useState } from 'react'; import styled from '@emotion/styled'; import { Typography, Button, Select, SelectChangeEvent, MenuItem, InputLabel, FormControl, } from '@mui/material'; import { useNavigate } from 'react-router-dom'; import { useDispatch } from 'react-redux'; import { ...
<filename>src/classLibrary/EleFact.ts import {DOMEx} from "@kirinnee/domex"; import {ElementData, ElementFactory} from "../index"; class EleFact implements ElementFactory { private $: Document = document; private namespace: string; constructor(domex: DOMEx, namespace: string) { domex.AssertExtend(); this.na...
import { Message, TextChannel } from 'discord.js'; import * as fs from 'fs'; import { DependencyContainer } from '../interfaces/dependency-container'; import { Personality } from '../interfaces/personality'; import { MessageType } from '../types'; import { announceCommand, setCommand, statusCommand } from './con...
import React, { useContext, useState } from 'react'; import Dropdown from '~/Components/Dropdown'; import { GET_SEARCH_STORE_QUERY } from '~/graphql/querys'; import { IC_SEARCH } from '~/utils/icon'; import { LoadingContext } from '~/Context/LoadingContext'; import { ModalContext } from '~/Context/ModalContext'; impor...
<reponame>atomist/sdm-automation<filename>lib/web/progressV2.ts /* * Copyright © 2020 Atomist, Inc. * * 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/licens...
/** * © 2018 <NAME>.R.L. * License TBD */ import { RangeQueryOptsI, KeyValueStoreFactoryI, KeyValueStoreI, KeyObjStoreI, kvsKey2Str, KeyTableStoreI, ScalarType, kvsReduceValues } from "@storage/key_value_store_i"; import * as _ from "lodash"; import { KeyValueObj, KeyValueError, KeyValueObjIdType, _idAsStr }...
<gh_stars>0 import {dump, load} from 'js-yaml' import {readFile, ensureFile, appendFile, writeFile} from 'fs-extra' import path from 'path' import {Incidents, MemoizedIncidents, UppConfig} from '../interfaces' import slugify from '@sindresorhus/slugify' import {commit} from './git' import {getConfig} from './config' im...
<gh_stars>1-10 import prisma from '@/modules/prisma' import appRoot from 'app-root-path' import chalk from 'chalk' import fs from 'fs' import { JSDOM } from 'jsdom' import { PendingXHR } from 'pending-xhr-puppeteer' import puppeteer, { Browser, Page } from 'puppeteer' import { telegramBot } from '../telegram-bot' expo...
import React, { VFC } from 'react'; import { Color, G, Path } from 'react-native-svg'; import { createIcon } from '../helpers'; type BrokenProps = { color: Color, strokeWidth: number, }; type CurvedProps = { color: Color, strokeWidth: number, }; type DuotoneProps = { color: Color, strokeWidth: number, }; type O...
<gh_stars>0 // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. "use strict"; import inquirer, { DistinctQuestion } from "inquirer"; import { NodeType, QTreeNode, OptionItem, Question, ConfigMap, getValidationFunction, RemoteFuncExecutor, isAutoSkipSelect, getSingleOption, S...
import get from 'lodash/get'; import reduce from 'lodash/reduce'; import { BatchRequestOptions, BatchRequestResponse, JsonRequestOptions, Namespace, NetworkError, ParsedResponse, RequestOptions, RequestResponse, SingleBatchRequestError, SingleBatchRequestResponse, SOAPHeader } from './types'; export const D...
<reponame>consenlabs/polkadot-staking-dapp<filename>src/kusama/lib/claims.ts import { ApiPromise } from '@polkadot/api'; import { WsProvider } from '@polkadot/rpc-provider'; import { web3Accounts, web3Enable } from '@polkadot/extension-dapp' import { pubsub } from './event'; import { web3FromSource } from '@polkadot/ex...
<reponame>yeonjuan/mode-image import type { CreateCanvas, CloneCanvas, ImageSource, Options, PartialSize, RectArea, NumberPair, Size, CreateImage, CanvasContext, Task, CanvasCreator, ImageCreator, Drawable, DataURLOptions, } from "./types"; const DEFAULT_OPTIONS = { createCanvas: () => ...
<reponame>ESD6-blockr/blockr-p2p-lib import { logger } from "@blockr/blockr-logger"; import { Guid } from "guid-typescript"; import { MessageType } from "./enums"; import { UnknownDestinationError } from "./exceptions/unknownDestinationError"; import { IMessageListener } from "./interfaces/iMessageListener"; import { ...
import cricketPartDataRaw from './../assets/cricketDate.json'; import * as _ from 'lodash'; // import cricketImages from './../assets/images/crickets/*.webp'; export interface ICricketBattleData { durability: number, 耐力: number, 斗性: number, 气势: number, 角力: number, 牙钳: number, InjuryLeve...
import React from 'react'; import { CommandBar, ICommandBarItemProps } from '@fluentui/react/lib/CommandBar'; import { DetailsList, DetailsListLayoutMode, Selection, SelectionMode, IColumn } from '@fluentui/react/lib/DetailsList'; import { Fabric } from '@fluentui/react/lib/Fabric'; import { Checkbox } from '@fluentui/...
// https://developer.scrypted.app/#getting-started import sdk, { Settings, DeviceProvider, ScryptedDeviceType, OccupancySensor, Setting, HttpRequest, PasswordStore, PushHandler, PositionSensor, ScryptedInterface } from "@scrypted/sdk"; import { ScryptedDeviceBase } from "@scrypted/sdk"; const { log, deviceManager, endp...
import * as React from 'react' import { connect } from 'react-redux' import { browserHistory } from 'react-router' import * as actions from '../../../actions/eventActions' import { List, ListItem, IconMenu, MenuItem, IconButton, Paper, Dialog, FlatButton } from 'material-ui' import MoreVertIcon from 'material-ui/svg-ic...
import { Observable, Observer } from 'rxjs'; import { dockerExec } from '../docker'; import { CommandType } from '../config'; import { findFromEnvVariables } from '../deploy'; import * as style from 'ansi-styles'; import { error } from 'util'; import chalk from 'chalk'; import * as envVars from '../env-variables'; exp...
import React, { createContext, useRef, useContext } from "react" import cn from "classnames" import { useTable, useTableRow, useTableColumnHeader, useTableCell, useTableRowGroup, } from "@react-aria/table" import { useTableState, TableState, TableHeader as ReactAriaTableHeader, TableBody as ReactAriaT...
import React from 'react'; import styled from 'styled-components'; import Layout from '../../components/layout'; const Wrapper = styled.div` display: flex; flex-direction: column; max-width: 60rem; justify-content: center; font-size: 1.3rem; h1, h2, h3, details { margin: 1rem 0; } summary { cursor: poi...
import {Typography, withStyles} from '@material-ui/core' import {CSSProperties,} from '@material-ui/core/styles/withStyles' import * as React from 'react' import { findTimeZone, getUTCOffset } from 'timezone-support' import {HOURS_IN_DAY} from '../../constants' import EventRenderer from '../../model/EventRenderer' impo...
'use strict'; import { Hash } from "crypto"; import { WriteStream, createWriteStream } from "fs"; import { fileURLToPath } from "url"; const fs = require('fs'); const es = require('event-stream'); process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString: string = ''; let inputLines: string[] = [];...
import React from "react"; import CssBaseline from "@material-ui/core/CssBaseline"; import Drawer from "@material-ui/core/Drawer"; import Hidden from "@material-ui/core/Hidden"; import List from "@material-ui/core/List"; import ListItem from "@material-ui/core/ListItem"; import CreditCardTwoToneIcon from "@material-ui/...
<gh_stars>1-10 /* University of Illinois/NCSA Open Source License Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved. Developed by: Terrain Data, Inc. and the individuals who committed the code in this file. https://github.com/terraindata/terrain ...
import { Component, ElementRef, forwardRef, HostListener, Input, OnInit, ViewChild, EventEmitter, Output } from '@angular/core'; import { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors } from '@angular/forms'; import * as moment from 'moment'; export const INPUT_DATE_VALU...
<filename>libraries/botbuilder-ai/src/languageTranslator.ts<gh_stars>0 /** * @module botbuilder-ai */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Activity, ConversationResourceResponse, Middleware } from 'botbuilder'; import * as LanguageMap from ...
<gh_stars>1-10 import * as axios from "axios"; import * as discord from 'discord.js'; const Axios = axios.default; type noblox = object | any; type ClientOptions = { provider: string }; const defaultClientOptions = { provider: 'bloxlink' }; type Provider = { baseURL: string, requests: number, per: number, h...
import { ChangeDetectorRef, Component, ViewChild, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute, Params, Router } from '@angular/router'; import { Subscription } from 'rxjs/Subscription'; import { DocumentDefinition } from 'syndesis.data.mapper'; import { MappingDefinition } from 'syndesis.data.map...
// // Copyright 2020 The Project Oak Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
import fs from 'fs-extra' const ISOMER_CONFIG = ` description: An Isomer site of the Singapore Government ################################################################################################################## # Everything below this line is Isomer-specific configuration. There should not be a need to edit...
import { makeStartLoading, makeStopLoading, UpdateState } from 'front-end/lib'; import { makePageMetadata } from 'front-end/lib'; import { isSignedOut } from 'front-end/lib/access-control'; import { Route, SharedState } from 'front-end/lib/app/types'; import { ComponentView, emptyPageAlerts, emptyPageBreadcrumbs, Globa...
<reponame>kithminikatuwandeniya/mini-cart<gh_stars>0 import {Component, OnInit} from '@angular/core'; import {Page} from '../models/page'; import {EventService} from './service/event.service'; import {Event} from '../models/event'; import {IDropdownSettings} from 'ng-multiselect-dropdown'; import {Transaction} from '.....
import React from 'react'; import { useStaticQuery, graphql } from "gatsby" import Image from 'gatsby-image'; import { Link } from "gatsby"; import mediaqueries from "@styles/media"; import Headings from "@components/Headings"; import styled from "@emotion/styled"; import { css } from "@emotion/core"; const ArticlesF...
import React from "react"; import invariant from "invariant"; import { ScrollView } from "react-native"; import { useTranslation } from "react-i18next"; import { Account, AccountLike, Transaction, TransactionStatus, } from "@ledgerhq/live-common/lib/types"; import { getMainAccount, getAccountUnit, } from "@...
const brandList = [ { name: 'Spectra Premium', url: 'spectra-premium', imgsrc: 'assets/images/Brands/Spectra.png', }, { name: 'A1 Cardone', url: 'a1-cardone', imgsrc: 'assets/images/Brands/AICardone.png', }, { name: 'Intermotor', url: 'intermotor', imgsrc: 'assets/images/Br...
import {Parser} from 'argumentorum'; import {MaybePromise} from '../../types'; import {ArgumentContext, CommandContext} from '../contexts'; import {CommandError, CommandErrorType} from '../errors'; import {CommandArgument} from './Argument'; export type MapArguments<A extends any[]> = Map<string, null | CommandError |...
<filename>src/core/types.d.ts /* Copyright 2021 Esri 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 o...
<reponame>imadharilla/GanyJS import * as THREE from 'three'; const d3Color = require('d3-color'); const d3Chromatic = require('d3-scale-chromatic'); const colormapsInterpolators: { [name: string]: any } = { BrBG: d3Chromatic.interpolateBrBG, PRGn: d3Chromatic.interpolatePRGn, PiYG: d3Chromatic.interpolatePiYG,...
import { defineComponent, computed, ref, ExtractPropTypes, PropType, } from 'vue'; import { isArray, isUndefined } from 'lodash-es'; import getPrefixCls from '../_util/getPrefixCls'; import LoadingOutlined from '../icon/LoadingOutlined'; import RightOutlined from '../icon/RightOutlined'; import Chec...
import React from 'react' import { gql, useLazyQuery, MutationFunction } from '@apollo/client' import Accordion from '@mui/material/Accordion' import AccordionSummary from '@mui/material/AccordionSummary' import AccordionDetails from '@mui/material/AccordionDetails' import Typography from '@mui/material/Typography' im...
import { TutorialPage } from './../pages/tutorial/tutorial'; import { InvitePage } from './../pages/invite/invite'; import { SettingsPage } from './../pages/settings/settings'; import { AboutPage } from './../pages/about/about'; import { PartnersPage } from './../pages/partners/partners'; import { SponsorsPage } from '...
import Vue, {VNode} from 'vue' import Task from "@scripts/model/api/task/Task" import AccountApi from "@scripts/api/AccountApi" import AccountSearchRequest from "@scripts/model/api/AccountSearchRequest" import User from "@scripts/model/api/user/User" import {Mutex} from 'async-mutex' const mutex = new Mutex() export d...
import { assert } from "console"; interface mervVariables {[variableName: string]: any} interface mervFunctions {[functionName: string]: Function} interface mervOpts { variables?: mervVariables, functions?: mervFunctions, } const booleanOperations = [ '&&', '||', '==', '>', '>=', '<', ...
// vendor import React, { FC, useContext, useState, useCallback, useRef, } from 'react'; import { faPlus } from '@fortawesome/free-solid-svg-icons'; import classNames from 'classnames'; import ReactTooltip from 'react-tooltip'; // app context import AppContext from 'Src/AppContext'; import NamespaceContext fr...
//@ts-check import * as React from 'react'; import Dialog from 'material-ui/Dialog'; import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton'; import SvgIcon from 'material-ui/SvgIcon'; import { black, grey500, grey900, blue900 } from 'material-ui/styles/colors'; import { Collapse } from 'react-collapse'...
import { broadcastStorageEvent } from './StorageEvent.js'; import { DOMException } from './Utility/DOMException.js'; import { url } from './Utility/URL.js'; interface State { backerKMP: Map<string, string> type: 'local' | 'session' | null, url: string } export const instances: Storage[] = []; const getQu...
import EventNode from './eventLogNode'; import {EventLogObject} from './apollo11types'; import eventLogIsDifferent from './objectDifference'; export default class EventLogDataObject { eventHead: EventNode | null; eventTail: EventNode | null; eventLength: number; constructor() { this.eventHead = null; ...
import React, { useState } from 'react'; import { Box, Grid, Paper, TextField, Typography, Divider, IconButton, Tooltip, Snackbar, Alert, AlertColor, Chip, Stack, } from '@mui/material'; import { useFormik } from 'formik'; import CodeOffIcon from '@mui/icons-material/CodeOff'; import RefreshIc...