text stringlengths 10 953k |
|---|
import { connect } from 'react-redux';
import Settings from '../components/Settings/Settings';
export interface SettingsState {
dataStore: any;
}
const mapStateToProps = (state: SettingsState, ownProps) => {
return {
dataStore: ownProps.dataStore
};
};
export default connect(mapStateToProps)(Sett... |
import { Component } from '@angular/core';
@Component({
selector: 'app-more-info',
templateUrl: './more-info.component.html'
})
export class MoreInfoComponent {
constructor() { }
// site key:6LeGR2kUAAAAAB2i4cNdpmSh8cBZxKd64rNV9zRk
} |
import { Component } from '@angular/core';
import { PostsService } from '../services/posts.service';
@Component({
moduleId: module.id
,selector: 'user'
,templateUrl: 'user.component.html'
,providers: [PostsService]
})
export class UserComponent {
firstName: string;
lastName: string;
email: string;
address... |
import { Module } from '@nestjs/common';
import { WeatherService } from './weather.service';
import { WeatherController } from './weather.controller';
import { ShelterModule } from 'src/shelter/shelter.module';
@Module({
imports: [ShelterModule],
providers: [WeatherService],
controllers: [WeatherController]
})
e... |
import * as React from 'react';
import { render, cleanup } from 'react-testing-library';
import { MockedProvider } from 'react-apollo/test-utils';
import * as delay from 'delay';
import { Items } from '../index';
import { itemsMock, itemsEmptyMock } from './mocks';
beforeEach(cleanup);
test('renders loading state in... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { BabylonComponent } from './babylon.component';
//import { FormInputsComponent } from './form-inputs/form-inputs.component';
//import { FormLayoutsComponent } from './form-layouts/form-layouts.component';
//import... |
import {IField} from './field';
import {BaseModel} from '../model';
export class RelatedField<T extends BaseModel> implements IField {
key: string;
name: string;
value: T;
constructor(model: T) {
this.key = model.key;
this.name = model.name;
this.value = model;
}
title... |
import * as _ from "lodash";
import * as p5 from "p5";
import * as p5Global from "p5/global";
import Rect from "./rect.js";
export default class Button {
text: string;
pos: p5.Vector;
size: p5.Vector;
stroke: p5.Color;
strokeWeight: number;
fill: p5.Color;
textColor: p5.Color;
font: p5.... |
import PropTypes from 'prop-types';
import { makeDateRangePicker } from '../DateRangePicker/makeDateRangePicker';
import StaticWrapper from '../internal/pickers/wrappers/StaticWrapper';
/**
* @ignore - do not document.
*/
/* @typescript-to-proptypes-generate */
const StaticDateRangePicker = makeDateRangePicker('MuiP... |
import * as React from 'react';
import styled from 'styled-components';
import ReactDOM from 'react-dom';
export interface ModalProps {
handleClose: () => void;
show: boolean;
modalContent: any;
style?: object;
title?: string;
titleClass?: string;
titleStyle?: object;
}
//styles container ... |
/*
* 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 fs from 'fs';
import os from 'os';
import path from 'path';
import { Br... |
import gql from 'graphql-tag';
import { DocumentNode } from 'graphql';
import { print } from 'graphql/language/printer';
import fetch, { HeadersInit } from 'node-fetch';
type GraphqlResponse<T> = {
data: T;
errors: any[];
};
export default function createGraphqlClient<ResponseT = any, VariableT = any>(
url: str... |
export class ConfirmDialogData {
title?: string = "Are You Sure?";
agreeText?: string = "Yes";
disagreeText?: string = "No";
confirmDialogContentType?: ConfirmDialogContentType;
}
export enum ConfirmDialogContentType {
makePrivateCommunity = "makePrivateCommunity",
makePublicCommunity = "makePu... |
import { mount } from '@vue/test-utils';
import FadeAndSlide from '../fade-and-slide.vue';
describe('testing Fade and Slide component', () => {
it('renders the animation component with the expected tag wrapping all slotted elements', () => {
const fadeAndSlideComponent = {
template: `
<FadeAndSlide... |
import { RPC } from "ckb-js-toolkit";
import {
CellDep,
HexString,
HexNumber,
Hash,
Indexer,
Script,
} from "@ckb-lumos/base";
import {
generateDepositLock,
DepositLockArgs,
getDepositLockArgs,
serializeArgs,
} from "../js/transactions/deposit";
import { deploymentConfig } from "../js/utils/deployme... |
import React, { FC, ReactElement, useState, useEffect, useRef } from 'react'
import styled from '@emotion/styled'
import { cx } from '@contentpi/utils'
import Icon from '../Icon'
import colors from '../colors'
type Option = {
option: string
value: any
selected?: boolean
}
interface iProps {
className?: string... |
export class Buttons {
isSelectingEnd: boolean;
isSelectingStart: boolean;
private startButton: HTMLButtonElement;
private endButton: HTMLButtonElement;
constructor(startButton: HTMLButtonElement, endButton: HTMLButtonElement) {
this.isSelectingEnd = false;
this.isSelectingStart = f... |
import { PassportStrategy } from '@nestjs/passport';
import { Strategy, ExtractJwt } from 'passport-jwt';
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { JwtPayload } from './jwt-payload.interface';
import { InjectRepository } from '@nestjs/typeorm';
import { UserRepository } from './user.r... |
export interface StreamState {
playing: boolean;
readableCurrentTime: string;
readableDuration: string;
duration: number | undefined;
currentTrack: {
currentTime: number | undefined;
currentSrc: string;
currentImage: string;
currentTitle: string;
currentUrl: string;
};
canplay: boolean... |
export type TimelineViewState = {
collapsed: {[key: string]: boolean};
};
export type TimelineActionState =
| {
type: 'collapse';
hash: string;
}
| {
type: 'expand';
hash: string;
};
export const timelineStateReducer = (
state: TimelineViewState,
action: TimelineActionState
): TimelineViewState... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import DependencyGraph from './DependencyGraph';
import {BundleCompileResolvedImports} from '@romejs/js-compiler';
import {ConstIm... |
import { Subscription } from 'suub';
import { Value, Callback, ExtractValues, SYNCLOCK } from '../types';
import { mergeClocks } from '../Clock';
export function join<T extends { [key: string]: Value<any> }>(deps: T): Value<ExtractValues<T>> {
const clock = mergeClocks(...Array.from(Object.values(deps)).map(v => v[S... |
import React from 'react';
import { style, classes } from './stars-rating.st.css';
import { FlexLayout } from '../../common-classes/flex-layout/flex-layout';
export interface StarsRatingProps {
rating: number;
className?: string;
}
export const StarsRating = React.memo<StarsRatingProps>((props) => {
const... |
export interface Node {
url: string
auth?: {
password: string
username: string
},
disabled?: boolean
}
export interface ClientOptions {
nodes?: Node[]
node?: Node
network?: string
localPow?: boolean
nodeSyncEnabled?: boolean
nodePoolUrls?: string[]
} |
import { Component } from '@angular/core';
@Component({
selector: 'nb-sidebar-right',
templateUrl: './sidebar-right.component.html',
})
export class SidebarRightComponent {
} |
import { isTypeEqual, isDeepEqual } from '../utils/checks'
import { Primitive } from './types'
export const literal = <T extends K, K extends Primitive>(lit: K) => {
const dic = {
string: (val: string) => isDeepEqual(lit, val),
number: (val: number) => isDeepEqual(lit, val),
boolean: (val: boolean) => is... |
<TS language="es" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clic derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<... |
/**
* @name mode
* @summary Returns the mode.
*
* @description Returns the highest occuring number/s in a given numbers.
*
* @example
* // Normal usage
* let result = mode(2, 1, 8, 3, 2, 7, 4, 2, 6, 8);
* // => [2]
*
* // Using an array
* let result = mode(...[2, 1, 8, 3, 2, 7, 4, 2, 6, 8]);
* // => [2]
*... |
import { Pool as GrpcPool } from '@injectivelabs/chain-api/cosmos/staking/v1beta1/staking_pb'
export interface UiDelegation {
delegation: {
delegatorAddress: string
validatorAddress: string
shares: string // BigNumberInWei
}
balance: {
denom: string
amount: string // BigNumberInBase
}
}
ex... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilitie... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CompanyComponent } from './company.component';
import { CompanyRoutingModule } from './company-routing.module';
import {FormGroup,FormControl,Validators,FormBuilder} from '@angular/forms'
import {PanelModule} from 'primen... |
var get = require('node-fetch');
module.exports = async function set_blocked(url: string, username: string, password: string, service: string[]) {
var body = service;
var response = await get(url + '/control/blocked_services/set', {
method: 'POST',
headers: {
Authorization: 'Basic ' + Buffer.from(user... |
import { expect } from 'chai';
import request from 'supertest';
import mongoose from 'mongoose';
import app from '../../src/index';
describe('User APIs Test', () => {
before((done) => {
const clearCollections = () => {
for (const collection in mongoose.connection.collections) {
mongoose.connection... |
import React from "react";
import {
Chart as ChartJS,
CategoryScale,
LinearScale,
PointElement,
LineElement,
Title,
Tooltip,
Legend,
Decimation,
} from "chart.js";
import { Line } from "react-chartjs-2";
import Layout from "antd/lib/layout/layout";
import { historicPricesInterface } from "api";
Chart... |
import * as firebaseAdmin from 'firebase-admin';
import * as firebase from 'firebase';
import { Query, WhereClause } from './Query';
type DataEventTypes = 'beforeAdd' | 'afterAdd' | 'beforeUpdate' | 'afterUpdate' | 'beforeDelete' | 'afterDelete';
interface FirepandaSchemaDefinition {
type: string;
name?: string;
... |
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { api } from '../../api/api';
import PanelContent from './panel-content';
/**
* Create a class for the plugin instance
*/
class DetailsPlugin {
// store the created button panel o... |
import { observable, makeObservable } from "mobx";
import { updateBook } from "../connection/LibraryUpdates";
import { retrieveCurrentBookData } from "../connection/LibraryQueries";
import { ArtifactVisibilitySettingsGroup } from "./ArtifactVisibilitySettings";
import { ILanguage } from "./Language";
import { removePun... |
import Image from "next/image";
import { useState } from "react";
import { Container, DetailList, DetailItem, NumberBall } from "./styles";
interface TextProps {
title: string;
subTitle: string;
imgSrc: string;
}
interface PlanDetailProps {
content: Array<TextProps>;
isBlack?: boolean;
}
export const PlanDeta... |
<TS language="ja" 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>新しいアドレスを作成</tran... |
/*
* Copyright (C) 2020 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import { DBaseState } from "./d-base-state";
import { DBaseStateSet } from "./d-base-state-set";
import { DBaseStateSetLike } from "./d-base-state-set-like";
import { isFunction } from "./util/is-function";
import { isString } from... |
import { AgendamientoService } from '@agendamiento/share/service/agendamiento.service';
import { AgendamientoServiceStub } from '@agendamiento/share/service/agendamiento.service-stub';
import { HttpClientModule } from '@angular/common/http';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing... |
import { Stock } from '../../../../src';
import { createDiv } from '../../../utils/dom';
import { kdata } from '../../../data/stock';
import { DEFAULT_TOOLTIP_OPTIONS } from '../../../../src/plots/stock/constant';
import { pick } from '../../../../src/utils';
describe('Stock tooltip', () => {
it('tooltip: default o... |
import { Injectable, MiddlewareFunction, NestMiddleware } from '@nestjs/common';
import { authenticate } from 'passport';
@Injectable()
export class PassportAuthenticateMiddleware implements NestMiddleware {
private static options: any;
public static configure(opts: any) {
this.options = opts;
}
... |
import * as React from 'react';
import { Router, Route, Switch } from 'react-router-dom';
import { createBrowserHistory } from "history";
import Dashboard from './views/Dashboard';
import './App.css';
const hist = createBrowserHistory();
class App extends React.Component {
public render() {
return (
<Rout... |
import { useState } from '@hookstate/core'
import { useContext } from 'react'
import { XRUIStateContext } from '../XRUIStateContext'
export const useXRUIState = <S>() => useState<S>(useContext(XRUIStateContext)) |
import * as React from 'react';
import { Admin } from 'flyteidl';
import { makeStyles, Theme } from '@material-ui/core/styles';
import Checkbox from '@material-ui/core/Checkbox';
import FormControl from '@material-ui/core/FormControl';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import InputLabel... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TalonPower</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
import {
Component,
OnInit,
Injectable,
Input,
OnDestroy,
Output,
EventEmitter,
ViewChild,
ElementRef,
} from '@angular/core';
import { Subject } from 'rxjs';
import {
trigger,
state,
style,
transition,
animate,
} from '@angular/animations';
import { FormControl }... |
import { ClientToServer, MessageJson, ServerToClient } from "@typings/SocketIO";
import express, { Application } from "express";
import { createServer } from "http";
import { Server } from "socket.io";
import { Client } from "@lib";
export class SocketIO {
io: Server<ClientToServer, ServerToClient>;
app: Applicatio... |
// https://github.com/nextauthjs/next-auth/issues/1162
// Google Interfaces: https://github.com/Marcus-Rise/BuyList/tree/master/src/server/google
import type { User, NextAuthOptions } from 'next-auth'
import NextAuth from 'next-auth'
import { signIn } from 'next-auth/react'
// @ts-ignore
import GoogleProvider from 'nex... |
/**
* Copyright(c) Microsoft Corporation.All rights reserved.
* Licensed under the MIT License.
*/
import * as program from 'commander';
import { join, resolve } from 'path';
import { DisconnectSkill } from './functionality';
import { ConsoleLogger, ILogger} from './logger';
import { IDisconnectConfiguration } from... |
import { Sequelize } from 'sequelize'
import { sequelizeOptions } from './config'
import { UserFactory } from './models/Users'
// https://sequelize.org/master/index.html
const sequelize = new Sequelize(sequelizeOptions)
export const Users = UserFactory(sequelize)
export default sequelize |
import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
dayjs.extend(utc);
export const DATE_FORMAT = 'DD/MM/YY';
export const TIME_FORMAT = 'HH:mm:ss';
export const toLocalTimeString = (
utcTimestamp: string,
showDate: boolean,
showTime: boolean,
format?: string,
) => {
const datetime = dayjs.utc(u... |
#!/usr/bin/env node
import * as args from "command-line-args";
import * as cmdusage from "command-line-usage";
import * as fs from "fs";
import * as path from "path";
import { Compiler } from "./components/Compiler/Compiler";
import { ConsoleHelper } from "./helpers/ConsoleHelper";
const cmdOptions = [
{
... |
import * as fs from 'fs'
import * as path from 'path'
import { assert } from 'chai'
import * as core from '../src/core'
import { configure, expectFailure, runMigrations, wipeWorkspace } from './test-utils'
describe('create-migration-test.js', function () {
before(function () {
configure()
})
beforeEach(fu... |
import React, {
ReactElement,
useEffect,
useState,
useCallback,
useContext,
} from 'react';
import { SendbirdTypes } from '../../../../types';
import withSendbirdContext from '../../../../lib/SendbirdSdkContext';
import { LocalizationContext } from '../../../../lib/LocalizationContext';
import { getSdk } fr... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import * as assert from "assert";
import * as dotenv from "dotenv";
import { getBSU, getSASConnectionStringFromEnvironment, recorderEnvSetup } from "./utils";
import { ShareClient, ShareServiceClient } from "../src";
import { record, Recorder }... |
export type KnownTextureFormat =
//from Android on HTC One M9
| 'etc1.COMPRESSED_RGB_ETC1_WEBGL'
| 'astc.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR'
| 'astc.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR'
| 'astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR'
| 'astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR'
| 'astc.COMPRESSED... |
import AbstractOfflineHandlerRegister from 'src/offline/AbstractOfflineHandlerRegister';
import OfflineHttp from 'src/common/OfflineHttp';
/**
* Sisältää handerit, jotka vastaa /api/exercise/* -REST-pyynnöistä offline-
* tilan aikana.
*/
class OfflineHandlers extends AbstractOfflineHandlerRegister<Enj.API.Exercise>... |
import { rmdirSync } from 'fs'
import { CaporalLogger } from '../../types'
import { exec } from '../../utils/exec'
import { CreateArgs } from '.'
/**
* Clone the target repository and return its path.
*/
export const cloneRepository = (args: CreateArgs, logger: CaporalLogger): string => {
const cloneDirectory = '.... |
import html from 'remark-html';
import remark from 'remark';
import regions from 'common/regions';
import { assert } from 'common/utils';
import { getVaccinationDataByRegion } from './index';
import { getVaccineInfoByFips, RegionPhaseGroup } from './phases';
interface EmailPhaseInfo {
title: string;
subtitle: stri... |
export interface FindUserByAppIdAndUserIdDTO{
readonly userId: string;
readonly appId: string;
} |
import React from "react";
import AuthContextState from "./AuthContextState";
export declare const initialState: AuthContextState;
declare const AuthContext: React.Context<AuthContextState>;
export default AuthContext; |
export type NormalizationArgument = NormalizationLiteral | NormalizationVariable;
export type NormalizationArgumentDefinition = NormalizationLocalArgument | NormalizationRootArgument;
export interface NormalizationDefer {
readonly if: string | null;
readonly kind: 'Defer';
readonly label: string;
read... |
// import React from 'react';
// import { act } from 'react-dom/test-utils';
// import ReactDOM from 'react-dom';
// import TourTableProvider from '../../src/providers/TourTable.provider';
// describe('TourTableProvider', () => {
// let container: ReactDOM.Container;
// beforeEach(() => {
// container = docum... |
/* library package */
import { FC } from 'react'
import Link from 'next/link'
import { Products } from '@sirclo/nexus'
/* library template */
import useWindowSize from 'lib/useWindowSize'
/* component */
import Placeholder from 'components/Placeholder'
/* styles */
import styles from 'public/scss/components/WidgetHomeP... |
import { SlashCreator, CommandContext, AutocompleteContext, CommandOptionType } from 'slash-create';
import SlashCommand from '../../command';
import { getData, noAuthResponse, stripIndentsAndNewlines, truncate } from '../../util';
import { getBoard, uncacheBoard } from '../../util/api';
import { LABEL_EMOJIS } from '.... |
import { DeviceType } from './device-type.enum';
import { DeviceBus } from './device-bus.enum';
export class SearchDevice {
constructor(public readonly index: number,
public readonly bus: DeviceBus,
public readonly type: DeviceType,
public readonly typeName: string,
public readonly registered: boolean,
publ... |
import { IRectangle } from "../layout-tree/type";
import { ILayoutNode, LayoutTree } from "../layout-tree/layout-tree";
export interface IDisplayList
{
commands: Array<IDisplayCommand>;
}
export type CommandType = "solid_color";
export interface IDisplayCommand
{
type: CommandType;
color?: string;
re... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('viveoTe... |
// Setup env which is development, I have plan for dynamic by params on script
process.env.NODE_ENV = 'development'
import chalk from 'chalk'
import { say } from 'cfonts'
import electron from 'electron'
import path from 'path'
import PortFinder from 'portfinder'
import { spawn } from 'child_process'
import { watch } f... |
/**
* @license
* Copyright Builder.io, 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://github.com/BuilderIO/qwik/blob/main/LICENSE
*/
import { expect } from 'chai';
import { TEST_CONFIG } from '../testing/config.unit.js'... |
// Defining schema interface
export interface User {
displayName: string;
avatar: string;
phone: string;
password: string;
username: string;
} |
import { Marpit, Options, ThemeSetPackOptions } from '@marp-team/marpit'
import highlightjs from 'highlight.js'
import postcss from 'postcss'
import postcssMinifyParams from 'postcss-minify-params'
import postcssMinifySelectors from 'postcss-minify-selectors'
import postcssNormalizeWhitespace from 'postcss-normalize-wh... |
/**
* Copyright 2019 the prism authors
* This file is part of the prism library in the Orbs project.
*
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
* The above notice should be included in all copies or substantial portions of the softwar... |
import { expect } from 'chai';
describe('Addition', () => {
it('1 + 1 should equal 2', () => {
expect(1 + 1).to.equal(2);
});
}); |
/* tslint:disable:quotemark */
import {WindowTransformNode} from '../../../src/compile/data/window';
import {makeWindowFromFacet} from '../../../src/compile/data/windowfacet';
import {Transform} from '../../../src/transform';
import {DataFlowNode} from './../../../src/compile/data/dataflow';
describe('compile/data/wi... |
export { addCandidate, addCandidateVerify } from './addCandidate';
export { onAddComment } from './addComment';
export { getCandidates, getCandidateVerify } from './getCandidates';
export { getForm, getFormVerify } from './getForm';
export { getResume } from './getResume';
export { onMoveCandidate } from './moveCandida... |
import { OrdersConsumer } from './OrdersConsumer';
export default OrdersConsumer; |
import { ALL_RULE_NAMES, LitAnalyzerConfig } from "lit-analyzer";
import { join } from "path";
import { ColorProvider } from "./color-provider";
import * as vscode from "vscode";
const tsLitPluginId = "ts-lit-plugin";
const typeScriptExtensionId = "vscode.typescript-language-features";
const configurationSection = "li... |
import { Page } from 'puppeteer-core';
declare const _default: (page: Page) => Promise<Page>;
/**
* Enables ad blocking in page.
* Requires `@cliqz/adblocker-puppeteer` package.
*
* @param page - Page to hook to.
*/
export = _default; |
import {
IndexDocumentsAction,
SearchIndexingBufferedSenderUploadDocumentsOptions,
SearchIndexingBufferedSenderMergeDocumentsOptions,
SearchIndexingBufferedSenderMergeOrUploadDocumentsOptions,
SearchIndexingBufferedSenderDeleteDocumentsOptions,
SearchIndexingBufferedSenderFlushDocumentsOptions
} from "./ind... |
// metadata
export const version = "0.5.16"
export const title = "Interface"
export const description = "An example of interface in Solidity"
const html = `<p>Interface define contraints so that any contract that implements this can communicate with another contract that require these contraints.</p>
<p>Interface</p>
... |
import { firestore } from "firebase-admin"
/**
* This class tracks documents when they are read and can be used to determine if a document has changed since it has been read last.
*/
export class TransactionContextDocumentTracker {
/**
* A map where its keys are associated with a document's path and the v... |
import React, {useState, useCallback, useEffect} from 'react';
import styled from 'styled-components';
import { object } from "@storybook/addon-knobs";
import {TypeTable as EditableTable,
EditCell,
ModalProvider,
} from 'scorer-ui-kit';
import photo from '../../assets/placeholder.jpg';
import {sleep} from '../../... |
import { EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
import { MapMouseEvent } from 'mapbox-gl';
import { LayerComponent } from '../layer/layer.component';
import { MapService } from '../map/map.service';
import { FeatureComponent } from '../source/geojson/feature.component';
import * as ɵngcc0 from ... |
export {
IObjectIndexer,
IObject,
mapAsync,
waitObjectParamSet,
arrayMove,
toInt,
sleep,
clone,
capitalize,
getDefinedValueKeys,
remap,
toCamelCase
} from './utils';
export {
APIResponse,
IClassObject,
EntityRules,
Entity,
APIError,
APIResponseClass,
APIResponseDerived,
Class,
... |
import React from 'react';
import { useRouteMatch, useHistory } from 'react-router-dom';
import { Trans } from '@lingui/macro';
import { Grid } from '@material-ui/core';
import { Restore as RestoreIcon, Add as AddIcon } from '@material-ui/icons';
import { Back, Flex } from '@bpx/core';
import WalletCreateCard from '../... |
import React, { useState, ChangeEvent } from 'react';
import { string, func } from 'prop-types';
import {
Dialog,
DialogTitle,
DialogContent,
DialogContentText,
DialogActions,
TextField,
Button,
} from '@material-ui/core';
import { Loading } from '../../loading';
import { IUser } from '../../../interface... |
import * as functions from "firebase-functions";
import shareImpl from "./share";
export const share = functions.https.onRequest(shareImpl); |
import { Component, Input } from '@angular/core';
import { ModalController } from 'ionic-angular';
import { FolderModal } from '../../modals/folder/folder';
import { FirebaseService } from '../../providers/firebase.provider';
@Component({
selector: 'pantry-folder',
templateUrl: 'pantry-folder.html'
})
export clas... |
import CommandInteraction from '../../compat/CommandInteraction';
import { ApplicationCommandDefinition, ApplicationCommandOptionType, CommandOptionMap } from '../../compat/types';
export default {
name: 'announce',
description: 'Posts the message provided to the official CTF #announcements channel',
type: Appli... |
import { BrowserModule } from '@angular/platform-browser';
import {NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA} from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';... |
export const environment = {
production: false,
hmr: false,
apiUrl: 'http://localhost:4000',
firebaseConfig: {
apiKey: 'AIzaSyAA9x9CnEpyea8p_eb66QQPP_wlPUz8ee0',
authDomain: 'chordbomb.firebaseapp.com',
databaseURL: 'https://chordbomb-default-rtdb.firebaseio.com',
projectId: 'chordbomb',
sto... |
/*! Short Description of the SpecIF Viewer with a List of all used libraries and their respective licenses.
Dependencies: jQuery
(C)copyright enso managers gmbh (http://www.enso-managers.de)
License and terms of use: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
Author: se@enso-managers.de, Berlin
We app... |
/*
* 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 { SavedObjectsType } from 'src/core/server';
export const apmTelemetry... |
import {Fin, OfWindow} from '../../fin';
import {Entity, SnapPointData} from '../../types';
import {getGroup} from '../state/store';
import {p} from '../utils/async';
import {WindowIdentity} from '../utils/window';
import {addToGroup, createNewGroup} from './group';
import {moveWindowTo} from './moveWindow';
declare ... |
import { HttpOptions } from "../lib/index";
export interface HttpAgent {
(request: HttpOptions): Promise<HttpResponse>;
}
export interface HttpResponse {
httpStatus: number;
body: {};
} |
import * as React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { defaultProps, prefix } from '../utils';
import { FlexboxGridItemProps } from './FlexboxGridItem.d';
class FlexboxGridItem extends React.Component<FlexboxGridItemProps> {
static propTypes = {
classNa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.