text stringlengths 10 953k |
|---|
import React from 'react';
export declare const SmartIndigo: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
animated?: boolean | undefined;
} & React.RefAttributes<HTMLDivElement>>; |
import React, { FC } from 'react';
import { Icon, IconInterface } from "@redesign-system/ui-core";
export const TableIcon: FC<IconInterface> = function TableIcon({
className,
...propsRest
}) {
const classNames = `TableIcon ${className}`;
return (
<Icon alt="Table" className=... |
import { InstantSearch, Hit, Hits, EscapedHits } from '../../types';
import { serializePayload } from '../../lib/utils/serializer';
import { InsightsEvent } from '../../middlewares/createInsightsMiddleware';
type BuiltInSendEventForHits = (
eventType: string,
hits: Hit | Hits,
eventName?: string
) => void;
type ... |
import { Component } from '@angular/core';
import { UserLoginService } from '../../service/user-login.service';
import { CognitoUtil, LoggedInCallback } from '../../service/cognito.service';
import { UserParametersService } from '../../service/user-parameters.service';
import { Router } from '@angular/router';
import {... |
import { TestBed } from '@angular/core/testing';
import { File } from '@ionic-native/file';
import { DexieService } from '@services/dexie/dexie.service';
import { DirectoryService } from '@services/directory/directory.service';
import { ItemService } from '@services/item/item.service';
import { FileService } from '@ser... |
import { Test, TestingModule } from '@nestjs/testing';
import { MeasurementController } from './measurementController';
describe('Measurment Controller', () => {
let controller: MeasurementController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [M... |
/*
title?: ROLE_TITLE;
start_datetime?: Date;
end_datetime?: Date;
person?: Person;
person_ref?: string;
body?: Body;
body_ref?: string;
seat?: Seat;
seat_ref?: string;
external_source_id?: string;
*/
import { ROLE_TITLE } from "../../models/util/RoleUtilities";
import { basicBody } from "./body";
i... |
/*
* 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 '../../..... |
/*
* Copyright (C) 2017 TypeFox and others.
*
* 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
*/
import { interfaces } from "inversify";
import {
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ConfirmDialogComponent } from './confirm-dialog.component';
import { MatDialogModule, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { TestConfUtil } from 'src/app/test/test-conf.util';
import { TestConfigModel ... |
/**
* All channels used by angular's WebWorker components are listed here.
* You should not use these channels in your application code.
*/
export const RENDERER_CHANNEL = 'ng-Renderer';
export const EVENT_CHANNEL = 'ng-Events';
export const ROUTER_CHANNEL = 'ng-Router'; |
export function toSeq(shortcut: string) {
const result = new Array<string>();
let lastIsPlusSign = false,
key = '';
shortcut.split('').forEach(char => {
if (char === ' ' && !lastIsPlusSign) {
if (key) {
result.push(key);
key = '';
}
... |
/// <reference types="@types/googlemaps" />
import { ElementRef, NgZone, OnInit, ViewChild, Component } from '@angular/core';
import { routerTransition } from '../../router.animations';
import { FormControl } from '@angular/forms';
// import { } from 'googlemaps';
import { MapsAPILoader, MouseEvent } from '@agm/core';
... |
import { NgxDocViewerComponent } from './document-viewer.component';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
imports: [CommonModule],
declarations: [NgxDocViewerComponent],
exports: [NgxDocViewerComponent],
})
export class NgxDocViewerModule {} |
import { defineComponent, inject, computed, PropType, toRefs } from 'vue';
import { TABLE_TOKEN } from '../table.type';
import { Column } from '../column/column.type';
import { Checkbox } from '../../../checkbox';
import { Sort } from './sort';
import { Filter } from './filter';
import './header.scss';
import '../bod... |
import { Injectable, Logger, NotFoundException } from '@nestjs/common'
import { InjectRepository } from '@nestjs/typeorm'
import { Repository } from 'typeorm'
import { ProductOrmEntity } from '@modules/product/database/product.orm-entity'
import { ProductOrmMapper } from '@modules/product/database/product.orm.mapper'
... |
import PluginManager from '@jbrowse/core/PluginManager'
import SpreadsheetViewF from './SpreadsheetView'
const pluginManager = new PluginManager()
const SpreadsheetView = pluginManager.load(SpreadsheetViewF)
describe('Spreadsheet View mst model', () => {
it('can instantiate with empty args', () => {
const view ... |
import { inject, injectable } from "tsyringe";
import { AppError } from "@shared/errors/AppError";
import { ICategoriesRepository } from "@modules/cars/repositories/interfaces/ICategoriesRepository";
interface IRequest {
name: string;
description: string;
}
@injectable()
export class CreateCategoryUseCase {
cons... |
import { Plugin } from './Plugin';
import { Logger } from '../logger/Logger';
export declare type ResolveImport = (source: string, code: string, line: number, column: number) => string | undefined | Promise<string | undefined>;
export declare function transformImports(code: string, filePath: string, resolveImport: Reso... |
export type ProjectType = 'standard' | 'bidpool' |
import styled from "styled-components";
export const Container = styled.main`
width: clamp(16rem, calc(100% - 5rem), 45.625rem);
margin: 2.5rem auto;
text-align: center;
`; |
import { Injectable, OnInit } from '@angular/core';
import { ITeam } from 'app/shared/model/team.model';
import { TeamsService } from 'app/teams/teams.service';
import { LocalStorageService } from 'ngx-webstorage';
import { TeamSkillService } from 'app/entities/team-skill';
import { Observable } from 'rxjs/Observable';... |
import { BufferGeometry } from './BufferGeometry';
/**
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/InstancedBufferGeometry.js|src/core/InstancedBufferGeometry.js}
*/
export class InstancedBufferGeometry extends BufferGeometry {
constructor();
/**
* @default 'InstancedBufferGeometry
... |
/*
* Copyright 2015-2016 Imply Data, 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 required by applicable law or ... |
/**
* @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
*/
export declare class MatTableModule {
} |
/**
* @license
* Copyright 2019 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 {TestBed} from '@angular/core/testing';
import {TextRenderingService} from './text-rendering.service';
import {LineType} from './line-type';
import {SectionType} from './section-type';
describe('TextRenderingService', () => {
const testText = `Strophe
C D E F G A H
Text Line 1-1
a d e f g a h c b
Text Line 2... |
import { config } from 'dotenv';
import { expand } from 'dotenv-expand';
import { existsSync } from 'fs';
export const loadDotenv = (): void => {
// web-server(next.js)と近い仕様にさせて混乱を防ぐ狙いで、.env.localもサポートしている。
// ちなみに、npmのdotenvのreadmeには「.envはコミットするな」「.env系のファイルは1つにまとめろ」と書かれている ( https://github.com/motdotla/doten... |
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. 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 ... |
import http from '@/utils/http/axios'
import { BasicResponseModel } from '@/api/BasicResponseModel'
import { LoginParams, LoginResultModel } from './model/userModel'
import { ContentTypeEnum } from '@/enums/httpEnum'
enum Api {
login = '/admin/login',
logout = '/login/logout'
}
/**
* @description: 获取用户信息
*/
exp... |
/// <reference types="react" />
import * as React from 'react';
import './TextField.Styled.Example.scss';
export declare const TextFieldStyledExample: React.StatelessComponent; |
import * as React from 'react';
import { Link } from 'react-router-dom';
import {
Collapse,
Container,
DropdownItem,
DropdownMenu,
DropdownToggle,
Nav,
Navbar,
NavbarToggler,
NavItem,
NavLink,
UncontrolledDropdown,
} from 'reactstrap';
interface NavigationState {
isOpen... |
import { OnInit } from '@angular/core';
import { Injectable } from '@angular/core';
import * as moment from 'moment';
// import moment = require('moment');
declare var $: any;
@Injectable({
providedIn: 'root'
})
export class NotificationsService implements OnInit {
notificationsArray:string[] = [];
constructor()... |
import { createActionFactory } from "@neufund/shared-utils";
import { IKycBeneficialOwner, IKycFileInfo } from "../../../lib/api/kyc/KycApi.interfaces";
export const kycBeneficialOwnerActions = {
kycLoadBeneficialOwners: createActionFactory("KYC_LOAD_BENEFICIAL_OWNERS"),
kycUpdateBeneficialOwners: createActionFac... |
/*
* @license
* Copyright 2016 Palantir Technologies, 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 required by ... |
import * as assert from "assert";
import { Convert } from "pvtsutils";
import { Crypto as NodeCrypto } from "@peculiar/webcrypto";
import { Crypto } from "../src";
const crypto = new NodeCrypto();
const liner = new Crypto();
context("ED", () => {
context("generate/export/import/sign/verify", () => {
const alg ... |
import React, { useRef, FunctionComponent } from 'react';
import { useStyletron } from 'baseui';
import { mq, display } from '../styles';
import useComponentSize from '@rehooks/component-size';
import SanityImgFluid from '../sanity-img-fluid';
import { PropTypes } from './types';
const ImageGallery: FunctionComponent... |
import { render, screen } from '@testing-library/react';
import { stripe } from '../../services/stripe';
import Home, { getStaticProps } from '../../pages'
import { mocked } from 'ts-jest/utils';
jest.mock('next/router');
jest.mock('next-auth/client', () => {
return {
useSession: () => [null, false]
}
});
jest... |
import { defaultFieldResolver, GraphQLFieldResolver } from 'graphql';
import { ILogger } from '../Interfaces';
/*
* fn: The function to decorate with the logger
* logger: an object instance of type Logger
* hint: an optional hint to add to the error's message
*/
export function decorateWithLogger(
fn: GraphQLFi... |
export * from './ngx-segment-analytics.module';
export * from './ngx-segment-analytics.service';
export * from './ngx-segment-analytics.config';
export * from './window-wrapper'; |
import { JSSStyles } from 'styles/jss';
export const styles: JSSStyles = {
}; |
import { forwardRef } from "@chakra-ui/system"
import { __DEV__ } from "@chakra-ui/utils"
import * as React from "react"
import { Icon, IconProps } from "./icon"
interface CreateIconOptions {
/**
* The icon `svg` viewBox
* @default "0 0 24 24"
*/
viewBox?: string
/**
* The `svg` path or group element... |
interface User {
id: number;
name: string;
f_name: string;
password: any;
}
interface Lesson {
id: number;
name: string;
date: number;
desc: string | number;
src: string;
duration: number;
} |
import { Expectation } from '@serenity-js/core';
export declare function property<Actual, Property extends keyof Actual>(propertyName: Property, expectation: Expectation<any, Actual[Property]>): Expectation<Actual[Property], Actual>; |
import { Directive, ViewContainerRef, ContentChildren } from '@angular/core';
import { ComplexBase, ArrayBase, setValue } from '@syncfusion/ej2-angular-base';
let input: string[] = ['model'];
let outputs: string[] = ['click'];
/**
* 'e-button' directive represent a button of angular toast
* It must be contained i... |
import {Expose, Transform} from 'class-transformer';
import {Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn} from 'typeorm';
import {Audit} from '../../dao/Audit';
import {ProjectModel} from '../ProjectModel';
import {ServerModel} from '../ServerModel';
import {Setting} from '../../dto/Setting';
@Entity... |
import { ComposeMessageBox } from './ComposeMessageBox';
export default ComposeMessageBox; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Sanchezium</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
import { RootState } from "MyTypes";
import { connect } from "react-redux";
import { Route, Redirect } from "react-router-dom";
import { selectToken } from "../../store/auth/duck/selectors";
import React, { ReactNode } from 'react';
import { Cookies } from "react-cookie";
import NewNavigation from "./NewNavigation";
i... |
import { assertEquals, encode } from "./../test_deps.ts";
import { hchacha20InitState } from "./hchacha20_init_state.ts";
const {
readFileSync,
build: { os }
} = Deno;
const DIRNAME = (os !== "win" ? "/" : "") +
import.meta.url.replace(/^file:\/+|\/[^/]+$/g, "");
interface TestVector {
key: Uint8Array;
non... |
import React from 'react'
interface IPerformanceProps {
}
const Performance: React.FunctionComponent<IPerformanceProps> = props => {
return <div>performance</div>
}
export default Performance |
import difference from "lodash/difference"
import keys from "lodash/keys"
import isObjectLike from "lodash/isObjectLike"
import { ObjectShape, ValidationError, ValidationOptions } from "./types"
import { createValidationError } from "./createValidationError"
import { translateMessage } from "./translateMessage"
export... |
enum A {
a,
}
enum A {
b = 1,
} |
export const theme = {
colors: {},
fonts: {
regular: 'Montserrat_400Regular',
semibold: 'Montserrat_600SemiBold',
bold: 'Montserrat_700Bold',
}
}; |
// tslint:disable:no-console
// tslint:disable:no-empty
import * as utils from '@underbase/utils';
import * as fs from 'fs-extra';
import 'jest-extended';
import * as validation from '../../middlewares/validators';
describe('UNIT - CLI/Middlewares', () => {
let mockedExistsSync: any;
let mockedLogger: any;
befo... |
import { QuorumDto, SupplyDto } from '@app/types';
import { AppCache, NANO_CLIENT, QUORUM_CACHE_PAIR } from '@app/config';
import {
cache,
convertFromRaw,
getOfflineRepresentativesPromise,
getRepresentativesPromise,
getSupplyPromise,
LOG_ERR,
} from '@app/services';
import { ConfirmationQuorumRe... |
import * as path from 'path';
import * as http from 'http';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import { environment } from '../environments/environment.prod';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { Http, HttpMod... |
/* Copyright 2018 Mozilla Foundation
*
* 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 rights
* to use, copy, modify, merge, publish... |
export abstract class Object2D {
abstract partClosestTo(point: Point): Point
sqDistanceFrom(point: Point): number {
return this.partClosestTo(point).sqDistanceFrom(point)
}
distanceFrom(point: Point): number {
return Math.sqrt(this.sqDistanceFrom(point))
}
}
export class Vector {
readonly... |
interface CocoSqliteAPI {
// returns an identical interface that is within an transaction
begin():Promise<this>;
// commits an ongoing transaction (if begin returned a separate object it is no longer valid)
commit():Promise<void>;
// rollbacks an ongoing transaction (if begin returned a separate object it is no ... |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { StoreModule } from '@ngrx/store';
import { LocalStorageModule } from 'angular-2-local-storage';
import { HttpClient } from '@angular... |
/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { inject, TestBed } from '@angular/core/testing';
import {
AnalyticsService,
ApiUrlConfig,... |
import React, { ReactElement } from 'react';
import { Typography } from '@mui/material';
import FlexButton from '../FlexButton';
import { Box } from '@mui/system';
import HeroBlob from './HeroBlob';
import NavLink from '../../interfaces/NavLink';
export interface HeroProps {
navLink: NavLink;
header: string;
ima... |
import { WebdevkrsandAngularIntroPage } from './app.po';
describe('webdevkrsand-angular-intro App', () => {
let page: WebdevkrsandAngularIntroPage;
beforeEach(() => {
page = new WebdevkrsandAngularIntroPage();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(pag... |
import { ModuleWithProviders, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { SharedModule } from '../../shared/modules/sharedModule';
import { BasketComponent } from './basket-page/basket.component';
import { BasketService } from... |
export * from './Delegating';
export * from './DelegatingConfigurer';
export * from './DelegatingTypes'; |
/*
* @Description: 数据恢复,在初次安装和设置界面使用
* @Autor: HuiSir<273250950@qq.com>
* @Date: 2021-12-03 15:50:11
* @LastEditTime: 2022-05-05 13:58:31
*/
import { doRecover } from "@/api/option"
import {
relaunch,
showOpenFileBox,
showMessageBoxSync,
openChildWindow,
homedir
} from "@/api/win"
import { Ref } from "vu... |
import * as path from 'path';
import fs from 'fs';
import { TlsOptions } from 'tls';
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { ConnectionOptions } from 'typeorm';
import { PostgresConnectionOptions } from 'typeorm/driver/postgres/PostgresConnectionOptions';
let dbType:string;
if (process.env.DB... |
import { JilScene } from '../components';
export declare function FadeInOut(sceneSrc: JilScene | undefined, SceneDst: JilScene): void; |
export * from './BarHeader'
export * from './BarDivider'
export * from './BarDropDownList'
export * from './BarItem'
export * from './BarGroup'
export * from './BarSpacer'
export * from './IconButton'
export * from './Icon'
export * from './SideBar'
export * from './ToolBar'
export * from './ToolTip'
export * from './T... |
import { Mesh, Plane, Vector4 } from '../../../src/Three';
export class ShadowMesh extends Mesh {
constructor();
update(plane: Plane, lightPosition4D: Vector4): void;
} |
import * as React from 'react';
import { IconProps } from '../iconProps';
import { renderIcon } from '../SvgIcon';
const iconType = {
viewBox: '0 0 28 28',
paths: [
{
d:
'M14,2.54,25.73,25.92H2.27L14,2.54ZM14,0a2,2,0,0,0-1.66,1.22L.38,25c-.91,1.63-.13,3,1.73,3H25.89c1.86,0,2.64-1.33,1.73-3h0l-12-... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import {
CoreDescriptionModel
} from './widget_core';
import {
DescriptionView
} from './widget_description';
import {
uuid
} from './utils';
import * as _ from 'underscore';
export
class ColorPicker... |
import React from 'react';
import { Platform } from 'react-native';
import { useTheme } from 'styled-components';
import { MaterialIcons } from '@expo/vector-icons';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { Dashboard } from '../screens/Dashboard';
import { Register } from '../... |
import { useRef, useCallback } from 'react';
function useHookWithRefCallback<El extends HTMLElement>(
added: (el: El) => void,
removed: (el: El) => void
) {
const ref = useRef<El>(null);
const setRef = useCallback((node: El) => {
if (ref.current) {
// Make sure to cleanup any events/references added... |
import { useCallback, useEffect, useMemo, useState } from "react";
import { useHistory, useParams } from "react-router";
import { Tab, Tabs, TabList, TabPanel } from "react-tabs";
import "react-tabs/style/react-tabs.scss";
import {
createStockAlert,
deleteStockAlert,
deleteStockTransaction,
fetchStockAlert,
... |
import {useRef} from 'react';
import styled from 'styled-components';
import color from 'color';
import Icon from 'components/Icon/Icon';
interface ProfileImageProps {
image: string;
setImage: React.Dispatch<React.SetStateAction<string>>;
}
function ProfileImage({image, setImage}: ProfileImageProps) {
const file... |
import AsyncStorage from '@react-native-community/async-storage';
import {Observable} from 'shared/Observable';
import {Region} from 'shared/Region';
import {getSystemLocale} from 'locale/utils';
export enum Key {
IsOnboarded = 'IsOnboarded',
Locale = 'Locale',
Region = 'Region',
OnboardedDatetime = 'Onboarded... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Framework Emulator Github:
// https://github.com/Microsoft/BotFramwork-Emulator
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// ... |
import React from 'react';
import { ButtonProps } from './types';
const className = 'button';
const Wrapper = 'button';
const Button = (props: ButtonProps): JSX.Element => {
const {
children,
type = 'button',
value,
name,
onClick,
className: costomClassName,
width,
height,
paddin... |
import React, { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import Box from '../../../components/Box'
import Button from '../../../components/Button'
import CircleLoader from '../../../components/CircleLoader'
import Text from '../../../components/Text'
import TextInput from '../..... |
/*!
* Copyright 2021 WPPConnect Team
*
* 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 agree... |
import { Repository, EntityRepository } from "typeorm";
import { Scoring } from "./scoring.entity";
import { CreateRuleDto } from "./dto/create-rule.dto";
@EntityRepository(Scoring)
export class ScoringRepository extends Repository<Scoring> {
async createRule(createRuleDto: CreateRuleDto):Promise<Scoring>{
... |
/*
* Copyright The OpenTelemetry 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
import { Router, Request, Response } from 'express';
import { User } from '../models/User';
import * as bcrypt from 'bcrypt';
import * as jwt from 'jsonwebtoken';
import { NextFunction } from 'connect';
import * as EmailValidator from 'email-validator';
import { config } from '../../../../config/config';
const rout... |
/* @internal */
namespace ts.codefix {
const fixIdHtmlEntity = "invalidJsxCharactersConvertToHtmlEntity";
const fixIdExpression = "invalidJsxCharactersConvertToExpression";
const errorCodes = [Diagnostics.Unexpected_token_Did_you_mean_or_gt.code, Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];
... |
import { TestBed } from '@angular/core/testing';
import { PopularityService } from './popularity.service';
import {HttpClient} from "@angular/common/http";
describe('PopularityService', () => {
let service: PopularityService;
let httpClientMock;
beforeEach(() => {
httpClientMock = jasmine.createSpyObj('h... |
export class Register {
username: string;
email: string;
password: string;
firstName: string;
lastName: string;
address: string;
city: string;
state: string;
} |
import styled from 'styled-components';
import React from 'react';
const IconButtonStyled = styled.button`
width: 50px;
border: none;
height: 50px;
background-color: ${props => props.theme.primaryColorTransparent};
cursor: pointer;
display: flex;
justify-content: center;
border-radius: 90px;
transiti... |
import { CommonModule } from '@angular/common';
import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';
import { FormsModule, ReactiveFormsModule} from '@angular/forms';
import { DateRangePickerComponent } from './date-range-picker.component';
import { DateRangePickerDirective } from './dat... |
import icannTrie from "../serialized-tries/icann.json";
import privateTrie from "../serialized-tries/private.json";
export {icannTrie, privateTrie}; |
export interface Task {
id?: string;
title: string;
description: string;
} |
import { VantComponent } from '../common/component';
VantComponent({
relation: {
name: 'col',
type: 'descendant',
current: 'row',
linked(target) {
const { gutter } = this.data;
if (gutter) {
target.setData({ gutter });
}
},
},
props: {
gutter: {
type: Num... |
import { Media } from '../interfaces/media.interface';
import { Column, Entity, PrimaryColumn, PrimaryGeneratedColumn } from 'typeorm';
import { ApiProperty } from '@nestjs/swagger';
@Entity('profileImage')
export class MediaDto implements Media {
@ApiProperty({ required: false })
@PrimaryGeneratedColumn()
Media... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { RouterModule, Routes } from '@angular/router';
import { AppComponent } from './app.component';
import { PokemonSe... |
/**
* Copyright (c) 2017 The Absolute 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 la... |
/**
* Helper Email service.
* @file Helper Email 邮件服务
* @module processor/helper/email.service
* @author Surmon <https://github.com/surmon-china>
*/
import * as nodemailer from 'nodemailer';
import * as APP_CONFIG from '@app/app.config';
import { Injectable } from '@nestjs/common';
import { getMessageFromNormalEr... |
import init from "stork-search";
const version = null; // process.env.VERSION
const DEFAULT_WASM_URL = version
? `https://files.stork-search.net/stork-${version}.wasm`
: `https://files.stork-search.net/stork.wasm`;
export const loadWasm = (overrideUrl: string | null): Promise<void> => {
const url = overrideUrl ... |
import { Verifier, VerifyError } from "./verifier";
import { ExpectedExpressionReflector } from "./expected-expressions/expected-expression-reflector";
import { Times } from "./times";
import { CallCounter } from "./call-counter";
import { ExpectedGetPropertyExpression } from "./expected-expressions/expected-expression... |
/// <reference path="query.ts" />
import Http = client.Http;
import ResultInfo = data.ResultInfo;
import ResultData = data.ResultData;
namespace api {
export class Api {
/**
*
*/
constructor(public http: Http) {
}
}
export class AuthApi extends Api {
const... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.