text stringlengths 10 953k |
|---|
// *** 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 * as inputs from "../../types/input";
import * as outputs from "../../types/output";
import * as utilities from "..... |
import {Directionality} from '@angular/cdk/bidi';
import {DOWN_ARROW, ENTER, ESCAPE, SPACE, TAB, UP_ARROW} from '@angular/cdk/keycodes';
import {Overlay, OverlayContainer} from '@angular/cdk/overlay';
import {_supportsShadowDom} from '@angular/cdk/platform';
import {ScrollDispatcher} from '@angular/cdk/scrolling';
impo... |
version https://git-lfs.github.com/spec/v1
oid sha256:91c80c87111e7dcd303c2b898c887deb30cc86411d01d75e335658cc8e0b0605
size 316216 |
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* 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 ... |
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { Strategy, ExtractJwt, VerifiedCallback } from 'passport-jwt';
import { JwtPayload } from '../auth.interface';
import { UserService } from '../../user/user.service';
@Injectable()
export cla... |
import { Injectable } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { from, Observable, of } from 'rxjs';
import { User } from 'src/user/models/user.interface';
const bcrypt = require('bcrypt');
@Injectable()
export class AuthService {
constructor(
private readonly jwtServi... |
import previousDates from "./previousDates.json";
import { getCttIds } from "../../functions/src/scraper";
import fs from "fs/promises";
import path from "path";
async function getPreviousCttIds() {
const allCttIds: { cttId: string; source: string }[] = [];
for (const date of previousDates) {
const wait = Mat... |
import { JSONSerializable } from '../../util/json';
import { ParamChange as ParamChange_pb } from '@terra-money/terra.proto/cosmos/params/v1beta1/params';
export declare class ParamChanges extends JSONSerializable<ParamChanges.Amino, ParamChanges.Data, ParamChanges.Proto> {
paramChanges: ParamChange[];
construc... |
import * as React from "react";
import { Cell, Column } from "react-table";
import Division from "types/division";
import Team from "types/team";
import { TeamStanding } from "types/standings";
import { Flex, Link, Tooltip } from "@chakra-ui/react";
import NextLink from "next/link";
import Table from "components/Tabl... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr_CA" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DiceStake</source>
<translation>Au sujet de DiceStake</translation>
</message>
<message>
... |
import { Component, HostBinding, Input, OnChanges, Optional, SimpleChanges } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import { counter, CounterParams, Styles } from '@fortawesome/fontawesome-svg-core';
import { faWarnIfParentNotExist } from '../shared/errors/warn-if-pare... |
import path from "path"; // path
import express from "express"; // express
import session from "express-session"; // express session
import flash from "express-flash";
import bodyParser from "body-parser"; // reads http body for POST
import passport from "passport"; // authentication
import expressValidator from ... |
import Button from 'components/button'
import PageHeader from 'components/pageheader'
import Project from 'components/project'
import Page from 'components/page'
import styles from './index.module.scss'
const Home = (): JSX.Element => (
<Page>
<PageHeader
title="Hi, my name is Samuel."
description="I... |
import { Card } from '../../../interfaces'
import Set from '../Ultra Prism'
const card: Card = {
name: {
en: "Shaymin",
fr: "Shaymin",
es: "Shaymin",
it: "Shaymin",
pt: "Shaymin",
de: "Shaymin"
},
illustrator: "kirisAki",
rarity: "Rare",
category: "Pokemon",
set: Set,
dexId: [
492,
],
hp: 70,
... |
/**
* @license
* Copyright 2020 Dynatrace LLC
* 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 { usingTypography, usingColors } from 'src/hooks/theme';
import styled from 'styled-components';
type TagContainerProps = {
selected?: boolean;
onClick?: () => void;
};
export const TagContainer = styled.div<TagContainerProps>`
display: inline-block;
padding: 0.25em 0.5em;
margin-right: 10px;
margi... |
/* eslint-disable max-classes-per-file */
import 'core-js/features/array/from'
type Class = new (...args: any[]) => any
/**
* DOM attachment helper
* This will inject some functions to help attach a component to DOM elements
*
* Examples:
*
* Basic inject:
* ```ts
* class MyClass extends Factory() {
* con... |
import { compare, genSalt, hash } from "bcrypt";
import * as config from "config";
import { getMessage } from "utils";
import { BadRequestException, Injectable } from "@nestjs/common";
import { JwtService } from "@nestjs/jwt";
import { InjectRepository } from "@nestjs/typeorm";
import { SignInDto, UserDto } from "./u... |
<TS language="fr" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Cliquer à droite pour modifier l'adresse ou l'étiquette</translation>
</message>
<message>
<source>Create a new address</source>
... |
import React, { HTMLAttributes } from 'react';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { UI_DECIMALS_DISPLAYED_PRICE_ETH } from '../../../common/constants';
import { changeMarket, goToHome } from '../../../store/actions';
import { getBaseToken, getCurrencyPair, getMarkets ... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
/* With bottom tabs */
/* const routes: Routes = [
{ path: '', loadChildren: './pages/menu/menu.module#MenuPageModule'},
]; */
/* Without bottom tabs */
const routes: Routes = [
{ path: 'home', loadChildren: () => im... |
// Copyright 2017-2021 @axiasolar-js/typegen authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { generateDefaultConsts } from './consts';
export { generateDefaultErrors } from './errors';
export { generateDefaultEvents } from './events';
export { generateDefaultInterface } from './interfaceRegistry'... |
import {
FiMenu,
} from 'react-icons/fi';
import {
Container,
} from '../../styles/components/menu';
interface MenuProps {
handleOpen(): void;
}
export const Menu: React.FC<MenuProps> = ({ handleOpen }) => {
return (
<Container>
<button type="button" onClick={handleOpen}>
<FiMenu size={20} co... |
import React from "react";
import SpriteIcon from "../SpriteIcon";
interface MoreButtonProps {
onClick(): void;
}
const MoreButton: React.FC<MoreButtonProps> = (props) => {
return (
<div className="header-btn more-button svgOnHover" onClick={props.onClick}>
<SpriteIcon name="more" className="active" />
... |
import React from "react";
import { NextFC } from "next";
import Blog from "components/Blog";
import NotFoundPage from "components/NotFoundPage";
import { useHotReload } from "hooks/useHotReload";
export interface BlogProps {
blog: string | null;
}
const getBlog = (): Promise<string | null> =>
import("../../blog... |
import { BaseValidator } from './basevalidator';
export * from 'class-validator';
export * from './decorators';
export { BaseValidator }; |
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as github from '@actions/github';
import * as input from './input';
import { CheckRunner } from './check';
import { Err, Ok, Result } from './result';
async function version(cmd: string, args?: string[]): Promise<string> {
args... |
import React, {
HTMLAttributes,
ReactElement,
useEffect,
useState,
} from "react";
import cn from "classnames";
import { Markdown as MarkdownRenderer } from "react-marked-renderer";
import { getLanguage, highlightCode } from "components/CodeBlock/utils";
import styles from "./Markdown.module.scss";
import { r... |
import styled from "@emotion/styled";
import Link from "next/link";
import React, { useEffect } from "react";
import { Flex, Heading } from "rebass";
import BlankArea from "components/blank-area";
import SectionLayout from "layouts/section";
import { useWindowWidth } from "utils/hooks/use-window-width";
import { Landi... |
import { Component, OnInit } from '@angular/core';
import { FormArray, FormBuilder, FormControl, FormGroup } from '@angular/forms';
@Component({
templateUrl: './simple.component.html',
styles: [
]
})
export class SimpleComponent {
/*
form: FormGroup
name: FormControl
nameValue: string
con... |
import { TwitchApiCallType } from 'twitch-api-call';
import { extractUserId, UserIdResolvable } from '../../../Toolkit/UserTools';
import { BaseApi } from '../../BaseApi';
import { HelixPaginatedRequest } from '../HelixPaginatedRequest';
import { HelixPaginatedResult } from '../HelixPaginatedResult';
import { HelixPagi... |
export enum Environment {
HOME = 'home',
COURSE = 'course',
LIBRARY = 'library',
DOWNLOADS = 'downloads',
USER = 'user',
SETTINGS = 'settings',
ONBOARDING = 'onboarding',
NOTIFICATION = 'notification'
}
export enum ErrorCode {
ERR_DOWNLOAD_FAILED = 'ERR_DOWNLOAD_FAILED'
}
export en... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styles: []
})
export class AppComponent {
title = 'app';
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";
/*... |
import * as Promises from "../promises";
import TemplateEngine from "../templating/engine";
import { Logger, createLogger } from "../logger";
import { AbstractMod, ModParameters, ModResult, ModStatus } from "../mod";
import Context from "../context";
import { Executor } from "../executors";
const LOGGER: Logger = crea... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as React from "react";
import { CarbonIconProps } from "../../";
declare const ZoomReset24: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default ZoomReset24; |
import { RawCommandData, RawCommandDataWithName, RawInteractionCommandData } from "../interfaces/CommandData";
import { CommandTypes } from "./CommandTypes";
export declare type CommandDataUnion<T extends CommandTypes = CommandTypes> = T extends "basicCommand" ? RawCommandDataWithName : T extends 'interactionCommand' ?... |
import { Component, Input } from "@angular/core";
import { decades } from "../../services/catalog.service";
@Component({
selector: "search-timeline",
templateUrl: "./search-timeline.component.html",
styleUrls: ["./search-timeline.component.css"],
})
export class SearchTimelineComponent {
timelineRange: number[... |
import { Ionicons, MaterialCommunityIcons, FontAwesome5 } from '@expo/vector-icons';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createStackNavigator } from '@react-navigation/stack';
import * as React from 'react';
import Colors from '../constants/Colors';
import useColorScheme... |
import { Command, CommandoClient, CommandoMessage } from 'discord.js-commando';
import { createEmbed } from '../../lib/zaishen-quest';
export = class ZaishenQuestCommand extends Command {
constructor(client: CommandoClient) {
super(client, {
name: 'zaishen-quest',
aliases: ['zq'],
... |
// *** 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 { input as inputs, output as outputs, enums } from "./types";
import * as utilities from "./utiliti... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Card } from '../../model/Card';
/*
Generated class for the DataProvider provider.
See https://angular.io/guide/dependency-injection for more info on providers
and Angular DI.
*/
@Injectable()
export class Car... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import expect = require('expect.js');
import {
uuid
} from '@jupyterlab/coreutils';
import {
KernelMessage, Session
} from '@jupyterlab/services';
import {
Signal
} from '@phosphor/signaling';
import {
Pa... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import cors from 'cors';
import express, { Application } from 'express';
import helmet from 'helmet';
import { errorHandler as morganErrorHandler, successHandler } from './config/morgan';
import anyErrorHandler from './middlewares/anyError';
import { errorConverte... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CountryMeasuresPopupComponent } from './country-measures-popup.component';
describe('CountryMeasuresPopupComponent', () => {
let component: CountryMeasuresPopupComponent;
let fixture: ComponentFixture<CountryMeasuresPopupComponent>... |
/// <reference path="Vector.ts" />
/// <reference path="GeometricObject.ts" />
module RT {
// infinite right cylinder, let's not get too complicated
export class Cylinder extends SimpleGeometricObject {
constructor(private axis: Ray, private radius: number) {
super();
}
in... |
import React from 'react'
import { FlexWrap } from 'utopia-api'
import { ControlStatus, ControlStyles, getControlStyles } from '../../../common/control-status'
import { useInspectorLayoutInfo, useInspectorStyleInfo } from '../../../common/property-path-hooks'
import { UIGridRow } from '../../../widgets/ui-grid-row'
imp... |
export default interface User {
_id: string;
email: string;
password: string;
} |
export interface ClassOptions{
/**
* Class options
*/
// The padding that needs to be added to the address bar on iOS and Android to do a proper cutout of the the viewport.
addressBarShadowPadding?: number;
// If no baseline image is found during the comparison the image is automatically copied to the bas... |
import { useHover as useHoverWeb, HoverProps } from "@react-aria/interactions";
import { useEffect } from "react";
import { attachEventHandlersOnRef } from "@react-native-aria/utils";
export const useHover = (props: HoverProps, ref: any) => {
let params = useHoverWeb(props);
useEffect(() => {
attachEventHandle... |
import { observable } from 'mobx';
export class Store {
@observable timer: number = 0;
resetTimer() {
this.timer = 0;
}
constructor() {
setInterval(() => {
this.timer += 1;
}, 1000);
}
} |
import tape from 'tape'
import Common, { Chain, Hardfork } from '@ethereumjs/common'
import {
AccessListEIP2930Transaction,
AccessListEIP2930TxData,
Transaction,
TxData,
} from '@ethereumjs/tx'
import { Block, BlockData } from '@ethereumjs/block'
tape('[Types]', function (t) {
t.test('should ensure that the ... |
'use strict';
import { CancellationTokenSource, commands, QuickPickItem, window } from 'vscode';
import { Commands } from '../commands';
import { configuration } from '../configuration';
import { GlyphChars } from '../constants';
import { Container } from '../container';
import { GitLog, GitLogCommit, GitRepoSearchBy, ... |
import React, { Suspense } from 'react';
import './App.css';
import ExampleComponent from './ExampleComponent';
function App() {
return (
// Even though this is not an SSR app, if it was, Suspense would have worked as well
<Suspense fallback={<p>Loading...</p>}>
<div className="App">
<ExampleCo... |
<TS language="en_US" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Right-click to edit address or label</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
import React from 'react'
const Glass8: React.FC = () => {
return (
<g
id="Glasses/-8"
stroke="none"
strokeWidth="1"
fill="none"
fillRule="evenodd"
strokeLinecap="round"
strokeLinejoin="round"
>
<g
id="Group"
transform="translate(293.000000, 475... |
import React, { FunctionComponent } from "react"
import "./style.css"
export const Footer: FunctionComponent = () => {
const currentYear = new Date().getFullYear()
return (
<footer className="footer">
<a href="https://newline.co">Newline.co</a>
<br />
{currentYear}
</footer>
)
} |
import * as fs from "fs";
import * as path from "path";
import * as toolrunner from "@actions/exec/lib/toolrunner";
import { IHeaders } from "@actions/http-client/interfaces";
import { default as deepEqual } from "fast-deep-equal";
import { default as queryString } from "query-string";
import * as semver from "semver"... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import * as assert from "assert";
import {
ICreateBlobParams,
ICreateBlobResponse,
ICreateCommitParams,
ICreateRefParams,
ICreateTreeParams,
} from "@fluidframework/gitresources";
import {
IC... |
import { Page } from 'puppeteer';
import { waitForText } from 'utils/waits-utils';
import InputNumber from 'app/element/input-number';
import Modal from './modal';
const title = 'Create Review Set';
export default class CohortReviewModal extends Modal {
constructor(page: Page, xpath?: string) {
super(page, xpat... |
import { Lesson } from "./../model/lesson";
import { Component, Input, OnInit } from "@angular/core";
@Component({
selector: "lesson",
templateUrl: "./lesson.component.html",
styleUrls: ["./lesson.component.css"],
})
export class LessonComponent implements OnInit {
@Input()
lesson: Lesson;
constructor() {... |
import { CoerceElement } from './coerce-element';
describe('CoerceElement', () => {
it('should create an instance', () => {
expect(new CoerceElement()).toBeTruthy();
});
}); |
import {Game, PlayerName, Table, Tournament} from "../../data-types/tournament-data-types";
import Action from "../actions/tournament-actions";
import ActionTypes from "../action-types/tournament-action-types";
export const initialState: Tournament = {
info: {
title: "",
location: "",
start: "",
end:... |
import React from "react";
import { useApolloClient } from "@apollo/react-hooks";
import { useRouter } from "@webiny/react-router";
import { FormEditorProvider } from "./Context";
import FormEditor from "./FormEditor";
const FormEditorApp: React.FC = () => {
const { params } = useRouter();
const client = useAp... |
import {
Dispatch,
memo,
ReactNode,
SetStateAction,
Suspense,
useCallback,
useState,
} from "react";
import { useFullscreen } from "../lib/hooks";
import CurrentTab from "./CurrentTab";
import Graph from "./Graph";
import GraphWrapper from "./GraphWrapper";
import Loading from "./Loading";
import styles ... |
// 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 { Injectable, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { User } from './user.entity';
@Injectable()
export class UsersService {
constructor(
@InjectRepository(User)
private usersRepository: Repository<U... |
/* eslint-disable */
// @ts-ignore
const shelljs = require("shelljs");
shelljs.cd("../..");
shelljs.exec('npm install --save-dev @babel/core @babel/cli @babel/preset-env');
shelljs.exec('npm install --save @babel/polyfill');
shelljs.exec('npm install --save-dev @babel/preset-react');
shelljs.exec('npm install --save-... |
import { Component, ChangeDetectionStrategy, OnInit } from "@angular/core";
import { LoginService } from "../login.service";
@Component({
selector: "gt-login-fido2",
templateUrl: "./login-fido2.component.html",
styleUrls: ["./login-fido2.component.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
exp... |
import * as React from 'react'
import { makeStyles } from '@material-ui/core/styles'
import {
List,
ListItem,
ListItemIcon,
ListItemSecondaryAction,
ListItemText,
ListSubheader,
Typography,
} from '@material-ui/core'
import { Emoji } from '@popup/components/Emoji'
import { effectLayoutStyles } from '@pop... |
import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { CommentsEntity } from "src/entities/comments.entity";
import { PostsEntity } from "src/entities/posts.entity";
import { CommentsController } from "./comments.controller";
import { CommentsService } from "./comments.servic... |
import {Message, MessageId, MessageName, MessageType} from './message';
import {Event} from './event';
import {Result} from './result';
/**
* An abstract implementation of a command.
*/
export abstract class Command<B = any> implements Message<B> {
readonly type: MessageType = MessageType.command
/* istanbul i... |
import { createMatrix } from './utils';
export function solvePart1(input: string[]): number {
return find(createMatrix(input));
}
export function solvePart2(input: string[]) {
const matrix = createMatrix(input);
const size = matrix.length;
return solve(
size * 5,
(y, x) =>
((matrix[y % size][x %... |
export interface restauranteI{
nombre:string;
direccion:string;
telefono:string;
aforo:number;
} |
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-use-before-define */
import {
JSXComponent, Component, ComponentBindings,
OneWay, Fragment, Slot, Consumer, InternalState, Effect,
} from '@devextreme-generator/de... |
import {Errors} from '../../constants';
import {filterSelectList, getTotalPage, splitList} from './ListHelper';
describe('ListHelper', () => {
test('getTotalPage', async () => {
const totalCase1 = getTotalPage(17, 10);
const totalCase2 = getTotalPage(30, 10);
const totalCase3 = () => getTotalPage(0, 10);... |
/** @jsx jsx */
import { Editor, Transforms } from '@naripok/slate'
import { jsx } from '../../..'
export const run = editor => {
Transforms.splitNodes(editor, {
match: n => Editor.isBlock(editor, n),
always: true,
})
}
export const input = (
<editor>
<block>
word
<inline>hyperlink</inlin... |
import { letters, status } from './constants'
import { useEffect, useState } from 'react'
import { EndGameModal } from './components/EndGameModal'
import { InfoModal } from './components/InfoModal'
import { Keyboard } from './components/Keyboard'
import { SettingsModal } from './components/SettingsModal'
import answer... |
import * as securityService from '../modules/securityService';
import * as storage from '../modules/storage';
import * as operationActions from './operationActionCreators';
import * as ActionTypes from './actionTypes';
import { consoleLogWithColor, isNullOrEmpty } from '../modules/utils';
import { ErrorMessage, ErrorCo... |
/*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... |
import { AppConfig, Brand, Communication, DashboardView, Dashboard,
Miscellaneous, Tour } from './app-config.model';
import { GET, POST, Request, Script, Server } from './server.model';
export const models: any[] = [
AppConfig,
Brand,
Communication,
DashboardView,
Dashboard,
Miscellaneous,
Tour,
GET,... |
import BasicGuildInformations from "@protocol/network/types/BasicGuildInformations";
import TaxCollectorDialogQuestionBasicMessage from "./TaxCollectorDialogQuestionBasicMessage";
export default class TaxCollectorDialogQuestionExtendedMessage extends TaxCollectorDialogQuestionBasicMessage {
public maxPods: number;
... |
jest.mock(`../event-storage`)
import { EventStorage } from "../event-storage"
import { AnalyticsTracker } from "../telemetry"
let telemetry
beforeEach(() => {
;(EventStorage as jest.Mock).mockReset()
telemetry = new AnalyticsTracker()
})
describe(`Telemetry`, () => {
it(`Adds event to store`, () => {
teleme... |
// 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 { Schedule } from "@aws-cdk/aws-applicationautoscaling";
import { IVpc, SubnetSelection, SubnetType } from '@aws-cdk/aws-ec2';
import { AwsLogDriver, Cluster, ContainerImage, ICluster, LogDriver, Secret, TaskDefinition } from "@aws-cdk/aws-ecs";
import { Rule } from "@aws-cdk/aws-events";
import { EcsTask } from... |
import { IModulePatcher } from "diagnostic-channel";
export declare const mongoCore: IModulePatcher;
export declare function enable(): void; |
//
// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING
//
// This file is providing the test runner to use when running extension tests.
// By default the test runner in use is Mocha based.
//
// You can provide your own test runner if you want to override it by exporting
// a function run(testRoot:... |
import * as path from 'path';
export const ENCODE = 'utf8';
export const REPO_ROOT = path.resolve(__dirname, '../../');
export const WWW_ROOT_DIR = 'www';
export const THUMBS_DIR = 'thumbs';
export const THUMB_FILE_NAME = 'thumb.jpg'; |
import { IsNotEmpty, IsNumberString } from 'class-validator';
export class CreateProductDto {
@IsNotEmpty()
name: string;
@IsNotEmpty()
category: string;
@IsNumberString()
price: string
} |
/*
* Public API Surface of ng-pick-datetime
*/
export {
DateTimeAdapter,
OWL_DATE_TIME_LOCALE,
OWL_DATE_TIME_LOCALE_PROVIDER,
} from './lib/date-time/adapter/date-time-adapter.class';
export { OwlDateTimeFormats, OWL_DATE_TIME_FORMATS } from './lib/date-time/adapter/date-time-format.class';
export { OwlD... |
import ApiClient from '@covid/core/api/ApiClient';
import {
ISchoolGroupJoinedResponse,
ISchoolGroupModel,
ISchoolGroupSubscriptionDTO,
ISchoolModel,
ISubscribedSchoolGroupStats,
} from '@covid/core/schools/Schools.dto';
import naturalCompare from 'string-natural-compare';
interface ISchoolService {
getSub... |
/*
* Copyright 2020 The Backstage 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 { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { getMonth, getHours, getDate, getMinutes, getSeconds, getMilliseconds, getYear, getISOWeek, getISOWeeksInYear, getQuarter } from 'date-fns';
@Component({
selector: 'app-cn-form-date-pic... |
import type { MapQuestQueryInterface } from './map-quest-query.interface';
export interface MapQuestGeocodeQueryInterface extends MapQuestQueryInterface {
maxResults: number;
location: string;
thumbMaps: boolean;
outFormat: string;
country?: string;
state?: string;
} |
// deno-lint-ignore-file no-undef
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import "./global.ts";
import {
assert,
assertEquals,
assertObjectMatch,
assertThrows,
} from "../testing/asserts.ts";
import { stripColor } from "../fmt/colors.ts";
import { deferred } from "../async/de... |
// #docregion
import { Component, EventEmitter, Input, Output } from '@angular/core';
// #docregion example
@Component({
selector: 'toh-hero-button',
template: `<button>{{label}}</button>`
})
export class HeroButtonComponent {
// No aliases
@Output() heroChange = new EventEmitter<any>();
@Input() label: stri... |
import { QueryInput } from "../shapes/QueryInput";
import { QueryOutput } from "../shapes/QueryOutput";
import { ProvisionedThroughputExceededException } from "../shapes/ProvisionedThroughputExceededException";
import { ResourceNotFoundException } from "../shapes/ResourceNotFoundException";
import { RequestLimitExceede... |
import React from 'react';
import { Snackbar, SnackbarProps } from '@equinor/eds-core-react';
interface ToastProps extends SnackbarProps {
message: string;
open: boolean;
onClose?: () => void;
className?: string;
autoHideDuration?: number;
}
const Toast = (props: ToastProps): JSX.Element => {
return (
... |
import Translation from "./translation";
function setProto(of: any, proto: any) {
if (typeof (Object as any).setPrototypeOf === "undefined") {
of.__proto__ = proto;
} else {
(Object as any).setPrototypeOf(of, proto);
}
}
export class TranslationRegistrationError extends Error {
constructor(public mess... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.