text stringlengths 10 953k |
|---|
import React, { useState } from 'react';
import Paragraph from 'components/atoms/Paragraph/Paragraph';
import CardWrapper from 'components/atoms/CardWrapper/CardWrapper';
import ListItem from 'components/molecules/VulnerabilitiesListItem/VulnerabilitiesListItem';
import Checkbox from 'components/atoms/Checkbox/Checkbox... |
import {Property} from 'csstype';
import {ColorsDescription, ColorsScheme} from '@/interfaces/general';
/**
* Интерфейс всех цветов на выходе
*/
export interface ColorWithStates {
normal: Property.Color;
hover: Property.Color;
active: Property.Color;
}
export type ColorDescriptionStatic = Property.Color | Color... |
import { UIFrame } from "../ui";
export const C_CVar = {
GetCVar: (name: string): string | undefined => {return ''},
GetCVarBitfield: (name: string, index: number): boolean | undefined => {return false},
GetCVarBool: (name: string): boolean | undefined => {return false},
GetCVarDefault: (name: string):... |
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { RouterModule } from "@angular/router";
import { AgmCoreModule } from '@agm/core';
import { CarouselModule } from 'ngx-bootstrap/carousel';
import { CommonPagesComponents } from './index';
@NgModule({
declarations: [
... |
export * from './sbd.module';
export * from './sbd.service'; |
import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsersRepository } from './users.repository';
import { PassportModule } from '@nestjs/passport';
import { JwtModule } from '... |
export const schema = (defaults: any) =>
Object.keys(defaults).reduce<
{
param: string;
description?: string;
type: string;
default: any;
}[]
>(
(memo, key) => [
...memo,
{ param: key, default: defaults[key], type: typeof defaults[key] }
],
[]
); |
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
import * as _ from 'lodash';
import { Required, CheckRequired } from '../decorators';
import { StTwoListSelectionElement, StTwoListSelectionConfig } from './st-two-list-selection.model';
@Component({
selector: 'st-two-... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {randomEmojiList} from './emojiList'
class BlockIcons {
static readonly shared = new BlockIcons()
randomIcon(): string {
const index = Math.floor(Math.random() * randomEmojiList.lengt... |
class I18n {
private static translations:{[key:string]:string} = {
'cms.edit.message.conflict': 'Could not save the content. A newer Version already exists on the server.',
'cms.edit.message.unauthorized': 'Could not save the content. You are not authorized to change it.',
'cms.edit.message.no-connection'... |
/* eslint-disable max-len */
/**
* eraser.
*
* {@link https://icons.getbootstrap.com/icons/eraser/}.
*/
export const eraser = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eraser" viewBox="0 0 16 16">
<path d="M8.086 2.207a2 2 0 0 1 2.828 0l3.879 3.879a2 2 0 0 1... |
import { makeStyles, Theme } from '@material-ui/core';
const useStyles = makeStyles((theme) => ({
headerDiv: {
display: 'flex',
justifyContent: 'space-between',
marginTop: theme.spacing(3.5),
paddingTop: theme.spacing(2.15),
backgroundColor: theme.palette.cards.header,
minHeight: '5rem',
},... |
import * as React from "react";
import { IMyFavouriteDisplayItemProps } from "./IMyFavouriteDisplayItemProps";
import { IMyFavouriteDisplayItemState } from "./IMyFavouriteDisplayItemState";
import { PrimaryButton } from "office-ui-fabric-react/lib/Button";
import { Link } from 'office-ui-fabric-react/lib/Link';
import... |
import { TypeOrmOptionsFactory, TypeOrmModuleOptions } from '@nestjs/typeorm';
import { ConfigService } from '../config/config.service';
import { Injectable } from '@nestjs/common';
@Injectable()
export class PostgresTypeOrmConfigService implements TypeOrmOptionsFactory {
constructor(private readonly configService: ... |
import {
Injectable,
ConflictException,
NotFoundException,
} from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { hash } from 'bcrypt';
import { User } from './models/user.entity';
import { CreateUserDto } from './models/dto/create-user.dto';
im... |
// Copyright 2020 The Kubermatic Kubernetes Platform contributors.
//
// 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 requir... |
jest.mock('../../utils/windowutils', () => ({
windowSize: (window:any) => { const win:any = {top:0,left:0,width:800,height:600}; return win;},
}));
import { newSpecPage} from '@stencil/core/testing';
import { JeepLinechart } from './jeep-linechart';
import { convertCSSBoolean } from '../../utils/common';
import { Re... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import * as path from 'path';
import { traceError } from '../../platform/common/logger';
import { getEnvironmentVariable } from '../../platform/common/utils/platform';
import { pathExists, readFile, arePathsSame, normCasePa... |
import Urls from "@/config/Urls";
import { IWhooingResponseModel } from "@/models/IWhooingResponseModel";
import { PostWhooingEntriesData } from "@/models/PostWhooingEntriesData";
import { WhooingEntryModel } from "@/models/WhooingEntryModel";
import { AuthModule } from "@/store/store";
import { Whooing } from "@/utils... |
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerEx... |
export declare const cibPalantir: any[]; |
import classNames from 'classnames'
import React, { useContext, useEffect } from 'react'
import { useHistory } from 'react-router'
import { useLocation } from 'react-router-dom'
import { TelemetryProps } from '@sourcegraph/shared/src/telemetry/telemetryService'
import { PageHeader, Link } from '@sourcegraph/wildcard'
... |
export interface GridParams {
PageNum: number;
PageSize: number;
Status?: number;
}
export interface ArticleInfo {
Id: string;
Title: string;
Abstract: string;
ImageUrl: string;
Views: number;
Comments: number;
Likes: number;
CreateTime: string;
}
export interface JsonResul... |
// Footer styles:
// ___________________________________________________________________
import styled from 'styled-components'
import { Flex } from 'theme-ui'
import theme from '../../gatsby-plugin-theme-ui'
import Section from '../Section'
// ___________________________________________________________________
ex... |
import { Dispatch, SetStateAction, useCallback, useEffect, useRef, useState } from 'react';
export type ValidityState = [boolean | undefined, ...any[]];
export interface StateValidator<V, S> {
(state: S): V;
(state: S, dispatch: Dispatch<SetStateAction<V>>): void;
}
export type UseStateValidatorReturn<V> = [V, ... |
import * as React from 'react';
import {
AnimatePropTypeInterface,
CategoryPropType,
Data,
DataGetterPropType,
EventCallbackInterface,
EventPropTypeInterface,
Helpers,
NumberOrCallback,
OriginType,
PaddingProps,
SliceNumberOrCallback,
SortOrderPropType,
StringOrNumberOrCallback,
StringOrNumb... |
// tslint:disable-next-line: no-implicit-dependencies
import { Selector } from 'redux-testkit';
import { StumpyState } from '../../../reducers';
import { fallbackDungeonMaps } from '../../../../api/dungeon';
import { DungeonId } from '../../../../api/dungeon/dungeon-id';
import { fallbackInventory } from '../../../..... |
import fs from 'fs';
import path from 'path';
import { execSync } from'child_process';
import fsExtra from 'fs-extra';
import inquirer from 'inquirer';
import del from 'del';
import rollupConfig from './rollup';
import webpackConfig from './webpack';
import gulpConfig from './gulp';
import {
spinner,
exec,
logErr... |
// Copyright 2021 Google LLC
//
// 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 mongoose from "mongoose"
import Members from "../models/Members"
interface Participant extends mongoose.Document {
username?: string
points?: number
avatar?: string
}
class MembersHelper {
constructor() {
mongoose.connect(
`mongodb://${process.env.DB_USERNAME}:${process.env.DB_PASSWORD}@${pro... |
/*
* Public API Surface of testing-library
*/
export * from './lib/models';
export * from './lib/config';
export * from './lib/testing-library'; |
import {
Heading,
Image,
ModalBody,
ModalContent,
ModalOverlay,
} from '@chakra-ui/react'
import { EnvironmentVariable } from 'global.types'
import { ComponentProps } from 'react'
export interface FullScreenLoaderChakraPropsOverrides {
modal?: Omit<
ComponentProps<typeof ModalOverlay>,
... |
import {Component, OnInit, ElementRef} from '@angular/core';
import {MpvJs} from 'mpv.js-vanilla';
import {remote} from 'electron';
@Component({
selector: 'app-player',
templateUrl: './player.component.html',
styleUrls: ['./player.component.scss']
})
export class PlayerComponent implements OnInit {
public mpv... |
import MdKeyboardArrowRight from "@meronex/icons/md/MdKeyboardArrowRight";
import Typography from "../../atoms/Typography";
import styles from "./text.styles.module.scss";
const PostFeaturedText = () => {
// Objeto de post para fins de desenvolvimento
const post = {
title: "SISTEMAS COMPORTAMENTAIS – OUTUBRO... |
export function isYTURL(args : string) {
var regex = /^(https?\:\/\/)?((www\.)?youtube\.com|youtu\.?be)\/.+$/g;
return regex.test(args);
}
export function isURL(args : string) {
var regex = /^((http|ftp|https):\/\/)?([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/g;
return regex.test(... |
import * as React from 'react';
export type FilterItem = {
item: string | React.ReactNode;
};
export type FilterElement = {
category: string;
items: FilterItem[];
};
export type IconPickerProps = {
button: React.ReactElement;
data: FilterElement[];
onSelect: (val: React.ReactNode) => void;
trigger: ('c... |
import {
Directive,
ElementRef,
Renderer2,
Input,
OnInit,
HostBinding,
} from '@angular/core';
export enum FormLayout {
Horizontal = 'horizontal',
Vertical = 'vertical',
columns = 'columns',
}
@Directive({
selector: '[dForm]',
})
export class FormDirective implements OnInit {
... |
export const isNumeric = (n: any) => {
return !isNaN(parseFloat(n)) && isFinite(n);
}; |
import * as React from "react";
import { CarbonIconProps } from "../../../";
declare const WatsonHealth3DMprToggle20: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default WatsonHealth3DMprToggle20; |
import {singleton} from 'tsyringe';
// ToDo: Rename
@singleton()
export class Main {
constructor() {
}
public run(): void {
console.log("Hello Team3!");
}
} |
import {
BlockAPI as BlockAPIInterface,
BlockTool,
BlockToolConstructable,
BlockToolData,
BlockTune,
BlockTuneConstructable,
SanitizerConfig,
ToolConfig,
ToolSettings
} from '../../../types';
import { SavedData } from '../../../types/data-formats';
import $ from '../dom';
import * as _ from '../utils... |
import {Injectable} from '@angular/core';
import { Headers, Http } from '@angular/http';
// set global url
import { GlobalState } from '../../global.state';
@Injectable()
export class DashboardService {
sharingdata:any=[];
private token = localStorage.getItem('auth_token');
private headers = new Headers({'Content-T... |
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE
* SPDX-License-Identifier: Apache-2.0
*/
import { assert } from "chai";
import {
computeArrayStats,
MultiStageTimer,
PerformanceStatistics,
RingBuffer,
SampledTimer,
Statistics
} from "../... |
import { Client, CommandInteraction } from 'discord.js';
import { translation, transhlators } from '../../scripts/translate';
import wiki, { Page } from 'wikipedia';
import { start } from 'repl';
export const run = async (client: Client, interaction: CommandInteraction) => {
let startText: string = interaction.optio... |
import { Icon, Menu } from 'antd';
import { formatMessage, getLocale, setLocale } from 'umi-plugin-react/locale';
import { ClickParam } from 'antd/es/menu';
import React from 'react';
import classNames from 'classnames';
import HeaderDropdown from '../HeaderDropdown';
import styles from './index.less';
interface Sele... |
import { Response, Request } from "express";
export default function disableCache(req:Request, res:Response, next:Function) {
res.set({
"Cache-Control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
"Expires": "-1",
"Pragma": "no-cache"
});
next();
} |
import { createState, createSignal, onMount } from 'solid-js'
import * as url from 'url'
import marked from 'marked'
import { visitMessage, openExternally, openFile, applySolution, getActiveTextEditor, sortSolutions } from '../helpers'
import type TooltipDelegate from './delegate'
import type { Message, LinterMessage ... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react'
import InsertRowBelowOutlinedSvg from '@ant-design/icons-svg/lib/asn/InsertRowBelowOutlined';
import AntdIcon, { AntdIconProps } from '../components/AntdIcon';
const InsertRowBelowOutlined = (
props: AntdIconProps,
ref... |
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
agora: {
appId: '54de43c2a29944539bb9e032d... |
import { Pages } from './pages';
export const Components = {
DataSource: {
TestData: {
QueryTab: {
scenarioSelect: 'Test Data Query scenario select',
max: 'TestData max',
min: 'TestData min',
noise: 'TestData noise',
seriesCount: 'TestData series count',
spre... |
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {
RouterModule,
Routes
} from '@angular/router';
import {IonicModule} from '@ionic/angular';
import {CourseListPage} from './course-list.page';
import {CourseItemModule} from '.... |
/* tslint:disable */
import { HttpClient } from '@angular/common/http';
import { Inject, Injectable, Optional } from '@angular/core';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import { DefaultHttpOptions, HttpOptions } from './';
import { USE_DOMAIN, USE_HTTP_OPTIONS, EventsAPIClient } f... |
import { ElementRef, HostListener, Injector, OnDestroy, OnInit } from '@angular/core';
import { Subscription } from 'rxjs';
import { OTranslateService } from '../../services/translate/o-translate.service';
import { OPermissions } from '../../types/o-permissions.type';
import { PermissionsUtils } from '../../util/permi... |
// Libraries
import React, {PureComponent, ChangeEvent} from 'react'
import {debounce} from 'lodash'
// Components
import {Input, IconFont} from 'src/clockface'
// Types
import {InputType} from 'src/clockface/components/inputs/Input'
// Styles
import 'src/timeMachine/components/SearchBar.scss'
interface Props {
o... |
/*
* 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 { createMockServer } from '../../../test_helpers/create_mock_server';
... |
import { Component, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { MtxGridColumn } from '@ng-matero/extensions';
import { TopicModel } from './model/topic-interface';
import { EditTopicComponent } from './edit-topic/edit-topic.component';
@Component({
selector: 'app-top... |
import type { ForumThreadPayload } from "../structs/Forum";
/**
* POST
* /channels/:channelId/forum
*/
export interface RESTPostForumThreadResult {
forumThread: ForumThreadPayload;
}
export interface RESTPostForumThreadBody {
title: string;
content: string;
} |
import * as Constants from '../../../../constants/chat2'
import * as Types from '../../../../constants/types/chat2'
import * as Chat2Gen from '../../../../actions/chat2-gen'
import {Notifications} from '.'
import {compose, namedConnect, lifecycle, withStateHandlers} from '../../../../util/container'
type OwnProps = {
... |
/*
* Copyright 2020 Sage Intacct, Inc.
*
* 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
*
* or in the "LICENSE" file accompanying this f... |
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { LoginRequestPayload } from './login-request.payload';
import { AuthService } from '../shared/auth.service';
import { ToastrService } from 'ngx-toastr';
import { ActivatedRoute, Router } from ... |
import { Component, h } from '@stencil/core';
import example from '../../assets/json/example.json';
@Component({
tag: 'app-home',
styleUrl: 'app-home.scss',
shadow: true
})
export class AppHome {
componentWillLoad() {
sessionStorage.setItem('path:', 'home');
console.log('Component is about to be rend... |
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import * as moment from 'moment';
import { TranslateModule } from '@ngx-translate/core';
import * as chai from 'chai';
import * as sinonChai from 'sinon-chai';
import { Tree... |
/** @module validate */
import { ValidationResultType } from './ValidationResultType';
/**
* Result generated by schema validation
*/
export class ValidationResult {
private _path: string;
private _type: ValidationResultType;
private _code: string;
private _message: string;
private _expected: any... |
import { shouldAdRender } from "desktop/apps/article/helpers"
import {
FeatureArticle,
NewsArticle as NewsArticleFixture,
SeriesArticle,
StandardArticle,
SuperArticle,
VideoArticle,
VideoArticleUnpublished,
} from "@artsy/reaction/dist/Components/Publishing/Fixtures/Articles"
import React from "react"
imp... |
import React, { FC, useState, useMemo } from 'react';
import { useStoreState, useStoreActions } from '@renderer/store';
import { useWindowSize } from '@renderer/hooks';
import IconImage from '@renderer/components/IconImage';
import WrapCell from '@renderer/components/WrapCell';
import { Typography, Button, Avatar } fro... |
import React, {Component, ChangeEvent} from 'react'
import {findDOMNode} from 'react-dom'
import {
DragSourceSpec,
DropTargetConnector,
DragSourceMonitor,
DragSource,
DropTarget,
DragSourceConnector,
ConnectDragSource,
ConnectDropTarget,
ConnectDragPreview,
} from 'react-dnd'
import {ErrorHandling} fr... |
import * as L from 'leaflet';
import {Observable} from 'rxjs';
declare module 'leaflet' {
namespace TileLayer {
export class WMSHeader extends WMS {
constructor(
baseUrl: string,
options: WMSOptions,
header: { header: string; value: string }[],
abort?: Observable<any>
... |
// 随机播放默认策略
const randomStra = function (total: number, index: number): number {
let randomArray: number[] = [];
let i = 0;
while(i < total) {
if (index !== i) {
randomArray.push(i);
}
i++;
}
let randomIndex = ~~(Math.random() * randomArray.length);
return ran... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import * as _stream from "stream";
import { DeleteDomain } from "../model/operations/DeleteDomain";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "..... |
export class UserSafeDataDto {
readonly username: string;
} |
import React, { FC } from 'react';
import { Icon, IconInterface } from "@redesign-system/ui-core";
export const EmoticonDevilIcon: FC<IconInterface> = function EmoticonDevilIcon({
className,
...propsRest
}) {
const classNames = `EmoticonDevilIcon ${className}`;
return (
<Ico... |
/*
* 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 { get } from 'lodash';
import { LegacyAPICaller } from 'src/core/serve... |
import React, { useCallback, useMemo } from 'react';
import Icon from 'react-native-vector-icons/Feather';
import { format } from 'date-fns';
import ptBR from 'date-fns/locale/pt-BR';
import { useNavigation, useRoute } from '@react-navigation/native';
import {
Container,
Title,
Description,
OkButton,
OkButto... |
import { FomirPlugin } from 'fomir'
import { Form } from './Form'
import { Input } from './fields/Input'
import { Textarea } from './fields/Textarea'
import { RadioGroup } from './fields/RadioGroup'
import { Checkbox } from './fields/Checkbox'
import { CheckboxGroup } from './fields/CheckboxGroup'
import { Switch } fro... |
const s3BaseURL = 'https://s3.amazonaws.com/ssalka.io';
export function getResourceURL(path: string): string {
return `${s3BaseURL}/${path}`;
} |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Manages an Access Analyzer Analyzer. More information c... |
import * as React from 'react';
import * as Svg from 'react-native-svg';
export default (props?: Svg.SvgProps): React.ReactElement<Svg.SvgProps> => (
<Svg.Svg {...props} viewBox='0 0 24 24'>
<Svg.G data-name='Layer 2'>
<Svg.G data-name='eye-off'>
<Svg.Rect width='24' height='24' opacity='0' />
... |
import React from "react";
import { ViewProps } from "react-native";
import { NBLoginModel, NBRegisterModel } from "../models";
import { NBUserModel } from "../user";
export declare type NBRegisterMode = 'full' | 'no_nickname' | 'no_password';
export interface NBCompMobileLoginPros extends ViewProps {
loginParams?:... |
import { EntityRepository, Repository } from 'typeorm';
import { Payment } from './entities/payment.entity';
@EntityRepository(Payment)
export class PaymentsRepository extends Repository<Payment> {} |
import {Component} from '@angular/core';
import {CookieClientService} from '../../services/cookie-client.service';
@Component({
selector: 'app-global-statistics',
templateUrl: './global-statistics.component.html',
styleUrls: ['./global-statistics.component.scss']
})
export class GlobalStatisticsComponent {
to... |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type BorrowDocument = Borrow & Document;
@Schema({
versionKey: false,
timestamps: { currentTime: () => Math.floor(Date.now() / 1000) },
})
export class Borrow {
@Prop()
bookName: string;
@Prop()
bo... |
import * as React from 'react'
import { SVGProps } from 'react'
const SvgCakephpOriginal = (props: SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" {...props}>
<path
d="M2 73.69V93c0 10.69 27.75 19.35 62 19.35V93C29.75 93 2 84.36 2 73.69zm62-19.35 48.5 12c8.44-3.3... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { LOCALE_ID } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import { A... |
export { jsdom as default } from './pollyContext' |
import EvaluationContext from '../evaluationcontext';
import TSExpression, { BaseTSExpression } from '../tsexpression';
import { TSExpressionResult, SingleTSExpressionResult } from '../tsexpressionresult';
import TermCalc from './termcalc';
/**
* Basic class for all Math Terms not directly instantiated but extended.
... |
// Type definitions for single-spa-react 2.8
// Project: https://github.com/CanopyTax/single-spa-react, https://github.com/joeldenning/single-spa-react
// Definitions by: Garrett Smith <https://github.com/Garrett-Smith-iq>
// Chris Dopuch <https://github.com/chrisdopuch>
// Definitions: https://github.c... |
declare module '*.vue' |
export interface Params extends RequestInit {
preFetchCallback?: Function;
finishFetchCallback?: Function;
errorFetchCacllback?: Function;
}
export interface JsonError {
id?: number;
links?: object;
status: number;
code: number;
title: string;
detail: string;
source?: object;
meta?: object;
}
ex... |
import Path from 'path'
import Fs from 'fs'
const AppDirectory = Fs.realpathSync(process.cwd())
export function resolvePath(relativePath: string) {
return Path.resolve(AppDirectory, relativePath)
}
export function sanitizePublicUrl(url: string) {
return url.endsWith('/') ? url.substring(0, url.length - 1) : url
... |
/*
* 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 React, { Fragment, PureComponent } from 'react';
import { FormattedMes... |
import shallowEqual from '@tinkoff/utils/is/shallowEqual';
import { useRef, useMemo, useCallback, useContext } from 'react';
import { useShallowEqual } from '@tinkoff/react-hooks';
import invariant from 'invariant';
import toArray from '@tinkoff/utils/array/toArray';
import { useSyncExternalStoreWithSelector } from 'us... |
import { ResolvedFn } from '../types/index'
import { RejectedFn } from '../index'
export interface Interceptor<T> {
resolved: ResolvedFn<T>
rejected?: RejectedFn
}
// 拦截器类
export default class InterceptorManager<T> {
private interceptors: Array<Interceptor<T> | null> // 存储拦截器方法
constructor() {
this.inter... |
// Copyright 2019 Daniel Erat and Niniane Wang. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ClimbState describes whether and how a climber has climbed a route.
export enum ClimbState {
NOT_CLIMBED = 0,
LEAD,
TOP_ROPE,
}
// Climb... |
module BABYLON {
export class RenderingGroup {
private _scene: Scene;
private _opaqueSubMeshes = new SmartArray<SubMesh>(256);
private _transparentSubMeshes = new SmartArray<SubMesh>(256);
private _alphaTestSubMeshes = new SmartArray<SubMesh>(256);
private _depthOnlySubMeshe... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { EquipoComponent } from './equipo.component';
describe('EquipoComponent', () => {
let component: EquipoComponent;
let fixture: ComponentFixture<EquipoComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
... |
import React, { ReactNode } from 'react';
import { Trans } from '@lingui/macro';
import { Alert } from '@material-ui/lab';
// import { uniq } from 'lodash';
import styled from 'styled-components';
import { useWatch, useFormContext } from 'react-hook-form';
import {
Button,
Flex,
Loading,
CardStep,
RadioGroup,... |
const { ccclass, property } = cc._decorator;
@ccclass
export default class Tile extends cc.Component {
@property({ type: [cc.SpriteFrame], visible: true })
private textures = [];
private textureCount : number;
get tileCount() {
return this.textures.length;
}
async onLoad(): Promise<void> {
await... |
<?xml version="1.0" encoding="UTF-8"?>
<tileset name="woodland_graveyard_ground" tilewidth="32" tileheight="32">
<image source="../graphics/tiles/woodland_graveyard_ground.png" width="512" height="128"/>
</tileset> |
import { InputType, Field } from '@nestjs/graphql';
@InputType()
export class CreatePostInput {
@Field()
userId: string;
@Field({ nullable: true })
title?: string;
} |
import { Component, Input, ViewChild } from "@angular/core";
import { Validators, FormBuilder } from "@angular/forms";
import { FileType, FileRepository, MessageRepository } from "@amityco/js-sdk";
@Component({
selector: "app-message-composer",
templateUrl: "./message-composer.component.html",
styleUrls: ["./mes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.