text stringlengths 10 953k |
|---|
import { combineReducers } from 'redux';
import { siteDiffReducer as siteDiff, ISiteDiffState } from './siteDiff';
import { slackReducer as slack, ISlackState } from './slack';
import { workerReducer as worker, IWorkerState } from './worker';
import { githubAssetReducer as githubAsset, IGithubAssetState } from './gith... |
import { computed, inject, unref } from 'vue'
import { isClient } from '@vueuse/core'
import { debugWarn } from '@element-plus/utils/error'
import type { InjectionKey, Ref } from 'vue'
import type { MaybeRef } from '@vueuse/core'
export type ElIdInjectionContext = {
prefix: number
current: number
}
const default... |
/* tslint:disable */
/* eslint-disable */
/**
* giantswarm-cp-client
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.... |
/**
* STANDARD
*/
export interface Position {
line: number; // >= 1
column: number; // >= 0
}
export interface SourceLocation {
source: string | null;
start: number;
end: number;
}
export interface AstNode extends SourceLocation {
type: String
}
export interface Property extends AstNode {
... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faOutdent: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligature... |
/*
* Copyright 2019 NEM
*
* 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 writi... |
import React, { useState, useEffect, useCallback } from "react";
import { NotificationManager } from "react-notifications";
import { useParams } from "react-router-dom";
import { SingleDirectoryPage } from "./SingleDirectoryPage";
import {
PlotsArrayType,
QueuesArrayType,
} from "../../services/PlotsService/types"... |
import {SimpleTileLayer} from '../simple-tile-layer';
import {PolygonDescription} from './node-grid';
export interface BoundaryTracer {
getContour(layer: SimpleTileLayer): PolygonDescription[];
} |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import { Component } from 'react'
import SadFace from 'src/components/icons/sad_face.svg'
import { config } from 'src/config'
import { OnboardingScreenFrame } from 'src/features/onboarding/OnboardingScreenFrame'
import { Font } from 'src/styles/fonts'
import { Stylesheet } from 'src/styles/types'
import { logger } from... |
import { Resolver, Query, Mutation, Args } from '@nestjs/graphql';
import { JokeService } from './joke.service';
import { DeleteResult } from 'typeorm';
import { JokeEntity } from './entities/joke.entity';
import { JokeInput } from './inputs/joke.input';
@Resolver('Joke')
export class JokeResolver {
constructor(priv... |
import { makeStyles, createStyles } from '@material-ui/core/styles';
const headerStyles = makeStyles(theme =>
createStyles({
header: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
padding: '10px 0',
backgroundColor: theme.palette.primary.main,
color:... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Dolittle. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*-----------------------------------------------------------------------------------... |
import { Command } from "@jiman24/commandment";
import { Message } from "discord.js";
import { Player } from "../structure/Player";
export default class extends Command {
name = "profile";
description = "show profile";
aliases = ["p"];
async exec(msg: Message) {
const player = Player.fromUser(msg.author)... |
import { IState } from './Types';
const initialState: IState = {
uploads: [],
};
export default initialState; |
import { TestBed, inject } from '@angular/core/testing';
import { RouterService } from './router.service';
describe('RouterService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [RouterService]
});
});
// it('should be created', inject([RouterService], (service: RouterSe... |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* @interface
* An interface representing ContainerPort.
* The port exposed on the container instance.
*
*/
export interface ContainerP... |
import { runApisInSteps } from "./utils/run-steps"
import * as steps from "./steps"
module.exports = runApisInSteps({
// eslint-disable-next-line @typescript-eslint/naming-convention
"onPluginInit|unstable_onPluginInit": [
steps.setGatsbyApiToState,
steps.setErrorMap,
steps.tempPreventMultipleInstances... |
import * as Expo from 'expo';
import React from 'react';
import { View } from 'react-native';
import App from './App';
import ClientModule from '@restapp/module-client-react-native';
interface AwakeInDevAppProps {
exp: any;
modules: ClientModule;
}
interface AwakeInDevAppState {
isReady: boolean;
}
export defa... |
import 'google-closure-library/closure/goog/i18n/datetimepatternsext';
import alias = goog.i18n.DateTimePatterns_lb_LU;
export default alias; |
import { Result } from '../result'
import PredefinedStatus from '../../consts/consts'
class SendTransaction{
public async sendTransaction(transactionObject:object){
try{
return await (window as any).web3.eth.sendTransaction(transactionObject).then((receipt)=>{
return new Result(PredefinedStatus.SU... |
import { _electron } from '@playwright/test';
export const testUser = {
userName: 'testUser',
sessionid: '05560802be231abc2fbaa860f09da4c2f20dafa4e5f560f77d61c5f587ef2c741f',
recoveryPhrase:
'pinched total ongoing sushi etched rest gone long oilfield incur code grunt code',
};
export const testContactOne = ... |
declare interface IMyApprovalsWebPartStrings {
PropertyPaneDescription: string;
EnvironmentLabel: string;
EnvironmentEmptyError: string;
ApprovalItemsLabel: string;
ApprovalRequestTitleLabel: string;
ApprovalRequestDateLabel: string;
ApprovalRequestUserLabel: string;
}
declare module 'MyApprovalsWebPartS... |
/* eslint-disable no-console */
import { pluginLinkButton, pluginActionButton } from 'wix-rich-content-plugin-button/viewer';
import { pluginCodeBlock } from 'wix-rich-content-plugin-code-block/viewer';
import { pluginDivider } from 'wix-rich-content-plugin-divider/viewer';
import { pluginEmoji } from 'wix-rich-content... |
import * as rfc2047 from "rfc2047";
rfc2047.decode(""); // $ExpectType string
rfc2047.encode(""); // $ExpectType string |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { TodoListModule } from '... |
import {
Context,
Producer,
Identification,
Filter,
Protocol,
} from "../implementation/beacons";
export function emit(
beacon: Protocol.StructA,
consumer: Identification,
filter: Filter,
context: Context,
producer: Producer
): Promise<void> {
return Promise.reject(
... |
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {RecipesPage} from './recipes.page';
const routes: Routes = [
{
path: '',
children: [
{
path: '',
component: RecipesPage
},
{
... |
export class ApiResponse {
public success: boolean;
public error: any;
public status: number;
} |
import { demoTest } from "../../../src/process";
describe("testProcess function", () => {
test("testProcess should return hello world", () => {
expect(demoTest()).toEqual("hello world");
});
}); |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-privacy',
templateUrl: './privacy.component.html',
styleUrls: ['./privacy.component.css']
})
export class PrivacyComponent implements OnInit {
navbarOpen = false;
model: any = {};
toggleNavbar() {
this.navbarOpen = !this.na... |
export * from './AbstractMessageTransform';
export * from './BookBuilder';
export * from './Orderbook';
export * from './RedisBook';
export * from './OrderbookDiff';
export * from './OrderbookUtils';
export * from './StaticCommandSet'; |
import { Component, OnInit } from '@angular/core';
import { AuthService } from '../auth.service';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginComponent implements OnInit {
constructor(public authService: AuthService) {
... |
export function GetCsvScore(data: string, delimiter: string): number {
let score = 0
let lines = data.split(/\r\n|\n|\r/)
if (lines.length > 10) lines.length = 10
lines = lines.filter(line => line !== '')
const delimiterRegexp = new RegExp(`\\${delimiter}`, 'g')
const delimiterOccurances = lines.map(... |
import { FaceExpressions } from '../faceExpressionNet/FaceExpressions';
export declare type WithFaceExpressions<TSource> = TSource & {
expressions: FaceExpressions;
};
export declare function isWithFaceExpressions(obj: any): obj is WithFaceExpressions<{}>;
export declare function extendWithFaceExpressions<TSource>(... |
import React from 'react'
import { graphql } from 'gatsby'
import Image from 'gatsby-image/withIEPolyfill'
import { RippedSection } from '../../components/rippedSection'
import { Wrapper } from '../../components/wrapper'
import { Tag } from '../../components/tag'
import { H2, H3 } from '../../components/typography'
imp... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.1">
<context>
<name>QtWindow</name>
<message>
<source><body bgcolor="#FFFFC0"><p>This is a simplified version of <strong>Clair De La Lune</strong> that uses only the three notes <strong>C D</strong&... |
import { Component, Input, Output } from '@angular/core';
import { DecoratorFunction, StoryContext } from '@storybook/addons';
import { componentWrapperDecorator } from './angular/decorators';
import decorateStory from './decorateStory';
import { StoryFnAngularReturnType } from './types';
describe('decorateStory', ()... |
import {observable, runInAction, action} from 'mobx';
import LocalSketchService from '../services/LocalSketch';
import SketchList from '../models/SketchList';
import SketchItem from '../models/SketchItem';
export default class SketchStore {
@observable selectedSketchIndex: number = 0;
@observable sketchItems: Sket... |
import {
createLatestSpecs,
getPinnedVersion,
getSaveType,
readProjectManifestOnly,
tryReadProjectManifest,
updateToLatestSpecsFromManifest,
} from '@pnpm/cli-utils'
import { Config } from '@pnpm/config'
import PnpmError from '@pnpm/error'
import { filterPkgsBySelectorObjects } from '@pnpm/filter-workspace-... |
import { getFilesInDirectory, getDirectoriesRecursivelyIn, readAllLinesInFile } from '../fs';
import { PathLike, readFileSync, writeFileSync } from 'fs';
import path from 'path';
import { EOL } from 'os';
const reignMapping: Record<string, string> = {
'00-firdousi': 'about',
'01-kaioumors': 'regne-de-kaioumors',
... |
import fc, { Arbitrary, Random } from 'fast-check';
import { mersenne } from 'pure-rand';
import { GraphNode, GraphRelationship } from './all';
//this has become my favorite part a lot of times
//its really made for testing, but, well, human testing is testing
//I'm actually fairly new to fast-check as I have been usi... |
import "../styles/globals.css";
import type { AppProps } from "next/app";
import { ExternalProvider, Web3Provider } from "@ethersproject/providers";
import { Web3ReactProvider } from "@web3-react/core";
import { ICContext, useICContextValues } from "@/ic/context";
import { useInstance } from "@/store/store";
import { P... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PdbPanelComponent } from './pdb-panel.component';
import {SharedModule} from '../../../../../shared/shared.module';
import {GenericTableModule} from '../../../../../tools/generic-table/generic-table.module';
import {BrowserAnimationsMod... |
import { Controller, Get, Post, Request, Body, UseGuards } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
import { User } from './user.entity';
import { UsersService } from './users.service';
@Controller('user')
export class UsersController {
constructor(private usersService: UsersService) {}
... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import { forEachOfArray } from '../collection/for-each';
import { ObjectIteratee } from '../interfaces';
import { keys, keysOfNonArray } from './keys';
/**
* Iterates over own enumerable string keyed properties of an object and invokes `iteratee` for each property. Iteratee functions may exit iteration early by expli... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {DocsComponent} from './docs.component';
describe('DocsComponent', () => {
let component: DocsComponent;
let fixture: ComponentFixture<DocsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations:... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export * from "./authors";
export * from "./tags";
export * from "./menu"; |
import { Input } from '@angular/core';
import { VisualizationBaseComponent } from './visualization-base.component';
export class D3VisualizationBaseComponent<T> extends VisualizationBaseComponent<T>{
makeTranslate(x: number=0, y:number=0): string{
return "translate(" + x + ", " + y + ")"
}
} |
import { addCompareItem } from 'app/compare/actions';
import { settingsSelector } from 'app/dim-api/selectors';
import { useHotkey } from 'app/hotkeys/useHotkey';
import { t } from 'app/i18next-t';
import { DimItem } from 'app/inventory/item-types';
import { moveItemTo } from 'app/inventory/move-item';
import { sortedS... |
import { ChainId, CurrencyAmount, JSBI, Token, TokenAmount, WETH, Pair } from '@uniswap/sdk'
import { useMemo } from 'react'
import { UNI, USDC, USDT, WBTC, DYP } from '../../constants'
// import { DAI, UNI, USDC, USDT, WBTC, DYP } from '../../constants'
import { STAKING_REWARDS_INTERFACE } from '../../constants/abis/s... |
import { ViewEncapsulation } from '@angular/core';
import { UniButtonComponent } from './button.component';
import { UniIconComponent } from '../../utils/icon/icon.component';
import { UniSpinnerComponent } from '../../utils/spinner/spinner.component';
import { storiesOf } from '@storybook/angular';
import { withKnobs... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
import { IonicModule } from '@ionic/angular';
import { KarteKonfliktbew... |
export { peekerate as default } from '../impls/$peekerate/peekerate'; |
// (C) 2021 GoodData Corporation
import { getAccountMenuFeatureFlagsMock, getWorkspacePermissionsMock } from "./mock";
import { generateHeaderMenuItemsGroups } from "../generateHeaderMenuItemsGroups";
describe("generateHeaderMenuItemsGroups", () => {
it("should return dashboards and report items if hidePixelPerfec... |
export { useInterlock } from './useInterlock' |
import React from "react";
import {Meta, Story} from "@storybook/react";
import {Board} from "../../gammon/components/Board";
import {initAbsoluteBoard} from "../../gammon/models/AbsoluteBoardState";
import '../../gammon/components/cubeResponseDialog.css'
import {Dialog, DialogProps} from "../../gammon/components/Dialo... |
import { NgModule } from '@angular/core';
//import { CommonModule } from '@angular/common';
//import { CoreModule } from '../core/core.module';
import { SharedModule } from '../shared/shared.module';
import { QuotesModule } from '../quotes/quotes.module';
import { DashboardComponent } from './dashboard.... |
const comment = (props: Partial<TagProps> | TagChild[] = {}, tags: TagChild[] = []): Tag =>
node("comment", props, tags)
const a = (props: Partial<TagProps> | TagChild[] = {}, tags: TagChild[] = []): Tag =>
node("a", props, tags)
const abbr = (props: Partial<TagProps> | TagChild[] = {}, tags: TagChild[] = []): ... |
import {
Component,
OnInit,
AfterViewChecked,
Input,
ViewChild,
} from "@angular/core";
import { DashboardService } from "../../dashboard.service";
import { Router } from "@angular/router";
import { ToastrService } from "ngx-toastr";
import * as _ from "lodash";
@Component({
selector: "app-home",
template... |
import { MemorySession } from "./Memory";
import store from "store2";
import { AuthKey } from "../crypto/AuthKey";
import bigInt from "big-integer";
export class StoreSession extends MemorySession {
private readonly sessionName: string;
private store: store.StoreAPI;
constructor(sessionName: string, divid... |
// @ts-ignore: package.json will be imported from dist folders
import packageInfo from "../package.json"; // eslint-disable-line
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import {
NODE_REGION_CONFIG_FILE_OPTIONS,
NODE_REGION_CONFIG_OPTIONS,
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTION... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
// Observable class extensions
import 'rxjs/add/observable/of';
// Observable operators
import 'rxjs/add/operato... |
export const environment = {
production: true,
apiPath: 'https://retirement-savings-api.herokuapp.com'
}; |
/**
* Copyright 2018 Twitter, Inc.
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
import stringify = require("fast-stable-stringify");
import * as murmurJs from "murmurhash3.js";
export function murmurhashJsonHexSync(data: any): string {
const inputBuffer = Buff... |
import React from 'react';
import CreateAccountForm from 'components/LoginModal/components/CreateAccountForm';
import { useIntl } from 'react-intl';
import { Container } from './Inscription.style';
import { useHistory } from 'react-router';
import { PATHS } from 'routes';
export const Inscription: React.FunctionCompon... |
import { Injectable } from "@nestjs/common";
@Injectable()
export class ConfigService {
public getExpiresIn = () => Number(process.env.EXPIRES_IN);
public getSecretOrKey = () => process.env.SECRET_OR_KEY || "";
public getBILogin = () => process.env.BI_LOGIN || "";
public getBIPass = () => process.env.B... |
import getDateTimeDictionary from 'src/helpers/getDateTimeDictionary'
/**
* ISO timestamp --> `YYYY.nthQuarter`
*/
const getYearQuarterFromTimestamp = (isoTimestamp: string): string => {
const { year, quarter } = getDateTimeDictionary(new Date(isoTimestamp))
return `${year}.${quarter}`
}
export default getYearQ... |
import { Argv } from 'yargs';
import * as types from './types';
import getCommands from './commands';
import getOptions from './options';
import getBasic from './basic';
export * from './types';
export { getCommands, getOptions, getBasic };
export default (yargs: Argv): types.IShape => {
return {
...getBasic(yargs... |
import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';
//Language
import { Language } from '../../language/language';
import { LanguageService } from '../../language/language.service';
//Objects
import { Company } from '../../objects/company';
import { Exploitation } from '../../objects/... |
interface Position extends Context {
$type: 'fdc3.position';
instrument: Instrument;
holding: number;
} |
import * as React from "react";
import Messages from "../../components/messages";
import Navigator from "../../components/Navigator";
import { createPaginationState, Paginator } from "../../components/Paginator";
import i18n from "../../i18n";
import { maybe } from "../../misc";
import { FormData as AddStaffMemberForm... |
import React from 'react';
import { mount } from '@cypress/react';
import HoverVideoPlayer from 'react-hover-video-player';
import { LoadingOverlay, makeMockVideoSrc } from '../utils';
describe('loadingOverlay', () => {
beforeEach(() => {
// Take manual control of timing so we can manually step through timeouts... |
export interface Mention {
start: number;
end: number;
username: string;
}
export interface Hashtag {
start: number;
end: number;
tag: string;
}
export interface EntityUrl {
start: number;
end: number;
/** format: `https://t.co/[REST]` */
url: string;
expanded_url: string;
/** The possibly tru... |
import { Match, Params, Route, Routes } from './types'
import { Param, pathToRegex } from './pathToRegex'
/**
* Matches a url against a series of routes. Routes can be nested as needed.
* Additional parameters can be passed in to be used with matched callbacks.
*
* @name matchRoute<A>(url: Route, routes: Routes<A... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import * as React from 'react';
import { StandardProps } from '..';
export interface FormLabelProps extends StandardProps<FormLabelBaseProps, FormLabelClassKey> {
component?: React.ReactType<FormLabelBaseProps>;
disabled?: boolean;
error?: boolean;
focused?: boolean;
required?: boolean;
}
export type FormLa... |
import mongoose from 'mongoose';
import { Annonce } from '../annonce';
import { Comment } from '../comment';
it('implements optimistic concurrency control', async (done) => {
// Create an instance of annonce
const annonce = Annonce.build({
id: mongoose.Types.ObjectId().toHexString(),
title: 'Perceuse Bosh ... |
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({name: 'floor'})
export class FloorPipe implements PipeTransform {
transform(input: any, precision: any = 0): number {
const num: number = parseFloat(input);
const prec: number = parseInt(precision, 10);
if (isNaN(num)) return input;
if (isNa... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const GiBladeDrag: IconType; |
import * as React from "react";
import DemoController from "./DemoController";
import demoMask from "./demoMaskedMaze";
export default function App() {
const [showFooter, setShowFooter] = React.useState(false);
const gitHash = (import.meta.env.VITE_NETLIFY_GITHASH ||
import.meta.env.VITE_GITHASH) as string;
... |
import _ from "lodash";
import React from "react";
import { interpolate, strings } from "../../../common/strings";
import { AssetState, IProject } from "../../../models/applicationState";
export interface IStatusBarMetricsProps {
project: IProject;
}
export class StatusBarMetrics extends React.Component<IStatusBa... |
export const product = {
id: '1',
title: 'Coffee mug sin imagen',
// img: './coffee-mug.png'
}
export const product2 = {
id: '2',
title: 'Coffee mug con imagen',
img: './coffee-mug.png'
} |
import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { DeleteAnalyzerRequest } from "../models/models_0";
import {
deserializeAws_restJson1DeleteAnalyzerCommand,
serializeAws_restJson1DeleteAnalyzerCommand,
} from "../protocols/Aws_restJson1";
i... |
/*
* 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 { configSchema } from './config';
describe('config validation', () => ... |
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/en/configuration.html
*/
const { defaults: tsPresets } = require('ts-jest/presets');
import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
// All imported modules in y... |
import * as React from 'react';
import { Pagination } from '@/index';
import { CheckboxProps, DropdownProps, PaginationProps } from '@/index.type';
import { GridCellProps } from './GridCell';
import { sortColumn, pinColumn, hideColumn, getTotalPages, moveToIndex, getSchema } from './utility';
import { debounce } from '... |
import { CommandHandler, EventPublisher, ICommandHandler } from '@nestjs/cqrs';
import { InjectRepository } from '@nestjs/typeorm';
import { RpcException } from '@nestjs/microservices';
import { ItemEntity } from '@infrastructure/entities';
import { ItemRepository } from '@domain/repositories';
import { ItemWriteRepos... |
export const childrensSchema = {
type: 'array',
items: {
$ref: '#components/schemas/children'
}
} |
import "./style.css";
import { get } from "./api";
import { formatUnixTime, getDomainFromUrl, getTimeSinceUnix } from "./util";
const topstories = document.getElementById("topstories");
const addItem = (post: number) => {
get(`https://hacker-news.firebaseio.com/v0/item/${post}.json`).then(
(res: {
id: num... |
import {browser, by, element} from 'protractor';
export class AppPage {
async navigateTo(): Promise<unknown> {
return browser.get(browser.baseUrl);
}
async getTitleText(): Promise<string> {
return element(by.css('app-root h1')).getText();
}
} |
export interface Curso {
id: number;
nombre: string;
detalle: string;
created_at: string;
updated_at: string;
} |
/*
* Copyright 2020 Hyperledger Cactus Contributors
* SPDX-License-Identifier: Apache-2.0
*
* LPInfoHolder.ts
*/
import { DBAccess } from './DBAccess';
const fs = require('fs');
const path = require('path');
const config: any = JSON.parse(fs.readFileSync(path.resolve(__dirname, "../../config/default.json"), 'utf... |
// Copyright (c) 2021, NVIDIA CORPORATION.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
import { ConnectionService } from '@sunbird/offline';
import { Component, OnInit, OnDestroy, OnChanges, Input, EventEmitter, Output } from '@angular/core';
import { ActivatedRoute, Router, NavigationStart, NavigationEnd } from '@angular/router';
import { PublicPlayerService } from '@sunbird/public';
import {
ConfigSe... |
export declare function isSameYear(date1: Date, date2: Date, timeZone?: string): boolean;
//# sourceMappingURL=is-same-year.d.ts.map |
import { AuthGuardCustomer } from './auth-guard-customer';
describe('AuthGuardCustomer', () => {
let authGuardCustomer;
let authService;
let router;
beforeEach(() => {
authService = jasmine.createSpyObj('authService', ['isLoggedIn', 'hasRole']);
authService.hasRole.and.callFake(function(role) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.