text stringlengths 10 953k |
|---|
// Copyright 2021 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
import {RouterOptions} from "../define/router-options.interface";
import {CONTROLLER_LIST, SERVICE_LIST} from "./symbol";
export function Router(options?: RouterOptions) {
return (target :any) => {
if(options)
{
if(options.controllers)
{
Reflect.defineMetadat... |
import * as React from "react"
import translate from "../../../util/translation"
import CodeTable from "../../components/codeTable"
import CodeCover from "../../components/cover"
import Database from "../../components/database"
import { KeywordCover, KeywordTransaction } from "../../components/keywords"
import SharedTa... |
import {
URL_MODE_REGEX,
URL_MODE_REGEX_IGNORE_PROTOCOL,
URL_MODE_TEXT,
} from '@/constants';
import { LOAD_SUCCESS } from '@/constants/loadState';
import { addSite, editSite } from '@/lib/controller/site';
import makeLogger from '@/lib/makeLogger';
import matchUrlRegex from '@/lib/matchUrlRegex';
import useSite ... |
import { ParseDefinitionsOptions } from "./get-definitely-typed";
import { TypingsData, AllPackages, TypingVersion, formatTypingVersion } from "./packages";
import {
assertDefined,
best,
mapDefined,
nAtATime,
FS,
logger,
writeLog,
Logger,
Semver,
UncachedNpmInfoClient,
NpmInfoRawVersions,
NpmInf... |
/*
* 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 * from './plugin'; |
/// <reference types="Cypress" />
import { PartialViewMacroBuilder } from "umbraco-cypress-testhelpers";
context('Partial View Macro Files', () => {
beforeEach(() => {
cy.umbracoLogin(Cypress.env('username'), Cypress.env('password'));
});
function openPartialViewMacroCreatePanel() {
cy.umbracoSection('... |
/**
* Map of all Contentful block types. Blocks contain inline or block nodes.
*/
enum BLOCKS {
DOCUMENT = 'document',
PARAGRAPH = 'paragraph',
HEADING_1 = 'heading-1',
HEADING_2 = 'heading-2',
HEADING_3 = 'heading-3',
HEADING_4 = 'heading-4',
HEADING_5 = 'heading-5',
HEADING_6 = 'heading-6',
OL_L... |
import { DirectiveOptions } from "vue";
const handler = (el: HTMLElement): void => {
const mouseDownHandler = (e: MouseEvent) => {
if (e.preventDefault) e.preventDefault();
const style = window.getComputedStyle(el),
top = parseFloat(style.top),
left = parseFloat(style.left);
const startX = ... |
import React, {useRef} from 'react';
import { useDrop } from 'react-dnd';
import ItemTypes from '../../models/ItemTypes';
import styled from 'styled-components';
import _ from 'lodash';
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
ResponsiveContainer
} from 'recharts';
const Dustbin... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { ConfirmationService, MessageService } from 'primeng/api';
import { Dish, DishCategory } from '../../models/dish';
import { DishService } from '../../service/dish.service';
import { HttpClient } from '@angular/common/http';
import { ShareDataService ... |
import type { Main } from "../../main";
import { RollUpdater } from "./RollUpdater";
export async function loadRollUpdater(tsParticles: Main): Promise<void> {
await tsParticles.addParticleUpdater("roll", () => new RollUpdater());
} |
import * as React from "react";
function SvgIcDragHandle(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="1em"
height="1em"
{...props}
>
<g fill="none" fillRule="evenodd">
<path d="M0 0h24v24H0z" />... |
declare module 'react-spring' {
import { PureComponent, ReactNode, ComponentClass } from 'react';
export type SpringConfig = {
tension: number;
friction: number;
};
type SpringProps<S extends object, DS extends object = {}> = {
/**
* Spring config ({ tension, friction })
* @default confi... |
import { Transition } from '@headlessui/react';
import {
CheckCircleIcon,
ExclamationCircleIcon,
XCircleIcon,
InformationCircleIcon,
} from '@heroicons/react/outline';
import { XIcon } from '@heroicons/react/solid';
import { Fragment } from 'react';
const icons = {
info: <InformationCircleIcon className="w-6... |
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
import { Length } from "class-validator";
import {
Column,
Entity,
PrimaryGeneratedColumn,
Index,
AfterInsert,
JoinColumn,
OneToOne,
ManyToOne
} from "typeorm";
import TodoMetadata from "./TodoMetadata";
import Author from "./Author";
@Entity()
export class Todo {
@PrimaryGeneratedColumn()
public i... |
export { default } from './ScenarioNav'; |
import chalk from 'chalk';
import * as program from 'commander';
import * as inquirer from 'inquirer';
import {BirthdayWisher, wishes} from './birthday';
import {configFileExists, decryptCredentials, getConfigPath, writeFile} from './utils/config';
const configBirthdayNames: string[] = [];
let config: any = {
firs... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {DatePipePipe} from '../date-pipe.pipe';
import {NoticeComponent} from './notice.component';
import {MatDialogModule} from "@angular/material/dialog";
describe('NoticeComponent', () => {
let component: NoticeComponent;
let fixture: Comp... |
///<reference path='./base.d.ts' />
declare module '@stripe/stripe-js' {
type StripePaymentElement = StripeElementBase & {
/**
* The change event is triggered when the `Element`'s value changes.
*/
on(
eventType: 'change',
handler: (event: StripePaymentElementChangeEvent) => any
): ... |
import { Component, OnInit } from '@angular/core';
import { IForum } from '../model';
import { ForumService } from '../forum.service';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
public items:... |
import * as React from 'react'
import { H2, SubTitleH4, SubTitleH6, GridItem } from '@reapit/elements-legacy'
import { cx } from '@linaria/core'
import { sectionContainer, hasBackgroundSection, gridItem } from './__styles__'
export type SectionProps = {
background?: string
image: string
heading: string
subhead... |
import { LinComponent } from "../common/component";
import { getRect } from "../common/utils";
const TRANSITIONAll = "transition: all 500ms";
const TRANSITIONNONE = "transition: none";
LinComponent({
classes: ["left-class", "right-class"],
props: {
// 是否显示左侧
showLeft: {
type: Boolean,
value: fa... |
import React, { ButtonHTMLAttributes } from "react"
import classNames from "classnames"
interface NavbarTogglerProps extends ButtonHTMLAttributes<{}> {
className?: string
tag?: ((...args: any[]) => any) | string
}
const NavbarToggler = (props: NavbarTogglerProps) => {
const { className, children, tag: Tag, ...att... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="et" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About pinecoin</source>
<translation>Info pinecoin'i kohta</translation>
</message>
<message>
... |
import React from 'react'
const useAnimationFrame = (callback: (time: number) => void) => {
// Use useRef for mutable variables that we want to persist
// without triggering a re-render on their change
const requestRef = React.useRef<number>();
const previousTimeRef = React.useRef<number>();
const animate =... |
export interface CommentI {
_id?: string;
parent_comment_id: string;
article_id: string;
body: string;
author: {
uid: string;
email: string;
displayName: string;
photoURL: string;
};
timestamp: string;
marks: {user: string, rate: number}[];
} |
version https://git-lfs.github.com/spec/v1
oid sha256:f60f5c9d3623aacab86cfa02601b3ddca7ddd32f87a478cba922e0342c98652e
size 304184 |
import { EnumerationDto } from '../dtos/enumeration.dto';
import { EnumerationEntity } from '../entities/enumeration.entity';
export class EnumerationParser {
static toEnumerationDto(entity: EnumerationEntity): EnumerationDto {
return {
id: entity.id,
titulo: entity.titulo,
};
}
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { createContext } from 'react'
import { ReactReduxContextValue } from 'react-redux'
export const StoreContext = createContext<ReactReduxContextValue | null>(null) as React.Context<ReactReduxContextValue> |
import { transformToMovingAverage } from './helpers';
import type { Data } from '~client/types';
describe('graph (component) helpers', () => {
describe(transformToMovingAverage.name, () => {
it('should get the moving average of a time series', () => {
expect.assertions(1);
const timeSeries: Data = ... |
import messages from "lib/text"
import Paper from "material-ui/Paper"
import RaisedButton from "material-ui/RaisedButton"
import React from "react"
import { Field, reduxForm } from "redux-form"
import { TextField } from "redux-form-material-ui"
import style from "./style.css"
const validate = values => {
const error... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as React from 'react';
import { wrap, usePostControl, useValue } from '@/test/decorate';
import { PostElementCard } from './card';
import { Paragraph } from '@/core/symbol/text';
import { Block, SimpleContentMaxWidthFull } from '@/core/layout/common';
import { iconTypes } from '@/core/symbol/icon';
import { El... |
import { Injectable, Logger } from "@nestjs/common";
import { ProductData } from "src/database/seeder/product.seeder";
import { AdminData } from "src/database/seeder/user.seeder";
import { Roles } from "src/role/interface/role.interface";
import { LoginUserDto } from "../dto/login-user.dto";
import { UserService } from... |
import React, { FunctionComponent, useMemo } from 'react';
import { CSSTransition } from 'react-transition-group';
import { CSSTransitionProps } from 'react-transition-group/CSSTransition';
interface BaseTransitionProps {
animationClassName?: 'zoom-in-top' | 'fade-in';
}
export type TransitionProps = Partial<CSSTra... |
import * as React from 'react'
import * as types from '../../types'
import { Button } from '../button/button'
import { $c } from '../../utils'
export interface DropdownProps extends types.CommonProps {
text: string
overlay: React.ReactElement<any>
theme?: types.Theme
size?: types.Size
split?: boolean
direc... |
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import * as request from 'supertest';
import { FinanceModule } from './../src/Finance.module';
describe('FinanceController (e2e)', () => {
let app: INestApplication;
beforeEach(async () => {
const moduleF... |
////////////////////////////////
//
// Copyright 2021 Battelle Energy Alliance, LLC
//
// 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 limitatio... |
/// <reference no-default-lib="true"/>
/// <reference lib="dom" />
/// <reference lib="es6" />
/// <reference lib="dom.iterable" />
/// <reference lib="scripthost" /> |
/* Copyright 2014 Mozilla Foundation
*
* 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... |
import * as actions from "@nteract/actions";
import { mockAppState } from "@nteract/fixtures";
import { createExecuteRequest, createMessage } from "@nteract/messaging";
import * as stateModule from "@nteract/types";
import { ActionsObservable, StateObservable } from "redux-observable";
import { empty, from, of, Subject... |
import { Injectable } from '@angular/core';
import {AngularFireDatabase, AngularFireList, AngularFireObject} from 'angularfire2/database';
@Injectable()
export class BoardService {
constructor(public af: AngularFireDatabase) {}
public getBoards(): AngularFireList<any[]> {
return this.af.list<any[]>('/boards'... |
export class Index {
readonly id: string;
readonly index: string;
readonly length: number;
constructor(options?: CreateOptions);
info(): {
id: any;
items: any;
cache: any;
matcher: number;
worker: any;
threshold: any;
depth: any;
resolution: any;
contextual: boolean;
};
... |
import * as React from 'react';
import * as _ from 'lodash-es';
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore: FIXME missing exports due to out-of-sync @types/react-redux version
import { useSelector } from 'react-redux';
import { RootState } from '@console/internal/redux';
import { Status,... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faPingPongPaddleBall: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export cons... |
require("dotenv").config();
process.on("unhandledRejection", (reason, p) => {
console.error("Unhandled Rejection:", reason);
});
import { Container } from "@fullstack-one/di";
import { FullstackOneCore } from "fullstack-one";
import { ORM } from "@fullstack-one/db";
const $one: FullstackOneCore = Container.get(Ful... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
import { HttpResponse } from "../src/HttpClient";
import { TransferFormat } from "../src/ITransport";
import { LongPollingTransport } from "../src/LongP... |
import { TNodeWithStatements } from '../../types/node/TNodeWithStatements';
import { ICustomNode } from './ICustomNode';
import { IInitializable } from '../IInitializable';
import { ICallsGraphData } from '../analyzers/calls-graph-analyzer/ICallsGraphData';
import { CustomNode } from '../../enums/custom-nodes/CustomN... |
/**
@module ember
*/
import { get } from '@ember/-internals/metal';
import { assert } from '@ember/debug';
import { flaggedInstrument } from '@ember/instrumentation';
import { join } from '@ember/runloop';
import { DEBUG } from '@glimmer/env';
import { CapturedArguments } from '@glimmer/interfaces';
import {
createUn... |
import React from 'react';
import { defaultsDeep } from 'lodash';
import { TypeChooser } from './query.type';
import { TableFilter } from './query.filters';
import { URLEditor } from './query.url';
import { SeriesEditor } from './query.series';
import { InfinityQuery, EditorMode, InfinityQueryFormat, InfinityQuerySourc... |
import { AdjustmentDirection, DiffPart, PositionAdjuster } from '@sourcegraph/codeintellify'
import { trimStart } from 'lodash'
import { map } from 'rxjs/operators'
import { Omit } from 'utility-types'
import { PlatformContext } from '../../../../shared/src/platform/context'
import {
FileSpec,
PositionSpec,
... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {TuringMachineStateTabComponent} from './turing-machine-state-tab.component';
import {MatDialog, MatDialogModule, MatIconModule, MatToolbarModule} from "@angular/material";
import {AgGridModule} from 'ag-grid-angular';
import {ToasterModule... |
import { bech32, bech32m } from 'bech32';
const {
decode: bech32Decode,
encode: bech32Encode,
fromWords: bech32FromWords,
toWords: bech32ToWords
} = bech32;
import bigInt from 'big-integer';
import { blake2b, blake2bHex } from 'blakejs';
import { decode as bs58DecodeNoCheck, encode as bs58EncodeNoCheck } from ... |
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/let';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/switchMap';
import { Injectable } from '@angular/core';
import { Actions, Effect } from '@ngrx/effects';
import { Store } from ... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { VirtualMachineS... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ErrorComponent } from './error/error.component';
import { ForgetPasswordComponent } from './forget-password/forget-password.component';
import { LoginComponent } from './login/login.component';
import { RegisterC... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import { getAddress } from '@ethersproject/address';
import type { BigNumberish } from '@ethersproject/bignumber';
import { BigNumber } from '@ethersproject/bignumber';
import { hexDataLength, isHexString } from '@ethersproject/bytes';
import { Two, Zero } from '@... |
import {JobScheduleRequiredError} from '../errors/JobScheduleRequired'
import {Agenda, Job as AgendaJob} from 'agenda'
import {Processor} from 'agenda/dist/agenda/define'
import {JobDefinition, JobMap, Job} from '../types/job'
import {getAgendaOptions} from '../utils/getAgendaOptions'
import getProcessorFromJob from '.... |
import { getAllLogs, calculateCallCount } from './log';
const sampleLogs = [
{
identifier: 'f53b3e0e-6a21-11eb-9439-0242ac130002',
agentIdentifier: '356b03dc-9ec5-11e7-97a6-d501104f897e',
number: '+49151484522',
dateTime: '2020-10-05T14:48:00.000Z',
duration: 230,
},
... |
import './notice-bar.less'
import { NoticeBar } from './notice-bar'
export type { NoticeBarProps } from './notice-bar'
export default NoticeBar |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'paas-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.scss']
})
export class FooterComponent implements OnInit {
public date: Date = new Date();
constructor() { }
ngOnInit() {
}
} |
import React from 'react';
import {AppConfig} from '../types';
export const AppConfigContext = React.createContext<AppConfig>({
appName: 'unknown',
appVersion: 'unknown',
createStackConfig: () => ({}),
}); |
/** @jsx jsx */
import { jsx } from 'theme-ui';
import styled from '@emotion/styled';
import mediaqueries from '@styles/media';
import { ReactNode } from 'react';
const Ul = styled.ul`
list-style: none;
counter-reset: list;
position: relative;
padding: 15px 0 30px 30px;
margin: 0;
font-size: 18px;
li {
... |
export { default } from './StrongText'; |
import {
Controller,
Get,
InternalServerErrorException,
Req,
UseGuards,
} from '@nestjs/common';
import { Request } from 'express';
import { API_VERSION } from '../helpers';
import { responseData } from '../interfaces';
import { RolesGuard } from '../roles.guard';
import { NotificationsService } from './notif... |
export * from './field.module';
export * from './field/field.component';
export * from './form-error/form-error.directive';
export * from './label/label.component';
export * from './form-field-token';
export * from './form-field-control'; |
declare module 'xss-clean' {
const value: Function;
export default value;
} |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { User, UserSchema } from './entities/user.entity';
@Module({
imports: [
MongooseModule.forFeature([
{
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ChessboardComponent } from './chessboard.component';
describe('ChessboardComponent', () => {
let component: ChessboardComponent;
let fixture: ComponentFixture<ChessboardComponent>;
beforeEach(async(() => {
TestBed.configureT... |
import puppet from '../commonjs/generated/puppet.cjs'
import google from '../commonjs/generated/google.cjs'
import { codeRoot } from '../commonjs/code-root.cjs'
export {
codeRoot,
google,
puppet,
} |
export const sysTask = {
page: 'sys/task/page',
add: 'sys/task/add',
update: 'sys/task/update',
delete: 'sys/task/delete',
once: 'sys/task/once',
start: 'sys/task/start',
stop: 'sys/task/stop',
info: 'sys/task/info'
} as const;
export const values = Object.values(sysTask);
export type SysTaskPerms = t... |
export const packetOffset = 0; // 数据包
export const headerOffset = 4; // 数据包头部
export const rawHeaderLen = 16; // 数据包头部长度(固定为 16)
export const verOffset = 6; // 协议版本
export const opOffset = 8; // 操作类型
export const seqOffset = 12; // 数据包头部
export type Ver = 1 | 2;
export type Op = 2 | 3 | 5 | 7 | 8; |
import { UPDATE, DELETE } from './idToken.types';
const INITIAL_STATE = {
idToken: null,
};
const idTokenReducer = (state = INITIAL_STATE, action) => {
switch (action.type) {
case UPDATE:
return {
...state,
idToken: action.idToken,
};
ca... |
/**
@license
Copyright 2019 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... |
import { Form, Input, notification } from 'antd'
import { LoadingOutlined } from '@ant-design/icons'
import styled from 'styled-components'
import { useMutation, useQueryClient } from 'react-query'
import axios from 'axios'
import ProjectDetails from 'components/TasksTable/Projectdetails'
import { sortByCreated } from ... |
import chalk from 'chalk';
import * as Table from 'cli-table3';
import { Stats } from './statistics/stats';
import { chalkScheme } from './utils';
import { ICompareJSONResult } from './log-compare-results';
export default class TBTable {
public table: any;
public display: Stats[];
public estimatorDeltas: number... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { createFeatureSelector, createSelector } from '@ngrx/store';
import { createEntityAdapter, EntityAdapter, EntityState } from '@ngrx/entity';
import * as event from './configurations.actions';
import { Configuration } from '../../../shared/models/configuration.model';
/**
* @ngrx/entity provides a predefined i... |
import { CurrencyApiInterface } from "./CurrencyApiInterface";
import { Injectable } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import { HttpService } from "nestjs-http-promise";
import { rethrow } from "@nestjs/core/helpers/rethrow";
@Injectable()
export class OXRApi implements CurrencyAp... |
import { Injectable } from '@angular/core';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { LoginErrorDialogComponent } from './login-error-dialog.component';
import { IPxbAuthErrorDialogService } from '@pxblue/angular-auth-workflow';
@Injectable({
providedIn: 'root',
})
export class L... |
import { Component, OnInit } from '@angular/core';
// import { NgForm } from '@angular/forms';
import {FormGroup, FormControl, FormBuilder, Validators, AbstractControl, ValidatorFn, FormArray} from '@angular/forms';
import {debounceTime} from 'rxjs/operators';
import { Customer } from './customer';
// function ratin... |
import { Module } from '@nestjs/common';
import { AuthModule } from './auth/auth.module';
import { BookmarkModule } from './bookmark/bookmark.module';
import { UserModule } from './user/user.module';
import { PrismaModule } from './prisma/prisma.module';
import { ConfigModule } from '@nestjs/config';
import { CatsModul... |
import React from "react";
import PropTypes, { array } from "prop-types";
import PhotoBox from "./PhotoBox";
import { PhotoBoxProps } from "components/UI/PhotoBox";
interface PhotoGridProps {
cols: number;
hideDescriptions?: boolean;
items: [];
}
const PhotoGrid: React.FC<PhotoGridProps> = ({
cols,
items,
... |
/*
*
* * *****************************************************************************
* * Copyright (C) 2020 Testsigma Technologies Inc.
* * All rights reserved.
* * ****************************************************************************
*
*/
import {Base} from "../shared/models/base.model";
import ... |
/** ------------------------------------------------------
* THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
* -------------------------------------------------------
*/
/* tslint:disable */
export abstract class CreateCatInput {
name?: string;
age?: number;
}
export abstract class Cat {
id?: num... |
// as per arcgis demos here: https://developers.arcgis.com/javascript/latest/guide/using-webpack/index.html
import esriConfig = require("esri/config");
const DEFAULT_WORKER_URL = "https://js.arcgis.com/4.11/";
const DEFAULT_LOADER_URL = `${DEFAULT_WORKER_URL}dojo/dojo-lite.js`;
(esriConfig.workers as any).loaderUrl ... |
export class ValidationService {
static getValidatorErrorMessage(validatorName: string, validatorValue?: any) {
let validatorValueLength = validatorValue ? validatorValue.requiredLength : -1;
let config = {
'required': 'Required',
'maxlength': 'Should have a length less than ' + validatorValueLe... |
export * from './dist/core'; |
import * as React from 'react'
import { ComponentType, SFC } from 'react'
import { withMDXComponents } from '@mdx-js/tag/dist/mdx-provider'
import { ComponentsMap } from './DocPreview'
export interface PlaygroundProps {
components: ComponentsMap
className?: string
style?: any
wrapper?: ComponentType<any>
ch... |
import { mergeMap, catchError, map } from 'rxjs/operators';
import { Injectable } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import { of } from 'rxjs';
import {
CredentialActionTypes,
SearchCredentials,
SearchCred... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sv" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DECOIN</source>
<translation>Vad du behöver veta om Blackcoin</translation>
</message>
<message... |
import { GraphQLObjectType, GraphQLID, GraphQLList } from "graphql";
import { UserType, PostType } from "./Types";
import { Post, User } from "../models/";
export const RootQuery = new GraphQLObjectType({
name: "RootQueryType",
fields: {
post: {
type: PostType,
args: {
id: {
type:... |
import { Connection, createConnection } from 'typeorm';
import { RefreshTokensEntity, UserEntity } from '@/infra/entities';
export const MemoryDb = {
connection: null as Connection,
async connect(): Promise<void> {
this.connection = await createConnection({
type: 'sqlite',
database: ':memory:',
... |
import * as log from "https://deno.land/std/log/mod.ts";
import { dirname } from "https://deno.land/std/path/mod.ts";
import Config from "../config.ts";
import Package from "../package/package.ts";
import Repository from "./repository.ts";
import CacheRepository from "./cache_repository.ts";
import ChainRepository fr... |
export * from "./src/compareWithNow.ts";
export * from "./src/dirExists.ts";
export * from "./src/fileExists.ts";
export * as logger from "./src/logger.ts";
export * from "./src/path.ts";
export * from "./src/pingServer.ts";
export * from "./src/proxyUrl.ts";
export * from "./src/reservedNames.ts";
export * from "./src... |
/**
* Anchor component properties.
*/
export type AnchorProperties = {
/** Open in a new window */
aside: boolean;
}; |
export class Css {
/**
* 添加CSS样式
* @param style 样式
*/
static addStyle(style: string): HTMLStyleElement {
const element = document.createElement('style');
element.innerHTML = style;
document.head.appendChild(element);
return element;
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.