text stringlengths 10 953k |
|---|
import { Test, TestingModule } from '@nestjs/testing';
import { GamesOnGenreController } from './games-on-genre.controller';
import { GamesOnGenreService } from './games-on-genre.service';
describe('GamesOnGenreController', () => {
let controller: GamesOnGenreController;
beforeEach(async () => {
const module:... |
import * as _ from './underscore'
import { Token } from '../tokens/token'
import { Template } from '../template/template'
abstract class LiquidError extends Error {
private token: Token
private originalError: Error
public constructor (err: Error, token: Token) {
super(err.message)
this.originalError = er... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import { PartyModification } from '../../../../../thrift-services/damsel/gen-model/claim_management';
import { PaymentInstitutionRef } from '../../../../../thrift-services/damsel/gen-model/domain';
export const createContractCreation = (
contractorId: string,
contractId: string,
paymentInstitution: Payment... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>Dialog</name>
<message>
<location filename="Modules/Loadable/Annotations/Resources/UI/qSlicerAnnotationModulePropertyDialogWIP.ui" line="14"/>
<source>Dialog</source>
<translation type="unfinished"></... |
var PROVINCES: Array<any> = [
['State', 'Value'],
['Bắc Giang', 1],
['Bắc Kạn', 2],
['Cao Bằng', 3],
['Hà Giang', 4],
['Lạng Sơn', 5],
['Phú Thọ', 6],
['Quảng Ninh', 7],
['Thái Nguyên', 8],
['Tuyên Quang', 9],
['Lào Cai', 10],
['Yên Bái', 11],
['Điện Biên', 12],
['Hòa Bình', 13],
['Lai Châ... |
/**
* @author X·M
* @date 2022-01-15 09:12:38
*/
import { Dependencies, Tool, Feedback, Questions } from '../../'
export const TOOL_NAME = 'less'
export default class Less extends Tool {
readonly toolName = TOOL_NAME
feedback: Feedback = {
enable: true,
}
dependencies: Dependencies = [
{
typ... |
import React from 'react';
import { Col, Container, Row } from 'reactstrap';
import { Field } from 'redux-form';
import { Sexo, TODAS_NACIONALIDADES, TODOS_PERIODOS_ENSINO } from '../../../../models/Aluno';
import { renderInput, getFieldMask } from '../../../template/input/InputTemplate';
import DateHandler from '../.... |
import { HttpRequest } from "@aws-sdk/protocol-http";
import {
BuildHandler,
BuildHandlerArguments,
BuildHandlerOutput,
HandlerExecutionContext,
MetadataBearer,
} from "@aws-sdk/types";
import { getCacheKey } from "./getCacheKey";
import { EndpointDiscoveryMiddlewareConfig } from "./getEndpointDiscoveryPlugi... |
/* eslint react/display-name: 0 */
import React from "react";
export const icons = {
print: (): React.ReactElement => (
<i>
<svg xmlns="http://www.w3.org/2000/svg" width="56.81" height="50.77" viewBox="0 0 56.81 50.77">
<defs>
<linearGradient id="a" x1="29.18" y1="34.39" x2="29.18" y2="18... |
import { AbstractGameState } from "../../models/states/abstract-game-state";
import { EndGame } from "../../models/states/end-game";
import { EndSet } from "../../models/states/end-set";
import { ComputerShooting } from "../../models/states/computer-shooting";
import { ComputerTurn } from "../../models/states/computer... |
import {AbstractHttpMessageBuilder} from './AbstractHttpMessageBuilder';
import {HttpHeader} from './HttpHeader';
class HttpMessageBuilder extends AbstractHttpMessageBuilder<any> {
getHeaders(): Array<HttpHeader> { return this.headers; }
getPayload(): string { return this.payload; }
build(): any { return n... |
import { ApiProperty } from '@nestjs/swagger';
import { PaginateNeedAllDto } from '@app/common/dto/paginate.dto';
export class QueryTagDto extends PaginateNeedAllDto {
@ApiProperty({ description: '搜索标签关键字', required: false })
name?: string;
}
export class WhereTagDto {
name?: string | { $regex: string };
} |
import { devices } from "@domojs/devices";
import { State } from "../state";
import * as ac from '@akala/commands'
import * as api from '../api'
import { Socket } from 'net'
import { Container } from "@akala/commands";
import { ISCPProcessor } from "../iscp-processor";
const deviceCollection: { [name: string]: device... |
import {
ApiResponse,
debug as d,
Opts,
Telegram,
baseFetchConfig,
} from '../platform.ts'
import { GrammyError, HttpError } from './error.ts'
import { createRequestConfig } from './payload.ts'
const debug = d('grammy:core')
export type Methods<R extends RawApi> = string & keyof R
// Available und... |
import { TestBed, async } from '@angular/core/testing';
import { HttpModule, Http } from '@angular/http';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule, TranslateLoader, TranslateService } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loa... |
import * as data from './data';
export { data };
export * from './makeContext'; |
import React, { useContext, useRef } from 'react';
import styled from 'styled-components';
import BoardCell from './components/BoardCell';
import { BoardContext, CellArea } from './components/BoardContext';
import Shop from './components/Shop';
const S = {
Game: styled.div`
width: 50%
max-width: 1024px;
... |
declare var describe: any;
import { folderBasedTest, testParseToken } from './TestHelpers';
import { ParsingContext } from '../dist/compiler/ParsingContext';
import { nodeSystem } from '../dist/support/NodeSystem';
import { printErrors } from '../dist/utils/errorPrinter';
describe('Parser', () => {
const phases = f... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { Page1ParentComponent } from './page-1/parent.component';
import { Page1ChildComponent } from './page-1/c... |
/** Angular Imports */
import { CollectionViewer, DataSource } from '@angular/cdk/collections';
/** rxjs Imports */
import { Observable, BehaviorSubject } from 'rxjs';
/** Custom Services */
import { SystemService } from '../system.service';
/**
* Audit Trails custom data source to implement server side filtering, ... |
import { ForwardedRef, forwardRef } from 'react'
import { makeStyles, MenuItem, Typography } from '@material-ui/core'
import { toggleDialog } from 'modules/pools/slice'
import { Dialogs } from 'modules/pools/enums'
import { PoolSelector, WalletPoolsSelector } from 'modules/pools/types'
import { useAppDispatch, useRoute... |
/*
* Copyright 2020 Salto Labs 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 applicable ... |
import * as React from 'react'
import { CheckboxProps } from '@material-ui/core/Checkbox'
import { FieldProps } from './utils'
interface Functions {
onChange: (name: string, nextValue: boolean) => void
}
interface FormikSelectionControlProps {
childComponent?: JSX.Element
childProps?: CheckboxProps
fi... |
export * as core from './core'
export * as d3 from './d3'
export * as hs from './hs'
export * as sc2 from './sc2'
export * as wow from './wow' |
class ProteinTranslation {
static proteins(/* Parameters go here */) {
// Your code here
}
}
export default ProteinTranslation |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const BcptDimensions: {
height: number;
width: number;
}; |
import { useState, useEffect, ReactNode } from "react";
import { Link } from "gatsby";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Userbox } from "./userbox";
import { Sidebar } from "./sidebar";
import logo from "../../images/logo.svg";
/**
* Main layout properties
*/
interface Pro... |
/*!
* Copyright 2011-2021 Unlok
* https://www.unlok.ca
*
* Credits & Thanks:
* https://www.unlok.ca/credits-thanks/
*
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
* ... |
import * as React from 'react';
import { connect } from 'react-redux';
import { CallbackComponent } from 'redux-oidc';
import { push } from 'react-router-redux';
import userManager from '../auth/Oidc';
import store from '../reduxs/index';
import { User } from "oidc-client";
interface Props {
dispatch: Function;
}
... |
import {
serve,
serveTLS,
HTTPSOptions,
HTTPOptions,
Server,
resolve,
fromFileUrl,
} from "../deps.ts";
import { methods } from "./methods.ts";
import { Router } from "./router/index.ts";
import { init } from "./middleware/init.ts";
import { query } from "./middleware/query.ts";
import { finalHandler } fr... |
import { Injectable } from '@angular/core';
import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpStatusCode } from '@angular/common/http';
import { Observable, of, throwError } from 'rxjs';
import { catchError, concatMap, delay, retryWhen } from 'rxjs/operators';
import { environment } ... |
import { Amount, Token } from "@iov/bcp";
import { Decimal } from "@iov/encoding";
/**
* This produces a human readable format of the amount, value and token ticker
*/
export function amountToString(amount: Amount): string {
const { quantity, fractionalDigits, tokenTicker } = amount;
return `${Decimal.fromAtomic... |
import { NgModule } from '@angular/core';
import { PublicRoutingModule } from './public-routing.module';
import { SharedModule } from '../../shared/shared.module';
import { HomeComponent } from './home/home.component';
import { ProgressBarModule } from 'primeng/progressbar';
@NgModule({
imports: [
SharedModule,
... |
import dateFormat from 'dateformat';
import filesize from 'filesize';
import { Nullable } from 'tsdef';
import { FileData } from '../types/files.types';
export class FileHelper {
public static isEncrypted(file: Nullable<FileData>): file is FileData {
// Not a directory by default
return !!file && ... |
export const Details3Section: React.FC = () => {
return (
<div className="pt-16 pb-12">
<div className="container px-4 sm:px-8 lg:grid lg:grid-cols-12 lg:gap-x-12">
<div className="lg:col-span-5">
<div className="mb-16 lg:mb-0 xl:mt-16">
... |
import { instantiateSecp256k1 } from "@bitauth/libauth";
import { SignatureTemplate } from "cashscript";
import { CONST, Mainnet, Network, UtxoItem } from "mainnet-js";
import {
EscrowArguments,
EscrowContractResponseI,
EscrowInfoResponseI,
} from "./interface";
import { Contract } from "../Contract";
export c... |
import 'styled-components';
interface Theme {
title: string;
colors: {
box: string;
background: string;
grayLine: string;
text: string;
title: string;
primaryRed: string;
primaryGreen: string;
blueDark: string;
blueTwitter: string;
};
grandient: {
background: string;
... |
/*
* Copyright 2019-2020 SURF.
* 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 ... |
import React, { useContext, useCallback, useEffect } from 'react';
import { useHistory } from 'react-router-dom';
import { useSelector, useDispatch } from 'react-redux';
import { Table, Button, Typography } from 'antd';
import moment from 'moment';
import OperationButtons from '../../components/OperationButtons';
impor... |
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {ProdutosComponent} from './components/produtos/produtos.component';
import {PedidosComponent} from './components/pedidos/pedidos.component';
import {ClientesComponent} from './components/clientes/clientes.component';
... |
import { Component, DebugElement, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { NzIconTestModule } from 'ng-zorro-antd/icon/testing';
import { NzDividerComponent } from './divider.component';
import { NzDiv... |
import { ExpressionSyntax } from "./expression-syntax";
import { Parser } from "./parser";
import { SyntaxToken } from "./syntax-token";
export class SyntaxTree {
public static parse(text: string) {
const parser = new Parser(text);
return parser.parse();
}
constructor(
public readonly root: Expressi... |
import * as React from 'react';
import * as Immutable from 'immutable';
import * as contentTypes from 'data/contentTypes';
import { withStyles, classNames } from 'styles/jss';
import { StyledComponentProps } from 'types/component';
import {
AbstractContentEditor, AbstractContentEditorProps,
} from 'editors/content/co... |
import {
Component,
OnInit,
ViewChild
} from '@angular/core';
// @ts-ignore
import { SohoBarComponent } from 'ids-enterprise-ng';
@Component({
selector: 'app-bar-demo',
templateUrl: 'bar.demo.html',
})
export class BarDemoComponent implements OnInit {
@ViewChild(SohoBarComponent, { static: true }) sohoBar... |
export enum CodeType {
Vue = 'vue',
Html = 'html'
}
export enum PlatformType {
Element
} |
import {
Component,
EventEmitter,
Input,
Output
} from '@angular/core';
/*
Notice that the component becomes a pass through...
Q: So why not just remove the component?
A: Why use multiple components at all?
*/
@Component({
selector: 'position-list',
templateUrl: './position-list.component.html'
})
... |
export * from './seeder/seeder';
export * from './seeder/seeder.interface';
export * from './factory/data.factory';
export * from './decorators/factory.decorator'; |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { WidgetEditComponent } from './widget-edit.component';
describe('WidgetEditComponent', () => {
let component: WidgetEditComponent;
let fixture: ComponentFixture<WidgetEditComponent>;
beforeEach(async(() => {
TestBed.configure... |
import { BaseModel, column, manyToMany, ManyToMany } from '@ioc:Adonis/Lucid/Orm'
import { DateTime } from 'luxon'
export default class Profile extends BaseModel {
@column({ isPrimary: true })
public id: number
// Foreign key
@column()
public userId: number
@column()
public chatUserId: number
@colum... |
import type { Memoized } from '@polkadot/util/types';
import { Observable } from 'rxjs';
declare type ObsFn<T> = (...params: any[]) => Observable<T>;
/** @internal */
export declare function memo<T>(instanceId: string, inner: ObsFn<T>): Memoized<ObsFn<T>>;
export {}; |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-top',
templateUrl: './top.component.html',
styleUrls: ['./top.component.scss']
})
export class TopComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
import {App} from "../../sbg-api-client/interfaces/app";
import {Project} from "../../sbg-api-client/interfaces/project";
import {RepositoryType} from "./repository-type";
export class UserRepository extends RepositoryType {
projects: Project[] = null;
apps: App[] = null;
publicApps: App[] = null;
... |
import type { ReactElement } from 'react'
import { Typography } from '@material-ui/core/'
import EthereumAddress from '../../../components/EthereumAddress'
type Props = StatusEthereumConnectionHook
export default function EthereumConnectionCheck({ isLoading, isOk, nodeAddresses }: Props): ReactElement | null {
if (... |
import React from 'react';
import { Card, CardItem, H1 } from 'native-base';
interface Props extends React.PropsWithChildren<{}> {
title: string;
}
const Alert: React.FC<Props> = ({ children, title }) => {
const cardItems = React.Children.map(children, (child) => {
return <CardItem bordered>{ child }... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react'
import AspectRatioLineSvg from '@airclass/icons-svg/lib/asn/AspectRatioLine';
import AntdIcon, { AntdIconProps } from '../components/AntdIcon';
const AspectRatioLine = (
props: AntdIconProps,
ref: React.MutableRefObjec... |
import 'tailwindcss/tailwind.css'
import Popup from '@/components/Popup'
import { store } from '@/state/index'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import ToastProvider from '@/components/Toast/ToastProvider'
render(
<React.StrictMode>
<Provider st... |
import { Editor } from '../../../../../../core/main/ts/api/Editor';
import { fontSelectMenu } from './complex/FontSelect';
import { styleSelectMenu } from './complex/StyleSelect';
import { formatSelectMenu } from './complex/FormatSelect';
import { fontsizeSelectMenu } from './complex/FontsizeSelect';
import { UiFactory... |
/**
* @project JSDK
* @license MIT
* @website https://github.com/fengboyue/jsdk
*
* @version 2.0.0
* @author Frank.Feng
*/
module JS {
export namespace util {
/**
* Locale string such as "zh-CN", "zh", "en-US", "en"
*/
export type Locale = string;
/**
* ... |
export class CommentView {
commentId;
content;
} |
export { NnpzAvatarModule } from './nnpz-avatar.module'; |
import { css } from '@emotion/css';
import { Email, Phone, Public, Room } from '@mui/icons-material';
import { Theme } from '@reactive-resume/schema';
import clsx from 'clsx';
import get from 'lodash/get';
import isEmpty from 'lodash/isEmpty';
import { useMemo } from 'react';
import Markdown from '@/components/shared/... |
import { transformData } from '../../src/plots/bidirectional-bar/utils';
import { BidirectionalBar } from '../../src';
import { createDiv } from '../utils/dom';
export const data = [
{ country: '乌拉圭', '2016年耕地总面积': 13.4, '2016年转基因种植面积': 12.3 },
{ country: '巴拉圭', '2016年耕地总面积': 14.4, '2016年转基因种植面积': 6.3 },
{ countr... |
import * as React from "react";
import uniq from "lodash/uniq";
import { rpc } from "api/rpc";
import KnownAccounts from "../../knownAccounts.json";
const { NANOLOOKER } = KnownAccounts;
export interface RepresentativesOnlineReturn {
representatives: string[];
isLoading: boolean;
isError: boolean;
}
export cons... |
import { HasFormatter } from "../interfaces/HasFormatter.js";
export class ListTemplate {
constructor(private container: HTMLUListElement){}
render(item: HasFormatter, heading: string, pos: 'start' | 'end'){
const li = document.createElement('li');
const h4 = document.createElement('h4');
h4.innerTex... |
import { inject, computed } from 'vue';
import { TABLE_TOKEN } from '../../table-types';
export function useMergeCell() {
const table = inject(TABLE_TOKEN);
const { _data: data, _columns: columns } = table.store.states;
const getSpan = (row: any, column: any, rowIndex: number, columnIndex: number) => {
cons... |
export default function fbpubfletcher32(inputData: ArrayBuffer): number; |
/*
* 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.
*/
export { SourceRow, ISourceRow } from './source_row'; |
import { Component } from '../component'
import { Vector3 } from '../../util/coords'
export class TransformComponent extends Component {
static type = Symbol('Transform')
type = TransformComponent.type
postion: Vector3 = { x: 0, y: 0, z: 0 }
rotation: Vector3 = { x: 0, y: 0, z: 0 }
velocity: Vector3 = { x: ... |
import * as React from "react";
import { render, fireEvent } from "react-testing-library";
import { createContext } from "../src";
const {
Context,
Provider,
useContextKey,
useContextState,
useContextReducer,
useContextEffect,
useContextLayoutEffect
} = createContext({
counter1: 0,
foo: "foo",
bar:... |
namespace Metadata {
// Service metadata
export const SERVICE_INJECTED = 'Catamaran_Symbol_MetadataServiceInjected'
export const SERVICE_OPTIONS = 'Catamaran_Symbol_MetadataServiceOptions'
// Service lifecycle
export enum ServiceLifecycle {
PostInit = 'Catamaran_Symbol_MetadataServiceLifecyclePostInit',
PreDe... |
///
/// Copyright © 2016-2022 The Thingsboard 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... |
module BABYLON {
/**
*
* This post-process allows the modification of rendered colors by using
* a 'look-up table' (LUT). This effect is also called Color Grading.
*
* The object needs to be provided an url to a texture containing the color
* look-up table: the texture must be 256 pixe... |
import {
summaryLogger,
} from '@pnpm/core-loggers'
import { linkBinsOfPackages } from '@pnpm/link-bins'
import {
getLockfileImporterId,
LockfileImporter,
writeCurrentLockfile,
writeLockfiles,
} from '@pnpm/lockfile-file'
import logger, { streamParser } from '@pnpm/logger'
import { prune } from '@pnpm/modules... |
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: 2022 Steadybit GmbH
import { ServiceDefinition, ServiceState, Task, TaskHistoryEntry } from './types';
import { abortExecutionWithError } from '../errors';
import { executeApiCall } from '../api/http';
export async function getState(serviceDefinition: Servic... |
export type PropType<TObj, TKey extends keyof TObj> = TObj[TKey]; |
import express from 'express';
import multerConfig from './config/multer';
import PointsController from './controllers/PointsController';
import ItemsController from './controllers/ItemsController';
import CreatePointValidator from './validators/CreatePointValidator';
const routes = express.Router();
const upload = m... |
import { ValidationOptions } from "../ValidationOptions";
export declare const IS_POSITIVE = "isPositive";
/**
* Checks if the value is a positive number greater than zero.
*/
export declare function isPositive(value: unknown): boolean;
/**
* Checks if the value is a positive number greater than zero.
*/
export dec... |
/*!
* @license
* Copyright 2019 Alfresco Software, 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 app... |
import styled from 'styled-components';
export const Container = styled.section`
min-height: 100vh;
width: 100%;
display: grid;
grid-template-columns: repeat(2, 45%);
grid-template-rows: min-content;
grid-auto-rows: 47vh;
justify-content: center;
margin-bottom: 5vh;
`;
export const Title = styled.h2`
... |
import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { ConfigService, IEnvironment } from '@gauzy/config';
import { ExtractJwt } from 'passport-jwt';
import { Strategy } from 'passport-twitter';
import { IApiServerOptions } from '@gauzy/common';
@Injectable()
export ... |
import { useQuery, useMutation } from "@apollo/client";
import React from "react";
import { StyledCRUDProductReviews } from "./StyledCRUDProductReviews";
import { GET_DELETED_REVIEWS, GET_REVIEWS } from "../../graphql/queries";
import { useHistory } from "react-router-dom";
import { UNDELETE_REVIEW, DELETE_REVIEW } fro... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as path from "path";
import { runTests } from "vscode-test";
async function main(): Promise<void> {
try {
// The folder containing the Extension Manifest package.json
// Passed to `--extension... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import { IterableX } from '../iterable';
/**
* @template TSource
* @param {function(): boolean} condition
* @param {!Iterable<TSource>} source
* @return {!tsickle_forward_declare_1.IterableX<TSource>}
*/
export declare function _whi... |
import * as React from 'react';
import styled from 'styled-components';
import { UI_PopupMultiSelect } from '../../../elements/UI_PopupMultiSelect';
import { cssClassBuilder } from '../../layout/RowComp';
import { colors } from '../../styles';
import { IconStyled } from '../../text/IconComp';
import { UI_ComponentProps... |
import {Multimethod as MultimethodInstance, MultimethodConstructor} from './interface/multimethod';
import {createMultimethod} from './internals/create-multimethod';
export type Multimethod = MultimethodInstance;
export const Multimethod = createMultimethod as MultimethodConstructor;
export {next} from './interface... |
import {DbUser} from './db';
import {ServerGameDaemon} from './gameDaemon';
import {DaemonStatus, DaemonToken} from './gameDaemonController';
import PouchDb from './pouch';
import {ChildProcess, spawn} from 'child_process';
import http from 'http';
describe('test', () => {
let couchDbPort = 7575;
let couchDbInsta... |
import fs from "fs";
import { DataReader } from "./MatchReader";
export class CsvFileReader implements DataReader {
public data: string[][] = [];
constructor(public filename: string) {}
read(): void {
this.data = fs.readFileSync(this.filename, { encoding: "utf-8" })
.split("\n")
.map((row: strin... |
import { renameGeneralProps } from "../renameGeneralProps";
import { DataMapper } from "../DataMapper";
import { deleteProps } from "../deleteProps";
export const teaserRowItemMapper: DataMapper = (normalizedData) => {
const mappedData = {
...deleteProps(renameGeneralProps(normalizedData.data, {
... |
import { CSSModule } from '../index';
export interface MediaProps extends React.HTMLAttributes<HTMLElement> {
body?: boolean;
bottom?: boolean;
className?: string;
cssModule?: CSSModule;
heading?: boolean;
left?: boolean;
list?: boolean;
middle?: boolean;
object?: boolean;
right?: boolean;
tag?: ... |
import { ITokenizer } from 'strtok3/lib/core';
import { IOptions } from '../type';
import { INativeMetadataCollector } from '../common/MetadataCollector';
export declare class ID3v2Parser {
static removeUnsyncBytes(buffer: Uint8Array): Uint8Array;
private static getFrameHeaderLength;
private static readFram... |
import React from "react"
import Section from "components/section"
import Provinces from "fixtures/provinces.json"
import CityContent from "components/city-content"
export default function () {
const city = Provinces["IR-13"].cities["IR-1305"]
const menu = {
introduction: "آشنایی با شهرستان",
analyze: "تحلی... |
import {Injectable} from '@angular/core';
import {Publication} from "./models/publication.model";
@Injectable()
export class QueryBuilderService{
query: Query = new Query();
getQueryObj(): Query{
return this.query;
}
storePublication(pub: Publication){
this.query.publication = pub;
... |
import { SurveyModel } from "../src/survey";
import { Question } from "../src/question";
import { QuestionExpressionModel } from "../src/question_expression";
export default QUnit.module("QuestionExpression");
//Dummy, to include expression question model into tests
new QuestionExpressionModel("q1");
QUnit.test("Exp... |
export function useAutoMemo<T>(factory: () => T): T;
export function useAutoMemo<T>(factory: T): T;
export function useAutoCallback<T extends (...args: any[]) => any>(
callback: T,
): T;
type EffectCallback = () => void | (() => void);
export function useAutoEffect(effect: EffectCallback): void;
export function us... |
import { setOwner } from '@ember/application';
import { setModifierManager } from '@ember/modifier';
import Manager from './modifier-manager';
import { ModifierArgs } from 'ember-modifier/-private/interfaces';
import { isDestroying, isDestroyed } from '@ember/destroyable';
/**
* A base class for modifiers which need ... |
/* tslint:disable */
declare var Object: any;
export interface LoopBackFilter {
fields?: any;
include?: any;
limit?: any;
order?: any;
skip?: any;
offset?: any;
where?: any;
}
export interface AccessTokenInterface {
id?: any;
ttl?: number;
issuedAt?: any;
created: any;
userId?: numbe... |
export interface Schema {
uiFramework: '@storybook/angular' | '@storybook/react' | '@storybook/html';
} |
import React, { useRef, useState, useEffect } from 'react';
import { View, StyleSheet, Animated, ViewStyle } from 'react-native';
import Text from '../Text';
import { Progress, ProgressStatus } from '../../data-types';
import { SECTION_APPEAR_DURATION } from '../../styles/animations';
import { Colors, Margins, Paddings... |
import { createSelector } from 'reselect';
import * as fromBusiness from './business.reducer';
import * as fromCategories from './categories.reducer';
import * as fromAddBiz from './addbusiness.reducer';
import * as fromSubCategories from './subcategories.reducer';
import * as fromProfile from '../../core/profile-data... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.