text
stringlengths
10
953k
import TokenType from "./tokenType"; import Token from "./token"; const tokenMatchers = [ { type: TokenType.Whitespace, matcher: /^(\s)+/ }, { type: TokenType.Identifier, matcher: /^(\b[A-Za-z_]+[A-za-z0-9_]*)/ }, { type: TokenType.Constant, matcher: /^(\b[0-9.]+)/ }, { type: ...
import React from "react"; import { Box } from "grommet"; import { Checkmark } from "grommet-icons"; export default function CheckmarkCircle() { return ( <Box id="CheckboxCircle" style={{ position: "absolute" }} width="2em" height="2em" round="full" justify="center" alig...
/* eslint-disable @typescript-eslint/no-explicit-any, */ import { isFunction, isEmptyObject, computeDate, } from '@cdp/core-utils'; import { checkCanceled as cc } from '@cdp/promise'; import { RESULT_CODE } from '@cdp/result'; import { SortOrder, FilterCallback, SortCallback, Collectio...
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader'; import { VRMHumanoid } from '../humanoid'; import { VRMFirstPerson } from './VRMFirstPerson'; /** * An importer that imports a [[VRMFirstPerson]] from a VRM extension of a GLTF. */ export declare class VRMFirstPersonImporter { /** * Import a [[VRM...
import { listenAndProxyMessages } from "../common/message"; listenAndProxyMessages(); const container = document.head || document.documentElement; const scriptElement = document.createElement("script"); scriptElement.src = browser.runtime.getURL("injectedScript.bundle.js"); scriptElement.type = "text/javascript"; co...
import * as fromActions from './auth.action'; describe('Auth Action Test', () => { const error = { message: 'Test Error' }; describe('LoginAction', () => { it('should work', () => { const expectedResult = { username: 'email', password: 'password' }; const action = new fromActions.LoginAction({...e...
import * as FragmentShader from '../shaders/posColor.frag'; import * as VertexShader from '../shaders/posColor.vert'; import {BaseScene} from './BaseScene'; import {ShaderProgram} from '../ShaderProgram'; import {Mat4} from '../math/Mat4'; import {Vec3} from '../math/Vec3'; import {GyroDynamics} from '../GyroDynamics';...
// Sadly, no onclick on Ubuntu import {Notification} from 'electron'; export function showNotification() { const myNotification = new Notification({ title: 'Title', body: 'Lorem Ipsum Dolor Sit Amet', }); console.log(myNotification); myNotification.addListener('click', () => { console.log('Notific...
import { Controller, Get, Param, Post, Body, Delete } from '@nestjs/common'; import { EstoqueService } from './estoque.service'; @Controller('estoque') export class EstoqueController { constructor(private readonly estoque: EstoqueService) { } @Get() async findAll() { return await this.estoque.fin...
import { CreateResolverRuleInput } from "../shapes/CreateResolverRuleInput"; import { CreateResolverRuleOutput } from "../shapes/CreateResolverRuleOutput"; import { InvalidParameterException } from "../shapes/InvalidParameterException"; import { InvalidRequestException } from "../shapes/InvalidRequestException"; import...
import { SC2Target } from '../../model/sc2unitinformation'; import { NavController, NavParams } from 'ionic-angular'; import { Component } from '@angular/core'; import { NotFoundPage } from '../404NotFound/404'; import { SC2_UNITS } from '../../data/units/units'; import { SC2Unit } from '../../model/sc2unit'; import { ...
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {AccountsRoutingModule} from './accounts-routing.module'; import {OntimizeWebModule} from "ontimize-web-ngx"; import {AccountsHomeComponent} from "./accounts-home/accounts-home.component"; import {SharedModule} from "../../sha...
import angular from 'angular'; import _ from 'lodash'; import $ from 'jquery'; import baron from 'baron'; var module = angular.module('grafana.directives'); module.directive('graphLegend', function(popoverSrv, $timeout) { return { link: function(scope, elem) { var firstRender = true; var ctrl = scop...
import { Client, RichEmbed, TextChannel } from "discord.js"; import { Constants } from "../../constants"; export class FaqUpdateEvent { public static async handle(serverBot: Client, faq: any) { // Get FAQ channel let faqChannel = serverBot.channels.find( x => x.type === "text" && (x as TextChannel).nam...
// Type definitions for BaiduMap v2.0 // Project: http://lbsyun.baidu.com/index.php?title=jspopular // Definitions by: Codemonk <http://www.youxianxueche.com/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* ***************************************************************************** Copyright [...
import { Entries } from "../../types"; import { fromIndexDate, toDayOneDate } from "../../utils/dateFormat"; import mdToTxt from "../../utils/mdToTxt"; import sortEntries from "./sortEntries"; /** * Convert entries to a text string in a format compatible with Day One's TXT import: * * [TAB]Date:[TAB][Date] * * ...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { HomeComponent } from './home/home.component'; const routes: Routes = [ { path: '', component: HomeComponent }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export cla...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { AppComponent } from './app.component'; import { AppRoutingModule } from './app-routing.module'; import { B...
<TS language="af" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Regs-kliek om die adres of etiket te verander</translation> </message> <message> <source>Create a new address</source> <tra...
import { Injectable, NotFoundException } from '@nestjs/common'; import { Product } from './product.model'; @Injectable() export class ProductsService { private products: Product[] = []; insertProduct(title: string, desc: string, price: number): string { const prodId = Math.random().toString(); const newPr...
import { AttachMethodArrayType, attachMethodsToMetaData as _attachMethodsToMetaData, singletonFunctionRegisrationFactory, } from "components/utils"; import { GridMetaDataType } from "../types"; const optionsMethodNotFound = (fieldKey) => () => { console.log(`no method found for options at ${fieldKey}`); retu...
import { Component, RepresentationComponent, Shape } from 'ngl' import { GLModel, IGLModelProps } from '../../components/GLModel' import { PharParser } from '../parser/PharParser' export interface IProps extends IGLModelProps { solid: boolean shownTypes: string[] } export class PharmacophoreGLModel extends GLMod...
import { BinOpNode, NumNode, UnaryOpNode, VarNode, FunctionCallNode, } from './node'; import { Parser, Lexer, ASTNode, ParserError, } from './parser'; import { tokenDefinitions, TokenType } from './tokens'; export class ProgramParser extends Parser { constructor(input: string) { super(new Lexer(tokenDefiniti...
/* * Copyright 2018 The Kubeflow 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
import React from 'react'; import { ResponsiveBoxStyleProps, ResponsiveFlexStyleProps, ResponsiveFlexItemStyleProps } from '../../styles'; interface FlexProps extends ResponsiveBoxStyleProps, ResponsiveFlexStyleProps, ResponsiveFlexItemStyleProps { as?: React.ElementType | keyof JSX.IntrinsicElements; } export {};
type Props = { cols: string } function toCssClasses(numbers: string) { const cols = numbers ? numbers.split(' ') : [] let classes = '' if(cols[0]) classes += `col-xs-${cols[0]}` if(cols[1]) classes += ` col-sm-${cols[1]}` if(cols[2]) classes += ` col-md-${cols[2]}` if(cols[3]) classes += `...
export const tsconfigRootPrefix = './'; export const jestRootPrefix = '<rootDir>/'; export const baseUrlFactory = (baseUrl: string): string => baseUrl.startsWith(tsconfigRootPrefix) ? baseUrl.replace(tsconfigRootPrefix, jestRootPrefix) : `${jestRootPrefix}${baseUrl}`;
/* * This file is part of wecco. * * Copyright (c) 2019 - 2021 The wecco 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....
import { StrokeStyle, FillStyle, defaultStrokeStyle, defaultFillStyle, mergeStyles } from "hovl/style"; import { Vector } from "hovl/vector"; export interface Trs { translate: Vector; rotate: number; scale: Vector | number; } export abstract class Shape { public translate: Vector; public rotate: n...
import { ResponseObject } from "openapi3-ts"; import { print } from "../testUtils"; import { getErrorResponseType } from "./getErrorResponseType"; describe("getErrorResponseType", () => { it("should generate a simple error", () => { expect( print( getErrorResponseType({ responses: { ...
<TS language="nb_NO" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Hรธyreklikk for รฅ redigere adresse, eller beskrivelse</translation> </message> <message> <source>Create a new address</source> ...
import { Component, OnInit } from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import {DatasetService} from '../shared/services/dataset.service'; import {AuthService} from '../shared/services/auth.service'; @Component({ selector: 'app-create', templateUrl: './create.component...
export class FunctionProto { ret: string; name: string; params: Array<Param>; constructor(retVal: string, name: string, params: Array<Param>) { this.ret = retVal; this.name = name; this.params = params; }; stringify(): string { let k: string = ''; this.pa...
import * as React from 'react'; import * as ReactDom from 'react-dom'; import { Version } from '@microsoft/sp-core-library'; import { IPropertyPaneConfiguration, PropertyPaneTextField, IPropertyPaneDropdownOption, PropertyPaneToggle, } from '@microsoft/sp-property-pane'; import { BaseClientSideWebPart } from '@...
import { Request, Response, NextFunction, Router } from 'express'; import { Model, Document } from 'mongoose'; import { ControllerBase } from '../interfaces/ControllerBase'; export class UserController implements ControllerBase { model: Model<Document>; router: Router; route: string; constructor(model: Model...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import {SessionHandler} from '../../backend'; import {Graph} from '../../graph'; import {Logger} from '../../instrument'; import {Operator} from '../../operators'; import {OpSet, resolveOperator} from '../../opset'; import ...
import { Component } from '@angular/core'; import { NzMessageService } from 'ng-zorro-antd'; import { SFSchema } from 'nz-schema-form'; @Component({ selector: 'app-demo', templateUrl: './demo.component.html' }) export class DemoComponent { value: any; actions = { send: (form: any) => { ...
/** * @license * Copyright 2016 Google Inc. * * 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...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
export enum Role { Sender = "sender", Receiver = "receiver", } export enum ClientMethod { Start = "start", Stop = "stop", } export interface IStart { method: ClientMethod.Start; role: Role; accessToken: string; talkId: string; } export interface IStop { method: ClientMethod.Stop; } export type Ipc...
// Simple stack backed by an array export class Stack<T> { private items: T[] = []; public push(item: T) { this.items.push(item); } public pop(): T { if (this.items.length < 1) { throw new Error("Stack underflow."); } return this.items.pop()!!; } /** * Find the ...
import React, {useEffect, useState} from 'react' import {Block} from 'baseui/block' import axios from 'axios' import {env} from '../../util/env' import * as queryString from 'query-string' import moment, {HTML5_FMT, Moment} from 'moment' import {HeadingSmall} from 'baseui/typography' import {theme} from '../../util' im...
/// <reference path="./node_modules/tns-core-modules/tns-core-modules.d.ts" /> Needed for autocompletion and compilation. /// <reference path="./node_modules/tns-platform-declarations/android.d.ts" />
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
export async function getPrice(page, url) { const priceSelector = '#price'; if (await page.$(priceSelector)) { return page.$eval(priceSelector, evalCallback); } return null; } export const evalCallback = elem => elem.innerText;
import * as fetch from "isomorphic-fetch"; import { RECAPTCHA_SECRET } from "./secrets"; const RECAPTCHA_URL = "https://www.google.com/recaptcha/api/siteverify"; export const logger = (className: string) => ( message: string, ...objects: any[] ) => { console.log(className, message, ...objects); }; export const...
import React, { createContext, useCallback, useContext, useState } from 'react'; import { v4 } from 'uuid'; import ToastContainer from '../components/ToastContainer'; export interface ToastMessage { id: string; type?: 'success' | 'error' | 'info'; title: string; description?: string; } interface ToastCon...
export * from './types'; export * from './lib/fileBuilder'; export * from './lib/language';
import React from 'react' type ShowIfCondition = boolean | (() => boolean) export interface ShowIfElementProps { condition?: ShowIfCondition children: JSX.Element } interface ShowIfElementType { ({ children }: ShowIfElementProps): JSX.Element showElementType: 'IS_TRUE' | 'IS_FALSE_AND' | 'OR_ELSE' } type Sh...
import { JupyterFrontEndPlugin } from '@jupyterlab/application'; import { CodeEditor } from '@jupyterlab/codeeditor'; import { IDocumentWidget } from '@jupyterlab/docregistry'; import { Signal } from '@lumino/signaling'; import { WidgetAdapter } from '../adapters/adapter'; import { IEditorName } from '../feature'; imp...
import { createRange, Range } from '../annotations/range'; import { StringTokenizer } from './string-tokenizer'; export class LineSegmentTokenizer extends StringTokenizer { tokenizeAsRanges(data: string, range: Range = createRange(0, data.length)): Range[] { const tokens: Range[] = []; let lineStart = range....
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License /** * example: 'hello' | '[SendActivity_123456]' */ export type LgText = string; /** * example: '[greetings()]' | '[SendActivity_123456()]' */ export type LgTemplateRefString = string; /** * example: 'greeting' | 'SendActivity_123456' */...
import {NOISE_NAMES, NoiseName} from '../../../../src/engine/nodes/gl/Noise'; QUnit.test('gl noise params update as type changes', async (assert) => { const MAT = window.MAT; const material_basic_builder1 = MAT.createNode('meshBasicBuilder'); material_basic_builder1.createNode('output'); material_basic_builder1.cr...
#!/usr/bin/env node import * as sns from '@aws-cdk/aws-sns'; import * as ssm from '@aws-cdk/aws-ssm'; import * as cdk from '@aws-cdk/core'; import { AwsCustomResource } from '../../lib'; const app = new cdk.App(); const stack = new cdk.Stack(app, 'aws-cdk-sdk-js'); const topic = new sns.Topic(stack, 'Topic'); const...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-comp-4795', templateUrl: './comp...
import { Moment } from 'moment'; export interface IQmsControlDetails { id?: number; inspectionCd?: string; inspectionItem?: string; technicalRequirement?: string; inspectionInstrument?: string; inspectionResultDiff?: string; flagStatus?: string; compPkid?: string; remark?: string; ...
import React, { useState, memo } from 'react' import { EditPropertyProps } from '../base-property-props' import { Label, Input, FormGroup, InputGroup, FormMessage, Button, Icon } from '../../design-system' import { recordPropertyIsEqual } from '../record-property-is-equal' const Edit: React.FC<EditPropertyProps> = (p...
/* * 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...
// Default API interface Api { protocol: string; host: string; port: string; prefix: string; version: string; } // Environment export interface Environment { appVersion: string; dev: boolean; production: boolean; enableServiceWorker: boolean; navigateToErrorPage: boolean; logHttpErrors: boolean; ...
import React, { useEffect, useState, Fragment, useContext } from "react" import Head from "next/head" import { AuthContext, DashBlock, DashBlocks, HeaderBadge, LinkButton, RequireLogin, t, LoadingOverlay, } from "@bloom-housing/ui-components" import { PageView, pushGtmEvent } from "@bloom-housing/shared...
import { RequestFromClientWithBody, Res } from "../../../types/interface"; import logger = require("../../../logger"); import { ObjectId } from "mongoose"; import { turnHTMLtoJSON } from "../../../controllers/dispositif/functions"; import { getDispositifByIdWithMainSponsor, updateDispositifInDB, createDispositifI...
import { TestBed } from '@angular/core/testing'; import { DaffProductFilterEqual, DaffProductFilterType, } from '@daffodil/product'; import { MagentoAggregation } from '@daffodil/product/driver/magento'; import { MagentoProductAggregationSelectFactory } from '@daffodil/product/driver/magento/testing'; import { tr...
import * as React from 'react'; import { useTranslation } from 'react-i18next'; import { Label } from '@patternfly/react-core'; import useGettingStartedShowState from '../getting-started-card/utils/hooks/useGettingStartedShowState'; import { GETTING_STARTED_SHOW_STATE } from './constants'; interface RestoreGettingS...
import { AngularFirestoreCollection, AngularFirestore } from 'angularfire2/firestore'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Http } from '@angular/http'; import { URLCORREO } from '../../../config'; import { promise } from 'protractor'; @Injectab...
import styled from '@emotion/styled'; import { withStyles } from '@material-ui/core/styles'; import LanguageIcon from '@material-ui/icons/Language'; import i18next, { TFunctionKeys } from 'i18next'; import React, { useCallback, useContext, useState, useMemo } from 'react'; import { useTranslation } from 'react-i18next'...
class Vertex { readonly x: number; readonly y: number; constructor({x, y}: {x: number, y: number}) { this.x = x; this.y = y; } public getManhattanDistanceToVertex(destination: Vertex): number { const {x: x0, y: y0} = this; const {x: x1, y: y1} = destination; ...
import { Controller, Get, Post } from '@nestjs/common'; import { Request } from 'express'; @Controller('cats') export class CatsController { @Post() create(): string { return '๋‚˜๋Š” ๊ณ ์–‘์ด'; } @Get() findAll(): string { return '๋‚˜๋Š” ์‚ผ์ƒ‰์ด!'; } }
import { Component, OnInit } from '@angular/core'; import { AngularFireStorage } from '@angular/fire/compat/storage'; import { Observable, of } from 'rxjs'; import { startWith, tap } from 'rxjs/operators'; import { makeStateKey, TransferState } from '@angular/platform-browser'; import { trace } from '@angular/fire/comp...
import { Scene, Loader, LoadingManager } from '../../../src/Three'; export class VRMLLoader extends Loader { constructor( manager?: LoadingManager ); load( url: string, onLoad: ( scene: Scene ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void; parse( data...
import '@island.is/infra-tracing' import next from 'next' import { logger, monkeyPatchServerLogging } from '@island.is/logging' import { startMetricServer } from '@island.is/infra-metrics' import createExpressApp, { Express } from 'express' import { getNextConfig } from './config' import { setupProxy } from './proxy' i...
import { DiaryDto } from './../../Dto/diary.dto'; import { Diary } from './../../Model/diary.schema'; import { Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; @Injectable() export class DiaryService { constructor( @InjectModel(Diary.name) priv...
import React, { ReactChild, useCallback, useState } from 'react'; import axios, { AxiosError, AxiosResponse } from 'axios'; import { useRouter } from 'next/router'; interface Field<T> { label: string; key: keyof T; inputType: 'text' | 'textarea' | 'password'; } interface UserFormOptions<T> { initFormData: T, ...
// Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. // The relative order of the elements should be kept the same. // Since it is impossible to change the length of the array in some languages, you must instead have the result be...
import React from "react" export const Registers: React.FC = () => { return ( <> <h2 id="rekisterit"> Rekisterit joiden kohteisiin 3D-malleja on linkitetty </h2> <b>Museovirasto</b> <ul> <li> <a href="https://www.kyppi.fi/palveluikkuna/mjreki/read/asp...
export interface Settings { global: GlobalSettings; comic: ComicSettings; session: SessionSettings; } export interface GlobalSettings { } export interface ComicSettings { grid: GridSettings; ruler: RulerSettings; } export interface GridSettings { bigUnitSize: number; smallUnitSize: number; bigUnitL...
import { ZGridCell } from './z-grid-cell'; describe('z-grid-cell', () => { it('builds', () => { expect(new ZGridCell()).toBeTruthy(); }); });
/* * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,...
import { Injectable } from '@angular/core'; import { Store } from '@ngrx/store'; import { Observable } from 'rxjs'; import { first, map, publishReplay, refCount } from 'rxjs/operators'; import { IApp, ICfV2Info, IOrganization, ISpace } from '../../../core/cf-api.types'; import { EntityService } from '../../../core/ent...
import * as L from 'leaflet' import {ControlPosition} from 'leaflet'; declare module 'leaflet' { /** * Creates a bar that holds a group of EasyButtons * @param buttons array of EasyButtons that will be grouped together in the EasyBar * @param options */ function easyBar(buttons: Control.EasyButton[], ...
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * 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 ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IconComponent } from './icon.component'; /** * The Icon module * * Contains icon component */ @NgModule({ declarations: [ IconComponent ], imports: [ CommonModule ], exports: [IconComponent] }) export ...
import { ChildProcess, spawn, SpawnOptions } from 'child_process'; import throttle from 'lodash.throttle'; import { Config, globalConfig, writeIndentedText, writeLogicalText, writePermanentText, } from './util'; const BATCH_TIME = 500; type CommonOptions = { hideOutputAtEnd?: boolean; isRealTime?: bool...
import * as aws from "aws-sdk"; import * as dynameh from "dynameh"; import * as giftbitRoutes from "giftbit-cassava-routes"; import {createdDatePast, dynamodb, objectDynameh, objectDynameh2} from "./dynamodb"; import {stripUserIdTestMode} from "../utils/userUtils"; import {DbObject} from "./DbObject"; import {DbUser} f...
import test from 'ava'; import { createSqlTag, } from '../../../../src/factories/createSqlTag'; import { SqlToken, } from '../../../../src/tokens'; const sql = createSqlTag(); test('creates an unnest expression using primitive values', (t) => { const query = sql`SELECT * FROM ${sql.unnest([[1, 2, 3], [4, 5, 6]]...
import { expect } from 'chai' import { TestInfo } from '../../../src/test-runners' import { getSnapshotFilePath, getSnapshotFullName, getUpdateSnapshotMode, } from '../../../src/validators/snapshots/helpers' const testInfo: TestInfo = { suitName: ['ClassA', 'when called directly'], testName: 'works', test...
/** * @license * Copyright 2020 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 ...
import {createEvaluationContextIdentifier} from "./createEvaluationContextIdentifier"; /** A context to store the input text that's being evaluated */ export const inputTextContextIdentifier = createEvaluationContextIdentifier( "input text", () => "" );
/** * * * OpenAPI spec version: 20200601 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ...
import { Component } from '@angular/core'; @Component({ selector: 'nz-demo-select-label-in-value', template: ` <p>The selected option's age is {{selectedValue?.age}}</p> <br> <nz-select style="width: 120px;" [compareWith]="compareFn" [(ngModel)]="selectedValue" (ngModelChange)="log($event)" nzAllowClea...
import { Adapter } from "./native/adapter" import { Session } from "./session" import { Locatable } from "./url" import { StreamMessage } from "./streams/stream_message" import { StreamSource } from "./types" import { VisitOptions } from "./drive/visit" import { PageRenderer } from "./drive/page_renderer" import { Page...
import { Ionicons } from '@expo/vector-icons' import React, { useRef } from 'react' import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native' import { FlatList, RectButton } from 'react-native-gesture-handler' import Swipeable from 'react-native-gesture-handler/Swipeable' interface RenderProps<T> { rende...
// *** 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 * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as utilities from ".....
import { registry, setupHub } from '../helpers/server'; const stubNonce = 'abc:123'; let stubAuthToken = 'def--456'; let stubTimestamp = process.hrtime.bigint(); class StubAuthenticationUtils { generateNonce() { return stubNonce; } buildAuthToken() { return stubAuthToken; } extractVerifiedTimestamp(...
import {ResolverPayload, Resolvers} from '../../types'; import {protectAuthResolver} from '../../utils/users'; type RoomType = {id: number} | null; const sendMessage = async ([ _, {payload, roomId, userId}, {prisma, loggedInUser}, ]: ResolverPayload) => { let room: RoomType = null; if (userId) { const u...
/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ /** * [[include:README.md]] * @packageDocumentation * @module jodit */ import type { CustomC...
version https://git-lfs.github.com/spec/v1 oid sha256:4dadf77490376b6c1e6a08f18f0c97a82b00613955201475c6cd5d40e69666fb size 680936
import * as React from "react" import { useForm } from "react-hook-form" import { Task } from "../../components/Task" import { useFirebase } from "../../containers/Firebase" import { TaskModel, TaskModelProps } from "../../models/TaskModel" export const Dashboard = () => { const app = useFirebase() const [showComp...
/** * Last generated by generate-commands.ts * at 2018-07-24T20:18:22.146Z from * eiscp-commands.yaml **/ import { Packet } from "../protocol"; /** * Zone4 Muting Command (MT4) */ export function muting(value: string) { return new Packet("MT4", value); } export namespace muting { /** sets Zone4 Muting Off *...
import fs = require('fs-extra'); import { ThttpPlugin } from '../ThttpPlugin'; import {WorkerApplication as Application} from '../../WorkerApplication' import express = require('express'); import TbaseMetric from './TbaseMetric' import bodyParser = require('body-parser'); export class Tplugin extends ThttpPlugin { ...
import { Background, Comment, GherkinCommentHandler, Step } from "../../src"; import { GherkinBackground, GherkinStep } from "../../src/gherkinObject"; describe("Background", () => { test("should create model of a Background", () => { // Given // When const background: Background = new Background("Bkeeyw...