text
stringlengths
10
953k
export type NonEmptyArray<T> = [T, ...T[]]; export interface Step { component: React.ComponentType; name: string; }
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265 /// <reference types="youtube" /> import {...
import { Effect } from '../../game/store/effects/effect'; import { PokemonCard } from '../../game/store/card/pokemon-card'; import { PowerType, StoreLike, State, CoinFlipPrompt, ChooseCardsPrompt, ShuffleDeckPrompt } from '../../game'; import { Stage, CardType, SpecialCondition } from '../../game/store/card/card-types'...
/** * @title withContext * @description 通过 `Dialog.withContext(({ contextDialog }) => {} )`方法,封装 使用到函数式调用弹窗 的组件(例如业务组件或者当前App等),可以将 被封装组件 代码所在上下文的context注入到contextDialog中。 */ import * as React from 'react' import styled from 'styled-components' import { Button, Dialog, ConfigProvider } from '@alicloudfe/components...
import { createAction, props } from '@ngrx/store' import { Account } from '@tezblock/interfaces/Account' import { OrderBy } from '@tezblock/services/base.service' const featureName = 'New Accounts' export const loadAccounts = createAction(`[${featureName}] Load Accounts`) export const loadAccountsSucceeded = createAc...
/** * Copyright 2016,2019 IBM Corp. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
import React, { FC } from 'react'; import Head from 'next/head'; import markup from '../utils/markup'; export interface ContactPoint { contactType: string; telephone: string; areaServed?: string | string[]; availableLanguage?: string | string[]; contactOption?: string | string[]; } export interface Corporat...
import { BadRequestException, Injectable } from '@nestjs/common'; import { CreateResourceDto } from './dto/create-resource.dto'; import { UpdateResourceDto } from './dto/update-resource.dto'; import { Resource } from './entities/resource.entity'; import { ResourceRepository } from './repositories/resource.repository'; ...
import { Observable } from '../Observable'; import { OperatorFunction } from '../types'; /** * Buffers the source Observable values until `closingNotifier` emits. * * <span class="informal">Collects values from the past as an array, and emits * that array only when another Observable emits.</span> * * ![](content...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import React from 'react' import List from '@material-ui/core/List' import ListItem from '@material-ui/core/ListItem' import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction' import ListItemText from '@material-ui/core/ListItemText' import Checkbox from '@material-ui/core/Checkbox' import { Typog...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="la" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Bitcoin</source> <translation>Informatio de DASHLiTE</translation> ...
import axios from 'axios'; import { App } from 'vue'; export default { install: (app: App): void => { const axiosClient = axios.create({ baseURL: '/api/viera', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json; charset="utf-8"' }, }); app.config...
export const emoji: { [key: string]: string } = { whopperflower_nectar: '<:whopperflower_nectar:813998192835428392>', treasure_hoarder_insignia: '<:treasure_hoarder_insignia:813998191628255232>', tile_of_decarabians_tower: '<:tile_of_decarabians_tower:813611637667397713>', teachings_of_resistance: '<:teachings_...
export class CustomHttpExceptionMessageModel { code: string; message: string; data?: string; }
import { ObjectType, Field } from 'type-graphql'; import { Result } from '../../global/Result'; import { Launch } from './Launch'; @ObjectType() export class LaunchesPastResult { @Field(() => Result, { nullable: true }) result: Result; @Field(() => [Launch], { nullable: 'itemsAndList' }) data: Launch[]; }
import { exec } from 'child_process' import { app, BrowserWindow, Input, ipcMain, Menu, nativeImage, nativeTheme, Notification, powerMonitor, shell, Tray, } from 'electron' import { autoUpdater } from 'electron-updater' import { MenuItemConstructorOptions } from 'electron/main' import { WindowsToa...
import { expect } from 'chai'; import { isHoliday } from '../src'; function parse(str: string) { const y = Number(str.substr(0, 4)); const m = Number(str.substr(4, 2)); const d = Number(str.substr(6, 2)); return new Date(y, m - 1, d); } describe('isHoliday', () => { it('토요일인 경우', () => { expect(isHolida...
import * as React from 'react' import styled from '@emotion/styled' import { widths } from '../styles/variables' import { getEmSize } from '../styles/mixins' const StyledContainer = styled.div` position: relative; margin-left: auto; margin-right: auto; width: auto; max-width: ${getEmSize(widths.lg)}em; ` i...
export type SelectValue = string | number export interface SelectEventDetail { /** * 被选中项的值 */ value: SelectValue /** * 被选中项的展示文本 */ label: string } export type SelectEvent = CustomEvent<SelectEventDetail> export function selectEventFactory(value: SelectValue, label: string): Sel...
import { Module } from '@nestjs/common' import { AppController } from './app.controller' import { AppService } from './app.service' import { TransactionsModule } from './modules/transactions/transactions.module' import { DatabaseModule } from './modules/database/database.module' import { AuthModule } from './modules/...
import { CircularProgress, Grid, Icon, Tooltip, Typography } from '@material-ui/core'; import React from 'react'; import { FaBuilding, FaCity, FaEdit, FaEnvelope, FaFacebook, FaGlobe, FaGoogle, FaInfoCircle, FaUser, } from 'react-icons/fa'; import { useUserProfileQuery } from 'operations'; import { Pr...
import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { ChartsModule } from 'ng2-charts'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; import { ButtonsModule } from 'ngx-bootstrap/buttons'; import { UserRoutingModule } from './user-routing.modu...
import { EthnicityRole } from '@modules/users/infra/typeorm/entities/User'; import { FakeUsersRepository } from '@modules/users/repositories/fakes/FakeUsersRepository'; import { AppError } from '@shared/errors/AppError'; import { FakeAddressesRepository } from '../../repositories/fakes/FakeAddressesRepository'; import ...
import {UserScopeTeamsAppInstallation, UserScopeTeamsAppInstallationCollectionResponse} from '../../../../models/'; import {createUserScopeTeamsAppInstallationCollectionResponseFromDiscriminatorValue} from '../../../../models/createUserScopeTeamsAppInstallationCollectionResponseFromDiscriminatorValue'; import {createUs...
import mongoose from 'mongoose'; import { config } from '@app/config'; import { emailTemplateConfigRepository } from '@app/crm'; const convertAutoMail = async () => { try { await mongoose.connect(config.database.connectionString, { useNewUrlParser: true }); await emailTemplateConfigRepository.convert(); ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { AICrawler, CombinedScanResult, AICombinedReportDataConverter, ScanArguments, CrawlerParametersBuilder, } from 'accessibility-insights-scan'; import { inject, injectable } from 'inversify'; impor...
import * as React from 'react'; import { CommonProps } from '../../'; import * as types from '../../types'; export interface MultiDataList extends CommonProps { beforeValueChange?: (...args: any[]) => any; customQuery?: (...args: any[]) => any; defaultQuery?: (...args: any[]) => any; data?: types.data; defaultVal...
// *** 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 { observable, action } from "mobx"; import _ from "lodash"; class PasienStore { @observable hasErrored = false; @observable isLoading = true; @observable itemsPasien = {}; @observable itemsRekamMedikPasien = []; @observable itemsRekamMedikDiagPasien = []; @observable itemsRekamMedikObatPasien = []; @obse...
class ChunckUtils { public static CubeTypeToString(cubeType: CubeType): string { if (cubeType === CubeType.Dirt) { return "Dirt"; } if (cubeType === CubeType.Rock) { return "Rock"; } if (cubeType === CubeType.Sand) { return "Sand"; ...
import { ErrorReturn } from '../interfaces/error' import { RouterRequest } from '../interfaces/router' import captchaModel from '../models/captcha' import { BFA_Returns } from '../utils/tools' interface ImageCode { image_code: string } export async function getCaptchaImage(req: RouterRequest): Promise<ImageCode> { ...
export interface ChangeFileNameDialogData { showWarning?: boolean; /** Message for dialog. */ message?: string; /** Directory path which file gonna saved. */ directoryPath: string; /** Input file name which user want's to change. */ fileName?: string; }
import {CommonModule} from '@angular/common'; import {FormsModule} from '@angular/forms'; import {NgModule} from '@angular/core'; import {TranslateModule} from '@ngx-translate/core'; import {HsCatalogueMetadataComponent} from './catalogue-metadata.component'; import {HsUiExtensionsModule} from '../../../../common/wid...
import { IAppStrings } from "../strings"; /** * App Strings for English language */ export const english: IAppStrings = { appName: "Visual Object Tagging Tool", common: { displayName: "Display Name", description: "Description", submit: "Submit", cancel: "Cancel", save:...
/* tslint:disable */ /* eslint-disable */ /* * Autogenerated by @creditkarma/thrift-typescript v3.7.6 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ import * as thrift from '@creditkarma/thrift-server-core'; export interface IAddRequest { left: number; right: number; } export interface IAd...
export class MyClass { public sayHello(name: string): string { return 'hello ' + name; } public longRunningMethod(name: string, duration: number = 2000): Promise<string> { return new Promise<string>(resolve => { console.log('waiting ' + duration + 'ms'); setTimeout(() => { resolve('de...
import { css } from "styled-components"; export const FONTS = { title1: css` font-weight: 600; font-size: 2rem; line-height: 2.8rem; @media screen and (min-width: 1023px) { font-size: 3.6rem; line-height: 4rem; } `, title2: css` font-weight: 400; font-size: 3rem; line-height: 3.6rem; @medi...
import { Player } from '../types/player'; export interface GamePlayer { gameId: string; player: Player; }
import styled from 'styled-components'; interface ContainerProps { size?: 'small' | 'large'; } export const Container = styled.div<ContainerProps>` background-color: ${props => props.theme.colors.primary}; padding: 30px 0; transition: background-color 0.5s; header { width: 1120px; margin: 0 auto; ...
// Type definitions for Lo-Dash 4.14 // 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 import * as _ from "../inde...
import { OrientationParam, PaginationParams } from '../../types/request'; import * as Photo from './types'; declare type PhotoId = { photoId: string; }; export declare const list: { getPathname: (params: void | undefined) => string; } & { handleRequest: (a: PaginationParams | undefined, additionalFetchOptio...
export function getIndicesOfDescendant( ancestor: Element, descendant: Element, ): number[]|undefined { if (!ancestor.contains(descendant)) { return } const indices: number[] = [] while (descendant.parentElement instanceof HTMLElement) { indices.unshift(Array.prototype.indexOf.c...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.15.5 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do no...
import React, { useState, FormEvent } from "react"; import PageHeader from "../../components/PageHeader"; import TeacherItem, { Teacher } from "../../components/TeacherItem"; import Input from "../../components/Input"; import Select from "../../components/Select"; import searchIcon from '../../assets/images/icons/sea...
import { Request, Response } from 'express'; import { getConnection } from 'typeorm'; import * as Yup from 'yup'; import { CONSTANTS } from '../../../../../shared/domains/constants'; import { DataResponse } from '../../../../../shared/domains/interfaces'; import { message } from '../constants'; import Datacli from '....
import { Component, OnDestroy, OnInit } from '@angular/core'; import { Observable, Subscription } from 'rxjs'; import { map } from 'rxjs/operators'; import { YoutubeManagementService, YouTubeVideoWithStream } from '../../services/youtube-management.service'; @Component({ selector: 'pl-download-list', templateUrl...
export * from './CommentForm'; export * from './CommentFormWithHookForm';
import { createMethodDefinition, createQueryDefinition, TypeInfo, createObjectPropertyDefinition, createImportedObjectDefinition, createScalarPropertyDefinition, } from "@web3api/schema-parse"; export const typeInfo: TypeInfo = { objectTypes: [ ], queryTypes: [ { ...createQueryDefinition({ ...
import { BaseEntity, Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, ManyToOne, } from 'typeorm'; import is from 'utils/validation'; import { Issue, User } from '.'; @Entity() class Comment extends BaseEntity { static validations = { body: [is.required(), is.maxLength(5...
export const OptionType = { Some: Symbol(':some'), None: Symbol(':none'), }; export interface Match<T, U> { some: (val: T) => U; none: (() => U) | U; } export interface Option<T> { type: symbol; isSome(): boolean; isNone(): boolean; match<U>(fn: Match<T, U>): U; map<U>(fn: (val: T) => U): Option<U>;...
describe('Controller: PatientsControllers', function () { 'use strict'; var AccountApplication, scope; beforeEach(module('AccountApplication')); beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); AccountApplication = $controller('BrowseController', { ...
/* tslint:disable */ export const memory: WebAssembly.Memory; export function call_me_from_javascript(a: number, b: number): number;
import Login from "@/pages/Login"; export default Login;
import { ParameterExpressionOperator, ParameterJoint, ParameterJointType } from '@/services/data/tuples/factor-calculator-types'; import {createConstantParameter, createTopicFactorParameter} from '@/services/data/tuples/parameter-utils'; import {Topic} from '@/services/data/tuples/topic-types'; import {FontAwesomeIc...
import AppError from '@shared/errors/AppError'; import FakeUsersRepository from '../repositories/fakes/FakeUsersRepository'; import ShowProfileService from './ShowProfileService'; let fakeUsersRepository: FakeUsersRepository; let showProfile: ShowProfileService; describe('UpdateProfile', () => { beforeEach(() => { ...
import { ClassSerializerInterceptor, ValidationPipe } from '@nestjs/common'; import { NestFactory, Reflector } from '@nestjs/core'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule, ...
import { Token, WETH, ChainId, Pair, TokenAmount, Route, ETHER } from '../src' describe('Route', () => { const token0 = new Token(ChainId.AVALANCHE, '0x0000000000000000000000000000000000000001', 18, 't0') const token1 = new Token(ChainId.AVALANCHE, '0x0000000000000000000000000000000000000002', 18, 't1') const we...
import './config'; import { Location } from '@reach/router'; import React, { Suspense } from 'react'; import ReactDOM from 'react-dom'; import Media from 'react-media'; import AppBar from './components/AppBar'; import AppRouter from './components/AppRouter'; import CategoryFilter from './components/CategoryFilter'; i...
export const lambdaPricingMock = { FormatVersion: "aws_v1", PriceList: [ { product: { productFamily: "Serverless", attributes: { regionCode: "ap-northeast-1", servicecode: "AWSLambda", groupDescription: "Invocation duration weighted by memory assig...
import { Component, OnInit, Input, Output, EventEmitter } from "@angular/core"; import { AlertModel, UserbaseModel } from "shared/models"; // Component imports import { CrudUserbaseModel } from "./../../CrudUserbase.model"; @Component({ selector: "app-user-crud-userbase-header-buttons", templateUrl: "./crud-user...
/** * 检测根目录 */ export const isRoot = el => el === document.body || el === document.documentElement export const __isRoot__ = { description: "检测根目录", }
import { AppInitializeModule } from './app-initialize.module'; import { CoreModule } from '@shared/modules/core.module'; import { AuthGuard } from '@shared/guards/auth.guard'; import { RouterModule } from '@angular/router'; import { AuthService } from '@app/shared/services/auth.service'; import { BrowserModule } from '...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { ScrollingModule } from '@angular/cdk/scrolling'; import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { KirbyModule } from '@kirbydesign/designsystem'; import { ListColoredItemsExampleComponent } from './examples/colored-items'; import { ListWithDividersExampleComp...
import { HttpErrorResponse } from '@angular/common/http'; import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { FormArray, FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; import { ErrorStateMatcher } from '@angular/material/core'; import ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Injector, Provider } from '@angular/core'; import { BrowserXhr, Connection, ConnectionBackend, Http, ReadySt...
import { gather, setAccessorSelf } from "./dom"; export function collect(c: Element | Node, remove: boolean = true) { const stack = gather(c); while (stack.length) { const nc: Element | Node = stack.pop(); const children = gather(nc); children.forEach((c) => stack.unshift(c)); i...
import React, { useState, useEffect } from "react"; import { EditorContext } from "../context/editor-context"; import { EditorUI } from "../components/editor-ui"; import { SceneView } from "../components/scene-view"; import { ZograEngine } from "zogra-renderer"; import "antd/dist/antd.css"; import "../css/editor.scss"...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './home/home.component'; import { DetailComponent } from './detail/detail.component'; import { ResumeComponent } from './resume/resume.component'; import { ContactComponent } ...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ri...
import { expect } from "chai"; import { step } from "mocha-steps"; import { createAndFinalizeBlock, customRequest, describeWithFrontier } from "./util"; describeWithFrontier("Frontier RPC (Subscription)", (context) => { let subscription; let logs_generated = 0; const GENESIS_ACCOUNT = "0x6be02d1d3665660d22ff9624...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RidePricesComponent } from './ride-prices.component'; describe('RidePricesComponent', () => { let component: RidePricesComponent; let fixture: ComponentFixture<RidePricesComponent>; beforeEach(async(() => { TestBed.configure...
// smithy-typescript generated code import { Paginator } from "@aws-sdk/types"; import { ListWorldGenerationJobsCommand, ListWorldGenerationJobsCommandInput, ListWorldGenerationJobsCommandOutput, } from "../commands/ListWorldGenerationJobsCommand"; import { RoboMaker } from "../RoboMaker"; import { RoboMakerClie...
<TS language="el_GR" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Δεξί-κλικ για επεξεργασία της διεύθυνσης ή της ετικέτας</translation> </message> <message> <source>Create a new address</source>...
/** * Creates a hidden link to download something given the href url * @param url The url which to download * @param fileName The name of the file to be downloaded (used for the a tag) */ export function createAndClickDownloadLink(url: string, fileName: string) { const link = document.createElement('a'); if (l...
import { ActionTypes as RegStatusActionTypes } from "./registreringstatus"; import { ActionTypes as BrukersNavnActionTypes } from "./brukers-navn"; import { ActionTypes as AutentiseringsinfoActionTypes } from "./autentiseringsinfo"; import { ActionTypes as SvarActionTypes } from "./svar"; import { ActionTypes as SisteS...
import '../../init'; // hidden-full-source-line import '@vaadin/flow-frontend/comboBoxConnector'; // hidden-full-source-line import { html, LitElement, customElement, internalProperty } from 'lit-element'; import '@vaadin/vaadin-combo-box/vaadin-combo-box'; import { getCountries } from '../../domain/DataService'; impo...
/* * 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...
namespace Helper { export class Pool<T> { private _classType: any; private _newItemFunction: Function = null; private _itemCount: number = 0; private _pool: T[] = []; private _canGrow: boolean = true; private _poolSize: number = 0; constructor(classType: any...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; const PUBMED_PREFIX = "https://pubmed.ncbi.nlm.nih.gov/"; @Injectable() export class AssociationService { URL = '/api/association'; TYPES = { 'Disease' : { name: 'Disease', uri: 'http://phenomebrowser...
import { DirectiveWrapper, InvalidDirectiveError, TransformerPluginBase } from '@aws-amplify/graphql-transformer-core'; import { TransformerContextProvider, TransformerSchemaVisitStepContextProvider, TransformerTransformSchemaStepContextProvider, } from '@aws-amplify/graphql-transformer-interfaces'; import { isLi...
import { EventEmitter, Injectable } from '@angular/core'; import { WorkScaleService } from './work-scale.service'; import { ScheduleDataSource } from '../types/datasource.type'; @Injectable() export class EventService { public eventsOfDay: ScheduleDataSource[]; public events: ScheduleDataSource[]; public upda...
import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import Outputs from '../../../../../resources/outputs'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData...
import { Injectable, NotFoundException } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { promises } from 'fs'; import { User } from 'src/auth/user.entity'; import { CreateTaskDto } from './dto/create-task.dto'; import { GetTasksFilterDto } from './dto/get-tasks-filter.dto'; import { ...
export const EMPTY_BUFFER = Buffer.alloc(0);
import Drawer from "./drawer/Drawer"; import Zoomer from "./drawer/Zoomer"; import Images from "./drawer/Images"; import Metadata from "./types/Metadata"; import Hexagon from "./hexagon/hexagon"; import Requests from "./Requests"; function fetchMetadata(): Promise<Metadata> { return fetch(Requests.MetadataRequest()...
export default class DialogService { private responses: any[]; constructor() { } addResponse(response: any): DialogService { this.responses.push(response); return this; } send(res: any) { res.json({ data: this.responses }); } }
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { OpenprojectModalModule } from 'core-app/shared/components/modal/modal.module'; import { OpenprojectAttachmentsModule } from 'core-app/shared/components/attachments/openproject-attachments.module'; import { OpenprojectAcce...
export declare type Props = { from: number; velocity: number; min?: number; max?: number; bounceStiffness: number; bounceDamping: number; power: number; timeConstant: number; restDelta: number; modifyTarget: (v: number) => number; }; export declare type SpringProps = { from: ...
import { Component } from '@angular/core'; @Component({ selector: 'ns-app', moduleId: module.id, templateUrl: 'app.component.html' }) export class AppComponent {}
import { Meta, Story } from '@storybook/react' import { CodeMockup } from './CodeMockup' const meta: Meta = { title: `Mockup/CodeMockup`, component: CodeMockup, subcomponents: { 'CodeMockup.Line': CodeMockup.Line }, parameters: { controls: { expanded: true }, }, } export default meta const Template: S...
import { Component, OnInit, Input } from '@angular/core'; import { Article } from '../../shared/models/article'; @Component({ selector: 'app-article', templateUrl: './article.component.html', styleUrls: ['./article.component.css'] }) export class ArticleComponent implements OnInit { @Input() article: Article;...
import React, { Component, ReactNode } from 'react'; import { Moment } from 'moment'; import classnames from 'classnames'; import { getTodayTime, getMonthName } from '../util/index'; const ROW = 4; const COL = 3; function chooseMonth(month) { const next = this.state.value.clone(); next.month(month); this.setAn...
import * as rbush from 'rbush'; import Transformer from './Transformer'; import Node from './Node'; interface IndexedNode<T> extends rbush.BBox { transformers: Array<Transformer>; node: Node<T>; zIndex: number; } export default IndexedNode;
import { createStyles, Theme } from '@material-ui/core'; export default (theme: Theme) => createStyles({ root: { display: 'flex', flexDirection: 'column', alignItems: 'center', minHeight: 'fit-content' }, avatar: { width: 60, height: 60 }, name: { marginT...
import React from 'react'; import { Product } from '../../types'; import { useCart } from '../../hooks/useCart'; import { PriceFormater } from '../../util/price'; import { MaterialIcons, MaterialCommunityIcons } from '@expo/vector-icons'; import * as S from './styled'; interface CartItemProps { product: Product;...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { useCallback, useMemo } from 'react'; import { useMlUrlGenerat...
export * from "./Nav";
import { compose, defaultTo, lensPath, pathOr, set } from 'ramda'; import * as React from 'react'; import { StyleRulesCallback, withStyles, WithStyles } from '@material-ui/core/styles'; import ActionsPanel from 'src/components/ActionsPanel'; import Button from 'src/components/Button'; import ExpansionPanel from 'src/...