text stringlengths 10 953k |
|---|
import BaseController from './Base.controller';
class MockDto {}
class MockBaseController extends BaseController {
/**
* The method should not be tested, since it has no implementation
*/
protected run(): Promise<any> {
return null;
}
}
describe('BaseController', () => {
let controller: BaseControl... |
import * as React from 'react';
import { Color } from '../colors';
import { fonts } from '../fonts';
import { getSpace, SpaceSize } from '../space';
import styled, { css } from 'styled-components';
import { ChevronUp, ChevronDown } from 'react-feather';
import { IconSize } from '../icons';
export const PropertyInputSt... |
import React, { useState } from 'react'
import { View, Text, StyleSheet } from 'react-native'
import Body from './Body'
import Footer from './Footer'
import TopGradientOutView from '../../component/View/TopGradientOutView'
import { useRoute, RouteProp, useNavigation } from '@react-navigation/native'
import { StackNavig... |
import chalk from 'chalk';
const help = (): void => {
console.log(`
bottender viber <command> <action> [options]
${chalk.dim('Commands:')}
webhook <action> Manage webhook
${chalk.dim('Actions:')}
set Set the property you request
del, delete Delete th... |
import { strict as assert } from 'assert'
import EventEmitter from 'events'
import { TextDocument } from 'vscode-languageserver-textdocument'
import type { AstNode } from '../node'
import type { RangeLike } from '../source'
import { Range } from '../source'
import type { AllCategory, Symbol, SymbolLocationBuiltInContri... |
import type { GraphQLResolveInfo } from 'graphql';
import type { EZContext } from './main.test';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export... |
import _ from 'lodash';
import { auto } from 'angular';
import $ from 'jquery';
import 'vendor/flot/jquery.flot';
import 'vendor/flot/jquery.flot.gauge';
import {
DataFrame,
DisplayValue,
Field,
fieldReducers,
FieldType,
GraphSeriesValue,
KeyValue,
LinkModel,
reduceField,
ReducerID,
LegacyRespons... |
import createSvgIcon from '@material-ui/core/utils/createSvgIcon';
const Archive = createSvgIcon(
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
>
<path d="M4 3a2 2 0 100 4h12a2 2 0 100-4H4z" />
<path
fillRule="evenodd"
d="M3 8h14v7a2 2 0 01-2 2H5a2 ... |
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { StorageService } from '@app/service/storage.service';
import { ChildComponent } from '@app/shared/child.component';
import { PlayerStateService } from '../../player-state.service';
@Component({
selector: 'd2c-triumph-tracked',
tem... |
export { FAQ } from "./FAQ";
export { FAQProps } from "./FAQ.types" |
import { observable } from 'mobx';
export class ConfigStore {
@observable public INITIAL_COUNTER = 0;
constructor(config: { initialCounter: number }) {
this.INITIAL_COUNTER = config.initialCounter;
}
public async load(): Promise<void> {
return;
}
} |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
})
export class AppComponent {
public appPages = [
{ title: 'Files', url: '/files', icon: 'document' },
{ title: 'Bins', url: '/bins', icon: 'file-tray' },
... |
/**
* Identity and Access Management Service API
* APIs for managing users, groups, compartments, and policies.
* OpenAPI spec version: 20160918
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rig... |
/// <reference path='../../lib/illa/ArrayUtil.ts'/>
/// <reference path='../../lib/illa/EventHandler.ts'/>
/// <reference path='TransactionMode.ts'/>
module adat {
export class Request<K, V> extends illa.EventHandler {
static EVENT_SUCCESS = 'adat_Request_EVENT_SUCCESS';
private requests: IDBRequest[];
pr... |
const LogPlease = require("logplease");
export enum LogNameSpaces {
Parser = "parser"
}
class LoggerManager {
private levels = ["DEBUG", "INFO", "WARN", "ERROR", "NONE"];
private defaultName = "global";
private instances: { [name: string]: any } = {};
private allowed?: string[];
constructor(... |
// @ts-nocheck
import { GetStaticProps } from "next"
import { ParsedRun } from "../interfaces/leaderboard"
import Layout from "../components/Layout"
import LeaderboardTable from "../components/LeaderboardTableIL"
import { Row, Col } from "react-bootstrap"
import Dropdown from "react-bootstrap/Dropdown"
import { request... |
import {
_ContentTypeProfiles,
_UnmarshalledContentTypeProfiles
} from "./_ContentTypeProfiles";
/**
* <p>The configuration for a field-level encryption content type-profile mapping. </p>
*/
export interface _ContentTypeProfileConfig {
/**
* <p>The setting in a field-level encryption content type-profile ma... |
/**
* @license
* Copyright 2018 Google LLC. 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
import { Uuid } from '@dandi/common'
import { Inject } from '@dandi/core'
import { PathParam, RequestBody } from '@dandi/http-model'
import { Controller, HttpGet, HttpPatch } from '@dandi/mvc'
import { AccessorResourceId, ResourceAccessor } from '@dandi/mvc-hal'
import { Task, TaskResource } from './task'
import { Tas... |
import defaultTheme from "./default";
import oneTheme from "./one";
import twoTheme from "./two";
import threeTheme from "./three";
import fourTheme from "./four";
export default {
default: defaultTheme,
one: oneTheme,
two: twoTheme,
three: threeTheme,
four: fourTheme,
}; |
import React from "react";
import { styled } from "goober";
import type { SvgIconProps } from "../../types";
interface Props extends SvgIconProps {
className?: string;
}
const Component = (props: Props) => {
const { title, label, color: fill, ...restProps } = props;
return (
<svg viewBox="0 0 24 24" xmlns=... |
import { IPhysicsConfiguration } from './interfaces/IPhysicsConfiguration';
import { Scene } from './Scene';
import PhysX from 'trident-physx-js-webidl';
import { Vector3 } from 'three';
import { PhysicsRaycast } from './physics/PhysicsRaycast';
const PhysicsConfigurationDefault: IPhysicsConfiguration = {
physxW... |
export class ApiResourceAction {
verb: string;
selected: boolean;
constructor(verb: string,selected: boolean){
this.verb=verb;
this.selected=selected;
}
} |
import { AdresseService } from './../adresses/adresses.service';
import { Adresse } from './../adresses/Adresse';
import { Component, OnInit, ViewChild } from '@angular/core';
import { routerTransition } from '../../router.animations';
import { Http, RequestOptions, Headers } from '@angular/http';
import { NgbModal, M... |
import { Listener, OrderStatus, PaymentCreatedEvent, Subjects } from '@microservices-commons/common'
import { queueGroupName } from './queue-group-name'
import { Message } from 'node-nats-streaming'
import { Order } from '../../models/order'
export class PaymentCreatedListener extends Listener<PaymentCreatedEvent> {
... |
import { graphql } from "react-relay";
import {
ConnectionHandler,
Environment,
RecordProxy,
RecordSourceSelectorProxy,
} from "relay-runtime";
import {
createSubscription,
requestSubscription,
SubscriptionVariables,
} from "coral-framework/lib/relay";
import { GQLCOMMENT_SORT, GQLCOMMENT_SORT_RL } from ... |
/**
* Dropdownbase spec document
*/
import { EmitType, L10n, createElement, isUndefined } from '@syncfusion/ej2-base';
import { SortOrder } from '@syncfusion/ej2-lists/src/common';
import { DataManager, ODataV4Adaptor, Query } from '@syncfusion/ej2-data';
import { DropDownBase } from '../../src/drop-down-base/drop-do... |
import { FC } from "react";
import { openWarp } from "./utils";
import { Version, BuildTime } from "../config";
function dateLabel() {
const BuildDate = Date.parse(BuildTime);
// * Calculate how far it is from BuildDate
const now = Date.now();
const diff = now - BuildDate;
const days = Math.floor(diff / (10... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------------------------------------------------... |
import { IPromise } from 'angular';
import { groupBy, sortBy } from 'lodash';
import { AccountService, CertificateReader } from '@spinnaker/core';
import { IAmazonCertificate } from 'tencent/domain';
export class AmazonCertificateReader {
public static listCertificates(): IPromise<{ [accountId: string]: IAmazonCert... |
/*
Copyright 2020 FM Foundation
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 agreed to in writing, software
d... |
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfin API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 10.7.7
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech)... |
import React from 'react';
import { useIntl } from 'react-intl';
import classnames from 'classnames';
import HeaderInformasjon from '../../components/header-informasjon/HeaderInformasjon';
import BEMHelper from '../../utils/bem';
import Breadcrumbs from '../../components/breadcrumbs/Breadcrumbs';
import MedInnholdsfort... |
export default {
Chinese: '简体中文',
English: 'English',
ApiError: {
E_00001: '用户不存在~',
E_00002: '密码错误~',
},
FormValidate: {
Required: '{field}是必填的',
},
Components: {
PersonalCenter: '个人中心',
PersonalSetting: '账户设置',
Logout: '退出登录',
Notice: '通知',
Message: '消息',
Upcoming: '待... |
import { ChangeDetectorRef, Component, NO_ERRORS_SCHEMA } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ComponentFixture, inject, TestBed, waitForAsync } from '@... |
import React from 'react'
import { ComponentType } from 'react'
import { Difference } from 'utils/types'
export type DraggingInfo<T> = {
x: number
y: number
distanceX: number
distanceY: number
value: T
}
type DraggableProps<T> = {
onDrag: () => T
children?: React.ReactNode
}
type DropZoneProps<T> = {... |
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import type { IncomingHttpHeaders, IncomingMessage } from 'http'
import { format as stringify, URL } from 'url'
import type { Url } from 'url'
import { parse as parseType } from 'content-type'
import qs from 'querystring'
import type { ParsedUrlQuer... |
import {EventEmitter} from 'events';
class Plunger extends EventEmitter {
private readonly handler: any;
private hasDone: boolean = false;
constructor(handler: (accept: (result: any) => void, reject: (errmsg: string) => void) => void) {
super();
this.handler = handler;
}
plunge(r... |
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home';
import { NoContentComponent } from './no-content';
import { widgetComponent } from './widget';
import { DataResolver } from './app.resolver';
export const ROUTES: Routes = [
{ path: '', redirectTo: 'home', pathMatch: '... |
// @ts-ignore
export const isWindow = (val: any): boolean => typeof window !== 'undefined' && toString(val) === '[object Window]'
// @ts-ignore
export const inBrowser = typeof window !== 'undefined'
// @ts-ignore
export const isWechatBrowser = () => (navigator?.userAgent.toLowerCase() as string).includes('micromessen... |
import React from 'react';
import withIcon, { Props } from '../withIcon';
function IconUtensils(props: Props) {
return (
<svg viewBox="0 0 24 24" {...props}>
<path d="M8.1 13.34l2.83-2.83-6.19-6.18c-.48-.48-1.31-.35-1.61.27-.71 1.49-.45 3.32.78 4.56l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 ... |
import {parseCss} from "./cssParser";
import state from "./state";
export function parseHtml(input: HTMLTableElement | string, includeHiddenHtml = false, useCss = false) {
let tableElement;
if (typeof input === 'string') {
tableElement = <HTMLTableElement>window.document.querySelector(input);
} els... |
/*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import { RequestBuilder, GetAllRequestBuilder, GetByKeyRequestBuilder, CreateRequestBuilder } from '@sap-cloud-sdk/core';
import { ExternalLearner } from './E... |
export interface ITimelineListState {
list?: any[];
date_range?: string[];
check_info?: boolean;
selected_item?: any;
data_closed?: boolean;
} |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Creates a Signer Signing Profile Permission. That is, a... |
import { Component, OnInit } from '@angular/core';
import { NgForm } from '@angular/forms';
import { Router } from '@angular/router';
import { Subscription } from 'rxjs';
import {User} from '../user.model';
import { UserService } from '../user.service';
import { HashService } from '../../hash.service'
@Component({
s... |
import { IController, IScope } from 'angular';
import { loadAll } from 'js-yaml';
import {
IKubernetesManifestCommandMetadata,
KubernetesManifestCommandBuilder,
} from '../../../manifest/manifestCommandBuilder.service';
import { ExpectedArtifactService, IExpectedArtifact } from '@spinnaker/core';
export class Ku... |
import { Component } from '@angular/core';
// import { Quote } from '.quote';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'Quotes-vote';
} |
export class TaxInfo{
taxId = '';
startDate = '';
lengthOfOwnership = 0;
legalEntity = '';
industryType = '';
legalEntities = ['Corp', 'Sole Prop', 'LLC', 'Partnership'];
public toJson(){
return {
taxId: this.taxId,
startDate: this.startDate,
lengthOfOwnership: this.lengthOfOwnersh... |
/**
* Copyright 2020 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
import forge = require('node-forge');
import {
toPositiveHex,
DigestAlgorithmName,
getDigestAlgorithm,
pkiRsaGenerateKeyPairAsync,
pkiCertificateToAsn1,
} from './util';
export enum SubjectAltNameType {
OTHER_NAME = 0,
RFC_822_NAME = 1,
DNS_NAME = 2,
X400_ADDRESS = 3,
DIRECTORY_... |
import { DownstreamEndpoint } from '@synesthesia-project/core/lib/protocols/broadcast';
import { PlayStateData } from '@synesthesia-project/core/lib/protocols/broadcast/messages';
import { CueFile } from '@synesthesia-project/core/lib/file';
import * as usage from '@synesthesia-project/core/lib/file/file-usage';
import... |
// (C) 2007-2020 GoodData Corporation
import React from "react";
import { injectIntl, FormattedMessage, IntlShape, IntlProvider } from "react-intl";
import MediaQuery from "react-responsive";
import { storiesOf } from "../../../_infra/storyRepository";
import { UiKit } from "../../../_infra/storyGroups";
import { Butto... |
export const userdata = [
{ Gender: 'Male', HeightCm: 171, WeightKg: 96 },
{ Gender: 'Male', HeightCm: 161, WeightKg: 85 },
{ Gender: 'Male', HeightCm: 180, WeightKg: 77 },
{ Gender: 'Female', HeightCm: 166, WeightKg: 62 },
{ Gender: 'Female', HeightCm: 150, WeightKg: 70 },
{ Gender: 'Female', HeightCm: 167... |
import * as React from 'react';
import * as enzyme from 'enzyme';
import { Spinner } from './';
describe('<Spinner />', () => {
it('should render the default spinner in medium without label', () => {
const wrapper = enzyme.mount(<Spinner />);
const label = wrapper.find('label');
expect(label.length).toBe... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {
ElementID,
Element,
PluginClient,
ElementsInspector,
ElementSearchResultSet,
FlexColumn,
styl... |
export * from './SidebarItem' |
import { DataBrewClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataBrewClient";
import { CreateProfileJobRequest, CreateProfileJobResponse } from "../models/models_0";
import {
deserializeAws_restJson1CreateProfileJobCommand,
serializeAws_restJson1CreateProfileJobCommand,
} from "../protoco... |
type NoteLetter = "A" | "B" | "C" | "D" | "E" | "F" | "G";
type NoteAccidental = string; // " " | "#" | "b" | " #" | " b" | "b " | "b#" | "#b" ;
type Note = string;
type Midi = number;
type Octave = number;
type OrNull<T> = T | null;
type NoteName = string;
type NoteProps = {
name: NoteName;
letter: NoteLetter;
... |
import MagicString from 'magic-string';
import { NormalizedTreeshakingOptions } from '../../rollup/types';
import { BLANK } from '../../utils/blank';
import relativeId from '../../utils/relativeId';
import { NodeRenderOptions, RenderOptions } from '../../utils/renderHelpers';
import { CallOptions } from '../CallOptions... |
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { AppThunk, RootState } from "../../app/store";
import { setMessage, setOpen } from "../toast/toastSlice";
export type AcMode = "cold" | "hot";
export interface AcState {
/**
* 状态
*/
status: boolean;
/**
* 模式
*/
mode: AcMode;
/... |
import * as signalR from '@microsoft/signalr';
import { GameId, PlayerId } from './game.service';
import { Observable, Subject, ReplaySubject } from 'rxjs';
import { environment } from '../environments/environment';
export class GameEventService {
private readonly worldUpdates = new Subject<IWorldUpdated>();
priva... |
import cxapi = require('@aws-cdk/cx-api');
import { App } from '../app';
import { Construct, IConstruct, PATH_SEP } from '../core/construct';
import { resolve, Token } from '../core/tokens';
import { Environment } from '../environment';
import { CloudFormationToken } from './cloudformation-token';
import { HashedAddres... |
import WFMember_en_US_Base from './wfmember_en_US_base';
function getLocaleResource(){
const WFMember_en_US_OwnData = {};
const targetData = Object.assign(WFMember_en_US_Base(), WFMember_en_US_OwnData);
return targetData;
}
export default getLocaleResource; |
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
import { User } from './user.entity';
export const GetUser = createParamDecorator(
(data: string, ctx: ExecutionContext): User => {
const req = ctx.switchToHttp().getRequest();
const user = req.user;
// return data ? user?.[data] ... |
/**
* <p>Represents a matched event.</p>
*/
export interface _FilteredLogEvent {
/**
* <p>The name of the log stream to which this event belongs.</p>
*/
logStreamName?: string;
/**
* <p>The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.</p>
*/
tim... |
import {Component, OnInit} from '@angular/core';
import {compareCourses, Course} from '../model/course';
import {Observable} from "rxjs";
import {defaultDialogConfig} from '../shared/default-dialog-config';
import {EditCourseDialogComponent} from '../edit-course-dialog/edit-course-dialog.component';
import { MatDialog ... |
import styles from "@styles/Home.module.css";
type TProps = React.DetailedHTMLProps<
React.TextareaHTMLAttributes<HTMLTextAreaElement>,
HTMLTextAreaElement
>;
const Textbox = (props: TProps) => {
return <textarea {...props} className={styles.textarea} />;
};
export default Textbox; |
/*
import * as React from 'react';
import { Table, Modal, ModalHeader, ModalBody, ModalFooter, Button, Input, Badge, Row } from 'reactstrap';
import ThreadItem from './thread-item';
export interface IThreadsModalProps {
showModal: boolean;
handleClose: Function;
threadDump: any;
}
export interface IThreadsModa... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
import { HttpRequest } from "../src/HttpClient";
import { TestHttpClient } from "./TestHttpClient";
import { registerUnhandledRejectionHandler } from ".... |
import { Component, OnInit } from '@angular/core';
import { FormControl, Validators } from "@angular/forms";
@Component({
selector: 'app-user-profile',
templateUrl: './user-profile.component.html',
styleUrls: ['./user-profile.component.css']
})
export class UserProfileComponent implements OnInit {
formModelUs... |
// @ts-nocheck
/**
* callback endpoint is for webhooks recieved from nets.
* For the time being it only supports these events:
* * payment.created
* * payment.charge.created.v2
* * payment.charge.failed
* * payment.checkout.completed
*
* More on these events can be read here:
* https://developers.nets.eu/n... |
// Generated by script, don't edit it please.
import * as React from 'react';
function GearCircle(props: React.SVGProps<SVGSVGElement>, svgRef?: React.Ref<SVGSVGElement>) {
return (
<svg width="1em" height="1em" viewBox="0 0 32 32" fill="currentColor" ref={svgRef} {...props}>
<path d="M21.333 16.002c0-1.47... |
import React, { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { AdminBot, BotCommands, CreateBotCammand } from '@xrengine/common/src/interfaces/AdminBot'
import { Edit } from '@mui/icons-material'
import DeleteIcon from '@mui/icons-material/Delete'
import ExpandMoreIcon from... |
import type { Locale } from '../types'
import formatDistance from './_lib/formatDistance/index'
import formatLong from './_lib/formatLong/index'
import formatRelative from './_lib/formatRelative/index'
import localize from './_lib/localize/index'
import match from './_lib/match/index'
/**
* @type {Locale}
* @categor... |
import { FunctionOutput } from "../../signals/Generator";
import { observable } from "mobx";
import { System } from "../System";
export class Sine extends System {
public readonly signal: FunctionOutput;
@observable
public frequency: number = 1;
@observable
public amplitude: number = 1;
@observable
public p... |
import { useImperativeHandle, useRef, Ref } from 'react';
export function useForwardRef<InitialValue = null>(
forwardRef: Ref<InitialValue>,
initialValue: InitialValue = null
) {
const ref = useRef(initialValue);
useImperativeHandle(forwardRef, () => ref.current);
return ref;
} |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@ang... |
import React, { FunctionComponent } from 'react'
import type { ButtonProps as Props } from './Button.d'
import { Background, Root, Text } from './Button.styles'
const Button: FunctionComponent<Props> = ({
className,
href,
innerText,
rel,
target,
}) => (
<Root className={className} href={href} target={targe... |
import React, { useState, useEffect } from 'react';
import { View, Image, Text } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import { RectButton } from 'react-native-gesture-handler';
import landingImg from '../../assets/images/landing.png';
import studyIcon from '../../assets/images... |
import { CreateAnimalesDto } from './create-animales-dto';
describe('CreateAnimalesDto', () => {
it('should be defined', () => {
expect(new CreateAnimalesDto()).toBeDefined();
});
}); |
import assets = require('@aws-cdk/assets');
import cloudwatch = require('@aws-cdk/aws-cloudwatch');
import cbuild = require('@aws-cdk/aws-codebuild');
import cpipeline = require('@aws-cdk/aws-codepipeline');
import cpipelineapi = require('@aws-cdk/aws-codepipeline-api');
import iam = require('@aws-cdk/aws-iam');
import... |
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
DebugElem... |
// *** 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 utilities from "../../utilities";
/**
* Hybrid Connection for an App Service app.
*/
export class WebAppRel... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Sambacoin</source>
<translation>About Sambacoin</t... |
import '@microsoft/jest-sarif';
import SarifLogBuilder from '../../src/data/sarif-log-builder';
describe('sarif-builder', () => {
it('builds a default SARIF builder log', () => {
let builder = new SarifLogBuilder();
builder.addRun();
expect(builder.log).toMatchInlineSnapshot(`
{
"$schema": "https://s... |
import React from 'react';
import {
MdDelete,
MdAddCircleOutline,
MdRemoveCircleOutline,
} from 'react-icons/md';
import { useCart } from '../../hooks/useCart';
import { formatPrice } from '../../util/format';
// import { useCart } from '../../hooks/useCart';
// import { formatPrice } from '../../util/format';
i... |
import path from 'path'
import { URL, fileURLToPath } from 'url'
import { app, BrowserWindow, shell, Tray, Menu } from 'electron'
import contextMenu from 'electron-context-menu'
import windowStateKeeper from 'electron-window-state'
import i18next from 'i18next'
import ru from '@/locales/ru.yml'
import { initIpc } from ... |
import { h, Component } from "preact";
import { css, cx } from "emotion";
import { IPlayerStore, IProperties, IPlugin } from "../interface";
import { connect } from "unistore/preact";
import { parsePercent, IS_TOUCHABLE_DEVICE, secondToMMSS } from "../utils";
import {
colorDefaultAlpha05,
colorPrimaryLightenAlpha0... |
import * as React from 'react'
import {
chakra,
forwardRef,
useStyles,
StylesProvider,
HTMLChakraProps,
ThemingProps,
omitThemingProps,
SystemProps,
As,
useColorModeValue,
} from '@chakra-ui/system'
import { useMultiStyleConfig } from '@saas-ui/system'
import { ButtonGroup, ButtonGroupProps } from ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import * as updatesActions from './actions'
import updatesReducer, { UpdatesState, UpdatesAction } from './reducer'
import * as updatesSelectors from './selectors'
import updatesSaga from './sagas'
export {
updatesActions,
updatesReducer,
updatesSelectors,
UpdatesState,
UpdatesAction,
updatesSaga
} |
import React from 'react'
import { GITHUB_REPO_URL } from 'util/constants'
import { H2, Container, Button } from 'components/ui'
const ContributeBox = () => {
return (
<Container>
<H2 className="mb-10">Have ideas to make evm.codes better?</H2>
<Button external href={GITHUB_REPO_URL}>
Contri... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import Svg, { SvgProps } from '../Svg';
const Meeting: React.SFC<SvgProps> = (props) => (
<Svg {...props}>
<path d="M12 14c.276 0 .5.224.5.5 0 .277-.224.5-.5.5-1.103 0-2 .897-... |
import React from "react";
import DropdownButton from "../controls/DroptownButton";
interface IButtonOrder {
orderOptions: string[];
setOrderOption: (value: string) => void;
title: string;
}
export default function ButtonOrderList({ orderOptions, setOrderOption, title }: IButtonOrder) {
return (
... |
import * as TypeGraphQL from "type-graphql";
import GraphQLJSON from "graphql-type-json";
import { JsonValue, InputJsonValue } from "@prisma/client";
import { ImagenScalarWhereInput } from "../inputs/ImagenScalarWhereInput";
import { ImagenUpdateManyDataInput } from "../inputs/ImagenUpdateManyDataInput";
@TypeGraphQL.... |
/* eslint-disable import/prefer-default-export */
import type {SanityClient} from '@sanity/client'
import type {ObjectSchemaType} from '@sanity/types'
import type {Observable} from 'rxjs'
import {compact, toLower, flatten, uniq, flow, sortBy, union} from 'lodash'
import {map, tap} from 'rxjs/operators'
import {joinPath... |
import { Subject } from 'rxjs/Subject';
/** Stepper data that is required for internationalization. */
export declare class MatStepperIntl {
/**
* Stream that emits whenever the labels here are changed. Use this to notify
* components if the labels have changed after initialization.
*/
changes: S... |
import { Field, ObjectType } from '@nestjs/graphql'
import {
CreateDateColumn,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from 'typeorm'
@ObjectType()
export class CoreEntity {
@PrimaryGeneratedColumn()
@Field(() => Number)
id: number
@CreateDateColumn()
@Field(() => Date)
createdAt: Date
@Updat... |
import { ReportWrapperDirective } from './report-wrapper.directive';
describe('ReportWrapperDirective', () => {
it('should create an instance', () => {
// const directive = new ReportWrapperDirective();
// expect(directive).toBeTruthy();
});
}); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.