text
stringlengths
10
953k
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * DeleteGroupInput shape */ export interface DeleteGroupInput { /** * <p>The organization that contains the group.</p> */ OrganizationId: string; /** * <p>The identifier of the ...
import * as path from 'path' import * as url from 'url' import * as fs from 'fs-extra' import {ModuleLoadError} from './module-load-error' import {Config as IConfig} from './config' import {Plugin as IPlugin} from './plugin' import {tsPath} from './ts-node' const getPackageType = require('get-package-type') /** * D...
import { NOOP } from '../../utils/NOOP'; export class Quaternion { private _x: number; private _y: number; private _z: number; private _w: number; onChange: (quat: Quaternion) => void; constructor (x: number = 0, y: number = 0, z: number = 0, w: number = 1) { this._x = x; ...
import { Component } from "@angular/core"; import { Label } from "ng2-charts"; import { ChartDataSets, ChartOptions } from "chart.js"; import { DatePipe } from "@angular/common"; import { RemoteService } from "../../services/remote.service"; import { AuthenticationService } from "../../services/authentication.service";...
import * as React from 'react'; import { makeStyles } from '@mui/styles'; import { Theme } from '@mui/material'; import Box from "@mui/material/Box"; import Avatar from "@mui/material/Avatar"; import Grid from "@mui/material/Grid"; import Button from "@mui/material/Button"; import Typography from "@mui/material/Typog...
import { balance, ether, expectEvent, expectRevert } from '@openzeppelin/test-helpers' import { expect } from 'chai' import BN from 'bn.js' import { evmMineMany, getTestingEnvironment } from './TestUtils' import { isRsk } from '../src/common/Environments' import { RelayHubInstance, PenalizerInstance } from '../types/t...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="en"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About DarkKnightsCoin</source> <translation>About DarkKnightsCoin</translation> </messag...
import {toRGB} from 'src/shared/graphs/toRGB' export const LINE_COLORS = [ '#00C9FF', '#9394FF', '#4ED8A0', '#ff0054', '#ffcc00', '#33aa99', '#9dfc5d', '#92bcc3', '#ca96fb', '#ff00f0', '#38b94a', '#3844b9', '#a0725b', ] export const SMALL_CELL_HEIGHT = 2 export const darkenColor = colorStr ...
import { toEquityTokenSymbol } from "@neufund/shared-utils"; import React from "react"; import { StyleSheet } from "react-native"; import { HeaderScreen } from "components/shared/HeaderScreen"; import { Asset, EAssetType } from "components/shared/asset/Asset"; import { spacingStyles } from "styles/spacings"; const P...
import * as React from "react"; /** * The configuration options. */ interface GeolocatedConfig { /** * The Geolocation API's positionOptions configuration object. */ positionOptions?: PositionOptions; /** * Time we give to the user to allow the use of Geolocation API before presuming they ...
import { get } from 'config'; import { isArray } from 'is-what'; import { KeyValue } from '../../util/types'; import { MysqlConnectionOptions } from 'typeorm/driver/mysql/MysqlConnectionOptions'; import { version } from '../../../package.json'; function _getEnvVar(property: string): any { try { return get(proper...
import injection from '@methodus/server/injection'; @injection.Injectable('SingleServiceName') export class SingleServiceName { constructor() { } }
import { MetarController, MetarData} from "./metar-controller"; /** * Implmentation using https://www.aviationweather.gov/ api for METAR reports * Deatils at https://www.aviationweather.gov/help/webservice?page=metarjson currently */ class AviationWeatherController implements MetarController{ url:string | unde...
// This optional code is used to register a service worker. // register() is not called by default. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on subsequent visits to a p...
/* * 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. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ import { DataGenerator } ...
import { IDetailsItemProps } from 'office-ui-fabric-react/lib/components/DetailsList/DetailsRow.types'; import { IColumn } from 'office-ui-fabric-react/lib/components/DetailsList/DetailsList.types'; import { ISelection, SelectionMode } from 'office-ui-fabric-react/lib/utilities/selection'; /** * {@docCategory DetailsL...
import { HookNextFunction } from 'mongoose'; /** * Sets createdAt and updatedAt timestamps. */ export const setDates = function(next: HookNextFunction) { let doc = this; let now = new Date(); if (doc.isNew) { doc.createdAt = now; } doc.updatedAt = now; next(); };
/** * Copyright 2017 Google Inc. All rights reserved. * Modifications copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
import { Request, Response } from 'express'; import knex from '../database/connection'; class MissionController { async index (request: Request, response: Response) { const { chapterId } = request.query; if (!chapterId) { const missions = await knex('mission').select('*'); r...
<TS language="vi" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Ấn chuột phải để sửa địa chỉ hoặc tên</translation> </message> <message> <source>Create a new address</source> <translation...
const main = require('../..'); import * as assert from 'assert'; import * as fs from 'fs'; import * as path from 'path'; describe('require this module', () => { it('Check a function', () => { assert.equal(typeof main.listDirs, 'function'); }); it('Check type definition file', () => { assert.equal(fs.sta...
import { IChipResourceStrings } from 'igniteui-angular'; // exported below as re-cast to create declaration type with expanded properties const ChipResourceStringsJA_: ExpandRequire<IChipResourceStrings> = { igx_chip_remove: 'チップを削除', igx_chip_select: 'チップを選択' }; /** * Japanese resource strings for IgxChip ...
/** * Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0 * * or ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_MX" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About GSave</source> <translation type="unfinished"/> </message> <message> <location line=...
import { Component, ElementRef, ChangeDetectionStrategy, ChangeDetectorRef, Input, Output, EventEmitter, OnChanges, OnInit, Inject, HostBinding, OnDestroy, AfterViewInit, } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { Router, ActivationStart, ActivationEnd } from ...
import { LineAwesomeIcon } from './line-awesome-icon'; export declare const labAcquisitionsIncorporated: LineAwesomeIcon;
/** * Format some HTTP URLs for various external sites. */ /** * @param id - For example * `La_clemenza_di_Tito_(Wagenseil,_Georg_Christoph)` * * @returns For example: `https://imslp.org/wiki/La_clemenza_di_Tito_(Wagenseil,_Georg_Christoph)` */ export function formatImslpUrl (id: string): string { return `h...
import { defaultTokens } from "@kiwicom/orbit-design-tokens"; export default { orbit: { ...defaultTokens, widthBreakpointDesktop: 1024 }, transitions: true, rtl: false, };
/** * 去抖动的简单实现 * @param fn 需要延迟的方法 * @param intervalTime 延迟时间 * @returns 返回一个新函数 */ declare const debounce: (fn: Function, intervalTime: number) => Function; export { debounce };
export enum AUTH_ACTION { UNKNOWN = 0, ERROR = 1, REQUEST = 2, AUTH_SUCCESSFUL = 3, AUTH_UNSUCCESSFUL = 4, TOO_MANY_AUTH_ATTEMPTS = 100, INVALID_MESSAGE = 101, INVALID_MESSAGE_DATA = 102, }
import { Match, Template } from '@aws-cdk/assertions'; import * as lambda from '@aws-cdk/aws-lambda'; import * as cdk from '@aws-cdk/core'; import * as apigw from '../lib'; describe('lambda api', () => { test('LambdaRestApi defines a REST API with Lambda proxy integration', () => { // GIVEN const stack = new...
import React, { useEffect, useRef, useState } from 'react' import { useChatContext } from '~/src/contexts/chat-context' import { EmojiIcon } from '~/src/icons/emoji-icon' import { GifIcon } from '~/src/icons/gif-icon' import { ImageIcon } from '~/src/icons/image-icon' import { StickerIcon } from '~/src/icons/sticker-i...
/** * Perun RPC API * Perun Remote Procedure Calls Application Programming Interface * * The version of the OpenAPI document: 3.9.0 * Contact: perun@cesnet.cz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class m...
import * as core from '@actions/core'; import * as setup from './setup'; import {latestGccVersion} from './gcc'; async function run(): Promise<void> { try { let release = core.getInput('release'); if (!release || release === 'latest') { release = latestGccVersion(); } const installPath = await...
import * as React from 'react'; import { IContextualMenuItem, IContextualMenuItemProps } from '../../../ContextualMenu'; import { IMenuItemClassNames } from '../ContextualMenu.classNames'; import { ContextualMenuItemWrapper } from './ContextualMenuItemWrapper'; import { IRefObject } from '../../../Utilities'; export i...
export interface IRoutes { path: string; component: React.LazyExoticComponent<React.ComponentType<any>>; }
/** @format */ export * from './Scan'; export * from './MapView'; export * from './Checkout'; export * from './CartScreen'; export * from './ProfileScreen'; export * from './FavoriteScreen'; export * from './PaymentMethodScreen';
/// <reference types="react" /> interface HeaderRangeProps { /** Selected dates range. */ content: string; } declare function HeaderRange(props: HeaderRangeProps): JSX.Element; export default HeaderRange;
export * from './EvChooseAccountUI'; export * from './EvChooseAccountUI.interface';
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Detcoin</source> <translation>&amp;О Detcoin</translation> </mes...
import { Cmp515Component } from './cmp'; describe('Cmp515Component', () => { it('should add', () => { expect(new Cmp515Component().add515(1)).toBe(516); }); });
/** * @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 { InjectionToken } from './di'; import { ComponentRef } from './linker/component_factory'; /** * A DI Token r...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms' import { AppComponent } from './app.component'; import { QuoteComponent } from './quote/quote.component'; import { QuoteDetailsComponent } from './quote-details/quote-detail...
import { ContainerInUseException } from "./ContainerInUseException"; import { ContainerNotFoundException } from "./ContainerNotFoundException"; import { PolicyNotFoundException } from "./PolicyNotFoundException"; import { InternalServerError } from "./InternalServerError"; export type DeleteLifecyclePolicyExceptionsUni...
import type { NamePath, RuleObject } from 'ant-design-vue/lib/form/interface' import type { VNode } from 'vue' import type { ButtonProps as AntdButtonProps } from '/@/components/Button' import type { FormItem } from './formItem' import type { ColEx, ComponentType } from './index' import type { TableActionType } from '/...
import { Injectable } from '@angular/core'; import { Workbook } from 'exceljs'; import * as fs from 'file-saver'; import * as logoFile from './packwayslogo.js'; import { formatDate } from '@angular/common'; import { Http} from '@angular/http'; //import * as Excel from 'exceljs/dist/exceljs.min.js'; //import * as ExcelP...
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, BaseEntity, } from 'typeorm' @Entity('connections') class Connection extends BaseEntity { @PrimaryGeneratedColumn('increment') id: number @Column() user_id: number @CreateDateColumn() created_at: Date } export default Connectio...
import { TestBed } from '@angular/core/testing'; import { WagesAamsService } from './wages-aams.service'; describe('WagesAamsService', () => { beforeEach(() => TestBed.configureTestingModule({})); it('should be created', () => { const service: WagesAamsService = TestBed.inject(WagesAamsService); expect(s...
import { parse } from 'graphql'; import { compileToLegacyIR, CompilerOptions } from '../src/compiler/legacyIR'; import serializeToJSON from '../src/serializeToJSON'; import { loadSchema } from '../src/loading'; const schema = loadSchema(require.resolve('./fixtures/starwars/schema.json')); function compileFromSource( ...
import { useCallback, useState } from "react"; import Socket from './socket'; export interface RoomState { connect: ( url: string, apiKey: string, ) => Promise<undefined>; isConnecting: boolean; error?: Error; } export function useRoom(): RoomState { const [isConnecting, setIsConnecting] = useStat...
/* eslint-disable no-unused-expressions */ import { expect } from "chai"; import { filter, filterAsync } from "../src/filter"; import { generateFromArray } from "../src/generate"; import { periodicFrom } from "../src/periodic"; import { takeAll, takeAllAsync } from "../src/takeAll"; descr...
import { Document, model, Model, Schema } from 'mongoose' export interface IUser { firstName: string lastName: string email: string password: string createdAt: Date updatedAt: Date } export interface IUserModel extends IUser, Document {} const userSchema: Schema = new Schema({ firstName: { type: String...
export { ConfigToken } from './config.token'; export { ContentfulToken } from './contentful.token';
/* * CloudBeaver - Cloud Database Manager * Copyright (C) 2020-2021 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import { computed } from 'mobx'; import { observer } from 'mobx-react-lite'; import { useEffect, us...
/// <reference types="node" /> import React from 'react'; import { UrlObject } from 'url'; declare type Url = string | UrlObject; declare type InternalLinkProps = { href: Url; as?: Url; replace?: boolean; scroll?: boolean; shallow?: boolean; passHref?: boolean; prefetch?: boolean; locale...
/** * VMAP Joi schema. */ import * as VMAP from '../definitions/VMAP'; import { VAST3Schema } from '../schema/VAST3'; import * as Joi from 'joi'; // @todo Use language to generate more HR messages. /** * Get enums values. */ const getEnumValues: Function = (enumObj: {}): number[] => Object.keys(enumObj) .fi...
import userEvent from '@testing-library/user-event'; import { releases } from 'models'; import { useEffect } from 'react'; import { useAppEvents, useAppSelector } from 'shell'; import * as TestUtils from 'test-utils'; import { ReleaseDetail } from './ReleaseDetail'; function ReleaseDetailDiagnostics(props: Props<unkno...
import {User} from '../auth/user' import {Observable} from 'rxjs/Rx' export class Comment{ public comment_status:'Active'|'Disabled'='Active'; date_posted:string=(new Date).toJSON(); userObservable?:Observable<User> constructor(public feed_comment:string,public feed_id:string, public user_id:string){ } }
import { Component, OnInit, OnDestroy } from '@angular/core'; import { FormGroup, FormBuilder, FormArray } from '@angular/forms'; import { Router, ActivatedRoute } from '@angular/router'; import { PaginationInstance } from 'ngx-pagination'; import { DownloadCenterService } from './download-center.service'; import { S...
import { ApplicationOperations } from 'ng-devtools'; import { DirectivePosition, ElementPosition } from 'protocol'; export class DemoApplicationOperations extends ApplicationOperations { viewSource(position: ElementPosition): void { console.warn('viewSource() is not implemented because the demo app runs in an If...
import React from "react"; type Props = { left: string; right: string; children: any; formula?: string; formulaDescription?: string; definitionName?: string; setFormulaDescription?: (description: string) => void; setDefinitionName?: (name: string) => void; }; export default function CanvasPane({ lef...
/** * NOTE: * * This file is automatically generated by i18n-tools. * DO NOT CHANGE IT BY HAND or your changes will be lost. */ // Thai export default { 'fabric.atlassianSwitcher.switchTo': 'เปลี่ยนเป็น', 'fabric.atlassianSwitcher.switchToTooltip': 'เปลี่ยนเป็น...', 'fabric.atlassianSwitcher.recent': 'ล่าสุด...
import { useEffect, useState } from 'react'; import { SideBar } from './components/SideBar'; import { Content } from './components/Content'; import { api } from './services/api'; import './styles/global.scss'; interface GenreResponseProps { id: number; name: 'action' | 'comedy' | 'documentary' | 'drama' | 'horro...
export function asyncCache<R, F extends (...args: any[]) => Promise<R>>(fn: F) { const cache = { } as { [key: string]: Promise<R> } return (function (...args: any[]) { const key = JSON.stringify(args) return cache[key] || (cache[key] = fn(...args)) }) as F } export type AsyncFunction<T> = (...
import React from "react"; import { CellProps } from "react-table"; import { DatasetRow } from "src/components/common/Filter/common/entities"; export default function Cell( props: CellProps<DatasetRow, string[]> ): JSX.Element[] { const { cell: { value }, } = props; return value.map((v: string) => <div key...
import {browser, element, by, promise} from 'protractor'; import {Key} from 'selenium-webdriver'; export class SettingsPage { navigateTo(): promise.Promise<any> { return browser.get('/settings'); } highlightElement(byObject) { function setStyle(element, style) { const previous...
import { defineComponent } from 'vue' const SnippetIcon = defineComponent({ setup() { return () => ( <svg viewBox="0 0 24 24" width="22" height="22" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="...
/* * 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 React, { FC } from 'react'; import PropTypes from 'prop-types'; import...
import { Response } from 'express'; import { HeliosContext } from '../../core/HeliosContext'; /** * A utility class for working with HTTP headers. */ export class HeaderUtils { /** * A static visitor that adds the <code>Location</code> header to the specified HTTP response. * * @param {HeliosCon...
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectStri...
import { ControlValueAccessor } from '@angular/forms'; export class ValueAccessorBase<T> implements ControlValueAccessor { private innerValue: T; private changed = new Array<(value: T) => void>(); private touched = new Array<() => void>(); get value(): T { return this.innerValue; } set value(value: T) { i...
import { onHostToPlugin, pluginToHost, waitForExecution } from "./index"; import { CancelCallback, HostMessage, UserData } from "../abstract-whiteboards-plugin"; export async function getCurrentBoardUser(): Promise<UserData> { return (await waitForExecution(pluginToHost("getCurrentBoardUser"))) as UserData; } expor...
import { createModel, init, Models } from '../src' describe('multiple stores:', () => { afterEach(() => { jest.resetModules() }) test('should not throw if multiple stores', () => { init({}) expect(() => init({})).not.toThrow() }) test('should store state for multiple stores', () => { const store1 = init...
import styled from 'styled-components'; interface ImageProps { size: number; } export const Image = styled.img<ImageProps>` height: ${props => props.size}; width: ${props => props.size}; border-radius: 50%; `;
/** * @file db.js database api * @author ycy */ import * as fs from 'fs-extra'; import * as path from 'path'; import * as os from 'os'; import {tip, warn} from '../core/util'; const filePath = path.resolve(os.homedir(), '.cy'); const encode = 'utf8'; const DB = Symbol('db'); class DataBase { [DB]: Set<string...
import {runSpawn} from "./run-spawn"; import {CellScript} from "./purescript-ide"; import * as path from "path"; export function runInNodeJs(projectDir: string, script: CellScript) { const cwd = path.resolve(projectDir, "output"); const moduleImport = `require(${JSON.stringify("./" + script.moduleName)})`; conso...
import { combineReducers } from 'redux'; import hotelsReducer from './hotels/reducers'; import cartReducer from './cart/reducers'; const createGlobalReducer = combineReducers({ hotels: hotelsReducer, cart: cartReducer // NOTE: other app reducers go here }); export default createGlobalReducer;
import i18next from 'i18next'; import { PanelType } from 'office-ui-fabric-react'; import React from 'react'; import { useTranslation } from 'react-i18next'; import Panel from '../../../../../components/Panel/Panel'; import { ArmObj } from '../../../../../models/arm-obj'; import { BindingConfigDirection, BindingsConfig...
/* * TextArea.tsx * * Biterest Key Collector * Copyright (c) 2018 All Rights Reserved by Biterest (https://biterest.com/) * * 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 ...
export * from "./main-container.component"; export * from "./main-container.effects"; export * from "./main-container.reducers";
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common'; import { Observable } from 'rxjs'; @Injectable() export class AuthGuard implements CanActivate { canActivate( context: ExecutionContext, ): boolean | Promise<boolean> | Observable<boolean> { // 此处登录session,然后读取用户状态,如果没有合法则继续,否则返回登录...
import { Component, OnInit } from '@angular/core'; import { IEmployee } from 'src/app/interfaces/iemployee'; @Component({ selector: 'app-employees-list', templateUrl: './employees-list.component.html', styleUrls: ['./employees-list.component.css'] }) export class EmployeesListComponent implements OnInit { emp...
import { getUserAgent } from "universal-user-agent"; import fetchMock from "fetch-mock"; import { Octokit } from "../src"; const userAgent = `octokit-core.js/0.0.0-development ${getUserAgent()}`; describe("octokit.hook", () => { it("octokit.hook is a function", () => { const octokit = new Octokit(); expect...
import { createApp, defineComponent } from 'vue' import { FileUploader } from '../dist/' const App = defineComponent({ data: () => { return { locale: null, name: 'test', url: 'http://localhost:9997', method: 'POST', } }, beforeCreate() { if (navigator.language === 'zh-CN') { ...
import { Presence } from '../types'; import debug from '../utils/logger'; import { AbstractResource, ResourceProvider } from './MentionResource'; export interface PresenceMap { [userId: string]: Presence; } export interface PresenceResourceConfig { url: string; cloudId: string; productId?: string; cache?: P...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { Subscription } from 'rxjs/Subscription'; import { LoggerService } from '../logger.service'; import { SpinnerState, SpinnerService } from './spinner.service'; @Component({ selector: 'toh-spinner', templateUrl: './spinner.component.html', styl...
import { css, CSSResult, customElement, html, LitElement, property, PropertyValues, query, TemplateResult } from 'lit-element'; import { connect, watch } from 'lit-redux-watch'; import { ArticleStatusOptions, ArticleTypeOptions, ProjArticle } from '../../async-reducers'; import { getArticles, getProject } from '../../a...
// Type definitions for prosemirror-menu 1.0 // Project: https://github.com/ProseMirror/prosemirror-menu // Definitions by: Bradley Ayers <https://github.com/bradleyayers> // David Hahn <https://github.com/davidka> // Tim Baumann <https://github.com/timjb> // Patrick Simm...
import IconTop from './arrowTop.svg'; import { styled } from '@mui/material/styles'; import Button from '@mui/material/Button'; interface ButtonDetailsProps { name: string; onClick: React.MouseEventHandler<HTMLButtonElement>; isButtonUp: boolean; } const ButtonDetails = ({ onClick, name, isButtonUp }: But...
import { Router } from "express"; import { RecomendationController } from '../controller/RecomendationController'; import multer from "multer"; const router = Router(); const upload = multer({ storage: multer.memoryStorage() }) const recomendationController: RecomendationController = new RecomendationController();...
import '@testing-library/jest-dom/extend-expect'; import { fireEvent, render, screen, waitFor, waitForElementToBeRemoved } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { object } from 'prop-types'; import * as React from 'react'; import { Button, Validation } from '../../.....
import { PrimaryColor, SecondaryColor, Greyscale } from './Colors'; describe('Colors', () => { test('PrimaryColor', () => { expect(PrimaryColor).toMatchSnapshot(); }); test('SecondaryColor', () => { expect(SecondaryColor).toMatchSnapshot(); }); test('Greyscale', () => { expect(Greyscale).toMatc...
import * as React from 'react'; import { Alert } from '@patternfly/react-core'; import { Pipeline, PipelineRun } from '../../../../utils/pipeline-augment'; import PipelineTopologyGraph from '../../pipeline-topology/PipelineTopologyGraph'; import { getTopologyNodesEdges } from '../../pipeline-topology/utils'; import { P...
import { Injectable } from '@angular/core'; import { HttpClientService } from '@core/http-client/http-client.service' import { UtilService } from '@core/util/util.service' @Injectable() export class ProjectStepBarChartService { loading:boolean = false; promise: Promise<any> constructor( private http: HttpCl...
import { LocalData } from './local-data'; export function localDataFactory () { return () => { return new LocalData(); }; } export let LocalDataFactoryProvider = {provide: LocalData, useFactory: localDataFactory};
// Copyright 2020 The Oppia Authors. 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 ap...
import { TestBed, inject } from '@angular/core/testing'; import { MockBackend } from '@angular/http/testing'; import { HttpModule, XHRBackend } from '@angular/http'; import { TranslateService } from '@ngx-translate/core'; import { ApiService } from './api.service'; import { MockTranslateService } from '../utils/test-m...
import BaseMicroKernel, { MKSpec } from './BaseMicroKernel' import TensorView from '../TensorView' class Conv1DKernel extends BaseMicroKernel { /** * @typedef {Object} MKSpec * @property {string} name - name of micro kernel * @property {number[]} operandNDims - #dims of operands * @returns {MKS...
import { DefaultFeatures } from "./types"; export const defaultFeatures: DefaultFeatures = { learn: { enabled: false, }, pushNotifications: { enabled: false, }, ratings: { enabled: false, params: { happy_moments: [ { route_name: "ReceiveConfirmation", timer: ...
/** * Command Class Switch Multilevel, version 1. * * Auto-generated, do not edit. */ import { CommandClassPacket, CommandPacket } from "../command"; import * as jsonSpec from "../jsonSpec"; import { Packet } from "../packet"; import { convertFromJsonCommand } from "../specHelpers"; import CommandClasses from "./C...