text
stringlengths
3.3k
33k
<reponame>dr-mohamed-benkhalifa/ontimize-web-ng2 import {Component, Inject, Injector, forwardRef, ElementRef, ViewChild, OnInit, NgZone, ChangeDetectorRef, NgModule, ModuleWithProviders, ViewEncapsulation} from '@angular/core'; import {MdInput} from '@angular/material'; import {ValidatorFn } from '@angular/fo...
import knex from 'knex' import * as Constants from './utils/constants' import * as DateUtils from './utils/date' const knexConfig = { client: 'sqlite3', connection: { filename: 'database.sqlite3' }, useNullAsDefault: true } const database = knex(knexConfig) /** * Database operations */ //...
<filename>chrome/browser/resources/extensions/error_page.ts // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'chrome://resources/cr_elements/cr_button/cr_button.m.js'; import 'chrome://resources/c...
<gh_stars>0 import { getManager, EntityManager } from "typeorm"; import { SaleTemplateRow } from "../../db/profit/entity"; import { compress, merge, round } from "../../helpers"; /** Query result type */ type result = ReturnType<EntityManager["query"]>; /** * Execute the `pInsertarRenglonesPlantillaVenta` stored ...
<reponame>buttercup/buttercup-core<gh_stars>100-1000 import facadeFieldFactories from "./entryFields"; import { createFieldDescriptor, getEntryPropertyValueType, setEntryPropertyValueType } from "./tools"; import Entry from "../core/Entry"; import Group from "../core/Group"; import { EntryFacade, EntryFacadeFie...
import { Autowired, Injectable } from '@opensumi/di'; import { ITaskDefinitionRegistry, IProblemMatcherRegistry, Event, IProblemPatternRegistry, Emitter, } from '@opensumi/ide-core-common'; import { Disposable, Uri, PreferenceService, localize, IDisposable, QuickOpenItem, QuickOpenService, for...
<gh_stars>1-10 import { expect } from 'chai'; import { describe, it } from 'mocha'; import { dedent } from '../../__testUtils__/dedent'; import { inspectStr } from '../../__testUtils__/inspectStr'; import { kitchenSinkSDL } from '../../__testUtils__/kitchenSinkSDL'; import { kitchenSinkQuery } from '../../__testUtils_...
/** * @license * Copyright 厦门乾元盛世科技有限公司 All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file. */ import { Component, Input, Output, EventEmitter, ElementRef, ViewEncapsulation, Inject, HostBinding, AfterViewInit, OnDestroy, ViewChild...
import Taro, { useState } from '@tarojs/taro'; import { View, Text, Image, Video } from '@tarojs/components'; import { AtIcon, AtActivityIndicator, AtModal, AtModalContent, AtModalAction, AtButton, AtCurtain } from 'taro-ui' import { baseUrl } from '../../config/index'; import Request from '../../utils/request'; import...
<reponame>bstservices/graphql-tsgen<filename>packages/graphql-tsgen/src/codegen.ts /* Copyright 2019 BST Event Services, 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 * http:/...
import React from 'react'; import { Text, Heading, Box, useTheme, List, ListItem, Flex } from '@chakra-ui/core'; import { Layout } from '../../templates/Layout/Layout'; import { Number } from '../../atoms/Number/Number.component'; import { Section } from '../../organisms/Section/Section'; export const CourseMenuPage ...
import type { Lang } from "../.internal/Lang"; // IRISH const lang: Lang = { "AD": "Andóra", "AE": "Aontas na nÉimíríochtaí Arabacha", "AF": "An Afganastáin", "AG": "Aintíge agus Barbúda", "AI": "Anguilla", "AL": "An Albáin", "AM": "An Airméin", "AO": "Angóla", "AQ": "An Antartaice", "AR": "An Airgintín", "...
const fs = require('fs'); const path = require('path'); import { ChildProcess, exec, ExecException } from 'child_process'; import { installExtension, uninstallExtension, } from './lib/azure-devops/extensions'; import { Command, DeployTarget, InputArgs, parseInputParameters, } from './cli-args'; import { g...
/** * @fileoverview Module contains the function for building a Shader. */ import {AttributeData, Attribute} from './attributes'; import {Viewport, glContext, glProgram, glRender, sendIndices} from './gl'; import {CubeFace} from './math'; import { CubeCameraUniformImpl, CubeTextureImpl, TextureUniform, Textu...
import { AttributeType } from "@llkennedy/padlock-api"; import React from "react"; import { CKFalse, CKTrue, EncodeString } from "./util/Encode"; import { DecodeKeyType, EncodeKeyType, KeyTypes } from "./util/KeyType"; import { EncodeObjectClass, ObjectClass } from "./util/ObjectClass"; export class Data extends Objec...
/*! Copyright (c) 2020 Siemens AG. Licensed under the MIT License. */ import { AdvertiseEvent, ResolveEvent, TimeInterval, Uuid } from "@coaty/core"; import { NodeUtils } from "@coaty/core/runtime-node"; import { MockSensorIo, Observation, ObservationPublicationType, Sensor, SensorContainer, Se...
// Copyright 2020 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
<filename>src/grid/transform-rectangle.ts import { Rectangle, RectangleLike } from './rectangle'; import { Flip, CardinalTurn, cardinalDirectionFromNorthTurn, CardinalDirection, cardinalOrientationFromFlipAndCardinalDirection, cardinalOrientationFlip, Axis, cardinalOrientationAddCardinal...
<reponame>JuhJuhButts/Chintow-2<filename>src/commands/root.ts import { blackMarket, platyborg } from "../util/index.js"; import { Collection, CommandInteraction, GuildMember, Message, MessageEmbed, TextChannel } from "discord.js"; import * as pm2 from "pm2"; import { ApplicationCommandOptionType } from "discord-api-typ...
import React, { MutableRefObject, useMemo, useRef, useState } from 'react'; import { INodeProps, Node } from './Node'; import classNames from 'classnames'; import { ResizableProps } from 're-resizable'; import 'document.contains'; import './styles.less'; import { calcLineValues, calcPosValues, checkDragOut, getGuideLin...
//@ts-nocheck const YEAR = 'year'; const MONTH = 'month'; const DAY = 'day'; const HOUR = 'hour'; const MINUTE = 'minute'; const SECOND = 'second'; const MILLISECOND = 'millisecond'; const month_names = { en: [ 'January', 'February', 'March', 'April', 'May', 'June', ...
<gh_stars>10-100 /** * @file Parser */ import {keyMirror} from '@co-hooks/util'; import {IToken, PRECEDENCE, TokenType, Tokenizer, UNARY_PREFIX} from './Tokenizer'; export enum AstNodeType { CONDITIONAL = 'conditional', UNARY = 'unary', BINARY = 'binary', PROPERTY = 'property', LITERAL = 'literal...
<reponame>iam2r/better-scroll<filename>packages/wheel/src/index.ts import BScroll from '@better-scroll/core' import { style, hasClass, getRect, ease, EaseItem, isPlainObject } from '@better-scroll/shared-utils' import propertiesConfig from './propertiesConfig' export type wheelOptions = Partial<WheelConfig...
/** * @desc * * @使用场景 * * @Date 2019/4/2 **/ import * as request from "request"; import * as fse from "fs-extra"; import * as _ from "lodash"; import { join } from "path"; import SwaggerCore from "./core"; import * as minimatch from "minimatch"; import ApiCompileHooks from "./hook"; import { IWe...
<filename>src/core/queryObserver.ts import { getStatusProps, isDocumentVisible, isServer, isValidTimeout, noop, replaceEqualDeep, shallowEqualObjects, timeUntilStale, } from './utils' import { notifyManager } from './notifyManager' import type { FetchNextPageOptions, FetchPreviousPageOptions, Quer...
<reponame>kairu-ms/autorest.az import { Channel } from '@autorest/extension-base'; import { Parameter, SchemaType } from '@azure-tools/codemodel'; import { isNullOrUndefined } from '../../utils/helper'; import { EXCLUDED_PARAMS } from '../../utils/models'; import { CodeModelCliImpl } from './CodeModelAzImpl'; import { ...
<reponame>ch-robinson-internal-test/kubelens<gh_stars>10-100 import OktaAuth from '@okta/okta-auth-js'; import { AuthError } from './AuthError'; import { getStateSession, setStateSession, removeStateSession, parseState, getRedirectUri } from './utils'; import decode from 'jwt-decode'; import { Config } from 'types'; c...
'use strict'; import { Command, Disposable, Event, TreeItem, TreeItemCollapsibleState, TreeViewVisibilityChangeEvent } from 'vscode'; import { GitFile, GitReference, GitRevisionReference } from '../../git/git'; import { GitUri } from '../../git/gitUri'; import { Logger } from '../../logger'; import { debug, Functions, ...
<filename>src/module/tabs/classStep.ts<gh_stars>10-100 /* Functions used exclusively on the Class tab */ import { Step, StepEnum } from '../Step'; import * as CONSTANTS from '../constants'; import * as Utils from '../utils'; import * as ProficiencyUtils from '../proficiencyUtils'; import HiddenOption from '../options...
// tslint:disable no-console interface Argv { suppress: string[]; compiler: string; project: string; watch: boolean; stats: boolean; help: boolean; suppressConfig?: string; _: string[]; } const argv: Argv = require("yargs") .array("suppress").default("suppress", []) .string("comp...
import { core, utils } from '@ckb-lumos/base'; import { CKBIndexerClient, SearchKey, SearchKeyFilter } from '@force-bridge/ckb-indexer-client'; import type * as Indexer from '@force-bridge/ckb-indexer-client'; import { CkbBurnRecord, CkbMintRecord } from '@force-bridge/reconc'; import { Amount } from '@lay2/pw-core'; i...
<reponame>wsporto/typesql import { SchemaDef, CamelCaseName, TsFieldDescriptor, ParameterDef, ColumnDef } from "./types"; import fs from "fs"; import path, { parse } from "path"; import { DbClient } from "./queryExectutor"; import camelCase from "camelcase"; import { isLeft } from "fp-ts/lib/Either"; import { none, Opt...
<filename>src/app/pages/math/pis/pis.component.ts import { Component, OnInit, ViewChild, ElementRef, NgZone, AfterViewInit, AfterContentInit } from '@angular/core'; import { utils } from "src/app/services/math/math.service"; export interface ICard { x: number, y: number, z: number, img: HTMLImageElement } @Co...
export interface BibleBook { bookNumber: number; bookName: string; chapters: number; } export const bibleBooks: { [type: string]: BibleBook[] } = { 'Altes Testament': [ { bookNumber: 1, bookName: '01 - Genesis', chapters: 50 }, { bookNumber: 2, bookName: '02 - Exodus', chapters: 40 }, { bookNumbe...
<gh_stars>1-10 /* * This is a set of helpers meant for use with @cosmjs/cli * With these you can easily use the cw721 contract without worrying about forming messages and parsing queries. * * Usage: npx @cosmjs/cli@^0.23 --init https://raw.githubusercontent.com/CosmWasm/cosmwasm-plus/master/contracts/cw721-base/he...
import axios from "../api"; import cheerio from "cheerio"; import _ from "lodash"; import { gameWeekArgs } from "./schedule/gameWeekArgs"; import { scheduleGame } from "./schedule/scheduleGame"; const nflCurrentSchedule = "http://www.nfl.com/liveupdate/scorestrip/ss.xml"; // const nflCurrentSchedulePostSeason = // "ht...
import { Table, Text, Tbody, Thead, Tr, Th, Td, Link, VStack, Icon, Button, Grid, Heading, Tab, TabList, Tabs, TabPanels, TabPanel, HStack, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Flex, GridItem, } from "@chakra-ui/react"; import { TransactionResponse } from "@ethersp...
import type { Database } from 'better-sqlite3'; import crypto from 'crypto'; import { diary, enable } from 'diary'; import { sprintf } from 'diary/utils'; import fs from 'fs'; import type { IncomingMessage, ServerResponse } from 'http'; import { dim, red, yellow } from 'kleur/colors'; import { customAlphabet, nanoid } ...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. const {assert} = chai; import {assertNotNull, renderElementIntoDOM} from './DOMHelpers.js'; import {reset} from '../../../../front_end/inspector_overlay/...
<gh_stars>100-1000 import { BigNumber } from "bignumber.js"; import bchaddr from "bchaddrjs"; import cashaddr from "cashaddrjs"; import type { Transaction, TransactionRaw, FeeItems, FeeItemsRaw, BitcoinOutput, UtxoStrategy, CoreBitcoinLikeOutput, CoreBitcoinLikeInput, BitcoinInput, BitcoinResources,...
<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------...
import { reasonPhrases } from "./constants"; import { isArrayBuffer } from "@aws-sdk/is-array-buffer"; import { HeaderBag, HttpRequest, HttpResponse, HttpMessage, QueryParameterBag } from "@aws-sdk/types"; export type DerivedHttpRequest = Partial<HttpRequest<string>> & HttpMessage<string> & { method: strin...
<filename>assets/app.ts class arbol { public ramas: arbol[]; public miPuzzle: any[][]; public padre: arbol | null; constructor( puzzle: any[][], public manhattan: number ) { this.padre = null; this.ramas = []; this.miPuzzle = []; for...
import React, { useState } from 'react'; import { Icon, Text, FlexBox, Wrapper, Button, BorderBox, DropBox, Section, Input } from '../../modules/globalStyle'; import { StackSymbols } from '../StackSymbols'; import { useStore } from '../../store'; import CountUp from 'react-countup'; import { observer, useLocalStore, us...
<reponame>tkey/tkey /// <reference types="node" /> import { DirectWebSDKArgs } from "@toruslabs/torus-direct-web-sdk"; import BN from "bn.js"; import { Point, Polynomial, PublicPolynomial, PublicPolynomialMap, PublicShare, PublicSharePolyIDShareIndexMap, Share, ShareMap, ShareStore, ShareStoreMap, ShareStorePolyIDShare...
<reponame>talenfisher/x3p.js import { TypedArray } from "../../data-types"; import createQuad from "./quad"; import dtype from "@talenfisher/dtype"; import ndarray from "ndarray"; import gradient from "ndarray-gradient"; import Axis from "../../axis"; const EPSILON = 0.0001; const MULTIPLY = 5; const DISTANCE_THRESH...
<gh_stars>1-10 import aes from "keystore-idb/lib/aes/index.js" import config from "keystore-idb/lib/config.js" import rsa from "keystore-idb/lib/rsa/index.js" import utils from "keystore-idb/lib/utils.js" import { KeyUse, SymmAlg } from "keystore-idb/lib/types.js" import { webcrypto } from "one-webcrypto" import * as ...
import { ERROR, err } from "../errors"; import { logUnhandledException } from "./UnhandledErrorEmitter"; import { I18nService } from "./I18nService"; /** @internal Format a string with a series of parameters, like C-style sprintf */ export function sprintf(format: string, args: any[]) { let idx = 0; return format....
<reponame>twitterdev/serverless-flow-framework // Copyright 2021 Twitter, Inc. // SPDX-License-Identifier: Apache-2.0 // Resource is the local representation of a single resource in // the cloud. A cloud resource can be a database table, a storage // bucket, a serverless function, or a logical component within a // la...
import React, { useEffect, useState } from 'react'; import styles from './_form.scss'; import { Form, Formik } from 'formik'; import * as Yup from 'yup'; import { OHRIFormContext } from './ohri-form-context'; import { openmrsObservableFetch, useCurrentPatient, useSessionUser, showToast } from '@openmrs/esm-framework'; ...
<reponame>Ganesan-Chandran/vscode-json-utility import jsonic = require("jsonic"); import { getJSONUtilityConfiguration } from "./config"; import { formatInterfaceName, formatPropertyName, getOptionalKeys, getType, isArray, isBoolean, isDate, isNullOrUndefined, isNumber, isObject, isString, isSupportedJsonFormat, is...
import React from 'react'; import { makeStyles, createStyles } from '@material-ui/core/styles'; import { Box, Grid, Typography } from '@material-ui/core'; import { useHistory } from 'react-router-dom'; import Base from './assets/8_Success/Base.png'; import ThumbsUp from './assets/8_Success/ThumbsUp.png'; import { Pre...
import { keys } from '../platform/util'; import { ChangeSet } from './ChangeSet'; import { tokenize, StateStack, TokenizeConfig, FrameMode, sepList, reComments } from './tokenize'; export interface ParseConfig { /** Ranges of dead code and constant branch conditions * detected by conditional compilation. */ chan...
import { getAddress } from "@ethersproject/address"; import { ChainId, Token, Fetcher, Route, Pair, Trade, TokenAmount, TradeType, } from "@uniswap/sdk"; import UniswapV2Erc20Contract from "@uniswap/v2-core/build/UniswapV2ERC20.json"; import UniswapV2FactoryContract from "@uniswap/v2-core/build/UniswapV...
<reponame>cdk-automation/aws-fargate-fast-autoscaler<filename>src/autoscaler.ts import * as cdk from '@aws-cdk/core'; import * as ec2 from '@aws-cdk/aws-ec2'; import * as ecs from '@aws-cdk/aws-ecs'; import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2'; import * as iam from '@aws-cdk/aws-iam'; import * as sfn f...
/* * Copyright (C) 2019 Toshiba Corporation * SPDX-License-Identifier: Apache-2.0 */ import { interaction, Point, Sprite, Texture } from "pixi.js"; import InteractionEvent = interaction.InteractionEvent; import { DAlignWith } from "./d-align-with"; import { DApplications } from "./d-applications"; import { DBase, D...
import * as level from '../level'; import * as util from '../util'; export class LyricsEditor { containerElement: HTMLElement; firstLine: LineEditor; lastLine: LineEditor; constructor(readonly playAt: (time: number, duration?: number) => void) { this.containerElement = util.getElement(document, '.lyrics')...
import Phaser, { Physics } from "phaser" import Chest from '../items/Chest' import Lever from '../items/Lever' import Game from '../scenes/Game' //Create new Scene Event Emitter, but too lazy for now import { sceneEvents } from '../events/EventCenter' declare global { namespace Phaser.GameObjects { inter...
<gh_stars>0 import {BigNumber, ethers} from 'ethers'; const mcl = require('mcl-wasm'); export const PRIME = BigNumber.from('0x30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47'); export const ORDER = BigNumber.from('0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001'); export type mclG...
/** @jsx jsx */ import { jsx } from "@emotion/core"; import { Button, Dialog, IColumn, InputField, ITab, SelectField, TableWrapper, TabsWrapper, } from "@magnit/components"; import { ETaskStatus, IBaseTask } from "@magnit/entities"; import { AddIcon, ReturnIcon, SendIcon } from "@magnit...
import os from 'os'; import path from 'path'; import fs from 'fs'; import cp from 'child_process'; import util from 'util'; import * as net from 'net'; import { window, workspace, ProgressLocation, Disposable } from 'vscode'; import { LanguageClient, LanguageClientOptions, StreamInfo, ServerOptions, CloseAction, ErrorA...
import {E} from "js-vextensions"; import {BaseComponent, GetInnerComp} from "react-vextensions"; import {demoMap, demoRootNodeID} from "UI/Home/DemoMap"; import {Connect} from "../../Frame/Database/FirebaseConnect"; import VReactMarkdown from "../../Frame/ReactComponents/VReactMarkdown"; import {styles} from "../../Fra...
/* eslint-disable new-cap */ /* eslint-disable max-len */ import BaseConnection, { Transaction, Order } from "../target.types/base"; import ccxtConnection from "../target.types/ccxt"; import * as _ from "lodash"; const web3 = require("web3"); const etherscan = require("etherscan-api"); /** * @description A Etherscan ...
import {Observable} from 'rxjs/Observable'; import {Subscriber} from 'rxjs/Subscriber'; import {Subject} from 'rxjs/Subject'; import {OpaqueToken, Inject, provide} from '@angular/core'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/do'; import 'rxjs/add/operator/toArray'...
import { createConnection, TextDocuments, ProposedFeatures, InitializeParams, DidChangeConfigurationNotification, CompletionItem, CompletionList, Hover, TextDocumentPositionParams, TextDocumentSyncKind, InitializeResult, ShowMessageNotification, MessageType, WorkspaceFolder, WorkspaceFoldersChangeEvent, Docum...
import { SelectionModel } from '@angular/cdk/collections'; import { Component, OnInit } from '@angular/core'; import { PriceApiService } from '../../services/priceApi.service'; import { ContractsService } from '../../services/contract.service'; import { Chart } from 'chart.js'; import { Sort } from '@angular/material...
import { QR8bitByte } from './qr-8-bit-byte' import { QRUtil } from './qr-util' import { QRRSBlock } from './qr-rs-block' import { QrBitBuffer } from './qr-bit-buffer' import { QRPolynomial } from './qr-polynomial' function JsQrCode(typeNumber: any, errorCorrectLevel: any) { this.typeNumber = typeNumber this.error...
import * as Argv from 'cafe-args' import 'reflect-metadata' import { Aggregation, findFirstAggregration } from './aggregation' import { Application } from './application' import { Argument, getArgument, IArgument } from './argument' import { generateAutocompletion, installAutocompletion, maybeAutocomplete } from './aut...
// Copyright 2020 CUE Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
<filename>src/store/index.ts<gh_stars>0 import { observable, action, configure, computed, flow } from "mobx"; import arrayToTree, { Tree } from "array-to-tree"; import { ValidationMessage } from "@jeltemx/mendix-react-widget-utils/lib/validation"; import { EntryObject, EntryObjectOptions, EntryObjectExtraOptions, Tree...
<filename>src/server.ts import { MuSocket, MuSocketServer } from './socket'; import { MuMessageInterface, MuAnyMessageTable, MuAnyProtocolSchema, MuProtocolFactory } from './protocol'; import { MuTrace } from './trace'; export class MuRemoteClient<Schema extends MuAnyMessageTable> { public readonly sessionId:strin...
import InvoiceModel from "../../Database/Models/Invoices.model"; import ProductModel from "../../Database/Models/Products.model"; import { IInvoice_Dates } from "@interface/Invoice.interface"; import { IOrder } from "@interface/Orders.interface"; import { idInvoice } from "../Generator"; import dateFormat from "date-an...
<gh_stars>0 import { AbstractControl, FormGroup, ValidatorFn, Validators, } from '@angular/forms'; import { Observable, of, Subscription } from 'rxjs'; import * as _ from 'lodash'; import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; import { FormComponent } from '../components/AbstractFormCompo...
import * as ace from 'ace-builds/src-noconflict/ace'; import 'ace-builds/src-min-noconflict/ext-language_tools'; export default updateCompletions; // There's stuff below that logs to console a lot // documentation on this autocompletion is light // and you may find it helpful to print some vars out during dev const D...
<gh_stars>0 import { Component, OnInit, ViewChild } from '@angular/core'; import { DataConnectorService, Workspace } from '../data-connector.service'; import { MatSort, MatTableDataSource, MatPaginator } from '@angular/material'; declare var require: any var csvjson = require('csvjson'); const uuidv4 = require('uuid/...
'use strict'; import { Document, Model, Schema } from 'mongoose'; import MongooseController from '../../../../config/lib/MongooseController'; import CoreServerHelpers from '../../../core/server/controllers/CoreServerHelpers'; import { IOpportunity } from '../../shared/IOpportunityDTO'; export interface IOpportunityMo...
<reponame>YsidroFernandez/Ignus import { Component, OnInit,ViewEncapsulation, ChangeDetectionStrategy, ViewChild, TemplateRef } from '@angular/core'; import { routerTransition } from '../../../router.animations'; import { faEye } from '@fortawesome/free-solid-svg-icons'; import { NgbModal, ModalDismissReasons, ...
import { Box, Button, makeStyles, TextField, MenuItem, } from '@material-ui/core'; import { Add, Edit } from '@material-ui/icons'; import { Form, Formik } from 'formik'; import moment from 'moment'; import React from 'react'; import { useHistory } from 'react-router-dom'; import { IProjectDto, ICourseDto,...
import { CogTiff, TiffVersion } from '@cogeotiff/core'; import { CommandLineAction, CommandLineIntegerParameter, CommandLineStringParameter } from '@rushstack/ts-command-line'; import c from 'ansi-colors'; import { promises as fs } from 'fs'; import * as path from 'path'; import { ActionUtil, CliResultMap } from './act...
import React, { FormEvent, KeyboardEvent, useEffect, useState, useRef, } from 'react'; import { initialContext, RichMentionsContext, TMentionItem, TMentionContext, TMentionConfig, } from './RichMentionsContext'; import { getFragment } from './utils/getFragment'; import { fixCursorInsertion } from ...
<filename>src/index.ts // 引入样式文件 require('./index.scss') import template from './template' import { hsv2hsl, parseColor, hsv2rgb, rgb2hex } from './color' import Draggable, { Coordinate } from './draggable' import { $, PlainObject, isFunction } from './utils' // component name const UI_NAME = 'mo-color-picker' type ...
import { Model, model } from 'mongoose'; import { validateEmail } from '../../data/utils'; import { ActivityLogs, Conversations, Deals, EngageMessages, Fields, InternalNotes, Tickets } from './'; import { STATUSES } from './definitions/constants'; import { customerSchema, ICustomer, ICustomerDocument } from './definiti...
/* @auto-file-header * Copyright (c) 2020 <NAME> and Contributors. * This file is a part of Auto File Header * Automatically update your file headers with an extendible config file! * Licensed under MIT. See LICENSE file in the project root for full license information. */ import { ConfigRoot, TemplateFunction } ...
/// <reference path='../../vendor/google-ima3-sdk.d.ts'/> import { IProvider } from './ad-provider' import { AdType, AdEvents, H5AdWrapper } from '../h5-ad-wrapper' enum GoogleAdEvent { start, firstQuartile, midPoint, thirdQuartile, complete } export interface ICustomParams { [name: string]: ...
<gh_stars>10-100 import { EventWebhook } from '@sendgrid/eventwebhook'; import type { ClientResponse } from '@sendgrid/mail'; import addrs from 'email-addresses'; import EmailForwardParser from 'email-forward-parser'; import { constants as fsConstants, promises as fs } from 'fs'; import _ from 'lodash'; import path fro...
import * as React from 'react'; import * as ReactDom from 'react-dom'; import { PropertyFieldListPicker, PropertyFieldListPickerOrderBy } from '@pnp/spfx-property-controls/lib/PropertyFieldListPicker'; import { PropertyPanePropertyEditor } from '@pnp/spfx-property-controls/lib/PropertyPanePropertyEditor'; import { Prop...
import log from 'loglevel'; import chalk from 'chalk'; import puppeteer from 'puppeteer-extra'; import { Listings } from './Listings'; import * as prefix from 'loglevel-plugin-prefix'; import * as moment from 'moment'; import * as fs from 'fs'; import * as UserAgent from 'user-agents'; // For some reason, the followin...
/* * Power BI Visual CLI * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""Software""), to deal * in the Software without restriction, including...
import { Component, ViewChild, Input, OnInit } from '@angular/core'; import { Message } from 'primeng/components/common/api'; import { Table } from 'primeng/table'; import { SelectItem } from 'primeng/api'; import { Config } from '../configs/config'; import { ConfigService } from '../configs/configservice'; import { Gl...
import { v4 as uuidv4 } from "uuid"; import pool from "../../config/dbconfig"; import IDevice from "../device/device.interface"; import ITopic from "../topic/topic.interface"; import ITopicUpdate from "../topic/topicUpdate.interface"; import { createAlert } from "./alertDAL"; import { getDataSourceByProp } from "...
import React, { FunctionComponent, useState, useEffect } from 'react'; import ReactFlow, { removeElements, addEdge, MiniMap, Controls, Background, isNode, } from 'react-flow-renderer'; import dagre from 'dagre'; import { Button, Menu, MenuItem } from '@material-ui/core/'; import { elements, recoilObj } from...
import { isHasOwn, keys } from '../functions/common' const supports = { Blob: typeof Blob !== 'undefined', FormData: typeof FormData !== 'undefined', URLSearchParams: typeof URLSearchParams !== 'undefined', } export class DOMException extends Error { public constructor(message: string, name: string) { su...
import { Address, BigInt, BigDecimal, log } from '@graphprotocol/graph-ts' import { GeistToken as TokenContract } from "../../generated/GeistToken/GeistToken" import { Token as TokenEntity, RewardToken as RewardTokenEntity, UsageMetricsDailySnapshot as UsageMetricsDailySnapshotEntity, ...
<filename>src/app/routes/project/services/selection-context/selection.context.utils.ts /* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://ww...
<filename>back/sources/sys/Route.ts import * as http2 from "http2"; import * as querystring from "querystring"; import * as fs from "fs"; // --- 库和定义 --- import * as Fs from "~/lib/Fs"; import * as Text from "~/lib/Text"; import * as View from "~/lib/View"; import * as Session from "~/lib/Session"; import * as abs from...
import {type ClientEvent} from '$lib/app/events'; import {type Json} from '@feltcoop/felt/util/json.js'; import {type SvelteComponent} from 'svelte'; // TODO where do these belong? `parse` module? export interface ParseValue<T> { (value: unknown, options: ParseBlockOptions): T | undefined; } export const parseStrin...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Slider from '../Slider'; import Icon from '../Icon'; import Popover from '../Popover'; import ConfigConsumer from '../Config/Consumer'; import { LocaleProperties } from '../Locale'; export interface AudioPlayerPr...
import * as React from "react"; import { notP } from "../../../Data/Bool"; import { equals } from "../../../Data/Eq"; import { fmap } from "../../../Data/Functor"; import { any, cons, filter, List, map, notNull, toArray } from "../../../Data/List"; import { bindF, elem, ensure, fromJust, fromMaybe, fromMaybeR, isJust, ...
import { SJ, HJ, CJ, DJ, SUIT_S, SUIT_H, SUIT_C, SUIT_D, MAX_BID, MIN_BID, ACTION_BID, ACTION_TRUMP, ACTION_SWAP, ACTION_PLAY, REQ_PLAYERS, REQ_CARDS_PER_SUIT, actionMap, suitMap, cardMap, REQ_CARDS_PER_PLAYER, } from './config'; import { A...
import * as Immutable from 'immutable'; import * as contentTypes from '../contentTypes'; import guid from '../../utils/guid'; import { getKey } from '../common'; import { assessmentTemplate } from '../activity_templates'; import { isArray, isNullOrUndefined } from 'util'; import { ContentElements, TEXT_ELEMENTS } from...