text
stringlengths
10
953k
import * as React from 'react'; import { Image, IImageProps, ImageFit, Label } from '../../../../index'; export class ImageCoverExample extends React.Component<any, any> { public render() { let imageProps: IImageProps = { src: 'http://placehold.it/500x500', imageFit: ImageFit.cover }; ...
import { Component } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { ModalController, NavController, NavParams } from 'ionic-angular'; import { Logger } from '../../../../../providers/logger/logger'; // providers import { BwcErrorProvider } from '../../../../../providers/bwc-erro...
import { Equal, Expect } from '@type-challenges/utils' type Concat<T extends any[], U extends any[]> = [...T, ...U] /** * 类型解构 */ type cases = [ Expect<Equal<Concat<[], []>, []>>, Expect<Equal<Concat<[], [1]>, [1]>>, Expect<Equal<Concat<[1, 2], [3, 4]>, [1, 2, 3, 4]>>, Expect<Equal<Concat<['1', 2, '3'], [f...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. // Entry point for the notebook bundle containing custom model definitions. // // Setup notebook base URL // // Some static assets may be required by the custom widget javascript. The base // url for the notebook is ...
const glob = require('glob') import * as path from 'path' import * as chai from 'chai' import * as Mocha from 'mocha' import sinonChai = require('sinon-chai') chai.use(sinonChai) export function run( testsRoot: string, cb: (error: any, failures?: number) => void ): void { // Create the mocha test const moch...
import { observer } from "mobx-react"; import * as React from "react"; import * as styles from "./ToolLabelButton.css"; export interface ToolLabelButtonProps { className?: string; title?: string; children?: React.ReactNode; onClick?: () => void; } @observer export class ToolLabelButton extends React.Component<Too...
export class CvarMap { cvarType: number; strMatch: string; mapValue: number; }
import React, { PropsWithChildren } from 'react'; import { isString } from 'utils/data'; import { generateAlphaNumeric, toHtmlId } from 'utils/string'; import css from './Section.module.scss'; import Spinner from './Spinner'; interface Props { bodyBorder?: boolean; bodyDynamic?: boolean; bodyNoPadding?: boolea...
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { ProductOrderDto } from './dto/productorder.dto'; import { ProductOrder } from './productorder.entity'; @Injectable() export class ProductOrderService { constructor( ...
import { HttpServiceService } from './../Http/http-service.service'; import { Injectable } from '@angular/core'; import { environment } from '../../../environments/environment'; const END_POINT = environment.apiUrl+'/api/user/'; @Injectable({ providedIn: 'root' }) export class UserServiceService { constructo...
export * from './transactions.service' export * from './transaction' // export * from './models'
import { Component } from "@angular/core"; import { AppConstantsProvider } from "../shared/providers/appConstants.provider"; @Component({ templateUrl: './home.component.html', styles: [require('./home.component.scss')] }) export class HomeComponent { private version: string; constructor(appConstants:...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *--------------------------------------------------------------...
import { ComponentTreeNode } from '../ComponentTreeNode'; import { BuiltInHandler } from '../enums'; import { MatchingRouteNotFoundError } from '../errors/MatchingRouteNotFoundError'; import { Jovo } from '../Jovo'; import { ComponentMetadata } from '../metadata/ComponentMetadata'; import { HandlerMetadata } from '../m...
import * as React from 'react'; import styles from './styles.scss'; import { Character, CharacterColor, CharacterImage } from '../../../model'; import { Picture } from '../../Picture'; export interface CharacterPortraitProps { character: Character; color: CharacterColor; } export const CharacterPortrait: React.F...
declare let window: any export const useConnectWallet = async () => { if (window.ethereum) { try { const addressArray = await window.ethereum.request({ method: 'eth_requestAccounts' }) const obj = { status: '✔️ Connected to wallet.', address: addressArray[0] } ...
// imports import React from 'react' import { StyleSheet, View } from 'react-native' import { StackScreenProps } from '@react-navigation/stack' import { Datepicker, Input, Button, Layout, Text } from '@ui-kitten/components' import { DateTime } from 'luxon' import { useForm, SubmitHandler, Controller } from 'react-hook-...
/* * spurtcommerce * version 3.0 * http://www.spurtcommerce.com * * Copyright (c) 2019 piccosoft ltd * Author piccosoft ltd <support@piccosoft.com> * Licensed under the MIT license. */ import { Pipe, PipeTransform } from '@angular/core'; // brand seacrh pipe @Pipe({ name: 'brandSearchPipe', pure: false })...
/* eslint-disable @typescript-eslint/no-explicit-any */ import camelCase from 'camelcase'; /** * Convert json input keys to camelcase * @param {*} data */ export function convertToCamelCase(data: any): any { if (Array.isArray(data)) { return data.map((p) => { if (typeof p === 'object' && p != null) { ...
import { ITaskResult, IConsoleWriter } from '../types'; export default class ProjectInfoTaskResult implements ITaskResult { type!: string; name!: string; version!: string; toConsole(writer: IConsoleWriter) { writer.heading('Project Information'); writer.column({ Name: this.name, Type: this...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
export default class SignalingClientConnectionRequest { signalingURL: string; joinToken: string; /** Creates a request with the given URL, conference id, and join token. * * @param {string} signalingURL The URL of the signaling proxy. * @param {string} joinToken The join token that will authe...
import React, {createContext, ReactNode, useCallback, useContext, useState} from 'react'; import {ToastContext} from "./ToastContext"; import {PaginationContext} from "./PaginationContext"; import {ModalContext} from "./ModalContext"; import {AlertContext} from "./AlertContext"; import {SelectedItemsContext} from "./Se...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import * as http from "http"; import * as path from "path"; import * as debug from "debug"; import * as nconf from "nconf"; import * as redis from "redis"; import * as winston from "winston"; import * as app from "....
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core'; import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { PasswordRule } from './password-rule'; const rulesRegexp = { lowerCase: new RegExp(/[a-z]/), upperCase: new RegExp(/...
import { Scalar, CustomScalar } from '@nestjs/graphql'; import { Kind, ValueNode } from 'graphql'; @Scalar('Timestamp', () => Date) export class Timestamp implements CustomScalar<number, Date> { description = '`Date` type as integer. Type represents date and time as number of milliseconds from start of UNIX epoc...
import { DGLOsSVGBaseClass } from "./DGLOsSVGBaseClass"; import { Selection } from "d3-selection"; import { Node, Edge, Graph, DynamicGraph, MetaNode, MetaEdge } from "../model/dynamicgraph"; import { DGLOsSVGCombined } from "./DGLOsSVGCombined"; import { DGLOsMatt } from "./DGLOsMatt"; import { NodeGlyphShape } from "...
import { Component, OnInit } from '@angular/core'; // import { UsuarioService } from 'app/services/usuario.service'; import { Usuario } from 'app/models/Usuario'; @Component({ selector: 'app-profiles', templateUrl: './profiles.component.html', styleUrls: ['./profiles.component.scss'] }) export class ProfilesC...
import { next } from './__utils__/server'; import { handle } from './handle'; import { json, notFound, redirect } from './responses'; test('handles redirects', async () => { const fetch = await next( handle({ async get({ req: { method, url } }) { return json({ method, url }); }, async ...
import { EnumValues } from "../../models"; import React from "react"; import ErrorBoundary from "../../core/internal/ErrorBoundary"; import { EnumValuesChip } from "./CustomChip"; import { useStyles } from "./styles"; /** * @category Preview components */ export default function ArrayEnumPreview({ ...
import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import NoDataIcon from '../../assets/icons/no-data.svg'; const NoData = () => { return ( <View style={styles.container}> <NoDataIcon width='150' height='150' fill='#bbb' /> <Text style={styles.text}>Nada para mostrar</Text> </...
// export class SEED { // // S-box table // private SEED_SS = [ // [ // 0x2989a1a8, 0x05858184, 0x16c6d2d4, 0x13c3d3d0, 0x14445054, 0x1d0d111c, 0x2c8ca0ac, 0x25052124, // 0x1d4d515c, 0x03434340, 0x18081018, 0x1e0e121c, 0x11415150, 0x3cccf0fc, 0x0acac2c8, 0x23436360, // 0x28082028, 0x04444044, ...
import { ActionType } from "../ActionTypes"; export type Profile = { userId: string, name: string, username: string, profilePic: string, firstName?: string, lastName?: string, bio?: string } // ---------------------------------action-interfaces--------------------------- export interface ...
export const getMappingLog = () => { return { properties: { date: { type: "date", format: "yyyy-MM-dd" }, count: { type: "long" }, type: { type: "keyword" }, va...
import React from 'react'; import { RepositoriesListItem } from '../ReposList/types'; import styles from './reposListItem.scss'; export interface ReposListItemProps { repo: RepositoriesListItem; } export function ReposListItem({ repo }: ReposListItemProps): JSX.Element { return ( <div> <header className...
import { GameModule, GameResolvers, GameSchema, SubscriberModule, SubscriberResolvers, SubscriberSchema, StreamModule, StreamResolvers, StreamSchema, UserModule, UserResolvers, UserSchema, QueryModule, QueryResolvers, QuerySchema, UserSubscriberLinkModule, UserSubscriberLinkResolvers, ...
import { Component } from '@stencil/core'; @Component({ tag: 'agc-cattle-pounds-weaned-results-placeholder' }) export class AgcCattlePoundsWeanedResultsPlaceholder { render() { const placeholder = () => <span><i class="mark"></i> <i class="mark"></i> <i class="mark"></i> <i class="mark"></i></s...
import { Controller, HttpException, Logger, Req, RequestMethod, Body, } from '@nestjs/common'; import { METHOD_METADATA, PATH_METADATA } from '@nestjs/common/constants'; import JunoWebhookProvider from './juno.webhook.provider'; import { JunoProvider } from './../'; import { JunoWebhookDto } from './../dto/...
declare namespace com { namespace sun { namespace tools { namespace javac { class Main { public constructor() public static main(arg0: java.lang.String[] | string[]): void public static compile(arg0: java.lang.String[] | string[]): number public static compil...
import { async, ComponentFixture, TestBed } from "@angular/core/testing"; import { CreatorProfilePageComponent } from "./creator-profile-page.component"; describe("CreatorProfilePageComponent", () => { let component: CreatorProfilePageComponent; let fixture: ComponentFixture<CreatorProfilePageComponent>; befor...
import { Controller, Patch, Param, Body, Delete, Get, Post } from '@nestjs/common'; import { DeepPartial } from 'typeorm'; import { Snapshot } from '@tamu-gisc/cpa/common/entities'; import { BaseController } from '../base/base.controller'; import { SnapshotsService } from './snapshots.service'; @Controller('snapshot...
/* * Copyright (c) 2014-2020 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ import { Component, NgZone, OnInit } from '@angular/core' import { WalletService } from '../Services/wallet.service' import { FormControl, Validators } from '@angular/forms' import { Router } from '@angular/router' @Component({ sele...
import { TestBed, inject } from '@angular/core/testing'; import { HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http'; import { HttpClientTestingModule, HttpTestingController, } from '@angular/common/http/testing'; import { AutoAppendTokenInterceptor } from '@app-buyer/auth/interceptors/auto-append-token/a...
/* tslint:disable */ /* eslint-disable */ // @generated // This file was automatically generated and should not be edited. import { PermissionGroupUpdateInput, PermissionGroupErrorCode, PermissionEnum } from "./../../types/globalTypes"; // ==================================================== // GraphQL mutation opera...
import useTheme from './useTheme'; export { useTheme, };
import React, { useState, useEffect } from 'react'; import { View } from 'react-native'; import styled from 'styled-components/native'; import { colors } from '../../../shared/styles'; import { Button } from '../../../shared/components'; import Toast from 'react-native-simple-toast'; import { deleteCite } from '../../....
import '@storybook/addon-actions/register'; import '@storybook/addon-links/register'; // import '@storybook/addon-knobs/register';
// Type definitions for enzyme-to-json 1.5 // Project: https://github.com/adriantoine/enzyme-to-json#readme // Definitions by: Joscha Feth <https://github.com/joscha> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.1 import { ReactWrapper, ShallowWrapper } from 'enzyme'; ex...
// // Copyright (c) Microsoft Corporation. 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 b...
import * as React from 'react' import App, { AppInitialProps } from 'next/app' import { WithApolloProps } from 'next-with-apollo' import Head from 'next/head' // import withApollo from 'src/fixtures/withApollo' import SettingContext from 'src/context/settingContext' import WalletContext from 'src/context/walletContext'...
/* eslint-disable */ import { Writer, Reader } from 'protobufjs/minimal' export const protobufPackage = 'cryptoorgchain.cronos.cronos' /** Params defines the parameters for the cronos module. */ export interface Params { ibcCroDenom: string } const baseParams: object = { ibcCroDenom: '' } export const Params = { ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/// <reference path="../../observable.ts" /> /// <reference path="../../concurrency/scheduler.ts" /> module Rx { export interface ObservableStatic { /** * Convert an object into an observable sequence of [key, value] pairs. * @param {Object} obj The object to inspect. * @param {Sched...
import { Component, Input, OnChanges, SimpleChanges, OnInit, OnDestroy } from '@angular/core'; import { ASSIGNMENT_UNIT } from 'upgrade_types'; import { ExperimentVM, DATE_RANGE, IEnrollmentStatByDate } from '../../../../../core/experiments/store/experiments.model'; import { ExperimentService } from '../../../../../cor...
export * from './push-deleted-branch'; export * from './push-new-branch' export * from './push-new-branch-remote-says-vulnerabilities'; export * from './push-new-branch-with-tags'; export * from './push-update-existing-branch'; export * from './constants';
import { ulestVedtakUtenUtbetalingsdager, vedtakAnnullert, vedtakRevurdert } from '../../src/data/mock/data/rs-vedtak' describe('Tester at appen starter', () => { before(() => { cy.visit('http://localhost:8080/syk/sykepenger') }) it('Laster startside', () => { cy.url().should('equal', 'ht...
import { Logger } from '../../../../cli'; import { CommandError, CommandOption } from '../../../../Command'; import config from '../../../../config'; import GlobalOptions from '../../../../GlobalOptions'; import request from '../../../../request'; import { ClientSvcResponse, ClientSvcResponseContents, ContextInfo, ...
<TS language="nl_NL" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klik met de rechter muisknop om dit adres of label te veranderen</translation> </message> <message> <source>Create a new address...
export { default } from "./LocationAutocomplete";
import type { PieceContext } from '@sapphire/pieces'; import type { Message } from 'discord.js'; import type { Command } from '../../lib/structures/Command'; import { Event } from '../../lib/structures/Event'; import { Events } from '../../lib/types/Events'; export class CoreEvent extends Event<Events.CommandAccepted>...
import { Flex, Box, LayoutContext } from '../src' import { render } from '@testing-library/react' import '@testing-library/jest-dom/extend-expect' describe('<Flex />', () => { it('should render div with correct text and class', () => { const { queryByText } = render( <Flex className="flex" mt={1}> ...
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; @Injectable() export class RedditServiceProvider { public url; constructor(private _http: Http) { this.url = 'https://www.reddit.com/new.json'; } private get(url: string) { return this._http.get(url).ma...
import { settingsSelector } from './settings/reducer'; import { observeStore } from './utils/redux-utils'; function setCSSVariable(property: string, value: any) { if (value) { document.querySelector('html')!.style.setProperty(property, value.toString()); } } /** * Update a set of CSS variables depending on t...
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { NzDemoAnchorComponent } from './nz-demo-anchor.component'; @NgModule({ imports: [ RouterModule.forChild([ { path: '', component: NzDemoAnchorComponent } ]) ], exports: [ RouterModule ] }) export class NzDemoAnc...
import { TypeLiteralNode } from '../../src/types/AST/Node/TypeLiteralNode'; import { parseSchema } from '../../src/parser'; import { TypedefNode } from '../../src/types/AST/Node/TypedefNode'; export function getNthType(schema: string, n: number = 0): TypeLiteralNode { const ast = parseSchema(schema); const typede...
// @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTION...
import { Component } from '@angular/core'; import { MenuItem } from 'primeng/api'; import { AppMainComponent } from '@app/app.main.component'; @Component({ selector: 'app-topbar', templateUrl: './header.component.html', }) export class HeaderComponent { items: MenuItem[]; constructor( public appMain: AppMainCo...
import { GraphQLSchema, OperationDefinitionNode, OperationTypeNode } from 'graphql'; export declare type Skip = string[]; export declare type Force = string[]; export declare type Ignore = string[]; export declare type SelectedFields = { [key: string]: SelectedFields; } | boolean; export declare function buildOpera...
import React from "react"; const SymbolAnatomy = () => { return ( <div style={{ position: "relative", left: 50 }}> <svg width="165" height="88" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill="#000" /> <path d="M1...
import { Component, OnInit, ElementRef } from '@angular/core'; import { Location, LocationStrategy, PathLocationStrategy } from '@angular/common'; import { MatDialog, MatDialogConfig } from '@angular/material/dialog'; import {OktaSDKAuthService} from 'app/shared/okta/okta-auth.service'; import { ViewEncapsulation } fro...
import { createFromIconfontCN } from '@ant-design/icons'; import type { IconFontProps } from '@ant-design/icons/lib/components/IconFont'; type IconsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; export type INextIconFontProps = { iconSize?: number | IconsSize; iconfontUrl?: string; } & IconFontProps; export const NextI...
import * as React from "react"; import styled from "styled-components"; import { color, space } from "src/theme"; const Wrapper = styled.div` width: 100%; height: 100%; background: ${color("grey.800")}; `; const Inner = styled.div` color: ${color("white.light")}; padding-top: ${space(4)}; padding: ${space...
import { LiveAnnouncer } from '@angular/cdk/a11y'; import { Component } from '@angular/core'; import { BaseDocumentationSection } from '../../../../../components/base-documentation-section/base-documentation-section'; import { DocumentationSectionComponent } from '../../../../../decorators/documentation-section-compone...
/** * @license * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
var i; i = 1; function () { print i; i = i + 1;}(); function () { print i; i = i + 1;}(); function () { print i; i = i + 1;}(); function () { print i; i = i + 1;}(); function () { print i; i = i + 1;}();
import {Component} from 'angular2/core'; @Component({ selector: 'my-header', template: ` <header class="mdl-layout__header"> <div class="mdl-layout__header-row"> <!-- Title --> <span class="mdl-layout-title">WorkShop Angular2 js</span> </div> </header>` }) export class C...
import { isArray } from "../src/index"; describe("isArray", function () { it.each([undefined, null, true, 1, "a", Symbol("a"), () => null])( "given non array then should return false", function (s) { const result = isArray(s); expect(result).toEqual(false); }, ); it("given array then sho...
import { StepExecutionCompletionTimePipe } from './step-execution-completion-time.pipe'; import { BatchStepExecution } from './batch-job'; describe('StepExecutionCompletionTimePipe', () => { const pipe = new StepExecutionCompletionTimePipe(); it('should get StepExecution completion time from start and end time', ...
import { Component, ComponentBindings, JSXComponent, OneWay, Slot, } from '@devextreme-generator/declarations'; import { getGroupCellClasses } from '../utils'; import { ContentTemplateProps } from '../types'; export const viewFunction = (viewModel: CellBase): JSX.Element => ( <td className={viewModel.c...
import { expect, should } from "chai"; import { describe } from "razmin"; import { BooleanValue, EcmaArrayValue, ReferenceValue, StrictArrayValue, Value } from "./amf0"; import * as fs from 'fs/promises'; import * as path from 'path'; import * as AMF3 from './amf3'; let zeroPad = (a : string, length = 2) => { whil...
import { Component, Directive, Input, Output, EventEmitter, ChangeDetectionStrategy, OnInit, OnDestroy, Injector, Renderer, ComponentRef, ElementRef, TemplateRef, ViewContainerRef, ComponentFactoryResolver, NgZone } from '@angular/core'; import {listenToTriggers} from '../util/triggers'...
import { TestBed } from '@angular/core/testing'; import { TranslateModule } from '@ngx-translate/core'; import { IqsDeviceprofilesHelpService } from './deviceprofiles.help.service'; import { DeviceProfile, BaseDeviceProfile } from '../models'; describe('[Deviceprofiles] services/deviceprofiles.help', () => { let...
import selectByIdMany from './selectByIdMany'; import selectByIdSingle from './selectByIdSingle'; export { selectByIdMany, selectByIdSingle };
import { GroundFeature } from '../data/GroundFeature'; import { GroundType } from '../data/GroundType'; import Map from '../data/Map'; import Tile from '../data/Tile'; import { DefaultTile } from './DefaultTile'; import { Side } from '../logic/atSide'; const groundTypes: GroundType[] = [ 'DESERT', 'GRASSLAND', '...
import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { AbstractControl, FormBuilder, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { Animations } from '@shared/animations/animations'; import { FormHelper } from '@shared/forms/form-helper';...
import { h, nextTick } from 'vue' import { mount } from '@vue/test-utils' import { NCarousel } from '../index' import { sleep } from 'seemly' describe('n-carousel', () => { it('should work with import on demand', () => { mount(NCarousel) }) it('should work with `autoplay` and `interval` prop', async () => {...
/* Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive licens...
import type { Validator } from './validator.js'; export function email(): Validator { return (value: any) => { const regex = /^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,7}$/; return { valid: Boolean(value) && regex.test(value), name: 'not_an_email' }; }; }
import { isValidHttpsUrl, validateExternalLink } from './external-link-validation'; describe('External link', () => { const links = [ { url: 'data:,%20{%22sampleQueries%22:[{%22id%22:%22%22,%22category%22:%22TEST%20%22,%22method%22:%22' + 'GET%22,%22humanName%22:%22CLICK%20HERE%20-%20%3E%22,%22req...
export class SliderResult { public x: number; public screenSize: number; }
import { Document } from '@contentful/rich-text-types' // nodeType properties below ignored due to issue with Contentful types // see https://github.com/contentful/rich-text/issues/123 export const json: Document = { content: [ { data: {}, content: [ { data: {}, marks: [],...
import React from 'react'; import { storiesOf } from '@storybook/react'; import { Menu, MenuItem, MenuItemCheckbox, MenuItemRadioGroup, MenuItemRadio, MenuItemLabel, MenuItemSeparator, } from './Menu'; function MenuStory() { const [isChecked, setIsChecked] = React.useState(true); const [value, setVal...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /** * Structure of a request coming from an AppSync resolver */ export interface IAppSyncResolverRequest { arguments: { previousSms: string; previousEmail: string; }; identity: any...
import { button, div, DOMSource, label, VNode, } from '@cycle/dom'; import xs, { Stream } from 'xstream'; import { ISinks, ISources, Reducer } from '../typedefs'; import '../../sass/speedchooser.sass'; export const SPEED_1X = 1; export const SPEED_2X = 2; export const SPEED_3X = 3; export const SP...
// URLS const API_BASE_URL = 'https://api.poap.tech'; const APP_BASE_URL = 'https://app.poap.xyz'; export default class Plugin { public author = 'Poap-xyz'; public version = '1.0.0'; public name = 'Poap Module'; public options: any; openScanPage(address) { window.open(`${APP_BASE_URL}/scan/` + address, ...
import { Component, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { Parqueo } from '../../shared/models/parqueo.model'; import { ParqueoService } from '../../shared/services/parqueo.service'; import { Router } from '@angular/router'; @Component({ selector:...
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerExecutionContext, HttpHandlerOptions...
/** * Copyright (c) 2020-present, Goldman Sachs * * 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 l...
import { Injectable } from '@nestjs/common'; import { PrismaClient } from '@prisma/client'; @Injectable() export class PrismaService extends PrismaClient { constructor() { // pass PrismaClientOptions e.g. logging levels or error formatting super(); } }