text
stringlengths
3.3k
33k
import * as React from 'react'; import { useEffect, useState } from 'react'; import styles from "./Directory.module.scss"; import { PersonaCard } from "./PersonaCard/PersonaCard"; import { spservices } from "../../../SPServices/spservices"; import { IDirectoryState } from "./IDirectoryState"; import * as strings from "...
import * as React from 'react'; import { InteractionManager, Keyboard, Platform, StatusBar, StyleSheet, View, } from 'react-native'; import { PanGestureHandler, PanGestureHandlerGestureEvent, State as GestureState, } from 'react-native-gesture-handler'; import Animated, { interpolate, runOnJS, u...
import { DOCUMENT } from '@angular/common'; import { Component, Inject, OnInit } from '@angular/core'; import { manifest } from '@ant-design/icons-angular'; import { AccountBookFill } from '@ant-design/icons-angular/icons'; import { NzIconService } from 'ng-zorro-antd/icon'; export interface Categories { direction: ...
<filename>src/formatter/json_formatter.ts import Formatter, { IFormatterOptions } from './' import { formatLocation, GherkinDocumentParser, PickleParser } from './helpers' import * as messages from '@cucumber/messages' import { getGherkinExampleRuleMap, getGherkinScenarioLocationMap, } from './helpers/gherkin_docum...
<filename>src/router/other.ts import { IMenubarList } from '/@/type/store/layout' import { components } from '/@/router/asyncRouter' const Components:IObject<() => Promise<typeof import('*.vue')>> = Object.assign({}, components, { Layout: (() => import('/@/layout/index.vue')) as unknown as () => Promise<typeof impor...
<reponame>duluca/angular /** * @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 {ComponentFactory, ComponentFactoryResolver, Injector, NgZone, Type} from '@angular/...
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export interface ArgParsingOptions { unknown?: (i: unknown) => unknown; boolean?: boolean | string | string[]; alias?: { [key: string]: string | string[] }; string?: string | string[]; default?: { [key: string]: unknown }; "--"?: boo...
<gh_stars>0 /* * Copyright 2017 The boardgame.io Authors * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ import 'svelte'; import { Dispatch, StoreEnhancer, createStore, compose, applyMiddleware, } fro...
import { getTags } from '@linode/api-v4/lib/tags'; import classNames from 'classnames'; import { withSnackbar, WithSnackbarProps } from 'notistack'; import { clone } from 'ramda'; import * as React from 'react'; import { compose } from 'recompose'; import Plus from 'src/assets/icons/plusSign.svg'; import CircleProgress...
import { AfterViewInit, Component, Input, OnInit, ViewChild } from '@angular/core'; import {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms'; // import { MatPaginator } from '@angular/material/paginator'; import { MatSort} from '@angular/material/sort'; import {debounceTime, ta...
// Copyright 2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import React from "react"; import { formValueSelector, InjectedFormProps, reduxForm } from "redux-form"; import styled, { createGlobalStyle } from "styled-components"; import { Icon, Popover, Spinner, Tag } from "@blueprintjs/core"; import { components, MenuListComponentProps, OptionProps, OptionTypeBase, Sin...
/** * Portions Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * Based on the comment attachment algorithm used in espree and estraverse. * * Redistribution and use in source an...
import * as path from 'path'; import * as vscode from 'vscode'; import * as state from '../state'; import { highlight } from '../highlight/src/extension' import { NReplSession } from '../nrepl'; import * as util from '../utilities'; import select from '../select'; import { formatCode } from '../calva-fmt/src/format'; i...
import { computed, onMounted, ref, Ref, watch } from 'vue'; import { useStore } from 'vuex'; import useWeb3 from '@/services/web3/useWeb3'; import { GP_SUPPORTED_NETWORKS } from '@/services/gnosis/constants'; import useNumbers from '../useNumbers'; import useTokens from '../useTokens'; import useUserSettings from '.....
<filename>sdk/servicebus/service-bus/src/core/autoLockRenewer.ts // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { ConnectionContext } from "../connectionContext"; import { logger } from "../log"; import { InternalReceiveMode, ServiceBusMessageImpl } from "../serviceBusMessage"; impor...
#!/usr/bin/env ts-node -O {"module":"commonjs","target":"es2016"} /// <reference types='jquery' /> /// <reference types="kendo-ui" /> import * as fs from "fs"; const balanced = require('balanced-match'); const components = { // editors Alert: { attachTag: 'div', isPro: false }, AutoComplete: { attachTag: 'input...
import { Injectable, Logger } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { getTreeRepository, Repository, TreeRepository, } from 'typeorm'; import { TreeEntity } from './entities/treeentity.entity'; import { WkoCategory } from './entities/wkocategory.entity'; import { WkoCompany }...
import { Remote, ProxyMarked } from 'comlink' import * as sourcegraph from 'sourcegraph' import { Contributions, Evaluated, Raw, TextDocumentPositionParameters, HoverMerged } from '@sourcegraph/client-api' import { MaybeLoadingResult } from '@sourcegraph/codeintellify' import { DeepReplace, ErrorLike } from '@sourcegr...
<gh_stars>0 import { AuthHandler } from "./auth"; import { Constants, Platform } from "./common"; import { DocumentClient, FeedOptions, MediaOptions, Options, RequestOptions } from "./documentclient"; import { DocumentClientBase } from "./DocumentClientBase"; import { IHeaders } from "./queryExecutionContext"; import {...
<reponame>mdashlw/MSMC<filename>index.d.ts /** * For more information. Check out Microsoft's support page: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-authorization-code <br> * * Basically this is the prompt value in the request sent to Microsoft. This should...
import type { Constructable } from "./interfaces.js"; import { Metadata } from "./metadata.js"; /** * A Context object defines an optional initial value for a Context, as well as a name identifier for debugging purposes. * @public */ export type Context<T> = { readonly name: string; readonly initialValue?: ...
<reponame>dtnguyn/Polygot import { User } from "../entity/User"; import { FeedDetailJSON, NewsDetailJSON, SubtitlePart, WordDetailSimplifyJSON, } from "../utils/types"; import superagent from "superagent"; import { getRepository } from "typeorm"; import { FeedJSON } from "../utils/types"; import extractor from ...
<gh_stars>1-10 import BetterMixer from "../BetterMixer.js"; import EmoteSet from "../EmoteSet.js"; import ChatMessage from "../ChatMessage.js"; import { waitFor, observeNewElements, executeInOrder, sleep } from "../Utility/Promise.js"; import { patchEmoteDialog } from "./EmoteDialogPatcher.js"; import { parseMessageEmo...
<gh_stars>1-10 import * as vscode from 'vscode'; import * as xmldoc from 'xmldoc'; import * as guidUtils from '../guidUtilsProvider'; export interface TocEntry { text: string; children?: string[]; detail: string; readonly level: number; readonly line: number; readonly location: vscode.Location; readonly ...
import * as ston from 'ston' import * as stdn from 'stdn' import * as base from './base' import * as urls from './urls' import * as counter from './counter' import * as extractor from './extractor' import {compile, multiCompile} from './mod' export const supportedHTMLTags = [ 'address', 'article', 'aside', 'footer'...
<filename>packages/abc/table/table-column-source.ts import { Host, Inject, Injectable, Optional } from '@angular/core'; import { ACLService } from '@delon/acl'; import { AlainI18NService, ALAIN_I18N_TOKEN } from '@delon/theme'; import { deepCopy } from '@delon/util'; import { STRowSource } from './table-row.directive'...
// Imports import { Renderer } from './gameEngine/windowManager/renderer'; import { TextureLoader } from './gameEngine/loadManager/textureLoader'; import { Sprite } from './gameEngine/objectManager/sprite'; import { Texture } from './gameEngine/objectManager/texture'; import { Vector2f } from './gameEngine/math/ve...
/* * Copyright 2021 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
import { BadRequestException, ConflictException, ForbiddenException, HttpStatus, Injectable, InternalServerErrorException, NotFoundException, } from '@nestjs/common' import { Request, Response } from 'express' import { createResetPasswordToken, getUserByEmail, getUserById, re...
/// <reference path="./test_harness.d.ts" /> /// <reference path="../output/dijit.d.ts" /> /// <reference path="../output/doh.d.ts" /> import doh = require("doh/main"); import date = require("dojo/date"); import locale = require("dojo/date/locale"); import lang = require("dojo/_base/lang"); import on = require("dojo/o...
import { RenterFactoryService } from './../../../providers/renter-factory/renter-factory.service'; import { LendersFactoryService } from './../../../providers/lenders-factory/lenders-factory.service'; // import { RentersFactoryService } from './../../../providers/renters-factory/renters-factory.service'; import { Lende...
<reponame>avoidik/automate import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { routerReducer } from '@ngrx/router-store'; import {...
<filename>sdk/servicebus/service-bus/test/internal/unit/unittestUtils.ts<gh_stars>1-10 // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { ConnectionContext } from "../../../src/connectionContext"; import { AwaitableSender, Receiver as RheaReceiver, ReceiverEvents, ReceiverOptio...
<filename>src/main/webapp/climateCrud/src/app/climates/climates.component.ts import {Component, OnDestroy, ViewChild} from '@angular/core'; import { ClimateService } from 'src/app/services/climate.service'; import {Observable, Subject, combineLatest, from, of} from 'rxjs'; import {map, takeUntil} from "rxjs/operators";...
<gh_stars>0 import { format, BuiltInParserName } from "prettier"; import { DESCRIPTION, EXAMPLE, TODO } from "./tags"; import { AllOptions } from "./types"; import { capitalizer, formatCode } from "./utils"; import fromMarkdown from "mdast-util-from-markdown"; import { Root, Content, Link, Image, Text, List } from "mda...
import * as get from 'lodash.get'; /** fetch 中间件的 types */ type F<T> = { [key in keyof T]: { success: key; error: 'error'; loading: 'loading' } }; type B<T> = { [key in keyof T]: key }; export const NO_ERROR_TYPES = -1; const LOADING_SUFFIX = '_LOADING'; const SUCCESS_SUFFIX = '_SUCCESS'; const ERROR_SUFFIX = '_ERRO...
import React, { Component } from 'react' import moment from 'moment' import chrono from 'chrono-node' import classnames from 'classnames' import DatePicker from 'react-datepicker' import 'react-datepicker/dist/react-datepicker.css' import analytics from 'src/analytics' import { remoteFunction } from 'src/util/webextens...
import { BN } from 'ethereumjs-util' import { PrecompileInput } from './types' import { OOGResult, ExecResult } from '../evm' import { VmError, ERROR } from '../../exceptions' const assert = require('assert') // The following blake2 code has been taken from (license: Creative Commons CC0): // https://github.com/dcposc...
import handlebars from "handlebars" import jwt from "jsonwebtoken" import LRUCache from "lru-cache" import moment from "moment" import { ObjectID } from "mongodb" import uaParser from "ua-parser-js" import url from "url" import { send } from "../../lib/mailer" import { db } from "../../lib/mongo" import parse from "../...
<gh_stars>0 interface IConfig { events?: IEvent; nodes: IRootNode[]; } interface IEvent { onClick: (self: INodePosition) => void; } interface INodePosition { children?: () => INodePosition[]; parent?: () => INodePosition; additionalData: any; connections: string[]; cx: number; cy: number; id: stri...
/** * MoveNet model implementation * * Based on: [**MoveNet**](https://blog.tensorflow.org/2021/05/next-generation-pose-detection-with-movenet-and-tensorflowjs.html) */ import { log, join, now } from '../util/util'; import * as box from '../util/box'; import * as tf from '../../dist/tfjs.esm.js'; import * as coord...
// Copyright (c) 2015 - 2018 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
<gh_stars>10-100 import { IBuildApi } from "azure-devops-node-api/BuildApi"; import { BuildDefinition, BuildDefinitionVariable, } from "azure-devops-node-api/interfaces/BuildInterfaces"; import commander from "commander"; import { Config } from "../../config"; import { validateRepository } from "../../lib/git/azure...
<reponame>EusthEnoptEron/bookmeter-viewer import { AbstractMesh, ActionManager, Color4, DynamicTexture, ExecuteCodeAction, Mesh, MeshBuilder, Scene, Texture, Vector2, VertexBuffer } from '@babylonjs/core'; import { DateTime } from 'luxon'; import { StringUtils } from '../../util/StringUtils'; import { CategoryBubble } ...
import * as React from 'react'; import classNames from 'classnames'; import * as D3Scale from 'd3-scale'; import * as D3Selection from 'd3-selection'; import * as D3Axis from 'd3-axis'; import * as D3Shape from 'd3-shape'; import * as D3Zoom from 'd3-zoom'; import * as rbush from 'rbush'; import { BatchTasks, Sequentia...
import React, { createElement, Component } from 'react'; import map from 'lodash/map'; import get from 'lodash/get'; import each from 'lodash/each'; import isEmpty from 'lodash/isEmpty'; import cloneDeep from 'lodash/cloneDeep'; import merge from 'lodash/merge'; import classNames from 'classnames'; import { ALL_CONTA...
<reponame>jpcx/cert-is /** * @author <NAME> <<EMAIL>> * @license MIT * @see {@link http://github.com/jpcx/cert-is|GitHub} */ /*.----------------------------------------------------------------------------, / Usage / This script tidies up t...
import * as Chat2Gen from '../chat2-gen' import * as ConfigGen from '../config-gen' import * as Constants from '../../constants/push' import * as Types from '../../constants/types/push' import * as NotificationsGen from '../notifications-gen' import * as ProfileGen from '../profile-gen' import * as PushGen from '../pus...
import { useRouter } from "next/router"; import { GetServerSideProps } from "next"; import { connect } from "react-redux"; import * as React from "react"; import dynamic from "next/dynamic"; import { verifyAuth } from "actions/auth/AuthActions"; import { getBolos } from "actions/bolos/BoloActions"; import { getCalls }...
import React, {Component} from 'react'; import {RouteComponentProps} from "react-router"; import {Link, Redirect} from "react-router-dom"; import * as THREE from 'three'; import {OrbitControls} from "three/examples/jsm/controls/OrbitControls"; import {GLTFLoader} from 'three/examples/jsm/loaders/GLTFLoader'; import {DR...
import { ContextExclusionPlugin, DefinePlugin, HotModuleReplacementPlugin, } from 'webpack'; import Config from 'webpack-chain'; import { resolve } from 'path'; import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'; import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; import TerserPlugi...
import { head, identity } from 'lodash'; import { Loader, MercuriusLoaders } from 'mercurius'; import { createContextId, REQUEST } from '@nestjs/core'; import { ModulesContainer } from '@nestjs/core/injector/modules-container'; import { MetadataScanner } from '@nestjs/core/metadata-scanner'; import { ExternalContextCre...
/** * @license * Copyright (c) 2020 Google Inc. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional IP rights grant found at * http://polymer.github.io...
<filename>core/ecschema-metadata/src/Metadata/Format.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-----------------...
import { ChartFactory } from 'app/component/workspace/chart/chart.factory'; import { ColorEnum } from 'app/model/enum.model'; import * as THREE from 'three'; import { Object3D, Vector2 } from 'three'; export class PathwayNodeEnum { static readonly COMPARTMENT = 'compartment'; static readonly MACROMOLECULE = 'macro...
<filename>src/app/module-blueprint/components/component-menu/component-menu.component.ts<gh_stars>0 import { Component, OnInit, Output, EventEmitter } from '@angular/core'; import { MenuItem, MessageService} from 'primeng/api'; import { CameraService, IObsCameraChanged, DrawHelpers, Overlay, Display, Visualization } f...
<filename>src/app/ms-back-office/modules/ms-brands/components/edit-brand-form/edit-brand-form.component.ts<gh_stars>0 import { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms'; i...
import { ChangeAttributes, IChangedAttributesProperties } from "../../track-revision/track-revision"; import { BorderElement, IBorderOptions } from "file/border"; import { IShadingAttributesProperties, Shading } from "file/shading"; import { HpsMeasureElement, IgnoreIfEmptyXmlComponent, OnOffElement, StringValueElemen...
/* * Copyright 2021 Salto Labs Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
import fs from 'fs'; import * as http from 'http'; import * as querystring from 'querystring'; import { Request, Response } from 'express'; import { createProxyMiddleware } from 'http-proxy-middleware'; import { bodyParser, default as jsonServer } from 'json-server'; import { statistics } from '@/mocked-apis/statistics...
import Apify, { Dataset, KeyValueStore } from 'apify'; import objectPath from 'object-path'; import { getStoreData, validateName, errorString, Logger } from './utils'; import { GLOBAL_STORE, CLOUD_GLOBAL_STORES } from './constants'; import { State, SetStateFunctionCallBack, DefaultStoreName, StoreSta...
import { AggregationOption, IncompleteDataCorrectiveAction, TemporalResolution, TemporalResolutionOption } from '@/types/Enums'; import { Timeseries, TimeseriesPoint } from '@/types/Timeseries'; import _ from 'lodash'; const REMOVE_BELOW = 0.25; const NO_CHANGE_ABOVE = 0.9; const SUPERSCRIPTS = new Map([ [I...
<reponame>baffyntiamoah/azure-sdk-for-js // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { OperationType, ResourceType, isReadRequest } from "./common"; import { CosmosClientOptions } from "./CosmosClientOptions"; import { Location, DatabaseAccount } from "./documents"; import { Reques...
import { ImmutableNotebook } from "@nteract/commutable"; import { Channels, childOf, createMessage, JupyterMessage, ofMessageType } from "@nteract/messaging"; import { sendNotification } from "@nteract/mythic-notifications"; import { AnyAction } from "redux"; import { ActionsObservable, ofType, StateObservabl...
import React, { useEffect, useState } from 'react' import { Col, Row, Table } from 'antd' import Column from 'antd/lib/table/Column' import { useActions, useValues } from 'kea' import { RiseOutlined, FallOutlined, EllipsisOutlined, InfoCircleOutlined } from '@ant-design/icons' import { funnelLogic } from 'scenes/funnel...
import { isNil, isFunction, isUndefined, isString, isSymbol, randomString, } from '../utils' import { Injectable, DynamicModule, Type, NestdModule } from '../interfaces' import { ModuleRef } from './module-ref' import { NestdContainer, InstanceWrapper } from './container' import { ModulesContainer } from '....
/*! * structs-polyfill: WeakMap, Map, WeakSet, and Set for older browsers. * Copyright 2015 <NAME> * Licensed under MIT (https://github.com/dregre/structs-polyfill/blob/master/license.txt) */ // (function(window){ var uidCount = 0; function uid(what: any): string{ if(!!what && typeof what === 'object') { ...
/***** License -------------- Copyright © 2017 Bill & Melinda Gates Foundation The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens...
import { AgencyTypes, AgencyUser, RequestTypeNames, } from "../../../utils/enums"; import { Button, Checkbox, Col, Divider, Form, Input, Row, Select, message, } from "antd"; import { Drawer } from "../"; import { FormInstance } from "antd/lib/form"; import React from "react"; import { Store } from "antd/lib...
<gh_stars>0 import { ApiQueryResults, CompiledDimension, DimensionType, fieldId as getFieldId, friendlyName, getDimensions, TableCalculation, } from 'common'; import { useEffect, useState } from 'react'; import { getDimensionFormatter } from './useColumns'; import { useExplore } from './useE...
<reponame>webyom/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------...
<reponame>mbz-touk/nussknacker<filename>ui/client/components/graph/NodeUtils.ts /* eslint-disable i18next/no-literal-string */ import _, {uniqBy} from "lodash" import fp from "lodash/fp" import * as ProcessDefinitionUtils from "../../common/ProcessDefinitionUtils" import ProcessUtils from "../../common/ProcessUtils" im...
import React, { ReactNode, useState, useEffect, useMemo } from 'react'; import { FocusedInput, START_DATE, END_DATE, useDatepicker, useMonth } from '@datepicker-react/hooks'; import { cnCreate } from '@megafon/ui-helpers'; import differenceInDays from 'date-fns/differenceInDays'; import format from 'date-fns/format'; i...
<gh_stars>1-10 import { fromPairs, groupWith, prop, propEq, sortBy, toPairs, uniqBy, } from 'ramda'; import invariant from 'ts-invariant'; import { ArrayShape, LeafShape, ObjectMap, ObjectRef, ObjectShape, ObjectShapeField, getObjectHash, isObjectRef, unwrap, } from './common'; export i...
<reponame>nightowlcasino/NightOwl-Backend import { Request, Response } from "express" import logger from "../logger" import {v4 as uuidv4} from 'uuid' import { NANOERG_TO_ERG, FEE_VALUE, MIN_BOX_VALUE, TOKENID_TEST, TOKENID_FAKE_WITNESS, TOKENID_FAKE_LP, TEST_GAME_WITNESS_CONTRACT_ADDRESS, TEST_HOUSE_C...
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {MultiClassClassificationModels} from '../../Models'; import React, {useCallback, useEffect, useState, useR...
import { useCallback, useEffect, useMemo, useState } from 'react'; import * as React from 'react'; import ColourSelection from './ColourSelection'; import TokenImageEditor from './TokenImageEditor'; import TokenPlayerSelection from './TokenPlayerSelection'; import { IPlayer } from '../data/adventure'; import { defaul...
<gh_stars>0 import {Injectable} from '@angular/core'; import {HttpClient, HttpHeaders} from '@angular/common/http'; import {catchError, filter, map, mergeMap, retryWhen, switchMap, tap} from 'rxjs/operators'; import {HTTP} from '~/app.constants'; import {UsersGetAllResponse} from '~/business-logic/model/users/usersGetA...
<reponame>rebeccalarner/mprove<gh_stars>0 import { Location } from '@angular/common'; import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core'; import { Title } from '@angular/platform-browser'; import { ActivatedRoute, Router } from '@angular/router'; import FuzzySearch from 'fuzzy-search'; impo...
<gh_stars>0 import { IMidwayApplication, IMidwayBootstrapOptions, IMidwayContainer, IMidwayContext, IMidwayFramework, MidwayFrameworkType, } from '@midwayjs/core'; import { isTypeScriptEnvironment } from '@midwayjs/bootstrap'; import { Server } from 'net'; import { start2 } from './start'; import * as expre...
<filename>types/voca/voca-tests.ts<gh_stars>1-10 import v = require('voca'); let str: string; let num: number; let bool: boolean; let strAry: string[]; let numAry: number[]; // Case str = v.camelCase(); str = v.camelCase('bird flight'); str = v('bird flight').camelCase().value(); str = v.chain('bird flight').camelCas...
<gh_stars>0 import { Component, Inject, OnDestroy, OnInit } from '@angular/core' import { Subject } from 'rxjs' import { MatDialogRef } from '@angular/material/dialog' import { ModalComponent } from '../../../../../cdk/modal/modal/modal.component' import { RecordWorksService } from '../../../../../core/record-works/rec...
<gh_stars>1-10 /* eslint-disable @typescript-eslint/no-explicit-any */ import { equals, first } from 'remeda'; import type { JsonObject, JsonValue } from 'type-fest'; import type { DeepPartial } from 'utility-types'; import type { NonFunction, ValOrValFN } from '../utility/helper-types'; import { isJsonObject, notEmpty...
/* eslint-disable no-underscore-dangle */ import React from 'react'; import { ContextActionUtils } from '../context-actions'; export enum MODIFIER { CTRL = 'MODIFIER_CTRL', CMD = 'MODIFIER_CMD', ALT = 'MODIFIER_ALT', OPTION = 'MODIFIER_OPTION', SHIFT = 'MODIFIER_SHIFT', } // The value should match the Keybo...
/** * @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 {Type} from '@angular/compiler'; import * as ts from 'typescript'; import {ImportRewriter} from '../../import...
<filename>src/order.ts // TODO: add ['any-link', 'first-child', 'fullscreen', 'future', 'in-range', 'last-child', 'left', 'out-of-range', 'right', 'scope'] export const variantOrder = [ 'hover', 'focus', 'active', 'visited', 'link', 'target', 'focus-visible', 'focus-within', 'checked...
import { isEqual } from 'lodash'; import * as React from 'react'; import AceEditor, { Annotation } from 'react-ace'; import { HotKeys } from 'react-hotkeys'; import 'brace/ext/searchbox'; import 'brace/mode/javascript'; import '../workspace/editorTheme/source'; import { ICodeDelta, Input, IPosition, ISelectionRange, ...
<reponame>OfficeDev/BotBuilder-MicrosoftTeams-node<filename>samples/message-extension-bot/src/bot.ts<gh_stars>10-100 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { StatePropertyAccessor, TurnContext, CardFactory, BotState, Activity, ActionTypes, Attachment } fr...
/** * Ducks - https://github.com/huan/ducks * * @copyright 2020 <NAME> (李卓桓) <https://github.com/huan> * * 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....
<filename>packages/multishift/src/multishift-hooks.ts import { useId } from '@reach/auto-id'; import { setStatus } from 'a11y-status'; import type { DependencyList, Dispatch, EffectCallback, MutableRefObject } from 'react'; import { useEffect, useReducer, useRef } from 'react'; import useEffectOnce from 'react-use/lib/...
/** * Copyright 2018 Shift Devices AG * Copyright 2021 Shift Crypto AG * * 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...
<reponame>skirby1996/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------...
<gh_stars>1-10 // The value of the enum indicates the number of halftoneSteps from one note to the next export enum NoteEnum { C = 0, D = 2, E = 4, F = 5, G = 7, A = 9, B = 11 } /** Describes Accidental types. * Do not use the number values of these enum members directly for calculation an...
import React, { useContext, useEffect, useRef, useState } from "react" import Select, { ClearIndicatorProps, components, InputProps, MenuProps, MultiValueProps, OptionProps, PlaceholderProps, SingleValueProps, } from "react-select" import AsyncSelect from "react-select/async" import CreatableSelect from...
import * as karateTestManager from '@/execution/KarateTestsManager'; import { karateExecutionsTreeProvider as executionsTreeProvider } from '@/views/KarateExecutionsTreeProvider'; import { karateNetworkLogsTreeProvider } from '@/views/KarateNetworkLogsTreeProvider'; import { ChildProcessWithoutNullStreams, spawn } ...
<filename>lib/collection/collection.ts import { Pulse, State, Group, PrimaryKey, GroupName, GroupAddOptions, Selector, Data } from '../internal'; import { defineConfig, shallowmerge } from '../utils'; import { deepmerge } from '../helpers/deepmerge'; import { normalizeArray } from '../utils'; // Shorthand for an expan...
import { repeat } from './common'; import { Node, BlockNode, BlockNodeType, isCodeBlock, isHtmlBlock, createNode, TableCellNode } from './node'; import { InlineParser, C_NEWLINE } from './inlines'; import { blockHandlers, Process } from './blockHandlers'; import { CODE_INDENT } from './blockHelper'; impor...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { Ast, AstUtils } from "../../language"; import { AncestryUtils, NodeIdMap, NodeIdMapUtils, ParseContext, TXorNode, XorNodeKind } from "../../parser"; import { Position, PositionUtils } from "../position"; import { ActiveNode } from "./a...
import { GeometryStyle } from '../../../chart_types/xy_chart/rendering/rendering'; import { Rotation } from '../../../chart_types/xy_chart/utils/specs'; import { AreaStyle, DisplayValueStyle, LineStyle, PointStyle, RectBorderStyle, RectStyle, } from '../../../utils/themes/theme'; import { Dimensions } from ...