text
stringlengths
10
953k
require("dotenv").config(); import { updateGroup } from "./getGroup"; import { getUser } from "./getUser"; import { prisma } from "../generated/prisma-client"; import fs from "fs"; import fetch from "node-fetch"; const DOWNLOAD_FILE_PREFIX = "https://bbs.hustunique.com/"; const IS_LOCAL_ATTACH_REGEX = /\!\[.+?\]\(\/(...
import React from 'react'; export interface AnalyticsReactContextInterface { getAtlaskitAnalyticsContext(): any[]; getAtlaskitAnalyticsEventHandlers(): any[]; } export declare const AnalyticsReactContext: React.Context<AnalyticsReactContextInterface>;
import { Deck, DeckOperations, Hash } from "@excalideck/deck"; import SlideRenderer from "../SlideRenderer"; import lruMemoize from "../utils/lruMemoize"; import canvasSlideRenderer from "./canvasSlideRenderer"; const pngBlobSlideRenderer: SlideRenderer<Promise<Blob>> = { renderSlide: lruMemoize( (deck: De...
/* * Copyright 2021 NEM * * 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 writi...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; @NgModule({ declarations: [ AppComponent ], imports: [ ...
import * as Graph from "../Graph/Graph"; /** * Information about the location of a REST API resource */ export interface ApiResourceLocation { /** * Area name for this resource */ area: string; /** * Unique Identifier for this location */ id: string; /** * Maximum api vers...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { FormGroup, FormControl, Validators, FormBuilder } from '@angular/forms'; import { UserService } from '../services/user.service'; @Component({ selector: 'ms-register', templateUrl: './register.component.html', st...
export declare function resolveStrategies(nuxt: any, options: any): { strategies: any[]; strategyScheme: Map<any, any>; }; export declare function resolveScheme(nuxt: any, scheme: any): any; export declare function resolveProvider(nuxt: any, provider: any): any;
import * as Ask from 'ask-sdk'; import 'source-map-support/register'; export const alexa = Ask.SkillBuilders.custom() .addRequestHandlers({ canHandle: handlerInput => true, handle: handlerInput => handlerInput.responseBuilder.speak('Hello world!').getResponse() }) .lambda();
import { Body, Controller, Get, Post } from '@nestjs/common'; import { DogBreed } from 'src/database/entities/DogBreed.entity'; import { BreedsService } from './breeds.service'; import { CreateBreedDto } from './dtos/create-breed.dot'; @Controller('breeds') export class BreedsController { constructor(private readonl...
import cs from "../index"; test("basic", () => { expect(cs({ backgroundColor: "red" })).toStrictEqual([ { backgroundColor: "red" }, ]); }); test("conditional", () => { expect(cs([{ backgroundColor: "red" }, true])).toStrictEqual([ { backgroundColor: "red" }, ]); expect(cs([{ backgroundColor: "red" }...
/** * @license * Copyright Google LLC 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 * as ts from 'typescript'; import {ComponentDecoratorHandler, DirectiveDecoratorHandler, InjectableDecoratorH...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="hu"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ICH-C</source> <translation>A ICH-C-ról</translati...
import TKUnit = require("../../TKUnit"); import testModule = require("../../ui-test"); import datePickerTestsNative = require("./date-picker-tests-native"); import color = require("color"); import platform = require("platform"); // <snippet module="ui/date-picker" title="DatePicker"> // # DatePicker // Using a DatePi...
import { useContextSelector } from 'use-context-selector' import { TasksContext, ITasksContext } from '../contexts/TasksContext/Provider' // eslint-disable-next-line @typescript-eslint/no-explicit-any export function useTasks(selector: (value: ITasksContext) => any) { return useContextSelector(TasksContext, selector...
// Copyright 2015-2021 Swim.inc // // 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 i...
import { Injectable } from "@nestjs/common"; import { InjectRepository } from "@nestjs/typeorm"; import { Repository } from "typeorm"; import { UserEntity, User } from "./models/user.entity"; @Injectable() export class UserService { constructor( @InjectRepository(UserEntity) private userRepo: Repository<UserEnt...
// >> textview-edit-disable-code import { Component } from "@angular/core"; import { TextView } from "ui/text-view"; import { isAndroid } from "platform"; @Component({ moduleId: module.id, // >> (hide) styleUrls: ["./style.css"], // << (hide) templateUrl: "./basic-text-view.component.html" }) expor...
import { Page } from 'puppeteer'; import TieredMenu from 'app/component/tiered-menu'; import Button from 'app/element/button'; import ClrIconLink from 'app/element/clr-icon-link'; import { ElementType } from 'app/xpath-options'; import { makeRandomName, numericalStringToNumber } from 'utils/str-utils'; import { waitFor...
import * as React from 'react'; import { Input } from '../index'; export const Inline = () => ( <div> This is some text with an <Input inline placeholder="inline input" aria-label="inline input" /> inside it. </div> ); Inline.parameters = { docs: { description: { story: 'An input can be rendered i...
import { ArrayVector } from './ArrayVector'; import { AppendedVectors } from './AppendedVectors'; describe('Check Appending Vector', () => { it('should transparently join them', () => { const appended = new AppendedVectors(); appended.append(new ArrayVector([1, 2, 3])); appended.append(new ArrayVector([4...
import React from 'react'; import styled from 'styled-components'; import Field from './Field'; import Cell from '../core/Cell'; import { Face } from '../types'; interface ContainerProps { height: number; width: number; } const Container = styled.div<ContainerProps>` display: grid; grid-template: repeat(${(...
import { graphql, useStaticQuery } from 'gatsby' import { Helmet, type MetaProps, type LinkProps } from 'react-helmet-async' import { Locale } from 'typing' interface Props { noindex?: boolean lang?: Locale title: string description?: string meta?: MetaProps[] link?: LinkProps[] } export function Seo({ ...
export interface Author { id: Number; name: string; } export interface SaveAuthor { name: string; }
import * as _ from 'lodash-es'; import { ContainerSpec, PodKind, Volume, VolumeMount } from './'; const getRestartPolicy = (pod: PodKind) => _.find({ Always: { // A unique id to identify the type, used as the value when communicating with the API. id: 'Always', // What is shown in the UI. label: 'Al...
import { useEffect, useState } from 'react' import toBase64 from '../utils/files' const useBase64Image = (file: File | null) => { const [image, setImage] = useState('') useEffect(() => { if (file) { toBase64(file).then((result) => { if (typeof result === 'string') setImage(result) ...
import * as React from "react"; import Header from "./components/Header"; import TodoList from "./components/TodoList"; import Footer from "./components/Footer"; import "normalize.css"; import "todomvc-common/base.css"; import "todomvc-app-css/index.css"; const TodoApp: React.FC = () => ( <div className="todoapp">...
/* * 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 { getOr } from 'lodash/fp'; import memoizeOne from 'memoize-one'; impo...
import React from "react" import { Link } from "gatsby" import { rhythm, scale } from "../utils/typography" export interface LayoutProps { title: string children: React.ReactNode } const Layout: React.FC<LayoutProps> = ({ title, children }: LayoutProps) => { return ( <div style={{ marginLeft:...
import { NgModule, Directive, Component, ElementRef, Renderer, OnInit, Input, Output, ViewChild, HostBinding } from '@angular/core'; import { CommonModule } from "@angular/common"; export enum Type { DEFAULT, INFO, SUCCESS, WARNING, ERROR } export enum Position { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT ...
import { FC } from 'react' import { useSelector, useDispatch } from 'react-redux' import { useRouter } from 'next/router' import { StoreState } from '@store/index' import { setTheme } from '@store/ducks/theme' import { setCookie, destroyCookie } from 'nookies' import Image from 'next/image' import { HeaderContainer, ...
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * Placeholder documentation for DeleteScheduleRequest */ export interface DeleteScheduleInput { /** * Id of the channel whose schedule is being deleted. */ ChannelId: string; /*...
import c = require('./context'); /** Shader types */ export enum ShaderType { VERTEX, FRAGMENT } /** A shader instance */ export class Shader { /** The actual shader instance */ public shader:any = null; /** Type of this shader */ public type:ShaderType; /** The source of this shader */...
/** * @license * Copyright 2020 Dynatrace 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 ag...
import cheerio from "cheerio"; import path from "path"; import { readFile, readPackage } from "../utils"; import { NotFoundError } from "../errors"; export async function generate(req: GenerateRequest): Promise<string> { try { // Read icon file var file = await readFile(path.resolve('node_modules', `@obr/iko...
import colors from 'chalk'; import figlet from 'figlet'; class Logger { name: string; copyright: string; year: number; colors: any; constructor(options?: any) { this.name = options.name || 'BuggleAI'; this.copyright = options.copyright || 'The Buggle Species'; this.year = ne...
import type { Readable } from "svelte/store"; export interface PaneController { isOpen: Readable<boolean>; close: () => void; open: () => void; toggle: () => void; }
/*! * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import * as assert from 'assert' import { mkdir, remove, writeFile } from 'fs-extra' import * as path from 'path' import { ext } from '../../../shared/extensionGlobals' import * as vscode from 'vsc...
/*! * @imqueue/js - JavaScript routines for @imqueue * * Copyright (c) 2019, imqueue.com <support@imqueue.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear...
import EventBus, { Subcriber } from './index'; var sub1:Subcriber = EventBus.subcribe('event1', (value: any) => { console.log('1: ' + value); }); EventBus.subcribe('event1', (value: any) => { console.log('1: ' + value); }); EventBus.subcribe('event2', (value: any) => { console.log('2: ' + value); }); E...
// GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY import * as React from 'react' import ScheduleOutlinedSvg from 'infra-design-svgs/lib/asn/ScheduleOutlined'; import AntdIcon, { AntdIconProps } from '../components/AntdIcon'; const ScheduleOutlined = ( props: AntdIconProps, ref: React.MutableRefObject...
/// <reference types="emscripten" /> export interface PThread { unusedWorkers: Worker[]; runningWorkers: Worker[]; } export interface DuckDBModule extends EmscriptenModule { stackSave: typeof stackSave; stackAlloc: typeof stackAlloc; stackRestore: typeof stackRestore; ccall: typeof ccall; PT...
/// <reference path="./typings/tsd.d.ts" /> 'use strict'; import "./assets/stylesheets/application.scss"; require('jquery/dist/jquery.js'); require('materialize-css/dist/js/materialize.js'); require('font-awesome/scss/font-awesome.scss'); require('d3/d3.js'); require('lodash'); import { provide } from "angular2/core";...
import { Font, Constants } from 'expo'; import { Container, Content, Header } from 'native-base'; import * as React from 'react'; import HomeScreen from './pages/home/index'; import { View, StyleSheet } from 'react-native'; const styles = StyleSheet.create({ statusBar: { backgroundColor: '#C2185B', height: ...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CharacterSheetPageComponent } from './character-sheet-page.component'; describe('CharacterSheetPageComponent', () => { let component: CharacterSheetPageComponent; let fixture: ComponentFixture<CharacterSheetPageComponent>; beforeEach(a...
import moment from 'moment' import { statusToQuery, createdAtToQuery, filtersToQuery, sorterToQuery, createSorterMap, getSortStringFromQuery, getPageIndexFromQuery, getPageSizeFromQuery, propertyToQuery, executorToQuery, assigneeToQuery, queryToSorter, searchToQuery, ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Ventor</source> <translation type="unfinished"/> </message> <message> <location line="+...
export { BaseComponent } from "./base.component"; export { PageNavComponent } from "./page-nav.component";
import { Component, h, Element } from '@stencil/core'; @Component({ tag: 'my-container', styleUrl: 'my-container.css', shadow: false, }) export class MyContainer { @Element() el: HTMLElement; private pages: number; private currentPage: number = 1; private cardContainer: HTMLElement; connectedCallback...
import { Component } from '@angular/core'; @Component({ selector: 'signIn', template: ` <div class="header hidden-xs"> <h1>Sign In</h1> </div> <div class="signInDiv" [hidden]="submitted"> <form name="signInForm" (ngSubmit)="onSignInSubmit()"> <h2>Sign In</h2> <label>Username</label><br> <inp...
// (C) Copyright 2015 Martin Dougiamas // // 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 agre...
import * as fs from 'fs'; import * as exportModule from './export'; import { builder, command, filterContentTypeSchemasBySchemaId, generateSchemaPath, getContentTypeSchemaExports, getExportRecordForContentTypeSchema, handler, processContentTypeSchemas, writeSchemaBody } from './export'; import Yargs f...
import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; // Create an AWS resource (S3 Bucket) const nuxtBucket = new aws.s3.Bucket("microservice-ui-nuxt-js-hosting-bucket", { acl: "public-read", website: { indexDocument: "index.html", } }); // S3 Objects from Nuxt.js static site genera...
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Almond // // Copyright 2017-2019 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with t...
import type { Document, InsertOneOptions, InsertOneResult, Collection, RenameOptions, FindAndModifyOptions, BulkWriteOptions, AnyBulkWriteOperation, DeleteOptions, DeleteResult, InsertManyResult, ReplaceOptions, UpdateResult, UpdateOptions, DropDatabaseOptions, CreateIndexesOptions, Dr...
import {NumberArray} from '@math.gl/core/'; export const WINDING: { CLOCKWISE: number; COUNTER_CLOCKWISE: number; }; // Polygon representation where each point is represented as a separate array of positions. type PointsArray = NumberArray[]; // Segment visitor callback type for polygons defined with flat arrays...
// smithy-typescript generated code import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerEx...
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient"; import { DeleteAliasRequest } from "../models/models_0"; import { deserializeAws_json1_1DeleteAliasCommand, serializeAws_json1_1DeleteAliasCommand, } from "../protocols/Aws_json1_1"; import { getSerdePlugin } from "@aws-s...
import { COMPONENT_TYPES, createIconProp, createTextProp, createActionProp, Triggers, } from "@draftbit/types"; export const SEED_DATA = [ { name: "Header Large", tag: "HeaderLarge", description: "A large header with an optional touchable right aligned text and icon.", category: COMPO...
import { PropType, PropSize } from './PropType'; import LITTLE_ENDIAN from './utils/LittleEndian'; export interface ReferenceSchema { [propertyName: string]: PropType; } export interface ReferenceLayout { readonly name: string; readonly type: PropType; readonly size: number; readonly offset: number; } export c...
import { Bookmark } from '../bookmark'; import { BookmarkTreeItem } from "./bookmark_tree_item"; import { Group } from "../group"; import { BookmarkDataProvider } from "../interface/bookmark_data_provider"; import { BookmarkTreeDataProvider } from "./bookmark_tree_data_provider"; export class ByFileTreeDataProvider ex...
// local import { StringKeys, apply } from '@transcend-io/type-utils'; import { Secretify, Secret } from './Secret'; /** * Utility function to wrap values of an object as secrets * * @param obj - The object to modify * @param secretKeys - The keys of the object that should be secrets * @returns The object with va...
import { ActiveLink } from '../ActiveLink/index'; import { SignInButton } from '../SignInButton'; import styles from './styles.module.scss'; export function Header(){ return( <header className={styles.headerContainer}> <div className={styles.headerContent}> <img src="...
import React from 'react'; import { Formik } from 'formik'; import EventEditor, { EventForm } from 'components/EventEditor'; import { Heading, PageContainer } from 'globalStyles'; import { StyledForm, EventSubmitButton } from 'components/EventEditor/styles'; const EditEvent: React.FC = (): JSX.Element => { // Popula...
import { ExtendedSpecConfig } from '../cli'; import { Tsoa, assertNever, Swagger } from '@tsoa/runtime'; import { isVoidType } from '../utils/isVoidType'; import { convertColonPathParams, normalisePath } from './../utils/pathUtils'; import { DEFAULT_REQUEST_MEDIA_TYPE, DEFAULT_RESPONSE_MEDIA_TYPE, getValue } from './.....
import React, { useRef, useState, RefObject, useEffect } from 'react'; import { css } from 'emotion'; import { space } from '@guardian/src-foundations'; import { App as Comments } from '@guardian/discussion-rendering'; import { LeftColumn } from '@frontend/web/components/LeftColumn'; import { RightColumn } from '@fron...
import { report } from "../reporter"; import * as Repositories from "../repositories"; import { Context, Rule } from "../types"; const RULE_NAME = "require-ci"; const rule: Rule = { name: RULE_NAME, checker: async function (ctx: Context): Promise<void> { try { const contents = await Repositories.getCont...
import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; export default class TiCodeOutline extends React.Component<IconBaseProps> { }
/** * @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 { Architect } from '@angular-devkit/architect'; import { normalize, virtualFs } from '@angular-devkit/core'; i...
import bcrypt from 'bcrypt' import { BcryptAdapter } from './bcrypt-adapter' jest.mock('bcrypt', () => ({ async hash (): Promise<string> { return await new Promise(resolve => resolve('hash')) }, async compare (): Promise<boolean> { return await new Promise(resolve => resolve(true)) } })) const salt = ...
import {JSX} from 'solid-js'; import {render, Text, useStdin} from '../..'; class Exit extends React.Component<{ onSetRawMode: (value: boolean) => void; }> { render() { return <Text>Hello World</Text>; } componentDidMount() { this.props.onSetRawMode(true); } } const Test = () => { const {setRawMode} = useS...
export default () => { return [ `const { SelectMenu } = require("sheweny"); module.exports = class SelectTest extends SelectMenu { constructor(client) { super(client, ["selectId"]); } async execute(selectMenu) { switch (selectMenu.values[0]) { case "first_option": await selectMen...
import { CheckIcon } from '@heroicons/react/outline'; import { ArrowNarrowRightIcon } from '@heroicons/react/solid'; import { Trans } from '@lingui/macro'; import { Box, FormControlLabel, SvgIcon, Switch, Typography } from '@mui/material'; import { parseUnits } from 'ethers/lib/utils'; import React, { ReactNode } from ...
<TS language="nl" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klik met de rechtermuisknop om het adres of label te wijzigen</translation> </message> <message> <source>Create a new address</sour...
export * from './invalid-token.exception'; export * from './unauthorized-user.exception'; export * from './user-not-verified.exception'; export * from './invalid-callback.exception'; export * from './pkce-not-match.exception'; export * from './invalid-code.exception';
import { Location } from '@angular/common'; import { HttpErrorResponse } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { AlertService } from 'app/shared/alert/state/alert.service'; import { MyEntriesStateService } from 'app/shared/state/my-entries.service'; import { BioWorkflow } from ...
import * as React from 'react' import * as Constants from '../../constants/teams' import * as Types from '../../constants/types/teams' import * as FsConstants from '../../constants/fs' import * as FsTypes from '../../constants/types/fs' import * as Container from '../../util/container' import * as RouteTreeGen from '.....
import { Component, forwardRef, Input, OnDestroy, OnInit, ViewChild, ElementRef, } from '@angular/core'; import { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator, FormControl, Validators, } from '@angular/fo...
// Copyright 2017-2019 @polkadot/app-123code authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import React from 'react'; import { Button, InputAddress, InputBalance } from '@polkadot/ui-app/in...
export type Note = { tick: number lane: number width: number type: number } export type ScoreData = { taps: Note[] directionals: Note[] slides: Note[][] bpms: [tick: number, value: number][] barLengths: [measure: number, value: number][] } export type Score = { metadata: Metadata } & ScoreData ex...
import React from "react"; import "./styles.scss"; type ProductPriceProps = { price: number; } const formatPrice = (price: number) => { return new Intl.NumberFormat('pt-BR', { minimumFractionDigits: 2 }).format(price); } const ProductPrice = ({ price } : ProductPriceProps) => { return ( <div clas...
import ts from 'typescript'; import { parseTemplate } from '@angular/compiler'; import { Node, Element, Template, Text, BoundText, } from '@angular/compiler/src/render3/r3_ast'; import { ASTWithSource } from '@angular/compiler/src/expression_parser/ast'; import { createMitosisComponent } from '../helpers/crea...
import React from 'react'; import { useSelector } from 'react-redux'; import Header from '../components/Header'; import Button from '../components/Button'; import UnlockWallet from '../components/UnlockWallet'; import styled from 'styled-components'; import { useAppSelector } from '../redux/hooks'; import { selectActiv...
import type { TaskResult, Task, TaskError } from '../types'; import { Migration } from '../Migration'; import { runTransformTask } from './transformTask'; import { runRenameTask } from './renameTask'; import { runCreateTask } from './createTask'; import { runRemoveTask } from './removeTask'; type RunTaskReturnValue = ...
import * as classNames from 'classnames'; import * as React from 'react'; import * as _ from 'lodash-es'; import { Chart, ChartArea, ChartAxis, ChartGroup, ChartLegend, ChartLine, ChartStack, ChartThemeColor, ChartThemeVariant, ChartVoronoiContainer, getCustomTheme, } from '@patternfly/react-chart...
import { OptionsWithMeta, UnsignedTransaction } from './util'; /** * Serialize a signed transaction in a format that can be submitted over the * Node RPC Interface from the signing payload and signature produced by the * remote signer. * * @param unsigned - The JSON representing the unsigned transaction. * @param...
/** * @license * Copyright (c) 2015 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...
import InvalidCredentialsError from '@/src/domain/errors/invalid-credentials-error' import UnexpectedError from '@/src/domain/errors/unexpected-error' import { Signup, SignupFields } from '@/src/domain/usecases/signup' import HttpMethods from '@/src/utils/http-methods' import HttpStatusCode from '@/src/utils/http-statu...
import autobind from "autobind-decorator"; import classNames from "classnames"; import * as React from "react"; import { ITestElementSettings } from "../../AppSettings"; import ElementManager, { getElementLocales } from "../../ElementManager"; import { i18n } from "../../Locale"; import Button from "../shared/button/Bu...
/** * @author WMXPY * @namespace Mock * @description Serialize */ export const serializeObject = (before: string): string => { const buffer: Buffer = Buffer.from(before); const base64: string = buffer.toString('base64'); return base64; }; export const deserializeString = (before: string): string => ...
import { DocDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBClient.ts"; import { DescribeDBClusterSnapshotAttributesMessage, DescribeDBClusterSnapshotAttributesResult, } from "../models/models_0.ts"; import { deserializeAws_queryDescribeDBClusterSnapshotAttributesCommand, serialize...
import path from 'path'; import fs from 'fs'; import { sync as delSync } from 'del'; import * as rollup from 'rollup'; import { babel } from '@rollup/plugin-babel'; import rollupTypescript from '@rollup/plugin-typescript'; import { nodeResolve } from '@rollup/plugin-node-resolve'; import dts from 'rollup-plugin-dts'; i...
import { graphql } from "gatsby"; import * as React from "react"; import Layout from "../components/Layout"; import { ShowcaseCarousel } from "../components/ShowcaseCarousel"; import { extractNodes } from "../lib/helpers"; import { NodeList, ProjectBox, ReactRouterLocation } from "../types/data"; import * as styles fr...
// (C) 2007-2019 GoodData Corporation import React, { useState } from "react"; import { DateFilter, DateFilterHelpers, DateFilterOption, IDateFilterOptionsByType, } from "@gooddata/sdk-ui-filters"; import { ColumnChart } from "@gooddata/sdk-ui-charts"; import { Ldm, LdmExt } from "../../../ldm"; import...
export interface Product { id: number; title: string; weight: string; author: string; description: string; price: number; category: string; inStock?: number; image: string; quantity: number; } export interface CartProduct extends Product { quantity: number; } export interface RadioDataType { i...
import { useMemo, FormEvent, useReducer } from 'react'; import { ValidateOption, $FieldSetValue, useForm as superUseForm, FormStrategy, FormBuilder, IForm, useValue$, } from './formulr'; import { Subject } from 'rxjs'; import { useAsyncSafeDispatch } from '../utils/hooks/useAsyncSafeDispatch'; import { ...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ContractPage } from './contract'; const routes: Routes = [ { path: '', component: ContractPage } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class ...
import { AddressDto } from 'catbuffer-typescript'; import { NetworkType } from '../network/NetworkType'; /** * The address structure describes an address with its network */ export declare class Address { /** * The address value. */ private readonly address; /** * The NEM network type. ...
import React from 'react'; import { Text } from '@mantine/core'; export function Content() { return ( <> <Text size="xl" weight={700}> Charizard (Pokémon) </Text> <Text color="dimmed">Charizard description from Bulbapedia</Text> <Text size="sm" mt="md"> Charizard is a drac...
/* * Copyright (c) 2018. Christoph Rodak (https://reactivechart.com) */ import {ICanvasChildShape} from "../index"; import {applyNone, CanvasContext} from "../../context/index"; import {normalizeRad, pi05, pi1, pi15, pi2} from "../../../../../math/transform/polar"; import {ICanvasConfig} from "../create"; import {B...