text stringlengths 10 953k |
|---|
import { useFruitManageHandler } from "../utils/useFruitManageHandler";
import { Fruit } from "./mocks/contentModels";
import { setupContentModelGroup, setupContentModels } from "../utils/setup";
import { useContentGqlHandler } from "../utils/useContentGqlHandler";
const appleData: Fruit = {
name: "Apple",
isS... |
import React from 'react'
import { render, screen, fireEvent } from '@testing-library/react'
import { Plus } from 'react-feather'
import { Button } from '../src'
test('renders children(text) correctly', () => {
render(<Button type="button">Button</Button>)
expect(screen.getByRole('button')).toHaveTextContent('But... |
import { ApolloServer } from "apollo-server-lambda"
import { resolvers } from "./src/resolvers"
import { typeDefs } from "./src/typeDefs"
const server = new ApolloServer({
typeDefs,
resolvers,
// @ts-ignore
context: ({ event, context }) => ({
headers: event.headers,
functionName: context.functionName,
... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as path from 'path';
import dedent = require('dedent');
import {ExecaReturnValue, sync as spawnSync}... |
/*
The MIT License
Copyright (c) 2017-2019 EclipseSource Munich
https://github.com/eclipsesource/jsonforms
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, inc... |
import { Component, OnInit, HostListener } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { HttpClient } from '@angular/common/http';
import { Validation, ValidationService } from '../service/validation.service';
import { ValidateDialogComponent } from '../validate-dialog/validat... |
import { Animation } from '../../../interface';
/**
* iOS Toast Enter Animation
*/
export function iosEnterAnimation(AnimationC: Animation, baseEl: ShadowRoot, position: string): Promise<Animation> {
const baseAnimation = new AnimationC();
const wrapperAnimation = new AnimationC();
const hostEl = baseEl.host... |
import debounce from 'lodash/debounce';
import flattenDeep from 'lodash/flattenDeep';
import groupBy from 'lodash/groupBy';
import { observable, computed, action } from 'mobx';
import { INJECTOR_TOKEN, Injector, Injectable, Autowired } from '@opensumi/di';
import {
Disposable,
IRange,
URI,
Emitter,
AppConfig... |
import GoogleStrategy from '../strategies/ScratchGoogle.ts';
import Dashport from '../dashport.ts'
import { assertEquals, assertNotEquals } from "https://deno.land/std@0.87.0/testing/asserts.ts"
const fakeOptions = {
client_id:'1001553106526-ri9j20c9uipsp6q5ubqojbuc5e19dkgp.apps.googleusercontent.com',
redirect_ur... |
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "@/utils/tcbEnv";
import "@/icons";
import SvgIcon from "@/components/SvgIcon/index.vue";
import "@/styles/index.scss";
const animated = require("animate.css");
const app = createApp(App);... |
import { DataRange } from "./data_range";
import type { Renderer } from "../renderers/renderer";
import type { DataRenderer } from "../renderers/data_renderer";
import { PaddingUnits, StartEnd } from "../../core/enums";
import { Rect } from "../../core/types";
import * as p from "../../core/properties";
import type { P... |
// tslint:disable-next-line:no-var-requires
require('tsconfig-paths/register')
import * as http from 'http'
import app from '../../server'
module.exports = async (): Promise<any> => {
const server = http.createServer(app)
server.listen(3000)
global.__appServer__ = server
} |
//importing hooks
import { useEffect } from 'react';
//importing animation library & styles
import AOS from 'aos';
import 'aos/dist/aos.css';
import '../styles/css/default.css';
//importing components, utils & types
import { AppProps } from 'next/app';
import { NavProvider } from '../context';
function MyApp({ Compone... |
import React from 'react';
import { Button, IconButton } from '@material-ui/core';
import DeleteIcon from '@material-ui/icons/Delete';
import { useAppState, useDbState } from '../../../state';
import { MULTI, SOURCEMAP } from '../../../state/media/media';
import { initialLocalMedia, initialRemoteMedia } from '../../..... |
// 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 writing, software
// distributed... |
import * as React from 'react';
import { IContextualMenuItem } from '@fluentui/react/lib/ContextualMenu';
import { HoverCard, HoverCardType, IExpandingCardProps } from '@fluentui/react/lib/HoverCard';
import { classNamesFunction, find, getNativeProps, buttonProperties } from '@fluentui/react/lib/Utilities';
import { R... |
import * as fs from "fs";
import * as util from "util";
import { warning } from "./utils/logger";
const existsAsync = util.promisify(fs.exists);
const readFileAsync = util.promisify(fs.readFile);
const writeFileAsync = util.promisify(fs.writeFile);
export interface ApplicationConfig {
token : string
// Add yo... |
import React from "react";
import { observer } from "mobx-react";
import { Trans } from "@lingui/macro";
import { TabLayout, TabLayoutRoute } from "../layout/tab-layout";
import { ConfigMaps, configMapsRoute, configMapsURL } from "../+config-maps";
import { Secrets, secretsRoute, secretsURL } from "../+config-secrets";... |
import { useState } from 'react';
export function useSearchDebounce(fetchData, params, ms = 800) {
const [debounceId, setDebounceId] = useState<number>(0);
const searchValue = value => {
if (debounceId) {
clearTimeout(debounceId);
}
const newId = +setTimeout(() => {
fetchData({
par... |
import { TestBed } from '@angular/core/testing';
import { ActivatedRoute, Router } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { ReactiveFormsModule } from '@angular/forms';
import { of } from 'rxjs';
import { ValdemortModule } from 'ngx-valdemort';
import { ComponentTe... |
import { Config, envVars } from "../config"
const setEnvVar = (name : string, value : string) : void => {
process.env[name] = value
}
const settOppNødvendigEnvVariabler = () => {
const nødvedigeMiljøVariabler = [
envVars.azureAppClientId,
envVars.azureOpenidConfigTokenEndpoint,
envVars... |
// eslint-disable-next-line import/prefer-default-export
export { default as getWallets } from './getWallets';
export * from './signature'; |
import { CommandSet } from 'pip-services3-commons-nodex';
import { ICommand } from 'pip-services3-commons-nodex';
import { Command } from 'pip-services3-commons-nodex';
import { ObjectSchema } from 'pip-services3-commons-nodex';
import { FilterParamsSchema } from 'pip-services3-commons-nodex';
import { PagingParamsSche... |
import * as React from 'react';
import { Link } from 'react-router-dom';
import { Header } from '@fluentui/react';
import { CodeSnippet } from '@fluentui/docs-components';
import ComponentPropsTable from '../components/ComponentDoc/ComponentPropsTable';
import DocPage from '../components/DocPage';
import { code, link ... |
import React, { ReactChild, useState } from "react";
import { ProfileHeaderWrapper } from "./ProfileHeaderWrapper";
import { Button } from "./Button";
import { UserBadge } from "./UserBadge";
import { SingleUser } from "./UserAvatar/SingleUser";
import {
SolidCompass,
SolidFriends,
SolidMessages,
SolidPersonAdd... |
import React, { useEffect, ReactNode } from 'react'
import { Link } from 'react-router-dom'
import 'default-passive-events'
import { Tooltip } from 'antd'
import Content from '../../components/Content'
import {
getStatisticAddressCount,
getStatisticCellCount,
getStatisticTransactionCount,
getStatisticAddressBal... |
/**
* @typedef {object} PostProcessingSchema
*
* Declare Indexable Types
* when PostProcessingSchema is indexed with a string, it will return object
* @param {string} key is always string type
*
*/
export interface PostProcessingSchema {
[key: string]: {
[key: string]: any
}
} |
import { Segment } from "./loader-interface";
import { SegmentsStorage } from "./hybrid-loader";
export class SegmentsMemoryStorage implements SegmentsStorage {
private cache: Map<
string,
{ segment: Segment; lastAccessed: number }
> = new Map();
constructor(
private settings: {
... |
import { Component, OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
import { DataService } from '../../../../shared/data/data.service';
import { Stock, ClientBasicInfo, Client } from '../../../../shared/interfaces/ng-interfaces';
import { GlueService } from '../../../../shared/data/glue.service';
@Compone... |
/*
* @Description: 项目类型声明
* @Author:
*/
declare module '*.svg'
declare module '*.png'
declare module '*.jpg'
declare module '*.jpeg'
declare module '*.gif'
declare module '*.bmp'
declare module '*.tiff'
declare module '*.yaml'
declare module '*.json'
declare module 'vue-count-to' |
import { rem, themed } from '@heathmont/moon-utils';
import styled from 'styled-components';
const ToastAction = styled.p<{ actionColor: any }>(
({ actionColor, theme }) => ({
display: 'block',
color: themed('color', actionColor)(theme) || theme.colorNew.hit,
fontSize: rem(14),
lineHeight: rem(20),
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { expect } from 'chai';
import { getSerializableResponse, GuidGenerator, ResponseWithBodyType } from 'common';
import { inject } from 'inversify';
import { OnDemandPageScanRunResultProvider, WebApiErrorCode } from 'se... |
/**
* Copyright © 2020 Johnson & Johnson
*
* 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 i... |
import fs from 'fs'
import path from 'path'
import glob from 'fast-glob'
import {
// createDebugger,
isExternalUrl,
asyncReplace,
cleanUrl,
generateCodeFrame,
isDataUrl,
isObject,
normalizePath,
processSrcSet
} from '../utils'
import { Plugin } from '../plugin'
import { ResolvedConfig } from '../confi... |
import { Card } from "azure-devops-ui/Card";
import { ObservableValue } from "azure-devops-ui/Core/Observable";
import { ISimpleListCell } from "azure-devops-ui/List";
import { MenuItemType } from "azure-devops-ui/Menu";
import {
IStatusProps,
Status,
Statuses,
StatusSize,
} from "azure-devops-ui/Status";
impor... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About EquiTrader</source>
<translation type="unfinished"/>
</message>
... |
import { GluegunToolbox } from 'gluegun'
module.exports = {
name: 'rules',
alias: [],
description: 'Configure indexing rules',
hidden: false,
dashed: false,
run: async (toolbox: GluegunToolbox) => {
const { print } = toolbox
print.info(toolbox.command?.description)
print.printCommands(toolbox, ... |
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { MultiplayerComponent } from './multiplayer.component';
describe('MultiplayerComponent', () => {
let component: MultiplayerComponent;
let fixture: ComponentFixture<MultiplayerComponent>;
beforeEach(waitForAsync(() => {
... |
import { ensureDirSync, writeFileSync } from "fs-extra";
import { sync as globSync } from "glob";
import { join, parse, resolve } from "path";
import { Options, renderFile } from "pug";
import AbstractBundler from "./AbstractBundler";
export type PugOptions = Options & {
inputdir: string;
outputdir: string;
};... |
interface Route {
path: string;
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
noAuth?: boolean;
}
interface Routes {
[name: string]: Route;
}
const routes: Routes = {
// Auth Endpoints
login: {
path: "/api/v1/auth/login/",
method: "POST",
noAuth: true,
},
token_refresh: {
path... |
import { mobiscroll } from '../core/core';
export class Stepper {
constructor(element: any, settings: any);
} |
import { ChildProcess, spawn, SpawnOptions } from "child_process";
export class CommandFailedError extends Error {
constructor(msg: string, public proc: ChildProcess) {
super(msg);
}
}
export interface RunOptions extends SpawnOptions {
silent?: boolean;
encoding?: string;
ignoreCommandNotFound?: boolean... |
import { Config, browser } from 'protractor';
import { reporter } from './helpers/reporter';
const firefoxConfig = {
browserName: 'firefox',
platform: 'linux',
name: 'firefox-tests',
shardTestFiles: true,
maxInstances: 1
};
const chromeConfig = {
browserName: 'chrome',
name: 'chrome-tests',
shardTestF... |
export interface ProjectFilter {
name?: string;
client_id?: number;
} |
import React from 'react';
import BaseButton from '../../base/base-button';
import BaseTextarea from '../../base/base-textarea';
// types
import { CommentTextAreaPropsType } from './model';
const AddNewCommentArea: React.FC<CommentTextAreaPropsType> = ({
onChange,
value,
onSubmit,
}) => {
const handleSubmit =... |
// tslint:disable
/**
* Evaluation
* This API descripes the online evaluation service, as accessed by the user and organizers.
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not ... |
import {
apply,
branchAndMerge,
chain,
mergeWith,
move,
noop,
Rule,
SchematicContext,
template,
Tree,
url,
} from '@angular-devkit/schematics';
import { names, toClassName, toFileName } from '@nrwl/workspace';
import * as path from 'path';
import { addMethod, addParameterToConstructor, insert } f... |
// *** 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! ***
// Export members:
export * from "./applicationGateway";
export * from "./expressRouteCircuit";
export * from "./expressRouteCircuitAuthorization";
export * from ".... |
import React, { useState } from 'react'
import { View, Text, Image, Linking } from 'react-native'
import { RectButton } from 'react-native-gesture-handler'
/* Banco de dados modo texto. */
import AsyncStorage from '@react-native-community/async-storage'
import heartOutlineIcon from '../../assets/images/icons/heart-ou... |
import { DBL_SERVICE, IAdminTestsService, TestDto } from 'src/core'
import { Inject, Injectable, NotFoundException } from '@nestjs/common'
import { DBLService } from 'src/dbl'
import { TestCreateDto } from '../dtos'
import { IPagination, IPaginationList, paginateAndGetMany } from 'src/helpers/helpers'
@Injectable()
ex... |
export { default as Fade, FadeProps } from './Fade' |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Licensed to Ela... |
/** @jsx jsx */
import { getInitialPropsValue } from '@keystone-next/fields-document/src/DocumentEditor/component-blocks/initial-values';
import { FormValueContent } from '@keystone-next/fields-document/src/DocumentEditor/component-blocks/form';
import { useKeyDownRef } from '@keystone-next/fields-document/src/Document... |
import { GetStaticPaths, GetStaticProps, GetStaticPropsContext, GetServerSideProps } from 'next';
import React from 'react';
import axios from 'axios';
import { IProc, IRisk, IRisks } from '../../interfaces/processes.interface';
import { withLayout } from '../../layout/Layout';
import { useRouter } from 'next/router';... |
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
};
export const apiURL = 'https://localhost:4436... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { first, identity } from 'lodash'
import { Observable, zip, of } from 'rxjs'
import { fromFetch } from 'rxjs/fetch'
import { map, switchMap } from 'rxjs/operators'
import { memoizeObservable } from '../../../../../shared/src/util/memoizeObservable'
import { GitLabInfo } from './scrape'
import { checkOk } from '... |
import { Injectable } from '@nestjs/common';
import { IBook } from './books.model'
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
@Injectable()
export class BooksService {
constructor(@InjectModel('Book') private bookModel: Model<IBook>) {}
async getBooks() {
const... |
import {Component, OnInit} from '@angular/core';
import {ItunesService} from "./controller/albums/itunes.service";
import {AppMenuService} from "./controller/appMenu/app-menu.service";
import {AppMenuItem} from "./model/appMenu/app-menu.model";
@Component({
selector: 'app-root',
templateUrl: './app.component.html'... |
import {Component} from 'angular2/core';
@Component({
selector: 'vt-timers-intro',
templateUrl: 'app/Timers/components/intro.component.html',
styleUrls: ['app/Timers/components/intro.component.css']
})
export class TimersIntroComponent {} |
import { Component, OnInit } from '@angular/core';
import { SimpleTimer } from 'ng2-simple-timer';
// import { Component, OnInit, OnDestroy } from '@angular/core';
// import { Router, ActivatedRoute, Params } from '@angular/router';
import { environment as env } from '@env/environment';
import { ROUTE_ANIMATIONS_ELEME... |
declare module 'systemjs/dist/s.min.js' {
/**
* System singleton instance.
*/
export interface System {
/**
* Imports a system module.
*/
import: (endpoint: string) => Promise<any>;
}
} |
import { ValuePair, HashTable } from '@/data-structures'
describe('HashTable', () => {
let hashTable: HashTable<number | string, string>
beforeEach(() => {
hashTable = new HashTable<number | string, string>()
})
test('generate hash code', () => {
expect(hashTable.hashCode(1)).toBe(1)
expect(hashT... |
import * as cxschema from '@aws-cdk/cloud-assembly-schema';
import { Duration, IResource, Resource } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { BaseListener, BaseListenerLookupOptions } from '../shared/base-listener';
import { HealthCheck } from '../shared/base-target-group';
import { Protoc... |
import { Injectable } from '@angular/core';
import {environment} from '../../environments/environment';
import {HttpClient} from '@angular/common/http';
import {QueryService} from '../resource/query-builder/query.service';
import {QueryBuild} from '../resource/query-builder/QueryBuild';
import {Observable} from 'rxjs';... |
import { SetMetadata } from '@nestjs/common';
import { RoleEnum } from './roles.enum';
export const Roles = (...roles: RoleEnum[]) => SetMetadata('roles', roles); |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MedecinlectureComponent } from './medecinlecture.component';
describe('MedecinlectureComponent', () => {
let component: MedecinlectureComponent;
let fixture: ComponentFixture<MedecinlectureComponent>;
beforeEach(async(() => {
... |
// Copyright (c) 2020 Benjamin La Madrid
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import { Inject, Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { DataManagerFormService } from '../../data-manager-form.aservice';
import { Person } from... |
/*
* 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 { SERVER_SIDE_EVENT_COUNT } from '../screens/timeline';
import { logi... |
import {Component, OnInit} from '@angular/core';
import {PackageService} from "../services/package.service";
import {OrderDto} from "../dto-models/order-dto.model";
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
export class HomeComponent implement... |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Rx';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
import { Http, Response} from '@angular/http';
import { SiteRecommendation } from './site-recommendation.model';
import { SiteRecommendationOwner } from './site-recommenda... |
import { store } from "../redux/store";
import { getWebAppConfig } from "../resources/selectors";
import { BooleanConfigKey, NumberConfigKey } from "../config_storage/web_app_configs";
import { edit, save } from "../api/crud";
/**
* HISTORICAL CONTEXT: We once stored user settings (like map zoom level) in localStorag... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GmWeekFilterComponent } from './gm-week-filter.component';
describe('GmWeekFilterComponent', () => {
let component: GmWeekFilterComponent;
let fixture: ComponentFixture<GmWeekFilterComponent>;
beforeEach(async(() => {
TestBe... |
import type { UnityGame } from '@dcl/unity-renderer/src'
import { TRACE_RENDERER } from 'config'
import type { CommonRendererOptions } from './loader'
let pendingMessagesInTrace = 0
let currentTrace: string[] = []
export function traceDecoratorRendererOptions(options: CommonRendererOptions): CommonRendererOptions {
... |
import React, { useEffect, useState, useRef, useReducer } from 'react' // eslint-disable-line
import semver from 'semver'
import { CompilerContainerProps } from './types'
import { ConfigurationSettings } from '@remix-project/remix-lib-ts'
import * as helper from '../../../../../apps/remix-ide/src/lib/helper'
import { c... |
/**
* @license
* Copyright Color-Coding Studio. All Rights Reserved.
*
* Use of this source code is governed by an Apache License, Version 2.0
* that can be found in the LICENSE file at http://www.apache.org/licenses/LICENSE-2.0
*/
namespace sales {
export namespace app {
/** 列表应用-销售退货 */
expo... |
import { style } from 'sku/treat';
import getSize from './getSize';
// Reset the z-index at the parent level to scope
// overrides internally.
export const root = style({
zIndex: 0,
});
export const realField = style({
opacity: 0,
zIndex: 1,
selectors: {
[`&:not(:disabled)`]: {
cursor: 'pointer',
... |
import getRepoFromPath from '../utils/ghPath/getRepoFromPath';
import getUserFromPath from '../utils/ghPath/getUserFromPath';
import isRepoPath from '../utils/ghPath/isRepoPath';
import isUserPath from '../utils/ghPath/isUserPath';
export type RepoAction = (slug: string, data?: any) => void;
export type UserAction = (... |
// import initMap from './sample';
// import { process } from './inject';
import * as sample from './sample';
import { initMap } from './sample';
function ConsoleWrite(x: string): void {
console.log(x);
}
ConsoleWrite('aaaa');
function deadfunction() {
sample.initMap();
}
console.log(process.api); |
import {
Component,
OnInit,
Input,
OnChanges,
ChangeDetectorRef
} from '@angular/core';
import { ROUTE_ANIMATIONS_ELEMENTS } from '../../../core/core.module';
import { PmisService } from '../../../core/services/pmis.service';
import { MatDialog } from '@angular/material';
import { logDialog } from '../bed2/lo... |
import { Serializer } from '../serializer';
import { Engagement, Artifact, EngagementUser } from '../../schemas/engagement';
import { parse, parseISO, isValid } from 'date-fns';
import { LaunchData } from '../../schemas/launch_data';
import { GitCommitJsonSerializer } from '../git_commit/git_commit_json_serializer';
im... |
import SteamAPI from '../index';
test('GetFeaturedCategories', async () => {
const steamApi = new SteamAPI(process.env.STEAM_API || 'key');
const categories = await steamApi.getFeaturedCategories();
expect(categories.status).toBe(1);
expect(categories.specials).toBeDefined();
expect(categories.coming_soon).t... |
import {WindowModel} from "@shared/model/window.model";
export class RestPath {
public static erupt: string = WindowModel.domain + "erupt-api";
public static eruptApp: string = RestPath.erupt + "/erupt-app";
public static tpl: string = RestPath.erupt + "/tpl";
public static build: string = RestPath.eru... |
describe("Setup", () => {
// Different than normal beforeEach because we don't run the fleetctl setup.
beforeEach(() => {
cy.exec("make e2e-reset-db", { timeout: 5000 });
});
it("Completes setup", () => {
cy.visit("/");
cy.url().should("match", /\/setup$/);
cy.contains(/setup/i);
// Page 1... |
/*
* 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 { RouteDependencies } from '../types';
import { registerIndexRoutes }... |
/// <reference path='../Application.ts' />
/// <reference path='../EventTarget.ts' />
/// <reference path='../utils/trottle.ts' />
namespace typedoc
{
/**
* A global service that monitors the window size and scroll position.
*/
export class Viewport extends EventTarget
{
/**
* Th... |
import { Controller, Get } from '@nestjs/common';
@Controller()
export class AppController {
@Get()
getHello(): string {
return 'Hi!';
}
} |
/*!
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import { PropType } from 'vue'
/**
* Creates an anonymous class whose constructor automatically applies default values.
*
* Mostly just used for Vue as the types expect a class. Otherwise one w... |
import { Component } from '@angular/core';
import { NavController, NavParams, LoadingController } from 'ionic-angular';
import { EnquiryDetailsPage } from '../enquiry-details/enquiry-details';
import { Storage } from '@ionic/storage';
import firebase from 'firebase';
import { Observable } from 'rxjs/Observable';
import... |
export * from './copy-file';
export * from './package-json'; |
import { request } from '@octokit/request';
import { getCredential } from './credential';
const username = 'apigithub';
const apigithuburl = `https://${username}@api.github.com`;
void (async () => {
const {password: PAT} = await getCredential(apigithuburl);
await request({
method: 'POST',
url:... |
import { TestBed } from '@angular/core/testing';
import { TableOfContentService } from './table-of-content.service';
describe('TableOfContentService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: TableOfContentService = TestBed.get(TableOfConten... |
import { ErrorHandler, Injectable, NgZone } from '@angular/core'
import { HttpErrorResponse } from '@angular/common/http'
import { MessageService } from 'primeng/api'
@Injectable()
export class ApplicationErrorHandler extends ErrorHandler {
private errors
constructor(private messageService: MessageService, privat... |
import { MdiReactIconComponentType } from './dist/typings';
declare const FlowchartIcon: MdiReactIconComponentType;
export default FlowchartIcon; |
// -- copyright
// OpenProject is an open source project management software.
// Copyright (C) 2012-2020 the OpenProject GmbH
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is a fork of ChiliProject, which i... |
import React, { CSSProperties } from 'react';
import { Col, Row } from '@uiw/react-grid';
import { IProps, HTMLDivProps } from '@uiw/utils';
import { FormFieldsProps } from './Form';
import './style/form-item.less';
export interface FormItemProps<T> extends IProps, HTMLDivProps {
inline?: boolean;
hasError?: boole... |
/**
* @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
*/
// toArray is a temporary function to help in the use of
// ES6 maps and sets when running on node 4, which doesn't
... |
import React from 'react';
import { Wrapper, LeftImage, Text } from '../styles/about.styles';
import { aboutContent, instaAccountLink, instaAccountName } from '../config/teams';
import { Link } from '@material-ui/core';
function about() {
return (
<>
<Wrapper>
<LeftImage src='/images/required/abou... |
import * as ko from 'knockout';
import $ from 'jquery';
import * as countries from './data/countries.json';
import { loadStripe, Stripe, StripeCardElement } from '@stripe/stripe-js';
import { TShirtCartItem } from './TShirtCartItem';
export type TShirtType = {
id: string,
htmlClass: TShirtColor,
name: string,
pric... |
import { Module } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Transport, ClientProxyFactory } from '@nestjs/microservices';
import { EP_SVC_CLIENT } from './ep.constant';
import { EscalationPolicyService } from './ep.service';
const EscalationPolicyProvider = {
provide: EP_SVC_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.