text
stringlengths
10
953k
import { dirname, relative, resolve } from 'path'; import { FilePathParams } from '../models/filename-transformer'; import { FilenameTransformerImp } from './filename-transformer-imp'; export class DirFilenameTransformerImp extends FilenameTransformerImp { protected replaceRelativePath({ basePath, srcPath, searchVal...
import { useState, createContext, Dispatch, SetStateAction, useEffect } from 'react'; interface AuthState { token?: string; auth: boolean; setToken: Dispatch<SetStateAction<string | undefined>>; } export const AuthContext = createContext({} as AuthState); const AuthProvider: React.FC<{ token?: string...
import jscodeshift, { ASTPath, ClassBody } from 'jscodeshift'; import { Plugin } from 'ts-migrate-server'; import { isDiagnosticWithLinePosition } from '../utils/type-guards'; type Options = { anyAlias?: string }; const j = jscodeshift.withParser('tsx'); const declareMissingClassPropertiesPlugin: Plugin<Options> = {...
export declare type Matrix = number[]; export interface NodeConfig { id: string; clusterId?: string; [key: string]: any; } export interface EdgeConfig { source: string; target: string; weight?: number; [key: string]: any; } export interface GraphData { nodes?: NodeConfig[]; edges?: E...
// tslint:disable:no-non-null-assertion import { ComplexModel, FAIL_MODEL_GSI, INDEX_ACTIVE, INDEX_ACTIVE_CREATED_AT, INDEX_COUNT, ModelWithABunchOfIndexes, ModelWithDefaultValue, ModelWithGSI, ModelWithLSI, ModelWithoutPartitionKeyModel, SimpleWithCompositePartitionKeyModel, SimpleWithPartition...
import { StyledIcon } from '@styled-icons/styled-icon'; export declare const Atom: StyledIcon; export declare const AtomDimensions: { height: undefined; width: undefined; };
import { markdown } from "../lib/utils" import { Change, modify } from "../params" import { defineLaw, monthsEffort } from "./LawsTypes" export default defineLaw({ title: "Test", description: "Unsinniges Gesetz zum Testen.", effort(game) { return monthsEffort(6) }, effects(game, startYear, currentYear)...
import { callApi } from '../../../lib/client' import { GeneralAppProps } from '../../../interfaces/api' import { SerializedWorkspace } from '../../../interfaces/db/workspace' import { GetInitialPropsParameters } from '../../../interfaces/pages' import { SerializedDoc } from '../../../interfaces/db/doc' import { Seriali...
export declare function getResolvedLocale(): string; //# sourceMappingURL=get-resolved-locale.d.ts.map
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getTitleText()).toEqual('BitNinj...
import React, { useState, useEffect } from 'react'; import { IConfigPage, IConfigPostMethod, TConfigDisplayField, IConfigDisplayField, IConfigCustomAction } from '../../common/models/config.model'; import { dataHelpers } from '../../helpers/data.helpers'; import { FormPopup } from '../formPopup/formPopup.comp'; import...
/* eslint-disable prettier/prettier */ import {BadRequestException, UseGuards} from '@nestjs/common'; import { Args, Mutation, Resolver, Query } from '@nestjs/graphql'; import {AuthGuard} from '@nestjs/passport'; import {LoginInput} from './Dto/loginInput'; import {UserInput} from './Dto/userInput'; import {User} from ...
import * as React from 'react'; import * as G2 from '@antv/g2'; export type Callback = (chart: G2.Chart) => void; export function UseG2<T>({ callback, data, padding = 'auto', }: { callback: Callback; data: T[]; padding?: string | number | Array<string | number> ; }) { const ref = React.useRef<HTMLDivEle...
import { Operator, mutate, forEach, fork, when, map } from 'overmind' import { Message, AppMessage, InitMessage, FlushMessage, AddComponentMessage, UpdateComponentMessage, RemoveComponentMessage, DerivedMessage, DirtyDerivedMessage, ActionsListItemType, ActionItem, ActionGroupItem, StartAction...
/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ export {PublicKeyVerify} from './internal/public_key_verify';
import { ConfigParams } from 'pip-services3-commons-node'; import { IReferences } from 'pip-services3-commons-node'; import { FilterParams } from 'pip-services3-commons-node'; import { PagingParams } from 'pip-services3-commons-node'; import { DataPage } from 'pip-services3-commons-node'; import { CommandableGrpcClient...
import { Camera2D, Transform2D } from "@aicacia/ecs"; import { WebCanvas } from "@aicacia/ecs/lib/web"; import { vec2 } from "gl-matrix"; import { ShapeBuilder, Pointer } from "../../lib"; import { WebPlotSceneBuilder } from "../../lib/web"; function onLoad() { const canvas = new WebCanvas( document.getElement...
import { HTMLAttributes, InputHTMLAttributes } from 'react' import { Container, IconContainer, InputStyled } from './style' interface InputProps extends InputHTMLAttributes<HTMLInputElement>{ // text: string Icon: () => JSX.Element } export const Input = ({ Icon, ...rest }: InputProps) => { return ( <Cont...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { WebSi...
import { useQuery } from 'react-query'; import { Note } from '../../pages/api/notes/@types'; import { useUser } from '../useUser'; import { GetNotesResponse } from './@types'; import { deleteNote, upsertNote } from './api'; export const useNotes = () => { const { user } = useUser(); const { isLoading, data, refet...
import React, { FC, useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { IUserGroupHasId } from '~/interfaces/user'; type Props = { selectableUserGroups?: IUserGroupHasId[] onClickAddExistingUserGroupButton?(userGroup: IUserGroupHasId | null): void onClickCreateUserGroupButton?()...
<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> ...
import React from 'react' import { twMerge } from 'tailwind-merge' import { variants } from './Stat' export type StatFigureProps = { className?: string variant?: keyof typeof variants children?: React.ReactNode } export const StatFigure = React.forwardRef<HTMLDivElement, StatFigureProps>( ({ className, varian...
import React from "react"; import styled from "styled-components"; import { Grid, Header, Image, Label, Segment } from "semantic-ui-react"; import { RouteComponentProps } from "@reach/router"; import { SEO } from "../templates/SEO"; import { LoginButton } from "../molecules/LoginButton"; export const Index: React.FC<...
/// <reference types="react" /> import React from 'react'; export interface DataItem { icon?: any; text?: any; [key: string]: any; } export interface GridProps { data?: Array<DataItem | undefined>; hasLine?: boolean; columnNum?: number; isCarousel?: boolean; carouselMaxRow?: number; ...
// #region Local Imports import { ActionConsts } from '@Definitions' // #endregion Local Imports // #region Interface Imports import { IAction, IHomePage } from '@Interfaces' // #endregion Interface Imports const INITIAL_STATE: IHomePage.IStateProps = { home: { version: 1, }, image: { url: '', }, } t...
import type { IFunction, IFunctionResult } from '../../../types'; import { getAllOperations } from './utils/getAllOperations'; export const oasOpIdUnique: IFunction = targetVal => { const results: IFunctionResult[] = []; const { paths } = targetVal; const seenIds: unknown[] = []; for (const { path, operatio...
/* * 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...
export * from './lib/api-security.module'; export * from './lib/dtos';
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class ApiService { private postHeaders: HttpHeaders; constructor(private http: HttpClient) { this.postHeaders = new HttpHe...
import { _DomainNameMap } from "./_DomainNameMap"; import { Structure as _Structure_ } from "@aws-sdk/types"; export const ListDomainNamesOutput: _Structure_ = { type: "structure", required: [], members: { DomainNames: { shape: _DomainNameMap } } };
import KoaRouter, {RouterOptions} from '@koa/router'; import ApplicationContext from "../context/context"; import State from "../context/state/infer"; export default function Create< CustomMain extends ApplicationContext = ApplicationContext >( options?: RouterOptions ) : KoaRouter<State<CustomMain>, Custo...
// MOCK SETUP import { mockFetch } from "./MockSetup"; import RequestStatus from "../../src/state/RequestStatus"; import { jest } from "@jest/globals"; import { HttpMethod } from "../../src/services/ApiService"; import IAuthenticationState from "../../src/state/IAuthenticationState"; import { authenticationStore } fro...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useState} from 'react' import {useIntl} from 'react-intl' import {DateUtils} from 'react-day-picker' import MomentLocaleUtils from 'react-day-picker/moment' import DayPicker from 'react-day-pic...
import { registerEnumType } from 'type-graphql' export enum Cycle { DAY = 86400000, HOUR = 3600000, MINUTE = 60000, } export enum Interval { DAY = Cycle.DAY, HOUR = Cycle.HOUR, } registerEnumType(Interval, { name: 'Interval' })
import React from 'react'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import useMediaQuery from '@material-ui/core/useMediaQuery'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; import Hidden from '@material-ui/core/Hidden'; import Button from '@mat...
import { Router } from "express"; import requireAuth from "../helpers/requireAuth"; import User from "../models/User"; import log, { message } from "../util/log"; import { STATUSES } from "../common/statuses"; // Config const router = Router(); router.use(requireAuth); // GET method: get a user router.get("/", async ...
export { default as PopoverExample } from './PopoverExample'; export { default as TooltipExample } from './TooltipExample'; export { default as IOSPopoverExample } from './iOSPopoverExample'; export { default as EntryExitAnimation } from './ComplexExample'; export { default as MultiplePopovers } from './MultiplePopover...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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"; /** * Creates an HSM module in Amazon CloudHSM v2 cluster. *...
import { ForecastClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ForecastClient"; import { ListForecastExportJobsRequest, ListForecastExportJobsResponse } from "../models/models_0"; import { deserializeAws_json1_1ListForecastExportJobsCommand, serializeAws_json1_1ListForecastExportJobsCommand...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { DashboardCardComponent } from './dashboard-card.component'; describe('DashboardCardComponent', () => { let component: DashboardCardComponent; let fixture: ComponentFixture<DashboardCardComponent>; beforeEach(waitForAsync(...
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptCommonModule } from "nativescript-angular/common"; import { HomeRoutingModule } from "./home-routing.module"; import { HomeComponent } from "./home.component"; import { StarRateModule } from 'nativescript-star-ratings/angular'; @NgModule...
import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'app-admin-sidebar', templateUrl: './sidebar.component.html', styleUrls: ['./sidebar.component.scss'] }) export class SidebarComponent implements OnInit { constructor() { } ngOnInit(): void { } }
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'Squishy Tomatoes'; }
export { default } from './SearchCard'
import { Checkbox, FormControlLabel, Icon, IconButton, Theme, WithStyles } from "@material-ui/core"; import createStyles from "@material-ui/core/styles/createStyles"; import * as React from "react"; import withStyles from "@material-ui/core/styles/withStyles"; import TextField from "@material-ui/core/TextField"; import...
/* * 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 { BinanceExchangeMaxNumAlgoOrdersFilter } from './exchangeMaxNumAlgoOrdersFilter.model'; import { BinanceExchangeMaxNumOrdersFilter } from './exchangeMaxNumOrdersFilter.model'; import { BinanceIcebergPartsFilter } from './icebergPartsFilter.model'; import { BinanceLotSizeFilter } from './lotSizeFilter.model'; im...
/** * Edge Impulse API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * ...
/* * Copyright 2020 Salto Labs 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 applicable ...
import { computed } from 'vue-demi' import { useDesigner } from './useDesigner' export const useWorkbench = () => { const designer = useDesigner() return computed(() => designer.value.workbench) }
import { mapperRuntimeTypeDetectorRegistry } from '../../mapping'; import { object } from './primitive'; export const array = v => Array.isArray(v); export const set = v => v instanceof Set; export const map = v => v instanceof Map; export const objectMap = object; mapperRuntimeTypeDetectorRegistry .set('array', ar...
export type OrderAddress = { address: string; neighborhood: string; city: string; state: string; zipCode: string; additionalInfo: string; number: string; }; export type OrderReference = { idTenant: number; store: string; id: number; virtual: string; source: string; system: { source: strin...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import {Subject} from 'rxjs'; import {debounceTime} from 'rxjs/operators'; @Component({ selector: 'app-processes', templateUrl: './processes.component.html', styleUrls: ['./processes.component.scss'] }) export class Proc...
import { UserController, TokenController, PostController } from './controller'; import { verifyJWT } from './middlewares/auth-middleware'; export const Routes = [ { method: 'get', route: '/users', controller: UserController, action: 'all', middlewares: [verifyJWT], }, { method: 'get', ...
// /src/device/reset_tv/materialiconsoutlined/24px.svg import { createSvgIcon } from './createSvgIcon'; export const SvgResetTvOutlined = createSvgIcon( `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"> <g> <path d="M0,0h24v24H0V0z" fill=...
import { confirmUser, confirmUserURL, createUser, signOutURL, signUpURL } from './utils' import { expect } from 'chai' import fetch from 'cross-fetch' import { internet, random } from 'faker' import { signInURL } from './utils' // FIXME: When JWT auth is merged xdescribe('With the auth API', () => { describe('sign-u...
import React from "react"; import { createDemo } from "@wixc3/react-simulation"; import { AppProductsCollectionPage } from "../../../src/components/app-products-collection-page/app-products-collection-page"; import { Products } from "../../mocks/products"; import { CommonSimulationsSetup } from "../../setup/common-simu...
import {DeleteOutlined, PlusCircleOutlined} from "@ant-design/icons/lib"; import CreateIcon from '@material-ui/icons/CreateOutlined'; import { Icon } from '@ant-design/compatible'; import AddOutlinedIcon from '@material-ui/icons/AddOutlined'; import {Button, notification} from 'antd'; import autobind from "autobind-dec...
// This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js/dist/zone'; import 'zone.js/dist/zone-testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, platformBrowserDynamicTesting, } from '@angular/platform-browser-...
/** * Recursive partial type. */ type RecursivePartial<T> = { [P in keyof T]?: T[P] extends Array<infer I> ? Array<RecursivePartial<I>> : RecursivePartial<T[P]>; }; /** * Design tokens for neutral colors */ export type NeutralColorTokens = { // https://www.figma.com/file/KB9oUjMKen2cKnyPG7RgdS/Design-tokens-su...
import React, { useEffect, useState } from "react"; import { useHistory, useParams } from "react-router"; import { Spinner } from "../../components/Spinner"; import { useToast } from "../../hooks/useToast"; import { GenerateExportableDocument } from "../../components/GenerateExportableDocument"; import { Devis } from "...
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { InicioPage } from './inicio.page'; describe('InicioPage', () => { let component: InicioPage; let fixture: ComponentFixture<InicioPage>; beforeEach(async(() => { TestBed...
import { PropOptions } from 'compatible-vue'; import { PaginationProps } from './types/pagination'; import { Scroll, BasicColumn, FetchSetting } from './types/table'; import { TableRowSelection } from 'ant-design-vue/types/table/table'; import { FormProps } from '@/components/form/index'; // 注释看 types/table export con...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AddStocksComponent } from './add-stocks.component'; describe('AddStocksComponent', () => { let component: AddStocksComponent; let fixture: ComponentFixture<AddStocksComponent>; beforeEach(async(() => { TestBed.configureTesti...
export default function handleStatus( method: string, status: number, statusMessage?: string ) { // throw error if status is 400+ // returns error message if true, returns false if false if (status >= 400) { if (statusMessage) { return `${method.toUpperCase()}: Fetch returned with error code ${status}. Statu...
/*! Copyright (c) 2018 Siemens AG. Licensed under the MIT License. */ import { BehaviorSubject, Observable, Subject, Subscription } from "rxjs"; import { debounceTime, sampleTime } from "rxjs/operators"; import { clone, Controller, IoSource, IoSourceBackpressureStrategy, IoStateEvent, Uuid } from ".."; /** * A tupl...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'mint-sea-header', templateUrl: './header.component.html', styleUrls: ['./header.component.css'] }) export class HeaderComponent implements OnInit { public counter: number; constructor() { this.counter = 0; } ngOnInit(): void...
import { Text, VStack } from "@chakra-ui/react"; import { ContentBaseType, ContentItemDataBlob } from "@clowdr-app/shared-types/build/content"; import AmazonS3Uri from "amazon-s3-uri"; import React from "react"; import ReactPlayer from "react-player"; import { ExternalLinkButton } from "../Chakra/LinkButton"; import FA...
export const URL = 'https://www.google-analytics.com/batch'; export const CACHE_KEY_NAME = 'analytics-cache'; export const GA_UUID_KEY_NAME = 'ga-uuid'; export const BATCH_SIZE = 20; export const RETRY = 5000;
import { Editor, Path, Range } from 'slate'; import { DOMNode } from '../../utils/dom'; export declare type Diff = { start: number; end: number; insertText: string; removeText: string; }; export interface TextInsertion { text: Diff; path: Path; } /** * Takes two strings and returns a smart diff...
import {Component, OnInit} from '@angular/core'; import {MessageService} from '@atretyak1985/primeng/api'; import {Subscription} from 'rxjs'; import {AppConfigService} from '../../../service/appconfigservice'; import {AppConfig} from '../../../domain/appconfig'; @Component({ templateUrl: './linechartdemo.html', ...
import * as React from 'react'; const Alert28RegularIcon = () => { return( <?xml version="1.0" encoding="UTF-8"?> <svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Generator: Sketch 63.1 (92452) - https://s...
import Paragraph from '../tools/paragraph/dist/bundle'; import Module from '../__module'; import * as _ from '../utils'; import { BlockToolConstructable, InlineTool, InlineToolConstructable, Tool, ToolConfig, ToolConstructable, ToolSettings, } from '../../../types'; import BoldInlineTool from '../inline-t...
import Book from 'src/book/book.entity'; import { Entity, PrimaryGeneratedColumn, Column, ManyToMany } from 'typeorm'; @Entity() export default class Genre { @PrimaryGeneratedColumn() id: number; @Column() type: string; // n:n relation with genre bi-directional // @ManyToMany(type => Book, book => book....
import {Configs} from "../types" const configs: Configs<any> = { omitEmpty : {}, shouldValidateFields : {}, stopOnError : {}, validateEachArrayItem : {} } export default configs
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as React from 'react'; import configureStore from 'redux-mock-store'; import { shallow } from '../setup/test-setup'; import Dashboard from '../../client/components/Dashboard'; import { Provider } from 'react-redux'; const mockStore = configureStore(); const mockDispatchFn = jest.fn(); describe('<Dashboard /...
class Panel extends egret.DisplayObjectContainer{ background:egret.Bitmap; text:egret.TextField; container:egret.DisplayObjectContainer; close:egret.Bitmap; public constructor(){ super(); this.background = CreateBitmapUtil.ByName("Sprite_Select_png"); this.close = CreateB...
import { Injectable } from '@angular/core'; import { CanActivate, Router } from '@angular/router'; import { AuthService } from './auth.service'; import { RouterStateSnapshot } from '@angular/router/src/router_state'; @Injectable() export class AuthGuard implements CanActivate { constructor( private router: Rou...
import BIP32Factory from 'bip32'; import * as ecc from 'tiny-secp256k1'; import { describe, it } from 'mocha'; import * as bitcoin from '../..'; import { regtestUtils } from './_regtest'; const rng = require('randombytes'); const regtest = regtestUtils.network; const bip32 = BIP32Factory(ecc); describe('bitcoinjs-lib ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-hero-form-template', templateUrl: './hero-form-template.component.html', styleUrls: ['./hero-form-template.component.less'] }) export class HeroFormTemplateComponent implements OnInit { powers = ['Really Smart', 'Super Flexible', 'We...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Component, OnInit } from '@angular/core'; import template from './footer.component.html'; // import style from './footer.component.scss'; @Component({ selector: 'footer', // template, templateUrl: require('./footer.component.html').default, // styles: [ './footer.component.scss' ] }) export class FooterC...
import { isArray } from 'util'; export class CancelledError extends Error { constructor(message?: string) { super(message); // 'Error' breaks prototype chain here Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain } } export class CancelToken { static readonly No...
// TypeScript Version: 2.1 import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; export default class MdBeenhere extends React.Component<IconBaseProps, any> { }
// Copyright 2017-2021 @canvas-ui/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; export type LinkTypes = 'address' | 'block' | 'council' | 'extrinsic' | 'proposal' | 'referendum' | 'techcomm' | 'treasury'; export interface ExternalDef { chains: Record<string, stri...
import csurf from 'csurf' import { Router } from 'express' import { authenticate } from 'passport' import { LoginController, LogoutController, ProfileController, RegisterController } from '../controllers/auth' import { authenticated, unauthenticated } from '../strategy' const router = Router() const csrf = cs...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divid...
import React, { useEffect } from "react"; import { Container } from "react-bootstrap"; import { useQuery } from "@apollo/client"; import { useHistory } from "react-router"; import { useIsAuthenticated } from "../../auth"; import { TEST_REMOVE_BEFORE_GIT } from "../../api/gql/user"; import { Divider } from "../../compo...
export interface UsersInterface { id: string, cp: { amount: number, used: number, }, investment: [number] }
import { assert } from "chai"; import mocha from "mocha"; import HDKey from "../../src/core/utils/hdkey"; import { Wallet, Blockchains, AccountType, MnemonicUtils } from "../../src/index"; const mnemonic = "exchange neither monster ethics bless cancel ghost excite business record warfare invite"; const lang = "EN"; co...
import { SortType } from "../interfaces/IArchive"; import { IFileIndexItem, ImageFormat } from "../interfaces/IFileIndexItem"; import { sorter } from "./sorter"; describe("sorter", () => { it("sort on non valid null", () => { const list = [ { fileName: "b" } as IFileIndexItem, { ...
import React, { useState, useEffect } from 'react'; import { useParams } from 'react-router'; // eslint-disable-next-line no-unused-vars import { withTranslation, WithTranslation } from 'react-i18next'; // eslint-disable-next-line no-unused-vars import { IDynamicContent } from '../../../../../../TypeScript/Interfaces/I...
import { UserDto } from "./modules/user/dto/user.dto"; import { User } from '@entities/user.entity'; export const toUserDto = (data: User): UserDto => { if (!data) { return undefined; } const { id, username, password, mcuToken, automationEnable, automationParameter, automationAtte...
<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> ...
export * from './containerUtils'; export * from './context'; export * from './hooks';
export * from './profile_local.resolver'; export * from './profile_remote.resolver';
import { addToMutableArray, removeFromMutableArray, arrayRange, createRangeArray, preferredOrder, } from '../src/array' describe('util/array', () => { it('removeFromMutableArray', () => { const arr = [1, 2, 3, 4, 5, 6] removeFromMutableArray(arr, 1) expect(arr).toEqual([2, 3, 4, 5, 6]) remo...