text
stringlengths
10
953k
export * from './src/enum/EggLoadUnitType'; export * from './src/factory/EggPrototypeFactory'; export * from './src/factory/EggPrototypeCreatorFactory'; export * from './src/factory/LoadUnitFactory'; export * from './src/model/EggPrototype'; export * from './src/model/LoadUnit'; export * from './src/model/Loader'; expo...
import { Component, OnInit } from "@angular/core"; import { LocalDataSource } from "ng2-smart-table"; import { Router } from "@angular/router"; import { DatePipe } from "@angular/common"; import { Http } from "@angular/http"; import { ServerDataSource } from "ng2-smart-table"; import { Globals } from "../../../../Globa...
/** * Copyright (c) 2021 GraphQL Contributors. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { ResizeHandlerProps, ResizingData, ResizeProps, MEvent, RdsMEvent, } from "./types"; // eslint-disable-next-line ...
import copy from 'clipboard-copy' import * as React from 'react' import Tooltip from 'rc-tooltip' import 'rc-tooltip/assets/bootstrap.css' import FileCopy from '@material-ui/icons/FileCopyTwoTone' import { withSnackbar, WithSnackbarProps } from 'notistack' import './CopyToClipboard.css' type Props = { children: Rea...
import React from "react"; import authService, { User } from "../auth/auth_service"; import capabilities from "../capabilities/capabilities"; import router, { Path } from "../router/router"; import UserPreferences from "../preferences/preferences"; import { Menu } from "lucide-react"; interface Props { children?: an...
/** * @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 */ export {ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS} from './application_ref'; export {APP_ID_RANDOM_PROVID...
// Type definitions for express-winston 3.0 // Project: https://github.com/bithavoc/express-winston#readme // Definitions by: Alex Brick <https://github.com/bricka> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 import { ErrorRequestHandler, Handler, Request, Response } f...
import { Middleware, Options } from '../index' import cleanUrl from '../helpers/cleanUrl' import Req from '../Req' interface OverrideReqInit extends Options { body?: BodyInit } const requestHandler: Middleware = (next) => async (_req) => { /** * Before the initial request, the req is just an options object,So ...
/* * 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 from 'react'; import { i18n } from '@kbn/i18n'; import { Formatt...
import {FlowId, NodeId, ProcedureSingleTreeNode} from '@magicflow/procedure'; import { Operator, OperatorFunction, addNode, addNodeNexts, compose, out, } from '@magicflow/procedure/operators'; import {copyNode} from '@magicflow/procedure/utils'; import {insertNodeAsFlowStart} from './@insert-node-as-flow-s...
import { NO_ERRORS_SCHEMA } from '@angular/core'; import { Router } from '@angular/router'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { HomeComponent } from './home.component'; import { ROUTES } from '../app.routes'; import { RouterTestingModule } from '@angular/router/testing'; i...
import { RequestHandler } from 'express'; import { Controller } from '../controllers/controller'; import { setGetListHeaders } from './headers'; import { mapValues } from 'lodash'; import Boom from '@hapi/boom'; import { RequestWith } from '../tools/auth'; import { IUserJSON } from '../controllers/user.controller'; ex...
// fontawesome/svgs/brands/js-square.svg import { createSvgIcon } from './createSvgIcon'; export const SvgJsSquare = createSvgIcon( `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"> <!--! Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/fre...
// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import * as React from 'react'; import { Component } from 'react'; import { connect } from 'react-redux'; import { WebTag } from '../../../../server/api/v1/licenses/interfaces'; import { PackageUsage, ...
import { PerfilPermissaoRepository } from './perfil-permissao.repository'; import { Module } from '@nestjs/common'; import { PerfilPermissaoService } from './perfil-permissao.service'; import { PerfilPermissaoController } from './perfil-permissao.controller'; import { TypeOrmModule } from '@nestjs/typeorm'; @Module({ ...
import {SxProps, Theme} from "@mui/material"; import React, {forwardRef, useImperativeHandle} from "react"; import {useSelect} from "../../../hooks/SelectHook"; import {ValueType} from "../../ValueTypes"; export interface ValueTypeDropdownRef { getValueType(): ValueType | null; } export interface ValueTypeDropdow...
import { normalize, FontWeights } from '../../Styling'; import { IChicletCardStyleProps, IChicletCardStyles } from './ChicletCard.types'; export const getStyles = (props: IChicletCardStyleProps): IChicletCardStyles => { const { theme, className } = props; const { palette } = theme; const previewWidth = ((1 / 3)...
import { Injectable } from '@nestjs/common'; import { EnvironmentRepository } from '@novu/dal'; import * as hat from 'hat'; import { nanoid } from 'nanoid'; import { CreateEnvironmentCommand } from './create-environment.command'; @Injectable() export class CreateEnvironment { constructor(private environmentRepositor...
<TS language="fr" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Faites un clic-droit pour modifier l'adresse ou l'étiquette</translation> </message> <message> <source>Create a new address</source...
import mysql from 'promise-mysql' import keys from './keys' const pool = mysql.createPool(keys.database) pool.getConnection() .then(connection =>{ pool.releaseConnection(connection) console.log('DB is connected!'); }) export default pool;
import { IsString,IsNumber } from "class-validator"; export class AddShopDto { @IsString() name:string; @IsString() descr:string; @IsNumber() price:number; }
import { CopyOutlined } from '@ant-design/icons'; import { Button, Card } from 'antd'; import React, { FC, useCallback, useRef } from 'react'; interface Variables { storeAddress?: string; storeOwnerAddress?: string; } export const SetupVariables: FC<Variables> = ({ storeAddress, storeOwnerAddress }) => { const ...
/// <reference types="mocha" /> import { assert } from 'chai'; describe('ReactProjectOnlineWebPart', () => { it('should do something', () => { assert.ok(true); }); });
// Copyright 2014 The Oppia Authors. 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 at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
import { createStore, applyMiddleware } from "redux"; import { EnvironmentConfigService } from '../services/environment/environment-config.service'; import rootReducer from "./reducers/index"; import thunk from "redux-thunk"; import logger from "redux-logger"; const configureStore = (preloadedState: any) => { if (En...
import { Map } from 'ol'; import { Extent as IExtent } from 'ol/extent'; import { Image as ImageLayer } from 'ol/layer'; // FIXME: should use Layer, but not export, use ImageLayer instead. import { assign, defaultOptions, Field, formatData, IOptions, isArray, warnLog, } from 'wind-core'; import WindLayer...
import React, { useState, useEffect, useLayoutEffect } from 'react'; import { Button } from 'antd'; import { store } from './store'; let index = 0; const App = () => { const state = store.useStore([]); const actions = store.actions; const onClick = React.useCallback(() => { actions.user.onChangeName({ name: ...
/* tslint:disable:no-empty */ import { State } from "@arkecosystem/core-interfaces"; import { Blocks, Interfaces } from "@arkecosystem/crypto"; export class StateStoreStub implements State.IStateStore { public blockchain: any; public lastDownloadedBlock: Interfaces.IBlockData | undefined; public genesisBlo...
import {ParamRegistry} from "../registries/ParamRegistry"; import {EXPRESS_RESPONSE} from "../constants"; /** * Response service. * @returns {function(Function, (string|symbol), number): void} * @decorator */ export function Response(): Function { return Res(); } /** * Request service. * @returns {function(Fu...
export {PopoverDirective} from './popover.directive'; export {Placement, Trigger} from './popover.model'; export {PopoverModule} from './popover.module'; export {PopoverContentComponent} from './popoverContent.component';
import { ArrayUtils, KeyValueCache, StringUtils, ts } from "@ts-morph/common"; import { ClassDeclarationSpecificStructure, ClassDeclarationStructure, ClassLikeDeclarationBaseSpecificStructure, ConstructorDeclarationStructure, InterfaceDeclarationStructure, JSDocStructure, MethodDeclarationStructure, MethodSignature...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="de_DE"> <context> <name>QQmlWebSocket</name> <message> <source>Messages can only be sent when the socket is open.</source> <translation>Nachrichten können nur versandt werden, wenn der Socket geöffnet ist.</translat...
/*! * @license * Copyright 2019 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * 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 writing, software * distributed u...
import { Command } from 'clipanion'; /** * ScaffoldModuleCommand * * Scaffolds a Module. */ export declare class ScaffoldModuleCommand extends Command { static paths: string[][]; moduleName: string; static usage: { category: string; description: string; details: string; }; ...
import { NgModule, ModuleWithProviders } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { MatIconRegistry } from '@angular/material'; /* module-material */ import { MatIconModule } from '@angular/material/icon'; /* module-material */ import { MatTooltipModule } from '@angular/ma...
import React, { useState, useEffect, useCallback, useRef } from 'react'; import { useTranslation } from 'react-i18next'; import { backendUrl, currentChainId } from '../../../../utils/classifiers'; import axios, { Canceler } from 'axios'; import { translations } from 'locales/i18n'; import { RewardTable, WeekRewardTyp...
import { enableProdMode } from '@angular/core'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } export { AppServerModule } from './app/app.server.module'; // Express Engine export { ngExpressEngine } from '@nguniversal/express-engine'; export { renderMo...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { RouterModule } from '@angular/router'; import { NavController, Content } from '@ionic/angular'; import { ListPage } from './list...
/** * 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...
export * from './check-list/check-list.component'; export * from './debt-summary/debt-summary.component'; export * from './edit-check/edit-check.component'; export * from './edit-debt/edit-debt.component';
import Exception from './Exception'; export {Exception};
import * as React from 'react' import {NumberInput} from '../../../components' export interface INumberInputValueState { value: string } export default class NumberInputValue extends React.Component<{}, INumberInputValueState> { state = { value: 'default' } render () { const {value} = this.state...
import { MessageType, Mimetype, delay, promiseTimeout, WA_MESSAGE_STATUS_TYPE, WAMessageStatusUpdate } from '../WAConnection/WAConnection' import {promises as fs} from 'fs' import * as assert from 'assert' import { WAConnectionTest, testJid, sendAndRetreiveMessage } from './Common' WAConnectionTest('Messages', conn =>...
import { ComponentID, AspectList } from '@teambit/component'; import { COMPONENT_CONFIG_FILE_NAME } from '@teambit/legacy/dist/constants'; import { ExtensionDataList } from '@teambit/legacy/dist/consumer/config/extension-data'; import { PathOsBasedAbsolute } from '@teambit/legacy/dist/utils/path'; import detectIndent f...
/** * EVE Swagger Interface * An OpenAPI for EVE Online * * OpenAPI spec version: 0.7.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ /** * Not found */ export interface PostCharact...
import { DefAcs } from './defacs'; export interface SetDesc { defacs?: DefAcs; public?: any; private?: any; acs?: any; updated?: any; noForwarding?: boolean; seq?: number; read?: any; recv?: any; touched?: any; } export interface SetSub { user?: string; mode?: string; ...
import { IUser } from '../../models/User'; import { NextFunction, Response, Request } from 'express'; import HttpException from '../../exceptions/HttpException'; const signOutUser = async ( req: Request, res: Response, next: NextFunction ): Promise<void> => { try { const user: IUser = req.user; req.us...
/* tslint:disable */ /* eslint-disable */ // @generated // This file was automatically generated and should not be edited. // ==================================================== // GraphQL query operation: GetSurvey // ==================================================== export interface GetSurvey_survey_questions...
// until the `NXT_UNIT_INIT` env var is more verbosely documented, we admit that we // are using it at our own risk to determine when a Node.js process was started by // NGINX Unit. Related info [here](https://github.com/nginx/unit/issues/230) const PROC_WAS_STARTED_BY_NGINX_UNIT: boolean = process.env.NXT_UNIT_INIT !=...
import { Injectable } from '@angular/core'; import { Person } from './person'; import { HttpClient } from '@angular/common/http'; @Injectable() export class PersonService { constructor(private httpClient: HttpClient) { } getPersonById(id: string): Person { let person = new Person(); this.httpClient.get('...
/** ****************************************************************************** * Copyright (C) 2018 Red Hat, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. ...
/* * ____ _ __ __ _ * | _ \ __ _ _ __| | __ | \/ | ___ __| | ___ * | | | |/ _` | '__| |/ / | |\/| |/ _ \ / _` |/ _ \ * | |_| | (_| | | | < | | | | (_) | (_| | __/ * |____/ \__,_|_| |_|\_\ |_| |_|\___/ \__,_|\___| * * Copyright (c) 2015-present, Andrew Simms * Author: A...
<TS language="sr" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Kliknite desnim klikom radi izmene adrese ili oznake</translation> </message> <message> <source>Create a new address</source> ...
import { NgModule, Optional, SkipSelf, Type, PLATFORM_ID } from '@angular/core'; import { CommonModule } from '@angular/common'; import { Title } from '@angular/platform-browser'; import { LocalDatabase, LOCAL_STORAGE_PREFIX } from '@ngx-pwa/local-storage'; // Shared Components import { PromptDialogComponent } from '...
//****************************************************************************************************** // openHistorianFilterExpression_ctrl.ts - Gbtc // // Copyright © 2017, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license ...
import React, { ReactNode } from "react"; import { Tooltip as AntdTooltip } from "antd"; import { QuestionCircleOutlined } from "@ant-design/icons"; const Tooltip = ({ children, text, }: { children: ReactNode; text: string; }) => { return ( <span> {children}{" "} <span> <AntdTooltip title={text}> ...
module objects { export class Button extends GameObject { // constructor constructor(imagePath:Object = config.Game.ASSETS.getResult("button") , x:number = 0, y:number= 0, isCentered:boolean = false) { super(imagePath, x, y, isCentered); this...
export default { Broker_init: { queueName: "Broker_init", frontPort: 5553, backPort: 5554, maxQueue: 10, }, Broker_createTask: { queueName: "Broker_createTask", clientType: "dealer", frontPort: 5555, backPort: 5556, maxQueue: 10, }, Broker_rejectTask: { queueName: "Brok...
export interface Person { person: string; expression: string; } export interface Label { de_DE: string; en_US: string; fr_FR: string; zh_CN: string; ja_JP: string; ko_KR: string; langUid: number; }
import { mocked } from 'ts-jest/utils'; import { MarkdownPlugin } from '../../plugin'; import { MarkdownTheme } from '../theme'; import { breadcrumbs } from './breadcrumbs'; jest.mock('../../plugin'); describe(`breadcrumbs helper`, () => { test(`should compie`, () => { mocked(MarkdownPlugin).settings = {}; ...
/* * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib 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 ap...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RepositorySettingsComponent } from './containers/repository-settings/repository-settings.component'; import { PmpWebRepositoryRepositorySettingsFeatureRouting } from './pmp-web-repository-repository-settings-feature.routi...
import { css } from "glamor"; const styles = css({ body: { color: "red", }, }); export default styles;
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import { data } from './data/mock'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<App data={data} />, div); ReactDOM.unmountComponentAtNode(div); });
import React from "react"; import ReactDOM from "react-dom"; ReactDOM.render( <> <h1>Hello, world!</h1> <h2>React + TypeScript + Webpack Boilerplate</h2> </>, document.getElementById("root") );
import React, { useState, useCallback } from 'react'; import mdx from './Checkbox.mdx'; import { Checkbox } from './Checkbox'; export default { title: 'UI/Forms/Checkbox', component: Checkbox, parameters: { docs: { page: mdx, }, }, }; export const controlled = () => { const [checked, setChecke...
/** * Copyright 2017 Google 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 to i...
import { Route, Redirect } from "react-router-dom"; import jwt from "jsonwebtoken"; const PrivateRoutes: any = ({ component: Component, path: Path, ...rest }: any) => { const isLogin: string | null = localStorage.getItem("@token"); const isSectionActive: any = () => { if (isLogin === null) { retur...
import * as React from 'react'; import {StatefulList} from 'spaceweb/dnd-list'; import {useStyletron} from 'baseui'; import {ArrowRight} from 'spaceweb/icon'; const CustomDragHandle = () => { const [css] = useStyletron(); return ( <div className={css({ marginRight: '1em', width: '24px', ...
import { Component, OnInit } from '@angular/core'; import { routerTransition } from '../../router.animations'; import { DataSource } from '@angular/cdk/collections'; import {BlueprismService} from '../../services/BlueprismService'; import { BlueprismModel } from '../../models/BlueprismModel'; import { Observable } from...
import { Ally } from './allies' import { ResourceType } from '../../config/constants' import { Item } from '../inventory/items' export enum ExpeditionStep { Recruiting = 'recruiting', Fighting = 'fighting', Reward = 'reward', } type BaseExpedition = { step: ExpeditionStep allies: Ally[] rewardResources: [...
import { isFn } from './checkers' import { IOperation, ReactionsMap, Reaction, PropertyKey } from './types' import { ReactionStack, PendingScopeReactions, RawReactionsMap, PendingReactions, BatchCount, UntrackCount, BatchScope, ObserverListeners, } from './environment' const ITERATION_KEY = Symbol('ite...
import React, { useState, useEffect } from "react" import Flex from "styled-flex-component" import { DiAppstore } from "react-icons/di" import { FaGooglePlay } from "react-icons/fa" import { IoIosAlarm, IoIosDesktop, IoIosPhonePortrait } from "react-icons/io" import styled from "styled-components" import { FiImage, FiC...
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { Logger } from '@nestjs/common'; import * as config from 'config'; import { ServerConfigInterface } from 'config/config.interface'; async function bootstrap() { const serverConfig: ServerConfigInterface = config.get('serv...
import { assertError, assertSuccess } from '@chainlink/ea-test-helpers' import { AdapterRequest } from '@chainlink/types' import { AddressInfo } from 'net' import request, { SuperTest, Test } from 'supertest' import { SuiteContext } from './adapter.test' import { mockAWLocationResponseError, mockAWLocationResponseS...
import formatMessage from '../message'; it('returns the same string if no args are given', () => { expect(formatMessage('identity')).toEqual('identity'); }); it('is silent if params are provided but not needed in the string', () => { expect(formatMessage('identity', { foo: 1, bar: 'test' })).toEqual( 'identit...
import {Command, flags} from '@oclif/command'; // import {ftcli} from '@freight-trust/core'; export default class SendRawTransaction extends Command { static description = 'describe the command here' static flags = { help: flags.help({char: 'h'}), // flag with a value (-n, --name=VALUE) name: flags.st...
import { TinyYolov2 } from './TinyYolov2'; export * from './TinyYolov2'; export function createTinyYolov2(weights: Float32Array, withSeparableConvs: boolean = true) { const net = new TinyYolov2(withSeparableConvs) net.extractWeights(weights) return net }
import {Component} from '@angular/core'; import {NotificationEventComponent} from "../notification-event.component"; import {QuestionAnswerNotificationEvent} from "../../../../_dto/notification"; @Component({ selector: 'question-answer-event', templateUrl: './question-answer-event.component.html', styleUrls: ['./qu...
export const addLookEdit = ['添加', '查看', '编辑'] export const maritalStatusList = [ { value: 0, label: '未婚未孕' }, { value: 1, label: '已婚未孕' }, { value: 2, label: '已婚已孕' }, { value: 3, label: '未婚已孕' }, ] export const politicalIdentityList = [ { value: 0, label: '党员' }, { value: 1, label: '团员' }, { value: 2, ...
import common = require('./common'); const bitcoin = require('bitgo-utxo-lib'); const ecurve = require('ecurve'); const curve = ecurve.getCurveByName('secp256k1'); const BigInteger = require('bigi'); const createHmac = require('create-hmac'); const HDNode = bitcoin.HDNode; let secp256k1; try { secp256k1 = require('...
import { NotFoundException } from '@nestjs/common'; export class BankNotFoundException extends NotFoundException { private bank_id: string; constructor(id: string) { super(); this.message = 'Bank not found!'; this.bank_id = id; } }
import { Test, TestingModule } from '@nestjs/testing'; import { ContactosService } from './contactos.service'; describe('ContactosService', () => { let service: ContactosService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [ContactosService], })...
import { ColorGradient } from '../primitives/color-gradient'; /** * Gradients */ export type ColorGradients<Override extends undefined | string = undefined> = { gradient1: Override extends string ? string : ColorGradient<Override>; gradient2: Override extends string ? string : ColorGradient<Override>; gradient...
import React, { useEffect, useState } from "react"; import { Link, Switch, Route, useRouteMatch, } from "react-router-dom"; import { useQuery, useMutation, } from "@apollo/client"; import { GetContests as GET_CONTESTS, DeleteContest as DELETE_CONTEST, AddContest as ADD_CONTEST, UpdateContest as UPDATE_C...
import {Script} from "./entities"; import {ProgressIndicator} from "./widgets"; /** Grok functions */ export class Functions { register(func: any): void registerParamFunc(name: string, type: string, run: any, check?: any, description?: string): void call(name: string, parameters?: Object, showProgress?: ...
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const SiProcesswire: IconType;
import { Test, TestingModule } from '@nestjs/testing'; import { ApiUtilService } from './api-util.service'; describe('ApiUtilService', () => { let service: ApiUtilService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [ApiUtilService], }).compile(...
import { ApiProperty } from '@nestjs/swagger'; import { IsNotEmpty } from 'class-validator'; import { SortType } from '../enums/sort-types.enum'; export class UserTransactionsDto { @ApiProperty({ description: 'ID пользователя' }) @IsNotEmpty() userID: string; @ApiProperty({ description: 'Номер страницы(ма...
/* * 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 mockOverallSwimlaneData from './__mocks__/mock_overall_swimlane.json';...
import { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient.ts"; import { ListIdentityPoolsInput, ListIdentityPoolsResponse } from "../models/models_0.ts"; import { deserializeAws_json1_1ListIdentityPoolsCommand, serializeAws_json1_1ListIdentityPoolsCommand, ...
import * as React from 'react'; import {Icon} from 'main'; const styles = { root: { display: 'flex', justifyContent: 'center', alignItems: 'center', minHeight: 'calc(100vh - 240px)', width: '100vw' } } export default class Album extends React.Component<any, any> { render() { return ( ...
import { act, renderHook } from '@testing-library/react-hooks' import subDays from 'date-fns/subDays' import useResolveIncident from '../../../incidents/hooks/useResolveIncident' import IncidentRepository from '../../../shared/db/IncidentRepository' import Incident from '../../../shared/model/Incident' describe('useR...
import {createReadStream, createWriteStream} from 'fs'; import {parse as querystringParse} from 'querystring'; import {parse as urlParse, format as urlFormat} from 'url'; import {Transform} from 'stream'; import * as yargs from 'yargs'; import {logger, Level} from 'loge'; import {readToEnd} from 'streaming'; import {...
/* * @Author : Zhao Dongxu * @Desc : * @Date : 2021-04-29 13:22:12 * @LastEditors: Vane * @LastEditTime: 2021-05-31 03:23:17 * @FilePath: \vue-admin\src\utils\index.ts */ import { formatToDate } from './dateUtil'; /** * @description: 深拷贝 * @param {*} obj 拷贝对象(object or array) * @param {...
import { StoreService, StoreSubscriber } from "../../../store.service" import { IRootScopeService } from "angular" import { IsLoadingFileActions } from "./isLoadingFile.actions" import { isActionOfType } from "../../../../util/reduxHelper" export interface IsLoadingFileSubscriber { onIsLoadingFileChanged(isLoadingFil...
import {Component} from '@angular/core'; export interface Section { name: string; updated: Date; } /** * @title List with sections */ @Component({ selector: 'list-sections-example', styleUrls: ['list-sections-example.css'], templateUrl: 'list-sections-example.html', }) export class ListSectionsExample { ...
import { Body, Controller, Get, Param, Post, Res, Req, Put, Delete, Session, Query, Headers, Ip, HostParam, HttpCode, Patch, Redirect, UsePipes } from '@nestjs/common'; import { Response, Request } from 'express'; import { saveFoodData } from "./dtos/saveFoodData.dto" import { FoodService } from './food.service'; impor...
import InfoOutlinedIcon from '@material-ui/icons/InfoOutlined'; import clsx from 'clsx'; import { Chip, Tooltip } from 'czifui'; import { Fragment } from 'react'; import { DeepPartial } from 'utility-types'; import { useSearchStore } from '@/store/search/context'; import { FilterCategoryKeys } from '@/store/search/sea...