text
stringlengths
10
953k
/** * * Checks whether a word is on the exception list for which we have full forms. If it is, returns the indicated stem of the word. * * @param {Array} morphologyDataNL The Dutch morphology data file. * @param {string} word The word to check. * * @returns {string/null} The created word forms. */ export defaul...
import {Directive, Input, Output, ElementRef, EventEmitter, OnChanges} from '@angular/core'; import 'jquery-slimscroll'; @Directive({ selector: '[baSlimScroll]' }) export class BaSlimScroll implements OnChanges { @Input() public baSlimScrollOptions: Object; constructor(private _elementRef: ElementRef) {...
import { normalize } from '@stoplight/path'; import { DeepReadonly, GetLocationForJsonPath, IParserResult, IRange, JsonPath, Optional } from '@stoplight/types'; import { isObjectLike } from 'lodash'; import { formatParserDiagnostics } from './errorMessages'; import { IParser } from './parsers/types'; import { IRuleResu...
// Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { Option } from '@polkadot/types'; import type { AccountId, Hash, Proposal as ProposalType, Votes } from '@polkadot/types/interfaces'; import React, { useMemo } from 'react'; import ProposalCell f...
<TS language="gl" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Crear unha nova dirección</translation> </message> <message> <source>&amp;New</source> <translation>&amp;Novo</translation> </message> ...
/** * Xero Payroll AU * This is the Xero Payroll API for orgs in Australia region. * * The version of the OpenAPI document: 2.3.7 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manual...
import { scheduleWork, isFn, getCurrentFiber } from './reconciler' import { DependencyList, Reducer, IFiber, Dispatch, SetStateAction, EffectCallback, HookTpes, RefObject, IEffect } from './type' let cursor = 0 export const resetCursor = () => { cursor = 0 } export const useState = <T>(initState: ...
export function orderListByProperty<T>(list: Array<T>, field: string): Array<T> { return list.sort((firstElement, seconddElement): number => { const first = getFieldValue<typeof firstElement>(firstElement, field); const second = getFieldValue<typeof seconddElement>(seconddElement, field); if (first > seco...
"use strict"; import { isPartOfOperator, operatorTokens, isOperator, Token } from "../../../../utils/tokens"; const operator = (state, source, reducers) => { const char = source && source.shift(); // console.log('isOperator ', {state,char}) if (char === undefined) { if (isOperator(state.current)) { retu...
import { Center, Text } from '@chakra-ui/react' import { NextPage } from 'next' import React from 'react' import { AppPageLayout } from 'src/layouts/AppPageLayout' // -- const IndexPage: NextPage = () => { return ( <AppPageLayout> <Center h="2xl"> <Text>This page is empty</Text> </Center> ...
import {delay, takeWhile} from 'rxjs/operators'; import {AfterViewInit, Component, Input, OnDestroy} from '@angular/core'; import {NbThemeService} from '@nebular/theme'; import {LayoutService} from '../../../../@core/utils'; import {ElectricityChart} from '../../../../@core/data/electricity'; @Component({ selector: ...
import * as path from 'path' import * as vscode from 'vscode' import {promises as fs, constants as fsconstants} from 'fs' import {parse} from 'groq-js' import {Config, loadConfig} from './config/findConfig' import {GroqContentProvider} from './providers/content-provider' import {GROQCodeLensProvider} from './providers/...
/** @jsx jsx */ import { jsx } from '@udecode/plate-test-utils'; import { PlateEditor } from '../../../../types/PlateEditor'; import { getNode } from '../../../queries/index'; jsx; const input = (( <editor> <hp> test <cursor /> </hp> </editor> ) as any) as PlateEditor; it('should be', () => ...
// --------------------------------------------------------------------------------------------------------------------- // node-kisl | Copyright (C) 2020 eth-p | MIT License // https://github.com/eth-p/node-kisl // --------------------------------------------------------------------------------------------------------...
import React from "react" import { connect } from "react-redux" import { Dispatch, bindActionCreators } from "redux" import { RootState } from "@src/features" import { withDataEntry } from "../../components/base/BaseDataEntry" import { ITaskInitialValues, ITask } from "../../service/models/ITask" import { TaskForm } fr...
import { InjectionToken } from 'injection-js'; import { Transform } from '../../../brocc/transform'; import { TransformProvider, provideTransform } from '../../../brocc/transform.di'; import { stylesheetTransform } from './stylesheet.transform'; export const STYLESHEET_TRANSFORM_TOKEN = new InjectionToken<Transform>(`...
/* eslint-disable @typescript-eslint/camelcase */ import '@formatjs/intl-numberformat/polyfill' import '@formatjs/intl-numberformat/locale-data/en' import '@formatjs/intl-numberformat/locale-data/es' import IntlMessageFormat from 'intl-messageformat' import {parse} from '@formatjs/icu-messageformat-parser' import {form...
import { DecimalPipe, DOCUMENT } from '@angular/common'; import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Inject, Input, OnChanges, OnDestroy, Optional, Output, Renderer2, SimpleChange, SimpleChanges, TemplateRef, ViewEncapsulatio...
// Copyright 2020-2022 OnFinality Limited authors & contributors // SPDX-License-Identifier: Apache-2.0 export * from './validator'; export * from './rules';
import { Component } from '@angular/core'; import { STRINGS } from 'assets/text/strings'; @Component({ selector: 'ngx-footer', styleUrls: ['./footer.component.scss'], template: ` <span class="created-by"> <b><a href="https://mainflux.com" target="_blank">Mainflux</a></b> 2021 </span> <div class...
import autoprefixer from 'autoprefixer'; // @ts-ignore import postcssCustomMedia from 'postcss-custom-media'; // @ts-ignore import postcssMediaVariables from 'postcss-media-variables'; import postcssPresetEnv from 'postcss-preset-env'; import { RuleSetUseItem } from 'webpack'; import { BROWSERLIST_MODERN } from '../ot...
import { MatchExtended, RepeatMatch } from '../../types' import scoring from '../../scoring' import Matching from '../../Matching' interface RepeatMatchOptions { password: string omniMatch: Matching } /* *------------------------------------------------------------------------------- * repeats (aaa, abcabcabc) -...
import * as core from '@actions/core' import * as exec from '@actions/exec' import * as io from '@actions/io' import * as fs from 'fs' async function run(): Promise<void> { try { // Grab the nice name let tag = '' await exec.exec('git', ['describe', '--exact-match', 'HEAD'], { silent: true, l...
import { projectList } from '../../pages/project/list.po'; import { projectView } from '../../pages/project/view.po'; import { projectCreate } from '../../pages/project/create.po'; import { logIn } from '../../pages/login.po'; import { Project } from '../../../../src/app/shared/models/project'; import users from '../....
// The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angul...
import * as path from 'path'; import * as assert from 'assert'; import * as ttm from 'vsts-task-lib/mock-test'; describe('NuGetPublisher Suite', function () { before(() => { }); after(() => { }); it('publish single package internally', (done: MochaDone) => { this.timeout(1000); ...
import { window, ExtensionContext, InputBoxOptions } from 'vscode'; import Logger from '../utils/logger'; import { StandardJSONOutput, IStandardJSONContractsQP, StandardCompiledContract, isStdContract, CombinedJSONOutput, isComContract, ICombinedJSONContractsQP, CombinedCompiledContract, ConstructorI...
import styled from 'styled-components'; import screen from '../../media/mediaQueries'; import { motion } from 'framer-motion'; export const AlignCenterWrapper = styled.div` display: flex; flex-flow: row nowrap; justify-content: center; width: 100%; padding-top: 18em; padding-bottom: 20vh; `; export const ...
import { Annotated } from './Annotated'; export class InvalidCardinalityError extends Error implements Annotated { specReferences = [ 'http://hl7.org/fhir/R4/elementdefinition-definitions.html#ElementDefinition.min' ]; constructor(public min: number, public max: string) { super(`The min must be <= max, b...
import { Field } from '@nestjs/graphql'; import { ObjectType } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; import { ConfigurationDescriptionKind } from '../prisma/configuration-description-kind.enum'; import { ConfigurationDescriptionCountAggregate } from './configuration-description-count-aggregate....
/* * Copyright 2021 The University of Manchester * * 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 ...
import i18n from '@/i18n' import { Column, RowSeries, SimpleSeriesNFT } from './types' import formatBalance from '@/utils/formatBalance' import store from '@/store' import { getVolume, pairListBuyEvent, after, between } from '@/utils/math' import { startOfToday, subDays } from 'date-fns' export const columns: Column[...
import { forwardRef, Icon, IconProps } from '@queelag/react-core' import React, { ForwardedRef } from 'react' /** * Usage: * * ```typescript * import { IconPercent } from '@queelag/react-feather-icons' * * function App() { * return <IconPercent /> * } * ``` * * @category Component */ export const IconPer...
import { FaGithub } from "react-icons/fa"; import { FiX } from "react-icons/fi"; import { signIn, signOut, useSession } from "next-auth/client"; import styles from "./styles.module.scss"; export function SignInButton() { const [session] = useSession(); return session ? ( <button className={styles.signI...
import { ReportConfiguration } from "../config/ReportConfiguration"; import { PipelineType } from "../config/pipeline/PipelineType"; import { EnumUtils } from "../utils/EnumUtils"; const now = require("performance-now") export class TelemetryLogger { public static readonly TELEMETRY_LINE = "##vso[telemetry.publi...
import * as React from 'react'; import RuleMatrix, { RuleMatrixPropsOptional } from './components/RuleMatrix'; // import DataTable from './DataTable'; // import { ColorType, labelColor } from './components/Painters/Painter'; import { RuleList, ConditionalStreams, Streams, Support, SupportMat } from './models'; // imp...
import type { LocaleDefinition } from '../..'; import address from './address'; import company from './company'; import internet from './internet'; import name from './name'; import phone_number from './phone_number'; const de_CH: LocaleDefinition = { title: 'German (Switzerland)', address, company, internet, ...
import { Measure } from './Measure'; import { MeasureAction } from './MeasureAction'; export { Measure, MeasureAction };
import Clipboard from '@ckeditor/ckeditor5-clipboard'; import { Plugin } from '@ckeditor/ckeditor5-core'; import { Enter, ShiftEnter } from '@ckeditor/ckeditor5-enter'; import { SelectAll } from '@ckeditor/ckeditor5-select-all'; import { Typing } from '@ckeditor/ckeditor5-typing'; import { Undo } from '@ckeditor/ckedit...
import { Component } from '@angular/core'; @Component({ selector: 'app-custom-directives', templateUrl: './custom-directives.component.html', styleUrls: ['./custom-directives.component.scss'], }) export class CustomDirectivesComponent { showCourses: boolean = false; constructor() {} public handleToggleCo...
export class ValidationError { public name: string private _messages: any /** * ValidationError to be used with multiple validation errors return from Ajv or other validators * @param {Object} _validationMessages dictionary of validation errors */ constructor (_validationMessages) { this._me...
import React from "react"; import { BaseFactory } from "fx-schema-form-core"; import { DefaultProps } from "fx-schema-form-react/libs/components"; import { UtilsHocOutProps } from "fx-schema-form-react/libs/hocs/utils"; import { RC } from "fx-schema-form-react/libs/models"; import { ConditionHocOutProps, ConditionHoc...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {ComputedStyleProperty} from '../../../../front_end/elements/ComputedStyleProperty.js'; import {assertShadowRoot, renderElementIntoDOM} from '../he...
import { ActionType } from '@/types/core' import ActionTypes from '@/constants/action-types' import formStateReducer, { defaultState } from '../form-state' describe('formStateReducer', () => { it('should return default state if action not matched', () => { const newState = formStateReducer(undefined, { type: 'UN...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LoginComponent } from './login/login.component'; import { RegisterComponent } from './register/register.component'; import { ForgotPasswordComponent } from './forgotpassword/forgot.component'; import { AuthCompon...
export { default } from './RxTable'; export { useRxTable } from './RxTable.context'; export { RxTableConsumer } from './RxTable.context'; export type { RxTableContext } from './RxTable.context'; export { useRxTableFactory } from './RxTable.factory'; export type { RxTableFactory, UseRxTableFactoryConfig...
export default { screenBackground: '#EEE', headerColor: "#FFF", textColor: '#333', icons: '#000', }
<TS language="it" version="2.1"> <context> <name>AddNewAddressDialog</name> <message> <source>Dialog</source> <translation>Finestra di dialogo</translation> </message> <message> <source>New Address</source> <translation>Nuovo Indirizzo</translation> </message> <me...
import React, { useState } from 'react' import path from 'path' import pdfjs from 'pdfjs-dist' import cn from 'classnames' import RestoreSuccess from './RestoreSuccess' import RestoreError from './RestoreError' import { doImportPrivKeys } from '../common/utils' import { Refresh, PDF } from 'common/components/Icons' im...
import * as React from 'react' import createSvgIcon from './utils' //tslint:disable export default createSvgIcon( <g> <path fill="none" d="M-618-568H782v3600H-618zM0 0h24v24H0z" /> <path d="M22 5.7l-4.6-3.9-1.3 1.5 4.6 3.9L22 5.7zM7.9 3.4L6.6 1.9 2 5.7l1.3 1.5 4.6-3.8zM12.5 8H11v6l4.7 2.9.8-1.2-4-2.4V8zM12 4c...
namespace sharp.Serene.BasicSamples { /** * Adding Responsive attribute makes this dialog use full screen in mobile devices. */ @Serenity.Decorators.registerClass() @Serenity.Decorators.responsive() @Serenity.Decorators.maximizable() export class ResponsiveDialog extends Serenity.EntityD...
// start main console.log('start main'); /** * Some predefined delays (in milliseconds). */ export enum Delays { Short = 500, Medium = 2000, Long = 5000, } /** * Returns a Promise<string> that resolves after given time. * * @param {string} name - A name. * @param {number=} [delay=Delays.Medium] - Number o...
import './db/mysql'; import './axiosClient';
/** * @license * Copyright 2019 Dynatrace LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
import {Role} from './role.entity'; /** * 权限信息接口层 */ export interface IRoleService { /** * 保存权限信息 * @param user */ save(role: Role): Promise<Role>; /** * 修改权限信息 * @param user */ update(role: Role): Promise<number>; /** * 删除权限信息 * @param id */ de...
import React, { FC, useState } from "react"; import useSound from 'use-sound'; import { MdVolumeDown, MdVolumeUp } from 'react-icons/md'; import nudgePersonSound from '../sound/rising-pops.mp3'; import toggleCardSound from '../sound/toggle-card.mp3'; import matchSound from '../sound/match.wav'; const VOLUME = 'PlaySou...
import { useQuery } from 'react-query'; import { ONE_DAY } from 'services/constants/staleTime'; import { getSearchResults } from '../../../../modules/results/connector'; interface Args { language: string; } interface CountResult { treksCount: number; touristicContentsCount: number; } const useCounter = ({ lang...
import { GeneralSteps, Logger, Pipeline } from '@ephox/agar'; import { UnitTest } from '@ephox/bedrock'; import { TinyApis, TinyLoader, TinyUi } from '@ephox/mcagar'; import ListsPlugin from 'tinymce/plugins/lists/Plugin'; import ModernTheme from 'tinymce/themes/modern/Theme'; UnitTest.asynctest('browser.tinymce.plug...
// Type definitions for Apple Pay JS 1.0 // Project: https://developer.apple.com/reference/applepayjs // Definitions by: Martin Costello <https://martincostello.com/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * A session object for managing the payment process on the web. */ declare clas...
import * as path from '@stoplight/path'; import { normalize } from '@stoplight/path'; import { Dictionary } from '@stoplight/types'; import * as fg from 'fast-glob'; import { escapeRegExp } from 'lodash'; import * as fs from 'fs'; import * as tmp from 'tmp'; import { applyReplacements, IS_WINDOWS, normalizeLineEndings,...
import {Bucket} from '@influxdata/influx' describe('Buckets', () => { beforeEach(() => { cy.flush() cy.signin().then(({body}) => { const { org: {id}, bucket, } = body cy.wrap(bucket).as('bucket') cy.fixture('routes').then(({orgs}) => { cy.visit(`${orgs}/${id}/...
import type { Logic } from "./types" export interface KeywordInput { include: string[] includeLogic: Logic exclude: string[] excludeLogic: Logic } export const buildKeywordFilter = ( field: string, keywordFilter?: KeywordInput ) => { const filter: { [key: string]: string } = {} if (keywordFilter) { ...
export default rehypePrismCommon; /** * Rehype prism plugin that highlights code blocks with refractor (prismjs) * Supported languages: https://github.com/wooorm/refractor#data * * Consider using rehypePrismGenerator to generate a plugin * that supports your required languages. */ declare const rehypePrismCommon:...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {FormattedMessage} from 'react-intl'; import {AdminConfig, ClientLicense} from 'mattermost-redux/types/config'; import {TermsOfService} from 'mattermost-redux/types/terms_o...
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, RouterStateSnapshot } from '@angular/router'; import { Store } from '@ngrx/store'; import { Observable, of } from 'rxjs'; import * as fromApp from '../../store'; import { AuthService } from '../security/auth/auth...
import { NextFunction } from 'express'; import fs from 'fs'; import path from 'path'; import { IProduct, IPromotions } from '../utils/interfaces/products'; class CreatePromotions { public async execution (product: IProduct, prom: boolean, next: NextFunction) { const dataPath = path.resolve(__dirname, '..', 'dat...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { MainService } from './services/main.service'; import { AppComponent } from './app.component'; import { LoadingComponent } from './loading/loading.component'; import { HomeComponent } from './home/home.component'...
import { WALL } from './wall.model'; export interface HISTORY { walls: WALL[]; rooms: any[]; data: any[]; }
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { StudentsInternshipByYearLocComponent } from './students-internship-by-year-loc.component'; describe('StudentsInternshipByYearLocComponent', () => { let component: StudentsInternshipByYearLocComponent; let fixture: ComponentFixture<...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. export { AdaptiveMenu, IAdaptiveMenuProps, AdaptiveMenuRenderStyle } from "./AdaptiveMenu"; export { AdaptiveMenuItem } from "./AdaptiveMenuItem";
import { BalanceSheet } from "./BalanceSheet"; export class OpeningBalanceSheet extends BalanceSheet { }
import "firebase/firestore"; import {AudienceList, Note, NoteDocument} from "../types"; import {Button, Col, Form, Row} from "react-bootstrap"; import {DEFAULT_FILTER, MAX_NOTES} from "../constants"; import React, {useEffect, useState} from "react"; import {canShow, createDoc} from "../utils/helper"; import NotesList f...
// ------------------------------------------------------------------------------ // ----- atLeast1Req.modal.ts --------------------------------------------------- // ------------------------------------------------------------------------------ // copyright: 2017 WiM - USGS // authors: Tonia Roddick USGS Wisconsin...
/* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { Common } from "../../components/common_components/common"; import { CONSTANTS } f...
/** @jsx jsx */ // eslint-disable-next-line @typescript-eslint/no-unused-vars import * as React from 'react' import { jsx } from 'theme-ui' import { Link } from 'gatsby' import { Parallax } from '@react-spring/parallax' import { Themed } from 'theme-ui' import Layout from '@lekoarts/gatsby-theme-cara/src/components/la...
import type { BackstackEntry, NavigationContext, NavigationEntry, NavigationTransition } from './frame-interfaces'; import { NavigationType } from './frame-interfaces'; import { Page } from '../page'; import { View, CustomLayoutView } from '../core/view'; import { Property } from '../core/properties'; export { Navigati...
import { Promise } from "./Promise"; export interface IXHROptions { type?: string; url: string; user?: string; password?: string; headers?: any; data?: any; responseType?: string; allowRedirect?: boolean; customRequestInitializer?: (request: XMLHttpRequest) => void; } export interface IXHRProgress { type: '...
// Type definitions for @ag-grid-community/core v24.0.0 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ag-grid/> import { BeanStub } from "../context/beanStub"; export declare class UndoRedoService extends BeanStub { private gridOptionsWrapper; private focusController; ...
import { CRUUDConnectorFn, CRUUDFns, CRUUDRequest, CRUUDResponse, } from "../types"; import { createCruudFns } from "../util"; import { url } from "./url"; describe("getParams", () => { const dummyReq: CRUUDConnectorFn = (req?: CRUUDRequest) => Promise.resolve({ data: req }); it("should accept URL wit...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { Store, ScannedActionsSubject } from '@ngrx/store'; import { AppState } from 'src/app/state/reducers'; import { Subject } from 'rxjs'; import { ofType } from '@ngrx/effects'; import...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { MediaItemComponent } from './media-item.component'; @NgModule({ imports: [ BrowserModule ], declarations: [ AppComponent, MediaItemComponent ...
import { Component, OnInit } from '@angular/core'; import { AppareilService } from '../services/appareil.service'; import { Subscription } from 'rxjs-compat'; @Component({ selector: 'app-appareil-view', templateUrl: './appareil-view.component.html', styleUrls: ['./appareil-view.component.scss'] }) export class A...
/// <reference path="references.ts"/> /* @internal */ namespace ts.formatting { export const enum FormattingRequestKind { FormatDocument, FormatSelection, FormatOnEnter, FormatOnSemicolon, FormatOnClosingCurlyBrace } }
export { default } from "./Step1";
/* eslint-disable @typescript-eslint/no-unused-vars */ import { ChargingProfile } from '../../../types/ChargingProfile'; import SiteArea from '../../../types/SiteArea'; import SmartChargingIntegration from '../SmartChargingIntegration'; import Tenant from '../../../types/Tenant'; export default class DummySapSmartChar...
import 'discord.js' import { REST } from '@discordjs/rest' import { Routes } from 'discord-api-types/v9' import { ApplicationCommand, ApplicationCommandPermissionData, ButtonInteraction, Client, Collection, CommandInteraction, ContextMenuInteraction, Intents, Interaction, MessageComponentInteraction, SelectMenuInteract...
<TS language="fr" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Cliquer à droite pour modifier l'adresse ou l'étiquette</translation> </message> <message> <source>Create a new address</source> ...
interface Action { type: string; payload: Record<string, any>; } export const compilerInitialState = { compiler: { mode: '', args: null }, editor: { mode: '' } } export const compilerReducer = (state = compilerInitialState, action: Action) => { switch (action.type) { case 'SET_COMPILER_M...
import { useCategoryManageHandler } from "../utils/useCategoryManageHandler"; import { assignEntryEvents, pubSubTracker } from "./mocks/lifecycleHooks"; import models from "./mocks/contentModels"; import { useContentGqlHandler } from "../utils/useContentGqlHandler"; import { CmsGroup, CmsModel } from "~/types"; descri...
import { CommandParams } from "../../helpers/interfaces"; import { Command } from "./command"; // For testing, command that do literally nothing export default class NullCommand extends Command { constructor(params: CommandParams) { super(params); } public async runNoClient(): Promise<void> { ...
import * as _ from "lodash"; import { autoinject } from "aurelia-framework"; import { ILog, LoggerFactory } from "@ssv/au-core"; import { Hero } from "./hero.model"; import { HEROES } from "./mock-heroes"; const id = "heroService"; @autoinject export class HeroService { private logger: ILog; constructor( logge...
import { Rekognition } from "../Rekognition"; import { RekognitionClient } from "../RekognitionClient"; import { GetFaceDetectionCommand, GetFaceDetectionCommandInput, GetFaceDetectionCommandOutput, } from "../commands/GetFaceDetectionCommand"; import { RekognitionPaginationConfiguration } from "./Interfaces"; im...
import React from 'react' import Card from 'shared/components/Card' import { Header, Segment, Price, CompanyIcon, InfoBlock, Title, Content, Wrapper } from './styled' import moment from 'moment' export default function TicketCard({ ticket }) { const getSegmentTime = (start: string, duration: number) => { const d...
import { IAudioContext, IMediaStreamAudioSourceNode, IMediaStreamAudioSourceOptions, IMinimalAudioContext } from '../interfaces'; export type TMediaStreamAudioSourceNodeConstructor = new <T extends IAudioContext | IMinimalAudioContext>( context: T, options: IMediaStreamAudioSourceOptions ) => IMediaStreamAudio...
import { ServiceInputTypes, ServiceOutputTypes, StorageGatewayClientResolvedConfig } from "../StorageGatewayClient"; import { StartAvailabilityMonitorTestInput, StartAvailabilityMonitorTestOutput } from "../models/models_0"; import { deserializeAws_json1_1StartAvailabilityMonitorTestCommand, serializeAws_json1_1Sta...
import React from 'react'; import { Trans } from '@lingui/macro'; import { useToggle } from 'react-use'; import { Flex, UnitFormat, More, Table } from '@hddcoin/core'; import { useHistory } from 'react-router'; import { ViewList as ViewListIcon, ViewModule as ViewModuleIcon, Payment as PaymentIcon, Power as Pow...
export { default as BatteryAlert } from './utils/createThemedIcon';
/** * 远端发来的文件 */ export interface ReceivingFile { /** * 文件大小 (byte)。如果文件大小不确定则为null。 */ size: number | null; /** * 文件被分割成了多少块。如果文件大小不确定则为null */ splitNumber: number | null; /** * 文件名 */ name: string; /** * 一段一段地获取文件。 * * 回调函数:err:...
import { gql } from 'apollo-server-lambda'; export default gql` scalar Date schema { query: Query } type Query { findOrders(status: Status): [Order] } enum Status { PENDING SHIPPED COMPLETE } interface Node { id: ID! } type Order implements Node { id: ID! custom...
interface JQuery { hasAttr(attr: string): boolean; CenterVerticallyInParent(): JQuery; }