text
stringlengths
10
953k
import { assert, assertStrictEquals, } from "https://deno.land/std@0.86.0/testing/asserts.ts"; import { serve, Server } from "https://deno.land/std@0.86.0/http/server.ts"; import { delay } from "https://deno.land/std@0.86.0/async/delay.ts"; import { MultipartReader } from "https://deno.land/std@0.86.0/mime/multipar...
// Type definitions for Kendo UI Professional v2019.1.220 // Project: http://www.telerik.com/kendo-ui // Definitions by: Telerik <https://github.com/telerik> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /* * Please, submit Pull Requests in the telerik/kendo-ui-core rep...
import NetRegexes from '../../../../../resources/netregexes'; import ZoneId from '../../../../../resources/zone_id'; import { OopsyData } from '../../../../../types/data'; import { OopsyTriggerSet } from '../../../../../types/oopsy'; import { playerDamageFields } from '../../../oopsy_common'; export type Data = OopsyD...
/** * @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 { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-comp-1041', templateUrl: './comp...
import { last } from "../fp"; export = last;
/** * @file Envelope 信封 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {ISvgIconProps, IconWrapper} from '../runtime'; export default IconWrapper('envelope', (props: ISvgIconProps) => ( '<?xml version="1.0" encoding="UTF-8"?>' + '<svg width...
// import { async, ComponentFixture, TestBed } from '@angular/core/testing'; // import { EditableTextComponent } from './editable-text.component'; // import { AmexioButtonComponent } from '../../../forms/buttons/button.component'; // import { AmexioLayoutItemComponent } from '../../../layout/basiclayout/layoutitem.c...
import { Injectable, ViewContainerRef } from '@angular/core'; import { Response, ResponseOptions} from '@angular/http'; import { MdSnackBar } from '@angular/material'; import { TdDialogService } from '@covalent/core'; import { Observable } from 'rxjs/Observable'; @Injectable() export class ErrorDialogService { con...
import isArray from 'lodash-es/isArray' import isString from 'lodash-es/isString' import isNumber from 'lodash-es/isNumber' import has from 'lodash-es/has' interface IParsedConfig { error: string[] variables: IObject[] } const VALID_TYPES: string[] = [ 'text', 'password', 'color', 'switch', 'slider', ...
import { browser, element, by } from 'protractor'; export class FE-practiceTemplatePage { navigateTo() { return browser.get('/'); } getParagraphText() { return element(by.css('app-root h1')).getText(); } }
import {createStyles, makeStyles} from '@material-ui/core/styles'; import clsx from 'clsx'; import {FormApi, SubmissionErrors, ValidationErrors} from 'final-form'; import React, {FC, ReactNode, useEffect} from 'react'; import {Form as FinalForm} from 'react-final-form'; import {CommonComponentProps} from '../common-com...
import * as React from 'react'; import { Link, useStaticQuery, graphql } from 'gatsby'; import SocialProfile from '../../components/social-profile/social-profile'; import FooterWrapper, { FooterCol, Logo, Infos, FooterTitle, FooterContent, Menu, } from './footer.style'; import LogoImage from '../../images/l...
import { createLogger } from 'redux-logger' export const logger = createLogger({ collapsed: true, logErrors: true, diff: true, })
export default class HttpError extends Error { statusCode: number; constructor(message: string, statusCode: number) { super(message); this.statusCode = statusCode; } }
<TS language="ro_RO" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Click-dreapta pentru a edita adresa sau eticheta</translation> </message> <message> <source>Create a new address</source> ...
<TS language="ca_ES" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Feu clic dret per a editar l'adreça o l'etiquetaccn</translation> </message> <message> <source>Create a new address</source> ...
/* Copyright 2021 The Matrix.org Foundation C.I.C. 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 in ...
import { browser, by, element } from 'protractor'; export class AngularSamplePage { navigateTo() { return browser.get('/'); } getParagraphText() { return element(by.css('app-root h1')).getText(); } }
import nb_NO from '../../date-picker/locale/nb_NO'; export default nb_NO;
class RHDPProjectFilterBox extends HTMLElement { private _term = ''; private _filter = ''; get filter(): string { return this._filter; } set filter(value: string) { this._filter = decodeURI(value); let filterAttrib = this.querySelector('select[name="filter-products"]') as ...
// Type definitions for linq.js 2.2 // Project: http://linqjs.codeplex.com/ // Definitions by: Marcin Najder <https://github.com/marcinnajder>, Sebastiaan Dammann <https://github.com/Sebazzz> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // todo: jQuery plugin, RxJS Binding declare namespace linq...
import { Command } from '../../deps.ts' import { ManifestFile } from '../helpers/manifest_helper.ts' import { execDenoRun } from '../utils/cmds.ts' import { wrap } from '../lifecycles/hooks.ts' export const action = async (command: Command, args: string[]) => { const specifiedFile = args && args[0] const manifest = ...
import { Inject, Injectable, InjectionToken } from '@angular/core'; import { DocumentRef, WindowRef } from '../../utils/browser-globals'; import { LoggerService } from '../logger/logger.service'; export interface IMapAPILoaderConfig { apiKey?: string; apiVersion?: string; urlPath?: string; debug?: boolean; } ...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { MatSnackBar } from '@angular/material/snack-bar'; import { select, Store } from '@ngrx/store'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { ROUTE_ANIMATIONS_ELEMENTS } from '@app/core'; import { ActionTodo...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ i...
const __parseInt__ = parseInt export { __parseInt__ as parseInt } export default __parseInt__
export class Customer { private _id: string; private _fullname: string; constructor(id: string, fullname: string) { this._id = id; this._fullname = fullname; } get id(): string { return this._id; } get fullname(): string { return this._fullname; } }
import * as React from "react"; import { BoxProps } from "../Box"; import { FlexProps } from "../Flex"; import { PseudoBoxProps } from "../PseudoBox"; export interface ITabs { /** * The alignment of the tabs */ align?: "start" | "center" | "end"; /** * The style of the tabs to use */ variant?: ...
import {log} from '../../../../utilities/log'; export function request( requestUrl: string, requestHeader: Headers, data?: any, contentType?: string ): void { const url = new URL(requestUrl); if (url.search === '?shopify' && contentType === 'json') { data.events.forEach((event: any) => { event.pa...
import { CompilerOptionName } from "../data/_types"; /** Options which should never show on the references, basically anything that's for the CLI not the TSConfig */ export const denyList: CompilerOptionName[] = [ "help", "init", "all", "watch", "version", "build", "project", "locale", ]; /** Things w...
import UserAvatar from './UserAvatar.vue' describe('<UserAvatar />', { viewportWidth: 48, viewportHeight: 48 }, () => { it('renders when an email address is passed', () => { cy.mount(() => <UserAvatar email="test@test.test" class="h-48px w-48px"/>) validateUserAvatar() cy.percySnapshot() }) it('rend...
import {Component, OnInit } from '@angular/core'; import {UserService} from "../user.service"; import {User} from "../Models/user"; import {FormControl, FormGroupDirective, NgForm, Validators} from '@angular/forms'; import {ErrorStateMatcher} from '@angular/material/core'; import {OtpService} from "../otp.service"; im...
import axios, { AxiosResponse } from 'axios' import { MenuResponse, CreateMenuPayload } from './createMenu.type' export const MENU_URL = `/api/v1/menus` export const CREATE_MENU = async ( payload: CreateMenuPayload, ): Promise<AxiosResponse<MenuResponse>> => await axios.post(MENU_URL, payload)
import { observable, action, computed } from 'mobx' import { Dimensions } from 'react-native' import calculateFare from '../screens/Home/components/util/calculate.fare' const { width, height } = Dimensions.get('window') const ASPECT_RATIO = width / height const LATITUDE_DELTA = 0.01 const LONGITUDE_DELTA = ASPECT_RA...
import * as React from 'react'; import * as Redux from 'redux'; import { connect } from 'react-redux'; import { withRouter, RouteComponentProps } from 'react-router-dom'; import { withStyles, AppBar, Toolbar, Typography, IconButton, MenuItem, Menu, Avatar, Divider, Fade, CircularProgress, Theme,...
import { PrefixedHexString } from 'ethereumjs-tx'; import { Address } from './Aliases'; import { RelayRequest } from '../EIP712/RelayRequest'; export interface RelayMetadata { approvalData: PrefixedHexString; relayHubAddress: Address; relayMaxNonce: number; signature: PrefixedHexString; } export interfa...
import * as React from 'react'; import createSvgIcon from '../utils/createSvgIcon'; const BidiLtrIcon = createSvgIcon({ svg: ({ classes }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" className={classes.svg}> <path d="M128 486l666 666-666 666V486zm128 1024l358-358-358-358v716zM1792 ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
import delay from './delay' import PinCode, { PinStatus } from './PinCode' import { PinResultStatus } from './utils' import * as React from 'react' import { StyleProp, StyleSheet, TextStyle, View, ViewStyle, AsyncStorage } from 'react-native' import * as Keychain from 'react-native-keychain' import TouchID...
import { readFileSync } from 'fs' import JSON5 from 'next/dist/compiled/json5' import { createConfigItem, loadOptions } from 'next/dist/compiled/babel/core' import loadConfig from 'next/dist/compiled/babel/core-lib-config' import { NextBabelLoaderOptions, NextJsLoaderContext } from './types' import { consumeIterator ...
// Copyright 2018 Verily Life Sciences Inc. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. import {DateTime, Interval} from 'luxon'; import {Encounter} from './encounter'; const REQUEST_ID = '1234'; describe('Encounter', () => { it('should throw error if...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { RouteReuseStrategy } from '@angular/router'; import { IonicModule, IonicRouteStrategy } from '@ionic/angular'; import { SplashScreen } from '@ionic-native/splash-screen/ngx'; import { StatusBar } from '@ionic-...
import { Injectable } from '@angular/core'; import {HttpClient, HttpHeaders} from "@angular/common/http"; import {Observable} from "rxjs"; import {User} from "./Models/user"; const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) }; @Injectable({ providedIn: 'root' }) export class Ot...
import * as api from "../../index"; describe("index", () => { it("should not have changed API", () => { expect(api).toMatchSnapshot(); }); });
import { isMetricAggregationWithField, MetricAggregation, } from './components/QueryEditor/MetricAggregationsEditor/aggregations'; import { metricAggregationConfig } from './components/QueryEditor/MetricAggregationsEditor/utils'; export const describeMetric = (metric: MetricAggregation) => { if (!isMetricAggrega...
import React from 'react'; import { useHistory } from 'react-router-dom'; import { Toast } from 'primereact/toast'; import { MenuItem } from 'primereact/components/menuitem/MenuItem'; import { BreadCrumb } from 'primereact/breadcrumb'; import { TApiCallState } from "../../utils/ApiCallState"; import { EUIAdminPortalR...
import hue2rgb from '../src/hue2rgb'; describe('hue2rgb', () => { it('should return median', () => { expect(hue2rgb(0.1, 0.4, 0.1)).toBe(0.28); expect(hue2rgb(0.2, 0.4, 0.1)).toBe(0.32); expect(hue2rgb(0.8, 1, 0.9)).toBe(0.8); }); it('should fail with invalid parameters', () => { // @ts-ignore ...
import { Todo } from './todo'; export var TODOS: Todo[] =[ { id: 1, title: 'hacer compras'}, {id: 2, title: 'Reparar cocina'}, {id: 3, title: 'Llamar al chef'}, {id: 4, title: 'Preparar la comida'}, {id: 5, title: 'Ir al cine'}, {id: 6, title: 'Pasear al perro'}, {id: 7, title: 'Agendar cita'}, {id: 8,...
import { Module, HttpModule } from '@nestjs/common'; import { AppController } from './app.controller'; import { RoutesService } from './routes-service'; import { ConcreteFactoryResolver } from './concrete-factory-resolver'; import { AdventureSearchFactory } from './concrete-factories/adventure-search-factory'; import ...
import { EventStreamSeed } from "./abstractions"; import { Scope } from "./scope"; import { UnaryTransformOp, UnaryTransformOpScoped } from "./transform"; export declare type EventStreamDelay<V> = (stream: EventStreamSeed<V>) => EventStreamSeed<V>; export declare function transformChanges<A>(descSuffix: string, transfo...
export const KEYBOARD_DID_OPEN = 'ionKeyboardDidShow'; export const KEYBOARD_DID_CLOSE = 'ionKeyboardDidHide'; const KEYBOARD_THRESHOLD = 150; let previousVisualViewport: any = {}; let currentVisualViewport: any = {}; let keyboardOpen = false; /** * This is only used for tests */ export const resetKeyboardAssist =...
import AniLink from "gatsby-plugin-transition-link/AniLink"; import * as React from "react"; import Card from "./Card"; // @ts-ignore import * as styles from "./PostCard.module.scss"; import Tags from "./Tags"; interface Props { slug: string; title: string; date: string; tags: Array<string>; onTagClick?: (ta...
import {WorkInProgressComponent} from "./work-in-progress.component"; export const FNB_WIDGETS: any[] = [ WorkInProgressComponent ];
import { Psd, ReadOptions, WriteOptions } from './psd'; import { PsdWriter, writePsd as writePsdInternal, getWriterBuffer, createWriter, getWriterBufferNoCopy } from './psdWriter'; import { PsdReader, readPsd as readPsdInternal, createReader } from './psdReader'; export * from './abr'; export * from './csh'; export { i...
import React from 'react'; import Box from '@navikt/sif-common-core/lib/components/box/Box'; import InformationPoster from '@navikt/sif-common-core/lib/components/information-poster/InformationPoster'; import { AlertStripeInfo } from 'nav-frontend-alertstriper'; import { Ingress, Undertittel } from 'nav-frontend-typogr...
// ag-grid-enterprise v21.2.0 import { CartesianChart } from "../cartesianChart"; import { Series, SeriesNodeDatum } from "./series"; import { LegendDatum } from "../legend"; import { Shape } from "../../scene/shape/shape"; interface GroupSelectionDatum extends SeriesNodeDatum { x: number; y: number; radius...
import { VantComponent } from '../common/component'; import { Weapp } from 'definitions/weapp'; import { getRect, requestAnimationFrame } from '../common/utils'; VantComponent({ props: { text: { type: String, value: '', observer() { wx.nextTick(() => { this.init(); });...
import * as sd from "type-mapping"; import * as tape from "tape"; import * as o from "../../../../../../dist/src/main"; tape(__filename, (t) => { const table = o.table( "table", { x : sd.finiteNumber(), y : sd.finiteNumber(), z : sd.finiteNumber(), a ...
export default function (des: string, a: any, isExits: boolean, errors: { msg?: string, child?: { actual: any, expect: any }, actual?: any, expect?: any, status: number }[]) { try { if (isExits) { if (a === null || a === undefined) throw new Error('Null or undefined!') if (typeof a === 'string' && (a ...
import { Component, OnInit } from '@angular/core'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { Obrafase } from '../model/obrafase'; import { Router } from '@angular/router'; import { FaseObraService } from '../faseobra.service'; import { Usuario } from 'src/app/usuario/model/usuario'; ...
import sharedStyles from '@api-viewer/common/lib/shared-styles.js'; import { ApiDocsBase } from './base.js'; import docsStyles from './styles.js'; export class ApiDocs extends ApiDocsBase { static get styles() { return [sharedStyles, docsStyles]; } } customElements.define('api-docs', ApiDocs); declare global...
import { Column, Entity, Index, JoinColumn, ManyToOne, PrimaryGeneratedColumn, } from "typeorm"; import { Users } from "./Users"; import { Workspaces } from "./Workspaces"; import { ChannelChats } from "./ChannelChats"; @Index("mentions_UN", ["chatId", "workspaceId", "senderId"], { unique: true }) @Index("...
import {Injectable} from '@angular/core'; import {ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot} from '@angular/router'; import {select, Store} from '@ngrx/store'; import {AppState} from '@StoreConfig'; import {Observable} from 'rxjs'; import {selectTodosLoaded$} from '@Selectors/todo-list.selector'; import ...
import ArgumentType from "../../argument/argument"; import Message from "@dikac/t-message/message"; import CallbackParameters from "./callback-parameters"; export type CallbackParameterArgument<Arguments extends unknown[], ErrorType extends Error> = ArgumentType<Arguments> & Message<(a : ArgumentType<Argument...
/* GENERATED FILE */ import React, { forwardRef } from "react"; import { IconWeight, IconProps, PaintFunction, renderPathForWeight, } from "../lib"; import IconBase, { RenderFunction } from "../lib/IconBase"; const pathsByWeight = new Map<IconWeight, PaintFunction>(); pathsByWeight.set("bold", (color: string...
import { AsyncLocalStorage } from 'async_hooks'; const context = new AsyncLocalStorage<any>(); export default context;
import { UserEntity } from '../user.entity'; export type UserType = Omit<UserEntity, 'hashPassword'>;
module Bit.Implementations { export class SignalRMessageReceiver implements Contracts.IMessageReceiver { private _isInited = false; private _isConnected = false; private _stayConnected = false; @Log() public async stop(): Promise<void> { this._stayConnected = ...
import { CommonOptions } from '../common-options'; export interface ListTopicOptions extends CommonOptions { /** * 用于过滤主题列表 */ searchWord?: string; /** * 分页时本页获取主题列表的起始位置 */ offset?: number; /** * 分页时本页获取主题的个数 */ limit?: number; }
import { HttpClient, HttpErrorResponse, HttpHeaders } from "@angular/common/http"; import { Injectable } from "@angular/core"; import { Observable, throwError } from "rxjs"; import { catchError } from "rxjs/operators"; import { environment } from "src/environments/environment"; import { Employee } from "./employe...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {sendEphemeralPost} from '@actions/views/post'; import {Client4} from '@client/rest'; import CompassIcon from '@components/compass_icon'; import {handleGotoLocation} from '@mm-redux/actions/integratio...
import { randomBytes } from "crypto"; import { add } from "date-fns"; import { setCookies } from "cookies-next"; import { generateKeyPair, SignJWT, exportSPKI } from "jose"; import { ReasonPhrases, StatusCodes } from "http-status-codes"; import { comparePassword } from "db/utils"; import { NotFoundError, routeWrapper...
import { Component, OnInit } from '@angular/core'; @Component({ moduleId: module.id, selector: 'cat-details', templateUrl: './cat-details.component.html', styleUrls: ['./cat-details.component.css'] }) export class CatDetailsComponent implements OnInit { constructor() { } ngOnInit() { } }
interface MyBatisMapperSql { /** * 获取 SqlSource * * @param sqlId SQL ID */ getSqlSource(sqlId: JString): SqlSource | null; /** * 获取 BoundSql * * @param sqlId SQL ID * @param parameter SQL参数 */ getBoundSql(sqlId: JString, parameter: object): BoundSql | nu...
/* * 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 { SavedObjectsType } from 'src/core/server'; export const apmTelemetry...
import * as vsc from 'vscode' import { CompletionItemBuilder } from '../completionItemBuilder' import { BaseExpressionTemplate, BaseTemplate } from './baseTemplates' import { getIndentCharacters } from '../utils' abstract class BaseForTemplate extends BaseTemplate { abstract buildCompletionItem (code: string, positi...
import React from 'react' import { Redirect, Route } from 'react-router-dom' import { getToken } from '../../lib/token' import PATH_CODES from '../pathnames' import StandardLayoutRoute from '../StandardLayoutRoute/StandardLayoutRoute' type Props = { id: string | undefined history: any | undefined location: any ...
import { firestore } from "../firebase"; export class FirebaseServiceProvider { async add({collection, data, onSuccess, onError}: { data: any, collection: string; onSuccess?: (pricing: any) => void, onError?: (error) => void }) { let recordData: any; await firestore.collection(collection).a...
import * as api from './communication/api'; import * as stmp from './communication/smtp'; // start SMTP Server at Port 25 api.start(3000); stmp.start(25);
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SharedModule } from '@shared/shared.module'; import { OrdersRoutingModule } from './orders-routing.module'; import { OrdersComponent } from './orders.component'; @NgModule({ declarations: [OrdersComponent], imports: ...
import React from 'react'; import PropTypes from 'prop-types'; import {Renderer, RendererProps} from '../factory'; import {observer} from 'mobx-react'; import {ServiceStore, IServiceStore} from '../store/service'; import { Api, SchemaNode, Action, Location, ApiObject, FunctionPropertyNames } from '../types'...
import { Dispatch } from "redux"; import { ipcRenderer } from 'electron'; import { GO_BACK_EVENT, GO_FORWARD_EVENT } from "../constants/Events"; export class HistoryAction { public static back() { return (dispatch: Dispatch) => { ipcRenderer.send(GO_BACK_EVENT); } } public stat...
/** * trzsz: https://github.com/trzsz/trzsz.js * Copyright(c) 2022 Lonny Wong <lonnywong@qq.com> * @license MIT */ export {}; const fs = require("fs"); const { spawnSync } = require("child_process"); console.log( "The Node.js version is under development.\n" + "Please use the Python version instead.\n" + ...
import select from 'select-dom'; import checkIcon from 'octicon/check.svg'; import elementReady from 'element-ready'; import features from '../libs/features'; import SearchQuery from '../libs/search-query'; function addMergeLink(): void { if (!features.isPRList()) { return; } // The links in `.table-list-header-...
import type { BigNumber } from "bignumber.js"; import type { CryptoCurrency, TokenCurrency, Unit } from "./currencies"; import type { OperationRaw, Operation } from "./operation"; import type { DerivationMode } from "../derivation"; import type { BitcoinResources, BitcoinResourcesRaw, } from "../families/bitcoin/ty...
export const DEFAULT_PATH = Object.freeze('/');
import 'core-js/es7/reflect'; import { enableProdMode, NgZone } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { Router } from '@angular/router'; import { ɵAnimationEngine as AnimationEngine } from '@angular/animations/browser'; import { AppModule } from './ap...
import { UseListSettings } from "@saleor/hooks/useListSettings"; import { useContext } from "react"; import { GiftCardListColummns } from "../../../types"; import { GiftCardListDataProps, GiftCardsListContext } from "../GiftCardListProvider"; export type UseGiftCardListProps = GiftCardListDataProps & UseListSet...
import { Action, Types } from '../../actions'; import { LoginComponentState } from '../../state'; export default function( state: LoginComponentState = { error: null, inProgress: false, message: null, userEmail: '', userPassword: '', userPasswordRepeat: '', i...
import React from 'react'; import { runInAction } from 'mobx'; import Big from 'big.js'; import { renderWithProviders } from 'util/tests'; import NodeStatus from 'components/NodeStatus'; describe('NodeStatus component', () => { const render = () => { return renderWithProviders(<NodeStatus />); }; it('should...
/** * Encoding method * @param value which is always number * @param salt (seed) which can be anything * @constructor */ export function SKoblitzEncode(value: number, salt: string): string { const pos = value % salt.length; const saltedValue = salt.slice(0, pos) + value + salt.slice(pos); // console.lo...
import { CardScript } from "../../types/CardScript" import { cardScripts } from "../../CardScripts" import { GameState } from "../../../shared/gamestate/GameState" import { allCreatures, destroyCards, getLeastPowerful } from "../../ScriptUtils" const cardScript: CardScript = { // Play: Destroy the least powerful e...
'use strict'; import { Disposable, Event, EventEmitter, TextDocument, TextEditor } from 'vscode'; import { ContextKeys, getEditorIfActive, isActiveDocument, setContext } from '../constants'; import { Container } from '../container'; import { GitUri } from '../git/gitUri'; import { GitRevision } from '../git/models'; im...
import Joi from 'joi'; import { ControllerGeneratorOptionsWithClientAndSupplier } from '../../comms/controller'; import { schema as commandTypeSchema, CommandType } from '../../models/command-type'; interface Request { params: { hashId: string; }; } interface Response { commandType: CommandType; } const c...
import {advanceTo, clear} from 'jest-date-mock' import {renderHook, act} from '@testing-library/react-hooks' import {isEqual, format, isSameDay} from 'date-fns' import { getCurrentYearMonthAndDate, getDateMonthAndYear, getInitialMonths, isDateSelected, isFirstOrLastSelectedDate, isDateBlocked, getInputVal...
import { CollectionCache, CollectionKey } from "../../../common"; import { DiplomacyKeys } from "./DiplomacyKeys"; import { Cultures } from "./Cultures"; import { GovernmentTypes } from "./GovernmentTypes"; import { DiplomacyStrings } from "./DiplomacyStrings"; export namespace DiplomacyNegotiationStringOptions { ex...
import AzureDevOpsConfiguration from './azure-devops-configuration'; import EmailConfiguration from './email-configuration'; export default interface SquadConfiguration { id: string; email: EmailConfiguration; azureDevOps: AzureDevOpsConfiguration; isActive: boolean; }
import PiletInjector from './pilet'; import { EventEmitter } from 'events'; describe('Piral-CLI piral injector', () => { it('PiletInjector is active when configured', () => { const config = { pilets: [], port: 1234, api: '', app: '', active: true, }; const core = new EventEm...
import {Component} from "./component" /** * Represents a link between two {Component}s */ export class Link { readonly from : Component readonly to : Component constructor(from: Component, to: Component) { this.from = from this.to = to } }
import { WithId } from 'mongodb'; import { PcConfigurationDto } from '@frontendDto/configuration.dto'; import { User } from '@frontendDto/user.dto'; import { ShippingMethod } from '@frontendDto/shipping-method.dto'; export interface OrderDto { user: User; shippingMethod: ShippingMethod; orderId: string; ...