text
stringlengths
10
953k
<TS language="ru" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Кликните правой кнопкой для редактирования адреса или метки</translation> </message> <message> <source>Create a new address</source...
import BaseComponent from "./base-component"; declare class Offcanvas extends BaseComponent { toggle(relatedTarget: HTMLElement): void; show(relatedTarget: HTMLElement): void; hide(): void; /** * Static method which allows you to get the offcanvas instance associated to a * DOM element, yo...
/* * 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 { EuiTabbedContent, EuiTabbedContentTab } from '@elastic/eui'; import ...
import "./defined" import defined from "./defined" import "./and" import and from "./and" import "./or" import or from "./or" import "./not" import not from "./not" import "./is" import is from "./is" import "./equals" import equals from "./equals" import { ITrulyMaker } from '../truly' function extension(Truly: ITr...
import { ts } from "../../typescript"; import { Node } from "../common/Node"; import { Type } from "../type"; export class Expression<T extends ts.Expression = ts.Expression> extends Node<T> { /** * Gets the contextual type of the expression. */ getContextualType(): Type | undefined { return ...
import { NextFunction, Request, Response } from 'express' import ErrorException from './../../exceptions/error.exception' class ErrorMiddleware { checkError (error: Error | ErrorException, re: Request, res: Response, next: NextFunction): void { const message = error.message const status = (error as ErrorExce...
declare global { namespace globalThis { var sleepAsync: (ms: number) => Promise<void>; } interface String { formatUnicorn(...args: any[]): string; toElement(): HTMLElement; loc(): string; } interface Node { createElement<TElement extends HTMLElement = HT...
/* tslint:disable */ /* eslint-disable */ // @ts-nocheck import { ReaderFragment } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type DashboardCollectionsFragment = { readonly viewer: { readonly collections: { readonly " $fragmentRefs": FragmentRefs<"DashboardColle...
/* Copyright 2020 The Matrix.org Foundation C.I.C. 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 './styles/main.sass'; import React from 'react'; import {render} from 'react-dom'; import App from './ui/App'; import {createServices, ServiceContext} from './services/Services'; import getConfig from '../config/getConfig'; import {CustomBrowserRouter} from './ui/CustomBrowserRouter'; const config = getConfig(...
import { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); })); it('should create the app', as...
/** * @license * Copyright 2018 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 a...
import { FieldSchema, FieldProcessorAdt } from '@ephox/boulder'; import { Composing } from '../api/behaviour/Composing'; import { Receiving } from '../api/behaviour/Receiving'; import { Representing } from '../api/behaviour/Representing'; import { Sandboxing } from '../api/behaviour/Sandboxing'; import { SketchBehavio...
import { Controller, Get, Post, Body, UseGuards, Put, Param, Delete, UsePipes } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; // import { ValidationPipe } from '../common/pipes/validation.pipe'; import { RolesGuard } from '../common/auth/guards/roles.guard'; im...
import { defineConfig } from 'tsup' export default defineConfig({ splitting: false, clean: true, dts: true, format: ['cjs'], entryPoints: ['src/index.ts', 'src/cli.ts'], minify: true })
/** * * @param {*} ctx */ export function mixBindWithApply(ctx) { // 保存this,也就是调用bind的那个函数 const s = this; let args = [].slice.call(arguments, 1); return function() { // 将第一次的参数与此次传入的参数合并,调用s函数 return s.apply(ctx, args.concat([].slice.call(arguments))); }; } // 绑定到Function对象原型上 // Function.prototy...
import { Component, OnInit } from "@angular/core"; import { NgForm } from "@angular/forms"; import { ProductService } from "src/app/shared/services/product.service"; import { Product } from "src/app/shared/models/product"; declare var $: any; declare var require: any; declare var toastr: any; const shortId = require("...
/** * @packageDocumentation * @module ObnizCore.Errors */ // tslint:disable:max-classes-per-file import { deprecate } from "util"; export class ObnizError extends Error { constructor(public code: number, e?: string) { super(e); this.name = new.target.name; Object.setPrototypeOf(this, new.target.prot...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'bun-bun-prototype'; }
import { ITheme, concatStyleSets } from '@uifabric/styling'; import { memoizeFunction } from '@uifabric/utilities'; import { IButtonStyles } from '../Button'; import { getStyles as getBaseButtonStyles } from '../Button/BaseButton.styles'; export const getStyles = memoizeFunction( (theme: ITheme, className?: string, ...
import { DocNode } from '../nodes/DocNode'; import { StringChecks } from '../parser/StringChecks'; // tslint:disable-next-line:no-any export type DocNodeConstructor = new (...args: any[]) => DocNode; export interface IDocNodeDefinition { docNodeKind: string; constructor: DocNodeConstructor; } interface IRegister...
import axios from 'axios'; import { get } from 'idb-keyval'; import { API_URL } from 'env'; export const API_BASE = `${API_URL}/api`; const axiosInstance = axios.create({ baseURL: API_BASE }); axiosInstance.interceptors.request.use( async (config) => { const token = await get('token'); if (con...
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; // depending on the env mode, enable prod mode or add debugging modules if (process.env.ENV === 'build') { console.log('testing....'); enableProd...
/// <reference types="jest" /> import IoCTestsWebPartPropsDependencyResolver from "./IoCTestsWebPartPropsDependencyResolver"; import { IIocTestsWebPartProps } from "./IocTestsWebPart"; import MockDependencyResolver from "../../common/providers/DependencyResolver/MockDependencyResolver"; describe('DependencyResolver: ...
import * as React from 'react'; import { ResponseModel } from '../../services/models'; import styled from '../../styled-components'; import { ResponseView } from './Response'; const ResponsesHeader = styled.h3` font-size: 1.3em; padding: 0.2em 0; margin: 3em 0 1.1em; color: ${({ theme }) => theme.colors.text.p...
/** * Note: If you modify this enum, please modify the corresponding enum * in the frontend. * * app/webFrontend/src/app/shared/enums/BreakpointSize.ts */ export enum BreakpointSize { MOBILE = 0, // screen larger than 0 px TABLET = 768, // screen larger than 768px DESKTOP = 1024, // screen larger than 1024px...
import qmap from './qmap' export default { install(Vue: any) { Vue.prototype.$qmap = qmap } }
// Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { H256 } from '../interfaces/runtime'; import type { AnyNumber, Codec, Registry } from '../types'; import type { UIntBitLength } from './types'; import BN from 'bn.js'; import { assert, BN_BILLION, BN_HUN...
import { Typography } from "@material-ui/core"; import { useEthereumProvider } from "../contexts/EthereumProviderContext"; import ToggleConnectedButton from "./ToggleConnectedButton"; const EthereumSignerKey = () => { const { connect, disconnect, signerAddress, providerError } = useEthereumProvider(); return (...
import { Repository } from "typeorm"; import { Tag } from "../entities/Tag"; class TagsRepositories extends Repository<Tag> { } export { TagsRepositories };
/* tslint:disable */ /* eslint-disable */ import React, { FunctionComponent } from 'react'; import { ViewProps } from 'react-native'; import { Svg, GProps, Path } from 'react-native-svg'; import { getIconColor } from './helper'; interface Props extends GProps, ViewProps { size?: number; color?: string | string[];...
import { Component, OnInit } from '@angular/core'; import { FoodIngredientService, FoodIngredientWebModel, FoodService, FoodWebModel, IngredientCategory } from '../../shared/web.api.service'; import { MenuItem, MessageService, SelectItem } from 'primeng/api'; import { EnumEx } from '../../shared/enum.extensions'; impor...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { CreateComponent } from './create.component'; import { FormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { RouterModule } from '@angular/router'; @NgModule({ imports: [...
declare module 'alpinejs'
import { mergeMap } from './mergeMap'; import { ObservableInput, OperatorFunction } from '../types'; /* tslint:disable:max-line-length */ export function concatMap<T, R>(project: (value: T, index: number) => ObservableInput<R>): OperatorFunction<T, R>; /** @deprecated resultSelector no longer supported, use inner map...
/** * Copyright 2015 CANAL+ Group * * 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...
class AsyncWaterfallHook { // 异步钩子(串行)并行 需要等待所有并发的异步事件执行后再执行回调方法 // 同时发送多个请求 // 注册方法 分为tap注册 tapAsync tasks:any[] constructor(args:string[]) { this.tasks = [] } tapAsync(name:string, fn:Function) { this.tasks.push(fn) } callAsync(...args:any[]) { let finalCall...
import { MockHomeAssistant } from "../../../src/fake_data/provide_hass"; export const mockConfig = (hass: MockHomeAssistant) => { hass.mockAPI("config/config_entries/entry?domain=co2signal", () => [ { entry_id: "co2signal", domain: "co2signal", title: "CO2 Signal", source: "user", s...
import { AlGraphEntry } from "./AlGraphEntry"; export interface AlEdge extends AlGraphEntry { node1Id: string; node2Id: string; }
/* eslint-disable */ import { util, configure, Reader, Writer } from 'protobufjs/minimal' import * as Long from 'long' import { Any } from '../../../google/protobuf/any' export const protobufPackage = 'cosmos.evidence.v1beta1' /** * MsgSubmitEvidence represents a message that supports submitting arbitrary * Evidenc...
import {A11yModule} from '@angular/cdk/a11y'; import {PortalModule} from '@angular/cdk/portal'; import {ScrollDispatchModule} from '@angular/cdk/scrolling'; import {CdkStepperModule} from '@angular/cdk/stepper'; import {CdkTableModule} from '@angular/cdk/table'; import {CdkTreeModule} from '@angular/cdk/tree'; import {...
import { CalendarOriginal, CalendarDay, CalendarMonth, CalendarModalOptions, CalendarResult } from '../calendar.model'; export declare class CalendarService { constructor(); safeOpt(calendarOptions: any): CalendarModalOptions; createOriginalCalendar(time: number): CalendarOriginal; findDayConfig(day: an...
import create from "zustand"; import { cloneEdge, libCreateEdge, libDrawEdges } from "@lib/edges"; import { libCreateNode, validateNode, createOutputsObject, isRecursiveEdge, cloneNode, dfs, cloneNodeValue, cloneNodeData, } from "@lib/nodes"; import { createGradientNoiseFunctions } from "@gl/functions/gradientN...
import { IFieldDescription } from '../../rest/FieldDescription'; /** * The `IFieldOption` interface declares a type for options that should contain a field to be used in a query. * * The only constraint this type has over a basic string is that it should start with the `@` character. */ export interface IFieldOpti...
/** * @license * Copyright Google LLC 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 {CssSelector, ParseSourceFile, ParseSourceSpan, parseTemplate, R3TargetBinder, SchemaMetadata, SelectorMatcher...
import { ID } from '@vendure/common/lib/shared-types'; import { RequestContext } from '../../api/common/request-context'; import { Zone } from '../../entity'; import { VendureEvent } from '../vendure-event'; /** * @description * This event is fired whenever a {@link Zone} gets {@link Country} members assigned or remo...
import Form from '@uidu/form'; import SectionMessage from '@uidu/section-message'; import React, { useState } from 'react'; import { FormattedMessage } from 'react-intl'; import tw from 'twin.macro'; import FieldCardCvc from '../Fields/FieldCardCvc'; import FieldCardExpiry from '../Fields/FieldCardExpiry'; import Field...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { OauthService, ApiService, SessionService } from '../../services/index'; @Component({ moduleId: module.id, selector: 'app-sign-in', templateUrl: 'sign-in.component.html', styleUrls: ['sign-in.component.css'], ...
import React from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import Login from './pages/Login'; import Lista from './pages/Lista'; import Cadastro from './pages/Cadastro'; import { Ionicons } from '@expo/vector-icons'; import...
import React, { memo, useState, useEffect } from "react"; import { useRecoilValue } from 'recoil'; // import Rating from '../Rating'; import { quotesListState, QuoteList, Quote } from '../../store/atoms'; const url = 'https://programming-quotes-api.herokuapp.com/Quotes/' const Quote = (props) => { const { match:...
import express from 'express'; import PointsController from './controllers/PointsController'; import ItemsController from './controllers/ItemsController'; const routes = express.Router(); routes.use(express.json()); const pointsController = new PointsController(); const itemsController = new ItemsController(); rou...
/** * Checks if the DOM is available to access and use */ export declare function canUseDOM(): boolean;
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {Alert} from 'react-native'; import {intlShape, injectIntl} from 'react-intl'; import Separator from '@screens/channel_info/separator'; import ChannelInfoRow from '../chan...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * D...
import { Component, Input, Output, EventEmitter } from '@angular/core'; import { JIssue } from '@trungk18/interface/issue'; import { ProjectQuery } from '@trungk18/project/state/project/project.query'; import { NzModalService } from 'ng-zorro-antd/modal'; import { IssueDeleteModalComponent } from '../issue-delete-modal...
import { Injectable } from '@angular/core'; import { ProductAdapter } from '../connectors/product/product.adapter'; import { Observable } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { OccEndpointsService } from '../../occ/services/occ-endpoints.service'; import { ConverterService } from '../....
import { Component } from '@stencil/core'; import '@stencil/router'; @Component({ tag: 'app-container', styleUrl: 'app.scss' }) export class App { render() { return ( <div> <h1 class="app__header">Muffin Madness</h1> <h2 class="app__header">Too much muffi...
import { useURLPoll } from '@kubevirt-internal'; import { getVMIApiPath, getVMISubresourcePath } from '../selectors/vmi/selectors'; import { VMIKind } from '../types'; import { V1VirtualMachineInstanceGuestAgentInfo } from '../types/vmi-guest-data-info/vmi-guest-agent-info'; import { isGuestAgentInstalled } from '../u...
/* **************************************************************************************************************** * * * @License Starts ...
import cx from 'classnames'; import contrast from 'contrast'; import React from 'react'; interface IProps { label: { name: string; color: string; }; } export const LabelBadge = ({ label }: IProps) => { const background = `#${label.color}`; const isDark = contrast(background) === 'dark'; return ( ...
import invariant from 'invariant'; import isNumber from 'lodash/isNumber'; import noop from 'lodash/noop'; import { Watcher, RegisteredWatcher, RegisteredWatcherState, Managers, PublicAPI } from '../../../types'; import { generateId } from '../../../utils/generateId'; import { registeredWatcherChannel } fro...
// *** 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 { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; ...
import i18next from 'i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; import { initReactI18next } from 'react-i18next'; const resources = { en: { translation: { search: 'Search', left: { configuration: 'Configuration', history: 'History', servers: 'Servers', access: '...
import { Component, HostBinding } from '@angular/core'; @Component({ selector: 'sidenav-divider', // tslint:disable-line template: '' }) export class SidenavDividerComponent { @HostBinding('class.sidenav-divider') hostClassMain = true; @HostBinding('class.d-block') hostClassBlock = true; }
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { CaldavIssueHeaderComponent } from './caldav-issue-header/caldav-issue-header.component'; import { CaldavIssueContentComponent } from './caldav-issue-content/caldav-issue-content.component'; // XXX import { GitlabIssueEffe...
import { ITransactionItem } from '../ITransactionItem'; import { IDesignItem } from '../../../item/IDesignItem'; export class CssStyleChangeAction implements ITransactionItem { constructor(designItem: IDesignItem, name: keyof CSSStyleDeclaration, newValue: any, oldValue: any) { this.title = "Change CSS Style"; ...
import { spawn, spawnSync, execSync } from "child_process"; import { resolve, dirname, basename, sep, extname } from "path"; import { tmpdir } from "os"; import { existsSync, unlinkSync, statSync } from "fs"; import { glob } from "glob"; import { executeCommand, tailFileUntil, wait, getRegexResultsAsArr...
import { useState } from "react"; import { html } from "htm/react"; import { EvalResult } from "../repl"; import { Store } from "redux"; import { ApplicationState } from "../store"; import { getEntries } from "../store/defaultReducer"; import { getTranscript } from "./selectors"; interface Props { store: Store<Appli...
import { Vue, Component, Prop } from 'vue-property-decorator' import { classNamesFunction, toMatrix } from '@uifabric-vue/utilities' import { IGrid, IGridProps, IGridStyleProps, IGridStyles } from './Grid.types' import BaseComponent from '../../components/BaseComponent' import { CreateElement } from 'vue' const getCla...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { ForecastClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ForecastClient"; import { DescribePredictorRequest, DescribePredictorResponse } from "../models/models_0"; import { deserializeAws_json1_1DescribePredictorCommand, serializeAws_json1_1DescribePredictorCommand, } from "../protoco...
import { Directive, ElementRef, HostListener, Inject, OnDestroy, Output, } from '@angular/core'; import {USER_AGENT} from '@ng-web-apis/common'; import {isCurrentTarget, isFirefox, TuiDirectiveStylesService} from '@taiga-ui/cdk'; import {Observable, Subject} from 'rxjs'; import {distinctUntilCha...
import React from 'react'; import Icon from '../Icon'; import LogoLinkedin from '../../../images/social/linkedin.svg'; interface Props { url: string; } const LinkedInShare: React.StatelessComponent<Props> = ({ url }: Props) => ( <a href={"https://www.linkedin.com/sharing/share-offsite/?url=" + encodeURICompon...
import React from 'react'; import {Link} from 'react-router-dom'; import dayjs from 'dayjs'; import utc from 'dayjs/plugin/utc'; import {Flex} from 'theme-ui'; import {Button, Dropdown, Menu, Table, Tag, Text} from '../common'; import {SettingOutlined} from '../icons'; import * as API from '../../api'; import * as T fr...
/** * @license * Copyright Google LLC 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 { ComponentHarnessConstructor, ContentContainerComponentHarness, HarnessPredicate, } from '@angular/cdk/...
import getConfig from 'next/config'; const { publicRuntimeConfig } = getConfig(); export const API_TOKEN = publicRuntimeConfig.TOKEN;
export const generateRandom = (max: number) => Math.floor(Math.random() * max); export const incrementNumber = (number: number, max: number) => { return (number + 1) % max; }; // Format strings with %s export const strFormat = (str: string, ...args: any) => args.reduce((s: string, v: string) => s.replace('%s', v)...
import { botCache } from "../../cache.ts"; import { cache, getMember } from "discordeno"; botCache.arguments.set("member", { name: "member", execute: async function (_argument, parameters, message) { const [id] = parameters; if (!id) return; const guild = cache.guilds.get(message.guildID); if (!gu...
// Auto-generated by yarn workspace typescriptlang-org compile-index-examples import React from "react" const innerHTML = `<div class="language-id">tsx</div><div class='code-container'><code><span style="color: #569CD6">const</span><span style="color: #D4D4D4"> <data-lsp lsp='const users: {&amp;#13; name: string;&a...
/* Copyright 2018 Telenor Digital AS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
import { AppPage } from './app.po'; describe('tln-angular App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Project Talan - Angular skeleton'); }); });
export class ListMultimap<K, V> { private map = new Map<K, V[]>(); keys(): Iterable<K> { return this.map.keys(); } put(key: K, value: V): void { this.get(key).push(value); } putAll(key: K, values: V[]): void { this.get(key).push(...values); } /** Returns live collections. */ get(key: K...
/** * Copyright 2020 The AMP HTML 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 require...
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 { StartExportTask } from "../model/operations/StartExportTask"; import { InputTypesUnion } from "../types/InputTypesUnion"; import { OutputTypesUnion } fr...
import React, { FormEvent } from "react"; import { Col, Container, Row, Modal, Form, Button, ListGroup } from "react-bootstrap"; import { FaTrash } from "react-icons/fa"; import { RouteComponentProps } from "react-router"; import PageNotFound from "./errors/404"; import "../styles/GroupDetail.scss"; import { toast } fr...
/* Copyright (c) 2017-2018 Environmental Systems Research Institute, Inc. * Apache-2.0 */ import { request, IRequestOptions, getPortalUrl } from "@esri/arcgis-rest-request"; import { IPagingParams, IGroup } from "@esri/arcgis-rest-common-types"; export interface IGroupSearchRequest extends IPagingParams { q...
// 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...
/*! * Copyright 2015 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 appli...
import { spawnChildProcess } from 'spown' import test from 'tape' test('nextools/typescript-esm-loader', async (t) => { const loaderPath = require.resolve('../src/') const fixturePath = require.resolve('./fixtures/root.ts') const { stdout } = await spawnChildProcess(`node --experimental-import-meta-resolve --ex...
import axios from '../../src/index' axios({ method: 'get', url: '/base/get', params: { foo: ['bar', 'baz'] } }) axios({ method: 'get', url: '/base/get', params: { foo: { bar: 'baz' } } }) const date = new Date() axios({ method: 'get', url: '/base/get', params: { date } ...
export { default as NProgress } from 'naive-ui/lib/progress/src/Progress' export type { ProgressProps } from 'naive-ui/lib/progress/src/Progress'
// // Copyright (c) 2014-2016 THUNDERBEAST GAMES 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 limitation the rights // to use, copy, modify...
import { User } from './user'; export class Comment { user: User; text: string; createdDate: Date; editedDate: Date; constructor(user: User, text: string) { this.user = user; this.text = text; this.createdDate = new Date(); } }
import { RelationMapping } from 'objection'; import { HasManyOptions } from '../../interfaces'; import { Relation } from './relation'; export class HasManyRelation extends Relation<HasManyOptions> { getRelation(): RelationMapping<any> { return this.createRelation({ relation: this.target.HasManyRelation, ...
import type { FC } from 'react'; import { ModalForm, ProFormText, ProFormRadio, ProFormTextArea } from '@ant-design/pro-form'; import type { ConfigListItem } from '../data.d'; import { useEffect } from 'react'; import { Form } from 'antd'; import useDict from '@/hooks/useDict'; import { getConfig } from '@/services/an...
import { CAModelAbstract } from "../../abstracts/ca-model.abstract"; import { CAStringResponse } from "../../class/ca-string.response"; import { CAStringArrayResponse } from "../../class/ca-string-array.response"; describe('CAStringArrayResponse',()=>{ let object:CAStringArrayResponse = new CAStringArrayResponse(); ...
export default interface ConnectHandler { onOpen(): void; onClose(): void; onError(): void; onIdle(): void; onBreak(): void; onConnectStatusChange(isConnected: boolean): void; }
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // **************************...
import { createUseStyles } from 'react-jss' import { ActionLinkProps } from '.' import tokens from '../../tokens' const getSizeFromProp = ({ size }: ActionLinkProps) => size === 'regular' ? tokens.sizeActionlinkRegular : tokens.sizeActionlinkSmall export const useStyles = createUseStyles((theme: typeof tokens) => ...
import React from 'react'; import { Container, Row } from 'reactstrap'; import Header from './Header'; import Sidebar from './Sidebar'; import styles from './layout.module.css'; export interface Props { children: React.ReactNode; } const Layout = ({ children }: Props) => { return ( <div> <Header /> ...