text
stringlengths
10
953k
import { Button, Stack } from "@mui/material"; import { Link } from "react-router-dom"; const ViewsList: React.FC = () => { return ( <> <Stack direction="column"> <Button to="../allocations" component={Link} sx={{ colo...
//O package com.partkart //O { //O import flash.geom.Point //O import fl.motion.BezierSegment import * as PIXI from 'pixi.js' import { Global } from './Global' import { Segment } from './Segment' import { CircularArc } from './CircularArc' import { BezierSegment } from './BezierSegment' import { Biarc } from '....
import * as React from "react"; import { A11yTitleType, AlignSelfType, GapType, GridAreaType, MarginType, } from "../../utils"; export interface ChartProps { a11yTitle?: A11yTitleType; alignSelf?: AlignSelfType; gridArea?: GridAreaType; margin?: MarginType; bounds?: number[][]; color?: string | {...
import Transformer from './transformers.ts' import type { Func } from '../types.ts' import reduced from '../reduced.ts' export default class AllTransformer extends Transformer { private all = true constructor(f: Func, transformer: Transformer) { super(f, transformer) } result(acc: any): any { if (this...
export function Props(): PropertyDecorator { return function (target, propertyKey) { StorePropsMetadataUtils.set(target.constructor, propertyKey); }; } export class StorePropsMetadataUtils { private static readonly KEY = Symbol(); static set(storeType: Function, propertyKey: PropertyKey) { Reflect.def...
import { Ec2Service, Ec2TaskDefinition } from '@aws-cdk/aws-ecs'; import { ApplicationTargetGroup } from '@aws-cdk/aws-elasticloadbalancingv2'; import * as cxapi from '@aws-cdk/cx-api'; import { Construct } from 'constructs'; import { ApplicationMultipleTargetGroupsServiceBase, ApplicationMultipleTargetGroupsServic...
import { Observable } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { DatabaseConnection } from './../data/models/database-connection.model'; import { EDatabaseType } from './../data/enums/database-type.enum'; import { IDatabaseService } from './interfaces/database-service.interface'; import { ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cs" version="2.0"> <context> <name>AboutDialog</name> <message> <source>About Bitcoin Core</source> <translation>O Bitcoin Core</translation> </message> <message> <source>&lt;b&gt;Bitcoin Core&lt;/b&gt; version</source> <tr...
import { Faction } from 'factions/factionClass' import { pickEffects } from 'factions/metatagger' import { CHAOS } from 'meta/alliances' import { SKAVENTIDE } from 'meta/factions' import battle_traits from './battle_traits' import SubFactions from './subfactions' export const SkaventideFaction = new Faction( SKAVENT...
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * ListTaskDefinitionsInput shape */ export interface ListTaskDefinitionsInput { /** * <p>The full family name with which to filter the <code>ListTaskDefinitions</code> results. Specifying ...
import * as add from './add'; import * as deleteRoute from './delete'; import * as find from './find'; import * as get from './get'; import * as update from './update'; import Comms from '../../comms'; import controllerGenerator, { Result } from '../../comms/controller'; import TableController from '../../comms/table-...
/* * Copyright 2021 The Backstage Authors * * 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 ...
const c_wizard__footer_PaddingRight: {"name": "--pf-c-wizard__footer--PaddingRight"; "value": "1rem"; "var": "var(--pf-c-wizard__footer--PaddingRight)";} export default c_wizard__footer_PaddingRight
import { NextFunction, Request, Response } from 'express'; import { OCPITariff, OCPITariffDimensionType } from '../../../../../types/ocpi/OCPITariff'; import { PricingSettings, PricingSettingsType } from '../../../../../types/Setting'; import AbstractEndpoint from '../../AbstractEndpoint'; import AbstractOCPIService f...
import {Component,Input,Output} from "@angular/core"; import { AngularFireAuth } from 'angularfire2/auth'; enum Sign{ add, sub, mul, div } @Component({ template:` <div> <h1>{{title}}</h1> <input type="number" name="" (keyup)="calculate()" [(ngModel)]="num1"> <select [(ngModel)]="sign" (change)="calculate()"> <...
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; import { DeleteTrialComponentRequest, DeleteTrialComponentResponse } from "../models/models_1"; import { deserializeAws_json1_1DeleteTrialComponentCommand, serializeAws_json1_1DeleteTrialComponentCommand, } fr...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { SubmissionTypeCode } from './entities/submission-type-code.entity'; import { SubmissionTypeCodeService } from './submission-type-code.service'; import { SubmissionTypeCodeController } from './submission-type-code.control...
import {Component, HostListener, OnDestroy, OnInit} from '@angular/core'; import {NbMenuService, NbSidebarService, NbThemeService} from '@nebular/theme'; import {LayoutService} from '../../../@core/utils'; import {Observable, Subject} from 'rxjs'; import {AuthUtil} from "../../../framework/auth/auth.util"; import {XeL...
import {Pipe, Injectable, ChangeDetectorRef, OnDestroy, WrappedValue} from '@angular/core'; import {isBlank, isPresent, isPromise} from '../../src/facade/lang'; import {ObservableWrapper, Observable, EventEmitter} from '../../src/facade/async'; import {InvalidPipeArgumentException} from './invalid_pipe_argument_excep...
// *** 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 { expect } from 'chai'; import { MongoClient } from 'mongodb'; import { eventually, startShell, killOpenShells } from './helpers'; describe('e2e', function() { before(require('mongodb-runner/mocha/before')({ port: 27018, timeout: 60000 })); after(require('mongodb-runner/mocha/after')({ port: 27018 })); a...
import { Module, DynamicModule, Global } from '@nestjs/common'; import { NEST_GRPC_PROVIDER, NEST_LOADBALANCE_PROVIDER, } from '@nestcloud/common'; @Global() @Module({}) export class GrpcModule { static register(): DynamicModule { const inject = [NEST_LOADBALANCE_PROVIDER]; const grpcProvi...
declare module 'hanson'
import { IsNotEmpty } from 'class-validator'; export class BarrageDto { @IsNotEmpty() userId: number; @IsNotEmpty() userName: string; @IsNotEmpty() content: string; receivedAt: string; }
import { Module } from '@nestjs/common'; import { SubmitQuestionRecordService } from './submitQuestionRecord.service'; import { SubmitQuestionRecordController } from './submitQuestionRecord.controller'; import { MongooseModule } from '@nestjs/mongoose'; import { SubmitQuestionRecord, SubmitQuestionRecordSchema } from '...
// import './perf/perf-node'; import './perf/perf-browser'; // import './demo-boxes'
import { GuxColorSelect } from '../gux-color-select'; describe('gux-color-select', () => { it('builds', () => { expect(new GuxColorSelect()).toBeTruthy(); }); describe('render tiles', () => { it('returns the number tiles from default tiles', () => { const component = new GuxColorSelect(); ex...
import { Component, EventEmitter, Input, Output, ViewChild } from "@angular/core"; import { FormGroup } from "@angular/forms"; import { IonToggle } from "@ionic/angular"; import { DynamicFormLayout, DynamicFormLayoutService, DynamicFormValidationService, DynamicFormControlComponent, DynamicSwitchMod...
import Axios from 'axios'; import MopConsole from '../../../Tools/MopConsole'; import { IDeezerMusic } from '../../Interfaces'; import { CheckIfDeezerReqAreAllowed } from './Misc'; const LogLocation = 'Musics.Proxy.DeezerProxy.Playlist'; /** This function gets all musics of a specified playlist from deezer API. * @p...
import { Injectable } from '@angular/core'; import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AuthService } from '../shared/services'; @Injectable() export class AuthHeaderInterceptor implements HttpInterceptor { constructor(pri...
// for generating unique indices in knex generation const uniqueValidator = { type: 'object', patternProperties: { // index name definition '[A-Za-z0-9_]*': { type: 'object', properties: { columns: { type: 'array' } } } } } // for generating indices in knex...
/** * */ constructor() { super(); {{_cursor_}} }
export class HttpConfigService { prefix = "http://127.0.0.1:5000"; getPrefix() { return this.prefix; } }
// 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 {ls} from '../platform/platform.js'; import * as Root from '../root/root.js'; import * as UI from '../ui/ui.js'; // eslint-disable-next-line rules...
import iam = require('@aws-cdk/aws-iam'); import cdk = require('@aws-cdk/cdk'); import { cloudformation } from './ecr.generated'; import { CountType, LifecycleRule, TagStatus } from './lifecycle'; import { RepositoryBase } from "./repository-ref"; export interface RepositoryProps { /** * Name for this repository ...
// TypeScript Version: 2.1 import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; export default class IoIosAmericanfootball extends React.Component<IconBaseProps, any> { }
import { SmithyException as __SmithyException } from "@aws-sdk/smithy-client"; import { MetadataBearer as $MetadataBearer } from "@aws-sdk/types"; /** * <p>The address that you want the Snow device(s) associated with a specific job to * be shipped to. Addresses are validated at the time of creation. The addres...
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import { StandardProps, omitProps } from '../../util/component-types'; import { lucidClassNames } from '../../util/style-helpers'; import Table from '../Table/Table'; const cx = lucidClassNames.bind('&-ScrollTable'); const { object...
import React, { forwardRef } from 'react'; import type { IconBaseProps } from '../icon/IconBase'; import IconBase from '../icon/IconBase'; const Mouse3 = forwardRef<HTMLSpanElement, IconBaseProps>(({ svgProps, ...restProps }, ref) => { return ( <IconBase aria-label="mouse3" {...restProps} ref={ref}> <svg x...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-menu', templateUrl: './menu.component.html', styleUrls: ['./menu.component.scss'] }) export class MenuComponent implements OnInit { constructor() { } ngOnInit() { } }
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. export const SDK_VERSION: string = "1.0.0-preview.2";
import { Module, Global, Type, Logger } from '@nestjs/common'; import { map } from 'lodash'; import * as Knex from 'knex'; import { Model, ModelClass } from 'objection'; import * as knexConfig from './knex'; import * as fs from "fs" import * as path from "path" export const ALL_MODELS = fs.readdirSync(path.join(path.d...
/* * @Author: 焦质晔 * @Date: 2021-02-23 21:56:33 * @Last Modified by: 焦质晔 * @Last Modified time: 2021-10-18 09:17:27 */ import { defineComponent } from 'vue'; import { noop } from './utils'; import type { JSXNode, AnyObject } from '../../_utils/types'; import Divider from '../../divider'; export default defineComp...
import { MockedProvider, MockedResponse } from "@apollo/client/testing"; import { RenderFakeToastContext } from "context/__mocks__/toast"; import { getSpruceConfigMock } from "gql/mocks/getSpruceConfig"; import { SPAWN_VOLUME } from "gql/mutations"; import { GET_MY_HOSTS, GET_SUBNET_AVAILABILITY_ZONES, GET_USER, ...
import { BrowserModule } from "@angular/platform-browser"; import { NgModule, LOCALE_ID } from "@angular/core"; import { NgbModule } from "@ng-bootstrap/ng-bootstrap"; import { HttpClientModule, HTTP_INTERCEPTORS } from "@angular/common/http"; import { ReactiveFormsModule, FormsModule } from "@angular/forms"; import {...
/** * @file WashingMachine 洗衣机 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {ISvgIconProps, IconWrapper} from '../runtime'; export default IconWrapper('washing-machine', (props: ISvgIconProps) => ( '<?xml version="1.0" encoding="UTF-8"?>' ...
/* * 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...
export class TermsConditionsModel { /** * Terms (title) */ public Term: string; /** * Conditions to agree to */ public Condition: string; }
import { Injectable, Inject } from '@nestjs/common'; import { IndicacionEspecial } from '../entities/indicacion-especial'; import { Sequelize } from 'sequelize-typescript'; import { IndicacionEspecialGateway } from '../gateway/indicacion-especial.gateway'; @Injectable() export class IndicacionEspecialService { cons...
import { Test } from '@nestjs/testing' import { TasksService } from './tasks.service'; import { TaskRepository } from './task.repository'; import { GetTasksFilterDto } from './dto/get-tasks-filter.dto'; import { TaskStatus } from './task-status.enum'; import { NotFoundException } from '@nestjs/common'; const createTas...
<TS language="bg" 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> <trans...
/** * @typedef {import('unist').Node} Node * @typedef {import('unist').Parent} Parent * @typedef {import('unist').Literal} Literal * @typedef {Object.<string, unknown>} Props * @typedef {Array.<Node>|string} ChildrenOrValue * * @typedef {(<T extends string, P extends Record<string, unknown>, C extends Node[]>(ty...
import React, { useEffect, useState } from 'react' import styled, { keyframes } from 'styled-components' import { Colors, SPACING_LENGTHS } from './common/style-constants' import classNames from 'classnames' import { faAngleRight } from '@fortawesome/free-solid-svg-icons' import Settings from './right-sidebar/Settings'...
import {Pipe, PipeTransform} from '@angular/core'; import {QueryStage} from '../../model/queries/query-stage.model'; @Pipe({ name: 'QueryStageLast' }) export class QueryStageLast implements PipeTransform { public transform(qsList: QueryStage[], queryStage: QueryStage): boolean { return qsList.indexOf(querySta...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { CustomerComponent } from './customer.component'; import { CustomerOrdersComponent } from './customer-orders.component'; import { CustomerDetailsComponent } from './customer-details.component'; import { Customer...
import { Controller } from '@nestjs/common'; import { ApiUseTags } from '@nestjs/swagger'; import { Crud, CrudController } from '@nestjsx/crud'; import { Launch } from '../../models'; import { LaunchService } from '../../services/launch/launch.service'; @Crud({ model: { type: Launch, }, query: { sort: [{...
export * from "./CreateApplicationCommand"; export * from "./CreateEnvironmentCommand"; export * from "./CreateRouteCommand"; export * from "./CreateServiceCommand"; export * from "./DeleteApplicationCommand"; export * from "./DeleteEnvironmentCommand"; export * from "./DeleteResourcePolicyCommand"; export * from "./De...
// Copyright 2019 Google 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import('./trPlugin.js'); import('./be-observant.js');
import { DOCUMENT } from '@angular/common'; import { AfterViewInit, Directive, ElementRef, EventEmitter, HostBinding, Inject, Input, NgZone, OnDestroy, OnInit, Optional, Output, Renderer2, Self } from '@angular/core'; import { fromEvent, Subject, Subscription } from 'rxjs'; import { DragDropService } from '../servi...
import config from '../../../config'; import { AuthService } from '../../../services'; export default (router, _opts, done) => { router.post( '/', { preValidation: [router.rateLimit()], }, async (req, res) => { if (!config.opinsys.enabled) { return res.status(403).send({ ...
import { Module } from '@nestjs/common'; import { DepartmentService } from './department.service'; import { DepartmentController } from './department.controller'; import { CommonModule } from 'src/common/common.module'; @Module({ providers: [DepartmentService], controllers: [DepartmentController], imports: [Comm...
/* eslint-disable jsx-a11y/accessible-emoji */ import React from 'react'; import { Group } from '@visx/group'; import { Glyph as CustomGlyph, GlyphCircle, GlyphCross, GlyphDiamond, GlyphSquare, GlyphStar, GlyphTriangle, GlyphWye, } from '@visx/glyph'; import { LinePath } from '@visx/shape'; import genDa...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_MX" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ShopFit</source> <translation type="unfinished"/> </message> <message> <location lin...
import React from 'react'; import { Card, CardType } from './Card'; const sizeTable = { lg: 1, md: 0.75, sm: 0.5 }; export interface Cards { cards: CardType[]; size: 'lg' | 'md' | 'sm'; } export const Cards = ({ cards, size = 'lg' }: Cards) => { const step = 30; const breakAt = 6; return ( ...
import { BufferUsage } from "./types"; export declare type ElementArray = number[] | [number, number][] | [number, number, number][] | number[][]; export declare enum ElementPrimitive { POINT_LIST = 0, LINE_LIST = 1, LINE_LOOP = 2, LINE_STRIP = 3, TRIANGLE_LIST = 4, TRIANGLE_STRIP = 5, TRIAN...
/** * @license * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE */ import { ComputedRef, type Ref, type WatchStopHandle, computed, inject, onBeforeUnmount, ref, watch } from 'vue' import { useSharedFocusMon...
import * as vscode from 'vscode' import * as path from 'path' import * as process from 'process' import {Commander} from './commander' import {LaTeXCommander} from './components/commander' import {Logger} from './components/logger' import {BuildInfo} from './components/buildinfo' import {Manager} from './components/ma...
import { useState } from 'react' import '../styles/tasklist.scss' import { FiTrash, FiCheckSquare } from 'react-icons/fi' interface Task { id: number; title: string; isComplete: boolean; } export function TaskList() { const [tasks, setTasks] = useState<Task[]>([]); const [newTaskTitle, setNewTaskTitle] = ...
/********************************************************************* * Copyright (c) Intel Corporation 2021 * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ const deviceFixtures = { totalCount: 100 } export { deviceFixtures }
import { STATES_DATA } from '../../common/states'; import { onlyNumbers } from '../../helpers'; export const VALID_AREA_CODES = Object.keys(STATES_DATA).reduce( (acc, state) => acc.concat((STATES_DATA as any)[state].areaCodes), [] ) as number[]; export const PHONE_MIN_LENGTH = 10; export const PHONE_MAX_LENGTH =...
import { Github, Twitter, Youtube, Unsplash, Instagram, } from 'styled-icons/boxicons-logos'; const Icons: { [key: string]: any } = { Github, Twitter, Youtube, Unsplash, Instagram, }; export default Icons;
export const API_URL = process.env.API_URL || 'https://www.mediawiki.org/w/api.php'; export const MAX_WORKERS = parseInt(process.env.MAX_WORKERS ?? '') || 4; export const MAX_REQUEST_PRE_SECOND = parseInt(process.env.MAX_REQUEST_PRE_SECOND ?? '') || MAX_WORKERS * 5; export const MAX_RETRY = parseInt(process.env.MAX_RET...
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 { isEqual, uniq } from 'lodash'; import { StoreBase } from '../src/StoreBase'; import { warnIfAutoSubscribeEnabled, autoSubscribeWithKey, AutoSubscribeStore, disableWarnings, autoSubscribe, key, } from '../src/AutoSubscriptions'; import { assert, formCompoundKey } from '../src/utils'; e...
import { app, BrowserWindow, ipcMain, Menu, nativeImage, screen, Tray } from 'electron'; import * as path from 'path'; import * as url from 'url'; import * as os from 'os'; let serve; let testnet; const args = process.argv.slice(1); serve = args.some(val => val === "--serve" || val === "-serve"); testnet = false; // T...
import React from 'react'; import { render, screen } from '@testing-library/react'; import '@testing-library/jest-dom/extend-expect'; import Ability from './Ability'; describe('<Ability />', () => { test('it should mount', () => { render(<Ability />); const ability = screen.getByTestId('Ability'); ...
import * as pify from 'pify'; function assert(actual: string, expected: string): void { if (actual !== expected) { throw new Error(`${JSON.stringify(actual)} !== ${JSON.stringify(expected)}`); } } const fs = { readFile: (file: string, callback: Function) => { let result: any = undefined; ...
import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); }); it('should create the app', ()...
export class DiceWrapper { constructor( public sum: number = 0, public rolls: { [id: string]: number[] } = {} ) { } toString(): string { let result = ''; for (const formula of Object.keys(this.rolls).reverse()) { result = result.concat(`${formula}(`); ...
// *** 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"; /*...
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 ABOUT THIS NODE.JS EXAMPLE: This example works with AWS SDK for JavaScript version 3 (v3), which is pending release. The preview version of the SDK is available at https://github.com/aws/aws-sdk-js-v3. The 'SDK f...
import { LoanApplicationService } from 'src/app/shared/loan-application.service'; import { UserService } from 'src/app/shared/user.service'; import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { MatSnackBar } from '@angular/material/snack-bar'; import { NgxSpinnerService ...
import { Accessor, Identifier, isAccessorString } from "../types"; /** * Uses an accessor to access a chunk of data */ export function access<T, U, V>( data: T, accessor: Accessor<T, U, V> | undefined, guard: (val: any) => val is U, meta?: V ): U | null { if (accessor) { if (isAccessorString(accessor))...
import { configureStore, combineReducers, Action } from '@reduxjs/toolkit' import ReduxThunk, { ThunkAction } from 'redux-thunk' import patient from '../patients/patient-slice' import patients from '../patients/patients-slice' import title from '../page-header/title-slice' import user from '../user/user-slice' const r...
export interface Cell { name: string; value: any; align: 'left' | 'center' | 'right'; } export interface Column { name: string; type: string; width: number; }
// import { ComponentFixture, TestBed } from '@angular/core/testing'; // import { QuoteComponent } from './quote.component'; // describe('QuoteComponent', () => { // let component: QuoteComponent; // let fixture: ComponentFixture<QuoteComponent>; // beforeEach(async () => { // await TestBed.configureTestin...
/** * Copyright 2019 Simon Edwards <simon@simonzone.com> */ import { MonospaceFontMetrics } from "./MonospaceFontMetrics"; import { FontAtlas } from "./FontAtlas"; import { FontAtlasImpl } from "./FontAtlasImpl"; import { Disposable } from "./Disposable"; export class FontAtlasRepository { private _map = new Ma...
export const sleep = (time: number) => new Promise((resolve) => { setTimeout(resolve,time) })
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig, resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver"; import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length"; import { getHostHeaderPlugin, HostHeaderInputConfi...
import { Observable } from "rxjs/Observable"; export declare class ButtonHubService { private _previousBtnClicked; readonly previousBtnClicked: Observable<any>; private _nextBtnClicked; readonly nextBtnClicked: Observable<any>; private _dangerBtnClicked; readonly dangerBtnClicked: Observable<any...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { ApproxStructure, Assertions, Chain, GeneralSteps, Guard, Log, Pipeline, UiFinder } from '@ephox/agar'; import { UnitTest } from '@ephox/bedrock-client'; import { TinyApis, TinyLoader, TinyUi } from '@ephox/mcagar'; import { Body } from '@ephox/sugar'; import Editor from 'tinymce/core/api/Editor'; import LinkP...
import { useEffect, useState } from "react"; export default function useIsFontLoaded() { const [isFontLoaded, setIsFontLoaded] = useState(false); useEffect(() => { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore document.fonts.ready.then(function () { ...
import { FocusMonitor } from '@angular/cdk/a11y'; import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { ElementRef, HostBinding, Input, OnDestroy, Optional, Self } from '@angular/core'; import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, NgControl } from '@angular/forms'; import { MatF...
import { html, LitElement } from "lit"; import { customElement } from "lit/decorators.js"; import { BaseContent } from "./BaseContent"; @customElement("not-found") export class NotFound extends BaseContent { authorized(): boolean { return true; } render_me(): unknown { return html` <h1>404</h1> <p>...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AddEditComponent } from './add-edit/add-edit.component'; import { ListComponent } from './list-component/list.component'; import { LayoutComponent } from './layout-module/layout.component'; const routes: Routes ...
import { ActionReducer } from '@ngrx/store' import { IBalanceEntities } from '../../shared/models' import { BalancesActions, BalancesActionTypes } from '../actions/balances.action' // import { balanceSort } from '../../shared/utils' export interface State { selectedBalanceSymbol: string entities?: IBalanceEntities ...
import * as b from "bobril"; import { IBaseElementDataWithChildren, BaseElement } from "./BaseElement"; export const mediaBodyStyles = { mediaBody: b.styleDef("media-body"), }; export interface IMediaBodyData extends IBaseElementDataWithChildren {} export class MediaBody extends BaseElement<IMediaBodyData> { ...