text stringlengths 10 953k |
|---|
import { DatabaseProvider } from '../../../../../types';
import { text } from '../..';
export const name = 'Text with isNullable: true';
export const typeFunction = (config: any) => text({ ...config, isNullable: true });
export const exampleValue = () => 'foo';
export const exampleValue2 = () => 'bar';
export const su... |
import * as cdk from '@aws-cdk/core';
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { BackEnd } from './backend';
import { MedplumInfraConfig } from './config';
import { FrontEnd } from './frontend';
import { Storage } from './storage';
class MedplumStack extends cdk.Stack {
backEnd: Back... |
import { Command } from 'commander'
import { Logger } from '@faasjs/logger'
import { existsSync } from 'fs'
import { sep } from 'path'
import { NewCommand } from './commands/new'
import { DeployCommand } from './commands/deploy'
import { ServerCommand } from './commands/server'
const commander = new Command()
const lo... |
/* eslint-disable @typescript-eslint/restrict-template-expressions */
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as express from "express"
import { cloneDeep, isObject, isString, mapValues, merge } from "lodash"
import * as qs from "qs"
import { IPagingMeta } from "./rendering"
import { encode } f... |
import cn from 'classnames';
import styleUtils from './utils.module.css';
import styles from './contact.module.css';
import { REPO } from '@lib/constants';
export default function LearnMore() {
return (
<div className={cn(styleUtils.appear, styleUtils['appear-fifth'], styles.contact)}>
Learn more on{' '}
... |
import "zone.js";
import "reflect-metadata";
import {bootstrap} from "../jspm_packages/npm/angular2@2.0.0-beta.9/platform/browser";
import ApplicationComponent from './components/application/application';
bootstrap(ApplicationComponent); |
/// <reference types="react" />
export declare const ResultItemGroupHeader: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivEl... |
import apiWrapper from 'lib/api/apiWrapper'
import { NextApiRequest, NextApiResponse } from 'next'
export default (req: NextApiRequest, res: NextApiResponse) => apiWrapper(req, res, handler)
async function handler(req: NextApiRequest, res: NextApiResponse) {
const { method } = req
switch (method) {
case 'GET... |
/* tslint:disable */
/* eslint-disable */
/*
* Copyright 2019 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 requir... |
import React from 'react';
import { mount } from 'enzyme';
import { LinkBase } from './Link.base';
describe('LinkBase', () => {
it('focuses correctly when focus is triggered via ILink interface', () => {
const link1 = React.createRef<HTMLElement>();
const link2 = React.createRef<HTMLElement>();
const lin... |
import { FC } from "react";
import styled from "styled-components";
import { Header } from "./components/Header";
const AppContainer = styled.div`
width: 100%;
height: 100%;
overflow: hidden;
`;
const App: FC = () => {
return (
<AppContainer>
<Header />
</AppContainer>
);
};
export default App; |
import React from 'react'
const styles = require('./onboarding-tooltip.css')
export interface Props {
imgSrc?: string
CTAText?: string
descriptionText: string
onDismiss: () => void
onCTAClick?: () => void
}
export default class OnboardingTooltip extends React.PureComponent<Props> {
private re... |
import { ArgsType, Field } from "@nestjs/graphql";
import { CustomerWhereUniqueInput } from "./CustomerWhereUniqueInput";
@ArgsType()
class DeleteCustomerArgs {
@Field(() => CustomerWhereUniqueInput, { nullable: false })
where!: CustomerWhereUniqueInput;
}
export { DeleteCustomerArgs }; |
import { NgModule } from '@angular/core';
import { RouterModule, Routes, UrlSegment } from '@angular/router';
import { DetailsComponent } from './details/details.component';
import { TablesComponent } from './tables/tables.component';
import { FormComponent } from './forms/form/form.component';
import { PermissionGardS... |
import { Tree, TreeNode } from '../tree';
import { InitField } from '../model';
export declare function createInitFields(node: TreeNode, tree: Tree): InitField[]; |
/**
* Copyright 2018, OpenCensus Authors
*
* 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 ... |
import {
FeatureCollection
} from 'geojson';
import IMapDomain from "../domain/IMapDomain";
/**
* The interface declares functions for management of geographical data.
*
* @author Jiri Hynek
*/
interface IGeoData extends IMapDomain {
/**
* It returns the original source of geographical data.
*... |
import { Component, OnInit } from '@angular/core';
import { Restaurant } from './blank-test-content/blank-teste-content.model';
import { RestaurantsService } from './blank-page.service';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
@Component({
selector: 'app-blank-page',
templateUrl: '... |
/*!
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import * as child_process from 'child_process'
import * as fs from 'fs-extra'
import * as marked from 'marked'
import * as path from 'path'
// doesn't use path utils as this should be formatted fo... |
import { WorkspaceFolder, WorkspaceFoldersChangeEvent } from 'vscode-languageserver';
import { join, normalize, sep } from 'path';
import { URI } from 'vscode-uri';
export const isRelativePath = (path: string): boolean => {
const relativePathRegex = /^(((\.\.?)|([\w-@. ]+))(\/|\\\\?))*[\w-. ]*\.[\w-]+$/i;
return r... |
import validator from '../';
export default validator.isIP; |
/*
* 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 { ReindexStatus, ReindexStep } from '../../../../../../common/types';
... |
import { env } from "../env";
export const routingControllerOptions = {
cors: true,
// routePrefix: env.app.apiPrefix,
controllers: [`${__dirname}/../Controller/**/*{.ts,.js}`],
middlewares: [`${__dirname}/../Middleware/**/*{.ts,.js}`],
}; |
import { expect, haveResource, haveResourceLike, not } from '@aws-cdk/assert';
import * as ec2 from '@aws-cdk/aws-ec2';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import { Test } from 'nodeunit';
import * as eks from '../lib';
import { testFixture, testFixtureNoVpc } from './util';
... |
export = ['@base-accent', '@base-text-color', '@base-bg', '@base-border-color', '@base-border-radius']; |
export * from './not-active-challenge'
export * from './experience-bar'
export * from './button-login'
export * from './level-up-modal' |
/// <reference lib="es2018" />
/// <reference lib="webworker" />
import {precacheAndRoute} from 'workbox-precaching';
import {clientsClaim} from 'workbox-core';
import {registerRoute} from 'workbox-routing';
import {CacheFirst} from 'workbox-strategies';
declare const self: ServiceWorkerGlobalScope;
self.skipWaiting(... |
import * as React from "react";
import "jest-styled-components";
import { render, cleanup, screen, fireEvent } from "@TestUtils";
import { Toggle } from "@Input";
describe("Toggle component", () => {
const toggleSpy = jest.fn();
const props: ToggleProps = {
label: "test toggle",
value: false,
onToggl... |
import { TmonDateAppPage } from './app.po';
describe('tmon-date-app App', () => {
let page: TmonDateAppPage;
beforeEach(() => {
page = new TmonDateAppPage();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('app works!');
});
}... |
import express, { Application, Request, Response, NextFunction } from 'express';
import routes from './routes';
export default function createServer() {
const app: Application = express();
app.get('/'),
(req: Request, res: Response, next: NextFunction) => {
res.sendStatus(200);
};
app.use(routes);
return... |
import { Router } from 'express';
import { param } from 'express-validator';
import { Pool } from 'mysql2/promise';
import { ContentController } from '../controllers';
import { catchExceptions } from '../lib/utils';
const router = Router();
// for /content/...
export function contentRouter(pool: Pool) {
const con... |
export declare function concatArrays(originVal: any, newVal: any): any; |
/// <reference path="long.d.ts" />
import Long = require("long");
var val: dcodeIO.Long;
var n: number = 42;
var b: boolean = true;
var s: string = "1337";
val = new Long(0xFFFFFFFF, 0x7FFFFFFF, true);
val = new Long(0xFFFFFFFF, 0x7FFFFFFF);
val = new Long(0xFFFFFFFF);
n = val.low;
n = val.high;
b = val.unsigned;
... |
import chalk from 'chalk'
import { findConfig } from '../../../../../lib/find-config'
import browserslist from 'browserslist'
type CssPluginCollection_Array = (string | [string, boolean | object])[]
type CssPluginCollection_Object = { [key: string]: object | boolean }
type CssPluginCollection =
| CssPluginCollecti... |
// Copyright (c) Microsoft.
// Licensed under the MIT license.
import {isNode} from "@azure/core-util";
const currentPlatform = isNode ? "node" : "browser";
export const SDK_VERSION = "1.0.0-beta.1";
export const DEFAULT_USER_AGENT = `azsdk-node-modelsrepository/${SDK_VERSION} (${currentPlatform})`;
export const DEF... |
import envPaths from 'env-paths';
import fs from 'fs';
import path from 'path';
// eslint-disable-next-line import/no-cycle
import { APP_NAME } from './distnetClasses';
const paths = envPaths(APP_NAME);
export const SETTINGS_FILE = path.join(paths.config, 'settings.yml');
const fsPromises = fs.promises;
/**
* retu... |
export const CLOSE_SVG = require('../assets/images/close.svg'); |
import * as assert from 'assert';
import { setDeepProperty } from '../index';
describe('setDeepProperty', () => {
it('should set a property with deep 1', () => {
const obj = {
test: "A"
}
setDeepProperty(obj, "test", "B");
assert.equal(obj.test, "B");
});
it('should set a property with de... |
import { SetMetadata } from '@nestjs/common'
export const ROLES_META_KEY = 'roles'
export const Roles = (...roles: string[]) => SetMetadata(ROLES_META_KEY, roles) |
import { Box, Container } from '@mui/material';
import Page from '@src/components/Page';
import { useActions, useAppState } from '@src/overmind';
import { HandleFilterType } from '@src/types';
import { isError } from '@src/util/utilities';
import React, { FC, useEffect, useState } from 'react';
import { useTranslation ... |
import { inject, reset } from "../__internals__";
import { responseSettings } from "../../src";
afterEach(reset);
it("should not support jsonp callbacks", async () => {
expect.assertions(1);
const result = await inject(
(req, res) => res.json({ foo: "bar" }),
"/?callback=foo",
);
expect(result.body)... |
// NGRX
import { Action } from '@ngrx/store';
import { Update } from '@ngrx/entity';
// CRUD
import { QueryParamsModel } from '../../_base/crud';
// Models
import { Role } from '../_models/role.model';
export enum RoleActionTypes {
AllRolesRequested = '[Roles Home Page] All Roles Requested',
AllRolesLoaded = '... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { StoreModule } from '@ngrx/store';
import { reducers, metaReducers } from './reducers';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { envir... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Akcoin</source>
<translation>Acerca de Akcoin</translation>
</me... |
import { Message, MessageEmbed, TextChannel } from 'discord.js';
import fetch from 'node-fetch';
import TurndownService from 'turndown';
import Command from '../../core/Command';
import { formats, statuses, sources } from '../../anilist';
import { truncateString, parseFuzzyDate, isFuzzyDate } from '../../core/Util';
e... |
/* Copyright 2015 Bloomberg Finance L.P.
*
* 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 ag... |
import Immutable from 'immutable'
import { FeedsRetrievedAction } from './actions'
import { FEEDS_ADMIN_RETRIEVED, ADMIN_FEEDS_FETCH, ADD_AS_ADMIN_FEED, REMOVE_FEED } from '../../../actions'
import { UserSeed } from '@xrengine/common/src/interfaces/User'
import { IdentityProviderSeed } from '@xrengine/common/src/interf... |
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/Rx';
@Injectable()
export class ConfigService {
public config: any = {};
constructor(private http: Http) {}
public load() {
return new Promise((resolve) => {
this.http.get('/nirvana.appConfig... |
import { networkName } from '../../../utilities'
import { TorusOptions, WalletModule } from '../../../interfaces'
import torusIcon from '../wallet-icons/icon-torus'
function torus(options: TorusOptions & { networkId: number }): WalletModule {
const {
networkId,
preferred,
label,
iconSrc,
svg,
... |
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class MediaItemService {
mediaItems = [
{
id: 1,
name: 'Firebug',
medium: 'Series',
category: 'Science Fiction',
year: 2010,
watchedOn: 1294166565384,
isFavorite: false
},
{
... |
import PayloadDeliveryLoop from '../payload-loop'
describe('delivery: electron -> payload delivery loop', () => {
it('attempts to dequeue (almost) immediately', done => {
const send = (opts: any, _body: any, cb: () => void) => {
expect(opts.url).toBe('https://notify.bugsnag.com')
consumer.stop()
... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from 'ethers';
import { Provider } from '@ethersproject/providers';
import type { Proxy, ProxyInterface } from '../Proxy';
const _abi = [
{
stateMutability: 'payable',
type: 'fallback... |
import { Tile } from './base'
class UnwrappedTile<T> extends Tile<T> {
constructor(readonly core: Promise<Tile<T>>) {
super()
}
async get(...indices: Tile<unknown>[]) {
return (await this.core).get(...indices)
}
async has(key: string | number | boolean) {
return (await this.core).has(key)
}
... |
export * from './swimlaneH';
export * from './swimlaneH.rect'; |
import IntlMessageFormat from "intl-messageformat/src/main";
/**
* Adapted from Polymer app-localize-behavior.
*
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of autho... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import * as React from 'react';
import { DaemonSetModel } from '../../models';
import { ResourceSummary } from '../utils';
import { menuActions, DaemonSetDetailsList } from '../daemon-set';
import { OverviewDetailsResourcesTab } from './resource-overview-page';
import { ResourceOverviewDetails } from './resource-over... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const UpdateApplicationInput: _Structure_ = {
type: "structure",
required: [],
members: {
applicationName: {
shape: {
type: "string",
min: 1
}
},
newApplicationName: {
shape: {
type: "string",
... |
import { Component, OnInit, HostListener, SecurityContext, ViewChild, ElementRef } from '@angular/core';
import { ipcRenderer } from "electron";
import { userImage } from "../../../images";
import { DomSanitizer } from '@angular/platform-browser';
@Component({
selector: 'app-home',
templateUrl: './home.component.h... |
import { createApp } from "vue";
import { createPinia } from "pinia";
import "virtual:windi.css";
import App from "./App.vue";
import router from "./router";
const app = createApp(App);
app.use(createPinia());
app.use(router);
app.mount("#app"); |
export * from './PaginatedTable'; |
/* eslint-disable i18n-text/no-en,sort-imports */
import * as core from '@actions/core'
import * as github from '@actions/github'
import replaceComment from '@aki77/actions-replace-comment'
import * as fs from 'fs'
import * as os from 'os'
import execa, {command} from 'execa'
const outputCrontab = async (path: string)... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ChannelBottonComponent } from './channel-botton.component';
describe('ChannelBottonComponent', () => {
let component: ChannelBottonComponent;
let fixture: ComponentFixture<ChannelBottonComponent>;
beforeEach(async () => {
await Tes... |
import { fibonacci, fibonacciWithCache, fibonacciWithStack } from './recursion'
test('递归获取斐波拉契数列', () => {
const result = fibonacci(10)
expect(result).toEqual(34)
})
test('缓存获取斐波拉契数列', () => {
const result = fibonacciWithCache(10)
expect(result).toEqual(34)
})
test('栈获取斐波拉契数列', () => {
const result = fibon... |
import fs from "fs"
import path from "path"
import { Accounts, Prices, Users, Wallets } from "@app"
import { getBuildVersions, getFeeRates, onboardingEarn } from "@config"
import { usernameExists } from "@core/user"
import { addInvoiceForUsername, addInvoiceNoAmountForUsername } from "@core/wallets"
import { decodeIn... |
import React, { useContext, useState } from 'react';
import uniqBy from 'ramda/src/uniqBy';
import prop from 'ramda/src/prop';
import { MOONPAY_ASSET_UUIDS } from '@utils';
import { FormData, WalletId, ExtendedAsset } from '@types';
import translate, { translateRaw, Trans } from '@translations';
import { Spinner, Butt... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Litedevcoin</source>
<translation>Over Litedevcoin</translation>
... |
import * as React from 'react';
import { PageSection, Title } from '@patternfly/react-core';
const GeneralSettings: React.FunctionComponent = () => (
<PageSection>
<Title headingLevel="h1" size="lg">
General Settings Page Title
</Title>
</PageSection>
);
export { GeneralSettings }; |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AddControlScriptComponent } from './add-control-script.component';
describe('AddControlScriptComponent', () => {
let component: AddControlScriptComponent;
let fixture: ComponentFixture<AddControlScriptComponent>;
beforeEach(async () =>... |
import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { Header } from './components/header/header';
import { Home } from './components/home/home';
import { AGM } from './components/agm/agm';
import { Events } from './components/events/events';
import { Sponsors } ... |
// Copyright 2020 The Kubermatic Kubernetes Platform contributors.
// 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 app... |
import { Text, Grid, GridItem } from "@chakra-ui/react"
import { useState, useEffect } from "react"
import { Contract } from 'web3-eth-contract'
import { useButton, usePasswordInput } from '../hooks/ui'
import styles from '../styles/listitem.module.css'
type Props = {
contract: Contract
web3: any
account: string... |
import { useRouter } from 'next/router'
import Link from 'next/link'
import Image from 'components/Image'
import SearchInput from 'components/SearchInput'
import * as S from './styles'
interface ILogoData {
href: string
alt: string
}
const Header = () => {
const router = useRouter()
const search =
route... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { FrameworkBodyComponent } from './framework-body/framework-body.component';
import { ContentComponent } from './content/content... |
import { BottomBar as IBottomBar, Button as IButton } from "../../../types/AndroidSpec/BottomBar";
export declare class BottomBar implements IBottomBar {
style: Object;
Button: IButton;
constructor();
} |
// *** 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";
/**
* D... |
export class Point
{
constructor( x:number, y:number )
{
this.x = x;
this.y = y;
}
public getX():number
{
return this.x;
}
public getY():number
{
return this.y;
}
public setX( x:number )
{
this.x = x;
}
public setY( y:number)
{
this.y = y;
}
// X Coordinate
private x:number;
// Y Co... |
import { APP_INTERCEPTOR, AppConfig, AppEnvironment, ContextStorage, DynamicModule, LoggerService, Module, UtilModule } from '@bechara/nestjs-core';
import { EntityManager, MikroORMOptions } from '@mikro-orm/core';
import { MikroOrmModule } from '@mikro-orm/nestjs';
import { SchemaModuleOptions } from '../schema/schem... |
import { PadPrmSpdTags } from '../renderer/store/types/types';
export const range = (value: number, min: number, max: number) => {
return Math.min(Math.max(value, min), max);
};
// Tempo: (v: number) => range(Number(v), 200, 4000)
export const inputSanitize: {
[key: string]: (input: string | number) => numbe... |
/* Copyright 2021 the Deno authors. All rights reserved. MIT license. */
import React from "react";
import { renderToStaticMarkup } from "react-dom/server";
import dompurify from "dompurify";
import {
markup,
MarkupProps,
scrollEffect,
slugify,
transformImageUri,
transformLinkUri,
} from "./Markup";
impor... |
export class UserModel {
username:string = ''
password:string = ''
role:number = 1
state:number = 0
client_ids:string[] =[]
} |
export * from './lib/file-drop-overlay.module';
export * from './lib/file-drop-overlay/file-drop-overlay.component'; |
/*
Copyright 2020. Huawei Technologies Co., Ltd. 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
https://www.apache.org/licenses/LICENSE-2.0
Unless ... |
import { AuthenticationError } from "apollo-server-express";
import { ArchivedNotes, Notes, Tags, Users } from "../database";
import jwt from "jsonwebtoken";
export const resolvers = {
Query: {
getAllTags: (_, args, context) => {
if (!context.user) throw new AuthenticationError("You must be logged in");
... |
import express = require('express');
import bodyparser = require('body-parser');
import path = require('path');
import { MetricsHandler, Metric } from './metrics';
const app = express()
let ejs = require('ejs');
app.use(express.static(path.join(__dirname, '/public')))
app.set('views', __dirname + "/views")
app.set('vi... |
import { Settings } from 'insomnia-common';
import React, { FC, Fragment } from 'react';
import { useSelector } from 'react-redux';
import styled from 'styled-components';
import { getControlledStatus } from '../../../models/helpers/settings';
import { selectSettings } from '../../redux/selectors';
import { HelpToolti... |
import { TfCommand } from "../../lib/tfcommand";
import args = require("../../lib/arguments");
import buildBase = require("./default");
import buildClient = require("vso-node-api/BuildApi");
import buildContracts = require("vso-node-api/interfaces/BuildInterfaces");
import trace = require("../../lib/trace");
export fu... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { QuoteComponent } from './quote/quote.component';
import { ... |
/*
* Copyright 2016-2020 Imply Data, 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 ... |
import {createElement, render} from 'rax';
render(<a b="c" />); |
import defs=require("raml-definition-system")
import hl=require("../highLevelAST")
import ll=require("../lowLevelAST")
import _=require("underscore")
import high=require("../highLevelAST");
import hlimpl=require("../highLevelImpl")
import linter=require("./linter")
import wrapperHelper=require("../wrapped-ast/wrapperHe... |
import { botCache, cache, Role } from "../../../../../deps.ts";
import { db } from "../../../../database/database.ts";
import { PermissionLevels } from "../../../../types/commands.ts";
import { createSubcommand } from "../../../../utils/helpers.ts";
createSubcommand("events-edit", {
name: "allowed",
cooldown: {
... |
import { hexUtils } from '@0x/utils';
import * as chai from 'chai';
import { CompilerOptions, ContractArtifact } from 'ethereum-types';
import 'mocha';
import { join } from 'path';
import { Compiler } from '../src/compiler';
import { fsWrapper } from '../src/utils/fs_wrapper';
import { exchange_binary } from './fixtu... |
import * as _ from "../index";
declare module "../index" {
interface LoDashStatic {
/**
* Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @category Lang
... |
import * as request from "request-promise-native";
import * as child_process from "child_process";
import { Process, config, utils, specHelper } from "../../../src/index";
const actionhero = new Process();
let url: string;
async function exec(command: string) {
return new Promise((resolve, reject) => {
child_pr... |
import { Readable } from 'stream';
import { Task } from '../managers/tasks';
import ReaderStream from '../readers/stream';
import { Entry, ErrnoException, ReaderOptions } from '../types/index';
import Provider from './provider';
export default class ProviderStream extends Provider<NodeJS.ReadableStream> {
protected ... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DashboardComponent } from './dashboard/dashboard.component';
import { PagenotfoundComponent } from './pagenotfound/pagenotfound.component';
const routes: Routes = [
{
path: 'dashboard',
component: Dash... |
import {
EventErrorPayload,
EventLoginPayload,
EventLogoutPayload,
EventMessagePayload,
EventScanPayload,
MessageType,
ScanStatus,
FileBox,
} from 'wechaty-puppet'
import { PuppetService } from '../src/mod.js'
/**
*
* 1. Declare your Bot!
*
*/
const puppet = new PuppetService()... |
export let request = {
'fork': {
'scm': 'git',
'website': null,
'has_wiki': false,
'name': 'test_fork',
'links': {
'downloads': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test_fork/downloads'
},
'watchers': {
'href': 'https://api.bitbucket.org/2.... |
/**
* @file Main entry of the admin application
* @author François Nguyen <https://github.com/lith-light-g>
*/
/// <reference path="typings.d.ts" />
import * as React from "react";
import * as ReactDOM from "react-dom";
import { AppContainer } from "react-hot-loader";
import { Provider } from "react-redux";
import c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.