text
stringlengths
10
953k
/** * @file IconChecklist 检查列表 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime'; export default IconWrapper( 'IconChecklist', true, (h: IconHelper, props: ISvgIconProps) => ( ...
/** * Datart * * Copyright 2021 * * 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...
<TS language="es_MX" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Click derecho para editar tu dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> ...
import * as should from "should"; import { AddressSpace, buildModel } from ".."; // tslint:disable-next-line: no-var-requires const describe = require("node-opcua-leak-detector").describeWithLeakDetector; describe("buidModel", () => { it("should build a model", async () => { const { xmlModel, symbols, ma...
import { CollectionService } from '../../collection/collection.service'; import { createServiceFactory, SpectatorService, SpyObject } from '@ngneat/spectator'; import { AngularFirestore, SETTINGS } from '@angular/fire/firestore'; import { EntityStore, QueryEntity, StoreConfig, EntityState, ActiveState } from '@datorama...
import { TestBed } from '@angular/core/testing'; import { DestinationService } from './destination.service'; describe('DestinationService', () => { beforeEach(() => TestBed.configureTestingModule({})); it('should be created', () => { const service: DestinationService = TestBed.get(DestinationService); ex...
export * from './SlashCommand' export * from './SlashCommandRegister' export * from './SlashCommandStore'
import { MatDialog } from '@angular/material/dialog'; import { IControl, Map } from 'mapbox-gl'; import { AppInjector } from '../shared/app-injector'; import { NewGymComponent } from './new-gym.component'; /** * Class that is used to open the NewGymComponent * from the map */ export class NewGymControl implements...
import { SequenceUIModel } from '../../../../../uniprotkb/adapters/sequenceConverter'; const mock: SequenceUIModel = { sequence: { value: 'ATGHASOADSDKDSAJALDSAMCMNDSKMDSKNCSAKN', length: 1234, molWeight: 5678, crc64: 'ASSDFFFDSAASDDSDFSASDF', md5: 'C899F597B1B5D205357C9FAEDA9FF553', }, statu...
import ts from 'typescript'; import { Types } from '../../../constants'; import { ScriptBuilder } from '../../../sb'; import { VisitOptions } from '../../../types'; import { BuiltinInstanceOf } from '../../BuiltinInstanceOf'; import { BuiltinInterface } from '../../BuiltinInterface'; import { Builtins } from '../../Bui...
import { fastify } from 'fastify' import 'fastify-cookie' import { pipe } from 'fp-ts/function' import * as H from 'hyper-ts' import { NonEmptyString } from 'io-ts-types/lib/NonEmptyString' import { toRequestHandler } from '../src' // // model // interface User { name: string } // // business logic // const User...
import { Action } from '@ngrx/store'; export enum CounterActionTypes { Increment = '[Counter] Increment', Decrement = '[Counter] Decrement', Reset = '[Counter] Reset', } export class Increment implements Action { readonly type = CounterActionTypes.Increment; constructor(public payload: void) { } } export ...
import * as AWS from 'aws-sdk'; import store from '../store'; import chalk from 'chalk'; export const credentialsExist = (): boolean => ( !!(store.AWS.Credentials.accessKeyId) && !!(store.AWS.Credentials.secretAccessKey) ); export const ensureCredentials = (): void => { if (!credentialsExist()) { throw new Er...
import { NgForm } from "@angular/forms"; import { Component, OnInit, Output, Input } from "@angular/core"; import { Router } from "@angular/router"; import { AuthService } from "shared/services/auth.service"; @Component({ selector: "app-login", templateUrl: "./login.component.html", styleUrls: ["./login.componen...
import { Marshaller, Constructor } from '@need-some/basic'; import { JSON, JsonFormatter } from './types'; import { JsonObjectMarshaller } from './jsonobject.marshaller'; /** * Internal formatter to convert simple json objects to strings. */ const _STANDARD_FORMATTER: (json: JSON) => string = (json: JSON) => JSON.st...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { AlgoritmoHuffmanComponent } from './algoritmo-huffman.component'; describe('AlgoritmoHuffmanComponent', () => { let component: AlgoritmoHuffmanComponent; let fixture: ComponentFixture<AlgoritmoHuffmanComponent>; beforeEach(async () => ...
// @ts-nocheck import { TCollection } from "../../types/t-collection"; import { array$ } from "../../generic/array$"; import { eq } from "../../generic/eq"; import { not } from "../../generic/not"; import { _Collection } from "./_meta-collection"; import { ICollection } from "./i-collection"; export class _Map extends...
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {ProgressMaskComponent} from './progress-mask.component'; describe('ProgressMaskComponent', () => { let component: ProgressMaskComponent; let fixture: ComponentFixture<ProgressMaskComponent>; beforeEach(async(() => { TestBed.con...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca_ES" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About GAY Coin</source> <translation>Sobre GAY Coin</translation> </message> <message> <lo...
import {ApiOperation, ApiTags} from "@nestjs/swagger"; import {Controller, Get, Param, ParseIntPipe, Patch, UseInterceptors} from "@nestjs/common"; import { Crud, CrudController, CrudRequest, CrudRequestInterceptor, Feature, Override, ParsedBody, ParsedRequest } from "@nestjsx/crud"; import {ServiceCategory, User} ...
#!/usr/bin/env node import * as cdk from '@aws-cdk/core'; import { <%= stackName %>Stack } from '../lib/<%= stackName %>-stack'; const app = new cdk.App(); new <%= stackName %>Stack(app, '<%= stackName %>Stack');
import React from 'react' import Layout from '../components/layout' export default () => { return ( <Layout> <div>Hello blog post</div> </Layout> ) }
// Copyright 2018 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...
export type BooleanString = 'true' | 'false'; export type IntegerString = `${bigint}`; export type SapphireSlashiesEnvAny = keyof SapphireSlashiesEnv; export type SapphireSlashiesEnvString = { [K in SapphireSlashiesEnvAny]: SapphireSlashiesEnv[K] extends BooleanString | IntegerString ? never : K; }[SapphireSlashiesEn...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * Possible regular expression types. */ export enum REType { /** Unbounded regular expression */ Unbounded = "UnboundedRegExp" } export enum NodeType { Concat = 'concatenation', Iter = 'iteration', Alter = 'alternation', Term = 'term', Epsilon = 'epsilon', EmptySymbol = 'empty_symbol' } /** Conc...
import { Controller, Get, Post, Put, Delete, Body, Param, } from '@nestjs/common'; import { ProcessService } from './process.service'; import { Process } from '../models/process.entity'; import { Hearing } from '../models/hearing.entity'; @Controller('processes') export class ProcessController { constr...
export class Hello { static say(): Hello { return new Hello(); } private constructor() { console.log('Instantiate hello class!'); } }
class ScFieldRegion { id?: string | undefined; // neo4j_id?: string | undefined; field_zone?: string | undefined; director?: string | undefined; name?: string | undefined; created_at?: string | undefined; created_by?: string | undefined; modified_at?: string | undefined; modified_by?...
import IGraph from "../IGraph"; export default class GraphPresenter<V> { private graph: IGraph<V>; public constructor(graph: IGraph<V>) { this.graph = graph; } /** * Get graph adjacency list * **/ public getAdjacencyList(): Map<V, Array<V>> { return this.graph.vertices.reduce((map: Map<V, ...
import {injectable} from "inversify"; @injectable() export class BreedingFinder { private regexp = /breeding|breed/; public isBreeding(stringToSearch: string): boolean { return stringToSearch.search(this.regexp) >= 0; } }
export class SearchMovieDTO { title: string; category: string; page: number; size: number; }
import { core } from './core' try { const app = core() app.start(); } catch (error) { console.log(error) }
import { Cmp408Component } from './cmp'; describe('Cmp408Component', () => { it('should add', () => { expect(new Cmp408Component().add408(1)).toBe(409); }); });
export { Table } from "./Table"; export * from "./TableProps";
import { AnyAction } from 'redux'; import { SET_IS_DIRTY } from './types'; export function setIsDirty(key: string, value: boolean): AnyAction { return { payload: { key, value }, type: SET_IS_DIRTY }; }
/** * Copyright 2018 Centrum Wiskunde & Informatica * * 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 l...
import { CharReader } from '../utils/char_reader' import { UpdaterTo113 as Updater } from '../to113/updater' import { NbtCompound } from '../utils/nbt/nbt' import Entities from '../to113/mappings/entities' /** * Represent a target selector. * Provides methods to operate it. * @author SPGoding */ export class Targe...
import {utils, Wallet} from 'ethers'; export interface Message { from: string; to: string; value: utils.BigNumberish; data: string; nonce: utils.BigNumberish; gasPrice: utils.BigNumberish; gasToken: string; gasLimit: utils.BigNumberish; operationType: utils.BigNumberish; } export const calculateMess...
export const loadState = (key?: string) => { try { const serializedState = localStorage.getItem('state'); if (serializedState === null) { return undefined; } const json = JSON.parse(serializedState); if (key) return json[key]; return json; } catch (err) { return undefined; } }; ...
/* * 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 { InMemoryCache, IntrospectionFragmentMatcher } from 'apollo-cache-inm...
import * as github from '../lib/converter/plugins/GitHubPlugin'; import Assert = require('assert'); describe('GitHubRepository', function() { describe('constructor', function() { it('must default to github.com hostname', function() { let repository = new github.Repository('', '', []); ...
import * as Sentry from '@sentry/node'; import {FastifyInstance} from 'fastify'; import {env, sentry, server} from '../config'; import db from '../db'; import {dbLogger, fastifyLogger as baseFastifyLogger} from '../logger'; if (sentry.dsn) { let environment: 'production' | 'development' | undefined; switch (env.env...
import React from 'react'; interface MaxWidthProps { value: number | string; } const MaxWidth: React.FC<MaxWidthProps> = props => ( <div style={{ maxWidth: typeof props.value === 'number' ? `${props.value}px` : props.value, marginLeft: 'auto', marginRight: 'auto', }} > {pro...
export class NodeBinary{ private numero:number|string private id:number private left:NodeBinary private right:NodeBinary constructor(numero:number|string,id:number){ this.numero = numero this.id = id this.left = null this.right = null } public setNumero(num...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ClasesGenericosFormCatalogoSBNComponent } from './clases-genericos-form-catalogo-sbn.component'; describe('ClasesGenericosFormCatalogoSBNComponent', () => { let component: ClasesGenericosFormCatalogoSBNComponent; let fixture: Compo...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http'; import { AuthService } from './auth.service'; import { throwError as ObservableThrowError, Observable } from 'rxjs'; import { catchError } from 'rxjs/operators'; import { environment } from '.....
import { keccak256, rlp } from 'ethereumjs-util' import { bufferToNibbles, nibblesToBuffer } from './util/nibbles' import { isTerminator, addHexPrefix, removeHexPrefix } from './util/hex' export type TrieNode = BranchNode | ExtensionNode | LeafNode export type Nibbles = number[] // Branch and extension nodes might sto...
import React, { useContext, useMemo } from 'react'; import { Paper, makeStyles, Theme } from '@material-ui/core'; import { Players } from '../constants'; import { useMediaDown } from '../utils'; import { SettingsContext } from '../contexts'; interface ITileProps { index?: number; value?: Players; onClick?: (inde...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About UniCoin</source> <translation>&amp;О UniCoin</translation> </mes...
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, HandlerExecutionContext, HttpHandlerOptions...
import { Command, RegisterBehavior, type ChatInputCommand } from '@sapphire/framework'; import { ApplyOptions } from '@sapphire/decorators'; import { useModal } from '#util/useModal'; import { CommandInteraction, Modal, type Message } from 'discord.js'; import { isNullish, isThenable, codeBlock } from '@sapphire/utilit...
import { LinkedList } from '../../utils/linked-list.class'; /* tslint:disable-next-line: no-any */ let list: LinkedList<any>; describe('Linked List. Base functions.', () => { beforeEach(() => { list = new LinkedList<string>(); list.add('1'); list.add('2'); list.add('3'); list.add('4'); list....
import { Source, pipe, toPromise, filter, take } from 'wonka'; import { OperationResult, PromisifiedSource } from '../types'; export function withPromise<T extends OperationResult>( source$: Source<T> ): PromisifiedSource<T> { (source$ as PromisifiedSource<T>).toPromise = () => { return pipe( source$, ...
import { assertEquals, assertThrowsAsync } from "../deps.ts"; import { printFile } from "./printFile.ts"; Deno.test("File contents should match", async () => { const filename = "hello.txt"; const file = await Deno.create(filename); Deno.writeTextFileSync(filename, "hello"); const contents = await printFile(fi...
import { Box, Theme } from '@mui/material'; import { SxProps } from '@mui/system'; import { DataGrid, GridColDef, GridRenderCellParams, GridValueGetterParams } from '@mui/x-data-grid'; import * as api from 'src/api'; import bytesToSize from 'src/utils/bytesToSize'; type DeploymentHistoryProps = { data: api.Deploym...
import { Consumer, ConsumerOptions } from 'sqs-consumer' import { ContextProvider, DefaultTaskContext } from './context' import { OperationConfiguration, OperationName, QueueName } from './types' export interface GetConsumersInput<TContext = DefaultTaskContext> { contextProvider: ContextProvider<TContext> consumer...
import { SensorModel, Sensor, ISensor } from '../../src/model/model.sensor'; import { Observable } from 'rxjs/Rx'; var util = require('util'); var sensor: SensorModel; var logger = require('../../src/util/logger'); // var sensorHelper = require('../helpers/sensor'); var data: ISensor[] = [ { name: "sensor 43", ...
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; import { CreateMultipartUploadOutput, CreateMultipartUploadRequest } from "../models/models_0"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandle...
import { forwardRef, ProgressHTMLAttributes, useCallback } from 'react' import { Text } from '../' import clsx from 'clsx' import { LinearProgress as LinearProgressClass, Progress, Percentage } from './linear-progress.module.css' export type LinearProgressProps = ProgressHTMLAttributes<HTMLProgressElement> & { /** ...
import fs from "fs"; import path from "path"; import commander from "commander"; import findUp from "find-up"; import { version } from "./version"; import { compile, evalCompiled } from "./parser"; import { render, unrender } from "./render"; import { outputHanziWrapper } from "./execute"; var readline; var rl; var in...
import "raf/polyfill"; import React from "react"; import ReactDOM from "react-dom"; import "./styles/reset.css"; import App from "./App"; const target = document.getElementById("root"); if (target) { ReactDOM.render(<App />, target); } if (module && module.hot) { module.hot.accept(); module.hot.addStatusHan...
// import { describe, it, expect } from 'jest'; import { Day } from '../Day'; // tslint:disable: no-magic-numbers describe('DayFormat', () => { it('month', () => { expect( Day.build(2018, 2, 3).format('M') ).toEqual('3'); expect( Day.build(2018, 2, 3).format('Mo') ).toEqual('3rd'); expect( Day.build(2...
import { IExplorerManager } from './IExplorerManager'; import { injectable } from 'inversify'; import { forEach } from 'lodash'; import { IdentityManager } from '../IdentityManager'; @injectable() class ExplorerManager extends IdentityManager implements IExplorerManager { private directory: string; private pathHan...
/** * SudoPasswordInput * @author: oldj * @homepage: https://oldj.net */ import { useModel } from '@@/plugin-model/useModel' import { Button, Input, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalOverlay, } from '@chakra-ui/react' import { agent } from '@renderer/core/agent' im...
import { ReportHandler } from 'web-vitals' const reportWebVitals = (onPerfEntry?: ReportHandler): void => { if (onPerfEntry) { import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { getCLS(onPerfEntry) getFID(onPerfEntry) getFCP(onPerfEntry) getLCP(onPerfEntry) ...
import NewsletterSignup from '@weco/common/views/components/NewsletterSignup/NewsletterSignup'; const Template = args => <NewsletterSignup {...args} />; export const basic = Template.bind({}); basic.args = {}; basic.storyName = 'NewsletterSignup';
import {Getter, inject, Provider, Setter} from '@loopback/context'; import {HttpErrors, Request, Response} from '@loopback/rest'; import {Strategy} from 'passport'; import {AuthErrorKeys} from '../error-keys'; import {AuthenticationBindings} from '../keys'; import {StrategyAdapter} from '../strategy-adapter'; import {...
import { AlEntitlementCollection, AlLocation, AlLocatorService, AlNullRoutingHost, AlParamPreservationRule, AlRoute, AlRuntimeConfiguration, ConfigOption, AlSession, AlActingAccountResolvedEvent, } from '@al/core'; import { HttpClientTestingModule } from '@angular/common/http/testing...
import { VarComponent } from './varComponent' export interface PullRefreshProps { value?: boolean disabled?: boolean animationDuration?: number | string successDuration?: number | string bgColor?: string successBgColor?: string color?: string successColor?: string onRefresh: () => void onInput?: (v...
/** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported...
/* * 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 { ILegacyScopedClusterClient } from 'kibana/server'; import { ES_AGGR...
/* tslint:disable */ /* eslint-disable */ /** * Samsara API * * The version of the OpenAPI document: 2021-06-09 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } fr...
import { whoSaidThat } from "."; async function main() { const [, , ...command] = process.argv; const code = await whoSaidThat(command.join(" ")); process.exit(code); } main().catch((error) => { console.error(error); process.exit(1); });
export * from './vm'; export * from './vm-templates'; export * from './cdi'; export * from './namespace'; export * from './value-enum';
<TS language="zh_TW" 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> <translation>產生一個新位址</translation...
import { ReactElement, ReactNode } from 'react' import { Footer } from './Footer' import { BannerContact } from './BannerContact' import { Navbar } from './Navbar' import { ClassNameProp } from '../../types/react' type Props = { header?: ReactElement, withoutContactBanner?: boolean, children: ReactNode, } & Clas...
import { Component, OnInit } from '@angular/core'; import { Aluno } from '../../../common/aluno'; import { AlunoService } from './aluno.service'; @Component({ selector: 'app-root', templateUrl: './alunos.component.html', styleUrls: ['./alunos.component.css'] }) export class AlunosComponent implements OnIn...
import {NgModule} from '@angular/core'; import {SvgeRectComponent} from './svge-rect/svge-rect.component'; export * from './svge-rect/svge-rect.component' @NgModule({ imports: [SvgeRectComponent], exports: [SvgeRectComponent], }) export class NgSvgEditModule {}
// angular import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; // libs import { BrowserStateTransferModule, DEFAULT_STATE_ID } from '@ngx-universal/state-transfer'; import { CACHE } from '@ngx-cache/core'; import { BrowserCacheModule, MemoryCacheService, STATE_ID } from...
import Web3 from "web3"; import {AbiItem} from "web3-utils"; import { NETWORK_PROVIDER, PRIVATE_KEY, GLD_CONTRACT_ADDRESS } from "../util/secrets"; import {Request, Response} from "express"; import goldTokenABI from "./ABIs/goldTokenABI.json"; // Connect web3 with binance smart chain const web3: Web3 = new Web3(NETWOR...
export class NavLinkHome { constructor(iconUrl: string, appTitle: string) { this.iconUrl = iconUrl; this.appTitle = appTitle; } public iconUrl: string; public appTitle: string; }
/** * @packageDocumentation * @module @textile/threads-client/models */ export * from "./query"; export * from "./ReadTransaction"; export * from "./WriteTransaction"; /** * Event represents an update event. * It contains information about when the update occurred, the instance id, the collection name, * and the ...
import { CmsCollectionFile } from "netlify-cms-core" import { bodyField, cardsGroup, metadataObject, pageTitleField, slugField, templateKeyField, } from "../../../schemas" const aboutPageCollection: CmsCollectionFile = { file: "content/pages/about.mdx", label: "Quem Somos", name: "about", fields: [...
import { ContextObject, StorageProviderType, StorageType } from '@/types/api'; function isSameCredentials(credential: ContextObject, stored: StorageType): boolean { switch (stored.provider) { case StorageProviderType.GITHUB: { return ( credential.id === stored.id && credential.provi...
import * as React from 'react'; import { BaseWebComponent, IDataFilterInfo, ExtensibilityConstants } from '@pnp/modern-search-extensibility'; import * as ReactDOM from 'react-dom'; import { Panel, PanelType, IPanelProps, Text, ITheme } from '@fluentui/react'; import { IReadonlyTheme } from '@microsoft/sp-component-base...
import React, {ComponentProps, useEffect, useLayoutEffect, useRef, useState} from "react"; import {useDispatch, useSelector} from "react-redux"; import { Button, Col, Container, DropdownItem, DropdownMenu, DropdownToggle, Label, Row, UncontrolledButtonDropdown } from "reactstrap" imp...
import { Unit, UnitSuffix } from '@src/defs'; import { centimeter } from '@src/internal/converters/centimeter'; import { em } from '@src/internal/converters/em'; import { inch } from '@src/internal/converters/inch'; import { magnification } from '@src/internal/converters/magnification'; import { millimeter } from '@src...
/* Copyright 2020 Bruno Windels <bruno@windels.cloud> Copyright 2022 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 ...
import React, { useEffect } from 'react'; import styled from 'styled-components/macro'; import useFetch from '../hooks/useFetch/useFetch'; import { useForm } from 'react-hook-form'; import { useDispatch } from 'react-redux'; import { useHistory, Link } from 'react-router-dom'; import { AppDispatch } from '../redux/stor...
import { Inject } from "@angular/core"; import { FormGroup } from "@angular/forms"; import { EventBus, IEvent, immutableSet } from "@nova-ui/bits"; import get from "lodash/get"; import pick from "lodash/pick"; import { takeUntil } from "rxjs/operators"; import { PizzagnaService } from "../../../../../pizzagna/services...
export class TokenStream { toString(startIndex: number, stopIndex: number): string { return ""; } }
import {gql} from '@apollo/client'; import {Icon, Popover} from '@blueprintjs/core'; import * as React from 'react'; import * as yaml from 'yaml'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PythonErrorInfo, PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorInfo'; import {Timestamp} from '../app/t...
/** * Copyright (c) 2014-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ /** * I...
interface ListItem { next: ListItem | null; value: number; } interface revertListObj { hasReverseNode: ListItem, newList: ListItem } class LinkNode { value: number; next: null; constructor(value: number) { this.value = value; this.next = null; } } /** * 根据给定长度生成链表 * @p...
import {HttpHeaders} from '@angular/common/http'; export const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) };
/** * Types of a Frontity package. * * The main purpose of this interface is to be extended by the specific types of * a Frontity package. */ export interface Package { /** * The name of the Frontity package. */ name?: string; /** * An object of React components exposed by this package. The keys ar...
import { Component, OnInit } from '@angular/core'; import { EstudianteServiceService } from'../service/estudiante-service.service'; import { Router } from '@angular/router'; import { AuthService } from '../service/auth.service'; import { AngularFireAuth } from '@angular/fire/auth'; import { auth } from 'firebase/app'; ...
import theme from './theme'; type ThemeInterface = typeof theme; declare module 'styled-components' { // eslint-disable-next-line @typescript-eslint/no-empty-interface interface DefaultTheme extends ThemeInterface {} }
import { BettererConfig, BettererWorkerRunConfig } from '../config'; export function createWorkerRunConfig(config: BettererConfig): BettererWorkerRunConfig { return { cache: config.cache, cachePath: config.cachePath, ci: config.ci, configPaths: config.configPaths, cwd: config.cwd, excludes: c...