text stringlengths 10 953k |
|---|
/**
* <p>Attributes of Hyperledger Fabric for a peer node on a Managed Blockchain network that uses Hyperledger Fabric.</p>
*/
export interface _NodeFabricAttributes {
/**
* <p>The endpoint that identifies the peer node for all services except peer channel-based event services.</p>
*/
PeerEndpoint?: string;... |
import { Component, ViewChild } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BsDatepickerConfig, BsDatepickerDirective, BsDatepickerModule } from '.';
import { CalendarCellViewModel } from './models';
import { BsDatepickerContainerComponent } from './themes/b... |
import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { MatTable } from '@angular/material/table';
import { PositionsListDataSource, PositionsListItem } from './positions-list-data... |
import * as React from 'react';
export const Comp: React.FC = () => {
const literal = React.useCallback(() => ({}), []);
/*[a]*/ const value = literal(); /*[b]*/
return (
<div>
<span>{value}</span>
</div>
);
}; |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { TargetPageStoreData } from './client-store-listener';
import {
ScrollingController,
ScrollingWindowMessage,
} from './frameCommunicators/scrolling-controller';
import { TargetPageActionMessageCreator } from ... |
export declare class HcRate {
voidIcon: string;
activeIcon: string;
size: number;
voidColor: string;
activeColor: string;
value: number;
half: boolean;
el: HTMLElement;
label: string;
$children: any;
itemWidth: any;
valueHandle(v: number): void;
componentDidLoad(): vo... |
import { expect } from 'chai';
import { step } from 'mocha-steps';
import Renderer from '../../../../packages/client/src/testHelpers/Renderer';
import { updateContent } from '../../../../packages/client/src/testHelpers/testUtils';
describe('Listing UI works', () => {
const renderer = new Renderer({});
const app =... |
import React from 'react';
import { Trans } from '@lingui/macro';
import { useFormContext } from 'react-hook-form';
import { ButtonSelected, CardStep, Flex, TextField } from '@kujenga/core';
import { Typography } from '@material-ui/core';
import useSelectDirectory from '../../../hooks/useSelectDirectory';
export defau... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const TiArchive: IconType; |
import { gql } from "apollo-boost";
export const VERIFY_PHONE = gql`
mutation completePhoneVerification($key: String!, $phoneNumber: String!) {
CompletePhoneVerification(key: $key, phoneNumber: $phoneNumber) {
ok
error
token
}
}
`; |
// import * as Phaser from 'phaser';
import CanvasGameObjectBase from '../../../utils/types/CanvasGameObjectBase';
export default Text;
declare namespace Text {
type MetricsType = {
ascent: number,
descent: number,
fontSize: number
};
type FontConfigType = string |
{
... |
import * as React from 'react';
import { ActionCreator } from 'redux';
interface Props{
counter:number
onClick(val): void,
}
export default class IncrementCounterComponent extends React.Component<Props,{}>{
constructor(props, context) {
super(props, context);
}
handleClick(){
debugg... |
declare namespace echarts {
namespace EChartOption {
/**
* [Treemap](https://en.wikipedia.org/wiki/Treemapping)
* is a common way to present "hierarchical data" or "tree data".It
* primarily highlights the important nodes at all hierarchies in 『Tree』with
* area.
... |
import Notifications from './notification';
export default Notifications; |
import * as bt from '@babel/types'
import { NodePath } from 'ast-types'
import babylon from '../../babel-parser'
import resolveExportedComponent from '../../utils/resolveExportedComponent'
import classEventHandler from '../classEventHandler'
import Documentation, { EventDescriptor } from '../../Documentation'
jest.moc... |
import { PropsWithChildren } from 'react'
import styled from 'styled-components'
import Link from 'next/link'
const Wrapper = styled.div`
display: flex;
flex-direction: column;
margin-bottom: 2rem;
&:last-child {
margin-bottom: 0;
}
p:first-of-type {
margin-top: 0;
}
p:last-of-type {
margin-bottom: 0;... |
import * as React from "react";
import * as PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import UsersIcon from "@material-ui/icons/Contacts";
import HomeIcon from "@material-ui/icons/Home";
import PagesIcon from "@material-ui/icons/Description";
import CommentsIcon from "@material... |
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported... |
import { iconify } from '@bone-ui/iconify'
export const MenuAlt1Outline = iconify({
displayName: 'MenuAlt1Outline',
fill: 'none',
d: 'M4 6h16M4 12h8m-8 6h16',
})
export default MenuAlt1Outline |
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the input for a request action.</p>
*/
export interface DeleteVpcPeeringConnectionInput {
/**
* <p>Unique identifier for a fleet. This value must match the fleet ID refe... |
// Libraries
import React, {RefObject, createRef} from 'react'
import marked from 'marked'
// Storybook
import {storiesOf} from '@storybook/react'
import {withKnobs, text, select, boolean} from '@storybook/addon-knobs'
import {mapEnumKeys} from '../../../Utils/storybook'
// Components
import {SlideToggle, SlideToggle... |
/*
* Copyright 2020 IBM 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 agreed to ... |
/**
* The contents of this file are only relevant if your service connects
* to GOV.UK Verify using the Verify Service Provider (VSP) without a Matching
* Service Adapter (MSA).
*
*
* create-identity-response-handler
*
* Helper function to make handling callbacks from
* `passport.authenticate('verify', callbac... |
export interface Result {
/**
* All updated commands.
*/
commands: string[];
/**
* Human-readable logs.
*/
logs: string[];
/**
* `success` means success.
* `warning` means that the commands are correct but spu can't update it cuz of some reasons, like Minecraft totally ... |
import * as React from 'react';
import { HTMLProps, SFC } from 'react';
const componentStyle = {
base: {
margin: '30px 0 20px',
},
};
export interface TopicHeaderProps extends HTMLProps<HTMLHeadingElement> {}
export const TopicHeader: SFC<TopicHeaderProps> = ({ children }) => (
<h3 style={componentStyle.ba... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ContactsPage } from './contacts';
const routes: Routes = [
{
path: '',
component: ContactsPage,
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class ... |
import * as React from 'react'
import * as classNames from 'classnames'
import { FileChange } from '../../models/status'
import { Octicon, OcticonSymbol } from '../octicons'
import { RichText } from '../lib/rich-text'
import { IGitHubUser } from '../../lib/databases'
import { Repository } from '../../models/repository... |
import React from 'react';
import { RouterDirection } from '@ionic/core';
export interface NavContextState {
getHistory: () => History;
getLocation: () => Location;
getViewManager: () => any;
goBack: (defaultHref?: string) => void;
navigate: (path: string, direction?: RouterDirection) => void;
h... |
import { productsAdd } from '../../../../store/db/products'
import { ProductCreateNavigationProp } from '../index'
export default (nav: ProductCreateNavigationProp, newProduct) => async (dispatch, getState) => {
console.info('THUNK: DONE PRODUCT_CREATE', newProduct)
dispatch(
productsAdd({
...newProduct,
})
... |
import React, { SyntheticEvent, useState } from 'react';
import { css } from '@emotion/core';
import SuccessIcon from '@atlaskit/icon/glyph/check-circle';
import ErrorIcon from '@atlaskit/icon/glyph/error';
import WarningIcon from '@atlaskit/icon/glyph/warning';
import { RadioGroup } from '@atlaskit/radio';
import Sp... |
import { StringDistribution } from "../types";
/**
* Returns a distribution that returns a random string using numbers,
* uppercase and lowercase letters, `_`, and `-` of length `length`.
* @param length Length of the result string
*/
export declare function string(): StringDistribution;
/**
* Returns a distributi... |
import { Injectable } from '@angular/core';
import { Platform } from 'ionic-angular';
import { InAppBrowser as NativeInAppBrowser } from '@ionic-native/in-app-browser';
import { Config } from './config';
@Injectable()
export class InAppBrowser {
constructor(
public config: Config,
public platfor... |
import {ReversePipe} from './reverse.pipe';
describe('ReversePipe', () => {
it('should reverse string', () => {
const reversePipe = new ReversePipe();
expect(reversePipe.transform('hello')).toEqual('olleh');
});
}); |
import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
import { DescribeOriginEndpointRequest, DescribeOriginEndpointResponse } from "../models/models_0";
import {
deserializeAws_restJson1DescribeOriginEndpointCommand,
serializeAws_restJson1DescribeOriginEnd... |
import * as types from './types';
import { AuthAction } from './authActionsTypes';
import { setCookie } from '../../utils/cookies';
export type AuthState = {
loading: boolean;
error: Error | null;
token: string;
}
const initialState: AuthState = {
loading: false,
error: null,
token: '',
}
export const Tra... |
/**
* V: 0.1.0
*/
import {Factory} from '../../base/js/Factory'
import './FixedNavbar.scss'
/**
* Allowes you to apply styles on the fixed header when the header is floating
*
* By default, it will receive a drop shadow to show that the header is floating
*/
export class FixedNavbar extends Factory() {
publi... |
import React, { FunctionComponentElement, useContext, useState } from 'react'
import classNames from 'classnames'
import { MenuContext } from './menu'
import { MenuItemProps } from './menuItem'
import Icon from '../Icon/icon'
import Transition from '../Transition/transition'
export interface SubMenuPros {
index?: st... |
import { NoContentException } from './no-content.exception';
describe('NoContentException', () => {
let exception: NoContentException;
beforeEach(async () => {
exception = new NoContentException();
});
it('should initialize', () => {
expect(exception).toBeDefined();
expect(exception.getResponse()... |
import { MessageEmbed } from 'discord.js';
import { Message, CommandDef } from '../lib/types';
const command: CommandDef = {
name: 'status',
alias: ['status'],
owner: true,
handler: (message: Message) => {
return message.channel.send(new MessageEmbed()
.setTitle('Bot Status')
.setDescription(`A... |
import { Component, Input, OnInit } from '@angular/core';
import { ViewCell, Cell } from 'ng2-smart-table';
@Component({
template: `
{{renderValue}}
`,
})
export class CustomRenderComponent implements ViewCell, OnInit {
renderValue: string;
@Input() value: string | number;
@Input() cell: Cell;
@Inpu... |
import { Products } from '../../../../models/Products';
export type WishlistItemProps = {
productProps: Products;
}; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
Category,
CategoryDraft,
CategorySetDescriptionAction,
CategorySetKeyAction,
ReferenceTypeId,
} from '@commercetools/platform-sdk'
import { Writable } from 'types'
import { getBaseResourceProperties } from '../helpers'
import { AbstractResourceRepository } from './abstract'
export class CategoryRepo... |
import { Map as _Map_ } from "@aws-sdk/types";
export const _RuleParameterMap: _Map_ = {
type: "map",
key: {
shape: {
type: "string"
}
},
value: {
shape: {
type: "string"
}
}
}; |
import { Connection } from 'typeorm';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AuthModule } from './auth/auth.module';
import { typeOrmConfig } from './config';
impor... |
/*
* Angular 2 decorators and services
*/
import {
Component,
OnInit,
ViewEncapsulation
} from '@angular/core';
/*
* App Component
* Top Level Component
*/
@Component({
selector: 'app',
encapsulation: ViewEncapsulation.None,
styleUrls: [
'./app.component.css'
],
template: `
<div [jbReqAuth]=... |
/*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import { DControllerCommand } from "./d-controller-command";
import { DControllerDefaultCommand } from "./d-controller-default-command";
import { DControllerDocument } from "./d-controller-document";
import { DControllerKeyboard } ... |
import { Component, Listen, Method, Prop } from '@stencil/core';
import { LoadingOptions } from '../../interface';
import { OverlayController, createOverlay, dismissOverlay, getTopOverlay, removeLastOverlay } from '../../utils/overlays';
@Component({
tag: 'ion-loading-controller'
})
export class LoadingController i... |
import { INJECT_REPOSITORY_METADATA_KEY, InjectRepository } from './inject-repository.decorator';
import { Mock } from '../../../testing/mock.model';
import { NgxRepositoryService } from '../../ngx-repository.service';
const ngxRepositoryService: any = {
getRepository: () => void 0
};
class MyService {
@InjectRep... |
import NewsByYear from 'components/NewsByYear';
import { Accordion } from 'components/ui/Accordion';
import Container from 'components/ui/Container';
import TitleSection from 'components/ui/TitleSection';
import { graphql, useStaticQuery } from 'gatsby';
import { SectionTitle } from 'helpers/definitions';
import React ... |
import { botCache } from "../../../../deps.ts";
import { db } from "../../../database/database.ts";
import { PermissionLevels } from "../../../types/commands.ts";
import { createSubcommand } from "../../../utils/helpers.ts";
createSubcommand("roles", {
name: "unique",
permissionLevels: [PermissionLevels.ADMIN],
... |
"use strict";
import * as url from 'url';
import { MarkdownString, SnippetString, TextDocument } from 'vscode';
import * as Constants from '../common/constants';
import { ElementType, HttpElement } from '../models/httpElement';
import { EnvironmentVariableProvider } from './httpVariableProviders/environmentVariablePro... |
import { Component, Input } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'ngx-employee-links',
template: `
<ng-container *ngIf="value">
<a
*ngIf="value?.name"
(click)="navigateToEmployee()"
class="link-text"
>
<img
*ngIf="value.imageUrl"
wid... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'my-location',
templateUrl: './my-location.component.html',
styleUrls: ['./my-location.component.css']
})
export class MyLocationComponent implements OnInit {
lat:any;
lng:any;
myCurrentLocation
constructor(){
if (navigator)
... |
import React, { useState, useEffect } from 'react';
import FeatherIcon from 'react-native-vector-icons/Feather';
import { View, Image } from 'react-native';
import formatValue from '../../utils/formatValue';
import { useCart } from '../../hooks/cart';
import api from '../../services/api';
import FloatingCart from '.... |
/*import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ProductDetailsComponent } from './product-details.component';
describe('ProductDetailsComponent', () => {
let component: ProductDetailsComponent;
let fixture: ComponentFixture<ProductDetailsComponent>;
beforeEach(async(() => {... |
import React, { ErrorInfo } from 'react';
import { ErrorBlock, Box, Text, Button } from '@td-design/react-native';
import Container from '../components/Container';
import { View } from 'react-native';
import { useEffect } from 'react';
import { useRequest } from '@td-design/rn-hooks';
export default function ErrorBloc... |
import * as fs from 'fs-extra'
import * as path from 'path'
import chalk from 'chalk'
import * as ora from 'ora'
import * as AdmZip from 'adm-zip'
import * as download from 'download-git-repo'
import * as request from 'request'
import Project from './project'
import { TemplateSourceType, readDirWithFileTypes } from '..... |
import { Identities, Interfaces } from "@swipechain/crypto";
import { Delegate } from "../interfaces";
import { Method } from "./method";
/**
* @export
* @class BIP39
* @extends {Method}
*/
export class BIP39 extends Method implements Delegate {
/**
* @type {Interfaces.IKeyPair}
* @memberof BIP39
... |
// Copyright 2020 The Oppia Authors. 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 ap... |
import chalk from "chalk";
import EventEmitter from "events";
import { suit } from "../global";
import { centerString } from "./centerString";
import { pass, fail } from "./prints";
export class Runner extends EventEmitter {
assertions: Set<string> = new Set([]);
suitName: string;
beforeAll = () => {};
afterAl... |
import * as cxapi from '@aws-cdk/cx-api';
import * as colors from 'colors/safe';
import * as uuid from 'uuid';
import { addMetadataAssetsToManifest } from '../assets';
import { Tag } from '../cdk-toolkit';
import { debug, error, print } from '../logging';
import { toYAML } from '../serialize';
import { AssetManifestBui... |
import { Entity, PrimaryColumn } from 'typeorm';
@Entity()
export class User {
@PrimaryColumn()
email: string;
constructor(email: string) {
this.email = email;
}
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ManufacturerComponent } from './manufacturer.component';
import { SharedModule } from '@app/shared/shared.module';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { TESTING_UTILS } from '@app/utils/testing.utils';
import ... |
// Copyright 2017-2020 @polkadot/app-explorer 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 { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
export function useTransla... |
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { Config } from '../../config/config';
import { DomController } from '../../platform/dom-controller';
import { Form, IonicTapInput } from '../... |
import _ from 'lodash';
import { TimeSrv } from 'app/features/dashboard/services/TimeSrv';
import templateSrv, { TemplateSrv } from 'app/features/templating/template_srv';
import coreModule from 'app/core/core_module';
import { getConfig } from 'app/core/config';
import {
DataFrame,
DataLink,
DataLinkBuiltInVars,... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SpecificTranscriptComponent } from './specific-transcript.component';
describe('SpecificTranscriptComponent', () => {
let component: SpecificTranscriptComponent;
let fixture: ComponentFixture<SpecificTranscriptComponent>;
beforeEach(as... |
import { Component } from '@angular/core';
@Component({
selector: 'ngx-sam-kepsek',
styleUrls: ['./sam-kepsek.component.scss'],
templateUrl: './sam-kepsek.component.html',
})
export class SamKepsekComponent {
starRate: number = 2;
heartRate: number = 4;
} |
import { ReportHandler } from "web-vitals"
const reportWebVitals = (onPerfEntry?: ReportHandler): void => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import("web-vitals").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry)
getFID(onPerfEntry)
getFCP(onPerfEnt... |
import { Fluence } from '@fluencelabs/fluence';
import { krasnodar } from '@fluencelabs/fluence-network-environment';
import { getNeighbours, initTopicAndSubscribe, findSubscribers } from './compiled/dht/dht-example';
const main = async () => {
await Fluence.start({ connectTo: krasnodar[0] });
const relayPeerI... |
import * as React from "react";
import type { SvgIcon } from "../../types/SvgIcon";
import type { ControlStyle } from "../../types/ControlStyle";
import { createFullHeightPopoverComponent } from "../createFullHeightPopoverComponent";
import { createSearchableSelectChildrenComponent } from "./createSearchableSelectChild... |
import React from 'react';
import { Link } from 'react-router-dom';
// types
// import { Props, defaultProps } from './types';
// images
import logo from '../../logo.svg';
// styles
import './secondScreen.scss';
// Functional Component have only props that can be passed from the parent component
const SecondScreen... |
/**
*
* @param byteLength
*/
export function padTo4Bytes(byteLength: number): number;
/**
* Calculate new size of an arrayBuffer to be aligned to an n-byte boundary
* This function increases `byteLength` by the minimum delta,
* allowing the total length to be divided by `padding`
* @param byteLength
* @param ... |
import { ethers, providers } from "ethers"
import { Interface } from "ethers/lib/utils"
import { walletContracts } from '@0xsequence/abi'
import { WalletContext } from '@0xsequence/network'
import { WalletConfig, addressOf, imageHash, DecodedSignature, encodeSignature } from '@0xsequence/config'
import { SignedTransact... |
export * from './ToggleButton';
export * from './ToggleButton.types';
export * from './renderToggleButton';
export * from './useToggleButton';
export { toggleButtonClassNames, useToggleButtonStyles_unstable } from './useToggleButtonStyles'; |
import { setupWorker, rest } from 'msw'
const worker = setupWorker(
// Use wildcard so that we capture any "GET /user" requests
// regardless of the origin, and can assert "same-origin" credentials.
rest.get('*/user', (req, res, ctx) => {
return res(ctx.json({ cookies: req.cookies }))
}),
)
worker.start() |
export class Node implements d3.SimulationNodeDatum {
// Optional - defining enforced implementation properties
/**
* Node’s zero-based index into nodes array. This property is set during the initialization process of a simulation.
*/
index?: number;
/**
* Node’s current x-position
*/
x?: number;
... |
export function keep<T>() {
throw new Error('Remove this statement and implement this function')
}
export function discard<T>() {
throw new Error('Remove this statement and implement this function')
} |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" {...props}>
<path d="M272 448H48c-26.51 0-48 21.5-48 48 0 8.8 7.164 16 16 16h288c8.836 0 16-7.164 16-16 0-26.5-21.5-48-48-48zM8 287.9c0 51.63... |
/* eslint-disable react/jsx-pascal-case */
import React, { forwardRef } from 'react';
import cx from 'clsx';
import { MantineColor, PolymorphicComponentProps, PolymorphicRef } from '@mantine/styles';
import { Text, SharedTextProps } from '../Text/Text';
import { Mark } from '../Mark/Mark';
import { highlighter } from '... |
import * as fs from 'fs';
export function o<A, B, C>(f: (y: B) => C,
g: (x: A) => B): (z: A) => C {
return x => f(g(x));
}
export const dateRegex: RegExp = /^[0-9]{1,2}\/[0-9]{1,2}\/[0-9]{1,4}$/;
export function readLines(filePath: string): string[] {
return fs.readFileSync(filePat... |
export const enum CONNECTED_REACT_ROUTER_ACTION_TYPES {
INCREMENT = '@connected-react-router/INCREMENT',
DECREMENT = '@connected-react-router/DECREMENT',
} |
import { Component, Part, Prop } from '@mdi/element';
import './../button/button';
import MdiButton from './../button/button';
import template from './buttonToggle.html';
import style from './buttonToggle.css';
const t = [true, 'true', ''];
@Component({
selector: 'mdi-button-toggle',
style,
template
})
export... |
import {Component, ElementRef, Inject, Input, OnDestroy, OnInit, Renderer2} from '@angular/core';
import {DOCUMENT} from '@angular/common';
import {AppBreadcrumbService} from './app-breadcrumb.service';
@Component({
// tslint:disable-next-line:component-selector
selector: 'cui-breadcrumb',
templateUrl: './cui-b... |
// Imports ____________________________________________________________________
import type { DisplayShortcut, Keybinding } from '../../../types';
import { isMacOs, isWindows, L13Component, L13Element, L13Query } from '../../@l13/core';
import { disableContextMenu, parseIcons } from '../../common';
import styles fr... |
/**
* Namespace: browser.topSites
* Generated from Mozilla sources
*
* Use the chrome.topSites API to access the top sites that are displayed on the new tab page.
* Permissions: "topSites"
*
* Comments found in source JSON schema files:
* This Source Code Form is subject to the terms of the Mozilla Public
* L... |
// Node imports
import { Request, Response } from "express";
// Own imports
import Client from "../database";
export default {
products: async (req: Request, res: Response): Promise<Response> => {
try {
const conn = await Client.connect();
const sql = ` SELECT *
FROM products
... |
import path from 'path'
import fsExtra from 'fs-extra'
import { addTextOneLineAfter, replaceTextLineByLineAtPath } from '../common/commonLanguage'
export class GradleSettings {
ProjectRootPath: string
SettingsGradlePath: string
constructor(ProjectRootPath: string) {
this.ProjectRootPath = path.resolve(Proj... |
import { SodaHostUrl } from "./soda-host-url";
import { SodaClient } from './soda-client';
export abstract class SodaContext {
readonly Host: SodaHostUrl;
readonly Client: SodaClient;
constructor(client: SodaClient) {
this.Client = client;
}
} |
import "@typechain/hardhat";
import "@nomiclabs/hardhat-waffle";
import "hardhat-dependency-compiler";
import "@openzeppelin/hardhat-upgrades";
import "hardhat-gas-reporter";
import "solidity-coverage";
import "tsconfig-paths/register";
import "./tasks/accounts";
import "./tasks/deploy";
import { HardhatUserConfig } ... |
import * as React from 'react';
import FormattedMessage from '../../../src/components/message';
import IntlProvider, {
OptionalIntlConfig,
createIntl,
} from '../../../src/components/provider';
import {mountFormattedComponentWithProvider} from '../testUtils';
import {IntlShape} from '../../../';
import {render} fro... |
import { html, LitElement, property } from "lit-element";
import { ImageScatterScene } from "./ImageScatterScene";
import { PixelSortMethod } from "./util";
export class ImageScatterElement extends LitElement {
private get div(): HTMLDivElement | null {
if (this.shadowRoot) {
return this.shado... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SharedModule } from './../../shared.module';
import { EJ_LINEARGAUGE_COMPONENTS } from 'ej-angular2/src/ej/lineargauge.component';
import { DefaultComponent } from './default.component';
import { ScaleCompone... |
import { Gadget } from './gadget';
export class Qrcode extends Gadget {
//public value: string;
constructor() {
super('qrcode', 'Leitor de qrcode');
//this.value = (value ? value : '');
}
get isAnswered(): boolean {
return true;
}
get data() {
return {
};
}
} |
import esaml2 = require('../index');
import { readFileSync, writeFileSync } from 'fs';
import test from 'ava';
import { assign } from 'lodash';
import * as _ from 'lodash';
import { verifyTime } from '../src/validator';
const {
IdentityProvider: identityProvider,
ServiceProvider: serviceProvider,
IdPMetadata: id... |
import * as React from 'react';
import styled from "styled-components";
import KeyEventHandler from "./containers/KeyEventHandler";
import Container from "../commons/ui/Container/Container";
interface IState {
pressedKeys: string[],
}
const Wrapper = styled.div`
display: flex;
flex-direction: column;
align-i... |
import { ComponentStyles } from "@microsoft/fast-jss-manager-react";
import { cssKey, cssValue, foreground300, neutralLayerL4 } from "../style";
export interface CSSPropertyEditorClassNameContract {
cssPropertyEditor?: string;
cssPropertyEditor_propertyRegion?: string;
cssPropertyEditor_input?: string;
... |
/**
* Copyright (c) 2020, 2021 Visa, Inc.
*
* This source code is licensed under the MIT license
* https://github.com/visa/visa-chart-components/blob/master/LICENSE
*
**/
export const polyfillMouseEvents = (window: any) => {
// Polyfills DOM4 MouseEvent
const MouseEventPolyfill = function(eventType, params) {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.