text
stringlengths
3.08k
15.5k
import * as React from "react"; import {useTranslation} from "../i18n"; import useTitle from "../hooks/useTitle"; import {useContext} from "react"; import TopNav from "../contexts/TopNav"; import {Grid, Paper, Typography, useMediaQuery} from "@material-ui/core"; import {makeStyles} from "@material-ui/core/styles"; impo...
<filename>app/src/i18n/langs/en.ts const en = { message: { new_connection: 'New Connection', refresh_connection: 'Refresh', edit_connection: 'Edit Connection', del_connection: 'Delete Connection', close_connection: 'Close Connection', add_new_line: 'Add New Line', redis_version: 'Redis Ver...
<reponame>leonardodalinky/Learn-Helper<filename>src/redux/actions/helper.ts<gh_stars>100-1000 import { Learn2018Helper } from 'thu-learn-lib/lib'; import { ContentType, SemesterType, FailReason, ApiError, CourseType, } from 'thu-learn-lib/lib/types'; import { loginEnd, setProgressBar, showSnackbar, t...
import { useEffect, useRef } from "react"; import { Button, Icon, Typography } from "@mui/material"; import { styled } from "@mui/material/styles"; import { motion, useCycle } from "framer-motion"; import Link from "next/link"; import Router from "next/router"; const Toolbar = styled("div")(({ theme }) => ({ dis...
<gh_stars>0 /******************************************************************************* * checkout.dynamic.component.ts * * Copyright IBM Corp. 2018 * * 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 ...
import {Product, ProductParam} from "@/module/Product"; import {ApiHelper} from "@/api/ApiHelper"; import {Menu, SingleMenuParams} from "@/module/interface/Menu"; import {SyncApiCart} from "@/logic/cart/SyncApiCart"; import {GlobalSettingPreference} from "@/GlobalSettingPreference"; import {ShippingType} from "@/module...
<reponame>faidlurrohman/CODEIGNITER import { Blob, HTMLCanvasElement, HTMLImageElement, Image, URL, XMLHttpRequest } from '@ephox/dom-globals'; import { Option } from '@ephox/katamari'; import { Blob as SandBlob, FileReader, Uint8Array, Window } from '@ephox/sand'; import * as Canvas from './Canvas'; import * as ImageS...
/// <reference path="../../typings/jquery/jquery.d.ts"/> interface JQuery { popover: any; masonry: any; lightGallery: any; simplecolorpicker: any; cropper: any; modal: any; tooltip: any; waypoint: any; select2: any; destroy(action?): any; sideNav(params?):any; carousel(params?):any; collapsible(params?):a...
<filename>src/plots/radar/RadarLayer.ts import { CoordinateType } from '@antv/g2/lib/plot/interface'; import * as _ from '@antv/util'; import ViewLayer from '../../base/ViewLayer'; import { getGeom } from '../../geoms/factory'; import BaseConfig from '../../interface/config'; import { extractScale } from '../../util/sc...
import { Expression } from 'yasqlp'; import methods from './methods'; import { Row } from '../row'; import { AndGraphExpression } from './optimize/graph'; export function castString(value: any): string | null { if (value == null) { return null; } else { return value.toString(); } } export function cast...
import Cookies from 'js-cookie'; import {VuexModule, Module, Mutation, Action, getModule, MutationAction} from 'vuex-module-decorators'; import store from '@/store'; import {ElementUIComponentSize} from 'element-ui/types/component'; import {getToken, removeToken} from '@/utils/auth'; import {logout} from '@/api/login';...
import React, { useMemo, useState, useEffect } from 'react'; import Menu, { MenuProps } from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/MenuItem'; import { withStyles, makeStyles } from '@material-ui/core'; import { useHMSTheme } from '../../hooks/HMSThemeProvider'; import { hmsUiClassParserGener...
import { InjectedNotistackProps, withSnackbar } from 'notistack'; import { pathOr } from 'ramda'; import * as React from 'react'; import { connect } from 'react-redux'; import { compose } from 'recompose'; import ActionsPanel from 'src/components/ActionsPanel'; import Button from 'src/components/Button'; import Paper f...
import binarySearch from './binary-search'; import defaults from './defaults'; import FastStringArray from './fast-string-array'; import type OriginalSource from './original-source'; import type { DecodedSourceMap, SourceMapSegment, SourceMapSegmentObject } from './types'; type Sources = OriginalSource | SourceMapTre...
<reponame>lindsleycj/cumulus<filename>lambdas/postgres-migration-count-tool/src/index.ts import pMap from 'p-map'; import { models } from '@cumulus/api'; import * as S3 from '@cumulus/aws-client/S3'; import { envUtils } from '@cumulus/common'; import Logger from '@cumulus/logger'; import { AsyncOperationPgModel, C...
import { FacebookRequest } from '../lib/FacebookRequest'; import { Image } from '../types'; export function getThreadHistoryGraphQL(request: FacebookRequest) { return async ( options: GetThreadHistoryGraphQL.Options = {}, ): Promise<GetThreadHistoryGraphQL.Response> => { /** * before is used for pagin...
import createCacheKey from '@jest/create-cache-key-function' import type { CacheKeyOptions, TransformedSource, Transformer, TransformOptions } from '@jest/transform' import type { Config } from '@jest/types' import type { Logger } from 'bs-logger' import { ConfigSet } from './config/config-set' import { DECLARATION_TY...
import { map, mergeMap, switchMap, tap } from 'rxjs/operators'; import { Injectable, Inject } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable, of } from 'rxjs'; import { ConfigService } from './config.service'; import { OData } from './odata'; import { IAuthService } from '...
<filename>packages/shared/src/regionHandling/handler.ts import { Callback, CallSource } from '@readium/glue-rpc'; import { IAddRegionListenerOptions, RegionScope, RegionEventHandlingMessage, Region, } from './interface'; import { marshalObject } from '../../../rpc/lib/marshaling'; import { TargetableHandler } f...
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {Config} from '@jest/types'; import { DuplicatesSet, HTypeValue, ModuleMetaData, RawModuleMap,...
import React from "react"; import { Row, Col, FBSelect, Help, Color } from "../../ui"; import { locationFormList, NO_VALUE_SELECTED_DDI, sortVariables, } from "./location_form_list"; import { convertDDItoVariable } from "../locals_list/handle_select"; import { LocationFormProps, AllowedVariableNodes, VariableNode, ...
<filename>src/lib/env.ts // deno-lint-ignore-file no-explicit-any import { existsSync, path } from './deps.ts'; import { abort, debug } from './utils.ts'; export type EnvValue = boolean | string | Array<string>; type EnvValues = { [name: string]: EnvValue }; type EnvFunction = (name?: string, value?: EnvValue) => any...
import * as THREE from 'three'; import { DebugRay } from './debugRay'; import { Heart } from './heart'; import { HeartMaterial } from './heartMaterial'; import { HeartState } from './heartState'; const objectPadding = 0.25; const emptyVector3 = new THREE.Vector3(); interface HeartSceneProps { touchStart: () => v...
import diff from 'fast-diff'; import Editor from '../Editor'; import Delta from '../delta/Delta'; import TextChange from '../doc/TextChange'; import { deltaFromDom } from '../rendering/html'; import { getLineNodeEnd, getLineNodeStart, HTMLLineElement } from '../rendering/rendering'; import { getSelection } from '../ren...
<filename>imports/server/discordClientRefresher.ts import { Meteor } from 'meteor/meteor'; import { Promise } from 'meteor/promise'; import Discord from 'discord.js'; import Flags from '../Flags'; import DiscordCache from '../lib/models/DiscordCache'; import FeatureFlags from '../lib/models/FeatureFlags'; import Meteor...
/* * @Author: 焦质晔 * @Date: 2021-08-28 11:04:13 * @Last Modified by: 焦质晔 * @Last Modified time: 2022-01-12 19:28:14 */ import React, { Component } from 'react'; import classNames from 'classnames'; import { xor, isEqual } from 'lodash-es'; import FormContext from './context'; import ConfigContext from '../../config...
<reponame>mooyoul/node-unipass import { parse as parseXML } from "fast-xml-parser"; import * as moment from "moment-timezone"; import { CompactQueryResultRecord, DetailedQueryResult, MultipleQueryResult, QueryResult, } from "./types"; export { QueryResult }; export class CargoClearanceProgressParser { publ...
import * as gulp from 'gulp'; import { SOURCE_ROOT, DIST_COMPONENTS_ROOT, PROJECT_ROOT } from '../constants'; import * as path from 'path'; import * as gulpTs from 'gulp-typescript'; import WritableStream = NodeJS.WritableStream; var exec = require('child_process').exec; const gulpSourcemaps = require('gulp-sourcemaps...
/** * Main entry point for the desktop notebook UI */ import "@blueprintjs/core/lib/css/blueprint.css"; import "@blueprintjs/select/lib/css/blueprint-select.css"; import "symbol-observable"; import { ContentRecord, ContentRef, createContentRef, makeAppRecord, makeCommsRecord, makeContentsRecord, make...
/** * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * @format */ import * as path from 'path'; import {randomBytes} from 'crypto'; import * as appInsights from 'applicationinsights'; import {execSync} from 'child_process'; export class Telemetry { static client?: appInsights.TelemetryCl...
/* ------------------------------------------------------------------------------------------------- * Core state machine implementation * TODO: Consider adopting a state machine lib or reimplementing for broader usage * -----------------------------------------------------------------------------------------------*...
<reponame>aspect-build/dev-infra<gh_stars>10-100 /** * @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 {ListChoiceOptions, prompt} from 'inquirer'; import {GithubC...
import {StyloMenu} from '../types/menu'; const imageSvg = ({width, height}: {width: number; height: number}): string => `<svg width="${width}" height="${height}" viewBox="0 0 312 243" style={{ fillRule: 'evenodd', clipRule: 'evenodd', strokeLinejoin: 'round', strokeMiterlimit: '...
import * as React from 'react' import * as Styles from '../styles' import Box from './box' import HOCTimers, {PropsWithTimer} from './hoc-timers' import Icon from './icon' import ProgressIndicator from './progress-indicator' import Text from './text' import * as Flow from '../util/flow' const Kb = { Box, Icon, P...
<gh_stars>1-10 /** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as crypto from 'crypto'; import * as path from 'path'; import * as fs from 'graceful-...
<gh_stars>0 /* * Copyright 2021 IBM All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ import { DataTable, setWorldConstructor } from '@cucumber/cucumber'; import * as crypto from 'crypto'; import { connect, ConnectOptions, Contract, Gateway, Identity, Network, Signer, signers } from 'fabric-gateway';...
import * as yup from 'yup' import i18next from 'i18next' import { AgeGroup, SeverityDistributionDatum } from '../../../algorithms/types/Param.types' import { UUIDv4 } from '../../../helpers/uuid' import type { FormData } from '../Main' import { CUSTOM_COUNTRY_NAME } from '../../../constants' import { ageDistributio...
<gh_stars>1-10 import { isInt } from '../util/misc' export type DurationInput = DurationObjectInput | string | number export interface DurationObjectInput { years?: number year?: number months?: number month?: number weeks?: number week?: number days?: number day?: number hours?: number hour?: num...
import { Component, Input, OnInit, OnDestroy, Output, EventEmitter } from '@angular/core'; import { HubService } from '../../hub.service'; import { Subscription} from 'rxjs'; import { CancelToken } from '../../../+auth/auth.models'; import { Functions } from '../../../shared/utils/functions'; import { AuthService } fro...
<reponame>vaporsjs/vapors.js<gh_stars>0 "use strict"; import { getAddress } from "@vaporsproject/address"; import { BigNumber, BigNumberish } from "@vaporsproject/bignumber"; import { arrayify, BytesLike, DataOptions, hexDataSlice, hexlify, hexZeroPad, isBytesLike, SignatureLike, splitSignature, stripZeros, } from "@v...
/* Copyright 2019, 2020 mx-puppet-bridge 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 writing, soft...
import { registerCollection, ProtectedString, Time, unprotectString, protectString } from '../lib' import { TimelineObjectCoreExt, TSR, OnGenerateTimelineObj } from '@sofie-automation/blueprints-integration' import { createMongoCollection } from './lib' import { StudioId, ResultingMappingRoutes, DBStudio } from './Stud...
import React from "react"; import classNames from "classnames"; import style from "./style.css"; interface PopoverContentProps { onClose?: () => void; closeOnClick?: any; onClickOutSide?: () => void; className?: string; placement?: string; showArrow?: boolean; style?: any; } class Popover...
/** * @license * Copyright 2018 Google LLC. All Rights Reserved. * 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 a...
/* * 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 { Observable, Subject, Subscription, timer } from 'rxjs'; import { tak...
<reponame>hallyourbase/bokeh /* XXX: partial */ import {Annotation, AnnotationView} from "./annotation"; import {ArrowHead, OpenHead} from "./arrow_head"; import {DataSource} from "../sources/data_source" import {ColumnDataSource} from "../sources/column_data_source"; import {NumberSpec} from "core/vectorization" impor...
/* eslint no-underscore-dangle: 0 */ import isPlainObject from 'is-plain-object'; import { logger } from '@storybook/client-logger'; import { StoryContext, StoryFn, Parameters } from '@storybook/addons'; import { toId } from '@storybook/csf'; import mergeWith from 'lodash/mergeWith'; import isEqual from 'lodash/isEqua...
import http from 'http'; import https from 'https'; import Axios, { AxiosInstance, AxiosResponse } from 'axios'; import type { MultiverseChain, RestRequestFindCandles, RestRequestFindMarkets, RestRequestFindTrades, RestResponseAsset, RestResponseCandle, RestResponseExchangeInfo, RestResponseMarket, R...
import * as React from 'react'; import { Animated, Image, ScrollView, Text, TouchableOpacity, View } from 'react-native'; import TrackingGestures from 'react-native-tracking-gestures'; import { data } from './data'; export default function App(): JSX.Element { let _scrollX = React.useRef(new Animated.Value(0)).cu...
import { Orbit } from '@orbit/core'; import { InitializedRecord, RecordIdentity, equalRecordIdentities, RecordQueryBuilder, RecordTransformBuilder } from '@orbit/records'; import { RecordCacheQueryOptions, RecordCacheTransformOptions, RecordCacheUpdateDetails, RecordRelationshipIdentity, RecordTrans...
import * as React from 'react'; import { Dimensions, Image, Keyboard, ScrollView, StyleSheet, Text, TextInput, View, Platform } from 'react-native'; const ReactElements = require('react-native-elements'); const { connect } = require('react-redux'); import { register } from '../actions'; import { LOGO } from './common...
declare global { // eslint-disable-next-line @typescript-eslint/no-namespace namespace Cypress { interface Chainable { /** * Custom command to work in the context of a portal-based component. * @example cy.withinPortal('.cy-greeting-dialog', () => { doSomething() }) * @example cy.with...
import {DOM} from "../../../utility-belt/helpers/dom/DOM-shortcuts"; import {devprint} from "../../../utility-belt/helpers/debug/devprint"; export interface LeftDrawerItemList<T> { close(): void open(): void set(item: T[]): void add(item: T): void remove(item: T): void clear(): void } const DRAWER_ID = 'f...
<filename>src/main/azure-auth/AuthProvider.ts<gh_stars>0 /* eslint-disable no-console */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { AccountInfo, AuthenticationResult, AuthorizationCodeRequest, AuthorizationUrlRequest, CryptoProvider, LogLe...
import * as ed from '@starcoin/stc-ed25519'; import { stripHexPrefix, addHexPrefix } from 'ethereumjs-util'; import { arrayify, hexlify } from '@ethersproject/bytes'; import { bytes } from '../lib/runtime/serde'; import * as starcoin_types from '../lib/runtime/starcoin_types'; import { BcsSerializer } from '../lib/runt...
import { Identity } from '../../identity/identity' import { getRegistrar } from '@jolocom/jolo-did-registrar' import { DidDocument } from '../../identity/didDocument/didDocument' import { ServiceEndpointsSection, PublicKeySection, } from '../../identity/didDocument/sections' import { fuelKeyWithEther, stripHexPrefi...
import { CompilerOptions } from "./CompilerOptions"; import * as fs from "fs"; import * as path from "path"; import * as ts from "typescript"; import * as yargs from "yargs"; interface ParsedCommandLine extends ts.ParsedCommandLine { options: CompilerOptions; } interface YargsOptions { [key: string]: yargs.O...
import * as React from "react"; import { CircularProgressbar, buildStyles } from "react-circular-progressbar"; import "react-circular-progressbar/dist/styles.css"; import { browser, Tabs } from "webextension-polyfill-ts"; import { MessageEventName, ScoreConfig, ScoreKey } from "../types"; import { getGradeFromScoreTota...
<reponame>cloud-hybrid/cloud-factory // generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * Amazon API Gateway Websocket and HTTP APIs */ export interface DataAwsApigatewayv2ApiConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform ...
import { getSystemPath, JsonObject, JsonValue, normalize, strings } from '@angular-devkit/core' import { apply, chain, mergeWith, move, Rule, SchematicContext, SchematicsException, template, Tree, url, } from '@angular-devkit/schematics' import { NodePackageInstallTask } from '@angular-devkit/schema...
// Libraries import React, {Component, MouseEvent} from 'react' import classnames from 'classnames' // Components import {ClickOutside} from 'src/shared/components/ClickOutside' import DropdownDivider from 'src/clockface/components/dropdowns/DropdownDivider' import DropdownItem from 'src/clockface/components/dropdowns...
// TODO setImmediate, nextTick, requestAnimationFrame, cancelAnimationFrame // TODO async timers import type { JestMockCompat } from './jest-mock' import { spyOn } from './jest-mock' const originalSetTimeout = global.setTimeout const originalSetInterval = global.setInterval const originalClearTimeout = global.clearTi...
<reponame>OffchainLabs/augur import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import MarketView from 'modules/market/components/market-view/market-view'; import { loadMarketsInfo } from "modules/markets/actions/load-markets-info"; import { selectMarket, selectSortedMarketOutco...
import { ControlState, ControlDefinition, Lfo, SelectOption, ControlDataType, NumMIDIChannels, KeyMap } from "../Types"; import { AppState } from "../AppContext"; import { v4 as uuidv4 } from 'uuid'; import { getInheritParts } from "./elysiumutils"; // ---------------------------------------------------------------- /...
<reponame>chaofan-nirvana/nativescript-socketio import { Common } from './socketio.common'; declare const io: any, org: any, android: any, java: any, co: any; export class SocketIO extends Common { protected socket: any; /* io.socket.client.Socket; */ constructor(...args: any[]) { super(); ...
import { v4 as uuidv4 } from 'uuid' import slugify from 'slugify' import deepClone from 'clone-deep' import { Component } from '@angular/core' import { NgbModal } from '@ng-bootstrap/ng-bootstrap' import { ConfigService, HostAppService, Profile, SelectorService, ProfilesService, PromptModalComponent, PlatformService, B...
/* Copyright 2021, Milkdown by Mirone. */ import React from 'react'; import { useLocation, useNavigate } from 'react-router-dom'; import { i18nConfig, Local } from '../../route'; import { Mode } from '../constant'; import { editorModeCtx, isDarkModeCtx, setEditorModeCtx, setIsDarkModeCtx, setLocalCtx } from '../Contex...
<gh_stars>1-10 import cookie from 'cookie' declare const AUTH0_DOMAIN: String; declare const AUTH0_CLIENT_ID: String; declare const AUTH0_CLIENT_SECRET: String; declare const AUTH0_CALLBACK_URL: String; declare const SALT: String; declare const AUTH_STORE: any; const auth0 = { domain: AUTH0_DOMAIN, clientId: ...
<filename>src/extension/src/scripts/run-tests.ts const child_process = require("child_process"); const path = require("path"); const fs = require("fs"); const del = require("del"); import asyncForEach from "../utils/extensions"; const cyanColor = "\x1b[36m%s\x1b[0m"; const redColor = "\x1b[31m%s\x1b[0m"; const yellowCo...
// Test conformance with IETF BCP 195 (https://www.rfc-editor.org/info/bcp195), consisting of: // - RFC 7525: Recommendations for Secure Use of Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS) // - RFC 8996: Deprecating TLS 1.0 and TLS 1.1 import execa from 'execa'; import { TlsDetails } f...
/* * 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 the Apache License, Version 2.0 (the * "License"); you may no...
import * as THREE from 'three' import { EnumMeshType, EnumWorkerEvents, getWorkerAsync } from './util' class Reactive<T>{ public prop: T private cb: Function[] = [] get(cb: (arg: { newVal: T, oldVal: T }) => void){ this.cb.push(cb) return this.prop } set(val: T){ for (const cb of this.cb) { ...
import * as Icons from '@material-ui/icons' import * as faker from 'faker' import { Button, FormControl, FormHelperText, Grid, IconButton, Input, InputAdornment, InputLabel, Paper } from '@material-ui/core' import { ErrorMessage, useForm } from 'react-hook-form' import React, { useState } from 'react'...
<gh_stars>1-10 import * as fs from 'fs'; import * as optimist from 'optimist'; import * as path from 'path'; /** * The command line interface for interacting with the Protractor runner. * It takes care of parsing command line options. * * Values from command line options override values from the config. */ let a...
import { isReactive, mergeProps, mergeProp } from './component' import { NotReactiveElementError } from './error' import { tryParseToString, hashify, isObject, Obj } from './utils' import { resolveDirective } from './directive' import { generateEventOptions, removeNodes } from './dom' import { Patcher } from './patcher...
import { ChangeDetectorRef, Directive, Inject, InjectionToken, Input, NgModule, OnDestroy, OnInit, Optional } from '@angular/core'; import type { MatPaginator } from '@angular/material/paginator'; import type { Observable } from 'rxjs'; import { Subscription } from 'rxjs'; import { MatSort } from '@an...
import { ChaCha20Impl } from 'crypto/ciphers'; import { HMACImpl } from 'crypto/hmac'; import { RNGImpl } from 'crypto/random'; import { Endpoint } from 'mesh/agents/network'; import { LinkupAddress } from 'net/linkup'; import { PeerInfo } from '../PeerGroupAgent'; import { PeerSource } from '../PeerSource'; /* Takes ...
import {Button, CardBody, Col, FormFeedback, FormGroup, Input, Label, Row} from "reactstrap"; import React, {useState} from "react"; import {PasswordFeedback, ValidationUser} from "../../../../IsaacAppTypes"; import {AuthenticationProvider, UserAuthenticationSettingsDTO} from "../../../../IsaacApiTypes"; import {MINIMU...
/* * @license Spanboon Platform v0.1 * (c) 2020-2021 KaoGeek. http://kaogeek.dev * License: MIT. https://opensource.org/licenses/MIT * Author: p-nattawadee <<EMAIL>>, Chanachai-Pansailom <<EMAIL>>, Americaso <<EMAIL>> */ import { E } from '@angular/cdk/keycodes'; import { Component, EventEmitter, HostListener, I...
<gh_stars>1-10 import { Request, Response, NextFunction, Router as ExpressRouter } from 'express'; import * as bodyParser from 'body-parser'; import * as path from 'path'; import * as glob from 'glob'; import { IController } from './Handlers/IController'; import { Auth } from './Auth/Auth'; import { IAuthorizer } from...
/** * @license * Copyright 2020 Google LLC. All Rights Reserved. * 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 app...
import {Component, Injector, OnInit, ViewChild} from '@angular/core'; import {_HttpClient, TitleService} from '@delon/theme'; import {NzMessageService} from "ng-zorro-antd/message"; import {ActivatedRoute, Router} from "@angular/router"; import {RailwayLine} from "../../../pojos/railway-line/railway-line"; import {Stat...
<gh_stars>100-1000 /* eslint-disable max-len */ import { ClassName, Default, MetisMenuEvents } from './constant'; import { IMMOptions } from './interface'; import { EventType, SpecificEventListener, CustomEventListener } from './types'; class MetisMenu { protected config: IMMOptions; protected element: Element; ...
<filename>src/IonSpan.ts<gh_stars>0 /* * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at: * * http://aws.am...
import { $TSAny, $TSContext, $TSObject, stateManager } from 'amplify-cli-core'; import { printer } from 'amplify-prompts'; import { validateAddStorageRequest, validateImportStorageRequest, validateRemoveStorageRequest, validateUpdateStorageRequest, } from 'amplify-util-headless-input'; import * as path from 'pa...
import invariant from 'tiny-invariant' import type { Editor } from '@app/types' import { FIRST_LINE_OR_LAST_LINE_THERESHOLD } from '@app/utils' import { getBlockElementContentEditbleById, getElementEndPoint, getElementStartPoint, restoreSelection, saveSelection } from './contentEditable' import { isSelectionA...
<gh_stars>1-10 import { Attribute, Component, ElementRef, EventEmitter, forwardRef, HostBinding, Input, Output, Renderer2, ViewChild, ViewEncapsulation, Self, Optional, DoCheck, HostListener } from '@angular/core'; import {ControlValueAccessor, NgForm, FormGro...
<reponame>AppleHolic/jsii import { TypeReference } from 'jsii-reflect'; import * as log from '../../../logging'; import { SpecialDependencies } from '../dependencies'; import { Package } from '../package'; import { GoType } from './go-type'; /* * Maps names of JS primitives to corresponding Go types as strings */ c...
import { ContentFrontmatter, Frontmatter, FrontmatterDefaults, FrontmatterWithDefaults, SelectFrontmatter, TaxonomyFrontmatter, } from '../types' import { extname } from 'path' import { readFileSync } from 'fs' import { AssignmentExpression, Identifier, MemberExpression, ObjectExpression, } from 'es...
import { DecorationRenderOptions, ExtensionContext, OverviewRulerLane, TextEditorDecorationType, } from "vscode"; import {InterfaceVscode} from "../wrappers/vscode"; import {Reporter} from "./reporter"; export interface IConfigStore { coverageFileNames: string[]; fullCoverageDecorationType: Tex...
<filename>src/common/components/ControlPanel/Actions/Actions.styles.ts<gh_stars>10-100 import styled from 'styled-components' import { deviceWidth } from '../../../../lib/commonData' export const ActionLinksWrapper = styled.div` display: flex; flex-flow: row wrap; justify-content: space-between; margin: 0; w...
import { computed } from "mobx" import { isString, findClosestTime, keyBy, isNumber, entityNameForMap, uniq, sortNumeric, } from "grapher/utils/Util" import { ChoroplethData } from "grapher/mapCharts/ChoroplethMap" import { MapTopology } from "./MapTopology" import { ChartTransform } from ...
import {ethers, waffle} from 'hardhat'; import chai from 'chai'; import chaiAsPromised from "chai-as-promised"; import cryptoMemeArtifact from '../artifacts/contracts/CryptoMeme.sol/CryptoMeme.json'; import {CryptoMeme} from '../typechain-types/CryptoMeme'; import {SignerWithAddress} from '@nomiclabs/hardhat-ethers/...
class Lightbox { /* * See ./src/scss/layouts/_lightbox.scss for structure. * --------------------------------------------------------------------- */ readonly CLASS_FADE_IN_OUT = "animation--fade-in-out" public main = document.querySelector<HTMLDivElement>("#lightbox")! public buttonClose =...
import { traverseDirectory, writeFile, getRelativePath, lookUpRelativePath, eraseAndRecreateDirectory, resolvePath, copyFile2, getFileNameExtension, } from "./fs_utils"; import { diffFiles } from "./patch_utils"; import { log } from "./logger"; import { isFileBinary } from "./file_type_utils"; import { ...
<gh_stars>1-10 // Next.js API route support: https://nextjs.org/docs/api-routes/introduction import type { NextApiRequest, NextApiResponse } from 'next' type Service= { id:number; "type": string; "badge_color":string; "publisher": string; "title": string; "description": string; "trust": number; pledg...
import { copySkeleton, isArray, isObject } from "./utils"; export enum DiffType { NEW = "NEW", MODIFIED = "MODIFIED", REMOVED = "REMOVED", ARRAY = "ARRAY", } interface AuditProps { ignore?: string[]; options?: AuditKeyOptions[]; } export interface AuditKeyOptions { key: string; title?...
<reponame>cr-tech-repo/id-apps /** * Copyright (c) 2020, cic Inc. (http://www.cic.org) All Rights Reserved. * * cic Inc. licenses this file to you 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 ...
/** * @license * Copyright 2018 Palantir Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
import * as React from 'react'; import { compose, graphql } from 'react-apollo'; import { Booking, Currency, APPROVE_BOOKING, CANCEL_BOOKING, REJECT_BOOKING, PAYOUT_BOOKING, GET_ALL_BOOKINGS } from 'networking/bookings'; import AudioLoading from 'components/loading/AudioLoading'; import Fab from 'compone...