text
stringlengths
10
953k
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { GridDefaultComponent } from './grid-default/grid-default.component'; import { GridDataBindingComponent } from './grid-data-binding/grid-data-binding.component'; import { GridTopLevelOptionsComponent } from './grid...
// eslint-disable-next-line no-unused-vars import React, { useEffect, useState, ChangeEvent } from 'react'; // eslint-disable-next-line no-unused-vars import { withTranslation, WithTranslation } from 'react-i18next'; // eslint-disable-next-line no-unused-vars import { withSnackbar, WithSnackbarProps } from 'notistack';...
/* * Copyright (c) 2018 Rain Agency <contact@rain.agency> * Author: Rain Agency <contact@rain.agency> * * 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 wi...
import Document, { DocumentContext, Head, Html, Main, NextScript } from 'next/document' class MyDocument extends Document { static async getInitialProps(ctx: DocumentContext) { const originalRenderPage = ctx.renderPage ctx.renderPage = () => originalRenderPage({ // useful for wrapping the whol...
import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, Input, NgModule, } from '@angular/core'; import { ColorWrap, EditableInputModule, RaisedModule, SwatchModule, isValidHex, zDepth, } from 'ngx-color'; import { CompactColorComponent } from './compact-color.c...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { NewOpportunityComponent } from './newOpportunity.component'; describe('NewOpportunityComponent', () => { let component: NewOpportunityComponent; let fixture: ComponentFixture<NewOpportunityComponent>; beforeEach(async(() => { ...
type DigitValidator = (char:string) => boolean; const numericValidator = char => /[0-9]{1}/.test(char); // return ture or false to test if char is number const lowerCaseValidator = char => /[a-z]{1}/.test(char); const upperCaseValidator = char => /[A-Z]{1}/.test(char); const anyValidator = char => true; const num...
import { createElement, ComponentClass, Attributes } from "react"; import { render } from "react-dom"; import { capitalize } from "lodash"; import { t } from "../i18next_wrapper"; /** Dynamically change the meta title of the page. */ export function updatePageInfo(pageName: string) { if (pageName === "designer...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BitcoinSaving</source> <translation type="unfinished"/> </message> <message> <location ...
<TS language="ru_RU" 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</sou...
import {DirectiveError} from '../errors/directive-error' import type {ReactiveValue} from '../reactivity/reactive-value' export default function bind(reactive: ReactiveValue, eventType = 'change'): Ref { return node => { const listener = createListener(reactive) node.addEventListener(eventType, listener) ...
// 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 React from "react" import ContentLoader from "react-content-loader" const ImageLoader = () => ( <ContentLoader speed={2} width={400} height={400} viewBox="0 0 400 400" backgroundColor="#dedede" foregroundColor="#f5f5f5" > <rect x="19" y="23" rx="2" ry="2" width="284" height="284...
/** * removeSpace * @param {String} str * @returns {String} */ export declare const removeSpace: (str: string) => string; /** * hasEmojiInString * @param {String} str * @returns {Boolean} */ export declare const hasEmojiInString: (str: string) => boolean; /** * removeEmojis * @param {String} str * @returns {...
import { Box, color, Stack } from '@stacks/ui'; import { Header } from '@app/components/header'; import { useRouteHeader } from '@app/common/hooks/use-route-header'; import { openInNewTab } from '@app/common/utils/open-in-new-tab'; import { Text } from '@app/components/typography'; import { Link } from '@app/component...
/* * Copyright © 2019 Atomist, 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...
/* * 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, useCallback, useMemo } from 'react'; import { EuiButton...
import { App } from "./app"; import { Ripple } from "./ripple"; export class Interaction { constructor(public readonly app:App) { app.stage.interactive = true; app.stage.addListener('mousedown', this.onMouseDown.bind(this)); app.stage.addListener('mousemove', this.onMouseMove.bind(this)); app.stage....
import { EmpresaFactory } from './EmpresaFactory'; import Empresa from '../../domain/empresa/Empresa'; import { ApplicationException } from '../exceptions/ApplicationException'; const validParams = { nome: 'Teste', cnpj: '12345678910111', descricao: 'Teste', }; describe('EmpresaFactory', () => { test('should ...
import { Structure as _Structure_ } from "@aws-sdk/types"; export const MaximumFileEntriesExceededException: _Structure_ = { type: "structure", required: [], members: {}, exceptionType: "MaximumFileEntriesExceededException" };
/** * Copyright 2015 CANAL+ Group * * 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...
import React from 'react'; import PropTypes from 'prop-types'; import { useTheme } from '@emotion/react'; import Style from './style'; type SVGComponent = React.ComponentType<React.SVGProps<SVGSVGElement>>; export interface IconProps extends React.SVGProps<SVGSVGElement> { className?: string; /** * Displays sv...
"use strict"; import '../../css/bootstrap-flatly.css'; import './bootstrap'; import * as React from 'react'; import {Button, Table} from 'react-bootstrap'; import * as oxidate from '../lib/oxidate'; import {TimeSpan} from '../lib/timeSpan'; import * as utils from '../lib/utils'; interface ChallengesProps {board: any...
import { Routes } from "@angular/router"; import { CustomersComponent } from "src/app/pages/customers/customers.component"; import { ImagesComponent } from "src/app/pages/images/images.component"; import { OffersComponent } from "src/app/pages/offers/offers.component"; import { ServiceCategoryComponent } from "src/app/...
import { injectable, inject } from 'tsyringe'; import { classToClass } from 'class-transformer'; import AppError from '@shared/errors/AppError'; import ICacheProvider from '@shared/container/providers/CacheProvider/models/ICacheProvider'; import IModulesRepository from '@modules/modules/repositories/IModulesReposito...
import { Column, Entity, OneToMany, OneToOne } from 'typeorm'; import { isArray, isNil } from 'lodash'; import BaseModel from './base.model'; import LinkedAccount from './linkedAccount.model'; import Activity from './activity.model'; import UserProfile from './userProfile.model'; import UserStats from './userStats.mod...
import jwtDecode, { JwtPayload } from 'jwt-decode'; import { AuthState } from '../apis'; import { makeVar } from '../utils'; export const reactiveAuthState = makeVar<AuthState>({ isLoggedIn: false }); /** * Retrieve the access token from auth state. * * @returns */ export function getAccessToken() { const auth...
import * as React from 'react'; /** * Props for the WindowProvider component. */ export type WindowProviderProps = { /** * Provide the active window. */ window: Window | undefined; }; /** * Context for providing the window. */ export const WindowContext = React.createContext<WindowProviderProps>({ win...
import { getSquare, getFileLetter } from './index'; import { Board, Color, Piece, PieceType } from './types'; import { DEFAULT_ASCII_LOWERCASE_A, DEFAULT_NOTATION_EMPTY_SQUARE } from './constants'; export const getTerminalNotation = (piece: Piece) => { const { color, type } = piece; const notation = getTerminalNo...
import { FocusableOption, FocusOrigin } from '@angular/cdk/a11y'; import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostListener, Input, OnDestroy, OnInit, Output, Renderer2 } from '@angular/core'; import { BehaviorSubject, Subject } fr...
import { DocumentEditorContainer } from '../../src/document-editor-container/document-editor-container'; import { Toolbar } from '../../src/document-editor-container/tool-bar/tool-bar'; import { createElement } from '@syncfusion/ej2-base'; import { DocumentEditor} from '../../src/document-editor/document-editor'; impor...
import * as ccxt from "ccxt"; import { OrderStatus } from "./OrderStatus"; export type Order = { exchange: ccxt.ExchangeId; pair: string; externalOrderId: string; status: OrderStatus; msg: OrderStatus; price: number; amount: number; amountFilled: number; commissionAmount: number; ...
import { Kernel } from "oly"; import { INode, IRoute } from "../../src/router/interfaces"; import { ReactRouterMatcher } from "../../src/router/services/ReactRouterMatcher"; describe("ReactRouterMatcher", () => { const node = (name: string, path: string, op: Partial<INode> = {}): INode => ({ name, path, ...
import { logger } from ".."; import { RegisterTallyInput } from "../_decorators/RegisterTallyInput.decorator"; import { Source } from '../_models/Source'; import { TallyInput } from './_Source'; import net from "net"; @RegisterTallyInput("58b6af42", "VMix", "Uses Port 8099.", [{ fieldName: 'ip', fieldLabel: 'IP Addres...
import { trimStart } from "lodash"; export default trimStart;
import { FC, useState } from 'react'; import Collapse from '../index'; import Button from '@/packages/button'; const CollapseSecond: FC = () => { const [isOpen, setIsOpen] = useState(false); const toggle = () => { setIsOpen(!isOpen); }; return ( <div className="mb-12"> <Button color="dark" onCli...
import React from "react"; import clsx from "clsx"; import styles from "./description.module.css"; export function Description(): JSX.Element { return ( <section className={clsx(styles.container)}> <div className="container"> <div className={clsx(styles.row)}> <div className={clsx(styles...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="ja_JP"> <context> <name>ArrowToolOptionsBox</name> <message> <source>Pick:</source> <translation>選択オブジェクト:</translation> </message> <message> <source>Position</source> <translation>位置</transl...
import { TestBed, inject } from '@angular/core/testing'; import { VideoFbService } from './video-fb.service'; describe('VideoFbService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [VideoFbService] }); }); it('should ...', inject([VideoFbService], (service: VideoFbServi...
import { Route, Switch } from 'react-router-dom'; import { Container, Theme } from '@material-ui/core'; import React from 'react'; import Navbar from './shared/components/navbar'; import { Routes } from './models/Routes'; import TasksPage from './pages/tasks-page/TasksPage'; import { makeStyles } from '@material-ui/st...
// iife/cjs usage extends esm default export - so import it all import component, * as namedExports from '@/entry.esm'; // Attach named exports directly to component. IIFE/CJS will // only expose one global var, with named exports exposed as properties of // that global var (eg. plugin.namedExport) Object.entries(name...
export default interface Todo { id?: string; text: string; }
import { Component, ViewChild, AfterViewInit } from '@angular/core'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { Service } from '../shared/models/service'; import { ServicesFormCompon...
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable jsx-a11y/no-static-element-interactions */ /* eslint-disable jsx-a11y/click-events-have-key-events */ import React, { ReactElement, useState } from 'react'; import { format, startOfWeek, addDays, subDays, startOfMonth, endOfMonth...
// Type definitions for react-markdown > v3.3.0 // Project: https://github.com/rexxars/react-markdown // Definitions by: // - Ruslan Ibragimov <https://github.com/IRus> // - Kohei Asai <me@axross.io> // - ClassicDarkChocolate <https://github.com/ClassicDarkChocolate> // - Espen Hovlandsdal <https://espen.codes/> // - T...
import { Expose } from 'class-transformer'; export class UserDto { @Expose() id: number; @Expose() email: number; @Expose() avatarUrl: string; @Expose() name: string; }
import { TestBed, async, inject, ComponentFixture } from "@angular/core/testing"; import { DebugElement } from "@angular/core"; import { ReactiveFormsModule, FormGroup, FormControl } from "@angular/forms"; import { By } from "@angular/platform-browser"; import { NoopAnimationsModule } from "@angular/platform-browser/an...
import * as utilities from "./utilities"; require("../libs/angular"); angular.module("chloe.store", []) .provider("localStorageManager",utilities.LocalStorageManagerProvider) .service("store", ["dispatcher", "initialState", "localStorageManager", "reducers", utilities.Store]) .service("dispatcher", [util...
import through2 from '@vitx/bundles/model/through2' import gulpIf from '@vitx/bundles/model/gulp-if' import type { Config } from '@jest/types' import { runCLI } from 'jest' export interface IVitxConfig { /** * Whether to inject css when compiling a single `.vue` file */ injectVueCss?: boolean /** * The...
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, } from "../../../../../src" @Entity() export class Post { @PrimaryGeneratedColumn() id: number @Column() title: string @CreateDateColumn() createdAt: Date }
import { Injectable } from '@nestjs/common'; import { TypeOrmModuleOptions, TypeOrmOptionsFactory } from '@nestjs/typeorm'; @Injectable() export class DatabaseConnectionService implements TypeOrmOptionsFactory { createTypeOrmOptions(): TypeOrmModuleOptions { return { name: 'default', type: 'postgres'...
/* tslint:disable */ /* eslint-disable */ // @generated // This file was automatically generated and should not be edited. // ==================================================== // GraphQL mutation operation: UpdateBillingMethod // ==================================================== export interface UpdateBillingMe...
// Base import React from 'react'; // Addons import { withA11y } from '@storybook/addon-a11y'; // Components import { Table, TableCellContet } from '.'; import { Button } from '../Button'; // Config export default { title: 'Componentes|Tablas', component: Table, decorators: [withA11y] }; export const Normal =...
import { DataCardsType } from '../src/types/dataCard' import { set, change, damage } from '../src/data/cardMethods' const cards: DataCardsType = [ { // 0 // name: 'Brick Shortage', // desc: 'All players lose 8 bricks', type: 0, cost: 0, prob: 2, effect: (p, o) => { change(p, 'bricks...
import React, {useCallback, useEffect, useState} from "react"; import { selectorAuth, selectorChangePassword, tryResetChangePasswordState, trySendChangePassword } from "appRedux/reducers/api/account"; import {closeDialog} from "appRedux/reducers/application"; import {useAppDispatch} from "appRedux/stor...
export declare function replaceImagePath(src: string, suffix: string): string;
import Flashes from "./flashes"; import IdGenerator from "./id_generator"; import { TimeEntryApi } from "../core/api/time_entry_api"; import { ApiErrorResponse } from "../core/api/api"; import { TaskAssigner } from "./task_assigner"; import { TaskApiErrorCode } from "../core/api/types"; export class TimeEntryTaskAssig...
import fs from 'fs' import PageTitle from '@/components/PageTitle' import generateRss from '@/lib/generate-rss' import { MDXLayoutRenderer } from '@/components/MDXComponents' import { formatSlug, getAllFilesFrontMatter, getFileBySlug, getFiles } from '@/lib/mdx' import { GetStaticProps, InferGetStaticPropsType } from '...
import { create, tsx } from '@dojo/framework/core/vdom'; import { Link } from '@dojo/framework/routing/Link'; import { ArticleItem } from '../interfaces'; import { ArticleControls } from './ArticleControls'; import { ArticleAuthorControls } from './ArticleAuthorControls'; import { FavoriteArticlePayload, FollowUserPayl...
// axios配置 可自行根据项目进行更改,只需更改该文件即可,其他文件可以不动 // The axios configuration can be changed according to the project, just change the file, other files can be left unchanged import type { AxiosResponse } from 'axios'; import type { RequestOptions, Result } from '/#/axios'; import type { AxiosTransform, CreateAxiosOptions } f...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import keyMirror from '@mm-redux/utils/key_mirror'; export default keyMirror({ RECEIVED_BOT_ACCOUNTS: null, RECEIVED_BOT_ACCOUNT: null, });
import { Component, Input, Output, EventEmitter, ElementRef, OnChanges, ChangeDetectionStrategy } from '@angular/core'; import { select } from 'd3-selection'; import { invertColor } from '../utils/color-utils'; import { trimLabel } from '../common/trim-label.helper'; import { id } from '../utils/id'; @Component({ s...
import { triggeredByBot } from './triggeredByBot' import { checkSkipped } from './checkSkipped' export { triggeredByBot, checkSkipped }
import { ObjectType, Field } from 'type-graphql' import { FieldError } from './FieldError' import { Cat } from '../entities/Cat' @ObjectType() // can return export class CatResponse { @Field(() => [FieldError], { nullable: true }) errors?: FieldError[] @Field(() => Cat, { nullable: true }) cat?: Cat }
/* * spurtcommerce * version 2.2 * http://www.spurtcommerce.com * * Copyright (c) 2019 piccosoft ltd * Author piccosoft ltd <support@piccosoft.com> * Licensed under the MIT license. */ export class UserResponseModel { public userId: number; public userGroupId: number; public isActive: number; public cr...
import { Context } from "koa" import { ActionResult, HttpStatusError, Invocation, Middleware, RouteContext } from "./types" class MiddlewareInvocation implements Invocation { constructor(private middleware: Middleware, public context: Context, private next: Invocation) { } proceed(): Promise<ActionResult> { ...
export { LetterUu24 as default } from "../";
class MoveUpState implements State { moveState:PlayerMoveState; public constructor(moveState:PlayerMoveState){ this.moveState = moveState; } public onEnter() { this.moveState.moveAnimeIndex = 0; this.moveState.moveAnime.texture = engine.RES.getRes(moveupconfig[0].image); ...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable, from, of, iif, Subject, interval } from 'rxjs'; import { map, mergeMap, tap, toArray, mergeAll, switchMap, shareReplay } from 'rxjs/operators'; import { environment } from '../environments/environment'; i...
import type { TmplAstBoundAttribute, TmplAstTextAttribute, } from '@angular-eslint/bundled-angular-compiler'; import { createESLintRule, getTemplateParserServices, } from '../utils/create-eslint-rule'; import { getDomElements } from '../utils/get-dom-elements'; import { toPattern } from '../utils/to-pattern'; ...
import { Component, OnInit,Input } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { InvoiceService } from '../../../services/invoice.service'; import { LocalDataSource, ViewCell } from 'ng2-smart-table'; @Component({ selector: 'invoice-view', templateUrl: './invoice-edit....
import * as React from 'react'; import {SurveyQuestionElementBase} from "./reactquestionelement"; import {QuestionFileModel} from "../question_file"; import {ReactQuestionFactory} from "./reactquestionfactory"; export class SurveyQuestionFile extends SurveyQuestionElementBase { constructor(props: any) { s...
import { ElementDirection } from "enums"; import { Challenge, ChallengeConfig } from "types"; export interface SortChallengeConfig extends ChallengeConfig { itemsFontSize: number, itemCount: number, elementsDirection: ElementDirection } export interface SortChallenge extends Challenge { items: string[...
// tslint:disable:jsx-no-multiline-js import React from 'react'; import { JsonSchema, Paths, resolveData, UISchemaElement } from '@jsonforms/core'; import ObjectListItem from './ObjectListItem'; import { WithImageProvider, WithLabelProvider } from './TreeWithDetailRenderer'; interface ExpandRootArrayProps { rootDa...
import { Field, ObjectType } from "@nestjs/graphql"; import { RegisterOutput } from "src/register/dto/register.output"; @ObjectType() export class FriendDeleted { @Field() id:string; @Field() first_name: string; @Field() last_name: string; @Field() email: string; @Field() us...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { CustomersListComponent } from './customers-list/customers-list.component'; import { CustomersComponent } from './customers.component'; const routes: Routes = [ { path: '', component: CustomersComp...
export interface IEntityList { List: IEntityTable[] } export interface IEntityTable { Id: string, Name: string, Date: number, } export interface IEntity extends IEntityTable { Amount: number, Description: string, IsPrivate: boolean }
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../../types"; import * as utilities from "../../utilities"; /*...
/** * Wrap of sub component which need use as Button capacity (like Icon component). * This helps accessibility reader to tread as a interactive button to operation. */ import * as React from 'react'; import KeyCode from 'rc-util/lib/KeyCode'; interface TransButtonProps extends React.HTMLAttributes<HTMLButtonElemen...
import { Collection, FindOneOptions, Cursor, UpdateWriteOpResult, DeleteWriteOpResultObject, FilterQuery } from 'mongodb'; import { BaseRaw } from './BaseRaw'; import { ITeam, TEAM_TYPE } from '../../../../definition/ITeam'; type T = ITeam; export class TeamRaw extends BaseRaw<T> { constructor( public readonly col...
/** * @license * Copyright 2021 Dynatrace 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
export enum DayTime { MORNING = 'MORNING', EVENING = 'EVENING', } export type Entry = { id: string question: string answer: string dayTime: DayTime day: string userId: string isDraft?: boolean } export type EntriesMapByDayTime = { [DayTime.MORNING]: Entry[] [DayTime.EVENING]: Entry[] } export t...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import path from 'path'; import remark from 'remark'; import mdx from 'remark-mdx'; import vfile from 'to-vfile'; import plugin fr...
import { PopularMovieData } from './popular-movies/definition'; import { MovieDetails } from './movie-details/definition' import { SearchKeyword } from './keywords/definitions' export type PopularMoviesStore = PopularMovieData; export type MovieDetailsStore = MovieDetails; export type SearchKeywordStore = SearchKeywor...
type DescribableFunction = { description: string (x: number): boolean } function doSomething(fn: DescribableFunction) { console.log(fn.description + ' returned ' + fn(6)) }
import { ExceptionFilter, Catch, ArgumentsHost, HttpException, } from '@nestjs/common'; import { Request, Response } from 'express'; @Catch(HttpException) export class groupNotFoundExceptionFilter implements ExceptionFilter { catch(exception: HttpException, host: ArgumentsHost) { const ctx = host.switchT...
import React from 'react'; import { Grid } from "@material-ui/core"; import useBasicStyles from './basic-style'; import ApplicationTitle from '../../components/application-title/application-title'; import BasicPropsType from './basic-props.type'; const Basic = (props: BasicPropsType) => { const styles = useBasicSt...
import { AppPage } from './app.po'; describe('algorithm-app App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to app!'); }); });
export const keepOnlyNumbers = (string: string) => string.replace(/\D/g, ''); export const removeSpecialChars = (string: string) => string ? string.replace(/[^A-Za-z0-9]/g, '').replace(/\/s/g, '') : null; export const formatNumber = (amount: number | string, decimalCount = 2, decimal = ',', thousands = '.') => { de...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. 'use strict'; import * as assert from 'assert'; import { ChildProcess, StdioOptions } from 'child_process'; import { Deferred } from 'ts-deferred'; import * as component from '../common/component'; import { DataStore, MetricDataRecord, MetricT...
import Collection = require('nashorn/java/util/Collection'); import ObjectOutputStream = require('nashorn/java/io/ObjectOutputStream'); import ObjectInputStream = require('nashorn/java/io/ObjectInputStream'); import AbstractList = require('nashorn/java/util/AbstractList'); import List = require('nashorn/java/util/List'...
export class GetTreatmentOutcomesOverallQuery { county?: string[]; subCounty?: string[]; facility?: string[]; partner?: string[]; fromDate?: string; toDate?: string; year?: number; month?: number; project?: string[]; gender?: string[]; datimAgeGroup?: string[]; agency?: s...
import { isEmptyObject } from '../src'; describe('isEmptyObject:', () => { test('empty', async () => { const empty = isEmptyObject({}); expect(empty).toBe(true); }); test('null', async () => { const empty = isEmptyObject(null); expect(empty).toBe(false); }); test(...
/* * 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, { ReactElement } from 'react'; import { act } from 'react-dom/t...
import React from 'react' import styled from '@emotion/styled' import { colors, sizes } from '../../styles/variables' import ToolIntegration from '../../resources/tool-integration.svg' import FullDevEnvironments from '../../resources/full-dev-environments.svg' import ReadyToCode from '../ReadyToCode' const Styled = s...
import {Injectable} from "@angular/core"; import {SessionService} from "./session.service"; import {UserSetting} from "../user-setting/user-setting.model"; @Injectable() export class RoleService { private _isShipping: boolean = false; private _isMRRequesting: boolean = false; private _isMRView: boolean = false;...
/* "Barrel" of Http Interceptors */ import { HTTP_INTERCEPTORS } from '@angular/common/http'; import {AuthTokenInterceptor} from './auth-token.interceptor'; /** Http interceptor providers in outside-in order */ export const httpInterceptorProviders = [ { provide: HTTP_INTERCEPTORS, useClass: AuthTokenInterceptor, m...
import { Injectable } from '@angular/core'; import { Papa, ParseResult } from 'ngx-papaparse'; import { User } from '../../../../../shared/model/api/user'; export interface CsvParseWarnings { tooManyFields: boolean; } export interface CsvParseResult { warnings: CsvParseWarnings; users: User[]; } @Injectable({ ...
/** * @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/injection_token'; import { Injector } from '../../di/injector'; import { Que...
/* * 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...