text
stringlengths
10
953k
import { css } from 'lit'; import componentStyles from '../../styles/component.styles'; export default css` ${componentStyles} :host { --color: var(--sl-panel-border-color); --width: var(--sl-panel-border-width); --spacing: var(--sl-spacing-medium); } :host(:not([vertical])) { display: block;...
import createIcon, { JSX } from './utils/createIcon' export const jsx: JSX = { type: 'svg', props: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24' }, children: [ { type: 'g', props: null, children: [ { type: 'path', props: { fill...
import * as assert from "assert"; import { AbortController } from "@azure/abort-controller"; import { arrayBufferEqual, blobToArrayBuffer, blobToString, bodyToString, getBrowserFile, getBSU, isIE, recorderEnvSetup } from "../utils/index.browser"; import { record, Recorder } from "@azure/test-utils-reco...
import { Field, InputType } from '@nestjs/graphql'; import { IsNotEmpty, IsString } from 'class-validator'; @InputType() export class CreateUserBankInput { @Field() @IsNotEmpty() @IsString() bankName: string; @Field() @IsNotEmpty() @IsString() bankNumber: string; }
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Lucycoin</source> <translation>A prop de Lucycoin</translation> ...
<?xml version="1.0" encoding="UTF-8"?> <tileset name="overlay" tilewidth="56" tileheight="56" tilecount="6" columns="3"> <grid orientation="orthogonal" width="64" height="64"/> <image source="arrs.png" width="168" height="112"/> <tile id="0" type="up"> <properties> <property name="color" value="0000"/> </prop...
import mongoose from "mongoose"; export type TipsDocument = mongoose.Document & { user_id: string, content: string }; const tipsSchema = new mongoose.Schema({ user_id: String, content: String }, { timestamps: true }); export const Tips = mongoose.model<TipsDocument>("Tips", tipsSchema);
export declare class LoadingComponent { visible: boolean; progress: number; }
export * from "./SearchPanel";
import { container } from 'tsyringe'; import { IMailProvider } from './IMailProvider'; import { EtherealMailProvider } from './implementations/EtherealMailProvider'; import { SESMailProvider } from './implementations/SESMailProvider'; const mailProvider = { ethereal: container.resolve(EtherealMailProvider), ses: c...
export const environment = { Label: 'Local', production: false, allowAnonymous: true, interceptors: [], pageSize: 10, dmpCoreApiUrl: 'http://localhost:51800/api/', appDataApiUrl: 'http://localhost:51810/api', colidApiUrl: 'http://localhost:51770/api/v3', loggingUrl: 'http://localhost:51800/api/log', ...
import {Component, OnInit} from '@angular/core'; import {Sortie} from '../../../shared/models/sortie'; @Component({ selector: 'app-maintenances-list', templateUrl: './maintenances-list.component.html', styleUrls: ['./maintenances-list.component.scss'] }) export class MaintenancesListComponent implements OnInit {...
import { Order } from 'src/database/models/order.model'; export interface IListOrders { orders: Partial<Order[]>; total: number; }
import { Component, ChangeDetectionStrategy, OnInit, ChangeDetectorRef } from '@angular/core'; import { _HttpClient } from '@delon/theme'; import { zip } from 'rxjs'; import { NzMessageService } from 'ng-zorro-antd'; import { Router, ActivationEnd } from '@angular/router'; @Component({ selector: 'app-account-setting...
import { rest } from "msw"; export const handlers = [ // Buttondown.email rest.get("https://api.buttondown.email/v1/subscribers", (_req, res, ctx) => res(ctx.status(200), ctx.json({ count: 69 })) ), // GitHub stats rest.get("https://api.github.com/repos/sreetamdas/sreetamdas.com", (_req, res, ctx) => res(ctx...
import { Injectable, Output, EventEmitter } from '@angular/core' import { BHFormControlEvent } from '../interfaces/form-control-event'; @Injectable({ providedIn: 'root' }) export class EventService { data:BHFormControlEvent; @Output() change: EventEmitter<BHFormControlEvent> = new EventEmitter(); em...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { Interface } from "./Interface"; import { Codec, GetType, optional, Right, string } from "purify-ts"; describe("Interface", () => { const def = { str: string, ops: optional(string) }; const c = Interface(def); it("should return interface Codec", () => { expect(c.decode({ str: "foo" })).toEqual(Right...
import type { AxiosRequestConfig, AxiosInstance, AxiosResponse, AxiosError } from 'axios'; import type { RequestOptions, Result, UploadFileParams } from '/#/axios'; import type { CreateAxiosOptions } from './axiosTransform'; import axios from 'axios'; axios.defaults.withCredentials = true; import qs from 'qs'; import {...
import FormControl from '@mui/material/FormControl' import InputLabel from '@mui/material/InputLabel' import MenuItem from '@mui/material/MenuItem' import Select from '@mui/material/Select' import { useField } from 'formik' import React from 'react' export type SelectionInputProps = { name: string selectionValues:...
import { InMemoryCache, NormalizedCacheObject, IntrospectionFragmentMatcher, } from 'apollo-cache-inmemory' import { ApolloClient } from 'apollo-client' import getConfig from 'next/config' import { BatchHttpLink } from 'apollo-link-batch-http' import fetch from 'isomorphic-unfetch' const { publicRuntimeConfig, s...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Block } from "./Block"; import { PositionMatrixItem } from "./PositionMatrixItem"; export class OBlock extends Block { protected positonMatrix: PositionMatrixItem[][] = [ [ new PositionMatrixItem(this.tileSize, 0), new PositionMatrixItem(0, this.tileSize), new ...
import { Component, OnInit } from '@angular/core'; import { AngularFireAuth } from '@angular/fire/auth'; import { ActivatedRoute } from '@angular/router'; import * as firebase from 'firebase'; import { AuthService } from '../helpers/auth'; import { UserInfo, UserService } from '../helpers/user'; import { FirebaseServic...
import request from '@/utils/request'; import type { QueryParam } from './data.d'; export async function queryLogs(params?: QueryParam) { return request('/rest/jobLogs', { params, }); } export async function logCat(logId: number, triggerTime: number, executorAddress: string, fromLineNum: number) { return re...
import type { IOrchestrator } from './IOrchestrator'; export interface IConnectorService { id: string; name: string; type: string; image: string; port: number; config: any; createdAt?: string; updatedAt?: string; orchestrators?: IOrchestrator[]; }
import { Component, OnInit, Input, ViewChild } from '@angular/core'; import { MatTableDataSource } from '@angular/material/table'; import { AngularPConnectService } from "../../../_bridge/angular-pconnect"; import { ProgressSpinnerService } from "../../../_messages/progress-spinner.service"; // import * as moment from ...
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { ProprietarioRoutingModule } from './proprietario-routing.module'; import { ErrorModule } from '../error/error.module'; import { ProprietarioService ...
import { TypeValueProcessor } from ".."; const createTypeValueProcessor = (handler, config) => { return new TypeValueProcessor(handler, config); }; const createTypeHandler = (obj, config) => { return {}; }; describe("TypeValueProcessor", () => { let config = {}; let obj = {}; let handler; describe("crea...
export const nunjucks = { cache: false, };
import { Injectable, Inject, OnInit} from '@angular/core'; import { Http, Response, Headers, RequestOptions } from '@angular/http'; import { AngularFire, FirebaseListObservable, FirebaseRef} from 'angularfire2'; import { Router, ActivatedRoute, Params } from '@angular/router'; @Injectable() export class SongListSe...
import { web3Factory } from '@0xproject/dev-utils'; import { Provider } from '@0xproject/types'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; const provider: Provider = web3Factory.getRpcProvider({ shouldUseInProcessGanache: true }); const web3Wrapper = new Web3Wrapper(provider); export { provider, web3Wrap...
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import {Dependencies} from '../../../../services/cache/cacheHandler' import Redis from 'ioredis' import Immer from 'immer' import * as LoghandlerMock from '../../../mocks/nodeModules/logHandler.mock' import * as RedisMock from '../../../mocks/nodeMo...
/// <reference types="node" /> /** * Page header * Ref: https://www.xiph.org/ogg/doc/framing.html#page_header */ export interface IPageHeader { /** * capture_pattern * A header begins with a capture pattern that simplifies identifying pages; * once the decoder has found the capture pattern it can ...
import React from 'react'; import { ScrollArea, ScrollAreaProps } from '../ScrollArea'; import { Content } from './_content'; function Wrapper(props: ScrollAreaProps) { return ( <div style={{ maxWidth: 400, margin: 'auto' }}> <ScrollArea style={{ height: 250 }} {...props}> <Content /> </Scrol...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose' import * as mongoose from 'mongoose' import { Category } from '../categories/category.schema' export type ImageDocument = Image & mongoose.Document @Schema() export class Image { @Prop({ type: mongoose.Schema.Types.ObjectId }) id: string @Prop({ re...
import React from 'react'; import createSvgIcon from './helpers/createSvgIcon'; export default createSvgIcon( <path d="M16 9h4v11h-4zm-6-5h4v16h-4zm-6 8h4v8H4z" />, 'EqualizerTwoTone', );
import chai, { expect } from 'chai'; import path from 'path'; import fs from 'fs-extra'; import Helper from '../../src/e2e-helper/e2e-helper'; import { HARMONY_FEATURE } from '../../src/api/consumer/lib/feature-toggle'; chai.use(require('chai-fs')); describe('create extension', function () { this.timeout(0); let ...
module App { 'use strict'; export interface IUserInfo { alias: string; } export class UserInfo implements IUserInfo { static id = "userInfo"; private _logger: ILog; /*@ngInject*/ constructor( private loggerFactory: ILoggerFactory ) { this._logger = loggerFactory(UserInfo.id); } al...
import { DocumentDefinition, FilterQuery, QueryOptions, UpdateQuery, } from "mongoose"; import User, { UserDocument } from "../models/user.model"; // Insert user export const createUser = (input: DocumentDefinition<UserDocument>) => { return User.create(input); }; // Fetch user export const findUser = (quer...
export function isJSONString(str:string) { try { JSON.parse(str); } catch(e) { return false; } return true; }
import mongoose = require('mongoose') const platformSchema = new mongoose.Schema({ name: String, label: String, editorType: String, description: String, url: String, enableImport: Boolean, enableLogin: Boolean, loggedIn: Boolean, }, { timestamps: true }) const Platform = mongoose.model('platforms', ...
export = fileBuilder; /** * @type {import('../../types').UnixFSV1DagBuilder<File>} */ declare function fileBuilder(file: import("../../types").File, block: import("interface-blockstore/dist/src/types").Blockstore, options: import("../../types").ImporterOptions): Promise<import("../../types").InProgressImportResult>; ...
import React from 'react'; import { mount } from 'enzyme'; import PriceComparison from '../../src/components/PriceComparison'; import Empty from '../../src/components/Empty'; describe('<PriceComparison />', () => { let errSpy: jest.SpyInstance; beforeEach(() => { errSpy = jest.spyOn(console, 'error').mockImpl...
import { StyledIcon } from '@styled-icons/styled-icon'; export declare const ToiletPaperSlash: StyledIcon; export declare const ToiletPaperSlashDimensions: { height: number; width: number; };
/** * @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 * as cdAst from '../expression_parser/ast'; import * as o from '../output/output_ast'; import { ParseSourceSpan...
const download = (content, fileName, contentType) => { var a = document.createElement("a"); var file = new Blob([JSON.stringify(content, null, 2)], { type: contentType }); a.href = URL.createObjectURL(file); a.download = fileName; a.click(); }; export default download;
declare var WSDLElement: any; declare class Port extends WSDLElement { constructor(nsName: any, attrs: any, options: any); addChild(child: any): void; }
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const BsCollectionPlayFill: IconType;
import { IConfig } from './src/types' const c: IConfig = { // [必填], 请填写您的仓库地址 gitRepoUrl: 'https://github.com/PrettysBoy/nav', // 部署分支 branch: 'main', // 路由是否Hash模式, 如果是部署在github pages 务必设为 true hashMode: true, // 是否显示右上角的 Github 图标 showGithub: true, // 您的网站地址,有利于SEO homeUrl: 'https://nav3.cn',...
export * from '@styled-icons/remix-line/MoneyDollarCircle'
import { useEffect, useState } from 'react' import Script from 'next/script' import { getAdsForPage } from './Loading/getAdsForPage' import { useNavState } from 'hooks/useNavState' import { useLoadAds } from './Loading/_useLoadAds' import { noAds } from '../noAds' export function LoadAds() { const [ads, setAds] = use...
import { ChangeDetectionStrategy, Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { ImageSourceOptions } from 'mapbox-gl'; import { fromEvent, Subscription } from 'rxjs'; import { filter } from 'rxjs/operators'; import { MapService } from '../map/map.service'; @Component({ ...
import {takeEvery, takeLatest} from 'redux-saga/effects'; import { getUser, login, loginCallBack, logout, logoutCallBack } from '../ducks/auth'; import { handleCompleteLogin, handleGetUser, handleLogin, handleLogout, handleLogoutCallBack } from './handlers/auth'; import { createCategory, deleteCategor...
import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2'; import { IResource, Lazy, Names, Resource } from '@aws-cdk/core'; import { Construct } from 'constructs'; import { CfnVpcLink } from './apigateway.generated'; /** * Represents an API Gateway VpcLink */ export interface IVpcLink extends IResource { /** ...
/** * Game configuration. */ // tslint:disable:typedef const game = { container: 'game', width: 1920, height: 974, debug: false, }; const graphics = { width: 4, texture: { key: 'pixel', url: 'images/transparent_pixel.png', }, }; const text = { fontFamily: 'Arial, Helvet...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { PlaylistDetailComponent } from './playlist-detail.component'; describe('PlaylistDetailComponent', () => { let component: PlaylistDetailComponent; let fixture: ComponentFixture<PlaylistDetailComponent>; beforeEach(waitForA...
import React from 'react'; import './AddProp.css'; class AddProp extends React.Component<{onClick: Function}, {}> { handleClick = ()=>{ this.props.onClick(); } render() { return ( <div className="AddProp unselectable" onClick={this.handleClick}> + </d...
import React from 'react'; import { SVGIconProps } from '../createIcon'; export declare const HubspotIconConfig: { name: 'HubspotIcon', height: 512, width: 512, svgPath: 'M267.4 211.6c-25.1 23.7-40.8 57.3-40.8 94.6 0 29.3 9.7 56.3 26 78L203.1 434c-4.4-1.6-9.1-2.5-14-2.5-10.8 0-20.9 4.2-28.5 11.8-7.6 7.6-11.8 17...
import { DeployContext } from './DeployContext'; export default abstract class Contracts<T> { protected _data: Partial<T>; protected context: DeployContext; protected abstract keys: ReadonlyArray<keyof T>; protected domain: string; constructor(context: DeployContext, domain: string, data?: T) { this._da...
import { Injectable, Logger, UnauthorizedException } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import { ResponseIdDto } from 'src/shared/dtos/responseId.dto'; import { CreateUserDto } from '../user/dtos/createUser.dto'; import { UserService } from '../user/user.service'; import { AccessTokenDto }...
import Memoized from "../dist/memoize"; it("enable console log", () => spyOn(console, 'log').and.callThrough()); describe("test", function() { let standard = {score:10}; let memoize = new Memoized(standard); it(`check score`, () =>{ expect(memoize.score).toBe(10); }); it(`change subje...
import * as React from 'react' import styled from '@emotion/styled' import * as d3 from 'd3' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { colors } from '../../../styles/variables' import { transparentize } from 'polished' interface BarsListProps<T> { hierarchyRoot: d3.HierarchyNode<T> ...
import * as React from 'react'; import SelectUnstyled, { SelectUnstyledProps, selectUnstyledClasses, SelectOption, } from '@mui/base/SelectUnstyled'; import OptionUnstyled, { optionUnstyledClasses } from '@mui/base/OptionUnstyled'; import PopperUnstyled from '@mui/base/PopperUnstyled'; import { styled } from '@mu...
// Type definitions for lodash.uniq 4.5 // Project: http://lodash.com/ // Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2....
import { Injectable } from '@angular/core'; import { CoreService } from './core.service'; import { PageResponse } from '../response/response'; import { PayCard } from '../response/pay-card'; @Injectable() export class FinanceService { constructor(private cs: CoreService) {} test() { const url = `${th...
import * as React from "react"; import { HelloComponent } from "./hello"; import { NameEditComponent } from "./nameEdit"; export const App = () => { const [name, setName] = React.useState("initialName"); const setUsernameState = (event: React.ChangeEvent<HTMLInputElement>) => { setName(event.target.value); ...
export * from './contextMenu' export * from './interfaces' export * from './importer'
export interface ResponseBody{ data: results[]; htmlreport: string; reportInsertionResult: boolean; reportId?: string; } interface results{ value: string; } export interface Response { reportId: string; }
import styled, { css } from "styled-components"; export const StyledDropdown = styled.ul<{ visible: boolean }>` position: absolute; display: flex; flex-direction: column; top: 60px; border-radius: ${({ theme }) => theme.orbit.borderRadiusLarge}; box-shadow: ${({ theme }) => theme.orbit.boxShadowAction}; ...
export type BeforeChangeWatcher<T> = ( currentValue: T, nextValue: T, ) => boolean | Promise<boolean>;
import { Message as IMessageType, MailFolder as IMailFolderType, MailboxSettings as IMailboxSettingsType } from "@microsoft/microsoft-graph-types"; import { _GraphQueryableCollection, _GraphQueryableInstance, _GraphQueryableSearchableCollection } from "../graphqueryable.js"; import { IGetById, IAddable, IUpdateable } f...
import * as Binary from '../util/binary'; import * as QA from '../util/qa'; import * as Section from './section'; import * as ZString from './zstring'; export class ZObject { public name: string; public attributes: string[]; public properties: any; public children: ZObject[]; public index?: number;...
import GoogleCredential from './GoogleCredential' export class GoogleApiCredential extends GoogleCredential { constructor(public apiKey: string, systemName: string, instanceName: string) { super(systemName, instanceName) } }
import React from 'react'; import { Container, Content, Title, ComponentWrapper, Subtitle, } from './styledComponents'; export interface TitleBarProps { className?: string; title?: string; leftComponent?: React.ReactNode; subtitle?: string; rightComponent?: React.ReactNode; } /** * * TitleBar si...
/// <reference path="bobril.d.ts"/> declare var DEBUG: boolean; if (typeof DEBUG === "undefined") DEBUG = true; b = ((window: Window, document: Document): IBobrilStatic => { function assert(shoudBeTrue: boolean, messageIfFalse?: string) { if (DEBUG && !shoudBeTrue) throw Error(messageIfFalse || "assertion...
import type { PushOperation } from "@undercut/types"; import { abort, close, Cohort } from "@undercut/utils"; import { asPushOperation } from "../push_core"; export function average(): PushOperation<number> { return asPushOperation<number>(function* (observer) { const cohort = Cohort.of(observer); let sum = 0;...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); import basem = require('./ClientApiBases'); import buildm = require('./BuildApi'); import c...
// (C) 2019-2020 GoodData Corporation import { IWorkspaceStylingService, ITheme } from "@gooddata/sdk-backend-spi"; import { IColorPaletteItem } from "@gooddata/sdk-model"; import { GdcMetadataObject, GdcMetadata } from "@gooddata/api-model-bear"; import { BearAuthenticatedCallGuard } from "../../../types/auth"; import...
import express, { Express } from 'express' import bodyParser from 'body-parser' import { getUsers, getUserById, createUser, updateUser, deleteUser, } from '../database' class BackendApp { app: Express constructor() { this.app = express() // this.middleware() this.routes() } /* middlew...
declare const styles: { spinnerContainer: string; spinner: string; spinnerRing: string; spinnerSlice: string; spin: string; spinnerLoadingMessage: string; spinnerAccessibilityMessage: string; }; export default styles; //# sourceMappingURL=spinner.module.scss.d.ts.map
import { DescribeProjectsCommandInput, DescribeProjectsCommandOutput } from "../commands/DescribeProjectsCommand"; import { RekognitionPaginationConfiguration } from "./Interfaces"; import { Paginator } from "@aws-sdk/types"; export declare function paginateDescribeProjects(config: RekognitionPaginationConfiguration, i...
import type { SignInWithApplePlugin } from './definitions'; declare const SignInWithApple: SignInWithApplePlugin; export * from './definitions'; export { SignInWithApple };
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Entity, Column, PrimaryColumn, Timestamp, ManyToOne, CreateDateColumn, PrimaryGeneratedColumn, } from 'typeorm'; import { Workshop } from '../workshops/workshop.entity'; import { WorkshopsService } from '../workshops/workshops.service'; import { MemberTEntity } from '../members-t/member-t.entity'...
import { Action, createStore, Store } from "redux"; export interface IAppState { count: number; } export const INITIAL_STATE: IAppState = { count: 0 }; export class CounterActions { static INCREMENT = "INCREMENT"; static DECREMENT = "DECREMENT"; increment(): Action { return { type: CounterActions...
// *** 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"; /*...
import addDataLogo from '../assets/addDataLogo.png'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; import DialogActions from '@material-ui/core/DialogActions'; import Button from '@material-ui/core/Button'; import { useState } from 'react'; import { CodebookImpl...
/* eslint-disable @typescript-eslint/no-var-requires */ import { expect } from './test'; import { posix as path } from 'path'; import { promises as fs, readFileSync } from 'fs'; import * as yaml from 'js-yaml'; import { Generator } from './index'; import { OpenAPIV3 } from 'openapi-types'; const fixtures: { name...
interface Document { webkitFullscreenElement: HTMLElement webkitCancelFullScreen: () => void } interface HTMLElement { webkitRequestFullscreen: () => void } interface HTMLAudioElement { sinkId: string setSinkId(sinkId: string): Promise<void> } interface VideoFrameMetadata { presentationTime: DOMHighResTi...
import {ResponseModelFactory} from "../../models/factories/ResponseModelFactory"; import {SendMessageResponse} from "../../models/serverMessages/SendMessageResponse"; import {ReceivedMessage} from "../../models/serverMessages/ReceivedMessage"; var expect = require('chai').expect; describe('ModelFactory', function () ...
import { useState, useEffect } from 'react' import { localLiteStorage } from 'ltstrg' import { previewStyleKey } from './localStorageKeys' import { createStoreContext } from './utils/context' export const defaultPreviewStyle = ` -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 1.5; color: #2429...
import { Inject, Injectable, InjectionToken, NgZone, Optional, PLATFORM_ID } from '@angular/core'; import { from, Observable, of } from 'rxjs'; import { AssociatedReference, CollectionReference, DocumentReference, PersistenceSettings, Query, QueryFn, QueryGroupFn, Settings } from './interfaces'; import ...
import ISearchable from "../common/ISearchable"; import IWordTokenizer from "../common/IWordTokenizer"; export default class SearchTransform { private tokenizer: IWordTokenizer; constructor(tokenizer: IWordTokenizer) { this.tokenizer = tokenizer; } public apply(key: string, sourceItem: any): ...
import React from "react"; import { SpringConfig } from "react-spring"; export interface Props { animateToNumber: number; fontStyle?: React.CSSProperties; includeComma?: boolean; configs?: SpringConfig[]; } declare const AnimatedNumber: React.FunctionComponent<Props>; export default AnimatedNumber;
import * as React from 'react'; import { Drawer, Divider, Col, Row } from 'antd'; import { datacenter, netelement } from 'src/api'; import _ from 'lodash'; // import CommonUtils from 'src/utils/commonUtils'; /** Props接口,定义需要用到的Porps类型 */ export interface IProps { // form: any; drawerData: any; onClose: any; vi...
import React from 'react'; import { Box, Button, CheckBox, Form, FormField, RadioButtonGroup, RangeInput, Select, TextArea, } from 'grommet'; import { useState } from 'react'; // interface declarations can only be used in TypeScript files // Remove 'interface FormState' if you are not using TypeScri...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ListarTarefaComponent } from './listar'; import { CadastrarTarefaComponent } from './cadastrar'; import { EditarTarefaComponent } from './editar'; import { TarefasRoutingComponent } from './tarefas-routing.compon...