text stringlengths 10 953k |
|---|
/* eslint promise/no-callback-in-promise: 'off' */
import fetchMock from 'fetch-mock';
import callApi from '../../src/callApi/callApi';
import * as constants from '../../src/constants';
import { LOGIN_GLOB } from '../fixtures/constants';
import throwIfCalled from '../utils/throwIfCalled';
import { CallApi } from '../.... |
import { OmitType, PartialType } from '@nestjs/swagger';
import { Category } from '../entities/category.entity';
export class CreateCategoryDto extends PartialType(OmitType(Category, ['id', 'user', 'tasks'])) { } |
"use strict";
import { ParsedDiff } from "diff";
import * as fs from "fs";
import { flatten } from "lodash-es";
import { decompressFromBase64 } from "lz-string";
import * as path from "path";
import { URI } from "vscode-uri";
import { MessageType } from "../api/apiProvider";
import { Container, SessionContainer } from ... |
import {
Component,
OnInit,
QueryList,
ContentChildren,
Input,
Output,
EventEmitter,
AfterContentInit,
} from '@angular/core';
import { TabComponent } from './tab.component';
import { Observable } from 'rxjs';
@Component({
selector: 'd-tabs',
templateUrl: './tabs.component.html',
styleUrls: ['./... |
import ts, { TsConfigSourceFile } from 'typescript';
import { MainRuntime } from '@teambit/cli';
import { Compiler } from '@teambit/compiler';
import { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';
import { SchemaAspect, SchemaExtractor, SchemaMain } from '@teambit/schema';
import { PackageJsonProps } from... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { IdLogisticOperatorsAddComponent } from './id-logistic-operators-add.component';
describe('IdLogisticOperatorsAddComponent', () => {
let component: IdLogisticOperatorsAddComponent;
let fixture: ComponentFixture<IdLogisticOperatorsAddCompon... |
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { ApprovalDialogData } from './approval-dialog-data';
@Component({
selector: 'binance-trader-bot-frontend-approval-dialog',
templateUrl: './approval-dialog.component.html',
styleUrls: ['./approva... |
export default {
system: '系统管理',
location: '区域管理',
metro: '地铁管理',
station: '站点管理',
trading: '商圈管理',
dict: '字典管理',
company: '企业管理',
dept: '部门管理',
menu: '菜单管理',
role: '角色管理',
user: '用户管理',
link: '链接管理',
violation: '违规词库',
}; |
import * as settingConstants from '../_constants/setting.constants'
import * as alertActions from './alert.actions'
import { Dispatch, ActionCreator } from 'redux'
const updateRequest = async (name: string, value: string) => {
return Promise.resolve({ name, value })
}
export const update: ActionCreator<any> = (nam... |
export type FulfillmentStage = 'In production' | 'Quality Control' | 'Incoming' | 'Imported' | 'Cancelled';
export type currency = number;
export interface OrderArrayApiResponse {
totalCount: number;
items: Order[];
}
export interface Order {
id: string;
created: Date;
customer: Customer;
customerName: st... |
import * as ros from '@alicloud/ros-cdk-core';
/**
* Properties for defining a `ALIYUN::UIS::Uis`
*/
export interface RosUisProps {
/**
* @Property description: Description of the instance.
* The length is 2-256 characters and must start with a letter or Chinese, but cannot start with http:// or https:/... |
import axios from 'axios'
import { SessionStorageKeys } from 'sbc-common-components/src/util/constants'
const instance = axios.create()
instance.interceptors.request.use(
config => {
const kcToken = sessionStorage.getItem(SessionStorageKeys.KeyCloakToken)
config.headers.common['Authorization'] = `Bearer ${k... |
import { UndeploymentEntity } from '../../../app/api/deployments/entity'
export class UndeploymentsRepositoryStub {
public async findOne(): Promise<UndeploymentEntity> {
return Promise.resolve({} as UndeploymentEntity)
}
public async updateStatus(): Promise<void> {
return Promise.resolve(... |
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
// modules
import { MultilingualModule } from '../i18n/index';
impo... |
import * as I18n from "i18n";
import * as path from "path";
import { Connection } from "../classes/connection";
import { config } from "./config";
import { api } from "./../index";
import * as dotProp from "dot-prop";
const options = config.i18n;
options.directory = path.normalize(config.general.paths.locale[0]);
I18n... |
import { BankIdClient } from "bankid";
const DELAY_BETWEEN_REQUETS = 10000; // milliseconds
async function main() {
const ip = process.argv[2];
const personalNumber = process.argv[3];
if (!ip || !personalNumber) {
console.log(
"Please provide an IP and personal number connected to a test BankId: `yar... |
/*
Authors : initappz (Rahul Jograna)
Website : https://initappz.com/
App Name : ionic 5 foodies app
Created : 28-Feb-2021
This App Template Source code is licensed as per the
terms found in the Website https://initappz.com/license
Copyright and Good Faith Purchasers © 2020-present initappz.
*/
import { C... |
// Copyright 2018-2020 the oak authors. All rights reserved. MIT license.
import { Application } from "./application.ts";
import { assert, BufWriter, ServerRequest } from "./deps.ts";
const encoder = new TextEncoder();
export interface ServerSentEventInit extends EventInit {
/** An optional `id` which will be sent... |
import {useEffect, useState} from "react";
import {DataResponse} from "../models";
export function useDataStatus<T>(
defaultValue: T,
defaultStatus?: {loading: boolean; error?: string}
): [
T,
{loading: boolean; error?: string},
(data: Promise<DataResponse<T>>) => Promise<void>
] {
const [data, setDataInfo] = u... |
import React from 'react';
import { Callout } from '@blueprintjs/core';
interface ErrorWrapperProps {
children: React.ReactNode[] | React.ReactNode;
}
interface ErrorWrapperState {
error: Error | null;
info: React.ErrorInfo | null;
}
export default class ErrorBoundary extends React.Component<ErrorWrapperProps, ... |
import "jest-extended";
import { BridgechainUpdateTransaction } from "@arkecosystem/core-magistrate-crypto/dist/transactions";
import { BridgechainUpdateBuilder } from "@packages/core-magistrate-crypto/src/builders";
import { IBridgechainUpdateAsset } from "@packages/core-magistrate-crypto/src/interfaces";
import { Ma... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IonicModule } from 'ionic-angular';
import { D255Component } from './d255/d255';
import { DebriefWitnessedComponent } from './debrief-witnessed/debrief-witnessed';
import { LanguagePreferencesComponent } from './language-... |
import * as React from 'react';
import Layout from '../components/Layout';
const NotFoundPage: React.SFC<GatsbyPage> = ({ location }) => (
<Layout location={location}>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn’t exist.</p>
</Layout>
);
export default NotFoundPage; |
import {Component, ViewEncapsulation} from '@angular/core';
import {Logger} from "./@core";
const log = new Logger('AppComponent');
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent {... |
export const bigNumberify = jest.fn((value) => value);
export const poll = jest.fn(() => '');
export const verifyMessage = jest.fn((message, signature) => {
if (!message || !signature) {
throw new Error();
}
return 'mocked-recovered-address';
}); |
import { CHANGE_THEME, CHANGE_LANGAGE } from '.';
export const changeTheme = (theme: string) => ({
type: CHANGE_THEME,
theme,
});
export const changeLangage = (langage: string) => ({
type: CHANGE_LANGAGE,
langage,
}); |
import { shallow, ShallowWrapper } from "enzyme";
import { createElement } from "react";
import { Label, LabelProps } from "../Label";
describe("Label", () => {
const renderLabel = (props: Partial<LabelProps>): ShallowWrapper<LabelProps, any> =>
shallow(createElement(Label, props as LabelProps));
cons... |
/**
* Selection src file
*/
import { Browser} from '@syncfusion/ej2-base';
import { remove } from '@syncfusion/ej2-base';
import { extend, isNullOrUndefined } from '@syncfusion/ej2-base';
import {
ChartLocation, RectOption, CircleOption, withInBounds, getDraggedRectLocation,
removeElement, getElement
} from '... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {connect} from 'react-redux';
import {bindActionCreators, Dispatch} from 'redux';
import {getMyTeams} from 'matterfoss-redux/selectors/entities/teams';
import {GenericAction} from 'matterfoss-redux/t... |
import React from 'react'
import styled from 'styled-components'
import { CreateButton, Theme } from '@waku/vote-poll-sdk-react-components'
type VotingRoomListEmptyProps = {
theme: Theme
account: string | null | undefined
onCreateClick: () => void
onConnectClick: () => void
}
export function VotingRoomListEmp... |
import {ValueTransformer} from '../../base/value-transformer';
export class MockTransformer<I, O extends I> extends ValueTransformer<I, O> {
public override readonly compatibleWith: ValueTransformer<
I,
O
>['compatibleWith'];
public override readonly fromLiteral: ValueTransformer<I, O>['fromLiteral'];
... |
import { TableColumn } from 'typeorm';
export default () => {
return new TableColumn({
name: 'id',
type: 'uuid',
isPrimary: true,
isGenerated: true,
generationStrategy: 'uuid'
});
}; |
/**
* Generate additional configuration files when used for packaging. The file can be configured with some global variables, so that it can be changed directly externally without repackaging
*/
import { GLOB_CONFIG_FILE_NAME, OUTPUT_DIR } from "../constant";
import fs, { writeFileSync } from "fs-extra";
import chalk... |
import Faker from 'faker';
import Engine from '@/engines/Engine';
import Model from '@/models/Model';
import Soukai from '@/Soukai';
import SoukaiError from '@/errors/SoukaiError';
import TestSuite from '../TestSuite';
import { seconds, wait } from '../utils';
import Post from '../stubs/Post';
import User from '../... |
import type { Multiaddr } from 'multiaddr'
import errCode from 'err-code'
import { OPEN, CLOSING, CLOSED } from 'libp2p-interfaces/connection/status'
import type { MuxedStream } from 'libp2p-interfaces/stream-muxer'
import type { ConnectionStat, StreamData } from 'libp2p-interfaces/connection'
import type { PeerId } fr... |
import { BadRequestException, Inject, Injectable } from '@nestjs/common'
import { ModelClass } from 'objection'
import { CrudService } from '../base/crud'
import { CreateTagsDto, Tag, UpdateTagsDto } from './tag.model'
@Injectable()
export class TagsService extends CrudService<Tag> {
constructor(@Inject(Tag.name... |
// import { Singleton } from "../collection/Singleton";
// import { ConfigItem } from "./ConfigItem";
// import { DataProvider } from "./DataProvider";
// import { ArrayUtils } from "../utils/ArrayUtils";
namespace airkit {
/**
* 配置表管理器
* @author ankye
* @time 2017-7-9
*/
export class Config... |
import React from 'react';
import { withRouter, RouteComponentProps } from 'react-router-dom';
import LeftMenu from './components/left-menu/LeftMenu';
import { getRouteConfig } from './config/routeConfig';
import Intro from './Intro';
type Props = RouteComponentProps;
const DevContent: React.FunctionComponent<Props> ... |
import { ILines } from '../../../../../compiler.types';
import { IReferenceProperty } from '../extract-reference-property';
export function compileDefaultReferenceProperty(
referenceProperty: IReferenceProperty,
): ILines {
return [
`// reference '${ referenceProperty.name }'`,
`var ${ referenceProperty.n... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import type {ChildProcess} from 'child_process';
import {spawn} from 'child_process';
import * as path from 'path';
const HOSTED_MODE_SERVER_PATH = path.... |
/* tslint:disable */
/* eslint-disable */
/**
* Samsara API
*
* The version of the OpenAPI document: 2021-06-09
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } fr... |
import { StyleSheet } from 'react-native';
import { Colors, Fonts } from '../../config/Constant';
import { getResponsiveStyle, Platform } from '../../config/Utilities';
export default StyleSheet.create(getResponsiveStyle({
main: {
flex: 1,
paddingTop: Platform.select({ iosx: 80, ios: 40, android: 50 }... |
/**
* Copyright 2014 Google 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 required by appli... |
import { ProcedimentoEspecialService } from './procedimento-especial.service';
import { ItemPrescricaoProcedimento } from './models/item-prescricao-procedimento';
import { PrescricaoMedicaService } from './../prescricao-medica.service';
import { FormBuilder } from '@angular/forms';
import { TIPO_PROCEDIMENTO_ESPECIAL }... |
import { Render } from '../types/animator'
function recursiveRender<T>(
render: Render<T>,
state: T[],
endCallback: Function,
frameIndex = 0,
lastIndex = state.length - 1
): void {
if (frameIndex > lastIndex) return endCallback()
const currentState = state[frameIndex]
requestAnimationFrame(() => {
... |
import { Command, flags } from '@oclif/command'
import { DEFAULT_CONFIG_FILENAME, FabActionsExports } from '@fab/core'
import { JSON5Config } from '../'
import { watcher } from '../helpers/watcher'
export default class Build extends Command {
static description = 'Generate a FAB given the config (usually in fab.conf... |
import React from 'react';
import { Platform, StyleProp, ViewStyle } from 'react-native';
import RMCInputNumber from 'rmc-input-number/lib/index.ios';
import styles from 'rmc-input-number/lib/styles';
import { StepPropsType } from './PropsType';
export interface StepProps extends StepPropsType {
styles?: typeof styl... |
import * as frame from 'tns-core-modules/ui/frame';
import * as fs from 'tns-core-modules/file-system';
import * as types from 'tns-core-modules/utils/types';
import './async-await';
import {
CameraPosition,
Options,
RecordResult,
VideoFormat,
VideoFormatType,
VideoRecorderCommon,
} from './vid... |
import { assert } from 'chai';
import { LyticsUtils } from '../LyticsUtils';
describe('LyticsUtils', function () {
it('should generate a sip hash for the specified value', async function () {
const hashedValue = await LyticsUtils.generateSipHash('test');
assert.equal(hashedValue, -88904640224922189... |
import { Injectable, Inject } from '@nestjs/common';
import { Model } from 'mongoose';
import { User } from './user.interface';
import { UserDto } from './user-info';
import { InjectModel } from '@nestjs/mongoose';
@Injectable()
export class UserService {
users: User[] = [];
constructor(@InjectModel('User') p... |
import type { Router, RouteRecordRaw } from 'vue-router'
import { permissionStore } from '/@/store/modules/permission'
import { PageEnum } from '/@/enums/pageEnum'
import { userStore } from '/@/store/modules/user'
import { PAGE_NOT_FOUND_ROUTE } from '/@/router/routes/basic'
const LOGIN_PATH = PageEnum.BASE_LOGIN
... |
import React, { useState } from 'react';
import { useHistory } from 'react-router-dom';
import { FiArrowLeftCircle } from 'react-icons/fi';
import avatar from '../../assets/avatar.png';
import Button from '../../components/Button';
import {
Container,
Content,
AnimationContainer,
Background,
Historico,
} fr... |
/// <reference path='fourslash.ts'/>
////[1,
//// 2
//// + 3, 4,
//// /*1*/
////[1,
//// 2
//// + 3, 4
//// /*2*/
goTo.marker("1");
verify.indentationIs(4)
goTo.marker("2");
verify.indentationIs(4) |
import { defaultRegionInfoProvider } from "./endpoints.ts";
import { Logger as __Logger } from "../types/mod.ts";
import { parseUrl } from "../url-parser/mod.ts";
import { OrganizationsClientConfig } from "./OrganizationsClient.ts";
/**
* @internal
*/
export const getRuntimeConfig = (config: OrganizationsClientConfi... |
import { PartialType } from "@nestjs/mapped-types";
import { CreateProductDto } from "./create-product.dto";
export class UpdateProductDto extends PartialType(CreateProductDto) { } |
import Terser from "./terser.js";
import Babel from "./babelstandalone.js";
export const minifyJavascript = (code: string): {
code: string;
error?: string;
} => {
const babelled = Babel.transform(
code,
{ presets: [["env"]] },
);
if (babelled.error) {
return babelled.error;
}
return Terser.mi... |
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. 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... |
import browser from 'webextension-polyfill';
export namespace menus {
export const create = browser.contextMenus.create;
export const remove = browser.contextMenus.remove;
// constant
export const ContextOnAll: menus.ContextType[] = ['page', 'frame', 'selection', 'link', 'image', 'video', 'audio'];
export c... |
import { getClassSchema } from 'joi-class-decorators';
import { Constructor } from 'joi-class-decorators/internal/defs';
export const validateJoiClassSchema = <T extends Constructor<any>>(
dto: T,
values: any
): T['prototype'] => {
const { error, value } = getClassSchema(dto).validate(values);
if (error) {
... |
import React from 'react';
import Markdown from '../../components/Markdown';
export default () => {
return (
<Markdown
content={`
There are two ways to access an individual character of a string:
* using the \`charAt[index]\` method
* and using bracket notation such as \`'hello'[1]\`
In both ways, \`'hello'... |
import { Scope, TypeGuards } from 'ts-morph';
import * as ts from 'typescript';
import { getKindName, findChild, findAscendant } from 'typescript-ast-util';
import { CodeFix, CodeFixOptions } from '../codeFixes';
let targetNode: ts.Node
/**
# Description
Change class member to public when user access a private me... |
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported... |
import { expect } from "chai";
import * as _ from "lodash";
import * as nock from "nock";
import { IVoxaAlexaUserProfile } from "../../src";
import {
AlexaEvent,
AlexaPlatform,
IVoxaIntentEvent,
VoxaApp,
VoxaEvent,
} from "../../src/";
import { AlexaRequestBuilder } from "../tools";
import { variables } from ... |
import { join } from 'path'
export const CDN_PATH = join(__dirname, '..', 'cdn')
export const DUMP_PATH = join(CDN_PATH, 'dumps')
export const LEGAL_PATH = join(__dirname, '..', 'legal')
export const BEATSAVER_EPOCH = 1525132800
export const FILE_EXT_WHITELIST = [
'.dat',
'.json',
'.egg',
'.ogg',
'.png',
... |
import { Component, OnInit } from '@angular/core';
import {
FormBuilder,
FormGroup,
Validators
} from '@angular/forms';
@Component({
selector: 'app-demo-form-with-validations-shorthand',
templateUrl: './demo-form-with-validations-shorthand.component.html',
styles: []
})
export class DemoFormWithValidations... |
<TS language="el_GR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Δεξί-κλικ για επεξεργασία της διεύθυνσης ή της ετικέτας</translation>
</message>
<message>
<source>Create a new address</source>... |
import { Parser } from "./parse";
export declare const DefaultBufferLength = 1024;
export declare class Range {
readonly from: number;
readonly to: number;
constructor(from: number, to: number);
}
export declare class NodeProp<T> {
perNode: boolean;
deserialize: (str: string) => T;
constructor(c... |
import {
ChangeDetectionStrategy, ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
HostBinding,
HostListener,
Input,
OnInit,
Output,
ViewEncapsulation
} from '@angular/core';
/**
* Used to represent an option of the select component.
*/
@Component({
selector: 'fd-op... |
import { createContext } from 'react';
export interface GlobalContextProps {
visible: boolean;
loading: boolean;
mountedData: any;
showModal: (Modal: React.ReactNode) => void;
closeModal: (callback?: () => any) => void;
toggleLoading: (flag: boolean) => void;
mountAsyncData: (data: any) => void;
}
// 创建... |
/*
Copyright 2020 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import {setCatchHandler} from 'workbox-routing/setCatchHandler.js';
import {matchPrecache} from 'workbox-precaching/matchPrecache.js';
imp... |
import Point from './point';
import DataBuffer from './data-buffer';
import Mask from './mask';
import Color from './color';
import Rect from './rect';
import * as util from './util';
export enum TileAggregation {
Min,
Mean,
Sum,
Max
}
export default class Tile extends Point {
dataValues: number[]... |
import { GameAsset, IGameAssetOptions, IStrengthOptions } from "../GameAsset";
import { Blueprint } from "../Blueprint/Blueprint";
import { Ship } from "../Ship/Ship";
import { ShipWrapper } from "../Ship/ShipWrapper";
import { MaterialCollection } from "../../GameCollections/MaterialCollection";
import { Asteroid } fr... |
import { Observable } from "rxjs";
export interface CustomControl {
name: string;
type: string;
required: boolean;
default: any;
numberMax?: number;
numberMin?: number;
stringChoices?: any[]
autoCompleteOptions?: Observable<any[]>;
}; |
import type { DataProcessor } from "@u27n/core";
import { mkdir, readFile, writeFile } from "fs/promises";
import { dirname, join } from "path";
import { Disposable, EventEmitter, ExtensionContext, FileSystemWatcher, Uri, workspace } from "vscode";
import { Output } from "./common/output";
import { finished } from "./... |
import { createContext } from 'react';
import { ViewStateType } from '../types';
const ViewsContext = createContext<{ viewsState: ViewStateType }>({
viewsState: {
views: [],
},
});
export default ViewsContext; |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
import { Injectable } from "@angular/core";
import { Observable } from "rxjs";
import { Headers, Http, RequestOptions, Response } from "@angular/http";
import { error } from "util";
import { Provider } from "../../provider/provider";
import "rxjs/Rx";
@Injectable()
export class BookingService {
public constructor(pu... |
/// <amd-module name="@angular/common/locales/es-BO" />
declare const _default: (string | number | (string[] | undefined)[] | number[] | (string | undefined)[] | ((n: number) => number) | {
'AUD': (string | undefined)[];
'BOB': string[];
'BRL': (string | undefined)[];
'CAD': (string | undefined)[];
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*----------------------------------------------------------------... |
import Vue from 'vue';
declare const EVENT_BUS: import("vue/types/vue").CombinedVueInstance<Vue, object, object, object, Record<never, any>>;
export declare function localeChanged(): void;
export { EVENT_BUS }; |
import { Icon1Icon } from '@icon1/core/Icon1Types'
import React from 'react'
import { useIcon1Loader } from '@icon1/react/useIcon1Loader/useIcon1Loader'
import { useIcon1 } from '@icon1/react/Icon1Provider'
export interface WithIconProps {
iconRef: {
provider: string
icon: string
variant?: ... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Router} from '@angular/router'
import { of, Observable } from "rxjs";
import { tap, map } from "rxjs/operators";
@Injectable()
export class AuthService {
private _registerUrl = "https://localhost:8443/api/registe... |
import * as webpack from 'webpack'
import { loadConfig } from 'ssr-server-utils'
import { webpackPromisify } from './utils/promisify'
// fork 后移除 webpack-dev-server 默认的启动 log,只展示服务端 Node.js 的启动监听端口
const WebpackDevServer = require('webpack-dev-server-ssr')
const config = loadConfig()
const startClientServer = async (... |
import { Component, OnInit, Input, Output, OnDestroy, ViewChild, EventEmitter }
from '@angular/core';
import { Subscription } from 'rxjs';
import * as moment from 'moment';
import * as _ from 'lodash';
import * as Fuse from 'fuse.js';
import 'ag-grid-enterprise/main';
import { Router, ActivatedRoute } from '@angular/ro... |
import { Guild, Plugin, Prisma } from '@prisma/client';
import { prisma } from '../../../database/index';
import { ConditionalArray } from '../../../utils/types';
import { includePlugin, IPluginsRepository } from './IPluginsRepository';
class PluginsRepository implements IPluginsRepository {
private repository: Pri... |
let port = process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || process.env.PORT || process.argv[2] || 8765;
let express = require('express');
const cron = require('node-cron');
let Gun = require('gun');
require('isomorphic-fetch');
// require('gun/axe');
let app = express();
app.use(Gun.serve);
app.use(... |
import React from 'react';
import Image from 'antd/lib/image';
import MediaItemInterface from '../../Model/MediaItemInterface';
import SelectedMediaItemInterface from '../../Model/SelectedMediaItemInterface';
import MediaIconHelper from '../../Helper/MediaIconHelper';
import UrlHelper from "@EveryWorkflow/PanelBundle/H... |
export { EnumValues } from './src/enumValues'; |
/**
* This file is auto-generated by the API client generator.
* https://github.com/flowup/api-client-generator
*
* Avoid editing this file manually unless necessary.
* Please report any bugs so they can be addressed in future versions.
*/
/* tslint:disable */
/* eslint-disable */
import { HttpClient, HttpRespo... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { LibraryPlayerComponent } from './library-player.component';
import { TelemetryInteractDirective } from '../../direc... |
import { Story, Meta } from '@storybook/react/types-6-0'
import FormSignIn from '.'
export default {
title: 'Form/FormSignIn',
component: FormSignIn
} as Meta
export const Default: Story = () => (
<div style={{ width: 300, margin: 'auto' }}>
<FormSignIn />
</div>
) |
import * as React from 'react';
import { mount, shallow, ReactWrapper } from 'enzyme';
import { act } from 'react-dom/test-utils';
import Flags, { FlagMap } from './Flags';
import { Alert, Table } from 'reactstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSpinner } from '@fortawesom... |
export class AutoCompleteItem<T> {
public readonly value: T;
public readonly index: number;
public isSelected: boolean;
public isDisabled: boolean;
public isHighlighted: boolean;
public constructor(value: T, index: number, isSelected: boolean, isDisabled: boolean) {
this.value = value;
... |
import * as React from 'react';
import * as classNames from 'classnames';
import { action } from 'mobx';
import { connect } from 'react-redux';
import { Button, PageHeaderToolsItem, Tooltip, Stack, StackItem } from '@patternfly/react-core';
import { TopologyIcon } from '@patternfly/react-icons';
import {
TopologyCont... |
/**
* Constants used by the Rush tool.
*
* @remarks
*
* These are NOT part of the public API surface for rush-lib.
* The rationale is that we don't want people implementing custom parsers for
* the Rush config files; instead, they should rely on the official APIs from rush-lib.
*/
export declare namespace RushC... |
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import { walk } from 'estree-walker';
import { ResolvedConfig } from '../config';
import * as t from '../shar... |
import { send } from '@sapphire/plugin-editable-commands';
import { Message, MessageEmbed } from 'discord.js';
import { RandomLoadingMessage } from './constants';
/**
* Picks a random item from an array
* @param array The array to pick a random item from
* @example
* const randomEntry = pickRandom([1, 2, 3, 4]) //... |
export enum KibanaChartType {
Rate = 'Rate',
Ratio = 'Ratio',
Numeric = 'Numeric',
Time = 'Time',
Timer = 'Timer',
}
export enum KibanaAggregator {
Average = 'Average',
Sum = 'Sum',
Max = 'Max',
Min = 'Min',
Variance = 'Variance',
// Aggregators below not works for Timer type chart
StdDeviation... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { RecuperarcontraseniaComponent } from "../recuperarcontrasenia/recuperarcontrasenia.component";
import { RecepcioncorreoComponent } from "./recepcioncorreo/recepcioncorreo.component";
import { NuevacontraseniaComp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.