text
stringlengths
10
953k
import * as React from "react"; import Svg, { Path } from "react-native-svg"; type Props = { size?: number | string; color?: string; }; function BatteryHalfMedium({ size = 16, color = "currentColor", }: Props): JSX.Element { return ( <Svg width={size} height={size} viewBox="0 0 24 24" fill="none"> ...
export * from './startHoldMusicPostRequestBody'
/* * © 2021 Thoughtworks, Inc. */ import fs from 'fs' export function getTargetDir(): string { // Drive letter can end up being lowercased here on Windows, bring back to uppercase for consistency return fs .realpathSync(process.cwd()) .replace(/^[a-z]:/, (str) => str.toUpperCase()) }
// Type definitions for koa-subdomain 3.0 // Project: https://github.com/keenwon/koa-subdomain#readme // Definitions by: Jan Nöhles <https://github.com/BolZer> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Middleware } from "koa"; import { IMiddleware } from "koa-router"; declare namespa...
/** * @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 */ /// <amd-module name="@angular/language-service/src/diagnostic_messages" /> import * as ts from 'typescript'; import *...
import { Component, OnInit } from '@angular/core'; export const codemirrorTs: any = { lineNumbers: true, readOnly: true, theme: 'monokai', mode: { name: 'javascript', typescript: true }, // force codemirror's height https://codemirror.net/demo/resize.html viewportMargin: Infinity }; export const cod...
import { Field, ObjectType } from "type-graphql"; @ObjectType() export default class FieldError { @Field() field: string; @Field() message?: string; }
import { NgModule } from '@angular/core'; import { CommonModule, } from '@angular/common'; import { BrowserModule } from '@angular/platform-browser'; import { Routes, RouterModule } from '@angular/router'; import { AdminLayoutComponent } from './layouts/admin-layout/admin-layout.component'; import { AuthLayoutCompone...
import { notification } from 'antd'; import * as Sentry from '@sentry/browser'; import { UploadTask } from 'firebase/storage'; import { storage, storageRef, getBytes, deleteObject, uploadBytesResumable, } from '../firebase'; const BASE_PATH = 'public/users'; const genericError = (error: Error) => notificati...
export const SET_MAILING_TABLE = 'SET_MAILING_TABLE'; export type SetMailingTableAction = { type: typeof SET_MAILING_TABLE; payload?: any[]; }; export type MailingTableAction = SetMailingTableAction;
export { Folder, IFolder, Location } from './folder';
import * as path from 'path'; import { pri } from '../../../node'; import { testsPath } from '../../../utils/structor-config'; import { typeChecker } from '../../../utils/type-checker'; import { IOpts } from './interface'; pri.project.whiteFileRules.add(file => { return path.format(file).startsWith(path.join(pri.pro...
// This icon file is generated by build/generate.ts // tslint:disable import { IconDefinition } from '../types'; export const CloudDownloadOutline: IconDefinition = { name: 'cloud-download', theme: 'outline', icon: '<svg viewBox="64 64 896 896"><path d="M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pl" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Sobercoin</source> <translation>O Sobercoin</translation> </mess...
import { ReactComponent as ArrowIcon } from 'assets/images/arrow.svg'; import axios from 'axios'; import ProductPrice from 'components/ProductPrice'; import { useState, useEffect } from 'react'; import { Link, useParams } from 'react-router-dom'; import { Product } from 'types/product'; import { BASE_URL } from 'util/r...
import React from 'react' import { Lead, CodeHighlight, Link } from 'tsx-docs' export default () => ( <> <Lead> Welcome to your Docs{' '} <span role="img" aria-label="party"> 🎉 </span> </Lead> <p> We recommend following our{' '} <a href="https://tsx-docs.now.sh/guide">Guide</a> if you're no...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import * as api from "@fluid-internal/client-api"; import { ILoader } from "@fluidframework/container-definitions"; import { ISharedMap } from "@fluidframework/map"; import * as MergeTree from "@fluidframework/merge...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { ContractOptions } from "web3-eth-contract"; import { EventLog } from "web3-core"; import { EventEmitter } from "events"; import { Callback, PayableTransactionObject, NonPayableTransactionObj...
import {Component} from '@angular/core'; import {NgbTabChangeEvent} from '@ng-bootstrap/ng-bootstrap'; @Component({ selector: 'ngbd-tabset-preventchange', templateUrl: './tabset-preventchange.html' }) export class NgbdTabsetPreventchange { public beforeChange($event: NgbTabChangeEvent) { if ($event.nextI...
import { Prop } from '@nestjs/mongoose'; import { ApiProperty } from '@nestjs/swagger'; export class UpdateCapabilitiesDTO { @ApiProperty() @Prop() name: string; }
version https://git-lfs.github.com/spec/v1 oid sha256:0101320e3da6405a88d1f3d3006472d908f8e236671439f0a23a4cb9e40b3101 size 250040
import { useParams } from 'react-router-dom' import { AssetHeader } from 'components/AssetHeader/AssetHeader' import { Main } from 'components/Layout/Main' import { AssetTransactionHistory } from 'components/TransactionHistory/AssetTransactionHistory' import { MatchParams } from './CosmosAsset' export const CosmosAss...
GOCAD TSurf 1 HEADER { name: PNRA-NBJD-CDVD-Canada_David_detachment-CFM3_m500 *solid*color: 1 0.447059 0.337255 1 } GOCAD_ORIGINAL_COORDINATE_SYSTEM NAME Default PROJECTION Unknown DATUM Unknown AXIS_NAME X Y Z AXIS_UNIT m m m ZPOSITIVE Elevation END_ORIGINAL_COORDINATE_SYSTEM PROPERTY_CLASS_HEADER X { kind: X unit: m...
import { concat as asyncConcat } from "async"; import { callbackify, resolveCallback } from "./internal/asyncTransforms"; /** * Applies `iteratee` to each item in `coll`, concatenating the results. Returns * the concatenated list. The `iteratee`s are called in parallel, and the * results are concatenated as they re...
import { Component, EventEmitter, Input, Output } from '@angular/core'; import { MARKER_COLORS, PositionFormService } from '../position-form.service'; @Component({ selector: 'app-color-picker', templateUrl: './color-picker.component.html', styleUrls: ['./color-picker.component.scss'] }) export class ColorPickerC...
import { spawn, ChildProcessWithoutNullStreams } from "child_process"; import { Stream } from "stream"; import pathHelper from "./../path-helper"; import * as fs from "fs-extra"; import outputConsole from "./../output-console"; import * as glob from "glob"; import { join } from "path"; import formatProviderResolver fro...
import { IQuestion } from "../question/question.model"; import QuestionService from "../question/question.service"; import AnswerService from "../answer/answer.service"; export default class SearchService { public static async searchQuestionContainingText( text: string, ): Promise<IQuestion[]> { const ques...
// FILE GENERATED BY `rollup-plugin-dts@0.13.0` // https://github.com/Swatinem/rollup-plugin-dts /** * ASN1 type */ interface IEmptyConstructor<T> { new (): T; } /** * Allows to convert ASN.1 object to JS value and back */ interface IAsnConverter<T = any, AsnType = any> { /** * Returns JS value from A...
import React, { useEffect } from "react"; type AutoReloadProps = { disabled: boolean; isPlay: boolean; unit: number; range: number; imageCount: number; load: Function; index: number; }; const AutoReload: React.FunctionComponent<AutoReloadProps> = ({ disabled, isPlay, imageCount, range, load, ...
import { Component, OnInit } from '@angular/core'; import { Quote } from '../quote'; @Component({ selector: 'app-quote', templateUrl: './quote.component.html', styleUrls: ['./quote.component.css'] }) export class QuoteComponent implements OnInit { title = 'Quotes'; quotes: Quote[] = [ new Quote(1, 'Read...
import { NextMiddlewareResult } from "next/dist/server/web/types"; import { NextRequest, NextResponse } from "next/server"; import { GEOLOCATION } from "@/lib/const"; import { CHANNELS, DEFAULT_CHANNEL, DEFAULT_LOCALE, LOCALES } from "@/lib/regions"; export function LocaleRedirectionMiddleware({ nextUrl, headers,...
import * as crypto from 'crypto'; /** * 调用randombytes生成二进制流,转换成base64的字符串 * @returns */ export function addSalt() { return crypto.randomBytes(3).toString('base64'); } export function encript(userPassword: string, salt: string): string { return crypto .pbkdf2Sync(userPassword, salt, 10000, 16, 'sha256') ...
import { ChangeDetectorRef, Component, EventEmitter, OnDestroy, OnInit, Output } from '@angular/core'; import { AppComponent } from '../../app.component'; import { select, Store } from '@ngrx/store'; import * as fromErrors from '../store/core.reducers'; import * as fromRoot from '../../app.reducers'; import { Observabl...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { DisplayCarsComponent } from './display-cars.component'; describe('DisplayCarsComponent', () => { let component: DisplayCarsComponent; let fixture: ComponentFixture<DisplayCarsComponent>; beforeEach(async(() => { TestBed.conf...
import AABB from '../helpers/AABB'; import Size from '../helpers/Size'; export function createSpriteOutOfSpritesheet(image: HTMLImageElement, tileAabb: AABB): HTMLCanvasElement { let canvas: HTMLCanvasElement = document.createElement('canvas'); canvas.width = tileAabb.width; canvas.height = tileAabb.height...
import * as React from 'react'; import { Button, EmptyState, EmptyStateIcon, EmptyStateBody, Expandable } from '@patternfly/react-core'; import { ChartArea, ChartBar, ChartScatter, ChartLine } from '@patternfly/react-charts'; import { CubesIcon, AngleDoubleLeftIcon, ExpandArrowsAltIcon, ErrorCircleOIcon } from '@patter...
import * as React from 'react'; import { AzureVirtualMachine } from '@waldur/azure/common/types'; import { withTranslation } from '@waldur/i18n'; import { Field, ResourceSummaryProps } from '@waldur/resource/summary'; import { formatIpList } from '@waldur/resource/summary/VirtualMachineSummary'; import { UserPassword ...
/** * @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 {FocusKeyManager, FocusOrigin} from '@angular/cdk/a11y'; import {Direction} from '@angular/cdk/bidi'; import {...
export enum RabbitMQ { UserQueue = 'user', PassengerQueue = 'passenger', FlightQueue = 'flight', } export enum UserMSG { CREATE = 'CREATE_USER', FIND_ALL = 'FIND_USERS', FIND_ONE = 'FIND_USER', UPDATE = 'UPDATE_USER', DELETE = 'DELETE_USER', VALID_USER = 'VALID_USER', } export enum...
import { createSelector } from '@ngrx/store'; import { AppState } from '../reducers'; const getUserState = (state: AppState) => state.user; export const getUserUid = createSelector(getUserState, (user) => user.uid);
import Extension from './Extension'; import Identifier from './Identifier'; import Element from './Element'; import Quantity from './Quantity'; /** * A homogeneous material with a definite composition. */ export default class Substance_Instance { /** * Unique id for the element within a resource (for intern...
import * as parse from 'csv-parse'; import * as transform from 'stream-transform'; import { createReadStream, PathLike } from 'fs'; import { Stream } from 'stream'; const escValue = (value: string): string => { if (value === 'NULL') { return value; } return "'" + value.replace(/'/g, "''") + "'"; }; const e...
import { Value } from '@sidewinder/value' import { Type } from '@sidewinder/type' import { Assert } from '../../assert/index' describe('value/create/Any', () => { it('Should create value', () => { const T = Type.Any() Assert.deepEqual(Value.Create(T), {}) }) it('Should create default', () => { const ...
import store, { RootState } from "."; import { settingsDataSelector, settingsIsSyncingFromServerSelector, settingsIsSyncingToServerSelector, settingsShouldSyncToServerSelector, } from "../selectors"; import { Settings } from "../types"; import settingsSlice, { createInitialState } from "./settingsSlice"; const...
import { Git } from "./git"; import { Commit } from "./commit"; import { LocalityRecorder } from "bugfinder-framework"; export declare class CommitRecorder implements LocalityRecorder<Commit> { git: Git; getLocalities(): Promise<Commit[]>; }
import { Resolver, Factory, fallbackInvoker, transient, singleton } from './../../src/di'; import { spy } from 'sinon'; import { DI, Container, PLATFORM, IContainer, IDefaultableInterfaceSymbol, ResolverStrategy, inject, invokeWithDynamicDependencies, classInvokers, Registration } from "../../src"; import { expect } fr...
import { AppPage } from './app.po'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getTitleText()).toEqual('Welcome to catalyst-webui-angular!'); }); });
import { LogRepository, MessageRepository, NotificationRepository, NotificationTemplateEntity, SubscriberEntity, SubscriberRepository, } from '@novu/dal'; import { UserSession, SubscribersService } from '@novu/testing'; import { expect } from 'chai'; import { ChannelTypeEnum, IEmailBlock } from '@novu/shar...
import {IStatement} from "./_statement"; import {seq} from "../combi"; import {TargetFieldSymbol} from "../expressions"; import {IStatementRunnable} from "../statement_runnable"; export class Unassign implements IStatement { public getMatcher(): IStatementRunnable { return seq("UNASSIGN", TargetFieldSymbol); ...
import { Card } from '../../../interfaces' import Set from '../Rebel Clash' const card: Card = { name: { en: "Dragapult V", fr: "Lanssorien V", es: "Dragapult V", it: "Dragapult V", pt: "Dragapult V", de: "Katapuldra V" }, illustrator: "aky CG Works", rarity: "Ultra Rare", category: "Pokemon", set: ...
export * from './numberpicker.model'; export * from './numberpicker.component';
import { Component, OnDestroy, Input, ViewChild } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { ICandidateInterview, ICandidate } from '@leano/contracts'; import { CandidateEmailComponent } from './candidate-email/candidate-email.component'; @Component({ selector: 'ga-candidate-notificatio...
import { DOCUMENT } from '@angular/common'; import { Renderer2 } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { IntervalType } from 'src/app/shared/constants/interval-type.enum'; import { TimerStateService } from 'src/app/shared/services/timer-state.service'; import { TimerStateServiceS...
// 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 fs from "fs"; import serializeError = require("serialize-error"); import { randint } from "tstl/algorithm/random"; import { Singleton } from "tstl/thread/Singleton"; import { Configuration } from "../Configuration"; export namespace ErrorUtil { export function toJSON(err: any): object { return ...
export default class RedisConfig { host: string; port: number; db: number; password: string; constructor(host: string, port: number, db?: number, password?: string); setHost(host: string): RedisConfig; setPort(port: number): RedisConfig; setDb(id: number): RedisConfig; setPassword(pa...
/* 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.8.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech)...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * A definition of a class */ class ClassDefinition { field: string; /** * ClassDefinition constructor * @param simple A parameter with a simple type */ constructor(simple: number) { } /** * This is a method without return type * @param simple A parameter with a simp...
import { CrudController, PaginationParams } from '../core'; import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { Controller, UseGuards, Query, Get, HttpCode, HttpStatus, Put, Param, Body, Post, Delete, Req, ValidationPipe, UsePipes } from '@nestjs/common'; import { Payment } from...
import { Body, Controller, Post, Req, UseGuards, ValidationPipe } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { AuthCredentialsDto } from './dto/auth-credentials-dto'; import { AuthService } from './auth.service'; import { GetUser } from './get-user.decorator'; import { User } from './u...
import React, { PropsWithChildren } from 'react'; import { Stock, StockContext } from 'stocked'; import { usePopupsBag } from '../hooks/usePopupsBag'; import { PopupsContext } from '../PopupsContext'; import { PopupsContextType } from '../types/PopupsContextType'; type PopupsContextProviderType = PropsWithChildren<{}...
/* * Copyright (c) 2017, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /** * Conventions: * _message: is for unformatted text that will be shown as-is to * ...
import { AddAccount } from '@/domain/usecases' export interface AddAccountRepository { add: (data: AddAccountRepository.Params) => Promise<AddAccountRepository.Result> } export namespace AddAccountRepository { export type Params = AddAccount.Params export type Result = AddAccount.Result }
import React, { ReactElement } from 'react'; import Theme from '../../src/theme'; import Button from '../../src/component/button'; import { ContainerDeco } from '../../storybook/decorators'; import { storiesOf } from '@storybook/react-native'; import styled from 'styled-components/native'; import TimeUtil from '../../s...
import { TestBed } from '@angular/core/testing'; import { RouterExtService } from './router-ext.service'; describe('RouterExtServiceService', () => { let service: RouterExtService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(RouterExtService); }); it('should be cr...
declare var Security: any; declare var crypto: any; declare var passwordDigest: any; declare var validPasswordTypes: string[]; declare var toXMLDate: any; declare class WSSecurity extends Security { constructor(username: any, password: any, options: any); addSoapHeaders(headerElement: any): void; }
import React, { FC } from 'react'; import { FiLogIn } from 'react-icons/fi'; import { Link } from 'react-router-dom'; import './style.css'; import logo from '../../assets/logo.svg'; const Home: FC = () => { return ( <div id="page-home"> <div className="content"> <header> ...
import { v4 as uuidv4 } from 'uuid'; import fetch from 'node-fetch'; import { DbtRpcDocsGenerateResults, DbtRpcGetManifestResults, isDbtRpcDocsGenerateResults, isDbtRpcManifestResults, isDbtRpcRunSqlResults, } from 'common'; import { DbtError, NetworkError, NoServerRunningError, Retr...
import { LitElement, html, customElement, property, css } from "lit-element"; interface ManifestData { name: string; short_name: string; description: string; screenshots: Array<any>; features: Array<any>; icons: Array<any>; } @customElement("pwa-install") export class pwainstall extends LitElement { @pr...
import { PromMetricsMetadata } from './types'; import { addLabelToQuery } from './add_label_to_query'; import { SUGGESTIONS_LIMIT } from './language_provider'; export const RATE_RANGES = ['1m', '5m', '10m', '30m', '1h']; export const processHistogramLabels = (labels: string[]) => { const resultSet: Set<string> = ne...
import { Paginated, Params } from '@feathersjs/feathers'; import ServiceModel from './ServiceModel'; import { NotFound } from '@feathersjs/errors'; export default class PaginatedServiceModel<T extends typeof ServiceModel> { /** * Model to be paginated */ private readonly model: T; /** * Se...
import dva, { Router } from 'dva'; import createLoading from 'dva-loading'; import ZhiQue from './ZhiQue'; // 初始化dvaApp const app = dva({ // eslint-disable-next-line global-require history: require('history').createBrowserHistory(), }); // 将dvaApp示例保存到window对象中,以便在其他地方调用 window.dvaApp = app; app.router(ZhiQue as...
import { Component, OnInit, ViewChild, ElementRef, Output, EventEmitter, Input, ɵCompiler_compileModuleSync__POST_R3__ } from '@angular/core'; import { FormGroup, FormControl, Validators } from '@angular/forms'; import * as M from "materialize-css/dist/js/materialize"; import { AWSClientService } from 'src/services/aw...
import BackblazeB2Client from "../backblaze-b2/backblaze-b2-client"; const getEntry = (entryName: string) => { const bbClient = new BackblazeB2Client(); return bbClient.getFile(entryName); }; export default getEntry;
import { Utils } from '@nativescript/core'; import { VideoView } from '.'; import { CameraSourceDelegate, RemoteParticipantDelegate, RoomDelegate } from './delegates.ios'; import { VideoActivityCommon } from './video-activity.common'; declare var TVIConnectOptions, TVICameraSource, TVILocalVideoTrack, TVILocalAudioTra...
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * DescribeDeviceInput shape */ export interface DescribeDeviceInput { /** * <p>The ARN of the fleet.</p> */ FleetArn: string; /** * <p>A unique identifier for a registered user'...
import React, { SVGAttributes } from 'react'; export interface EntertainmentProps extends SVGAttributes<SVGElement> { [key: string]: any; size?: 'xs' | 's' | 'm' | 'l' | 'xl' | number; color?: string; } const sizes = { xs: 12, s: 16, m: 20, l: 24, xl: 32 }; export const Entertainment: React.FC<Entertainme...
import { Pipe, PipeTransform } from '@angular/core'; import { Rational } from '~/models'; @Pipe({ name: 'rate' }) export class RatePipe implements PipeTransform { transform(value: Rational, precision: number | null): string { if (precision == null) { return value.toFraction(); } else { if (preci...
const projectsData = [ { title: 'ogk', description: `cli tool for open.go.kr`, imgSrc: '/static/images/projects/ogk.png', href: 'https://github.com/opengirok/ogk', }, ] export default projectsData
import { Map, Record } from 'immutable'; import { NotificationRecord } from './NotificationRecord'; import { GenericPartial } from '../../../shared/models/Helpers'; export interface INotificationState { notifications: Map<string, NotificationRecord>; } export type NotificationStateParams = GenericPartial<INotific...
import { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<StringToUnion<"">, never>>, Expect<Equal<StringToUnion<"t">, "t">>, Expect<Equal<StringToUnion<"hello">, "h" | "e" | "l" | "l" | "o">>, Expect<Equal<StringToUnion<"coronavirus">, "c" | "o" | "r" | "o" | "n" | "a" | "v" | "i" | "...
import { Staff } from '../entities/staff.entity'; export class LoginResponseDto extends Staff { token: string; }
import { ComponentRelationshipType } from '..'; import { UMLInterfaceProvided } from '../../common/uml-interface-provided/uml-interface-provided'; export class UMLComponentInterfaceProvided extends UMLInterfaceProvided { type = ComponentRelationshipType.ComponentInterfaceProvided; }
/* istanbul ignore file */ import { ChakraProvider } from "@chakra-ui/react"; import { AppProps } from "next/app"; import Head from "next/head"; import "@fontsource/lexend/latin.css"; import React from "react"; import { Layout } from "components"; import customTheme from "styles/customTheme"; const MyApp = ({ Componen...
export declare function parse(src: string): any;
/// <reference types="node" /> import { IncomingMessage } from 'http'; import RequestInterface from '../Contracts/RequestInterface'; export default class Request implements RequestInterface { protected _req: IncomingMessage; protected _uri: string; protected _method: string; protected _headers: object; ...
import { Test, TestingModule } from '@nestjs/testing'; import { AppController } from './app.controller'; import { AppService } from './app.service'; describe('AppController', () => { let appController: AppController; beforeEach(async () => { const app: TestingModule = await Test.createTestingModule({ co...
import mongoose from "mongoose"; import { connectToDB } from "~database"; import { unableToDeleteSeason } from "~messages/errors"; import Season, { ISeasonDocument } from "~models/season"; import { staffSignIn } from "~test/utils/signIn"; import app from "~test/utils/testServer"; const newSeason = { seasonId: "20082...
import { Signer, ContractFactory, Overrides } from "ethers"; import { Provider, TransactionRequest } from "@ethersproject/providers"; import type { RefundEscrow, RefundEscrowInterface } from "../RefundEscrow"; export declare class RefundEscrow__factory extends ContractFactory { constructor(...args: [signer: Signer]...
import React from 'react' import Head from 'next/head' import { PageHead } from './PageHead' import styles from './styles.module.css' export const ErrorPage: React.FC<{ statusCode: number }> = ({ statusCode }) => { const title = 'Error' React.useEffect(() => { window.location.href = "https://dengweijun.com";...
import { UnitTest } from '@ephox/bedrock-client'; import { Gene, TestUniverse, TextGene } from '@ephox/boss'; import { Arr, Option } from '@ephox/katamari'; import Subset from 'ephox/robin/parent/Subset'; import { KAssert } from '@ephox/katamari-assertions'; UnitTest.test('SubsetTest', function () { const universe =...
import { Injectable, Inject, OnDestroy, Provider } from '@angular/core'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { Observable } from 'rxjs/Observable'; import { Action, ActionReducer, ActionReducerMap, ActionReducerFactory, MetaReducer, StoreFeature, } from './models'; import { INITIA...
import { ReactNode, CSSProperties } from "react" import NOOP from "../../modules/noop" import Title from "./Title" type TabsProps = { children?: ReactNode, tabs: {label: string, id: string}[], active?: string onChange?: (tab: string) => void, style?: CSSProperties } export default class Tabs exten...
import { Component, OnInit, Input } from '@angular/core'; import { UserProfile } from '../../models/UserProfile'; @Component({ selector: 'app-user-profile', templateUrl: './user-profile.component.html', styleUrls: ['./user-profile.component.css'] }) export class UserProfileComponent implements OnInit { @Inpu...
import { Component } from '@angular/core'; @Component({ templateUrl: './tooltip-basic.component.html', selector: `sds-tooltip-basic-demo`, }) export class TooltipBasic { clicked(){ console.log('clicked') } }
import { AdapterImplementation } from '@chainlink/types' // source adapters import GenesisVolatility from '@chainlink/genesis-volatility-adapter' import XBTO from '@chainlink/xbto-adapter' import dxFeed from '@chainlink/dxfeed-adapter' export const adapters: AdapterImplementation[] = [GenesisVolatility, XBTO, dxFeed] ...
/** * MIT License * * Copyright (c) 2017-present, Elasticsearch BV * * 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 ...
import { ChartWidget, MouseEventParamsImpl, MouseEventParamsImplSupplier } from '../gui/chart-widget'; import { ensureDefined } from '../helpers/assertions'; import { Delegate } from '../helpers/delegate'; import { warn } from '../helpers/logger'; import { clone, DeepPartial, isBoolean, merge } from '../helpers/strict...
import { Controller, Post, Body, Get } from '@nestjs/common'; import { PositionsService } from './positions.service'; import { Position } from './positions.entity'; @Controller('positions') export class PositionsController { constructor(private readonly positionsService: PositionsService) {} @Get() findAll() { ...