text stringlengths 10 953k |
|---|
import each = require('lodash/each')
import set = require('lodash/set')
import {Sort} from '../../types'
/**
* @param {Array<[string, any]>[]} expressions
*
* @returns {any}
*/
const fn: Sort = (...expressions: Array<[string, any]>[]) => {
let sort: any = {$sort: {}}
each(expressions, ([field, order]) => set(... |
import { makeStyles } from '@material-ui/core';
const useStyles = makeStyles((theme) => ({
agentInfoContainer: {
marginTop: theme.spacing(3.25),
padding: theme.spacing(3.125, 6.5),
display: 'flex',
alignItems: 'center',
},
agentInfoBlock: {
flexGrow: 1,
},
agentInfoData: {
display: 'f... |
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient.ts";
import { ListDataSourcesRequest, ListDataSourcesResponse } from "../models/models_0.ts";
import {
deserializeAws_restJson1ListDataSourcesCommand,
serializeAws_restJson1ListDataSourcesCommand,
} from "../p... |
/*
* 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 expect from '@kbn/expect';
import { UserAtSpaceScenarios } from '../..... |
import detectEthereumProvider from '@metamask/detect-provider';
const metamaskService = {
async getEthereum(): Promise<any> {
return await detectEthereumProvider({ mustBeMetaMask: true });
},
};
export default metamaskService; |
import { TypeaheadDirective } from './typeahead/typeahead.directive';
import { TypeaheadContainerComponent } from './typeahead/typeahead-container.component';
export { TypeaheadDirective } from './typeahead/typeahead.directive';
export { TypeaheadContainerComponent } from './typeahead/typeahead-container.component';
ex... |
/**
* @license
*
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { customElement } from 'lit-element';
import ddsSettings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settin... |
import Debug from 'debug';
import { EventEmitter } from 'events';
import { ApplicationConfig } from '../model/application';
const debug = Debug('server:runtime-ctx');
type ErrorInfo = {
timestamp: Date;
message: string;
ex: any;
};
const MAX_RESERVE_ERRORS = 100;
export class RunTimeEnvironment {
private e... |
import React from 'react';
import { SVGIconProps } from '../createIcon';
export declare const OutlinedCopyrightIconConfig: {
name: 'OutlinedCopyrightIcon',
height: 512,
width: 512,
svgPath: 'M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 448c-110.532 0-200-89.451-200... |
/* tslint:disable */
// This file was automatically generated and should not be edited.
//==============================================================
// START Enums and Input Objects
//==============================================================
export enum FulfillmentStatus {
CANCELED = "CANCELED",
FULFILLE... |
import { Service } from "../service.ts";
import { DocumentData } from '../client.ts'
export class Avatars extends Service {
/**
* Get Browser Icon
*
* You can use this endpoint to show different browser icons to your users.
* The code argument receives the browser code as it appears in your us... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
/**
* Curried function meant to replicate experience of 'connect' method of 'react-redux'
* @param {function} mapStateToProps maps store state to individual props
* @return {function} a function that receives a class to use as super, to return a subclass that has can connect to the redux store
*/
export function co... |
import BScroll from '@better-scroll/core';
import MouseWheel from '@better-scroll/mouse-wheel';
import ObserveDom from '@better-scroll/observe-dom';
import PullDownRefresh from '@better-scroll/pull-down';
import PullUpLoad from '@better-scroll/pull-up';
import ScrollBar from '@better-scroll/scroll-bar';
import Slide fr... |
import wallpapers from "./data/wallpapers"
interface AppState {
[key: string]: any
}
let appState: AppState = {
darktheme: false,
transparency: false,
backgroundImage: wallpapers[15].path,
volume: 100,
brightness: 100,
nightlight: false
}
try {
const data = localStorage.getItem('preferences')
if (d... |
import { ApolloServer, CreateHandlerOptions } from 'apollo-server-azure-functions';
import { HttpRequest, Context } from '@azure/functions';
import { DataSources } from '../data-sources/';
import { connect } from '../../infrastructure/data-sources/cosmos-db/connect';
import { GraphQLServiceContext } from 'apollo-server... |
import { PartialType } from "@nestjs/swagger";
import { IsBoolean, IsUUID, IsNotEmpty, IsNumber, IsPositive, IsString, MaxLength, MinLength, IsOptional } from "class-validator";
export class CreateExpenseDetailDto {
@IsNotEmpty()
@IsString()
@MinLength(2)
@MaxLength(20)
description: string;
@... |
"use strict";
import {
CancellationToken,
CodeLens,
CodeLensProvider,
Event,
EventEmitter,
Range,
TextDocument,
DebugConfiguration
} from "vscode";
import { RustTests } from "./RustTests";
import { basename, dirname } from "path";
export class RustCodeLensProvider implements CodeLensProvider {
constr... |
import {CompilerPath} from "@internal/compiler";
import doesNodeMatchReactPattern from "./doesNodeMatchReactPattern";
function checkClassComponentAncestry({node, scope}: CompilerPath): boolean {
return (
node.type === "JSClassHead" &&
node.superClass !== undefined &&
(doesNodeMatchReactPattern(node.superClass, ... |
import { Component } from '@angular/core';
@Component({
selector: 'todo-root',
templateUrl: 'app/html/app.html'
})
export class AppComponent { } |
// Structs and functions that manage the frontend of Constraint groups. This
// data is later parsed into actual Constraints by "constraints-parsing.ts"
// The available constraints on a local group level.
const GroupMenu = ['contains', 'excludes', 'is size',
'has attribute', 'has attribute relation... |
import { createContext, useState, ReactNode, useContext, useEffect } from 'react'
import { ChanllengesContext } from '../contexts/ChallengesContext'
interface CountdownContextData {
minutes: number;
seconds: number;
hasFinished: boolean;
isActive: boolean;
startCountdown: () => void;
resetCountdown: () =>... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const Chat1Dimensions: {
height: number;
width: number;
}; |
import log = require('loglevel');
if (global.process.env.NODE_ENV === 'development') {
log.setLevel('debug');
} else {
log.setLevel('info');
}
export default log; |
import { assert } from 'chai';
import { itr8FromArrayAsync, itr8Range, itr8ToArray } from '../..';
import { average } from './average';
describe('operators/numeric/average.ts', () => {
it('average(...) operator works properly', async () => {
// sync
assert.deepEqual(
itr8Range(1, 10).pipe(
aver... |
import React from 'react'
import {GatsbyLayout} from '~/gatsby/components/layout'
import {GatsbySEO} from '~/gatsby/components/seo'
const HTTP404Page = () => (
<GatsbyLayout>
<GatsbySEO title="404: Not found" />
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Gat... |
import { EventEmitter } from "events";
import { sample, Debug, noop, defaults } from "../utils";
import { IRedisOptions, getNodeKey, NodeKey, NodeRole } from "./util";
import Redis from "../redis";
const debug = Debug("cluster:connectionPool");
type NODE_TYPE = "all" | "master" | "slave";
export default class Connec... |
import { expect } from 'chai';
import * as sinon from 'sinon';
import { asapScheduler, Subscription, SchedulerAction, merge } from 'rxjs';
import { delay } from 'rxjs/operators';
import { TestScheduler } from 'rxjs/testing';
import { observableMatcher } from '../helpers/observableMatcher';
import { immediateProvider } ... |
const mongoose = require('mongoose');
const express = require('express');
const app = express();
//requiring the file that has the command to connect to the database
const connectDB = require('./database/connection.js');
//importing the toScrapeUser model as toScrapeCollection, whenever we want to make a change in the ... |
import Endereco from './Endereco';
describe('Endereco', () => {
test('should create a new Endereco', () => {
const endereco = new Endereco('79097210', '', '', 300, '');
expect(endereco).toBeDefined();
});
}); |
import * as React from "react";
import { Switch, Route } from "react-router";
import { VITA, CSS } from "../consts/route-names";
import VitaPage from "./VitaPage";
import CSSPage from "./CSSPage";
import ThePragmaticProgrammer from "./../note/ThePragmaticProgrammer";
class App extends React.Component<any, any> {
sta... |
import { ComponentFixture, TestBed, async, inject, fakeAsync, tick } from '@angular/core/testing';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { Observable } from 'rxjs/Observable';
import { JhiEventManager } from 'ng-jhipster';
import { SampleTestModule } from '../../../test.module';
import { ... |
import React from 'react'
import {View, StyleSheet, Image, ImageSourcePropType, TouchableOpacity} from 'react-native'
import {observer} from 'mobx-react'
import {IMessage, IWocky, IProfile, IFile, MessageStatus} from 'src/wocky'
import {RText, Avatar, Spinner} from '../common'
import Triangle from '../map/Triangle'
imp... |
import { NgModule, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { BrowserModule } from '@angular/platform-browser';
import { RestService } from './services/rest.service';
import { AppRoutingModule } from './app.routing';
import {
... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import { DeleteSmsChannel } from "../model/operations/DeleteSmsChannel";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "../types/OutputTypesUnion";
i... |
import * as React from 'react';
import { AppState, ModalTab } from '../reducer';
import { connect } from 'react-redux';
import { closeModalTab, openModalTab, removeModalTab } from '../actions';
interface OwnProps {
modalTab: ModalTab;
}
interface Props extends OwnProps {
activeModalTabId: string;
dispatch: any;
}
... |
import { Logger } from '@nestjs/common';
import util from 'util';
import fs from 'fs';
import mongoose, { Connection } from 'mongoose';
const readFile = util.promisify(fs.readFile);
import dotenv from 'dotenv';
import { User, UserSchema } from '@modules/user/user.schema';
import { Product, ProductSchema } from '@module... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import express, {
RequestHandler,
Request,
Response,
NextFunction,
Router
} from "express";
import {
OIDC_DEFAULT_SCOPES,
InteractionRequiredAuthError,
StringUtils,
} from "@azure/msa... |
import { Clause } from '../clause';
import { Dictionary, Many, map, mapValues, flatMap, castArray } from 'lodash';
import { stringifyLabels } from '../utils';
import { TypedDictionary } from '../types';
export type RemoveProperties
<L extends string = string,
T extends string = string,
P extends string = s... |
import { createLogger } from '@unly/utils-simple-logger';
import {
NextApiRequest,
NextApiResponse,
} from 'next';
import Sentry, { configureReq } from '../../utils/monitoring/sentry';
const fileLabel = 'api/status';
const logger = createLogger({
label: fileLabel,
});
export const status = async (req: NextApiR... |
/* tslint:disable */
/* eslint-disable */
/**
* Sifchain - gRPC Gateway docs
* A REST interface for state queries, legacy transactions
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
... |
import {Injectable, Inject} from 'angular2/core';
import {Dispatcher} from "./dispatcher/dispatcher";
import {UserInfoActionCreator} from "./actions/userinfo-action";
import {PlayListActionCreator} from "./actions/playlist-action";
import {PlayActionCreator} from "./actions/play-action";
import {UserInfoStore }... |
import { Field, ObjectType, ID } from "@nestjs/graphql";
import { ObjectId } from 'mongoose';
@ObjectType()
export class FeesDto{
@Field(() => ID)
studentId: ObjectId
@Field()
monthlyFee: number
@Field()
Concession: number
@Field()
isPaid: boolean
@Field()
amountPaid: number... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<source>About Zetacoin Core</source>
<translation>Despre Nucleul Zetacoin</translation>
</message>
<message>
<source><b>Zetacoin Core</b> version</sourc... |
import React from "react";
import { MONTHS } from "../recent-updates/RecentItem";
import locationIcon from "../../../assets/location.svg";
import clockIcon from "../../../assets/clock.svg";
import phoneIcon from "../../../assets/phone.svg";
// Renders a recent event list item given props describing the event
const Ev... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { JobsStatsComponent } from './jobs-stats.component';
describe('JobsStatsComponent', () => {
let component: JobsStatsComponent;
let fixture: ComponentFixture<JobsStatsComponent>;
beforeEach(async(() => {
TestBed.configureTesti... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { SvgIconComponent } from './svg-icon.component';
@NgModule({
declarations: [SvgIconComponent],
imports: [CommonModule],
exports: [SvgIconComponent]
})
export class SvgIconModule {} |
import {debounce} from "../../src";
test("debounce no overlaps between instances", () => {
const delay = 10;
class Foo {
public calls: Array<[number, number]> = [];
@debounce(delay)
public search(value: number) {
this.calls.push([value, now]);
}
}
jest.useF... |
import React from 'react';
import SvgMapIcon, { ISvgMapIconConsumerProps } from './SvgMapIcon';
export default function OreIcon(props: ISvgMapIconConsumerProps) {
return <SvgMapIcon {...props}>
<path
d='M 7.6575463,11.664948 13.704628,12.327861 15.067127,9.366851 11.816726,7.563686 14.886091,5.... |
import Layout from '../components/Layout'
import ArticelList from './articles/index'
const IndexPage = () => (
<Layout index="0">
<ArticelList/>
</Layout>
)
export default IndexPage |
interface ITradeRepository {
getTrades() : Rx.Observable<ITrade[]>;
} |
<TS language="nl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klik met de rechtermuisknop om het adres of label te wijzigen</translation>
</message>
<message>
<source>Create a new address</sour... |
import * as React from 'react';
import * as Highcharts from 'highcharts';
import { Row, Col } from 'react-bootstrap';
import HeatmapPlot, { HeatMapProps } from '../../../../display_modules/plots/HeatmapPlot';
import HighChartsPlot from '../../../plots/HighChartsPlot';
import { HeatMapDatum } from '../../../../display_... |
import { ErrorHandler, NgModule } from '@angular/core';
import { CommonModule, DatePipe } from '@angular/common';
import { InputDurationDirective } from './duration/input-duration.directive';
import { DurationFromStringPipe } from './duration/duration-from-string.pipe';
import { DurationToStringPipe } from './duration/... |
export default [
'Allée',
'Chemin',
'Cours',
'Rue',
'Avenue',
'Boulevard',
'Drève',
'Galerie',
'Impasse',
'Jardin',
'Quai',
'Passage',
'Parc',
'Parvis',
'Petite rue',
'Place',
'Porte',
'Square',
'Voie',
]; |
import {Pipe, PipeTransform} from '@angular/core';
import {environment} from '@app/env';
/**
* Generated class for the BuildUrlPipe pipe.
*
* See https://angular.io/api/core/Pipe for more info on Angular Pipes.
*/
@Pipe({
name: 'buildUrl',
})
export class BuildUrlPipe implements PipeTransform {
/**
* ... |
import { Store } from '@ngrx/store';
import { denormalize, schema as normalizrSchema } from 'normalizr';
import { combineLatest, interval as observableInterval, Observable } from 'rxjs';
import { tag } from 'rxjs-spy/operators/tag';
import { distinctUntilChanged, filter, map, publishReplay, refCount, share, startWith, ... |
import { LexerTokenList } from "./lexer/types";
export class IMAPError extends Error {
public source?: string;
public readonly wrappedError?: Error;
constructor(msg: string);
constructor(wrappedError: Error);
constructor(msg: string, wrappedError: Error);
constructor(msgOrErr: string | Error, wrappedError?: Err... |
// Copyright IBM Corp. 2017,2018. All Rights Reserved.
// Node module: @loopback/repository
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {sinon, expect} from '@loopback/testlab';
import {
EntityCrudRepository,
HasManyRepository,
DefaultCr... |
import Tile from "./tile";
import Wall from "../tiles/wall";
import None from "../tiles/none";
import { Room } from "../rooms/room";
export default class Door extends Tile {
clearance?: { xInc?: number; yInc?: number; dir?: string };
constructor(x: number, y: number, room: Room) {
super(x, y, room);
this.... |
/*
* Copyright 2020-2021 The NATS Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
import { EventHandler, formatUnit, isNullOrUndefined } from '@syncfusion/ej2-base';
import { SfSchedule } from '../../schedule';
import { ViewBase } from './view-base';
import { IRenderer, NotifyEventArgs } from '../base/interface';
import * as util from '../base/util';
import * as cls from '../base/css-constant';
/**... |
import { QueryBuilder } from "./QueryBuilder";
import { ObjectLiteral } from "../common/ObjectLiteral";
import { ObjectType } from "../common/ObjectType";
import { QueryPartialEntity } from "./QueryPartialEntity";
/**
* Allows to build complex sql queries in a fashion way and execute those queries.
*/
export declare ... |
'use strict';
const angular = require('angular');
import CreateRecLetterController from './createrecletter.controller';
export default angular.module('recLettersApp.createrecletter', [])
.controller('CreateRecLetterController', CreateRecLetterController)
.name; |
import axios from "axios"
const http = axios.create({
baseURL: process.env.REACT_APP_API_URL,
})
// Interceptor that checks for auth token at request time
http.interceptors.request.use((config) => {
const authToken = localStorage.getItem("AUTH_TOKEN")
if (authToken) {
config.headers.Authorization = `Bearer ... |
import * as S from './styles'
export type LoaderProps = {
loading: boolean
message?: string
}
const Loader = ({ loading, message }: LoaderProps) => (
<>
{loading && (
<S.Wrapper data-testid={'loader-wrapper'}>
<S.WrapperDots>
{[...Array(8).keys()].map((_, index: number) => (
... |
// Implementation of a cache for arbitrary k8s custom resource in openebs.io
// api with v1alpha1 version.
import * as _ from 'lodash';
import {
CustomObjectsApi,
HttpError,
KubeConfig,
KubernetesObject,
KubernetesListObject,
ListWatch,
V1ListMeta,
Watch,
} from 'client-node-fixed-watcher';
const Even... |
/*
* This file is part of the @mscs/console package.
*
* Copyright (c) 2020 media-service consulting & solutions GmbH
*
* For the full copyright and license information, please view the LICENSE
* File that was distributed with this source code.
*/
import * as os from "os";
import { Writable } from "stream";
imp... |
import React from 'react';
import { useSelector } from 'react-redux';
import { RootState } from '../../../../app/rootReducer';
import { useCollection } from 'react-firebase-hooks/firestore';
import { Spinner, Text } from '@ui-kitten/components';
import { View, ScrollView, TouchableOpacity } from 'react-native';
import ... |
import { Component } from '@angular/core';
import { ConferenceData } from '../../providers/conference-data';
import { ActivatedRoute } from '@angular/router';
import { Observable } from 'rxjs';
import { mentionSpeakerTwitter } from '../../utils/social-engagement';
import { Session } from '../../providers/conference.mod... |
export { config as envConfig } from 'https://deno.land/std@0.129.0/dotenv/mod.ts';
export { serve as httpServe } from 'https://deno.land/std@0.129.0/http/server.ts';
export { Pool as PgPool } from 'https://deno.land/x/postgres/mod.ts'; |
/*
* spurtcommerce API
* version 2.2
* http://api.spurtcommerce.com
*
* Copyright (c) 2019 piccosoft ltd
* Author piccosoft ltd <support@piccosoft.com>
* Licensed under the MIT license.
*/
import { Service } from 'typedi';
import { OrmRepository } from 'typeorm-typedi-extensions';
import { Logger, LoggerInterf... |
// Copyright 2017-2021 @polkadot/rpc-core authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as metaInfo } from '@polkadot/metadata/packageInfo';
import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo';
import { packageInfo as typesInfo } from '@polkadot/types/p... |
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { WidgetStateSelectorComponent } from './widget-state-selector/widget-state-selector.component';
import { WidgetTextboxComponent } from './widget-textbox/widget-textbox.compone... |
import { Bounds } from '@glimmer/interfaces';
import { assert, cast, clearElement, Option, unwrap } from '@glimmer/util';
import {
InsertPosition,
Namespace,
SimpleDocument,
SimpleElement,
SimpleNode,
} from '@simple-dom/interface';
import { DOMOperations, moveNodesBefore } from '../dom/operations';
export c... |
import { registerAs } from '@nestjs/config';
export default registerAs('mysql', () => ({
type: process.env.DB_TYPE,
host: process.env.DB_HOST,
port: process.env.DB_PORT,
username: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
name: process.env.DB_NAME,
typeormSync: process.env.TYPEORM_SYNC,... |
import { NgModule } from '@angular/core';
import { FaDuotoneIconComponent } from './icon/duotone-icon.component';
import { FaIconComponent } from './icon/icon.component';
import { FaLayersCounterComponent } from './layers/layers-counter.component';
import { FaLayersTextComponent } from './layers/layers-text.component';... |
import produce from "immer";
import { Reducer } from "redux-actions";
import { reducerBuilder } from "watson-core";
import { ContextMenuItem,
ContextMenu } from "./context-menu.models";
import types from "./context-menu.types"
const menuItemDe... |
import { Module } from '@nestjs/common';
@Module({})
export class GestionModule {} |
export interface IAppConfiguration {
codepen: {
assetsBaseUrl: string
};
} |
import * as _ from 'lodash';
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'persona_propietarioDataFilter'
})
export class Persona_propietarioFilterPipe implements PipeTransform {
transform(array: any[], query: string): any {
if (query) {
return _.filter(array, row => ro... |
import { TTMDBResponse } from 'api/types';
import createImagePath from 'helpers/createImagePath';
import { TMovie } from 'types';
const parseDataToGallery = (data?: TTMDBResponse): TMovie[] => {
if (!data) {
return [];
}
return data.results?.map(({ id, poster_path, title, overview }) => ({
id,
title... |
import randomstring from 'randomstring';
import { Role, Token, User } from '../lib/types/user';
import { getConfig } from '../lib/utils/config';
import logger from '../lib/utils/logger';
import { getState, setState } from '../utils/state';
import { fetchAndAddFavorites } from './favorites';
import { checkPassword, cre... |
import Spotify from './Spotify';
interface spotify extends Spotify {
hexRgb(hex: any): number[];
getData(uri: any): any;
}
export default spotify; |
import { l } from "./Localization";
import LibDataBroker from "@wowts/lib_data_broker-1.1";
import LibDBIcon from "@wowts/lib_d_b_icon-1.0";
import { OvaleOptionsClass } from "./Options";
import { defaultScriptName, OvaleScriptsClass } from "../engine/scripts";
import { OvaleFrameModuleClass } from "./Frame";
import ac... |
/// <reference types="webdriverio/webdriverio-core" />
export default function scrollIntoView(this: WebdriverIO.Element, scrollIntoViewOptions?: boolean): Promise<void>;
//# sourceMappingURL=scrollIntoView.d.ts.map |
/*
* Copyright (c) 2012-2019 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... |
import {
VuexModule,
Module,
Action,
Mutation,
getModule
} from 'vuex-module-decorators';
import { login, logout, getUserInfo } from '@/api/users';
import { getToken, setToken, removeToken } from '@/utils/cookies';
import store from '@/store';
export interface IUserState {
token: string
name: string
av... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatButtonModule, MatIconModule, MatTooltipModule } from '@angular/material';
import { MatButtonToggleModule } from '@angular/material/button-toggle';
import { RouterModule } f... |
import express, { Router } from "express";
import { Strategy as GoogleStrategy } from "passport-google-oauth20";
import { Authenticator, Profile } from "passport";
import { default as ApiClient } from "@magda/auth-api-client";
import {
createOrGetUserToken,
getAbsoluteUrl,
redirectOnSuccess,
redirectOnE... |
export enum Options {
TargetUrl = "target-url",
IncludePageNumberWithSource = "include-page-number-with-source",
IncludeDescription = "include-description",
IncludeLink = "include-link"
}
export type AllOptions = Record<Options, string>;
export const OptionDefaults: AllOptions = {
[Options.TargetUrl]: "http... |
import { Event } from '@sapphire/framework';
import { DiscordAPIError, HTTPError } from 'discord.js';
const NEWLINE = '\n';
export class UserEvent extends Event {
public run(error: Error) {
const { client } = this.context;
if (error instanceof DiscordAPIError) {
client.logger.warn(`[API ERROR] [CODE: ${error.... |
import { IdeaProposal } from '../index.d';
import { ethers } from 'ethers';
export async function voteOnIdeaProposal(
demergenceContractAddress: string,
demergenceContractABI: Array<string>,
ethereumProvider: Readonly<ethers.providers.Web3Provider>,
ideaProposal: Readonly<IdeaProposal>,
support: bo... |
import {Book} from './book';
import {Item} from './item';
export class Basket {
items: Map<number, Item>;
constructor(items?: Item[]){
this.items = new Map<number, Item>();
if (items){
items.forEach( (val: Item, index: number) => {
this.items.set(val.product.id, val);
} );
}
}
getItems= (... |
/*
* Copyright 2020 Red Hat, Inc. and/or 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 a... |
import * as assert from 'assert';
import { EOL } from 'os';
import * as vscode from 'vscode';
import * as path from 'path';
import { initialize, closeActiveWindows } from '../initialize';
import { normalizeMarkedString } from '../textUtils';
const autoCompPath = path.join(__dirname, '..', '..', '..', 'src', 'test', 'p... |
import { ImageResponse } from '../../../../bin/contracts/ImageResponse';
import { getFileList } from '../../../../bin/usecases/interactors/graphics/getFileList';
import { processGraphicsTestData, graphicsIds } from '../../../../testdata/graphics/getGraphics';
describe('Failure cases', () => {
test('It should throw... |
import { Point, Path } from '../../geometry';
import * as Dom from '../dom/core';
export declare class Vector {
node: SVGElement;
protected get [Symbol.toStringTag](): string;
get type(): string;
get id(): string;
set id(id: string);
constructor(elem: Vector | SVGElement | string, attrs?: Dom.At... |
import { Component, Prop, h, State } from '@stencil/core';
import { AccessLevel, StorageObject } from '../../common/types/storage-types';
import { Storage } from '@aws-amplify/storage';
import { Logger, filenameToContentType, I18n } from '@aws-amplify/core';
import { NO_STORAGE_MODULE_FOUND } from '../../common/constan... |
import { Stock } from "./stock";
export class StockListView {
private stocks: Stock[] = [];
addStock(stock: Stock): void {
this.stocks.push(stock);
}
removeStock(stock: Stock) {
this.stocks = this.stocks.filter(
(subscribedStock) => subscribedStock.symbol === stock.symbol
);
}
show(): ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.