text stringlengths 10 953k |
|---|
import {
Construct,
Duration,
Stack,
StackProps,
} from '@aws-cdk/core';
import { Bucket, CorsRule, HttpMethods } from '@aws-cdk/aws-s3';
import {
CloudFrontAllowedCachedMethods,
CloudFrontAllowedMethods,
CloudFrontWebDistribution,
PriceClass,
ViewerProtocolPolicy,
} from '@aws-cdk/aws-cloudfront';
i... |
export * from './version1';
export { FilesClientFactory } from './build/FilesClientFactory'; |
// typings file |
import React from 'react';
import { mocked } from 'ts-jest/utils';
import { View, Text, TouchableOpacity } from 'react-native';
import {
render,
fireEvent,
act,
wait,
cleanup,
} from '@testing-library/react-native';
import AsyncStorage from '@react-native-community/async-storage';
import { CartProvider, useC... |
import { render } from "@testing-library/react";
import { Link } from "./Link";
describe("Link", () => {
it("should render successfully", () => {
const { baseElement } = render(<Link to="/test">Link</Link>);
expect(baseElement).toBeTruthy();
});
}); |
import { Injectable } from '@nestjs/common'
import { logger } from '@island.is/logging'
import { ApolloError } from 'apollo-server-express'
import type { Auth, User } from '@island.is/auth-nest-tools'
import { AuthMiddleware } from '@island.is/auth-nest-tools'
import { Locale } from '@island.is/shared/types'
import { ... |
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { invariant } from '../../jsutils/invariant';
import type { DocumentNode, OperationDefinitionNode } from '../../language/ast';
import { Kind } from '../../language/kinds';
import { parse } from '../../language/parser';
import { GraphQLSchema... |
// (C) 2021-2022 GoodData Corporation
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
import cx from "classnames";
import { injectIntl, WrappedComponentProps } from "react-intl";
import { IAnalyticalBackend, IAttributeElement, IAttributeMetadataObject } from "@gooddata/sdk-backend-spi"... |
import { CriticalDataError, TransformerPipe } from "@hovoh/ts-data-pipeline";
import { Tweet } from "../twitter/entities/tweet.entity";
import { LangCode } from "../labeling/language-detection-results.entity";
const supportedLanguages: LangCode[] = ["en"];
const isLangSupported = (tweetLang: string) => {
return Bool... |
/**
* Modelo das Hqs
*/
export interface Comic {
id: number,
digitalId: number,
title: string,
issueNumber: number,
variantDescription: string,
description: null,
modified: string,
isbn: string,
upc: string,
diamondCode: string,
ean: string,
issn: string,
format: s... |
import Chain from './Chain';
import Node from './Node';
import Feed from './Feed';
import FeedSet from './FeedSet';
import { Types, FeedMessage, timestamp } from '@dotstats/common';
export default class Aggregator {
private readonly chains = new Map<Types.ChainLabel, Chain>();
private readonly feeds = new FeedSet(... |
export declare const konmari: (value: {
[key: string]: any;
}, key: string, sparksJoy: boolean) => "☹️" | "😄";
export default konmari; |
/*
* 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 expect from '@kbn/expect';
import { FtrProviderContext } from '../../f... |
import {
async,
getTestBed,
TestBed
} from '@angular/core/testing';
import {
BaseRequestOptions,
Http,
Response,
ResponseOptions,
XHRBackend
} from '@angular/http';
import {
MockBackend,
MockConnection
} from '@angular/http/testing';
import { RestService } from './rest.servic... |
/* eslint-env jest */
import { sandbox } from './helpers'
import { createNext } from 'e2e-utils'
import { NextInstance } from 'test/lib/next-modes/base'
import { check } from 'next-test-utils'
describe('ReactRefreshLogBox', () => {
let next: NextInstance
beforeAll(async () => {
next = await createNext({
... |
import { instance, mock } from 'ts-mockito'
import { ContentCallback, ModelType } from '../../src'
import * as cms from '../../src'
test('TEST: ofPayload', () => {
const callback = cms.Callback.ofPayload('text$text1')
expect(callback).toBeInstanceOf(ContentCallback)
expect((callback as ContentCallback).id).toEqu... |
// Type definitions for qrcode.react 0.6
// Project: https://github.com/zpao/qrcode.react
// Definitions by: Mleko <https://github.com/mleko>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
/// <reference types="react" />
declare namespace qrcode {
interface QRCodeProps ... |
import * as renderer from 'react-test-renderer';
import { act, cleanup, fireEvent, render } from '@testing-library/react';
import { AppProvider } from '../../../providers';
import Button from '../../shared/Button';
import Intro from '../Intro';
import React from 'react';
import { getString } from '../../../../STRINGS... |
import { ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { json, urlencoded } from 'express';
import { AppModule } from './app.module';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import * as cookieParser from 'cookie-parser';
import { LoggingService } fr... |
export interface IProduct{
id: number;
Name: string;
Category: string;
Description: string;
ImgUrl: string;
Price: number;
}
export class Product{
id: number;
Name: string;
Category: string;
Description: string;
ImgUrl: string;
Price: number;
constructor(id: num... |
import { head } from '../src/Array'
import { left } from '../src/Either'
import { Option, option, some } from '../src/Option'
import { spy, trace, traceA, traceM } from '../src/Trace'
//
// spy
//
const foo = left<string, number>('foo')
const bar = spy(foo.mapLeft(s => s.length))
// tslint:disable-next-line: no-conso... |
import {Injectable, OnDestroy} from '@angular/core';
import {Observable, of} from "rxjs";
import {delay} from "rxjs/operators";
export class Contact {
constructor(public id: number, public name: string) { }
}
const CONTACTS: Contact[] = [
new Contact(21, 'Yasha'),
new Contact(22, 'Iulia'),
new Contact(23, 'K... |
import { Models } from 'itmat-commons';
import { db } from '../database/database';
export class UserLoginUtils {
constructor() {
this.serialiseUser = this.serialiseUser.bind(this);
this.deserialiseUser = this.deserialiseUser.bind(this);
}
public serialiseUser(user: Models.UserModels.IUser,... |
/** @format */
import { mount } from '@vue/test-utils';
import Checkbox from './Checkbox.vue';
import CheckboxGroup from './CheckboxGroup.vue';
describe('Checkbox.vue', () => {
let cb: any = null;
let labelEmpty: any = null;
let label1: any = null;
let label2: any = null;
let label3: any = null;
let color... |
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
import { Command, Arguments, Server, Permission, Emojis } from "../../definitions";
import { Message } from "discord.js";
import { emojis, userChangeEmoji } from "../../Shop";
export default <Command>{
run: (msg: Message, args: Arguments): void => {
if (args.length === 2) {
msg.channel.send(`${msg.author} Estes ... |
/// <reference types="multer" />
import { DocumentService } from './document.service';
import { CreateDocumentDto } from './dto/create-document.dto';
import { HelperService } from '../common/helper';
import { JwtService } from '@nestjs/jwt';
export declare class DocumentController {
private readonly documentService... |
import { enforce } from 'vest';
enforce(0).doesNotEndWith;
enforce.doesNotEndWith;
enforce(0).doesNotStartWith;
enforce.doesNotStartWith;
enforce(0).endsWith;
enforce.endsWith;
enforce(0).equals;
enforce.equals;
enforce(0).greaterThan;
enforce.greaterThan;
enforce(0).greaterThanOrEquals;
enforce.greaterThanOrEquals;
en... |
import React from "react";
import ReactDOM from "react-dom";
import { render } from "./test-utils";
import App from "../components/App";
import * as Renderer from "../renderer/renderScene";
import { reseed } from "../random";
import { UI, Pointer, Keyboard, KeyboardModifiers } from "./helpers/ui";
import {
getTransfo... |
require('./auto-refresh-menu.css');
import * as React from 'react';
import { Duration } from 'chronoshift';
import { Fn } from '../../../common/utils/general/general';
import { Stage, DataSource } from '../../../common/models/index';
import { STRINGS } from '../../config/constants';
import { BubbleMenu } from '../bubb... |
import iCal from 'ical'
import iCalGenerator from 'ical-generator';
import { getDates } from './getDates';
import { getDescription } from './getDescription';
import { parseSummary } from './parseSummary';
import { generateEvent } from './generateEvent'
import dayjs from 'dayjs';
export const regenerateICal = (icsFileC... |
import * as React from "react";
import { renderLocation, ResultTableProps, zebraStripe, className, nextSortDirection } from "./result-table-utils";
import { RawTableResultSet, vscode } from "./results";
import { ResultValue } from "../adapt";
import { SortDirection, RAW_RESULTS_LIMIT, RawResultsSortState } from "../int... |
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerEx... |
import { getCustomRepository } from "typeorm";
import { TagsRepositories } from "../repositories/TagsRepositories";
import { classToPlain } from "class-transformer";
class ListTagService {
async execute() {
const tagsRepositories = getCustomRepository(TagsRepositories);
const tags = await tagsRepositories.f... |
/// <reference path="tsd.d.ts" />
import {expect} from 'chai';
import {DriverState} from 'omnisharp-client';
import {Observable} from 'rxjs';
import {SolutionManager} from '../lib/server/solution-manager';
import {setupFeature} from './test-helpers';
describe('OmniSharp Atom', () => {
setupFeature([]);
descri... |
/// <reference path="commander/commander.d.ts" />
/// <reference path="node/node.d.ts" />
/// <reference path="es6-promise/es6-promise.d.ts" /> |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-chapter11',
templateUrl: './chapter11.component.html',
styleUrls: []
})
export class Chapter11Component implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import * as globalStorybookConfig from '../.storybook/decorators'; // path of your preview.js file
import { setGlobalConfig } from '@storybook/testing-react';
setGlobalConfig(globalStorybookConfig);
import { server } from './mocks/api/server';
// Establish API mocking before all tests.
beforeAll(() => server.listen())... |
import React from 'react';
import { Meta, Story } from '@storybook/react';
import { Type } from '../src';
import { sizes } from '../src/constants/sizes';
import { weights } from '../src/constants/weights';
import type { Size, Weight } from '../src/types';
interface Props {
readonly size: Size;
readonly weight: ... |
import Helper from './Helper';
/**
* Loader
*
* A class for loading Models and Controllers
*
* @author Gustavo Vilas Boas
* @since 12-2016
*/
class Loader {
/**
* __controllers
*
* @private
* @type {Array<string>}
*/
private __controllers: Array<string>;
/**
* __mo... |
/*
* 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 { createMockServer } from '../../../test_helpers/create_mock_server';
... |
import { Component, OnInit, Output, EventEmitter, ViewChild } from '@angular/core';
import { ClipsSizesService } from './clips-sizes.service';
import { ClipsSelectorComponent } from '../clips-selector/clips-selector.component';
@Component({
selector: 'clips-sizes-selector',
styleUrls: ['clips-sizes-selector.compon... |
/* Autogenerated by @sbb-esta/angular-icons schematics */
// tslint:disable
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
@Component({
selector: 'svg[sbbIconCloudSnowflakeSmall]',
template: `
<svg:path
fill="none"
stroke="#000"
d="M16.02 14.384c2.145-.702 1.878... |
import React, { useState, Fragment } from 'react';
import { Dialog } from '../../Dialog';
import { Button } from '../../Button';
export default {
component: Dialog,
title: 'Components/Dialog',
};
export const Basic = () => {
const [showDialog, setShowDialog] = useState(false);
return (
<Fragment>
<Button
... |
import { GangCommandWrapper } from './GangCommandWrapper';
import { GangEventTypes } from './GangEventTypes';
export interface IGangCommandEvent {
type: GangEventTypes.Command;
wrapper: GangCommandWrapper<unknown>;
} |
import { readFileSync } from 'fs'
import * as path from 'path'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { compilation } from 'webpack'
import { getBabelError } from './parseBabel'
import { getCssError } from './parseCss'
import { getScssError } from './parseScss'
import { SimpleWebpackError ... |
import { Component } from '@angular/core';
@Component({
selector: 'docs-angular-2',
styleUrls: ['angular-2.component.scss'],
templateUrl: 'angular-2.component.html',
})
export class Angular2Component {
} |
import React from 'react'
import {storiesOf} from '@storybook/react'
import Menu from './menu'
import MenuItem from './menuItem'
import SubMenu from './subMenu'
const defaultIcon = () => (
<Menu>
<MenuItem>菜单0</MenuItem>
<MenuItem disabled>菜单1</MenuItem>
<MenuItem>菜单2</MenuItem>
<SubMenu t... |
// Project Type
export enum ProjectStatus {
Active,
Finished,
}
export class Project {
constructor(
public id: string,
public title: string,
public description: string,
public people: number,
public status: ProjectStatus
) {}
} |
import { Account } from "../../types";
import { Transaction } from "./types";
import BigNumber from "bignumber.js";
import { simulate } from "./api/Cosmos";
import { getEnv } from "../../env";
import { buildTransaction, postBuildTransaction } from "./js-buildTransaction";
import { getMaxEstimatedBalance } from "./logic... |
/*
* 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 ... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import {
Trophy,
TotalStarTrophy,
TotalCommitTrophy,
TotalFollowerTrophy,
TotalIssueTrophy,
TotalPullRequestTrophy,
TotalRepositoryTrophy,
MultipleLangTrophy,
LongTimeAccountTrophy,
AncientAccountTrophy,
Joined2020Trophy,
AllSuperRankTrophy,
} from "./trophies.ts";
import { UserInfo } from "./gi... |
import { UISchemaElement } from '@jsonforms/core';
import { inject } from '../../config/vue';
import merge from 'lodash/merge';
import { defaultStyles } from './defaultStyles';
const createEmptyStyles = (): Styles => ({
control: {},
verticalLayout: {},
horizontalLayout: {},
group: {},
arrayList: {},
label:... |
/*
* 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 { User } from '../model/user';
export const USERS: User[] = [
{
id: '11', name: 'Sanket', email: 'sanket@exanmple.org', phone: '057698494', role: 'Exec',
username: 'sanket', password: 'ibm16'
},
{
id: '12', name: 'Paul', email: 'edwin@exanmple.org', phone: '057698494', role: 'Customer', custom... |
import { Construct } from "./construct-compat";
import { Token } from "./token";
import { RosRefElement } from "./ros-element";
import { Fn } from "./ros-fn";
export interface RosMappingProps {
/**
* Mapping of key to a set of corresponding set of named values.
* The key identifies a map of name-value pairs an... |
import * as React from "react"
import MuiContainer from "@mui/material/Container"
// import { ContainerProps as MuiContainerProps } from "@mui/material"
// export interface ContainerProps extends MuiContainerProps {}
export default function Container({ children, ...props }: any) {
return (
<MuiContainer maxWidt... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------------------------------------------------... |
import React from 'react'
import {
useBestSeller,
useDetailsImages,
useSku,
} from '@vtex/gatsby-theme-store'
import { Divider, ProductDetailsReference } from '@vtex/store-ui'
import { FormattedMessage } from 'react-intl'
import type { FC } from 'react'
import { useAsyncProduct } from '../../useAsyncProduct'
imp... |
import '../module-resolver-helper';
import { assert } from 'chai';
import { initVcxTestMode, shouldThrow } from 'helpers/utils';
import { shutdownVcx, VCXCode, Wallet } from 'src';
const WALLET_RECORD = {
id: 'RecordId',
tags_json: {},
type_: 'TestType',
value: 'RecordValue',
};
const OPTIONS = {
retrieveTa... |
import * as bodyParser from 'body-parser';
import cors from 'cors';
import express from 'express';
import * as openapi from 'express-openapi';
import * as fs from 'fs';
import * as http from 'http';
import * as https from 'https';
import { inject, injectable } from 'inversify';
import * as yaml from 'js-yaml';
import *... |
import { GetStaticProps } from "next";
import Stripe from "stripe";
import Link from 'next/link';
import stripeConfig from '../config/stripe';
interface Props {
skus: Stripe.Sku[];
}
export const getStaticProps: GetStaticProps = async () => {
const stripe = new Stripe(stripeConfig.secretKey, {
apiVersion: '2... |
declare module 'passport-google-oauth20'; |
/**
* @format
* @file BytedBeauty byted-beauty
* @author 由 fe6 自动生成
*/
import { IIconProps, IconWrapper } from '../runtime';
// 获取 SVG 的 HTML 字符串
export const getIconBytedBeautySvgHtml = (props: IIconProps) =>
`<?xml version="1.0" encoding="UTF-8"?>
<svg width="${props.size}" height="${props.size}" viewBox="0 0... |
import { Component, ViewChild} from '@angular/core';
import { WeewazeDataService } from '../weewaze-data.service';
import { SideBarComponent } from '../side-bar/side-bar.component';
import { Point } from '../point';
@Component({
selector: 'app-homepage',
templateUrl: './homepage.component.html',
styleUrls: ['./h... |
import { any } from 'ramda';
const regexes = [
/Android/i,
/webOS/i,
/iPhone/i,
/iPad/i,
/iPod/i,
/BlackBerry/i,
/Windows Phone/i,
];
/**
* @see https://stackoverflow.com/questions/11381673/detecting-a-mobile-browser
*/
export default (): boolean => any((regex) => regex.test(navigator.userAgent))(rege... |
import { element } from 'base/base'
import styled from 'styled-components'
export default element
.config({ name: 'Heading' })
.attrs({ tag: 'h1', contentAlignX: 'left' })
.theme((t) => ({
// textAlign: 'center',
marginTop: t.spacing.reset,
marginBottom: t.spacing.reset,
fontFamily: t.fontFamily.... |
/*!
* Copyright (c) 2017-Present, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required ... |
import { reactive } from 'vue'
import jp from 'jsonpath'
const endpoint = import.meta.env.VITE_APP_LOCAL_API
export const SVELTEURL = import.meta.env.VITE_APP_SVELTE_URL
export const PAGESURL = import.meta.env.VITE_APP_PAGES_URL
export const paths = {
templates : '/templates',
uikits: '/uikits',
projects:... |
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
//
// Copyright 2016-2018 Pascal ECHEMANN.
//
// 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.apac... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-toolbar',
templateUrl: 'toolbar.component.html',
})
export class ToolbarComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import * as assert from 'assert';
import { Stats } from '@nodelib/fs.macchiato';
import * as fsStat from '@nodelib/fs.stat';
import * as fsWalk from '@nodelib/fs.walk';
import * as sinon from 'sinon';
import Settings, { Options } from '../settings';
import * as tests from '../tests';
import { Entry, ErrnoException, R... |
import { Injector } from '@angular/core';
import { distinctUntilChanged, takeUntil } from 'rxjs/operators';
import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
import { InjectField } from "c... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RecorderComponent } from './recorder.component';
describe('RecorderComponent', () => {
let component: RecorderComponent;
let fixture: ComponentFixture<RecorderComponent>;
beforeEach(async () => {
await TestBed.configureTestingModul... |
import { Component } from '@angular/core';
import { Platform, NavController, Events } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { Pages } from './interfaces/pages';
import { GetInfosService } from './services... |
import { LOGIN_TEST } from '@/api/TEST/LoginTest'
import { list } from '@/api/strategies/StrategyApi'
export async function Strategies() {
const promise = new Promise<any>((resolve, reject) => {
const token = LOGIN_TEST()
resolve(token)
}).then(async value => {
const data_strategies = await list(value)... |
export const INCREMENT_COUNTER = 'INCREMENT_COUNTER';
export const DECREMENT_COUNTER = 'DECREMENT_COUNTER';
export type CounterType = {
count: number;
};
export type IncrementAction = {
type: typeof INCREMENT_COUNTER;
};
export type DecrementAction = {
type: typeof DECREMENT_COUNTER;
};
export type CounterAct... |
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {customElement} from 'lit-element';
import {TabBase} from './mwc-tab-base';
import {styles} from './mwc-tab.css';
export {TabInteractionEventDetail} from './mwc-tab-base';
declare global {
interface HTMLElementTagNameMap... |
import React, { useMemo } from "react";
import { AxiosError } from "axios";
import { useQuery } from "react-query";
import { api } from "../api";
import { SelectField, SelectFieldProps } from "@amplication/design-system";
import { PullRequests } from "../api/pullRequests/PullRequests";
type Data = PullRequests[];
typ... |
import { Overlay } from './Overlay'
describe('Overlay test', () => {
it('should dummy test', () => {
const a = new Overlay({})
console.log({ a })
expect(true).toBeTruthy()
})
}) |
import React from 'react';
export type Meta<Values extends Record<string, any>> = {
[K in keyof Values]: {
change: boolean;
blur: boolean;
};
}
export type ErrorType = string | typeof Error_False | typeof Error_Keep | typeof Error_Reset;
export type ErrorsResult<Values extends Record<string, ... |
import { Prisma } from "@db/index"
import superagent from "superagent"
import { ACCOUNT_API_URL } from ".."
export const getAccount = async (args: Prisma.AccountFindUniqueArgs) => {
const response = await superagent.post(`${ACCOUNT_API_URL}/get`).send({ data: args })
return response.body.data
} |
import {remote} from 'electron';
// TODO: Should be updates to new async API https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31
import {connect as reduxConnect, Options} from 'react-redux';
import {basename} from 'path';
// patching Module._load
// so plugins can `require` them withou... |
// @module: commonjs
// @target: ES5
// @filename: m1.ts
export default class Decl {
}
export interface Decl {
p1: number;
p2: number;
}
export namespace Decl {
interface I {
}
}
// @filename: m2.ts
import Entity from "m1"
Entity();
var x: Entity;
var y: Entity.I;
var z = new Entity();
var sum = z... |
import { Component } from '@angular/core';
@Component({
selector: 'app-npm',
templateUrl: './npm.component.html',
styleUrls: ['./npm.component.css']
})
export class NpmComponent {
title = 'NPM';
image = 'assets/images/npm.png';
documentation = 'https://docs.npmjs.com/getting-started/what-is-npm';
} |
import { Model } from '../model/model.service';
import { User } from '../user/user.model';
import { Api } from '../api/api.service';
import { GamePlaylistGame } from './game/game.model';
export class GamePlaylist extends Model {
user_id: number;
user: User;
name: string;
slug: string;
is_secret: boolean;
added_o... |
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { NbAuthSimpleToken, NbAuthTokenClass } from '../../services';
import { NbAuthStrategyOptions } from '../auth-strategy-options';
import { getDeepFromObject... |
/**
* Defines the possible reasons a recognition result might be generated.
* @class ResultReason
*/
export declare enum ResultReason {
/**
* Indicates speech could not be recognized. More details
* can be found in the NoMatchDetails object.
* @member ResultReason.NoMatch
*/
NoMatch = 0,
... |
import Slider from 'react-rangeslider';
import * as React from 'react';
const value = 80;
const handleChange = (value: number) => {
console.log('changed to', value);
};
const slider = <Slider
disabled={false}
max={100}
min={0}
orientation="vertical"
reverse={false}
step={1}
toolti... |
/**
*
* Starts the devServer
*
* @param {Object} compiler - a webpack compiler
* @param {Object} devServerCliOptions - dev server CLI options
* @param {Object} cliOptions - CLI options
* @param {Object} logger - logger
*
* @returns {Object[]} array of resulting servers
*/
export default function startDevServe... |
import IPaymentStrategy from '../Configuration/IPaymentStrategy';
class PaypalStrategy implements IPaymentStrategy {
pay(): void {
console.log('I Implement the Paypal Strategy right now....');
return;
}
}
export default PaypalStrategy; |
import React, { useEffect } from 'react'
import { useDispatch } from 'react-redux';
import { pageLoaded } from '../application/actions/ui';
import './App.scss'
import Navigation from './Navigation';
import Content from './Content';
function App() {
const dispatch = useDispatch()
useEffect(() => {
dispatch(pag... |
// *** WARNING: this file was generated by pulumigen. ***
// *** 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";
/**
* MutatingWe... |
import {
Body,
Controller,
Delete,
Get,
Param,
Post,
Put,
Query,
UseGuards,
UsePipes,
ValidationPipe,
} from '@nestjs/common';
import { ArticleService } from '@app/article/article.service';
import { AuthGuard } from '@app/user/guards/auth.guard';
import { UserEntity } from '@app/user/user.entity';... |
import React from 'react'
import { AppState } from 'store'
import { connect } from 'react-redux'
import styled from 'styled-components'
import Task from 'components/Common/Task'
import { ITaskState } from 'store/tasks/types'
import { dragAndDrop } from 'store/tasks/actions'
import { getKanbanOption } from 'store/show/s... |
import type { NextPage } from "next";
import styled from "styled-components";
import { Footer, Seo, Main, Header, CountryList } from "components";
const Home: NextPage = () => {
return (
<StyledDoc>
<Seo />
<Main>
<Header />
<CountryList />
</Main>
<Footer />
</StyledD... |
import { Request, Response } from "express";
import { slotMachineRewardRules } from "../helpers";
import { SlotMachine } from "../interfaces/slot-machine.interface";
// get result of slot machine
const resultOfSlotMachine = async (req: Request, res: Response) => {
const reels: SlotMachine = req.body;
// check slot... |
/**
* Predicates used for Query and Expression operators.
*/
import { computeValue, Options } from "../core";
import { Query } from "../query";
import {
AnyVal,
BsonType,
Callback,
ensureArray,
flatten,
getType,
inArray,
intersection,
isArray,
isBoolean,
isDate,
isEmpty,
isEqual,
isNil,
... |
namespace Ally
{
/**
* The controller for the widget that lets members view and vote on active polls
*/
export class ActivePollsController implements ng.IController
{
static $inject = ["$http", "SiteInfo", "$timeout", "$rootScope"];
polls: any[];
isLoading: boolea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.