text
stringlengths
10
953k
// istanbul ignore file import { createLogger } from '@surgio/logger'; import { join } from 'path'; import { runner } from '@royli/hygen'; import Logger from '@royli/hygen/lib/logger'; import Command, { Context } from 'common-bin'; const defaultTemplates = join(__dirname, '../../hygen-template'); const logger = create...
<TS language="el_GR" 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>...
export class Film { title: string; episode_id: number; opening_crawl: string; director: string; producer: string; release_date: string; characters: Array<string>; planets: Array<string>; starships: Array<string>; vehicles: Array<string>; species: Array<string>; created: string; edited: string; ...
// Copyright (c) Microsoft Research 2016 // License: MIT. See LICENSE /// <reference path="..\..\Scripts\typings\jquery\jquery.d.ts"/> /// <reference path="..\..\Scripts\typings\jqueryui\jqueryui.d.ts"/> (function ($) { $.widget("BMA.simulationplot", { options: { //data: undefined, ...
import { UsermanageDto } from './usermanage.dto'; import { UsermanageService } from './usermanage.service'; const ActiveDirectory = require('activedirectory'); import { Controller, Get, Post, UsePipes, HttpCode, Body, Param, Res } from '@nestjs/common'; import { ValidationPipe } from '../../_shared/validation.pipe' @...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Dictionary } from '../../models/dictionaries.entity'; import { DictionariesController } from './dictionaries.controller'; import { DictionariesService } from './dictionaries.service'; @Module({ imports: [ Typ...
import { TComboboxItem } from '@udecode/plate'; import { Tiddler } from 'tiddlywiki'; export interface ISnippetComboboxItem { name: string; preview: string; } export const snippets: Array<TComboboxItem<ISnippetComboboxItem>> = []; function getSnippetName(tiddler: Tiddler): string { const name = tiddler.fields['...
import { TestBed } from '@angular/core/testing'; import { Store, StoreModule, select } from '@ngrx/store'; import * as fromActions from '../actions'; import * as fromReducers from '../reducers'; import * as fromSelectors from '../selectors'; import { Country } from '../../../occ/occ-models/index'; import { StateWithUs...
import {IsNotEmpty, IsNumber, IsOptional, IsString} from "class-validator"; import {ApiProperty, ApiPropertyOptional} from "@nestjs/swagger"; /** * All statuses for the mail. */ export enum MailStatus { MAIL_FORWARDED = 'MAIL_FORWARDED', PENDING_PICKUP = 'PENDING_PICKUP', PICKED_UP_CLIENT_USER = 'PICKED_...
import { Network } from '../../networking/classes/Network' import { NetworkTransport } from '../../networking/interfaces/NetworkTransport' import { World } from '../classes/World' const sendOutgoingActions = (transport: NetworkTransport, world: World) => { const { outgoingActions } = world for (const o of outgoin...
import { Injectable } from '@angular/core'; import { surveyModel } from './specs/survey'; @Injectable( { providedIn: 'root' } ) export class SurveySpecificationService { private _model = surveyModel; constructor() { } public get model() { return this._model; } public getLoc...
import { useMemo, useReducer, useEffect, ReactNode, useCallback } from "react"; import noop from "lodash/noop"; import { ColumnByNamesType, ColumnType, TableState, TableAction, DataType, UseTableReturnType, UseTableOptionsType, RowType, HeaderType, HeaderRenderType, ColumnStateType, } from "./typ...
import { Module } from '@nestjs/common'; import { FacilitiesService } from './facilities.service'; import { MHFRClient } from './mhfr.client'; @Module({ providers: [FacilitiesService, MHFRClient], exports: [FacilitiesService], }) export class FacilitiesModule {}
/** * Created by Sergey on 2/26/16. */
<TS language="de" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Rechtsklick um Adresse oder Bezeichnung zu bearbeiten</translation> </message> <message> <source>Create a new address</source> ...
// tslint:disable:unified-signatures import { Injectable, NgZone } from '@angular/core'; import { Observable, of, Subscription } from 'rxjs'; import { catchError, distinctUntilChanged, map, take } from 'rxjs/operators'; import { getSelectorFn } from './utils/selector-utils'; import { InternalStateOperations } from './...
import envCi from 'env-ci'; import { EnvironmentService } from './EnvironmentService'; export class EnvCIEnvironmentService implements EnvironmentService { public constructor(private readonly env: typeof envCi = envCi) {} public isCI: EnvironmentService['isCI'] = () => this.env().isCi; public getServiceName: Env...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'StankinsDataWebAngular'; }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Bothook</source> <translation>در مورد بیتکویین</translation> ...
export default { UserType: { name(root, args, { User }) { return `${root.firstName} ${root.lastName}`; }, }, Query: { users(root, _, { User }) { return User.getUsers(); }, }, };
import { Component, OnDestroy, TemplateRef, ViewChild } from '@angular/core'; import { LazyDataService } from '../../../core/data/lazy-data.service'; import { BehaviorSubject, combineLatest, concat, from, Observable, of, Subject } from 'rxjs'; import { TranslateService } from '@ngx-translate/core'; import { I18nToolsSe...
import { asyncSequenceOf } from "../../src/Sequence"; describe("associate", () => { it("should associate map", async () => { const map = await asyncSequenceOf(1, 2, 3).associate(it => [ `key_${it}`, it ]); expect(map.size).toBe(3); expect(map.get("key_1")).toBe(1); expect(map.get("key...
import type { NextApiRequest, NextApiResponse } from "next"; import mongoDB from "../../lib/mongoDB"; import User from "../../models/User"; import jwt from "jsonwebtoken"; export default async function VerifyOtp( req: NextApiRequest, res: NextApiResponse ) { const jwt_secret = process.env.JWT_SECRET; await mon...
module.exports = { development: { dialect: 'postgres', host: 'localhost', port: 5433, username: 'pguser', password: 'pguser', database: 'pgdb', }, };
import '@abraham/reflection' import { initDevtool } from '@sigi/devtool' import { useModule } from '@sigi/react' import React, { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import { AppModule } from './app.module' function App() { const [{ list }, dispatcher] = useModule(AppModule) co...
import { BN } from 'ethereumjs-util'; import { query, fromHex, toHex } from '../util'; type EthQuery = any; /** * @type RequestChunkSpecifier * * Arguments to `eth_feeHistory` that can be used to fetch a set of historical data. * @property blockCount - The number of blocks requested. * @property endBlockNumber -...
import { HttpGetOptions } from './HttpGetOptions' import { HttpPostOptions } from './HttpPostOptions' import { HttpDeleteOptions } from './HttpDeleteOptions' import { HttpPutOptions } from './HttpPutOptions' export interface HttpClient { get<Response>(options: HttpGetOptions): Promise<Response> post<Request, Resp...
import { MovieCard } from './MovieCard'; interface Movie{ imdbID: string; Title: string; Poster: string; Ratings: Array<{ Source: string; Value: string; }>; Runtime: string; } interface Genre{ id: number; title: string; } interface ContentProps { movies: Movie[] selectedGenre: Genre } ex...
import * as React from 'react'; import { observer } from 'mobx-react-lite'; import classnames from 'classnames'; import { useOpenFlag } from 'utils/hooks'; import { ContextMenu, ContextMenuItemsCollection, ContextMenuItemSeparator } from 'components/controls/ContextMenu/ContextMenu'; import { deleteIcon, renameIcon } f...
import { Bookmarks } from './bookmarks'; describe('Bookmarks', () => { it('should create an instance', () => { expect(new Bookmarks()).toBeTruthy(); }); });
const props2d = { container: { color: "#17212B", opacity: 1, xRange: 600, yRange: 600 }, data: [ { x: [ 161.67462016999573, -149.49085809525332, -190.77850898381033, 58.14499340227819, ], y: [ ...
import { StatefulEntity } from './base' import { EsphomeSocket } from '../connection/esphomeSocket' import { ListEntitiesSwitchResponse, SwitchCommandRequest, SwitchStateResponse } from '../proto/api' export default class Switch extends StatefulEntity<ListEntitiesSwitchResponse, SwitchStateResponse> { static subscrib...
export * from './reactive-not-equal.shortcut'; export * from './reactive-not-equal';
export default function getPlatform() { const { userAgent, platform } = window.navigator; const macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K']; const windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE']; const iosPlatforms = ['iPhone', 'iPad', 'iPod']; let os: string | null = null; if ...
import * as middleware from '@middleware/filter' import { filter } from '@style/pipeline/middleware/filter' import '@blackglory/jest-matchers' describe(` filter<T, U extends T = T>( predicate: (element: T, index: number) => unknown ): (iterable: Iterable<T>) => Iterable<U> `, () => { it('is pipeline style', ...
const { $ } = Cypress export {} describe('src/dom/coordinates', () => { let doc: Document before(() => { return cy .visit('/fixtures/generic.html') .then(function (win) { this.body = win.document.body.outerHTML }) }) beforeEach(function () { doc = cy.state('document') $(doc.bo...
<TS language="ca" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Feu clic dret per a editar l'adreça o l'etiqueta</translation> </message> <message> <source>Create a new address</source> <...
export interface GeolocationPlugin { /** * Request and check geolocation permissions. You can define alert cotext. * @since 0.0.1 */ requestPermission(options?: GeolocationPermissionOptions): Promise<{ state: GeolocationPermissionState }>; /** * Start location updates. * @since 0.0.1 */ startL...
import {Box} from '@indoqa/style-system' import {Form, Formik, FormikProps} from 'formik' import {TFunction} from 'i18next' import * as React from 'react' import {useTranslation} from 'react-i18next' import {Link} from 'react-router-dom' import * as Yup from 'yup' import Button from '../../commons/components/atoms/Butt...
import { AccordionItemButton } from 'react-accessible-accordion'; import { TypographyProps, typography, SpaceProps, space, variant } from 'styled-system'; import styled from '../../../theme/styled'; import { VariantProps } from '../../../types'; export interface Props extends TypographyProps, SpaceProps, Va...
import React, { FC, useState, ReactNode } from 'react'; import { List, ListItem, ListItemIcon, ListItemText } from '@material-ui/core'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faAngleDoubleUp, faAngleDoubleDown } from '@fortawesome/free-solid-svg-icons'; import { useTranslation } from...
import { GreengrassClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassClient.ts"; import { CreateConnectorDefinitionVersionRequest, CreateConnectorDefinitionVersionResponse } from "../models/models_0.ts"; import { deserializeAws_restJson1CreateConnectorDefinitionVersionCommand, seriali...
import { FACTORY_ADDRESS, MINIMUM_LIQUIDITY, ONE, ZERO, _1000, _997 } from '../constants' import { InsufficientInputAmountError, InsufficientReservesError } from '../errors' import { CurrencyAmount } from './CurrencyAmount' import { Fee } from '../enums' import JSBI from 'jsbi' import { Price } from './Price' import {...
import { MovieShow } from './movie-show.interface'; export interface Search { page: number; results: MovieShow; total_results: number; total_pages: number; }
declare module '*.vue' { import { App, defineComponent } from 'vue' const component: ReturnType<typeof defineComponent> & { install(app: App): void } export default component } declare module 'virtual:*' { const result: any export default result }
import { LanguageKeys } from '#lib/i18n'; import type { Query, QueryGetVillagerByNameArgs, VillagersEnum, Villager } from '@foxxie/stardrop'; import { fromAsync, isErr, UserError } from '@sapphire/framework'; import { fetch } from '@foxxie/fetch'; import { MessageEmbed } from 'discord.js'; import { toTitleCase } from '...
import type { NormalizedTextBlock, NormalizedBlock, NormalizedCustomBlock, } from 'pote-parse'; import type { TextBlockTypeComponent, MarkTypeComponent, ListItemComponent, ListParentComponent, CustomBlockComponent, } from './components'; export function isTextBlock( block: NormalizedBlock, ): block i...
// Copyright 2017-2021 @polkadot/app-staking authors & contributors // SPDX-License-Identifier: Apache-2.0 import type BN from 'bn.js'; import type { DeriveSessionIndexes } from '@polkadot/api-derive/types'; import type { Option } from '@polkadot/types'; import type { Balance } from '@polkadot/types/interfaces'; impo...
import React from 'react' import ReactDOM from 'react-dom' import { App } from './App' import { Provider } from 'react-redux' import { BrowserRouter } from 'react-router-dom' import { store } from './store' ReactDOM.render( <Provider store={store}> <BrowserRouter> <App /> </BrowserRouter> </Provider>...
import { selectTodosFilter } from './../todos.selectors'; import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { MatSnackBar } from '@angular/material/snack-bar'; import { select, Store } from '@ngrx/store'; import { take } from 'rxjs...
import { ManagedLinodeSetting } from '@linode/api-v4/lib/managed'; import { APIError } from '@linode/api-v4/lib/types'; import * as React from 'react'; import TableRowEmpty from 'src/components/TableRowEmptyState'; import TableRowError from 'src/components/TableRowError'; import TableRowLoading from 'src/components/Tab...
import { NestjsQueryGraphQLModule } from '@nestjs-query/query-graphql'; import { NestjsQueryMongooseModule } from '@nestjs-query/query-mongoose'; import { Module } from '@nestjs/common'; import { ProductsDTO } from './product.dto'; import { ProductEntity, ProductsEntitySchema } from './product.entity'; @Module({ imp...
import styled from 'styled-components'; export const TxProgressWrapper = styled.div` position: relative; width: 26px; height: 26px; cursor: pointer; opacity: 0.4; &.active { opacity: 1; } .timerchart-icon { position: absolute; top: 2px; left: 2px; display: flex; flex-direction...
export interface ActoAdminInterface { ead_id: number, ead_descripcion?: string } export class ActoAdmin implements ActoAdminInterface { ead_id: number; }
import InferenceRule, {InputType, Input} from './inference_rule.js' import Negation, {not} from '../predicates/negation.js' import Equality, {eq} from '../predicates/equality.js' import Universal, {forAll} from '../predicates/universal.js' import Existential, {exists} from '../predicates/existential.js' import Predicat...
export const navCopy = { skip_to_content: "Lewati ke konten", nav_documentation: "Dokumentasi", nav_documentation_short: "Dokumentasi", nav_download: "Unduh", nav_community: "Komunitas", nav_playground: "Area Bermain", nav_playground_short: "Bermain", nav_handbook: "Buku Saku", nav_tools: "Alat", na...
import { Injectable } from '@angular/core'; import { Aluno } from './aluno'; @Injectable() export class AlunosService { alunos : Aluno[] = [ {id: 1, nome: 'Aluno01', email: 'aluno01@gmail.com'}, {id: 2, nome: 'Aluno02', email: 'aluno02@gmail.com'}, {id: 3, nome: 'Aluno03', email: 'aluno03@gmail.com'}, ...
import * as React from 'react'; import TextField from '@mui/material/TextField'; import { spy } from 'sinon'; import { expect } from 'chai'; import { describeConformance, fireEvent, fireTouchChangedEvent } from 'test/utils'; import MobileTimePicker from '@mui/lab/MobileTimePicker'; import { wrapPickerMount, createP...
import {ValidatorConstraint, ValidatorConstraintInterface} from 'class-validator'; import {VALID_DATE_IN_PAST} from '../validationErrors/errorMessageConstants'; /** * Validates that the input value is a date in the past, that is, before today */ @ValidatorConstraint({name: 'customDate', async: false}) export class O...
// Type definitions for @ag-grid-community/core v23.0.2 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ag-grid/> import { IDoesFilterPassParams, IFilterOptionDef, ProvidedFilterModel } from "../../interfaces/iFilter"; import { OptionsFactory } from "./optionsFactory"; import { I...
import Assert from "../assert/iterable"; import Throwable from "../assert/throwable/iterable"; export default function Iterable<Enumerate>( value : unknown, error : (value:unknown)=>Error = Throwable ) : Enumerate[keyof Enumerate] { Assert(value, error); return value; }
import { WithStyle } from '@medly-components/utils'; import React, { FC } from 'react'; import ItalIconSvg from '../../assets/Editor/ital_24px_rounded.svg'; import SvgIcon, { SvgIconProps } from '../../SvgIcon'; const Component: FC<SvgIconProps> = React.memo(props => { const { size, withHoverEffect, color, margin,...
GOCAD TSurf 1 HEADER { name: MJVA-CRSF-CADY-Cady_fault-CFM5_500m visible: true *solid*color: 0.090196 0.956863 0.376471 1 name_in_model_list: MJVA-CRSF-CADY-Cady_fault-CFM5 } GOCAD_ORIGINAL_COORDINATE_SYSTEM NAME " gocad Local" PROJECTION Unknown DATUM Unknown AXIS_NAME X Y Z AXIS_UNIT m m m ZPOSITIVE Elevation END_O...
import { GsnTestEnvironment, TestEnvironment } from '@opengsn/cli/dist/GsnTestEnvironment' import { HttpProvider } from 'web3-core' import { RelayClient } from '@opengsn/provider/dist/RelayClient' import { expectEvent } from '@openzeppelin/test-helpers' import { TestRecipientInstance } from '@opengsn/contracts/types/tr...
import { generatePageNumbersArray } from 'modules/utils/connector'; import { getGlobalConfig } from 'modules/utils/api.config'; import { adaptCities, adaptCitiesSinglePage } from './adapter'; import { fetchCities } from './api'; import { CityDictionnary } from './interface'; export const getCities = async (language: s...
/* @internal */ namespace ts { export function getOriginalNodeId(node: Node) { node = getOriginalNode(node); return node ? getNodeId(node) : 0; } export interface ExternalModuleInfo { externalImports: (ImportDeclaration | ImportEqualsDeclaration | ExportDeclaration)[]; // imports of...
import { Component } from '@nestjs/common'; import * as Consul from 'consul'; import { info, error } from 'winston'; import { environment } from '../../environment'; @Component() export class ConsulService { watchMap = {}; watchValues = {}; static consul = void 0; //Consul(environment.consul); constructor()...
import { presetFactory } from '../src/presets/factory' import { UmiRematch, ReactRoute } from '../src/presets' describe('start test presets.factory', () => { test('the result of factory.create should have all preset method', () => { const preset = presetFactory.create({ name: 'preset' } as any) expect(!!pres...
import Favicon from "~/assets/images/favicon.svg"; import Config from "~/config"; import React from "react"; import styled, { keyframes } from "styled-components"; const AnimSlideDown = keyframes` from { top: -6rem; } to { top: 0rem; } `; const StyledIcon = styled.img` position: absolute; display:...
/// /// Copyright © 2016-2020 The Thingsboard 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...
export * from './CreditCard'; export * from './Boleto'; export * from './Pix';
import { JSONSchema } from "vscode-json-languageservice"; export declare const getInsertTextForPlainText: (text: string) => string; export declare const getInsertTextForValue: (value: any, separatorAfter: string) => string; export declare const getInsertTextForString: (schema: JSONSchema, insertIndex?: number) => strin...
import { MappedTerm } from './mapped-term'; export interface InformaData { drug_name: Array<string>; phase: Array<string>; highest_phase: string; mechanism: MappedTerm[]; // changed as of 2020-02-03 smiles: string; ikey: string; wikidata: string; target_name?: Array<string>; target_family?: Array<str...
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
import { ChildProcess, spawn, SpawnOptions } from 'child_process'; import waitOn from 'wait-on'; import Ledger from '@daml/ledger'; import { User } from '@daml-ts/covid19-plasma-donation-app-0.1.0/lib/PlasmaDonation'; import { computeCredentials } from './Credentials'; import puppeteer, { Browser, Page } from 'puppet...
import { LoginComponent } from './login.component'; export const loginRoutes = [{ path:'', component:LoginComponent }];
/** * Asserts that this function should never be called. The common usage is to call this as the * "else" case in a series of if/else blocks or the default case in a switch statement when * testing cases of an enum or union type. This is a compile-time way to ensure that your code properly * tests for all possible ...
import ts from "typescript"; export interface Params { expression: ts.Expression; literal: ts.TemplateMiddle | ts.TemplateTail; } export interface Factory { create: (params: Params) => ts.TemplateSpan; } export const create = ({ factory }: ts.TransformationContext): Factory["create"] => (params: Params): ts.Te...
import { PluginItem } from '@babel/core' const env = process.env.NODE_ENV const isProduction = env === 'production' const isDevelopment = env === 'development' const isTest = env === 'test' type StyledJsxPlugin = [string, any] | string type StyledJsxBabelOptions = | { plugins?: StyledJsxPlugin[] 'babel-t...
import mocha from "gulp-mocha"; import Task, { Pipe, remove, Series, watch } from "./gulp/Task"; import TypescriptWatch from "./gulp/TypescriptWatch"; //////////////////////////////////// // Tasks // const initBuildFolder = new Series(remove("build")) .then("init-build-folder", Pipe.create(["package.json", "package...
import React from 'react' export interface MessageProps {} export type MessageOptions = { type?: 'info' | 'success' | 'error' | 'warning' title: string duration?: number style?: React.CSSProperties className?: string onClick?: (event: React.MouseEvent) => void onClose?: () => void } const OpenFun: (opti...
import { ValidationFailure, validationFailure, ValidationErrorType, } from "./sharedValidators"; import { SyncRedactor } from "redact-pii"; import { REGEX_STRINGS } from "../constants"; // Basic PII identifier based on redact-pii — first line of defense export function validateMessagePII( field: string, mess...
import { Permissions } from 'react-native-unimodules'; export const requestCameraPermission = (): Promise< Permissions.PermissionResponse > => { return Permissions.askAsync(Permissions.CAMERA); }; export const requestExternalStoragePermission = (): Promise< Permissions.PermissionResponse > => { return Permiss...
/* tslint:disable */ /* eslint-disable */ /** * Samsara API * * The version of the OpenAPI document: 2021-06-09 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } fr...
import React, { useState } from 'react'; import { Modal, View, TouchableOpacity, ScrollView } from 'react-native'; import Text from 'components/base/Text'; import useStyles from './style'; import { PickerProps } from './props'; import { Down, Close } from 'components/base/SVG'; const Picker = (props: PickerProps) => {...
import { DeviceDataType } from '@electron/models/DeviceReader/DeviceDataTypes'; import GlobalStore from '@lib/globalStore/GlobalStore'; import Fili from 'fili'; // Cache the filters to prevent bounce on pause/continue const lowpassFilters: any[] = []; const highpassFilters: any[] = []; let lastSettings: ILiveFilter =...
/** * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({name: 'nfeAverageTime'}) export default class NFEAverageTimePipe implements PipeTransform { transform(value: number): string { if (!value) { return "N/D"; } return value + " segundo(s)"; } }
import { TestBed, inject } from '@angular/core/testing'; import { CopyService } from './copy.service'; import { DataService } from './data.service'; describe('CopyService', () => { const DataServiceStub = { showToast: () => {}, }; beforeEach(() => { TestBed.configureTestingModule({ providers: [Co...
import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { AppRoutingModule } from './app-routing.module'; import { SharedModule } from './shared/shared.module'; import { LayoutModule } from './layout/layout.module'; import { AboutModule } from './about/about.module'; import { G...
import { Environment } from '@fellesdatakatalog/graphql/lib/types'; import { validateEnv } from '@fellesdatakatalog/graphql/lib/utils'; const { NODE_ENV = Environment.DEVELOPMENT, HOST = '0.0.0.0', PORT = 8080, PLAYGROUND = true, INTROSPECTION = true } = process.env; export default validateEnv({ NODE_ENV:...
import { useEffect, useState } from "react"; import { database } from "../services/firebase"; import { useAuth } from "./useAuth"; type FirebaseQuestions = Record<string, { author: { name: string; avatar: string; } content: string; isAnswered: boolean; isHighlighted: boolean; likes: Record<string,...
import * as React from "react"; import { connect } from "react-redux"; import { CardImg } from "reactstrap"; import { SearchResultDetailsProps } from "../../Interfaces"; import { mapStateToProps } from "./ReduxMapper"; import { sanitiseFlavourText } from "./Utils"; import "./Cards.css"; function Prophecy(props: Search...
// import * as base32 from 'thirty-two'; import base32 from '@zodash/isomorphic-base32'; import random from '@zodash/random'; // import * as jsSHA from 'jssha'; // eslint-disable-next-line @typescript-eslint/no-var-requires const jsSHA = require('jssha'); // eslint-disable-next-line @typescript-eslint/no-var-requires /...
import {rest} from 'msw' type RequestBody = { first_name: string email: string fields: Array<string> } const handlers = [ rest.get('https://api.convertkit.com/v3/subscribers', (req, res, ctx) => { return res( ctx.json({ total_subscribers: 0, page: 1, total_pages: 1, s...
import { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); })); it('should create the app', as...
export { 音韻地位 } from './lib/音韻地位'; export * as 資料 from './lib/解析資料'; export { 適配分析體系 } from './lib/分析體系'; export type { 適配函數, 適配分析體系選項 } from './lib/分析體系'; export * as 表達式 from './lib/常用表達式'; export * as 推導方案 from './lib/推導方案';
import React from "react"; export function createContext<T>() { const context = React.createContext<T | undefined>(undefined); function useContext() { const c = React.useContext(context); if (!c) throw new Error("useContext must be inside a Provider with a value"); return c; } return [useCont...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; @Component({ selector: 'app-componente2', templateUrl: './componente2.component.html', styleUrls: ['./componente2.component.css'] }) export class Componente2Component implements OnInit { constructor(private ro...
/** * * @export * @interface Peer */ export interface Peer { /** * * @type {string} * @memberof Peer */ address: string; /** * * @type {string} * @memberof Peer */ clientName: string; /** * * @type {boolean} * @memberof Peer */ ...