text stringlengths 10 953k |
|---|
// *** 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 { RuleConverter } from "../converter";
export const convertRestrictPlusOperands: RuleConverter = () => {
return {
rules: [
{
ruleName: "@typescript-eslint/restrict-plus-operands",
},
],
};
}; |
import runTestTask from "./shared/testTaskRunner";
runTestTask({
treatErrorsAs: "info",
treatWarningsAs: "errors",
webpackCompilationResult: {
hash: "",
assets: [],
children: [],
chunks: [],
time: 1,
version: "",
errors: [],
warnings: ["warnin... |
import type { Bootstrapper } from "../../Contracts/Foundation/Boostrapper";
import type Application from "../Application";
import Handler from "../Exception/Handler";
class HandleException implements Bootstrapper {
async bootstrap(app: Application) {
app.singleton("ExceptionHandler", Handler);
}
}
export defa... |
import { provideCore, AnswersConfig, AdditionalHttpHeaders } from '@yext/answers-core';
import HttpManager from './http-manager';
import ReduxStateManager from './redux-state-manager';
import AnswersHeadless from './answers-headless';
import { createBaseStore } from './store';
import HeadlessReducerManager from './head... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const FaCrown: IconType; |
export * from "./Button";
export * from "./Input";
export * from "./Spinner";
export * from "./DropDown";
export * from "./Titles";
export * from "./StatusIcon"; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BouwGeld</source>
<translation>बिटकोइन के संबंध में</translation>... |
import React, { Fragment, memo } from 'react';
import { useRef } from 'react';
import { useEffect } from 'react';
import { useCallback } from 'react';
import { createStore, useStore, useStoreSlice, StoreApi, useBindStore, slice } from '../../dist';
import { StoreActions } from '../../dist/types';
import { immerizeActio... |
import { Module } from '@nestjs/common';
import { FeaturesService } from './features.service';
import { FeaturesController } from './features.controller';
import { AccountModule } from '../accounts/accounts.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { FeatureRequestRepository } from './feature.rep... |
import React from 'react';
export interface IProfileParams {
name: string;
username: string;
email: string | null;
newPassword: string;
currentPassword: string;
}
export interface IAvatarButton {
key: string;
child: React.ReactNode;
onPress: () => void;
disabled: boolean;
}
export interface IAvatar {
data:... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { Compu... |
import { PrismaClient } from "@prisma/client";
const prismaClient = new PrismaClient;
export default prismaClient; |
export const product1 = {
id: '1',
title: 'Coffee Mug - no imagen',
// img: './coffee-mug.png'
}
export const product2 = {
id: '2',
title: 'Coffee Mug - imagend',
img: './coffee-mug.png'
} |
import { Moment } from 'moment';
import { IBlog } from 'app/shared/model/blog.model';
import { ITag } from 'app/shared/model/tag.model';
export interface IBlogEntry {
id?: number;
title?: string;
content?: any;
date?: Moment;
blog?: IBlog;
tags?: ITag[];
}
export class BlogEntry implements IBlogEntry {
... |
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 { ErrorHandler } from "./error_handler";
import { Schema } from "./schema";
import { Scope } from "./scope";
import { Token, ValueListObserverDelegate } from "@stimulus/mutation-observers";
export interface ScopeObserverDelegate extends ErrorHandler {
createScopeForElementAndIdentifier(element: Element, iden... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="cs" sourcelanguage="en">
<context>
<name></name>
<message id="general-beam">
<source>BEAM</source>
<translation>BEAM</translation>
</message>
<message id="general-groth">
<source>GROTH</source>
... |
import { FieldError } from '../interface';
export declare function allPromiseFinish(promiseList: Promise<FieldError>[]): Promise<FieldError[]>; |
import { CUSTOM_FEES, TESTNET_URL } from "./CONSTANTS";
const {
EnigmaUtils,
Secp256k1Pen,
SigningCosmWasmClient,
pubkeyToAddress,
encodeSecp256k1Pubkey,
} = require("secretjs");
const fs = require("fs");
const chalk = require("chalk");
require("dotenv").config();
const log = console.log;
const MAX_SIZE = ... |
import { shallow } from "enzyme";
import context from "jest-plugin-context";
import * as React from "react";
import { getStore, mountWrapper } from "shared/specs/mountWrapper";
import { IRepo } from "../../shared/types";
import { CardIcon } from "../Card";
import InfoCard from "../InfoCard";
import CatalogItem, {
IC... |
import { WorkspaceProject } from '@angular-devkit/core/src/workspace';
import { SchematicsException, Tree, Rule } from '@angular-devkit/schematics';
import { getProjectTargetConfigurations } from './project-configurations';
import { getWorkspace } from '@schematics/angular/utility/config';
import { readIntoSourceFile }... |
// @flow
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import * as React from "react";
import * as Common from "../common/common";
declare module "@kiwicom/orbit-components/lib/LazyImage";
interface Image {
"*"?: string;
jpg?: string;
webp?: string;
}
export in... |
/// <reference path="../../../../../typings/d3/d3.d.ts" />
/// <reference path="../../../../../typings/tsd.d.ts" />
/// <reference path="../../../../custom_typings/ng2.d.ts" />
import {ChartItem} from '../chart/chartItem'
import {Chart} from '../chart/chart'
import {Component, View} from 'angular2/angular2';
let tem... |
import { Controller, Get, Post, UseGuards,Request} from "@nestjs/common";
import { AppService } from "./app.service";
import { AuthService } from "./auth/auth.service";
import { JwtAuthGuard } from "./auth/guards/jwt-auth.guard";
import { RbacGuard } from "./auth/guards/rbac.guard";
import { LocalAuthGuard } from "./au... |
/**
* NOTE:
*
* This file is automatically generated by i18n-tools.
* DO NOT CHANGE IT BY HAND or your changes will be lost.
*/
// Italian
export default {
'fabric.editor.action': 'Attività',
'fabric.editor.action.description': 'Crea e assegna elementi di azione',
'fabric.editor.addAltText': 'Testo alternati... |
export interface Meal {
pk: number,
text: string,
num_calories: string,
time_created: string,
updated: string,
}
export interface DateAndMeals {
date: Date,
meals: Meal[],
} |
// Copyright 2017-2022 @polkadot/app-staking authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Option, StorageKey } from '@polkadot/types';
import type { Nominations } from '@polkadot/types/interfaces';
import type { NominatedByMap } from './types';
import { useMemo } from 'react';
import {... |
import React from 'react';
import { Switch, Route, BrowserRouter } from 'react-router-dom';
import Main from '../pages/Main/Main';
import Spells from '../pages/Spells/Spells';
const App = () => (
<div className="App">
<BrowserRouter>
<Switch>
<Route path="/" component={Main} exact />
<Route... |
export default {
data: [
{
id: 1,
project: "Casas 2000",
name: "Maria",
img: "https://scontent.fsyq3-1.fna.fbcdn.net/v/t1.0-1/p160x160/31672375_1849389408456868_20832747459182592_n.jpg?_nc_cat=103&_nc_ht=scontent.fsyq3-1.fna&oh=d25d294ab8d409145560b9462827c717&oe=5D29F967"
... |
import { GET_STARTED_SCREEN } from '../../../containers/GetStartedScreen/constants';
import { onboardingFlowGenerator } from '../onboardingFlowGenerator';
jest.mock('../onboardingFlowGenerator', () => ({
onboardingFlowGenerator: jest.fn(() => 'someScreens'),
}));
it('should delegate to onboardingFlowGenerator', () ... |
/**
* @file 客户端获取会员信息
*/
declare namespace my {
interface IGetAuthUserInfoSuccessResult {
/**
* 用户昵称
*/
readonly nickName: string
/**
* 用户头像链接
*/
readonly avatar: string
}
interface IGetAuthUserInfoOptions {
/**
* 调用成功的回调函数
*/
success?(result: IGetAuthUser... |
import { Component, OnInit } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';
import { Router, ActivatedRoute, ParamMap } from '@angular/router';
import { UsersService } from '../users.service';
import { MyState } from '../store.module';
import * as actions from ... |
import { assert, expect } from "chai";
import {Repository} from "../src/";
// @ts-ignore
import {Guild} from "./entities/Guild";
// @ts-ignore
import {Task} from "./entities/Task";
// @ts-ignore
import {TaskGroup} from "./entities/TaskGroup";
// @ts-ignore
import {User} from "./entities/User";
// @ts-ignore
import {bef... |
import * as XML from 'node-salesforce-connection/xml'
export default async function (conn: any, wsdl: any, method: string, args: any, { headers }: any = {}) {
const httpsOptions = {
host: conn.instanceHostname,
path: wsdl.servicePortAddress,
method: 'POST',
headers: {
'Content-Type': 'text/xml'... |
import { invariant, warning, sprintf, isObject, isObjectEmpty, isNumeric, nullthrows, isBrowser } from '@adeira/js';
invariant(true, 'message');
invariant('true', 'message'); // $ExpectError
warning(true, 'message');
warning('true', 'message'); // $ExpectError
sprintf('Oh, %s', 'yeah!');
sprintf('%j', {});
sprintf(1... |
import { expect, test } from '@oclif/test'
describe('hello', () => {
test
.stdout()
.command(['hello'])
.it('runs hello', ctx => {
expect(ctx.stdout).to.contain('hello world')
})
test
.stdout()
.command(['hello', '--name', 'jeff'])
.it('runs... |
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
import * as path from 'path';
import minimist from 'minimist';
import {KnownError, unreachable} from './error.js';
import type {Config} from './types/config.js';
import {readConfigFileAndWriteSchema} from './config.js';
import {L... |
// @ts-nocheck
import 'core-js';
import 'regenerator-runtime/runtime'; |
/* eslint-disable */
import * as Long from 'long';
import { Writer, Reader, util, configure } from 'protobufjs/minimal';
/**
* A Timestamp represents a point in time independent of any time zone or local
* calendar, encoded as a count of seconds and fractions of seconds at
* nanosecond resolution. The count is ... |
import React, { Component } from "react";
import ReactDropdown from "react-dropdown";
import "./dropdown.scss";
interface DropdownProps {
options: Array<string>;
}
interface DropdownState {
value: string;
}
export class Dropdown extends Component<DropdownProps, DropdownState> {
readonly state = {
value: t... |
import React from 'react';
import baseParse, { attributesToProps } from 'html-react-parser';
const parse = (str?: string, components: any = {}) =>
baseParse(str, {
replace: (domNode: any) => {
const Component = components?.[domNode?.attribs?.component];
if (Component) {
... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HelloWorldComponent } from './hello-world/hello-world.component';
const routes: Routes = [
{ path: 'hello-world', component: HelloWorldComponent }
];
@NgModule({
imports: [RouterModule.forRoot(routes, { useH... |
/* This example requires Tailwind CSS v2.0+ */
import dayjs from 'dayjs'
import React from 'react'
import { useMemo } from 'react'
import { FaSignature } from 'react-icons/fa'
import { useContractStore } from '../../../store/contractStore'
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const classNames... |
import jwt from "jsonwebtoken";
import { NextApiRequest, NextApiResponse } from "next";
import { object, string } from "yup";
import config from "../../../../lib/config";
import UserModel from "../../../../models/user";
import buildRouteHandler, {
handlers,
} from "../../../../util/buildRouteHandler";
const handlers:... |
import { ApiProperty } from '@nestjs/swagger';
import { IsString, MaxLength, MinLength } from 'class-validator';
export class CommentIdParamDto {
@ApiProperty({ type: String, description: 'Comment Id' })
@IsString()
@MinLength(10)
@MaxLength(200)
id: string;
} |
import { Box } from './Box';
import { Dimensions, IDimensions } from './Dimensions';
import { IRect } from './Rect';
export declare class ObjectDetection {
private _score;
private _classScore;
private _className;
private _box;
private _imageDims;
constructor(score: number, classScore: number, cl... |
/// <reference types="react" />
declare const DocumentIcon: () => JSX.Element
export default DocumentIcon |
#!/usr/bin/env node
/**
* @license
* Copyright 2020 Google LLC. 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
*
* ... |
import { GIModel } from '@libs/geo-info/GIModel';
/**
* Return certain value from the model for the flowchart's end node
* @summary Return a specific value
* @param {any[]} __model__ Model of the node.
* @param {number} value Index of the value to be returned.
* @returns {any} Value
*/
export function Return(__... |
export { search } from './search'
export { stream, stream_from_info } from './stream'
export * from './utils' |
import type { DeviceInfo } from '../services'
import { AgentMessage } from '@aries-framework/core'
import { Expose } from 'class-transformer'
import { Equals, IsString } from 'class-validator'
import { DevicePlatform } from '../services'
/**
* Message to set the native device information at another agent for push n... |
declare function pathExists(path: string): PromiseLike<boolean>;
declare namespace pathExists {
export function sync(path: string): boolean;
}
export = pathExists; |
import { v20180614 } from "./v20180614"
export const iotcloud = {
v20180614: v20180614,
} |
/**
* @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
*/
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-comp-2677',
templateUrl: './comp... |
export function charCodeHexString(s: string) {
return s
.split('')
.map(s => s.charCodeAt(0).toString(16))
.map(n => `\\u${n}`)
.join('')
}
/** List given enum keys as array */
export function enumKeys(anEnum: any): string[] {
const a = []
for (let i in anEnum) {
a.push(i)
}
return a
}
/... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MyChatComponent } from './my-chat.component';
describe('MyChatComponent', () => {
let component: MyChatComponent;
let fixture: ComponentFixture<MyChatComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
... |
import { IEscapeSequenceEncoder } from '../../../../interfaces/utils/IEscapeSequenceEncoder';
/**
* SelfDefendingTemplate. Enters code in infinity loop.
* Notice, that second and third call to recursiveFunc1('indexOf') has cyrillic `е` character instead latin
*
* @returns {string}
*/
export function SelfDefending... |
import { MailerModule } from '@nestjs-modules/mailer';
import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter';
import { Module } from '@nestjs/common';
import { MailService } from './mail.service';
import { join } from 'path';
import { ConfigService } from '@nestjs/config';
@Module... |
import {find, pull} from 'lodash';
import {utils, srv} from '../../core';
const {uuid} = utils;
const {EventEmitter} = srv.eventEmitter;
export class Item {
private parent: Folder;
private readonly eventEmitter;
constructor(private readonly id: string, private readonly name: string, private readonly type: stri... |
import { Component } from '@angular/core';
import { NzCascaderOption } from 'ng-zorro-antd/cascader';
const options = [
{
value: 'zhejiang',
label: 'Zhejiang',
children: [
{
value: 'hangzhou',
label: 'Hangzhou',
children: [
{
value: 'xihu',
... |
// *** 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";
/*... |
/*
* Autogenerated by schematics
*/
import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
import { IconBase } from '../icon-base';
@Component({
selector: 'sbb-icon-two-speech-bubbles',
// tslint:disable:max-line-length
template: `
<ng... |
import { Component, OnInit } from '@angular/core';
import { TokenService } from '../../services/token.service';
import { Router } from '@angular/router';
import * as Chartist from 'chartist';
import { AuthService } from '../../services/auth.service';
import { Gender } from '../../models/gender';
import { Country } from... |
import React, { Fragment } from "react";
import { useDispatch } from "react-redux";
import { logout } from "../../context/actions/AuthAction";
import { NavLink } from "react-router-dom";
import { ROOT } from "../../path";
const Logout = () => {
const dispatch = useDispatch();
const handleLogout = () => {
disp... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { assert } from "chai";
import * as sinon from "sinon";
import {
deserializationPolicy,
OperationSpec,
OperationRequest,
createSerializer,
CompositeMapper,
FullOperationResponse
} from "../src";
import {
createPipelineReque... |
import { useContextStore } from '@/store/context'
import { useProjectStore } from '@/store/project'
import { useEntity } from '@/use/entity'
import { useEnv } from '@/use/env'
import { useProject } from '@/use/project'
import { useLocalStorage } from '@/use/storage/local'
import { useEventListener, useFullscreen, useNe... |
// eslint-disable-next-line import/no-extraneous-dependencies
import { Request, Response } from 'express';
// eslint-disable-next-line
import mockjs from 'mockjs';
import { parse } from 'url';
import { TableListItem, TableListParams } from '@/services/logs.d';
// mock tableListDataSource
const genList = (current: numb... |
import React, { useCallback, useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { RootState } from "store/configureStore";
import { paletteSelectors } from "store/features/entities/entitiesState";
import { FlatList } from "ui/lists/FlatList";
import { Palette } from "stor... |
/*
* 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 { performance } from 'perf_hooks';
import { AlertServices } from '../.... |
import { Player } from './player';
export class MessagePart {
player: Player;
action: MatchAction;
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import Web3 from 'web3'
import { Callback, JsonRPCRequest, JsonRPCResponse, Provider } from 'web3/providers'
class DebugProvider implements Provider {
constructor(private provider: Provider) {}
send(payload: JsonRPCRequest, callback: Callback<JsonRPCResponse>): any {
console.log('rpc: -> %O', payload)
co... |
/*!
* V4Fire Core
* https://github.com/V4Fire/Core
*
* Released under the MIT license
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/
/**
* [[include:core/log/middlewares/extractor/README.md]]
* @packageDocumentation
*/
export { ExtractorMiddleware } from 'core/log/middlewares/extractor/extractor';
e... |
export const string = {
type: 'inspection:memory',
title: 'System.String at 0x2E9DA9E8',
labels: [
{
name: 'header',
offset: 0,
length: 4,
levelSpan: 1
},
{
name: 'type handle',
offset: 4,
length: 4,
... |
import { Directive, OnInit, Input, EventEmitter, ElementRef, Output } from '@angular/core';
import { NgAceSidebarStateService } from '../services/sidebar-state.service';
import { NgAceSidebar } from './ace-sidebar.directive';
import Util from '@ace/util';
@Directive({
selector: '[NgAceSubmenu]',
exportAs... |
import { Box3, Vector3 } from 'three';
import { XhrRequest, YBFLoader } from './loading';
import { PointAttributes } from './point-attributes';
import { PointCloudOctreeGeometryNode } from './point-cloud-octree-geometry-node';
export declare class PointCloudOctreeGeometry {
loader: YBFLoader;
boundingBox: Box3;... |
import { ElementRef } from "@angular/core"
import { Store, select } from "@ngrx/store"
import { AppState } from "../../stores/reducers"
import { IpcService } from "../../dialogs/dialog-settings/settings-history/ipc.service"
import {
updatePage,
PageModel,
WebviewData,
addPage,
PageState,
selectA... |
import { getCurrentLongDate, getCurrentMonthAndYear } from "../date-utils";
describe("getCurrentLongDate", () => {
let dateSpy: jest.SpyInstance;
beforeAll(() => {
dateSpy = jest
.spyOn(global.Date, "now")
.mockImplementation(() => new Date("2021-06-14 00:00:00").getTime());
});
afterAll(() =... |
import MagicString from 'magic-string';
import { walk } from 'estree-walker';
import Selector from './Selector';
import Element from '../nodes/Element';
import { Node, Ast } from '../../interfaces';
import Component from '../Component';
function remove_css_prefix(name: string): string {
return name.replace(/^-((webki... |
import { InjectionKey } from 'vue'
import { createStore, Store, useStore as baseUseStore } from 'vuex'
import { AllStateTypes, RootStateTypes } from '../types'
import poppy from '@/store/poppy'
import nav from '@/store/nav'
export const store = createStore<RootStateTypes>({
state: {
text: 'This is Vuex Ro... |
import { MockedRequest } from '../handlers/requestHandler';
export declare const augmentRequestInit: (requestInit: RequestInit) => RequestInit;
/**
* Wrapper around the native `window.fetch()` function that performs
* a request bypassing MSW. Requests performed using
* this function will never be mocked.
*/
export ... |
import { DiagnosticSeverity, Dictionary } from '@stoplight/types';
import { IRuleResult } from '@stoplight/spectral-core';
import { groupBySeverity } from './groupBySeverity';
import { pluralize } from './pluralize';
const printSummary = ({
errors,
warnings,
infos,
hints,
}: {
errors: number;
warnings: num... |
export class Alert {
id: number;
device_id: number;
hostname: string;
hardware: string;
rule_id: number;
timestamp: any;
constructor(data) {
this.device_id = data.device_id;
this.hostname = data.hostname;
this.id = data.id;
this.hardware = data.hardware;
... |
import {
_rateLimiterMiddleware,
BURST_LIMIT_MESSAGE,
RATE_LIMIT_MESSAGE,
} from "../rateLimiting"
describe("rate limiting", () => {
let rateLimiter
let burstLimiter
let next
let res
let status
let send
let middleware
beforeEach(() => {
burstLimiter = {
consume: jest.fn(),
}
ra... |
import {
createAction,
props
} from '@ngrx/store';
import { SearchFormQuery } from '../../page/search-form/models/search-form-query.interface';
export const selectDeparture = createAction(
'[Search Result] Select Departure',
props<{ id: string }>()
);
export const searchDepartures = createAction(
... |
import request from "supertest"
import app from "../../app"
import { TestUser } from "../../test/setup"
let cookie: string[]
let user: TestUser
describe("Auth current user", () => {
beforeEach(async () => {
const { testCookie, testUser } = await global.signup()
user = testUser
cookie = testCookie
})
... |
import test from 'ava';
import sinon from 'sinon';
import stubPromise from '../fixtures/stub-promise';
import { serviceUnavailableException, throttlingException, conditionalCheckFailedException } from '../fixtures/aws-error';
import db from '../..';
db.connect();
const Table = db.table('Table');
const fixtureWithRet... |
export type Constructor<T> = new (...args: any[]) => T; |
export const c_nav__scroll_button_before_BorderLeftWidth: {
"name": "--pf-c-nav__scroll-button--before--BorderLeftWidth",
"value": "1px",
"var": "var(--pf-c-nav__scroll-button--before--BorderLeftWidth)"
};
export default c_nav__scroll_button_before_BorderLeftWidth; |
import to from 'await-to-js'
import axios, { AxiosRequestConfig } from 'axios'
import { AppVeyorApiProject } from './getAppVeyorBuildInfo.d'
const API_URI = 'https://ci.appveyor.com/api/projects/'
type Response = {
id: number
status: AppVeyorApiProject['build']['status']
updatedAt: string
}
export default asy... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
<name>Arm_Mine_At_Depth</name>
<message>
<location filename="C:/Users/nightbus/AppData/Local/Temp/_translate2/Arm_Mine_At_Depth.cxx" line="3"/>
<source>Arm Mine At Depth</source>
<translation type="unfinish... |
import { httpHandler } from '@homeservenow/serverless-aws-handler'
import { PipelineEntity } from './../../entities'
import * as service from './../../services/pipeline'
import { resolveCreds } from './../../utils'
import { Pagination } from 'nestjs-typeorm-paginate'
/**
* Return pagination response for signed in use... |
import { NetworkManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkManagerClient";
import { CreateSiteRequest, CreateSiteResponse } from "../models/models_0";
import {
deserializeAws_restJson1CreateSiteCommand,
serializeAws_restJson1CreateSiteCommand,
} from "../protocols/Aws_restJ... |
import os from 'os'
import { Config } from '../config'
export class ConfigUtil {
config: Config
constructor(config: Config) {
this.config = config
}
todoDirPath = (): string => {
return `${os.homedir()}/${this.config.dir}`
}
todoFilePath = (): string => {
return `${this.todoDirPath()}/${thi... |
#!/usr/bin/env node
/**
* Copyright (c) Microsoft 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 ... |
import { InternalServerErrorException, Logger } from "@nestjs/common";
import { User } from "src/auth/user.entity";
import { EntityRepository, Repository } from "typeorm";
import { CreateTaskDto } from "./dto/create-task.dto";
import { GetTasksFilterDto } from "./dto/get-tasks-filter.dto";
import { TaskStatus } from ".... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {Group} from '@mm-redux/types/groups';
import {General} from '../constants';
import {getSuggestionsSplitByMultiple} from './user_utils';
export function filterGroupsMatchingTerm(groups: Array<Group>... |
import { Actions } from '../src/wrapper/wrapper'
import { Result } from '../src/wrapper/actions/result'
import PredefinedStatus from '../src/wrapper/consts/consts'
describe('init', () => {
it('init Funtion', async () => {
try {
let Action = await new Actions();
let init = await Action.init();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.