text stringlengths 10 953k |
|---|
import { Component, ChangeDetectionStrategy, ViewChild, AfterViewInit } from '@angular/core';
import { DataService, Atom } from '../data.service';
import { Observable } from 'rxjs';
import { GridComponent, RowDetailsStatus, Command, RowDetails, Grid } from 'ng2-qgrid';
const EXAMPLE_TAGS = [
'details-row-custom',
'D... |
import React from 'react'
// @ts-ignore
import { ResponsiveWrapper } from '@nivo/core'
import PieCanvas from './PieCanvas'
import { PieCanvasProps } from './types'
// prettier-ignore
export const ResponsivePieCanvas = <RawDatum, >(props: Omit<PieCanvasProps<RawDatum>, 'width' | 'height'>) => (
<ResponsiveWrapper>
... |
export interface TConsReciNFe {
$: {
versao: string;
xmlns: string;
};
tpAmb: TAmb;
nRec: string;
}
export declare enum TAmb {
PRD = "1",
HML = "2"
}
export interface TConsSitNFe {
tpAmb: TAmb;
xServ: TConsSitNFeXServ;
chNFe: string;
versao: TVerConsSitNFe;
}
expo... |
import { Actions, WsEvent, WsOpts } from './model'
export const initialWsOpts: WsOpts = {
host: 'ws://127.0.0.1',
ports: [4044, 5044, 6044, 7044, 8044],
keepAliveInterval: 60 * 1000, // msec
}
export const initialWsEvent: WsEvent = {
action: Actions.noneAvailable,
} |
export { default as CreateTemplate } from './create';
export { default as PollTemplate } from './poll'; |
import { observer } from 'mobx-react-lite';
import React from 'react';
import styles from './hello-world.module.less';
export const HelloWorld = observer(() => <h1 className={styles.name}>Hello world</h1>); |
import Game from './Game.js';
import KeyListener from './KeyboardListener.js';
import Scene from './Scene.js';
import StartScreen from './StartScreen.js';
import UserData from './UserData.js';
export default class WinScreen extends Scene {
private mainLogo: HTMLImageElement;
private buttonImage: HTMLImageElement;... |
var log = (msg : string) => {};
var devices: BLECentralPlugin.PeripheralData[] = [];
var demoDevice :BLECentralPlugin.PeripheralData = {
"name": "Battery Demo",
"id": "20:FF:D0:FF:D1:C0",
"advertising": [2,1,6,3,3,15,24,8,9,66,97,116,116,101,114,121],
"rssi": -55
};
devices.push(demoDevice);
var demoEx... |
import { Component, ViewChild, ChangeDetectorRef } from '@angular/core';
import { of } from 'rxjs';
import { SelectComponent } from 'ng-devui/select/select.component';
@Component({
selector: 'd-custom-search',
templateUrl: './custom-search.component.html',
styleUrls: ['./custom-search.component.css']
})
export c... |
import { H4 } from "@blueprintjs/core";
import * as actions from "@nteract/actions";
import { ContentRef } from "@nteract/core";
import { ErrorIcon, LoadingIcon, SavingIcon } from "@nteract/iron-icons";
import * as React from "react";
import { connect } from "react-redux";
import { Dispatch } from "redux";
import urljo... |
import { defineComponent } from "./component";
describe("component", () => {
it("should create a component definition with type and data", () => {
const Mass = defineComponent("mass", 0);
expect(Mass.__type).toEqual("mass");
expect(Mass.__data).toEqual(0);
});
it("should construct a component from c... |
/**
* Pretty printing for Pino logger
* NOTE: not for production use
*/
import { Writable } from 'stream'
const prettyFactory = require('pino-pretty')
// options: https://github.com/pinojs/pino-pretty#options
function prettyStreamFactory(config: any) {
const { level, ...options } = config
const pretty = pretty... |
/**
* @license Copyright 2018 Google Inc. 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 applicable law or a... |
/**
* Default key used to access the XML attributes.
*/
export declare const XML_ATTRKEY = "$";
/**
* Default key used to access the XML value content.
*/
export declare const XML_CHARKEY = "_";
/**
* Options to govern behavior of xml parser and builder.
*/
export interface SerializerOptions {
/**
* indi... |
context('Components/Tab', () => {
it('should use keys to navigate tabs', () => {
cy.visit('http://localhost:9009/frame/?path=/components/tab/example')
cy.get('#example-tab-foo').click().realPress('{rightarrow}')
cy.get('#example-tab-bar:focus').realPress('{rightarrow}')
cy.get('#example-tab-baz:foc... |
import UnionPayDetail from 'containers/Account/UnionPay/Detail'
export default UnionPayDetail |
/* tslint:disable completed-docs */
/**
* Conflux types
*/
declare module '@transcend-io/conflux' {
// TypeScript isn't aware of TransformStream
/* eslint-disable no-undef */
/** Conflux Zip Writer class */
export class Writer extends TransformStream {
/* eslint-enable no-undef */
constructor();
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*----------------------------------------------------------------... |
/**
* <p>Information about a constraint.</p>
*/
export interface _ConstraintDetail {
/**
* <p>The identifier of the constraint.</p>
*/
ConstraintId?: string;
/**
* <p>The type of constraint.</p> <ul> <li> <p> <code>LAUNCH</code> </p> </li> <li> <p> <code>NOTIFICATION</code> </p> </li> <li> <p>STACKSET... |
import { WIcon } from './wicon.model';
export declare const wiconQuestionSquare: WIcon; |
import React from 'react'
const Home = () => {
return <div>
<input />
</div>
}
export default Home |
/// <reference path='../typings/ember/ember.d.ts' />
/// <reference path='../typings/lodash/lodash.d.ts' />
module ynab.common {
'use strict';
/**
* EmberBaseObject is a base class that you can inherit from in Typescript.
* It provides your derived class with a _static_ method "create", from which ... |
import { AbiItem } from 'web3-utils';
// tslint:disable-next-line:variable-name
export const UpdatableFeedInterfaceAbi = [
{
constant: true,
inputs: [],
name: 'getLastUpdateId',
outputs: [{ name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
... |
import { format, parseJSON } from 'date-fns';
import * as React from 'react';
export interface IDateFieldProps {
value: Date | string;
}
export const DateField: React.FunctionComponent<IDateFieldProps> = ({value}: React.PropsWithChildren<IDateFieldProps>) => {
const [ dateValue, setDateValue ] = React.useState<st... |
// *** 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 { I18nWidget } from '@components/common'
import { Github, Vercel } from '@components/icons'
import { Container, Logo } from '@components/ui'
import type { Page } from '@framework/common/get-all-pages'
import getSlug from '@lib/get-slug'
import cn from 'classnames'
import Link from 'next/link'
import { useRouter ... |
import { AbstractClient } from "../../../common/abstract_client";
import { ClientConfig } from "../../../common/interface";
/**
* tcb client
* @class
*/
export declare class Client extends AbstractClient {
constructor(clientConfig: ClientConfig);
/**
* 创建托管域名
*/
CreateHostingDomain(req: CreateH... |
/// <reference path="./node.d.ts" />
/// <reference path="./Q.d.ts" />
import Q = require('q');
import events = require('events');
export interface IExecOptions {
cwd: string;
env: {
[key: string]: string;
};
silent: boolean;
failOnStdErr: boolean;
ignoreReturnCode: boolean;
outStrea... |
import {
RectangleAttributeList as attributeList,
RectangleUniformList as uniformList
} from "../CONST";
const position = attributeList[0];
const offset = attributeList[1];
const origin = attributeList[2];
const angle = attributeList[3];
const color = attributeList[4];
const projection = uniformList[0];
const ... |
import { Component, Prop } from "@stencil/core";
import { GetProductsRequest } from "../../api/requests/get-products-request";
import { getProducts } from "../../actions/productActions";
import { Store, Action } from "@stencil/redux";
@Component({
tag: "product-search",
})
export class ProductSearch {
@Prop({ con... |
import React from 'react';
import { Helmet } from 'react-helmet';
import Demo from '../../components/Demo';
import Markdown from '../../components/Markdown';
import RelatedPosts from '../../components/RelatedPosts';
export default () => {
return (
<>
<Helmet>
<meta
name='keywords'
content={`
... |
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, QueryList, Renderer2 } from '@angular/core';
import { EventRegistry } from '@angular-mdc/web/common';
import { Observable } from 'rxjs';
import { MdcTab, MdcTabSelected } from './tab';
/** A simple change event emitted selection ... |
import styled from '@emotion/styled'
import { Pane } from './Pane'
export const Card = styled(Pane)()
Card.defaultProps = {
borderRadius: 10,
} |
import styled from "react-emotion"
export const Section = styled("h2")`
background-image: linear-gradient(
to right,
hsla(301, 40%, 10%, 0),
hsla(301, 40%, 10%, 0),
hsla(301, 40%, 20%, 0.8),
hsla(301, 40%, 10%, 0),
hsla(301, 40%, 10%, 0)
);
font-family: ${(p... |
// @todo: remove the following line when part imports has been removed from this file
///<reference types="@sanity/types/parts" />
import React from 'react'
import DefaultDialog from 'part:@sanity/components/dialogs/default'
import {LegacyLayerProvider} from '@sanity/base/components'
import styles from './UpdateNotif... |
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Deck, CardData, Card } from './model';
import 'rxjs/add/operator/toPromise';
@Injectable()
export class DeckService {
current: CardData;
sending: boolean = false;
constructor(
private http: Http
) { }
//GET /dec... |
import { Compare, defaultCompare, defaultEquals, ICompareFunction, IEqualsFunction } from '../util';
import LinkedList from './linked-list';
export default class SortedLinkedList<T> extends LinkedList<T> {
constructor(
protected equalsFn: IEqualsFunction<T> = defaultEquals,
protected compareFn: ICompareFunct... |
export = News;
/**
* Represents an individual news article. Static functions retrieve News objects.
*/
declare class News {
/**
* Returns an array of News objects for the given symbol.
* @author Torrey Leonard <https://github.com/Ladinn>
* @param {String} symbol
* @returns {Promise<Array>}
... |
import { K8sResourceKindReference, Selector, K8sResourceKind } from '../../module/k8s';
export type FirehoseResult<R extends K8sResourceKind | K8sResourceKind[] = K8sResourceKind[]> = {
loaded: boolean;
loadError: string;
data: R;
};
/*
Add the enum for NameValueEditorPair here and not in its namesake file be... |
namespace Random {
import ƒ = FudgeCore;
let random: ƒ.Random = new ƒ.Random();
ƒ.Debug.log("[0,1[", random.getNorm());
ƒ.Debug.log("[-1,1[", random.getRange(-1, 1));
ƒ.Debug.log("[-10, 10]", random.getRangeFloored(-10, 10));
ƒ.Debug.log("Bool", random.getBoolean());
ƒ.Debug.log("Sign", random.getSign())... |
/// <reference types="svelte" />
import { SvelteComponentTyped } from "svelte";
export interface DesignResearchProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["svg"]> {
tabindex?: string;
/**
* @default "currentColor"
*/
fill?: string;
}
export default class DesignResearch extends SvelteC... |
import {TestBed, inject, fakeAsync, tick} from '@angular/core/testing';
import {ScrollingModule} from './public-api';
import {ViewportRuler} from './viewport-ruler';
import {dispatchFakeEvent} from '@angular/cdk/testing/private';
import {NgZone} from '@angular/core';
import {Subscription} from 'rxjs';
describe('Viewpo... |
import { RestService } from 'src/app/service/rest.service';
export class EgVault {
/**
* Wrapper for the EgVault API
*/
constructor(private restService: RestService) {
}
// tslint:disable:typedef
get Root() {
return () => this.restService.createRequest<EgVault.Response.Root>('get', '/', {}, 'egvault');
... |
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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 ... |
var hauler = require('./hauler.ts');
export function init(){
}
export function run(){
startTick();
let haulers = _.filter(Game.creeps, creep => {return (creep.memory.role == 'hauler')});
for (let i in haulers){
hauler.run(haulers[i]);
}
endTick();
}
export function startTick(){
}
exp... |
import {ScaleLinear, ScaleLogarithmic, ScaleTime} from 'd3'
import React, {FunctionComponent} from 'react'
import {ChartColors} from './chartColors'
import {PreparedMetricsSeries} from './OutcomeChart'
type OutcomeChartHoverProps = {
hoverIdx: number
scaleX: ScaleTime<number, number>
scaleY:
| ScaleLinear<nu... |
import * as React from 'react';
import { css, CssValue, defaultValue, formatColor } from '../../common';
export type CropmarksProps = {
size: number;
margin: number;
color?: string | number;
style?: CssValue;
};
export const Cropmarks: React.FC<CropmarksProps> = (props) => {
const { margin, size } = props;
... |
import {SelectableRow} from "./components/SelectableRow";
import SelectableRowDefinition from "./components/SelectableRowDefinition";
export const SelectionPlugin = (config?: any) => {
return {
components: {
Row: SelectableRow,
RowDefinition: SelectableRowDefinition
}
}
... |
import axios from 'axios';
const todoUrl = 'https://jsonplaceholder.typicode.com/todos/25';
const userUrl = 'https://jsonplaceholder.typicode.com/users';
// define a structure of a todo object
// help catching errors during development
interface Todo {
id: number;
title: string;
completed: boolean;
}
interface... |
/**
* Asynchronously loads the component for ExperimentPage
*/
import { lazyLoad } from 'utils/loadable';
export const ModelsPage = lazyLoad(
() => import('./index'),
module => module.ModelsPage,
); |
// *** 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";
/*... |
/*
* @Author: Vir
* @Date: 2021-05-12 14:37:22
* @Last Modified by: Vir
* @Last Modified time: 2021-05-12 15:05:47
*/
import { RedisModuleOptions } from 'nestjs-redis';
export default {
port: 6379,
host: '47.100.53.121',
password: '',
db: 0,
} as RedisModuleOptions; |
type Diff<First, Second> = {
[Key in
| Exclude<keyof First, keyof Second>
| Exclude<keyof Second, keyof First>]: Key extends keyof First
? Key extends keyof Second
? never
: First[Key]
: Key extends keyof Second
? Second[Key]
: never
} |
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* DescribeGroupInput shape
*/
export interface DescribeGroupInput {
/**
* <p>The identifier for the organization under which the group exists.</p>
*/
OrganizationId: string;
/**
... |
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
module BABYLON {
/**
* Mode that determines the coordinate system to use.
*/
export enum GLTFLoaderCoordinateSystemMode {
/**
* Automatically convert the glTF right-handed data to the appropriate system based on the ... |
/*
* Copyright 2021 ABSA Group Limited
*
* 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 agr... |
<TS language="zh_CN" 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>
<translation>创建新地址</translation>
... |
import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsAlphanumeric, IsNotEmpty, Length } from 'class-validator';
export class CreateMinecraftDto {
@IsNotEmpty()
@Length(4, 20)
@IsAlphanumeric()
@ApiPropertyOptional({
maxLength: 20,
minLength: 4,
format: 'alphanumeric',
required: tru... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About FullSendCoin</source>
<translation>О FullSendCoin-у</translation>
... |
import React, { forwardRef } from 'react';
import type { IconBaseProps } from '../icon/IconBase';
import IconBase from '../icon/IconBase';
const BlockquoteLeft = forwardRef<HTMLSpanElement, IconBaseProps>(({ svgProps, ...restProps }, ref) => {
return (
<IconBase aria-label="blockquote-left" {...restProps} ref={r... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { UserFilterType, QuerySpec, RoleEnum } from "./globalTypes";
// ====================================================
// GraphQL query operation: Users
// =================================... |
import {TapService} from '../../services';
import {Tap} from '../../models';
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Observable } from 'rxjs/Rx';
import {AuthService} from '../../services/auth.service';
@Component({
selector: 'dashboard',
templateUrl: './template.html',
style... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as fetch from "node-fetch";
import * as devCerts from "office-addin-dev-certs";
import * as devSettings from "office-addin-dev-settings";
import * as os from "os";
import { DebuggingMethod, sideloadAddIn } from "of... |
// import { RenderNotOnServerDirective } from './render-not-on-server.directive';
// describe('RenderNotOnServerDirective', () => {
// it('should create an instance', () => {
// const directive = new RenderNotOnServerDirective();
// expect(directive).toBeTruthy();
// });
// }); |
import { AssetTypeV2 } from "@rarible/tezos-common";
import {testScript} from "../../main/script";
import {awaitDevItem} from "../common/utils";
export async function dev_cancel_bid() {
console.log("--------------------")
console.log("Running dev_cancel_bid test")
console.log("--------------------")
const sell... |
import React, { FC } from 'react';
import { hot } from 'react-hot-loader';
import { connect } from 'react-redux';
import UserInviteForm from './UserInviteForm';
import { contextSrv, NavModel } from 'app/core/core';
import { getNavModel } from 'app/core/selectors/navModel';
import { StoreState } from 'app/types/store';
... |
import { NestInterceptor, ExecutionContext, CallHandler, Injectable } from "@nestjs/common";
import { Observable } from "rxjs";
import { map } from "rxjs/operators";
import { ServerResponse } from "http";
@Injectable()
export class AppendMetadataInterceptor implements NestInterceptor {
intercept(context: Execution... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { typeOrmConfig } from './config/typeorm.config';
import { LessonsModule } from './lessons/lessons.module';
import { AuthModule } from './auth/auth.module';
@Module({
imports: [TypeOrmModule.forRoot(typeOrmConfig), Lesso... |
import {Component, ViewChild} from '@angular/core';
import {LabelBComponent} from 'ng-bcomponents';
@Component({
templateUrl: 'bcomponent.api.html',
inputs: []
})
export class BComponentApi {
@ViewChild('lblFadeTo') lblFadeTo: LabelBComponent;
public fadeTo = () => {
this.lblFadeTo.fadeTo(400, ... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { R370RoutingModule } from './r370-routing.module';
import { R370Component } from './r370.component';
@NgModule({
declarations: [R370Component],
imports: [
CommonModule,
R370RoutingModule
]
})
export class ... |
import React from 'react';
// import { useSpring, animated } from 'react-spring';
import { useDispatch, useSelector } from 'react-redux';
import { RootState } from '../../../common/rootReducer';
import {
deleteNoteAction,
// setSelectedNoteIdAction,
} from '../note.actions';
import { RouteComponentProps, withRouter... |
import { DateTime, DateTimeFormatOptions, LocaleOptions, NumberingSystem } from 'luxon';
import { TimeFormat } from '../models/time-format.enum';
import { TimePeriod } from '../models/time-period.enum';
import { isBetween, isSameOrAfter, isSameOrBefore } from '../utils/timepicker.utils';
import { TimeOptions } from '.... |
import { TestBed } from '@angular/core/testing'
import { WebsocketModule } from 'ng-rx-websocket'
import { AppComponent } from './app.component'
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [AppComponent],
imports: [WebsocketModule.for... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
*/
export const pkgName = "@fluidframework/request-handler";
export const pkgVersion = "0.29.0"; |
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Cron } from '@nestjs/schedule';
import { MailerService } from '@nestjs-modules/mailer';
import { Model } from 'mongoose';
import { TokenConfig } from '@configs/token';
import { ExpiredToken } from '@errors/token/expir... |
import React, { Component, createRef, HTMLAttributes } from 'react';
import { classNames } from '../../lib/classNames';
export interface SplitColContextProps {
colRef: React.RefObject<HTMLDivElement>;
animate: boolean;
}
export const SplitColContext = React.createContext<SplitColContextProps>({
colRef: null,
... |
import * as React from 'react';
import Typography from '@material-ui/core/Typography';
import ActionsPanel from 'src/components/ActionsPanel';
import Button from 'src/components/Button';
import ConfirmationDialog from 'src/components/ConfirmationDialog';
interface Props {
isOpen: boolean;
handleClose: () => void;... |
<TS language="ko_KR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>새 주소 만들기</translation>
</message>
<message>
<source>&New</source>
<translation>새 항목(N)</translation>
</message>
<message>
... |
// Angular
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
// Standard
import { AppRoutingModule } from './app.... |
export type TokenData = {
name: string;
symbol: string;
decimals: number
}; |
import React, { useEffect, useState } from 'react';
import {SearchBar} from './../../components/Search/SearchBar/SearchBar';
import Title from '../../components/Title/Title';
import { USERNAME_KEY } from '../../config/Variables';
import './Home.scss';
import { Search } from '../../components/Search/Search';
const Home... |
import bootstrapPlugin from '@fullcalendar-ml/bootstrap'
import timeGridPlugin from '@fullcalendar-ml/timegrid'
import { CalendarWrapper } from '../lib/wrappers/CalendarWrapper'
import { TimeGridViewWrapper } from '../lib/wrappers/TimeGridViewWrapper'
describe('themeSystem', () => {
pushOptions({
plugins: [boots... |
import { TestBed } from '@angular/core/testing';
import { StripeCheckoutService } from './stripe-checkout.service';
describe('CheckoutService', () => {
let service: StripeCheckoutService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(StripeCheckoutService);
});
it('... |
import { BoatType } from '../../../../harborView/forms/types';
import { Boat } from '../../../types';
export const mockBoatTypes: BoatType[] = [{ id: '1', name: 'Purjevene' }];
export const mockValidValues: Boat = {
boatType: mockBoatTypes[0],
id: 'id',
model: 'model',
name: 'name',
registrationNumber: '123... |
import React, { FunctionComponent } from 'react'
import styled, { css } from 'styled-components';
import { variables } from 'styles/variables'
const StyledBurger = styled.button<{ isOpen: boolean }>`
display: block;
background-color: transparent;
border: none;
width: 3.2rem;
height: 2.4rem;
z-index: 1000;
... |
export enum WIcon {
Adobe = "w-icon-adobe",
Alipay = "w-icon-alipay",
Aliwangwang = "w-icon-aliwangwang",
AndroidO = "w-icon-android-o",
Android = "w-icon-android",
Apple = "w-icon-apple",
AppstoreO = "w-icon-appstore-o",
Appstore = "w-icon-appstore",
AreaChart = "w-icon-area-chart",
ArrowDown = "w-... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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 { isHbf } from 'client/Abfahrten/Components/Abfahrt/Via';
import { StationLink } from 'client/Common/Components/StationLink';
import { useAbfahrtenUrlPrefix } from 'client/Abfahrten/provider/AbfahrtenConfigProvider';
import { useMemo } from 'react';
import { useStyles } from './Normal';
import clsx from 'clsx';
... |
/*
* 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 { TypeRegistry } from '../../../type_registry';
import { registerBuiltI... |
import types from '../types';
import axios from 'axios';
import { Action, Dispatch } from 'redux';
import { Brick } from 'model/brick';
const fetchBrickSuccess = (data:any) => {
return {
type: types.FETCH_BRICK_SUCCESS,
payload: data
} as Action
}
const fetchBrickFailure = (errorMessage:string) => {
ret... |
import * as React from 'react';
import { useEffect, useRef } from 'react';
import SearchBar from '../SearchBar/SearchBar';
import Button, { ButtonLevel } from '../Button/Button';
import CommandService from '@joplinapp/lib/services/CommandService';
import { runtime as focusSearchRuntime } from './commands/focusSearch';
... |
import * as React from 'react';
import { DefaultPalette } from '@fluentui/react/lib/Styling';
import {
GroupedVerticalBarChart,
IGroupedVerticalBarChartProps,
IGroupedVerticalBarChartData,
} from '@fluentui/react-charting';
import { ChoiceGroup, IChoiceGroupOption } from '@fluentui/react/lib/ChoiceGroup';
interf... |
import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
import { IconBase } from '@sbb-esta/angular-icons/core';
/**
* @deprecated use @sbb-esta/angular-core/icon module
*/
@Component({
selector: 'sbb-icon-tree',
// tslint:disable:max-line-len... |
// *** 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 { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { faExclamationTriangle, faCheckSquare } from '@fortawesome/free-solid-svg-icons';
@Component({
selector: 'app-notification',
templateUrl: './notification.component.html',
styleUrls: ['./notification.component.scss']
})
export... |
export type NodeID = number;
export type ClusterID = number;
export type NodeLink = [NodeID, NodeID];
export interface Cluster extends Iterable<NodeID> {
/**
* guaranteed to range from 0 to (number clusters - 1) in the contained clustering
*/
readonly id: ClusterID;
readonly length: number;
}
export inter... |
import ServiceProvider from '../Application/ServiceProvider'
import { IServiceProvider } from '../Application/ServiceProvider'
import Validator from '../Validation'
/**
* @name ValidationServiceProvider
* @author Robin Panta
*/
export default class ValidationServiceProvider extends ServiceProvider implements IServ... |
import React from "react";
const Intro = () => {
return (
<div className="main-intro">
<div className="main-intro__image"></div>
<div className="main-intro__blind"></div>
<div className="main-intro__item main-intro__text main-intro__text--big">
Самые лучш... |
/**
* @overview
* Container stands for the outmost layer of the carousel's element tree;
* It holds the carousel along with elemental components like arrows, count, etc.
*
* The container element is specified by the initial `containerSelector`
* provided as parameter of the constructor function of class `Kineto`.... |
import { INestApplication } from '@nestjs/common';
import { OpenAPIObject } from '@nestjs/swagger';
export interface IEnvironment {
production: boolean;
assetsPath: string;
jwtSecret: string;
dbHost: string;
dbName: string;
dbPassword: string;
dbPort: number;
dbUsername: string;
swaggerInitializer: (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.