text
stringlengths
10
953k
/** * Copyright 2020 Vercel 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...
/* eslint-disable import/prefer-default-export */ /* eslint-disable import/no-extraneous-dependencies */ import { createTestClient, ApolloServerTestClient, } from 'apollo-server-testing'; import { ApolloServer } from 'apollo-server-express'; import { buildOwnSchema } from '../../config/apollo'; import formatError ...
/* Auto generated by scripts/gen-prism.ts, do not modify manually. */ /* eslint-disable */ const ctx: any = typeof window === 'undefined' ? (typeof self === 'undefined' ? {} : self) : window; ctx.Prism = { manual: true, disableWorkerMessageHandler: true }; const Prism: typeof import('prismjs') = require('prismjs/compo...
import { Module } from "@nestjs/common"; import { TypeOrmModule } from "@nestjs/typeorm"; import { UserRepository } from '../user/user.repository'; import { LocalStrategy } from './strategies/local.strategy'; import { AuthController } from './auth.controller'; import { PassportModule } from "@nestjs/passport"; import {...
import { Boundary } from './types'; import { Diagnostic, DiagnosticSeverity } from 'vscode-languageserver'; import { dfs } from '../utilities/graphUtils'; import { IStmt } from '../parser/types'; import { BasicBlock } from './models/basicBlock'; import { empty } from '../utilities/typeGuards'; import { rangeContains } ...
import { createModelField } from "./utils"; import { CmsModelField } from "@webiny/api-headless-cms/types"; import { WorkflowModelDefinition } from "~/types"; const titleField = () => createModelField({ label: "Title", type: "text", parent: "workflow", validation: [ { ...
// Copyright 2018-2020 Polyaxon, 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 agre...
import Tooltip from "@material-ui/core/Tooltip"; import * as moment from "moment-timezone"; import * as React from "react"; import useDateLocalize from "@saleor/hooks/useDateLocalize"; import { LocaleConsumer } from "../Locale"; import { Consumer } from "./DateContext"; interface DateProps { date: string; plain?:...
import { Request, Response } from "express"; import { Context } from "../types/Request"; import { checkAuth } from "../utils/functions"; export const context = async ({ req, res }: { req: Request; res: Response }): Promise<Context> => { const token = req.get("Authorization"); let id: string; try { const authResul...
// PPU: Picutre Processing Unit // PPU scrolling // https://wiki.nesdev.com/w/index.php/PPU_scrolling import {Const} from '../const' import {Address, Byte} from '../types' import {kPaletColors, kStaggered, kFlipXBits} from './const' import {HEventType, HEvents, HStatusMgr} from './hevent' import {MirrorMode, PpuReg, ...
export * from './serverGroupReader.service'; export * from './serverGroupWriter.service'; export * from './details/serverGroupWarningMessage.service'; export * from './metrics/cloudMetrics.read.service'; export * from './configure/common/serverGroupCommandBuilder.service'; export * from './configure/common/serverGroupC...
import test from 'ava'; import * as fse from 'fs-extra'; import { common } from '~blockml/barrels/common'; import { enums } from '~blockml/barrels/enums'; import { helper } from '~blockml/barrels/helper'; import { interfaces } from '~blockml/barrels/interfaces'; import { prepareTest } from '~blockml/functions/prepare-t...
export class Mock { public static create(name: string, methods:string[]) { let mockObj = {}; methods.forEach( method => { mockObj[method] = jest.fn(); }); return mockObj; } }
import { expect } from "chai"; import { SPListConfigurationProvider } from "../../"; import MockStorage from "../mock-storage"; import { TypedHash } from "@pnp/common"; import { Web } from "@pnp/sp"; declare var global: any; describe("Configuration", () => { describe("SPListConfigurationProvider", () => { ...
export = Orchestrator; declare class Orchestrator { constructor(); add(name: string, dep?: Function | Array<any> | Orchestrator.I__dep, fn?: Function): Orchestrator; start(): Orchestrator; _resetAllTasks(): void; _resetTask(task?: Orchestrator.I__task | Function): void; sequence(): void; emit(): boolean; _runS...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as IORedis from "ioredis"; import * as dotProp from "dot-prop"; import { api, config, id, log, Initializer, redis, utils } from "../index"; import * as RedisModule from "./../modules/redis"; export interface RedisApi { clients: { [key: string]: IORedis.Redis; }; subscriptionHandlers: { [key: str...
import { RedisOptions } from 'ioredis'; interface ICacheConfig { driver: 'redis'; config: { redis: RedisOptions; }; } export default { driver: 'redis', config: { redis: { host: process.env.REDIS_HOST || '127.0.0.1', port: process.env.REDIS_PORT || 6379, password: process.env.REDIS_...
/** * A Directory-based Classifier */ import { PaginationConfig } from './Pagination'; export interface DirectoryClassifier { /** * Unique id for current classifier. */ id: string; /** * Matched directory name. */ dirname: string; /** * Entry page for current classifier. */ path: string...
import { SET_SOCKET, CLEAR_SOCKET, TOGGLE_DARK_MODE, SET_DARK_MODE } from "../types"; import { Action, AppState } from "context"; const AppReducer = (state: AppState, { type, payload }: Action): AppState => { switch (type) { case SET_SOCKET: return { ...state, socket: payload, }; ...
/* global testNode */ import { applyBindings } from '@tko/bind' import { observable, observableArray } from '@tko/observable' import { DataBindProvider } from '@tko/provider.databind' import { options } from '@tko/utils' import { bindings as templateBindings, renderTemplate, anonymousTempl...
/** * Definition for a binary tree node. * class TreeNode { * val: number * left: TreeNode | null * right: TreeNode | null * constructor(val?: number, left?: TreeNode | null, right?: TreeNode | null) { * this.val = (val===undefined ? 0 : val) * this.left = (left===undefined ? nul...
import { useState } from 'react' import * as S from './styles' import { Menu2 as MenuIcon } from '@styled-icons/remix-fill/Menu2' import { ShoppingCart as ShoppingCartIcon } from '@styled-icons/material-outlined/ShoppingCart' import { Search as SearchIcon } from '@styled-icons/material-outlined/Search' import { Close a...
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { environment } from 'src/environments/environment.prod'; import { UsuarioLogin } from '../model/UsuarioLogin'; import { Usuario } from '../model/Usuario'; @Injectable({...
import { updateUIState } from './actions'; import { reducer } from './ui.reducer'; describe('UI reducer store state', () => { describe('undefiend action', () => { it('should return default state', () => { // Given const action = { type: void(0) }; // When const result = reducer(void(...
import {seq, opt, tok, star, alt, Expression, IStatementRunnable} from "../combi"; import {InstanceArrow, StaticArrow} from "../tokens/"; import {NewObject, ArrowOrDash, ComponentName, FieldChain, MethodCall, Cast} from "./"; import {ClassName} from "./class_name"; export class MethodCallChain extends Expression { p...
import { PROVIDERS } from '../mock/mock.providers'; import { Injectable, HttpException } from '@nestjs/common'; @Injectable() export class ProvidersService { providers = PROVIDERS; async getProviders() { return this.providers; } async getProvider(providerID) { let id = Numb...
import * as pulumi from "@pulumi/pulumi"; export declare function getKeypair(args: GetKeypairArgs, opts?: pulumi.InvokeOptions): Promise<GetKeypairResult>; /** * A collection of arguments for invoking getKeypair. */ export interface GetKeypairArgs { readonly name: string; readonly region?: string; } /** * A ...
export default { env: 'development', port: 3010 };
import colors from './colors'; import fonts from './fonts'; import images from './images'; import palette from './palette'; import strings from './strings'; const A = { colors, fonts, images, palette, strings, }; export default A;
import { assertEquals, } from "https://deno.land/std@0.63.0/testing/asserts.ts"; import { encode } from "./../../mod.ts"; Deno.test("Encoding Utility", () => { assertEquals( encode.hex("676f645f63727970746f20726f636b7321").toString(), "god_crypto rocks!", ); assertEquals( encode.string("god_crypto...
import { Machine, spawn, interpret, ActorRef, ActorRefFrom, Behavior, createMachine, EventObject } from '../src'; import { assign, send, sendParent, raise, doneInvoke, sendUpdate, respond, forwardTo, error } from '../src/actions'; import { interval } from 'rxjs'; import { map } from 'r...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { WatchCallback } from "vue"; import seedrandom from 'seedrandom'; export function rnd(minOrMax = 1, max?: number): number { if (max == null) { return Math.random() * minOrMax; } else { return minOrMax + Math.random() * (max - minOrMax); } } ...
/// <reference path="./SceneGameObjectSection.ts"/> namespace phasereditor2d.scene.ui.sceneobjects { import controls = colibri.ui.controls; export class GameObjectVariableSection extends SceneGameObjectSection<ISceneGameObjectLike> { constructor(page: controls.properties.PropertyPage) { ...
import moment, { Moment } from 'moment'; import { Status } from '../../../../types'; export interface TableData { Amount: number | string; amount: number | string; companyName: string; firstName: string; id: string; infix?: string; info?: number; isRowSelectAllowed?: boolean; isRowS...
/* * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.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 restriction, including without limitation the * rights...
export * from './app-config' export * from '../constants' export * from '../constants' export * from './init-config' export * from './init-table-information' export * from './property-config' export * from './replicator' export * from './collection-creator' export * from './table-config' export * from './table-informat...
/** * @license * Copyright Color-Coding Studio. All Rights Reserved. * * Use of this source code is governed by an Apache License, Version 2.0 * that can be found in the LICENSE file at http://www.apache.org/licenses/LICENSE-2.0 */ namespace purchase { export namespace ui { export namespace c { ...
import { window, ConfigurationTarget, InputBox, QuickPick, QuickPickItem } from 'vscode'; import Config from '../Utils/Config'; import Log from '../Utils/Log'; import Server from '../Server/Server'; export default { async wizard(): Promise<void> { try { const odataProxyValue = await this.quickPickOdataProx...
/** * Adyen Checkout API * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides infor...
/* tslint:disable */ // This file was automatically generated and should not be edited. import { AttributeValueInput } from "./../../types/globalTypes"; // ==================================================== // GraphQL mutation operation: ProductCreate // ==================================================== export ...
import React, { useState } from 'react'; import Avatar from '@material-ui/core/Avatar'; import Button from '@material-ui/core/Button'; import CssBaseline from '@material-ui/core/CssBaseline'; import TextField from '@material-ui/core/TextField'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import C...
const c_context_selector__menu_ZIndex: {"name": "--pf-c-context-selector__menu--ZIndex"; "value": "200"; "var": "var(--pf-c-context-selector__menu--ZIndex)";} export default c_context_selector__menu_ZIndex
import { startOfHour, isBefore, getHours, format } from 'date-fns'; import { injectable, inject } from 'tsyringe'; import AppError from '@shared/errors/AppError'; import ICacheProvider from '@shared/container/providers/CacheProvider/models/ICacheProvider'; import INotificationsRepository from '@modules/notifications/...
import { Request, Response } from "@opennetwork/http-representation"; import { graph, parse, serialize } from "./types/rdflib"; import { Fetcher } from "./fetcher"; import { preferredMediaTypes } from "./media-type"; import { RDF_MIME_TYPES } from "./mime-types"; export function getType(request: Request) { return pr...
import fs = require('fs'); import tl = require('vsts-task-lib/task'); /** * Data class representing the report-task.txt file contents. Should be treated as read-only. */ export class SonarQubeRunSettings { /** * Construct a new SonarQubeRunSettings instance. * @param projectKey A string uniquely ide...
import { TextDocument, CompletionItem } from 'vscode'; import { File, ClassDeclaration, ObjectExpression } from 'babel-types'; import babelTraverse, { Scope } from 'babel-traverse'; import getCompletionItems from './getCompletionItems'; export default ( componentTextDocument: TextDocument, ast: File, com...
import React from 'react'; import { Trans } from '@lingui/macro'; import { AdvancedOptions, CardStep, TextField, RadioGroup, Flex, Checkbox, TooltipIcon, } from '@bpx/core'; import { Grid, FormControl, InputAdornment, Typography, FormControlLabel, Radio, } from '@material-ui/core'; import { us...
import { OnRequestFunction } from 'messaging-api-common'; export type ClientConfig = { accessToken: string; origin?: string; onRequest?: OnRequestFunction; }; export type Update = { updateId: string; message?: Message; editedMessage?: Message; channelPost?: Message; editedChannelPost?: Message; inli...
import { Controller } from "../../types"; import { Router } from "express"; import passport from "passport"; /** * The AuthController class for handling authentication * of the app via Snyk Authorization flow. This is the * third step of passport setup. Every controller class * implements the controller interface ...
/** * @file These functions should be implemented correctly later. */ import { Set, Boolean, } from '@nlib/global'; import { SOLIDUS, fromString, toString, } from '@nlib/infra'; export const isNonHTTP = (protocol: string): boolean => !protocol.startsWith('http'); export const isPublicSuffix = (...
import React from 'react'; import { mount } from 'enzyme'; import { MentionProvider } from '@atlaskit/mention'; import { ResourcedMention } from '@atlaskit/mention/element'; import { ProviderFactory } from '../../../provider-factory'; import { ProfilecardProvider } from '../../../provider-factory/profile-card-provid...
/** * @implements globalThis.HTMLTitleElement */ export class HTMLTitleElement extends TextElement implements globalThis.HTMLTitleElement { } import { TextElement } from "./text-element.js";
export * from './jest.service';
export * from './email-validator' export * from './id-validator' export * from './mobile-phone-validator'
// Copyright 2018 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
export * from "./lib/browser";
import { useMemo } from 'react' import { ApolloClient, createHttpLink, InMemoryCache, NormalizedCacheObject, from } from '@apollo/client' import { concatPagination } from '@apollo/client/utilities' import { setContext } from '@apollo/client/link/context' import merge from 'deepmerge' import isEqual from 'lodash/isEqual...
export interface ITodo { id: number; title: string; description: string; }
import { BaseObjectLikeTypeImpl, BaseTypeImpl, createType, TypedPropertyInformation } from '../base-type.js'; import type { LiteralValue, MergeIntersection, MessageDetails, Properties, PropertiesInfo, Result, Type, TypeImpl, TypeOfProperties, ValidationOptions, Visitor, W...
/** * @ignore */ import { CommonModule, DatePipe } from "@angular/common"; import { NgModule, Provider } from "@angular/core"; // This is not technically used here, but it does pull in the type for $localize // eslint-disable-next-line @typescript-eslint/no-unused-vars import {LocalizeFn} from "@angular/localize/init...
import {Semester} from '../../semester/classes/semester'; export class LearningUnit { id: number; name: string; TEPICCredits: number; SATCACredits: number; theoryHoursPerWeek: number; practiceHoursPerWeek: number; formationArea: string; semester: Semester; constructor(id?: number, name?: string, TEP...
// This is a generated file from running the "createIcons" script. This file should not be updated manually. import React, { forwardRef } from "react"; import { FontIcon, FontIconProps } from "@react-md/icon"; export const AspectRatioFontIcon = forwardRef<HTMLElement, FontIconProps>( function AspectRatioFontIcon(pr...
import { FASTDesignSystemProvider } from "../design-system-provider"; import TextAreaTemplate from "./fixtures/text-area.html"; import { FASTTextArea } from "."; // Prevent tree-shaking FASTTextArea; FASTDesignSystemProvider; export default { title: "Text Area", }; export const TextArea = () => TextAreaTemplate;
import defaults from 'lodash/defaults'; import React, { MouseEvent, PureComponent, ChangeEvent } from 'react'; import { AsyncSelect, Button, MultiSelect, Select, Switch } from '@grafana/ui'; import { QueryEditorProps, SelectableValue } from '@grafana/data'; import { DataSource } from './DataSource'; import { AggrMetho...
// ETA: 2-3 hours import React from 'react'; import { render, cleanup } from '@testing-library/react'; import { Index } from './Index'; import { store } from '../../index'; import { Provider } from 'react-redux'; import Header from '../layout/Header'; afterEach(cleanup); describe('<Index />', () => { it('should not...
import * as bcrypt from 'bcrypt'; export class PasswordHelper { saltRounds = 10; hash(password: string) { return bcrypt.hashSync(password, this.saltRounds); } compare(password: string, hash: string) { return bcrypt.compareSync(password, hash); } }
/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: Apache-2.0 */ // Style preference for leading underscores. // tslint:disable:strip-private-property-underscore import '@material/mwc-icon/mwc-icon'; import '@material/mwc-ripple/mwc-ripple'; import {AriaHasPopup, ariaProperty} from '@material/...
import * as React from 'react' export const CurrentPrivacyPolicyVersion: PrivacyPolicyVersion = { versionId: "0.3", versionDate: new Date(2021, 5, 14, 0, 0, 0, 0) } export class PrivacyPolicyVersion { versionId: string = "0.3"; versionDate: Date = new Date(2021, 5, 14, 0, 0, 0, 0); } // Note: this po...
import { Dec, LCDClient } from '@terra-money/terra.js'; import { AddressProvider, MARKET_DENOMS } from '../../address-provider'; import { fabricateMarketBorrow, fabricateMarketRepay, fabricateProvideCollateral, fabricateRedeemCollateral, OmitAddress, OptionType, } from '../../fabricators'; import { queryC...
import { AMQPConnectionOptions } from '../../interface'; export class AMQConnectionOptionsStorage { /** * Add Queue Module Options to storage for connection * * @param {string} name Name of the connection, will be used as key * @param {Options} options The options object */ public static add(name: s...
import {IAnchorEntity} from './../core/entities/interfaces/IAnchorEntity'; export class StuckAnchorController { public static $inject: string[] = []; /** * @input anchor - the any passed to us */ public anchor: IAnchorEntity; public constructor() { this.anchor.subscribe((anchor: IAnch...
import React from 'react'; import { Logotype } from '../Logotype.styles'; // Raiffeisen Logotype export const Logo = (props) => ( <Logotype viewBox='0 0 56 56' size={props.size} design={props.design}> <rect stroke='currentColor' strokeWidth='1.5' x='0.75' y='0.75' width='54.5' height='54.5' /> <pat...
import { CountDataPointsQuery } from '@/queries/count-data-points.query'; import { subMonths } from 'date-fns'; import { ObjectId } from 'bson'; export interface IExecuteRequest { regionId: string; } export interface IExecuteResponse { thisMonth: number; lastMonth: number; } export class FindRegionStatsService...
import { createGlobalStyle } from "styled-components"; export const GlobalStyle = createGlobalStyle` body { margin: 0 0 100px 0; width: 100vw; overflow-x: hidden; } `;
import { Component, OnInit, DoCheck } from '@angular/core'; import { LocalDataSource } from 'ng2-smart-table'; import { Router } from '@angular/router'; import Swal from 'sweetalert2'; import { CustomerService } from '../../../services/customer.service'; import { AuthenticationService } from '../../../services/authenti...
import React from "react"; import { Header, Main, Footer, Cards } from "components"; const Home: React.FC = () => { return ( <div className="d-flex flex-column min-vh-100"> <Header /> <Main /> <Cards /> <Footer /> </div> ); }; export default Home;
import { useStorage } from '../useStorage' export function useSessionStorage<T> ( key: string, defaultValue?: T, ) { return useStorage(key, defaultValue, sessionStorage) }
// Copyright 2018-2022 the Kubeapps contributors. // SPDX-License-Identifier: Apache-2.0 import { AvailablePackageDetail, InstalledPackageDetail, InstalledPackageSummary, GetInstalledPackageSummariesResponse, InstalledPackageReference, InstalledPackageStatus, VersionReference, ReconciliationOptions, ...
/** * Simple in-memory map DAO */ export class MemoryDao<T extends object, ID, SC> { private readonly data: Map<ID, T> = new Map(); private count: number = 1; private _key: string; private _predicate: (t: T, sc: SC) => boolean; private _timeout: number; constructor(key: string, predicate: (t:...
import { dotsH, lch } from "@thi.ng/color"; import { compareByKey, compareNumDesc } from "@thi.ng/compare"; import { serialize } from "@thi.ng/hiccup"; import { svg } from "@thi.ng/hiccup-svg"; import { table } from "@thi.ng/markdown-table"; import { assocObj, groupByMap, map, mapIndexed, minMax, ...
export { mutations as authMutations } from './mutations'; export { queries as authQueries } from './queries'; export { getUser, getUserId, isAuthResolver, Context } from './utils'; export { graphqlAuthenticationConfig } from './Config'; export { GraphqlAuthenticationAdapter, ID, DateTime, User } from './Adapter';
import { Base } from "../base"; import { UpdateQuery } from "../../types"; import { DATA_TYPE } from "../../enums"; import { getDataType } from "../../utils/index"; export const updateValue = (suppliedValue, storedValue) => { for (const key in suppliedValue) { if (getDataType(suppliedValue[key]) !== DATA_T...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import * as fetch from "node-fetch"; import * as devCerts from "office-addin-dev-certs"; import * as devSettings from "office-addin-dev-settings"; import * as os from "os"; import { DebuggingMethod, sideloadAddIn } from "of...
import { GlobalContext, OperationObject, ParameterObject, PathItemObject } from "../types"; import { comment, isRef, tsReadonly } from "../utils"; import { transformParametersArray } from "./parameters"; import { transformRequestBodyObj } from "./request"; import { transformResponsesObj } from "./responses"; interface...
/*! * Copyright 2018 Google LLC * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ import * as assert from 'assert'; import {describe, it, beforeEach} from 'mocha'; import * as fs from 'fs'; import * as path from...
import { HttpClient } from "aurelia-fetch-client"; import { inject } from "aurelia-framework"; @inject(HttpClient) export class Fetchdata { constructor(private http: HttpClient) { } forecasts: IWeatherForecast[]; async activate() { this.forecasts = await this.http.fetch("api/SampleData/WeatherForecasts").then(r...
import {Component} from '@angular/core'; import {DEMO_SNIPPETS} from './demos'; @Component({ selector: 'ngbd-datepicker', template: ` <ngbd-content-wrapper component="Datepicker"> <ngbd-api-docs directive="NgbDatepicker"></ngbd-api-docs> <ngbd-api-docs directive="NgbInputDatepicker"></ngbd-api-docs...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import {ContextualKeyword} from "../parser/tokenizer/keywords"; import {TokenType as tt} from "../parser/tokenizer/types"; import type TokenProcessor from "../TokenProcessor"; /** * Special case code to scan for imported names in ESM TypeScript. We need to do this so we can * properly get globals so we can compute s...
import { Injectable } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import * as bcrypt from 'bcrypt'; import { PublicUser } from 'src/user/dto/user.public.dto'; import { User } from 'src/user/schema/user.schema'; import { UserService } from 'src/user/user.service'; import { JsonWebTokenError } from...
import { Injectable } from "@angular/core"; import { HttpClient, HttpHeaders } from "@angular/common/http"; import { Observable, throwError } from "rxjs"; import { MagicMirrorPackage } from "src/app/interfaces/interfaces"; import { retry, catchError } from "rxjs/operators"; import { URLS } from "src/app/utils/urls"; ...
import { LitElement, css, html } from 'lit'; import { customElement, property, state } from 'lit/decorators.js'; import { chooseServiceWorker, getServiceWorkers, unsetServiceWorker, } from '../services/service_worker'; import '../components/app-button'; //@ts-ignore import style from '../../../styles/list-defa...
import { LightsailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LightsailClient"; import { GetBucketMetricDataRequest, GetBucketMetricDataResult } from "../models/models_0"; import { deserializeAws_json1_1GetBucketMetricDataCommand, serializeAws_json1_1GetBucketMetricDataCommand, } from ".....
import React, { useState, memo } from 'react'; import { observe } from 'react-observing'; import { TreeManager, ITreeItem } from '../external'; import { TabGroup, TabButtonSimple } from '../tabs'; enum OutputTab { notifications = "Notifications", whatsnew = "Whatsnew", problems = "Problems", output = ...
import { List } from 'immutable' import { allPointsIncludingPoint, Point, PointFactory } from './Point.js' function pointToKey(point: Point): string { return `${point.x},${point.y}` } export class InfiniteImage { #points = new Map<string, { point: Point; on: boolean }>() currentDefault = false constructor(s...
// The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angul...
/** * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
import { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); })); it('should create the app', as...
import { NextFunction, Request, Response } from 'express'; import { ICounter } from '../services/i-counter'; import { ILogger } from '../services/i-logger'; import { BadRequestError } from '../errors/bad-request-error'; import { GetCounterController } from './get-counter-controller'; describe('GetCounterController',...