text
stringlengths
10
953k
import Button from "@material-ui/core/Button"; import Dialog from "@material-ui/core/Dialog"; import DialogActions from "@material-ui/core/DialogActions"; import DialogContent from "@material-ui/core/DialogContent"; import DialogTitle from "@material-ui/core/DialogTitle"; import Paper from "@material-ui/core/Paper"; im...
import {Component} from '@angular/core'; @Component({ selector: 'app-example', template: ` <input [(ngModel)]="name" #ctrl="ngModel" required> <p>Value: {{ name }}</p> <p>Valid: {{ ctrl.valid }}</p> <button (click)="setValue()">Set value</button> ` }) export class SimpleNgModelComponent { name...
/* * Copyright 2020 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 ...
"use strict"; import { RepositoryId } from "@developertown/core"; import * as uuid from "uuid"; import { IdSeedProvider } from "./factory/iIdSeedProvider"; export class UUIDProvider implements IdSeedProvider { public next(): RepositoryId { return uuid.v4(); } }
import { google } from "googleapis"; import type { NextApiRequest, NextApiResponse } from "next"; import { getSession } from "@lib/auth"; const credentials = process.env.GOOGLE_API_CREDENTIALS!; const scopes = [ "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events"...
import { Policy16 } from "../../"; export = Policy16;
import React, { useEffect, useState } from 'react'; import startCase from 'lodash/startCase'; import toLower from 'lodash/toLower'; import { CategoriesChart } from '.'; import { EmployeeType } from './types'; import { currencyFilter, pluralize, payrollBreakDown } from '../util'; interface Props { employees: Emplo...
//================================================================ /** * @packageDocumentation * @module std.ranges */ //================================================================ import * as base from "../../algorithm/mathematics"; import { IBidirectionalContainer } from "../container/IBidirectionalContai...
/* * 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...
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'serviceSearch' }) export class ServiceSearchPipe implements PipeTransform { transform(value: any, args?: any): any { if (!args) { return value; } return value.filter(_e => { for (const _i in _e) { if (_e.name && _e...
export const nonTicketerTestCsv: string = ',Acomb Green Lane,,,,,,,\n' + 'Mattison Way,110,Mattison Way,,,,,,\n' + 'Nursery Drive,110,110,Nursery Drive,,,,,\n' + 'Holl Bank/Beech Ave,110,110,110,Holl Bank/Beech Ave,,,,\n' + 'Cambridge Street (York),170,170,110,110,Cambridge Street (York),,,\n' + ...
/** * @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 {Type} from '@angular/core'; import {Data, ResolveData, Route} from '../src/config'; import {ActivatedRouteS...
import { Movie } from './movie.model'; export interface Response { page: number; results: Movie[]; total_pages: number; total_results: number; }
/* * @Descripttion: 商品控制器 * @version: 1.0 * @Author: hk5518 * @Date: 2020-03-25 20:28:36 */ import { GoodsService } from '@libs/sv/goods/goods/goods.service'; import { Body, Controller, Get, Post, Query } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { ApiBearerAuth, ApiOperation, ApiTag...
import { ValidationPipe } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; // import { logger } from './common/middlewares/logger.middleware'; async function bootstrap() { const app = await N...
import {getEventName} from "../util/getEventName"; import {MenuItem} from "./MenuItem"; export class Custom extends MenuItem { constructor(vditor: IVditor, menuItem: IMenuItem) { super(vditor, menuItem); this.element.children[0].innerHTML = menuItem.icon; this.element.children[0].addEventLi...
import { Component, OnInit, ChangeDetectorRef, OnDestroy, ViewChild } from '@angular/core'; import { ActivatedRoute, Params } from '@angular/router'; import { Subscription } from 'rxjs'; import LuigiClient from '@kyma-project/luigi-client'; import { IContextMessage, LuigiContextService } from '../service...
import { io } from '../../../server' import { IMessageCreate } from '../dto/IMessageCreate.dto' import { IMessagesRepository } from '../repositories/IMessagesRepository' class MessageCreateService { constructor(private repository: IMessagesRepository) { } async execute(entity: IMessageCreate) { const newMess...
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import { CertificadoPresupuestario } from './.' const httpOptions = { headers: new HttpHeaders...
import {gql, NetworkStatus, useQuery} from '@apollo/client'; import {IBreadcrumbProps} from '@blueprintjs/core'; import * as React from 'react'; import {useDocumentTitle} from 'src/hooks/useDocumentTitle'; import {INSTANCE_HEALTH_FRAGMENT} from 'src/instance/InstanceHealthFragment'; import {SensorTickHistory} from 'sr...
import { Components } from "../types/api"; /** * Interface describing the accumulated information of all members on a profile. * @hidden */ interface ProfileCollectionValues { unlockedCollTiers: Set<string>; collectionQuantities: { [collectionName: string]: number; }; } /** * Interface that describes a ...
import { WatsonHealthEdgeEnhancement_0120 } from "../../../"; export = WatsonHealthEdgeEnhancement_0120;
import {combineReducers, Reducer} from 'redux'; import ui from './ui'; import sessions from './sessions'; import termGroups from './term-groups'; import {HdtyperActions, HdtyperState} from '../hdtyper'; export default combineReducers({ ui, sessions, termGroups }) as Reducer<HdtyperState, HdtyperActions>;
import { createFile } from './createFile'; import { SchemaObject, Options } from '@paljs/types'; import { format } from 'prettier'; export function createGraphql(schemaObject: SchemaObject, options: Options) { schemaObject.models .filter((model) => !options.models || options.models.includes(model.name)) .for...
import { ConfigurationSchema, readConfObject, } from '@jbrowse/core/configuration' import RpcManager from '@jbrowse/core/rpc/RpcManager' import PluginManager from '@jbrowse/core/PluginManager' import { PluginDefinition } from '@jbrowse/core/PluginLoader' import { getParent, getRoot, getSnapshot, resolveIden...
import {Schedule} from "./schedules-model"; export class Tasks { taskId: number; downloadStatus: string; startDownloadTime: Date; endDownloadTime: Date; intrash: string; scheduleId: Schedule; }
/** * @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 {Component, Directive, ElementRef, TemplateRef, ViewContainerRef, ViewEncapsulation} from '@angular/core'; im...
import { Box, DialogContent, DialogTitle, IconButton, Theme } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import CloseIcon from '@material-ui/icons/Close'; import React from 'react'; import { DialogContentWrapperProps } from '../../props/widget.props'; const useStyles = makeStyles(...
import {firestore, geoFirestore} from './client'; const db = firestore(); const geoDb = geoFirestore(); export const groups = geoDb.collection('groups'); export const users = db.collection('users');
/* * MIT License * Copyright (c) 2018-2020 Aspose Pty Ltd * 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 rights * to use, copy, modify...
import { memo } from "../../utils" import { guardApplyConfig } from "../config" import { GuardType, GuardURI } from "../hkt" import { introduce } from "@matechs/core/Function" import type { Iso } from "@matechs/core/Monocle/Iso" import type { Prism } from "@matechs/core/Monocle/Prism" import type { AnyEnv } from "@mat...
export { FIRST_KEY_INDEX, IS_READ_ONLY } from './ZRANDMEMBER'; export declare function transformArguments(key: string, count: number): Array<string>; export declare function transformReply(): Array<string>;
import { Injectable } from '@nestjs/common'; import { DialogFlowFulfillmentResponse } from '../../interfaces/dialog-flow-fulfillment-response.interface'; import { DialogFlowIntent } from '../../decorators/dialog-flow-intent.decorator'; import { DialogFlowAction } from '../../decorators/dialog-flow-action.decorator'; im...
import { dollarsToUnderscores, LoadQueryVars } from "@haulmont/jmix-react-core"; import { useCallback, useEffect } from "react"; import { useEntityEditor, EntityEditorHookOptions, EntityEditorHookResult, useSubmitCallback } from "@haulmont/jmix-react-web"; import { useMasterDetailStore } from "./Mas...
import pnwkit from '../../../src'; import testconfig from '../../testconfig.json'; before(function() { pnwkit.setKey(testconfig.apiKey); });
/* * The purpose of this file is to abstract all config-related implementations * by re-exporting their constructors from a single file. * * Copyright (c) Joseph R Cowman * Licensed under MIT License (see https://github.com/regal/regal) */ export { buildInstanceOptions } from "./instance-options-impl"; export { ...
import { Injectable } from '@nestjs/common'; import { UsersService } from 'src/users/users.service'; import { PlatformDTO } from './platform.dto'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Platform } from './platform.entity'; @Injectable() export class PlatformS...
/// /// Copyright © 2016-2021 The Thingsboard 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...
import { Uint128 } from "./shared-types"; export interface StakedBalanceAtHeightResponse { balance: Uint128; height: number; [k: string]: unknown; }
import { EntityRepository, Repository } from "typeorm"; import { Developer } from "../entities/Developer"; @EntityRepository(Developer) class DeveloperRepository extends Repository<Developer> { async getPaginated( page: number, limit: number, field?: string, search?: string ) { const query = th...
import { flattenChildren, isValidElement } from '../../_util/props-util'; import type { VNode } from 'vue'; import type { BaseOptionType, DefaultOptionType } from '../Select'; import type { VueNode } from '../../_util/type'; function convertNodeToOption<OptionType extends BaseOptionType = DefaultOptionType>( node: V...
import React, { Component } from 'react' import HeaderCell from './HeaderCell' import { ColumnType } from '../types/PublicTypes' import { ServiceTableDataType } from '../types/PrivateTypes' interface HeaderRowProps { serviceTableData: ServiceTableDataType } class HeaderRow extends Component<HeaderRowProps> { ...
import React, { FC } from 'react' import PropTypes from 'prop-types' import Highlight, { defaultProps } from 'prism-react-renderer' const CodeBlock: FC = ({ children }) => { const _children = children.props.children const language = children.props.className ? children.props.className.replace(/language-/, '') ...
import * as sinon from 'sinon'; import { conn } from './connect'; import { delayPromise } from './delay-promise'; import * as assert from 'assert'; import { Fin } from '../src/main'; import { cleanOpenRuntimes } from './multi-runtime-utils'; // tslint:disable-next-line:no-function-expression describe('Window.', functi...
import * as cdk from '@aws-cdk/core'; import { Metaflow } from '..'; /** * Integration test. This lives in the src directory so we can run it. * @internal */ export class IntegMetaflowStack extends cdk.Stack { public readonly metaflow: Metaflow; constructor(scope: cdk.Construct, id: string, props: cdk.StackProps...
import { getWeb3 } from './utils'; import { getSDK } from '@cardstack/cardpay-sdk'; export const hubAuth = async (hubRootUrl: string, network: string, mnemonic?: string): Promise<void> => { let web3 = await getWeb3(network, mnemonic); let authToken = await (await getSDK('HubAuth', web3, hubRootUrl)).authenticate()...
export const icon = { p: `<path d="M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 1...
/** * @license * Copyright 2019 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 ...
// This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, apiUrl: 'http://127.0.0.1:5000' }; /* * For ...
import { RpcClient } from '../src/taquito-rpc'; import BigNumber from 'bignumber.js'; import { LazyStorageDiffBigMap, OperationContentsAndResultEndorsement, OperationContentsAndResultEndorsementWithSlot, OperationContentsAndResultOrigination, OperationResultTransaction, OperationContentsAndResultTransaction, LazyStorag...
import * as signalR from '@microsoft/signalr'; import axios, { AxiosInstance } from 'axios'; import { CgfPtzCameraState } from './CgfPtzCameraState'; import { EventEmitter } from 'events'; import { Agent as HttpsAgent } from 'https'; import { ICameraConnection } from '../ICameraConnection'; import { ICgfPtzCameraConf...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { Test } from "mocha"; import { assertEnvironmentVariable, env, Recorder, RecorderStartOptions, } from "@azure-tools/test-recorder"; import { TokenCredential } from "@azure/identity"; import { createTestCredential } from "@azure...
import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
import { CodeWorkflowInformation, ContainerWorkflowInformation, WorkflowOption, SiteSourceControlRequestBody, } from '../DeploymentCenter.types'; import { RuntimeStacks, JavaContainers } from '../../../../utils/stacks-utils'; import { getWorkflowFileName, getLogId } from './DeploymentCenterUtility'; import Depl...
import s3 = require('@aws-cdk/aws-s3'); import cdk = require('@aws-cdk/cdk'); import cloudtrail = require('../lib'); const app = new cdk.App(); const stack = new cdk.Stack(app, 'integ-cloudtrail'); const bucket = new s3.Bucket(stack, 'Bucket', { removalPolicy: cdk.RemovalPolicy.Destroy }); const trail = new cloudtra...
export { ExampleComponent } from './components/example-element'; export { SlotMover } from './components/slot-mover';
import * as vscode from 'vscode'; import { Actions, BaseAction, KeypressState } from './../actions/base'; import { BaseMovement } from '../actions/baseMotion'; import { CommandInsertInInsertMode, CommandInsertPreviousText } from './../actions/commands/insert'; import { Jump } from '../jumps/jump'; import { Logger } fr...
export interface User { firstName: string; lastName: string; } export const fetchUser = async (id: number): Promise<User> => await fetch(`/user/${id}`).then(res => res.json()); export const fetchUsers = async (): Promise<User> => await fetch(`/users`).then(res => res.json());
import { Validation } from '../validation' export interface ArenaObject<T> { readonly uuid: string props: T validation?: Validation } export type { Factory } from './factory'
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/// <reference path="p2.d.ts" /> /// <reference path="tween.d.ts" /> /// <reference path="global.ts" /> /// <reference path="global/point.ts" /> /// <reference path="global/vector.ts" /> /// <reference path="events.ts" /> /// <reference path="elements.ts" /> /// <reference path="scene.ts" /> /// <reference path="cam...
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm'; @Entity('verifications') export class Verification { @PrimaryGeneratedColumn() id!: number; @Column({ type: 'varchar', length: 256 }) token!: string; @Column({ type: 'varchar', select: false }) code?: string; // Virtual Field (not in DB...
import { UserService } from '../../../services/user'; // const StorageService = require('../../../services/storage'); export const createUser = async (ctx: any): Promise<void> => { try { const userService = new UserService(); const newUser = ctx.request.body; ctx.response.body = await userService.createU...
/** * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the 'License'); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
import * as express from "express"; import { VError } from "verror"; import { logger } from "../logging/logging"; import isDevelopment from "../utils/isDevelopment"; let getError = (err) => ({}); // Send full error if development. if (isDevelopment()) { getError = (err) => err; } function middleware(err: any, req...
/** * Swagger Petstore * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec ver...
import * as superagent from 'superagent'; import * as bluebird from 'bluebird'; declare module 'superagent' { interface Request { result: (optionalField?: string) => bluebird<any>; proxy: (proxyUrl: string) => this; verifyResponse: (response: superagent.Response) => superagent.Response; forceV1Auth: ...
import { join } from 'path' import { NodePath } from '@babel/core' import * as t from '@babel/types' import { State } from '../types' import { dotPath, objectProperty, getObjectProperties } from '../utils' import { isImportLocalName } from '../utils/isImportLocalName' import { getPrefix } from '../utils/getPrefix' // i...
import { Spec } from '@hayspec/spec'; import { Validator } from 'jsonschema'; import { XcertSchema, xcertSchema } from '../assets/xcert-schema'; const spec = new Spec<{ validator: Validator; }>(); spec.before((stage) => { stage.set('validator', new Validator()); }); spec.test('allows simple types', (ctx) => { ...
/* * 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 from 'react'; import { Redirect } from 'react-router-dom'; impo...
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; import { DeleteBucketRequest } from "../models/models_0"; import { deserializeAws_restXmlDeleteBucketCommand, serializeAws_restXmlDeleteBucketCommand, } from "../protocols/Aws_restXml"; import { getSerdePlugin } from "@aws-...
import { WithStyle } from '@medly-components/utils'; import React, { FC } from 'react'; import SpeakerPhoneIconSvg from '../../assets/Communication/speaker_phone_24px_rounded.svg'; import SvgIcon, { SvgIconProps } from '../../SvgIcon'; const Component: FC<SvgIconProps> = React.memo(props => { const { size, withHov...
import { decryptWithKey } from '../src/decryption/decryption'; import { encryptWithKeyDerivedFromString } from '../src/encryption/encryption'; import { CipherStrategy } from '../src/strategies'; describe('aes-256-gcm', () => { Object.values(CipherStrategy).forEach(strategy => { it(`can successfully encrypt and d...
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { NavController, ModalController } from '@ionic/angular'; @Component({ selector: 'app-page-header', templateUrl: './header.component.html', styleUrls: ['./header.component.scss'] }) export class HeaderComponent implements OnIn...
/** * Contains the routes to be available in the dashboard */ import React from "react"; import { UploadOutlined, UserOutlined, VideoCameraOutlined, } from "@ant-design/icons"; import { GoalsPage, ProgressPage, MetricPage, SettingsPage, GettingStartedPage, SignInPage, } from "./pages"; import { Fo...
import {Component} from '@angular/core'; import {Observable} from 'rxjs'; import {Subscription} from 'rxjs'; const STANDARD_DELAY = 1000; const FAKE_FACT = { success () { return new Promise((fulfill) => { setTimeout(() => { fulfill({ msg: 'SUCCESS' }); }, STANDARD_DELAY); ...
type Hex = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F'; export type Kule = `#${Hex}${Hex}${Hex}`; // O PALI: nasin ante mute pi toki e kule
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const lasPawSolid: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const ligatur...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
import { ApiProperty } from '@nestjs/swagger'; import { IsEmail, IsNotEmpty, IsString, MaxLength } from 'class-validator'; export class CreateUserDTO { @ApiProperty({ required: true }) @IsString() @IsNotEmpty() @MaxLength(64) name: string; @ApiProperty({ required: true }) @IsNotEmpty() @MaxLength(24) ...
import { MAX_NORTH_EAST, MAX_SOUTH_WEST, DEFAULT_MAP_SETTINGS } from "../statics"; import { Coordinate, MapSettings } from "../../../../models/apiModels"; import * as L from "leaflet"; // import './MapContainer.css'; // import { setTimeout } from 'timers'; // import { TileLayerDefinition, MapSettings, ShapeData, MapBo...
'use strict'; import * as React from 'react'; import { IVisualizationItem, UITypes, OpenTextDocumentOptions, BytesValue } from '../../interfaces'; import { KeyValueEdit } from './visualizationItems/KeyValueEdit'; import { StringInput } from './visualizationItems/StringInput'; import { AbstractItem, AbstractItemProps }...
import initEnvCommand from './env'; import YError from 'yerror'; describe('envCommand', () => { const promptArgs = jest.fn(); const log = jest.fn(); beforeEach(() => { log.mockReset(); promptArgs.mockReset(); }); it('should work', async () => { promptArgs.mockResolvedValueOnce({ _: ['env'...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AgentComponent } from './agent.component'; const routes: Routes = [ { // path: '', // component: AgentComponent, // data: { // title: 'Dashboard' // } path: '', data: { ti...
import { Tree } from '@angular-devkit/schematics'; import { existsSync, readFileSync } from 'fs'; import { FileSystemHost, Project } from 'ts-morph'; export function createTsMorphProject(host: Tree) { return new Project({ // tslint:disable-next-line: ish-no-object-literal-type-assertion fileSystem: { g...
import SteamID from 'steamid'; import TradeOfferManager from '@tf2autobot/tradeoffer-manager'; import request from 'request-retry-dayjs'; import cheerio from 'cheerio'; import { uid } from 'rand-token'; type TF2Attribute = { defindex: number; value: number | string; float_value?: number; }; type TF2Item =...
import React from 'react'; export type HamburgerProps = { clicked: boolean; onClick: () => void; }; const Hamburger = ({ clicked, onClick }: HamburgerProps): React.ReactElement => { const burgerStyle = 'w-full py-px border-b border-black bg-black rounded-sm duration-300'; return ( <div classN...
import { Component, Prop, h } from '@stencil/core' import svgIcon from '../../../icons/toggle-on.svg' /** * WARNING: This is an autogenerated component. * Do not make any changes to this file or they will be overwritten on build. * The template for this file is located in the generate-icons.js util file...
import { Stream } from 'stream'; import { UploadParams, BlobUploader as BlobUploaderInterface } from './blob_upload_client'; import { TripleValueCallback } from 'azure-iot-common'; /** * @private */ export declare type BlobResponse = { statusCode: number; body: string; }; /** * @private */ export interface ...
import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; @Component({ selector: 'page-contact', templateUrl: 'contact.html' }) export class ContactPage { constructor(public navCtrl: NavController) {} }
import { Tracer } from '@aurelia/kernel'; import { LifecycleFlags } from '../flags'; import { ILifecycle } from '../lifecycle'; import { CollectionKind, createIndexMap, ICollectionObserver, IndexMap, IObservedArray } from '../observation'; import { CollectionLengthObserver } from './collection-length-observer...
import { script as $borrow$ } from "./src/borrow" import { script as $crackerlib$ } from "./src/crackerlib" import { script as $crackT1$ } from "./src/crackT1" import { script as $crackT2$ } from "./src/crackT2" import { script as $scripts$ } from "./src/scripts" type ArrayRemoveFirst<A> = A extends [ infer FirstItem...
import { ConflictException } from "@nestjs/common"; export const conflict = (errors: Array<any> = []) => { throw new ConflictException({ errors }); };
import { ReactNode, ReactNodeArray } from 'react'; interface IProps { text: ReactNode | ReactNodeArray | string | boolean | null | undefined; prefix?: ReactNode | ReactNodeArray | string | boolean | null; suffix?: ReactNode | ReactNodeArray | string | boolean | null; className?: string; hidden?: boo...
import "reflect-metadata"; import { Request, Response } from "express"; import { getRepository, getManager } from 'typeorm'; import { Converter } from "csvtojson"; import { Relationships } from "../entity/Relationships"; export let share = async (req: Request, res: Response) =>{ const manager = getManager().getRe...
import { IsNotEmpty } from "class-validator"; import { ApiProperty } from '@nestjs/swagger'; export class CreateTaskDto { @ApiProperty() @IsNotEmpty() title: string; @ApiProperty() @IsNotEmpty() description: string; }
import React, { Component } from 'react'; import KawaiiMessage, { Character } from './components/KawaiiMessage'; export default class NotFoundPage extends Component { render() { return ( <KawaiiMessage character={Character.Browser} mood="sad"> There is nothing here. ...
/* * 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 { CoreSetup, CoreStart, Plugin, PluginInitializerContext, Ap...
declare namespace javax { namespace swing { namespace plaf { namespace synth { class SynthMenuItemUI extends javax.swing.plaf.basic.BasicMenuItemUI implements java.beans.PropertyChangeListener, javax.swing.plaf.synth.SynthUI { public constructor() public static createUI(arg0: ja...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-footer', templateUrl: './footer.component.html', styleUrls: ['./footer.component.css'] }) export class FooterComponent implements OnInit { public developer = 'Bram Borggreve'; public year = '2018'; constructor() { } ngOnInit...