text
stringlengths
10
953k
import { Component } from '@angular/core'; import { DialogRef, ModalComponent } from 'angular2-modal'; import { AlertWindowData } from './alertData'; @Component({ selector: 'modal-content', template: ` <div class="modal-header"> <h3 class="modal-title">{{context.title}}</h3> </div> <div c...
import { Component, OnInit, Inject } from 'angular2/core'; import {RouteParams} from 'angular2/router'; import { HeroService } from './hero.service'; @Component({ selector: 'my-hero-detail', templateUrl: 'app/hero-detail.component.html', styleUrls: [ 'app/hero-detail.component.css' ], inputs: [ 'hero'...
import ChromeStorage from "../lib/ChromeStorage"; export const TYPE_CUSTOMIZE = "customize"; export const TYPE_DEFAULT = "default"; const ALL_KEYS = [ "type", "name", "html", "css", "js", "headerColor", "toolbarColor", "hiddenPortalHeader", "portalHeaderColor" ]; const isCustomizeType = (type: stri...
import * as React from 'react' /** * Since react ref may Function-based or Ref-based * * Provide this hook to get Ref-based and Function-based in custom component * * * Usage: * * function View(props) { * const { hostRef, ref } = convertRef(props.forwardedRef) * * const onClick = useCallback(() =>...
// Base event handlers for browser window import {history} from "../common/store"; import routes from "../common/routes"; import {pathToRegexp} from "path-to-regexp"; // Global drag&drop const handleDragOver = (e: DragEvent) => { if (!(e.target && e.dataTransfer)) { return; } e.preventDefault()...
export default { generateURL () { return { url: 'https://source.unsplash.com/random/600x400' } } }
import trace from './trace'; const COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; const FN_NAME = /^\s*function\s*([^\s\(]*)/m; const FN_ARGS = /\(([^\)]*)\)/m; function getFunctionText(fn: Function) { return fn.toString().replace(COMMENTS, ''); } function getFunctionName(fn: Function) { return getFunctionTe...
import * as Chai from "chai"; import { BifrostProtocol } from "../src/bifrost/Protocol"; import { MessageFormatter } from "../src/MessageFormatter"; import { dummyProtocol } from "./mocks/dummyprotocol"; const expect = Chai.expect; const XMPP = new BifrostProtocol({ id: "prpl-jabber", name: "XMPP", homepag...
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core'; import { SelectionModel } from '@angular/cdk/collections'; import { MatTableDataSource } from '@angular/material/table'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { Top...
// Type definitions for lodash.drop 4.1 // Project: http://lodash.com/ // Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2....
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'daysSince' }) export class DaysSincePipe implements PipeTransform { transform(value: any): number { let today:Date = new Date(); //get current date and time let todayWithNoTime:any = new Date(today.getFullYear(),today.getMonth(),today.g...
export interface Command<Model, Real> { // Check if the model is in the right state to apply the command // WARNING: does not change the model checkPreconditions(m: Model): void; // Apply the command on the model apply(m: Model): void; // Receive the non-updated model and the real or system under test /...
import React from 'react' import { Input } from 'antd' import './style.scss' import { useActions } from 'kea' import { contributorsLogic } from 'logic/contributorsLogic' export const ContributorSearch = () => { const { processSearchInput } = useActions(contributorsLogic) return ( <Input.Search ...
import { Expose } from 'class-transformer' export class LabelItem { id: number; text: string; @Expose({ name: 'prefix_key' }) prefixKey: string | null; @Expose({ name: 'suffix_key' }) suffixKey: string | null; @Expose({ name: 'background_color' }) backgroundColor: string; @Expose({ name: 'text_co...
import React from 'react'; import { FrameType } from '../../types/frame'; export declare type Props = FrameType & { onPress?: () => void; }; export declare const TouchableFrame: React.NamedExoticComponent<Props>;
import gql from 'graphql-tag'; import { ApolloCache } from 'apollo-cache'; //import * as GetCartItemTypes from './pages/__generated__/GetCartItems'; import * as LaunchTileTypes from './pages/__generated__/LaunchTile'; import { Resolvers } from 'apollo-client' import { GET_CART_ITEMS } from './pages/cart'; export con...
import { customElement, elements, FASTElement } from "@microsoft/fast-element"; import { assert, expect } from "chai"; import { fixture } from "../fixture"; import { CSSCustomPropertyDefinition } from "./behavior"; import { ConstructableStylesCustomPropertyManager, CustomPropertyManagerClient, StyleElementC...
import ReactDOM from "react-dom"; import App from "./App"; ReactDOM.render(<App />, document.getElementById("groot"));
/* Copyright 2021 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { SidenavItem } from '../../sidenav/sidenav-item/sidenav-item.interface'; @Component({ selector: 'fury-navigation-item', templateUrl: './navigation-item.component.html', styleUrls: ['./navigation-item.component.scss'] }) expor...
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class LocalstorageService { localStorage:Storage; constructor() { this.localStorage= window.localStorage; } get(key:string){ if (this.isLocalStorageSupported) { let data:any=this.localS...
import { Component, OnInit } from '@angular/core'; import { AuthService } from '../auth/auth.service'; import { TokenStorageService } from '../auth/token-storage.service'; import { AuthLoginInfo } from '../auth/login-info'; import { Router} from '@angular/router'; @Component({ selector: 'app-login', templateUrl: ...
export interface InputDataContract { AgentName : string; AccessToken : string; AccessTokenType : string; CollectionUri : string; RunIdentifier : string; TeamProject : string; TestSelectionSettings : TestSelectionSettings; VsTestConsolePath : string; UsingXCopyTestPlatformPackage : bo...
import { Component } from '@angular/core'; import { OnInit } from '@angular/core'; import { Router } from '@angular/router-deprecated'; import { Hero } from './hero'; import { HeroService } from './hero.service'; @Component ({ selector: 'my-dashboard', templateUrl: 'app/dashboard.component.html', styleUrl...
import { HttpClientModule } from '@angular/common/http'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { ChartsModule } from 'ng2-charts'; import { FooterComponent } from '../footer/footer.component'; import { HeaderComponent } f...
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapMo...
import { ClientEvents } from 'discord.js'; export interface DiscordGuardOptions { instance: unknown; methodName: string; event: keyof ClientEvents; context: ClientEvents[keyof ClientEvents]; }
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { debounceTime, distinctUntilChanged, switchMap } from 'rxjs/operators'; @Component({ selector: 'app-header', templateUrl: './header.component.html' }) export class HeaderComponent { constructor(private router: ...
 class WadoRsProxy{ public _baseUrl: string = ""; constructor(baseUrl: string = null) { this._baseUrl = baseUrl; } public get BaseUrl() { if (this._baseUrl === null) { return DICOMwebJS.ServerConfiguration.getWadoRsUrl(); } else { return this._baseUrl; } ...
import { createStore, fillState } from 'test/Helpers' import { Model, Attr, Str } from '@/index' describe('feature/repository/destroy_composite_key', () => { class User extends Model { static entity = 'users' static primaryKey = ['idA', 'idB'] @Attr() idA!: any @Attr() idB!: any @Str('') name!:...
import autoresetSaga from '../actions/autoreset' import chat2Saga from '../actions/chat2' import configSaga from '../actions/config' import createSagaMiddleware from 'redux-saga' import deeplinksSaga from '../actions/deeplinks' import deviceSaga from '../actions/devices' import fsSaga from '../actions/fs' import gitSag...
import execa from 'execa'; import path from 'path'; import fs from 'fs'; import { KeyValue } from '@smartems/data'; import { PluginDevInfo, ExtensionSize, ZipFileInfo, PluginBuildReport, PluginHistory } from './types'; const md5File = require('md5-file'); export function getGrafanaVersions(): KeyValue<string> { con...
import Sidebar from "@components/Sidebar"; import { ToastContainer } from "react-toastify"; const AdminLayout = ({ children }) => { return ( <> <div className="grid grid-cols-[1fr] lg:grid-cols-[225px,1fr] grid-rows-[max-content,1fr] lg:grid-rows-1 h-screen max-h-screen overflow-y-hidden"> <div> ...
// Type definitions for sandboxed-module v2.0.3 // Project: https://github.com/felixge/node-sandboxed-module // Definitions by: Sven Reglitzki <https://github.com/svi3c/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference path="sandboxed-module.d.ts" /> import SandboxedModule = require(...
version https://git-lfs.github.com/spec/v1 oid sha256:298a348804c8de2b29cb221fed21304e6a62813d543b2d1c2a5ade153a9966de size 1560400
import { Neovim } from '@chemzqm/neovim' import languages from '../../languages' import workspace from '../../workspace' import path from 'path' import { ListContext, ListItem } from '../../types' import BasicList from '../basic' import { DocumentLink, Location } from 'vscode-languageserver-types' import { URI } from '...
import { assocPath, compose, pathOr } from 'ramda'; import * as React from 'react'; import { Sticky, StickyProps } from 'react-sticky' import Paper from '@material-ui/core/Paper'; import { StyleRulesCallback, Theme, withStyles, WithStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typ...
#!/usr/bin/env ts-node export {}; //# sourceMappingURL=webhook.spec.d.ts.map
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MyLogisticsPage } from './my-logistics.page'; describe('MyLogisticsPage', () => { let component: MyLogisticsPage; let fixture: ComponentFixture<MyLogisticsPage>; beforeEach...
import { customCors, AWSFunction, handlerPath } from '@medii/api-lambda'; export default { handler: `${handlerPath(__dirname)}/handler.main`, timeout: 10, versionFunction: false, events: [ { http: { method: 'get', path: '${self:custom.paths.public}cur...
import { StoreAnimationModule } from './store-animation.module'; describe('StoreAnimationModule', () => { let storeAnimationModule: StoreAnimationModule; beforeEach(() => { storeAnimationModule = new StoreAnimationModule(); }); it('should create an instance', () => { expect(storeAnima...
// app/common/constants/atexo/atexo-path.constant.ts /** * * @name atexo-path.constant.ts * */ export const AtexoPathConstant = { base: './app/', folder: { common: './app/common/' } };
import { TimestampInMilliseconds, UserId } from '@app/core'; /** * Interface for auditable objects with creation & modification info */ export interface IsAuditable { createdBy?: UserId; createdAt?: TimestampInMilliseconds; lastModifiedBy?: UserId; lastModifiedAt?: TimestampInMilliseconds; }
<TS language="pt_BR" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Clique com botão direito para alterar endereço ou rótulo</translation> </message> <message> <source>Create a new address</source...
import React from 'react'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import { Route, StaticRouter } from 'react-router-dom'; import { ClusterFeaturesEnum } from 'generated-sources'; import { fetchClusterListAction } from 'redux/actions'; import configureStore from 'redux/store/configureSto...
import { EditorContext, Spell, ThothWorkerInputs, } from '@latitudegames/thoth-core/types' import { useContext, createContext, useRef, useEffect } from 'react' import { postEnkiCompletion } from '../../services/game-api/enki' import { completion as _completion } from '../../services/game-api/text' import { invok...
import { RequestHandler } from 'express' import logger from '../../logger' import type { UserService, PrisonService } from '../services' import config from '../config' export default function populateCurrentUser(userService: UserService, prisonService: PrisonService): RequestHandler { return async (req, res, next) =...
import { async, ComponentFixture, TestBed } from '@angular/core/testing' import { PlayerSlidesComponent } from './player-slides.component' describe('PlayerSlidesComponent', () => { let component: PlayerSlidesComponent let fixture: ComponentFixture<PlayerSlidesComponent> beforeEach(async(() => { TestBed.con...
import { Request, Response } from 'express'; import { getTopUsersFromDB } from '../models/get-top-user-model'; export async function getTopUserController(req:Request, res:Response){ try { const result = await getTopUsersFromDB(); if (result){ res.statusCode = 200; res.status...
export const PAGER_CLASS = 'dx-pager'; export const LIGHT_MODE_CLASS = 'dx-light-mode'; export const PAGER_PAGES_CLASS = 'dx-pages'; export const PAGER_PAGE_INDEXES_CLASS = 'dx-page-indexes'; export const PAGER_PAGE_CLASS = 'dx-page'; export const PAGER_SELECTION_CLASS = 'dx-selection'; export const PAGER_PAGE_SIZE_CLA...
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { JwtModule } from '@auth0/angular-jwt'; import { RoutingModule } from './routing.module'; import { SharedModule } from './shared/shared.module'; import { CatService } from './services/cat.service'; import { UserService } from './services/user.se...
/* * @license Apache-2.0 * * Copyright (c) 2021 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 { PartialType } from '@nestjs/mapped-types'; import { CreateWorkRecordDto } from './create-work-record.dto'; export class UpdateWorkRecordDto extends PartialType(CreateWorkRecordDto) {}
import crypto from 'crypto'; /** * Verify an authenticator's signature * * @param signature attStmt.sig * @param signatureBase Output from Buffer.concat() * @param publicKey Authenticator's public key as a PEM certificate * @param algo Which algorithm to use to verify the signature (default: `'sha256'`) */ expo...
import { gql } from '@apollo/client' import * as React from 'react' import * as Apollo from '@apollo/client' import * as ApolloReactComponents from '@apollo/client/react/components' import * as ApolloReactHoc from '@apollo/client/react/hoc' export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> const def...
const express = require("express"); const connectDB = require("./config/db"); const path = require("path"); const app = express(); // Connect to Database connectDB(); // Initialize Middleware app.use(express.json({ extended: false })); // Define Routes app.use("/api/users", require("./routes/api/users")); app.use("...
import Prismic from '@prismicio/client'; export function getPrismicClient(req?: unknown) { const prismic = Prismic.client( process.env.PRISMIC_ENDPOINT, { req, accessToken:process.env.PRISMIC_ACCESS_TOKEN } ) return prismic }
import * as React from 'react' import { ListContextProps } from './List.interface' const DEFAULT_CONTEXT = {} const ListContext = React.createContext<ListContextProps>( DEFAULT_CONTEXT as ListContextProps ) export default ListContext
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AssignGroupToResourceDialogComponent } from './assign-group-to-resource-dialog.component'; describe('AssignGroupToResourceDialogComponent', () => { let component: AssignGroupToResourceDialogComponent; let fixture: ComponentFixture<...
/** * Copyright (c) 2019, cic (http://www.cic.org) All Rights Reserved. * * cic licenses this file to you 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/L...
/// <reference path="../../toolbox.ts" /> /// <reference path="../readerToolsModel.ts" /> import { DRTState, getTheOneReaderToolsModel, MarkupType, ReaderToolsModel } from "../readerToolsModel"; import { beginInitializeDecodableReaderTool } from "../readerTools"; import { ITool } from "../../toolbox";...
import * as React from 'react'; import { mergeProps, getSlots, resolveShorthandProps } from '@fluentui/react-compose/lib/next/index'; import { AvatarProps, AvatarState } from './Avatar.types'; import { useMergedRefs } from '@uifabric/react-hooks'; import { getInitials, nullRender } from '@uifabric/utilities'; import { ...
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { SharedModule } from "@app/shared/shared.module"; import { NativeScriptCommonModule } from "nativescript-angular/common"; import { NativeScriptLocalizeModule } from "nativescript-localize/angular"; import { NativeScriptMaterialCardViewModule } from "na...
import React, { Component } from 'react' import { Text, View, StyleSheet } from 'react-native' import { warna } from '../../../../../constants' import { getStatusPembelian } from '../../../../../models/Trans' import { Feather } from '../../../../../constants/Feather' const invoice = StyleSheet.create({ container...
import * as React from 'react'; const DataPie20FilledIcon = () => { return( <?xml version="1.0" encoding="UTF-8"?> <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Generator: Sketch 64 (93537) - https://sk...
import { useDispatch, useSelector } from 'react-redux' import { selectAvailableVariableNames, selectCurrentDate, selectCurrentVariable, } from '../../selectors' import Button from 'components/Button/Button' import styled from 'styled-components' import { setCurrentVariable } from '../../actions' import { useMemo ...
import { OrderSide } from "coinbase-pro-node" import { Eve } from "." import { Base } from "./Base" import { client } from "./client" export class Balance extends Base<'balance'> { private eth?: number private usd?: number public setEth(eth: number) { this.eth = eth } public setUsd(usd: number) { t...
import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import Menu, { MenuContext, MenuOption, MenuOptions, MenuTrigger } from 'react-native-menu'; import { PopoverPropsType } from './PropsType'; export interface PopoverProps extends PopoverPropsType { style?: StyleProp<ViewStyle>; ...
import { convert, resolveRefs, stripSchema, supportedTextCases } from './converter'; // NodeJS: Export types and utility functions export * from './interfaces'; export { supportedTextCases, resolveRefs, stripSchema, convert } // Browser: Inject `SchemaConverter` in Window object const globalAny:any = global; ...
import { Buffer, Neovim } from '@chemzqm/neovim' import debounce from 'debounce' import { DidChangeTextDocumentParams, DocumentHighlight, DocumentHighlightKind, Emitter, Event, Position, Range, TextDocument, TextEdit } from 'vscode-languageserver-protocol' import Uri from 'vscode-uri' import { WorkspaceConfiguration, C...
/** * HTTP gateway for GRPC service * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: version not set * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen....
import {Command} from '../Command'; import {MemeInterface, TypeEnum, AlignEnum, TemplateEnum, FrameInterface, TextInterface} from '../Meme'; export class Animal extends Command implements MemeInterface { public template = TemplateEnum.DefaultHTML; public meme = { w: 1446, h: 1500, image: { ...
import { Injectable } from '@nestjs/common'; import { GqlModuleOptions, GqlOptionsFactory } from '@nestjs/graphql'; @Injectable() export class GqlConfigService implements GqlOptionsFactory { createGqlOptions(): GqlModuleOptions { return { autoSchemaFile: true, buildSchemaOptions: { dateScalar...
import { DiceRoll } from 'rpg-dice-roller'; import { GRID_HEIGHT, GRID_WIDTH, PLAYER_BASE_ATTACK } from '../constants/config'; import { CreatureType } from '../constants/creatures'; import { CREATURES } from '../constants/creatures'; import { getTile, Tile } from '../constants/tiles'; import { SOUNDS } from '../game-u...
export class ClientStateLog { constructor( public id: number, public date: string, public time: string, public filename: string ) { } } export class ClientStateLogs { constructor( public logItems: ClientStateLog[] ) { } }
// *** 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"; /*...
import React, { useRef, useEffect, useMemo, SyntheticEvent } from 'react' import { getAssetUrl } from 'service/gamedb' import { MovieSpecialCast } from '../types' type VideoEvent = (e: SyntheticEvent<HTMLVideoElement>) => void type VideoRef = (el: HTMLVideoElement | null) => void export interface VideoController { e...
/** * File associations. * * macOS (corresponds to [CFBundleDocumentTypes](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685)) and NSIS only. * * On Windows works only if [nsis.perMachine](https://e...
export * from "./types"; export * from "./pipe/public-api"; export * from "./functions/public-api"; export * from "./services/public-api"; export * from "./components/public-api"; export * from "./configurator.module";
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ export * from "./EcdhOptions"; export * from "./EcdsaOptions"; export * from "./Ecd...
/** * * * OpenAPI spec version: 20200801 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ...
/* * 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. */ export { SnapshotList } from './snapshot_list';
export declare function assertEqual(actual: string, expected: string, error?: string | Error): void; export declare function assertNotEqual(actual: string, expected: string, error?: string | Error): void; export declare function normalize(a: string): string; export declare function normalizeA(a: string): Promise<string...
import { DualAxis } from "../axis/Axis" import { AxisConfig, FontSizeManager } from "../axis/AxisConfig" import { ChartInterface } from "../chart/ChartInterface" import { ChartManager } from "../chart/ChartManager" import { BASE_FONT_SIZE, SeriesName, SeriesStrategy, } from "../core/GrapherConstants" import...
/** * Gantt Action Modules */ export * from './edit'; export * from './column-reorder'; export * from './column-resize'; export * from './filter'; export * from './sort'; export * from './dependency'; export * from './selection'; export * from './toolbar'; export * from './day-markers'; export * from './context-menu'...
import { Moment } from 'moment'; export interface NewContest { title: string; description: string; prizeAmount: number; deadlineDate: Moment; images: Array<string>; }
import * as React from 'react'; import { ReactNode } from 'react'; import '../stylesheets/App.css'; interface Props { children: ReactNode; } export const AppWrapper = (props: Props) => { return <div className="App">{props.children}</div>; };
import { configEnvWithTenderlyPolygonFork } from '../../../../support/steps/configuration.steps'; import { supply, borrow, repay, withdraw } from '../../../../support/steps/main.steps'; import { dashboardAssetValuesVerification, switchApyBlocked, } from '../../../../support/steps/verification.steps'; import { skipS...
import { Injectable } from "@angular/core"; import { HttpClient, HttpHeaders } from "@angular/common/http"; import { Observable } from "rxjs"; import { map } from "rxjs/operators"; import { User } from "../_models/User"; const httpOptions = { headers: new HttpHeaders({ "Content-Type": "application/json", ...
import axios from "axios" import { connect, ErrorCallback, HttpClient, MqttClient, unpublishRecursively } from "@artcom/mqtt-topping" import { createLogger, Winston } from "@artcom/logger" import { BootstrapData, InitData, Options, QueryConfig, QueryParams } from "./types" export = async function init( ur...
import { FormBuilderModule } from './control-builder/form-builder.module'; import { HomeModule } from "./home/home.module"; import { BrokerService } from "./services/broker.service"; import { BrowserModule } from "@angular/platform-browser"; import { Injector, NgModule, ErrorHandler } from "@angular/core"; import { ...
export class RegExps { readonly start: RegExp; readonly mirrorTar: RegExp; readonly mirror: RegExp; readonly mirrorStatus: RegExp; readonly list: RegExp; readonly getFolder: RegExp; readonly cancelMirror: RegExp; readonly cancelAll: RegExp; readonly disk: RegExp; readonly url: RegExp; constructor...
import React from 'react'; import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers'; export interface NavbarToggleProps extends BsPrefixPropsWithChildren { label?: string; onClick?: React.MouseEventHandler; } declare type NavbarToggle = BsPrefixRefForwardingComponent<'button', Navba...
import { SchemaComposer, dedent } from '../..'; describe('github issue #238: `setTypeName` doesnt update the usage of the type', () => { it('try to rename types with Query', async () => { const sc = new SchemaComposer(); sc.addTypeDefs(` type A { a: String } type B { b: String } union U = A...
import fs from 'fs'; import * as handlers from '../../src/workers/local-handlers'; import * as e2e from '../setup/e2e'; import * as fixtures from '../fixtures'; it('does not process requests twice', async () => { jest.setTimeout(45_000); const provider = e2e.buildProvider(); const deployerIndex = e2e.getDeploy...
import assertNever from 'assert-never'; import { Reducer, useCallback, useMemo, useReducer } from 'react'; export interface ReducerState<T> { filterValues: ReadonlyArray<T>; defaultValues: ReadonlyArray<T>; show: 'default' | 'filter'; loadingFilter: boolean; loadingDefault: boolean; lastSearch:...
import { Injectable } from '@nestjs/common'; import path from 'path'; import fs from 'fs'; @Injectable() export class DictionaryService { wordByUser: string[]; words: string[]; lower_words: string[]; dictionaryMain: JSON; dictionaryByUser: JSON; definitions: Object; RandomIntDic: Function; RandomListDi...
export default { $schema: "http://json-schema.org/schema#", title: "Viewport positioner", description: "A viewport positioner component's schema definition.", type: "object", id: "@microsoft/fast-components-react-base/viewport-positioner", properties: { disabled: { title: "Di...