text
stringlengths
10
953k
/** * Copyright (c) 2020-present, Goldman Sachs * * 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 l...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import Generator from '../../Generator'; import { TSSignatureDeclarationMeta, tsSignatureDeclarationMeta, AnyNode, } from '@...
import express from "express"; import socketIo from "socket.io"; import http from "http"; import randomString from "random-string"; import ErrorResponse from "./interfaces/socket/ErrorResponse"; import { EnterRoomPayload, EnterRoomResponse } from "./interfaces/socket/EnterRoom"; import RoomList from "./interfaces/...
export declare class AttachFocusAttribute { private element; value: boolean | string; constructor(element: HTMLElement); attached(): void; }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { defineConfig } from 'vite' export default defineConfig({ root: 'docs', optimizeDeps: { include: ['vue'], }, })
/** * Copyright (c) 2020 GraphQL Contributors. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { ComponentType, PropsWithChildren, MouseEventHandler, Component, FunctionComponent, } from 'react'; import { ...
import AMQP from '../../lib'; const amqp = new AMQP({ host: 'amqp://localhost' }); amqp.connect().then(async () => { const channel = await amqp.channel('test'); const exchange = await channel.exchange('test_exc', { bind: [{ name: 'test_queue', routes: ['tasks'] }] }); await exchange.subs...
import { App, Stack } from '@aws-cdk/core'; import { SynthUtils } from '../lib'; test('SynthUtils.synthesize() is always executed against the root of the tree', () => { // GIVEN const root = new App(); const stack1 = new Stack(root, 'stack1'); const stack2 = new Stack(root, 'stack2'); stack2.addDependency(st...
const plugin: Fig.Plugin = { icon: "🌟", name: "osx-dev-zsh-plugin_marshallmick007", displayName: "OSX Dev Zsh Plugin", type: "shell", description: "This plugin adds some commands for maintaining various server programs on my OSX install.", authors: [ { name: "marshallmick007", github: "...
import { expect } from "chai"; export class TreeMock { public static apply( path: string | null, value: string ): void | boolean { switch (path) { case null: return undefined; case "a": expect(value).to.eq("α"); break; ...
export interface TooltipTheme { /** * Added to the tooltip element. */ tooltip?: string; /** * Added to the root when the tooltip is active. */ tooltipActive?: string; /** * Wrapper for the root element used to position the tooltip. */ tooltipWrapper?: string; } interface TooltipProps { ...
import { CompletionItem } from 'vscode-languageserver-types'; import { ISuggestionRequest } from '../suggestionManager'; import CollectionSnippet from './antlers/collection'; import CopyrightYearSnippet from './antlers/copyrightYear'; import FormsetSnippet from './antlers/formset'; import NavDepthTwoSnippet from './ant...
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const BiHappyBeaming: IconType;
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import Portal from '../util/Portal'; import ClassNames from '../util/ClassNames'; export type NotificationLocation = 'default' | 'top' | 'right' | 'bottom' | 'left' | 'center-horizontal' | 'center-vertical' | 'top-right' | 'bottom-right' | 'bottom...
import React, { createContext, FC, useContext, useState } from 'react'; import { DefaultTheme, ThemeProvider } from 'styled-components'; import { ThemeKey, themes } from '../../styles/themes'; type ThemeContext = [ { name: ThemeKey; theme: DefaultTheme }, (k: ThemeKey) => void, ]; const themeContext = createCont...
import { ChangeDetectionStrategy, Component, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { select, Store } from '@ngrx/store'; import { Observable, Subscription } from 'rxjs'; import { first, withLatestFrom } from 'rxjs/operators'; import { filterNull } fro...
import { takeUntil } from 'rxjs/operators'; import { UserResponse } from '@shared/models/user.interface'; import { Subject } from 'rxjs'; import { UtilsService } from './../../services/utils.service'; import { AuthService } from '@auth/auth.service'; import { Component, OnInit } from '@angular/core'; @Component({ se...
import { transaction } from 'mobx'; import { ThrottleProcessor } from 'common/utils/throttle'; import { GoalType, UserRoles, GoalStatus, ClientGoalState, ClientLibraryState, PromptsLibrary } from 'common/models'; import Firebase from 'common/services/firebase'; import { Coaches as CoachesFunctions } from 'common/abstra...
import { expect } from 'chai'; import { hot, cold, expectObservable, expectSubscriptions, time } from '../helpers/marble-testing'; import { AsyncScheduler } from 'rxjs/internal/scheduler/AsyncScheduler'; import { TestScheduler } from 'rxjs/testing'; import { Observable, NEVER, EMPTY, Subject, of, merge, Notification } ...
/* * Copyright (c) 2021 Ford Motor Company * 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 { ApiProperty } from '@nestjs/swagger'; import { DepartmentType } from '../enums/department-type.enum'; import { PageDto } from './page.dto'; import { ContactElementDto } from './contact-element.dto'; import { Type } from '@nestjs/common'; export class DepartmentDto { @ApiProperty({ required: false }) id?: ...
import { RenderAPI } from "@testing-library/react-native" import { Registration_me } from "__generated__/Registration_me.graphql" import { Registration_sale } from "__generated__/Registration_sale.graphql" import { RegistrationResult, RegistrationStatus, } from "app/Components/Bidding/Screens/RegistrationResult" im...
export * from "./uiAtom"; export * from "./mutations"; export * from "./highlightElementAtom"; export * from "./activeElementAtom"; export * from "./sidebarAtom";
import React from "react"; import { useIntl } from "react-intl"; import AppHeader from "@saleor/components/AppHeader"; import CardSpacer from "@saleor/components/CardSpacer"; import { ConfirmButtonTransitionState } from "@saleor/components/ConfirmButton"; import Container from "@saleor/components/Container"; import Fo...
import { IChangedTiddlers } from 'tiddlywiki'; import type { ReactWidget } from 'tw-react'; import { App, IEditorAppProps } from './editor'; import { SAVE_DEBOUNCE_INTERVAL } from './config/config'; // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access const Widget = require('$:/plugins/linonetwo/tw-...
/** * * * 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 { Controller, Get, Post, Body, Delete, Param, ParseIntPipe, Patch, UsePipes, ValidationPipe, BadRequestException, ValidationError, HttpException, } from '@nestjs/common'; import { ProjectMembershipService } from './project-membership.service'; import { ProjectMembership } from './projec...
import React from 'react'; import styled from 'styled-components'; import { ColorProps } from '@heathmont/moon-themes'; import { themed } from '@heathmont/moon-utils'; const Svg = (props: React.SVGProps<SVGSVGElement>) => ( <svg width="1em" height="1em" viewBox="0 0 20 8" xmlns="http://www.w3.org/200...
export * from './checkboxInputs.component';
describe("Hello", () => { it("World", () => { expect(2).toBe(2); }); });
import { TouchableOpacity } from 'react-native'; import styled from '@covid/themes/styled-components'; import { TColorPalette, TColorShade, TGridSizes } from '@covid/themes'; interface SProps { colorPalette: TColorPalette; colorShade: TColorShade; disabled: boolean; outline: boolean; rhythm: TGridSizes; s...
import {Component, ElementRef, Input, NgModule, Renderer2, ViewChild} from "@angular/core"; import {AbstractDialogComponentBase, DialogBase, JigsawDialog, JigsawDialogModule} from "../dialog/dialog"; import {CommonModule} from "@angular/common"; import {JigsawButtonModule} from "../button/button"; import {JigsawDraggab...
import {PortablePath, npath, ppath, toFilename, xfs} from '@yarnpkg/fslib'; import globby from 'globby'; import semver from 'semver'; import {Manifest} from './Manifest'; import {Project} ...
export * from './use-toast-message.mock'
import React from 'react' import PropTypes from 'prop-types' import {style} from 'styled-system' import theme from './theme' type Location = | 'top' | 'top-left' | 'top-right' | 'right' | 'right-top' | 'right-bottom' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-bott...
// svg/clock-time-two-outline.svg import { createSvgIcon } from './createSvgIcon'; export const SvgClockTimeTwoOutline = createSvgIcon( `<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns="http://www.w3.org/2000/svg...
/* eslint-disable quotes */ import styled from 'styled-components'; export const Bg = styled.div` width: 100%; height: 32rem; position: fixed; top: 0; & > img { width: 100%; height: 100%; object-fit: cover; } @media only screen and (max-width: 600px) { height: 23rem; } `; export const MainBlock = st...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'at-event-manager', templateUrl: './event-manager.component.html', styleUrls: ['./event-manager.component.css'] }) export class EventManagerComponent implements OnInit { events: any[]; headerConfig: any; public constructor( ...
/* * Copyright 2021 ACC Cyfronet AGH * * 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 { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { map } from 'rxjs/operators'; @Injectable({ providedIn: 'root' }) export class AuthenticationService { constructor(private http: HttpClient) { } login(username: string, password: string) { return th...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { SummaryComponent } from './summary.component'; import { HttpClientTestingModule } from '@angular/common/http/testing'; describe('SummaryComponent', () => { let component: SummaryComponent; let fixture: ComponentFixture<Summa...
import { KeywordPipe } from './keyword.pipe'; describe('KeywordPipe', () => { it('create an instance', () => { const pipe = new KeywordPipe(); expect(pipe).toBeTruthy(); }); });
import { Product } from './product.model' export class CartItem { id: number product: Product quantity: number price: number }
import { columeHeader_word, columeHeader_word_index } from "./constant"; import { IluckySheetSelection } from "../ToLuckySheet/ILuck"; import { IattributeList, stringToNum} from "../ICommon"; export function getRangetxt(range:IluckySheetSelection, sheettxt:string) { let row0 = range["row"][0], row1 = range["row"...
// deck outline path // TODO(mc, 2020-02-19): no longer used; remove import * as React from 'react' import styles from './Deck.css' const OUTLINE_PATH = 'M414.541436,0.75 L20,0.75 C9.36851857,0.75 0.75,9.36851857 0.75,20 L0.75,564 C0.75,574.631481 9.36851857,583.25 20,583.25 L620,583.25 C630.631481,583.25 639.25,574...
import {Injectable} from '@angular/core'; import {Http, Response, Headers, RequestOptions} from '@angular/http'; import { AuthHttp } from 'angular2-jwt'; import 'rxjs/add/operator/map'; import {Observable} from 'rxjs/Observable'; import {Modelo} from '../modelo/modelo'; import {GLOBAL} from './global'; /** * Servicio ...
export { EventLogHttpServiceV1 } from './EventLogHttpServiceV1';
import LootTable from '../../structures/LootTable'; import GWRareDropTable, { GWGemTable, ShardTable } from '../subtables/GWRareDropTable'; import SimpleMonster from '../../structures/SimpleMonster'; const MinionUniqueTable = new LootTable() .add('Coins', [1_300, 1_400], 124) .add('Zamorakian spear', 1, 3); const M...
// // Copyright (c) 2021-present Ganbaro Digital Ltd. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // 1. Redistributions of source code must retain the above copyright // notice...
import 'should'; import { TestBitGo } from '../../../lib/test_bitgo'; describe('OFC:', function() { let bitgo; let ofcCoin; before(function() { bitgo = new TestBitGo({ env: 'test' }); bitgo.initializeTestVars(); ofcCoin = bitgo.coin('ofc'); }); it('functions that return constants', function() ...
import * as components from './index'; // import this file into itself to default export everything export default components; import Flex from './Flex'; import DateComponent from './DateComponent'; import LoadingIcon from './LoadingIcon'; import Separator from './Separator'; export { Flex, DateComponent, LoadingIcon...
import { createStyles } from '$lib/styles'; export default createStyles((theme) => { return { root: { [`${theme.dark} &`]: { color: theme.fn.themeColor('dark', 2) }, color: theme.fn.themeColor('gray', 6), fontWeight: 500, fontSize: theme.fontSizes.xs, padding: `${+theme.space.xs.value / 2}px $...
import { environment } from '../environments/environment'; let domain = 'kyma.local'; let gateway_kyma_project_io_version = 'v1alpha2'; let idpLogoutUrl = null; const clusterConfig: object = window['clusterConfig']; if (clusterConfig) { if (clusterConfig['domain']) { domain = clusterConfig['domain']; } if (...
import Consignment from './consignment'; export default interface ConsignmentState { data?: Consignment[]; errors: ConsignmentErrorsState; statuses: ConsignmentStatusesState; } export interface ConsignmentErrorsState { loadError?: Error; loadShippingOptionsError?: Error; createError?: Error; ...
/* * Copyright 2021 ACC Cyfronet AGH * * 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...
export * from './Brands'; export * from './Categories'; export * from './ClearFilters'; export * from './ClearFiltersEmptyResults'; export * from './ClearFiltersMobile'; export * from './Configuration'; export * from './FreeShipping'; export * from './HitsPerPage'; export * from './Pagination'; export * from './PriceSl...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IconsBasic } from './icons-basic.component'; import { IconModule } from '@gsa-sam/ngx-uswds-icons'; @NgModule({ imports: [CommonModule, IconModule], declarations: [IconsBasic], exports: [IconsBasic], bootstrap:...
import { StyleSheet } from 'jss'; import { makeResolver, StyleClassResolver, ThemedKeyframes, ThemedStyle, ThemedStyles } from './styles'; export class Theme<ThemeType = any> { readonly sheets: {[id: string]: StyleSheet} = {}; readonly attachedResolver: StyleClassResolver<ThemeType>; readonly detachedResolver:...
import {Component, ElementRef, EventEmitter, Input, Output, ViewChild} from '@angular/core'; import {NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {MonacoEditorComponent} from "../../monaco-editor/monaco-editor.component"; // @ts-ignore import DiffMatchPatch from 'diff-match-patch'; // @ts-ignore import beautify ...
import React from 'react'; import { SVGIconProps } from '../createIcon'; export declare const DumbbellIconConfig: { name: 'DumbbellIcon', height: 512, width: 640, svgPath: 'M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-1...
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', ...
import * as React from "react"; import * as CSSModules from "react-css-modules"; import * as styles from "./index.less"; import * as pdfjsLib from "pdfjs-dist"; // The workerSrc property shall be specified. pdfjsLib.GlobalWorkerOptions.workerSrc = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.550/pdf.worker.js";...
import {Component, Input, OnInit} from '@angular/core'; @Component({ selector: 'app-post-list-item', templateUrl: './post-list-item.component.html', styleUrls: ['./post-list-item.component.scss'] }) export class PostListItemComponent implements OnInit { @Input() element: { title: string, content: strin...
/** * Adapted directly from @koa/router at * https://github.com/koajs/router/ which is licensed as: * * The MIT License (MIT) * * Copyright (c) 2015 Alexander C. Mingoia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "...
/** * @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 {ApplicationRef, NgModuleFactory, NgModuleRef, PlatformRef, Provider, Type} from '@angular/core'; import {ɵTR...
import Response from './response' import OAuth from './oauth' import Pleroma from './pleroma' import proxyAgent, { ProxyConfig } from './proxy_config' import Mastodon from './mastodon' import Entity from './entity' import axios, { AxiosRequestConfig } from 'axios' import Misskey from './misskey' export interface WebSo...
import Range = require('./index'); export = RangeTree; /** * Create an interval tree node. * * For creating a binary search tree out of an array of ranges, you might want * to use [`RangeTree.from`](#RangeTree.from). * * @example * var RangeTree = require("strange/tree") * var left = new RangeTree([new Range(...
import { Test, TestingModule } from '@nestjs/testing'; import { JwtService } from '@nestjs/jwt'; import { ConfigService } from '@nestjs/config'; import { AuthenticationController } from './authentication.controller'; import { UserService } from '../../user/services/user.service'; import { mockedConfigService, mockedJw...
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <app-cart></app-cart> <hr /> <router-outlet></router-outlet> `, styles: [], }) export class AppComponent {}
import * as React from 'react'; export type BroadcomProps = { /** * Hex color or color name */ title?: string; /** * The size of the Icon. */ color?: string; /** * The title provides an accessible short text description to the SVG */ size?: string | number; }; const Broadcom = React.forw...
import { Id } from '@ephox/katamari'; const dialogChannel = Id.generate('update-dialog'); const titleChannel = Id.generate('update-title'); const bodyChannel = Id.generate('update-body'); const footerChannel = Id.generate('update-footer'); const bodySendMessageChannel = Id.generate('body-send-message'); export { di...
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { Settings, DevSettings, BufferUpdater, Workflow, Item, Direction } from '../../miscellaneous/vscroll'; import { IDatasource, Datasource } from '../../../scroller/src/ui-scroll.datasource'; import { generateItem, Data, Processor } from '../....
export interface ITraceInfo { readonly objName: string; readonly methodName: string; readonly depth: number; params: readonly unknown[] | null; next: ITraceInfo | null; prev: ITraceInfo | null; } export interface ITraceWriter { write(info: ITraceInfo): void; } export interface ILiveLoggingOptions { rend...
import { DependencyBuilderStorage } from '../dependency-builder.storage'; import { Interfaces } from '../shared'; import { Helper } from '../shared'; export abstract class BaseDependencyBuilder { protected dependencyIsSingleton: boolean; protected inst: any; protected dependencyBuilderStorage: DependencyBuilder...
// GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY import { SetupContext } from 'vue'; import StackshareFillSvg from '@airclass/icons-svg/lib/asn/StackshareFill'; import AntdIcon, { AntdIconProps } from '../components/AntdIcon'; const StackshareFill = (props: AntdIconProps, context: SetupContext) => { ...
import { install, copyFiles } from "mrm-core"; const COPY_FILES = ["release.config.js"]; const packages = ["semantic-release"]; function task() { copyFiles(__dirname, COPY_FILES); install(packages); } task.description = "Add semantic-release"; module.exports = task;
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {NodeBaseWithComments} from "@internal/ast"; import {createBuilder} from "../../utils"; export interface JSRegExpNonWordBo...
import React, { Fragment, useCallback } from 'react'; import styles from './login.less'; import { Input, Form, Button, Toast } from 'antd-mobile'; import sha1 from 'sha1'; import { ORGANIZATION_COOKIE_NAME, TOKEN_COOKIE_NAME } from '@/globalConst'; import cookies from 'js-cookie'; import { history } from 'umi'; import ...
import { ComponentStory, ComponentMeta } from '@storybook/react' import ActionPanel from './ActionPanel' export default { title: 'Elements/ ActionPanel', component: ActionPanel, argTypes: { backgroundColor: { control: 'color' }, }, } as ComponentMeta<typeof ActionPanel> const Template: ComponentStory<typ...
import parameters from "queryparams"; import { Title } from "./data"; export const { autoPlay, index, pauseMin, pauseMax }: { autoPlay: Title; index: boolean; pauseMin: number; pauseMax: number; } = parameters({ autoPlay: null, index: false, pauseMin: 15, pauseMax: 250 });
import React, { SVGProps } from 'react'; import generateIcon from '../../generateIcon'; const BrandsDiscord = (props: SVGProps<SVGSVGElement>) => { return ( <svg viewBox="0 0 448 512" width="1em" height="1em" {...props}> <path d="M297.216 243.2c0 15.616-11.52 28.416-26.112 28.416-14.336 0-26.112-12.8-26.11...
/** * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ import classNames from 'classnames'; import React from 'react'; import tinycolor from 'tinycolor2'; interface IProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { /** * Flag that indicat...
export {PotreeLoader} from './potree-loader'; export {PotreeHierarchyChunkLoader} from './potree-hierarchy-chunk-loader'; export {PotreeBinLoader} from './potree-bin-loader';
/* * 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 { failure } from 'io-ts/lib/PathReporter'; import { RequestAuth } from...
/* * Copyright (C) 2019 The Android Open Source Project * * 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 app...
/* * MIT License * * Copyright (c) 2020 manager * * 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, ...
import { Observable, Observer } from "rxjs"; import { first, map } from "rxjs/operators"; import { createMessage, childOf, ofMessageType, JupyterMessage, Channels } from "@nteract/messaging"; import { CMI } from "../types"; import { js_idx_to_char_idx } from "./surrogate"; export function tooltipObservable( channe...
// @ts-ignore /** // @ts-ignore * Copies object params to new object // @ts-ignore */ // @ts-ignore export const copyParams = < // @ts-ignore T, // @ts-ignore K extends keyof T // @ts-ignore >(params: T, properties: K[]): Pick<T, K> => { // @ts-ignore const copies = {} as Pick<T, K>; // @ts-ignore // @ts-ignore ...
import supertest from 'supertest' import bcrypt from 'bcrypt' import crypto from 'crypto' import { AuthModule } from '@auth/auth.module' import { INestApplication } from '@nestjs/common' import { ConfigService } from '@nestjs/config' import { Test } from '@nestjs/testing' import { PrismaClient, User } from '@prisma/cli...
import * as React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { openModal, IModalProps } from '@framework/Modals' import { TypeContext, StyleOptions, EntityFrame } from '@framework/TypeContext' import { TypeInfo, getTypeInfo, GraphExplorer, PropertyRoute, ReadonlyBinding, } from...
import React from 'react' import { act } from 'react-dom/test-utils' import { cleanup, fireEvent, render, waitForElement, } from '@testing-library/react' import create, { GetState, PartialState, SetState, State, StateListener, StateSelector, StoreApi, Subscribe, UseStore, } from '../src/index'...
<TS language="da" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Højreklik for at rette adressen eller teksten</translation> </message> <message> <source>Create a new address</source> <translati...
import React, { useState, useEffect } from "react"; import Header from "../../components/Header"; import PostItem, { Post } from "../../components/PostItem"; import Pagination from "../../components/Pagination"; import { FiSearch } from "react-icons/fi"; import api from "../../services/api"; import "./styles.css"; fu...
import http, { BatchRequest, RefinedResponse } from 'k6/http'; import { JSONValue, JSONObject, check, sleep, fail, group } from 'k6'; const users = JSON.parse(open('./users.json')); const __VU = 1; function test1() { const user = users[__VU - 1]; console.log(`${user.username}, ${user.password}`); sleep(3)...
import { SharedService } from '../../../../services/shared.service'; import { Component, ViewEncapsulation } from '@angular/core'; import { ConfirmationService, Message } from 'primeng/primeng'; import { Router } from '@angular/router'; import { WorkCenterService } from '../../workCenter.service'; @Component({ selec...
import { assert, UnitTest } from '@ephox/bedrock-client'; import { Arr, Optional } from '@ephox/katamari'; import { WordScope } from 'ephox/robin/data/WordScope'; import * as Identify from 'ephox/robin/words/Identify'; UnitTest.test('words :: Identify', function () { const none = Optional.none<string>(); const som...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { isMarkdownCellModel } from '@jupyterlab/cells'; import { Kernel, KernelMessage, Session } from '@jupyterlab/services'; import { each } from '@lumino/algorithm'; import { Token } from '@lumino/coreutils'; ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Card } from '../../../interfaces' import Set from '../Evolving Skies' const card: Card = { set: Set, variants: { normal: true, reverse: true, holo: false, firstEdition: false }, name: { en: "Feebas", fr: "Barpau", es: "Feebas", it: "Feebas", pt: "Feebas", de: "Barschwa" }, rarity:...