text
stringlengths
10
953k
'use strict'; import type { Document } from "mongoose"; import {IUserLogin} from "../../common"; interface IUserModel extends Document { email: string; gender: string; picture: string; password: string; removed: boolean; getAllUsers(): Promise<any>; deleteById(id: string): Promise<any>; findUserByLogi...
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types const populateCartItems = (cartItems: Array<any>) => { const populateCartItems = cartItems.map((cartItem) => ({ id: cartItem.id_product, name: cartItem.name, image: cartItem.image_url, regularPrice: cartItem.price_without_re...
import { css } from '@emotion/react'; import { theme } from '@expo/styleguide'; import React, { PropsWithChildren } from 'react'; import { breakpoints } from '~/ui/foundations/breakpoints'; type MenuColumnProps = PropsWithChildren<object>; export const MenuColumn = ({ children, ...rest }: MenuColumnProps) => ( <di...
export { Sink } from "./sink";
import React, { Fragment } from 'react'; import { gql, useQuery } from '@apollo/client'; import { LaunchTile, Header, Button, Loading } from '../components'; import { RouteComponentProps } from '@reach/router'; import * as GetLaunchListTypes from './__generated__/GetLaunchList'; const GET_LAUNCHES = gql` query laun...
/* * Copyright 2017 Palantir Technologies, Inc. All rights reserved. */ export const ADD = "add"; export const ADD_COLUMN_LEFT = "add-column-left"; export const ADD_COLUMN_RIGHT = "add-column-right"; export const ADD_ROW_BOTTOM = "add-row-bottom"; export const ADD_ROW_TOP = "add-row-top"; export const ADD_TO_ARTIFAC...
import { describe, expect, it } from "@jest/globals"; import { Connection, PublicKey } from "@solana/web3.js"; // see devnet.md export const ETH_NODE_URL = "ws://localhost:8545"; export const ETH_PRIVATE_KEY = "0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d"; export const ETH_PUBLIC_KEY = "0x90F8...
export * from './base-webhook-characteristic'; export * from './boolean-webhook-characteristic'; export * from './number-webhook-characteristic';
import React, { memo, useContext, useEffect, useMemo, useRef, useState } from 'react'; import { BeansContext } from '../beansContext'; import { ColumnSortState, CssClassManager, HeaderCellCtrl, IHeader, IHeaderCellComp, UserCompDetails } from '@ag-grid-community/core'; import { isComponentStateless } from '../utils'; i...
import clsx from 'clsx' import * as React from 'react' import { CountdownValueType } from './CountdownValueType' export type CountdownProps = { className?: string innerClassName?: string value: CountdownValueType innerStyle?: React.CSSProperties } // eslint-disable-next-line @typescript-eslint/no-unused-vars e...
/** * Demo of Concept 2 ergometer Performance Monitor * * This will will work with the PM5 * * This unit contains some demo code which can both run on electron and cordova * * Created by tijmen on 01-06-15. * License: * * Copyright 2016 Tijmen van Gulik (tijmen@vangulik.org) * * Licensed under the Apache Li...
import { HttpRequest } from '@marblejs/core'; import { parseAuthorizationHeader } from '../jwt.util'; describe('JWT util', () => { describe('#parseAuthorizationHeader', () => { test('retrieves JWT token from header', () => { // given const token = 'TEST_TOKEN'; const req = { headers: { authoriz...
export interface LibraryGameInfo { id: number; name: string; coverUrl: string; year: number | null; status: UserGameStatus; finishedOn: Date | null; userRating: number | null; } export enum UserGameStatus { ToPlay = 0, Playing = 1, Dropped = 2, Finished = 3 }
import * as loginPage from '../../Base/pages/Login.po'; import { LoginPageData } from '../../Base/pagedata/LoginPageData'; import * as recurringExpensesPage from '../../Base/pages/RecurringExpenses.po'; import { RecurringExpensesPageData } from '../../Base/pagedata/RecurringExpensesPageData'; import * as dashboardPage ...
import { IDebugElems } from '../../debug-elem-types.js'; /** @hidden */ declare type TDrawElemFunctions = { [T in keyof IDebugElems]: (g: SVGGElement, elem: IDebugElems[T], classes?: string, delay?: number) => SVGElement[]; }; /** @hidden */ declare let drawElemFunctions: TDrawElemFunctions; export { drawElemFuncti...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Spacecoin</source> <translation>बिटकोइन के संबंध में</translation...
import { render } from '@testing-library/react' import { wrapWithBackend, fireDrag } from 'react-dnd-test-utils' import { FC } from 'react' import { useDrag } from '../useDrag' import { useDragLayer } from '../useDragLayer' const DragLayer: FC = () => { const { isDragging, item } = useDragLayer((monitor) => ({ item...
import { Card } from './Card'; import { Card as CardType } from '../../../types/card'; import { TrickStatus } from '../../../types/trick-response'; import { GameContext } from '../GameContext'; import { addToTrick, removeCard, startTrick } from '../services/api-service'; import * as React from 'react'; export const Pl...
/// <reference path='fourslash.ts'/> // @allowJs: true // @Filename: a.js ////function bar() { ////} ////bar.prototype.[|x|] = 10; ////var t = new bar(); ////t./**/[|x|] = 11; goTo.marker(); verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);
import gql from "graphql-tag"; import * as React from "react"; import { ChildProps, graphql } from "react-apollo"; import { ConversationItem as DumbConversationItem } from "../components"; import graphqlTypes from "../graphql"; import { IConversation } from "../types"; type Props = { conversation: IConversation; g...
import { BehaviorSubject, Subscription } from 'rxjs' import { Database } from '../database' import { stripSpecialCharacters } from 'src/utils/helpers' import isUrl from 'is-url' import { TagCategory } from 'src/models/tags.model' import { IDBEndpoint } from 'src/models/common.models' /* The module store contains comm...
declare module 'postcss-import-sync2' { import type { PluginCreator } from 'postcss'; const plugin: PluginCreator<unknown>; export = plugin; }
declare module 'react-chord-diagram'; type ChordData = { matrix: number[][]; names: string[]; colors: string[]; };
/** * @license * Copyright 2017 Google LLC * * 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 { ServicesService } from 'src/app/api/services.service'; import { NavController } from '@ionic/angular'; import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-menu', templateUrl: './menu.page.html', styleUrls: ['./menu.page.scss'], }) export class MenuPage implements OnInit { pu...
import { Injectable, UnauthorizedException } from "@nestjs/common"; import { PassportStrategy } from "@nestjs/passport"; import { InjectRepository } from "@nestjs/typeorm"; import { ExtractJwt, Strategy } from "passport-jwt"; import { User } from "./user.entity"; import { UserRepository } from "./user.repository"; @I...
import { Injectable } from '@angular/core'; import { BehaviorSubject, Subject } from 'rxjs'; import * as moment from 'moment'; @Injectable() export class LoadingService { public loadingSubject: Subject<boolean>; private startAt: any; constructor() { this.loadingSubject = new BehaviorSubject(false);...
export const song = { get() { return {}; }, };
declare module 'passport-reddit';
import { AxiosRequestConfig } from '../types'; import { deepMerge, isPlainObject } from '../utils/util'; const strats = Object.create(null); function defaultStart (val1: any, val2: any): any { return typeof val2 !== 'undefined' ? val2 : val1; } function fromVal2Start(val1: any, val2: any): any { if (typeof v...
/* This file is generated by createIcons.js any changes will be lost. */ import { IconType } from '../createIcon'; declare const MoneyBillWaveIcon: IconType; export default MoneyBillWaveIcon;
/* * adonis-lucid-filter * * (c) Lookin Anton <lookin@lookinlab.ru> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { join } from 'path' import { BaseCommand, args } from '@adonisjs/core/build/standalone' export default cl...
import React from "react"; import { Link, match } from "react-router-dom"; import Button from "@material-ui/core/Button"; import SaveIcon from "@material-ui/icons/Save"; import Divider from "@material-ui/core/Divider"; import PageBase from "../components/PageBase"; import { connect } from "react-redux"; import Card fro...
/// <reference path="typings/main/ambient/es6-shim/index.d.ts" /> /// <reference path="typings/main/ambient/rx/index.d.ts" /> /// <reference path="typings/main/definitions/lodash/index.d.ts" /> /// <reference path="typings/main/definitions/spin.js/index.d.ts" /> /// <reference path="typings/main/definitions/simple-moda...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { Game } from './game'; import 'rxjs/add/operator/map'; @Injectable() export class GameDataService { //Web API URL private dataUrl = 'http://gd2.mlb.com/components/game/ml...
import { UserProperty } from './schema'; import { UserGroupPropertyType } from './user_view'; export interface UserPasswordAccessToken { id?: string; description: string; token?: string; } export interface UserPropertyWithValue extends UserProperty { value: any; } export interface UserViewDataGroup { title...
import React from 'react'; import { useEnvironment } from '~/hooks/useEnvironment'; import { useAccountFundQuery } from './AccountFund.query'; import { Fallback } from '~/components/Common/Fallback/Fallback'; export interface RequiresFundParametersDefinedProps { fallback?: React.ReactNode; } export const RequiresFu...
import { FieldType, LogRowModel, MutableDataFrame, Labels, LogLevel, DataQueryResponse } from '@smartems/data'; import { getRowContexts } from './LogRowContextProvider'; describe('getRowContexts', () => { describe('when called with a DataFrame and results are returned', () => { it('then the result should be in c...
interface SegmentedControlProps { tintColor?: string; disabled?: boolean; selectedIndex?: number; values?: Array<string>; onChange?: (e: any) => void; onValueChange?: (value: string) => void; style?: any; /* web only */ prefixCls?: string; className?: string; touchFeedback?: ...
import {IInputs, IOutputs} from "./generated/ManifestTypes"; import * as $ from 'jquery'; import './js/htmlson.js'; import BatchPostRecords from "./utils/BatchPostRecords"; declare var Xrm: any; interface IDropdownOption{ key:string, text:string, type:string, schemaName:string } export class PCFexcel implements Com...
import {Component, OnInit, OnDestroy} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {Apollo, ApolloQueryObservable} from 'apollo-angular'; import {Subscription} from 'rxjs/Subscription'; import {Subject} from 'rxjs/Subject'; import 'rxjs/add/operator/toPromise'; import {commentQuery, su...
import { IUnderlyingProtectionTermEventQualifierGrp } from './underlying_protection_term_event_qualifier_grp'; export interface IUnderlyingProtectionTermEventGrp { UnderlyingProtectionTermEventType?: string; UnderlyingProtectionTermEventValue?: string; UnderlyingProtectionTermEventCurrency?: string; Und...
import { Grid, Box, Button } from "@material-ui/core"; import GoogleIcon from "../components/GoogleIcon"; import Logo from "../components/Logo"; import useHomeStyles from "../styles/home"; import authStore from "../stores/auth"; import Presentation from "../components/Presentation"; import ThemeSwitcher from "../compon...
export { Iso32 as default } from "../";
export class Product { constructor(public id:string , public title:string , public desc:string, public price:number){} }
import { blockchainTests, constants, expect, getRandomInteger, randomAddress } from '@0x/contracts-test-utils'; import { encodePayTakerTransformerData, ETH_TOKEN_ADDRESS } from '@0x/order-utils'; import { BigNumber, hexUtils } from '@0x/utils'; import * as _ from 'lodash'; import { artifacts } from '../artifacts'; imp...
import { Component, ComponentType, createComponentVNode, createPortal, createRenderer, createTextVNode, createVNode, directClone, EMPTY_OBJ, getFlagsForElementVnode, InfernoNode, linkEvent, normalizeProps, options, Props, Refs, __render, VNode, findDOMfromVNode, Fragment, creat...
import {InjectRepository} from "@nestjs/typeorm"; import {Repository} from "typeorm"; import {UsuarioRolEntity} from "./usuario-rol.entity"; export class UsuarioRolService{ constructor( @InjectRepository(UsuarioRolEntity) private repositorioUsuarioRol:Repository<UsuarioRolEntity> ) { } ...
import "jest" import { Message, UniversalBot } from "botbuilder" import * as nock from "nock" import { AccessToken } from "../src/lib/access_token" import { StrideConnector } from "../src/stride_connector" describe("StrideConnector", () => { const connector = new StrideConnector({ botId: "BOT_ID", botName: ...
import { ISaveCosmosDbAction, IRemoveCosmosDbAction, ICosmosDB } from "./model"; import { SERVICES_TYPEKEYS } from "../typeKeys"; export const saveCosmosDbAction = (cosmosDb: ICosmosDB): ISaveCosmosDbAction => ({ type: SERVICES_TYPEKEYS.SAVE_COSMOS_DB, payload: cosmosDb, }); export const removeCosmosDbAction = ()...
<TS language="sr@latin" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klikni desnim tasterom za uređivanje adrese ili oznake</translation> </message> <message> <source>Create a new address</sourc...
import { Component } from '@angular/core'; import { IonicPage, NavController, ToastController, AlertController, NavParams} from 'ionic-angular'; import { BasePage } from '@app-core/base-page'; import { AbstractAppointmentService } from "@app-services/appointment/abstract-appointment"; import { AbstractDoctorService }...
// *** 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"; /** * D...
/* Links */ export const Links = { GITHUB: "https://github.com/jake-pauls/", LINKEDIN: "https://www.linkedin.com/in/jake-pauls/", EMAIL: "mailto:jakepauls99@gmail.com", TWITTER: "https://twitter.com/jackjakejacob", ITCH: "https://jake-pauls.itch.io/", MEDIUM: "https://jake-pauls.medium.com/", RESUME: ...
import { Request, Response } from 'express'; import { CreateCategoryUseCase } from './CreateCategoryUseCase'; class CreateCategoryController { constructor(private createCategoryUseCase : CreateCategoryUseCase) { } handle(request : Request, response : Response) { const { name, description } = requ...
import { UserManagesServerGuard } from './UserManagesServer.guard'; describe('UserManagesServerGuard', () => { let guard: UserManagesServerGuard; const serverId = 'server-id'; beforeEach(() => { guard = new UserManagesServerGuard({} as never); }); describe('getServerId', () => { it('returns the ser...
import React, { FC } from "react" import ListItemSecondaryAction from "@material-ui/core/ListItemSecondaryAction" import Switch from "@material-ui/core/Switch" import Item, { ItemProps } from "./Item" interface Props extends ItemProps { checked: boolean onChange(): void } const DarkIcons: FC<Props> = (props: Pr...
import React, { forwardRef, RefForwardingComponent } from 'react'; import Box, { Attributes, BoxProps } from '../Box/Box'; const Icon: RefForwardingComponent<SVGSVGElement, Attributes<Omit<SVGSVGElement, 'display'>, BoxProps & { size?: string; }>> = (props, ref) => { const { size = '1rem', ...rest } = pr...
import * as sd from "type-mapping"; import * as tape from "tape"; import * as o from "../../../../../dist/src/main"; import * as fs from "fs"; tape(__filename, (t) => { const table = o.table( "table", { z : sd.unsignedInteger(), y : sd.string(), x : sd.boolean(),...
export abstract class Client { // makeShallowCopyAsync should copy current project (result of getRootPathAsync()) to the specified // destination, folder created this way will be uploaded "as is", so implementation should skip // anything that is not commited to the repository. Most optimal solution is to create ...
// *** 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"; /*...
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const FaRegFile: IconType;
import {getter} from '../../../../src'; // @ts-ignore import {get1, get2, get3} from './gets'; // @ts-ignore class Foo { @getter(get3) @getter(get2) @getter(get1) public bar?: string; }
module Griffin.Yo.Routing { //#region "interfaces" export interface IRoute { /** * Is the URL in the context matching this route? * @param ctx information used for matching */ isMatch(ctx: IRouteContext): boolean; /** * Invoke this route. * @param ctx route information */ ...
import { StorefrontRoutesTranslations } from './storefront-routes-translations'; export const defaultStorefrontRoutesTranslations: { default?: StorefrontRoutesTranslations; [languageCode: string]: StorefrontRoutesTranslations; } = { default: { home: { paths: [''] }, cart: { paths: ['cart'] }, search:...
import { app, BrowserWindow, ipcMain, session } from 'electron'; //import { appInfo } from '../properties'; //import { packageJson } from '../../global'; import { readFileSync, existsSync } from 'fs'; import { resolve } from 'path'; import { appInfo, getBuildInfo } from '../clientProperties'; import l10n from '../l10n...
import React from 'react'; import { LayoutProps } from 'styled-system'; /** * @classdesc * * <img src="components/placeholder.png" /> * * Renders placeholder * * ### Usage * * ```javascript * import { Placeholder, PlaceholderProps } from '@admin-bro/design-system' * ``` * * @component * @subcategory Atoms...
import { ReactNode } from 'react'; const SizePresets: any = { xsmall: 8, small: 12, medium: 16, large: 20, xlarge: 30, }; export interface IconProps { className?: string; fill?: string; size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | number; children?: ReactNode; style?: Record<string,...
import { HttpClient } from './http-client'; export class StackExchangeService { private apiVersion = '2.2'; private apiEndpoint = `https://api.stackexchange.com/${this.apiVersion}`; private stackExchangeKey = 'DmNUhvkCC4qooqkj6E6Dwg(('; public async searchTags(searchTerm: string) { const inname = encodeUR...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sv" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BitcoinX</source> <translation>Vad du behöver veta om BitcoinX</translation> </message> <messag...
import { Model } from 'mongoose'; import { Injectable, Inject } from '@nestjs/common'; import { semestre } from './interfaces/semestre.interface'; @Injectable() export class semestreService { constructor(@Inject('semestre') private readonly semestreModel: Model<semestre>) {} async findByCode(codigo): Promise<seme...
import { ConduitCommons, ConduitRoute, ConduitRouteReturnDefinition, RegisteredModule, } from '@conduitplatform/commons'; import { ConduitRouteActions, TYPE } from '@conduitplatform/grpc-sdk'; export function getModulesRoute(conduit: ConduitCommons) { return new ConduitRoute( { path: '/modules', ...
import 'rxjs/add/operator/take'; import 'rxjs/add/operator/filter'; import 'rxjs/add/operator/do'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/switchMap'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/let'; import { Injectable } from '@angular/core'; import { Store } from '@ngrx/store'; impo...
declare const isObject: (value: any) => boolean; declare const merge: (a: any, b: any) => any; declare const bind: (func: Function, context: any, ...args: any[]) => Function; declare const arrayAdd: (array: any[], item: any) => any[]; declare const uuid: () => string; declare function bindAll(fns: string[] | number[], ...
import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core'; import { Property } from '../models/properties'; @Component({ selector: 'app-search', templateUrl: './search.component.html', styleUrls: ['./search.component.scss'] }) export class SearchComponent implements OnInit { public quanti...
/** * Dialog * * The Dialog component consists of a title with optional right-side menu, a * bottom control section with buttons, and a variable content which is * scrollable when the size gets too small. * * To build up the content, you can just add elements into the dialog body, * which will then get the defa...
/// /// Copyright © 2016-2022 The Thingsboard Authors /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may obtain a copy of the License at /// /// http://www.apache.org/licenses/LICENSE-2.0 /// /// Unless required by...
import { ActionReducerMap, createSelector, createFeatureSelector, MemoizedSelector, } from '@ngrx/store'; import { DaffSidebarMode } from '@daffodil/design'; import * as fromDaffioSidebar from './sidebar.reducer'; export interface DaffioSidebarState { daffioSidebar: fromDaffioSidebar.State; } export inter...
import React, { memo } from 'react'; import { Button, Form, Select, Input, Textarea } from 'tdesign-react'; const { FormItem } = Form; const { Option } = Select; const addressOptions = [ { label: '广东省深圳市南山区', value: '0', }, { label: '北京市海淀区', value: '1', }, { label: '四川省成都市高新区', valu...
import { Immutable } from 'immer' import { MatchmakingPreferences, MatchmakingType } from '../../common/matchmaking' import { FetchError } from '../network/fetch-action-types' import { immerKeyedReducer } from '../reducers/keyed-reducer' export interface FetchedMatchmakingPreferences { preferences?: MatchmakingPrefe...
import toast from 'react-hot-toast'; type messages<T> = { loading: string; error: string | ((res: T) => string); success: string | ((res: T) => string); }; export function Toast<T>(promise: Promise<T>, messages: messages<T>) { return toast.promise(promise, messages, { style: { minW...
declare const Typography: { overrides: { MuiTypography: { subtitle1: { color: string; }; subtitle2: { color: string; }; button: { color: string; }; body1: { col...
import React from 'react'; import List from '../List'; import Breadcrumb from './Breadcrumb'; export { Breadcrumb }; export type Props = { /** Accessibility label. */ accessibilityLabel: string; /** List of `Breadcrumb`s. */ children: NonNullable<React.ReactNode>; }; /** A controller for multiple tabs. */ ex...
import {Request, Response} from "express" import config from "../config/index" import jwt from "jsonwebtoken" const verifyToken = async (req: Request, res: Response, next: any) => { const token = req.header("authorization")?.split(" ")[1] if (!token) return res.status(422).json({ message: "Token not fou...
export class RepoName { constructor( public name: string, public description: string, public language: string, public html_url: string, public forks: any, public updated_at: Date) { } }
import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; import { CONFIG } from '../config/dev'; import { Instance } from './instances.service'; let url = CONFIG.baseUrls.ws; @Injectable() export class InstanceUpdate extends Subject<Instance>{ private _ws: any; constructor() { su...
/// <reference types="react" /> import * as React from 'react'; import { Bulma } from './../../bulma'; export interface PageList<T> extends Bulma.Tag, React.HTMLProps<T> { } export declare function PageList({tag, ...props}: PageList<HTMLElement>): React.ReactHTMLElement<HTMLElement>; declare const HOC: React.StatelessC...
import { Component, Input, Output, EventEmitter, ChangeDetectorRef } from '@angular/core'; import { ProfileModel } from '../shared/profile.model'; import { IncentiveBLService } from '../shared/incentive.bl.service'; import { SecurityService } from '../../security/shared/security.service'; import { MessageboxService } ...
import {Context} from '@actions/github/lib/context' import {Octokit} from '@octokit/core/dist-types' import {RestEndpointMethods} from '@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types' import {PaginateInterface} from '@octokit/plugin-paginate-rest' export interface ActionContext { debug: (mes...
import { ref } from 'vue-demi' import { useEventListener } from '../useEventListener' export function useMouse(options: { touch?: boolean resetOnTouchEnds?: boolean initial?: {x: number; y: number} } = {}) { const { touch = true, resetOnTouchEnds = true, initial = { x: 0, y: 0 }, } = options c...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { DetailsOneColumnComponent } from './details-one-column.component'; describe('DetailsOneColumnComponent', () => { let component: DetailsOneColumnComponent; let fixture: ComponentFixture<DetailsOneColumnComponent>; beforeEach(async () =>...
import { isDeno, isBrowser, isWebWorker, isNode, isElectron, isElectronMain, isElectronRenderer, isJsDom, } from '../src' test('isBrowser', () => { // should this be false? 🤷‍♂️ expect(isBrowser()).toBe(true) }) test('isWebWorker', () => { expect(isWebWorker()).toBe(false) }) test('isNode', ()...
import React, { useContext, useEffect } from 'react' import { SearchContext } from '../../context/context' import { StopSearch } from '../StopSearch' import { ResultItem } from './ResultItem' export const Results = () => { const { state } = useContext(SearchContext) return ( <div data-id="search_results" class...
/* * 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...
/* SystemJS module definition */ declare var module: NodeModule; interface NodeModule { id: string; } declare namespace _ { } declare module '*';
/** * @file GrinningFaceWithSquintingEyes 笑眯眼 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {ISvgIconProps, IconWrapper} from '../runtime'; export default IconWrapper('grinning-face-with-squinting-eyes', (props: ISvgIconProps) => ( '<?xml vers...
import { AutoMap, classes } from '@automapper/classes'; import { createMapper, mapFrom } from '@automapper/core'; import type { Mapper } from '@automapper/types'; import { MapperPickType } from './mapper-pick-type'; describe(MapperPickType.name, () => { let mapper: Mapper; class Baz { @AutoMap() baz: stri...
/** * Copyright 2019 AXA Group Operations S.A. * * 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 la...
import { MapViewBase, BoundsBase, CircleBase, MarkerBase, PolygonBase, PolylineBase, ProjectionBase, PositionBase, ShapeBase, latitudeProperty, VisibleRegionBase, longitudeProperty, bearingProperty, zoomProperty, tiltProperty, StyleBase, UISettingsBase, getColorHue } from "./map-view-common"; import...
<TS language="fi" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Valitse hiiren oikealla painikkeella muokataksesi osoitetta tai nimikettä</translation> </message> <message> <source>Create a new a...