text
stringlengths
10
953k
import React from 'react'; import { Button } from 'react-bootstrap'; export interface FridgeProps { _id: string; name: string; getFridge(id: string, authorizationCode: string): Promise<FridgeItem[]>; error: boolean; } export interface FridgeItem { item: string; count: number; } interface Frid...
console.log('Hell from index.ts'); //window.location.reload(true); //let reload = true; let text: string = ''; let num: number = 0; function changeTitle(t: string){ text = t; var getH1 = (document.getElementById('text-area')); if (getH1){ getH1.innerHTML = `<h1>${t} </h1>`; } } function in...
<TS language="hr" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Desni klik za uređivanje adresa i oznaka</translation> </message> <message> <source>Create a new address</source> <translat...
import Translation from "../models/client/Translation.d"; import ZhCN from "../shared/translations/zh-cn"; import EnUS from "../shared/translations/en-us"; import { SET_LOCALE } from "../actions/common"; import _ from "lodash"; const initialState: Translation = EnUS; const translations = (state: Translation = initial...
import "jest"; import { count } from "dyna-count"; const PROCESSES_COUNT: number = 1; jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000; console.log('Test info: items:', PROCESSES_COUNT, 'timeout:', jasmine.DEFAULT_TIMEOUT_INTERVAL); import { DynaProcessManager, DynaProcess } from '../../src'; import { IError } from "../../s...
import { Constants } from '../constants'; export class Score { private background: Phaser.Image; private label: Phaser.BitmapText; private hardware: Phaser.Image[] = []; private hardwareMissing: Phaser.Image[] = []; private help: Phaser.BitmapText; constructor( game: Phaser.Game, ...
/** * @file Responsible for serializing tree's to json. */ import * as Utils from "../utils"; import * as Tree from "./tree"; /** * Compose json for the given node (and its children). * @param node Node to create json for. * @param prettyFormat Should the output be pretty formatted. * @returns Json representing...
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; import { IFieldPrice, IFieldRent } from 'src/types/board/board.types'; export enum FieldGroupName { IT = 'IT компании', WEB = 'Веб-сервисы', PARFUME = 'Парфюмерия', AUTO = 'Автомобили', CLOTHES = 'Одежда', DRINKS = 'Напитки', AVIA = 'Авиал...
export const TEMP_DENO_CACHE = "./.cache"; export async function mkCache() { try { await Deno.mkdir(TEMP_DENO_CACHE, { recursive: true }); } catch (_err) { /* Just ensure the dir exists. */ } return await Deno.realPath(TEMP_DENO_CACHE); }
import { Component } from '@angular/core'; import { Platform } from '@ionic/angular'; import { SplashScreen } from '@ionic-native/splash-screen/ngx'; import { StatusBar } from '@ionic-native/status-bar/ngx'; @Component({ selector: 'app-root', templateUrl: 'app.component.html' }) export class AppComponent { publ...
import { Input, Component, OnInit } from '@angular/core'; import { SkyhookDndService } from 'angular-skyhook'; import { Colors } from './colors'; import { map, filter, startWith } from 'rxjs/operators'; @Component({ selector: 'app-nested-source-targetbox', template: ` <div [dropTarget]="target" class="box" [cl...
import { Injectable } from '@angular/core'; import { AuthStore } from './auth.store'; import { AuthDataService } from './auth-data.service'; import { createEmptyUser, Creds } from './auth.model'; import { tap } from 'rxjs/operators'; @Injectable({ providedIn: 'root' }) export class AuthService { constructor(privat...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: release-1.24 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech *...
import { IProduct } from "../interfaces"; const Product: React.FC<IProduct> = () => { return <div></div>; } export default Product;
/// <reference path="Expression.ts" /> /// <reference path="ExpressionType.ts" /> /// <reference path="LiteralExpression.ts" /> /// <reference path="BinaryExpression.ts" /> /// <reference path="ParenthesizedExpression.ts" /> /// <reference path="../Token/TokenType.ts" /> /// <reference path="../DiagnosticInformation.ts...
import { State, Action, StateContext, Selector } from '@ngxs/store'; import { FetchingTeachersAction, FetchingBooksAction, CheckForEligibility, AddStudentForm } from './loading.actions'; import { of, Observable } from 'rxjs'; import { delay, finalize } from 'rxjs/operators'; import { Student, IStudent } from '../data';...
import * as React from "react"; import Auth from "./Auth"; import Home from "./Home"; import { Spin } from "antd"; export interface InitialProps {} export interface InitialState { isLoading: boolean; isLogged: boolean; } class Initial extends React.Component<InitialProps, InitialState> { constructor(props) { ...
import { EUI } from './EUI'; export { EUI };
import csv from 'csvtojson' import DeliusOfficeLocation from '../models/deliusOfficeLocation' export default class ReferenceDataService { async getProbationOffices(): Promise<DeliusOfficeLocation[]> { return csv() .fromFile('reference-data/probation-offices-v0.csv') .then(json => { return jso...
/** @format */ import { ISvgIconProps, IconWrapper } from '../runtime'; export const BytedBoots = IconWrapper( 'byted-boots', false, (props: ISvgIconProps) => ( <svg width={props.size} height={props.size} viewBox="0 0 48 48" fill="none"> <path d="M19 4H35L31 36L32.2361 36.618C33.93 37.465 35 3...
import dynamic from 'next/dynamic'; import withLoadingProps from 'next-dynamic-loading-props'; import { ReactNode } from 'react'; import { SyntaxHighlighterProps } from './SyntaxHighlighter'; interface Props { className?: string; inline?: boolean; children?: ReactNode; } /** * The SyntaxHighlighter component ...
export const supportedLangs = ['en', 'ko', 'zh', 'ja'] as const export type LangType = typeof supportedLangs[number] export const SUPPORTED_LANGUAGUES = [{ label: 'English', value: 'en' }] as { label: string value: LangType }[]
// Copyright IBM Corp. 2020. All Rights Reserved. // Node module: @loopback/example-access-control-migration // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT import {Entity, model, property} from '@loopback/repository'; @model({settings: {strict: false}}...
/** * Copyright 2015 CANAL+ Group * * 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 agreed t...
import {Injectable} from '@angular/core'; import {HttpClient, HttpHeaders} from '@angular/common/http'; import {Observable} from 'rxjs/Observable'; import {Emoji} from '../emoji'; import {environment} from '../../environments/environment'; @Injectable() export class ReportsService { readonly baseUrl: string = en...
export * from "./bio.type"; export * from "./education.type"; export * from "./project.type"; export * from "./skill.type"; export * from "./experience.type"; export * from "./user.type";
import { Buffer } from 'buffer/'; /** * Representation of a transaction memo, which enforces that it: * - byte length is <= 256 */ export class Memo { memo: Buffer; constructor(memo: Buffer) { if (memo.length > 256) { throw new Error( "A transaction memo's size cannot ex...
import { Router } from 'express'; import transactionsRouter from './transactions.routes'; const router = Router(); router.use('/transactions', transactionsRouter); export default router;
import classNames from 'classnames' import React from 'react' import { noop } from 'rxjs' import { Button } from '@sourcegraph/wildcard/src' import { FormInput } from '../../../../../../components/form/form-input/FormInput' import { useField } from '../../../../../../components/form/hooks/useField' import { useForm }...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_BR" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About GHScoin</source> <translation>Sobre o GHScoin</translation> </message> <message> <lo...
import {get} from '@loopback/openapi-v3'; import * as fs from 'fs'; import * as path from 'path'; import {inject} from '@loopback/context'; import {RestBindings, Response} from '@loopback/rest'; export class HomePageController { private html: string; constructor(@inject(RestBindings.Http.RESPONSE) private response...
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" /> /// <reference path="./node_modules/tns-platform-declarations/android.d.ts" /> import * as app from "tns-core-modules/application"; import { Color } from "tns-core-modules/color"; import { isAndroid } from "tns-core-modules/platform"; import { ...
import gql from 'graphql-tag' import * as ApolloReactCommon from '@apollo/react-common' import * as ApolloReactHooks from '@apollo/react-hooks' export type Maybe<T> = T | null export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] } /** All built-in and custom scalars, mapped to their actual value...
import { Hub } from '@sentry/hub'; import { EventProcessor, Integration } from '@sentry/types'; import { dynamicRequire, fill, logger } from '@sentry/utils'; interface PgClient { prototype: { query: () => void | Promise<unknown>; }; } /** Tracing integration for node-postgres package */ export class Postgres ...
/** * Copyright (c) Microsoft Corporation. * * 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...
/** * @license * Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ export * from './common-wrap'; export * from './direction'; export * from './drop...
import { action } from '@storybook/addon-actions' import { DecoratorFn, Meta, Story } from '@storybook/react' import * as H from 'history' import { NEVER } from 'rxjs' import { subtypeOf } from '@sourcegraph/common' // eslint-disable-next-line no-restricted-imports import { WebStory } from '@sourcegraph/web/src/compon...
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common'; import { Observable } from 'rxjs'; import { SessionService } from './session.service'; @Injectable() export class SessionGuard implements CanActivate { constructor(private sessionService: SessionService) { } canActivate(context: Exec...
import { Module } from '@nestjs/common'; import { TeachersController } from './teachers.controller'; import { TeachersService } from './teachers.service'; import { teachersProviders } from './teachers.provider'; import { DatabaseModule } from '../../database/database.module'; @Module({ imports: [DatabaseModule], con...
import React from 'react' import { Link } from 'gatsby' import { useIdentityContext } from 'react-netlify-identity-widget' import Layout from '../components/layout' import SEO from '../components/seo' import SearchBox from '../components/searchBox' const IndexPage: React.FC = () => { const { isLoggedIn } = useIdenti...
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const SiPingup: IconType;
import React from "react" import { ThemeContext } from "components/App/ThemeContext" export default function DarkModeToggle() { const { colorMode, setColorMode } = React.useContext(ThemeContext) if (!colorMode || !setColorMode) return null return ( <> <label> <input ...
<?xml version="1.0" encoding="UTF-8"?> <tileset name="level01_area01_tiles" tilewidth="32" tileheight="32" tilecount="140" columns="20"> <image source="../img/map/area01_level_tiles.png" width="640" height="241"/> </tileset>
import React from 'react' export const ConfFileIcon = ({ className }: { className?: string }): React.ReactElement => { return ( <svg viewBox='0 0 49.77 59.72' className={className}> <path d='M3,0A2.84,2.84,0,0,0,.89.9,3.14,3.14,0,0,0,0,3V56.74a2.86,2.86,0,0,0,.9,2.09A2.91,2.91,0,0,0,3,59.72h43.8a2....
import * as mysql from "mysql"; import * as ppath from "path"; import * as vm from "vm"; import { ConnectionStatus, HotDB } from "../HotDB"; import { HotDBConnectionInterface } from "../HotDBConnectionInterface"; import { HotIO } from "../HotIO"; import { HotDBMigration } from "./HotDBMigration"; import { MySQLSchema...
export * from "./demo-colors.component";
import 'should' import { DefaultErrorMapper, ErrorMapper, MapperRegistry } from '../src' import { ProblemDocument } from 'http-problem-details' class FooError extends Error {} class BarError extends Error {} class ChildFooError extends FooError {} class FooErrorMapper extends ErrorMapper { public constructor () { ...
import { Viewer } from '../..'; import { render, fireEvent, act } from '@testing-library/svelte'; function sleep(ms: number = 0) { return new Promise((r) => setTimeout(r, ms)); } function stripComment(str: string) { return str.replace(/<\!--.*?-->/g, ''); } test('value', async () => { const $ = render(Viewer, {...
import * as RPCTypes from './rpc-gen' import {ConversationIDKey} from './chat2' import {RetentionPolicy} from './retention-policy' import * as RPCChatTypes from './rpc-chat-gen' import {TeamBuildingSubState} from './team-building' export type TeamID = string export const stringToTeamID = (s: string): TeamID => s expor...
import { Schema } from '../schema'; import { Error } from './error'; import { Invoice } from './invoice'; /** The response returned by the `CreateInvoice` request. */ export interface CreateInvoiceResponse { /** * Stores information about an invoice. You use the Invoices API to create and process * invoic...
import { DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBStreamsClient"; import { GetShardIteratorInput, GetShardIteratorOutput } from "../models/models_0"; import { deserializeAws_json1_0GetShardIteratorCommand, serializeAws_json1_0GetShardIteratorCommand, } from "../p...
import { CommandStore, KlasaMessage } from 'klasa'; import { Bank } from 'oldschooljs'; import { toKMB } from 'oldschooljs/dist/util/util'; import { ClientSettings } from '../../lib/settings/types/ClientSettings'; import { UserSettings } from '../../lib/settings/types/UserSettings'; import Skillcapes from '../../lib/s...
export { ModuleResolutionHost, FormatDiagnosticsHost } from 'typescript'; import * as typescript from 'typescript'; import { Chalk } from 'chalk'; export interface ErrorInfo { code: number; severity: Severity; content: string; file: string; line: number; character: number; context: string; } export typ...
/// <reference path='fourslash.ts'/> //// class A { //// foo () {} //// bar () {} //// } //// class B extends A { //// override /*1*/ //// } verify.completions({ marker: "1", includes: [ "foo", "bar" ], isNewIdentifierLocation: true })
import { Remote } from '@lxdhub/db'; import { Connection, EntityRepository, Repository } from 'typeorm'; /** * The remote repository represents the * interface between the appliaction remote entity * and the database. */ @EntityRepository(Remote) export class RemoteRepository extends Repository<Remote> { }
import type { Message } from 'discord.js'; import { chika_beating_yu_gif, white_check_mark } from '../../../shared/assets'; import { baseEmbed } from '../../../shared/embeds'; import { filterMessage } from '../../../lib/validateMessages'; import { isGameActive, unblock } from '../../utils/manageState'; import type { Sh...
import { Component } from '@angular/core'; import { Quote } from '../quote'; @Component({ selector: 'app-quote', templateUrl: './quote.component.html', styleUrls: ['./qoute.component.css'] }) export class QuoteComponent { title = 'Quotes'; quotes: Quote[] = [ new Quote(1, 'Wisely, and slow. They stumble...
/* * 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 { shallowWithIntl } from 'test_utils/enzyme...
import { createIcon } from '../core'; /** * remixicon dislike-line */ export default createIcon('dislike-line', { "viewBox": "0 0 24 24", "paths": [ { "d": "M0 0H24V24H0z", "fill": "none" }, { "d": "M2.808 1.393l18.384 18.385-1.414 1.414-3.747-3.747L12 21.485 3.52 12.993c-2.04-2.284...
import { Component, OnInit } from "@angular/core"; import { ActivatedRoute } from "@angular/router"; import { SeparationApplicationService } from "app/entities/separation-application/separation-application.service"; import { ISeparationApplication, SeparationApplication, Status as SeparationApplicationStatus } fr...
import { Component, ViewChild, AfterViewInit } from '@angular/core'; import { jqxDockingLayoutComponent } from '../../../../../jqwidgets-ts/angular_jqxdockinglayout'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent {...
export * from "./Snowball"; export * from "./SnowballClient"; export * from "./commands"; export * from "./models"; export * from "./pagination";
import React from 'react'; import { Typography, makeStyles } from '@material-ui/core'; const useStyles = makeStyles((theme) => ({ cardTitle: { marginBottom: theme.spacing(2), }, titleCaption: { marginTop: theme.spacing(0.5), }, })); interface CardTitleProps { title: string; caption?: string; tit...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {AdminTypes} from 'action_types'; import {General} from '../constants'; import {Client4} from 'client'; import {Action, ActionFunc, batchActions, DispatchFunc, GetStateFunc} from 'types/actions'; impo...
import { Role } from '../role.enum'; import { IsOptional, IsString, MaxLength, MinLength } from 'class-validator'; export class AuthCredentialDto { @IsString() @MinLength(4) @MaxLength(20) username: string; @IsString() @MinLength(4) @MaxLength(20) password: string; @IsString() name: string; @I...
/** * @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 {NgtscTestEnvironment} from './env'; describe('ngtsc incremental compilation', () => { let env !: NgtscTes...
import { AgmCoreModule } from '@agm/core'; import { NgModule } from '@angular/core'; import { HttpModule } from '@angular/http'; import { BrowserModule } from '@angular/platform-browser'; import { StatusBar } from '@ionic-native/status-bar'; import { IonicApp, IonicModule } from 'ionic-angular'; import { Config } from ...
import { Component, Input, OnInit, ViewChild, ComponentFactoryResolver, OnDestroy, Output, EventEmitter } from '@angular/core'; import { DynamicComponentDirective } from '../../../directives/dynamic.component.directive'; import { ComponentMount } from '../../component.mount'; import { ChatBotClass } from './chatb...
'use strict'; /** * Copyright (c) 2020 Copyright bp All Rights Reserved. */ import { FeignClient, RequestBody, RequestMapping, RequestMethod, RestObject, RestObjectTypeFeign, Service, } from 'bpframework'; import { DemoFeignClientBean } from './DemoFeignClientBean'; @Service() @FeignClient({ name: 'u...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { UpworkStoreService } from 'apps/gauzy/src/app/@core/services/upwork-store.service'; import { Observable, of } from 'rxjs'; import { NbDialogRef } from '@nebular/theme'; import { IEngagement } from '@gauzy/contracts'; import { tap, catchError } from ...
import { ObjectPageHeader as ObjectPageHeaderConfig, GenericActions, AvatarShape } from '../../../../specification/v2/controls/ObjectPageHeader'; export declare class ObjectPageHeader<ACT = GenericActions> implements ObjectPageHeaderConfig<ACT> { showRelatedApps?: boolean; editableHeaderContent?: boolean; s...
export default interface IUser { email: string; password: string; }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* * MIT License * * Copyright (c) 2020-present Cloudogu GmbH and Contributors * * 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 r...
/* * Copyright 2022 ThoughtWorks, Inc. * * 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...
import React from 'react' const Keycap4 = ({ size, rem }: { size: number | string, rem?: boolean }) => { const width = (typeof size === 'string') ? size : rem ? `${size}rem` : `${size}px` return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" style={{ width: width }}><path fill="#3B88C3" d="...
export * as helper from './helper';
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { environment } from '@environments/environment'; @Injectable({ providedIn: 'root' }) export class LocalitieService { localitie: any; localities: any[]; constructor( private http: HttpClient ) { } g...
import * as Interact from '@interactjs/types/index' import autoStart from './base' import dragAxis from './dragAxis' import hold from './hold' export default { id: 'auto-start', install (scope: Interact.Scope) { scope.usePlugin(autoStart) scope.usePlugin(hold) scope.usePlugin(dragAxis) }, }
import { Request, Response } from 'express' import db from '../database/connection' export default class PlaceController { async index(req: Request, res: Response) { const { latitude, longitude } = req.query // ST_Buffer(ST_Transform(ST_SetSRID(ST_MakePoint(${latitude}, ${longitude}),4618), 26986...
export * from "https://esm.sh/liquidjs@9.35.0"; export interface LiquidOptions { /** A directory or an array of directories from where to resolve layout and include templates, and the filename passed to `.renderFile()`. If it's an array, the files are looked up in the order they occur in the array. Defaults to `["."...
import { TestBed } from '@angular/core/testing'; import { MockRender } from 'ng-mocks'; import { AppModule, TargetComponent } from './fixtures'; // @see https://github.com/ike18t/ng-mocks/issues/241 describe('issue-241:real', () => { beforeEach(() => TestBed.configureTestingModule({ imports: [AppModule],...
// Imports import { Transform, LogEntry } from 'caterpillar' /** * Filter the log entires by level. * @extends Transform * @example * ``` javascript * import Logger from 'caterpillar' * import Filter from 'caterpillar-filter' * const logger = new Logger() * const filter = new Filter() * logger.pipe(filter).pi...
import { GestureResponderEvent } from 'react-native'; export declare type NumberProp = string | number; export declare type NumberArray = NumberProp[] | NumberProp; export declare type rgbaArray = number[]; export declare type Int32ARGBColor = number; export declare type Color = Int32ARGBColor | rgbaArray | string; exp...
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import Svg, { SvgProps } from '../Svg'; import React from 'react'; const Dialer: React.SFC<SvgProps> = props => ( <Svg {...props}> <path d="M12 15.972c1.11 0 2.014.904 2.014 2.015C14.014 19.097 13....
import { Injectable } from '@angular/core'; import { HttpResponse } from '@angular/common/http'; import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Routes } from '@angular/router'; import { UserRouteAccessService } from 'app/core'; import { of } from 'rxjs'; import { map } from 'rxjs/operators'; import { Am...
import { whites } from './colors' export const theme = { breakpoints: [32, 48, 64], space: [0, 4, 8, 16, 32, 64, 128, 256, 512], fontSizes: [10, 12, 14, 16, 20, 24, 36, 48, 80, 96], fontWeights: [100, 200, 300, 400, 500, 600, 700, 800, 900], lineHeights: { solid: 1, title: 1.25, copy: 1.5 }, ...
import React, { createContext, useCallback, useState, useContext, useEffect, } from 'react'; import AsyncStorage from '@react-native-community/async-storage'; import api from '../services/api'; interface User { id: string; name: string; email: string; avatarUrl: string; } interface...
import { inject, injectable, } from 'inversify'; import { ServiceIdentifiers } from '../../container/ServiceIdentifiers'; import { TIdentifierNamesGeneratorFactory } from '../../types/container/generators/TIdentifierNamesGeneratorFactory'; import { TStatement } from '../../types/node/TStatement'; import { IOptions } ...
import { setupDomTests } from '../util'; describe('shadow-dom-mode', function () { const { setupDom, tearDownDom } = setupDomTests(document); let app: HTMLElement; beforeEach(async () => { app = await setupDom('/shadow-dom-mode/index.html'); }); afterEach(tearDownDom); it('render', async () => { ...
import { DataType, isFloat, isInt } from '../types/dataType'; import { hex2rgba } from './color'; export function parseLine(line: string[], types: DataType[]): unknown[] { return line.map((cell, i) => { if (isFloat(types[i])) return Number.parseFloat(cell); if (isInt(types[i])) return Number.parseI...
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import * as msg from "gen/cli/msg_generated"; import * as flatbuffers from "./flatbuffers"; import { assert } from "./util"; import * as dispatch from "./dispatch"; export interface ResourceMap { [rid: number]: string; } /** Returns a map of...
import { Injectable } from '@angular/core'; import { JwtHelper } from 'angular2-jwt'; import { CONFIG } from './../../configuraciones/config'; declare var KJUR, KEYUTIL: any; @Injectable() export class ManejadortokenService { palabraClave: string; jwtAyuda: JwtHelper = new JwtHelper(); PublicKey: any; construc...
import React from 'react'; import { Illustration, screenGrey5, screenPrimary3, } from 'react-cosmos-shared2/ui'; export const ArtificialIntelligenceIllustration = ({ title, }: { title: string; }) => ( <Illustration viewBox="0 0 1028.53 752.52"> <defs> <linearGradient id="b417a2e5-779f-434...
import React, { useEffect, useRef } from 'react'; import { View } from 'react-native'; import { useScrollIntoView } from '../../src'; import { Button, Centered, ScrollIntoViewScrollView, } from '../components/Components'; function HooksScreenContent() { const scrollIntoView = useScrollIntoView(); const view...
export { default as InputText } from './Input-Text.vue';
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SolarCoin</source> <translation>A prop de SolarCoin</translation> ...
interface ILoginFormData { userName: string | null; password: string | null; } interface ILoginState { userName: string | null; password: string | null; isLoading: boolean; isFormNotValid: boolean; } export type { ILoginFormData, ILoginState };
import * as React from "react"; import classnames from "classnames"; import { HierarchyRectangularNode } from "d3-hierarchy"; import { scaleLinear, scaleSequential } from "d3-scale"; import { interpolateSpectral } from "d3-scale-chromatic"; import { interpolateHcl } from "d3-interpolate"; import Node, { NumberOfChild...
/* * Copyright 2018 NEM * * 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 agreed to in writi...