text
stringlengths
10
953k
import { useEffect, useState } from 'react'; import { Button } from './components/Button'; import { MovieCard } from './components/MovieCard'; import { SideBar } from './components/SideBar'; import { Content } from './components/Content'; import { api } from './services/api'; import './styles/global.scss'; import ...
const PLUGIN_TYPES = { WORKFLOW: 'type:workflow', CLIENT: 'type:client' } export default PLUGIN_TYPES
import * as React from "react"; const Equipment = () => { return <div>Equipment</div>; } export default Equipment;
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import chai from "chai"; import chaiAsPromised from "chai-as-promised"; import { it } from "mocha"; import { SolutionRunningState, TeamsAppSolution } from " ../../../src/plugins/solution"; import { AppStudioTokenProvider, ConfigFolderName, ...
import * as dotenv from 'dotenv'; dotenv.config() // ------- ENVIRONMENT ------- export const NODE_ENV_TYPES = { DEV: 'development', PROD: 'production', TEST: 'test', }; export const NODE_ENV: string = process.env.NODE_ENV || NODE_ENV_TYPES.DEV; export const isDevelopment: boolean = NODE_ENV === NODE_ENV_T...
import PDFDict from "../objects/PDFDict"; import PDFString from "../objects/PDFString"; import PDFHexString from "../objects/PDFHexString"; import PDFName from "../objects/PDFName"; import PDFObject from "../objects/PDFObject"; import PDFNumber from "../objects/PDFNumber"; import PDFArray from "../objects/PDFArray"; im...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="eu_ES"> <context> <name>MainUI</name> <message> <location filename="../MainUI.ui" line="14"/> <source>Search For...</source> <translation type="unfinished"></translation> </message> <message> ...
import * as AWS from "aws-sdk"; import { AttributeMap } from "aws-sdk/clients/dynamodb"; // Based on https://stackoverflow.com/a/57598497/670400 // Customization 1: choose your region const DynamoDb = new AWS.DynamoDB.DocumentClient({ region: "us-east-1" }); // Customiation 2: specify the table name const tableNa...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { LyToolbarModule } from '@alyle/ui/toolbar'; import { LyTypographyModule } from '@alyle/ui/typography'; import { LyButtonModule } from '@alyle/ui/button'; import { LyBadgeModule } from '@alyle/ui/badge'; import { LyIconMod...
import { RouterModule } from '@angular/router'; import { NgModule } from '@angular/core'; import { appRoutes } from './app.routing'; import { AppComponent } from './app.component'; import { BrowserModule } from '@angular/platform-browser'; import { environment } from '../environments/environment'; import { BrowserAnima...
import * as _ from "../index"; declare module "../index" { interface LoDashStatic { /** * Creates an object that inherits from the given prototype object. If a properties object is provided its own * enumerable properties are assigned to the created object. * * @param pro...
/* * 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 { getTickFormat } from '../get_tick_format'; describe('getTickFormat'...
import { AuthService } from './auth.service'; import { QuestService } from './quest.service'; import { RewardService } from './reward.service'; import { UserService } from './user.service'; import { MessagingService } from './messaging.service'; import { LogService } from './log.service'; import { NgModule } from '@ang...
import { propEq, __ } from "ramda"; import { Persona } from "./persona"; import { Config } from "../config"; import { UsesAbilities } from "@serenity-js/core"; export interface PersonaManager { tearDown(actor: UsesAbilities); getAllPersonas(): ReadonlyArray<Persona>; addPersona(expectedPersona: Persona); reser...
import { AddRecord, BulkAddRecord, BulkRemoveRecord, BulkUpdateRecord, DocAction, getTableId, RemoveRecord, ReplaceTableData, TableDataAction, UpdateRecord } from "app/common/DocActions"; import { getSetMapValue } from "app/common/gutil"; /** * A little class for tracking pre-existing rows touched by a seque...
export const EventOverrides = <any>{}; EventOverrides.GUILD_ROLE_CREATE = function ( roleUpdate: discord.Event.IGuildRoleCreate, ) { return [roleUpdate.role]; }; /* EventOverrides['CHANNELS_PINS_UPDATE'] = function( ch: discord.Event.IChannelPinsUpdate ) { return [ch]; }; */ EventOverrides.GUILD_ROLE_UPDATE = ...
/* eslint-disable */ import { AttributeDescriptorSyntax, _decode_AttributeDescriptorSyntax, _encode_AttributeDescriptorSyntax, } from "../AttributeCertificateDefinitions/AttributeDescriptorSyntax.ta"; import { id_mr_attDescriptorMatch } from "../AttributeCertificateDefinitions/id-mr-attDescriptorMatch.va"; ...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'cli-devtool-ui'; }
/** * DeploymentService * DeploymentService API automatically generated * * OpenAPI spec version: 1.0.0 * Contact: viggo@effectivecode.se * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import {...
/* eslint-disable @typescript-eslint/no-empty-interface */ /* eslint-disable no-dupe-class-members */ export enum Type { parenthesis = 'Parenthesis', number = 'Number', name = 'Name', string = 'String', } export type Value = string | number export interface Position { line: number // >= 1 column: number //...
import { Component, OnInit } from '@angular/core'; import { Gallery, GalleryItem, ImageItem, ThumbnailsPosition, ImageSize, GalleryRef, } from 'ng-gallery'; import { Lightbox } from 'ng-gallery/lightbox'; @Component({ selector: 'app-gallery', templateUrl: './gallery.component.html', styleUrls: ['./gal...
import { MigrationBase } from './base'; export class Migration604FixClassItem extends MigrationBase { static version = 0.604; async updateItem(item: any) { if (item.type !== 'class') return; if (Array.isArray(item.data.ancestryFeatLevels)) { item.data.ancestryFeatLevels = { value:...
import * as React from "react"; import { useDispatch } from "react-redux"; import { clearUsers } from "../Ducks/Github/Actions"; export default function ClearButton() { const dispatch = useDispatch(); const handleClick = () => { dispatch(clearUsers()); }; return <button onClick={handleClick}>clear users<...
declare namespace jdk { namespace jfr { namespace consumer { class RecordedClassLoader extends jdk.jfr.consumer.RecordedObject { static createFactory(arg0: jdk.jfr.internal.Type, arg1: jdk.jfr.consumer.TimeConverter): jdk.jfr.consumer.ObjectFactory<jdk.jfr.consumer.RecordedClassLoader> publ...
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config'; interface Blob {} declare class RDSDataService ...
import { autoinject, bindable } from 'aurelia-framework'; import { BindingSignaler } from 'aurelia-templating-resources'; import { Router } from "aurelia-router"; import { ResourceFactory } from '../../resources/system/resource-factory'; import { MdToastService } from 'aurelia-materialize-bridge'; import { I18N } from ...
/* * Copyright 2015-2016 Imply Data, Inc. * Copyright 2017-2018 Allegro.pl * * 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 * * Unl...
import { ApiProperty } from '@nestjs/swagger'; import { IsNumber, IsOptional, IsString } from 'class-validator'; export class CreateProductDto { @ApiProperty({ required: true }) @IsString() productName!: string; @ApiProperty({ required: true }) @IsString() description!: string; @ApiProperty({ required:...
import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { CampaignStatusCreateNestedOneWithoutCampaignInput } from '../campaign-status/campaign-status-create-nested-one-without-campaign.input'; import { CampaignRoleCreateNestedManyWithoutCampaignInput } from '../campaign-role/campai...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import * as React from "react"; import * as R from "../../resources"; import { EventSubscription, Prototypes, Specification } from "../../../core"; import { Actions } from "../../actions"; import { EditableTextView, SVGImag...
import { CONFIG } from "../../utils/globals"; import { TwitchEvents } from "../../interfaces"; import { TwitchPrivateMessage } from "@twurple/chat/lib/commands/TwitchPrivateMessage"; import { checkPerms } from "../../utils/functions/checkPerms"; import ms from "ms"; export const event: TwitchEvents = { name: "mess...
import { AccountModel } from '../../domain/models' import { mockAccountModel } from '../../domain/test' import { Authentication, AuthenticationParams } from '../../domain/usecases' export class AuthenticationSpy implements Authentication { account = mockAccountModel() params: AuthenticationParams = { email: ''...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Any modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /* * Licensed to Ela...
import { ensure } from '@salesforce/ts-types'; /* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /** * A table option configuration type tha...
import React from 'react'; import { FGM_WINDOW_POSITION } from '../../lib/FGM'; import Logger from '../../lib/Logger'; import styles from './SetWindowAppPositionView.module.scss'; interface IProps { style?: React.CSSProperties; wpos?: FGM_WINDOW_POSITION; onWPosChange: (wpos: FGM_WINDOW_POSITION) => void; } int...
import { h } from 'preact'; import { shallow } from 'enzyme'; import { Page, viewFunction as PageComponent } from '../../../js/renovation/pager/pages/page'; import { PAGER_PAGE_CLASS, PAGER_SELECTION_CLASS } from '../../../js/renovation/pager/common/consts'; describe('Small pager pages', () => { it('view', () => { ...
import { combineReducers } from 'redux'; import { Task } from '../actions'; import { tasksReducer } from './tasks'; export interface StoreState { tasks: Task[]; } export const reducers = combineReducers<StoreState>({ tasks: tasksReducer });
import chaiAsPromised from 'chai-as-promised'; import chai, {expect} from 'chai'; import getStream from 'get-stream'; import {PassThrough} from 'stream'; import {Cli, CommandClass, Command} from '../sources/advanced'; chai.use(chaiAsPromised); const log =...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Action } from '../action/'; import { BaseService } from '../base'; import { Resource } from '../resource'; import { Role } from '../role'; export abstract class AuthorizationService extends BaseService { public abstract addPermission(permission: string): void; public abstract addPermissionsByRoles(rol...
import moment from 'moment-timezone'; import { BaseFilter, BaseQuery } from '@cubejs-backend/schema-compiler'; const GRANULARITY_TO_INTERVAL: Record<string, (date: string) => string> = { day: date => `DATE_TRUNC('day', ${date})`, week: date => `DATE_TRUNC('week', ${date})`, hour: date => `DATE_TRUNC('hour', ${da...
import { IsNotEmpty } from 'class-validator'; export class UserCreateBankApplicationReqDto { @IsNotEmpty() fullName: string; @IsNotEmpty() bankingCardFileUuid: string; @IsNotEmpty() bankCode: string; @IsNotEmpty() bankNumber: string; }
import { InstantiableConfig } from '../../../../Instantiable.abstract' import { didZeroX, zeroX } from '../../../../utils' import { Condition } from '../Condition.abstract' import Account from '../../../../nevermined/Account' /** * Condition allowing to transfer an NFT between the original owner and a receiver */ ex...
import * as React from "react"; import * as sqlite from "sqlite"; import { useCommandProvider } from "../core/commandProvider"; import { useNavigation } from "../core/navigation"; import { useRecipeBox } from "../core/recipes/recipeBox"; import { useImport } from "../core/tools/import"; import { useStatistics } from "....
"use strict"; import "@citizenfx/server"; import { randomBytes, createCipheriv, createDecipheriv } from "crypto"; export default class Crypter { #iv: Buffer = randomBytes(16); #algorithm = process.env.CRYPTER_ALGORITHM; #secretKey = process.env.CRYPTER_SECRET_KEY; /** * @description * Encry...
import 'react-native'; import * as React from 'react'; import { RenderResult, act, fireEvent, render } from '@testing-library/react-native'; import { ButtonGroup } from '../../main'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; // eslint-disable-next-line @...
export * from './const'; export * from './query.params'; export * from './resource';
import ormconfig from "./ormconfig"; const ormseedconfig = { ...ormconfig, migrations: ['dist/common/seeds/**/*{.ts,.js}'], cli: { migrationsDir: 'src/common/seeds' } } export default ormseedconfig;
import * as assert from 'assert'; import * as path from 'path'; import * as Mocha from 'mocha'; import { promises as fsPromises } from 'fs'; // You can import and use all API from the 'vscode' module // as well as import your extension to test it import * as vscode from 'vscode'; import { find, propEq } from "ramda"; ...
import { TabPanel, Tabs } from "app/components/Tabs"; import { TransactionFee } from "domains/transaction/components/TransactionDetail"; import { SendRegistrationComponent, SendRegistrationDetailsOptions, SendRegistrationForm, } from "domains/transaction/pages/SendRegistration/SendRegistration.models"; import React ...
import camelCaseToDashCase from '../camelCaseToDashCase'; describe('ts-utils/strings/camelCaseToDash', () => { it('converts camelcase to dash', () => { expect(camelCaseToDashCase('camelCase')).toBe('camel-case'); }); });
import { ElementRef, ViewContainerRef } from '@angular/core'; import { EngBase } from './common/angularbase'; export declare class ExtTriggerComponent extends EngBase { constructor(eRef: ElementRef, hostComponent: EngBase, vc: ViewContainerRef); ngOnInit(): void; ngAfterViewInit(): void; ngOnChanges(cha...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject } from '@angular/core'; import { Router } from '@angular/router'; import {NB_AUTH_OPTIONS, NbAuthResult, NbAuthService} from '@nebular/auth'; import {getDeepFromObject} from '@nebular/auth/helpers'; @Component({ selector: 'xc-request-password-pag...
import { chakra } from "@chakra-ui/react"; import React, { useEffect } from "react"; import Router from "next/router"; import Page from "~/components/Page"; import { toast } from "~/utils/toast"; import { useLogout } from "~/lib/hooks/api"; const LogoutPage: React.FC = () => { const { mutateAsync: logoutAsync } = us...
import type { TransformOptions } from '@babel/core'; import type { Configuration } from 'webpack'; import type { StorybookOptions } from '@storybook/core/types'; export declare function babel(config: TransformOptions, { typescriptOptions }: StorybookOptions): TransformOptions; export declare function webpackFinal(confi...
import GlobalExtension from "./GlobalExtension"; // 挂载全局拓展 export default function mountGlobal(): void { _.assign(global, GlobalExtension); }
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnChanges, Output } from '@angular/core'; import { EmojiData } from './data/data.interfaces'; import { DEFAULT_BACKGROUNDFN, EmojiService } from './emoji.service'; export interface Emoji { /** Renders the native unicode emoji */ isNativ...
import { interpret, Interpreter } from "xstate"; // import { SimulatedClock } from "xstate/lib/SimulatedClock"; import { createNodeReadyMachine, NodeReadyContext, NodeReadyEvent, NodeReadyStateSchema, } from "./NodeReadyMachine"; describe("lib/driver/NodeReadyMachine", () => { let service: | undefined | Inter...
import MessageStore from './MessageStore'; import IMessage from '../interfaces/IMessage'; class InMemoryMessageStore implements MessageStore { private messages: IMessage[]; constructor() { this.messages = []; } /** * Salva un mensajes en almacenamiento * @param message Mensaje * @returns numero ...
/** * @since 2019-12-21 10:32 * @author vivaxy */ import resolveLast from '../index'; test('resolveLast', async function() { // original async function function sleep(timeout: number): Promise<void> { return new Promise(function(resolve) { setTimeout(resolve, timeout); }); } // transformed as...
// Copyright 2017-2018 @polkadot/ui-app authors & contributors // This software may be modified and distributed under the terms // of the ISC license. See the LICENSE file for details. import { Props } from '../types'; import React from 'react'; import InputAddress from '../../InputAddress'; import Bare from './Bare...
import React, { CSSProperties, useContext } from 'react'; import { orbitalContext } from '../OrbitalWrapper'; import Place from './Place'; interface IProps { angle: number; distance?: number; radius: number; color?: string; style?: CSSProperties; className?: string; onHover?: (hover: boolean) => any; o...
// ==LICENSE-BEGIN== // Copyright 2017 European Digital Reading Lab. All rights reserved. // Licensed to the Readium Foundation under one or more contributor license agreements. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file exposed on Github (readium) in the proj...
import React, { Fragment } from 'react'; import { render } from 'react-dom'; import { AppContainer as ReactHotAppContainer } from 'react-hot-loader'; import Root from './containers/Root'; import { store, history } from './store'; import './app.global.css'; const AppContainer = process.env.PLAIN_HMR ? Fragment : ReactH...
/// <reference types="jasmine" /> import Qty from "js-quantities"; // From project readme let qty: Qty; qty = new Qty('23 ft'); // constructor qty = Qty('23 ft'); // factory qty = new Qty(124, 'cm'); // => 1.24 meter qty = Qty(124, 'cm'); // => 1.24 meter qty = Qty('1m'); // => 1 meter qty = Qty('m'); // => 1 met...
/* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { randomBytes } from 'crypto'; import { EventEmitter } from 'events'; import { tm...
// (C) 2007-2020 GoodData Corporation import { getMappingHeaderUri, IMappingHeader } from "@gooddata/sdk-ui"; import { getIdsFromUri } from "./agGridUtils"; import { COLUMN_ATTRIBUTE_COLUMN, MEASURE_COLUMN, ROW_ATTRIBUTE_COLUMN } from "./agGridConst"; import { ColDef } from "@ag-grid-community/all-modules"; import { I...
import { Movie } from './models/movies.model'; export const formatCollection = <T=any>(collection: FirebaseFirestore.QuerySnapshot<FirebaseFirestore.DocumentData>) => { const data: (T & {id: string})[] = collection.docs.map((doc) => { return {id: doc.id,...doc.data() as T}; }); return data; }
import { CalloutIcon } from '../types'; export const inlineCode = (text: string) => { return `\`${text}\``; }; export const bold = (text: string) => { return `**${text}**`; }; export const italic = (text: string) => { return `_${text}_`; }; export const strikethrough = (text: string) => { return `~~${text}~...
/// <reference path="../node_modules/grafana-sdk-mocks/app/headers/common.d.ts" /> export default class GoogleStackdriverCompleter { private timeSrv; datasource: any; target: any; filterQueryCache: any; filterKeyCache: any; filterValueCache: any; constructor(datasource: any, timeSrv: any, ta...
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {TimeSheetGridInfoComponent} from './time-sheet-grid-info.component'; describe('TimeSheetGridInfoComponent', () => { let component: TimeSheetGridInfoComponent; let fixture: ComponentFixture<TimeSheetGridInfoComponent>; beforeEach(as...
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'dtPipe' }) export class DtPipePipe implements PipeTransform { transform(value: any, ...args: any[]): any { //return null; var hours = 0 var timePassed = [] let today:Date = new Date(); let todayWithoutTime:Date = new Date(toda...
export const GA_ENV_TEST = 'test';
/** * External dependencies */ import classnames from 'classnames'; import { __ } from '@wordpress/i18n'; import { TAXES_ENABLED, DISPLAY_ITEMIZED_TAXES, } from '@woocommerce/block-settings'; import type { Currency } from '@woocommerce/price-format'; import type { CartTotalsTaxLineItem } from '@woocommerce/type-def...
import UniversalCookie from 'universal-cookie'; import * as Sentry from '@sentry/react'; import { REFRESH_TOKEN_COOKIE_NAME } from '../constant/refresh-token-cookie-name.constant'; import { REMEMBER_USER_COOKIE_NAME } from '../constant/remember-user-cookie-name.constant'; export function removeRefreshToken() { try ...
import HelloWorld = require('../middle/HelloWorld'); var element:HTMLElement = <HTMLElement>document.getElementsByClassName('client')[0]; var greeter = new HelloWorld(); element.innerHTML = greeter.greeting('from client'); function sleep(time) { return new Promise((resolve,reject) => { setTimeout(resolve,...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MatDialogModule } from '@angular/material/dialog'; import { MatButtonModule } from '@angular/material/button'; import { MatListModule } from '@angular/material/list'; import { MatRadioModule } from '@angular/material/rad...
/** * Build config for electron renderer process */ import path from 'path'; import webpack from 'webpack'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; import CssMinimizerPlugin from '...
import { trace, Span, SpanStatusCode, SpanKind } from '@opentelemetry/api'; import type { Runnable, Suite } from 'mocha'; import { TestAttributes } from './types'; import { VERSION } from './version'; export const TEST_SPAN_KEY = Symbol.for('opentelemetry.mocha.span_key'); const instrumentationLibraryName = 'opentele...
import { PackageInspectorBase } from './PackageInspectorBase'; import { injectable, inject } from 'inversify'; import { Types } from '../../types'; import { keys } from 'lodash'; import { DependencyType } from '../IPackageInspector'; import { IFileInspector } from '../IFileInspector'; @injectable() export class PHPPac...
import error from '../../../../utils/errors/coreError'; import { StateOwner } from '../../../../utils/constants'; import { FeatureParameter } from '../../../../utils/interfaces'; async function setChannel(params: FeatureParameter) { try { return await params.deviceClass.state.set({ owner: params.deviceType...
import * as React from "react"; import { SVGProps } from "react"; const SvgArrowBendRightUp = (props: SVGProps<SVGSVGElement>) => ( <svg width={33} height={33} fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M8.839 28.283a12 12 0 0 0 12-12v-12" stroke="#000"...
import React from 'react'; // tslint:disable-next-line:ordered-imports import { Svg, Path } from 'react-native-svg'; import { processComponent, RfxSvgIcon, RfxSvgPropsOptional, } from '@reflex-ui/core'; let SnoozeIcon: React.ComponentType<RfxSvgPropsOptional> = ( props: RfxSvgPropsOptional, ) => ( <RfxSvgIc...
/** * An iterable container of Entity objects within the Foundry Virtual Tabletop framework. * Each Entity type has it's own subclass of EntityCollection, which defines the abstract interface. * @typeParam T - The type of Entities in the EntityCollection */ declare abstract class EntityCollection<T extends Entity =...
import Labeled from "./components/Labeled.vue"; import Perscheck from "./components/Perscheck.vue"; import Perstext from "./components/Perstext.vue"; import Historytext from "./components/Historytext.vue"; import Perscombo from "./components/Perscombo.vue"; import Tabpane from "./components/Tabpane.vue"; import Link fr...
import React from 'react'; import { render } from '@testing-library/react'; import { ThemeProvider } from './useTheme'; import { Global } from './Global'; test('applies normlaization to html and body', () => { const root = render(<Global />); const html = window.getComputedStyle(root.baseElement.parentElement!);...
import * as React from "react"; import { Table, TableCell, TableBody, TableRow, TableHead, TableFooter, } from "@kiwicom/orbit-components"; import { FlightReturn } from "@kiwicom/orbit-components/icons"; export default { Example: () => ( <Table> <TableHead> <TableRow> <TableCe...
import * as React from 'react'; import { Input } from '@gio-design/components'; import '@gio-design/components/es/components/input/style/index.css'; export default () => { const [inputValue, setInputValue] = React.useState<any | undefined>(); const [inputValue1, setInputValue1] = React.useState(''); const [input...
import * as helpers from "./common/helpers"; import * as yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; import * as _ from "lodash"; import { IDictionary, IDashedOption, OptionType, IErrors, ISettingsService, } from "./common/declarations"; import { injector } from "./common/yok"; export class Option...
import { createSelector } from 'reselect' import * as app_selectors from '../app/selectors' export const get_state = app_selectors.get_provenances_state export const get_visible_provenances = createSelector( get_state, (x) => { console.log(x) return Object.entries(x) .filter((p) => p[...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; import { HashRouter, Switch, Route, Redirect } from 'react-router-dom' import commonRou from './router/index' ReactDOM.render( <HashRouter> <App /> { ...
export const lengthValidUnits = [ `px`, `em`, `ex`, `cap`, `ch`, `ic`, `rem`, `lh`, `rlh`, `vw`, `vh`, `vi`, `vb`, `vmin`, `vmax`, `cm`, `mm`, `q`, `in`, `pt`, `pc`, ] as const; export const angleValidUnits = [`deg`, `grad`, `rad`, `tur...
/* * @license Apache-2.0 * * Copyright (c) 2019 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 { PlainTextElement, Overflow, Datepicker, Select, StaticSelect, MultiSelect, ImageElement, ContextBlock, SectionBlock, Option, DividerBlock, Action, ActionsBlock, Button, InputBlock, PlainTextInput, ExternalSelect, MrkdwnElement } from '@slack/bolt/node_modules/@slack/types' export function plainTextElement(tex...
import { loadIcons } from "./icon-loader"; import { assert } from "../util/invariants"; function byId(icons: Icon[]): Map<string, Icon> { return new Map(icons.map((icon) => [icon.id, icon])); } export interface Icon { id: string; img: string; desc: string; } export const ICONS = loadIcons().map(({ path, img ...
import { Funcion } from '../expresiones/funcion'; import { Variable } from '../expresiones/variable'; import * as _ from 'lodash'; import { XmlTS } from '../arbol/xmlTS'; export class Entorno { variables: Map<String, Variable>; padre: Entorno; funciones: Map<String, Funcion>; constructor(padre?: Entorno) { ...
// *** 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 inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as utilities from ".....
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChange } from '@angular/core'; import { MouseEvent } from '../map-types'; import { LatLngBounds, LatLngBoundsLiteral } from '../services/google-maps-types'; import { RectangleManager } from '../services/managers/rectangle-manager'; import * as ɵngcc0 from '@ang...
export * from './legacy'; export { ChartJSNodeCanvasPlugins, ChartJSNodeCanvas, ChartJSNodeCanvasOptions } from './new';
export function DefaultPie(params: any): any { let title: any = '', seriesData: any = [], xData: any = [], unit: any = '', legend: any = null; title = params.title, seriesData = params.seriesData, xData = params.xData, unit = params.unit, legend = params.legend; return { title: { text: t...