text stringlengths 10 953k |
|---|
'use strict';
import * as coqProto from '../coq-proto';
import * as text from '../../util/AnnotatedText';
import * as util from 'util';
import {Node} from './coq-xml';
export {Node} from './coq-xml';
import {StateId, EditId, Pair, StateFeedback, LtacProfTactic, LtacProfResults,
UnionL, UnionR, Union, OptionState, Sub... |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class Appflow ex... |
export interface IPromotions {
id: string;
type: string;
products: Array<string>;
}
export interface IProduct {
id: string;
name: string;
price: number;
amount: number;
promotions: IPromotions[];
} |
import { CloudSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudSearchClient";
import { DescribeDomainsRequest, DescribeDomainsResponse } from "../models/models_0";
import {
deserializeAws_queryDescribeDomainsCommand,
serializeAws_queryDescribeDomainsCommand,
} from "../protocols/Aws... |
export * from './purchasesList.component'; |
import { FileState, RequestMetadata } from '@atlaskit/media-client';
import {
FileAttributes,
WithFileAttributes,
FailureAttributes,
ANALYTICS_MEDIA_CHANNEL,
} from '@atlaskit/media-common';
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
import { PrimaryErrorReason } from '../errors';
imp... |
// CloudFormation Resource AWS::DataSync::LocationFSxWindows
import { CfnResource, Resolvable } from '../../base';
export type LocationFSxWindows_Type = 'AWS::DataSync::LocationFSxWindows';
export const LocationFSxWindows_Type = 'AWS::DataSync::LocationFSxWindows';
/**
* Resource schema for AWS::DataSync::LocationF... |
import execa from 'execa';
import { debug, Meta } from '@vercel/build-utils';
const pipPath = 'pip3';
const makeDependencyCheckCode = (dependency: string) => `
from importlib import util
dep = '${dependency}'.replace('-', '_')
spec = util.find_spec(dep)
print(spec.origin)
`;
async function isInstalled(dependency: str... |
/**
* @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
*/
import { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect';
import { resolve as pathRes... |
import { Expose } from 'class-transformer';
import { IsNotEmpty, IsString } from 'class-validator';
export class Head {
@Expose()
@IsString()
@IsNotEmpty()
name: string;
} |
import Card from "@material-ui/core/Card";
import { withStyles } from "@material-ui/core/styles";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import TableCell from "@material-ui/core/TableCell";
import TableFooter from "@material-ui/core/TableFooter";
import TableHe... |
import { PartialType } from "@nestjs/swagger";
import { CreateNarizFormaDto } from './create-nariz-forma.dto';
export class EditNarizFormaDto extends PartialType(CreateNarizFormaDto){} |
import $ from 'jquery';
export default class Flashes {
constructor(private $container: JQuery) {
}
create(label: string, message: string): string {
return `<div class="alert alert-${label} hide-top alert-dismissible fade show flash">
${message}
<button type="button" class="... |
import React from 'react';
export declare const ShapeRhombus: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>; |
const SITES: Record<string, string | ((query: string) => string) | undefined> = {
// Default
help: 'https://github.com/alii/search/issues',
// Package Managers
yarn: 'https://yarnpkg.com/?q={q}&p=1',
npm: 'https://npmjs.org/package/{q}',
packagist: 'https://packagist.org/?query={q}',
pypi: 'https://pypi.org/pro... |
// Angular
import { Injectable } from '@angular/core';
// RxJS
import { BehaviorSubject } from 'rxjs';
@Injectable()
export class LayoutRefService {
// Public properties
layoutRefs$: BehaviorSubject<any> = new BehaviorSubject<any>({});
layoutRefs: any = {};
/**
* Add element to Ref
*
* @param name: any
* ... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { MongooseModule } from '@nestjs/mongoose';
import { AuthModule } from './auth/auth.module';
import { ConfigModule } from '@nestjs/config';
@Module({
imports: [
MongooseMo... |
import { QLDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QLDBClient";
import { ListLedgersRequest, ListLedgersResponse } from "../models/models_0";
import {
deserializeAws_restJson1ListLedgersCommand,
serializeAws_restJson1ListLedgersCommand,
} from "../protocols/Aws_restJson1";
import { ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
'use strict';
import * as fs from 'fs';
import * as path from 'path';
import * as tkill from 'tree-kill';
import * as component from '../../../common/component';
import { getLogger, Logger } from '../../../common/log';
import { ExperimentConfi... |
import { Test, TestingModule } from '@nestjs/testing';
import { CommonController } from './common.controller';
describe('Common Controller', () => {
let controller: CommonController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [CommonController],
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { CancellationToken, Position, TextDocument, Uri } from 'vscode';
import { Commands as LSCommands } from '../../activation/languageServer/constants';
import { Commands as DSCommands } from '../../datas... |
import { expect } from 'chai';
import { Config } from 'stryker-api/config';
import TranspilerFacade from '../../../src/transpiler/TranspilerFacade';
import { Transpiler, TranspilerFactory, TranspileResult } from 'stryker-api/transpile';
import { file, mock, Mock, transpileResult } from '../../helpers/producers';
descr... |
import { BadRequestException } from "./BadRequestException";
import { InternalServerErrorException } from "./InternalServerErrorException";
import { ForbiddenException } from "./ForbiddenException";
import { NotFoundException } from "./NotFoundException";
import { MethodNotAllowedException } from "./MethodNotAllowedExc... |
/**
* AppMgmt Control API
* AppMgmt Control API
* OpenAPI spec version: 20210330
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the... |
class OrderController {
PUT():
Createorder(payloadDto: any) {
}
}
// array articulos / items
const createOrder = (payloadDto: any) => {
SVGAnimatedNumberList.publish()
}
const createOrderHandler = (payloadDto: any) => {
const {id, product, quantity, family } = payloadDto;
if (!orderservice.validat... |
import axios from 'axios'
interface slackArgs {
data: string,
url: string
}
export default async({data, url}: slackArgs) => {
let message: any = {
attachments: [],
}
if (data == "404") {
message.attachments.push({
pretext: '식단표가 없습니다. 식단표 `PR` 날려주세요 😢',
... |
// --- Imports -------------------------------------------------------------- //
// Vendor
import { Store } from 'vuex';
// Internal
import * as Symbols from './symbols';
import { VuexTsModuleInstance } from './vuex-ts-module';
// --- Constants ------------------------------------------------------------ //
const v... |
import { List, ListProps, ListVariant, ListComponent, ListItem } from '@patternfly/react-core';
import React, { Component } from 'react';
import BookOpen from '@patternfly/react-icons/dist/esm/icons/book-open-icon';
import Key from '@patternfly/react-icons/dist/esm/icons/key-icon';
import Desktop from '@patternfly/reac... |
/*
* Copyright 2021 The University of Manchester
*
* 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 ... |
import React from 'react';
import { useGeneralSettings } from '@wpengine/headless/react';
import { usePost } from '@wpengine/headless/next';
import type { GetServerSidePropsContext, GetStaticPropsContext } from 'next';
import {
getApolloClient,
} from '@wpengine/headless';
import { gql } from '@apollo/client';
import... |
import { expect } from 'earljs'
import { AssetId } from '../../../src/model'
import { AggregatePriceRepository } from '../../../src/peripherals/database/AggregatePriceRepository'
import { Logger } from '../../../src/tools/Logger'
import { setupDatabaseTestSuite } from './setup'
describe('AggregatePriceRepository', ()... |
import {filter} from './tpl';
import {Schema, PlainObject} from '../types';
import {injectPropsToObject, mapObject, evalExpression} from './helper';
import isPlainObject from 'lodash/isPlainObject';
import cx from 'classnames';
/**
* 处理 Props 数据,所有带 On 结束的做一次
*
* xxxOn
* xxxExpr
*
*
* @param schema
* @param d... |
import { motion, useCycle } from "framer-motion";
import Image from "next/image";
import { useEffect, useRef, useState } from "react";
import { Link } from "react-scroll";
import { useDimensions } from "../hooks/useDimensions";
import Logo from "./Logo";
import { MenuToggle, Navigation } from "./header/";
const sideba... |
import React, { useState, useEffect, useRef } from "react";
import ChatMessage from "./ChatMessage";
import Splash from "./Splash";
import { useSocket } from "../contexts/SocketContext";
import { useAppSelector } from "../store/hooks";
import { DirectMessage } from "../types/entities";
import axios from "../axios";
imp... |
import { WebGLRenderTargetOptions, LinearFilter, NearestFilter, RGBFormat, WebGLRenderTarget, ShaderMaterial, PlaneGeometry, Mesh, WebGLRenderer, Scene } from "three";
class TexturedPlane {
private readonly vShader: string = `
varying vec2 vUv;
void main() {
vUv = uv;
gl_Posi... |
import { expect } from 'chai';
import 'mocha';
import { ClonedValue } from './cloned-value';
import { areObjectsEquivalent } from './equivalent-objects';
import { LogLevel } from './logging/log-level';
import sinon from 'sinon';
describe('clonedValue', () => {
describe('originalValue', () => {
it('should not cha... |
import { createServer, Server } from 'http'
import { Game } from './components/Game'
import { Card } from './components/Card'
import * as express from 'express'
import * as socketIo from 'socket.io'
import * as path from 'path'
class App {
// Variables publicas
public app: express.Application
public server: Serv... |
import { ValidationErrors, ValidatorFn, AbstractControl, FormGroup, FormControl, Validators } from '@angular/forms';
import { NumericValueType, RxwebValidators, ReactiveFormConfig, RxFormBuilder, FormGroupExtension, RxFormControl, RxFormArray } from '@rxweb/reactive-form-validators';
import { tick, fakeAsync } from '@a... |
import { Event } from '../../model';
const eventCodeToEventSourcePrefix = {
A: 'Admin',
B: 'Site',
C: 'Page',
D: 'Theme',
E: 'Entity',
F: '', // General event, no prefix.
G: 'Group',
H: 'File',
I: 'Item',
J: 'Image',
K: 'i18n',
L: 'Log',
M: 'Post',
N: 'News',
O: 'Note',
P: 'Property',
... |
import setup from "./setup"
import viewConfig from "./view-config"
export default [
setup,
viewConfig,
] |
import { MockMethod } from 'vite-plugin-mock';
import { Random } from 'mockjs';
import { resultPageSuccess } from '../_util';
function getRandomPics(count = 10): string[] {
const arr: string[] = [];
for (let i = 0; i < count; i++) {
arr.push(Random.image('800x600', Random.color(), Random.color(), Random.title(... |
import Comment from './Comment';
export type { CommentProps } from './Comment';
export type { CommentActionsProps } from './CommentActions';
export type { CommentAuthorProps } from './CommentAuthor';
export type { CommentAvatarProps } from './CommentAvatar';
export type { CommentContentProps } from './CommentContent';... |
/**
* Converts iterable to array.
* @param x an iterable
*/
function from<T>(x: Iterable<T>): T[] {
return [...x];
}
export default from; |
/** Return an icon representing a cover state. */
import { HassEntity } from "home-assistant-js-websocket";
import domainIcon from "./domain_icon";
export default function coverIcon(state: HassEntity): string {
const open = state.state !== "closed";
switch (state.attributes.device_class) {
case "garage":
... |
import { FabrixApp } from '@fabrix/fabrix'
import { FabrixGeneric } from '@fabrix/fabrix/dist/common'
import { promiseRetry } from './promiseRetry'
import nano from 'nano-time'
export class RetryManager extends FabrixGeneric {
public active_retries = new Map()
public cancelled_retries = new Set()
public failed_r... |
import * as PropTypes from 'prop-types';
import * as React from 'react';
export interface RefProps {
children: React.ReactElement<any>;
/**
* Called when a child component will be mounted or updated.
*
* @param node - Referred node.
*/
innerRef: React.Ref<HTMLElement>;
}
/** A checker that matches ... |
/**
* console.ts: Transport for outputting to the console.
*/
import { EOL } from "os";
import { TransportOptions } from "../types";
export function logToConsole (options: TransportOptions) {
const level = options.level.toLowerCase();
if (options?.stderrLevels.indexOf(level) > -1) {
process.stderr.w... |
import React from 'react';
export interface IconShoppingBagProps extends React.SVGAttributes<SVGElement> {
color?: string;
size?: string | number;
className?: string;
style?: React.CSSProperties;
}
export const IconShoppingBag: React.SFC<IconShoppingBagProps> = (
props: IconShoppingBagProps
): React.ReactEl... |
/// <reference path='fourslash.ts'/>
////function Foo() {
//// for (var i of [])
//// {
//// /*insideStatement*/
//// }
//// /*afterStatement*/
//// for (var i of [])
//// /*insideStatement2*/
////}
goTo.marker('insideStatement');
verify.indentationIs(8);
goTo.marker('afterStatement');
v... |
import { newE2EPage } from '@stencil/core/testing';
test('tab-bar: scenarios', async () => {
const page = await newE2EPage({
url: '/src/components/tab-bar/test/scenarios?ionic:_testing=true'
});
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
});
test('tab-bar:rtl: sc... |
import { KitchenSink } from '@normalize-in-js/shared';
import React from 'react';
import { Reset } from '..';
export default {
title: 'Styled Components/Reset',
};
export const Base = () => (
<>
<Reset />
<KitchenSink />
</>
);
Base.story = {
name: 'Base',
}; |
import { ContentfulOptions } from '../../../src'
import { createManageCms } from '../../../src/contentful/factories'
import { testContentfulOptions } from '../contentful.helper'
export function testManageContentful(options: Partial<ContentfulOptions> = {}) {
return createManageCms(
testContentfulOptions({
... |
import {
Resolver,
Query,
Mutation,
Args,
Subscription,
Context,
ResolveField,
Parent
} from '@nestjs/graphql'
import { getMongoRepository } from 'typeorm'
import {
ApolloError,
AuthenticationError,
ForbiddenError,
UserInputError
} from 'apollo-server-core'
import { uuidv4 } from '@utils'
import { User } f... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'base-dropdown',
templateUrl: './base-dropdown.component.html',
styleUrls: ['./base-dropdown.component.css']
})
export class BaseDropdownComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { RelayProof } from "../relay-proof"
import { RelayPayload } from "./relay-payload"
/**
*
*
* @class RelayRequest
*/
export class RelayRequest {
/**
*
* Creates a RelayRequest object using a JSON string
* @param {String} json - JSON string.
* @returns {RelayRequest} - RelayRequest object.
* ... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import * as _stream from "stream";
import { StartGateway } from "../model/operations/StartGateway";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "..... |
import { ethers } from 'ethers';
import chunk from 'lodash/chunk';
import flatMap from 'lodash/flatMap';
import keyBy from 'lodash/keyBy';
import isEmpty from 'lodash/isEmpty';
import uniq from 'lodash/uniq';
import { go } from '../../utils/promise-utils';
import * as logger from '../../logger';
import { AirnodeRrp, Ai... |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { UserQuestionnaireAnswerService } from './user-questionnaire-answer.service';
import { UserQuestionnaireAnswerController } from './user-questionnaire-answer.controller';
import {
UserQuestionnaireAnswer,
UserQuestion... |
import * as React from 'react'
import styled from '@emotion/styled'
import { SocialButton, SocialButtonList, SocialSite } from './SocialButton'
import { breakpoints, heights, margins, widths } from '../styles/variables'
import MailContact from './MailContact'
const StyledMainPage = styled.div`
overflow: hidden;
ma... |
/**
* Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { ValueCell } from '../../../mol-util';
import { Mat4, Vec3, Vec4 } from '../../../mol-math/linear-algebra';
import { transformPositionArray, Group... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uz@Cyrl" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<source>About IXCoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<source><b>IXCoin Core</b> version</source>
<translat... |
<TS language="fa" 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>
<transl... |
import AbstractCommand from '../AbstractCommand'
import { ProtocolVersion } from '../../enums'
export class DownstreamKeyAutoCommand extends AbstractCommand {
rawName = 'DDsA'
downstreamKeyerId: number
MaskFlags = {
isTowardsOnAir: 1
}
properties: {
isTowardsOnAir?: boolean
}
updateProps (newProps: Parti... |
import { Stack, StackProps } from 'aws-cdk-lib';
import * as s3 from 'aws-cdk-lib/aws-s3';
import { BlockPublicAccess } from 'aws-cdk-lib/aws-s3';
import { Construct } from 'constructs';
import { RustFunction, Settings } from 'rust.aws-cdk-lambda';
// uncomment for local testing
// import { RustFunction, Settings } fro... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*****
License
--------------
Copyright © 2017 Bill & Melinda Gates Foundation
The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens... |
import React, { MouseEvent } from 'react';
import styles from './keyboard.module.scss';
interface KeyboardProps {
className?: string;
callbacksDown: ((e: MouseEvent) => void)[];
keyStyles: { fill: string }[];
}
const Keyboard: React.FC<KeyboardProps> = ({ className, callbacksDown, keyStyles }) => {
co... |
import { isBoolean, get, set } from "lodash";
import { HiddenType } from "./BaseControl";
export const evaluateCondtionWithType = (
conditions: Array<boolean> | undefined,
type: string | undefined,
) => {
if (conditions) {
let flag;
//this is where each conditions gets evaluated
if (conditions.length... |
import {connect as connectRedux} from 'react-redux';
import {Action} from 'redux-actions';
import immer from 'immer';
import type {AnyToAny2, AnyToAny} from '../types/functions';
import {B} from '../combinators';
import {mapObject, climb} from '../object';
export const createReducer = (cases: Record<string, AnyToAny>... |
import { Module } from '@nestjs/common';
import { CourseService } from './course.service';
import { CourseController } from './course.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Course } from './entities/course.entity';
import { Instructor } from '../instructor/entities/instructor.entity';
@... |
import * as path from 'path';
import * as fs from 'fs';
const debug = process.env.NODE_ENV === 'development';
const oauthFileName: string = 'secrets/twitch-oauth';
const optimiserFileName: string = debug ? 'elite-dangerous-commodity-bot.exe' : 'elite-dangerous-commodity-bot';
const options: any = {
debug: debug,
... |
/**
* CFD contract
* @param symbol
* @param currency
* @param exchange
*/
export function cfd(symbol: string, currency?: string, exchange?: string) {
return {
currency: currency || 'USD',
exchange: exchange || 'SMART',
secType: 'CFD',
symbol: symbol
};
}; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import React from 'react';
import './App.css';
import Routes from './routes'
function App() {
return (
<Routes/>
);
}
export default App |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Mojocoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line=... |
export const COUNTDOWN_MINUTES = 15; // min
export const STATUS_INTERVAL = 2000; // ms
export default {
STATUS_INTERVAL,
COUNTDOWN_MINUTES
}; |
/* eslint-disable @typescript-eslint/ban-ts-comment */
/*****
License
--------------
Copyright © 2020 Mojaloop Foundation
The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the 'License') and you may not use these files except in compliance with the License. You ... |
import { ApiProperty } from '@nestjs/swagger';
import { Length, IsNotEmpty, IsString, IsEmail } from 'class-validator';
export class LoginReqDto {
@ApiProperty({
description: 'user email',
type: String,
format: 'email',
})
@IsNotEmpty()
@IsString()
@IsEmail()
email: string;
@ApiProperty({
... |
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";
import { UpdateDashboardPublishedVersionRequest, UpdateDashboardPublishedVersionResponse } from "../models/index";
import {
deserializeAws_restJson1UpdateDashboardPublishedVersionCommand,
serializeAws_restJs... |
/* GENERATED FILE */
import React, { forwardRef } from "react";
import {
IconWeight,
IconProps,
PaintFunction,
renderPathForWeight,
} from "../lib";
import IconBase, { RenderFunction } from "../lib/IconBase";
const pathsByWeight = new Map<IconWeight, PaintFunction>();
pathsByWeight.set("bold", (color: string... |
/**
* Top-level queries relating to ResourceSpecification
*
* @package: HoloREA
* @since: 2019-09-12
*/
import { DNAIdMappings } from '../types'
import { mapZomeFn } from '../connection'
import {
ResourceSpecification,
} from '@valueflows/vf-graphql'
export default (dnaConfig?: DNAIdMappings, conductorUri?:... |
import styled, { css } from 'styled-components';
import { OnboardingPageLayout } from '~/components/layouts';
export const Container = styled(OnboardingPageLayout)`
form {
input,
button {
width: 100%;
}
button {
margin-top: 1.6rem;
}
}
`;
export const Separator = styled.div`
${... |
import { Injectable, NestInterceptor, ExecutionContext } from '@nestjs/common';
import { Observable } from 'rxjs';
import { CallHandler } from '@nestjs/common';
@Injectable()
export class LoggingInterceptor implements NestInterceptor {
intercept(
context: ExecutionContext,
next: CallHandler,
): Observable<... |
import { IMiddleware } from "../models/middleware-target.ts";
export class MiddlewareMetadata {
target: Function;
route: RegExp;
constructor(args: any) {
this.target = args.target;
this.route = args.route;
}
}
/**
* Middleware metadata used to storage information.
*/
export interface MiddlewareMeta... |
import * as React from 'react'
import {
withEffects,
Handler,
ObservableComponent,
PropEffect
} from '../../../../packages/refract-most/src'
import {
aperture,
toPropsAperture,
asPropsAperture,
Effect,
Props,
ExtraProps,
createRenderingAperture,
toMergedPropsAperture
} fr... |
import { HttpResponse } from '@angular/common/http';
import { Directive, HostListener, Input } from '@angular/core';
import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
import { TranslateService } from '@ngx-t... |
import { GetServerSideProps } from "next";
import * as contentModule from "../modules/content";
const Sitemap: React.FC = () => null;
export const getServerSideProps: GetServerSideProps = async ({ res }) => {
if (res) {
const pages = contentModule.getPagePaths();
const sitemapContent = pages
.map((pa... |
import { IJob } from "./IJob";
export interface JobResponse{
accessToken: string;
job: IJob[];
} |
export * from 'next-server/amp'; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {Component, OnInit, TemplateRef} from '@angular/core';
import {ToastsService} from '../../service/toasts/toasts.service';
@Component({
selector: 'app-toasts',
templateUrl: './toasts.component.html',
styleUrls: ['./toasts.component.scss']
})
export class ToastsComponent implements OnInit {
constructor(
... |
import * as mongoose from 'mongoose';
import * as assert from 'assert';
import { User } from '../src/user';
describe('Remove data from database', () => {
let joe: any;
beforeEach((done) => {
joe = new User({ name: 'Joe' });
joe.save()
.then(() => {
assert(!joe.isNe... |
import * as fs from 'fs';
import { AWSError, S3 } from 'aws-sdk';
import { promisify } from 'util';
import { Response } from 'express';
import {
Injectable,
InternalServerErrorException,
NotFoundException,
OnModuleInit,
} from '@nestjs/common';
import { AppConfigService as ConfigService } from '../../ConfigModu... |
// Libraries
import React, {PureComponent} from 'react'
import {connect} from 'react-redux'
import {Link} from 'react-router'
// Components
import {ErrorHandling} from 'src/shared/decorators/errors'
import TemplatedCodeSnippet, {
transform,
} from 'src/shared/components/TemplatedCodeSnippet'
import BucketDropdown fr... |
export * from './icon-bi';
export * from './icon-fa';
export * from './icon-mat';
export * from './icons-bi';
export * from './icons-fa';
export * from './icons-mat';
export * from './spin';
export * from './theme';
export * from './tilt'; |
// *** 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";
/*... |
import { Err, None, Ok, Result, Some, Task } from "./index";
describe("Result.Ok", () => {
it("should return Result of Ok", () => {
let r = Ok("Things are good");
expect(r).toBeInstanceOf(Result);
expect(r.is_ok()).toBe(true);
expect(r.is_err()).toBe(false);
});
});
describe("Result.Err", () => {
... |
import React, { Suspense } from 'react';
import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom';
import { LinearProgress } from '@material-ui/core';
import { CustomRoute } from '../shared/components/CustomRoute/CustomRoute';
import { LOGIN_PATH, LoginRoute } from './Login.routes';
import { SIGNUP_PAT... |
import { Component, Host, h } from '@stencil/core';
@Component({
tag: 'designary-contact2',
styleUrl: 'designary-contact2.css',
shadow: true,
})
export class DesignaryContact2 {
render() {
return (
<Host>
<div class="sign-up">
<div class="flex-col">
<h1 class="title... |
import { Body, Controller, DefaultValuePipe, Delete, Get, Param, ParseIntPipe, Post, Put, Query, UploadedFile, UseInterceptors } from '@nestjs/common';
import { FileInterceptor, MulterModule } from '@nestjs/platform-express';
import console from 'console';
import { diskStorage } from 'multer';
import { Pagination } fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.