text
stringlengths
3.3k
33k
<filename>packages/ngx-crudx/src/lib/services/abstract-repository.service.ts<gh_stars>1-10 import { HttpParams } from "@angular/common/http"; import { Directive, Injector } from "@angular/core"; import { isArray, isEmpty, isFunction, isNil, isObject } from "lodash-es"; import { Observable } from "rxjs"; import { Conne...
<filename>src/morphism.ts const aggregator = (paths: any, object: any) => { return paths.reduce((delta: any, path: any) => { return set(delta, path, get(object, path)); }, {}); }; const memoize = (func: any, resolver?: any) => { if (typeof func !== 'function' || (resolver != null && typeof resolver !== 'func...
<reponame>tacsio/code.quarkus.io<filename>library/components/extensions-picker/extensions-utils.ts import { ExtensionEntry } from './extensions-picker'; import { Extension } from '../api/model'; import _ from 'lodash'; const matchAll = require('string.prototype.matchall'); type ExtensionFieldValueSupplier = (e: Exten...
import { Component, OnInit, AfterContentChecked, Input, Output, EventEmitter } from '@angular/core'; import { Rule } from '../manage-permissions.component'; import { CommonService, GetOptions } from 'src/app/utils/services/common.service'; import { AppService } from 'src/app/utils/services/app.service'; import { Schema...
var RECYCLED_NODE = 1 var LAZY_NODE = 2 var TEXT_NODE = 3 var EMPTY_OBJ = {} var EMPTY_ARR = [] var map = EMPTY_ARR.map var isArray = Array.isArray var defer = typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : setTimeout var createClass = function(obj) { var out = "" if (typeof obj ...
import { ILoggingDataService } from '../data/ILoggingDataService'; import { ConfigErrors, ErrorsMessagesVisability, ErrorMessageRecord, IErrorMessages, ErrorLogMessage } from '../data/ErrorsMessages'; import { LogMessage } from '../data/LogMessage'; import { ErrorDescription } from '../data/ErrorDescription'; declare ...
import { ChangeDetectorRef, Component, ElementRef, Inject, Input, OnDestroy, OnInit, PLATFORM_ID, QueryList, ViewChild, ViewChildren, } from '@angular/core'; import { isPlatformBrowser } from '@angular/common'; import { OwlCarouselOConfig } from 'ngx-owl-carousel-o/lib/carous...
<gh_stars>1-10 import { Resume, Category, EntityInvolvements, Involvement, InvolvementProperty, InvolvementSublisting, DateRange, ApproximateDate } from "./resume"; export type Pattern<T> = string | RegExp | ((t: T) => boolean); export type ScalarXForm<T> = { as?: T | ((t: T) => T) }; // TODO: Should a...
import { BitValue } from '../bit_value'; import { CardPart } from '../../model/cards/card_part'; import { IControlSwitchesBusGroup } from '../bus/bus_groups'; import { DataSwitchGateLines, MemoryLines, RegABCDLines, RegAuxLines, ResetLines } from '../bus/bus_part_lines'; import { ClockLines } from '../bus/bus_part_line...
<reponame>taylorashbocker/taylortest<filename>src/data_access_layer/mappers/data_warehouse/etl/type_transformation_mapper.ts import Result from '../../../../common_classes/result'; import Mapper from '../../mapper'; import {PoolClient, QueryConfig} from 'pg'; import TypeTransformation from '../../../../domain_objects/d...
// Copyright 2017-2019 @polkadot/client-signal authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { SSOffer, SSSignal } from './types'; import EventEmitter from 'eventemitter3'; import getBrowserRtc from 'get-b...
<reponame>tyranid-org/tyranid import { ObjectID } from 'mongodb'; import { Tyr } from 'tyranid'; import { FieldNode, FragmentSpreadNode, graphql, GraphQLBoolean, GraphQLFieldConfig, GraphQLFieldConfigArgumentMap, GraphQLFieldConfigMap, GraphQLFloat, GraphQLID, GraphQLInt, GraphQLList, GraphQLOb...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ // tslint:disable:no-any non-null-operator no-big-function no-non-null-assertion no-implicit-dependencies import { Path,...
<filename>api/app/plugins/rbac.ts // Original Code By: https://github.com/DeadAlready/easy-rbac.git import { FastifyInstance } from 'fastify'; import { config } from '../../lib/config'; interface RBACObj { can: any; canGlob: any[]; inherits: any[]; } export const isMatch = (promises: any) => { if (promises.le...
import { Button, Card, Modal, Select, Text } from '@geist-ui/react'; import { useRouter } from 'next/router'; import { useState } from 'react'; import { useSelector } from 'react-redux'; import styled from 'styled-components'; import { STORY_REVIEW_STATUS } from '../constants'; import { getPeople, getReviewTypes } fro...
import TFS_Release_Contracts = require("ReleaseManagement/Core/Contracts"); import TFS_Build_Contracts = require("TFS/Build/Contracts"); import TFS_DistributedTask_Contracts = require("TFS/DistributedTask/Contracts"); import TFS_Build_Extension_Contracts = require("TFS/Build/ExtensionContracts"); import RM_Client = req...
<gh_stars>10-100 import storage from "@root/background/_/storage"; import _System from "@root/controllers/System"; import ext from "webextension-polyfill"; import IsBrainly from "../helpers/IsBrainly"; const BROWSER_ACTION = ext.browserAction; const RED_BADGE_COLOR: browser.browserAction.ColorValue = [255, 121, 107, 2...
/* * Copyright 2019 EIS Ltd and/or one of its affiliates. * * 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 ...
import { Octokit } from 'octokit' import fs from 'fs' import path from 'path' import os from 'os' // This script collects stats on the 100 most recent successful github // action CI runs and prints out how long individual jobs and steps are // taking. // For development, I ran it with entr in this directory // ...
import resizeImage from 'resize-image-buffer'; import axios, { AxiosResponse } from 'axios'; import { Readable } from 'stream'; import { FormData, File } from 'formdata-node'; import { FormDataEncoder } from 'form-data-encoder'; import { getMongoRepository, MongoRepository } from 'typeorm'; import { MessageContext, Vid...
<filename>grin-js/api/code/src/routes/workerRoutes.ts const workerRouter = require('express').Router() const basicAuth = require('express-basic-auth') import { mergeBlocks, filterFields, limitRange, checkAuth, aggregateShareCreditsFromPoolShares, aggregateShareCreditsFromUserStats, getLatestNetworkBlockHe...
import { EventType } from 'engine/enums'; import _events from 'engine/events'; import { varbit } from 'engine/var'; import { Player, CoordGrid } from 'engine/models'; import _coords from 'shared/map/coords'; import { stripValues } from 'shared/util'; import { addZoneLoc, getZoneCoord } from 'shared/map'; import { Roo...
/* eslint-disable */ /* tslint:disable */ // @ts-nocheck import { Components, JSX } from '@revolist/revogrid'; interface RevogrOrderEditorProps { /** */ parent?: Components.RevogrOrderEditor["parent"] /** */ dimensionRow?: Components.RevogrOrderEditor["dimensionRow"] /** */ dimensionCol?: Comp...
<reponame>NESTetrisJP/NESTrisClient-CJL import Renderer from "./renderer" import AudioManager from "./audio-manager" import DataProcessor from "./data-processor" const r = Renderer.getInstance() const a = AudioManager.getInstance() export default class GameRenderer { static formatScore(score, hex) { const hexStr...
<gh_stars>0 import { pair, path, pick, sortWith, ascend, descend } from 'ramda'; import { compare } from 'fast-json-patch'; import LevelUpCtor, { LevelUp } from 'levelup'; import LevelDown from 'leveldown'; import { Mutex } from 'async-mutex'; import { Context as KoaContext } from 'koa'; import nanoid from 'nanoid'; im...
/** * @module popup */ import AppBar from "@material-ui/core/AppBar"; import Badge from "@material-ui/core/Badge"; import Button from "@material-ui/core/Button"; import Card from "@material-ui/core/Card"; import CardActionArea from "@material-ui/core/CardActionArea"; import CardActions from "@material-ui/core/CardAc...
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import { IExplorerFields, IField } from '../../../../common/types/explorer'; import { uniqueId } from 'lodash'; import React from 'react'; import { DocViewRow, IDocType } from '../docTable'; import { HttpStart } from '../../../../../../...
import { Identity } from '.' import merge from 'deepmerge' import Automerge from 'automerge' import { nanoid } from 'nanoid' import bs58 from 'bs58' import { Session, EVENT } from '.' import debug from 'debug' import { actions } from '.' const LOG = debug("carmel:data") const CONTENT_MODEL_VERSION = "1.0" const CONTE...
import { ChangeDetectorRef, Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core'; import { MatDialog } from '@angular/material'; import { BehaviorSubject } from 'rxjs'; import { distinctUntilChanged, filter, switchMap, tap } from 'rxjs/operators'; import { Fade } from '../../a...
import { injectable } from 'inversify'; import * as ts from 'typescript'; import { isModuleDeclaration, isNamespaceExportDeclaration, findImports, ImportKind } from 'tsutils'; import { resolveCachedResult, getOutputFileNamesOfProjectReference, iterateProjectReferences, unixifyPath } from '../utils'; import bind from 'b...
import React, { useEffect, useState } from "react"; import BreadCrumb from "../../../components/BreadCrumb"; import "react-datepicker/dist/react-datepicker.css"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faPencilAlt, faFileExport, faPlus, faEdit, faAngleRight, faAngleDown } ...
import {ParentBid} from '../../../../src/types'; import {TweenLite, TimelineLite, Sine, Linear, Power2, Power4} from 'gsap'; import {createMaybeRandomTween} from '../../../../shared/lib/maybe-random'; import AtomArrowBlockElement from '../../atoms/atom-arrow-block/atom-arrow-block'; import AtomChevronElement from '../....
import { BoxedExpression, SemiBoxedExpression } from '../public'; import { factorPower, reducedRational } from '../numerics/numeric'; import { isInMachineRange } from '../numerics/numeric-decimal'; /** * If expression is a product or a division, collect all the terms with a * negative exponents in the denominator, a...
import {XYGlyph, XYGlyphView, XYGlyphData} from "./xy_glyph" import {PointGeometry, SpanGeometry, RectGeometry, PolyGeometry} from "core/geometry" import {LineVector, FillVector, HatchVector} from "core/property_mixins" import * as visuals from "core/visuals" import {Rect, Indices, ScreenArray, to_screen} from "core/ty...
/****************************************************************************** Copyright:: 2020- IBM, 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...
//Node Modules: const osc = require('osc') import { store, state } from '../reducers/store' import { mixerGenericConnection } from '../mainClasses' //Utils: import { IAutomationProtocol, AutomationPresets, } from '../constants/AutomationPresets' import { IFader } from '../reducers/fadersReducer' imp...
import React from "react"; import { gql } from "@apollo/client"; import Modal from "react-modal"; import moment from "moment"; import classnames from "classnames"; import Button from "../commonComponents/Button"; import { displayFullName } from "../utils"; import "./TestResultPrintModal.scss"; import logo from "../../...
<filename>src/app/example/stackblitz.ts<gh_stars>0 import sdk from '@stackblitz/sdk'; function capitalize(s) { return s.charAt(0).toUpperCase() + s.slice(1); } export function openOnStackBlitz(dir: string, file: string, ts: string, markup: string) { const selector = `app-demo-${dir}-${file}`; const componentNam...
import * as $ from "jquery" import { Terminal } from "xterm" import { FitAddon } from "xterm-addon-fit" import { WebLinksAddon } from "xterm-addon-web-links" import { ResizeSensor } from "css-element-queries" let FontFaceObserver = require("fontfaceobserver") let _ = require("lodash") let Split = require("split.js...
<gh_stars>1-10 // Provide the PubnubConnection class, which encapsulates communications with Pubnub to receive // messages in real-time "use strict"; import { Agent as HttpsAgent } from "https"; import HttpsProxyAgent from "https-proxy-agent"; import Pubnub from "pubnub"; import { Disposable } from "vscode-languageserv...
// Copyright 2016-2018, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
<reponame>Felino7727/Angular<gh_stars>1-10 /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Type} from '../interface/type'; import {getClosureSafeProperty} f...
import { Injectable } from '@angular/core'; import * as hljs from 'highlight.js'; import * as yaml from 'js-yaml'; import { EOL } from 'os'; import * as path from 'path'; import * as Remarkable from 'remarkable'; import { escapeHtml, replaceEntities, unescapeMd } from 'remarkable/lib/common/utils'; import { Note, NoteM...
import * as React from 'react'; import { useCallback, useRef, useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import { Select, MenuItem, InputLabel, FormHelperText, FormControl, Chip, } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; impor...
type DescriptionDictionary = { [key: string]: string | undefined }; type EnvironmentDictionary = { [key: string]: string[] | undefined }; type RoomDictionary = { [key: string]: string[] | undefined }; type SkillManagerSkillName = keyof SkillManagerSkills['class'] | keyof SkillManagerSkills['general'] | keyof SkillManag...
<filename>src/common/constants.hockey.ts import type { CompositeWeights, Conf, Div } from "./types"; import type { Position, RatingKey } from "./types.hockey"; const COMPOSITE_WEIGHTS: CompositeWeights<RatingKey> = { playmaker: { ratings: ["stk", "pss", "oiq", "spd", "hgt", "stre"], weights: [1, 1, 1, 1, 0.25, 0....
import { parse } from '@babel/parser' import type { File } from '@babel/types' import type { NodePath } from 'ast-types/lib/node-path' import { visit } from 'recast' import type { namedTypes } from 'ast-types' import Debug from 'debug' import fs from 'fs-extra' import stringify from 'stringify-object' const debug = De...
function test_HandsontableInit() { var elem = document.createElement('div'); var hot = new Handsontable(elem, { allowEmpty: true, allowInsertColumn: true, allowInsertRow: true, allowInvalid: true, allowRemoveColumn: true, allowRemoveRow: true, autoColumnSize: true, autoComplete: []...
import {getCutTiles} from '../algorithms/minCut'; import {Colony} from '../Colony'; import {log} from '../console/log'; import {Mem} from '../memory/Memory'; import {profile} from '../profiler/decorator'; import {packCoord, packCoordList, unpackCoordListAsPosList} from '../utilities/packrat'; import {minMax} from '../u...
<filename>src/Pagic.ts import { React, fs, path, colors } from '../deps.ts'; import { pick, unique, sortByInsert, importDefault, logger, walk, getPagicConfigPath, importPlugin, importTheme, serve, getGitBranch, } from './utils/mod.ts'; import type { PagePropsSidebar, PagicConfigSidebar } from './...
import abiDecoder, { DecodedData } from 'abi-decoder' import config from 'config' import { Eth } from 'web3-eth' import Utils from 'web3-utils' import { EventLog } from 'web3-core' import { RnsBaseService, RnsServices } from '.' import { getBlockDate } from '../../blockchain/utils' import { Logger, SupportedServices, ...
export interface Arrays { [key: string]: number[] | ArrayBuffer } export interface BufferInfo { numElements: number; elementType?: number; indices: WebGLBuffer; attribs: { [key: string]: AttribInfo }; } export interface AttribInfo { numComponents?: number; size?: number; type?: number;...
<gh_stars>0 import { AdderKey, GuildEntity, GuildSettings, readSettings } from '#lib/database'; import type { AdderError } from '#lib/database/utils/Adder'; import type { CustomFunctionGet, CustomGet, GuildMessage } from '#lib/types'; import { Events } from '#lib/types/Enums'; import { floatPromise } from '#utils/commo...
import { Telegraf, Context as TelegrafContext } from 'telegraf'; import type * as tt from 'telegraf/src/core/types/typegram'; import * as https from 'https'; import fetch from 'node-fetch'; import * as utils from './utils'; import * as telegramUtils from './utils/telegram'; import * as databaseM from './database'; impo...
import { isSDKService } from "#PLUGINS/services/src/js/utils/ServiceUtil"; import TaskStates from "#PLUGINS/services/src/js/constants/TaskStates"; import Framework from "#PLUGINS/services/src/js/structs/Framework"; import PodInstanceState from "#PLUGINS/services/src/js/constants/PodInstanceState"; import Util from "....
/* eslint-disable @typescript-eslint/camelcase */ import { createSlice, createEntityAdapter, createSelector } from '@reduxjs/toolkit'; import Axios from 'axios'; import { State } from 'RootStateType'; import { getInitialDemoState, isCRDAction, insertDemoFields, getSliceApiByDemo, getNonDemoSelector, } from ...
import {Api, ApiObject, fetcherResult, Payload} from '../types'; import {fetcherConfig} from '../factory'; import {tokenize, dataMapping} from './tpl-builtin'; import qs from 'qs'; import {evalExpression} from './tpl'; import { isObject, isObjectShallowModified, hasFile, object2formData, qsstringify, cloneO...
import { BigNumber, BigNumberish, Contract, Signer, } from 'ethers'; import axios from 'axios'; import {gql} from '@apollo/client/core'; import {BigNumberType, TypedBigNumber} from '..'; import {System} from '../system'; import {populateTxnAndGas} from '../libs/utils'; import Order from './Order'; import {IAggregato...
import { groupBy, last, orderBy, partition, truncate } from 'lodash'; import React, {useMemo} from 'react'; import { StrategySummary } from 'wdk-client/Utils/WdkUser'; import { formatDateTimeString } from 'wdk-client/Views/Strategy/StrategyUtils'; import { Link } from 'react-router-dom'; import { MesaState, Mesa } fro...
<filename>src/pages/room/Room1/index.ts import { UniversalCamera, Mesh, Scene, StandardMaterial, Texture, Vector3, MeshBuilder, Matrix, Quaternion, Color3, Color4, CubeTexture, SceneLoader, Sound, ShadowGenerator, DirectionalLight, AnimationPropertiesOverride, HemisphericLight, Poi...
// Copyright 2017-2020 @polkadot/api-contract authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { MetaRegistryItem, MetaRegistryJson, MetaTypeDefClikeEnum, MetaType, MetaTypeDefEnum, MetaTypeDefEnumVariant, Met...
import * as React from 'react'; import { StyleSheet, View } from 'react-native'; import { LinearGradient } from 'expo-linear-gradient'; import Animated, { interpolate } from 'react-native-reanimated'; import { interpolateColor, loop, useValue } from 'react-native-redash'; import { ICustomViewStyle, DEFAULT_ANIMATIO...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ jest.mock('./lib/send_email', () => ({ sendEmail: jest.fn(), })); import {...
import queryString from 'query-string'; import { ICommandBarItemProps } from 'office-ui-fabric-react/lib/CommandBar'; import { MessageBarType } from 'office-ui-fabric-react/lib/components/MessageBar'; import { IState } from '../reducer'; import { NULL_SOLUTION_ID, SETTINGS_SOLUTION_ID } from '../../../../constants'; ...
// tslint:disable:no-console // tslint:disable:no-unused-expression // tslint:disable:variable-name import {stub} from "sinon"; import {createDeferredPromise, DeferredPromise} from "alcalzone-shared/deferred-promise"; import {CoapClient as coap, CoapResponse} from "react-native-coap-client"; import {ContentFormats} f...
import * as React from 'react'; import { Flex, FlexItem, Split, SplitItem, Pagination, Progress, ProgressMeasureLocation, ProgressVariant, Text, } from '@patternfly/react-core'; import { Table, TableHeader, TableBody, ICell, IRow, sortable, expandable, classNames, cellWidth, TableC...
<filename>packages/semi-foundation/anchor/foundation.ts import BaseFoundation, { DefaultAdapter } from '../base/foundation'; import { isArray, get } from 'lodash'; import scrollIntoView, { CustomBehaviorOptions } from 'scroll-into-view-if-needed'; import { cssClasses } from './constants'; import React from 'react'; co...
<reponame>appy-one/acebase-core import { cloneObject } from './utils'; import { PathInfo } from './path-info'; import { DataReference } from './data-reference'; import { DataSnapshot } from './data-snapshot'; import type { AceBaseBase } from './acebase-base'; type CreatorFunction = string | ((snap: DataSnapshot) => an...
import { BrandedButton } from '@covid/components'; import { Field, FieldError } from '@covid/components/Forms'; import { ClickableText, ErrorText, HeaderLightText, RegularText } from '@covid/components/Text'; import { ValidatedTextInput } from '@covid/components/ValidatedTextInput'; import Analytics, { events } from '@...
import {css} from '@emotion/core'; import styled from '@emotion/styled'; import {FaLink} from 'react-icons/fa'; import React, {PropsWithChildren, useContext} from 'react'; export type Theme = { colors: { background: st...
import { htmlUnescape } from '../utils/htmlUnescape'; import { SearchRequestModel, SearchRequestModelFilterValue, SearchResponseModelResult, SearchResponseModelResultCoreMappings, SearchResponseModelPagination, SearchResponseModelSearchMatchTypeEnum, } from '@searchspring/snapi-types'; // TODO: Add all core fie...
<reponame>localjo/rspjs import { is, each, flush, OneOrMore, toArray, UnknownProps, noop } from '@react-spring/shared' import * as G from '@react-spring/shared/globals' import { Lookup, Falsy } from './types/common' import { hasDefaultProp } from './helpers' import { FrameValue } from './FrameValue' import { SpringPha...
import React from "react"; import Img from "gatsby-image"; import { OutboundLink } from "gatsby-plugin-gtag"; import Icon from "../components/icon"; import typography from "../styles/typography.module.css"; import style from "../styles/about.module.css"; const githubIcon = "M12 0c-6.626 0-12 5.373-12 12 0 5.302 3....
import R from 'ramda'; import * as path from 'path'; import execa from 'execa'; import pEvent from 'p-event'; import { deserializeError } from 'serialize-error'; import { ForkLevel } from '../api/consumer/lib/test'; import { TESTS_FORK_LEVEL } from '../constants'; import { Analytics } from '../analytics/analytics'; imp...
import express, { Application, Request, Response, NextFunction } from "express"; import http from "http"; import socketIO from "socket.io"; import bodyParser from "body-parser"; import mongodb, { ObjectID } from "mongodb"; const MongoClient = mongodb.MongoClient; const expressSession = require("express-session"); const...
// based on schema type we render different components import { ScrollableContainer, ShellBody, ShellFooter, ShellHeader, ShellMain, } from '@uidu/shell'; import { gridSize } from '@uidu/theme'; import React, { PureComponent } from 'react'; import NavigationGroupComponent from './SideNavigation/NavigationGrou...
<gh_stars>0 import * as blueprints from '@aws-quickstart/eks-blueprints'; import { getSecretValue } from '@aws-quickstart/eks-blueprints/dist/utils/secrets-manager-utils'; import * as cdk from 'aws-cdk-lib'; import { StackProps } from 'aws-cdk-lib'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as eks from 'aws-...
import * as Reg from '../regexp/common'; export const getUrlParams = (): Record<string, string> => { const query: Record<string, string> = {}; if (typeof window === 'undefined') { return query; } window.location.search.replace(/([^?&=]+)=([^&]+)/g, (_, k: string, v: string) => (query[k] = v)); return que...
<filename>packages/extensions/core/src/lib/autorest-core.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---...
<filename>packages/web-components/fast-ssr/src/template-renderer/template-renderer.ts import { Aspect, Aspected, ExecutionContext, ViewBehaviorFactory, ViewTemplate, } from "@microsoft/fast-element"; import { RenderInfo } from "../render-info.js"; import { getElementRenderer } from "../element-rende...
<filename>src/parser.ts import * as fs from 'fs'; import * as path from 'path'; import { ICommandCtor, ICommandDefinition, ICommandOption, isCommand } from './command'; import { Log, SPACE, Workspace } from './lib'; import { IProgramOptionCallback, IProgramOptions, Program } from './program'; /** * interface for fs ...
/* * File: c:\Projects\KENYA ONE PROJECT\Frontend-Electron\src\InitialSizing.js * Project: c:\Projects\KENYA ONE PROJECT\Frontend-Electron * Created Date: Sunday, January 12th 2020, 6:19:50 pm * Author: <NAME> ( <<EMAIL>> ) * ----- * Last Modified: Tuesday November 17th 2020 12:05:47 pm * Modified By: <NAME> ( ...
import prompts from "prompts" import fs from "fs/promises" import path from "path" import os from "os" import {exists, isFolder, tr} from "./utils" import {questionConfig} from "./questionTypes" import yargs from "yargs" imp...
import { Accessibility, toolbarMenuItemBehavior, ToolbarMenuItemBehaviorProps, indicatorBehavior, } from '@fluentui/accessibility'; import * as React from 'react'; import * as _ from 'lodash'; import cx from 'classnames'; import * as PropTypes from 'prop-types'; import { EventListener } from '@fluentui/react-c...
<reponame>cd-yang/maxGraph<gh_stars>0 /** * Copyright (c) 2006-2015, JGraph Ltd * Copyright (c) 2006-2015, <NAME> * Updated to ES9 syntax by <NAME> 2021 * Type definitions from the typed-mxgraph project */ import Image from '../image/ImageBox'; import Client from '../../Client'; import { DEFAULT_VALID_COLOR, D...
<gh_stars>0 import paths from 'path'; import type vscode from 'vscode'; import { IRPCProtocol } from '@opensumi/ide-connection'; import { CancellationToken, Emitter, Event, MessageType } from '@opensumi/ide-core-common'; import { Path } from '@opensumi/ide-core-common/lib/path'; import { FileStat } from '@opensumi/id...
<gh_stars>0 // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { BatchRequest as GeneratedBatchRequest, BatchQueryRequest as GeneratedBatchQueryRequest, QueryBatchResponse as GeneratedQueryBatchResponse, BatchQueryResponse as GeneratedBatchQueryResponse, QueryBody, Table as G...
import Utils from "../Utils"; import { DataTypes, TooltipMeasureFormat } from "./../Constants/Enums"; import { GRIDCONTAINERCLASS } from "./../Constants/Constants"; import {Component} from "./Component"; import {ChartComponentData} from './../Models/ChartComponentData'; import EllipsisMenu from "../Components/Ellipsis...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { timeMilliseconds } from 'd3-time'; import first from 'lodash/fp/firs...
<filename>packages/uui-popover/lib/uui-popover.element.ts import { defineElement } from '@umbraco-ui/uui-base/lib/registration'; import { css, html, LitElement } from 'lit'; import { property, query } from 'lit/decorators.js'; import { UUIPopoverEvent } from './UUIPopoverEvent'; export type PopoverPlacement = | 'aut...
import { ApolloQueryResult } from '@apollo/client' import classNames from 'classnames' import { compact, noop } from 'lodash' import AlertCircleIcon from 'mdi-react/AlertCircleIcon' import React, { useCallback, useMemo, useState } from 'react' import { useHistory } from 'react-router' import { ErrorAlert } from '@sour...
<reponame>Lukakatche/fundamental-ngx<filename>libs/core/src/lib/utils/drag-and-drop/dnd-list/dnd-list.directive.ts import { AfterContentInit, ContentChildren, Directive, ElementRef, EventEmitter, Input, OnDestroy, Output, QueryList } from '@angular/core'; import { DndItemDirective, E...
/* * Copyright by LunaSec (owned by Refinery Labs, Inc) * * Licensed under the Business Source License v1.1 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * https://github.com/lunasec-io/lunasec/blob/master/licenses/BSL-LunaTrace.tx...
import React, { useState, useEffect, MouseEvent } from "react"; import axios from "axios"; import { useNavigate, useSearchParams } from "react-router-dom"; import { LNURLPaymentInfo, LNURLPaymentSuccessAction, LNURLPayServiceResponse, } from "../../types"; import api from "../../common/lib/api"; import msg from ...
/* eslint-disable no-restricted-globals */ import { connect } from "react-redux"; import moment from "moment"; import "moment/locale/fr"; import * as actions from "../../store/actions/index"; import { IState, IUser } from "../../types/types.models"; import { useEffect } from "react"; import Spinner from "../../compone...
import config from '../../config'; import { randomSerialNumber } from '../../utils/stringUtil'; import { IEventModel } from '../../data/repositories/event/event.model'; import { IEventCommissionModel } from '../../data/repositories/event/eventCommission.model'; import { IEventUserModel } from '../../data/repositories/e...
<reponame>mhaertwig/sbb-angular import { logging } from '@angular-devkit/core'; import { ProjectDefinition } from '@angular-devkit/core/src/workspace'; import { chain, noop, Rule, SchematicContext, SchematicsException, Tree, } from '@angular-devkit/schematics'; import { addModuleImportToRootModule, defa...
import React, { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import Badge from '../Common/Badge'; import Button from '../Common/Button'; import useSWR from 'swr'; import type { RadarrSettings, SonarrSettings, } from '../../../server/lib/settings'; import LoadingSpinner from '../Com...
<reponame>Elsa-Health/mammoth<gh_stars>1-10 import _ from 'lodash'; import {useWindowDimensions} from 'react-native'; import React from 'react'; import {ElsaProvider} from '../provider/backend'; import {session} from '../provider/helper'; // import {IMessageEvent, w3cwebsocket as WebSocket} from 'websocket'; /** * C...
<reponame>zixia/face-blinder<filename>src/face-blinder.ts import * as fs from 'fs' import * as path from 'path' import * as rimraf from 'rimraf' import * as util from 'util' import { path as APP_ROOT, } from 'app-root-path' import { AlignmentCache, EmbeddingCache, FaceCache, Fac...