text stringlengths 10 953k |
|---|
import { createElement, isNullOrUndefined, isObject, remove } from '@syncfusion/ej2-base';
import { Gantt } from '../base/gantt';
import * as cls from '../base/css-constants';
import { IGanttData, ITaskData, IConnectorLineObject, IPredecessor } from '../base/interface';
import { isScheduledTask } from '../base/utils';
... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-slides',
templateUrl: './slides.component.html',
styleUrls: ['./slides.component.scss'],
})
export class SlidesComponent implements OnInit {
slideOpts = {
initialSlide: 0,
speed: 400
};
constructor() { }
ngOnInit() {... |
import { IGameObject } from '../gameobjects/IGameObject';
// Returns all children of the parent, no matter what depth they go to, using an iterative search.
// Does NOT include the parent in the results.
export function DepthFirstSearch (parent: IGameObject): IGameObject[]
{
const stack: IGameObject[] = [ paren... |
import { useCallback, useEffect, useRef } from 'react';
export default function useMounted() {
const mountedRef = useRef<boolean>(false);
useEffect(() => {
mountedRef.current = true;
return () => {
mountedRef.current = false;
};
}, []);
return useCallback(() => mountedRef.current, []);
} |
import styles from './styles.module.scss';
export function Player() {
return(
<div className={styles.playerContainer}>
<header>
<img src="/playing.svg" alt="Tocando agora"/>
<strong>Tocando agora</strong>
</header>
<div className={styles.emptyPlayer}>
<strong>Selecione ... |
/**
* Copyright Linkurious SAS 2012 - 2019
*
* - Created on 2019-09-27.
*/
import {Request} from '../../http/request';
import {LkErrorKey} from '../../http/response';
import {ISetAccessRightsParams, IUpdateAccessRightsSettingsParams} from './types';
export * from './types';
const {
UNAUTHORIZED,
DATA_SOURCE... |
import { NextFunction, Request, Response } from 'express';
export function ErrorHandlerMiddleware(err: Error, _req: Request, res: Response, _next: NextFunction): void {
console.error(err.stack, _next);
res.status(500).send('Something broke!');
} |
import { contextBridge, ipcRenderer, webFrame } from 'electron';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { apiCmds, apiName } from '../common/api-interface';
import { i18n } from '../common/i18n-preload';
import './app-bridge';
import DownloadManager from './components/download-ma... |
import * as React from 'react'
interface ContentMountHandlerProps {
children: React.ReactNode
onLoad?: () => void
}
function ContentMountHandler({
children,
onLoad,
}: ContentMountHandlerProps): JSX.Element {
React.useEffect(
function effect(): void {
if (onLoad) {
onLoad()
}
},
... |
export interface Image {
imagePath: string;
carId: number;
imageID: number;
date: Date;
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CfgAttributeTableComponent } from './cfg-attribute-table.component';
describe('CfgAttributeTableComponent', () => {
let component: CfgAttributeTableComponent;
let fixture: ComponentFixture<CfgAttributeTableComponent>;
beforeEach... |
import {getCallState} from '../../../../../main/common/rx/depend/core/CallState'
import {depend} from '../../../../../main/common/rx/depend/core/depend'
import {DependMap} from '../../../../../main/common/rx/depend/lists/DependMap'
import {assert} from '../../../../../main/common/test/Assert'
import {describe, it} from... |
import { Request, Response } from "express";
import { getRepository } from "typeorm";
import * as Yup from "yup";
import institutionView from "../views/institutions_view";
import Institution from "../models/Institutions";
export default {
async index(request: Request, response: Response) {
const instituti... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'instructions',
templateUrl: './instructions.component.html',
styleUrls: ['./instructions.component.css']
})
export class InstructionsComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { IsNotEmpty } from 'class-validator';
export class CreateBoardDto {
@IsNotEmpty()
title: string;
@IsNotEmpty()
description: string;
status: string;
} |
import { Script } from '../src/models/Script';
test('Script.fromFile', () => {
const filePath = './tests/testdata/circles.js';
const script: Script = Script.fromFile(filePath);
expect(script).toBeInstanceOf(Script);
expect(script.filename).toBe(filePath);
});
test('Script.getErrors', () => {
expect(() => Sc... |
import React from 'react'
import styles from './Button.module.css'
import classnames from 'classnames'
interface ButtonProps {
fluid?: boolean
onClick?: (event: React.MouseEvent<HTMLElement>) => void
children: any
linkHref?: string
size?: 'big' | 'small'
target?: string
}
export default function Button({ ... |
import type { ViewerConfiguration } from "./../configuration";
import { defaultTemplate, fillContainer, loadingScreen, defaultViewer, overlay, error, loading, close } from "babylonjs-viewer-assets";
/**
* The minimal configuration needed to make the viewer work.
* Some functionalities might not work correctly (like ... |
import * as vscode from "vscode";
import { VSCodeGlobals } from "./VSCodeGlobals";
import { attemptToGreetUser } from "./WelcomeService";
const SAVED_VERSION = "doki.theme.version";
const DOKI_THEME_VERSION = "v17.0.0";
export function attemptToNotifyUpdates(context: vscode.ExtensionContext) {
const savedVersion = ... |
import nuxtImageMixin from './nuxt-image-mixins'
import './nuxt-image.css'
const pictureHTML = ({ generatedSrc, width, height, renderImgAttributesToString, sizes, renderAttributesToString }) =>
`<picture>
${sizes.map(s => `<source ${renderAttributesToString({ type: s.format, media: s.media, srcset: s.url })}>`).join(... |
/* Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
import isEmail from "validator/lib/isEmail"
import { Schema, Document, model, Types } from "mongoose"
import { authService } from "../services/auth"
import { IAccountCreatedEvent, IJwtAccessTokens } from "@tusksui/shared"
const UserSchema = new Schema<IUserDocument>(
{
username: {
type: String,
lowe... |
import { InjectionToken } from '@angular/core';
/**
* Injection token to extend schema builders for adding structural data (json-ld).
*
* Some builders (i.e. `JSONLD_PRODUCT_BUILDER`) might have additional
* lower level builder to further extend the schema.
*/
export const SCHEMA_BUILDER = new InjectionToken('Sch... |
export interface Tweet {
created_at: string;
id: number;
id_str: string;
text: string;
truncated: boolean;
entities: TweetEntities;
extended_entities?: TweetExtendedEntities;
source: string;
user: User;
is_quote_status: boolean;
retweet_count: number;
favorite_count: number;
favorited: boolean... |
import * as React from 'react';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import { preClass, isExist } from '../utils';
export interface BreadcrumbItemProps {
className?: string;
style?: React.CSSProperties;
}
const BreadcrumbItem: React.SFC<BreadcrumbItemProps> = ({ childr... |
declare namespace OIPF {
export interface CapabilitiesObject extends HTMLObjectElement {
type: 'application/oipfCapabilities';
}
} |
import * as React from 'react';
import Video from '../VideoComponent/Video';
import Quiz from '../Quiz/Quiz';
import './Content.scss';
import { ByteType, VideoType, SectionType, QuestionType } from '../../../types';
// Redux
import { connect } from 'react-redux';
import SectionItem from '../Sidebar/Sections/SectionI... |
import {
AmbientLight,
PCFSoftShadowMap,
PerspectiveCamera,
PointLight,
Scene,
WebGLRenderer,
} from 'three';
import {OrbitControls} from 'three/examples/jsm/controls/OrbitControls';
import Skybox from './Skybox';
import SolarSystemObjects from './SolarSystem';
import OvniObjects from './OvniSystem';
const ... |
import { _UnmarshalledBranch } from "./_Branch";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p> Result structure for delete branch request. </p>
*/
export interface DeleteBranchOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p> Branch structure for an Amplify App. </p>
*/
branch: _Unma... |
import { useEffect, useState } from "react";
import { api } from "../services/api";
import { Button } from "./Button"
interface GenreResponseProps {
id: number;
name: 'action' | 'comedy' | 'documentary' | 'drama' | 'horror' | 'family';
title: string;
}
interface SideBarProps {
handleClickButton: (id: number)... |
import { v4 as uuidV4 } from 'uuid'
import {
Column,
CreateDateColumn,
Entity,
PrimaryColumn,
} from 'typeorm'
@Entity('users')
class User {
@PrimaryColumn()
id: string
@Column()
username: string
@Column()
email: string
@Column()
password: string
@CreateDateColumn()
created_at: Date
... |
/* tslint:disable:no-unused-variable */
import { TestBed, async, inject } from '@angular/core/testing';
import { SidebarComponent } from './sidebar.component';
import { RouterModule, Router } from '@angular/router';
<<<<<<< HEAD
import { MenuService } from '../../core/menu/menu.service';
=======
>>>>>>> 68df573e70a5b9... |
import Vue = require("vue")
export class Configuration {
locale?: string;
delay?: number;
errorBagName?: string;
dictionary?: any;
strict?: boolean;
fieldsBagName?: string;
classes?: any;
classNames?: any;
events?: string;
inject?: boolean;
fastExit?: boolean;
aria?: boo... |
import { ICollection } from '../interfaces';
import { Resource } from '../resource';
import { IDataResource } from './data-resource';
export interface IRelationship {
data: any;
hasid: boolean;
content: string;
}
export interface IRelationshipNone extends IRelationship {
data: {};
hasid: false;
... |
import nodemailer, { Transporter } from 'nodemailer';
import { inject, injectable } from 'tsyringe';
import IMailTemplateProvider from '../../MailTemplateProvider/models/IMailTemplateProvider';
import ISendMailDTO from '../dtos/ISendMailDTO';
import IMailProvider from '../models/IMailProvider';
@injectable()
export de... |
export const config = {
apiUrl: 'http://localhost:8042'
}; |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { CompanyAutoComplete } from '../commons/components/company-input/company-autocomplete';
import { fetchCompanyAction, selectCompanyList } from '../ducks/company.duck';
const enhanceCom... |
<TS language="vi_VN" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Nhấn chuột phải để sửa địa chỉ hoặc nhãn</translation>
</message>
<message>
<source>Create a new address</source>
<trans... |
/**
* @file: template.ts
* @description .对 san 的模板的
*/
// 删除模板中的注释, 主要针对模板中的 js 和 css 部分
// 也适用于 ts
// @note: 双斜杠注释的双斜杠后面必须有空格, 否则不会删除这个注释, 即
// 后面这个注释会删除: // x
// 后面这个注释不会删除: //x
export function removeComments(oriCode: string) {
/* eslint-disable max-len */
const reg = /"(?:[^\\"\r\n\f]|\\[\s\S])*"|... |
/*
* The very first implementation of Pencil interpreter.
* Hammadi Agharass - Alten 2018
* This file is under MIT license.
* @File: Lexer.ts
* @Description: This file contains all the needed implementation of Pencil lexer.
*/
/// <reference path="./AST/Expression.ts" />
/// <reference path="./AST/Statement.ts" />
c... |
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/sequelize';
import { User } from '../users/entities/user.model';
import { CreateAuthDto } from './dto/create-auth.dto';
import * as bcrypt from 'bcrypt';
import * as jwt from 'jsonwebtoken';
import * as dotenv f... |
import "../../../utils/test-setup"
import {
closeTestingConnections,
createTestingConnections,
reloadTestingDatabases,
} from "../../../utils/test-utils"
import {
DataSource,
LockNotSupportedOnGivenDriverError,
NoVersionOrUpdateDateColumnError,
OptimisticLockCanNotBeUsedError,
Optimistic... |
import { SimpleNoteAppPage } from './app.po';
describe('simple-note-app App', () => {
let page: SimpleNoteAppPage;
beforeEach(() => {
page = new SimpleNoteAppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!!');
... |
//-- copyright
// OpenProject is an open source project management software.
// Copyright (C) 2012-2021 the OpenProject GmbH
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is a fork of ChiliProject, which is... |
import { mongoose } from '../mongoose/connection';
import { Document, Model, Schema } from 'mongoose';
export class AddressC {
street: String;
city: String;
zip: String;
constructor(street: String, city: String, zip: String) {
this.street = street;
this.city = city;
this.zip = zip;
}
}
const sc... |
import { Pipe, PipeTransform } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Test } from 'src/app/shared/models/test.model';
@Pipe({
name: 'testSummaryShort',
})
export class TestSummaryShortPipe implements PipeTransform {
constructor(private translate: TranslateService) {}... |
import {combineReducers, Reducer} from 'redux';
import counter from './counter';
const rootReducer: Reducer = combineReducers({
counter
});
export default rootReducer; |
// Copyright 2020 Prescryptive Health, Inc.
import { ViewStyle } from 'react-native';
import { getReponsiveDimension } from '../utils/types/sizing';
export interface ISmartpriceModalStyles {
activityIndicatorViewStyle: ViewStyle;
activityIndicatorStyleAndroid: ViewStyle;
activityIndicatorViewStyleBusy: ViewStyle... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BonusManagerComponent } from './bonus-manager.component';
describe('BonusManagerComponent', () => {
let component: BonusManagerComponent;
let fixture: ComponentFixture<BonusManagerComponent>;
beforeEach(async(() => {
TestBed... |
import React, { FC } from 'react'
import styled, { css } from 'styled-components'
import { Theme, useTheme } from '../../hooks/useTheme'
import { useOffsetHeight } from './dialogHelper'
import { SecondaryButton } from '../Button'
export type BaseProps = {
title: string
description: React.ReactNode
closeText: s... |
import { STATUS_CODES } from "http";
import { addDefaultLocaleToPath, getAcceptLanguageLocale } from "./locale";
import { compileDestination, matchPath } from "../match";
import { Manifest, Request, RedirectRoute, RoutesManifest } from "../types";
import { parse } from "cookie";
/**
* Create a redirect response with ... |
import { TEMPDECK, MAGDECK, THERMOCYCLER } from '@opentrons/shared-data'
import type {
MagneticModuleModel,
TemperatureModuleModel,
ThermocyclerModuleModel,
ModuleModel,
} from '@opentrons/shared-data'
interface PhysicalPort {
hub: number | null
port: number | null
}
export interface ApiBaseModule {
di... |
import { TestBed } from '@angular/core/testing';
import { instance, mock } from 'ts-mockito';
import { ConfigService } from '../config';
import { ThemeManager } from '../theme-manager';
import { IconsService } from './icons.service';
describe('IconsService', () => {
let service: IconsService;
beforeEach(() =... |
export interface IXMLAttributeOptions {
name?: string;
required?: boolean;
namespace?: string;
} |
/*
* Copyright 2019 BloomReach. All rights reserved. (https://www.bloomreach.com/)
*
* 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
*
*... |
// Copyright 2017-2020 @polkadot/react-components authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces';
import { BareProps } from './types';
... |
import autoc from "./autoc";
import { testSymbols } from "../../tests/symbols";
import testYf from "../../tests/testYf";
const yf = testYf({ autoc });
describe("autoc", () => {
// See also common module tests in moduleExec.spec.js
it.each(testSymbols)("passes validation for symbol '%s'", async (symbol) => {
... |
function basics() {
class Basics {
private app: PIXI.Application;
private bunny: PIXI.Sprite;
constructor() {
this.app = new PIXI.Application(800, 600, { backgroundColor: 0x1099bb });
document.body.appendChild(this.app.view);
this.bunny = PIXI.Sprite.fr... |
import TestBase from "../../../TestBase";
export default class extends TestBase {
getDescription() {
return '"apply" tag does not create a new scope';
}
getTemplates() {
return {
'index.twig': `
{% set foo = 'baz' %}
{% apply spaceless %}
{% set foo = 'foo' %}
{% set ba... |
import { EpsilonHttpError } from './epsilon-http-error';
describe('#epsilonHttpError', function () {
it('chould check if the error is a given class', async () => {
const testError: Error = new EpsilonHttpError('test').withHttpStatusCode(404);
const nonHttpError: Error = new Error('Not HTTP');
expect(Epsi... |
import { Environment, Fleet } from '@appjusto/types';
import algoliasearch, { SearchClient, SearchIndex } from 'algoliasearch/lite';
import { LatLng } from 'react-native-maps';
import { AlgoliaConfig } from '../../../../config/types';
import { SearchFilter, SearchKind, SearchOrder } from '../../consumer/types';
export... |
import { content } from "./elements.ts";
import { setOffset, offset, render } from './rendering.ts';
let mouseX = 0;
let dragging = false;
let dragVel = 0;
const dragFrame = () => {
if (dragVel !== 0 && !dragging) {
setOffset(offset + dragVel);
render();
dragVel += dragVel > 0 ? -2 : 2;
}
if (Math.a... |
import {Injectable} from '@angular/core';
import {ConfigurationService} from 'projects/commons/src/lib/config/configuration.service';
import {StorageNode} from 'projects/storage/src/lib/entities/storage-node';
@Injectable({
providedIn: 'root'
})
export class AnalysisConfigurationService {
constructor(private conf... |
/**
* 从对象中移除所有 null 和未定义的属性
* @param obj
* @returns
*/
export const removeNullUndefined = (obj: { [key: string]: any }) =>
Object.entries(obj).reduce<{ [key: string]: any }>(
(a, [k, v]) => (v == null ? a : ((a[k] = v), a)),
{}
); |
import { BrowserWindow } from 'electron';
import { logger } from '$Logger';
// import path from 'path';
import {
isRunningUnpacked,
isRunningDebug,
isRunningSpectronTestProcess,
isCI
} from '$Constants';
const BACKGROUND_PROCESS = `file://${__dirname}/bg.html`;
let backgroundProcessWindow = null;
expo... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-users',
templateUrl: './users.component.html',
styleUrls: ['./users.component.scss']
})
export class UsersComponent implements OnInit {
usersMenu = [
{
path: 'gurus',
name: 'Gurus'
},
{
path: 'users-clie... |
export { Block } from './Block';
export type { Props as BlockProps } from './Block'; |
import "cypress-wait-until";
import {Application} from "../../../support/application.config";
import {
toolbar,
createEditStepDialog,
tiles
} from "../../../support/components/common/index";
import curatePage from "../../../support/pages/curate";
import loadPage from "../../../support/pages/load";
import runPage ... |
import { MonoTypeOperatorFunction } from "../types.ts";
import { EMPTY } from "../observable/empty.ts";
import { operate } from "../util/lift.ts";
import { OperatorSubscriber } from "./OperatorSubscriber.ts";
/**
* Emits only the first `count` values emitted by the source Observable.
*
* <span class="informal">Take... |
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Commande } from 'app/model/commande';
import { Observable } from 'rxjs';
import { throwError } from 'rxjs';
import { catchError, map } from 'rxjs/operators... |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
const u = undefined;
func... |
// 递归将所有属性设置为可选属性
type DeepPartial<T> = {
[P in keyof T]?: T[P] extends Array<infer U>
? Array<DeepPartial<U>>
: T[P] extends ReadonlyArray<infer U>
? ReadonlyArray<DeepPartial<U>>
: DeepPartial<T[P]>
};
export type HTMLAttribute = 'scrollTop' | 'scrollHeight' | 'clientHeight';
export type IDime... |
import {
BadRequestException,
Injectable,
NotFoundException,
} from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { plainToClass } from 'class-transformer';
import { CreatedRoleDto, ReadRoleDto, UpdateRoleDto } from './dtos';
import { Role } from './role.entity';
import { RoleReposi... |
const c_options_menu__group_title_PaddingTop: {"name": "--pf-c-options-menu__group-title--PaddingTop"; "value": "0.5rem"; "var": "var(--pf-c-options-menu__group-title--PaddingTop)";}
export default c_options_menu__group_title_PaddingTop |
import type { NextPage } from 'next'
// import Head from 'next/head'
// import Image from 'next/image'
import { useCallback, useEffect, useState } from 'react'
import image from '../public/cat.gif'
const Home: NextPage = () => {
const imgUrl = image.src
const [newUrl, setNewUrl] = useState('')
const lookGifIn... |
/**
* @jest-environment jsdom
*/
import { data } from './data'
import { errors } from './errors'
import { response } from '../response'
test('sets a single data on the response JSON body', async () => {
const result = await response(data({ name: 'msw' }))
expect(result.headers.get('content-type')).toBe('applica... |
const { ethers } = require("hardhat");
import { expect } from "chai";
import { MerkleTree } from 'merkletreejs'
import {
toWei,
getAccounts,
createContract,
padAccount,
hash
} from '../scripts/utils';
describe('Staking', () => {
let redeem;
let rewardToken;
let user0;
let user1;
... |
import { selectAppDetailId, selectAppDetailInstallationId, selectAppDetailData } from '../app-detail'
import { appDetailDataStub } from '@/sagas/__stubs__/app-detail'
import { ReduxState } from '@/types/core'
import appState from '@/reducers/__stubs__/app-state'
describe('app-detail', () => {
const mockState = {
... |
export const environment = {
production: true,
apiUrl: 'http://nodeionic-env.m842esycq9.us-east-2.elasticbeanstalk.com/api/'
}; |
import * as fs from 'fs';
class Util {
private sourceList: number[] = [];
private sortedList: number[] = [];
constructor() {
let orignSource: string = fs.readFileSync('./resources/sourcefile.txt', 'utf-8');
for (let ele of orignSource.split(' ')) {
this.sourceList.push(parseI... |
import ajv from "ajv";
import { expect } from "chai";
import { webComponentSchema } from "./index";
const validator: ajv.Ajv = new ajv({ schemaId: "auto", allErrors: true });
const validationFn: ajv.ValidateFunction = validator.compile(webComponentSchema);
describe("web component schema", () => {
it("should be va... |
export function matchResource(pattern: string, resource: string): boolean {
if (pattern === '*' || pattern === resource) {
return true
}
if (resource === '*') {
return false
}
const patternParts = pattern.split('/')
let len = patternParts.length
const exact = patternParts[len - 1] === ''
if (e... |
import {expect} from "assertions"
import * as p from "@bokehjs/core/properties"
import * as enums from "@bokehjs/core/enums"
import {keys} from "@bokehjs/core/util/object"
import {Color} from "@bokehjs/core/types"
import {HasProps} from "@bokehjs/core/has_props"
import {ColumnDataSource} from "@bokehjs/models/sourc... |
/**
* @module node-opcua-address-space
*/
import { UInt16 } from "node-opcua-basic-types";
import { LocalizedTextLike } from "node-opcua-data-model";
import { StatusCode } from "node-opcua-status-code";
export interface ConditionInfoOptions {
message?: string | LocalizedTextLike |null ;
quality?: StatusCode ... |
// Type definitions for Node.js 8.x
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>
// DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
// Parambir Singh <https://github.com/parambirs>
// Roberto Desid... |
import { Link, useHistory } from 'react-router-dom'
import { FormEvent, useState} from 'react'
import illustrationImg from '../assets/images/illustration.svg'
import logoImg from '../assets/images/logo.svg'
import {Button} from '../components/Button'
import { useAuth } from '../hooks/useAuth'
import '../styles/auth.scs... |
import React from 'react'
import {StreetViewProps} from '../common/types'
import BasicStreetView from './BasicStreetView'
const StreetView = (props: StreetViewProps) => (
<BasicStreetView bindToMap {...props} />
)
StreetView.displayName = 'StreetView'
export default StreetView |
/* External dependencies */
import React, { ReactElement } from 'react'
/* Internal dependencies */
import Button from '../../components/Button'
import Divider from '../../components/Divider'
import Dropdown from '../../components/Dropdown'
import Input from '../../components/Input'
import Image from '../../components... |
<TS language="es" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click derecho para editar dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<tr... |
import React from 'react';
import ReactDOM from 'react-dom';
import * as serviceWorker from './serviceWorker';
import App from './components/App';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want your app to work offline and load faster, yo... |
import { IColor } from './interfaces';
/**
* Converts a color hue to an HTML color string (with # prefix).
* This implementation ignores all components of `color` except hue.
*/
export declare function getFullColorString(color: IColor): string; |
import { Injectable } from '@angular/core';
import { Notification } from '../../models/notification';
import * as _ from 'lodash';
@Injectable()
export class NotificationService {
private notifications: Array<ReadNotification> = [];
constructor() { }
private add(type: 'error' | 'info' | 'success' | 'w... |
/**
* xiedacon created at 2019-05-27 16:55:52
*
* Copyright (c) 2019 Souche.com, all rights reserved.
*/
import * as _ from 'lodash';
import * as net from 'net';
import * as events from 'events';
import * as path from 'path';
import {
Xid,
OpCode,
ExceptionCode,
ConnectionEvent,
} from './constants';
impo... |
// If you don't want to use TypeScript you can delete this file!
import React from "react"
import { PageProps, Link, graphql } from "gatsby"
import Layout from "../layout/Layout"
import SEO from "../components/seo"
type DataProps = {
site: {
buildTime: string
}
}
const UsingTypescript: React.FC<PageProps<Dat... |
/// <reference path="../../../router5/index.d.ts" />
/// <reference path="../../index.d.ts" />
import transitionPath, {
nameToIDs,
TransitionPath,
shouldUpdateNode
} from 'router5-transition-path'
const _ids: string[] = nameToIDs('a.b.c')
let tp: TransitionPath
tp = transitionPath(
{ name: 'a.b.c', p... |
import { Routes, RouterModule } from '@angular/router'
import { LoginComponent } from './login/login.component'
import { RegisterComponent } from './register/register.component'
import { ShopComponent } from './shop.component'
import { ModuleWithProviders } from '@angular/core'
export const routes: Routes = [
{... |
export class objectTypeTableChildRow {
private _referenceType: string;
private _nodeClass: string;
private _browsename: string;
private _datatype: string;
private _description: string;
get description(): string {
return this._description;
}
set description(value: string) {
... |
import _ from 'lodash';
import nanoid from 'nanoid';
import { RawSourceMap } from 'source-map';
import { evaluate } from './eval';
import {
EvaluateAsyncOptions,
EvaluateExploreOptions,
EvaluateOptions,
ExploreResult,
MissingPath,
ModuleBase,
} from './ModuleBase';
import { RemoteEngine } from './RemoteEngi... |
import Api from 'api';
import { useEffect, useState } from 'react';
interface UseApiOpts {
url?: string;
config?: {
method?: string,
payload?: any
onError?: (error) => void
onSuccess?: (data) => void
}
}
interface UseApiReturnValue {
loading: boolean,
data: any,
... |
<TS language="th" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>คลิกขวาเพื่อแก้ไขที่อยู่หรือชื่อ</translation>
</message>
<message>
<source>Create a new address</source>
<translation>สร้า... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.