text stringlengths 10 953k |
|---|
import * as React from 'react';
import { IconWrapper } from '../IconWrapper';
import { ISvgIconProps } from '../svgConfig';
export default IconWrapper(
(props: ISvgIconProps) => (
<svg
width={props.size}
height={props.size}
viewBox="0 0 48 48"
fill="none"
... |
import React from 'react'
import { FormItemProvider, useFormItem } from '../compat/context'
import { createVirtualBox } from '@formily/react-schema-renderer'
import cls from 'classnames'
import { IFormItemTopProps } from '../types'
export const FormLayout = createVirtualBox<IFormItemTopProps>(
'layout',
props => {... |
import React from 'react'
import { Text, View, TouchableWithoutFeedback, StyleSheet } from 'react-native'
const Controller = ({ move, keyUp }) => {
return (
<View>
<View style={{
display: 'flex',
flexDirection: 'row',
}}>
<TouchableWithoutFeedback
onPress={() => move... |
import { ActionTree, ActionContext } from 'vuex';
import { DownloadMutations as Mutations } from './downloadMutations';
import { DownloadState as State } from './downloadState';
// dep
import axios from 'axios';
import { API_BASE_URL } from '@/constants';
// Needed type
type AugmentedActionContext = {
commit<K ext... |
// *** 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 inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilitie... |
import 'reflect-metadata';
import React from 'react';
import { cleanup, render } from '@testing-library/react';
import { Service, ServiceContainer, useService } from '../src';
@Service()
class UserService {}
@Service()
class ProductService {}
describe('normal services', () => {
afterEach(() => {
cleanup();
}... |
export * from "./user.module";
export * from "./decorator/can.decorator";
export * from "./decorator/permissions.decorator";
export { UserComponent, UserComponentToken } from "./export/user.component.provider";
export { User } from "./model/user.entity"; |
type SetGraphParams = React.Dispatch<React.SetStateAction<ContribGraphProps>>;
interface ContribGraphProps {
points: number[][];
colors: ColorValMap;
emptyVal?: number;
margin?: number;
animate?: boolean;
scrollDirection?: 'ltr' | 'rtl';
scrollDelayMs?: number;
}
type ColorValMap = Record<number, string>;
typ... |
/*
Taken from https://github.com/ScottLogic/d3fc/blob/master/src/indicator/algorithm/calculator/slidingWindow.js
The MIT License (MIT)
Copyright (c) 2014-2015 Scott Logic Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softw... |
export * from "./reference.js"
export * from "./keyword/index.js"
export * from "./embeddedLiteral/index.js"
export * from "./alias.js" |
import { InjectionToken } from '@angular/core';
import { ActionReducer, MetaReducer, Action, ActionReducerMap } from '@ngrx/store';
import * as fromRouter from '@ngrx/router-store';
import { environment } from '../../environments/environment';
export interface State {
router: fromRouter.RouterReducerState<any>;
}
e... |
import { FSComponent, VNode, Subject, ComputedSubject, UnitType, NumberUnitSubject, Subscribable, NavMath } from 'msfssdk';
import { AirportFacility, FacilityFrequencyType, ICAO, FacilityWaypointCache } from 'msfssdk/navigation';
import { NumberFormatter } from 'msfssdk/graphics/text';
import { NearbyAirport } from '.... |
import { Memoize, ts } from "@ts-morph/common";
import { ProjectContext } from "../../../ProjectContext";
import { ApplyFileTextChangesOptions, FileTextChanges } from "./FileTextChanges";
/**
* Set of edits to make in response to a refactor action, plus an optional location where renaming should be invoked from.
*/
... |
import { Validator, Rule } from "../types";
import en_US from '../locales/en-US';
import zh_CN from '../locales/zh-CN';
const messages: { [prop: string]: { [prop: string]: string } } = {
'en-US': en_US,
'zh-CN': zh_CN,
}
export default function localizeRules(locale: string) {
const localized = messages[l... |
export default interface IBaseRepository {
GetAsync<T>(orderBy: string): Promise<T[]>;
GetByIdAsync<T>(id: string): Promise<T | undefined>;
CreateOrUpdateAsync<T>(model: T): Promise<T>;
DeleteAsync<T>(id: string, model: T): Promise<void>;
}; |
/* eslint-disable @typescript-eslint/no-explicit-any */
import { AxiosInstance } from 'axios'
import { Except } from 'type-fest'
export type DefaultParams = {
spaceId?: string
environmentId?: string
organizationId?: string
}
export type WrapParams = {
http: AxiosInstance
defaults?: DefaultParams
}
type Ma... |
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ImageService } from './image.service';
import { CreateImageDto } from './dto/create-image.dto';
import { UpdateImageDto } from './dto/update-image.dto';
@Controller('api/images')
export class ImageController {
constructor(pr... |
import { discordGetCommandAndFirstArgument } from './discord-get-command-and-first-argument';
import { DiscordMessageCommandEnum } from '../../../enums/commands/discord-message-command.enum';
import { IDiscordGetCommandAndFirstArgumentData } from '../../../interfaces/commands/getters/discord-get-command-and-first-argum... |
import { getRepository, Repository } from 'typeorm';
import { ICreateUserDTO } from '../../dtos/ICreateUserDTO';
import { User } from '../../entities/User';
import { IUsersRepository } from '../IUsersRepositories';
class PostgresUsersRepository implements IUsersRepository {
private repository: Repository<User>;
c... |
new A < T; |
import React from 'react'
import { useHistory } from 'react-router-dom'
import { ROUTER_PATH } from '../../../utils/constants'
import RdnaButton from '../../../common/RdnaButton'
export default React.memo(function Sequences() {
const history = useHistory()
return (
<RdnaButton
text="New Sequence"
... |
import { Card, Context } from '@koishijs/client'
import type {} from '@koishijs/plugin-manager'
import Bots from './bots/index.vue'
import Settings from './settings/index.vue'
import Dependencies from './deps/index.vue'
import Market from './market/index.vue'
import { overrideCount } from './utils'
import './style.scs... |
import { Action } from 'redux';
import { WindowChannel } from '@kbase/ui-lib';
import { BaseStoreState } from '../store';
import { ThunkDispatch } from 'redux-thunk';
import { AppConfig, Params } from '../integration/store';
import { Auth, AuthenticationStatus } from '@kbase/ui-lib';
import { WindowChannelInit } from "... |
import { Overlay } from './Overlay';
export { OverlayProps, OverlayTheme } from './Overlay';
export { Overlay }
export default Overlay; |
/**
* External Imports
*/
import {
Button,
Popover,
Typography,
createStyles,
makeStyles,
} from '@material-ui/core';
import React, { FormEvent, ReactElement, useCallback } from 'react';
import { TableInstance } from 'react-table';
const useStyles = makeStyles(
createStyles({
columnsPopOver: {
... |
import { Injectable } from '@angular/core';
import { Http, Headers } from '@angular/http';
@Injectable()
export class HttpClient {
http: Http;
// rootUrl = "https://test-a.gfxsymphony.com/panera/";
rootUrl = "https://localhost:15079/v1/Api/panera/";
cookie: string = '';
constructor(http: Http) {
this.... |
import { meleeAttack } from '../actions/meleeAttack'
import { IUnitType } from '../unit'
export default {
name: 'Troll',
description: '',
hp: 12,
mp: 2,
mana: 0,
resistance: 0,
actions: [
meleeAttack({ damage: 5 }),
],
cost: 10,
} as IUnitType |
import createIcon, { JSX } from './utils/createIcon'
export const jsx: JSX = {
type: 'svg',
props: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 24 24'
},
children: [
{
type: 'g',
props: null,
children: [
{
type: 'path',
props: {
fill... |
import { Component, OnInit, Input, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'app-breadcrumb',
templateUrl: './breadcrumb.component.html',
styleUrls: ['./breadcrumb.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class BreadcrumbComponent implements OnInit {
private ... |
import { Table, Field, DBType, PrimaryKey } from "fastcar-core/annotation";
import "reflect-metadata";
@Table("cache")
class CacheModel {
@Field("key")
@DBType("varchar")
@PrimaryKey
key!: string;
@Field("value")
@DBType("varchar")
value!: string;
@Field("ttl")
@DBType("int")
ttl!: number;
@Field("update... |
import { Ajv } from 'ajv';
import { OpenAPIV3 } from '../../framework/types';
import ajv = require('ajv');
import { OpenAPIFramework } from '../../framework';
export function dereferenceParameter(
apiDocs: OpenAPIV3.Document,
parameter: OpenAPIV3.ReferenceObject | OpenAPIV3.ParameterObject,
): OpenAPIV3.ParameterO... |
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distribute... |
/*
* Copyright 2018 Mia srl
*
* 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 w... |
import React from "react";
import { shallow } from "enzyme";
import {
SilenceFormStore,
NewEmptyMatcher,
MatcherWithIDT,
} from "Stores/SilenceFormStore";
import { StringToOption } from "Common/Select";
import { SilenceMatch } from ".";
let silenceFormStore: SilenceFormStore;
let matcher: MatcherWithIDT;
befo... |
import React from 'react';
import { NavItem, NavLink, NavbarBrand } from 'reactstrap';
import { NavLink as Link } from 'react-router-dom';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import appConfig from 'app/config/constants';
export const BrandIcon = props => (
<div {...props} className="b... |
import { isEmail, hasPublicDomain } from '../../src/email'
describe('isEmail', () => {
const validEmails = ['alan@adapcon.com.br', 'teste@adapcon.com.br', 'email@domain.com', 'bruno@yahoo.com']
test.each(validEmails)('Should return true if the email is valid', (email) => {
expect(isEmail(email)).toBeTruthy()
... |
export const loadPolyfills= () => {
if (typeof window.IntersectionObserver === 'undefined') {
require('intersection-observer');
}
} |
import { ActionTree, MutationTree } from "vuex";
import { RootState } from "../types";
let socket: WebSocket;
const state = {
room: "",
joined: false,
error: "",
single: false,
};
export type State = typeof state;
const mutations: MutationTree<State> = {
setRoom(state: State, room: string) {
state.roo... |
// Comp_05_0804
import React from 'react';
import { incModCount } from '../modCount';
const Comp_05_0804: React.FC = () => {
React.useEffect(() => {
incModCount();
}, []);
return <div>
I'm component Comp_05_0804
<div>
</div>
</div>;
};
export default Comp_05_0804; |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class IoTJobsDataPlan... |
import { Route } from '@angular/router';
import { DashboardComponent } from './dashboard.component';
import { HomeComponent } from './home/home.component';
import { UserComponent } from './user/user.component';
import { IconsComponent } from './icons/icons.component';
import { TableComponent } from './table/table.compo... |
import { Strings } from "system";
import {
Disposable,
TextDocumentContentProvider,
Uri,
workspace
} from "vscode";
import { Container } from "../container";
export class GitContentProvider implements TextDocumentContentProvider, Disposable {
private readonly _disposable: Disposable;
constructor() {
this._di... |
import { TodoCard } from '@domains/Todos/components/todo-card';
import { SectionTitle, PageTitle } from '@domains/Common/components/typography';
import { TodosContainer } from '@domains/Todos/containers';
const Home = () => (
<>
<PageTitle>Home Page Title</PageTitle>
<SectionTitle>With Todos Render Prop</Sec... |
import { Paragraph, TextRun } from 'docx';
import { IndividualBeing } from '../../data/parties/base';
import {
estateNameKey,
genderKey,
nameKey,
} from '../../data/parties/grantorKey';
import { getDescriptorByGender } from '../../deed-form/parties/relationship/descriptors/descriptor-input-buttons';
export... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { TodosComponent } from './components/todos/todos.component';
import { TodoItemComponent } from './compone... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'angular-studio-video';
} |
import { DBSchema } from '@ngrx/db';
/**
* ngrx/db uses a simple schema config object to initialize stores in IndexedDB.
*/
export const schema: DBSchema = {
version: 1,
name: 'books_app',
stores: {
books: {
autoIncrement: true,
primaryKey: 'id'
},
inboxitems: {
autoIncrement: tr... |
import { ElementRef, Injectable } from '@angular/core';
// @Injectable({
// providedIn: 'root'
// })
@Injectable()
export class HelperService {
themeColors = ['default','primary','secondary','success','error','warning','base'];
defaultColor = this.themeColors[0];
constructor() { }
/**
* checks if the giv... |
import React, { Component } from "react";
import Loading from './Loading';
export default function AsyncComponent(importComponent: any) {
class AsyncComponent extends Component<any, any> {
constructor(props: any) {
super(props);
this.state = {
component: null
};
}
async compone... |
import { weakMemo } from "aerial-common2"
import { getSEnvCollection } from "../base";
export const getSEnvCSSCollectionClasses = weakMemo((context:any) => {
const Collection = getSEnvCollection(context);
class SEnvCSSRuleList extends Collection<CSSRule> implements CSSRuleList {
item(index: number): CSSRule {... |
/*
* 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 {
ENDPOINT_LIST_URL,
EXCEPTION_LIST_ITEM_URL,
EXCEPTION_LIST_NAME... |
/* GENERATED FILE */
import * as React from 'react';
import Svg, { Rect, Path } from 'react-native-svg';
import { IconProps } from '../lib';
function TextBolder(props: IconProps) {
return (
<Svg
id="Raw"
viewBox="0 0 256 256"
width={props.size}
height={props.size}
{...props}
>
... |
export interface VehicleVisuals {
color: string;
category: string;
icon: string;
}
export interface RadarStyle extends VehicleVisuals {
styleKey: string;
rotatable: boolean;
opacity: number;
track: number;
font: string;
}
export interface MapStyle extends VehicleVisuals {
styleKey: string;
rotatab... |
import Vue from 'vue'
import { PropValidator, RenderContext } from 'vue/types/options'
/* eslint-disable-next-line no-use-before-define */
interface Themeable extends Vue {
theme: {
isDark: boolean
}
}
export function functionalThemeClasses (context: RenderContext): object {
const vm = {
...context.prop... |
import React from 'react'
import { CategoryList } from './components'
import { SnackbarContainer } from './containers'
export function App() {
return (
<div className="App">
<div className="App__introduction">
<div className="App__brand">
<h1 className="heading-1">Tasks</h1>
<p... |
import React from 'react';
import { IconButton } from '@rmwc/icon-button';
import '@rmwc/icon-button/styles';
import { SITE_URL } from 'src/conf';
import { useUsername } from 'src/store/selectors';
import './CompareLanding.scss';
const buildCompareLink = (username: string): string => `${SITE_URL}/compare/${username}`... |
import React, { useState } from "react";
import ChatTranscriptInput from "../ChatTranscriptInput";
import "./ChatTranscript.scss";
interface ChatTranscriptProps {
currentUser: User;
chatListId: number;
chatList: ChatListItem[];
handleSetChatList: Function;
}
interface DraftMessageStorage {
[x: number]: stri... |
import React from "react";
import ChooseTicket from "./choose-ticket";
import { action } from "@storybook/addon-actions";
import Connected from "../../../.storybook/helper/connected";
import { BrowserRouter } from "react-router-dom";
export default {
title: "Screens/ChooseTicket",
component: ChooseTicket,
};
expo... |
/*
* Copyright (c) 2022 by MILOSZ GILGA <https://miloszgilga.pl>
*
* File name: useDisableScroll.ts
* Last modified: 05/03/2022, 14:43
* Project name: digititles-imagine
*
* Licensed under the MIT license; you may not use this file except in compliance with the License.
*
* Permission is hereby granted, free o... |
import { expect } from "chai";
import { timeout } from "../utils";
import { openSyntheticEnvironmentWindow, SEnvWindowContext } from "../../environment";
export const openTestWindow = (htmlOrFiles: any = "", context: Partial<SEnvWindowContext> = {}) => {
const files = typeof htmlOrFiles === "string" ? { "local://ind... |
import { filter } from 'rxjs/operators';
import { Router, NavigationStart, RouterEvent } from '@angular/router';
import { Subscription } from 'rxjs';
import { Component, OnDestroy, Input } from '@angular/core';
import { MatSidenav } from '@angular/material';
@Component({
selector: 'portal-vertical-icon-menu',
temp... |
import { Scene3D } from "./laya/d3/core/scene/Scene3D";
import { MeshRenderDynamicBatchManager } from "./laya/d3/graphics/MeshRenderDynamicBatchManager";
import { MeshRenderStaticBatchManager } from "./laya/d3/graphics/MeshRenderStaticBatchManager";
import { SubMeshDynamicBatch } from "./laya/d3/graphics/SubMeshDynamic... |
import * as React from 'react'
import { Form, Button } from 'react-bootstrap'
import axios from 'axios'
import { apiDomain } from './appConfig'
import { Link } from 'react-router-dom'
import { backendErrorsToMessage } from './backendSync'
import { recaptchaRef, recaptchaEnabled } from './utils/recaptcha'
interface Sig... |
export * from './TabBarIcon'; |
function maxProduct (nums: number[]): number {
let result = nums[0];
let max = nums[0];
let min = nums[0];
for (let i = 1; i < nums.length; i++) {
const a = max * nums[i];
const b = min * nums[i];
result = Math.max(
a,
b,
nums[i],
r... |
/**
* 将 DOM 元素下载为图片
* 需要提前安装 domtoimage
* @param el DOM
* @param name 下载名称
* @param scale 质量 1,2,3,4,5
*/
import domt2image from 'dom-to-image'
const downloadElementImage = (el: HTMLElement, name = 'element-image', scale = 2) => {
const toBlobConfig = {
width: el.clientWidth * scale,
height:... |
import { NgModule } from '@angular/core';
import { CreateAccountComponent } from './create/create.component';
import { RecoverAccountComponent } from './recover/recover.component';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { MaterialModule } from '../../mater... |
interface A {}
interface B {}
interface C {}
declare class D {
get a(): A;
get b(): B;
set b(_: B);
readonly c: C;
}
export { D }; |
import { AbortController, getUserAgentString } from "../isomorphic.node";
import { NormalizedConfig } from "../config";
import { ShipEngineError, RateLimitExceededError } from "../errors";
import { handle400Errors } from "./handle-400-errors";
import { handle404Errors } from "./handle-404-errors";
import { handle500Err... |
import { OverlayContainer } from '@angular/cdk/overlay';
import { Component, TemplateRef, ViewChild } from '@angular/core';
import { ComponentFixture, fakeAsync, inject, tick } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { HomeOutline } from '@ant-de... |
import {Component, OnInit} from '@angular/core';
import {LiveAppsConfig} from '../../models/tc-liveapps-config';
import {ActivatedRoute} from '@angular/router';
import {GeneralConfig, Claim, Sandbox} from '@tibco-tcstk/tc-core-lib';
import {TcLiveAppsConfigService} from '../../services/tc-live-apps-config.service';
imp... |
/**
* @description editor.text event-hooks del-to-keep-p test
* @author luochao
*/
import delToKeepP from '../../../src/text/event-hooks/del-to-keep-p'
import { EMPTY_P } from '../../../src/utils/const'
import createEditor from '../../helpers/create-editor'
describe('editor.text event-hooks tab-to-space test', () =... |
/**
* @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 {CommonModule, DOCUMENT, ViewportScroller, ɵNullViewportScroller as NullViewportScroller, ɵPLATFORM_WORKER_AP... |
// (C) 2019-2020 GoodData Corporation
import a, { AxiosInstance, AxiosRequestConfig } from "axios";
/**
* Default config from axios sets request headers:
*
* For all methods:
* Accept: application/json, text/html
*
* For POST and PUT of JS objects (isObject):
* Content-Type: application/json;charset=utf8
*
... |
import { INodeProperties } from 'n8n-workflow';
export const caseOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'case',
],
},
},
options: [
{
name: 'Add Comment',
value: 'addComment',
description: 'Add ... |
import type { LinkProps } from 'next/link';
export interface Props extends LinkProps, StyledProps {
children?: React.ReactNode;
type?: 'normal' | 'navigation-link' | 'navigation-button' | 'button' | 'button-function' | 'button-link';
target?: '_blank';
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEve... |
import { IFacepileStyleProps, IFacepileStyles } from './Facepile.types';
export declare const styles: (props: IFacepileStyleProps) => IFacepileStyles; |
import { v4 as uuidv4 } from "uuid";
import { CloudWatchEvents } from "aws-sdk";
import { Context, ScheduledEvent } from "aws-lambda";
import { Job, JobStatus, McmaTracker, ProblemDetail } from "@mcma/core";
import { AwsCloudWatchLoggerProvider } from "@mcma/aws-logger";
import { invokeLambdaWorker } from "@mcma/aws-... |
import React from 'react';
import Link from 'next/link';
import { Send, Menu, Image, Info, Edit3 } from 'react-feather';
import Button from '../../../../components/Button';
import type { User } from '../../../../services/UserService';
import styles from './Profile.module.css';
export default function Profile({ prof... |
import { ServiceProfileJson, VpgJson, VpgVmJson } from '../__json__/vpg';
import { AxiosResponse } from 'axios';
import { VpgFailoverTestAlertJson } from '../vpg-failover/__json__/vpg-failover-test-alert';
import {
BootOrderSettingsJson, DetailedRecoveryStepJson,
NetworkMappingJson, VmRecoverySettingsJson, VpgF... |
import { BoosterConfig, Logger } from '@boostercloud/framework-types'
import { App } from 'cdktf'
import { AzureStack } from './azure-stack'
import { ZipResource } from './types/zip-resource'
import { FunctionZip } from './helper/function-zip'
import {
azureCredentials,
createFunctionResourceGroupName,
createReso... |
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version, DisplayMode } from '@microsoft/sp-core-library';
import {
BaseClientSideWebPart,
IPropertyPaneConfiguration,
PropertyPaneButton,
PropertyPaneButtonType,
PropertyPaneCheckbox,
PropertyPaneChoiceGroup,
PropertyPaneLabel... |
export interface RabbitMqMessageConfig {
routingKey: string;
} |
import * as mockserver from 'mockserver';
import * as http from 'http';
import {
addExtensionReasonToRequest,
callProcessorApi,
createExtensionRequest,
ExtensionFullRequest,
ExtensionsCompanyProfile,
getCompanyProfile,
getFullRequest,
removeAttachment,
removeExtensionReasonFromRequest,
setExtensionR... |
import { OAuthClient, OAuthDefaultLogin, OAuthLogin, OAuthLoginIdToken, OAuthUser } from "../client.types";
import fetch from "node-fetch";
import * as queryString from "querystring";
import { HttpError } from "../../../../../errors/http.error";
import { INTERNAL_SERVER_ERROR } from "http-status-codes";
import { Facebo... |
export interface RollupError {
message: string;
code?: string;
name?: string;
url?: string;
id?: string;
loc?: {
file?: string;
line: number;
column: number;
};
stack?: string;
frame?: string;
pos?: number;
plugin?: string;
pluginCode?: string;
}
e... |
<?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 Santacoin</source>
<translation>Tietoa Santacoinista</translation>
... |
export enum CameraType {
PLAYER_VIEW,
ORBITAL,
VR_PLAYER_VIEW,
VR_BALL,
VR_FLY
} |
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* RemoveRoleFromDBClusterInput shape
*/
export interface RemoveRoleFromDBClusterInput {
/**
* <p>The name of the DB cluster to disassociate the IAM role from.</p>
*/
DBClusterIdentifi... |
import { AnchorConfig } from '../address-provider/types';
const tequilaDefaultConfig: AnchorConfig = {
lcd: {
URL: 'https://tequila-lcd.terra.dev',
chainID: 'tequila-0004',
gasPrices: {
uusd: 0.15,
},
gasAdjustment: 2,
},
contracts: {
mmMarket: 'terra15dwd5mj8v59wpj0wvt233mf5efdff80... |
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
import User from 'src/user/user.entity';
export const GetUser = createParamDecorator(
(data, ctx: ExecutionContext): User => {
const req = ctx.switchToHttp().getRequest();
return req.user;
}
); |
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
expor... |
/* GENERATED FILE */
import * as React from 'react';
import Svg, { Rect, G, Path } from 'react-native-svg';
import { IconProps } from '../lib';
function SpeakerSimpleX(props: IconProps) {
return (
<Svg
id="Raw"
viewBox="0 0 256 256"
width={props.size}
height={props.size}
fill={prop... |
/**
* Author: SyntaxErrorLineNULL.
*/
import { ApiProperty } from '@nestjs/swagger';
export class CategoryUpdateSchema {
@ApiProperty()
name?: string;
} |
import { Typography } from "@material-ui/core";
import { UseNavigatorResult } from "@saleor/hooks/useNavigator";
import React from "react";
import SVG from "react-inlinesvg";
import { IMenuItem } from "../AppLayout/menuStructure";
import useStyles from "./styles";
export interface MenuItemBtnProps {
menuItem: IMenu... |
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
export interface AccordionTabOpenEvent {
/**
* Browser mouse event.
* @type {MouseEvent}
*/
originalEvent: MouseEvent;
/**
* Opened tab index.
*/
index: number;
}
/**
* @e... |
import * as fs from 'fs'
import {
genPerVOSpentVoiceCreditsCommitment,
genTallyResultCommitment,
genSpentVoiceCreditsCommitment,
} from 'maci-core'
import {
maciContractAbi,
} from 'maci-contracts'
import {
validateEthAddress,
contractExists,
calcQuinTreeDepthFromMaxLeaves,
} from './util... |
import {H5Config, InstantiateConfig} from '../options/config';
import {RoutesRule, routesMapRule, routesMapKeysRule, Router, totalNextRoute, objectAny, navErrorRule, NAVTYPE, navRoute, uniBackApiRule, uniBackRule} from '../options/base';
import {baseConfig} from '../helpers/config';
import {ERRORHOOK} from '../public/h... |
import React from 'react';
export interface IconHomeProps extends React.SVGAttributes<SVGElement> {
color?: string;
size?: string | number;
className?: string;
style?: React.CSSProperties;
}
export const IconHome: React.SFC<IconHomeProps> = (
props: IconHomeProps
): React.ReactElement => {
const { color, ... |
// Type definitions for skeleton-rendezvous 1.1
// Project: https://github.com/SocketCluster/skeleton-rendezvous#readme
// Definitions by: aikoven <https://github.com/aikoven>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace SkeletonRendezvousHasher {
interface Options {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.