text stringlengths 10 953k |
|---|
/**
* Run this example using:
*
* deno run --allow-net --allow-read ./examples/graphql/index.ts
*
* if have the repo cloned locally OR
*
* deno run --allow-net --allow-read https://raw.githubusercontent.com/asos-craigmorten/opine/main/examples/graphql/index.ts
*
* if you don't!
*
*/
import { opi... |
import { Component, OnInit } from '@angular/core';
import { ComponentParent } from '../../componentparent';
import { ComponentService } from '../../services/component.service';
@Component({
selector: 'progressbar',
templateUrl: './progressbar.component.html',
styles: [``]
})
export class ProgressbarComponent ext... |
import { NextFunction, Request, Response } from 'express'
import * as httpStatus from 'http-status'
import { getConnection } from 'typeorm'
import { User } from '~/packages/database/models/user'
import * as bcrypt from 'bcrypt'
import config from '~/config'
import * as jwt from 'jsonwebtoken'
import { Stripe } from 'st... |
import { CommandHandler, ICommandHandler } from '@nestjs/cqrs';
import { FeatureOrganizationService } from 'feature/feature-organization.service';
import { FeatureToggleUpdateCommand } from '../feature-toggle.update.command';
@CommandHandler(FeatureToggleUpdateCommand)
export class FeatureToggleUpdateHandler
implemen... |
/********************************************************************************
* Copyright (C) 2017-2018 TypeFox 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.
*
... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
i... |
/**
* Random generator type
*/
export declare type RandomType = 'mersenne' | 'congruential' | 'congruential32' | 'xorshift128plus' | 'xoroshiro128plus'; |
import harness from '@dojo/framework/testing/harness';
import { tsx } from '@dojo/framework/widget-core/tsx';
import Outlet from '@dojo/framework/routing/Outlet';
import { DNode } from '@dojo/framework/widget-core/interfaces';
import Blog from './pages/Blog';
import Community from './pages/Community';
import Examples ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Tokenized } from '../../src/scanner/types';
import { Ast } from '../../src/parser/types';
import { SymbolTable } from '../../src/analysis/models/symbolTable';
import { Diagnostic } from 'vscode-languageserver';
import { Scanner } from '../../src/scanner/scanner';
import { Parser } from '../../src/parser/parser... |
/* tslint:disable */
import { CategoryMapping } from "./category-mapping.model";
export type CategoryMappingsResponse = {
count: number;
next: string;
previous: string;
results: CategoryMapping[];
}; |
import { Handler, Context, Callback } from 'aws-lambda';
import * as AWS from 'aws-sdk';
const iam: AWS.IAM = new AWS.IAM();
/**
*
*/
function p6_namer_iam_account_alias(alias: string): void {
const params: AWS.IAM.CreateAccountAliasRequest = {
AccountAlias: alias,
};
iam.createAccountAlias(params, func... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
im... |
// Copyright 2020-2020 The Mandarine.TS Framework authors. All rights reserved. MIT license.
import { KeyStack } from "../keyStack.ts";
import type { Cookie } from "../../mvc-framework/core/interfaces/http/cookie.ts";
// @ts-ignore
import { Mandarine } from "../../main-core/Mandarine.ns.ts";
import type { MandarineSec... |
import { Before } from 'cypress-cucumber-preprocessor/steps';
Before(async () => {
/* Reset the database state to a default. See e2e/plugins/index.ts for task definition. */
cy.task('resetDB');
}); |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Durations, LogsQueryClient } from "../../../src";
import { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
import { assert } from "chai";
describe("LogsQueryClient unit tests", () => {
/**
* Custom scopes... |
/*
* Copyright (c) 2014-2021 Bjoern Kimminich & the OWASP Juice Shop contributors.
* SPDX-License-Identifier: MIT
*/
import fs = require('fs')
const pug = require('pug')
const config = require('config')
const challenges = require('../data/datacache').challenges
const utils = require('../lib/utils')
const themes = r... |
interface ExchangeTokenInterface {
grant_type: string;
client_id: string;
client_secret: string;
code: string;
redirect_uri?: string;
}
export default class ExchangeTokenCommand implements ExchangeTokenInterface {
readonly grant_type: string;
readonly client_id: string;
readonly client_s... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{
path: '',
data: {
title: 'Editors'
},
children: [
{
path: 'text-editors',
loadChildren: './text-editors/text-editors.module#TextEditorsModule'
... |
import { act, renderHook } from '@testing-library/react-hooks';
import { useAPIRequest } from './useAPIRequest';
const mockError = [{ reason: 'An error occurred.' }];
const mockRequestSuccess = (): Promise<number> =>
new Promise((resolve) => resolve(1));
const mockRequestWithDep = (n: number) => (): Promise<number... |
export class NodeType {
static ArrayExpression = "ArrayExpression";
static AssignmentExpression = "AssignmentExpression";
static BinaryExpression = "BinaryExpression";
static BlockStatement = "BlockStatement";
static BreakStatement = "BreakStatement";
static CallExpression = "CallExpression";
static Condi... |
import * as dotenv from "dotenv";
import { HardhatUserConfig } from "hardhat/config";
import { HttpNetworkUserConfig } from "hardhat/types";
import "@nomiclabs/hardhat-etherscan";
import "hardhat-deploy";
dotenv.config();
// read MNEMONIC from file or from env variable
const mnemonic = process.env.MNEMONIC;
const ... |
export class Contact {
name: string = "";
email: string;
phone: string = "";
subject: string = "";
Frenchie_of_interest: string = "No pet selected"
message: string = "";
} |
export type Placeholder = {
readonly end: number;
readonly prompt: string;
readonly start: number;
};
/**
* Find all of the placeholders in template text.
*/
export const getTemplatePlaceholders = function* (text: string): Generator<Placeholder, void> {
const expression =
/\{{3}[ \t]*([^~{}\r\n \t][^~{}\... |
import React, { useState } from 'react';
import FormWrap from '../forms/FormWrap';
import { registerToken } from '../../services/token';
import { useToken } from '../../state/token';
import SelectToken from '../../components/forms/SelectToken';
import Icon from '../../components/tokens/Icon';
import { useIntl } from 'r... |
export const clock = (color, speed, opacity) => `<svg xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" viewBox="0 0 128 128" xml:space="preserve">
<g>
<path d="M63.88 0A63.88 63.88 0 1 1 0 63.88 63.88 63.88 0 0 1 63.... |
export declare type Position = {
start: number;
end: number;
};
export declare function trimNewLine(str: string): string;
export declare function trimBlocksFromSchema(str: string, blocks?: string[]): string; |
import * as React from "react";
import "font-awesome/css/font-awesome.min.css";
import {
generateCurvePath,
generateRightAnglePath,
generateSmartPath,
IConfig,
ILink,
IOnLinkClick,
IOnLinkMouseEnter,
IOnLinkCancel,
IOnLinkMouseLeave,
IPort,
IPosition,
} from "../../";
export interface ILinkDefaul... |
import { Listener, OrderCreatedEvent, Subjects } from '@yolanmq/common';
import { Message } from 'node-nats-streaming';
import { queueGroupName } from './queue-group-name';
import { expirationQueue } from '../../queues/expiration-queue';
export class OrderCreatedListener extends Listener<OrderCreatedEvent> {
subject... |
import { inject, injectable } from 'inversify';
import { TypeOrmUnitOfWork, RepositoryMap } from '../../../src/adapters/UnitOfWork';
import { MyAggregateRepository } from '../repositories/MyAggregateRepository';
import { myRepos, myTypes } from '../config';
@injectable()
export class MyUOW extends TypeOrmUnitOfWork {
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Dolittle. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------... |
import { Body, Controller, Delete, Get, Param, Patch, Post, Put } from '@nestjs/common';
import { CreateMovieDto } from './dto/create-movie.dto';
import { UpdateMovieDto } from './dto/update-movi.dto';
import { Movie } from './entities/movie.entitiy';
import { MoviesService } from './movies.service';
@Controller('mo... |
import * as Joi from 'joi';
export const registerSchema = Joi.object({
username: Joi.string().required(),
name: Joi.string().required(),
password: Joi.string().required(),
});
export const loginSchema = Joi.object({
username: Joi.string().required(),
password: Joi.string().required(),
}); |
import { MovieCard } from "./MovieCard"
import { MovieProps } from "../App"
import { GenreResponseProps } from "../App"
interface ContentProps {
movies: MovieProps[]
selectedgenre: GenreResponseProps
}
export function Content(props:ContentProps) {
return (
<div className="container">
<header>
... |
import React from 'react';
import Grid from '@material-ui/core/Grid';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import Radio from '@material-ui/core/Radio';
import Typography from '@material-ui/core/Typography';
import FormControlLabel from '@material-ui/core/Fo... |
import { first } from 'rxjs/operators';
import { Component, OnInit, AfterViewInit } from '@angular/core';
import { FormService } from '@sunbird/core';
import { ActivatedRoute } from '@angular/router';
import { TenantService } from '@sunbird/core';
import { ResourceService, NavigationHelperService } from '@sunbird/share... |
// @public
export function addDirectionalKeyCode(which: number): void;
// @public
export function addElementAtIndex<T>(array: T[], index: number, itemToAdd: T): T[];
// @public
export function arraysEqual<T>(array1: T[], array2: T[]): boolean;
// @public
export function asAsync<TProps>(options: IAsAsyncOptions<TProp... |
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import DashboardCard from '@console/shared/src/components/dashboard/dashboard-card/DashboardCard';
import DashboardCardBody from '@console/shared/src/components/dashboard/dashboard-card/DashboardCardBody';
import DashboardCardHeader from '... |
import { NgModule } from '@angular/core'
import { CommonModule } from '@angular/common'
import { EntityComponent } from './entity.component'
import { TranslocoModule } from '@ngneat/transloco'
import { RouterModule } from '@angular/router'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import { Head... |
import { Options, transform, transformSync } from '@builder/swc';
import webpack from 'webpack';
import { RawSource, SourceMapSource } from 'webpack-sources';
const { version } = require('../package.json');
export interface MinifyPluginOptions extends Options {
sync?: boolean;
minify?: boolean;
}
const isWebpack... |
import { defineComponent, h, provide, ref, RendererElement, Transition, watch } from 'vue'
import { CBackdrop } from './../backdrop/CBackdrop'
const CModal = defineComponent({
name: 'CModal',
props: {
/**
* Align the modal in the center or top of the screen.
*
* @values 'top', 'center'
*/
... |
import * as socketIO from "socket.io";
import {
Device,
GlobalAudioProducer,
GlobalVideoProducer,
SoundCard,
SoundCardId,
Track,
TrackId,
TrackPreset,
TrackPresetId,
User
} from "../model.server";
import {ObjectId} from "mongodb";
import {serverAddress} from "../index";
import {... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BsDropdownModule } from 'ngx-bootstrap';
import { ActionModule } from 'patternfly-ng/action/action.module';
import { EmptyStateModule } from 'patternfly-ng/empty-state/empty-state.module';... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as path from 'path';
import * as glob from 'glob';
import { interval, Subject } from 'rxjs';
import { debounce, map, switchMapTo, filter, delay } from 'rxjs/operators';
import {
createConnection,
TextDocuments,
TextDocument,
ProposedFeatures,
InitializeParams,
WorkspaceFolder,
WorkspaceEdit,
TextEdit... |
///
/// JBoss, Home of Professional Open Source.
/// Copyright 2017 Red Hat, Inc., and individual contributors
/// as indicated by the @author tags.
///
/// 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 t... |
import * as React from 'react';
import { Navigation } from '@/index';
import { action } from '@storybook/addon-actions';
import { boolean } from '@storybook/addon-knobs';
import { updateKnob } from '@/utils/storybookEventEmitter';
import { Menu } from '../../Navigation';
export const verticalRound = () => {
const ex... |
import { Kernel, injectable, named, inject } from "inversify";
import "reflect-metadata";
let TYPES = {
Warrior: Symbol("Warrior"),
Weapon: Symbol("Weapon")
};
let TAGS = {
katana: "katana",
shuriken: "shuriken",
};
interface Weapon {}
interface Warrior {
katana: Weapon;
shuriken: Weapon;
}
... |
import { EWalletType } from "@neufund/shared-modules";
export const STIPEND_ELIGIBLE_WALLETS = [EWalletType.LEDGER, EWalletType.LIGHT]; |
export interface Category {
_id: string;
name: string;
description: string;
isDeleted: boolean
} |
/*
Copyright (C) 2017 Red Hat, 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 ... |
import ReactDOM from 'react-dom';
import { App } from './App';
import { setup } from './lib/setup/setup';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
setup(); |
import React from 'react';
/**
* @public
*/
export interface SanityMonogramColor {
bg1: string;
bg2: string;
fg: string;
}
/**
* @public
*/
export interface SanityMonogramProps {
color?: SanityMonogramColor;
}
/**
* @public
*/
//# sourceMappingURL=sanityMonogram.d.ts.map |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="it" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bitcoin</source>
<translation>Info su Fu</translation>
</message... |
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { join } from 'path';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(
AppModule,
);
app.useStaticAssets(j... |
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
// Node module: @loopback/openapi-v3
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {JsonSchema} from '@loopback/repository-json-schema';
import _ from 'lodash';
import {
isSchemaObject,
... |
const attributes = `accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default... |
import { RegisterUsernameTx } from "@iov/bns";
import { makeStyles, Theme } from "@material-ui/core";
import ListItem from "@material-ui/core/ListItem";
import ListItemText from "@material-ui/core/ListItemText";
import { Block, Hairline, Image } from "medulas-react-components";
import * as React from "react";
import {... |
import { NotFoundException } from "./NotFoundException";
import { TooManyRequestsException } from "./TooManyRequestsException";
import { BadRequestException } from "./BadRequestException";
export type GetConfigurationSetExceptionsUnion =
| NotFoundException
| TooManyRequestsException
| BadRequestException; |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-spinner',
templateUrl: './spinner.component.html'
})
export class SpinnerComponent implements OnInit {
ngOnInit() {
}
} |
import { NgModule } from '@angular/core';
import { NbButtonModule, NbCardModule, NbIconModule, NbInputModule, NbTreeGridModule, NbActionsModule,
NbCheckboxModule,
NbDatepickerModule,
NbRadioModule,
NbSelectModule,
NbUserModule, } from '@nebular/theme';
import { Ng2SmartTableModule } from 'ng2-smart-table';
i... |
export function randomFloat({ min = 0, max }: { min?: number; max: number }): number {
const range = max - min;
return Math.random() * range + min;
}
export function randomInt({ min = 0, max }: { min?: number; max: number }): number {
return Math.floor(randomFloat({ min, max }));
} |
/*
* Copyright 2017 Yash D. Saraf, Raees R. Mulla and Sachin S. Negi.
*
* 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 r... |
"use strict;";
import {Client} from "./client";
import {IClients} from "./client";
import clientIdHelper from "./clientId";
import {AuthOption, SocketEvent} from "../lib/enums";
import {Instance} from "./instance";
import {InstanceManager} from "./instanceManager";
import {LocalContainerManager} from "./LocalContaine... |
/**
* @license
* Copyright 2018 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
export type IndexBase<QueryType> = {
type: IndexType;
load(indexRootUrl: string, valueHint: QueryType): Promise<void>;
search(query: QueryType, queryOptions?: any): Promise<Set<number>>;
};
export enum IndexType {
numeric = "numeric",
enum = "enum",
text = "text"
}
export const indexTypes = Object.keys(In... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { fixture, html, expect } from "@open-wc/testing";
import "@chameleon-ds/rice-ball-dessert/src/chameleon-rice-ball-dessert";
describe("chameleon-rice-ball-dessert", () => {
it("renders", async () => {
const el = await fixture(html`
<chameleon-rice-ball-dessert></chameleon-rice-ball-dessert>
`);
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
import { authReducer } from './auth/AuthReducer';
import { navBarReducer } from './navbar/NavBarReducer';
import { userDataReducer } from './userdata/UserDataReducer';
import { combineReducers } from 'redux';
export const reducer = combineReducers({ auth: authReducer, nav: navBarReducer, data: userDataReducer });
expo... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
export class SecretBackendConfigCa extends pulumi.CustomResour... |
import { PathPart } from '../fhirtypes';
import { splitOnPathPeriods } from '../fhirtypes/common';
import { CaretValueRule, Rule } from '../fshtypes/rules';
import { logger } from './FSHLogger';
/**
* Parses a FSH Path into a more easily usable form
* @param {string} fshPath - A syntactically valid path in FSH
* @r... |
import { Injectable } from '@nestjs/common';
import { Queue } from 'bull';
import * as config from 'config';
import { InjectQueue } from '@nestjs/bull';
import { MailJobInterface } from 'src/mail/interface/mail-job.interface';
import { EmailTemplateService } from 'src/email-template/email-template.service';
@Injectab... |
import { ChakraProvider } from '@chakra-ui/react'
import React from 'react'
import renderer from 'react-test-renderer'
import ResultTechnicallyInvalid from '../../../../components/modal/result/result-technically-invalid'
it('renders correctly', () => {
const tree = renderer
.create(
<ChakraProvider>
... |
import gql from 'graphql-tag';
export default gql`
query customerOrders($currentPage: Int = 1, $filter: CustomerOrdersFilterInput = {}, $pageSize: Int = 10) {
customer {
orders(currentPage: $currentPage, filter: $filter, pageSize: $pageSize) {
items {
order_number
id
c... |
export { default as FigureView } from './FigureView'
export { default as FigurePlaceholderView } from './FigurePlaceholderView' |
import '@testing-library/jest-dom/extend-expect';
import * as KeypairApi from '../api/keypair';
import * as NetworkApi from '../api/network/network';
import * as NetworkTypes from '../api/network/types';
import * as UtxoHelper from './utxoHelper';
import { CACHE_ENTRIES } from '../config/cache';
import Sdk from '../Sdk... |
// package: google.ads.googleads.v3.services
// file: google/ads/googleads/v3/services/currency_constant_service.proto
import * as jspb from "google-protobuf";
import * as google_ads_googleads_v3_resources_currency_constant_pb from "../../../../../google/ads/googleads/v3/resources/currency_constant_pb";
import * as go... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { join } from 'path';
import { AppController } from './app.controller';
import { ApiController } from './api.controller'
import { AppService } from './app.service';
// import { PhotoModule } from './photo/photo.module';
i... |
import { MigrationInterface, QueryRunner } from 'typeorm';
export class CreateArticles1642409495161 implements MigrationInterface {
name = 'CreateArticles1642409495161';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE TABLE "articles" ("id" uuid NOT NULL DEFAULT uuid... |
<TS language="es_AR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import * as PropTypes from 'prop-types';
import { compose, ComponentWithAs } from '@fluentui/react-bindings';
import { commonPropTypes } from '../../utils';
import { Box, BoxProps, BoxStylesProps } from '../Box/Box';
import { SkeletonLine } from './SkeletonLine';
import { SkeletonShape } from './SkeletonShape';
import ... |
import {
CommandDefinition as BaseCommandDefinition,
ParameterDefinition as BaseParameterDefinition,
} from 'commander-zod';
export interface CommandDefinition extends BaseCommandDefinition {
/** Enables interactive prompts for all command-line parameters
*
* When true, this will add a default prompt for a... |
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-qrcode',
templateUrl: './qrcode.component.html',
styleUrls: ['./qrcode.component.scss']
})
export class QrcodeComponent implements OnInit {
@Input() data = "";
public size = 450;
ngOnInit(): void {
this.size = Math... |
import { DeleteProtectionInput } from "../shapes/DeleteProtectionInput";
import { DeleteProtectionOutput } from "../shapes/DeleteProtectionOutput";
import { InternalErrorException } from "../shapes/InternalErrorException";
import { ResourceNotFoundException } from "../shapes/ResourceNotFoundException";
import { Optimis... |
export * from './Answer/Answer'
export * from './AnswerList/AnswerList'
export * from './Form/Field'
export * from './Form/Form'
export * from './Form/validations'
export * from './Header/Header'
export * from './Page/Page'
export * from './Page/PageTitle'
export * from './Question/Question'
export * from './QuestionLi... |
import * as crypto from 'crypto';
import * as generatedFixture from '../vectors/generated.json';
import * as longFormResponseDidDocument from '../vectors/resolution/longFormResponseDidDocument.json';
import AnchoredOperationModel from '../../lib/core/models/AnchoredOperationModel';
import BatchScheduler from '../../li... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
import {
ECharacteristic,
EDifficulty,
TMapDetail,
TMapDifficulty,
TMapVersion
} from '../api/api.models';
import { TDifficultyIndex, TLevelStatsData, TLevelStatsInfo } from '../player/player-data.model';
export class MapsHelpers {
public static getScoreClass(score: number): string {
if... |
import * as React from 'react';
export type NannyNode = React.ReactNode & { props: Record<string, unknown>, type: any };
export interface IDescendantDepth<T=React.ReactNode>{ ancestor: T, depthToMatch: number } |
import { CreateWalletInput } from './create-wallet.input';
import { InputType, Field, Int, PartialType } from '@nestjs/graphql';
@InputType()
export class UpdateWalletInput extends PartialType(CreateWalletInput) {
@Field(() => Int)
id: number;
} |
import * as React from 'react';
import { code, md, Props, Example } from '@atlaskit/docs';
const newConversationSource = `import { Conversation, ConversationResource } from '@atlaskit/conversation';
const provider = new ConversationResource({
url: 'https://conversation-service/',
user: {...}
});
<Conversation ob... |
export interface ISetFilterLocaleText {
loadingOoo: string;
blanks: string;
searchOoo: string;
selectAll: string;
selectAllSearchResults: string;
noMatches: string;
}
export const DEFAULT_LOCALE_TEXT: ISetFilterLocaleText = {
loadingOoo: 'Loading...',
blanks: 'Blanks',
searchOoo: 'S... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { BusinessSourceService } from '../../../../services/business-source/business-source.service';
import { GuestService } from '../../../../services/guest/guest.service';
import { NotificationService } from '../../../../services/notification/notification... |
import React from 'react'
import { formatEther } from '@ethersproject/units'
import { useEtherBalance, useEthers } from '@usedapp/core'
import { Container, ContentBlock, ContentRow, MainContent, Section, SectionRow } from '../components/base/base'
import { Label } from '../typography/Label'
import { TextInline } from '... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Counter } from '../models/counter.model';
import { environment } from '../../environments/environment';
@Injectable({
providedIn: 'root'
})
export class CounterService {
private counterUrl = `${environment.apiU... |
import { Dispatch } from 'redux'
import { ModalProps } from 'decentraland-dapps/dist/providers/ModalProvider/ModalProvider.types'
import { Collection } from 'modules/collection/types'
import { ThirdParty } from 'modules/thirdParty/types'
import { Item, SyncStatus } from 'modules/item/types'
import { PublishButtonAction... |
import { IQEntity } from './Entity';
import { IQRelation } from './Relation';
/**
* A concrete One-To-Many relation.
*/
export interface IQOneToManyRelation<Entity, IQ extends IQEntity<Entity>>
extends IQRelation<Entity, IQ> {
} |
import React from 'react';
import { useParams, useLocation, useNavigate } from 'react-router-dom';
import qs from 'querystring';
const withRouter =
<P extends unknown>(WrapComponent: React.ComponentType<P>) =>
(props: P): JSX.Element => {
const params = useParams();
const location = useLocation();
cons... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.