text
stringlengths
10
953k
import { initialize } from '../'; const expect = require('chai').expect; const express = require('express'); const path = require('path'); const routesDir = path.resolve( __dirname, './sample-projects/basic-usage/api-routes' ); const validDocument = { swagger: '2.0', info: { title: 'some api', version: ...
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerExecutionContext, HttpHandlerOptions...
import { Entity, EntityResolver } from '../../model'; import { HasManyDefinition } from '../relation.types'; /** * Decorator for hasMany * Calls property.array decorator underneath the hood and infers foreign key * name from target model name unless explicitly specified * @param targetResolver Target model for hasM...
import { User } from "../entities/User"; import { UsersRepository } from "../repositories/UserRepository"; export interface UserService { GetUser(): Promise<User[]>; CreateUser(data: User): Promise<String>; UpdateUser(data: any): void; DeleteUser(data: User): User[]; SelectUser(data: User): User; } export c...
import { ICreateGameDTO } from '../../DTOs/ICreateGameDTO'; import { Game } from '../entities/Game'; interface IGamesRepository { create({ player_id, level, elapsedTime, locationOrigin, locationMarked, distance, score, }: ICreateGameDTO): Promise<Game>; findGameById(id: string): Promise<Game>; list()...
import "../styles/globals.css"; import "react-notion-x/src/styles.css"; import "prismjs/themes/prism-tomorrow.css"; import "rc-dropdown/assets/index.css"; import "katex/dist/katex.min.css"; import "@algolia/autocomplete-theme-classic"; import { createTheme, NextUIProvider } from "@nextui-org/react"; const theme = crea...
import { LoanPayment, LoanDefault, LoanRepaid, } from '../types/LoanDapp/templates/Loan/Loan'; import { Loan, } from '../types/schema'; export function receivePayment(event: LoanPayment): void { let loanAddress = event.address; let loanId = loanAddress.toHex(); let loan = Loan.load(loanId); loan.lastIn...
import { forwardRef, Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import {CART_TABLE_NAME} from '../common/contents'; import { CartSchema } from './schema/cart.schema'; // import { wishListService } from '../wishList/wishlist.service'; // import { BookService } from '../Books/books...
declare const enum DigestedObjectType { publicKey = 0, publicKeyCert = 1, otherObjectTypes = 2 } export default DigestedObjectType; //# sourceMappingURL=DigestedObjectType.d.ts.map
/// <reference path="../_rootlayout.ts" /> module RequestType.Details { export var vm: ViewModel; export class ViewModel extends Global.PageViewModel { RequestTypeID: any; RequestType: Dns.ViewModels.RequestTypeViewModel; SelectedModels: KnockoutObservableArray<any>; RequestTy...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { HardDiskManagementComponent } from './hard-disk-management.component'; describe('HardDiskManagementComponent', () => { let component: HardDiskManagementComponent; let fixture: ComponentFixture<HardDiskManagementComponent>; befor...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Module } from '@nestjs/common'; import { ConfigType } from '@nestjs/config'; import { JwtModule, JwtSecretRequestType } from '@nestjs/jwt'; import { PassportModule } from '@nestjs/passport'; import { AuthController } from './auth.controller'; import { AuthService } from './auth.service'; import { JwtStrategy...
import {reducer, actions} from './actions' import { sagas, saga_actions } from './sagas' import * as selectors from "./selectors" import AnnotationsSVG from './components/AnnotationsSVG' import AnnotationPanel from './components/AnnotationPanel' export {AnnotationsSVG, AnnotationPanel, actions, saga_actions, reducer, ...
/* * Tencent is pleased to support the open source community by making * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License. * * License ...
/// <reference path="fourslash.ts" /> // @filename: pyrightconfig.json //// { //// "extraPaths": ["subproj"] //// } // @filename: subproj/foo/bar1.py //// [|/*def1*/x|] = 1 // @filename: foo/bar2.py //// [|/*def2*/x|] = 1 // @filename: test.py //// from foo import [|/*marker1*/bar1|] //// from foo import [|/*mark...
import { Injectable } from '@angular/core'; import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router'; import { Logger } from './../services/logger.service'; import { CredentialsService } from './../services/credentials.service'; const log = new Logger('AuthenticationGuard'); ...
import harness from '@dojo/framework/testing/harness'; import { tsx } from '@dojo/framework/core/vdom'; import { add } from '@dojo/framework/core/has'; import Playground from '../Playground'; import * as css from '../Playground.m.css'; describe('Playground', () => { it('renders', () => { const src = 'https://co...
import { TilgjengeligStønadskonto, Periode, StønadskontoType, Stønadskontouttak } from '../../types/uttaksplan/periodetyper'; import { beregnGjenståendeUttaksdager } from '../uttaksPlanStatus'; import { Søknadsinfo } from '../../selectors/types'; export interface Uttaksstatus { gjelderDagerBrukt: b...
import * as ts from "typescript"; import * as Lint from "tslint"; import {changes} from "../changes" import {MemberRuleWalker} from "./memberRuleWalker"; import {getFullyQualifiedName} from "./util"; export class Rule extends Lint.Rules.TypedRule { public applyWithProgram(sourceFile: ts.SourceFile, program: ts.Progr...
/* * Copyright 2020 NEM (https://nem.io) * Copyright 2021-present [Using Blockchain Ltd](https://using-blockchain.org), All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License...
/** * DateRangePicker module spec document */ import { select, selectAll, isNullOrUndefined as isNOU } from '@syncfusion/ej2-base'; import { InPlaceEditor, ValidateEventArgs, BeginEditEventArgs } from '../../src/inplace-editor/base/index'; import { DateRangePicker } from '../../src/inplace-editor/modules/index'; impo...
import {Button, Input, notification} from "antd"; import {ethers} from "ethers"; import React, {FC, useEffect, useState} from "react"; import {ZOMBIE_FEEDING_ABI} from "../../contracts/ABIs/ZombieFeeding_ABI"; import {master_abi} from "../../contracts/ABIs/MasterChef"; type PropsType = {} const Zombies: FC<PropsType>...
<TS language="la" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Crea novam inscriptionem</translation> </message> <message> <source>Copy the currently selected address to the system clipboard</source> <t...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {FC} from 'react' import 'emoji-mart/css/emoji-mart.css' import {Picker, BaseEmoji} from 'emoji-mart' import './emojiPicker.scss' type Props = { onSelect: (emoji: string) => void } const...
import * as Constants from "../../shared/constants"; import { ContentEntry } from "../../shared/map"; import EventHandler from "../../utility/eventHandler"; type PointEvent = (point: Point) => void; export class PointEvents { public readonly onClick: EventHandler<PointEvent>; public readonly onMouseOver: Even...
import * as path from 'path'; import * as fs from 'fs-extra'; import { autoUpdater, UpdateInfo } from 'electron-updater'; import { app, BrowserWindow } from 'electron'; import { windowMarkShouldQuit } from '../node/window_state'; import { getPrintableError, LoggerType, MessagesType, showCannotUpdateDialog, s...
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"; @Entity({ name: "guild_configuration" }) export class GuildConfiguration { @PrimaryGeneratedColumn() id: number; @Column({ unique: true }) guild_id: string; @Column({ default: "en-US" }) locale: string; @Column({ default: "-" }) prefix: strin...
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; // static sites import { NestExpressApplication } from '@nestjs/platform-express'; import { join } from 'path'; async function bootstrap() { const app = await NestFactory.create<NestExpressApplication>(AppModule); // static fil...
import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { CustomerService } from '../../customer/customer.service'; import * as bcrypt from 'bcrypt'; import { JwtService } from '@nestjs/jwt'; import { ConfigService } from '@nestjs/config'; import { CreateCustomerDto } from 'src/api/dtos/create-cu...
<TS language="es_ES" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Haz clic derecho para editar la dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> ...
import { ApplyOptions } from '@sapphire/decorators'; import { Event, EventOptions } from '@sapphire/framework'; import { GatewayDispatchEvents, GatewayGuildCreateDispatch } from 'discord-api-types/v6'; @ApplyOptions<EventOptions>({ event: GatewayDispatchEvents.GuildCreate, emitter: 'ws' }) export class UserEvent exten...
<TS language="kk_KZ" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Жаңа адрес енгізу</translation> </message> <message> <source>&amp;New</source> <translation>Жаңа</translation> </message> <messa...
import { compareFilteredItems } from 'app/compare/actions'; import Dropdown, { Option } from 'app/dim-ui/Dropdown'; import { t } from 'app/i18next-t'; import { setItemNote } from 'app/inventory/actions'; import { bulkLockItems, bulkTagItems } from 'app/inventory/bulk-actions'; import { storesSelector } from 'app/invent...
import Joi from 'joi'; import Config from '../../config/config'; import { policiesSchema } from '../policy/schema'; const validationOptions = Config.get('/validationOptions'); export const createPayload = Joi.object() .label('UserCreatePayload') .keys({ displayname: Joi.string().required(), metadata: Joi....
import { Component, OnInit } from '@angular/core'; import { Order } from 'src/app/model/order.model'; import { NgForm } from '@angular/forms'; import { OrderRepository } from 'src/app/repository/order.repository'; @Component({ selector: 'app-checkout', templateUrl: './checkout.component.html', styleUrls: ['./che...
/* * Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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...
export * from "./interfaces/analytics.interfaces"; export * from "./services/analytics.service"; export * from "./services/null-analytics.service";
import { APIGatewayClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../APIGatewayClient"; import { RestApi, UpdateRestApiRequest } from "../models/models_0"; import { deserializeAws_restJson1UpdateRestApiCommand, serializeAws_restJson1UpdateRestApiCommand, } from "../protocols/Aws_restJson1"; imp...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Hanacoin</source> <translation>&amp;О Hanacoin</translation> </m...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ja" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Meritcoins</source> <translation>ブラックコインについて</translation> </message> <message> <locati...
// Copyright 2020 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 class Customer { id: number; name: string; email: string; cellphone: string; }
/** * @license * Copyright Google LLC 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 {Location, LocationStrategy} from '@angular/common'; import {MockLocationStrategy, SpyLocation} from '@angular...
import { Component, Input } from "@angular/core"; import { IDefaultSpotData } from "src/app/shared/interfaces/panels/spot/spot-panel.interface"; @Component({ selector: "app-default", templateUrl: "./default.component.html", styleUrls: ["./default.component.less"], }) export class DefaultComponent { @Input() da...
import {Point} from '../../../math/geometry/point' import {CdtEdge} from '../../ConstrainedDelaunayTriangulation/CdtEdge' import {VisibilityEdge} from '../../visibility/VisibilityEdge' import {SdVertex} from './SdVertex' // [DebuggerDisplay("({SourcePoint.x},{SourcePoint.y})->({TargetPoint.x},{TargetPoint.y})")] ...
import { IsNotEmpty, IsString } from 'class-validator'; export class SignupDto { @IsNotEmpty() @IsString() username: string; @IsNotEmpty() @IsString() password: string; @IsNotEmpty() @IsString() email: string; }
import WrapperOptions from "./wrapperOptions"; export interface Options { before?: CounterFunction | Array<CounterFunction>; after?: CounterFunction | Array<CounterFunction>; exceptionHandler?: CounterFunction | Array<CounterFunction>; filterResults?: CounterFunction | Array<CounterFunction>; removeBefore?: ...
/* * 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 { Mesh, PlaneBufferGeometry, MeshBasicMaterial, DoubleSide } from 'three' import { RGBAFormat, NearestFilter } from 'three' import loadTexture from '@xrengine/engine/src/assets/functions/loadTexture' let errorTexturePromise = null let errorTexture = null export default class ErrorIcon extends Mesh { static asy...
import Layout from '@/layout/index.vue' import { createNameComponent } from '../createNode' const route = [ { path: '/', component: Layout, redirect: '/dashboard', meta: { title: 'message.menu.dashboard.name', icon: 'el-icon-menu' }, children: [ { path: 'dashboard', component...
import {Head} from '@blitzjs/core' const Home = () => ( <div className="container"> <Head> <title><%= name %></title> <link rel="icon" href="/favicon.ico" /> </Head> <main> <div className="logo"> <img src="/logo.png" alt="blitz.js" /> </div> <p>Get started by editin...
import React from 'react' import { shallow } from 'enzyme' import { Modal } from './Modal' describe('Modal', () => { const wrapper = shallow(<Modal />) it('Should render without crashing.', () => { const c = wrapper.find('#Modal') expect(c.length).toBe(1) }) })
/* * Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { ReactiveController, ReactiveElement } from 'lit'; import { focusable, focusElement, ignoreFocus } f...
export { CompoProto } from './compo/CompoProto' export { Component } from './compo/Component' export { Compo } from './compo/Compo' export { domLib } from './scope-vars'
import { Rule } from '@angular-devkit/schematics'; import { readJsonFile, writeJsonFile } from '../../utility/tree'; import { VSCodeExtensions } from '../types/vscode-extensions'; import { VSCodeSettings } from '../types/vscode-settings'; export function configureVSCode(): Rule { return (tree, context) => { con...
namespace pxsim { export class RefImage { _width: number; _height: number; _bpp: number; data: Uint8Array; dirty = true constructor(w: number, h: number, bpp: number) { this.data = new Uint8Array(w * h) this._width = w this._height...
import { Avatar as MUIAvatar, AvatarProps as MUIAvatarProps, } from "@mui/material"; import * as React from "react"; import { styled } from "../../theme/index"; const PREFIX = "Avatar"; const classes = { root: `${PREFIX}-root`, xsmall: `${PREFIX}-xsmall`, small: `${PREFIX}-small`, medium: `${PREFIX}-mediu...
import { describe, expect, test } from "@jest/globals"; import { convertNoDuplicateSuper } from "../no-duplicate-super"; describe("convertNoDuplicateSuper", () => { test("conversion without arguments", () => { const result = convertNoDuplicateSuper({ ruleArguments: [], }); exp...
import { GridRowId } from '../gridRows'; import { MuiBaseEvent } from '../muiEvent'; export interface GridFocusApi { /** * Sets the focus to the cell at the given `id` and `field`. * @param {GridRowId} id The row id. * @param {string} field The column field. */ setCellFocus: (id: GridRowId, field: stri...
import Link from 'next/link'; import Heading from 'Components/Common/headings'; import styles from 'Styles/widget.module.scss'; import CustomerSupportSvg from 'Svg/CustomerSupportSvg'; import ExpertAdviceSvg from 'Svg/ExpertAdviceSvg'; import GuranteedFitSvg from 'Svg/GuranteedFitSvg'; import ReturnSvg from 'Svg/Retur...
import * as fs from 'fs'; import { PathUtil, ScanFs } from '@travetto/boot'; export async function processServiceConfigs(svc: string) { const svcConfigs = await ScanFs.scanDir({ testFile: f => new RegExp(`${svc}.*[.]config$/`).test(f) }, PathUtil.cwd); for (const conf of svcConfigs) { // Do work // eslint...
import { BaseQueryFn, FetchArgs, fetchBaseQuery, FetchBaseQueryError, } from '@reduxjs/toolkit/dist/query/react'; import {QueryReturnValue} from '@reduxjs/toolkit/dist/query/baseQueryTypes'; import {FetchBaseQueryMeta} from '@reduxjs/toolkit/query/react'; import {AuthorizeResponse} from "../models/autho...
import { code } from '../messages' import { notifyError, notifyWarning } from './NotificationService' import { API } from '../constants/api'; import axios from 'axios'; import jwt from 'jwt-decode' import Cookies from 'universal-cookie'; import { Collection } from '../types/AdminDataTypes' interface CollectionService ...
module OpenORPG { export class Entity extends Phaser.Sprite { private targetIcon: Phaser.Sprite; public interpolator: EntityInterpolator; // These properties are what are strongly typed public name: string; public id: number; public experience: number; pub...
import { contains } from '../index'; describe('contains() returns true with', () => { test.each([ [[1, 2, 3], 3, 'an array of numbers that contains the expected number'], [[3, 3, 3], 3, 'an array of numbers that contains multiple copies of the expected number'], [['jest', 'is', 'fun'], 'jest', 'an array ...
import React, { useState } from 'react' import { AnimateSharedLayout, AnimatePresence } from 'framer-motion' import { useStoreState } from '../../store/hooks' //import useSWR from 'swr' //import { fetcher } from '../../api/fetcher' //import { Server } from '../../types/server' import { OverlayStyled } from './styles' ...
import React, { useEffect, ElementType } from 'react' import { navigate } from 'gatsby' import { authState } from '../state/auth' const withAuth = (AuthComponent: ElementType<any>) => { function AuthWrapped(props: object) { const { isLoggedIn } = authState.useValue() useEffect(() => { if (!isLoggedIn...
/* * 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 { ClusterClient, Logger } from '../../../../../src/core/server'; impor...
import { IThemeConfig, ICSSRules } from './types'; import transperentizeColor from './utils/transperentizeColor'; import ThemeService, { IThemeAPI, IThemeService, DEFAULT_THEME_CONFIG, } from './theme-service'; export { IThemeAPI, transperentizeColor, DEFAULT_THEME_CONFIG, IThemeConfig, IThemeService, ...
import { isPlainObject } from "./is-plain-object"; /*** * Schema value is public, pick the value * Schema value is private, omit the value */ export type FILTER_SCHEMA_ACCESS = "private" | "public"; export type FilterSchema<T> = { // if value is `true`, pick the key and value // if value is `false`, omit th...
import { defineComponent, PropType } from 'vue'; import { Dropdown, Menu, Popconfirm } from 'ant-design-vue'; import Icon from '/@/components/Icon/index'; import { DownOutlined } from '@ant-design/icons-vue'; import { ActionItem } from '../types/tableAction'; import Button from '/@/components/Button/index.vue'; const p...
import { EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRClient"; import { GetStudioSessionMappingInput, GetStudioSessionMappingOutput } from "../models/models_0"; import { deserializeAws_json1_1GetStudioSessionMappingCommand, serializeAws_json1_1GetStudioSessionMappingCommand, } from "...
import { App, ContentItem, ContentItemVersion } from "./types"; export function isApp(a: any | App): a is App { return (a as App)?.token !== undefined; } export function isContentItem(f: any | ContentItem): f is ContentItem { return (f as ContentItem)?.uuid !== undefined; } export function isContentVersion(f: an...
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import * as React from "react"; import type { TransitionDuration } from "../transition"; interface Props { readonly children: React.ReactNode; readonly maxHeight: number | undefined | null; readonly expanded?: boolean...
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { WorkoutPage } from './workout.page'; describe('WorkoutPage', () => { let component: WorkoutPage; let fixture: ComponentFixture<WorkoutPage>; beforeEach(async(() => { Te...
import { Injectable, InternalServerErrorException } from '@nestjs/common'; import { isArray, isEmpty, isNotEmptyObject, isObject, isNotEmpty } from 'class-validator'; import { MAX_RECORDS_TO_TAKE } from 'src/app/core/constants.config'; import { QueryOrderByDto } from '../dtos/query-orderby.dto'; import { QueriesService...
/* Google Material Design Icons */ export declare const sharp360: string; export declare const sharp3dRotation: string; export declare const sharp4k: string; export declare const sharp5g: string; export declare const sharp6FtApart: string; export declare const sharpAccessAlarm: string; export declare const sharpAcces...
import { Column, DeleteDateColumn, Entity, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn, } from 'typeorm' import { Teacher } from './teacher.entity' import { Subject } from 'src/subjects/entities/subject.entity' import { Timetable } from 'src/timetable/entities/timetable.entity' import { Subje...
/** * @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 { BuilderContext, BuilderOutput, createBuilder, targetFromTargetString, } from '@angular-devkit/archit...
import Hand from './Hand'; import {Index} from '../../shared/types'; import {Meld} from '../../Meld'; import Scoring from '../Scoring'; export default class Null extends Hand { constructor(tiles: Index[], melds: Meld[]) { super(); tiles.sort(); this.melds = [Meld.makeNull(tiles)]; } doCheck(_tiles:...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { OangModule } from 'projects/oang/src/public-api'; import { ReactiveFormsModule } from '@angular/forms'; ...
export default interface TokenHeader { kid: string; alg: string; }
/* * Copyright 2020 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
export * from './registry.service';
import winston from 'winston'; const options: winston.LoggerOptions = { transports: [ new winston.transports.File({ filename: 'log/debug.log', level: 'debug', format: winston.format.combine( winston.format.timestamp(), winston.format.json(...
import { BaseMetric, QueueBasedMetric } from './baseMetric'; import { MetricValueType, QueueMetricOptions } from '../../types'; import { JobFinishedEventData } from '@src/server/queues'; export class CounterBasedMetric extends BaseMetric { protected internalCount = 0; constructor(options: any) { super(options...
import * as React from "react"; import { Context, RouteInterface } from "../types"; import { ReactContextValue } from "../make/reactContextProvider/types"; import { Display } from "../component/Display"; export const make = < MAP extends RouteInterface<any, any, any, C>, C extends Context >( ReactContext: Reac...
import { localizedString } from '@angular/compiler/src/output/output_ast'; import { Component, OnInit } from '@angular/core'; import { NgForm } from '@angular/forms'; import { Router } from '@angular/router'; import { Local } from 'protractor/built/driverProviders'; import { AuthService } from '../../service/auth.servi...
import React, { useState } from 'react'; import { Button, Badge, Tooltip } from 'antd'; import { QuestionCircleOutlined } from '@ant-design/icons'; import { LightFilter, ProFormDatePicker } from '@ant-design/pro-form'; import type { ProColumns } from '@ant-design/pro-table'; import ProTable from '@ant-design/pro-table'...
/* * Copyright 2016 the original author or 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 applica...
export enum AdditionalFeeInputSelectors { FeeButton = "AdditionalFeeInput/FeeButton", }
import * as React from 'react'; export type GtkProps = React.ComponentPropsWithoutRef<'svg'> & { /** * Hex color or color name */ title?: string; /** * The size of the Icon. */ color?: string; /** * The title provides an accessible short text description to the SVG */ size?: string | numb...
// *** 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 * as utilities from "../utilities"; /** * Resource Type definition for AWS::Greengrass::SubscriptionDefinition *...
import { ContentItem } from 'kentico-cloud-delivery'; import { NextFC } from 'next'; import PropTypes, { ValidationMap } from 'prop-types'; import React from 'react'; import { printFuzzyDate } from '../../../utilities/timeUtils'; import { stripPTags, addPersistentProjId, addDetailQueryString } from '../../../utilities/...
import AppError from '@shared/errors/AppError'; import FakeCacheProvider from '@shared/container/providers/CacheProvider/fakes/FakeCacheProvider'; import FakeUserRepository from '../repositories/fakes/FakeUserRepository'; import FakeHashProvider from '../providers/HashProvider/fakes/FakeHashProvider'; import CreateUs...
import {LocalizedWords} from '@oratio/oratio'; export const knownWords: LocalizedWords = { en: { main: [ 'how well are we doing', 'how are we doing', 'how are we performing', 'performance', 'performance summary', ], params: [], ...
import * as fetch from 'isomorphic-fetch'; import { Project } from '../domain'; import { HAL } from '.'; import env from '../common/environment'; export const getProjects = async (): Promise<HAL<Project>> => { const response = await fetch(`${env.apiUrl}/projects/`); return await response.json(); };
export class Image { path: string; alt: string; title: string; desc: string; }
export interface MealThemeModel { color?: string; backgroundImage?: string; emoji?: string; shadow?: boolean; } export interface MealThemeEntry { keywords: string[]; theme: MealThemeModel; }