text stringlengths 10 953k |
|---|
/// <reference path="../../../globals.d.ts"/>
declare module 'goog:goog.module.ModuleLoadCallback' {
import alias = goog.module.ModuleLoadCallback;
export default alias;
}
declare namespace goog.module {
/**
* Class used to encapsulate the callbacks to be called when a module loads.
* @final
... |
export * from './Analytics';
export * from './Provider';
export * from './Providers'; |
import { Subscription, SubscriptionManager } from './types'
import addUpdate from './update/addUpdate'
const MAX_TIMEOUT = 10 * 60 * 60 * 1000 // 10 minutes
export function updateTimeout(subsManager: SubscriptionManager) {
if (subsManager.refreshNowQueriesTimeout) {
clearTimeout(subsManager.refreshNowQueriesTime... |
import { findShapeNames, mkPath } from "compiler/Style";
import consola, { LogLevel } from "consola";
import { checkComp, compDict } from "contrib/Functions";
import {
dummyIdentifier,
findExprSafe,
insertExpr,
isPath,
} from "engine/EngineUtils";
import { mapValues } from "lodash";
// For deep-cloning the tran... |
import {Injectable} from '@nestjs/common';
import {InjectModel} from "@nestjs/sequelize";
import {DirectionModel} from "./directions.model";
import {CreateDirectionDto} from "./dto/create-direction.dto";
import {Sequelize} from "sequelize-typescript";
@Injectable()
export class DirectionsService {
constructor(@Inj... |
import {
Component,
Input,
OnInit,
OnDestroy,
ViewChild,
Inject,
} from "@angular/core";
import { Observable, Subscription, Subject, of, from } from "rxjs";
import { take, map, tap, switchMap, filter, takeWhile } from "rxjs/operators";
import {
LiturgicalDocument,
sortPsalms,
Psalm,
BibleReading,
... |
import { InvalidInput } from "./InvalidInput";
import { NoSuchHealthCheck } from "./NoSuchHealthCheck";
import { NoSuchHostedZone } from "./NoSuchHostedZone";
import { PriorRequestNotComplete } from "./PriorRequestNotComplete";
import { ThrottlingException } from "./ThrottlingException";
export type ListTagsForResource... |
import { MockLambda } from "../../mocks/MockLambda";
import { MockContext } from "../../mocks/MockContext";
import { Lambda } from "../lambda";
import { PreSignUp, PreSignUpTrigger } from "./preSignUp";
describe("PreSignUp trigger", () => {
let mockLambda: jest.Mocked<Lambda>;
let preSignUp: PreSignUpTrigger;
b... |
import { Component, HostListener, Inject, Input, OnInit } from '@angular/core';
import { MatDialog, MatDialogRef, MatSnackBar, MAT_DIALOG_DATA } from '@angular/material';
import { MatDialogModule } from '@angular/material/dialog';
@Component({
selector: 'help-popover-schedule',
templateUrl: './help-popover-schedul... |
import TextField from '@admin/base/fields/TextField.vue'
import EmailField from '@admin/base/fields/EmailField.vue'
import BooleanField from '@admin/base/fields/BooleanField.vue'
import SwitchField from '@admin/base/fields/SwitchField.vue'
import DateField from '@admin/base/fields/DateField.vue'
import SelectField from... |
// *** 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";
/*... |
import { ControlValidatorValidationType } from './control-validator-validation-type';
import { FormControl } from './form-control';
const ALWAYS_FALSE: string = 'Always false';
describe('FromControl', () => {
let formControl: FormControl<any>;
describe('given a FormControl with no validation', () => {
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Log, LogLevel } from '../loggerSystem'
import { SizeFunction, SizeRange } from '../sizeSystem'
import { useSizeWithElRef } from './useSize'
import { ScrollContainerState } from '../interfaces'
export default function useChangedListContentsSizes(
callback: (ranges: SizeRange[]) => void,
itemSize: SizeFuncti... |
import { CommandableLambdaClient } from 'pip-services3-aws-node';
import { IEventGenerationClientV1 } from './IEventGenerationClientV1';
import { EventGenerationV1 } from './EventGenerationV1';
import { EventGenerationStateV1 } from './EventGenerationStateV1';
export declare class EventGenerationLambdaClientV1 extends ... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { ProductErrorCode } from "./../../../types/globalTypes";
// ====================================================
// GraphQL fragment: ProductErrorFragment
// =============================... |
// https://documentation.cpanel.net/display/DD/UAPI+Functions+-+SSL%3A%3Aset_csr_friendly_name
export interface setCsrFriendlyNameParameters {
friendly_name: string;
id: string;
new_friendly_name: string;
}
import { execute } from './index';
export default (param: setCsrFriendlyNameParameters) => {
return exe... |
/*@ qualif Gt10(v:number): 10 < v */
/*@ foo :: () => List<Unique, {v:number| 10 < v}> */
function foo() {
return { data: 12, next: null };
} |
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/authorization
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {Principal, securityId, UserProfile} from '@loopback/security';
import {expect} from '@loopback/testlab';
imp... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-nav-bar',
templateUrl: './nav-bar.component.html',
styleUrls: ['./nav-bar.component.scss']
})
export class NavBarComponent implements OnInit {
h = document.getElementsByClassName('header');
l = document.getElementsByClassName('links... |
import Ajax from "utils/Ajax";
const ajax = new Ajax();
const tagsApi = {
getAll: (): Promise<void> => {
return ajax.get({
endpoint: 'v1/tags'
});
}
};
export default tagsApi; |
import React from 'react';
import { Box, Heading, Flex, Paragraph } from 'theme-ui';
import Image from '../../components/image/Image';
import { Link } from 'wouter';
function NotFoundPage() {
return (
<Flex
p={6}
sx={{
justifyContent: 'center',
alignItems: 'center',
flexDirect... |
import { CancelError } from 'p-cancelable';
import type {
NormalizedOptions,
Options,
Response,
Method,
TimeoutError,
RequestEvents,
} from '../core';
import { RequestError } from '../core';
import PCancelable = require('p-cancelable');
export type ResponseType = 'json' | 'buffer' | 'text';
export interfa... |
export enum FilterDimension {
Task = "task",
Type = "type",
License = "license",
Language = "language"
}
export interface IFilter {
dimension: FilterDimension;
value: string;
// selected: boolean;
}
export function createNewFilter(
dimension: FilterDimension,
value: string
): IFilter {
return {
... |
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license.
*/
import { ActionsHubBase, Action } from "../FluxCommon/Actions";
import { IImageDetails } from "../../Contracts/Types";
export class ImageDetailsActions extends ActionsHubBase {
public static getKey(): string {
... |
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2022 dv4all
//
// SPDX-License-Identifier: Apache-2.0
export default function HelperTextWithCounter({message,count}:{message:string|undefined,count:string}) {
return (
<>
<span className="mr-2">{message}</span>
<span>... |
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'convertToSpaces'
})
export class ConvertToSpacesPipe implements PipeTransform {
transform( value: string, character: string ): string {
return value.replace(character, ' ');
}
} |
import { ApiProperty } from '@nestjs/swagger';
import { Message } from 'src/message/message.entity';
import { RequestReason } from 'src/reasons/entities/requestReason.entity';
import { GetUserDto } from 'src/user/dto/getUserDto.dto';
import { User } from 'src/user/entities/user.entity';
import {
Column,
Entity,
J... |
/**
* Linear gauge spec document
*/
import { Browser, EventHandler, createElement, EmitType } from '@syncfusion/ej2-base';
import { ILoadedEventArgs, ILoadEventArgs, IAnimationCompleteEventArgs } from '../../src/linear-gauge/model/interface';
import { LinearGauge } from '../../src/linear-gauge/linear-gauge';
import {... |
import { Component, OnInit } from '@angular/core';
import { ProfileService } from '../../services/profile.service';
import { HttpClient } from '@angular/common/http';
import { Repo } from 'src/app/repositories';
import { Profile } from 'src/app/users';
import { FormBuilder } from '@angular/forms';
@Component({
selec... |
//should calculate bits difference between two numbers
export default function bitsDiff(num1: number, num2: number) {
let setBitsCount = 0
let number = num1 ^ num2
while (number) {
// Add last bit of the number to the sum of set bits.
setBitsCount += number & 1
// Shift number right by one bit to in... |
"use strict";
import { realpathSync, existsSync } from "fs";
import { resolve } from "path";
import dotenvExpand from "dotenv-expand";
import { config } from "dotenv";
const appDirectory: string = realpathSync(process.cwd());
const resolveApp = (relativePath: string) => resolve(appDirectory, relativePath);
const NO... |
import type { NextApiRequest, NextApiResponse } from 'next';
import axios from 'axios';
import dayjs from 'dayjs';
import crypto from 'crypto';
import { getSession } from 'next-auth/client';
import { prisma } from '../../database/db';
import { Resp, Tresp } from '../../resp/resp';
import credotlog from '../../utils/c... |
import { AmountDto } from './AmountDto';
import { EntityTypeDto } from './EntityTypeDto';
import { KeyDto } from './KeyDto';
import { MultisigAccountModificationTransactionBodyBuilder } from './MultisigAccountModificationTransactionBodyBuilder';
import { NetworkTypeDto } from './NetworkTypeDto';
import { Serializer } f... |
import { CustomerService } from "./CustomerService";
import { Command } from "./framework/Command";
export class AddCustomerCommand implements Command {
private customerService:CustomerService;
constructor(customerService:CustomerService) {
this.customerService = customerService;
}
execute():... |
import * as express from 'express';
const router = express.Router();
module.exports = router;
// Routes
router.get('/', index);
router.get('/teapot', teapot);
router.get('/welcome', welcome);
// Route definitions
function index(req: express.Request, res: express.Response, next: express.NextFunction): void {
res.ren... |
import * as mat from "transformation-matrix";
import { Muzzle } from "./muzzle";
import { Owner } from "./owner";
export class RawMuzzle implements Muzzle {
private readonly owner: Owner;
private readonly name: string;
constructor(owner: Owner, name: string) {
this.owner = owner;
this.name = name;
}
... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const CgChanel: IconType; |
export {
withUndoableReducer,
withReducer,
Dispatcher,
Patcher,
} from "./middleware" |
import { QueryFilter } from "../lib/event-queries";
import { GenericPeriod } from "../lib/period";
import { CalcStartAction } from "../states/group-calcs";
import { QueryCalcTask } from "../tasks/group-query-calc"
export function startGroupCalc(props: {
groupId: string;
period: GenericPeriod;
query: QueryFilter;... |
/*
* Copyright 2016 Palantir Technologies, 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 req... |
import { UserLocationDTO } from './../DTOs/user-location.DTO';
import { UserStatusDTO } from './../DTOs/update-user-status.dto';
import { User } from './../../../db/schemas/user.schema';
import { InjectModel } from 'nestjs-typegoose';
import { Injectable } from '@nestjs/common';
import { ProfilePictureUrlDTO } from '..... |
import { ComputedRef, InjectionKey } from 'vue';
import { Alert } from 'src/utils/composables';
export type Vote = {
[x: string]: number;
};
export type UserComment = {
text: string;
likes: number | Vote;
};
export type Comment = {
[x: string]: UserComment;
};
export interface Card {
id: string;
title: s... |
import { existsSync, mkdirSync } from 'fs';
import { google, sheets_v4 } from 'googleapis';
import ora from 'ora';
import { authorize } from './authorize';
import { retry } from './convert';
import { Options } from './types/options';
import { Response } from './types/response';
import { Spreadsheet } from './types/spr... |
import {
ChangeDetectionStrategy,
Component,
ContentChildren,
Inject,
Input,
QueryList,
} from '@angular/core';
import {NgControl} from '@angular/forms';
import {
EMPTY_QUERY,
getOriginalArrayFromQueryList,
isPresent,
itemsQueryListObservable,
TUI_DEFAULT_IDENTITY_MATCHER,
... |
import { Component } from '@angular/core';
@Component({
selector: 'alveo-ui',
templateUrl: './alveo-ui.component.html',
})
export class AlveoUIComponent {
/* The AlveoUI component serves as the placeholder for the
* router outlet that utilises all of the other routes.
*
* Functionally this component ser... |
import { StateSink, StateReducer } from './types'
import xs from 'xstream'
type ToState = () => StateSink
const toState: ToState =
() => {
const init$ =
xs.of <StateReducer>
( (prev) => (
{ activeRoute: ''
, ...prev
}
)
)
return (
... |
import { IAppConfig } from '../../constants/app-config';
export const EmployeeConfig: IAppConfig = {
canDeleteItems: false
} |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { OrderDetailsComponent } from './order-details.component';
describe('OrderDetailsComponent', () => {
let component: Order... |
import React, { memo, FC, PropsWithChildren } from 'react';
import { compose } from 'redux';
import SC from './styled';
interface Props {}
const Root: FC<PropsWithChildren<Props>> = ({ children }) => (
<SC.Root>{children}</SC.Root>
);
export default compose<FC>(memo)(Root); |
import { memo } from 'react';
import { RouteComponentProps } from '@reach/router';
import WalletSelector from 'components/WalletSelector/WalletSelector';
import Page from 'components/core/Page/Page';
import useIsAuthenticated from 'contexts/auth/useIsAuthenticated';
import { usePossiblyAuthenticatedUser } from 'hooks/... |
import express from 'express';
import { routes } from './routes';
const app = express();
app.use(express.json());
app.use(routes);
export { app as Server }; |
import Check from '@/constants/svg/check.svg';
import { tw } from 'twind';
const FeatureSection = () => (
<section className={tw(`bg-white pb-6`)}>
<div className={tw(`max-w-7xl mx-auto p-4 sm:p-6 lg:p-8`)}>
<div className={tw(`container mx-auto px-6 p-6 bg-white`)}>
<div className={tw(`mb-16 text-... |
/**
* Contains the payload of an {@link AjaxRequest}.
*/
class AjaxRequestMessage {
private readonly data = new Map<string, string>();
public constructor() {
this.setString('i', DOCUMENT_INSTANCE_UUID);
this.setBooleanIfTrue('debug', DEBUG);
this.setBooleanIfTrue('verbose', VERBOSE);
}
public copyNodeVal... |
export const createEmptyElement = ({
nodeName
}: {
nodeName: 'h1' | 'h2' | 'h3' | 'div' | 'code';
}): HTMLElement => {
const element: HTMLElement = document.createElement(nodeName);
element.innerHTML = '\u200B';
return element;
}; |
/*
* 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, { useMemo, useState } from 'react';
import {
isCompletedAnal... |
import { ComponentHarness, TestElement } from "@angular/cdk/testing";
import { WebElement } from "protractor";
export function webElementFromHarness(harness: ComponentHarness) {
console.log(Object.keys(harness));
}
export function webElementFromTestElement(testElement: TestElement) {
return (testElement as any).e... |
declare module "leaflet-geometryutil" {
export function computeAngle(a: L.Point, b: L.Point): number;
export function closest(
map: L.Map,
layer: L.LatLng[] | L.LatLng[][] | L.PolyLine | L.Polygon,
latlng: L.LatLng,
vertices?: boolean
): L.LatLng;
} |
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class ServiceService {
constructor() { }
} |
import { Component } from '@angular/core';
import { UserService } from './providers/user.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
constructor(
private userService : UserService
){
this.getUser... |
export { BootstrapComponent } from './bootstrap.component'; |
import React from 'react'
import '../styles/global.css'
function MyApp({ Component, pageProps }) {
return (
<Component {...pageProps} />
)
}
export default MyApp |
import { NgModule } from '@angular/core';
import { PageNotFound } from './components/page-not-found.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateModule } from '@ngx-translate/core';
@NgModule({
imports: [
// MODULE IMPORTS
NgbModule,
TranslateModule
],
declara... |
import { Component } from '@angular/core';
import { ionicBootstrap, Platform } from 'ionic-angular';
import { StatusBar } from 'ionic-native';
import { HomePage } from './pages/home/home';
import { TestPage } from './pages/test/test';
import { AlertPage} from './pages/alert/alert';
import { ButtonTestPage} from './pag... |
import { pairwise } from 'rxjs/operators';
import { toBoolean } from '../../toBoolean';
import { AkitaPlugin, Queries } from '../plugin';
import { EntityParam } from '../entityCollectionPlugin';
import { logAction } from '../../actions';
export interface StateHistoryParams {
maxAge?: number;
comparator?: (prevStat... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const FiFileText: IconType; |
export interface IMyCalendarMonth {
nbr: number;
name: string;
currMonth: boolean;
selected: boolean;
disabled: boolean;
} |
import Scroller from '../scroller/Scroller'
import { OptionsConstructor } from '../Options'
import { EventEmitter } from '@better-scroll/shared-utils'
jest.mock('../scroller/Scroller')
jest.mock('../Options')
const BScroll = jest.fn().mockImplementation((wrapper, options) => {
options = Object.assign(new OptionsCon... |
import { useRef, useState } from 'react';
export default function useAnimatedToggle() {
const [mounted, setMounted] = useState(false);
const [startAnimatingOut, setStartAnimatingOut] = useState(false);
const toggleRef = useRef(null);
const open = () => {
setMounted(true);
};
const close = () => {
... |
import { Contracts } from "@payvo/sdk-profiles";
import React, { useCallback } from "react";
import tw, { styled } from "twin.macro";
import { RecipientListItem } from "./RecipientList.blocks";
import { RecipientItem, RecipientListProperties } from "./RecipientList.contracts";
import { useColumns } from "./RecipientLi... |
import '@app/pages/_app.css'
import { _App } from '@app/containers'
export default _App.C |
import type { IParticle } from "../Core/Interfaces/IParticle";
import { Container } from "../Core/Container";
export type ShapeDrawerDrawFunction = (
context: CanvasRenderingContext2D,
particle: IParticle,
radius: number,
opacity: number,
delta: number
) => void;
export type ShapeDrawerInitFunctio... |
import {NgModule} from '@angular/core';
import {LoginComponent} from './login/login.component';
import {accountRouting} from './account.routing';
import {PasswordComponent} from './password/password.component';
import {SignUpComponent} from './signup/signup.component';
import {VerifyComponent} from './verify/verify.com... |
import { Socket } from 'net';
import { autoUpdater } from 'electron-updater';
let electronSocket;
export = (socket: Socket) => {
electronSocket = socket;
socket.on('register-autoUpdater-error-event', (id) => {
autoUpdater.on('error', (error) => {
electronSocket.emit('autoUpdater-error' + i... |
// export class LDSSourceVerse extends Verse {
// public verseElement: Element
// public nodeName: NodeName = NodeName.p
// public note: NoteLDSSource
// }
export class BookName {
public startsWith: string = '';
public fullName: string = '';
public chapterStartsWith: string = '';
}
export const bookNames... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import { DeleteClientVpnRoute } from "../model/operations/DeleteClientVpnRoute";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "../types/OutputTypesU... |
import {PropertyDef, PropertyDefBuilder} from "./PropertyDef";
import {ClassArrayBuilder, NestedClassBuilder} from "./ClassBuilder";
import {AsObservable, BehaviorSubjectify} from "../interfaces/interfaces";
import {BehaviorSubject, Observable} from "rxjs";
import {AbstractModel} from "./AbstractModel";
import {Injecta... |
import React from 'react';
import {
Button,
Flex,
FlexItem,
Grid,
GridItem,
Popover,
PopoverPosition,
Text,
TextContent,
TextVariants,
Title,
} from '@patternfly/react-core';
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
import alignment from '@patternfly/react-styl... |
import React from 'react';
import JobOffersHeader from './JobOffersHeader/JobOffersHeader';
import JobOffersDescription from '@/components/JobOffers/JobOffersDescription/JobOffersDescription';
import JobOffersList from '@/components/JobOffers/JobOffersList/JobOffersList';
function JobOffers() {
return (
<main>
... |
// Copyright 2020 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
import { Component, OnInit, Inject } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { INewStockedItemViewModel, ICellDropDownViewModel, ICodeDropDownViewModel } from '../../models/stocked-items.m... |
/**
* Bio component that queries for data
* with Gatsby's StaticQuery component
*
* See: https://www.gatsbyjs.org/docs/static-query/
*/
import React, { FC, CSSProperties } from "react"
import { StaticQuery, graphql } from "gatsby"
import Image from "gatsby-image"
export const Bio: FC = function() {
const wrapp... |
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on Github (readium) in the proj... |
import * as S from "./Quotes.styles";
export type QuotesProps = {
children: React.ReactNode;
};
function Quotes({ children }: QuotesProps) {
return (
<S.Wrapper>
<S.QuotesTop role="img" aria-label="quotes top left" />
{children}
<S.QuotesBottom role="img" aria-label="quotes bottom right" />
... |
// Code generated by github.com/filecoin-shipyard/js-lotus-client-schema/go-tsgen. DO NOT EDIT.
declare type Cid = { '/': string }
declare type APIVersion = { Version: string, APIVersion: number, BlockDelay: number }
declare type BeaconEntry = { Round: number, Data: string }
declare type Ticket = { VRFProof: string }
d... |
import {Utils} from "./sdk/QueueITHelpers";
import {hmacString} from "./sdk/helpers/crypto";
export class QueueITHelper {
static readonly KUP_VERSION: string = "fastly-1.0.0";
static configureKnownUserHashing(): void {
Utils.generateSHA256Hash = hmacString;
}
static addKUPlatformVersion(redir... |
import { Controller, Get } from '@nestjs/common';
@Controller()
export class AppController {
constructor() {}
@Get()
getHello(): string {
return "Visit the /cars route to see a list of cars!"
}
} |
import React from 'react'
import { MultiSelect, MultiSelectOption, MultiSelectProps } from '@sourcegraph/wildcard'
import { BatchChangeState } from '../../../graphql-operations'
export const OPEN_STATUS: MultiSelectOption<BatchChangeState> = { label: 'Open', value: BatchChangeState.OPEN }
export const DRAFT_STATUS: ... |
import { BaseModule } from '..';
import { ETHStateProvider } from './api/csp';
import { EthRoutes } from './api/eth-routes';
import { EthVerificationPeer } from './p2p/EthVerificationPeer';
import { EthP2pWorker } from './p2p/p2p';
export default class ETHModule extends BaseModule {
constructor(services: BaseModule[... |
export const getHomeRoute = () => {
return `/`;
};
export const getLoginRoute = () => {
return `/login`;
};
export const getCreateRequestRoute = () => {
return `/request/create`;
};
export const getEditRequestRoute = (docId: string) => {
return `/request/edit/${docId}`;
};
export const getViewRequestRoute =... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const IoMdBeer: IconType; |
import { Tree } from '@angular-devkit/schematics';
import { createEmptyWorkspace } from '@nrwl/workspace/testing';
import { runSchematic } from '../../utils/testing';
import { readJsonInTree } from '@nrwl/workspace';
describe('karmaProject', () => {
let appTree: Tree;
beforeEach(async () => {
appTree = Tree.e... |
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
export enum OrchestratorType {
Estimator = 'estimator',
SignificanceTests = 'significance tests',
} |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { NgbActiveModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { EventManager } from 'ng-jhipster';
import { Member } from './member.model';
import { MemberPopupService } from './member-po... |
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on Github (readium) in the proj... |
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { first } from 'rxjs/operators';
import { AccountService, AlertService } from '@app/_services';
@Component({ templateUrl: 'register.... |
<TS language="af" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Regsklik om adres of etiket te verander</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
import { Module } from '@nestjs/common'
import { GlobalExceptionFilter } from './global.exception.filter';
@Module({
// @Injectable() classes instantiated within this module.
providers: [
GlobalExceptionFilter,
],
// Subset of 'providers:' exposed/exported to external modules (this module's p... |
export function getFirstElementChild<GElement extends Element>(
node: Element,
): GElement | null {
return node.firstElementChild as (GElement | null);
} |
import { EventEmitter } from 'eventemitter3'
import { Peer } from './peer'
import { ServerMessage } from './servermessage'
import { ConnectionType } from './enums'
export abstract class BaseConnection extends EventEmitter {
protected _open = false
readonly metadata: any
connectionId: string
peerConnection: R... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.