text stringlengths 10 953k |
|---|
import "jest-extended";
import { stringify } from "../src";
describe("#stringify", () => {
it("should return the given value as JSON", () => {
expect(stringify({ b: 1, a: 0 })).toBe('{"b":1,"a":0}');
});
it("should return undefined if there are circular references", () => {
const o: any =... |
/**
* Helper module.
* @file Helper 全局模块
* @module processor/helper/module
*/
import { Global, HttpModule, Module } from '@nestjs/common';
import { IpService } from './helper.service.ip';
// const services = [AkismetService, BaiduSeoService, EmailService, IpService];
@Global()
@Module({
imports: [HttpModule],... |
import { ElementRef, EventEmitter } from '@angular/core';
export declare class Resizeable {
resizeEnabled: boolean;
minWidth: number;
maxWidth: number;
onResize: EventEmitter<any>;
private element;
private subscription;
private prevScreenX;
private resizing;
constructor(element: Elem... |
import type {
APIActionRowComponent,
APIModalActionRowComponent,
APIModalInteractionResponseCallbackData,
} from 'discord-api-types/v10';
import { ActionRowBuilder, createComponentBuilder, JSONEncodable, ModalActionRowComponentBuilder } from '../../index';
export class UnsafeModalBuilder implements JSONEncodable<AP... |
import React, {
useState,
useEffect,
useRef,
MouseEvent,
FormEvent,
useContext,
useCallback
} from 'react';
import parse from 'html-react-parser';
import ReplyingModal from 'components/replyingModal/ReplyingModal';
import TemplateEditor from 'components/templateEditor/TemplateEditor';
import { InitContext } from... |
import { TestBed } from '@angular/core/testing';
import { EventCategoryService } from './event-category.service';
describe('EventCategoryService', () => {
let service: EventCategoryService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(EventCategoryService);
});
it(... |
import firebase from "firebase/app";
import React, { createContext, useContext, useMemo } from "react";
import "firebase/auth";
const config: Parameters<typeof firebase.initializeApp>[0] = {
apiKey: process.env.REACT_APP_FIREBASE_API_KEY,
appId: process.env.REACT_APP_FIREBASE_APP_ID,
authDomain: process.env.REA... |
import { defineComponent } from 'vue';
import { createWorkerSetting } from '..';
import { useSettings } from '../../store';
import { CommonWorkSettingPanel } from './CommonWorkSettingPanel';
export const ExamSettingPanel = defineComponent({
setup () {
const settings = useSettings().zhs.exam;
return () => (... |
import bowser from 'bowser';
import Environment from '../Environment';
import NotImplementedError from '../errors/NotImplementedError';
import { DeliveryPlatformKind } from './DeliveryPlatformKind';
import { DevicePlatformKind } from './DevicePlatformKind';
import { RawPushSubscription } from './RawPushSubscription';
... |
import fs from 'fs';
import path from 'path';
import uploadConfig from '@config/UploadConfig';
import IStorageProvider from '../models/IStorageProvider';
class DiskStorageProvider implements IStorageProvider {
public async saveFile(file: string, folder: string): Promise<string> {
await fs.promises.rename(
... |
export type Response = {
Body: string;
HtmlAttributes?: string;
Title?: string;
Meta?: string;
Link?: string;
Script?: string;
Style?: string;
BodyAttributes?: string;
}
export default Response; |
/// <reference types="react" />
declare const StudioMicrophone: ({ size, rem }: {
size: number | string;
rem?: boolean | undefined;
}) => JSX.Element;
export default StudioMicrophone; |
import { is } from 'typescript-is';
import { PluginBase, WebhookMessage } from '../../src/pluginApi/v2';
import * as f from '../../src/formatting/formatting';
// This interface specifies the format the webhook POST body should adhere to.
interface SampleContent {
message: string;
recipient: string;
}
// Example #1... |
import {Feature} from '../@feature';
import {
characterListContainsEntityAlike,
testCharacterListConsistency,
} from '../@utils';
import {createAutoBlockFeature} from './@auto-block-feature';
import {AUTO_BLOCK_TYPE_BLACKLIST} from './@auto-block-type-blacklist';
const BLOCKQUOTE_REGEX = /^> $/;
export function ... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { CircleComponent } from './circle.component';
import { SquareComponent } from './square.component';
import {... |
declare module "strip-indent" {
function stripIndent(a: string): string;
namespace stripIndent {}
export = stripIndent;
} |
import { Column, IWidget, Row, Spacer, TextWidget } from '../lib';
describe('Layout', () => {
test('row has the height of the tallest element', () => {
// WHEN
const row = new Row(
new Spacer({ width: 10, height: 1 }),
new Spacer({ width: 10, height: 4 }),
);
// THEN
expect(4).toEqua... |
export interface Region {
regId: number;
regName: string;
bankLink: number;
bankShortName: string;
}
export function compareRegions(c1: Region, c2: Region) {
const compare = c1.regName > c2.regName;
if (compare) {
return 1;
} else if ( c1.regName < c2.regName) {
return -1;
... |
import { useContext } from 'react';
import { ChallengesContext } from '../contexts/ChallengesContext';
import styles from '../styles/components/ExperienceBar.module.css'
export function ExperienceBar() {
const { currentExperience, experienceToNextLevel } = useContext(ChallengesContext)
const percentToNextLevel =... |
import { addAllUniquely } from '../../../core/shared/array-utils'
import { ElementInstanceMetadataMap } from '../../../core/shared/element-template'
import {
CanvasPoint,
CanvasVector,
offsetPoint,
pointDifference,
zeroCanvasPoint,
} from '../../../core/shared/math-utils'
import { ElementPath } from '../../..... |
import * as React from "react";
import Modal, { XButton } from "../index";
import lang from "../../../language.json";
import Vehicle from "../../../interfaces/Vehicle";
import State from "../../../interfaces/State";
import AlertMessage from "../../alert-message";
import { searchPlate } from "../../../lib/actions/office... |
import React, { Component } from 'react'
import { PropTypes, connect, Link, replace, _ } from '../../family'
import { serve } from '../../relatives/services/constant'
import { Spin } from '../utils'
import RepositoryForm from '../repository/RepositoryForm'
import RepositorySearcher from './RepositorySearcher'
import Mo... |
import * as React from 'react';
import { SharedRenderProps, FormikProps } from './types';
export declare type FieldArrayRenderProps = ArrayHelpers & {
form: FormikProps<any>;
name: string;
};
export declare type FieldArrayConfig = {
name: string;
validateOnChange?: boolean;
} & SharedRenderProps<FieldAr... |
import type { BigNumberish } from '@ethersproject/bignumber';
import { commify, formatUnits, parseUnits } from '@ethersproject/units';
export const DECIMAL_UNITS = 3;
export const parseToFormattedNumber = (
value: string | BigNumberish,
unit: BigNumberish = DECIMAL_UNITS
) => commify(formatUnits(value, unit)); |
import { app } from "@arkecosystem/core-container";
import { models } from "@arkecosystem/crypto";
import { Blockchain } from "../../blockchain";
import { BlockProcessorResult } from "../block-processor";
import { BlockHandler } from "./block-handler";
enum UnchainedBlockStatus {
NotReadyToAcceptNewHeight,
Alr... |
import { Runtime, Tabs } from "webextension-polyfill";
import { extensionSupportsUrl } from "../common/articleDetection";
import {
collectAnonymousMetricsFeatureFlag,
getFeatureFlag,
isDevelopmentFeatureFlag,
setFeatureFlag,
} from "../common/featureFlags";
import browser from "../common/polyfill";
impo... |
import React from "react";
import Layout from "../components/common/layout";
import SEO from "../components/common/seo";
import ActivityMapHero from "../components/activity-map/hero";
import ActivityMapMain from "../components/activity-map/main";
import NewsletterSignUp from "../components/newsletter/newsletter-sign-u... |
// codegen:start {preset: barrel, include: ./Cause/*.ts, prefix: "@effect/core/io"}
export * from "@effect/core/io/Cause/definition"
export * from "@effect/core/io/Cause/errors"
export * from "@effect/core/io/Cause/operations"
// codegen:end |
import { useParams } from "react-router-dom";
import React from "react";
import { useStorageBackedState } from "../hooks/useStorageBackedState";
import { useNetworkBackedGameState } from "../hooks/useNetworkBackedGameState";
import { InputName } from "./InputName";
import { RandomFourCharacterString } from "../../state... |
import test from "ava";
import { renderHook, act } from "@testing-library/react-hooks";
import browserEnv from "browser-env";
import { clearAllCookies } from "./__testutils__/clearAllCookies";
import { createGatsbyContext } from "./__testutils__/createGatsbyContext";
import { createPluginOptions } from "./__testutils_... |
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Event as RouterEvent, NavigationEnd, PRIMARY_OUTLET, Router } from '@angular/router';
import { BehaviorSubject } from 'rxjs';
/*
*
*/
export interface Path {
data: Object;
params: Object;
url: string;
}
/*
*
*/
export interface Pa... |
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
Input,
OnDestroy,
OnInit,
Output,
ViewChild
} from '@angular/core';
import shortid from 'shortid';
import * as moment from 'moment-mini';
import { dotAnimation } from './dot.ani';
@Component({
selector: 'inp... |
import { Patient, Resource } from '@medplum/fhirtypes';
import { sortByDate } from './date';
describe('Date utils', () => {
test('Sort by date', () => {
const input: Patient[] = [
{
resourceType: 'Patient',
meta: {
lastUpdated: '2003-03-03T00:00:00.000Z',
},
},
... |
import { omit } from "lodash"
import qs from "qs"
import { useMemo, useReducer, useState } from "react"
import { setsEqual } from "../../../utils/equals-set"
import { relativeDateFormatToTimestamp } from "../../../utils/time"
type DateFilter = null | {
gt?: string
lt?: string
}
type PriceListFilterAction =
| { ... |
import { Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
import { User } from './entity/user.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
@Module({
imports: [TypeOrmModule.forFeature([User])],
providers: [UserService],
... |
import fse from "fs-extra";
import path from "path";
import CryptoJS from "crypto-js";
import { MerkleTree } from "merkletreejs";
import { packDataBytes } from "@taquito/michel-codec";
// Drop data
import Drop from "../drop";
export const buildMerkle = async () => {
const packedList: string[] = [];
const dropAddr... |
import React, { useEffect, useCallback } from 'react'
// Redux connection
import { connect } from 'react-redux'
// Actions
import actions from 'store/actions/game'
import global from 'store/actions/global'
import TileActions from 'store/actions/tableTile'
// Interfaces
import StoreState from 'interfaces/store-state'... |
/** @module build */
import { Factory } from 'pip-services3-components-node';
import { Descriptor } from 'pip-services3-commons-node';
/**
* Creates Redis components by their descriptors.
*
* @see [[RedisCache]]
* @see [[RedisLock]]
*/
export declare class DefaultRedisFactory extends Factory {
static readonly ... |
import { Message } from "discord.js"
import GuildSettings from "../../../schemas/GuildSettings";
import Client from "../../../structures/Client"
import { ICommand, RunCallback } from "../../../structures/Interfaces"
import Logger from "../../../utils/logger/Logger";
function DisableCommand(): ICommand {
const run: R... |
import { ReaderTaskEither, rightIO, chain, ask, run, fromTaskEither } from 'fp-ts/lib/ReaderTaskEither'
import { pipe } from 'fp-ts/lib/pipeable'
import { fold } from 'fp-ts/lib/Either'
import { tryCatch } from 'fp-ts/lib/TaskEither'
import { constVoid } from 'fp-ts/lib/function'
import * as loggerService from '../serv... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_TW" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About NanoCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location li... |
import React from 'react';
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
import withWidth, { isWidthUp } from '@material-ui/core/withWidth';
import { Breakpoint } from '@material-ui/core/styles/createBreakpoints';
import Button from '@material-ui/core/Button';
import { makeStyles } from '@ma... |
export interface ThemeReadyCallback {
add: (fn?: Function) => ThemeReadyCallback;
}
export const themeReadyCallback: ThemeReadyCallback; |
import * as Types from '../../types';
import { gql } from '@apollo/client';
import * as Apollo from '@apollo/client';
const defaultOptions = {} as const;
export type GetBoltzSwapStatusQueryVariables = Types.Exact<{
ids: Array<Types.Scalars['String']> | Types.Scalars['String'];
}>;
export type GetBoltzSwapStatusQuer... |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requi... |
import type {
Execute,
ExecuteResponse,
RequesterDescription,
TransformResponse,
} from '@algolia/autocomplete-preset-algolia';
import { decycle, flatten, invariant } from '@algolia/autocomplete-shared';
import {
MultipleQueriesQuery,
SearchForFacetValuesResponse,
SearchResponse,
} from '@algolia/client-s... |
import test from "ava";
import { CellProvider } from "./cell_provider";
import {
TransactionSkeleton,
TransactionSkeletonType,
} from "@ckb-lumos/helpers";
import { dao, common } from "../src";
import { predefined, Config } from "@ckb-lumos/config-manager";
const { LINA, AGGRON4 } = predefined;
import { bob } from ... |
import Keyframe from './animation/timeline/Keyframe';
import Marker from './animation/timeline/Marker';
import PlayMode from './animation/timeline/PlayMode';
import Timeline from './animation/timeline/Timeline';
import GLTFPlayer from './animation/GLTFPlayer';
import { Smooth, SmoothController } from './animation/Smoot... |
import {UserService} from "./user.service";
import * as express from'express';
import {UserAttributes} from "../../model/mysqlmodels/User";
export class UserController {
private _userService: UserService
constructor() {
this._userService = new UserService();
}
retrieve = (req: express.Request, res: expr... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const MediumDimensions: {
height: number;
width: number;
}; |
export class Range {
id: string;
authorId: string;
startTime: number;
endTime: number;
constructor(id: string, authorId: string, startTime: number, endTime: number) {
this.id = id;
this.authorId = authorId;
this.startTime = startTime;
this.endTime = endTime;
}
public toString = (): strin... |
#!/usr/bin/env node
// All rights reserved by INTUITION.DEV | Cekvenich, licensed under LGPL 3.0
import commandLineArgs = require('command-line-args')
import { Ver, MBake } from './lib/Base'
import { MinJS, Sas } from './lib/Extra'
const {Dirs} = require('agentg/lib/FileOpsExtra')
import { Wa } from './lib/Wa'
const... |
import * as React from 'react';
import { useEffect, useState } from 'react';
import { useDispatch } from 'react-redux';
import { MyNft, TabPanel, Tabs } from '../components/molecules';
import { ITabProps } from '../components/molecules/Tabs';
import { getNftList } from '../store/nft';
import TitleBar from '../component... |
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { MatPaginator, MatSort, MatTableDataSource } from '@angular/material';
import { map } from 'rxjs/operators';
import { IPlayer } from '../../data-providers/players-data/player.interface... |
import { KeyObject, createPublicKey } from 'crypto'
import { JOSENotSupported } from '../../util/errors.js'
import { isCryptoKey, getKeyObject } from './webcrypto.js'
import isKeyObject from './is_key_object.js'
import invalidKeyInput from './invalid_key_input.js'
const p256 = Buffer.from([42, 134, 72, 206, 61, 3, 1, ... |
import { Component, OnInit } from '@angular/core';
import { RacketService } from '../racket.service';
import { Observable } from 'rxjs';
import { DetailsRacketModel } from '../models/deatils-racket.model';
import {allRacketAnimations} from './all-racket.animations';
import { NgProgress } from 'ngx-progressbar';
import... |
import { InversifyContainerFacade } from '../../InversifyContainerFacade';
import { ContainerModule, interfaces } from 'inversify';
import { ServiceIdentifiers } from '../../ServiceIdentifiers';
import { INodeTransformer } from '../../../interfaces/node-transformers/INodeTransformer';
import { IObfuscatingGuard } from... |
import { gql } from 'mercurius-codegen';
export const Category = gql`
type Category {
id: BigInt!
title: String!
}
`; |
import {
createReplicator,
FunctionTransform,
ClientFunctionNodeTransform
} from './replicator';
import evalFunction from './eval-function';
import Replicator from 'replicator';
import { ExecuteClientFunctionCommandBase } from '../../test-run/commands/observation';
export default class ClientFunctionExecut... |
import { rightsToPurchase } from './index';
describe('#rightsToPurchase', () => {
test('call', async () => {
const result = await rightsToPurchase('AAPL');
expect(result).not.toEqual(null);
});
}); |
export const jwtConstants = {
secret: "VErysEcreT@1234",
};
export const saltOrRoundsConstants = 12; |
// This is just a dummy declaration file to suppress the TS7016 error for bbob.
// TypeScript support may soon land there officially.
// Status can be tracked at https://github.com/JiLiZART/BBob/issues/89 .
declare module "@bbob/preset";
declare module "@bbob/preset-react";
declare module "@bbob/react/es/Component";
de... |
<TS language="pam" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>I-right click ban alilan ing address o libel</translation>
</message>
<message>
<source>Create a new address</source>
<tra... |
/*
* 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 { IRouter } from 'kibana/server';
import { LIST_ITEM_URL } from '../.... |
declare module "css-color-names" {
const colors: Record<string, string>;
export default colors;
} |
import { IValidator } from '@get-saml-metadata/use-cases/ports/IValidator'
export abstract class BaseFileValidator implements IValidator {
abstract isValid(filepath: string): Promise<boolean>
} |
import * as React from 'react';
import { CalendarMonth24Regular } from '@fluentui/react-icons';
import { Meta } from '@storybook/react';
import { Button, ButtonProps } from '../../Button';
import descriptionMd from './ButtonDescription.md';
import bestPracticesMd from './ButtonBestPractices.md';
export const Default =... |
import { ContainerObject } from './ContainerObject';
import { ExceptionType } from '../../api/ExceptionType';
import { IterableObject } from './IterableObject';
import { PyObject } from '../../api/Object';
import { getObjectUtils } from '../../api/ObjectUtils';
import { pyFunction, pyParam, pyParamArgs, pyParamKwargs }... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About LiteDoge</source>
<translation type="unfinished"/>
</message>
<message>
<location li... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import {
MatButtonModule,
MatButtonToggleModule,
MatDialogModule,
MatDividerModule,
MatInputModule,
M... |
import * as on_block from "./on_block";
import updateCampaignBalance from "./update_campaign_balance";
import coinConvert from "./coin_convert";
import * as update_exchange_rate from "./update_exchange_rate";
import { createTask } from "../utils/task";
export function registerTasks() {
createTask(
"block"... |
/**
* @author: oldj
* @homepage: https://oldj.net
*/
export default async (): Promise<string> => {
// Windows 系统有可能不安装在 C 盘
return process.platform === 'win32'
? `${process.env.windir || 'C:\\WINDOWS'}\\system32\\drivers\\etc\\hosts`
: '/etc/hosts'
} |
import { constructStack } from "@aws-sdk/middleware-stack";
import { Command as ICommand, Handler, MetadataBearer, MiddlewareStack as IMiddlewareStack } from "@aws-sdk/types";
export abstract class Command<
Input extends ClientInput,
Output extends ClientOutput,
ResolvedClientConfiguration,
ClientInput extends... |
import React, { useCallback, useEffect } from "react";
import { LevelWithDelta, PlayerMetadata } from "../../../data/types";
import { loadPreference, savePreference } from "../../../utils/preference";
type StarredPlayer = {
id: number;
name: string;
levelId: number;
timestamp: number;
};
const Context = React... |
import { Transaction, EditorState, RemoveMarkStep, ReplaceStep, Slice, Step } from '../../prosemirror';
import { createSliceWithContent } from '../../utils';
export default function transformToCodeBlock(state: EditorState<any>): void {
if (!isConvertableToCodeBlock(state)) {
return;
}
transformToCodeBlockAc... |
/*
Copyright 2018 - 2020 matrix-discord
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
import { Test, TestingModule } from '@nestjs/testing';
import { GroupRoleController } from './group-role.controller';
describe('GroupRole Controller', () => {
let controller: GroupRoleController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [GroupR... |
import React, {useEffect, useState} from 'react'
import {getHomeDoc, saveHomeDoc} from 'fbase'
import MDEditor from '@uiw/react-md-editor'
import { HeadingRenderer, ImageRenderer } from 'components/Md/Renderers'
import './DocsSection.sass'
import { store } from 'react-notifications-component'
export const DocSection:R... |
import { PluginArgs, PluginMetadata } from '@fab/core'
import webpack from 'webpack'
export interface PrecompileArgs extends PluginArgs {
[path: string]: PluginArgs & {
_config?: string
}
}
export interface PrecompileMetadata extends PluginMetadata {}
export type CustomiseWebpack = (config: webpack.Configura... |
import { Card } from '../../../interfaces'
import Set from '../Vivid Voltage'
const card: Card = {
name: {
en: "Dusknoir",
fr: "Noctunoir",
es: "Dusknoir",
it: "Dusknoir",
pt: "Dusknoir",
de: "Zwirrfinst"
},
illustrator: "Shigenori Negishi",
rarity: "Rare",
category: "Pokemon",
set: Set,
hp: 150,
... |
/* eslint-disable import/first */
import {resolve} from "path"
import * as blitzVersion from "../src/blitz-version"
import {multiMock} from "./utils/multi-mock"
const mocks = multiMock(
{
"next-utils": {
nextStartDev: jest.fn().mockReturnValue(Promise.resolve()),
nextBuild: jest.fn().mockReturnValue... |
import AdminBro, { AdminBroOptions } from 'admin-bro'
import * as UserAdmin from './resources/user'
import * as MerchantAdmin from './resources/merchant'
const rootPath = '/admin'
export const options: AdminBroOptions = {
rootPath,
version: {
admin: true,
},
dashboard: {
handler: async () => {
r... |
import { Injectable, Inject } from '@angular/core';
import { Hotkeys } from '@app/shared/services/hot-keys.service';
import { EventManager } from '@angular/platform-browser';
import { DOCUMENT } from '@angular/common';
import { NzModalService } from 'ng-zorro-antd';
@Injectable({
providedIn: 'root'
})
export class Cl... |
import React from 'react'
import { IconProps } from './types'
const IconMoodBad: React.FC<IconProps> = ({ ...props }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0V0z" fill="none" />
<path d="M11.99 2C6.47 ... |
import { PipelineAbstract } from "./PipelineAbstract"
import * as _ from "lodash"
export const PIPELINE = Symbol("Pipeline")
export interface PipeAbstract {
create(next: (resources: any[], options?: any) => Promise<any>, resources: any[], options?: any): Promise<any>
read(next: (query?: any, options?: any) =>... |
import * as Types from '../../../constants/types/chat2'
import * as WalletTypes from '../../../constants/types/wallets'
import {namedConnect} from '../../../util/container'
import PaymentStatus from '.'
type OwnProps = {
allowFontScaling?: boolean | null
error?: string | null
message: Types.MessageText
payment... |
import path from 'path';
import { Compiler } from 'webpack';
import { ExtensionDescriptor } from '@statoscope/stats/spec/extension';
import Generator, {
Format,
InstanceInfo,
} from '@statoscope/stats-extension-package-info/dist/generator';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { auth... |
import {
Body,
Controller,
Get,
Param,
Post,
Request,
ValidationPipe,
} from '@nestjs/common';
import { ApiBearerAuth, ApiParam, ApiTags } from '@nestjs/swagger';
import { TicketMessagesService } from './ticket-messages.service';
import { ITicketMessageDocument } from './interfaces/ticket-message.interfac... |
import { useState } from "react";
import { QueryExecResult } from "sql.js";
import { FileUpload } from "./components/FileUpload"
import { game } from "./types/game";
import dbRowToGame from "./utils/dbRowToGame";
import { readGogGames } from "./utils/gogDb";
import wasm from 'sql.js/dist/sql-wasm'
const App = () => {... |
import { CategoryDataSource } from './category-data-source';
describe('CategoryDataSource', () => {
it('should create an instance', () => {
expect(new CategoryDataSource(null)).toBeTruthy(); // needs service
});
}); |
export * from './referentialType'; |
export * from './role-datatable/role-datatable.area'; |
import openBrowser from './openBrowser';
export * from './types';
export { openBrowser }; |
import axios from "axios";
import React, { useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { action_routing } from "../../../store/actions/action_routing";
import { adminTestsLoadSaga } from "../../../store/sagas/adminTestListSaga";
import { AdminPages, IStore, ITest, ... |
export { default } from './BtnLink' |
import { Injectable } from '@angular/core';
import { LocalStorageService } from '@tod/ngx-webstorage';
import { LOCAL_STORAGE } from '../base/localStorage.base';
@Injectable()
/**
* 门诊人员信息初始化数据
*/
export class PovStaffInitService {
povStaffData: any[] = [];
constructor(private localSt: LocalStorageService) {
... |
import {
Directive,
ElementRef,
OnInit,
HostListener,
Input,
HostBinding,
Renderer2,
} from '@angular/core';
@Directive({
selector: '[sprkInput]',
})
export class SprkInputDirective implements OnInit {
/**
* @ignore
*/
constructor(public ref: ElementRef, private renderer: Renderer2) {}
/**... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Rikeza</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import validators from './validators';
describe('validators',()=>{
it('tests behavior of not_empty()',()=>{
expect(validators.not_empty('')).toBe('can\'t be empty');
expect(validators.not_empty('Test')).toBeUndefined();
});
it('tests behavior of email()',()=>{
expect(validators.email('abc123@test.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.