text stringlengths 10 953k |
|---|
import React from 'react';
import * as Recharts from 'recharts';
import { AxisDomain, Margin } from 'recharts/types/util/types';
import { CommonRenderXAxisConfig } from '../../../recharts/x-axis';
import { RenderYAxisConfig } from '../../../recharts/y-axis';
import { RenderTooltipConfig } from '../../../recharts/toolti... |
import classNames from "classnames";
import PropTypes from "prop-types";
import React from "react";
import { forwardRefAs, Generic } from "../../base";
import { HelpersProps } from "../../base/helpers";
import { Variables } from "../../base/helpers/variables";
import { LevelItem } from "./level-item";
export type Lev... |
import 'mocha';
import * as renderer from 'react-test-renderer';
import * as React from 'react';
import xs, {Stream} from 'xstream';
import * as ReactNative from 'react-native';
import {h, ReactSource, makeCycleReactComponent} from '@cycle/react';
import {run} from '@cycle/run';
const assert = require('assert');
const ... |
import { Test, TestingModule } from '@nestjs/testing';
import { CategoriasController } from './categorias.controller';
import { CategoriasService } from './categorias.service';
describe('CategoriasController', () => {
let controller: CategoriasController;
beforeEach(async () => {
const module: TestingModule =... |
import { ElementRef, EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { NzI18nService } from '../i18n/nz-i18n.service';
import { TransferCanMove, TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from './interface';... |
/**
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
/*-
* #%L
* Arcade Analytics
* %%
* Copyright (C) 2018 - 2019 ArcadeAnalytics
* %%
* 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
... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
import { ILine } from '../line/ILine';
import { IRectangle } from '../rectangle/IRectangle';
/**
* Checks for intersection between the Line an... |
import React from 'react';
import { Story, Meta } from '@storybook/react';
import { SimpleSearch, SimpleSearchProps } from './Search';
export default {
title: 'II Components/Search/Examples/SimpleSearch',
component: SimpleSearch,
} as Meta;
const list = [
{ color: 'red', label: 'Apple' },
{ color: 'yellow', l... |
import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit'
import {
persistStore,
persistReducer,
FLUSH,
REHYDRATE,
PAUSE,
PERSIST,
PURGE,
REGISTER,
} from 'redux-persist'
import reducer from './reducer'
import storage from './storage'
import { getStatus } from './slices/user'
const persis... |
export const helloWorld = () => {
return 'New Howdy! 1.3.0'
} |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/* eslint-disable rulesdir/no_underscored_properties */
import * as Platform from '../../core/platform/platform.js';
import * as SDK from '../../core/sdk... |
// From https://hapijs.com/api/16.1.1#requestgenerateresponsesource-options
import * as Hapi from '../../';
// Added in addition to code from docs
function promiseMethod() {
return Promise.resolve(true);
}
const handler: Hapi.ServerExtRequestHandler = function (request, reply) {
const result = promiseMethod... |
import { AuthModule } from '@modules/auth/auth.module';
import { BookModule } from '@modules/book/book.module';
import { EmailModule } from 'src/providers/email/email.module';
import { UserModule } from '@modules/user/user.module';
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoos... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import * as _stream from "stream";
import { UpdateCluster } from "../model/operations/UpdateCluster";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "... |
import React, {
createContext,
useState,
useCallback,
useContext,
useEffect,
} from 'react';
import AsyncStorage from '@react-native-community/async-storage';
interface Product {
id: string;
title: string;
image_url: string;
price: number;
quantity: number;
}
interface CartContext {
products: P... |
import React, { useEffect, useCallback } from 'react'
import { push as pushRoute } from 'connected-react-router'
import { connect } from 'react-redux'
import { useParams } from 'react-router'
import { Dispatch } from 'redux'
import { LineupVariant } from 'containers/lineup/types'
import { ID } from 'models/common/Ide... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { InspectMode } from 'background/inspect-modes';
import * as React from 'react';
import { TelemetryEventSource } from '../extension-telemetry-events';
import { Messages } from '../messages';
import { TelemetryDataFact... |
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2018-2022 Sander Stolk and Semmtech B.V.
import * as React from "react";
import { Link } from "react-router-dom";
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from "reactstrap";
import { resolveInject } from "app/di";
import { IAppConfigProvider ... |
import BigNumber from 'bignumber.js'
import { expectSaga } from 'redux-saga-test-plan'
import * as matchers from 'redux-saga-test-plan/matchers'
import { call } from 'redux-saga/effects'
import { setBackupCompleted } from 'src/account/actions'
import { showError } from 'src/alert/actions'
import { ErrorMessages } from ... |
/*
* Copyright 2019 HERMENEUT Consortium
*
* 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 la... |
import { BlockAtom, SylApi, SylController, SylPlugin } from '@syllepsis/adapter';
import { DOMOutputSpec, Node } from 'prosemirror-model';
import {
addAttrsByConfig,
createFileInput,
getFromDOMByConfig,
IUserAttrsConfig,
setDOMAttrByConfig,
} from '../../utils';
interface IAudioAttrs {
src: string;
titl... |
import {
isTransformProp,
sortTransformProps,
isTransformOriginProp
} from './transform-props';
import prefixer from './prefixer';
import getValueType from './value-types';
import { State } from '../styler/types';
export type AliasMap = { [key: string]: string };
export const aliasMap: AliasMap = {
x: 'transl... |
import { Module, Global } from '@nestjs/common';
import { AppLogger } from './app-logger.service';
@Global()
@Module({
providers: [AppLogger],
exports: [AppLogger]
})
export class AppLoggerModule { } |
import { FC, ReactElement } from 'react'
export interface NotFoundProps {
children: ReactElement
}
export interface NotFoundComponent extends FC<NotFoundProps> {
isRoute: boolean
isNotFound: boolean
}
const NotFound: NotFoundComponent = ({ children }) => {
return children
}
NotFound.isRoute = false
NotFound... |
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Badge
* @premier badge
* @description
* The essential purpose of badge numbers is to enable an application to inform its users that it has something for them — for example, unread messag... |
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule } from '@ngx-translate/core';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.modu... |
import {Component, OnInit, ViewChild, AfterViewInit} from '@angular/core';
import {OrganizationInfoService} from "./orginfo.service";
import {OrganizationModel} from "./orginfo.model";
import {AlertModel} from "../../../shared/models/alert.model";
import {ValidationService} from "../../../shared/services/validation.ser... |
import { TokenizeRequestModel, TransactionCreditCardRequestModel, ConsultTokenRequestModel } from '../src';
import { Cielo, CieloConstructor } from './../src/cielo';
import test from "tape";
import { EnumCardType, EnumBrands } from '../src/enums';
function error(err: Object) {
console.log('Ocorreu o seguinte erro', ... |
import {Entity, Column, PrimaryGeneratedColumn} from 'typeorm';
import {Length} from 'class-validator';
@Entity()
export class Ads {
@PrimaryGeneratedColumn()
id: number
@Column({
length: 80,
comment: '廣告名稱',
})
@Length(10, 80)
name: string
@Column({
length: 80,
comment: '檔案名稱',
})
... |
import { ErrorRegistry, ErrorRegistryError } from '../../errors';
/**
* The access token provided is expired, revoked, malformed, or
* invalid for other reasons. The resource SHOULD respond with
* the HTTP 401 (Unauthorized) status code. The client MAY
* request a new access token and retry the protected resource
... |
import { LanguageClient, LanguageClientOptions, ServerOptions } from 'vscode-languageclient/node';
import { Trace } from 'vscode-jsonrpc';
import { ExtensionContext, workspace, commands, window, StatusBarItem, StatusBarAlignment, Terminal, Uri, Position } from 'vscode';
import * as fs from "fs";
import { TopModelConfig... |
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import { testPerm, assertEqual } from "./test_util.ts";
import * as deno from "deno";
const isNotWindows = deno.platform.os !== "win";
testPerm({ write: true }, function chmodSyncSuccess() {
const enc = new TextEncoder();
const data = enc.encod... |
import * as faker from 'faker';
import { BehaviorSubject } from 'rxjs';
import { Address } from '@shared/models/address.model';
import { AuthorizedUser } from '@shared/models/authorized-user.model';
import { IAuthorizedUserService } from '@health-auth/shared/services/authorized-user.service';
import { HealthAuthority... |
import { Form } from "@components/ui/form/form";
import Button from "@components/ui/button";
import {
useModalAction,
useModalState,
} from "@components/ui/modal/modal.context";
import Input from "@components/ui/input";
import { useTranslation } from "next-i18next";
import { useAddPointsMutation } from "@graphql/us... |
import { Component, OnInit, Inject } from '@angular/core';
import { Product } from '../product.model';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
@Component({
selector: 'app-dialog-edit',
templateUrl: './dialog-edit.component.html',
styleUrls: ['./dialog-edit.component.css']
})
export cla... |
import * as React from 'react';
import FileUpload from './FileUpload';
import { shallow } from 'enzyme';
describe('FileUpload', () => {
test('renders correctly', () => {
const func = jest.fn();
const tree = shallow(
<FileUpload
onChange={func}
disabled... |
import request from '@/utils/request'
const apipath = window.appConf?.api
//console.log(window.appConf)
export const getUserInfo = (data: any) =>
request({
url: apipath.userInfo,
method: 'get',
params:data
})
export const login = (data: any) =>
request({
url: apipath.login,
method: 'post',
... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** 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 "../utili... |
export class MailModel{
from!:string;
// from: {type:string, default:"hireogroup@gmail.com"};
to!: string;
subject!: string;
message!: string;
} |
<TS language="fr" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Cliquer à droite pour modifier l’adresse ou l’étiquette</translation>
</message>
<message>
<source>Create a new address</source>
... |
import React from "react";
import {
HashRouter as Router,
Route,
Switch,
Redirect,
} from "react-router-dom";
import { Container } from "reactstrap";
import { List } from "immutable";
import { ACRanking } from "./pages/ACRanking";
import { FastestRanking } from "./pages/FastestRanking";
import { FirstRanking }... |
import "reflect-metadata";
import {Connection} from "../../../src/connection/Connection";
import {CockroachDriver} from "../../../src/driver/cockroachdb/CockroachDriver";
import {closeTestingConnections, createTestingConnections, reloadTestingDatabases} from "../../utils/test-utils";
import {SqlServerDriver} from "../.... |
import { startServer } from '../../mock/serve/index';
import { Server } from 'http';
import { variables } from './global';
import { AddressInfo } from 'net';
let server: Server;
before(async function() {
try {
server = await startServer();
} catch (error) {
console.error(error.message, error.st... |
export class dataItemReactionSpeed {
private _datetimeMyLastMessage: Date;
private _datetimeTheirResponse: Date;
private _datetimebetween: Date;
constructor(datetimeMyLastMessage: string, datetimeTheirResponse: string){
this._datetimeMyLastMessage = new Date(datetimeMyLastMessage);
this... |
import { AddressFlags } from '@polkadot/react-hooks/types';
import React from 'react';
interface Props {
flags: AddressFlags;
}
declare function Flags({ flags: { isCouncil, isDevelopment, isExternal, isInjected, isMultisig, isProxied, isSociety, isSudo, isTechCommittee } }: Props): React.ReactElement<Props> | null;... |
import { Card } from '../../../interfaces'
import Set from '../Hidden Legends'
const card: Card = {
name: {
en: "Oddish",
},
illustrator: "Yuka Morii",
rarity: "Common",
category: "Pokemon",
set: Set,
dexId: [
43,
],
hp: 50,
types: [
"Grass",
],
stage: "Basic",
attacks: [
{
cost: [
"Col... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AuthService } from '../auth/auth.service';
@Injectable({
providedIn: 'root'
})
export class ProductService {
constructor(private http: HttpClient, pub... |
import * as classNames from 'classnames';
import * as React from 'react';
import {
Bulma,
getActiveModifiers, getFocusedModifiers,
removeActiveModifiers, removeFocusedModifiers,
withHelpersModifiers,
} from './../../bulma';
import { combineModifiers, getHTMLProps } from './../../helpers';
export inter... |
import { ArrowUpIcon, TimeIcon } from "@chakra-ui/icons";
import { Button, Heading, Text } from "@chakra-ui/react";
import styled from "@emotion/styled";
import { resizeMultiple } from "@utils/image";
import useTranslation from "next-translate/useTranslation";
import React, { useState } from "react";
import { useDropzo... |
import { Component, Element, h, Host, Prop } from '@stencil/core';
import { Euro as LucideEuro, createElement } from 'lucide';
import { attributesToObject } from '../utils/utils';
@Component({
tag: 'icon-euro'
})
export class IconEuro {
@Element() el: any;
@Prop({ attribute: 'alignment-baseline' }) alignmentBas... |
import { readFile } from "fs/promises";
import * as path from "path";
import { createOnigScanner, createOnigString, loadWASM } from "vscode-oniguruma";
import { IOnigLib, parseRawGrammar, Registry, StackElement } from "vscode-textmate";
import { CadlScope } from "../src/tmlanguage.js";
async function createOnigLib(): ... |
/**
* @license
*
* Copyright IBM Corp. 2019, 2020
*
* 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 { classMap } from 'lit-html/directives/class-map';
import { html, property, customElement, LitElement } from 'lit-eleme... |
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import {
BaseEntity,
BeforeInsert,
BeforeUpdate,
Column,
Entity,
JoinColumn,
JoinTable,
ManyToMany,
OneToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
import { ComicEntity } from './comic.entity';
import { EventEntity } from './ev... |
import { Injectable } from '@angular/core'
import { LoginEpics } from './epics/login.epic'
@Injectable()
export class Epics {
constructor(
private loginEpics: LoginEpics
) {}
public createEpics() {
let epics: any[] = []
epics = [
...this.loginEpics.createEpics(),
...epics
]
retur... |
import { Listener, Command } from 'discord-akairo';
import { Message } from 'discord.js';
export default class MissingPerms extends Listener {
constructor() {
super('missingPerms', {
emitter: 'commandHandler',
event: 'missingPermissions',
});
}
async exec(message: Me... |
import { NestFactory } from '@nestjs/core';
import * as momentTimezone from 'moment-timezone';
import { AllExceptionsFilter } from './common/filters/http-exception.filter';
// MODULES
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.useGl... |
import {AppRegistry} from 'react-native';
import App from './App';
AppRegistry.registerComponent('Qandor', () => App); |
import Layout from '../components/layout';
import SEO from '../components/seo';
import {
ArticleFooter,
ArticleHeader,
ArticleMeta,
} from '../components/Article';
import { getAllPosts } from '../utils/blog';
export async function getStaticProps() {
const posts = getAllPosts();
return {
props: {
p... |
import * as TypeGraphQL from "type-graphql";
import * as GraphQLScalars from "graphql-scalars";
import { NativeTypeModelOrderByInput } from "../../../inputs/NativeTypeModelOrderByInput";
import { NativeTypeModelScalarWhereWithAggregatesInput } from "../../../inputs/NativeTypeModelScalarWhereWithAggregatesInput";
import... |
let UNIQUE_ID_WORKER: Worker = null;
const getUniqueIdWorker = (): Worker => {
if (typeof Worker !== 'undefined' && UNIQUE_ID_WORKER === null) {
UNIQUE_ID_WORKER = new Worker(new URL('../workers/id-generator.worker', import.meta.url), {
type: 'module',
});
}
return UNIQUE_ID_WORKER;
};
export defa... |
import {
validateTotalNDR,
validateOMSTotalNDR,
} from "measures/2021/globalValidations";
import * as VH from "utils/testUtils/validationHelpers";
describe("Testing PM/OMS Total Validations", () => {
describe("PM validation", () => {
it("should return no errors", () => {
const basePM = [VH.simpleRate,... |
/**
* @license Angular v11.0.4
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
import { PlatformRef } from '@angular/core';
import { StaticProvider } from '@angular/core';
/**
* Platform for testing
*
* @publicApi
*/
import * as ɵngcc0 from '@angular/core';
import * as ɵngcc1 from '@angular/... |
import * as chokidar from "chokidar";
import * as fs from "fs";
import * as clc from "cli-color";
import * as path from "path";
import * as pf from "portfinder";
import * as api from "../api";
import * as utils from "../utils";
import * as downloadableEmulators from "./downloadableEmulators";
import { EmulatorInfo, Em... |
export class User {
age: number;
voterAge: number;
} |
//三个集合 group信息本身:名称类型群成员, 用户的groupList,groupList以gid,推送设置为
//用户信息,用户设置等等,
import * as mongoose from 'mongoose';
export const GroupMember = new mongoose.Schema({
userId: { type: Number, required: true },
alias: { type: String, required: true },
ignoreAllMsg: { type: Boolean, default: false },
ignoreAut... |
import { useState } from 'react';
import { Auth } from '@aws-amplify/auth';
import { useMutation } from 'react-query';
import { TodoItem, useTodoListQuery, TodoAddDocument } from '../lib/api';
import { API } from '../lib/fetcher';
const initialState = { body: '', username: '' };
declare const window: any;
export fu... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------*/
'use strict';
import vscode = require('v... |
export function sleep(ms : number) {
return new Promise(resolve => setTimeout(resolve, ms));
} |
import { HardhatRuntimeEnvironment } from "hardhat/types"
import { DeployFunction } from "hardhat-deploy/types"
import { ethers, upgrades } from "hardhat"
import { Alpies, Alpies__factory } from "../../../../typechain"
interface IAlpiesInput {
NAME: string
SYMBOL: string
MAX_SALE_ALPIES: string
REVEAL_BLOCK: s... |
import {Card} from '@sanity/ui'
import styled from 'styled-components'
export const Root = styled.div`
position: relative;
height: 100%;
display: flex;
flex-direction: column;
`
export const Header = styled(Card)`
position: relative;
&:after {
content: '';
position: absolute;
left: 0;
rig... |
const graphitePlugin = async () =>
await import(/* webpackChunkName: "graphitePlugin" */ 'app/plugins/datasource/graphite/module');
const cloudwatchPlugin = async () =>
await import(/* webpackChunkName: "cloudwatchPlugin" */ 'app/plugins/datasource/cloudwatch/module');
const dashboardDSPlugin = async () =>
await ... |
/**
* Category spec document
*/
import { createElement } from '@syncfusion/ej2-base';
import { Chart } from '../../../src/chart/chart';
import { LineSeries } from '../../../src/chart/series/line-series';
import { DataLabel } from '../../../src/chart/series/data-label';
import { Category } from '../../../src/chart/axi... |
import React from 'react';
import { Col } from 'antd';
import { UserInfo } from 'components/Auth';
import { Container, Inner } from './PanelHeaderStyle';
const PanelHeader: React.FC = () => {
return (
<Container>
<Inner
align="middle"
justify="end"
>
<Col>
<UserInf... |
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ReaderFragment } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type AssetInlinePDFFragment = {
readonly downloadUrl?: string | null | undefined;
readonly " $fragmentRefs": FragmentRefs<"AssetDownloadButtonFragment">... |
/*
* Copyright 2021 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
import { EntityRepository, Repository } from 'typeorm';
import { Evento } from '../entities/evento.entity';
import { TipoBrote } from '../entities/tipobrote.entity';
@EntityRepository(Evento)
export class TipoBroteRepository extends Repository<TipoBrote> {} |
import { observable, action } from 'mobx';
import * as Api from '../api/asset.api';
import * as CoinTool from '@/utils/cointool';
import { IAsset, INep5Asset, IAssetList } from '../interface/asset.interface';
class Asset {
@observable public assetList:IAssetList[] = []; // asset列表
@observable public nep5List:... |
// svg/snowman.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgSnowman = createSvgIcon(
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w... |
export const loadDeps = async (resolveLookup: Map<string, string>, fs: Map<string, string>) => {
resolveLookup.set('@stencil/core/internal/client', '/@stencil/core/internal/client/index.js');
resolveLookup.set('@stencil/core/internal/app-data', '/@stencil/core/internal/app-data/index.js');
await loadDep('/@stenc... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DigitalSignComponent } from './digital-sign.component';
describe('DigitalSignComponent', () => {
let component: DigitalSignComponent;
let fixture: ComponentFixture<DigitalSignComponent>;
beforeEach(async(() => {
TestBed.conf... |
export * from './process-filter'; |
// tracing: off
import { flow } from "@effect-ts/core/Function"
import { runEither } from "@effect-ts/core/Sync"
import type { M, Summoner } from "../Batteries/summoner"
import { summonFor } from "../Batteries/summoner"
import type { Materialized } from "../Batteries/usage/materializer"
import type {
SummonerEnv,
... |
/**
* @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 a... |
import * as request from 'supertest';
import app from '../src/api/app';
import { User } from '../src/models';
jest.mock('../src/api/login-gov');
describe('auth', () => {
describe('login', () => {
it('success', async () => {
const response = await request(app).post('/auth/login').expect(200);
expect(r... |
import { map, withLatestFrom } from 'rxjs/operators'
import { network$, changeNetwork, onlineStatus$ } from './service'
import { OnlineStatus } from './types'
describe('services/app/service/', () => {
describe('network$', () => {
it('returns chaosnet by default', () => {
runObservable(({ expectObservable ... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distr... |
import { GitProcess, IGitResult } from '../lib'
// NOTE: bump these versions to the latest stable releases
export const gitVersion = '2.14.2'
export const gitLfsVersion = '2.3.1'
const temp = require('temp').track()
export async function initialize(repositoryName: string): Promise<string> {
const testRepoPath = te... |
export * from './interceptors';
export * from './loggable.provider'; |
import { Role } from '../enums/roles.enum';
export interface UpdateUserDTO {
name?: string;
surname?: string;
email?: string;
birthDate?: string;
address?: UserAddress;
role?: Role;
}
export interface UserAddress {
country?: string;
city?: string;
street?: string;
street_address?: string;
apt_ad... |
import React, {
CSSProperties,
FC,
useState,
useEffect,
useRef,
useCallback
} from 'react';
import classNames from 'classnames';
import styles from './_style.module.scss';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
export interface ISlideProps {
height?: string;
className?: str... |
import { client } from '../../..';
import { Time } from '../../constants';
import { BotCommand } from '../../structures/BotCommand';
import { FastifyServer } from '../types';
export const commandsRoute = (server: FastifyServer) =>
server.route({
method: 'GET',
url: '/commands',
async handler(_, reply) {
cons... |
import {OrdinaryDefineOwnProperty} from "../../../abstract-operation/ordinary-define-own-property";
import {NATIVE_SYMBOL_MATCH} from "../../../symbol/native/native";
import {regExpPrototypeSymbolMatch} from "../../../reg-exp/prototype/@@match";
export function patchRegExpPrototypeSymbolMatch(): void {
// RegExp.prot... |
/**
* @fileoverview This file is generated by the Angular 2 template compiler.
* Do not edit.
* @suppress {suspiciousCode,uselessCode,missingProperties}
*/
/* tslint:disable */
import * as import0 from '@angular/core/src/linker/ng_module_factory';
import * as import1 from 'primeng/components/spinner/spinner';
imp... |
import { Task } from 'klasa';
import { Events } from '../../lib/constants';
import clueTiers from '../../lib/minions/data/clueTiers';
import { ClueActivityTaskOptions } from '../../lib/types/minions';
import { handleTripFinish } from '../../lib/util/handleTripFinish';
export default class extends Task {
async run(da... |
import { ErrorHandler, Injectable } from '@angular/core';
declare type HandlerType = (error: unknown) => void;
@Injectable()
export class DefaultErrorHandler implements ErrorHandler {
private handlers: HandlerType[] = [];
constructor() {
this.handlers.push(console.error);
}
addHandler(handler: HandlerTy... |
import { OrderSuccessComponent } from './order-success/order-success.component';
import { PaymentModule } from './payment/payment.module';
import { AddressModule } from './address/address.module';
import { CheckoutEffects } from './effects/checkout.effects';
import { EffectsModule } from '@ngrx/effects';
import { Produ... |
import EthereumResolver from 'jolocom-registry-contract'
import {
IEthereumResolverConfig,
IEthereumConnector,
IEthereumResolverUpdateDIDArgs
} from './types'
export class EthResolver implements IEthereumConnector {
private ethResolver: any
constructor(config: IEthereumResolverConfig) {
this.ethResolver... |
/**
* This file auto-generated with the `scripts/bootstrap-icons.js` script.
*/
import { Icon } from '../components/svg-icon';
// https://github.com/twbs/icons/blob/main/icons/pip-fill.svg
export const pipFill: Icon = {
name: 'pip-fill',
width: 16,
height: 16,
viewBox: '0 0 16 16',
children: (
<path d=... |
import { NO_ERRORS_SCHEMA } from '@angular/core';
import {
inject,
async,
TestBed,
ComponentFixture
} from '@angular/core/testing';
// Load the implementations that should be tested
import { AppComponent } from './app.component';
//import { AppState } from './app.service';
describe(`App`, () => {
let comp: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.