text
stringlengths
3.08k
15.5k
<reponame>jonasmsjunior/angularTable import {FILTER_TYPE, ISuperTableFilter} from './interfaces'; export interface IBuiltInFilters { STRING: ISuperTableFilter; NUMBER: ISuperTableFilter; DATE: ISuperTableFilter; ENUM: ISuperTableFilter; } // For date filter const unitmap: Object = {}; unitmap['second'] = unit...
<reponame>udanpe/vuetify<filename>packages/vuetify/src/components/VInput/VInput.ts // Styles import './VInput.sass' // Components import VIcon from '../VIcon' import VLabel from '../VLabel' import VMessages from '../VMessages' // Mixins import BindsAttrs from '../../mixins/binds-attrs' import Validatable from '../../...
import { Cheerio, CheerioAPI, Element, load } from 'cheerio'; import { Company } from 'libs/pizza-parser/types/pizza'; import { getText } from 'libs/pizza-parser/utils/http'; import { capitalize } from 'libs/pizza-parser/utils/string'; import { ChernivtsiPizzasParser } from '../chernivtsi.pizza-parser'; const BASE_URL...
import * as React from 'react'; import { post as httpPost } from './helpers/request'; import { Link, useHistory } from 'react-router-dom'; import { baseUrl } from './const'; import { Tokens, PostType, CreatePostRequest, PostReactTypes } from './types/types'; type PostProps = { loggedIn: boolean; post: PostType; ...
<gh_stars>0 // Type definitions for interact.js // Project: http://interactjs.io/ // Definitions by: <NAME> <feature-space.com> // <NAME> <taye.me> import * as actions from '@interactjs/actions' import * as defaults from '@interactjs/core/defaultOptions' import _Interactable from '@interactjs/core/Int...
<reponame>accordion-console/accordion-graph export enum PfColors { Black100 = '#fafafa', Black150 = '#f5f5f5', Black200 = '#ededed', Black300 = '#d1d1d1', Black400 = '#bbb', Black500 = '#8b8d8f', Black600 = '#72767b', Black700 = '#4d5258', Black800 = '#393f44', Black900 = '#292e34', Black1000 = '#...
<reponame>ngaitan98/lostroncosdb /* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT-0 * * 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 Soft...
/* Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free...
import * as webpack from "webpack"; import * as path from "path"; import {WebpackManifestPlugin} from "webpack-manifest-plugin"; import {httpProxyConfig} from "./http.proxy.config"; import {BundleAnalyzerPlugin} from "webpack-bundle-analyzer"; import MiniCssExtractPlugin from "mini-css-extract-plugin"; import OptimizeC...
<reponame>Turkyden/formily import { inject, provide, defineComponent, computed, shallowRef, watch, } from 'vue-demi' import { ISchema, Schema, SchemaTypes } from '@formily/json-schema' import { RecursionField } from '../components' import { SchemaMarkupSymbol, SchemaExpressionScopeSymbol, SchemaOption...
import CMD from '../configuration/enums/cmd'; import { SetChState } from './setChHelper'; import MathOperators from '../configuration/enums/mathOperators'; import DefaultValues from '../configuration/defaultValues'; import { convertTime, convertVoltage } from './convert'; import TimeUnit from '../configuration/enums/ti...
<gh_stars>10-100 import { isObject } from '@goldfishjs/utils'; import { IWatchOptions } from './watch'; import { ChangeOptions, getCurrent, call } from './dep'; import isRaw from './isRaw'; import generateKeyPathString from './generateKeyPathString'; export interface IWatchDeepCallback { (obj: any, keyPathList: (str...
import { PositiveReal, RealNumber, Fraction } from 'awesomewm.4.3.ts.d'; import { Reader } from '../data/index'; import { color, shape, surface } from 'gears'; import { Surface, CairoContext, Pattern } from 'oocairo'; class AwesomeCairo { constructor( readonly context: CairoContext, readonly width: PositiveR...
<reponame>STDSuperman/gif-cropper import Cropper from 'cropperjs'; import { Decoder } from './lib/decoder'; import { SyntheticGIF } from './lib/synthetic-gif'; import { FrameCropper } from './lib/cropper'; import { ParsedFrame } from 'gifuct-js'; import { getImageInfo, loadImage, getImageType } from './lib/helper' exp...
// Copyright (c) 2018-2022 Coinbase, Inc. <https://www.coinbase.com/> // Licensed under the Apache License, version 2.0 import { DiagnosticLogger } from "./connection/DiagnosticLogger"; import { EventListener } from "./connection/EventListener"; import { ScopedLocalStorage } from "./lib/ScopedLocalStorage"; import { C...
<filename>src/lib/monitor/dev-count-analysis.ts<gh_stars>1-10 /** * This is to count the number of "contributing" developers using Snyk on a given repo. * "Contributing" is defined as having contributed a commit in the last 90 days. * This is use only on the `snyk monitor` command as that is used to monitor a projec...
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import React from 'react'; //import { connect } from "react-redux"; /* import { ReactComponentFlowConnector } from '@devhelpr/flowrunner-redux'; */ import { FormComponent } from './form'; import { IRootLayout } from './interfaces'; //import * as uuid from 'uuid'; //const uuidV4 = uuid.v4; export interface LayoutC...
import React, { useState, useEffect } from 'react'; import { TransactionPayload, TransactionTypes } from '@stacks/connect'; import { Screen, ScreenBody, ScreenActions, Title, PoweredBy, ScreenFooter, ScreenHeader, } from '@screen'; import { Button, Box, Text } from '@blockstack/ui'; import { useLocation }...
<filename>web-console/e2e-tests/auto-compaction.spec.ts /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under ...
// @ts-nocheck /* eslint-disable prefer-destructuring */ import './global-types.ts'; import { GraphQLEnumType, GraphQLFieldConfigArgumentMap, GraphQLFieldConfigMap, GraphQLInputFieldConfigMap, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLNamedType, GraphQLObjectType, GraphQLScalarType, GraphQLSchema, GraphQLUni...
import { EventEmitter } from 'events' import * as dgram from 'dgram' import ms from 'ms' import { debug as createDebugLogger } from 'debug' import LRUCache = require('lru-cache') import { encode, decode } from './message' import { keccak256, pk2id, createDeferred, formatLogId } from '../util' import { DPT, PeerInfo } f...
<reponame>anders462/electrode-native<gh_stars>0 import { NativeApplicationDescriptor, utils as coreUtils, log, NativePlatform, } from 'ern-core' import { getActiveCauldron } from 'ern-cauldron-api' import { performCodePushPromote } from 'ern-orchestrator' import { epilog, logErrorAndExitIfNotSatisfied, as...
import { Point, toPoint, Pointlike } from "./Point"; /* * @class Bounds * @aka L.Bounds * * Represents a rectangular area in pixel coordinates. * * @example * * ```js * var p1 = L.point(10, 10), * p2 = L.point(40, 60), * bounds = L.bounds(p1, p2); * ``` * * All Leaflet methods that accept `Bounds` object...
/* * Copyright 2019 <NAME> <<EMAIL>> * Copyright 2019 Institute of the Czech National Corpus, * Faculty of Arts, Charles University * * 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 ...
<reponame>chris-reeves/eslint-plugin-jsonc import path from "path" import fs from "fs" import { rules } from "../lib/utils/rules" import type { RuleModule } from "../lib/types" //eslint-disable-next-line require-jsdoc -- tools function formatItems(items: string[]) { if (items.length <= 2) { return items.jo...
/** * @fileOverview Rectangle */ import React, { PureComponent, SVGProps } from 'react'; import classNames from 'classnames'; import Animate from 'react-smooth'; import { AnimationTiming, filterProps } from '../util/types'; type RectRadius = [number, number, number, number]; const getRectanglePath = (x: number, y: ...
import {getConfig} from '../config' import {checkContainerType} from '../helpers' import {getLabels, getRealLabels, getLabelContent} from '../label-helpers' import {AllByText, GetErrorFunction, Nullish} from '../../types' import { fuzzyMatches, matches, makeNormalizer, queryAllByAttribute, makeFindQuery, ma...
<reponame>bhgeorge/jss /* eslint-disable no-use-before-define */ import { ComponentRendering, Field, HtmlElementRendering, Item, RouteData, } from '@sitecore-jss/sitecore-jss/layout'; import { Component, h, VNode, DefineComponent } from 'vue'; import { MissingComponent } from './MissingComponent'; i...
export const description = ` copyTextureToBuffer and copyBufferToTexture validation tests not covered by the general image_copy tests, or by destroyed,*. TODO: Add tests to cover the validation rule that source.offset is a multiple of the texel block size of destination.texture.[[format]]. `; import { poptions, param...
import { HttpClient } from '@angular/common/http'; import { Inject, Injectable, Optional } from '@angular/core'; import { BehaviorSubject, Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { NgeMonacoContribution } from '../contributions/monaco-contribution'; import { NgeMonacoConfig, NGE_MONACO_CO...
import * as React from 'react' import { Formik } from 'formik' import { Div, MakerProps, merge, ResponsiveScale, Global } from 'maker-ui' import * as Yup from 'yup' import { ValidateIcon } from './Icons' import { FieldProps, FormValues, FormHelpers } from './types' import { styles } from './styles/position' interface...
// <copyright file="configurable-tab-wrapper-page.tsx" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> import * as React from 'react'; import * as microsoftTeams from "@microsoft/teams-js"; import { Loader, Grid, gridBehavior } from '@fluentui/react-northstar' import { WithTransla...
import { Component, Vue, Prop, Watch } from 'vue-property-decorator' import { PopupManager } from '../popup' import Popper from 'popper.js' const PopperJS: any = Vue.prototype.$isServer ? function () {} : Popper const stop = (e: any) => e.stopPropagation() /** * @param {HTMLElement} [reference=$refs.reference] - Th...
<filename>api-service/api-server/src/setup/upload_questions_from_lines.ts /* Copyright 2017 Google 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....
/* eslint-disable no-nested-ternary */ import React, { CSSProperties } from 'react'; import BaseComponent from '../_base/baseComponent'; import PropTypes from 'prop-types'; import Portal from '../_portal'; import cls from 'classnames'; import ConfigContext from '../configProvider/context'; import { cssClasses, strings ...
import { Box, BoxProps, Flex, IconButton, Popover, PopoverBody, PopoverContent, PopoverTrigger, } from "@chakra-ui/react"; import { Plural, t, Trans } from "@lingui/macro"; import { Ability, Prisma } from "@prisma/client"; import Flag from "components/common/Flag"; import ModeImage from "components/comm...
// SPDX-License-Identifier: MIT // Copyright (c) 2020 The Pybricks Authors // File: sagas/ble-uart.ts // Manages connection to a Bluetooth Low Energy device with the Nordic (nRF) UART service. import { END, eventChannel } from 'redux-saga'; import { call, cancel, put, select, takeEvery, takeMaybe } from 'redux-saga/ef...
import {concatenateTypedArrays} from '@loaders.gl/loader-utils'; export type EdgeIndices = { westIndices: number[]; northIndices: number[]; eastIndices: number[]; southIndices: number[]; }; /** * Add skirt to existing mesh * @param {object} attributes - POSITION and TEXCOOD_0 attributes data * @param {any}...
import * as React from "react"; import { withTheme } from "../core/theming"; import { View, Text, StyleSheet, StyleProp, TextStyle, ViewStyle, } from "react-native"; import Icon from "./Icon"; import Touchable from "./Touchable"; import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME...
<filename>src/api/controllers/planning/utils/tax.ts import { addYears, differenceInCalendarMonths, endOfMonth, isAfter, startOfMonth } from 'date-fns'; import { groupBy } from 'lodash'; import { CalculationRows } from '../types'; import { calculateYearlyTaxRelief } from './calculations'; import { accountRowHasIncome, ...
import { NDX_ADDRESS, WETH_CONTRACT_ADDRESS } from "config"; import { PayloadAction, createEntityAdapter, createSlice, } from "@reduxjs/toolkit"; import { computeUniswapPairAddress, convert, createMulticallDataParser, } from "helpers"; import { fetchMulticallData } from "../batcher/requests"; // Circular de...
<filename>src/modules/user/user.service.ts import { BadRequestException, Injectable, InternalServerErrorException, NotFoundException } from "@nestjs/common"; import { InjectModel } from "@nestjs/mongoose"; import * as mongoose from "mongoose"; import { Model } from "mongoose"; import * as bcrypt from "bcrypt"; import *...
<gh_stars>0 import { Component, Input, NgModule, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { McButton, McButtonModule } from '@ptsecurity/mosaic/button'; import { ThemePalette } from '@ptsecurity/mosaic/core'; import { McIconModul...
import React, { useState, useEffect } from 'react'; import { Table, Tag, Space, Button, Modal, Checkbox, Input, Typography, Tooltip, Row, Col, } from 'antd'; import { DeleteOutlined } from '@ant-design/icons'; import isValidUrl, { DEFAULT_TEXTFIELD_URL_PATTERN } from '../utils/urls'; import { fet...
import { memo, useMemo, useEffect, useRef, useState } from "react"; import { Game, Color, SVGBoard, FieldBoardObject, MarkupBoardObject, Position, } from "wgo"; import "./GoBoard.css"; import { useGoBoard, PositionData } from "../hooks/useGoBoard"; const createPosition = (positionData: PositionData) => { ...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import ts from 'typescript'; import {ClassDeclaration} from '../../reflection'; /** * A `Set` of `ts.SyntaxKind`s...
import { gql } from "@apollo/client"; import { Button, FormControl, FormErrorMessage, FormHelperText, FormLabel, Heading, Input, InputGroup, InputLeftAddon, InputRightAddon, Popover, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverHea...
import React from 'react'; import { Link } from 'react-router-dom'; import { Stack, StackItem, TextContent, Text, ButtonVariant, GridItem, Grid, Alert, } from '@patternfly/react-core'; import { Cluster, ToolbarButton, ToolbarSecondaryGroup, Alerts, canDownloadClusterLogs, useAlerts, Render...
import { CommandContainer } from '@core/command'; import { AbstractProxy, ApplicationCommandProxy, CommandProxy, EventProxy } from '@core/lifecycle'; import { ApplicationCommandRouteImpl, EventRouteImpl, LifecycleFunction } from '@core/router'; import { APPLICATION_COMMAND_METADATA, ApplicationCommandMetadata, Ap...
<gh_stars>100-1000 import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData } from '../../../../../types/dat...
import { MetadataFormData } from "@saleor/components/Metadata"; import { MultiAutocompleteChoiceType } from "@saleor/components/MultiAutocompleteSelectField"; import { SingleAutocompleteChoiceType } from "@saleor/components/SingleAutocompleteSelectField"; import useForm, { FormChange, SubmitPromise } from "@saleor/hook...
import ElementPluginEntry from './element'; import type { InlineInterface, NodeInterface, PluginEntry as PluginEntryType, PluginInterface, PluginOptions, } from '../types'; import { $ } from '../node'; import { isEngine } from '../utils'; abstract class InlineEntry<T extends PluginOptions = PluginOptions> exten...
import * as React from "react"; import { Button, Input, Col, Form, FormGroup, Label, Row, ListGroup, ListGroupItem, ListGroupItemHeading } from 'reactstrap'; export interface MeasuresCallbacks { updateMeasureNouns(MeasuresNoun: string[]): void; getMeasures(): MeasureProps[]; setMeasures(m: MeasureProps[]): ...
import Vue from "vue"; import { Application, ApplicationModel, EnvironmentModel, OperatorModel, } from "types/Portfolios"; import { MutationTree } from "vuex"; import ApplicationsState from "./types"; import { generateUid, getEntityIndex } from "@/helpers"; const setCurrentApplicationId = ( state: Applicatio...
<gh_stars>10-100 import * as _ from "lodash" export interface IDbQueryQuery { type: "query" path: Array<string> query: IDbFilterStatement } export interface IDbQueryElemMatch { type: "elemMatch" path: Array<string> nestedQuery: DbQuery } export type DbQuery = IDbQueryQuery | IDbQueryElemMatch export enu...
<reponame>softwareventures/cypress-preact-unit-test /* tslint:disable */ /// <reference path="./index.d.ts" /> // having weak reference to styles prevents garbage collection // and "losing" styles when the next test starts import {VNode} from "preact"; const stylesCache = new Map(); const setXMLHttpRequest = (w: Wi...
import WalletConnectProvider from "@walletconnect/web3-provider" import WalletLink from "walletlink" import React, { useCallback, useEffect, useState, createContext } from "react" import Web3Modal from "web3modal" import { INFURA_ID, NETWORKS } from "utils/constants" import useUserSigner from "hooks/useUserSigner" impo...
import { NavigatedData, Page, EventData } from "tns-core-modules/ui/page"; import { GridLayout, AbsoluteLayout, FlexboxLayout } from 'tns-core-modules/ui/layouts'; import { Button, Label, Image } from "tns-core-modules/ui"; import { NavigationEntry } from "tns-core-modules/ui/frame/frame"; import { GestureTypes, SwipeG...
<filename>src/commands/init-organization-pipeline.ts import archiver = require('archiver'); import { CloudFormation, S3 } from 'aws-sdk'; import { CreateStackInput, UpdateStackInput } from 'aws-sdk/clients/cloudformation'; import { PutObjectRequest } from 'aws-sdk/clients/s3'; import { Command } from 'commander'; impor...
<filename>src/ts/index.ts<gh_stars>0 import { Timer } from './interfaces/timer'; import { Mark, getCurrentFramesPerSecond, getDelta, getElapsed } from './utils/time-utils.js'; import { backBufferProps, increaseBackBufferSize, decreaseBackBufferSize } from './config.js'; import { levels } from './data/levels/levels.js'...
//basic stuff type Fun<a,b> = { f:(i:a) => b, then:<c>(g:Fun<b,c>) => Fun<a,c> } let then = function<a,b,c>(f:Fun<a,b>, g:Fun<b,c>) : Fun<a,c> { return Fun<a,c>(a => g.f(f.f(a))) } type Option<a> = { kind:"none" } | { kind:"some", value:a } let none = function<a>() : Option<a> { return { kind:"none" } } let some = f...
<gh_stars>1-10 import { join } from "path"; import { Formattable } from "../structures/formattable.struct"; import { Message } from "discord.js"; const assertType = <T>(arg: T) => arg; declare global { interface ItemType { use: ( | { function: readonly string[]; type: "pick" } | { function: (message: Message) ...
import express, { NextFunction, Request, Response } from "express" import { IAdminDocument, IProfileDocument } from "../objecttypes/modelTypes" import authenticateToken from "../utils/auhenticateToken" import { needsToBeAgencyBusinessOrWorker } from "../utils/middleware" import Profile from "../models/Profile" import {...
<reponame>PEAT-AI/firebase-tools<filename>src/extensions/extensionsHelper.ts import * as _ from "lodash"; import { getFirebaseConfig } from "../functionsConfig"; import { FirebaseError } from "../error"; import { checkResponse } from "./askUserForParam"; import { ensure } from "../ensureApiEnabled"; import * as getPro...
<gh_stars>0 import { ComponentType } from "../deps.ts"; import { dynamicImport } from "../utils/dynamicImport.ts"; import * as compiler from "../compiler/compiler.ts"; import { ensureTextFile } from "../fs.ts"; import { path } from "../std.ts"; import utils from "./utils.ts"; import { generateHTML } from "../utils/gene...
/* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable max-statements, complexity */ import * as Path from "path"; const archetypeConfig = require("@xarc/app-dev/config/archetype"); const detectCssModule = require("../util/detect-css-module"); const getOptRequire = require("../util/get-opt-requi...
import applicationinsights = require("applicationinsights"); import * as yargs from "yargs"; import { defaultLocalOptions } from "./lib/common"; import { deprecateNotNeededPackage, publishNotNeededPackage, publishTypingsPackage } from "./lib/package-publisher"; import { getDefinitelyTyped, AllPackages } from "@definit...
import {AfterViewInit, Component, OnInit} from '@angular/core'; import {DomSanitizer} from "@angular/platform-browser"; import {Pm4pyService} from "../pm4py-service.service"; import {HttpParams} from "@angular/common/http"; import { MatTableDataSource } from '@angular/material/table'; import { ViewChild } from '@angula...
<reponame>colindaven/jbrowse-components import { ConfigurationReference, getConf } from '@jbrowse/core/configuration' import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema' import { BaseDisplay } from '@jbrowse/core/pluggableElementTypes/models' import PluginManager from '@jbrowse/core/...
import { media, theme } from '@src/styles'; import { SplitChar, SplitWord } from '@src/_utils/split-text'; import React from 'react'; import styled from 'styled-components'; import { SiteSiteMetadata } from '__generated__/graphql-types'; import { gsap } from "gsap"; import ScrollDown from '@src/assets/ScrollDown'; impo...
import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter, ViewEncapsulation, ViewChild, HostListener, ElementRef, TemplateRef, Renderer, ViewContainerRef } from '@angular/core'; import { PopoverDirective, PopoverConfig } from 'ng2-bootstrap/popover'; import { ComponentLoader, ComponentLoaderFactory } fr...
import classnames from 'classnames' import React from 'react' import { MdCallEnd, MdContentCopy, MdFullscreen, MdFullscreenExit, MdLock, MdLockOpen, MdQuestionAnswer, MdScreenShare, MdShare, MdStopScreenShare, MdWarning } from 'react-icons/md' import screenfull from 'screenfull' import { getDesktopStream } from '../act...
<gh_stars>1-10 import sigma_untyped from '../../sigma.core' import { clearLabelKnowledge, initializePackageData, labelLevels, packageData } from './sigmaLabelPrioritizer' import { getLabelFontSizeFromNode, getLabelYFromNodeAndFontSize } from '../../utils/sigma.utils.branches'; import { ISigma, ISigmaConstructo...
/* * Copyright (C) 2005-2022 SplendidCRM Software, Inc. * 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 without limitation the rights to u...
import * as Webdav from 'webdav-client'; import * as Stream from 'stream'; import { configureWebdavConnection, createFolderHierarchy, getFolderFileDetails, getFolderProperties, checkConnectivity, downloadToStream, uploadFromStream, getWriteStream, getReadStream, touchFolder, pipeStream, getFile...
import { Callout, DirectionalHint, FontClassNames, Icon, Toggle } from 'office-ui-fabric-react'; import React, { useRef } from 'react'; import { TimelineData, TimelineDataScope, TimelineEventCategory, TimelineDataStamp } from '../../api/IRinCoreHub'; import { calculateChildrenDuration } from '../../domain/RequestRecord...
import { AmpDescription, MiniCheerioElement } from '../models/interface'; import { cleanAttributes, whiteListed } from './whitelistedtags'; import { readFileSync, writeFileSync } from 'fs'; import { join, normalize } from 'path'; const CleanAttributes = async ( args: AmpDescription, ): Promise<AmpDescription> => { ...
/* eslint-disable no-nested-ternary */ import { useEffect, useState } from 'react'; import { DateRangePicker, RangeKeyDict } from 'react-date-range'; import Multiselect from 'multiselect-react-dropdown'; import { motion } from 'framer-motion'; import styles from './styles.module.scss'; import { sideOptions, SideOptio...
<gh_stars>1-10 /* eslint-disable */ import { ASN1ConstructionError as _ConstructionError, ASN1Element as _Element, ASN1TagClass as _TagClass, BIT_STRING, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { Del_Header, _decode_Del_Header, _encode_Del_Heade...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<reponame>Tarnasa/Viseur // This is a class to represent the Machine object in the game. // If you want to render it in the game do so here. import { Delta } from "@cadre/ts-utils/cadre"; import { Immutable } from "src/utils"; import { Viseur } from "src/viseur"; import { makeRenderable } from "src/viseur/game"; import...
/* * Copyright 2016 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
import * as fs from "fs" import * as ethers from 'ethers' import fetch from "node-fetch" import { nextVersion, schema, VersionUpgrade, CollectibleList, CollectibleInfo } from '@0xsequence/collectible-lists' import { getEnvConfig } from "../src/utils" const Ajv = require("ajv") const isEqual = require("lodash.isequal") ...
/// <reference path="transducers-js.d.ts" /> /// <reference path="../lodash/lodash.d.ts" /> /// <reference path="../immutable/immutable.d.ts" /> // tests taken from https://github.com/cognitect-labs/transducers-js import * as t from 'transducers-js'; var map = t.map, filter = t.filter, comp = t.comp, ...
<gh_stars>0 /** * An abstraction class to hide transport implementation */ import { generateUniqId } from '@testring/utils'; import { transport } from '@testring/transport'; import { fsReqType, IFSStoreReq, IFSStoreResp, } from '@testring/types'; import { FS_CONSTANTS, logger } from './utils'; const l...
import * as React from 'react'; import { inject, observer } from 'mobx-react'; import styled from 'styled-components'; import { Order } from '../types/order'; import Header from '../components/Header'; import { Link } from 'react-router-dom'; import anime from 'animejs'; import Initializer from '../components/Initializ...
<reponame>TekimDigital/ts-stream<filename>src/lib/transformers.ts /** * Promise-based object stream with seamless support for back-pressure and error * handling, written in Typescript. * * Copyright (C) 2015 <NAME> * License: MIT */ import { Readable, Writable } from "./Stream"; import { batch, filter, map, Tran...
<reponame>kasamachenkaow/hashcode2021<filename>src/practice01/func.ts import common from '../common' import { Pizza } from './types' type Delivery = { [key: number]: { orders: number delivering: Pizza[] delivered: Pizza[][] } } const func = (input: string): string => { const pizzas: Pizza[] = [] l...
/* * Copyright 2020 The Backstage 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 ...
import { IJahresWert, Knoten, SteuerWerte, VermoegensWerte } from "../base/Kalkulation"; /** * Knoten zur Berechnung der Einkommensteuer */ export class EinkommenSteuer extends Knoten { splitting: boolean; grundTarif: IGrundTarif; /** * Berechnung der Einkommensteuer * * @param name @see...
import { Injectable, NgZone } from '@angular/core'; import { asyncScheduler, Observable, Operator, queueScheduler, SchedulerAction, SchedulerLike, Subscriber, Subscription, TeardownLogic } from 'rxjs'; import { observeOn, subscribeOn, tap } from 'rxjs/operators'; function noop() { } /** * Schedules...
import { Paginator } from '../../../interface' import { sql } from '../../utils' import pgClientFromContext from '../pgClientFromContext' import transformPgValueIntoValue from '../transformPgValueIntoValue' import PgPaginator from './PgPaginator' /** * The cursor in the offset strategy is just a simple integer. * *...
// Core Imports import React, { useState, useEffect } from "react" import { Drawer, List, ListItem, ListItemIcon, ListItemText, Fab, Container, Tooltip, Chip, useMediaQuery, useTheme, } from "@material-ui/core" // Local Imports import LAMP from "lamp-core" import ParticipantList from "./Participa...
<filename>packages/commander-zod/src/lib/types.ts import { Argument, Command as BaseCommand, Option } from 'commander'; import { z } from 'zod'; /** * Defines command properties */ export type CommandDefinition = { /** * This is the name of the command. * * Same as `new Command('name')` used in Commander ...
import React, { useState } from 'react'; import { addons, makeDecorator, OptionsParameter, StoryContext, StoryGetter, } from '@storybook/addons'; // import { useAddonState } from '@storybook/client-api'; import { STORY_CHANGED, STORY_RENDERED } from '@storybook/core-events'; import { ADDON_GLOBAL_DISABLE_ST...
<filename>typescript/rds/oracle/oracle.ts import { CfnOutput, Stack, StackProps, Tags, App, Fn, Duration, RemovalPolicy, } from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as logs from 'aws-cdk-lib/aws-logs'; import * as rds from 'aws-cdk-lib/aws-rds'; import * as secretsmanager ...
<filename>test/logger.spec.ts import { expect } from 'chai'; import 'mocha'; import { Logger, LogLevel, LogEvent, LogContext, FullStoryAppender, ConsoleAppender, } from '../src/utils/logger'; import Console from './mocks/console'; import FullStory from './mocks/fullstory-recording'; import { expectParams, expectNoCa...
import { Accessibility, splitButtonBehavior } from '@fluentui/accessibility'; import * as customPropTypes from '@fluentui/react-proptypes'; import * as PropTypes from 'prop-types'; import * as React from 'react'; import * as _ from 'lodash'; import { ALIGNMENTS, POSITIONS } from '../../utils/positioner'; import { WithA...
<filename>src/helpers/AllBonds.ts import { StableBond, LPBond, NetworkID, CustomBond, BondType } from "src/lib/Bond"; import { addresses } from "src/constants"; import { ReactComponent as DaiImg } from "src/assets/tokens/DAI.svg"; import { ReactComponent as BhdDaiImg } from "src/assets/tokens/EVER-DAI.svg"; import { R...