text
stringlengths
10
953k
import binarySearch from "../binary-search"; describe("Binary search", () => { test("find in positive 100 elements", () => { const arr: Array<number> = []; for (let i = 0; i < 100; i++) arr.push(i + 1); const index = binarySearch(arr, 97); expect(index).toBe(96); }); test("find in negative 10...
import * as uuid from "uuid/v4"; import { getRepository } from "typeorm"; import { Card } from "@app/entities/card"; export const createCardMutation = { async createCard(_, { card: attrs }) { const repository = getRepository(Card); const card = { id: uuid(), ...attrs, }; await repository...
import padLeft = require("pad-left"); padLeft("a"); // $ExpectType string padLeft("a", 2); // $ExpectType string padLeft("4", 4, "0"); // $ExpectType string
import { WorkMetadata } from '@fancywork/core'; import { Progress, ProgressProps } from 'antd'; import { FC } from 'react'; export type WorkProgressProps = { metadata: WorkMetadata; } & ProgressProps; export const WorkProgress: FC<WorkProgressProps> = ({ metadata, ...props }) => { const percent = Math.floor( ...
import {Directive, HostBinding, HostListener} from '@angular/core'; @Directive({ selector: '[appDropdown]' }) export class DropdownDirective { @HostBinding('class.open') isOpen = false; @HostListener('click') toggleOpen(){ this.isOpen = !this.isOpen; } constructor() { } }
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { GoverningBodyComponent } from './governing-body.component'; describe('GoverningBodyComponent', () => { let component: GoverningBodyComponent; let fixture: ComponentFixture<GoverningBodyComponent>; beforeEach(async(() => { Te...
import {Component,OnInit} from '@angular/core'; import { TicketService } from './ticketservice'; import { Router } from '@angular/router'; @Component({ template: ` <div class="stepsdemo-content"> <p-card> <ng-template pTemplate="title"> Employer Information ...
/* * [NOTE] AMD entries module must be named for releases build * * 生成する d.ts に AMD module 名を設定するために、 * <amd-module name/> の triple slash directive が必須 */ /// <amd-module name="cafeteria.slideshow" /> export * from "./cafeteria/utils/error-defs"; export * from "./cafeteria/model/_entry-slideshow"; import "./cafe...
import isTruthy from '../src/truthy'; import {assert} from 'chai'; import {assertDescription} from "./common"; describe('truthy', function () { it('checks whether a value is truthy', function () { assert.isTrue(isTruthy(1)); assert.isTrue(isTruthy(true)); assert.isFalse(isTruthy(false)); ...
import { ISetVariableAction } from './SetVariableAction.js'; import { ISetCookieAction } from './SetCookieAction.js'; import { IDeleteCookieAction } from './DeleteCookieAction.js'; /** * Convenience type that gathers all configurations in one type. */ export type IActions = IDeleteCookieAction | ISetCookieAction | IS...
export declare const cifAG: any[];
import React from "react"; import styled from "styled-components"; import { CommonProps } from "../../../assets/utils/CommonType"; interface SpanProps extends CommonProps {} const StyledSpan = styled.span<SpanProps>``; function Span({ children, ...props }: SpanProps) { return <StyledSpan {...props}>{children}</S...
<TS language="tr" version="2.1"> <context> <name>AddNewAddressDialog</name> <message> <source>Dialog</source> <translation>Diyalog</translation> </message> <message> <source>Address</source> <translation>Adres</translation> </message> <message> <source>Pus...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="en"> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+67"/> <source>Right-click to edit address or label</source> <translation>Right-click to edit addr...
import React, { ChangeEvent } from 'react'; import { HorizontalGroup } from '../Layout/Layout'; import { Select } from '../index'; import Forms from '../Forms'; import { Input } from '../Forms/Input/Input'; import { MappingType, RangeMap, ValueMap, ValueMapping } from '@grafana/data'; import * as styleMixins from '../....
import { PostCategory } from '../enums'; import { IsArray, IsBoolean, IsEnum, IsOptional, IsString, } from 'class-validator'; import { EnumToString } from '../../common/helpers/enumToString'; export class CreatePostDto { @IsString() title: string; @IsString() slug: string; @IsString() excerpt: ...
/** * Created by * Tuyen Tran <tuyen.tran@exodussystem.com> * James Hong <james.hong@exodussystem.com> * on 8/28/2017. */ import { animate, AnimationTriggerMetadata, style, transition, trigger } from '@angular/animations'; export const FADE_INOUT_ANIMATION: AnimationTriggerMetadata = trigger('fadeInOut', ...
import { AxiosRequestConfig } from './types' export default function xhr(config: AxiosRequestConfig) { console.log(config) const { data = null, url, method = 'get', headers } = config console.log(headers) const request = new XMLHttpRequest() request.open(method, url, true) // headers 必定存在content-type 这个设置。...
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const faAnchor: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const ligatures:...
import profile from './profile'; import introduce from './introduce'; import skill from './skill'; import experience from './experience'; import openSource from './openSource'; import project from './project'; import presentation from './presentation'; import education from './education'; import article from './article...
import { BlockModel } from '../models/block'; import { Transform } from 'stream'; import { TransactionModel } from '../models/transaction'; import { CoinModel } from '../models/coin'; import { Storage } from '../services/storage'; class CleanupTransform extends Transform { constructor() { super({ objectMode: tru...
import { Component } from "@angular/core"; import { MatIconRegistry } from '@angular/material/icon'; import { DomSanitizer } from '@angular/platform-browser'; @Component({ selector: "app-root", templateUrl: "./app.component.html", styleUrls: ["./app.component.scss"] }) export class AppComponent { title = "locu...
import {Application} from "../../../support/application.config"; import {tiles, toolbar} from "../../../support/components/common"; import loadPage from "../../../support/pages/load"; import runPage from "../../../support/pages/run"; import LoginPage from "../../../support/pages/login"; import "cypress-wait-until"; de...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. declare const acquireVsCodeApi: () => any; export function initializeMessaging() { const vscode = acquireVsCodeApi(); let toolsWindow: Window | null; window.addEventListener("DOMContentLoaded", () => { ...
/** * 视频 * 接口声明: { "name": "hap.io.Video" } */ declare module '@hap.io.Video' { /** * 1080+ * @param callback */ function onprogressupdate( callback: (data: { /** * 压缩进度,0~100,每秒有变化时更新 */ progress: number; }) => {}, ): void;...
// Copyright © 2017-2018 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: BSD-2-Clause import { Component, Input } from '@angular/core'; import { Storyboard } from '../api/storyboard.api'; /** * Root level component for the Alerts page. */ @Component({ selector: 'app-storyboard', templateUrl: './st...
import { Text, Accordion, AccordionDetails, AccordionSummary, EthHashInfo, IconText, } from '@gnosis.pm/safe-react-components' import styled, { css } from 'styled-components' export const Wrapper = styled.div` display: flex; flex-direction: column; height: 100%; ` export const Breadcrumb = styled(Ic...
import { Code, Severity, Target } from "@clarity-types/data"; /* Event Data */ export interface ScriptErrorData { source: string; message: string; line: number; column: number; stack: string; } export interface ImageErrorData { source: string; target: Target; } export interface InternalEr...
export function regex(regularExpression: RegExp) { return (value: string) => regularExpression.test(value) }
// SPDX-License-Identifier: Apache-2.0 // Copyright (c) 2018 Georgi Marinov // // 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 // // Unle...
import { EventEmitter } from 'events' import tape from 'tape' import td from 'testdouble' import { Sender } from '../../../lib/net/protocol/sender' import { BoundProtocol } from '../../../lib/net/protocol' import { Config } from '../../../lib/config' import { Event } from '../../../lib/types' tape('[BoundProtocol]', (...
import { BlockProps } from '../index'; export default function Heading ( { block: { innerHTML } }: BlockProps ) { return <h3 dangerouslySetInnerHTML={ { __html: innerHTML } } />; }
import { AxiosInstance } from 'axios' export interface HeatmapRange { startTime?: number endTime?: number startKey?: string endKey?: string } export interface KeyAxisEntry { key: string labels: string[] } export interface HeatmapData { timeAxis: number[] keyAxis: KeyAxisEntry[] data: { integrat...
import React, { useEffect, useState } from "react"; import styled from "styled-components"; import Countdown from "react-countdown"; import { Button, CircularProgress, Snackbar, Container, Box, Grid } from "@material-ui/core"; import Alert from "@material-ui/lab/Alert"; import logo from './imagenes/regular.png'; import...
/** * @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 */ import { Directionality } from '@angular/cdk/bidi'; import { Platform } from '@angular/cdk/platform'; import { Viewpor...
/** * Divider roles * @public */ export declare enum DividerRole { /** * The divider semantically separates content */ separator = "separator", /** * The divider has no semantic value and is for visual presentation only. */ presentation = "presentation" }
// This file was generated import * as Joi from 'joi'; import { OaValidationError } from '../oaValidationError'; /** * schema:ItemListOrderType * * Enumerated for values for itemListOrder for indicating how an ordered ItemList is organized. */ export type ItemListOrderType = | 'https://schema.org/ItemListOrd...
module cola { export function gridify(pgLayout, nudgeGap, margin, groupMargin) { pgLayout.cola.start(0, 0, 0, 10, false); let gridrouter = route(pgLayout.cola.nodes(), pgLayout.cola.groups(), margin, groupMargin); return gridrouter.routeEdges<any>(pgLayout.powerGraph.powerEdges, nudgeGap, e...
import Client from '../../common/cassandra/client'; import { IUser, IPersonalDetails as IPersonalDetailsBase } from '../../common/User'; export interface ISupportInfo { phone?: string; email?: string; link?: string; } export interface IOwner extends IUser { companyName?: string; fiatCurrencyCode?: string; ...
import { faList as listIcon, faLink as createIcon, faTags as tagsIcon, faPen as editIcon, faHome as overviewIcon, faGlobe as domainsIcon, } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { FC } from 'react'; import { NavLink, NavLinkProps, ...
import React from 'react' export function Header() { return ( <header> <h1>Next boilerplate</h1> </header> ) }
import * as React from "react"; import {styled} from "@twstyled/core"; import Button from "./Button"; const BrowserButtonStyles = styled.div<{ active: boolean }>` input { cursor: pointer; } .upload-btn-wrapper { position: relative; display: flex; overflow: hidden; /* display: inline-block; *...
import { Repository } from 'typeorm'; import { InjectRepository } from '@nestjs/typeorm'; import { BlockchainProperties } from './blockchain-properties.entity'; import { BlockchainPropertiesDTO } from './blockchain-properties.dto'; import { IBlockchainProperties } from '@energyweb/issuer'; import { Injectable } from '@...
interface JapaneseDateConverterInterface { inputValue: string; settings: { format: string; }; } interface Gengo { name: string; ligature: string; from: Date; to: Date; ggg: string; gg: string; } export default class JapaneseDateConverter { inputValue: string; settings...
import axios from 'axios'; import type { NetworkString } from 'ldk'; interface AssetDetails { assetHash: string; assetPrice: number; basisPoint: number; } export interface Topup { assetAmount: number; assetHash: string; assetSpread: number; partial: string; topupId: string; } export interface TopupWi...
import React, { FC, ChangeEvent, useState } from 'react'; import Form from 'react-bootstrap/Form'; import Button from 'react-bootstrap/Button'; import useAPI from '../hooks/useAPI'; import './Authenticate.scss'; const Authenticate: FC = () => { const [formData, setFormData] = useState({ email: '', password:...
import React from 'react' import gql from 'graphql-tag' import { ChildDataProps, graphql } from 'react-apollo' import { Button, Empty, Skeleton, Table } from 'antd' import { Link } from '@reach/router' const tasksQuery = gql` { tasks { items { taskId createdAt lastModifiedAt }...
/** * URLの正規化 * @param url - パースするURL * @param ignore - パースの仕方 * @returns originとpathnameだけになったURL */ export const parse = (url: string, ignore?: Message.ignore) => { const _url = new URL(url); const {origin, hash, search} = _url; const pathname = _url.pathname.replace(/\/index\.(x?html?|php|cgi|aspx)$/, '/'...
import { FIREWALLED_STATE } from "../constants/net/core-messages"; export default interface PeerDetails { addr: string; addrlocal: string; services: string; lastsend: number; lastrecv: number; bytessent: number | string; bytesrecv: number | string; conntime: string; pingtime: string; pingwait: string; versi...
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core'; @Component({ selector: 'app-field-detail', templateUrl: './field-detail.component.html', styleUrls: ['./field-detail.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush }) export class FieldDetailComponent implements OnIn...
// Type definitions for Pouch 0.1 // Project: http://pouchdb.com // Definitions by: Bill Sears <https://github.com/MrBigDog2U/> // Definitions: https://github.com/borisyankov/DefinitelyTyped // /// <reference path="../es6.d.ts"/> // interface IPouchDocument { _id?:string; _rev?:string; _deleted?:boolean; _attachmen...
import { Endereco } from "../modelo/Endereco"; import { Evento } from "../modelo/Evento"; export class EventoMapper { public static formularioToEvento(form:any):Evento{ let evento = new Evento(); evento.nome = form.nome.toString().toUpperCase(); evento.data = form.data; evento.hor...
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * 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 restric...
import React from 'react'; import { render } from '@testing-library/react'; import { BasicLayoutTwo } from './layout-two.composition'; it('should render with the correct text', () => { expect('') });
type ArrayList = readonly (readonly any[])[] type Items<T extends ArrayList> = { [P in keyof T]?: T[P][Extract<keyof T[P], number>] } type Callback<T extends ArrayList> = (values: Items<T>, idx: number) => void | boolean | Promise<void | boolean> export default async <T extends ArrayList>(arrs: T, callback: Callba...
export * from './CodeEditor'; export * from './EditorConstants'; export * from './JSONEditor';
import InputFiled from './input' import ColorPicker from './color' import InputNumberFiled from './input-number' import Size from './size' import Position from './position' import SelectField from './select' export const EditorPanels: Record<string, React.FC | React.NamedExoticComponent<any>> = { InputFiled, Color...
import { CurrencyField } from '../../../dist/es6/src/messaging/fields/currency/currency'; import { Tag } from '../../messaging/fields/base/tag'; import { IBeginningOfStringField } from '../../messaging/fields/beginning-of-string/beginning-of-string'; import { IBodyLengthField } from '../../messaging/fields/body-length/...
import copy from 'copy-to-clipboard'; import { setBlockType } from 'prosemirror-commands'; import { textblockTypeInputRule } from 'prosemirror-inputrules'; import refractor from 'refractor/core'; import bash from 'refractor/lang/bash'; import clike from 'refractor/lang/clike'; import csharp from 'refractor/lang/csharp'...
/// <reference types="node" /> import { Storage } from "../storage"; /** * Enumeration specifies key types */ export declare enum KeyType { RSA, DSA, DH, ECDSA, EC, X9_42_DH, KEA, GENERIC_SECRET, RC2, RC4, DES, DES2, DES3, CAST, CAST3, CAST5, CAST128...
/* Get products */ export const GET_PRODUCTS_REQUEST = 'Request/GET_PRODUCTS'; export const GET_PRODUCTS_RECEIVE = 'Receive/GET_PRODUCTS'; export const GET_PRODUCTS_ERROR = 'GET_PRODUCTS_ERROR'; /* New product */ export const NEW_PRODUCT_REQUEST = 'Request/NEW_PRODUCT'; export const NEW_PRODUCT_RECEIVE = 'Receive/NE...
import { Injectable } from '@nestjs/common'; @Injectable() export class UsersService { private readonly users = [ { userId: 1, username: 'john', password: 'changeme', }, { userId: 2, username: 'maria', password: 'guess', }, ]; async findOne(username: string): ...
// Other vendors for example jQuery, Lodash or Bootstrap // You can import js, ts, css, sass, ... import 'jquery'; import 'bootstrap';
import { Routes } from '@angular/router'; import { DashboardComponent } from '../../dashboard/dashboard.component'; import { UserComponent } from '../../user/user.component'; import { WorldComponent } from '../../world/world.component'; import { IndiaComponent } from '../../india/india.component'; import { IconsCompon...
export * from './DifficultyRange'; export * from './Enums/HitResult'; export * from './Enums/ScoreRank'; export * from './HitWindows'; export * from './IHitStatistics'; export * from './IScore'; export * from './IScoreInfo'; export * from './Score'; export * from './LegacyScoreExtensions'; export * from './ScoreInfo';
import { Component, OnInit, Input } from '@angular/core'; import { Pageable } from '../../models/pageable'; import { NumberUtil } from '../../utils/number-util'; import { InvoiceService } from '../../services/invoice.service'; import { ToasterService } from 'angular5-toaster'; @Component({ selector: 'app-person-invo...
/* Generated for api/core/v1/mod.ts */ import { Quantity } from "../../../apimachinery/pkg/api/resource/mod.ts"; import { IntOrString } from "../../../apimachinery/pkg/util/intstr/mod.ts"; import { Condition, LabelSelector, ListMeta, MicroTime, ObjectMeta, Time, } from "../../../apimachinery/pkg/apis/meta/v...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="bg"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Referencelinecoin</source> <translation>За Referen...
import { BuildWorker } from './build-worker'; import { Revision } from './revision'; export interface Build { id: string; project_id: string; type: string; provider: string; short_title: string; long_title: string; revision: Revision; payload?: string; script?: string; worker?: BuildWorker; }
import test from 'ava' import { AttachmentNotFoundException, MimeExtractor } from '../../../src/sources/MimeExtractor' import * as fs from 'fs' import * as util from 'util' test('happy path', t => { const fileContent = fs.readFileSync('test/fixtures/mailfixture.mail') const attachment = MimeExtractor.getAttachment...
import { ParsedUrlQuery } from "querystring" export type YargsObj = { [x: string]: unknown; _: string[]; $0: string; } export type RequestBodyType = 'text/plain' | 'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data' export interface RequestBody { type: RequestBodyType ...
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, } from 'typeorm'; @Entity() export class Post extends BaseEntity { @PrimaryGeneratedColumn() id: string; @Column({ nullable: false, type: 'varchar', length: 200 }) title: string; @Column({ nullable:...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Vakilcoin</source> <translation>Pri Vakilcoin</translation> </me...
import {Component, OnDestroy, OnInit, ViewEncapsulation} from '@angular/core'; import {FormBuilder, FormGroup, Validators} from '@angular/forms'; import {AuthService} from '../../Service/Authentication/auth.service'; import {Router} from '@angular/router'; import {HttpErrorResponse} from '@angular/common/http'; import ...
export { VirtualColumn16 as default } from "../../";
// @refresh reset import React from 'react'; import type { NavRouteStackItem } from '../types/NavRouteItem'; import type { RenderNavItem, RenderRouteContent } from '../types/NavTypes'; import type { NavRouteConfigItemJS } from '../types/NavRouteConfigItem'; import { NavigatorRouteView, NavigatorRouteViewProps } from...
import { Directive, ElementRef, EventEmitter, HostListener, Input, NgZone, OnChanges, OnInit, Output, SimpleChange } from '@angular/core'; import { latLng, LatLng, LatLngBounds, map, Map, MapOptions} from 'leaflet'; @Directive({ selector: '[leaflet]' }) export class LeafletDirective implements OnChanges, OnInit {...
/** * @license * Copyright 2017 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 ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as key from './key'; import * as encoding from './encoding'; export { key, encoding }; export * from './signatures'; export * from './derive-bits'; export * from './WebCryptoKey'; export * from './crypto'; export * from './types';
import jwt from 'jsonwebtoken' import { Decrypter } from '../../../data/protocols/criptography/decrypter' import { Encrypter } from '../../../data/protocols/criptography/encrypter' export class JwtAdapter implements Encrypter, Decrypter { constructor(private readonly secret: string) {} async encrypt(value: strin...
import I18n from '@interfaces/enums/language.enum'; import Dictionary from '@interfaces/dictionary.interface'; import { Definitions } from '@interfaces/definitions.interface'; import WordDefinition from '@interfaces/word.definition.interface'; import DictionaryCapacityException from '@errors/dictionary.capacity.excepti...
import React from 'react'; import StyleButton from './StyleButton'; const INLINE_STYLES = [ { label: 'Bold', style: 'BOLD' }, { label: 'Italic', style: 'ITALIC' }, { label: 'Underline', style: 'UNDERLINE' }, { label: 'Monospace', style: 'CODE' }, ]; function InlineStyleControls(props: any) { const currentSt...
import WebRequest from './RegisteredModules/WebRequest'; import Zaplify from './RegisteredModules/Zaplify'; export default { WebRequest, Zaplify, };
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Subject } from 'rxjs/Subject'; import { AsyncJobService } from '../../shared/services/async-job.service'; import { BaseBackendCachedService } from '../../shared/services/...
import { GameGlobals } from '../../Game/GameGlobals'; import { ItemDrop } from '../ItemDrop'; export class SpellShieldDrop extends ItemDrop { protected readonly itemTypeId: number = FourCC('I02F'); private readonly gameGlobals: GameGlobals; constructor(gameGlobals: GameGlobals) { super(); ...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ServiceEntity } from 'src/entities/services.entity'; import { ServicesMysqlRepository } from './services-mysql.repository'; @Module({ imports: [TypeOrmModule.forFeature([ServiceEntity])], providers: [ServicesMysqlRep...
import React, { useEffect } from 'react' import { Link, navigate } from 'gatsby' import Layout from '../components/layout' import { isLoggedIn } from '../auth/AppUser' import Amplify from '@aws-amplify/core' import config from '../aws-exports' import Login from '../components/Login' Amplify.configure({ ...config, ...
import { IsNotEmpty, MaxLength } from "class-validator"; export class CreateProfileDto { @IsNotEmpty({ message: 'Informe o nome do perfil' }) @MaxLength(200, { message: 'O nome deve conter menos de 200 caracteres' }) name: string }
import Client from "../struct/Client" import noop from "../util/noop" import Roles from "../util/roles" import Guild from "../struct/discord/Guild" import Discord from "discord.js" export default async function guildMemberRemove( this: Client, member: Discord.GuildMember ): Promise<void> { /*if (member.gui...
// 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 { isNull } from 'inferno-shared'; const attachedEventCounts = {}; const attachedEvents = {}; interface IEventData { dom: Element; } export function handleEvent(name: string, nextEvent: Function | null, dom) { const eventsLeft: number = attachedEventCounts[name]; let eventsObject = dom.$EV; if (nextEve...
/* * << * 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 _ from 'lodash'; import * as emmet from 'vscode-emmet-helper'; import { CompletionList, TextEdit } from 'vscode-languageserver-types'; import { IStylusSupremacy } from './stylus-supremacy'; import { Priority } from '../emmet'; import { LanguageModelCache, getLanguageModelCache } from '../../../embeddedSupport/l...
import { Injectable } from '@angular/core'; import { AngularFireAuth } from '@angular/fire/auth'; import { UserAuthInterface } from '@interfaces/user-auth'; @Injectable({ providedIn: 'platform' }) export class ApiLoginService { constructor( private angularFireAuth: AngularFireAuth ) { } emailAndPassword(...
// TypeScript Version: 2.1 import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; export default class MdFilterHdr extends React.Component<IconBaseProps, any> { }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Mobilecash</source> <translation>Mobilecash-i buruz</translation>...
import { APIGatewayClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../APIGatewayClient"; import { IntegrationResponse, UpdateIntegrationResponseRequest } from "../models/models_0"; import { deserializeAws_restJson1UpdateIntegrationResponseCommand, serializeAws_restJson1UpdateIntegrationResponseC...
import { SelectableValue } from '@grafana/data'; import { Select } from '@grafana/ui'; import React, { useState } from 'react'; export enum VariableQueryType { Datastream = 'Datastream', Things = 'Things', } const variableQueryType = [ { label: 'Datastream', value: VariableQueryType.Datastream }, { label: 'Th...
import { Component, OnInit } from '@angular/core'; import * as player from '../../mock/player.json'; import { HttpClient } from '@angular/common/http'; import { Router, ActivatedRoute, ParamMap, NavigationEnd } from '@angular/router'; import { switchMap } from 'rxjs/operators'; import { of } from 'rxjs'; import...