text
stringlengths
10
953k
// # Erorr middleware // sets up the error middleware 'use strict'; /* eslint-disable no-console */ // import dependencies import * as _ from 'lodash'; import { Request, Response, NextFunction, Errback } from 'express' import i18n from '../i18n'; import { NotFoundError, GeneralError, BadRequestError } from '../errors...
import { RouteInfo } from '@dolittle/vanir-react'; export class BlahViewModel { attached(routeInfo: RouteInfo) { console.log('Blah - attached'); } }
import { Declaration } from '../index'; import { StrictGraph } from '../index'; import { CommonFunction } from './functions'; import functionToParams from './functionToParams'; import { StringIndexable } from './objects'; function parseFunc(func: CommonFunction): Declaration { return { dependencies: functionToPa...
import React, { AriaAttributes } from 'react' declare module 'react' { interface ClassNamesObject { [key: string]: boolean } type ClassNames = string | (string | boolean)[] | ClassNamesObject interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> { // extends React's HTMLAttributes ...
export * from './test-utils'; export * from './mat-icon-module-mock'; export * from './query-params'; export * from './couchdb-service-mock'; export * from './notification-service-mock'; export * from './scene-factory'; export * from './drag-drop-event-factory';
import {Component} from 'angular2/core'; @Component({ selector: 'my-app', template: '<h1>Hello Kevin</h1>' }) export class AppComponent { }
import MessageCodes from './message_codes'; interface ResponseData { Message: any; IsError: boolean; StatusCode: number; CodeError: MessageCodes; } export default ResponseData;
/* GENERATED FILE */ import React, { useContext, useMemo } from 'react'; import { IconProps, IconContext } from '../lib'; import bold from '../bold/ShieldWarning'; import duotone from '../duotone/ShieldWarning'; import fill from '../fill/ShieldWarning'; import light from '../light/ShieldWarning'; import regular from '...
import { ElementRef, Renderer2, EventEmitter, OnInit, OnDestroy, ChangeDetectorRef, NgZone, Injector } from '@angular/core'; import { ControlValueAccessor, NgControl } from '@angular/forms'; import { LocalizationService } from '@progress/kendo-angular-l10n'; import { Subscription } from "rxjs"; /** * Represents the [K...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
/* * Copyright 2020 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 ...
import type { Router } from 'vue-router' import { store } from '/@/store' import { PageEnum } from '/@/enums/pageEnum' import { removeTabChangeListener } from '/@/logics/mitt/routeChange' export function createStateGuard(router: Router) { router.afterEach((to) => { if (to.path === PageEnum.BASE_LOGIN) { st...
import { LanguageCode } from '@shared/enums'; import { AppConfig } from '@shared/interfaces'; import { DefaultLogger } from '@shared/logger/default.logger'; import { LogLevel } from '@shared/logger/logger.interface'; export const DefaultConfiguration: AppConfig = { appKey: 'SuperSecretKey', port: 3000, api...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { LoggerInstance } from "winston"; export interface CentrifugoClientOptions { path: string; secret: string; id: string; onMessageCallback?: Function; logger?: LoggerInstance; } export declare const enum ConnectionStatus { DISCONNECTED = "DISCONNECTED", CONNECTING = "CONNECTING", C...
import * as dataTypes from '../dataTypes'; import { schema, t } from '../schema'; /** * The `<directive>` element * * Parent element: `<attributes>` * * Directives are like directions, but can be grouped together with attributes for convenience. This is typically used * for tempo markings at the beginning of a p...
import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, forwardRef, HostBinding, Input, OnDestroy, ViewChild, ViewEncapsulation } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { KeyUtil } ...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { WebShellModule } from '@angular-spotify/web/shell/feature'; import { getAppConfigProvider } from '@angular-spotify/web/shared/app-config'; import { authInterce...
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"; @Entity({ name: "authlog"}) export class AuthLog { @PrimaryGeneratedColumn() id: number; @Column() timeStamp: string; @Column() logDetail: string; }
import { PaymentModeService } from './../../services/payment-mode.service'; import { Component, OnInit, OnDestroy, ViewChild, ElementRef } from '@angular/core'; import { Subscription } from 'rxjs/Subscription'; import { CoolLocalStorage } from 'angular2-cool-storage'; import { BroadcastShoppingCartService } from '../.....
import styled, { keyframes } from 'styled-components' import { Box, Flex, Heading, Skeleton } from '@pancakeswap/uikit' import { LotteryStatus } from 'config/constants/types' import { useTranslation } from 'contexts/Localization' import { usePriceCakeBusd } from 'state/farms/hooks' import { useLottery } from 'state/lot...
/** * @license * Copyright 2013 Palantir Technologies, Inc. * * 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...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Honeycomb</source> <translation>Σχετικά με το Honeycomb</translat...
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; import { DynamicModule } from '@nestjs/common'; import { GraphQLModule } from '@nestjs/graphql'; import { DirectiveLocation, GraphQLDirective } from 'graphql'; export const graphqlModuleConfiguration: DynamicModule = GraphQLModule.forRoot<ApolloDrive...
import {render} from 'react-dom'; import {FunctionComponent} from 'react'; import {LocaleProvider, Message, RuntimeProvider, useLocale} from '@mfml/react-runtime'; import {AppMessages} from './gen'; import {reactRuntime} from './reactRuntime'; const LocaleSelect: FunctionComponent = () => { // The `useLocale` hook f...
export * from './CreateDao';
import { expect } from 'chai'; import { getGlobal, resetGlobal, setGlobal } from '../../index'; describe('getGlobal', () => { afterEach(resetGlobal); it('should return the global state', async () => { expect(getGlobal().value).not.to.equal(1); expect(getGlobal().value).to.equal(undefined); await setG...
import { BuffettCodeApiClientV2 } from '~/api/v2/client' import { BuffettCodeApiClientV3 } from '~/api/v3/client' import { DateParam } from '~/fiscal-periods/date-param' import { LqWithOffset } from '~/fiscal-periods/lq-with-offset' import { LyWithOffset } from '~/fiscal-periods/ly-with-offset' import { YearQuarter } f...
import { Stream } from 'xstream'; import { DOMSource, VNode } from '@cycle/dom'; import { StateSource, Reducer } from '@cycle/state'; import { RouterSource, HistoryInput } from 'cyclic-router'; export { Reducer } from '@cycle/state'; export type Component<State> = (s: Sources<State>) => Sinks<State>; export interfac...
import { useContext } from 'react'; import { ChallengeContext } from '../contexts/ChallengeContext'; import styles from '../styles/components/Profile.module.css'; export function Profile() { const { level } = useContext(ChallengeContext); return( <div className={styles.profileContainer}> <img src="http...
import * as React from 'react' import classNames from 'classnames' import { UIKit } from '../lib/UIKit' import { Align, Spinner } from './index' export interface ButtonProps extends UIKit.Props<Button> { active?: boolean large?: boolean link?: boolean loading?: boolean small?: boolean text?: boolean di...
import React from 'react' import ReactDOM from 'react-dom' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
import { GraphQLEnumType } from "graphql" export const SearchEntity = new GraphQLEnumType({ name: "SearchEntity", values: { ARTIST: { value: "Artist", }, ARTIST_SERIES: { value: "ArtistSeries", }, ARTWORK: { value: "Artwork", }, ARTICLE: { value: "Article", }...
import { $text, component, style } from '@aelea/dom' import { Behavior, behavior, O, replayLatest } from '@aelea/core' import { $Button, $column, $row, $seperator, layoutSheet } from '@aelea/ui-components' import { pallete } from '@aelea/ui-components-theme' import { chain, constant, map, merge, mergeArray, multicast, ...
import { Notification } from '../notification'; import { ContentKind } from '../../content'; export interface AddedToLibraryNotification extends Notification { readonly contentInfo: { readonly contentId: string; readonly contentTitle: string; readonly contentKind: ContentKind; }; r...
import Author from "../models/Author"; import Book from "../models/Book"; import Category from "../models/Category"; import { IBook } from "../modules/catalog/catalog.contracts"; import database from "../services/database"; import logger from "../services/logger"; (async () => { try { await database.authenticate...
import * as React from 'react' import { connect } from 'react-redux' import { RouterProps } from 'react-router' import { withRouter, RouteComponentProps } from 'react-router-dom' import { InjectedFormProps } from 'redux-form' import { APIRequest, isAPISucceeded, isAPIFailed } from '@src/apis/Core' import { KubernetesH...
import * as ECS from '..' import { Schema } from '@colyseus/schema' describe('Object pool', () => { class PooledItem extends Schema implements ECS.IPoolable { static _typeId = 1 reset() { this.isAlive = false } init() { this.isAlive = true } isAlive: boolean = false } it('sho...
import {ensureStatuses} from '../type' export const RPR = ensureStatuses({ DEATHS_DESIGN: { id: 2586, name: 'Death\'s Design', icon: 'https://xivapi.com/i/012000/012926.png', duration: 30000, }, // TODO: find out the duration on this, might be a pseudo-stance tho SOULSOW: { id: 2594, name: 'Soulsow', ...
/** * @jest-environment jsdom */ import { render, screen } from "@testing-library/react"; import React from "react"; import { FormGroup, FormLabel } from "../../src/components/Form"; describe("Form Components", () => { describe("FormLabel", () => { it("should render the label with the correct text", () => { ...
import { ICSSProperties, IExposedCSS, IOptionalColorProperties } from '../@types/types' export function combineIntoCSS(cssProperties: ICSSProperties): IExposedCSS { return { filter: combineIntoCSSFilter({...cssProperties}), display: cssProperties?.display } } export function combineIntoCSSFilter(cssPro...
/** * This file mirrors `crates/rust-analyzer/src/lsp_ext.rs` declarations. */ import * as lc from "vscode-languageclient"; export interface AnalyzerStatusParams { textDocument?: lc.TextDocumentIdentifier; } export const analyzerStatus = new lc.RequestType<AnalyzerStatusParams, string, void>("rust-analyzer/anal...
import { Tag, Space } from 'antd'; import { QuestionCircleOutlined } from '@ant-design/icons'; import React, { useState } from 'react'; import { useModel, useIntl, Link, SelectLang } from 'umi'; import Avatar from './AvatarDropdown'; // import HeaderSearch from '../HeaderSearch'; import styles from './index.less'; exp...
import { generatePageNumbers } from './sidetall'; describe('genererer sidetall', () => { test('uten ellipser for korte tallrekker', () => { expect(generatePageNumbers(1, 1)).toEqual([1]); expect(generatePageNumbers(1, 3)).toEqual([1, 2, 3]); expect(generatePageNumbers(1, 5)).toEqual([1, 2, ...
import { PostImageFile } from '../../typings/post' import { getSrc } from 'gatsby-plugin-image' export const getPostImageUrl = ( files: PostImageFile[], fileId?: string ): Nulled<string> => { if (!fileId) { return null } const file = files.find(({ id }) => id === fileId) if (file) { return getSrc...
import { expect } from "chai"; import { insertSort } from "../src"; describe("insertSort", function(): void { it("Sorted data should stay in the same order", function(): void { const getData = (): number[] => [ Number.NEGATIVE_INFINITY, Number.MIN_SAFE_INTEGER, -7, -1, 0, Num...
import { QuerySnapshotAtom, TelleryStoryBlocks } from '@app/store/block' import { Editor } from '@app/types' import { BLOCK_ID_REGX, VariableType, VARIABLE_REGEX } from '@app/utils' import * as math from 'mathjs' import { atomFamily, selectorFamily } from 'recoil' import invariant from 'tiny-invariant' const VARIABLE_...
import { debounceAnimationFrame } from 'util/debounce'; import { useCallback, useEffect, useRef, useState } from 'react'; function isTouchEvent(event: MouseEvent | TouchEvent): event is TouchEvent { return window.TouchEvent && event instanceof TouchEvent; } export function useDraggable(initialPos = { x: 0, y: 0 }) ...
import { IConnection } from './interfaces'; /** * Connection configuration. */ export default class Connection implements IConnection { constructor(conn?: IConnection) { this.loadFromObject(conn); } /** * Connection name. */ public name: string; /** * Server name. */ public server: stri...
// Copyright 2017-2020 @polkadot/app-parachains authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { UpwardMessage } from '@polkadot/types/interfaces'; import React from 'react'; import styled from 'styled-components'; import { Card, Output } from '@polkadot/react-components'; import { useTra...
import { Browser, Page, ElementHandle } from "puppeteer"; import { Auth } from "../../types/auth"; export declare const createPage: ( browser: Browser, option?: { noImages?: boolean; preLogin?: { url: string; auth: Auth; }; } ) => Promise<Page>; export declare const getNodeToString: ( pa...
// Copyright 2017-2021 @axia-js/app-staking authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { SubmittableExtrinsic } from '@axia-js/api/types'; import type { EraIndex } from '@axia-js/types/interfaces'; import type { PayoutValidator } from './types'; import React, { useEffect, useState } fro...
//Listens to all events from the browser so we can appropriate fire off selectors when needed import Selector from './selectors/selector' export interface SelectionState { mouseDown: MouseEvent | false; mouseUp: MouseEvent | false; click: MouseEvent | false; mousePosition: MouseEvent | false; curre...
import { ProviderFactory } from '@findable/editor-common'; import { doc, createEditorFactory, p, storyMediaProviderFactory, randomId, } from '@findable/editor-test-helpers'; import { stateKey as mediaPluginKey, MediaPluginState, MediaState, } from '../../../../plugins/media/pm-plugins/main'; import med...
/* * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requi...
import {Component, Input} from '@angular/core'; import {FieldDocument, FieldGeometry} from 'idai-components-2'; import {ResourcesComponent} from '../resources.component'; import {Loading} from '../../widgets/loading'; import {RelationsManager} from '../../../core/model/relations-manager'; import {DocumentReadDatastore}...
import { Injectable, NotFoundException } from '@nestjs/common'; import { Coffee } from './entities/coffee.entity'; @Injectable() export class CoffeesService { private coffees: Coffee[] = [ { id: 1, name: 'Shipwreck Roast', brand: 'Buddy Brew', flavors: ['chocolate', 'vanilla'], }, ]...
import THREE = require('three'); class Grid { private rawLineWidth: number = 1.0; private rawSize: number = 22; private lightColor: THREE.Color = new THREE.Color(0x323232); private lightMaterial: THREE.LineBasicMaterial = new THREE.LineBasicMaterial(); private darkColor: THREE.Color = new THREE.Col...
/* * 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 { Control } from 'rete'; import Vue from 'vue';; import { SearchTagDialogComponent } from '../../../dialogs/search-tag-dialog.component'; import { MatDialog } from '@angular/material/dialog'; var dialog: MatDialog; const VueTagFieldControl = Vue.component('txt-field', { props: ['readonly', 'emitter', 'ikey...
import { ModuleWithProviders } from "@angular/core"; export * from './src/app/services/image-lazy-load.service'; export * from './src/app/services/web-worker.service'; export * from './src/app/directives/image-lazy-load.directive'; export declare class ImageLazyLoadModule { static forRoot(configuredProviders: Array...
/** * Namespace: browser.permissions * Generated from Mozilla sources. Do not manually edit! */ import { Manifest } from "./manifest"; import { Events } from "./events"; export namespace Permissions { interface Permissions { /** * Optional. */ permissions?: Manifest.OptionalPer...
import { Resolver, Query } from '@nestjs/graphql'; import { CategoryEntity } from './category.entity'; import { CategoryService } from './category.service'; import { CreateCategoryDto } from './dto/category.dto'; @Resolver((of) => CategoryEntity) export class CategoryResolver { constructor(private readonly categoryS...
import { Injectable } from '@angular/core'; import { environment } from 'src/environments/environment'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable, BehaviorSubject, of } from 'rxjs'; import { DataResult } from '../models/data-result'; import { Category } from '../models/category...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AppComponent } from './app.component'; import { NotFoundComponent } from './not-found/not-found.component'; import { HomeComponent } from './home/home.component'; import { BootstrapComponentsComponent } from './bo...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2018 Realm Inc. // // 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/li...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Pricecoin</source> <translation>O Pricecoin-u</translation> </me...
// angular import { Component, Input } from "@angular/core"; // app import { LogService, AuthService, DialogService } from "~/app/modules/core/services"; import { ITrack } from "shared/models/track.model"; import { PlayerService } from "../../services"; @Component({ selector: 'track-list', templateUrl: 'track-...
import { Component } from '@angular/core'; // xplat import { AppBaseComponent } from '@team-dev-monorepo/xplat/web/features'; @Component({ selector: 'team-dev-monorepo-root', templateUrl: './app.component.html', }) export class AppComponent extends AppBaseComponent { constructor() { super(); } }
import { ALLOWED_MESSAGE_TYPES, ALLOWED_CHANNEL_NAMES, PlantStage, Color, Sequence, InternalFarmEventBodyItem } from ".."; import { VariableDeclaration, ParameterDeclaration, ParameterApplication } from "../corpus"; export declare type TimeUnit = "never" | "minutely" | "hourly" | "daily" | "weekly" | "monthly" | "yearl...
import CustomLink from './CustomLink'; export { CustomLink };
import './GroupHeader.scss'; import React from 'react'; import { DefaultButton as Button, Icon, IGroupHeaderProps, Text } from '@fluentui/react'; export interface GroupHeaderProps extends IGroupHeaderProps { color?: string; } export const GroupHeader: React.FC<GroupHeaderProps> = ({ group, onToggleCollapse, color ...
import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import Card from './Card'; export default { title: 'Components/Card', component: Card, argTypes: {}, } as ComponentMeta<typeof Card>; const Template: ComponentStory<typeof Card> = (args) => <Card {...args} />; export ...
import { Request, Response } from 'express'; import { getRepository } from 'typeorm'; import * as Yup from 'yup'; import orphanageView from '../views/orphanages_view'; import Orphanage from '../models/Orphanage'; export default { async index(request: Request, response: Response) { const orphanagesRepository = ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sl_SI" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Bitradio</source> <translation>O Bitradio</translation> </message> <message> <locati...
import { delay, exhaustMap, flatMap, ignoreElements, map, mapTo, takeLast, takeUntil, tap } from 'rxjs/operators'; import { combineLatest, concat, merge, timer } from 'rxjs'; import { Action, getType } from 'typesafe-actions'; import { ping, pong } from 'app/actions/pingPong'; import { Epic, ofType } from 'redux-observ...
import Button from '@common/components/Button'; import ButtonGroup from '@common/components/ButtonGroup'; import ButtonText from '@common/components/ButtonText'; import Form from '@common/components/form/Form'; import FormFieldTextInput from '@common/components/form/FormFieldTextInput'; import FormFieldRadioGroup from ...
import * as React from 'react' import { fireEvent, render, testA11y, userEvent } from 'testing' import Checkbox from '../' import { CheckboxGroupProps } from '../group' const classPrefix = `adm-checkbox` it('passes a11y test', async () => { await testA11y(<Checkbox>label</Checkbox>) }) test('basic - should check a...
import * as hapi from 'hapi'; import * as winston from 'winston'; import { ServerOpts } from './interfaces'; const DECORATE_TYPE = 'server'; /** * Creates the winston logger * * @param level Log level to use * @param label Apply a logging tag to all messages */ function createLogger(level: string, label: string...
/** * Copyright (c) Flavio Silva https://flsilva.com * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export * from './disabledGrey300_500';
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Show } from '../_entities/show.entity'; import { ShowsController } from './shows.controller'; import { ShowsService } from './shows.service'; @Module({ imports: [TypeOrmModule.forFeature([Show])], providers: [Sho...
export declare class PowerModule { }
/* eslint no-use-before-define: ["error", { "functions": false }] */ interface Requests { [key: string]: any; } type SizeSucces = (width: number, height: number) => void; type SizeFailure = () => void; type LoadSuccess = (ev: Event) => void; let id = 0; const requests: Requests = {}; const ImageLoader = { abort...
import { readdirSync, readFileSync } from "fs"; import { sync as glob } from "glob"; import { join, parse, resolve } from "path"; import * as React from "react"; import { renderToStaticMarkup } from "react-dom/server"; import { dependencies, description, name, version } from "../package.json"; import { sri, sriContent ...
import { createStyles, makeStyles } from "@material-ui/core/styles"; import { BuildingType, Race } from "../../../dto/enums"; import { useAssetUrl } from "../../../utils/hooks"; interface BuildingProps { type: BuildingType; raceId: Race; onMap?: boolean; noAnimation?: boolean; } function getBuildingImagePrefix(ty...
export declare type Resolvable<T> = Promise<T> | T; export declare type SourceObject<Spec> = { [key in keyof Spec]: Resolvable<Spec[key]>; }; export declare type DestinationObject<Spec> = { [key in keyof Spec]: Spec[key]; }; export declare type Destination<Spec> = Promise<DestinationObject<Spec>>; declare globa...
// Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React, { useState, useEffect, useRef } from 'react'; import styled from 'styled-components'; import { VideoTileState } from 'amazon-chime-sdk-js'; import { useAudioVideo } from '../../../provi...
import { Component } from '@angular/core'; @Component({ selector: 'nz-demo-typography-text', template: ` <span nz-typography>Ant Design (default)</span> <span nz-typography nzType="secondary">Ant Design (secondary)</span> <span nz-typography nzType="success">Ant Design (success)</span> <span nz-typ...
import { MinimalTransaction, WithdrawCommitmentJson, WithdrawDataEncoding } from "@connext/vector-types"; import { recoverAddressFromChannelMessage } from "@connext/vector-utils"; import { AddressZero } from "@ethersproject/constants"; import { Interface, defaultAbiCoder } from "@ethersproject/abi"; import { keccak256 ...
import { getCategories } from './categories'; import { DecimalCount } from '../types/displayValue'; import { toDateTimeValueFormatter } from './dateTimeFormatters'; import { getOffsetFromSIPrefix, SIPrefix, currency } from './symbolFormatters'; import { TimeZone } from '../types'; export interface FormattedValue { t...
import { Formcontrols } from './formcontrols'; import { Subscription } from 'rxjs/Subscription'; import { InsurancesService } from 'app/shared/services/insurances.service'; import { Insurance } from './../../shared/models/insurance'; import { Component, OnInit, TemplateRef } from '@angular/core'; import { BsModalServic...
import { Question } from "./question"; import { QuestionNonValue } from "./questionnonvalue"; import { JsonObject } from "./jsonobject"; import { QuestionFactory } from "./questionfactory"; import { LocalizableString } from "./localizablestring"; /** * A Model for html question. Unlike other questions it doesn't have...
import { logger, Logger, DebugSession, LoggingDebugSession, InitializedEvent, TerminatedEvent, StoppedEvent, OutputEvent, ThreadEvent, Thread, StackFrame, Scope, Source, Handles, Breakpoint } from 'vscode-debugadapter'; import { DebugProtocol } from 'vscode-debugprotocol'; import { basename } from 'path'; import C...
import * as React from 'react'; import { MouseEventType } from '@platform/react/lib/types'; export type TabstripAxis = 'x' | 'y'; export type TabFactory<D = any> = (e: TabFactoryArgs<D>) => React.ReactNode; export type TabFactoryArgs<D = any> = { index: number; data: D; axis: TabstripAxis; isVertical: boolean...
import * as React from "react"; import * as PropTypes from "prop-types"; import * as autosize from "autosize"; import * as _getLineHeight from "line-height"; const getLineHeight = _getLineHeight as (element: HTMLElement) => number | null; export namespace TextareaAutosize { export type RequiredProps = Pick< Rea...
import {Component, Input} from '@angular/core' import {Question} from "../../services/question.service"; const STYLES = require('../../../public/scss/main.scss') @Component({ selector: 'question', templateUrl: 'question.component.pug', styles: [STYLES, require('./question.component.scss')] }) export clas...
import { CardScript } from "../../types/CardScript" import { cardScripts } from "../../CardScripts" import { GameState } from "../../../shared/gamestate/GameState" import { activePlayerState, forgeKey, modifyAmber } from "../../ScriptUtils" const cardScript: CardScript = { // Play: Lose 1<A>. If you do, you may fo...
import { FileUploadManager } from './data_validation/file_upload_manager' import { Task } from './task_definition/base/task' import { TaskHelper } from './task_definition/base/task_helper' import { createTaskHelper } from './task_definition/task_builder' import { Logger } from './logging/logger' /** * Base class for a...
import log from '../../logger'; import { RoomOptions } from '../../options'; import { DataPacket, DataPacket_Kind, } from '../../proto/livekit_models'; import { AddTrackRequest } from '../../proto/livekit_rtc'; import { TrackInvalidError, UnexpectedConnectionState, } from '../errors'; import { EngineEvent, Partic...
/* Copyright 2018 Mozilla Foundation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish...