text
stringlengths
10
953k
import fs from 'fs'; export const isDireflowSetup = (currentDirectory = process.cwd(), metaData?: string): boolean => { if (!fs.existsSync(`${currentDirectory}/direflow-config.js`)) { return false; } const spec = metaData ? JSON.parse(metaData) : require(`${currentDirectory}/direflow-config.js`); return ...
import { OPPDomEvent } from "../common/dom/fire_event"; import { OppBaseEl } from "./opp-base-mixin"; import { makeDialogManager, showDialog } from "../dialogs/make-dialog-manager"; import { Constructor } from "../types"; interface RegisterDialogParams { dialogShowEvent: keyof OPPDomEvents; dialogTag: keyof HTMLEl...
import { Router } from '@angular/router'; import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { delay, map, mapTo, tap } from 'rxjs/operators'; import { HttpClient } from '@angular/common/http'; @Injectable() export class AuthService { isLoggedIn = false; // store the URL so...
import { navigate } from 'gatsby'; import _, { isEmpty, values } from 'lodash'; import React, { useContext } from 'react'; import styled from 'styled-components'; import { Padding, Queue, Stack, Text } from '..'; import { useModifyTemplate } from '../modules/providers'; import { PlusIcon } from '../assets'; import { Ce...
import { Component, OnInit } from '@angular/core'; import { Part } from '../../part.model'; import { Subscription } from 'rxjs'; import { PartService } from '../../part.service'; import { AuthService } from 'src/app/shared/auth.service'; import { ActivatedRoute, Params } from '@angular/router'; import { DaysService } f...
<TS language="en_GB" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Right-click to edit address or label</translation> </message> <message> <source>Create a new address</source> <translati...
import * as PG from 'pg' import { Context, Input } from '../../__helpers__/integrationTest' export const database = { name: 'postgresql', datasource: { url: (ctx) => getConnectionString(ctx), }, async connect(ctx) { const connectionString = getConnectionString(ctx) const db = new PG.Client({ connec...
import React, { useRef, useState, useEffect } from 'react' import { Link } from 'gatsby' import { Layout, Wrapper, SectionTitle, Header, Content, SEO } from '../components' import { compact } from 'lodash' import Helmet from 'react-helmet' import config from '../../config/SiteConfig' import rgba from 'polis...
/* * 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...
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name // tslint:disable:no-unused-variable // tslint:disable:no-unbound-method import { BaseContract } from '@0x/base-contract'; import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogAr...
import { add, multiply, subtract, divide, increment, decrement, isValid, rem, mod, negate, fromString, floatFromString, fromStringWithRadix, } from "../src/Number" import { fromNumber } from "../src/String" import fc from "fast-check" import * as O from "fp-ts/Option" describe("Number", () =>...
import axios, { AxiosResponse } from 'axios'; import MockAdapter from 'axios-mock-adapter'; import IntentEnrich from '../../../../src/Enterprise/Enrich/Intent Enrich'; import ZoomInfoException from '../../../../src/helpers/Exception/ZoomInfoException'; import { IIntentEnrichResults } from '../../../../src/Enterprise/En...
import { Injectable, UnauthorizedException } from "@nestjs/common"; import { Strategy, ExtractJwt } from 'passport-jwt'; import { PassportStrategy } from "@nestjs/passport"; import { InjectRepository } from "@nestjs/typeorm"; import { UserRepository } from "src/user/user.repository"; @Injectable() export class JwtStra...
import { MAT_DATE_LOCALE } from '@angular/material'; import { environment } from '@env/environment'; export const angularMaterialProviders = [ { provide: MAT_DATE_LOCALE, useValue: environment.defaultLanguage } ];
import { NgModule } from '@angular/core'; import { NbActionsModule, NbButtonModule, NbCardModule, NbCheckboxModule, NbDatepickerModule, NbIconModule, NbInputModule, NbRadioModule, NbSelectModule, NbUserModule, } from '@nebular/theme'; import { ThemeModule } from '../../@theme/theme.module'; import { ...
import { deleteFile } from "../fileApi/deleteFile"; import { rmdir } from "../fileApi/rmdir"; const deleteTest = async (filename: string) => { const result = await deleteFile(filename); console.log(`delete ${result} file.`); }; Promise.all([deleteTest("./data/hello.txt"), deleteTest("./data/test.json")]) ...
import { URL_PATH } from "@/common/url"; export const IMG_FORMAT = "(png|jpg|jpeg|bmp|ico|gif|svg|tif|tga)"; export const BLANK_PATTERN = /^[\s|\n]+$/g; export const FRONT_MATTER_PATTERN = /^(-{3,}|;{3,})\n([\s\S]+?)\n\1(?:$|\n([\s\S]*)$)/; export const IMG_IN_URL_PATTERN = new RegExp(`.${IMG_FORMAT}([?|#]?)`); ex...
export interface Iua { isAndroid: boolean; isIOS: boolean; isWindows: boolean; isMac: boolean; isIPad: boolean; isMobile: boolean; isWebKit: boolean; isChrome: boolean; isFirefox: boolean; isGecko: boolean; is360se: boolean; isIE: boolean; isEdge: boolean; isOpera: boolean; isSafari: boole...
import { AccessToken, AccessTokenVerifyResult, BotFriendshipStatus, LoginResult, UserProfile, } from '../types' export const deserializeLoginResult = (data: any): LoginResult => ({ IDTokenNonce: data.IDTokenNonce, accessToken: deserializeAccessToken(data.accessToken), friendshipStatusChanged: data.frie...
import * as shell from './shell'; /** * Clones a repository from GitHub. Requires a `GITHUB_TOKEN` env variable. * * @param repositoryUrl the repository to clone. * @param targetDir the clone directory. */ export function clone(repositoryUrl: string, targetDir: string) { const gitHubToken = process.env.GITHUB_T...
import { RequestTracker } from "./request-tracker"; const TEST_TIMEOUT = 3; // ms describe("RequestTracker", () => { it("calls timeout handler when the request hasn't finished within max time", (done) => { const rt = new RequestTracker(TEST_TIMEOUT); const timeoutHandler = jest.fn(); const successAfterT...
import { Directive, DirectiveBinding, VNode } from 'vue-demi' export type DirectiveHook = ( el: HTMLElement | SVGElement, binding: DirectiveBinding, node: VNode< any, HTMLElement | SVGElement, { [key: string]: any } >, ) => void export const directive = ( register: DirectiveHook, unr...
import DataStore from './index'; import UserModel from '@/models/User'; import { OAuthTable, OAuth } from '@/typings/database'; class OAuthDatabase extends DataStore<OAuthTable> { constructor() { super('oauth'); } async getConnectedOAuth(type: OAuth, id: string) { const { entities: connect } = await t...
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ /** * @ignore * @param {?} x * @return {?} */ export declare function identity(x: any): any; /** * @ignore * @param {?} x * @return {!Promise<?>} */ export declare function identityAsync(x: any): Promise<any>;
import * as L from "leaflet"; import * as overviewerConfig from './overviewerConfig'; import { Point3DExpression, Point3D, OverviewerTileSet } from "./overviewerConfig"; export function point3D(p: Point3DExpression): Point3D { if (Array.isArray(p)) { return { x: p[0], y: p[1], z: p[2] }; } retu...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { ClientContext } from "../../ClientContext"; import { createDatabaseUri, getIdFromLink, getPathFromLink, ResourceType } from "../../common"; import { CosmosClient } from "../../CosmosClient"; import { RequestOptions } from "../../request...
export class HomePageDto { link: string; constructor(isUrl: boolean) { if(isUrl) { this.link = "https://www.trendyol.com"; } else { this.link = "ty://?Page=Home"; } } public getDeeplink(): string { return "ty://?Page=Home"; } }
import { Injectable } from '@nestjs/common'; @Injectable() export class DatabaseService { create() { return 'This action adds a new database'; } findAll() { return `This action returns all database`; } findOne(id: number) { return `This action returns a #${id} database`; } update(id: numb...
import createActionType from "actions/createActionType"; const advancedListFactory = (name: string) => ({ elementReducer = null, comparator = null } = {}) => { // action types const computeActionName = (name) => (actionName) => `${actionName}:${name}`; const actions = createActionType({ ADD_ELEMENT: compute...
import { NetworkInfo } from '@terra-money/wallet-types'; import { AccAddress } from '@terra-money/terra.js'; import { modalStyle } from './modal.style'; import { ReadonlyWalletSession } from './types'; interface Options { networks: NetworkInfo[]; } export function readonlyWalletModal({ networks, }: Options): Prom...
/* * Copyright 2014 Mozilla Foundation * * 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 agr...
/* Copyright 2018 Geoloep 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 in writing, software distrib...
/* eslint-disable @typescript-eslint/no-explicit-any */ import React, { useState, useEffect } from "react"; import "antd/dist/antd.css"; import "./options.css"; import { Form, Input, Button, Select } from "antd"; import axios from "axios"; import moment from "moment"; import ReactQuill from "react-quill"; import "reac...
import { testRecipe } from '@alwaystudios/recipe-bible-sdk' import { toApiRecipeResponseData } from './recipeTransformer' describe('api recipe transformer', () => { it('transforms a single recipe to api data with selected fields', () => { const recipe = testRecipe() const result = toApiRecipeResponseData(rec...
import 'reflect-metadata' import { PropertyRef } from '.' import { getPropertyKey } from './widgets' import { Exclude } from "class-transformer" export function key (propertyAccess: () => any) { return (""+propertyAccess).match (/\.([a-zA-Z_$][0-9a-zA-Z_$]*)[^\.]*$/)![1] } export function equalsIgnoreCase(a: str...
import {Browser, LoadEvent} from 'puppeteer'; export type Element = { container?: string; text: string[]; }; export type Pricing = { container: string; euroFormat?: boolean; }; export type Brand = | 'test:brand' | 'amd' | 'asrock' | 'asus' | 'corsair' | 'evga' | 'gainward' | 'gigabyte' | 'inno3d' | 'kf...
import dayjs from 'dayjs'; import customParseFormat from 'dayjs/plugin/customParseFormat.js'; import fatalitiesData from '../../data/myanmar-coup/recent-fatality.csv'; dayjs.extend(customParseFormat); export const fatalities = fatalitiesData .map(({ age, dateOfIncident, ...data }) => ({ age: +age || 9999, dateOf...
import bolt11 from 'bolt11' import makeDebug from 'debug' import request from 'request-promise-native' import { LightningApi } from '.' const debug = makeDebug('sb-api:lightning:eclair') interface EclairArgs { /** * Defaults to `localhost` */ host?: string /** * The password to the Eclair RPC server ...
import { memo, useCallback, useState, PropsWithChildren } from 'react'; import classnames from 'classnames'; import noop from 'no-op'; import styles from './CookieBanner.module.scss'; const copy = { settings: 'Cookie Settings', close: 'close', description: 'Ullamco deserunt dolore officia cillum ea culpa eu...
import { render, fireEvent, cleanup } from '@testing-library/react' import { Box } from '../Box' import { wrapWithBackend, fireDrag } from 'react-dnd-test-utils' describe('Box', () => { afterEach(cleanup) it('can be tested with a backend', async () => { const TestBox = wrapWithBackend(Box) const rendered = rend...
import { JupyterFrontEnd } from '@jupyterlab/application'; import { Dialog, showDialog } from '@jupyterlab/apputils'; import { CodeEditor } from '@jupyterlab/codeeditor'; import { DocumentRegistry, IDocumentWidget } from '@jupyterlab/docregistry'; import { ILogPayload } from '@jupyterlab/logconsole'; import { nullTrans...
import typescriptConfig from 'graphql-codegen-typescript-template'; import * as components from './components.handlebars'; import { gql } from './helpers/gql'; import { generateFragment } from './helpers/generate-fragment'; import { eq } from './helpers/eq'; import { toLowerCase } from './helpers/to-lower-case'; type...
import React from 'react'; import { useClassNames } from '@/utils/hooks'; import './index.less'; const CenterContainer = (props: BasicProps): React.ReactElement => { const { children, className } = props; const centerContainerClassName = useClassNames( prefixCls => `${prefixCls}-center-container`, classNa...
import { PointCounter } from 'app/entities/quiz/point-counter.model'; import { QuizStatistic } from 'app/entities/quiz/quiz-statistic.model'; import { QuizExercise } from 'app/entities/quiz/quiz-exercise.model'; export class QuizPointStatistic extends QuizStatistic { public pointCounters: PointCounter[]; publi...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { Location } from '@angular/common'; import { HttpResponse } from '@angular/common/http'; import { CourseManagementService } from 'app/course/manage/course-management.service'; import { ActivatedRoute } from '@angular/router'; import { Subscription } ...
import { sandbox } from 'sinon'; import { tsx } from '@dojo/framework/core/vdom'; import assertionTemplate from '@dojo/framework/testing/harness/assertionTemplate'; import harness from '@dojo/framework/testing/harness/harness'; import * as css from '../../theme/default/menu-item.m.css'; import { MenuItem } from '../../...
export type { HeaderProps } from './types'; export { default } from './component';
import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {AppSettings} from './appSettings.config'; @Injectable({ providedIn: 'root' }) export class AuthService { private url = AppSettings.API_ENDPOINT; getToken(mail, pwd){ return this.http.post(this.url + "login", ...
import React from 'react' import Link from 'next/link' const Button = (props) => { const { element, href, externalHref, isStartButton, className, name, type, children, ...attributes } = props; let el = ''; let buttonAttributes = { name, type, ...attributes, ...
import React from "react"; import { Application } from "../domain/Application"; import ChallengeApplicationCard from "./ChallengeApplicationCard"; interface Props { applications: Application[]; } export default function ChallengeApplicationsList({ applications }: Props) { return ( <section className="pt-16"> ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------...
import * as React from 'react' import { StaticQuery, graphql } from 'gatsby' import Img, { FluidObject } from 'gatsby-image' import styled from '@emotion/styled' interface ImageProps { filename: string alt?: string className?: string } const StyledImg = styled(Img)` &.diImage { margin-top: 200px; } wi...
import { LovelaceCardConfig } from 'custom-card-helpers'; export interface MediaPlayerDynamicGroupsConfig { type: string; media_player_tree: MediaPlayerTree; card: LovelaceCardConfig; show_speaker_selector: boolean; title?: string; keep?: KeepConfig; } export interface KeepConfig { margin?: boolean; b...
import prompt = require("prompt"); prompt.delimiter = ""; prompt.message = "> "; var queue = []; // This is the read lib that uses Q instead of callbacks. export function read(name: string, message: string, silent: boolean = false): Promise<string> { let promise = new Promise<string>((resolve, reject) => { let sc...
import styled from 'styled-components' import type { TActive } from '@/spec' import Img from '@/Img' import css, { theme } from '@/utils/css' export const Wrapper = styled.div` ${css.flex('align-center')}; width: 100%; margin-top: 6px; margin-bottom: 12px; ` export const ItemWrapper = styled.div<TActive>` ...
import { Element, Normaltekst } from "nav-frontend-typografi"; import { FormattedMessage } from "react-intl"; import { Input } from "nav-frontend-skjema"; import React, { useState } from "react"; import { Fareknapp, Flatknapp, Knapp } from "nav-frontend-knapper"; import { FormContext, FormValidation, ValidatorContext }...
/** @module state */ /** for typedoc */ export * from "./interface"; export * from "./state"; export * from "./stateBuilder"; export * from "./stateObject"; export * from "./stateMatcher"; export * from "./stateQueueManager"; export * from "./stateRegistry"; export * from "./stateService"; export * from "./targetState"...
import { CloudTrail } from "../CloudTrail"; import { CloudTrailClient } from "../CloudTrailClient"; import { ListTrailsCommand, ListTrailsCommandInput, ListTrailsCommandOutput } from "../commands/ListTrailsCommand"; import { CloudTrailPaginationConfiguration } from "./Interfaces"; import { Paginator } from "@aws-sdk/ty...
import styled from 'styled-components'; const StyledMainContentContainer = styled.div` width: 90%; flex-grow: 1; @media (min-width: 768px) { width: 80%; } `; export default StyledMainContentContainer;
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import { ApolloClient, HttpLink, InMemoryCache, ApolloProvider } from "@apollo/client" const client = new ApolloClient({ link: new HttpLink({ uri: "http://l...
import {useState} from "react"; import ApproveButon from "./components/ApproveButon"; import BridgeButton from "./components/BridgeButton"; import {TokenMenuContextProvider} from "./contexts/TokenMenuContext"; import {NetworkMenuContextProvider} from "./contexts/NetworkMenuContext"; import SourceGrid, {AMOUNTS_FRO...
import * as TWEEN from 'es6-tween'; import { Any, Coordinates, EasingFunction, Marker, Position } from './types'; export function coordinatesToPosition( coordinates: Coordinates, radius: number, ): Position { const [lat, long] = coordinates; const phi = (lat * Math.PI) / 180; const theta = ((long - 180) * M...
// GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY import * as React from 'react' import HealthBookFillSvg from '@airclass/icons-svg/lib/asn/HealthBookFill'; import AntdIcon, { AntdIconProps } from '../components/AntdIcon'; const HealthBookFill = ( props: AntdIconProps, ref: React.MutableRefObject<H...
import React from 'react'; import Avatar from '@material-ui/core/Avatar'; import Chip from '@material-ui/core/Chip'; import Icon from '@material-ui/core/Icon'; import { taskStatusColor } from '../../utils/colors'; import { taskStatusIconName, taskStatusMessage } from '../../utils/status'; import { cirrusColors } from ...
export { PartMasterFacade } from './part-master.facade'; export { PartMasterService } from './part-master.service';
import * as kafka from 'kafka-node'; import { log } from '../helper'; import { publish } from '../producer/producer'; import { isInSet } from '../redis-client/redis-client'; const handleAccountLookupMessage = async ( message: kafka.Message, topic: string, ) => { const jMessage = JSON.parse(message.value.toString...
import { logger } from "@truffle/db/logger"; const debug = logger("db:resources:projects:resolveNameRecords"); import type { SavedInput, IdObject, Workspace } from "@truffle/db/resources/types"; export async function resolveNameRecords( project: IdObject<"projects">, inputs: { name?: string; type?: ...
import * as React from 'react'; import { IFontIconProps } from './Icon.types'; import { classNames, MS_ICON } from './Icon.styles'; import { css, getNativeProps, htmlElementProperties, memoizeFunction } from '../../Utilities'; import { getIcon } from '../../Styling'; export const getIconContent = memoizeFunction((ico...
import chai, { expect } from 'chai'; import Helper from '../../src/e2e-helper/e2e-helper'; import { statusWorkspaceIsCleanMsg, importPendingMsg } from '../../src/cli/commands/public-cmds/status-cmd'; import { MissingBitMapComponent } from '../../src/consumer/bit-map/exceptions'; import ComponentsPendingImport from '../...
'use strict'; export default (client, packet) => { client.actions.GuildBanRemove.handle(packet.d); };
import raw from "./aoc202008.input" const prepareInput = (rawInput: string) => rawInput.split("\n").map((line) => { const [opcode, val] = line.split(" ") return [opcode, Number(val)] }) const compute = (program: [string, number][]) => { const positions = new Set() let pointer = 0 let acc = 0 let ...
let unk = <unknown>34 let ki: any = "45" unk = ki ki = unk type TT = keyof any
import React from 'react'; import { ErrorPage, ContactIcons } from '@teambit/design.ui.error-page'; type ServerErrorPageProps = {} & React.HTMLAttributes<HTMLDivElement>; export function ServerErrorPage({ ...rest }: ServerErrorPageProps) { return ( <ErrorPage {...rest} code={500} title="Internal server error"> ...
import { SurveyValidator, NumericValidator, EmailValidator, ValidatorResult } from "../src/validator"; import { CustomError } from "../src/error"; import { SurveyModel } from "../src/survey"; import { QuestionTextModel } from "../src/question_text"; import { QuestionMultipleTextModel } from "../src/question_mul...
import { Component, OnInit } from '@angular/core'; import { AuthService } from 'src/app/services/auth.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls: ['./login.component.css'] }) export class LoginComponent implements OnIni...
import { ForecastClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ForecastClient"; import { DescribePredictorBacktestExportJobRequest, DescribePredictorBacktestExportJobResponse, } from "../models/models_0"; import { deserializeAws_json1_1DescribePredictorBacktestExportJobCommand, serializ...
import * as windowStateKeeper from 'electron-window-state'; import { App, BrowserWindow, dialog, ipcMain, Menu, MenuItemConstructorOptions, MessageBoxReturnValue, shell, } from 'electron'; import { errorHandlerWithFrontendInform } from './error-handler-with-frontend-inform'; import { join, normalize } f...
import s from 'shelljs'; const config = require('./tsconfig.json'); const outDir = config.compilerOptions.outDir; s.rm('-rf', outDir + "/*"); s.mkdir("-p", outDir); s.cp('package*.json', outDir);
/** * 根据占位符处理路径 * @param path * @param placeholder */ export const getPath = (path: string, placeholder: { [propName: string]: string; } = {}) => { for (const [k, v] of Object.entries(placeholder)) { path = path.replace(`:${k}`, v); } return path; };
import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { NgForm } from '@angular/forms'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Subscription } from 'rxjs'; // services import { PageheadingService } from 'src/app/services/pageheading.service'; import { Portfolioinfo...
<TS language="th" 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> <translation>สร้า...
import test from 'ava' import { testParser } from './utils' const expressions = [ 'x + y + z', 'x - y + z', 'x + y - z', 'x - y - z', 'x + y * z', 'x + y / z', 'x * y * z', 'x * y / z' ] for (const expression of expressions) { const title = `binary: ${expression}` test(title, (t) => { const {...
import { async, ComponentFixture, TestBed } from "@angular/core/testing"; import { CometChatSenderPollMessageBubbleComponent } from "./cometchat-sender-poll-message-bubble.component"; describe("SenderPollBubbleComponent", () => { let component: CometChatSenderPollMessageBubbleComponent; let fixture: ComponentFixt...
import {Injectable} from "@angular/core"; import {HttpClient} from "@angular/common/http"; import {Client} from "./clients.model"; import {Observable} from "rxjs"; import {map} from "rxjs/operators"; @Injectable() export class ClientsService{ private clientsURL = 'http://localhost:8080/api/clients'; constructor(p...
import { createElement, ReactElement, useCallback } from "react"; import { ColumnsPreviewType, DatagridPreviewProps } from "../typings/DatagridProps"; import { Table, TableColumn } from "./components/Table"; import { parseStyle } from "@mendix/piw-utils-internal"; import { Selectable } from "mendix/preview/Selectable"...
/** * Shipping options that are specific to the carrier. There is currently only * support for DHL specific shipment options. More universal handling to come * in the future. */ export interface ShippingOptions { /** * What category of dangerous goods(if any) does the shipment contents contain. */ dang...
export const description = ` copyExternalImageToTexture Validation Tests in Queue. `; import { getResourcePath } from '../../../../../common/framework/resources.js'; import { makeTestGroup } from '../../../../../common/framework/test_group.js'; import { raceWithRejectOnTimeout, unreachable, assert } from '../../../../...
// Type definitions for FullCalendar 1.6.1 // Project: http://arshaw.com/fullcalendar/ // Definitions by: Neil Stalker <https://github.com/nestalk>, Marcelo Camargo <https://github.com/hasellcamargo> // Definitions: https://github.com/borisyankov/DefinitelyTyped /// <reference path="../jquery/jquery.d.ts"/> declare m...
import * as path from "path"; import * as fse from "fs-extra"; import { ContractObject } from "@truffle/contract-schema/spec"; export interface UpdatedOptions { paths: string[]; contractsBuildDirectory: string; } export async function updated({ paths, contractsBuildDirectory, }: UpdatedOptions): Promise<stri...
import { CreateGuestUseCase } from '$/packages/application/usecase/admin/guests/create'; import { TestGuestRepository } from '$/__tests__/__mocks__/infra/database/guest'; import { ResponseRepository } from '$/packages/infra/http/response'; describe('CreateGuestUseCase', () => { it('should create guest', async() => {...
/* * 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 'webext-base-css/webext-base.css'; import './options.css'; import React from 'dom-chef'; import cache from 'webext-storage-cache'; import domify from 'doma'; import select from 'select-dom'; import delegate from 'delegate-it'; import fitTextarea from 'fit-textarea'; import * as indentTextarea from 'indent-textar...
import { WebFrontendPage } from './app.po'; describe('web-frontend App', () => { let page: WebFrontendPage; beforeEach(() => { page = new WebFrontendPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to geli!'); }); });
import { IsEmail, IsString, Length } from 'class-validator'; export class SignInDto { @IsString() @IsEmail() email: string; @IsString() @Length(6, 64) password: string; }
import { BackupServiceService } from 'cloud/mdb/clickhouse/v1/backup_service'; import { ClusterServiceService } from 'cloud/mdb/clickhouse/v1/cluster_service'; import { DatabaseServiceService } from 'cloud/mdb/clickhouse/v1/database_service'; import { FormatSchemaServiceService } from 'cloud/mdb/clickhouse/v1/format_sc...
import { ChainId } from '@mitz/schems' import { FortmaticConnector as BaseFortmaticConnector } from '@web3-react/fortmatic-connector' import { getConfiguration } from '../configuration' import { ProviderType } from '../types' export class FortmaticConnector extends BaseFortmaticConnector { apiKeys: Record<number, st...
import {SeqConfig} from "./seq-stream"; import {OfferStream} from "./offer-stream"; export class RollupStream<T extends object> extends OfferStream<T> { protected prevValue?: T; private demanded = new Set<AsyncIterator<T>>(); private free = new Set<AsyncIterator<T>>(); private nextFree: Promise<AsyncIterator<T>>...
// import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum'; // import { ArgumentMetadata, PipeTransform } from '@nestjs/common/interfaces'; import { ParamsTokenFactory } from "./params-token-factory"; import { RouteParamtypes } from "../enums/route-paramtypes.enum"; import { ArgumentMetadata, P...
import { ApiGatewayV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayV2Client"; import { DeleteRouteResponseRequest } from "../models/models_0"; import { deserializeAws_restJson1DeleteRouteResponseCommand, serializeAws_restJson1DeleteRouteResponseCommand, } from "../protocols/Aws_re...
import { ExcalidrawElement, FontFamily, ExcalidrawSelectionElement, } from "../element/types"; import { AppState } from "../types"; import { DataState } from "./types"; import { isInvisiblySmallElement, getNormalizedDimensions } from "../element"; import { calculateScrollCenter } from "../scene"; import { randomI...