text
stringlengths
10
953k
import { Context, Request } from 'koa'; import { txMode } from 'pg-promise'; const noTransactionPaths = ['/healthz']; const readOnlyMode = new txMode.TransactionMode({ readOnly: true, }); const readWriteMode = new txMode.TransactionMode({ /* Defaults */ }); const isGraphQLQuery = (request: Request) => { retur...
/// <reference types="node" /> import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; import { Readable } from 'stream'; expor...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as React from 'react'; import { NavPage } from 'office-ui-fabric-react/lib/demo/pages/NavPage/NavPage'; import { PageHeader } from '../../components/PageHeader/PageHeader'; import { ComponentPage } from '../../components/ComponentPage/ComponentPage'; export class NavComponentPage extends React.Component<any, ...
import { Entity, Column, PrimaryGeneratedColumn, OneToMany, ManyToOne, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, RelationId, ManyToMany, JoinTable, JoinColumn } from 'typeorm'; import { SeasonCommercial } from './seasonCommercial.entity'; import { Status } from './status.entity'; import { PurchaseStore } fr...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { NodeLoader } from './NodeLoader'; import { Loader } from './Loader'; import { ImageLayer, ObjectLayer, TileLayer } from './Layers'; import { TileSet } from './TileSet'; import { Image } from './Image'; import { Tile } from './Tile'; import { TmxObject } from './TmxObject'; import { Terrain } from './Terrain'; ...
import { createProxyMiddleware } from 'http-proxy-middleware' import { proxyOptions } from 'ssr-types' import { getCwd } from '../cwd' import { loadConfig } from '../loadConfig' const koaConnect = require('koa2-connect') function onProxyReq (proxyReq: any, req: any) { Object.keys(req.headers).forEach(function (key)...
import fs from 'fs'; import path from 'path'; import elemTemplate from '../templates/element'; import { Command } from '../types'; import createFile from '../utils/createfile'; import { defaultConfig } from '../templates/config'; const ElementGenerate: Command = ( { name, path: filePath, force, extends: ext }, { e...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import {FormsModule} from '@angular/forms'; import { AppComponent } from './app.component'; import { StrikethroughDirective } from './strikethrough.directive'; import { QuoteComponent } from './quote/quote.component'; ...
import React from 'react' /* since Typescript checks for excess properties this would not work */ /* interface StyleType05 { position: "fixed"; } const myStyle: StyleType05 = { position: 'fixed', top: '5px', right: '15px', backgroundColor: '#FFFFFF', border: '1px solid #808080', boxShadow:...
// eslint-disable-next-line no-unused-vars import { TempoState, INCREMENT_TEMPO, DECREMENT_TEMPO, SET_TEMPO } from './types' export function incrementTempo (currentBpm: number) { return { type: INCREMENT_TEMPO, payload: { bpm: currentBpm + 1 } } } export function decrementTempo (currentBpm: numb...
import {RawStringsMap} from "./validation/model/RawStringsMap"; import HtmlParser from "./HtmlParser"; export default class CheerioHtmlParser implements HtmlParser { private cheerio: CheerioAPI; parseHtml(html: string): Promise<RawStringsMap> { const $ = this.lazyLoadCheerio().load(html); con...
// success: true => message, data // success: false => errorMessage, error export interface Photo{ url: string; description: string; tags: string[]; date: Date; }
/** * @file RoundCaliper 圆形卡钳 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import React from 'react'; import {ISvgIconProps, IconWrapper} from '../runtime'; export default IconWrapper( 'round-caliper', false, (props: ISvgIconProps) => ( ...
/** * Cloud Guard APIs * A description of the Cloud Guard APIs * OpenAPI spec version: 20200131 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you ...
import * as tf from "@tensorflow/tfjs-core"; export function bgrToRgbTensor(tensor: tf.Tensor4D): tf.Tensor4D { return tf.tidy(() => tf.stack(tf.unstack(tensor, 3).reverse(), 3) ) as tf.Tensor4D; }
import { render, RenderResult } from '@testing-library/react'; import * as React from 'react'; import { IContext } from 'src/provider/IContext'; import { ReCaptchaV3 } from 'src/reCaptchaV3/component/ReCaptchaV3'; import { TCallback } from 'src/reCaptchaV3/component/TCallback'; import { TRefreshToken } from 'src/reCapt...
import * as React from "react"; import Router from 'next/router' import classnames from "classnames"; import "./page-scroll.module.scss"; export const PageScroll = (props: any) => { const { router, className, ...rest } = props; const ref = React.createRef<HTMLDivElement>(); Router.events.on('routeChangeComple...
import { Resolver, Args, Mutation } from '@nestjs/graphql'; import { AuthService } from './auth.service'; import { Token } from './gqlTypes/token.gqltype'; import { UseGuards } from '@nestjs/common'; import { GqlLocalAuthGuard } from './guards/gql-local-auth.guard'; @Resolver('Auth') export class AuthResolvers { con...
/// <reference types="react" /> export interface DropAreaState { over: boolean; } export interface DropAreaBond { onDragOver: React.DragEventHandler; onDragEnter: React.DragEventHandler; onDragLeave: React.DragEventHandler; onDrop: React.DragEventHandler; onPaste: React.ClipboardEventHandler; } ...
import React from "react"; import { CoalboxConfig, CollectionConfig, CollectionId, gRPCProtoSetConfig, GrpcRequestTemplatePath, GrpcRequestValue, InstanceConfig, InstanceId, TabConfig, TabId, TemplatePath, WorkspaceConfig, WorkspaceId } from "../types/config"; import {coalboxConfigState,...
import * as React from 'react'; import { css, cx } from 'emotion'; import { featuresCTX, isFeatureEnabled, } from '../../../Components/Contexts/FeaturesProvider'; const containerStyle = css({ position: 'relative', marginTop: '0.8em', }); const errorStyle = css({ color: 'darkorange', fontSize: '75%', font...
import {Firestore} from '@google-cloud/firestore' import { isGoogleServiceAccountCredentials } from './GoogleServiceAccountCredentials' let db: Firestore | null = null const GOOGLE_CREDENTIALS = process.env.GOOGLE_CREDENTIALS if (!GOOGLE_CREDENTIALS) { throw Error('Environment variable not set: GOOGLE_CREDENTIALS...
import { plugin as http } from '@geislabs/http-plugin' import { Response } from '@geislabs/http' import { proxy } from '@geislabs/http-proxy' import { config as createRuntime, PluginObject } from '@geislabs/plugin' import { plugin } from '../lib' const mockFn = async (url: string): Promise<Response> => ({ status: ...
import { User } from "../../entities/User"; import { IMailProvider } from "../../providers/IMailProviders"; import { IUsersRepository } from "../../repositories/IUsersRepository"; import { ICreateUserRequestDTO } from "./CreateUserDTO"; export class CreateUserUseCase { constructor( private usersRepository:...
/** * Simple symbol palette */ import { createElement } from '@syncfusion/ej2-base'; import { Diagram } from '../../src/diagram/diagram'; import { Path, Node } from '../../src/diagram/objects/node'; import { BpmnDiagrams } from '../../src/diagram/objects/bpmn'; import { Connector } from '../../src/diagram/objects/co...
import { h } from 'preact'; import { useEffect, useState } from 'preact/hooks'; import { Router, Route, BaseLocationHook } from 'wouter-preact'; import { Provider } from 'jotai'; import { Index } from '../../screens/index'; import { Add } from '../../screens/add'; import { Import } from '../../screens/import'; import...
import * as React from 'react' import { Image } from 'react-native' interface Props { size?: number } export default class CeloAccountIcon extends React.PureComponent<Props> { static defaultProps = { size: 40, } render() { return ( <Image resizeMode="contain" source={require('sr...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { TagDialogComponent } from './tag-dialog.component'; describe('TagDialogComponent', () => { let component: TagDialogComponent; let fixture: ComponentFixture<TagDialogComponent>; beforeEach(async(() => { TestBed.configureTesti...
/* * Copyright © 2020 Cask Data, 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 t...
/* * Copyright 2018- The Pixie 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 ag...
/* istanbul ignore file */ /* ^^^ we test the dist directly, so isntanbul can't calculate the coverage correctly */ import { parentPort, isMainThread } from 'worker_threads'; import { Runtime, RuntimeEvaluationListener, RuntimeEvaluationResult } from '@mongosh/browser-runtime-core'; import { ElectronRuntime } fr...
import { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient"; import { PutProtocolsListRequest, PutProtocolsListResponse } from "../models/models_0"; import { deserializeAws_json1_1PutProtocolsListCommand, serializeAws_json1_1PutProtocolsListCommand, } from "../protocols/Aws_json1_1...
/*! * @license * Copyright 2019 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
export * from './steamEntities'; export * from './steamResponses'; import { SteamAppDetails } from './steamEntities'; export interface SteamCacheConfig { enabled: boolean; expiresIn: number; } export interface SteamAPIConstructor { apiKey: string; cache?: SteamCacheConfig; } export type GameDetailsCacheValu...
import PropTypes from 'prop-types' import React, { memo } from 'react' import { Defs, Ellipse, G, Line, LinearGradient, Path, Polygon, Polyline, RadialGradient, Rect, Stop, Svg, Symbol, Text, Use, Circle as _Circle, } from 'react-native-svg' import { IconProps } from '../IconProps' impo...
import isEmpty from '../../_util/isEmpty'; import ValidationResult from '../ValidationResult'; import { $l } from '../../locale-context'; import { getNearStepValues } from '../../number-field/utils'; import { inject } from '../utils'; import { methodReturn } from '.'; export default function stepMismatch(value, { step...
import React from "react" import firebase from "gatsby-plugin-firebase" import { Button, Typography, makeStyles } from "@material-ui/core" import SignInContent from "./SignInContent" import SignInPopup from "./SignInPopup" const useStyles = makeStyles(theme => ({})) type Props = {} const SignIn = ({}: Props) => { ...
import { computeStackTrace } from '../../../src/tracekit'; describe('Tracekit - IE Tests', () => { it('should parse IE 10 error', () => { const IE_10 = { name: 'foo', message: "Unable to get property 'undef' of undefined or null reference", stack: "TypeError: Unable to get property 'und...
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {SuiModule} from 'ng2-semantic-ui'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {TelemetryModule} from '@sunbird/telemetry'; import {UserLocationComponent} from './user-location.component'; import { ResourceServ...
import { InternalServerErrorException, NotFoundException, } from '@nestjs/common'; import { Test, TestingModule } from '@nestjs/testing'; import { getRepositoryToken } from '@nestjs/typeorm'; import { CourseService } from './course.service'; import { Course } from './entities/course.entity'; const course = new Cou...
import * as _ from "lodash"; import { interfaces } from "inversify"; import { appSymbols, reduxSymbols } from "protoculture"; import { ReactAppConfiguration } from "../../index"; import { Store } from "redux"; import { ProtocultureReactApp } from "./ProtocultureReactApp"; import { ServiceProvider } from "protoculture/l...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
import { request } from 'umi'; export async function query() { return request<API.CurrentUser[]>('/api/v1/users'); } export async function queryCurrent() { return request<API.CurrentUser>('/api/v1/users/currentUser'); } export async function queryNotices(): Promise<any> { return request<{ data: API.NoticeIcon...
import BaseSort from "../sort"; export default function Sort<Key, Value>( map : Map<Key, Value>, filter : (pair1:[key:Key, value:Value], pair2:[key:Key, value:Value])=>number ) : void { const sorted = BaseSort(map, filter); map.clear(); for(const [key, value] of sorted.entries()) { map....
import type { Snowflake } from 'discord-api-types'; interface EmojiProps { animated: boolean; id: Snowflake; invite: string; name: string; } export default function Emoji({ animated, id, invite, name }: EmojiProps) { return ( <div className="group relative w-max h-max cursor-pointer"> <img ...
import { ApplicationError } from '../core/core.errors' /** * Transaction with given ID not found. */ export class TransactionNotFoundError extends ApplicationError { constructor(message = 'Transaction with given ID not found') { super(message) } } /** * Field with given ID not found in the transaction. */...
import { Component } from 'react' import './app.scss' class App extends Component { componentDidMount () {} componentDidShow () {} componentDidHide () {} componentDidCatchError () {} // this.props.children 是将要会渲染的页面 render () { return this.props.children } } export default App
import * as React from 'react'; import { SVGProps } from 'react'; interface IconProps extends SVGProps<SVGSVGElement> { size?: 'small' | 'default' | 'big'; className?: string; } const SvgInformation = ({ size = 'default', className = '', ...otherProps }: IconProps) => { const props = Object.assign( {},...
<TS language="mr_IN" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>पत्ता किंवा लेबल संपादित करण्यासाठी उजवे बटण क्लिक करा.</translation> </message> <message> <source>Create a new address</source>...
import * as React from "react"; import { storiesOf } from "@storybook/react"; import { withKnobs, number, boolean, radios } from "@storybook/addon-knobs"; import { withPreview } from "storybook-addon-preview"; import "../../template/nested/nested.css"; import RotatableApp, { ROTATABLE_FRAME } from "../../template/basic...
/* * 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 { FtrProviderContext } from '../../.....
import { Component, OnInit } from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {User} from '../models/user'; import {UserService} from '../services/user.service'; import { Router } from '@angular/router'; import swal from 'sweetalert2'; @Component({ selector: 'app-user-profile', template...
import { BitField } from 'discord.js'; export class MusicBitField extends BitField<MusicBitFieldString> { public static FLAGS: Record<MusicBitFieldString, number> = { USER_VOICE_CHANNEL: 1 << 0, AELIA_VOICE_CHANNEL: 1 << 1, SAME_VOICE_CHANNEL: 1 << 2, QUEUE_NOT_EMPTY: 1 << 3, VOICE_PLAYING: 1 << 4, VOICE...
import { cookieName } from '../cookie-name'; import { populateListeningHistory } from '../populate-listening-history'; import { listeningHistory } from '../store'; jest.mock('$app/env', () => ({ browser: false }), { virtual: true }); jest.mock('../store', () => ({ listeningHistory: { set: jest.fn().mockName('lis...
import * as React from 'react' import * as Kb from '../../common-adapters/mobile.native' import * as Types from '../../constants/types/chat2' import * as Styles from '../../styles' import {Gateway} from '@chardskarth/react-gateway' type AudioStarterProps = { dragY: Kb.NativeAnimated.Value locked: boolean recordi...
import * as React from 'react'; import {getWidth} from '../../../../utilities/getWidth'; import {ContextualSaveBarProps as Props} from '../../types'; import {withAppProvider, WithAppProviderProps} from '../../../AppProvider'; import Button from '../../../Button'; import Image from '../../../Image'; import Stack from ...
import { h1Atom } from 'components/Header/Header' import { mainHeight } from 'styles' import { tw } from 'twind' import { useAtom } from 'jotai' import { useEffect } from 'react' import Cart from 'components/Cart' import Head from 'next/head' export default function CartPage() { const [, setH1] = useAtom(h1Atom) u...
//adapted from navier-stokes class Foo<M extends ReadOnly> { /*@ (Immutable) a: {number | v = 5} */ a = 5; constructor() {} /*@ bar({number | v = this.a }): {number | v = 0} */ bar(x) { return this.a - x; } } let z: Foo<ReadOnly> = new Foo(); z.bar(4);
import {Component, OnDestroy, OnInit, ViewEncapsulation} from '@angular/core'; import {fadeInAnimation} from "../../../route.animation"; import {FormBuilder, FormGroup, Validators} from "@angular/forms"; import {CabirAlert} from "../../../cabir/alert/cabir-alert.service"; import {CabirTokenService} from "../../../cabir...
export * from './rules' export * from './pseudos'
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from "typeorm"; @Entity({ name: 'USER_ROLE' }) export class RoleEntity extends BaseEntity { @PrimaryGeneratedColumn({ name: 'ID' }) id: number; @Column({ name: 'ROLE' }) userRole: string; }
import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, Router, RouterStateSnapshot } from '@angular/router'; import { Observable, of } from 'rxjs'; import { Injectable } from '@angular/core'; import { AuthService } from '../services/auth.service'; @Injectable({ providedIn: 'root' }) export class AuthGuard ...
import { ILink } from "../link"; // WORK: // tslint:disable-next-line:no-empty-interface export interface IInbox extends ILink { }
/** * @license * Copyright 2016 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 React from 'react'; // eslint-disable-next-line no-restricted-imports import {mountWithAppProvider} from 'test-utilities/legacy'; import {Message} from '../Message'; import {Badge} from '../../../../Badge'; const messageProps = { title: 'Polaris', description: 'Hello Polaris', action: { onClick: noop...
import * as claim from "./assign/claim"; import * as abandon from "./assign/abandon"; import * as add from "./label/add"; import * as remove from "./label/remove"; import { CommandRunFunction } from "../types"; export default function getBotCommands(): Map<string, CommandRunFunction> { const commands: Map<string, C...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { RouterModule } from '@angular/router'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { MatProgressBarModule } from '@angular/material/progress-bar'; import { MatProgress...
import * as React from 'react'; import Tippy, { TippyProps } from '@tippyjs/react'; // optional import { classNamesFunction, styled } from '@uifabric/utilities'; import { getToolbarButtonStyles } from './ToolbarButton.styles'; import { ToolbarButtonProps, ToolbarButtonStyleProps, ToolbarButtonStyles, } from './To...
// *** 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 * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as utilitie...
export * from './search.actions';
import { ConfigService } from '@nestjs/config'; import { NestFactory } from '@nestjs/core'; import { FastifyAdapter, NestFastifyApplication, } from '@nestjs/platform-fastify'; import { fastifyHelmet } from 'fastify-helmet'; import { AppModule } from './app.module'; async function bootstrap() { const app = await ...
import React from "react"; import { FieldTemplateProps } from "@rjsf/core"; import { Text, Label } from "@fluentui/react"; import { List } from "@fluentui/react"; const styles = { root: [ { fontSize: 24, }, ], }; const FieldTemplate = ({ id, children, displayLabel, rawErrors = [], rawHelp,...
import {UpdateEvent} from "./event/UpdateEvent"; import {RemoveEvent} from "./event/RemoveEvent"; import {InsertEvent} from "./event/InsertEvent"; /** * Classes that implement this interface are subscribers that subscribe for the specific events in the ORM. */ export interface EntitySubscriberInterface<Entity = any>...
export function getFlagFunction(width: number, height: number) { return (u: number, v: number, target: any) => { const x = (u - 0.5) * width; const y = (v - 0.5) * height; target.set(x, y, 0); }; }
import { HttpStatus } from "@nestjs/common"; import { User } from "src/models/users/user.schema"; export class Token{ accessToken: string; refreshToken: string; } export class AuthResponseDto { user:User; tokens:Token; statusCode:HttpStatus }
// Type definitions for ag-grid v9.0.0 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ceolter/> export interface OriginalColumnGroupChild { getColumnGroupShow(): string; getId(): string; }
import { isObjectTag } from './is-object-tag'; export function isUndefined(object: unknown): object is undefined { return typeof object === 'undefined' || isObjectTag(object, 'Undefined'); }
import { CourseList } from '../../data/CourseLists'; export default interface CourseCardListProps { filteredCourseList?: CourseList; }
import { ChangeDetectionStrategy, Component, ElementRef, Inject, Input, } from '@angular/core'; import {TUI_PREVIEW_TEXTS} from '@taiga-ui/addon-preview/tokens'; import { clamp, dragAndDropFrom, px, round, tuiDefaultProp, TuiDestroyService, TuiDragStage, TuiZoom, ...
/* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. */ /* eslint-disable max-classes-per-file */ import { MapType } from '@sap-cloud-sdk/util'; import { nonEnumerable, toPropertyFormat } from '../../util'; import { Constructable } from './constructable'; import { EntityBuilder } from './enti...
import { WebAPI } from '../WebApi'; import { bindable, inject } from 'aurelia-framework'; import { IPatientNumber } from '../interfaces/IPatientNumber'; import { IPatient } from '../interfaces/IPatient'; @inject(WebAPI) export class PatientSvc { baseUrl: string = 'Patients'; constructor(private api: WebAPI)...
/* Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2019 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, ...
export enum ContentEnum { // auto width FULL = 'full', // fixed width FIXED = 'fixed', } // app current theme export enum ThemeModeEnum { LIGHT = 'light-mode', DARK = 'dark-mode', SEMI_DARK = 'semi-dark-mode', } /** * 权限模式 */ export enum PermissionModeEnum { // role ROLE = 'ROLE', // black BAC...
import { Box } from "@material-ui/core"; import * as React from "react"; import { Search, SearchButton, SearchHelp } from "../Search"; import { DragHandle, PowerButton } from "../System"; export class AppShell extends React.PureComponent { public render() { return ( <Box display="flex" flexDire...
import { next, run, _getCurrentRunLoop, _hasScheduledTimers } from '@ember/runloop'; import { destroy } from '@glimmer/destroyable'; import { Promise } from 'rsvp'; export function runAppend(view: any): void { run(view, 'appendTo', document.getElementById('qunit-fixture')); } export function runDestroy(toDestroy: ...
/* * Copyright (C) 2019 Toshiba Corporation * SPDX-License-Identifier: Apache-2.0 */ export const EShapePointsMarkerType = { NONE: 0, CIRCLE: 1, TRIANGLE: 2, RECTANGLE: 3 } as const; export type EShapePointsMarkerType = typeof EShapePointsMarkerType[keyof typeof EShapePointsMarkerType];
import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing"; import { AccountBalancesServiceStub } from "../../../../test/stub-services/account-balances-service-stub"; import { SharedModule } from "../../shared/shared.module"; import { AccountBalancesService } from "../account-balances.service"; im...
import ModelTraits from "../ModelTraits"; import primitiveTrait from "../Decorators/primitiveTrait"; import objectTrait from "../Decorators/objectTrait"; export class EditorTraits extends ModelTraits { @primitiveTrait({ type: "boolean", name: "Is editable?", description: "Indicates whether we can e...
export * from './addProp'; export * from './allPass'; export * from './anyPass'; export * from './chunk'; export * from './clamp'; export * from './clone'; export * from './compact'; export * from './concat'; export * from './createPipe'; export * from './difference'; export * from './drop'; export * from './dropLast';...
import { ColorRampCombo } from './ColorRampCombo'; import TestUtil from '../../../Util/TestUtil'; describe('ColorRampCombo', () => { let wrapper: any; beforeEach(() => { wrapper = TestUtil.shallowRenderComponent(ColorRampCombo); }); it('is defined', () => { expect(ColorRampCombo).toBeDefined(); }...
import { kebabRules } from './kebabRules'; describe('kebabRules', () => { it('can kebab the names', () => { const rules = ['backgroundColor', '#cAcAcA']; kebabRules(rules, 0); expect(rules).toEqual(['background-color', '#cAcAcA']); }); it('can kebab webkit prefix', () => { const rules = ['Webk...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { Component, OnInit, EventEmitter, Output, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-cockpit', templateUrl: './cockpit.component.html', styleUrls: ['./cockpit.component.css'] }) export class CockpitComponent implements OnInit { @Output() serverCreated = new EventEmitter<{...
import { AppComponent } from './app.component'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { RouterModule, Router, RouterOutletMap } from '@angular/router'; describe('AppCompone...
/* eslint-disable max-len */ /* Generated from tzdb version 2021a */ import { RawData } from './types'; export const rawdata: RawData = { zoneinfo: [ '0_35yd7_-2eg51_CI,BF,GM,GN,ML,MR,SH,SL,SN,TG_LMT:0:-qw|GMT:0:0_1_fc', '0_3ayeo_-4n6j_GH_LMT:0:-1g|+0020:1:xc|GMT:0:0|+0030:0:1e0|+0030:1:1e0|GMT:0:0_2121...
/*--------------------------------------------------------------------------------------------- * Copywight (c) Micwosoft Cowpowation. Aww wights wesewved. * Wicensed unda the MIT Wicense. See Wicense.txt in the pwoject woot fow wicense infowmation. *----------------------------------------------------------------...
/** SCSS module class names and variables */ declare module '*.module.scss' { const styles: { [name: string]: string; }; export = styles; } declare module 'react-resize-aware';