text
stringlengths
10
953k
// SPDX-License-Identifier: Apache-2.0 import express from 'express'; const App = express(); App.use('/view', require('./asset/view')); module.exports = App;
import {MemoryStorage} from './storages/MemoryStorage'; import {ExpirationStrategy} from './strategies/ExpirationStrategy'; import * as Assert from "assert"; import {Cache} from './CacheDecorator'; const cacher = new ExpirationStrategy(new MemoryStorage()); const data = ["user", "max", "test"]; class TestClassOne { ...
/* * Copyright (C) 2017-2019 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import { GeometryKind, GeometryKindSet, ImageTexture, LineMarkerTechnique, PoiStackMode, PoiTechnique } from "@here/harp-datasource-protocol"; impo...
import { getFilterHelperArgOptsMap } from './filter'; import { getLimitHelperArgsOptsMap } from './limit'; import { getRecordHelperArgsOptsMap } from './record'; export * from './filter'; export * from './limit'; export * from './projection'; export * from './record'; export * from './skip'; export * from './sort'; e...
import { parse } from 'graphql/language'; import { GraphQLString, GraphQLSchema, GraphQLObjectType } from 'graphql/type'; import { ExecutionResult, execute } from 'graphql/execution'; import { TypedQueryDocumentNode, graphqlSync } from 'graphql'; interface SomeExtension { number: number; string: string; } const e...
import { ChangeDetectionStrategy, Component, OnDestroy } from '@angular/core'; import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'; import { BehaviorSubject, fromEvent } from 'rxjs'; import { pluck, debounceTime, finalize, map } from 'rxjs/operators'; import { IntervalService } from './interval.servic...
import 'reflect-metadata'; import axios from 'axios'; import AxiosMockAdapter from 'axios-mock-adapter'; import GetPipedriveWonDealsService from '../GetPipedriveWonDealsService'; import * as utils from '../../utils'; let getPipedriveWonDeals: GetPipedriveWonDealsService; describe('GetPipedriveWonDeals', () => { c...
import { suite, test } from "mocha-typescript"; import { assertError } from "../util/assertError"; import { BEMProcessor } from "../util/BEMProcessor"; const { InvalidBlockSyntax } = require("../util/postcss-helper"); @suite("Disallowed Pseudo Classes") export class DisallowedPseudos extends BEMProcessor { @test ...
/* * 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...
export let hash = JSON.stringify
// import React, { useRef } from 'react'; // import { Row, Empty, Spin } from 'antd'; // import Item from './Item'; // import { IPrenatalVisit, IPregnancy } from '@lianmed/f_types/lib/m'; // export interface IItemData { // data: { // pregnancy?: { // age: any // name: any // ...
import { SageMaker } from "../SageMaker.ts"; import { SageMakerClient } from "../SageMakerClient.ts"; import { ListDevicesCommand, ListDevicesCommandInput, ListDevicesCommandOutput } from "../commands/ListDevicesCommand.ts"; import { SageMakerPaginationConfiguration } from "./Interfaces.ts"; import { Paginator } from "...
import { format, parseISO } from 'date-fns'; import ptBR from 'date-fns/locale/pt-BR' import Image from 'next/image'; import { useRouter } from 'next/router'; import Link from 'next/link'; import next, { GetStaticPaths, GetStaticProps } from 'next'; import { api } from '../services/api'; import { convertDurationToTime...
import styled, { css } from 'styled-components'; import { platform } from 'os'; export const StyledContainer = styled.div` display: flex; -webkit-app-region: no-drag; ${({ isFullscreen }: { isFullscreen: boolean }) => css` margin-left: ${platform() === 'darwin' && !isFullscreen ? 72 : 0}px; `}; `;
import { Action } from '@ngrx/store'; import { Space } from 'ngx-fabric8-wit'; export const GET = '[space] Get'; export const GET_SUCCESS = '[space] GetSuccess'; export const GET_ERROR = '[space] GetError'; export class Get implements Action { readonly type = GET; } export class GetSuccess implements Action { pa...
import { ParameterOptions, TediousType } from "tedious"; /** */ export type TediousParameter = { name: string; type: TediousType; value: any; options?: ParameterOptions; }; /** */ export interface Indexer { [key: string]: any; } /** * */ export type KeyFilter<T extends { [key: string]: any }, TK ...
import {ImportlyGenerationError} from "../errors.js" import {ImportMap, Generate, PackageManifest, Linker} from "../../types.js" export const prepareCloudGenerator = ( linker: Linker ): Generate => ({manifests, semver}) => { const mostRooty: {[label: string]: PackageManifest} = {} for (const manifest of manifest...
/* * 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 ...
import ReactDOM from 'react-dom'; const elementSelector = [ 'a[href]', 'select:not([disabled])', 'input:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])' ]; function nodelistToArray(nodes: NodeList): HTMLElement[] { const arr: HTMLElement[] = []; for (let i = nodes.len...
import { useContext } from 'react'; import { ChallengesContext } from '../contexts/ChallengesContext'; import styles from '../styles/components/CompletedChallenges.module.css'; export function CompletedChallenges(){ const {challengesCompleted} = useContext(ChallengesContext); return( <div className={s...
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { UsersModule } from './users/users.module'; @Module({ imports: [UsersModule], controllers: [AppController], providers: [AppService], }) export class AppModule { }
import nodemailer from 'nodemailer'; import { resolve } from 'path'; import SMTPTransport from 'nodemailer/lib/smtp-transport'; import exphbs from 'express-handlebars'; import nodemailerhbs from 'nodemailer-express-handlebars'; import NodeMailer from 'nodemailer/lib/mailer'; import { string } from 'yup'; import mail fr...
import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from "../../../../src"; import { Cart } from "./Cart"; @Entity() export class CartItems { @PrimaryGeneratedColumn() ID!: number; @Column() CartID!: number; @Column() ItemID!: number; @Column() OptionID!: number;...
import { ILuTranslation } from '@lucca-front/ng/core'; export interface ILuDateSelectInputLabel { placeholderDay: string; placeholderMonth: string; placeholderYear: string; formatDay: string; formatMonth: string; formatYear: string; } export abstract class ALuDateSelectInputLabel { placeholderDay: string; plac...
export const fn77 = (a: string) => a
import "../_matchers"; import exec = require("../../implementation"); import { describeEachMode } from "../_matchers/utils"; describeEachMode(() => { it("indices-groups-properties", () => { }); }); // // Properties created on result.groups in textual order. // let groupNames = Object.getOwnPropertyNames(/(?<f...
/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { MOTOR_DaaS_WebServices_DTO_Information_Response_Content_MWSInformationContentRs } from '../models/MOTOR_DaaS_WebServices_DTO_Information_Response_Content_MWSInformationContentRs'; import type { MOTOR_DaaS_WebServices_DTO_Information_Resp...
/* * SpurtCommerce * version 3.0 * http://www.spurtcommerce.com * * Copyright (c) 2019 PICCOSOFT * Author piccosoft <support@spurtcommerce.com> * Licensed under the MIT license. */ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { PersonalizeLayoutCompone...
import { PublicKey } from "@solana/web3.js"; import WalletAdapter from "./walletAdapter"; export interface SolWindow extends Window { solana: { isPhantom?: boolean, isMathWallet?: boolean, getAccount: () => Promise<string>, }, solong: { selectAccount: () => Promise<string>, }, solflare: { ...
export * from './cards'; export * from './intersectionFetcher';
import * as React from "react"; import { StaticQuery, graphql } from "gatsby"; import withRoot from "../../utils/withRoot"; import App from "./App"; interface AppData { title: string; navLinks: any; contact: ContactData; } interface ContactData { name: string; phone: string; email: string; address: str...
/** * Api Documentation * Api Documentation * * OpenAPI spec version: 1.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * * Licensed under the Apache License, Version 2.0 (the "License"); ...
/*! * Copyright 2018 Google 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 applicable law or agreed to i...
import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/do'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/operator/withLatestFrom'; import 'rxjs/add/operator/switchMap'; import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of'; import { Injectab...
import { platform } from 'os'; import { PartialResolvedId, Plugin } from 'rollup'; import slash from 'slash'; import { Alias, ResolverFunction, RollupAliasOptions } from '../types'; const VOLUME = /^([A-Z]:)/i; const IS_WINDOWS = platform() === 'win32'; const noop = () => null; function matches(pattern: string | R...
import * as React from 'react'; import { HiSun } from 'react-icons/hi'; import { FaMoon } from 'react-icons/fa'; import { useThemeStore } from '../../lib/store'; export function FloatingKnob() { const theme = useThemeStore(state => state.theme); const toggleTheme = useThemeStore(React.useCallback(state => state.togg...
import React from 'react'; import { connect } from 'react-redux'; import { RootState } from '../store'; import { IonIcon, IonMenu, IonHeader, IonToolbar, IonTitle, IonContent, IonList, IonListHeader, IonItem, IonLabel, IonMenuToggle } from '@ionic/react'; import { RouteComponentProps, withRouter } from 'react-router'; ...
// TODO - every language needs unique order // TODO - order should be customizable by the user // TODO - if the user can reorder the list, how to determin, which item was already learned, and which not? // TODO - start with introduction for 'Space', 'Enter', 'Backspace', etc. keys import { EventCode } from '@types'; /...
import * as Joi from '@hapi/joi'; export const configValidationSchema = Joi.object({ PORT: Joi.number().default(3000), STAGE: Joi.string().required(), DB_HOST: Joi.string().required(), DB_PORT: Joi.number().required(), DB_USERNAME: Joi.string().required(), DB_PASSWORD: Joi.string().required(), DB_DATABAS...
import { ThemeAvatar } from './avatar'; import { ThemeColorSchemes } from './color'; import { ThemeFonts, ThemeFontWeightKey } from './fonts'; import { ThemeInput } from './input'; import { ThemeShadow } from './shadow'; export interface BaseTheme<Styles extends {} = {}> { avatar: ThemeAvatar; button: { ...
import * as React from 'react' import { useFrame } from '@react-three/fiber' import { Mesh } from 'three' import { Setup } from '../Setup' import * as shapes from '../../src/core/shapes' export default { title: 'Shapes', component: shapes, decorators: [(storyFn) => <Setup>{storyFn()}</Setup>], } function useT...
import { concat, diag, identity, matrix, multiply, zeros } from '../../math/math'; import { cosine, sine } from '../trigonometry'; import type { Matrix } from 'mathjs'; function rotation(theta: number, kappa: number): Matrix { return matrix([ [cosine(theta, kappa), -sine(theta, kappa, true)], [sine(theta, ka...
import React from 'react'; import { Table, TableHead, TableBody, TableRow, TableCell } from '@material-ui/core' const rows: number[] = [ 0, 1, 2, 3, 4, 5 ] export const Chart: React.FC = () => { return ( <div className="m-2"> <Table className="table table-striped table...
import { Args, Mutation, Query, Resolver } from '@nestjs/graphql'; import { AuthUser } from 'src/auth/auth-user.decorator'; import { Role } from 'src/auth/role.decorator'; import { CreateAccountInput, CreateAccountOutput, } from './dtos/create-account.dto'; import { EditProfileInput, EditProfileOutput } from './dto...
/* * Copyright (C) 2017-2019 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import { assert } from "chai"; import { Entry, LRUCache } from "../lib/LRUCache"; // tslint:disable:no-string-literal // tslint:disable:only-arrow-functions // Mocha d...
<TS language="bg" version="2.1"> <context> <name>AddNewAddressDialog</name> <message> <source>Address</source> <translation>Адрес</translation> </message> </context> <context> <name>AddNewContactDialog</name> <message> <source>TextLabel</source> <translation>Текст...
import * as React from 'react'; import omit from 'rc-util/lib/omit'; import classNames from 'classnames'; import DownOutlined from '@ant-design/icons/DownOutlined'; import Checkbox from '../checkbox'; import Menu from '../menu'; import Dropdown from '../dropdown'; import { TransferDirection, RenderResult, RenderR...
import { UntagResourceInput } from "../shapes/UntagResourceInput"; import { UntagResourceOutput } from "../shapes/UntagResourceOutput"; import { ResourceArnRequiredException } from "../shapes/ResourceArnRequiredException"; import { ApplicationDoesNotExistException } from "../shapes/ApplicationDoesNotExistException"; im...
import { useMount, useUnmount } from 'ahooks'; import { customAlphabet } from 'nanoid'; import type { MicroApp as MicroApp4Qiankun } from 'qiankun'; import { loadMicroApp } from 'qiankun'; import React, { useRef } from 'react'; const nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz', 10); interface Props { entry...
/*! * Copyright 2011-2021 Unlok * https://www.unlok.ca * * Credits & Thanks: * https://www.unlok.ca/credits-thanks/ * * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide: * ...
import { Action } from '@ngrx/store'; import { type } from 'app/helpers'; import { CATEGORY } from 'app/common'; import { IRoute } from 'app/interfaces'; /** * For each action type in an action group, make a simple * enum object for all of this group's action types. */ export interface IRouteActions { INIT: ...
import Vue from "vue"; import Hello from "./hello.vue"; /** * ダイアログを呼び出す */ function createDialog(): HTMLDialogElement { document.body.innerHTML = `<dialog><div class="container"></div></dialog>`; const dialog = document.querySelector("dialog"); const container = document.querySelector(".container"); // 変数が...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { LumberjackConsoleDriverRootModule } from './lumberjack-console-driver-root.module'; describe(LumberjackConsoleDriverRootModule.name, () => { it('guards against being registered in multiple injectors', () => { const rootInjectorInstance = new LumberjackConsoleDriverRootModule(); expect(() => new Lum...
import test from "ava" import {File} from "./File" test("Takes a name as the second argument", t => { const expected = "file.txt" const file = new File(["Some content"], expected) t.is(file.name, expected) }) test("Casts the name argument to string", t => { // @ts-expect-error const file = new File(["Some...
import test from 'ava' import { forTest } from '../index' test('sync function from native code', (t) => { t.is(forTest(2), 34) })
import React from 'react'; import { orderBy } from 'lodash'; import { connect, FormikContextType } from 'formik'; import * as DomHelper from '../../../../helpers/dom-helper'; interface BaseFormikContextProps { formik: FormikContextType<any>; } interface FormikSideEffectsProps { formId?: string; onChange?: (values:...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import moment from 'moment'; import sinon from 'sinon'; import { generateI...
// Type definitions for wampy.js v3.0.x // Project: https://github.com/KSDaemon/wampy.js // Definitions by: Konstantin Burkalev <https://github.com/KSDaemon> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface WampyOptions { autoReconnect?: boolean; reconnectInterval?: number; maxR...
/** * @Author @Version @Details * ------------------- ------------ ------------------------------- * Antonio Bueno <mail@antoniobs.net> 2019.08.21.1 Initial version, debugging VSCode + Console + Browser */ let info = 'Happy coding!'; consol...
import { TestBed } from '@angular/core/testing'; import { ProblematicaPersonaService } from './problematica-persona.service'; describe('ProblematicaPersonaService', () => { beforeEach(() => TestBed.configureTestingModule({})); it('should be created', () => { const service: ProblematicaPersonaService = TestBe...
/// <reference types="react" /> export default function UlistIcon(): JSX.Element; //# sourceMappingURL=FormatListBulleted.d.ts.map
import { ForwardedRef, forwardRef, InputHTMLAttributes, KeyboardEvent, useEffect, useRef, useState, } from "react"; import TextareaAutosize, { TextareaAutosizeProps, } from "react-textarea-autosize"; import styled from "styled-components"; import { boxShadow } from "./style"; import { grey } from "./sty...
import { IResolvable, IResolveContext } from "../resolvable"; import { Token } from "../token"; import { createStackTrace } from "./stack-trace"; /** * Token subclass that represents values intrinsic to the target document language * * WARNING: this class should not be externally exposed, but is currently visible ...
import { QueryHandler, IQueryHandler } from '@nestjs/cqrs'; import { GetOneDriverFilesQuery } from '../impl/get-one-driver-files.query'; import { ContextId, ModuleRef } from '@nestjs/core'; import { GetOneQueryHandler } from 'src/shared/modules/app-cqrs/queries/handler/get-one-query.handler'; import { DriverFilesEntit...
import React from 'react' import PluginManager from '@jbrowse/core/PluginManager' import { ConfigurationSchema } from '@jbrowse/core/configuration' import stateModel from './model' import ReactComponent from './components/ICGCFilterComponent' export default (pluginManager: PluginManager) => { return { configSche...
import { BrowserWindow, screen } from 'electron'; import * as path from 'path'; import * as url from 'url'; class ElectronManagementService { public createWindow(dirName: string, isServeMode?: boolean): BrowserWindow { let win: BrowserWindow = null; const electronScreen = screen; const ...
import { Test, TestingModule } from '@nestjs/testing'; import { PublicacionService } from './publicacion.service'; describe('PublicacionService', () => { let service: PublicacionService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [PublicacionServic...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { LayoutComponent } from './layout/layout.component'; import { MatSidenavModule } from '@angular/material/sidenav'; import { MatToolbarModule } from '@angular/material/toolbar'; import { RouterModule } from '@angular/router...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Range, Node } from '@ephox/dom-globals'; import { Arr, Optio...
/* * Created with @iobroker/create-adapter v1.31.0 */ //#region Imports, Variables and Global import * as utils from "@iobroker/adapter-core"; import {GlobalHelper} from "./modules/global-helper"; import * as diaBing from "./modules/diaBing"; import * as diaLocal from "./modules/diaLocal"; import * as diaFS from "./...
import { Component, OnInit, Inject, Output, EventEmitter, Input } from '@angular/core'; import { isArray } from 'util'; import { ParameterResolver } from '@shared/resolver/parameter/parameter.resolver'; import { BSN_COMPONENT_SERVICES } from '@core/relations/bsn-relatives'; import { ComponentServiceProvider } from '@co...
export default [ { data: ['产品编号', 'CP201900000001', '产品名称', '快易贷'], type: 'input2', }, { data: ['参考利率范围', '5.5%-7%', '贷款额度', '1万元-500万元'], type: 'input2', }, { data: ['贷款期限', '1个月 -36个月', '抵押方式', '抵押'], type: 'input2', }, { data: ['产品类型', '一般金融产品', '贷款类别', '经营贷款(含流动资金贷款、周转贷款)']...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React from 'react'; import { Store } from 'redux'; import ReactDOM fro...
<TS language="ru" 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> ...
import React from 'react'; import { usePointsContext, usePropsContext } from '../../hooks'; import { PointsContext, PropsContext } from '../../contexts'; import { ShapeGenericType, Shapes } from '../../types'; import Shape from './Shape'; const noParams: number[] = []; const Path: React.FC<ShapeGenericType> = ({ chil...
import 'console-polyfill'; /** 兼容 IE */ import 'es5-shim/es5-shim'; import 'es5-shim/es5-sham'; import 'es6-shim'; import * as React from "react"; import * as ReactDOM from "react-dom"; import APP from "./routers"; ReactDOM.render( <APP />, document.getElementById("app") );
import { Module } from '@nestjs/common'; import { TasksModule } from './tasks/tasks.module'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AuthModule } from './auth/auth.module'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { configValidationSchema } from './config.schema'; @Module({...
/* * Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import '@cds/core/select/register.js'; import { html } from 'lit'; import { getElementStorybookArgs, spreadP...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { BasisStaking } from "../BasisStaking"; export class BasisStaking__factory { static connect( address: string, ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AddEntityComponent } from './add-entity.component'; describe('AddEntityComponent', () => { let component: AddEntityComponent; let fixture: ComponentFixture<AddEntityComponent>; beforeEach(async(() => { TestBed.configureTesti...
import { index, prop } from '@typegoose/typegoose'; import { Base, TimeStamps } from '@typegoose/typegoose/lib/defaultClasses'; export enum TopLevelCategory { Courses, Services, Books, Products } export class HhData { @prop() count: number; @prop() juniorSalary: number; @prop() middleSalary: number; @pr...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { assert } from "./assert"; import { Deferred } from "./promises"; export interface ITimer { /** * True if timer is currently running */ readonly hasTimer: boolean; /** * Starts t...
import { isBoolean, isFunction, isNumber, isObject, isString } from "./core.utils"; describe("core utils test suite", () => { let testValue1: undefined = undefined, testValue2: null = null, testValue3 = 42, testValue4 = true, testValue5 = false, testValue6 = "test", ...
/** * @file AccountsCreate.ts * @author Mosaic Networks <https://github.com/mosaicnetworks> * @date 2018 */ import * as ASCIITable from 'ascii-table'; import * as Vorpal from "vorpal"; import Staging, {execute, Message, StagedOutput, StagingFunction} from "../classes/Staging"; import Session from "../classes/Ses...
import { Imports, ArrowDefinition, Family, Person, Location, Relation, UnknownPerson, TextLoc } from './parse'; declare function compile(root: Root, options?: Options): CompiledRoot; export default compile; export function compileFiles(files: string|string[], options?: Options): Compi...
import * as bare from "@bare-ts/lib" const config = /* @__PURE__ */ bare.Config({}) function read0(bc: bare.ByteCursor): readonly string[] { const len = bare.readUintSafe(bc) if (len === 0) return [] const result = [bare.readString(bc)] for (let i = 1; i < len; i++) { result[i] = bare.readStri...
import { LifecycleToasts } from '../../../customAxios'; import { showLoading, hideLoading } from 'react-redux-loading-bar'; import { request, success, error } from 'store'; import * as actionTypes from 'constants/actionTypes'; import * as API from 'constants/API'; import { IBuilding } from 'actions/parcelsActions'; imp...
/* @license * Copyright 2019 Google LLC. 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 a...
import {Random} from './RandomUtils'; describe('RandomUtils', () => { // Not sure how to unit test randomness ¯\_(ツ)_/¯ describe('Random.pick', () => { it('should return undefined if the array is empty', () => { expect(Random.pick([])).toBeUndefined(); }); it('should retur...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CartLightComponent } from './cart-light.component'; describe('CartLightComponent', () => { let component: CartLightComponent; let fixture: ComponentFixture<CartLightComponent>; beforeEach(async () => { await TestBed.configureTestin...
export default function (env, config) { if (env.platform !== 'node') return; return { input: '[config.storage.src.cssDir]/index.css', output: '[config.storage.dist.cssDir]/index.css', postcss: '[config.postcss]', purgecss: '[config.purgecss]', }; }
import { prej } from "^jab"; import { TestProvision } from "^jarun"; import { getWaiter } from "../_fixture"; // kill rejects export default (prov: TestProvision) => { const waiter = getWaiter(prov); return waiter.killReal({ kill: () => prej("I wont slice") }).finally(() => { prov.chk(waiter.is("stopping"))...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { IAPIResponse } from "../../schemes/APIResponse"; import { IServerInformation } from "../directus/ServerInformation"; /** * @see https://docs.directus.io/api/reference.html#information */ export interface IServerInformationResponse extends IAPIResponse<IServerInformation> {}
import { Component, OnInit } from '@angular/core'; declare const $: any; declare interface RouteInfo { path: string; title: string; icon: string; class: string; } export const ROUTES: RouteInfo[] = [ // { path: '/hojaSalida', title: 'Hoja de Salida', icon: 'dashboard', class: '' }, // { path: '/matriculaPa...
// *** 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 * as React from 'react'; import { ExampleCard, IComponentDemoPageProps, ComponentPage, PageMarkdown, PropertiesTableSet } from '@uifabric/example-app-base'; import { GroupedListBasicExample } from './examples/GroupedList.Basic.Example'; import { GroupedListCustomExample } from './examples/GroupedList.C...
const defaultChildren = [ "Alice", "Bob", "Charlie", "David", "Eve", "Fred", "Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry" ]; function plantCodeToPlant(code: string): string { switch (code) { case "V": return "violets"; case "R": return "radishes"; case "G...
import DependencyRule from '../config/DependencyRule'; type RawDependencyRule = DependencyRule | string; export default RawDependencyRule;