text
stringlengths
10
953k
import $ from 'fire-keeper' import c2a from 'coffee-ahk' // variable const path = { ahk: './source/index.ahk', coffee: './source/index.coffee', } as const // function const main = async () => { await c2a(path.coffee, { salt: 'shell' }) await replace() await $.remove('./dist') await $.copy(path.ahk, '....
/** * EVE Swagger Interface * An OpenAPI for EVE Online * * OpenAPI spec version: 0.7.5 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ /** * Not found */ export interface GetUniverse...
<TS language="de" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Rechtsklick zum Bearbeiten der Adresse oder der Bezeichnung</translation> </message> <message> <source>Create a new address</source...
declare global { interface Number { addSeparator: () => string; convertKorean: () => string; } } if (!Number.prototype.addSeparator) { /** * 숫자에 컴마 추가 * * @returns {string} 구분자 추가 된 숫자 */ Number.prototype.addSeparator = function () { const regex = /(?<!\.[^.]...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-enquiry-details', templateUrl: './enquiry-details.component.html', styleUrls: ['./enquiry-details.component.scss'], }) export class EnquiryDetailsComponent implements OnInit { constructor() { } ngOnInit() {} }
import { Component, OnInit, Inject } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { Document } from '../../document'; import { DataService } from '../../services/data.service'; import { Validators, FormControl, FormGroup } from '@angular/forms'; import { MatSnac...
import { Component } from '@angular/core'; import { GithubService } from '../services/github.service'; import { User } from '../user'; import { USERS } from '../added-users'; @Component({ moduleId:module.id, selector: 'github', templateUrl: 'github.component.html', providers:[GithubService] }) export c...
import {Field} from './field'; import {Generation} from './data/interface'; import {Move} from './move'; import {Pokemon} from './pokemon'; import {Result} from './result'; import {calculateRBY} from './mechanics/gen1'; import {calculateGSC} from './mechanics/gen2'; import {calculateADV} from './mechanics/gen3'; impor...
import _ from 'lodash'; import * as path from 'path'; import { AnalysisStatusProvider } from '../analysis/statusProvider'; import { IConfiguration } from '../configuration/configuration'; import { SNYK_SHOW_OUTPUT_COMMAND } from '../constants/commands'; import { messages } from '../messages/analysisMessages'; import { ...
import React from 'react'; import Box from '@mui/material/Box'; import CssBaseline from '@mui/material/CssBaseline'; import LayoutContext from '../LayoutContext'; import SideBarReducer, * as actions from '../SideBarReducer'; export default function LayoutContainer({ children }) { const [state, dispatch] = React.useR...
import { DataSource } from './commonTypes'; import { memberCount } from './utils/index'; function isUniformDistribution(dataSource: DataSource, field: string): boolean { const members = memberCount(dataSource, field); return members.every(member => member[1] === 1); } export { isUniformDistribution }
// Heap Sort Typescript Implementation /** * Helper function to heapify the tree */ function heapify(collection: Array<number>, length: number, index: number): void { let rootNode: number = index; // root node location initialization const leftChild: number = index*2 + 1; // left child location initia...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distr...
declare module Foo { export function fun(str: string):void; export function funfun(str: string):void; export var a:number, b: Object; export var c: Object; export class Bar { f():string; x: any; } } export class X {} export var x: any; /* moduleName: Top modules: - module...
import { Coordinate } from 'ol/coordinate'; import { Polygon } from 'ol/geom'; import { ProjectionLike } from 'ol/proj'; import { Vector as VectorSource } from 'ol/source'; export interface Options { source: VectorSource; Size?: number; } /** A source for grid binning * @constructor * @extends {VectorSource}...
import { GetterTree, ActionTree, MutationTree, Commit } from 'vuex' export const state = (): { // Interface layoutClass: string advancedUI: boolean theatreView: string compactGalleryItem: boolean compactCollection: boolean showPriceGallery: boolean showMintTimeCollection: boolean galleryItemsPerPage:...
import React, { useEffect} from "react" export default () => { useEffect(() => { if (document.location && document.location.href.includes("orta")) document.location.replace("/notes/home") if (document.location && document.location.href.includes("localhost")) document.location.replace("/home") }) return <...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { DOMWidgetView } from '@jupyter-widgets/base'; import { CoreDOMWidgetModel } from './widget_core'; import * as _ from 'underscore'; export class ImageModel extends CoreDOMWidgetModel { defaults(): Backbo...
type foo = { [a: string, b: string]: string; }
import * as actions from '../actions'; let audio = new Audio(); audio.addEventListener('timeupdate', (e: any) => { const { duration, currentTime } = e.srcElement; (<HTMLInputElement>( document.getElementById('audio-seeker') )).value = currentTime; }); export interface musicState { currentSong: object; ...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { IProduct } from './product'; @Component({ templateUrl: './product-detail.component.html', styleUrls: ['./product-detail.component.css'] }) export class ProductDetailComponent implements OnInit { ...
/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2020 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ import { Config } from '../config'; import { IDictionary, IRequest, IViewBased, AjaxOptions, ...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Platform from '../../core/platform/platform.js'; import {CSSFormatter} from './CSSFormatter.js'; import type {FormattedContentBuilder} from '...
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { TaskAttachment } from '../task-attachment.model'; import { TaskAttachmentService } from '../task-attachment.service'; import { MatDialog } from '@angular/material/dialog'; import { DialogEditTaskAttachmentComponent } from '../dialog-edi...
import { NgModule } from '@angular/core'; import { ClinicComponent } from './clinic/clinic.component'; import { ClinicRoutingModule } from './clinic_routing_module'; import { SharedModule } from '../../../../shared/shared.module'; import { ThemeModule } from '../../../../@theme/theme.module'; import { ProfileComponent ...
import React, { useState, useEffect, useRef } from "react"; import styled from "styled-components"; import { useDrop } from "react-dnd"; import { getBackdropNeoGeoColor, neoGeoColorToCSS } from "../../palette/neoGeoPalette"; import { useAppState } from "../../state"; import { BuildGifModal } from "../gifBuilder/bui...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { ISettingRegistry } from '@jupyterlab/settingregistry'; import { ElementHandle, Page } from '@playwright/test'; import { IPluginNameToInterfaceMap, PLUGIN_ID_SETTINGS } from '../inpage/tokens'; import { M...
module core { export class rendersprite extends renderobject { public m_sprite:renderspcontent = null; public m_b_upon_unit:boolean = true; constructor(){ super(); } public re_init(sp:renderspcontent,x:number,y:number,b_upon:boolean = true){ t...
/*! * Copyright (c) 2017-2018 by The Funfix Project Developers. * Some 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-...
import { CreateUserDto, UpdateUserDto, PaginationUserDto } from './dto'; import { JwtAuthGuard } from './../auth/jwt-auth.guard'; import { Body, Controller, Delete, Get, NotFoundException, Param, Patch, Post, Query, UseGuards } from '@nestjs/common'; import { User } from './entities'; import { UsersService } from './us...
import { Component, OnInit,OnDestroy,Output,EventEmitter,ViewChild,ElementRef,AfterViewInit,Renderer2} from '@angular/core'; import {Router} from '@angular/router'; import {ImageEditorService} from '../../services/image-editor.service'; import {FormGroup} from '@angular/forms'; import * as Swiper from 'swiper'; import ...
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...
import { Module } from '@nestjs/common'; import { UserController } from './user.controller'; import { DatabaseModule } from 'src/database.module'; import { UserService } from './user.service'; import { UserProviders } from './user.provider'; @Module({ imports: [ DatabaseModule ], controllers: [Us...
import { ISystemGeneratedRow, } from '../infrastructure/row/systemgeneratedrow'; ////////////////////////////// // ENTITY INTERFACE // ////////////////////////////// export interface IApplication extends ISystemGeneratedRow { // Id Properties id: number; // Id Relations // Non-Id Properties host?:...
import { BlipConf } from '@lime.it/blip-core'; import { join } from 'path'; const packagePath = __dirname; export const environment = { packagePath: packagePath, confPath: join(BlipConf.getWorkspaceRootPath(), ".wordpress"), assetsPath: join(packagePath,"../assets"), repoPath: join(BlipConf.getWorksp...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { EventEmitter } from "events"; import { resolve } from "url"; import { IFluidLoadable, IFluidRouter, IRequest, IResponse, IF...
import { BatchGetOptions, PerTableOptions } from './BatchGetOptions'; import { BatchOperation } from './BatchOperation'; import { SyncOrAsyncIterable, TableState } from './types'; import { AttributeMap, BatchGetItemInput } from 'aws-sdk/clients/dynamodb'; import DynamoDB = require('aws-sdk/clients/dynamodb'); export c...
/** * 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 may...
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 ], ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import Filters from './filtersTypes'; import Columns from './columnsTypes'; import { AnyQuery } from './queryTypes'; export default interface QueryType { params: {[key in Filters]?: AnyQuery}; columns: Columns[]; sort: { column: Columns; asc: boolean; }; };
import { PipeTransform } from "@angular/core"; export declare class PersianNumberPipe implements PipeTransform { transform(value: string, exponent: string): string; }
export {EndpointManager, ExceptionMapper} from './server';
import { AppflowClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppflowClient"; import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0"; import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJso...
import EventEmitter from "eventemitter3"; import { useStorageListener } from "./hooks/storage.hook"; import { deserializeEvent, serializeEvent } from "./helpers/event-serializer"; import { LOCAL_STORAGE_KEY } from "./react-event-hook.constant"; import { pascalCase } from "./utils/pascal-case"; import { canUseDom } from...
import { writeFile } from 'fs'; import { promisify } from 'util'; export async function write( printed: string, resultsPath: string ): Promise<void> { try { await promisify(writeFile)(resultsPath, printed, 'utf8'); } catch { throw new Error(); } }
import { expect } from 'chai'; import { createConnection, getConnection } from 'typeorm'; import { createQueryBuilder } from './utils/createQueryBuilder'; import { prepareData } from './utils/prepareData'; import { User } from './entities/User'; import { Photo } from './entities/Photo'; import { buildPaginator } from ...
import { Component, ElementRef, ViewChild } from '@angular/core'; import { fileOpen, FileWithHandle, supported } from 'browser-fs-access'; import * as wasm from 'image-resizer'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent...
import config from '..'; const mockConfig = { ...config, academicYear: '2017/2018', semester: 1, timetableAvailable: [1], archiveYear: ['2015/2016', '2016/2017'], getSemesterKey: () => '2017/2018 Semester 1', }; export default mockConfig;
import { mocked } from 'ts-jest/utils'; import * as scaleUpModule from './scale-up'; import { listEC2Runners, createRunner, RunnerInputParameters } from './../aws/runners'; import * as ghAuth from '../gh-auth/gh-auth'; import nock from 'nock'; import { Octokit } from '@octokit/rest'; import ScaleError from './ScaleErro...
import React from 'react'; import { Trans } from '@lingui/macro'; import { useDispatch } from 'react-redux'; import { useHistory } from 'react-router-dom'; import { Button, Grid, Typography, Divider } from '@material-ui/core'; import { CardHero, Flex, Link } from '@mint/core'; import { PlotHero as PlotHeroIcon } from '...
import { QUEUE_REGISTERED_PREFIX, getHostById } from '../../../helpers'; import { FieldConfig } from '../../index'; import { schemaComposer } from 'graphql-compose'; export const onQueueRegistered: FieldConfig = { type: schemaComposer.createObjectTC({ name: 'OnQueueRegisteredPayload', fields: { hostId:...
import { boolean } from "@storybook/addon-knobs"; import { availableNetworksMock } from "domains/network/data"; import React from "react"; import { CustomPeers } from "./CustomPeers"; export default { title: "Domains / Setting / Components / CustomPeers" }; export const Default = () => ( <CustomPeers networks={av...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { CrystalLightboxModule } from '@crystalui/angular-lightbox'; import { ApiService } from '../api.service';...
import { createReportError } from '../utils/createReportError'; import { getKeys } from '../utils/object'; import type { DependencyTypes, PackageJson } from '../utils/packageTypes'; export function checkIdenticalVersions( pkg: PackageJson, pkgPathName: string, type: DependencyTypes, deps: Record<string, string...
import { AlertService } from './alert.service'; import { TestBed } from '@angular/core/testing'; import { NgModule, TemplateRef, Component, ViewChild } from '@angular/core'; import { AlertComponent } from '../alert.component'; import { CommonModule } from '@angular/common'; import { BrowserModule } from '@angular/platf...
import { of } from 'rxjs'; import { TestScheduler } from 'rxjs/testing'; import { filterIncludes } from './filter-includes.operator'; describe('string/operators/filter-includes', () => { let testScheduler: TestScheduler; const values = ['hello', 'world', 'hello world']; const expectedValues = { a: values[0]...
/* * Ecard Screen * Created by Tzingtao Chow * --- * * Ecard Screen 是校园卡界面的主页。 * */ import * as React from "react" import { connect } from "react-redux" import { ActivityIndicator, Animated, DeviceEventEmitter, FlatList, RefreshControl, ScrollView, StatusBar, View, } from "react-native" import C...
import React, { Children, cloneElement, createElement, FormEvent, FormEventHandler, isValidElement, MouseEvent, ReactElement, ReactNode, } from 'react'; import classNames from 'classnames'; import { observer } from 'mobx-react'; import { action as mobxAction, computed, isArrayLike, observable, runInAc...
import React from 'react'; const MicroApp: React.FC = ({ children }) => { return <div> <main id="subapp-container"> {children} </main> </div>; } export default MicroApp;
import { ApproxStructure } from '@ephox/agar'; import { describe, it } from '@ephox/bedrock-client'; import { TinyAssertions, TinyHooks, TinySelections } from '@ephox/wrap-mcagar'; import Editor from 'tinymce/core/api/Editor'; import { ImageData } from 'tinymce/plugins/image/core/ImageData'; import Plugin from 'tinymc...
import {Segment} from '../../../../../../../models/callRecords/'; import {createSegmentFromDiscriminatorValue} from '../../../../../../../models/callRecords/createSegmentFromDiscriminatorValue'; import {ODataError} from '../../../../../../../models/oDataErrors/'; import {createODataErrorFromDiscriminatorValue} from '.....
import R from "ramda"; import { Bridge } from "./Bridge"; /** Map between chat IDs and bridges */ export class BridgeMap { public bridges: Bridge[]; private _discordToBridge: Map<number, Bridge[]>; private _telegramToBridge: Map<number, Bridge[]>; /** * Creates a new bridge map * * @param bridges The bridge...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { AuthError } from "./AuthError"; import { ScopeSet } from "../request/ScopeSet"; /** * ClientAuthErrorMessage class containing string constants used by error codes and messages. */ export const ClientAuthE...
import styled from "styled-components"; import useSWR from "swr"; import React from "react"; const AuthStyle = styled.a` display: flex; align-items: center; justify-self: flex-end; color: white; text-decoration: none; img { margin-left: 0.5rem; width: 1.5rem; border-radius: 50%; border: 0.1...
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 React from "react"; import { withDocument, withValuePath, FormBuilderInput } from "part:@sanity/form-builder"; // Hentet herfra: https://github.com/hdoro/sanity-plugin-conditional-field class ConditionalField extends React.PureComponent<any> { fieldRef: any = React.createRef(); focus() { if (this.field...
import { setPropertyRegistry } from './setPropertyRegistry'; import { getOrCreatePropertyRegistry } from './getPropertyRegistry'; import { PropertyRegistry, PropertyRegistryEntry } from './propertyRegistry'; /** * Register the decorator in the property registry for advanced * decoration and inspection. * * @param ...
import auth from '../../SpoAuth'; import { Auth } from '../../../../Auth'; import config from '../../../../config'; import request from '../../../../request'; import commands from '../../commands'; import SpoCommand from '../../SpoCommand'; import GlobalOptions from '../../../../GlobalOptions'; import { CommandOption...
import { chainAdapters, UtxoAccountType } from '@shapeshiftoss/types' import { map, reverse } from 'lodash' import { mockStore } from 'test/mocks/store' import { BtcSend, ethereumTransactions, EthReceive, EthSend } from 'test/mocks/txs' import { store } from 'state/store' import { selectLastNTxIds } from './selectors'...
import React from 'react'; // tslint:disable-next-line:ordered-imports import { Svg, Path } from 'react-native-svg'; import { processComponent, RfxSvgIcon, RfxSvgPropsOptional, } from '@reflex-ui/core'; let EmailIcon: React.ComponentType<RfxSvgPropsOptional> = ( props: RfxSvgPropsOptional, ) => ( <RfxSvgIco...
import { ng } from '../../utils/process'; import { writeFile } from '../../utils/fs'; import { expectToFail } from '../../utils/utils'; export default function () { const nestedConfigContent = ` { "rules": { "quotemark": [ true, "double", "avoid-escape" ] } }`; // T...
import { ethers } from "ethers"; import { config } from "dotenv"; config(); import path from "path"; import fs from "fs"; import { getInfuraUrl } from "./utils"; import Handlers from "./handlers"; const abi = JSON.parse( fs .readFileSync( path.resolve( __dirname, "../artifacts/contracts/Tok...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FooterComponent } from './footer.component'; @NgModule({ declarations: [ FooterComponent ], exports: [ FooterComponent ], imports: [ CommonModule ], providers: [] }) export class FooterModule ...
export = multipartRequest; declare function multipartRequest(source: string | undefined, abortController: any, headers?: {}): Promise<{ total: number; parts: { name: string; start: number; end: number; }[]; headers: {}; body: FormData; }>; //# sourceMappingURL=multipart-reque...
import getConfig from "@root/config"; import { getConnectionManager } from "typeorm"; import path from "path"; import { Claimer } from "@root/entity/Claimer"; import { getClaimers } from "@root/config/apps"; const config = getConfig(); const connectionManager = getConnectionManager(); connectionManager.create({ typ...
import { render } from '@testing-library/react' import React from 'react' import { H3 } from './H3' describe('H3', () => { it('should render correctly', () => { expect( render( <H3 alignment="left" mode="single-line"> This is H3 </H3> ...
import { faFilePdf } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React from 'react'; export const ViewPDFButton = () => { return ( <a href='./Kashyap_Patel_Resume.pdf' target='_blank' className='float...
import _ from "lodash"; import { assertNever } from "../../../utils"; import { CollectionEntry, Field, FieldEntry, ImageField, isComputedField, isCountField, isDynamicLinkField, isFloatField, isImageField, isIntField, isPathField, isServerTimestampField, isStringField, isSumField, PathFiel...
import { gql } from 'graphql-request' export const HomeEntryQuery = gql` { entry(section: "home") { ... on home_home_Entry { seo: seomatic(asArray: true) { ... on SeomaticType { metaTitleContainer metaTagContainer metaSiteVarsContainer metaLinkContainer metaJsonLdContainer ...
import { OAuth2Strategy } from "passport-google-oauth"; import { Profile } from "passport"; import { PassportStrategy } from "@nestjs/passport"; import { Injectable, UnauthorizedException } from "@nestjs/common"; import { UserEntity } from "../../user/user.entity"; import { UserService } from "../../user/user.service"...
import { LanguageKeys } from '#lib/i18n/languageKeys'; import { Time } from '#utils/constants'; import type { Message } from 'discord.js'; import type { BaseController } from '../base/BaseController'; import { GameStatus } from '../base/BaseGame'; import { BaseReactionGame } from '../base/BaseReactionGame'; export cla...
import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { initPosts } from '../store/reducer/PostsList/PostsList'; import { Post } from '../store/reducer/NewPost/NewPost'; import { PostStyle, Container, Loading } from '../UI/Basic/basicStyle'; import axios from...
export const UmbrellaFill = `<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" fill="currentColor" class="bi bi-umbrella-fill" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M8 0a.5.5 0 0 1 .5.5v.514C12.625 1.238 16 4.22 16 8c0 0 0 .5-.5.5-.149 0-.352-.145-.352-.145l-.004-.004-.025-.023a3.484 3.48...
/* eslint-disable require-await */ import _Module from 'module'; import path from 'path'; import postcss, { Plugin } from 'postcss'; import { Root } from './Ast'; import Evaluator from './Evaluate'; import ModuleMembers from './ModuleMembers'; import Scope from './Scope'; import { getMembers } from './modules'; impo...
import * as React from "react"; import { Button } from "semantic-ui-react"; import CarouselItem from "../../../../entities/carousel_item"; interface IPropsType { carouselItem: CarouselItem; } export default class CarouselItemView extends React.Component<IPropsType> { public render() { const { ...
import { ChartID, LevelOfMeasurement as LOM } from '@antv/knowledge'; import * as DWAnalyzer from '@antv/dw-analyzer'; import { DataProperty, Advice } from './interface'; import { EncodingType } from './vega-lite'; export function getChartTypeSpec(chartType: ChartID, dataProps: DataProperty[]): Advice['spec'] { swit...
'use strict' import { NightwatchBrowser } from 'nightwatch' import init from '../helpers/init' module.exports = { before: function (browser: NightwatchBrowser, done: VoidFunction) { init(browser, done, 'http://127.0.0.1:8080', true) }, 'Should find text': function (browser: NightwatchBrowser) { ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Dinarcoin</source> <translation>Acerca de Dinarcoin</translation> ...
import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient"; import { AssociateDiscoveredResourceRequest, AssociateDiscoveredResourceResult } from "../models/models_0"; import { deserializeAws_json1_1AssociateDiscoveredResourceCommand, serializeAws_json1_1Associat...
/** * A committee member with the bare minimum of information. */ export class StrippedCommitteeMember { uuid: string; name: string; constructor (uuid: string, name: string) { this.uuid = uuid; this.name = name; } }
import dayjs from 'dayjs'; import { isSameDate } from '../../../../utils'; export function getRangeProps(date: Date, range: [Date, Date]) { const hasRange = Array.isArray(range) && range.every((val) => val instanceof Date); const inclusiveRange = hasRange && [ dayjs(range[0]).subtract(1, 'day'), dayjs(range[1])....
import { AppPage } from './app.po'; describe('team-app App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toContain('Welcome to the Gallery Home Page'); }); });
// Config should be the very first import on the project, check this one for more info. import { config } from './common/config'; import { App } from './app'; import { logger } from './common/logger'; // Como hacer para tener varias instancias de app y socket con pm2? // https://github.com/Unitech/pm2/issues/637 // ht...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.13.9 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do n...
import {contentView} from 'tabris'; import {inject} from 'tabris-decorators'; import {MainViewPresenter} from './MainViewPresenter'; import {MainView} from './MainView'; export class App { constructor( @inject private presenter: MainViewPresenter ) {} public start() { contentView.append(<MainView stret...
import { Status } from './Status'; import { Client } from './Client'; /** * Abstract stream which can receive data. */ export class OutputStream { /** * @param client The client owning this stream. * @param index The index of this stream. */ constructor(client: Client, index: number); /**...
import React from "react"; import { FormImageUpload, FormImageUploadProps } from "./FormImageUpload"; const args: FormImageUploadProps = { label: "label", value: "", setState: () => { console.log("onchange"); }, }; export default { title: "Molecules/FormImageUpload", component: FormImageUpload, args...
const cookie = { read(name: string): string | null { const match = document.cookie.match( new RegExp('(^|;\\s*)(' + name + ')=([^;]*)') ) return match ? decodeURIComponent(match[3]) : null } } export default cookie
import { Button, FormControl, FormControlLabel, FormGroup, FormHelperText, Grid, Input, InputLabel, MenuItem, Paper, Switch, Tab, Tabs, TextField, Theme } from "@material-ui/core"; import Select from "@material-ui/core/Select"; import { StyleRules, WithStyles, withStyles } from "@material-...