text
stringlengths
10
953k
import { Component, OnInit, Input } from '@angular/core'; import { Chapter } from "../../../models/chapter"; import { Story } from "../../../models/story"; import { User } from "../../../models/user"; import { DataService } from "../../../services/data.service"; import { CapitalizePipe } from '../../../pipes/capitalize...
import type { OperationContext } from '@vercel/commerce/api/operations' import { Product } from '@vercel/commerce/types/product' import { ProductCountableEdge } from '../../../schema' import type { Provider, SaleorConfig } from '..' import { normalizeProduct } from '../../utils' import * as Query from '../../utils/qu...
import * as React from 'react'; import { ComponentType } from 'react'; import { ResultData, ResultId, SelectedResultId } from './Results/types'; import { ResultBase } from './Results/ResultBase'; export type ResultContextType = { /** Register result as keyboard navigation target */ registerResult: (result: ResultB...
// Copyright 2020- Robot Framework 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 ...
export interface Branch { branch_id: number; name: string; created_at: string; created_at_timestamp: number; created_by: number; created_by_email: string; }
import { useEffect, useState } from 'react' import { MapContainer, Marker, TileLayer } from 'react-leaflet' import { useTracker } from 'hooks/useTracker' import * as L from 'leaflet' const MapSection = () => { const { data } = useTracker() const [map, setMap] = useState<L.Map>() const icon = L.icon({ iconUr...
import { name, version } from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-js"; import { parseUrl } from "@aws-sdk/url-parser-node"; import { ClientDefaults } from "./PollyClient"; import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"; export const ClientDefaultValues: Requir...
import { Component } from '@angular/core'; import { TeamcraftPageComponent } from '../../../core/component/teamcraft-page-component'; import { BehaviorSubject, combineLatest, Observable } from 'rxjs'; import { ActivatedRoute, Router } from '@angular/router'; import { XivapiEndpoint, XivapiService } from '@xivapi/angula...
export { BusinessCard } from './BusinessCard' export { Card } from './Card' export { ThemeSwitch } from './ThemeSwitch'
import api from './api'; const getTx = async (params: { txid: string }) => { const axios = api(); return await axios .get(`/tx/${params.txid}`) .then( (res: { data: { txid: string; version: number; locktime: number; vin: { txid: string; ...
import { OrderKind, Order, Api, signOrder, SigningScheme, EcdsaSigningScheme, domain, } from "@gnosis.pm/gp-v2-contracts"; import { GPv2Settlement, GPv2VaultRelayer, } from "@gnosis.pm/gp-v2-contracts/networks.json"; import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; import { Hardh...
import { partition, ProtocolService } from '@airgap/angular-core' import { BeaconRequestOutputMessage, BeaconResponseInputMessage } from '@airgap/beacon-sdk' import { AirGapMarketWallet, IACMessageDefinitionObject, IACMessageType, ICoinProtocol, MainProtocolSymbols, SignedTransaction, TezosSaplingProtocol...
// TODO @ts-refactor verify that types are correct import React, { useEffect, useMemo, useReducer } from "react"; import get from "lodash/get"; import pick from "lodash/pick"; import { ApolloClient } from "apollo-client"; import { useRouter } from "@webiny/react-router"; import { useSnackbar } from "@webiny/app-admin/h...
import { Component, Inject} from '@angular/core'; import { UserService } from '../../services/user/user.service'; import { AlertService } from '../../services/alert/alert.service'; import { Router } from '@angular/router'; import { Product } from '../../classes/product'; import { Category } from '../../classes/category...
export const itemList = (name: string, currency: string, price: number, link?: string, quantity?: number, subItem?: string) => ` <div style="background-color:transparent;"> <div class="block-grid mixed-two-up" style="min-width: 320px; max-width: 620px; overflow-wrap: break-word; word-wrap: break-word; word-...
/** * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-ge...
import React, { SVGProps } from 'react'; import generateIcon from '../../generateIcon'; const SolidLaughWink = (props: SVGProps<SVGSVGElement>) => { return ( <svg viewBox="0 0 496 512" width="1em" height="1em" {...props}> <path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm20.1 1...
import { Toast } from '@ant-design/react-native'; export default () => { Toast.removeAll(); return Promise.resolve(); };
// Copyright 2017-2021 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; interface Props { children: React.ReactNode; className?: string; isError?: boolean; isSuccess?: boolean; withBottomMargin?: boole...
import { BigNumber, ContractWrappers, Order, OrderInfo, OrderStatus, SignedOrder } from '0x.js'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { DecodedLogArgs, LogWithDecodedArgs, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; import ora = require('ora'); import { DEC...
import axios from "axios"; import { ITelegram } from "../config/Config"; import { IMessager } from "./Notifier"; class Message { public chat_id: string; public text: string; public constructor(chatID: string, text: string) { this.chat_id = chatID; this.text = text; } } export default class TelegramCli...
import * as React from "react"; import { JSX } from "react-jsx"; import { IFluentIconsProps } from '../IFluentIconsProps.types'; const MicOn28Regular = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => { const { primaryFill, className } = iconProps; return <svg {......
// import { DegreeProgram } from './../../../model/DegreeProgram'; import { DegreeProgramService } from 'app/service/degree-program.service'; import { BsModalRef, BsModalService } from 'ngx-bootstrap'; import { Component, OnInit, TemplateRef } from '@angular/core'; @Component({ selector: 'app-degree-program-list', ...
import { Catch, HttpStatus } from '@nestjs/common'; import { ApiErrorCode } from '../../../common/constants/api-errors'; import { StandardException } from '../../../common/exceptions/standard-exception.exception'; import { StandardBaseExceptionFilter } from '../../../common/filters/standard-exception-filter'; import { ...
declare module '@ioc:Adonis/Core/Event' { interface EventsList { 'new:user': { id: number } 'delete:user': { id: number; eventId: string } } }
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { BookCreateComponent } from './book-create.component'; describe('BookCreateComponent', () => { let component: BookCreateComponent; let fixture: ComponentFixture<BookCreateComponent>; beforeEach(async(() => { TestBed.configure...
import { db } from '@/lib/firebase'; import { likeId } from '@/lib/util'; import type { UserData, Query, Comment, Notification, SearchOptions, } from '@/lib/types'; export const fetchUserData = (uid: string): Promise<UserData | null> => { return db .collection('users') .doc(uid) .get() .the...
import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, VNode, Watch } from "@stencil/core"; import { getElementDir, getElementProp } from "../../utils/dom"; import { getKey } from "../../utils/key"; import { Scale } from "../interfaces"; import { CSS_UTILITY } from "../../utils/res...
export = { root: { Abort: "Abort", AbortedBy: "Aborted by", AbortedTime: "Aborted time", About: "About", AboutGraphControl: "About Graph Control", AboutHPCCSystems: "About HPCC Systems®", AboutHPCCSystemsGraphControl: "About HPCC Systems® Graph Control", ...
import React, { useCallback, useState } from 'react'; import colors from '../../theme/colors.scss'; import { SoftKeyConsumer, SoftKeyManagerProps } from '../SoftKey/withSoftKeyManager'; import './Slider.scss'; import { SoftKeyContextProps } from '../SoftKey/SoftKeyProvider'; const prefixCls = 'kai-slider'; interface ...
export abstract class View<T> { private _element: JQuery; constructor(selector: string) { this._element = $(selector); } updateList(model: T): void { let template = this.template(model); this._element.html( template + this._element.html() ); } abstr...
import { isDep } from 'dep/path' export interface ITest { foo: string bar: boolean } export default function (): ITest
/** * Copyright 2018 The Lovefield Project Authors. 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...
// @ts-ignore allowing typedoc to build import { assertString } from '../helpers/assertString.ts'; type CurrencyOptions = { symbol?: string; requireSymbol?: boolean; allowSpaceAfterSymbol?: boolean; symbolAfterDigits?: boolean; allowNegatives?: boolean; parensForNegatives?: boolean; negativeSignBeforeDig...
import { Response } from 'request'; export interface Parser { parseRedirectUrl(response: Response): [Record<string, string> | null, string]; }
import React, { useState, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import IconButton from '../../../../../components/IconButton/IconButton'; import { TextField, ActionButton } from '@fluentui/react'; import ActionBar from '../../../../../components/ActionBar'; import { newButtonOfficeFa...
import { createStyles, makeStyles } from '@mui/styles'; import { Theme } from '@mui/material/styles'; import * as React from 'react'; import { Button, Checkbox, FormControlLabel, TextField } from '@mui/material'; import plLocale from 'date-fns/locale/pl'; import { useTranslation } from 'react-i18next'; import { Localiz...
import { Validation } from '@/presentation/protocols' import { InvalidParamError } from '@/presentation/errors' export class EnumValidation implements Validation { constructor ( private readonly fieldName: string, private readonly enumerator: any ) { } validate (input: any): Error { const value = in...
import { register, listen, Credentials, Client } from 'push-receiver'; import { v4 as uuidv4 } from 'uuid'; import fetch from 'node-fetch'; const senderId = '976529667804'; export default class NotificationListener { credentials?: Credentials; client?: Client; expoToken = ''; authToken = ''; constructor(au...
import { join } from 'path'; import { MacrosConfig } from '.'; export = { name: '@embroider/macros', included(this: any, parent: any) { this._super.included.apply(this, arguments); this.options.babel = { plugins: [] }; let parentOptions = (parent.options = parent.options || {}); let ownOptions = (p...
import { EmulatorState } from '../../emulator-state'; import { TermPlugin } from '../../types'; // event.preventDefault(); // if (history.length - (this.index + 1) < 0) return; // if (this.index == 0) savedTempValue = inputRef.current.value; // this.index++; // inputRef.current.value = history[history.length...
import { AccessDeniedException } from "./AccessDeniedException"; import { ConcurrentModificationException } from "./ConcurrentModificationException"; import { HandshakeNotFoundException } from "./HandshakeNotFoundException"; import { InvalidHandshakeTransitionException } from "./InvalidHandshakeTransitionException"; im...
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, } from 'typeorm'; @Entity() export class Todo { @PrimaryGeneratedColumn({ type: 'integer' }) id: number; @Column('varchar', { length: 255, nullable: true }) content: string; @Column('boolean', { default: false })...
import { Subject, Subscription, Observable } from 'rxjs'; import { Injectable } from '@angular/core'; import { WebSocketService } from './web-socket.service'; import { OnInit } from '@angular/core'; import { Task } from '../models/Task.model'; import { LogService } from './log.service'; @Injectable() export class ToDo...
import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy} from '@angular/core'; import {ColorHelper} from '../../utils/color.helper'; @Component({ selector: 'g[ngx-charts-gauge-arc]', template: ` <svg:g ngx-charts-pie-arc class="background-arc" [startAngle]="0" [endAngle]="...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs/internal/Observable'; import {environment} from "../../../environments/environment"; @Injectable({ providedIn: 'root' }) export class UserRestService { users: Array<{id: number, name: stri...
import {setValidatorConfirmationServiceNotification} from 'renderer/store/notifications'; import {displayToast, ToastType} from 'renderer/utils/toast'; import {generateUuid} from 'renderer/utils/local'; import {AppDispatch} from 'shared/types'; const handleValidatorConfirmationServiceNotifications = async ( dispatch...
import { IgnorePropertyTransformation, KeyChangeTransformation, ModelTransformer, PropertyType, PropertyTypeTransformation, } from '../../../framework'; import { Coupon } from '../../../models'; /** * Creates a transformer for a coupon object. * * @return {ModelTransformer} The created transformer. */ export...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { useEffect, useState } from "react"; import { Button, Box, useClipboard } from "@chakra-ui/react"; import { atomOneDark } from "react-syntax-highlighter/dist/cjs/styles/hljs"; import { LightAsync as SyntaxHighlighter } from "react-syntax-highlighter"; import ReactMarkdown from "react-markdown"; type MarkdownPr...
// NG import { ChangeDetectorRef, Component, ElementRef, OnInit, forwardRef, Input, Output, ViewChild, EventEmitter, HostBinding, } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { TAB, ENTER, ESCAPE } from '@angular/cdk/keycodes'; // Vendor im...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IonicModule } from '@ionic/angular'; import { LoadingComponent } from './loading.component'; @NgModule({ imports: [CommonModule, IonicModule], exports: [LoadingComponent], declarations: [LoadingComponent] }) export cl...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { UserComponent } from './user/user.component'; import { AdminComponent } from './admin/admin.component'; import { WorkerComponent } from './worker/worker.compone...
import { createApp, h, createCommentVNode, withScopeId, resolveComponent, ComponentOptions, ref, defineComponent, createTextVNode, createStaticVNode } from 'vue' import { escapeHtml, mockWarn } from '@vue/shared' import { renderToString } from '../src/renderToString' import { ssrRenderSlot, SSRSlot ...
/*! * @license * Copyright 2018 Alfresco Software, Ltd. * * 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 { Injectable, Provider } from '@angular/core'; import { Observable, Observer, Operator } from 'rxjs'; import { distinctUntilChanged, map, pluck } from 'rxjs/operators'; import { ActionsSubject } from './actions_subject'; import { Action, ActionReducer } from './models'; import { ReducerManager } from './reducer...
import JQuery from "jquery"; import { ActivityClass, ActivitySummary, ActivitySummarySection, ActivityTypeClass, } from "./ActivitySummary"; import { Engine } from "./Engine"; import i18nData from "./i18n/i18nData.json"; import { Options } from "./options/Options"; import { SettingsStorage } from "./options/Set...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About USDEX</source> <translation type="unfinished"/> </message> <message> <location line="+3...
import { Injectable } from '@angular/core'; import { Headers, Http } from '@angular/http'; import 'rxjs/add/operator/toPromise'; export class AssetsSearchParameters { constructor( public lat : number, public lon : number, public dateBegin : string, public dateEnd : string) { } } export...
import { expect } from '@playwright/test'; import { loadFixture } from '../playwright/paths'; import { test } from '../playwright/test'; test('can make oauth2 requests', async ({ app, page }) => { test.slow(); const sendButton = page.locator('[data-testid="request-pane"] button:has-text("Send")'); const status...
import React from 'react'; import {useFonts} from 'expo-font'; import {Inter_400Regular, Inter_500Medium} from '@expo-google-fonts/inter' import {Rajdhani_500Medium,Rajdhani_700Bold} from '@expo-google-fonts/rajdhani' import { StatusBar, StyleSheet, Text, View } from 'react-native'; import SignIn from './src/screens/Si...
/* eslint-disable no-underscore-dangle */ /* eslint-disable no-param-reassign */ import hexToRgba from '../../utils/hexToRgba'; import { Item } from '@antv/g6/lib/types'; import G from '@antv/g-canvas'; const reset = (shape: G.Shape.Base, initStyle: G.ShapeAttrs) => { const { lineWidth, stroke } = initStyle; shape...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { NbToastrService } from '@nebular/theme'; import { JsonApiQueryData } from 'angular2-jsonapi'; import { WebAngularDataStore } from '@core/services/src/lib/WebAngularDataStore.service'; import ...
import TrezorConnect from 'trezor-connect'; import Trezor from './Trezor'; import { DEFAULT_ETH, LEDGER_LIVE_ETH, TESTNET_ETH } from '../config'; jest.mock('trezor-connect'); describe('Trezor', () => { it('generates an address from a derivation path', async () => { const wallet = new Trezor(); await wallet....
import { UserException } from './user-exception.js'; import type { ErrorCtx, CurrentComponents } from './types'; export function exception(component: CurrentComponents, code: ErrorCtx): string { const { message, solution } = code; if (solution) { return UserException(component, message, solution); } return User...
import React, { ReactElement } from 'react' import { Link } from 'gatsby' import { useLocation } from '@reach/router' import loadable from '@loadable/component' import styles from './Menu.module.css' import { useSiteMetadata } from '../../hooks/useSiteMetadata' import UserPreferences from './UserPreferences' import Bad...
import {ComponentFixture, TestBed} from '@angular/core/testing'; import {ExportReportDialogComponent} from './export-report-dialog.component'; describe('ExportReportDialogComponent', () => { let component: ExportReportDialogComponent; let fixture: ComponentFixture<ExportReportDialogComponent>; beforeEach(async...
/* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. */ import { StructureKind } from 'ts-morph'; import { importDeclarations } from '../../src/request-builder'; import { breakfastEntity } from '../test-util/data-model'; describe('imports', () => { it('importDeclarations', () => { const...
import { Component, Input } from '@angular/core' import { RouterExtensions } from 'nativescript-angular/router' import { TranslateService } from '@ngx-translate/core' import { UserService } from '../../../../shared/user' @Component({ selector: 'te-student-box', templateUrl: 'student-box.component.html', moduleId...
import { GraphQLList, GraphQLNonNull, GraphQLType } from "graphql"; export const getWrappedType = ( graphqlType: GraphQLType ): Exclude<GraphQLType, GraphQLList<any> | GraphQLNonNull<any>> => { if ( graphqlType instanceof GraphQLList || graphqlType instanceof GraphQLNonNull ) { return getWrappedType(...
import { chain, externalSchematic, Rule } from '@angular-devkit/schematics'; import * as path from 'path'; export default function(schema: any): Rule { if (!schema.name.startsWith('data-access-')) { throw new Error(`Data-access lib names should start with 'data-access-'`); } schema.dir = schema.dir || ''; ...
import { IGridDataSource } from '../../typings/interfaces' import { IGridOperationFactory } from '../../typings/interfaces/grid-operation-factory.interface' import { Operation } from '../operation.abstract' export class SetRelatedData extends Operation { constructor(factory: IGridOperationFactory) { super(factory.g...
import React from 'react'; import { RenderLeafProps } from 'slate-react'; import { MARK_BOLD } from './types'; export const renderLeafBold = () => ({ children, leaf }: RenderLeafProps) => { if (leaf[MARK_BOLD]) return <strong>{children}</strong>; return children; };
/** * Replace `element` tag name by `tagName`. * Attributes, innerHTML and parent relationship is kept. */ export const replaceTagName = (element: Element, tagName: string): Element => { const newElement = document.createElement(tagName); newElement.innerHTML = element.innerHTML; for (const { name } of eleme...
import { VendorModel } from '../vendor/vendor.model'; import { AccountingModel} from '../accounting/accounting.model'; export class ContractModel { public fiscalYear: number; public contractNumber: string; public description: string; public contractPeriodStart: string; public contractPeriodEnd: st...
import React, { useEffect, useState } from "react"; import RefinerDB, { IndexConfig, IndexState, RefinerDBConfig } from "refinerdb"; import { useRefinerDB } from "."; import { useUpdateEffect } from "./hooks/utils/useUpdateEffect"; export const RefinerDBContext = React.createContext<RefinerDB>(null); export const Inde...
export type OvenConfigurationName = "fast" | "slow"; export interface OnlineOvenConfiguration { name: string; milisecsPerDegree: number; programs: OnlineProgramData[]; } export interface OnlineProgramData { id: number; name: string; settings: OnlineProgramSettings; } export interface OnlinePr...
import {Injectable} from "@angular/core"; import { MyConfig } from "../commons/my-config"; declare let AWS: any; declare let AWSCognito: any; export class RegistrationUser { name: string; email: string; password: string; } export interface CognitoCallback { cognitoCallback(message: string, result: an...
declare module 'memoize-one' { function memoizeOne<T extends (...args: any[]) => any, E>(resultFn: T, isEqual?: EqualityFn<E>): T; export type EqualityFn<T> = (newArgs: T, lastArgs: T) => boolean; export default memoizeOne; }
import { Module, HttpModule } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { EventsModule } from './events/events.module'; @Module({ imports: [ EventsModule, HttpModule.registerAsync({ useFactory: () => ({ baseURL: '...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Framework Emulator Github: // https://github.com/Microsoft/BotFramwork-Emulator // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // ...
import Admin from './AdminApplication'; declare const app: Admin; export default app;
import { Auth } from "aws-amplify"; import React, { Component, Fragment } from "react"; import { LinkContainer } from "react-router-bootstrap"; import { Link, withRouter } from "react-router-dom"; import { Nav, Navbar, NavItem } from "react-bootstrap"; import "./App.css"; import { Routes } from "./Routes"; interface ...
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getTitleText()).toEqual('Welcome...
import { ProtonClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ProtonClient"; import { GetEnvironmentAccountConnectionInput, GetEnvironmentAccountConnectionOutput } from "../models/models_0"; import { deserializeAws_json1_0GetEnvironmentAccountConnectionCommand, serializeAws_json1_0GetEnviron...
import { AfterFromClause, AssertValidJoinTarget, CanWidenColumnTypes } from "../../predicate"; import { IAliasedTable } from "../../../../aliased-table"; import { RightJoin } from "../join"; import { JoinUsingDelegate } from "./join-using"; export declare function rightJoinUsing<QueryT extends AfterFromClause & CanWide...
import { Component, ElementRef, Output, EventEmitter, ViewChild, Input, TemplateRef, AfterContentChecked } from '@angular/core'; import { isInputOrTextAreaElement, getContentEditableCaretCoords } from './mention-utils'; import { getCaretCoordinates } from './caret-coords'; /** * Angular Mentions. * https://github...
import { Buffer } from 'buffer'; import { browser } from 'webextension-polyfill-ts'; import * as Passworder from 'lib/temple/passworder'; interface EncryptedStorage { encrypted: Passworder.EncryptedPayload; salt: string; } export async function isStored(storageKey: string) { storageKey = await wrapStorageKey(s...
import { Theme } from '../../types/misc' export default (theme: Theme) => ({ item: { flexDirection: 'row', alignItems: 'center', borderBottomWidth: 1, borderBottomColor: theme.palette.border, paddingVertical: theme.baseSpace * 4, marginHorizontal: theme.baseSpace * 4, overflow: 'hidden', ...
import { AccessTokenManager } from '../authentication/accessTokenManager'; import { AutomowerClient } from '../../clients/automowerClient'; import { NotAuthorizedError } from '../../errors/notAuthorizedError'; import { Mower } from '../../model'; /** * A service used to retrieve the mowers associated with a Husqvarna...
/* * 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 { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, forwardRef, HostBinding, Input, OnChanges, OnDestroy, OnInit, Optional, QueryList, Renderer2, ViewChild, ViewChildren, ViewEncapsulation } from '@angular/core'; import { ControlVal...
import { EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { InputBoolean } from '../core/util/convert'; im...
// Copyright 2020 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 agreed to in ...
import '../../jquery_augmentation'; export interface ODataContextOptions { /** * @docid ODataContextOptions.beforeSend * @type function * @type_function_param1 options:object * @type_function_param1_field1 url:string * @type_function_param1_field2 async:boolean * @type_function_param1...
import * as React from 'react'; import { useTranslation } from 'react-i18next'; import { NavGroup, Button } from '@patternfly/react-core'; import { MinusCircleIcon } from '@patternfly/react-icons'; import { useExtensions } from '@console/plugin-sdk'; import { Separator, NavItem, isNavSection, NavSection as Plug...
import fs from 'fs' import path from 'path' import { Plugin } from '../plugin' import { ResolvedConfig } from '../config' import chalk from 'chalk' import MagicString from 'magic-string' import { init, parse as parseImports, ImportSpecifier } from 'es-module-lexer' import { isCSSRequest, isDirectCSSRequest } from './cs...
export interface IStore { get(id: string): any; set(id: string, data: any): void; } export declare class ResizableOptions { resizeFromBody: boolean; minWidth: null | number; maxWidth: null | number; maxInitialWidthHint: null | number; doubleClickDelay: number; store: IStore | null; c...
import { retryTx } from '@celo/protocol/lib/proxy-utils' import { _setInitialProxyImplementation } from '@celo/protocol/lib/web3-utils' import { Address, isValidAddress } from '@celo/utils/src/address' import BigNumber from 'bignumber.js' import chalk from 'chalk' import fs from 'fs' import prompts from 'prompts' impor...
import 'mocha'; import * as React from 'react'; import { expect } from 'chai'; import { default as Menu } from './index'; import { mountWithTheme } from '../helpers/test-theme'; import * as sinon from 'sinon'; const usersFlag = process.env.USERS || false; describe('<Menu />', () => { it('check for inner components',...