text
stringlengths
10
953k
import { ZObject, Bundle } from "zapier-platform-core"; interface TeamProjectsResponse { data: { team: { projects: { nodes: { id: string; name: string; state: string; }[]; }; }; }; } const getProjectList = async (z: ZObject, bundle: Bundle) => { ...
import React from 'react'; import { useModule, MyPageState, MyPageActions } from './interface'; import { MyPageView } from './components/MyPageView'; // --- Reducer --- const initialState: MyPageState = { selectToleranceViewType: null, holeTypeViewType: null, }; useModule .reducer(initialState) .on(MyPageActi...
import React from 'react'; import { withFormikControlProps } from 'react-native-formik'; export {}; declare module 'react-native-formik' { export function withFormikControl<Props>( WrappedComponent: React.ComponentType<Props> ): React.ComponentClass<Props & withFormikControlProps>; }
import { ColorWrap } from 'ngx-color'; export declare class SketchComponent extends ColorWrap { /** Remove alpha slider and options from picker */ disableAlpha: boolean; /** Hex strings for default colors at bottom of picker */ presetColors: string[]; /** Width of picker */ width: number; ac...
//import * as PIXI from "pixi.js"; import { PIXI } from "../..//pixijs/es/pixi.v5.3.9.min.js"; import { textPatterns } from "./textPattern"; import { fillRect, drawLetterImage, setColor, currentColor, saveCurrentColor, loadCurrentColor, theme, } from "./view"; import { Color, colorChars, colors, colorToSt...
import { ANC_INPUT_MAXIMUM_DECIMAL_POINTS, ANC_INPUT_MAXIMUM_INTEGER_POINTS, formatLP, formatLPInput, formatUST, } from '@anchor-protocol/notation'; import { AncUstLP } from '@anchor-protocol/types'; import { useAncAncUstLpUnstakeTx, useRewardsAncUstLpRewardsQuery, } from '@anchor-protocol/app-provider'; ...
import React from 'react' import * as Kb from '../../../../common-adapters' import * as Styles from '../../../../styles' import {AllowedColors} from '../../../../common-adapters/text' import * as RPCChatTypes from '../../../../constants/types/rpc-chat-gen' type Props = { backgroundColor?: string participantNeedToR...
/** * @module botbuilder-testing */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /* eslint-disable @typescript-eslint/ban-types */ import { Activity, TestAdapter, Middleware, ConversationState, MemoryStorage, AutoSaveStateMiddleware,...
// Type definitions for socket.io-client 1.4.5 // Project: http://socket.io/ // Definitions by: PROGRE <https://github.com/progre>, Damian Connolly <https://github.com/divillysausages>, Florent Poujol <https://github.com/florentpoujol> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Agent } ...
import { Collection, FindOneOptions, Cursor, UpdateWriteOpResult, DeleteWriteOpResultObject, FilterQuery } from 'mongodb'; import { BaseRaw } from './BaseRaw'; import { ITeam, TEAM_TYPE } from '../../../../definition/ITeam'; type T = ITeam; export class TeamRaw extends BaseRaw<T> { constructor( public readonly col...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ChatDisplayComponent } from './chat-display.component'; describe('ChatDisplayComponent', () => { let component: ChatDisplayComponent; let fixture: ComponentFixture<ChatDisplayComponent>; beforeEach(async(() => { TestBed.conf...
import { Component, ComponentFactoryResolver, Input, OnInit, ViewChild } from '@angular/core'; import { Subscription } from 'rxjs'; import { updateComponent } from '../../shared/helpers'; import { CallFunctionOrOutput, NgComponent, Property, PropertyValueType, TabOutput, TabType, } from '../../inspector.mo...
export interface UserRegistrationDetails { email: string; firstName: string; lastName: string; roles: string[]; }
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { IClinicalStudy } from 'app/shared/model/clinical-study.model'; @Component({ selector: 'ko-clinical-study-detail', templateUrl: './clinical-study-detail.component.html' }) export class ClinicalStudyDetailC...
import { Injectable, NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common'; import { format } from 'date-fns'; import { map } from 'lodash'; import { Observable } from 'rxjs'; import { catchError, tap } from 'rxjs/operators'; import { ContextLogger } from '../Handlers/ContextLogger'; @Injectable() exp...
import { RemoteGraphQLDataSource } from '@apollo/gateway'; import { ApolloError, AuthenticationError, ForbiddenError } from 'apollo-server-express'; import { GraphQLResponse } from 'apollo-server-types'; class AuthenticatedDataSource extends RemoteGraphQLDataSource { // modify your gateway's requests to the implemen...
import { expect } from 'chai'; import * as sinon from 'sinon'; import { NO_PATTERN_MESSAGE } from '../../constants'; import { ServerRedis } from '../../server/server-redis'; describe('ServerRedis', () => { let server: ServerRedis; beforeEach(() => { server = new ServerRedis({}); }); describe('listen', () =...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fi" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Remitanzocoin</source> <translation>Tietoa Remitanzocoinista</transl...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as querystring from 'querystring'; import * as url from 'url'; export class Utils { static extractVideoIdFromYoutubeUrl(ytUrl: string): string { const u = url.parse(ytUrl); return <string>querystring.parse(u.query)['v'] || u.pathname.slice(1, 11); } /** * @param {string} string * @param {...
export default interface ChipInstallPlace { id: string; name: string; }
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { IonicModule } from '@ionic/angular'; import { configureTestSuite } from 'ng-bullet'; import { LocationComponent } from '../location'; describe('LocationComponent', () => { let component:...
import fs from 'fs'; export default function run () { const path = 'wkcss.config.ts'; if (fs.existsSync(path)) { console.error(`config file "${path}" already exists`); return; } const template = require('./template'); const text = template.default as string; fs.writeFileSync(path, text); co...
import { JsonObject } from '@angular-devkit/core'; export type NextServer = ( options: NextServerOptions, proxyConfig?: ProxyConfig ) => Promise<void>; export interface ProxyConfig { [path: string]: { target: string; pathRewrite?: any; changeOrigin?: boolean; secure?: boolean; }; } export int...
import { EditableGrid } from 'components/editable-grid/EditableGrid' import * as enzyme from 'enzyme' import * as React from 'react' import { DragDropContext } from 'react-beautiful-dnd' import { initialState } from 'reducers/grid' import { emptyFunction } from 'testObjects' describe('Editable grid component', () => {...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Subscription } from 'rxjs'; import { Utils } from '../models/Utils'; import { VerbConjugation } from '../models/VerbConjugation'; import { AppNotificationsService } from '../services/app-notification...
type DeniedAccessBehaviorType = "disable" | "hide"; export default DeniedAccessBehaviorType;
export const chaoSignature = ` <a href="https://usechao.com"> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link href="https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@100;300;400;500;700;800;900&display=swap" r...
import { PrismaClient } from "@prisma/client"; import createServer from "./createServer"; export interface TestServerConfig { createNewUserUrl: string; prisma: PrismaClient; } const setupTestServer = (): TestServerConfig => { const prisma = new PrismaClient(); const server = createServer({ prisma }); cons...
import { respondBase, fluidScaleBase } from "@castiron/style-mixins"; import get from "lodash/get"; import { breakpoints } from "../base/variables"; export { noFlexGapSupport, noInsetSupport } from "@wdp/lib/theme/mixins"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export type CssContent = string |...
import { Component } from '@angular/core'; import { Jobdesc } from './jobdesc'; import { Aktivitas } from './aktivitas'; @Component({ selector: 'inputaktivitas', templateUrl: './inputaktivitas.component.html' }) export class InputAktivitasComponent { jobdescription = [ new Jobdesc(''), new Jobdesc('Jobdesc1')...
import { Component, OnInit } from '@angular/core'; import {BackendService} from '../backend.service'; import {Router} from '@angular/router'; import {Http} from '@angular/http'; interface MyWindow extends Window { myFunction(): void; } declare var window: MyWindow; @Component({ selector: 'app-searchdivresults', ...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="en"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <source>About Ultracoin</source> <translation type="obsolete">About Ultracoin</translation> </message> <message> <...
import { FilePath, ParsedPath, Path, PathFormatOptions, PathSegments, ReadablePath, } from "./types"; import AbsoluteFilePath from "./classes/AbsoluteFilePath"; import RelativePath from "./classes/RelativePath"; import UIDPath from "./classes/UIDPath"; import URLPath from "./classes/URLPath"; import DataURIPath f...
/******************************************************************************** * Copyright (C) 2018 Red Hat, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. *...
import * as React from "react"; import {DataFilter} from 'mg-ui'; import * as Highlight from "react-highlight"; export interface DataFilterExampleState { writeCode ?: object | any } export default class DataFilterExample extends React.Component<any, any> { constructor(props:any){ super(props); ...
import * as React from 'react'; import { convertIcon } from '../components/Icon'; function SvgComponent(props: React.SVGProps<SVGSVGElement>) { return ( <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="1em" height="1e...
import ace from 'brace' // Mode ;(ace as any).define('ace/mode/glisp', function ( this: any, acequire: any, exports: any ) { const oop = acequire('../lib/oop') const TextMode = acequire('./text').Mode const GlispHighlightRules = acequire('./glisp_highlight_rules') .GlispHighlightRules const MatchingParensOutd...
export const settingsGQL = ` query { config { seo { metaTitle metaDescription keywords url } general { admin_email } } } `;
/** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors ma...
/* * 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 { spawn } from 'child_process'; import getPort from 'get-port'; import...
import * as React from "react"; import Accordion from "@material-ui/core/Accordion"; import AccordionDetails from "@material-ui/core/AccordionDetails"; import AccordionSummary from "@material-ui/core/AccordionSummary"; import AccordionActions from "@material-ui/core/AccordionActions"; import ExpandMoreIcon from "@mater...
/** * @module LibRpcClient */ export interface LibRpcRequest<T = any> { id: string; namespace: string; name: string; args: T; }
import * as React from 'react'; import { hot } from 'react-hot-loader/root'; import { ConnectedRouter } from 'connected-react-router'; import { Switch, Route } from 'react-router'; import { history } from '../store'; import Settings from './Settings'; const Application: React.FunctionComponent<{}> = () => ( <Connec...
import * as React from 'react'; import { ReactSortable } from 'react-sortablejs-typescript'; import Button from '@synerise/ds-button'; import * as S from './CardTabs.styles'; import { CardTabsProps } from './CardTabs.types'; import { COLORS_TABS } from './CardTab/ColorsTabs'; const SORTABLE_CONFIG = { ghostClass: 's...
import { StoreModule, ChartType, StackDataType, StackGroupData, Options, StackDataValues, Stack, StackSeries, RawSeries, } from '@t/store/store'; import { BoxSeriesOptions, StackType, StackOptionType, StackInfo, BoxSeriesDataType, BoxSeriesType, } from '@t/options'; import { extend } from ...
import * as React from 'react' import { SFC } from 'react' import styled from 'react-emotion' import { get } from '@utils/theme' interface OpenProps { opened: boolean } const IconFirst = (p: OpenProps) => (!p.opened ? '0px' : '10px') const IconMiddle = (p: OpenProps) => (!p.opened ? '1' : '0') const IconLast = (p:...
import { render, screen } from "@testing-library/react"; import { MemoryRouter, Route } from "react-router-dom"; import { generateLeague } from "../../../../test/mocks/league"; import { LeagueRow } from "./LeagueRow"; import user from "@testing-library/user-event"; it("displays the correct information", () => { cons...
import * as React from 'react'; import { Platform, StyleSheet, Text, TextProps, ViewProps } from 'react-native'; export type IconProps = { name: string; color: string; size: number; direction: 'rtl' | 'ltr'; allowFontScaling?: boolean; }; let MaterialCommunityIcons: React.ComponentType< TextProps & { ...
/** * Copyright (c) 2016-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ ///<reference path='../type-defs/jasmine.d.ts'/> ///<reference path='../type-defs/jasmine-test-additions.d.ts'/> import * as Either fro...
import { getNonForkGitHubRepository, isRepositoryWithGitHubRepository, Repository, } from '../../models/repository' import { EmojiAutocompletionProvider, IAutocompletionProvider, IssuesAutocompletionProvider, UserAutocompletionProvider, } from '.' import { Dispatcher } from '../dispatcher' import { GitHub...
import React from "react" import { Link as RouteLink } from "react-router-dom" import { Avatar, Button, Checkbox, Container, CssBaseline, FormControlLabel, Grid, Link, TextField, Typography, makeStyles, } from "@material-ui/core" import { LockOutlined } from "@material-ui/icons" import LogIn fro...
import AbstractTokensDatabase from '../AbstractTokensDatabase' import EngineSqlite from './EngineSqlite' import ChannelId from '../../ChannelId' import SqliteDatastore from './SqliteDatastore' async function createTable (client: SqliteDatastore) { await client.run('CREATE TABLE IF NOT EXISTS token (token TEXT, "chan...
import fs from "fs"; import glob from "glob"; import L from "lodash"; import path from "upath"; import { ProjectMetaBundle } from "../api"; import { logger } from "../deps"; import { HandledError } from "../utils/error"; import { isLocalModulePath } from "./code-utils"; import { ComponentConfig, CONFIG_FILE_NAME, ...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction, } from "ethers"; import { Contract, ContractTransaction, Overrides, CallOverrides, } from "@ethersproject/contracts"; import...
import * as React from 'react'; import { Helmet } from 'react-helmet'; import { STYLE } from '../../utils/constant'; export default function Head(): JSX.Element { return ( <Helmet> <meta charSet="utf-8" /> <title>寄贈・寄付のお願い - ハワイ移民資料館「仁保島村(にほじまむら)」</title> <meta name="viewport" content="width=de...
import hkdf from "futoin-hkdf"; import secp256k1 from "secp256k1"; import { decodeHex, getValidSecret } from "../utils"; import PublicKey from "./PublicKey"; export default class PrivateKey { public static fromHex(hex: string): PrivateKey { return new PrivateKey(decodeHex(hex)); } public readonly secret: B...
/* * 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 { Cell, Fun } from '@ephox/katamari'; import { EventArgs, SugarElement } from '@ephox/sugar'; export interface EventFormat { readonly target: SugarElement; readonly kill: () => void; readonly prevent: () => void; } export interface SimulatedEvent<T extends EventFormat> { readonly stop: () => void; re...
// ag-grid-enterprise v20.2.0 /** * As of Jan 8, 2019, Firefox still doesn't implement * `getTransform(): DOMMatrix;` * `setTransform(transform?: DOMMatrix2DInit)` * in the `CanvasRenderingContext2D`. * Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=928150 * IE11 and Edge 44 also don't have the support. * Thu...
export class Issues { repository_url:any; state:any; title:any; body:any; comments_url:any; constructor(){} }
import {EmptyObject} from '../../EmptyObject'; import {OCPP16ChargePointErrorCode} from './ChargePointErrorCode'; import {OCPP16ChargePointStatus} from './ChargePointStatus'; import {ChargingProfilePurposeType, OCPP16ChargingProfile} from './ChargingProfile'; import {OCPP16StandardParametersKey} from './Configuration';...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'cherry-breadcumbdemo', templateUrl: './breadCrumbdemo.component.html', styleUrls: ['./breadCrumbdemo.component.scss'] }) export class BreadCrumbDemoComponent implements OnInit { constructor() { } ngOnInit() { { ...
import { EditBusinessAdminActionTypes } from "./ActionTypes"; import { IChangeSearchStatusAction, IGetBusinessAdminAction, ISaveBusinessAdminAction, ISearchUsersAction } from "./IActions"; import { IEditBusinessAdminState } from "./IState"; export const EditBusinessAdminReducer: (state: IEditBusinessAdminState, action...
export declare function initializeOnLoadScroll(): void;
import { Description } from "@taroify/icons" import { ITouchEvent, View } from "@tarojs/components" import { ViewProps } from "@tarojs/components/types/View" import classNames from "classnames" import * as React from "react" import { ReactNode } from "react" import Image, { ImageMode } from "../image" import { prefixCl...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { SettingsService } from '../../shared/angle/core/settings/settings.service'; import { ThemesService } from '../../shared/angle/core/themes/themes.service'; import { TranslatorService } from '../../shared/angle/core/translator/translator.service'; ...
import IObjectDataProperty from './IObjectDataProperty'; import IObjectData from './IObjectData'; import IPageComponentColumn from './IPageComponentColumn'; import IPageComponentData from './IPageComponentData'; import INavigationItem from './INavigationItem'; import INavigationItemData from './INavigationItemData'; im...
import IUsersRepository from '@modules/users/repositories/IUsersRepository'; import ICreateUserDTO from '@modules/users/dtos/ICreateUserDTO'; import User from '@modules/users/infra/typeorm/entities/User'; import { v4 as uuid } from 'uuid'; class UsersRepository implements IUsersRepository { private users : User[] =...
import { useState, useEffect } from 'react' const getWindowDimensions = (): {width: number, height: number} => { const { innerWidth: width, innerHeight: height } = window return { width, height } } const useWindowDimensions = (): {width: number, height: number} => { const [windowDimensions, setWindowD...
import { Logger } from './logger'; import { CacheRequester } from './cache-requester'; import { ConcourseFileSystem } from './concourse'; interface Commit { date: string; } export interface PullRequestState { state: string; key: string; name: string; description?: string; url: string; } expor...
import { AuthOptions, Browser, devices, launch, Response, } from 'puppeteer'; import mkdirp from 'mkdirp'; /** * SiteInfo */ export interface SiteInfo { id: string; url: string; timelineFile?: string; timelinePath?: string; status?: number|'ERROR'; errorMessage?: string; title?: string; res...
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * GetAdminAccountInput shape */ export interface GetAdminAccountInput { /** * The maximum number of times this operation should be retried. If set, this value will override the `maxRetr...
import merge from "lodash.merge"; import { CommonRequestError } from "./CommonRequestError"; import { VersionError } from "./VersionError"; import { RequestMiddleware } from "./RequestMiddleware"; abstract class AirbyteRequestService { constructor( protected rootUrl: string, private middlewares: RequestMidd...
<TS language="sk" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Kliknutím pravým tlačidlom upraviť adresu alebo popis</translation> </message> <message> <source>Create a new address</source> ...
import * as React from 'react'; import {withA11y} from '@storybook/addon-a11y'; import SignUp from './SignUp'; export default { title: 'Sign Up', decorators: [withA11y], }; export const SignUpForm = () => { return ( <section> <div id="login-container" className="uk-section uk-flex uk-flex-middle uk-a...
import { ICollaboratorsRepository } from '@modules/collaborators/repositories/ICollaboratorsRepository'; import { Connection } from 'mysql'; import { connection } from '@shared/infra/mysql/dbConnection'; import { IUploadImageAvatarDTO } from '@modules/collaborators/dtos/IUploadImageAvatarDTO'; import { Collaborator } f...
import React from 'react'; import { withClassDefault, compose } from '@axa-fr/react-toolkit-core'; const DEFAULT_CLASSNAME = 'af-tabs__pane'; export type DivProps = React.DetailedHTMLProps< React.HTMLAttributes<HTMLDivElement>, HTMLDivElement >; interface PaneComponentProps extends DivProps { active: boolean; ...
import { TransitionPart, AnimationPart } from "../../runtime/animationTypes"; import { StyleTuple } from "../../runtime/cssUtil"; export type PropType = { type: "bool" } | { type: "oneOf"; values: string[] }; export type PropTypes = { [key: string]: PropType }; export type Condition = { selector: string; mediaQuery:...
import React from 'react' export const liveEditorStyle: React.CSSProperties = { fontSize: 14, overflowX: 'auto', fontFamily: 'SF Mono, Menlo, monospace', } export const liveErrorStyle: React.CSSProperties = { fontFamily: 'SF Mono, Menlo, monospace', fontSize: 14, padding: '1em', overflowX: 'auto', col...
import { TravelSettings } from '@cy/models'; export const addDiscount = (companyRatesDetails: TravelSettings): void => { // TODO: We should support other discount types later (Flight, Hotel, Train) cy.get('dib-company-management dib-travel-settings dib-company-rates ui-button[type=primary]').click(); cy.get('....
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const faUsersMedical: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const liga...
export type ODataFilterOperator = | "contains" | "eq" | "ne" | "lt" | "le" | "gt" | "ge"; export interface IODataFilterItem { name: string; operator: ODataFilterOperator; value: any; } export default class ODataFilter { filters: Record<string, IODataFilterItem>; constructor() { this.filters = {}; } ...
/* * Copyright 2017-2018 Allegro.pl * * 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...
import { PostgresDatasource } from '../datasource'; import { CustomVariable } from 'app/features/templating/custom_variable'; import { toUtc, dateTime } from '@grafana/ui/src/utils/moment_wrapper'; import { BackendSrv } from 'app/core/services/backend_srv'; import { IQService } from 'angular'; describe('PostgreSQLData...
import {Store} from './store' export const AmdUk: Store = { currency: '£', labels: { inStock: [ { container: '.btn-shopping-cart', text: ['add to cart'], }, { container: '.btn-radeon', text: ['add to cart'], }, ], maxPrice: { container: '.pr...
import { expect } from 'chai'; import * as sinon from 'sinon'; import { accounts } from '../../src/apis/accounts'; import { apiBasicChecker } from './testutils'; describe('Accounts', () => { it('.open should propagate given params', () => { const spy = sinon.spy(); accounts(spy).open('secret'); apiBasic...
import path from 'path'; export const fromProjectRoot = (...segments: string[]) => { return path.resolve(process.cwd(), ...segments); };
/** @license amis v@version * * Copyright Baidu * * This source code is licensed under the Apache license found in the * LICENSE file in the root directory of this source tree. */ import { render, Renderer, getRendererByName, getRenderers, registerRenderer, unRegisterRenderer, resolveRenderer, fil...
export default newPage; declare function newPage(name: any, path: any, height: any, width: any): { id: any; name: any; path: any; width: any; height: any; styles: { '--mdc-theme-primary': string; '--mdc-theme-secondary': string; '--mdc-theme-background': string; p...
import Head from "next/head"; import Image from "next/image"; import { ReactNode } from "react"; import { Button, MenuDropdown, WalletOptionsModal } from ".."; import { useAccount } from "wagmi"; interface Props { children: ReactNode; showWalletOptions: boolean; setShowWalletOptions: (showWalletOptions: boolean)...
import * as React from 'react' import { MarkOptional } from 'ts-essentials' export function withDefaultProps<P1, P2 extends P1>( Component: React.ComponentType<P1>, defaultProps: P2, ): React.FunctionComponent<MarkOptional<P1, Extract<keyof P1, keyof P2>>> { return function WithDefaultProps(props) { return <...
import { inject, injectable, } from 'inversify'; import { ServiceIdentifiers } from '../../container/ServiceIdentifiers'; import * as ESTree from 'estree'; import { IOptions } from '../../interfaces/options/IOptions'; import { IRandomGenerator } from '../../interfaces/utils/IRandomGenerator'; import { IVisitor } from...
import { Buffer } from 'buffer'; // @ts-expect-error import { base32Decode, base32Encode, hexToArrayBuffer } from '../../src/index.js'; (window as any).Buffer = Buffer; (window as any).base32Decode = base32Decode; (window as any).base32Encode = base32Encode; (window as any).hexToArrayBuffer = hexToArrayBuffer; const...
import { mapChild, parseSimpleType } from '../core/utils' export function parseBindUniform(el: Element): BindUniform { const ref = mapChild(el, 'param', (e) => e.getAttribute('ref')) const st = ref ? {} : parseSimpleType(el.firstElementChild) return { symbol: el.getAttribute('symbol'), paramRef: ref, ...
import React, { ReactNode } from 'react' import '../../styles/variables.css' import '../../styles/base.css' import Header from './header' import Footer from './footer' type Props = { children: ReactNode } const Component: React.FC = ({ children }) => { return ( <> <Header /> <main>{children}</main...
import { UnavailabilityError } from 'expo-modules-core'; export default function BannerAd() { throw new UnavailabilityError('expo-ads-facebook', 'BannerAd'); }
import _ from "lodash"; import {} from "mocha"; import { expect } from "chai"; import express from "express"; import sinon from "sinon"; import nock from "nock"; import jsc from "magda-typescript-common/src/test/jsverify"; import * as helpers from "./helpers"; import request from "supertest"; import buildApiRouter fro...
/** * Data Catalog API * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata. * OpenAPI spec version: 20190325 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright...
namespace dou3d { /** * 3D 摄像机对象 * @author wizardc */ export class Camera3D extends Object3D { private _cameraType: CameraType; private _projectMatrix: Matrix4; private _orthProjectMatrix: Matrix4; private _viewPort: Rectangle; private _aspectRatio: numbe...