text stringlengths 10 953k |
|---|
import calculateAxisDimension from './calculate-axis-dimension';
import {
setXLabelsDimension,
setYLabelsDimension,
} from './set-max-label-dimension';
export { calculateAxisDimension, setXLabelsDimension, setYLabelsDimension }; |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { UserComponent } from './content/user/user.component';
import { PostsComponent } from './content/posts/posts.component';
import { PostDetailComponent } from './content/posts/post-detail/post-detail.component';
impo... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { routerTransition } from '../router.animations';
import { NgForm } from '@angular/forms'
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css'],
... |
import { FormEvent, useState } from "react";
import { useParams } from "react-router-dom";
import logoImg from "../assets/images/logo.svg"
import { Button } from "../components/Button"
import { Question } from "../components/Question";
import { RoomCode } from "../components/RoomCode";
import { useAuth } from "../hoo... |
import { parseQuery, parseQueryEXP } from '../src/parse'
const queries = [
' What song was or do you want to be the your first dance at your wedding',
'What song would make the best theme music for you',
'What is the most irrational superstition you have',
'What is "the weirdest food" combination "you enjoy"'... |
import { IBoot, Application } from 'egg'
export default class AppBoot implements IBoot {
app: Application
constructor(app: Application) {
this.app = app
// app.sessionMap = {}
// app.sessionStore = {
// async get(key) {
// const res = await app.sessionMap[key];
// if (!res) return... |
export { Hooks, Hook } from './hooks'; |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved.
* See 'LICENSE' in the project root for license information.
* ------------------------------------------------------------------------------------------ */
imp... |
export declare type createElementParams = (tag: string, prop?: {
id?: string;
className?: string;
innerHTML?: string;
styles?: string;
attrs?: {
[key: string]: string;
};
}) => HTMLElement;
/**
* Defines the type of spinner.
*/
export declare type SpinnerType = 'Material' | 'Fabric' | ... |
import { SafeAreaView } from "react-native-safe-area-context";
import React from "react";
import { globalColors, globalLayouts } from "../utility/styles";
const NotificationScreen = () => {
return (
<SafeAreaView
style={[globalLayouts.screenLayout, globalColors.screenColor]}
edges={["left", "bottom"]... |
import { Component, AfterViewInit, ViewChild, HostBinding } from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
import { IonSlides, MenuController } from '@ionic/angular';
@Component({
selector: 'app-getting-started',
templateUrl: './getting-started.page.html',
styleUrls: [
'./sty... |
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { u8aToBuffer, u8aToU8a } from '@polkadot/util';
import { bs58 } from './bs58';
/**
* @name base58Encode
* @summary Creates a base58 value.
* @description
* From the provided input, create the base58... |
import { BaseInterface } from 'src/mongo/base.interface';
import { CityInterface } from 'src/module/location/city/city.interface';
import { FaultInterface } from 'src/module/panel/fault/fault.interface';
export interface FieldTeamInterface extends BaseInterface {
title: string;
city: CityInterface;
phone: string... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LocationResourceService } from './location-resource.service';
import { AppSettingsModule } from '../app-settings/app-settings.module';
import { FormsResourceService } from './forms-resource.service';
import { EncounterRe... |
export * from './access-point'; |
export declare function debugLog(message: string, ...meta: any[]): void;
export declare function resetLogs(): void;
export declare function printLogs(): void; |
import 'jest';
import fs from 'fs';
import loader from '../src/loader';
import { ModuleUtility } from '@g4iz/webpack-set-core';
describe('mockExportsLoader', () => {
test('mock fs-extra', () => {
const resourcePath = ModuleUtility.resolveModuleEntry('fs-extra');
const callback = jest.fn();
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
import {
NestInterceptor,
ExecutionContext,
Injectable,
CallHandler,
} from '@nestjs/common';
import { classToPlain } from 'class-transformer';
import { map } from 'rxjs/operators';
@Injectable()
export class TransformInterceptor implements NestInterceptor {
intercept(context: ExecutionContext, next: CallHa... |
export default function waitForTarget<T>(getTarget: () => T, timeout?: number): Promise<T> |
import {EndpointsRepository} from "../../src/application/scan/EndpointsRepository";
import {ClientLink} from "../../src/domain/ClientLink";
export class EndpointsRepositoryStub implements EndpointsRepository {
retrieveEndpoints(): Promise<ClientLink[]> {
return new Promise((resolve, reject) => {
... |
import assert from "assert";
import {
AccountInfo,
AccountMeta,
Connection,
PublicKey,
TransactionSignature,
Transaction,
TransactionInstruction,
} from "@gemachain/web3.js";
import { Address, translateAddress } from "../program/common";
import Provider, { getProvider } from "../provider";
/**
* Sends a... |
export * from './en'
export * from './pt' |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
import { NestedPieChartOptions, NestedPieSeriesData } from '@t/options';
import { deepMergedCopy } from '@src/helpers/utils';
import {
browserUsageData2,
groupedBrowserUsageData,
browserUsageData2WithNull,
groupedBrowserUsageDataWithNull,
} from './data';
import NestedPieChart from '@src/charts/nestedPieChart';... |
let state: State
type Falsy = false | 0 | null | ``
type Truthiness = 1 | undefined
type Json = EngineJson
function linearInterpolate(
from: number,
to: number,
mixUnitInterval: number
): number {
return from + (to - from) * mixUnitInterval
}
function dotProduct(
x1: number,
y1: number,
x2: number,
... |
import { TreeNodeLocal } from "./checkingStrategyUtils"
import { ALL, Cascade, CHILDREN, NONE } from "./types"
export interface UseCascadeProps {
cascadeSelection?: Cascade
display: Record<string | number, TreeNodeLocal>
selected: Array<string | number>
partlySelected: Array<string | number>
}
export const us... |
import { useGlobalState } from '../store';
export const useHasRatedTheApp = () => {
const { globalState, setGlobalState } = useGlobalState<{
hasRatedTheApp: boolean;
}>();
const setHasRatedTheApp = (hasRatedTheApp: boolean) => {
setGlobalState({ hasRatedTheApp });
};
return { hasRatedTheApp: globalS... |
import * as React from "react";
import * as ReactDOM from "react-dom";
import { App } from "draft/src/typescript/draft/components/app";
ReactDOM.render(
<App />,
document.getElementById("main"),
); |
import * as aws from 'aws-sdk'
import { Parameter } from 'aws-sdk/clients/cloudformation'
import * as fs from 'fs'
export function isUrl(s: string): boolean {
let url
try {
url = new URL(s)
} catch (_) {
return false
}
return url.protocol === 'https:'
}
export function parseTags(s: string): aws.Cl... |
import { Behavior, BehaviorCode } from "behave/behavior";
export class PartialSelector extends Behavior {
behaviors: Array<Behavior>;
selection = 0;
constructor(...behaviors: Array<Behavior>){
super();
this.behaviors = behaviors;
}
// Selects among the given behavior components (one evaluation pe... |
/**
* Copyright (c) 2021 OpenLens Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, p... |
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 14.2.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 14.2.0,
* ap-northeast-3 (https://d2zq80gdmjim8k.cl... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { Test, TestingModule } from '@nestjs/testing';
import { GameController } from './game.controller';
describe('GameController', () => {
let controller: GameController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [GameController],
}).comp... |
import { CryptorService, KeyEncryptionProvider } from './CryptorService';
import { EncryptedData, HexString, Injectable, InternalReactNativeEncryptedKey } from 'ferrum-plumbing';
export declare function utf8ToHex(hexStr: HexString): HexString;
export declare function hexToUtf8(hexStr: HexString): string;
export declare... |
export class SentenceService{
public sentence: any;
constructor() {
this.sentence = [];
}
addWord(word){
this.sentence[this.sentence.length] = word;
}
} |
import 'styled-components';
declare module 'styled-components' {
export interface DefaultTheme {
title: string;
colors: {
primary: string;
secondary: string;
danger: string;
success: string;
info: string;
warning: string;
light: string;
background: string;
... |
import { createElement, ElementType } from 'react';
import { components as rawComponents } from './typography/DocumentFormatting';
export { Badge } from './Badge/Badge';
// Typography
export { Link } from './typography/link/link';
export { DocumentWrapper } from './typography/DocumentWrapper';
export type {
SyntaxH... |
import { GameModeProperty } from './../enums/GameProperties';
import { Socket } from 'socket.io';
import Application from '../classes/Application';
import Lobby from '../classes/Lobby/Lobby';
import { YesOrNo } from '../classes/Votes/YesNoVote';
import PlayerFactory from '../factories/PlayerFactory';
import LobbyServic... |
import * as pathHelper from '../src/inputProcessing/pathHelper';
import * as path from 'path';
import * as glob from 'glob';
import * as core from '@actions/core';
jest.mock('../src/inputProcessing/inputs', () => {
return {
includePathPatterns: ['policies1/**', 'policies2/**'],
excludePathPatterns: ['policies2/ig... |
export class BaseNode {
nodeType?: string;
text?: string; // 代码字符
locPath?: string; // 代码块位置 语法 文件路径:行,列
constructor() {
this.nodeType = this.constructor.name;
}
} |
import {suite, test, timeout} from '@testdeck/mocha';
import {Bootstrap, Config, Injector} from '@typexs/base';
import {
API_CTRL_SYSTEM_MODULES,
API_CTRL_SYSTEM_RUNTIME_INFO,
API_CTRL_SYSTEM_RUNTIME_NODE,
API_CTRL_SYSTEM_RUNTIME_NODES, API_CTRL_SYSTEM_STORAGES,
API_CTRL_SYSTEM_WORKERS,
C_API,
K_ROUTE_CON... |
import { Injectable, InternalServerErrorException, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { CreateCathegoriesDepenseDto } from './dto/create-cathegories-depense.dto';
import { UpdateCathegoriesDepenseDto } from './dto/update-cathegories-depense.dto';
import... |
/*
* 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 React, { FunctionComponent } from 'react';
import PropTypes from 'prop... |
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.2.4" name="kenny-racing-tileset-objects" tilewidth="448" tileheight="256" tilecount="39" columns="0">
<grid orientation="orthogonal" width="1" height="1"/>
<tile id="0">
<image width="165" height="99" source="Objects/arrow_white.png"/>
<... |
import { ContentType } from "contentful";
interface Options {
namespace?: string;
}
export default function renderFieldsOnly(contentTypes: ContentType[], { namespace }?: Options): Promise<string>;
export {}; |
import extractRadii from '../../src/extractor/extractRadii'
import { tokenCategoryType } from '../../types/tokenCategory'
import { tokenExportKeyType } from '../../types/tokenExportKey'
import { customTokenNode } from './data/customTokenNode.data'
describe('extracting radii', () => {
const nodeArray = [
customTo... |
export const base64ToObjectURL = (base64: string): string => {
if(base64){
let arrayBufferView = Uint8Array.from(Buffer.from(base64, "base64"), c => c);
let blob = new Blob( [ arrayBufferView ], { type: "image/jpeg" } );
let objectURL = URL.createObjectURL(blob);
return objectURL;
... |
import React from 'react';
import { Container } from './styles';
const MainView: React.FC = () => {
return (
<Container>
<span>Dados tela selecionada</span>
</Container>
);
};
export default MainView; |
export class ContentAny {
/**
* @param {Array<any>} arr
*/
constructor(arr: Array<any>);
/**
* @type {Array<any>}
*/
arr: Array<any>;
/**
* @return {number}
*/
getLength(): number;
/**
* @return {Array<any>}
*/
getContent(): Array<any>;
/**
... |
export const {
abs, acos, acosh, asin, asinh, atan, atan2, atanh,
cbrt, ceil, clz32, cos, cosh, exp, expm1, floor,
fround, hypot, imul, log, log10, log1p, log2,
max, min, pow, round, sign, sin, sinh,
sqrt, tan, tanh, trunc
} = Math |
export type KualaOrLumpur = 'Kuala' | 'Lumpur'; |
/*
* 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 { RuleAlertAction } from '../../../../common/detection_engine/types';
... |
import { KeycloakInstance } from 'keycloak-js'
import { toRefs, Ref } from 'vue'
import { getKeycloak } from './keycloak'
import { KeycloakState, state } from './state'
import { isNil } from './utils'
export interface KeycloakComposable {
isAuthenticated: Ref<boolean>
hasFailed: Ref<boolean>
isPending: Ref<boole... |
/**
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { ElementDefinition } from './elementDefinition';
import { Extension } from './extension';
/**
... |
import { ResourceBase } from '../resource';
import { Value } from '../dataTypes';
export declare class MapConfiguration {
Style: Value<string>;
constructor(properties: MapConfiguration);
}
export interface MapProperties {
Configuration: MapConfiguration;
Description?: Value<string>;
MapName: Value<s... |
import { Component, h, State } from '@stencil/core';
/**
* Icon only
*
* If you pick well descriptive icons, this layout will usually suffice. When
* you specify an `icon`, it will automatically be shown instead of the `title`.
*:::important
* Adding titles for buttons is compulsory. The reason is that when
* o... |
import {Column, Entity, ManyToOne, PrimaryGeneratedColumn} from "typeorm";
import {TestCar} from "./TestCar";
import {EntityBase} from "../../src/core/model/EntityBase";
@Entity()
export class TestCarModel extends EntityBase {
@PrimaryGeneratedColumn("uuid")
id: string;
@Column()
name: string;
@... |
// Type definitions for @ag-grid-community/core v23.1.1
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { IEventEmitter } from "./iEventEmitter";
import { RowNode } from "../entities/rowNode";
import { NumberSequence } from "../utils";
export interface IRowNodeBl... |
import React, { useEffect, useState,FC } from 'react';
import { tableDataType } from './tableData';
import TablePagination from './Pagination';
import Navigation from './Navigation';
import { numberOfPage,search,sorter} from './tableFunctions';
import DropdownPage from './DropDownPage';
import Tables from './Tables';
i... |
export * from './player-form.service'; |
"use strict";
import {logEntryExit} from "../common/Utils";
export {};
import {RESTService} from "../connection/RESTService";
import {XMPPService} from "../connection/XMPPService";
import {ErrorManager} from "../common/ErrorManager";
import {Call} from "../common/models/Call";
import * as VoiceMail from "../common/mo... |
import { NgModule } from '@angular/core';
import { AnimateItemSliding } from './animate-item-sliding/animate-item-sliding';
@NgModule({
declarations: [
AnimateItemSliding
],
exports: [
AnimateItemSliding
]
})
export class DirectivesModule {
} |
import React from 'react'
import { Route } from 'react-router-dom'
export const KeycloakRoute: React.FC<any> = ({ component: Component, ...rest }) => {
return (
<Route
{...rest}
component={Component}
/>
);
}; |
////////////////////////////////////////////////////////////////////////////////
// Model
////////////////////////////////////////////////////////////////////////////////
import {
createId,
DeserializePhase2Func,
IDeserializeResult,
IdString,
ISerializable, ISerializableMap,
ISerialized, ISeri... |
import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { ToastrService } from 'ngx-toastr';
import { CO_CODE } from 'src/app/models/constants';
import { Course } from 's... |
/**
* # Slider Widget
* Shows a slider that can select a continuous or nominal value out of a range
*
* ### Profile
* invoked as `m(Slider, {
* range: [number,number] | string[],
* onchange: (v:number|string) => void
* });`
*
* ### Attributes (node.attrs):
* - `onchange:(v:number|string) => void`... |
type TUserRole = 'admin' | 'manager' | 'employee';
type TUserPosition = 'Software Engineer' | 'QA Engineer' | 'Team Manager';
export { TUserRole, TUserPosition }; |
import express from 'express';
import _ from 'lodash';
import util from 'util';
import { redirects } from '../config';
function handleRedirect(
req: express.Request,
res: express.Response,
next: express.NextFunction
) {
const url = req.url;
const queryIndex = url.indexOf('?');
const query = qu... |
import React from 'react'
import { Graph } from '@antv/x6'
import './app.css'
export default class Example extends React.Component {
private container: HTMLDivElement
componentDidMount() {
const graph = new Graph({
container: this.container,
grid: true,
})
const edge = graph.addEdge({
... |
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
import { GlobalService } from 'src/app/global.service';
import { NotificationModalService } from 'src/app/modals/notification-modal.service';
import { ContactForm } from 'src/app/models/contact-form';
import { FirebaseServi... |
import { useWeb3React } from '@web3-react/core';
import React from 'react';
import ConnectWallet from './ConnectWallet';
interface Props {
color: string;
}
const ForceConnect = ({ color }: Props) => {
const { active } = useWeb3React();
return (
<ConnectWallet
show={!active}
close={() => {
console.log(... |
import {Component} from '@angular/core';
import {HomePage} from '../home/home';
import {SettingsPage} from "../settings/settings";
import {PlaylistPage} from "../playlist/playlist";
@Component({
templateUrl: 'tabs.html'
})
export class TabsPage {
// this tells the tabs component which Pages
// should be each ta... |
import { NumberBetween } from '../../type/number-between.type';
import { ResultCallback } from '../../type/result-callback.type';
export type IsNumberBetween = <Min extends number, Max extends number>(
value: any,
min: Min,
max: Max,
callback?: ResultCallback
) => value is NumberBetween<Min, Max>; |
/*
This class provides an adapter for the Notes module to manipulate files
and folders on the user's local machina via the File System Access API.
More info: https://web.dev/file-system-access/
*/
export default class FileSystemAccessAPIStorageProvider {
constructor(directoryHandle) {
this.#directoryHandle... |
/* tslint:disable:completed-docs component-max-inline-declarations */
import { Component, ViewChild } from "@angular/core";
import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
import { MatButtonModule } from "@angular/material/button";
import { MatIconModule } from "@angular/material/icon";... |
import test from 'ava';
import { MockDynamicContent } from '../DynamicContent.mocks';
import { Webhook } from './Webhook';
test('get webhook by id', async t => {
const client = new MockDynamicContent();
const hub = await client.hubs.get('5b32377e4cedfd01c45036d8');
const result = await hub.related.webhooks.get('... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React, { Component, HTMLAttributes } from 'react'
export interface IPageProps extends HTMLAttributes<HTMLDivElement> {
bottom?: string | number | boolean
top?: string | number | boolean
}
interface IPageState {}
export class Page extends Component<IPageProps, IPageState> {
state = {}
render() {
c... |
/*
* 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 { i18n } from '@kbn/i18n';
import { SampleDataRegistrySetup } from '..... |
<TS language="ne" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>ठेगाना वा लेबल सम्पादन गर्न दायाँ-क्लिक गर्नुहोस्</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { StepThumbnailComponent } from './step-thumbnail.component';
describe('StepThumbnailComponent', () => {
let component: StepThumbnailComponent;
let fixture: ComponentFixture<StepThumbnailComponent>;
beforeEach(async(() => {
Te... |
import { ts, SyntaxKind } from "../../typescript";
import { insertIntoParentTextRange, replaceNodeText, removeCommaSeparatedChild } from "../../manipulation";
import { TypeGuards } from "../../utils";
import { Node, Identifier } from "../common";
import { ImportDeclaration } from "./ImportDeclaration";
export class Im... |
/*!
* Copyright (C) 2018-2019 Silas B. Domingos
* This source code is licensed under the MIT License as described in the file LICENSE.
*/
import { Operator } from '../operator';
/**
* Operation 'Less Than or Equal' interface.
*/
export interface LessThanOrEqual {
/**
* Operation value.
*/
[Operator.Less... |
import React, { useMemo } from "react";
import Paper from "~/components/Paper";
import Tabs from "~/components/Tabs";
import { useRouter } from "next/dist/client/router";
import {
LibraryIcon,
SwitchVerticalIcon,
HomeIcon,
ClipboardListIcon,
} from "@heroicons/react/outline";
export const BottomNavigator: Rea... |
import { ElasticBeanstalk } from "../ElasticBeanstalk";
import { ElasticBeanstalkClient } from "../ElasticBeanstalkClient";
import {
ListPlatformBranchesCommand,
ListPlatformBranchesCommandInput,
ListPlatformBranchesCommandOutput,
} from "../commands/ListPlatformBranchesCommand";
import { ElasticBeanstalkPaginati... |
import { Form, Input, Typography } from 'antd';
import React, { useState } from 'react';
import validate, { ValidationState } from '../helpers/validate';
import type { ApplicationCommand } from '../slash/ApplicationCommand';
import { commandState } from '../recoil';
import { useRecoilState } from 'recoil';
interface ... |
import { Injectable } from '@angular/core';
import { Observable, throwError } from 'rxjs';
import { map, switchMap, debounceTime, catchError } from 'rxjs/operators';
import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http';
import { environment } from '../../Module/environment';
import { Tehsil... |
import Component from '@ember/component';
import ComputedProperty from '@ember/object/computed';
import { inject as service } from '@ember/service';
import RuntimeConfigs from 'portfolio-web/services/runtime-configs';
import { alias } from '@ember-decorators/object/computed';
import NavbarState from 'portfolio-web/serv... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ReactiveFormsModule, FormBuilder } from '@angular/forms';
import { AppFormErrorService } from '@app-seller/shared';
import { RouterTestingModule } from '@angular/router/testing';
import { BrowserModule } from '@angular/platform-browser'... |
import React from 'react';
import { scopedClassMaker } from '../helper/classes';
const sc = scopedClassMaker('puck-layout');
interface Props extends React.HTMLAttributes<HTMLElement> {}
const Footer: React.FunctionComponent<Props> = props => {
const { className, ...rest } = props;
return (
<div className={sc(... |
// * this file is to make sure our text fixtures return expected data, and jeopardize other test suites that depend on these fixtures
import {
platformCoordsXYTestData,
platformCoordsBasisTestData,
platformCoordsTestData,
homeHeightTestData,
b_leg2xTestData,
b_leg3xTestData,
b_leg23yTestData,
l2aTestDa... |
export interface IGetRecordUriResponse {
found: boolean;
uri: number;
message?: string;
}
export interface IWordUrl {
getWebUrl(): string;
}
export interface IWordConnector extends IWordUrl {
getAccessToken(): Promise<string>;
getUri(): Promise<IGetRecordUriResponse>;
setUri(uri: number): Promise<IGetRecordUri... |
import nock from 'nock'
export const mockResponseSuccess = (): nock =>
nock('https://api.satoshitango.com/v3', {
encodedQueryParams: true,
})
.get('/ticker/ARS')
.reply(
200,
(_, request) => ({
data: {
ticker: {
BTC: {
date: '2021-11-30 16:23:04',... |
import * as vscode from 'vscode'
import * as path from 'path'
import * as process from 'process'
import {Commander} from './commander'
import {LaTeXCommander} from './components/commander'
import {Logger} from './components/logger'
import {BuildInfo} from './components/buildinfo'
import {Manager, BuildEvents} from './... |
// @ts-nocheck
/**
* MQTT client (only subscriber for now).
*
* @see https://www.emqx.com/en/blog/connect-to-mqtt-broker-with-websocket
*/
import mqtt from 'mqtt'
/**
* Browser MUST connect to MQTT over WebSocket. Node.js CAN connect over WS OR MQTT directly.
*
* So broker endpoint for node directly woul... |
import { Directive, ElementRef, OnInit } from '@angular/core';
import { NavigationEnd, Router } from '@angular/router';
import { KitPlatformService } from '@ngx-kit/core';
@Directive({
selector: '[appScrollUp]',
})
export class ScrollUpDirective implements OnInit {
constructor(
private router: Router,
priv... |
import type { Main } from "../../main";
import { PolygonDrawer } from "./PolygonDrawer";
import { TriangleDrawer } from "./TriangleDrawer";
export function loadGenericPolygonShape(tsParticles: Main): void {
tsParticles.addShape("polygon", new PolygonDrawer());
}
export function loadTriangleShape(tsParticles: Main... |
import { ChangeDetectionStrategy } from '@angular/core';
import { Input } from '@angular/core';
import { Component } from '@angular/core';
import { BarChart } from '@api/common/status/bar-chart';
/* tslint:disable:template-i18n English only */
@Component({
selector: 'kpn-disk-size-external-chart',
changeDetection:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.