text stringlengths 10 953k |
|---|
import { resolve } from "path";
import * as ts from "typescript";
import { Builder } from "./builder";
import { readFileSync } from "fs";
test("builder", () => {
const program = ts.createProgram([resolve(__dirname, "__fixtures/base.ts")], {
allowJs: true,
target: ts.ScriptTarget.ESNext,
module: ts.Module... |
import { EventHandle } from "../Base/EventPool/EventHandle";
import { EventPool } from "../Base/EventPool/EventPool";
import { GameFrameworkEntry } from "../Base/GameFrameworkEntry";
import { GameFrameworkError } from "../Base/GameFrameworkError";
import { GameFrameworkModule } from "../Base/GameFrameworkModule";
impor... |
import type { MaterialOptions, RayOptions } from 'cannon-es'
import type { Buffers, Event, Subscriptions } from './index'
import * as THREE from 'three'
import React, { useLayoutEffect, useContext, useRef, useMemo, useEffect, useState } from 'react'
import { useFrame } from 'react-three-fiber'
import { context } from '... |
import { Listener } from '@sapphire/framework';
import type { Message } from 'discord.js';
export class UserEvent extends Listener<'mentionPrefixOnly'> {
public async run(message: Message) {
const prefix = this.container.client.options.defaultPrefix;
return message.channel.send(
prefix
? `My prefix in thi... |
import Counter from '../typings/Counter';
import Constants from '../utils/Constants';
import Eris from 'eris';
const MembersConnectedCounter: Counter = {
aliases: ['connectedMembers', 'membersConnected'],
isPremium: true,
isEnabled: true,
lifetime: 0,
execute: async ({ client, guild, resource }) => {
const targ... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2018-2019 New Vector Ltd
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 applicab... |
import * as React from 'react';
import { withKnobs, boolean } from '@storybook/addon-knobs';
import { storiesOf } from '@storybook/react';
import { Table, TableBody, TableCell } from '@material-ui/core';
import ExpandableRow from '../src/expandable-row';
const DetailsPanel = () => <div style={{ width: '100px', height... |
import { useCallback, useContext, useEffect, useState } from "react"
import { LabboxProviderContext } from "./LabboxProvider"
interface SubfeedManagerInterface {
getMessages: (a: {feedUri: string, subfeedName: any, position: number, waitMsec: number}) => Promise<any[]>
appendMessages: (a: {feedUri: string, sub... |
// Import Node.js Dependencies
import { createReadStream } from "fs";
// Import Third-party Dependencies
import split2 from "split2";
// Import Internal Dependencies
import { IdentifiersName } from "./decorator/lexer";
import {
parseDecorator, TypeORMDecoratorBase, TypeORMDecoratorExtended,
UniqueDecorator, Relat... |
import { redirect } from 'redux-first-router';
import { resetBackground, setBackground } from './actions/background';
import { clash, hereford } from 'renderer/assets/images';
import { IDomainState, IAuthReducerState } from '@r6db/interfaces';
const defaultSpring = { tension: 10, friction: 10 };
export default {
... |
import { TextDocumentChangeEvent, TextDocument, Disposable, OutputChannel, FileSystemWatcher as VFileSystemWatcher, DiagnosticCollection, Diagnostic as VDiagnostic, Uri, ProviderResult, CancellationToken, Position as VPosition, Location as VLocation, Range as VRange, CompletionItem as VCompletionItem, CompletionList as... |
// private vars
export const PORTIS_DAPP_ID: string =
process.env.REACT_APP_PORTIS_DAPP_ID || '';
export const INFURA_PROJECT_ID: string =
process.env.REACT_APP_INFURA_PROJECT_ID || '97359691e9d349c69a76a2d9b304b2d5';
// non-private
export const WEB3_POLLING_INTERVAL = 12000;
export const RPC_URL_GOERLI = `https:/... |
import { Directive, Input, ViewContainerRef, TemplateRef } from '@angular/core';
@Directive({
selector: '[fivPermissions]'
})
export class FivPermissions {
allowedPermissions: string[] = [];
uPermissions: string[] = [];
constructor(
private viewContainer: ViewContainerRef,
private templateRef: Templat... |
import { ITutorial } from "../models/tutorial.models";
export const TUTORIALS_MOCK: ITutorial[] = [
{
cover_image_url: "http://placekitten.com/g/400/250",
tutorial_title: "Tutorial 1",
workspace_name: "Eindhoven Mate",
id: "fakeid1",
slug: "tutorial-1",
tutorial_description: "this is a great ... |
/**
* @author Ranjoy Sen
* @email ranjoy.sen@mindtree.com
* @create date 2020-03-29 15:03:17
* @modify date 2020-03-29 15:03:17
* @desc [description]
*/
import { Component, OnInit, OnDestroy, Injector } from '@angular/core';
import { BaseFormComponent } from '../base/base-form.component';
import { ModalData } fr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
/**
* @author Luis C. de León <luis@pokt.network>
*/
import { Account } from "./account"
/**
* @description Represents an account made from an ed25519 keypair using an encrypted private key and a plain one
*/
export class UnlockedAccount extends Account {
public readonly privateKey: Buffer
/**
* @descripti... |
export * from './padplus-error'
export * from './padplus-enums'
export * from './model-contact'
export * from './model-friendship'
export * from './model-message'
export * from './model-event'
export * from './model-room'
export * from './model-user'
export * from './model-tag'
export * from './grpc-schemas' |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AuthorizationService} from '../common/services/authorization.service';
@Component({
templateUrl: 'dashboard.component.html'
})
export class DashboardComponent implements OnInit {
constructor(private authoriza... |
import { IFlipStateMap } from '../types';
export default function mirrorPlugin(states: IFlipStateMap, event: string): IFlipStateMap; |
import React from 'react'
import { View, ActivityIndicator, StyleSheet, Alert } from 'react-native'
import RootSiblings from 'react-native-root-siblings'
import ImageViewer from 'react-native-image-zoom-viewer'
import { saveMedia } from '../media'
import { downloadFile } from '../file'
const styles = StyleSheet.create... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class PostIdeaServiceService {
Idea:any = {}
constructor(private httpclient: HttpClient) { }
postIdea(value): any{
console.log("in post idea service")
this.httpcl... |
/** @jsx jsx */
import { Transforms } from 'slate'
import { jsx } from '../../..'
export const run = editor => {
Transforms.unwrapNodes(editor, { match: n => n.a, mode: 'all' })
}
export const input = (
<editor>
<block a>
<block>
<anchor />
one
</block>
</block>
<block a>
... |
import gql from 'graphql-tag';
import { CommentsPageCommentFragmentDoc } from './comments-page-comment.fragment.stencil-component';
import 'stencil-apollo';
import { Component, Prop, h } from '@stencil/core';
declare global {
export type CommentQueryVariables = Types.Exact<{
repoFullName: Types.Scalars['String']... |
/* GENERATED FILE */
import * as React from "react";
import Svg, { Rect, Polyline, Line, Path } from "react-native-svg";
import { IconProps } from '../lib'
function SignIn(props: IconProps) {
return <Svg viewBox="0 0 256 256" width={props.size} height={props.size} {...props}><Rect width={256} height={256} fill="non... |
const config = require('../../config');
import { IJob, IJobResult } from '../types';
import { rm, mkdir, exec, cat } from 'shelljs';
import * as path from 'path';
import * as fs from 'fs';
rm('-rf', config.WORKER.BOX_DIR);
mkdir('-p', config.WORKER.BOX_DIR);
const worker = async (message: IJob) => {
const jobExec... |
import { DataType } from '../data-type';
const MAX = (1 << 16) - 1;
const UNKNOWN_PLP_LEN = Buffer.from([0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]);
const PLP_TERMINATOR = Buffer.from([0x00, 0x00, 0x00, 0x00]);
const NULL_LENGTH = Buffer.from([0xFF, 0xFF]);
const MAX_NULL_LENGTH = Buffer.from([0xFF, 0xFF, 0xFF,... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-perfumes',
templateUrl: './perfumes.component.html',
styleUrls: ['./perfumes.component.css']
})
export class PerfumesComponent implements OnInit {
public perfume = ['Kit Perfume Coffret Armani', 'Perfume Kenzo Homme', 'Perfume Yves'... |
/**
* @license
* Copyright 2020 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... |
/*
* Copyright 2020, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
import React, { useState, useEffect } from "react";
import {
Page,
PageSection,
Grid,
GridItem,
Card,
CardBody,
Title,
DropdownPosition,
Tooltip,
TooltipP... |
import { RuntimeError } from "../errors";
import { getType } from "../runtimeValues";
import { BuiltinFunction } from "../types";
import { arity, validateType } from "../util";
const split: BuiltinFunction = arity(2, (args, stack, exec) => {
const splitter = exec(args[0], stack);
const source = validateType("strin... |
import SingleResponseCommand from '../../structures/SingleResponseCommand';
import {MessageEmbed} from 'discord.js';
const response = new MessageEmbed({
author: {
name: 'Discord Nitro',
iconURL: 'https://cdn.discordapp.com/emojis/314068430611415041.png',
url: 'https://discordapp.com/nitro'
},
thumbnail: {
u... |
import {OperatorBuilder, OperatorGen} from "../Operator";
import {Expression} from "../../Expression";
import {ColumnBuilder} from "../Column";
import {QuantifierBuildable} from "./quantifier/Quantifier";
import {ValueTransformer} from "../../../decorator/options/ValueTransformer";
import {ApplyValueTransformers} from ... |
import classNames from 'classnames';
import { ComponentClassNames } from '../../shared';
import { View } from '../../View';
export const IconDirectionsRailway = (props) => {
const { className, ...rest } = props;
return (
<View
as="span"
width="1em"
height="1em"
className={classNames(Co... |
import { AutoMapper } from './AutoMapperClass';
import { ICreateMapFluentFunctions } from './interfaces/ICreateMapFluentFunctions';
import { INamingConvention } from './interfaces/INamingConvention';
import { IProfile } from './interfaces/IProfile';
/**
* Converts source type to destination type instead of normal mem... |
import { LitElement, html, css, customElement, property } from "lit-element";
import { homeStyles } from "../styles";
@customElement("home-quick-search")
export class _ extends LitElement {
static get styles() {
return [
homeStyles,
css`
:host {
b... |
export function createTestCustomers() {
return [
{
id: 1,
name: 'Alex Smith',
address: {
street: '123 Main Street',
city: 'Anytown',
state: 'California',
region: 'West'
}
},
{
id: 2,
n... |
import {
isParseSuccess,
RevisionsState,
TextFile,
textFile,
textFileContents,
} from '../shared/project-file-types'
import { emptySet } from '../shared/set-utils'
import { lintAndParse } from '../workers/parser-printer/parser-printer'
import { appJSFile, getDefaultUIJsFile } from './new-project-files'
expor... |
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({name: 'weight'})
export class WeightPipe implements PipeTransform {
transform(value: number): string {
let priceS = '';
if (value >= 1000) {
priceS += (Math.trunc(value / 1000)).toString();
priceS += ' Kg ';
}
if (value % 1000 !==... |
import { IsIn, IsInt, IsNotEmpty, IsString, Length } from 'class-validator';
import { UFS } from '../../../application/enums/UfEnum';
import { ApiProperty } from '@nestjs/swagger';
export class CreateEnderecoDto {
@ApiProperty()
@IsNotEmpty()
@IsString()
@Length(8, 8)
cep: string;
@ApiProperty()
@IsNotE... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
Vir... |
import { inject, injectable } from 'tsyringe'
import { Part } from '@modules/parts/infra/typeorm/entities/Part'
import { IPartsRepository } from '@modules/parts/repositories/IPartsRepository'
import { IListProviderParts } from './IListProviderPartsDTO'
import { ListProviderPartsError } from './ListProviderPartsError'... |
import {
Body,
ClassSerializerInterceptor,
Controller,
Get,
Delete,
Param,
Post,
Put,
UseGuards,
UseInterceptors,
} from '@nestjs/common';
import { IJwtPayload, MemberRoleEnum } from '@novu/shared';
import { UserSession } from '../shared/framework/user.decorator';
import { Roles } from '../auth/fram... |
import classnames from 'classnames';
import isNull from 'lodash/isNull';
import isUndefined from 'lodash/isUndefined';
import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';
import { API } from '../../api';
import { AvailabilityInfo, RefInputField } from '../../types';
import styles from './... |
import type { CommentType } from './CommentType';
import type { CommonType } from './CommonType';
import type { CustomListType } from './CustomListType';
import type { OrganizationType } from './OrganizationType';
import type { ProfileType } from './ProfileType';
import type { ProjectType } from './ProjectType';
import... |
import { Component, OnInit } from '@angular/core';
export interface Tile {
color: string;
cols: number;
rows: number;
text: string;
}
@Component({
selector: 'app-third-page',
templateUrl: './third-page.component.html',
styleUrls: ['./third-page.component.scss']
})
export class ThirdPageComponent impleme... |
import {
ModuleWithProviders,
NgModule,
SkipSelf,
Optional
} from '@angular/core';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import '../rxjs-operators';
import { RequestServiceConfig, RequestService } from './request.service';
imp... |
/*
* Copyright (c) 2019 American Express Travel Related Services Company, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
import { Slot, SlotRegistry } from '@teambit/harmony';
import LegacyScope from '../../scope/scope';
import { PersistOptions } from '../../scope/types';
import { BitIds as ComponentsIds, BitId } from '../../bit-id';
import { Component, ComponentID, ComponentFactoryExt, ComponentFactory } from '../component';
import { lo... |
import Footer from "../Footer";
import Navbar from "../Navbar";
interface Props {
children: React.ReactNode;
}
export default function Layout({ children }: Props) {
return (
<div className="w-full h-full relative flex flex-col">
<Navbar />
<div className="flex-1 flex-grow">{children}</div>
<... |
import React from "react";
import { SvgIcon } from "@material-ui/core";
import { SvgIconProps } from "@material-ui/core/SvgIcon";
const Globe: React.FC<SvgIconProps> = props => {
return (
<SvgIcon width="16" height="16" viewBox="0 0 16 16" {...props}>
<path
fillRule="evenodd"
clipRule="eve... |
import * as React from 'react';
import { ItemRender, UploadFile, UploadListProgressProps, UploadListType, UploadLocale } from '../interface';
export interface ListItemProps {
prefixCls: string;
className?: string;
style?: React.CSSProperties;
locale: UploadLocale;
file: UploadFile;
items: Upload... |
import React, {Component} from 'react';
import {Text, View, StyleSheet} from 'react-native';
import ListCard from '../comp/ListCard';
import Container from '../comp/Container';
import Header from '../comp/Header';
import IconsList from '../IconsList/IconsList';
import AddList from './task-list/AddList';
import {addList... |
/**
* ref:
* 1. https://rushstack.io/pages/api/node-core-library.import.lazy/
* 2. https://github.com/microsoft/rushstack/blob/90301e9/libraries/node-core-library/src/Import.ts#L175
*/
import importLazyInternal from '../compiled/import-lazy';
export function importLazy(
moduleName: string,
requireFn?: (id: st... |
import styled, {css} from "styled-components";
const setShadow = (validate, shadow) =>
validate &&
css`
box-shadow: ${shadow};
`;
type CardTypes = {
variant?: "compact" | "thin";
};
export default styled.div<CardTypes>`
background-color: ${(props) => props.theme.colors.vgBlackAlpha00};
box-s... |
import React, { FC } from 'react'
import { ResponsiveContext } from 'grommet'
// Partials
import Window from './window'
import Overlay from './overlay'
// ===============================================
interface Props {
open: boolean
closeDialog: any
stagger?: boolean
}
// ====================================... |
import { IState } from "./types";
export const selectCamera = (state: IState) => state.camera;
export const selectSubjects = (state: IState) => state.subjects; |
/*
* Copyright 2021 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
/**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import PropTypes from "prop-types"
import Helmet from "react-helmet"
import { useStaticQuery, graphql } from "gatsby"
import shareImage from '.... |
'use strict';
import { Path, GET, POST, DELETE, PUT, PathParam, FormParam, Errors, Return, ContextRequest } from 'typescript-rest';
import { UserData, validateUser } from '../../config/users';
import { UserService } from '../../service/users';
import * as _ from 'lodash';
import * as express from 'express';
import { C... |
import {Component, ElementRef, EventEmitter, Inject, Input, Output, Renderer2, ViewChild} from '@angular/core';
import {AngularEditorService} from '../angular-editor/angular-editor.service';
import {HttpResponse} from '@angular/common/http';
import {DOCUMENT} from '@angular/common';
import {CustomClass} from '../angula... |
// ------------------------------------ REACT ------------------------------------
export type ReactFunctionOrComponentClass<P> = React.ComponentClass<P> | React.StatelessComponent<P>;
// ------------------------------------ ERROR ------------------------------------
export type FieldError = {
field: string;
messa... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... |
import Validatable from '@alirya/validatable/validatable';
import EnsureValidatable from '@alirya/validatable/ensure/validatable-parameters';
import ValidatableInValid from '@alirya/validatable/boolean/invalid';
import MapUnion from '../../unions';
/**
* filter all invalid {@link Validatable} while retain its origina... |
import React from 'react';
import {
makeStyles, withStyles, createStyles, Theme,
List, ListItem, Tooltip, IconButton, Badge, Avatar, Box
} from '@material-ui/core';
import { FormattedMessage } from 'react-intl';
import ToolbarAPI from './ToolbarAPI';
import { useLayout, Session } from '../context';
const useSt... |
import { View } from './index';
export class MessageView extends View<string> {
render(model: string): string {
return `<p class="alert-info">${model}<span class="close-message"><i class="fas fa-times"></i></span></p>`;
}
} |
import { ReactNode } from 'react'
import { Box, BoxProps } from '@chakra-ui/react'
import { Container } from '../Container'
import { Header } from '../Header/Header'
import { Footer } from '../Footer'
export interface ILayoutProps extends BoxProps {
children: ReactNode
}
export function Layout({ children, ...props... |
import * as t from 'io-ts';
import { RecordKeyIO, RecordKey } from './record-key';
import { nonEmpty } from '../utils';
type DeleteFilterInput = {
recordKey: string[];
};
type DeleteFilter = {
recordKey: RecordKey[];
};
const DeleteFilterIO = t.type({ recordKey: nonEmpty(t.array(RecordKeyIO)) }, 'DeleteFilter');... |
import {
Component, OnInit, ViewEncapsulation,
ViewChild, Output, EventEmitter
} from '@angular/core';
import { ModalDirective } from 'ng2-bootstrap';
import { User } from '../../shared/models';
import { EditComponent } from '../../core/index';
import { DynamicFormControlModel, DynamicFormService } from '@ng2-d... |
import React from 'react';
import { Trans } from '@lingui/macro';
import { Route, Switch, useRouteMatch } from 'react-router-dom';
import { Flex, Link } from '@staidelta/core';
import LayoutMain from '../layout/LayoutMain';
import PoolOverview from './PoolOverview';
import PlotNFTAdd from '../plotNFT/PlotNFTAdd';
impor... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitChunks</source>
<translation>A prop de BitChunks</translation>
</message>
<message>
... |
// *** 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 assert from 'assert';
import * as rules from './';
import {CategoryStatus} from '../TaskCategory';
import {ITask} from '../providers';
describe('Rules: TasksShouldBeAssigned', () => {
it('no tasks --> ok', () => {
const tasks: ITask[] = [];
const result = rules.TasksShouldBeAssigned(tasks);
... |
import urlLib from 'url'
import jsonwebtoken from 'jsonwebtoken'
import { Aggregate } from '@resolve-js/core'
import validate from './validation'
import { STORY_CREATED, STORY_UNVOTED, STORY_UPVOTED } from '../event-types'
import jwtSecret from '../../auth/jwt-secret'
type User = {
id: string
name: string
}
cons... |
/* eslint-disable @typescript-eslint/no-unused-vars */
import { strict as assert } from 'assert';
import express, { Request, Response, NextFunction } from 'express';
import axios from 'axios';
import fs from 'fs'
import { join } from 'path';
import { BadRequest, NotAcceptable, NotAuthenticated, NotFound, PaymentError }... |
export * from './ISpotServerGroup';
export * from './ISpotCluster'; |
import { Test, TestingModule } from '@nestjs/testing';
import BookController from './book.controller';
describe('BookController', () => {
let controller: BookController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [BookController],
}).compile(... |
import {Stream, StreamType} from "./schema/stream";
type StreamKeys = [key in Stream];
export function filterStream (stream: Stream, [x in keyof Stream]) {
} |
/**
* @license Use of this source code is governed by an MIT-style license that
* can be found in the LICENSE file at https://github.com/cartant/rxjs-etc
*/
import { Observable, Subject } from "rxjs";
import { startWith, switchMap } from "rxjs/operators";
// https://stackoverflow.com/a/51147023/6680611
export fun... |
import React from "react";
import { render } from "@testing-library/react-native";
import DietaryHistory from ".";
import { ApplicationProvider } from "../../../../app/context/app";
import { AppProvider } from "../../../../app/context/main";
import { NavigationContainer } from "@react-navigation/native";
import { creat... |
import { Producto } from 'app/feature/Producto/models/Producto';
import { Reserva } from 'app/feature/Producto/models/Reserva';
export const LISTAR_PRODUCTOS = 'LISTAR_PRODUCTOS';
export const AGREGAR_PRODUCTO = 'AGREGAR_PRODUCTO';
export const ELIMINAR_PRODUCTO = 'ELIMINAR_PRODUCTO';
export const CREAR_RESERVA = 'CRE... |
import {mount } from 'enzyme'
import * as React from 'react'
import * as renderer from 'react-test-renderer'
import { Navbar } from '../components/Navbar'
describe('<Navbar />', () => {
it('renders correctly', () => {
const tree = renderer
.create(<Navbar />)
.toJSON()
expe... |
import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';
import * as ga from './globalaccelerator.generated';
import { IListener } from './listener';
/**
* The interface of the EndpointGroup
*/
export interface IEndpointGroup extends cdk.IResource {
/**
* EndpointGroup ARN
* @attribute
... |
import React, { useContext } from 'react';
import { t } from '../../i18n';
import { C, ICONS } from '@unocha/hpc-ui';
import { operations } from '@unocha/hpc-data';
import * as paths from '../paths';
import { AppContext } from '../context';
import { useLocation } from 'react-router-dom';
interface Props {
operatio... |
import React from "react";
import {
MsalProvider,
AuthenticatedTemplate,
UnauthenticatedTemplate,
useMsal,
} from "@azure/msal-react";
import { QueryClientProvider, QueryClient } from "react-query";
import Assets from "./AssetView";
import { pca, scopes } from "./auth";
const client = new QueryClient({
defau... |
import '../styles/global.scss'
import { Header } from '../components/Header'
import { Player } from '../components/Player';
import styles from '../styles/app.module.scss';
import { PlayerContextProvider } from '../contexts/PlayerContexts';
function MyApp({ Component, pageProps }) {
return(
<PlayerContextProvid... |
/*
* 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 { Index as IndexInterface } from '../../../index_management/common/typ... |
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from "typeorm"
@Entity()
export class User extends BaseEntity {
@PrimaryGeneratedColumn()
id!: number
@Column()
name!: string
} |
import "@nivinjoseph/n-ext";
export declare class SymmetricEncryption {
private constructor();
static generateKey(): Promise<string>;
static encrypt(key: string, value: string): Promise<string>;
static decrypt(key: string, value: string): Promise<string>;
} |
/**
* @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 {EventEmitter} from '@angular/core';
import {Observable} from 'rxjs';
import {removeListItem} from './directi... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import { ProtocolError, invalidHitCondition } from '../../../dap/errors';
import { IBreakpointCondition } from '.';
/**
* Regex used to... |
import {
AfterViewInit,
ChangeDetectionStrategy,
Component,
ContentChildren,
EventEmitter,
forwardRef,
Input,
OnDestroy,
Output,
QueryList,
Renderer2,
} from "@angular/core";
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms";
import _remove from "lodash... |
import { Module } from '@nestjs/common';
import { PrismaService } from 'src/prisma.service';
import { CategoryController } from './category.controller';
import { CategoryService } from './category.service';
@Module({
providers: [CategoryService, PrismaService],
controllers: [CategoryController],
})
export class Ca... |
import { CanvasLayer } from './layers/CanvasLayer';
import { Transform } from './core/Transform';
export class ArfDrawer {
private layers: CanvasLayer[] = [];
private defaultLayer: CanvasLayer | null = null;
constructor(private container: HTMLElement, private initDefaultLayer = true) {
if (initDefaultLayer)... |
import * as AWSMock from "aws-sdk-mock";
import { GetPublicKeyRequest } from "aws-sdk/clients/cloudfront";
import { DescribeKeyRequest, SignRequest } from "aws-sdk/clients/kms";
import { TEST_PUBLICKEY_DER } from "../utils/asn1/asn1-test-data.spec";
// A Mocked Response from KMS describeKey
const mockKMSKeyDescribeWit... |
import { trigger, state, animate, transition, style } from '@angular/animations';
export const newlyAddedRowAnimation = [
trigger('newlyAddedRowAnimation', [
state('notAdded, void', style({ transform: 'translateX(0%)' })),
state('added', style({ transform: 'translateX(100%)' })),
transition('added <=> no... |
/// TypeScript での定義ファイル読み込み (JavaScript では関係ありません)
///<reference path="../libs/stagegl-extensions.next.d.ts" />
var view:away.containers.View;
var image:HTMLImageElement;
var mesh:away.entities.Mesh;
var rot:number = 0;
var mouseX = 0; // マウス座標
// マウスを押した状態かどうかを判別するフラグ
var isMouseDown:boolean = false
// 一時的なマウスの値を格納... |
import { Injectable } from '@nestjs/common';
import { of, Observable } from 'rxjs';
import { ReportDBService } from './report-db.service';
import { ApprovalOverrideReportDto } from '../dto/approval-override-report.dto';
import { PendingLeaveService } from 'src/admin/approval-override/pending-leave.service';
import { me... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ur_PK" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About MaryJaneCoin</source>
<translation type="unfinished"/>
</message>
<message>
<locatio... |
import * as React from 'react';
import { SemanticTRANSITIONS } from '../../';
import { TransitionPropDuration } from './Transition';
export interface TransitionGroupProps {
[key: string]: any;
/** An element type to render as (string or function). */
as?: any;
/** Named animation event to used. Must be defi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.