text stringlengths 10 953k |
|---|
import * as Character from './participant/character/functions';
import * as CharacterTypes from './participant/character/types';
import * as RoomTypes from './types';
import * as DualKeyRecordOperation from '../util/dualKeyRecordOperation';
import { RecordTwoWayOperationElement, replace } from '../util/recordOperationE... |
import { RawDataCommonService } from './raw-data-common.service';
import { TableConfigCommonService } from './table-config-common.service';
/**
*
* @export
* @class ZipCommonService
*/
export declare class ZipCommonService {
private rawDataService;
private tableConfig?;
/**
* Creates an instance of... |
import styled from 'styled-components';
export const Container = styled.div`
padding: 0 100px;
height: 100vh;
#loading {
display: flex;
align-items: center;
justify-content: center;
margin-top: 100px;
}
@media screen and (max-width: 650px) {
padding: 0 20px;
}
`;
export const SearchB... |
import { async, ComponentFixture, TestBed } from "@angular/core/testing";
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { RouterTestingModule } from '@angular/router/testing';
import { SideBarChannelComponent } from "./side-bar-channel.component";
import { MockRepoName } from "src/app/mock-pipes.spec";
impo... |
class RulesetSingleModal {
selectPropertyToMatch(property: string) {
cy.get("span.ml-tree-select").trigger("mouseover").click();
cy.findByLabelText(`${property}-option`).then($option => {
$option[0].click();
});
cy.waitUntil(() => cy.findByLabelText(`${property}-option`).should("not.be.visible"... |
// Type definitions for Selenium WebDriverJS 4.0
// Project: https://github.com/SeleniumHQ/selenium/tree/master/javascript/node/selenium-webdriver
// Definitions by: Bill Armstrong <https://github.com/BillArmstrong>,
// Yuki Kokubun <https://github.com/Kuniwak>,
// Craig Nishina <https://github.com/cnishina>,
// ... |
import { Injectable } from '@nestjs/common';
@Injectable()
export class UniversityService {} |
import get from 'lodash/get';
import Http from './http-client';
import {
createGetMultiplePatientDataBundle,
createGetPatientDataBundle, createGetPractitionersDataBundle,
} from './fhir/fhir';
import { getPatientByIdentifier } from './fhir/api/PatientChecker';
import { getUserPractitionerData } from './fhir/api/Use... |
/* GENERATED FILE */
import * as React from 'react';
import Svg, { Rect, Path, Line } from 'react-native-svg';
import { IconProps } from '../lib';
function SpeakerNone(props: IconProps) {
return (
<Svg
id="Raw"
viewBox="0 0 256 256"
width={props.size}
height={props.size}
{...props}... |
import { getBaaSF } from './utils/utils'
import { PLATFORM_NAME_BAAS, PLATFORM_NAME, PLATFORM_ALL, PLATFORM_NAME_MONGO_SERVER } from './constants/constants'
import { METHOD_NOT_SUPPORT } from './constants/error'
//
function fetchDeleteUserGroup(groupIDList: number[]): Promise<any>{
let {BaaS_F, minapp} = getBaaSF(... |
import * as React from "react"
import { observer } from "mobx-react"
import { ViewStyle, ImageStyle, TextStyle, StatusBar, FlatList } from "react-native"
import { Text } from "../shared/text"
import { Button } from "../shared/button"
import { Icon } from "../shared/icon"
import { Header } from "../shared/header"
import... |
import { path } from 'rambda'
export const getCredentialId = path<number>(['auth', 'credentials', 'id']) |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="pt_BR">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Freicoin</source>
<translation type="unfinished... |
import * as React from 'react'
import { NextPage } from 'next'
import Layout from '../components/Layout'
import Logo from '../components/Logo'
import OnScreenGraphic from '../components/OnScreenGraphic'
const PreStreamScreen: NextPage = () => (
<Layout>
<main className="content">
<div className="inner">
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DisplayTrainingComponent } from './display-training.component';
describe('DisplayTrainingComponent', () => {
let component: DisplayTrainingComponent;
let fixture: ComponentFixture<DisplayTrainingComponent>;
beforeEach(async(() =... |
// Copyright 2019 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
import React, { useState, useEffect } from 'react';
import { ItemComponent, ResponseItem, ItemGroupComponent } from 'survey-engine/lib/data_types';
import { getLocaleStringTextByCode, getItemComponentByRole } from '../../utils';
import clsx from 'clsx';
import NumberInput from './NumberInput';
import DropDownGroup from... |
<TS language="es" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clic derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<... |
import React, {useEffect, useRef} from 'react'
import styles from '../styles/ArchChooser.module.sass'
export default ({arch, setArch}: any) => {
const x8664Ref = useRef()
const shadowRef = useRef()
useEffect(() => {
shadowRef.current.style.transform =
`translateX(${x8664Ref.current.off... |
export interface MarkerDoc {
id: string;
title?: string;
location: {
type: string, // 'Point'
coordinates: [number, number] // [longitude, latitude]
};
mapId: string;
}
export interface Marker {
id: string;
title?: string;
latitude: number;
longitude: number;
mapId: stri... |
import * as React from 'react';
import { SVGIconProps } from '../createIcon';
export declare const IconsIconConfig: {
name: 'IconsIcon',
height: 512,
width: 512,
svgPath: 'M116.65 219.35a15.68 15.68 0 0 0 22.65 0l96.75-99.83c28.15-29 26.5-77.1-4.91-103.88C203.75-7.7 163-3.5 137.86 22.44L128 32.58l-9.85-10.14C93... |
import { useContext, useEffect, useState } from 'react'
import neo4j, { Record as Neo4jRecord, QueryResult, Result } from "neo4j-driver"
import { Neo4jContext } from './neo4j.context'
interface Neo4jQueryState {
loading: boolean;
error?: Error;
result?: QueryResult;
records?: Neo4jRecord[];
first?:... |
import * as customPropTypes from '@fluentui/react-proptypes'
import * as PropTypes from 'prop-types'
import * as _ from 'lodash'
import * as React from 'react'
import {
RenderResultConfig,
UIComponentProps,
ChildrenComponentProps,
commonPropTypes,
UIComponent,
applyAccessibilityKeyHandlers,
childrenExist,... |
import { Observable } from 'rxjs/Rx';
import { HttpClient } from '@angular/common/http';
import { Injectable } from "@angular/core";
import * as _ from 'lodash';
@Injectable()
export class SPService{
private PAGES_DIR = '/assets/data/pages';
private pageSchema: any = {};
constructor(private http: HttpClient){
... |
import React, {
CSSProperties,
useEffect,
useMemo,
useRef,
useState,
} from "react";
// @ts-ignore
import Player from "@vimeo/player";
const componentName: string = "VimeoVideo";
const debug = require("debug")(`lib:${componentName}`);
/**
* VimeoVideo Props
*/
interface IProps {
/**
* Inquire video ID... |
/**
* file description:
*/
import {StyleSheet} from 'react-native'
import DefiniteUnit from './DefiniteUnit'
const MainStyle = StyleSheet.create({
container: {
position: 'relative',
flex: 1,
},
rowStartStart: {
flexDirection: 'row',
justifyContent: 'flex-start',
alignItems: 'flex-start',
... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { CoreModule } from '@app/core/core.module';
import { AppComponent } from ... |
// tslint:disable:directive-class-suffix
import {Directive, Injector, Input, OnDestroy, OnInit} from '@angular/core';
import {NavigationExtras, RouterLink} from '@angular/router';
import {map, takeUntil} from 'rxjs/operators';
import {NaturalSearchSelections} from '../modules/search/types/values';
import {NaturalAbstra... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
// tslint:disable:max-func-body-length no-any no-unnecessary-class
import { inject, injectable } from 'inversify';
import { Disposable, QuickInput, QuickInputButton, QuickInputButtons, QuickPickItem } from '... |
import { SmoothCubicToRelative } from "../..";
describe(`commands`, () => {
describe(`SmoothCubicToRelative`, () => {
let command: SmoothCubicToRelative;
beforeAll(() => {
command = new SmoothCubicToRelative(83.367, 6526.2546, 254.2256, 65.275);
});
describe(`render`, () => {
let rendered... |
import * as React from 'react';
import {
IconButton,
Grid,
Menu,
MenuItem,
ListItemText,
InputAdornment,
Badge,
Checkbox,
Typography,
Tooltip,
} from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import FilterIcon from '@material-ui/icons/FilterList'... |
enum Role {ADMIN, READ_ONLY, AUTHOR};
/*const ADMIN = 0;
const READ_ONLY = 1;
const AUTHOR = 2;
*/
const person /*: {
firstname: string;
lastname: string;
} */ = {
firstname: "Sunshine",
lastname: "Cookie",
hobbies:['Dance','Code','Paint'],
role : Role.AUTHOR
};
person.hobbies.push('Writing');
//person.hob... |
import styled, { css, StyledComponent } from 'styled-components';
export const Page: any = styled.div`
display: flex;
flex-direction: column;
min-height: 100vh;
z-index: 0;
position: ${ (props:any) => props.relative ? "relative" : 'inherit'};
`;
export const preventSelectStyles = css`
user-select: none... |
import styled, { css } from 'styled-components';
import Navbar from '../../molecules/navbar';
const Header: React.FC = () => {
return (
<HeaderContainer role="banner">
<Navbar />
</HeaderContainer>
);
};
const HeaderContainer = styled.div`
max-width: 1280px;
margin: auto;
${({ theme }) => css... |
import {LitElement, html, css} from "lit-element"
import {mixinStyles} from "../../framework/mixin-styles.js"
import {User, Profile} from "authoritarian/dist/interfaces.js"
const day = 1000 * 60 * 60 * 24
const styles = css`
.complex {
display: flex;
flex-direction: row;
background: rgba(255,255,255, 0.1);
paddi... |
export interface DiffResult {
files: {
file: string;
changes: number,
insertions: number;
deletions: number;
}[];
insertions: number;
deletions: number;
}
export interface FetchResult {
raw: string;
remote: string | null;
branches: {
name: string;
tracking: string;
}[];
tags: string[];
}
export i... |
export type Config = {
appEnv: 'local' | 'development' | 'production'
appId?: string
sentryDns: string
platformApiUrl: string
uploadApiUrl: string
cognitoClientId: string
googleAnalyticsKey: string
cognitoOAuthUrl: string
cognitoUserPoolId: string
marketplaceUrl: string
}
declare global {
interfa... |
import React, { useEffect, useReducer, useState } from "react";
interface Props
extends React.DetailedHTMLProps<
React.InputHTMLAttributes<HTMLInputElement>,
HTMLInputElement
> {
handleDrop?: (
File: FileList | null,
ev: React.DragEvent<HTMLDivElement>
) => void;
getFiles?: (File: FileList | ... |
import Icon from './icon-internal';
type ListProps = Omit<React.ComponentProps<typeof Icon>, 'children'>;
function List({ size, ...restProps }: ListProps) {
return (
<Icon viewBox="0 0 18 18" size={size} {...restProps}>
<path
fill="currentColor"
d="M6 6a1 1 0 1 1 0-2h10a1 1 0 0 1 0 2H6Zm0 ... |
export { default } from './P' |
export interface ViewCellData {
startDate: Date;
endDate: Date;
text: string;
otherMonth?: boolean;
today?: boolean;
allDay?: boolean;
groups?: object;
}
interface ViewData {
dateTable: ViewCellData[][];
allDayPanel?: ViewCellData[];
isGroupedAllDayPanel?: boolean;
}
export interface GroupedViewDa... |
import invariant from 'tiny-invariant'
import { ChainId } from '../constants'
import { validateAndParseAddress } from '../utils'
import { Currency } from './currency'
/**
* Represents an ERC20 token with a unique address and some metadata.
*/
export class Token extends Currency {
public readonly chainId: ChainId
... |
import { ColiObjectLike } from "@coli.codes/builder";
import { CSSProperties } from "@coli.codes/css";
import { JSXElementConfig, WidgetKey } from "@coli.codes/web-builder-core";
import { BorderRadiusManifest } from "@reflect-ui/core";
import { BackgroundPaintLike } from "@reflect-ui/core/lib/background";
import { bord... |
import { HTTPError } from "../types/errors";
const { frontendlogger } = window as any;
export const logApiError = (url: string, err: HTTPError) => {
const error = `Feil ved henting av data: ${url} - ${err.code} ${err.text}`;
const title = "tilbakemeldinger.apiclient.error";
const tags = {};
const fields = {
... |
import { Injectable } from '@angular/core';
import { AppLocation, LocationResponse, LocationStatusEnum } from 'src/app/locations/location';
import { LocalStorageService } from 'src/app/shared/local-storage.service';
import { UtilsService } from 'src/app/shared/utils.service';
@Injectable()
export class LocationService... |
import { Injectable } from '@angular/core';
import { AngularFirestore } from 'angularfire2/firestore';
import { AngularFireAuth } from 'angularfire2/auth';
import * as firebase from 'firebase/app';
@Injectable()
export class UserService {
constructor(
public db: AngularFirestore,
public afAuth: AngularFire... |
import styled from 'styled-components'
export const LanguagePanel = styled.div`
width: 70px;
height: 74px;
background: white;
border-radius: 5px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
align-items: center;
position: fixed;
position: -webkit-fixed;
z-ind... |
export { Subject, AnonymousSubject } from './Subject';
export { Observable } from './Observable';
import './add/observable/bindCallback';
import './add/observable/bindNodeCallback';
import './add/observable/combineLatest';
import './add/observable/concat';
import './add/observable/defer';
import './add/observable/empty... |
export const environment = {
apiRoot: 'https://rc.volontulo.pl/api',
djangoRoot: 'https://rc.volontulo.pl/o',
production: true,
sentryDSN: 'https://4ff2ebbd18b74200b07a3b0538259e5d@sentry.io/227463'
}; |
import { Injectable } from '@angular/core';
import { Router, ActivatedRoute, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Subscription } from 'rxjs';
import { TranslateService } from 'ng2-translate';
import { Util } from '../util/util';
import { ServiceEntity } from '../en... |
export * from './Plex'
export * from './client'
export * from './types' |
import {Constants} from "../constants";
import {addScript} from "../util/addScript";
declare const plantumlEncoder: {
encode(options: string): string,
};
export const plantumlRender = (element: HTMLElement, cdn = Constants.CDN) => {
const plantumlElements = element.querySelectorAll(".language-plantuml");
... |
import React, { Component } from "react";
import { Rnd, DraggableData, ResizableDelta } from "react-rnd";
import { Size, ResizeDirection } from "re-resizable";
import { DisqusEntity } from "../external/DisqusEntity";
import { CommentFactory } from "../external/CommentFactory";
export interface WindowProps {
id: numbe... |
import styled from 'styled-components'
import Img from '@/Img'
export const Wrapper = styled.div``
export const PlanetDriverIcon = styled(Img)<{ angle: string }>`
transform: ${({ angle }) => angle};
display: block;
` |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
const u = undefined;
fun... |
import {PlatformTest} from "@tsed/common";
import * as Sinon from "sinon";
import {FakeRequest, FakeResponse} from "../../../../../test/helper";
import {ConverterService} from "../../../src/converters";
import {IgnoreProperty, Property} from "../../../src/jsonschema/decorators";
import {SendResponseMiddleware} from "./... |
import {SetCurrentQuestionnaireAction} from '@app/app/state/navigation/navigation-actions';
describe('SelectQuestionnaire', () => {
it('should create an instance', () => {
expect(new SetCurrentQuestionnaireAction({title: null, uuid: null})).toBeTruthy();
});
}); |
/*!
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT
*/
import tl = require('azure-pipelines-task-lib/task')
import { ToolRunner } from 'azure-pipelines-task-lib/toolrunner'
import * as fs from 'fs'
import * as path from 'path'
export class DotNetCliWrapper ... |
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import * as chai from "chai";
import { JSDOM } from "jsdom";
import { PreOutputPanel } from "../src";
import { isMainThread } from "worker_thread... |
import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Storage } from '@ionic/storage';
import { Router } from '@angular/router';
import { NavController } from '@ionic/angular';
import { CallNumber } from '@ionic-native/call-number/ngx';
import { AlertController }... |
/**
* Returns a url for display
* @param url full url
*/
export const niceHost = (url: string): string => {
const host = url.replace(/^https?:\/\//, "").replace(/\/.*$/, "")
const parts = host.split(".").slice(-3)
if (parts[0] === "www") parts.shift()
return parts.join(".")
} |
/*
* File: webpub.service.spec.ts
* Project: VoiceAssistant
* File Created: Monday, 4th February 2019 9:50:05 am
* Author: pierre (p.leroux@gmx.com)
* -----
* Last Modified: Monday, 4th February 2019 10:08:29 am
* Modified By: pierre (p.leroux@gmx.com>)
* -----
* Copyright 2019 - 2019 EDRLab.org
* Use of this... |
/**
* @module Common
*/
/**
* Defines a partial object with support for nesting
*/
export type DeepEntityPartial<T> = { [P in keyof T]?: DeepEntityPartial<T[P]> }; |
export { ComponentReference } from './ComponentReference';
export { EventsReference } from './EventsReference';
export { PropsReference } from './PropsReference';
export { SlotsReference } from './SlotsReference'; |
import Box from '@material-ui/core/Box';
import React, { Component } from 'react';
import Container from '@material-ui/core/Container';
import Typography from '@material-ui/core/Typography';
export default class ErrorBoundary extends Component<
{ value?: string },
Record<string, unknown>
> {
constructor(props) {... |
import { TestBed } from '@angular/core/testing';
import { AuthService } from './auth.service';
describe('AuthService', () => {
let service: AuthService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(AuthService);
});
it('should be created', () => {
expect(servic... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
],
exports:[
]
})
export class ProfileSpaceModule { } |
import { player, saveSynergy, blankSave, reloadShit, format } from './Synergism';
import { testing, version } from './Config';
import { getElementById } from './Utility';
import LZString from 'lz-string';
import { achievementaward } from './Achievements';
import { Player } from './types/Synergism';
import { Synergism }... |
import { useCallback, useState } from "react";
export type InitialState = boolean | (() => boolean);
export type UseToggle = (
| boolean
| {
on: () => void;
off: () => void;
toggle: () => void;
}
)[];
/**
* React hook to manage or toggle boolean (on - off) states
*
* @param initialState {boolean} th... |
import { DragTarget } from '../models/drag-drop';
import { Project, ProjectStatus } from '../models/project';
import Component from './base-component';
import { autobind } from '../decorators/autobind';
import { projectState } from '../state/project-state';
import { ProjectItem } from './project-item';
// Project List ... |
import type { EditMessage } from "../../types/messages/editMessage.ts";
import type { Message } from "../../types/messages/message.ts";
import type { Bot } from "../../bot.ts";
import { MessageComponentTypes } from "../../types/messages/components/messageComponentTypes.ts";
/** Edit the message. */
export async functi... |
import { bip341, crypto } from 'ldk';
export function tweakPublicKey(
publicKey: Buffer,
hash: Buffer,
ecc: bip341.TinySecp256k1Interface
): bip341.XOnlyPointAddTweakResult {
const XOnlyPubKey = publicKey.slice(1, 33);
const toTweak = Buffer.concat([XOnlyPubKey, hash]);
const tweakHash = crypto.taggedHash(... |
export { FormChangeTracker } from "./FormChangeTracker"; |
import { MdiReactIconComponentType } from './dist/typings';
declare const FolderPoundOutlineIcon: MdiReactIconComponentType;
export default FolderPoundOutlineIcon; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About backspacebar</source>
<translation>Despre backspacebar</translati... |
import './App';
import './pages/Blog';
import './pages/Community';
import './pages/Documentation';
import './pages/Examples';
import './pages/Home';
import './pages/Playground';
import './widgets/Menu';
import './scripts/compile'; |
import JSBI from 'jsbi';
export declare type BigintIsh = JSBI | bigint | string;
export declare enum ChainId {
MAINNET = 1,
ROPSTEN = 3,
RINKEBY = 4,
GÖRLI = 5,
KOVAN = 42,
FUJI = 43113,
AVALANCHE = 43114,
SMART_CHAIN = 56,
SMART_CHAIN_TEST = 97,
MOONBASE_ALPHA = 1287,
MOONRI... |
import { PluginFunc, QUnitType } from 'dayjs'
declare const plugin: PluginFunc
export = plugin
declare module 'dayjs' {
interface Dayjs {
quarter(): number
quarter(quarter: number): Dayjs
add(value: number, unit: QUnitType): Dayjs
subtract(value: number, unit: QUnitType): Dayjs
startOf(u... |
import React from "react";
import { AccordionItem } from "@webiny/ui/Accordion";
import { AdminAppPermissionRendererPlugin } from "@webiny/app-admin/types";
import { ReactComponent as TranslateIcon } from "@webiny/app-i18n/admin/assets/icons/round-translate-24px.svg";
import { I18NPermissions } from "./I18NPermissions"... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
Vir... |
/*-----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
/* This file was auto-generated by ensureUiComponents() in... |
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
EventEmitter,
Input,
OnInit,
Output,
} from '@angular/core';
import { DateFilterValue } from '../contarct/date-filter-value';
import { DateFilter } from '../contarct/date-filter';
import { FilterState } from '../contarct/filter-state';
import... |
import { sha256 } from 'js-sha256';
import BigNumber from 'bn.js';
import { CredentialPreview } from './messages/CredentialOfferMessage';
export class CredentialUtils {
/**
* Converts int value to string
* Converts string value:
* - hash with sha256,
* - convert to byte array and reverse it
* - conver... |
import { Injectable } from '@nestjs/common';
import { Queue } from 'bull';
import { InjectQueue } from '@nestjs/bull';
export interface MessageObject {
type: number,
phoneNumber: string,
message: string
}
@Injectable()
export class MessageQueueService {
async addToQueue(newMessage: MessageObject): Promise<any... |
'use strict';
import assert from "assert";
import { ethers } from "ethers";
import { loadTests, TestCase } from "@ethersproject-bsc/testcases";
import * as utils from "./utils";
describe('Test JSON Wallets', function() {
let tests: Array<TestCase.Wallet> = loadTests('wallets');
tests.forEach(function(test... |
/*!
* devextreme-vue
* Version: 19.2.5
* Build date: Mon Dec 16 2019
*
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.... |
import * as React from 'react';
import { GridItem } from '@patternfly/react-core';
import { InfoCircleIcon } from '@patternfly/react-icons';
import { FormikValues, useFormikContext } from 'formik';
import { safeLoad } from 'js-yaml';
import * as _ from 'lodash';
import { Trans, useTranslation } from 'react-i18next';
im... |
import { CanActivate, Injectable, ExecutionContext } from '@nestjs/common';
import { Observable } from 'rxjs';
@Injectable()
export class RolesGuard implements CanActivate {
canActivate(
ctx: ExecutionContext,
): boolean | Promise<boolean> | Observable<boolean> {
return true;
}
} |
import React, { ReactNode } from 'react';
import clsx from 'clsx';
export interface ContainerProps {
children: ReactNode;
fullWidth?: 'is-widescreen' | 'is-fullhd';
maxWidth?: 'is-max-desktop' | 'is-max-widescreen';
className?: string;
}
const Container: React.FC<ContainerProps> = ({
children,
fullWidth,... |
import * as React from "react";
import { PuttableProps } from "../src/Document";
type CounterProps = PuttableProps & {
/**
* (Optional) Component's count, set this if you want to initialize a default.
*/
count?: number;
};
/**
* Counter application that tracks increment and decrement operations.
*/
export... |
import { User, UserSchema } from './user-schemas/user.schema';
import { MongooseModule } from '@nestjs/mongoose';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { Module } from '@nestjs/common';
@Module({
imports: [
MongooseModule.forFeature([{ name: User... |
import {MatPaginatorIntl} from '@angular/material';
export class MatPaginatorIntlSpanish extends MatPaginatorIntl {
itemsPerPageLabel = 'Items por página';
nextPageLabel = 'Próxima página';
previousPageLabel = 'Página anterior';
getRangeLabel = function (page, pageSize, length) {
if (length === 0 || p... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* T... |
export { createProblem } from './createProblem'
export { deleteProblem } from './deleteProblem'
export { updateProblem } from './updateProblem'
export { uploadTestcaseFile } from './uploadTestcaseFile' |
const bitcash = require('@psf/bitcoincashjs-lib')
import * as utils from './utils'
import {
Address,
Balance,
Fees,
Tx,
TxParams,
TxHash,
TxHistoryParams,
TxsPage,
XChainClient,
XChainClientParams,
BaseXChainClient,
} from '@xchainjs/xchain-client'
import { getSeed } from '@xchainjs/xchain-crypto... |
import Web3 from 'web3'
import { TransactionConfig } from 'web3-core'
import { Abi } from './abi'
import { Accounts } from './accounts'
import { CastHelpers } from './cast-helpers'
import { Addresses } from './addresses'
import { Internal, Version } from './internal'
import { Spells } from './spells'
import { Transacti... |
import { Browser, Chrome } from './browser'
// let browser: Browser;
export async function startBrowser(slowMo: number = 0): Promise<Browser> {
// if (!browser) {
// }
const puppeteerUrl = process.env.PUPPETEER_URL as string
const nodeEnv = process.env.NODE_ENV;
const isHeadless = nodeEnv === 'CI... |
import { createStore } from 'vuex'
declare let SessionStorage: any;
const USER = "USER";
const store = createStore({
state: {
user: SessionStorage.get(USER) || {}
},
mutations: {
setUser (state, user) {
console.log("store user:", user);
state.user = user;
... |
import { render } from 'react-dom';
import App from './App';
import Container from './Containers/Container'; //* wrap its child inside BrowserRouter and MuiThemeProvider.
import reportWebVitals from './reportWebVitals';
render(
<Container>
<App />
</Container>,
document.getElementById('root'),
);
reportWebVitals... |
type i32 = number;
type i64 = number;
type f32 = number;
type f64 = number;
type bool = boolean;
declare function i32(num: number): number;
declare function f32(num: number): number;
declare class Arr extends Array<number> {
_arr: number[] | Obj[]
}
declare class Obj {
data: any;
get(str: string): any
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.