text stringlengths 10 953k |
|---|
import { ModuleMetadata, Provider, Type } from '@nestjs/common';
import { AxiosRequestConfig } from 'kickstand-axios';
export type HttpModuleOptions = AxiosRequestConfig;
export interface HttpModuleOptionsFactory {
createHttpOptions(): Promise<HttpModuleOptions> | HttpModuleOptions;
}
export interface HttpModuleAs... |
import { WithoutNullable } from '../types/without-nullable.type';
import { objectEntries } from './object-entries.helper';
import { objectFromEntries } from './object-from-entries.helper';
import { $TS_FIX_ME } from '../types/$ts-fix-me.type';
/**
* @description
* Immutably remove nullable
*
* @param inp
*/
expor... |
/* eslint-disable max-len */
/* eslint-disable @typescript-eslint/no-explicit-any */
import moment from 'moment';
import { State } from '@/models/store/state';
function sumirajKolone(kolone: Array<number>) {
return kolone.reduce((result: number, add: number) => {
const parsed = parseInt(add.toFixed(2).replace('... |
//
// 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 { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { DragulaService } from 'ng2-dragula';
import { DataService } from '../../shared/data.service';
import { Subscription } from 'rxjs';
import { DynamicDataService } from '../../shared/dynamic-dat... |
import {
Component, Input, SimpleChanges,
OnChanges, OnInit, DoCheck,
AfterContentInit, AfterContentChecked, AfterViewInit, AfterViewChecked,
ChangeDetectorRef
} from '@angular/core';
@Component({
selector: 'app-parent',
template: `
<div>* Parent</div>
<div style="margin-left: 32px">
<app-chi... |
export { default as checkToday } from './check-today';
export { default as formatDate } from './format-date'; |
/**
* Created by David on 2/11/16.
*/
import {Component, OnInit} from 'angular2/core';
import {Router} from 'angular2/router';
import {PatientDetailComponent} from './patient-detail.component';
import {Patient} from './patient';
import {PatientService} from './patient.service';
@Component({
templateUrl: 'app/pa... |
// Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { AccountId } from '@polkadot/types/interfaces';
import BN from 'bn.js';
import React, { useCallback, useEffect,... |
import {
debounce,
InputAdornment,
InputProps,
TextField,
} from "@material-ui/core"
import Menu from "@material-ui/core/Menu"
import MenuItem from "@material-ui/core/MenuItem"
import { PopoverOrigin } from "@material-ui/core/Popover"
import { makeStyles } from "@material-ui/core/styles"
import ExpandMoreIcon f... |
import {requestAuthUserDataTC} from "./auth-reducer";
import {ThunkDispatchType} from "./store-redux";
// ---------------------------------------------------------------------------------------------------------------------
// Init State
// ------------------------------------------------------------------------------... |
import { Injectable } from '@angular/core';
import { StorageProvider } from '@providers/storage/storage';
import { AuthProvider } from '@providers/auth/auth';
import { ForgeProvider } from '@providers/forge/forge';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import 'rxjs/add/o... |
export default ['Indonesia']; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
OptionsWithUri,
} from 'request';
import {
IExecuteFunctions,
IHookFunctions,
ILoadOptionsFunctions,
} from 'n8n-core';
import {
IDataObject, NodeApiError,
} from 'n8n-workflow';
export function FormatDueDatetime(isoString: string): string {
// Assuming that the problem with incorrect date format was ... |
import {Scale} from "./scale"
import {Arrayable} from "core/types"
export namespace LogScale {
export interface Attrs extends Scale.Attrs {}
export interface Props extends Scale.Props {}
}
export interface LogScale extends LogScale.Attrs {}
export class LogScale extends Scale {
properties: LogScale.Props
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="la" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Biggercoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Licensed to Ela... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_BR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<source>About Metacoin Core</source>
<translation>Sobre o Metacoin Core</translation>
</message>
<message>
<source><b>Metacoin Core</b> version</source>... |
export interface InstallRequestDto {
shop: string;
timestamp: string;
hmac: string;
} |
import formatcoords from "formatcoords";
import dayjs from "dayjs";
export function formatDateString(value?: number, timeZone?: string) {
if (value === undefined) return "";
if (timeZone) return dayjs(value).tz(timeZone).format();
return dayjs.utc(value).format();
}
export function formatPosition(value?: numbe... |
import * as React from 'react'
import * as classNames from 'classnames'
import {
AutocompletingTextArea,
AutocompletingInput,
IAutocompletionProvider,
UserAutocompletionProvider,
} from '../autocompletion'
import { CommitIdentity } from '../../models/commit-identity'
import { ICommitMessage } from '../../lib/ap... |
export default {
// updateNumStrings: (state: any, numStrings: number) => {
// state.scaleMode.numStrings = numStrings;
// },
// updateNumFrets: (state: any, numFrets: number) => {
// state.scaleMode.numFrets = numFrets;
// },
// updateTuning: (state: any, { stringNum, newNote }) => {
// state.scaleMode.tuni... |
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
///<reference path='../../type-defs/jasmine.d.ts'/>
///<reference path='../../type-defs/jasmine-test-additions.d.ts'/>
import * as Alge... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GoIconModule } from '../go-icon/go-icon.module';
import { GoTreeComponent } from './go-tree.component';
describe('GoTreeComponent', () => {
let component: GoTreeComponent;
let fixture: ComponentFixture<GoTreeComponent>;
beforeEa... |
/**
*
*
* OpenAPI spec version: release
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as show... |
export const databaseProvidersMock = [{
provide: 'DbConnectionToken',
useFactory: jest.fn(),
}]; |
export default {
env: 'NODE_ENV',
logLevel: 'LOG_LEVEL',
server: {
host: 'API_SERVER_HOST',
port: 'API_SERVER_PORT',
},
redis: {
host: 'REDIS_URL',
port: 'REDIS_PORT',
db: ' REDIS_DB',
password: 'REDIS_AUTH',
},
memoizerRedis: {
enabled... |
import axios from 'axios';
const api = axios.create({
baseURL: 'http://192.168.15.10:3333'
});
export default api; |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { routing } from './app.routing';
import { masterFirebaseConfig } from './api-keys';
import { AngularFireModule } from 'an... |
import React from 'react';
import { Alignment, Box, Button, Direction, Image, KibaIcon, Stack, Text } from '@kibalabs/ui-react';
import { Link } from '../model';
interface ILinkRowProps {
link: Link;
onViewLinkClicked?: (link: Link) => void;
}
export const LinkRow = (props: ILinkRowProps): React.ReactElement =>... |
import {ArraySchema, Schema, type} from '@colyseus/schema';
import {Pokemon} from './Pokemon';
export class Player extends Schema {
@type('string')
id: string;
@type('string')
name: string;
@type([Pokemon])
team = new ArraySchema<Pokemon>();
@type([Pokemon])
pool = new ArraySchema<Pokemon>();
@t... |
import { ConflictException, NotFoundException } from '@nestjs/common';
import faker from '@faker-js/faker';
import {
Image,
ImageState,
ImageVideo,
} from '@dark-rush-photography/shared/types';
import {
validateCanArchiveImage,
validateCanUnarchiveImage,
validateImageFound,
validateImageVideo,
validat... |
const mxw = (<any>global).mxw;
export { mxw }; |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ViewLoyaltyPointPage } from './view-loyalty-point.page';
const routes: Routes = [
{
path: '',
component: ViewLoyaltyPointPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: ... |
import React from 'react';
function DropDown(): JSX.Element {
return (
<svg
aria-hidden='true'
xmlns='http://www.w3.org/2000/svg'
width='10'
height='10'
viewBox='0 0 389 254'
fill='none'
>
<path
d='M194.5 0L388.5 254H307.5L194.5 99L78.5 254H0.5L194.5 0Z'
... |
import * as React from "react";
import { ChartBar, ChartGroup } from "@patternfly/react-charts";
import { XYChart } from "./XYChart";
export class BarChart extends XYChart {
buildChartGroup(): any {
return (
<ChartGroup offset={10} horizontal={this.props.horizontalBars}>
{this.dataSetToXYData()
... |
import { Field, ID, ObjectType } from 'type-graphql'
@ObjectType()
class AuthUserType {
@Field(type => ID)
id: string
@Field()
name: string
@Field()
email: string
}
export default AuthUserType |
import { IUserStore } from '../types/UserStore.type';
import {
USER_ROUTE,
USER_SIGN_IN_ROUTE,
POST_ENDPOIT,
DELETE_ENDPOIT
} from '../types/Routes.type';
import IntegrationBackend from '../utils/IntegrationBackend';
import ResultObject from '../utils/ResultObject';
export default class UserActions {
private... |
import * as sinon from 'sinon';
import * as assert from 'assert';
import auth from './Auth';
import Command, {
CommandValidate,
CommandCancel,
CommandOption,
CommandTypes,
CommandError
} from './Command';
import Utils from './Utils';
import appInsights from './appInsights';
import { CommandInstance } from './... |
import { V1EventSource, V1ObjectReference } from '@kubernetes/client-node';
// eventSource is a helper function to generate a string which contains information for an event.
export const eventSource = (value: V1EventSource): string => {
if (value.host && value.component) {
return `${value.host}/${value.component... |
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/context-explorer
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {Context} from '@loopback/core';
import {expect} from '@loopback/testlab';
import {ContextGraph} from '../... |
/*
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive licens... |
// Type definitions for formidable 2.0
// Project: https://github.com/node-formidable/formidable
// Definitions by: Wim Looman <https://github.com/Nemo157>
// Martin Badin <https://github.com/martin-badin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />... |
import headings from '@rigor789/remark-autolink-headings';
import frontmatter from 'remark-frontmatter';
import math from 'remark-math';
import katex from 'remark-html-katex';
import gemojiToEmoji from 'remark-gemoji-to-emoji';
import parseFrontmatter from 'remark-parse-yaml';
import shortcodes from 'remark-shortcodes'... |
export function isDefined<T>(argument: T | undefined): argument is T {
return argument !== undefined
}
export function isEmpty(val) {
return val === NaN ||
val === 'NaN' ||
val === undefined ||
val == null ||
val.length <= 0
? true
: false
} |
import { MarkdownConfig } from '@lezer/markdown';
import { yaml } from '@codemirror/legacy-modes/mode/yaml';
import { StreamLanguage } from '@codemirror/stream-parser';
import { styleTags, tags } from '@codemirror/highlight';
import { foldNodeProp } from '@codemirror/language';
const frontMatterFence = /^---\s*$/m;
c... |
import { ILocation, ICargo, IShip, ITradeRoute, ITrade, IGood, ITradeOption, INavigationParameters } from './interfaces/index.js';
import { Mentat } from './mentat.js';
/**
* This class handles the logic for the best possible trades from ship's location.
*
* Requires a list of locations and the ship data.
* The l... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {isEmpty} from 'lodash';
import {CloudCustomer, Subscription} from 'mattermost-redux/types/cloud';
import {browserHistory} from 'utils/browser_history';
import {isCustome... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import {MetaModule} from './meta/meta.module';
import { CommonModule } from '@an... |
/*
* MIT License
* Copyright (c) Aspose Pty Ltd. All rights reserved.
* 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, ... |
import { Injectable } from '@opensumi/di';
import Ajv from 'ajv';
import * as parser from 'jsonc-parser';
import { KeymapItem } from '../common';
export const keymapsSchema = {
type: 'array',
items: {
type: 'object',
properties: {
// 为了兼容 vscode,优先使用 key
key: {
type: 'string',
},
... |
import { fetch } from "../utilities";
import { Episode } from "./episode.model";
export class EpisodeService {
constructor(private _fetch = fetch) { }
private static _instance: EpisodeService;
public static get Instance() {
this._instance = this._instance || new EpisodeService();
return t... |
export * from './addMemo';
export * from './contribute';
export * from './types';
export * from './withdraw'; |
export default {
color: 'white',
opacity: '1',
colorDark: 'white',
}; |
/**
* @format
* @file BytedFireExtinguisher byted-fire-extinguisher
* @author 由 fe6 自动生成
*/
import { IIconProps, IconWrapper } from '../runtime';
// 获取 SVG 的 HTML 字符串
export const getIconBytedFireExtinguisherSvgHtml = (props: IIconProps) =>
`<?xml version="1.0" encoding="UTF-8"?>
<svg width="${props.size}" heig... |
import React from "react";
import { PrimaryButton } from "../Components";
import { Bucket } from "../Types";
import BucketView from "./BucketView";
import styled from "styled-components";
const BucketListContainer = styled.div`
width: 100%;
height: 100%;
display: grid;
grid-template-columns: repeat(auto-fill, ... |
import { FirebaseGuildsNewVersionCountHumanizedService } from './firebase-guilds-new-version-count-humanized.service';
import { FirebaseGuildsNewVersionCountMessageResponseService } from './firebase-guilds-new-version-count-message-response.service';
import { AbstractService } from '../../../../classes/services/abstrac... |
import * as Chance from 'chance';
import { WorkflowSpecTemplateScript, WorkflowSpecTemplateScriptSchema } from './model';
export class WorkflowSpecTemplateScriptMock {
/**
* Creates a record with randomized required parameters if not specified.
* @param {Object} params The parameters to initialize the record ... |
import {Component, OnInit} from '@angular/core';
import {CategoryService} from '../category.service';
@Component({
selector: 'app-product-filter',
templateUrl: './product-filter.component.html',
styleUrls: ['./product-filter.component.css']
})
export class ProductFilterComponent implements OnInit {
categories... |
import BluebirdPromise from "bluebird-lst"
import { Arch, log } from "builder-util"
import { PackageFileInfo } from "builder-util-runtime"
import { getBinFromGithub } from "builder-util/out/binDownload"
import { copyFile } from "builder-util/out/fs"
import { unlink } from "fs-extra-p"
import { Lazy } from "lazy-val"
im... |
/* eslint-disable */
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */
import { TdStepperProps } from './type';
const props: TdStepperProps = {
/** 禁用全部操作 */
disabled: {
type: Boolean,
value: false,
},
/** 禁用输入框 */
disableInput: {
type: Boolean,
value: false,
},
/** 组件类名,分别用于表示组件外层元素、输入框、右侧递增... |
// Moments a bit funky with typescript
import { Moment } from 'moment';
import moment from 'moment';
export class GeoData {
name: string;
type: string;
features: Feature[];
communityPins: boolean;
constructor(primarySource: object,communitySource: Object) {
this.name = primarySource['name'];
this.type = prima... |
import { ReactElement } from "react";
import { ThemeProvider } from "styled-components";
import { darkTheme } from "amazon-chime-sdk-component-library-react";
import Router from "./components/Router";
import { OfflineContextProvider } from "./components/context/OfflineContext";
const App = (): ReactElement => (
<The... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { LoginFormComponent } from './login-form/login-form.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatForm... |
/** @format */
import * as net from "net";
import Store from "./Store";
export default class StellariumConnector {
private server: net.Server;
private Store: Store;
private socket: net.Socket | null = null;
constructor(port: number, store: Store) {
this.Store = store;
this.server = new net.Server();
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import DataLoader from 'dataloader';
import { GraphQLResolveInfo } from 'graphql';
import SchemaBuilder, {
createContextCache,
FieldRef,
InterfaceParam,
InterfaceRef,
SchemaTypes,
} from '@giraphql/core';
import { DataloaderObjectTypeOptions, LoadableNodeOptions } from './types';
import { LoadableObjectRef } ... |
import { Piped, PipedKey } from "~/modules/pipeds";
import { dummyEnv } from "./dummy-environment";
import { createApplicationGitRepository, dummyRepo } from "./dummy-repo";
import { createRandTimes, randomText, randomUUID } from "./utils";
const [createdAt, startedAt, updatedAt] = createRandTimes(3);
export const du... |
import {
Panel, PanelLayout, Widget
} from '@phosphor/widgets';
import {
ForeignHandler
} from './foreign';
import {
IClientSession
} from '@jupyterlab/apputils';
//Some fix
import {
KernelMessage
} from '@jupyterlab/services';
import {
Message
} from '@phosphor/messaging';
//Some fix
import {
ISigna... |
import * as MDAST from '@src/mdast-4.0.js'
export function root(children: MDAST.Root['children']): MDAST.Root {
return {
type: 'root'
, children
}
}
export function paragraph(children: MDAST.Paragraph['children']): MDAST.Paragraph {
return {
type: 'paragraph'
, children
}
}
export function headin... |
import { Component } from "react";
/**
* A footer globally present for the entire website.
*/
export default class Footer extends Component {
/**
* @returns {JSX.Element} the {@link JSX.Element}
*/
render(): JSX.Element {
const currentYear: number = new Date().getFullYear();
return (
<footer... |
import { AlertService } from './../../service/alert.service';
import { Component, OnInit, ViewChild } from '@angular/core';
import { NgModel } from '@angular/forms';
import { SessionService } from '../../service/session.service';
import { UserService } from './../../service/http/user.service';
import { UserManagementS... |
import * as React from 'react';
import { StyledIconProps } from '@styled-icons/styled-icon';
export declare const EllipsisHDimensions: {
height: undefined;
width: undefined;
}; |
import { getDroppedOrSelectedFiles } from './fileSelector';
export { getDroppedOrSelectedFiles };
export function* range(num1: number, num2: number): Generator<number, void, unknown> {
const start = num1 <= num2 ? num1 : num2;
const end = num2 >= num1 ? num2 : num1;
for (let i = start; i <= end; i += 1) {
... |
import * as Router from 'koa-router';
import ChannelController from '../controllers/channel';
const router = new Router();
router.get('/', async (ctx, next) => {
if (ctx.isAuthenticated()) {
ctx.redirect('/channel/' + ctx.state.user.username);
return;
}
return next();
});
router.get('/:username', asyn... |
/* eslint-disable @typescript-eslint/no-explicit-any */
/** https://docs.tsafe.dev/objectKeys */
export function objectKeys<T extends Record<string, unknown>>(o: T): (keyof T)[] {
return Object.keys(o) as any;
} |
import {
act,
fireEvent,
render,
RenderResult,
screen
} from '@testing-library/react';
import SignUpForm from './SignUpForm';
const checkInputLabel = (component: RenderResult, text: string) => {
const firstNameLabel = component.getByText(text);
expect(firstNameLabel).toBeInTheDocument();
expect(firstN... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CollectionsRoutingModule } from './collections-routing.module';
import { CollectionsHomeComponent } from './collections-home/collections-home.component';
import { TableComponent } from './table/table.component';
import {... |
import { useTarget, useTranslation } from "@utils/hooks";
import { h } from "preact";
import { ErrorBlock } from "@components/vk/ErrorBlock";
import { SupportedModule } from "@vk/scrapers";
import { c } from "@utils/fashion";
import { MARGIN_RESET, ERROR_MULTILINE } from "@common/css";
/**
* @return Блок с предупрежд... |
import { HttpClient } from '@angular/common/http';
import { Component, Input, OnInit } from '@angular/core';
import {
IAlbumInfo,
IAlbumResponse,
IArtistInfo,
IArtistResponse,
} from './dashboard.models';
import { environment } from '../../environments/environment';
@Component({
selector: 'app-dashboard',
... |
import {
IContainer,
IDisposable,
IIndexable,
IServiceLocator,
emptyArray,
} from '@aurelia/kernel';
import {
ExpressionKind,
IBinding,
IConnectableBinding,
IndexMap,
IObserverLocator,
ISignaler,
ISubscribable,
LifecycleFlags,
} from '@aurelia/runtime-html';
import type { Scope } from '@aurel... |
import { createInjectionKey } from '../../_utils'
import type { ConfigProviderInjection } from './internal-interface'
export const configProviderInjectionKey =
createInjectionKey<ConfigProviderInjection>('n-config-provider') |
import * as fs from 'fs';
import * as util from 'util';
import Logger from '../services/logger';
import { createTemp } from './create-temp';
import { downloadUrl } from './donwload-url';
const logger = new Logger('download-text-file');
export async function downloadTextFile(url: string): Promise<string> {
// Create ... |
import { has, keys } from './object';
import { curry } from './core';
export const createAction = t => (p = {}) => ({ type: t, payload: p });
export const actionsFrom = am =>
keys(am).reduce(
(ac, t) => ({
...ac,
[t]: createAction(t)
}),
{}
);
export const reducerFrom = (i, a) => (s = i, ... |
import { Request, Response, RequestHandler } from 'express';
import * as multer from 'multer';
import * as crypto from 'crypto';
const storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, __dirname + '/../../upload/');
},
filename: function (req, file, cb) {
//后缀名
const ext... |
import styled from "@emotion/styled";
export const CommentContainer = styled.div`
width: 100%;
display: flex;
row-gap: 28px;
flex-direction: column;
`;
export const CommentTitle = styled.div`
width: 86px;
height: 35px;
background-color: ${({ theme }) => theme.colors.grayscale.gray1};
`;
export const C... |
import { KeyCompareMap } from '../interfaces';
import { Observable, OperatorFunction } from 'rxjs';
import { filter, map } from 'rxjs/operators';
import { distinctUntilSomeChanged } from './distinctUntilSomeChanged';
/**
* @description
*
* Returns an Observable that emits only the provided `keys` emitted by the sou... |
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
import { BrowserRouter } from 'react-router-dom';
;
ReactDOM.render(
<React.StrictMode>
<BrowserRouter>
<App />
</BrowserRouter>
</React.StrictMode>,
document.getElementById('root')
) |
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { first } from 'rxjs';
import { ListSchema, TaskSchema } from 'src/app/app.module';
import { TaskService } from 'src/app/core/services/task.service';
import { ModalComponent } fr... |
import * as R from 'ramda';
import { memoizeOneWithFlag } from 'core/memoizer';
import QuerySyntaxTree from 'dash-table/syntax-tree/QuerySyntaxTree';
import {
ControlledTableProps,
SanitizedAndDerivedProps,
SetProps,
TableAction
} from './props';
export default () => {
const filterCache = memoiz... |
import { stub } from 'sinon';
import * as yargs from 'yargs';
import { Helper } from './../../src/interfaces';
export function getHelperStub<T>(): Helper {
return {
context: <T> {},
yargs,
command: {
run: stub().returns(Promise.resolve()),
exists: stub().returns(true)
}
};
};
const yargsFunctions = ['... |
import { ElementHandle, Page } from 'puppeteer'
import { getText, isVisible } from './helpers'
export class SimpleResponseFormDropdown {
constructor(page: Page) {
this._page = page
}
async waitForPresent() : Promise<ElementHandle<Element>> {
return this._page.waitForSelector('div.ant-selec... |
import { Denom } from '../Denom';
import { JSONSerializable } from '../../util/json';
import { ValAddress } from '../strings';
/**
* Stores information about data about Oracle prevotes fetched from the blockchain.
*/
export declare class ExchangeRatePrevote extends JSONSerializable<ExchangeRatePrevote.Data> {
has... |
import Logger from '../src/index'
import { ApolloRequest } from '../src/types'
import { getObjectFromFile } from './helpers/jsonHelper'
const introspectionRequest = getObjectFromFile(
'data/requests/introspection.json'
) as ApolloRequest
const loginRequest = getObjectFromFile(
'data/requests/login.json'
) as Apoll... |
import { AfterViewInit, ElementRef, OnChanges, Renderer2 } from '@angular/core';
import { ResponsiveService } from '@delon/theme';
import { SGContainerComponent } from './grid-container.component';
export declare class SGComponent implements OnChanges, AfterViewInit {
private ren;
private parent;
private re... |
export {};
//# sourceMappingURL=bookingPayingAnInvoice.spec.d.ts.map |
import 'reflect-metadata';
import { InjectFlags, Injector } from '@angular/core';
import { debugLog } from 'core-app/shared/helpers/debug_output';
export interface InjectableClass {
injector:Injector;
}
export function InjectField(token?:any, defaultValue:any = null, flags?:InjectFlags) {
return (target:Injectabl... |
import React, {Fragment} from 'react';
import Icon from './index';
const IconExample = () => {
return (
<Fragment>
<Icon name="wechat" />
<Icon name="alipay" />
<Icon name="right" />
</Fragment>
);
};
export default IconExample; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.