text
stringlengths
10
953k
/* eslint-disable react/display-name */ import {memo} from "react"; import {default as Select, components} from "react-select"; import {Districts, QuestionDefinition, QuestionValue} from "../lib/shared"; const SelectInput = (props: any) => <components.Input {...props} inputClassName="outline-none border-none shadow-no...
/** * Copyright 2020 Vercel 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 * * Unless required by applicable law or agreed t...
import { ObjectSchema } from "realm"; export type BasicPageEntity = { id: number, type: string, langcode: string, title: string, created_at: Date, updated_at: Date, body: string, }; /** * Realm schema for basicPageEntity. */ export const BasicPagesEntitySchema: ObjectSchema = { name:...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import React, { Component } from 'react'; import { View, ViewProps, Text, TextProps, StyleSheet } from 'react-native'; interface MaybeTextOrViewProps { children?: React.ReactNode; } function MaybeTextOrView({ children, ...otherProps }: MaybeTextOrViewProps & TextProps & ViewProps) { if (typeof children === 'strin...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as ora from 'ora'; import { colors } from './color'; export class Spinner { private readonly spinner: or...
<TS language="en_US" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Right-click to edit address or label</translation> </message> <message> <source>Create a new address</source> <translati...
import { Route53Resolver } from "../Route53Resolver.ts"; import { Route53ResolverClient } from "../Route53ResolverClient.ts"; import { ListResolverRulesCommand, ListResolverRulesCommandInput, ListResolverRulesCommandOutput, } from "../commands/ListResolverRulesCommand.ts"; import { Route53ResolverPaginationConfig...
import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {quantize} from '@taiga-ui/cdk'; import {changeDetection} from '../../../../../change-detection-strategy'; import {encapsulation} from '../../../../../view-encapsulation'; @Component({ selector: 'tui-math-example...
import { FunctionComponent } from 'react'; import { Panel, PanelGroup } from 'react-bootstrap'; import { translate } from '@waldur/i18n'; import { Report } from '@waldur/marketplace/resources/types'; interface ShowReportComponentProps { report: Report; } export const ShowReportComponent: FunctionComponent<ShowRepo...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { KudosEditComponent } from './kudos-edit.component'; describe('KudosEditComponent', () => { let component: KudosEditComponent; let fixture: ComponentFixture<KudosEditComponent>; beforeEach(async(() => { TestBed.configureTesti...
// Examples of working with resource, previously from the angular.d.ts. readme // Working with $resource // We have the option to define arguments for a custom resource interface IArticleParameters { id: number; } interface IArticleResource extends ng.resource.IResource<IArticleResource> { title: string; ...
import { ControlDirective } from './control.directive'; import { Directive } from '@angular/core'; import { Map } from 'azure-maps-control'; import * as atlas from 'azure-maps-control'; @Directive({ selector: '[map-compass-control], map-compass-control' }) export class CompassControlDirective extends ControlDirect...
import { IsBoolean, IsInt, IsNotEmpty, IsOptional, IsString, } from 'class-validator'; export class CreateRoomDto { @IsString() @IsNotEmpty() title: string; @IsString() @IsNotEmpty() category_id: string; @IsInt() @IsNotEmpty() max_guest: number; @IsInt() @IsNotEmpty() price: number...
import mongodb from 'mongodb'; import dotenv from 'dotenv'; import type { AllowedCollectionNames } from '../types/db'; import { CustomContext } from '../types/context'; dotenv.config(); const { MongoClient } = mongodb; async function connectDb (): Promise<mongodb.Db> { const url = process.env.MONGO_URI || ''; co...
import { RequestOptionsArgs } from '@angular/http'; export interface IHttpXService { get(url: string, options?: RequestOptionsArgs): Promise<any>; post(url: string, body: any, options?: RequestOptionsArgs): Promise<any>; put(url: string, body: any, options?: RequestOptionsArgs): Promise<any>; delete(url...
import React from 'react'; import styled from 'react-emotion'; import {get} from 'lodash'; import color from 'color'; import 'intersection-observer'; // this is a polyfill import {t} from 'app/locale'; import {defined} from 'app/utils'; import space from 'app/styles/space'; import Count from 'app/components/count'; im...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About DeluxeCoin</source> <translation type="unfinished"/> </message> <message> <location ...
import { SharedGraphQlOperations } from '@sourcegraph/shared/src/graphql-operations' import { testUserID, sharedGraphQlResults } from '@sourcegraph/shared/src/testing/integration/graphQlResults' import { WebGraphQlOperations } from '../graphql-operations' import { builtinAuthProvider, siteGQLID, siteID } from './jsco...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ export declare class NbBaseCalendarModule { }
export const config = { taskAssignmentServiceUrl: "http://localhost:8001/api/v1/" };
import dedent from 'ts-dedent'; import {rules, Rule, rulesDict, Example} from './rules'; import {escapeRegExp, getDisabledRules, yamlRegex} from './utils'; describe('Examples pass', () => { for (const rule of rules) { describe(rule.name, () => { test.each(rule.examples)('$description', (example: Example) =...
/** * @license * Copyright Alibaba.com All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRe...
import { DomainException } from "./domain.exception"; export class BookExistsException extends DomainException { constructor() { super("Book already exists!"); } }
import { BaseEntity, Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm' @Entity('users_details') export class UserDetails extends BaseEntity { @PrimaryGeneratedColumn('increment') id: number; @Column({ type: 'varchar', length: 50, nullable: true }) firstname: ...
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * DeploySystemInstanceInput shape */ export interface DeploySystemInstanceInput { /** * <p>The ID of the system instance. This value is returned by the <code>CreateSystemInstance</code> ac...
import { Box, Typography } from '@material-ui/core'; import React from 'react'; import styled from 'styled-components'; interface IPageSectionProps { title: string; description?: string; children: React.ReactNode; } const PageSection: React.FC<IPageSectionProps> = ({ title, description, children }) => { const...
import { Construct } from 'constructs'; import { INextable } from '../types'; import { StateType } from './private/state-type'; import { State } from './state'; /** * Properties for defining a Fail state */ export interface FailProps { /** * An optional description for this state * * @default No comment ...
// Type definitions for chai-roughly 1.0 // Project: https://github.com/Turbo87/chai-roughly#readme // Definitions by: Tomasz Nguyen <https://github.com/swist> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 /// <reference types="chai" /> declare global { namespace Ch...
import { Component, Host, h, Prop, Watch, Element } from '@stencil/core'; import { servicesPromise$ } from '@upradata/browser-util'; import { MtModulesServices } from '../../services'; @Component({ tag: 'mt-test', styleUrl: 'mt-test.scss', shadow: false, scoped: false }) export class MtTest { @Prop...
import {CobraAppPartLoadingState} from "./cobra-app-part-loading-state"; import {InjectionToken} from "@angular/core"; /** * Interface, das beschreibt, wie ein Indicator auszusehen hat, der der CobraApp mitteilt, dass * Teile der Anwendung noch nicht geladen wurden */ export interface CobraAppLoadingIndicator { /...
import mongoose from 'mongoose' import joi, { ExtensionFactory, Root, StringSchema, ObjectSchema } from '@hapi/joi' import { BadRequest } from '../errors' const objectId: ExtensionFactory = joi => ({ type: 'objectId', base: joi.string(), messages: { objectId: '"{#label}" is not a valid ID' }, validate (v...
const stops = require('../db-data/generated/stops.json') as Stop[]; const railwayRoutes = require('../db-data/generated/strecken_pz.json') as RailwayRoute[]; const betriebsstellenWithRailwayRoutePositions = require('../db-data/generated/betriebsstellen_streckennummer_pz.json') as BetriebsstelleRailwayRoutePosition[]; c...
import { mocked } from "ts-jest/utils" import { BlockSet, BlockTestRes, DuplicateAddError, InvalidRegExpAddError, InvalidYTCategoryIdAddError, ListType, } from "@src/background/blockSet" import { BlockSetData } from "@src/background/blockSetParseTypes" import { dateToTodayMS } from "@src/shared/utils" import ms f...
import * as _ from 'lodash'; import { apiVersionForModel, k8sCreate, k8sGet, k8sPatchByName, K8sResourceKind, } from '@console/internal/module/k8s'; import { CustomResourceDefinitionModel, NodeModel, SecretModel } from '@console/internal/models'; import { K8sModel } from '@console/dynamic-plugin-sdk'; import ...
export { isArray, isArrayLike, uniq, union, sortedIndex, sortedIndexBy, sortBy, groupBy, difference, } from 'lodash-es'
import { ResolveFunction, RejectFunction, Interceptor } from '../types/index'; export default class InterceptorManager<T> { private interceptors : Array<Interceptor<T> | null> constructor() { this.interceptors = [] } use(resolved : ResolveFunction<T>, rejected ?: RejectFunction<T>) : number {...
import * as React from "react"; import { graphql } from "gatsby"; import Layout from "../components/layouts/Layout"; import SectionCentered from "../components/sections/SectionCentered"; const NotFound: React.SFC<{}> = (() => { return ( <Layout> <SectionCentered heading={"Not Found"} subhea...
import { Contracts } from "ts-extractor"; import { ApiTypeBase } from "../api-type-base"; import { GeneratorHelpers } from "../../generator-helpers"; import { ApiTypes } from "../api-type-list"; import { ReferenceRenderHandler } from "../../contracts/serialized-api-item"; /** * Example: `(string | number)` */ export...
import { dimensions, fonts, colors, breakpoints } from './variables' import { getEmSize } from './mixins' export default ` html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } html { font-size: ${dimensions.fontSize.regular}px !important; } body { width:...
// import { Component } from '@angular/core'; // @Component({ // selector: 'pm-root', // templateUrl: './app.component.html', // styleUrls: ['./app.component.css'] // }) // export class AppComponent { // title = 'Angular: Getting Started'; // } import { Component } from '@angular/core'; @Component({ selector:...
import { Injectable } from "@nestjs/common"; import { MessagesRepository } from "./messages.repository"; @Injectable() export class MessagesService{ constructor(public messagesRepo: MessagesRepository){ // //Service is creating its own dependencies // //DONT DO THIS ON REAL APPS // th...
import { Request, Response } from 'express'; import QRCode from 'qrcode'; export const generateCode = async (req: Request, res: Response) => { const opts = { errorCorrectionLevel: 'H', type: 'image/jpeg', quality: 0.3, margin: 1, color: { dark: '#010599FF', light: '#FFBF60FF', }, ...
import { Table, QueryRunner, MigrationInterface, TableCheck } from 'typeorm' import { UserStatus } from '../../models' import { PUBLIC_TABLES, COLUMN_TYPES, FOREIGN_KEYS, createAndUpdateDates, createForeignKeyOption, INDICES, EnumToArray } from '../utils' import { addDefaultData } from '../seeds'...
import BinarySearch from "../utils/BinarySearch"; import { Dimension } from "./dependencies/LayoutProvider"; import { Layout } from "./layoutmanager/LayoutManager"; /*** * Given an offset this utility can compute visible items. Also tracks previously visible items to compute items which get hidden or visible * Virtua...
/* * @Description: 加载插件 * @Author: chenwei * @Date: 2022-02-08 10:50:06 * @Last Modified by: chenwei * @Last Modified time: 2022-02-08 10:51:06 */ import { createApp } from 'vue' /** * @description 加载所有 Plugins * @param {ReturnType<typeofcreateApp>} app 整个应用的实例 */ export function loadAllPlugins(app: ReturnTy...
import type { Context, ContextFunction, GraphQLRequestContext, } from 'apollo-server-core' import { ApolloServer } from 'apollo-server-lambda' import type { Config, CreateHandlerOptions } from 'apollo-server-lambda' import type { ApolloServerPlugin } from 'apollo-server-plugin-base' import type { APIGatewayProxyE...
import { Subject } from 'rxjs/Subject'; import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import { log, getCategory } from './logging'; import { environment } from '../environments/environment'; import { StringMap } from '@synde...
import { BarLoader } from './barloader.component'; import '@spectrum/sp-icon'; export default function template(this: BarLoader): import("lit-element").TemplateResult;
import { Contract } from '@ethersproject/contracts' import { getAddress } from '@ethersproject/address' import { JsonRpcSigner, Web3Provider } from '@ethersproject/providers' import { InjectedConnector } from '@web3-react/injected-connector' import { WalletConnectConnector } from '@web3-react/walletconnect-connector' i...
// IMPLICIT TYPING // If you assign a value to a variable, typescript can infer it's type automatically, e.g: var a = 10 // ts infers 'a' is type number // Reassignment below is incorrect, ts expect 'a' to be a number // a = 'test'
import { RichEmbed } from "discord.js"; import { SlotsResult } from "./casino"; import { ConfigService } from "../../infrastructure/services"; export class CasinoMessages { private _prefix: string; private _symbol: string; private _colourError = 0xf44542; private _colourResponse = 0x0bd6e5; cons...
/** * A module that exports the base SpaceBunny client * @module SpaceBunny */ // Import some helpers modules import axios, { AxiosRequestConfig } from 'axios'; import { EventEmitter } from 'events'; import fs from 'fs'; import { camelizeKeys } from 'humps'; import urljoin from 'url-join'; import { isNullOrUndefine...
export class StreetLimits { private streetPositionX: number; private streetWidth: number; constructor(streetPositionX: number, streetWidth: number) { this.streetPositionX = streetPositionX; this.streetWidth = streetWidth; } minY(): number { return 20; } max...
import React, { FC } from 'react' import DrawerMenu from 'rc-drawer' import SiderMenu from './SiderMenu' import 'rc-drawer/assets/index.css' interface SiderMenuWrapperProps { logo: string; collapsed: boolean; menuData: any; isMobile: boolean; onCollapse: (collapsed: boolean) => void; Authorized?: any; lo...
import path from 'path'; export default { entryPoints: [path.resolve(__dirname, 'src/main.tsx')] };
import * as cssNodeExtract from 'css-node-extract'; import * as fs from 'fs'; import * as postcssSyntax from 'postcss-scss'; import { buildIncludePaths, cleanImportUrl, parseNodeFilters, resolveUrl, } from 'node-sass-magic-importer/dist/toolbox'; import { defaultOptions } from './default-options'; import { IF...
import { Component, Input } from '@angular/core'; import { Hero } from './hero'; @Component({ selector: 'my-hero-detail', template: ` <div *ngIf="heroInput"> <h2>{{heroInput.name}} details!</h2> <div><label>id: </label>{{heroInput.id}}</div> <div> <label>name: </label> <input ...
export interface IFontDescriptor { readonly path: string; readonly style: string; readonly width: number; readonly family: string; readonly weight: number; readonly italic: boolean; readonly monospace: boolean; readonly postscriptName: string; } export interface IQueryFontDescriptor { ...
import {Component, ElementRef, EventEmitter, OnInit, ViewChild} from '@angular/core'; import {ProfileService} from './profile.service'; import {UserProfile} from './userProfile.model'; import {Router} from '@angular/router'; import {ToastsManager} from 'ng2-toastr'; import {BASE_URL, USER_API_URL} from '../../config/co...
import { BlockAnnotation } from "@atjson/document"; export class Title extends BlockAnnotation { static vendorPrefix = "dc"; static type = "title"; }
import PastelPhotopeaModal from './PastelPhotopeaModal' export type { IPastelPhotopeaModalState } from './PastelPhotopeaModalSlice' export { closePastelPhotopeaModal, openPastelPhotopeaModal, pastelPhotopeaModalReducer, } from './PastelPhotopeaModalSlice' export default PastelPhotopeaModal
import {HttpClient} from '@angular/common/http'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/Rx'; import { Observable } from 'rxjs/Observable'; import { Injectable } from '@angular/core'; @Injectable() export class EventPhonesRequestService { constructor(private http: Http) { } public g...
/* eslint-disable import/no-cycle */ import { combineReducers } from "redux"; import currentUserReducer from "./slices/currentUser/currentUser"; import tabReducer from "./slices/tab"; import themeReducer from "./slices/theme"; import workDirReducer from "./slices/workDir"; export default combineReducers({ tab: tabRe...
import { Table, Column, TypeIdentifier, PostgresConnectionDetails, } from '../types/common' import * as _ from 'lodash' import { Client } from 'pg' export class PostgresConnector { client connectionPromise constructor(connectionDetails: PostgresConnectionDetails) { this.client = new Client(connectio...
import * as cf from 'contentful' import { Context, ContextWithLocale } from '../cms' import { Locale } from '../nlp' import { ButtonDelivery } from './contents/button' import { DeliveryApi } from './delivery-api' export type I18nValue<T> = { [locale: string]: T } export class VisitedField<V> { constructor( rea...
import { Process, Processor } from '@nestjs/bull'; import { Job } from 'bull'; @Processor('emails') export class SendMailTweetsJob { @Process() async handle(job: Job) { console.log('Kafka para enviar a mensagem para o Wesley'); } }
import { Zero } from '../constants'; import * as errors from '../errors'; import { BigNumber, bigNumberify } from './bignumber'; import { stripZeros, joinSignature, isArrayish } from './bytes'; import { checkProperties, resolveProperties, shallowCopy } from './properties'; import { encode as base64Encode, decode as b...
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {Router} from '@angular/router'; import {AuthService} from '../../../services/auth/auth.service'; import {UserService} from '../../../services/user/user.service'; import {UserProfileShortened} from '../../../model/UserProfileShortened'...
import { makeMap } from './makeMap' export { makeMap } export * from './patchFlags' export * from './shapeFlags' export * from './slotFlags' export * from './globalsWhitelist' export * from './codeframe' export * from './normalizeProp' export * from './domTagConfig' export * from './domAttrConfig' export * from './esc...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About YoshiCoin</source> <translation type="unfinished"/> </message> <message> <location line...
import { Module } from '@nestjs/common'; import { TaskController } from './sockets/tasks/task.controller'; import { TypeOrmModule } from '@nestjs/typeorm'; import {TaskModule} from './sockets/tasks/task.module' import {Task} from './database/entity/task'; import { GraphQLModule } from '@nestjs/graphql'; import { UsersM...
import { cloneDeep, omit } from 'lodash'; import { genericFieldsValidator as validateGenericFields } from './validation'; const DEFAULT_TEST_RESOURCE = { name: 'someName', description: 'some description', type: 'flow', data: { someData: 'foo', otherData: 'bar', }, }; const isRegisteredType = type =>...
import { AppPage } from './app.po'; describe('todos-v5 App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to app!'); }); });
import Picture from "./Picture"; export default Picture;
import * as markuplint from 'markuplint'; import rule from './'; describe("Use the role that doesn't exist in the spec", () => { test('[role=hoge]', async () => { const r = await markuplint.verify( '<div role="hoge"></div>', { rules: { 'wai-aria': true, }, }, [rule], 'en', ); expect...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About UticaCoin</source> <translation>Par UticaCoin</translation> <...
import { ContentNode, TopLevelNode, Typed } from './index'; import { TableRow } from './table-row'; export declare class Table extends TopLevelNode { content: ContentNode<TableRow>; row(): TableRow; add(node: TableRow): this; toJSON(): Typed; }
declare interface URLS { resetPassword: (token: string) => string; verifyEmail: (token: string) => string; enrollAccount: (token: string) => string; } declare interface EmailFields { from?: () => string; subject?: (user: Meteor.User) => string; text?: (user: Meteor.User, url: string) => string;...
export const GLOBAL_ENTITY_SELECTOR_DATA_ATTR = "data-global-entity-control" export const GLOBAL_ENTITY_SELECTOR_ELEMENT = `*[${GLOBAL_ENTITY_SELECTOR_DATA_ATTR}]` export const GLOBAL_ENTITY_SELECTOR_DEFAULT_COUNTRY = "data-default-country" // Authors can set this attr in their blog posts
import { Matcher, MatcherOptions as MatcherOptions_, SelectorMatcherOptions as SelectorMatcherOptions_, waitForOptions, } from '@testing-library/dom' import {ElementHandle as PlaywrightElementHandle} from 'playwright' export type ElementHandle = PlaywrightElementHandle<SVGElement | HTMLElement> type Element =...
export * from "./__generated__/types"; export * from "./custom";
/// <reference types="node" /> /// <reference types="json-patch" /> import { DefaultElements, GetTagParams, MakeRequest, MetaSysProps, SysLink } from '../common-types'; export declare type TagVisibility = 'private' | 'public'; export declare type TagSysProps = Pick<MetaSysProps, 'id' | 'version' | 'createdAt' | 'create...
import {ref, onMounted} from 'vue'; import {Tooltip} from '@antv/g6'; import dayjs from 'dayjs'; export const useTooltip = (id:string) => { const tooltipPlugin= ref(); onMounted(() => { tooltipPlugin.value = new Tooltip({ container: document.getElementById(id) as HTMLDivElement, ...
type Map<T> = { [key: string]: T }; export type MyAlias = { a: Map<MyAlias>; };
/** * @name show.ts * @description The print value module * @returns NOTHING * * @author Gurkirat Singh <tbhaxor@gmail.com> */ // importing modules import { VariableType } from "./Interfaces"; import helper from "./help"; import chalk from "chalk"; // default export the show function export default (args: Arra...
import { keyExtractSuri, mnemonicGenerate, mnemonicValidate, cryptoWaitReady, signatureVerify, encodeAddress } from "@polkadot/util-crypto"; import { hexToU8a, u8aToHex, isHex, stringToU8a } from "@polkadot/util"; import BN from "bn.js"; import { parseQrCode, getSigner, makeTx, getSubmittable } from "../utils/QrSigner"...
import { IDevice } from "../../models/TrustedDeviceModel"; import crypto from "crypto"; const deviceToString = ({ ipAddress, userAgent }: IDevice) => `${ipAddress} ${userAgent}`; export const hashDevice = (device: IDevice) => { const strDevice = deviceToString(device); const hash = crypto.createHash("sha512").u...
import { Card } from "@material-ui/core"; import { Button } from "@saleor/components/Button"; import Container from "@saleor/components/Container"; import FilterBar from "@saleor/components/FilterBar"; import PageHeader from "@saleor/components/PageHeader"; import { OrderDraftListQuery, RefreshLimitsQuery } from "@sale...
import styled from 'styled-components'; interface Props { isWhithoutMarginTop?: boolean; differentColor?: boolean; } const size = { desktop: '700px', } const device = { desktop: `(min-width: ${size.desktop})` } export const SelectBlock = styled.div<Props>` position: relative; margin-top: ${(props) => pr...
/* GENERATED FILE */ import React, { useContext, useMemo } from 'react'; import { IconProps, IconContext } from '../lib'; import bold from '../bold/BookmarksSimple'; import duotone from '../duotone/BookmarksSimple'; import fill from '../fill/BookmarksSimple'; import light from '../light/BookmarksSimple'; import regula...
export const CONTENTS_WIDTH = 1100;
export class AccessorMeta { name: string; profilingInfo = new ProfilingInfo(); madeRawDBAccess = false; callPlanMetas: CallPlanMeta[]; callPlansStored: number; } export class CallPlanMeta { index: number; argsStr: string; profilingInfo = new ProfilingInfo(); madeRawDBAccess = false; } export class ProfilingInf...
import { IdentityProvider } from "../idp"; import { doCommonAdapterTest } from "./adapter.spec.common"; const idp = new IdentityProvider({ logger: console, }, { adapter: { type: "Memory", options: {}, }, }); doCommonAdapterTest(idp);
import { ValidationPipe } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import {NestExpressApplication} from '@nestjs/platform-express'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create<NestExpressApplication>(AppModule); app.useGlobal...
import { useInjectPanel } from '../PanelContext'; import type { GenerateConfig } from '../generate'; import { getLastDay } from '../utils/timeUtil'; import type { PanelMode } from '../interface'; import { getCellDateDisabled } from '../utils/dateUtil'; import type { VueNode } from '../../_util/type'; import classNames ...
import {DecoratorParameters, decoratorTypeOf, DecoratorTypes, StoreMerge, UnsupportedDecoratorType} from "@tsed/core"; import {EndpointFn} from "./endpointFn"; /** * Mounts the specified middleware function or functions at the specified path: the middleware function is executed when * the base of the requested path ...
import { Router } from '@angular/router'; import { Component } from '@angular/core'; import { ReuseTabService } from '@delon/abc'; @Component({ selector: 'app-demo-ellipsis', template: ` <ellipsis lines="3" style="width: 200px"> <p>There were injuries alleged in three <a href="#cover">cases in 2015...
/* * 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 { schema, TypeOf } from '@kbn/config-schema'; import { PluginInitialize...
import chalk from 'chalk' import { fixedStringLength } from './' const config = { INFO: { color: 'bgCyan' }, WARN: { color: 'bgYellow' }, SUCCESS: { color: 'bgGreen' }, ERROR: { color: 'bgRed' }, } export type LogTypes = keyof typeof config export class Console { info(message: string) { this.log('INFO'...