text stringlengths 10 953k |
|---|
/// <reference path="react.d.ts" />
import React = __React;
declare module "semanticui-react" {
export function init(component: string): void;
export let config: {
linkElement: any,
i18n: (key: string) => string
};
interface IProps {
classes?: string;
children?: any;
... |
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import {
createRunner,
finalize,
Runner,
throwError,
ThrowError,
} from 'redux-saga-testable';
import { call, Effect, put } from 'redux-saga/effects';
import { fn1, fn2, fn3, UserError } from './helpers/mocks';
describe('runner.run()', () ... |
/** *******************************************************************************************************************
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the Lice... |
import {RootStore} from '../stores';
import {AssetModel, TransferModel} from './index';
const rootStore = new RootStore();
const {transferStore, walletStore} = rootStore;
describe('transfer model', () => {
it('should correctly and automaticaly update qr', () => {
const sut = transferStore.createTransfer();
... |
import * as path from "path";
import * as fs from "fs-extra";
import { print } from "graphql";
import { mergeTypeDefs } from "@graphql-tools/merge";
import { loadFilesSync } from "@graphql-tools/load-files";
import * as cdk from "@aws-cdk/core";
import * as rds from "@aws-cdk/aws-rds";
import * as appsync from "@aws-c... |
import { Component } from '@angular/core';
@Component({
selector: 'single-demo',
templateUrl: './single-demo.html'
})
export class SingleDemoComponent {
public items:Array<string> = ['Amsterdam', 'Antwerp', 'Athens', 'Barcelona',
'Berlin', 'Birmingham', 'Bradford', 'Bremen', 'Brussels', 'Bucharest',
'Bud... |
// import * as cdk from 'aws-cdk-lib';
// import { Template } from '@aws-cdk/assertions-alpha';
// import * as %name.PascalCased% from '../lib/index';
// example test. To run these tests, uncomment this file along with the
// example resource in lib/index.ts
test('SQS Queue Created', () => {
// const app = new cdk.A... |
import Base = require('yeoman-generator');
import { Questions, Answers } from 'yeoman-generator';
import { EventEmitter } from 'events';
import * as inquirer from 'inquirer';
import { Editor } from 'mem-fs-editor';
import Storage = require('yeoman-generator/lib/util/storage');
class MyES2015GeneratorWithFeatures exten... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LoginComponent } from './login/login.component';
import { LogoutComponent } from './logout/logout.component';
import { RouterModule } from '@angular/router';
let routers = [{
path: 'logout',
component: LogoutCom... |
import { Stack } from "@chakra-ui/react";
import GithubSlugger from "github-slugger";
import { NextSeo } from "next-seo";
import { useRouter } from "next/router";
import { createContext, useContext, useMemo } from "react";
import MDXComponents from "@/components/mdx";
import {
DirectoryTree,
SubTree,
defau... |
import messageFactory from '../api/bot/factory/messageFactory';
import FacebookMessageGenerator from '../api/bot/factory/facebookMessengerGenerator';
import WebMessageGenerator from '../api/bot/factory/webMessageGenerator';
import TextMessageGenerator from '../api/bot/factory/textMessageGenerator';
describe('Bot facto... |
import { Component, ViewChild } from '@angular/core';
import { Subject } from 'rxjs';
import { SkyProgressIndicatorComponent } from '../progress-indicator.component';
import { SkyProgressIndicatorActionClickArgs } from '../types/progress-indicator-action-click-args';
import { SkyProgressIndicatorMessage } from '../ty... |
// NOTE: This file is GENERATED from json files in actions/json. Run 'yarn build-actions' to regenerate
import type * as Types from '../constants/types/push'
// Constants
export const resetStore = 'common:resetStore' // not a part of push but is handled by every reducer. NEVER dispatch this
export const typePrefix = ... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
i... |
interface Build {
name: string;
publishDate: number | null;
isPinned: boolean;
}
export default Build; |
// /src/action/bookmark_added/materialiconsoutlined/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgBookmarkAddedOutlined = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24">
<rect fill="none" height="24"... |
/********************************************************************************
* Copyright (C) 2017 Ericsson and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* T... |
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms';
import { HttpClient, HttpHeaders } from '@angular/common/http';
@Component({
selector: 'app-message',
templateUrl: './message-form.component.html',
styleUrls: ['./message-form.component.less']
})
export c... |
import { bnArg, expect, setupContract, fromSigner } from '../../helpers'
describe('MY_PSP1155_BURNABLE', () => {
async function setup() {
return setupContract('my_psp1155_burnable', 'new')
}
it('Burn works', async () => {
const { contract, query, defaultSigner: sender, accounts: [alice] } ... |
import { styled } from 'twin.macro'
import { appear } from '../../theme'
export default styled.div`
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 100%;
background: rgba(0, 0, 0, 0.65);
animation: ${appear} 0.5s linear;
` |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginComponent } from './pages/login/login.component';
import { LogoutComponent } from './pages/logout/logout.component';
import { AuthGuardService } from './services/auth-guard.service';
const routes: Routes = [... |
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FuiSidebar} from './components/sidebar';
import {FuiSidebarContainer} from './components/sidebar-container';
import {FuiSidebarSibling} from './components/sidebar-sibling';
@NgModule({
imports: [
CommonModule
],
dec... |
export const GLOBAL_ROUTES = {
HOME: "/",
LOGIN: "/login",
TEAM: "/team",
PROBLEMS: "/problems",
PROBLEM_DETAILS: "/problems",
API_GUIDE: "/api-guide",
INDIVIDUAL_LEADERBOARD: "/individual-leaderboard",
TEAM_LEADERBOARD: "/team-leaderboard",
TERMS_OF_USE_AND_PRIVACY_POLICY: "/privacy-policy",
OAUTH_CALLBACK: ... |
import {
ComponentFixture,
fakeAsync,
flushMicrotasks,
inject,
TestBed,
tick,
flush,
} from '@angular/core/testing';
import {
ChangeDetectionStrategy,
Component,
Directive,
Inject,
Injector,
NgModule,
TemplateRef,
ViewChild,
ViewContainerRef,
ComponentFactoryResolver
} from '@angular/c... |
export interface Change {
id: string;
title: string;
summaryMarkdown?: string;
releasedAt: Date;
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as React from 'react';
import Box from '@mui/joy/Box';
import Slider from '@mui/joy/Slider';
function valueText(value: number) {
return `${value}°C`;
}
export default function StepsSlider() {
return (
<Box sx={{ width: 300 }}>
<Slider
aria-label="Small steps"
defaultValue={0.000... |
import { styled } from "@mui/material/styles";
import FormControlLabel from "@mui/material/FormControlLabel";
import Switch, { SwitchProps } from "@mui/material/Switch";
import React from "react";
const MaterialUISwitch = styled(Switch)(({ theme }) => ({
width: 62,
height: 34,
padding: 7,
"& .MuiSwitch-switchB... |
import React from 'react';
import cn from 'classnames';
import Dialog from './Dialog';
import './rodal.css';
// env
const IN_BROWSER = typeof window !== 'undefined';
const UA = IN_BROWSER && window.navigator.userAgent.toLowerCase();
const IS_IE_9 = UA && UA.indexOf('msie 9.0') > 0;
class Rodal extends React.Compon... |
import type * as monacoEditorForTypes from "monaco-editor";
import React from "react";
import type ReactMonacoEditorForTypes from "react-monaco-editor";
import { Spinner } from "./Spinner";
export interface CodeEditorProps {
onChange?: (text: string) => void;
text?: string;
readonly?: boolean;
lineWidth?: numb... |
import merge from 'lodash/merge';
import { getTheme } from '@grafana/ui';
import { DataSourceInstanceSettings, GrafanaTheme, GrafanaThemeType, PanelPluginMeta } from '@grafana/data';
/**
* Describes the build information that will be available via the Grafana cofiguration.
*
* @public
*/
export interface BuildInfo... |
// import { CreatePaymentDto } from 'src/payments/dto/CreatePayment.dto';
import { Body, Controller, Get, Inject, Post, Req, Res } from '@nestjs/common';
import { Request, Response } from 'express';
import { CreatePaymentDto } from '../../dto/CreatePayment.dto';
import { PaymentsService } from '../../services/payments/... |
import { broadcastPostWithBeneficiaries } from '../../src/broadcasting/broadcastPostWithBeneficiaries';
import { expect } from 'chai';
import * as nock from 'nock';
describe('broadcastPostWithBeneficiaries', function() {
const accessToken = {
access_token: 'fdsgfdew',
expires_in: 34234,
username: 'whoev... |
import errorImg from "@assets/images/app-install-error.svg";
import { Button, Grid, Typography } from "@material-ui/core";
import Container from "@saleor/components/Container";
import React from "react";
import { FormattedMessage } from "react-intl";
import { useStyles } from "./styles";
interface AppInstallErrorPage... |
import express from "express";
//@tyoes/express
const app = express();
// http://localhost:3000
app.listen(3000, () => console.log("Server is running!")); |
import * as Api from "pokeapi-js-wrapper"; // TODO : Write proper typings
import { Plugin } from "@nuxt/types";
const plugin: Plugin = (_, inject) => {
inject("pokeapi", new Api.Pokedex());
};
export default plugin; |
import React from 'react'
import { Layout as AntdLayout, Menu } from 'antd'
import { Link } from 'react-router-dom'
import { HomeOutlined } from '@ant-design/icons'
const { Header, Content } = AntdLayout
export const Layout: React.FC = (props: any) => {
return (
<AntdLayout style={{ minHeight: '100vh' }}>
... |
import Taro, { Component } from "@tarojs/taro"
import { View,Text } from '@tarojs/components';
import './index.less';
interface Props {
isShow: Boolean,
onClose: () => void,
name: String,
url: String,
order: Number
}
export default class QRModal extends Component<Props> {
componentDidMount... |
import * as FaceDetector from 'expo-face-detector';
import * as ImagePicker from 'expo-image-picker';
import { ImageInfo } from 'expo-image-picker/build/ImagePicker.types';
import React from 'react';
import { Alert, Image, PixelRatio, Platform, ScrollView, StyleSheet, View } from 'react-native';
import { scaledFace, s... |
import { HttpClient, HttpRequest, HttpResponse } from "@aspnet/signalr";
export declare class PipelineHttpClient extends HttpClient {
private requestMethod;
constructor(request: (requestObj: any) => Promise<{
statusCode: any;
data: any;
}>);
/** @inheritDoc */
send(request: HttpReque... |
import { Nullable } from "babylonjs/types";
import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
import { TreeItemSpecializedComponent } from "./treeItemSpecializedComponent";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faMinus, faPlus } from "@fortawesome/free-solid... |
import React from 'react';
import {
StatusBar as RNStatusBar,
StatusBarProps as RNStatusBarProps,
ViewProps,
} from 'react-native';
import { styled, StyledComponentProps } from '@ui-kitten/components';
export type StatusBarProps = RNStatusBarProps & StyledComponentProps;
@styled('StatusBar')
export class Status... |
import Knex from 'knex';
export async function up(knex: Knex){
return knex.schema.createTable('points2items', (table) => {
table.increments('id').primary();
table.integer('point_id').notNullable().references('id').inTable('points');
table.integer('item_id').notNullable().references('i... |
import {
IsString,
IsNotEmpty,
IsEmail,
MaxLength,
IsBoolean,
IsOptional
} from 'class-validator';
export class AuthLoginValidation {
@IsEmail()
@IsNotEmpty()
@MaxLength(100)
readonly email: string;
@IsOptional()
@IsBoolean()
readonly rememberMe?: boolean;
read... |
import {
endTrackValue,
getUIValue,
setUIValue,
startTrackValue,
UISelectionRange,
} from '../../document'
import {dispatchUIEvent} from '../../event'
import {Config} from '../../setup'
import {
getInputRange,
getNextCursorPosition,
isElementType,
setSelection,
} from '../../utils'
import {buildTimeVa... |
import { NgModule } from '@angular/core';
import { Routes } from '@angular/router';
import { HttpModule } from '@angular/http';
import { HomeComponent } from './home/home.component';
import { ProductDesignComponent } from './product-design/product-design.component';
import { ArtisanProductionComponent } from './artisan... |
import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common';
import { ShareModule } from './shared/shared.module';
import { RequestCheckMiddleware } from './common/middleware/usermiddleware';
import { NotificationModule } from './modules/notification/notification.module';
import { CronjobModule } from './mo... |
<TS language="en_GB" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Right-click to edit address or label</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
export default interface UpgradeInfo {
id: number;
FirmwareFilename: string;
} |
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angul... |
import FDBKeyRange from "../FDBKeyRange";
import {
getByKey,
getByKeyRange,
getIndexByKey,
getIndexByKeyGTE,
getIndexByKeyRange,
} from "./binarySearch";
import cmp from "./cmp";
import { Key, KeyPath, Record } from "./types";
import extractKey from "./extractKey";
class RecordStore {
private r... |
import React, { useContext } from 'react'
import { formContext } from '../../contexts/FormContext';
type FeedbackProps = {
for: string;
};
export default function Feedback(props: FeedbackProps) {
const { fields } = useContext(formContext);
const feedback = fields[props.for]?.feedback;
return <s... |
import $ from 'jquery';
import Bloodhound from 'typeahead.js/dist/bloodhound';
import 'autocomplete.js/src/jquery/plugin'
/** A function setting up generic completion against some lookup URL.
*
* The lookup URL shoud accept the input in the `query=`-GET-Parameter and
* respond with a json of the following form:
*
... |
import { DescribeClusterSubnetGroupsInput } from "../shapes/DescribeClusterSubnetGroupsInput";
import { DescribeClusterSubnetGroupsOutput } from "../shapes/DescribeClusterSubnetGroupsOutput";
import { ClusterSubnetGroupNotFoundFault } from "../shapes/ClusterSubnetGroupNotFoundFault";
import { InvalidTagFault } from "..... |
export class RegisteredServiceContact {
static cName = 'org.apereo.cas.services.RegisteredServiceContact';
name: string;
email: string;
phone: string;
department: string;
}
export class DefaultRegisteredServiceContact extends RegisteredServiceContact {
static cName = 'org.apereo.cas.services.DefaultRegist... |
import { Tab, Tabs } from '@patternfly/react-core';
import { ReportPathsType } from 'api/reports/report';
import React from 'react';
import { InjectedTranslateProps, translate } from 'react-i18next';
import { SummaryView } from './summaryView';
interface SummaryOwnProps {
availableTabs: string[];
getIdKeyForTab: (... |
import { CSSObject } from '@emotion/core';
import { PseudoBoxProps } from '../PseudoBox';
import { PositionerProps } from '../Positioner';
interface IMenuProps {
isActive?: boolean;
}
interface IMenuTriggerProps {
css?: CSSObject;
showCaret?: boolean;
caretProps?: PseudoBoxProps;
}
interface IMenuItemProps {... |
/* Ionicons v5.4.0, Types */
export declare var accessibility: string;
export declare var accessibilityOutline: string;
export declare var accessibilitySharp: string;
export declare var add: string;
export declare var addCircle: string;
export declare var addCircleOutline: string;
export declare var addCircleSharp: st... |
import { createRouter, createWebHistory } from 'vue-router'
import store from './store'
import AdminBaseVue from './components/AdminBase.vue'
// import ProfilePageVue from './components/ProfilePage.vue'
// import AdminAuthorsVue from './components/AdminAuthors.vue'
const isLogged = () => {
if (!store.getters.getLo... |
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function format (entry: any): string {
if (typeof entry === 'object') {
try {
return JSON.stringify(entry)
} catch {
//
}
}
return entry
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function log (..... |
/*-
* ========================LICENSE_START=================================
* TeamApps
* ---
* Copyright (C) 2014 - 2021 TeamApps.org
* ---
* 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... |
import { Module } from '@nestjs/common';
import { apiUsuariosService } from './apiUsuarios.service';
import { apiUsuariosController } from './apiUsuarios.controller';
import { UsersModule } from '../db/users/users.module';
@Module({
imports: [UsersModule],
controllers: [apiUsuariosController],
providers: [apiUsu... |
import { demoHandlerFactory, getParams } from '../shared';
import type { Glyphmap } from '../../src';
export default demoHandlerFactory(async (config) => {
const api = await import(/* webpackChunkName: "phaser-glyph-plugin" */ '../../src');
const params = getParams();
const forceSquareRatio = params.square ===... |
import { platformBrowser } from '@angular/platform-browser';
import { ProdConfig } from './blocks/config/prod.config';
import { MinisigaAppModuleNgFactory } from '../../../../build/aot/src/main/webapp/app/app.module.ngfactory';
ProdConfig();
platformBrowser().bootstrapModuleFactory(MinisigaAppModuleNgFactory)
.then((... |
import Document, { Head, Html, Main, NextScript } from "next/document";
class MyDocument extends Document {
render(): JSX.Element {
return (
<Html>
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument; |
/*
* Copyright 2017 The boardgame.io Authors
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
import { FlatFile } from './flatfile';
import { State, Server, LogEntry } from '../../types';
describe('FlatFile', (... |
import { flags } from '@heroku-cli/command';
import BaseCommand from '../../base';
export default class WebhooksUpdate extends BaseCommand {
static description: string;
static examples: string[];
static flags: {
app: flags.IOptionFlag<string | undefined>;
remote: flags.IOptionFlag<string | u... |
import React, { useState } from 'react';
import PageLoading from '../../components/PageLoading';
import Tabs from '../../components/Tabs';
import { Container, Content } from './styles';
import SignIn from './SignIn';
import SignUp from './SignUp';
const SignInSignUp: React.FC = () => {
const [signUpLoading, setSig... |
import CustomError from "./custom.error";
class NotFoundError extends CustomError {
statusCode = 404;
constructor() {
super("Route not found");
Object.setPrototypeOf(this, NotFoundError.prototype);
}
serializeErrors() {
return [{ message: "Not Found" }];
}
}
export default NotFoundError; |
import * as http from 'http'
import { routePosts } from './posts'
import { obtatainDataCode } from '../helpers/errorCodes'
import { routeComments } from './comments'
export async function routing(
req: http.IncomingMessage,
res: http.ServerResponse
) {
let url = req.url as string
if (/^\/posts$/.test(url) || url.m... |
import * as React from "react"
import { useForm } from "react-hook-form"
import { DevTool } from "react-hook-form-devtools"
import { Animate } from "react-simple-animate"
import Form from "./Form"
import Footer from "./Footer"
import DevToolFeaturesList from "./DevToolFeaturesList"
import CodeArea from "./CodeArea"
imp... |
import { DocumentCard, DocumentCardActions, DocumentCardDetails, DocumentCardType, Icon, Label, Stack, Text, useTheme } from '@fluentui/react';
import React, { CSSProperties, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Connection, copyConnection, deleteConne... |
import React from "react";
import Dropzone from "../../";
class Basic extends React.Component {
state = { files: [] };
onDrop(files) {
this.setState({
files
});
}
render() {
return (
<section>
<div className="dropzone">
<Dropzone onDrop={this.onDrop.bind(this)}>
... |
import * as React from 'react';
import Paper from '@material-ui/core/Paper';
import Stack from '@material-ui/core/Stack';
function Cell({ children }: { children: React.ReactNode }) {
return (
<Paper sx={{ padding: 2, color: 'text.secondary', typography: 'body2' }}>
{children}
</Paper>
);
}
export de... |
import * as mkdirp from "mkdirp";
import { fs } from "mz";
import * as path from "path";
import Config from "../Config";
export default function (table: string) {
if (!table || !/^\w+$/.test(table)) {
throw new Error(`Table name "${table}" is invalid.`);
}
const tablesDir = Config.getPath("tables");
try {
mkd... |
import { createCheckoutStoreStatusSelectorFactory, CheckoutStoreStatusSelectorFactory } from './checkout-store-status-selector';
import { getCheckoutStoreState } from './checkouts.mock';
import createInternalCheckoutSelectors from './create-internal-checkout-selectors';
import InternalCheckoutSelectors from './internal... |
import React from 'react';
import { ThemeProvider } from 'styled-components';
import { storiesOf } from '@storybook/react';
import { DEFAULT_NETWORK } from 'v2/config';
import { NETWORKS_CONFIG, NODES_CONFIG } from 'v2/database/data';
import { Network, NetworkId } from 'v2/types';
import { GAU_THEME } from 'v2/theme';... |
import GetOpportunitiesWithStatusWon from '../providers/PipeDrive/GetOpportunitiesWithStatusWon';
import CreateOrderService from '../providers/Bling/CreateOrderService';
import GetNewOpportunities from '../providers/Bling/GetNewOpportunities';
import BuildOrderXML from '../providers/XmlBuilder/buildOrderXML';
class Ge... |
import React from 'react';
import { Result, Button } from 'antd';
import { Link } from 'umi';
import type { IAuthorityType } from './CheckPermissions';
import check from './CheckPermissions';
import type AuthorizedRoute from './AuthorizedRoute';
import type Secured from './Secured';
type AuthorizedProps = {
authorit... |
export default [
// 基础用法
`
<!--当设置 value 初始值属性后,会覆盖 placeholder-->
<!--你可以通过 [(model)] 进行双向绑定-->
<el-input [model]="input" placeholder="请输入内容"></el-input>
`,
// 禁用状态
`
<el-input placeholder="请输入内容"
[model]="input1"
[disabled]="true">
</el-input>
`,
// 图标
`
<!--你可以使用 (icon-click)=Function 来得到图标点击的事件-->
<el-in... |
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { isEmpty } from 'lodash';
import datemath from '@elastic/datemath';
import { DATE_PICKER_FORMAT } from '../../common/constants/explorer';
import {
PPL_INDEX_REGEX,
PPL_INDEX_INSERT_POINT_REGEX,
PPL_NEWLINE_REGEX
} from '..... |
/*
* Copyright 2021 Chaos Mesh Authors.
*
* 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... |
export { UrlFilterServiceMock } from './url-filter.service-mock';
export { AlExposureConcludeMockComponent } from './al-exposure-conclude.component.mock';
export { AlExposureDisposeMockComponent } from './al-exposure-dispose.component.mock';
export { DummyCardstack } from './al-card-stack-fakes' |
import { Hero } from '../module-heroes-controller/hero';
export const HEROES: Hero[] = [
{ id: 11, name: 'Mr. Nice' },
{ id: 12, name: 'Narco' },
{ id: 13, name: 'Bombasto' },
{ id: 14, name: 'Celeritas' },
{ id: 15, name: 'Magneta' },
{ id: 16, name: 'RubberMan' },
{ id: 17, name: 'Dynama' },
{ id: 18... |
import {
Body,
Controller,
Delete,
Get,
NotFoundException,
Param,
Post,
Put,
} from '@nestjs/common';
import { ApiBody, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { GroupService } from '@steggy/controller-sdk';
import {
CloneGroupDTO,
ENTITY_EXTRAS_SCHEMA,
GROUP_REFERENCE_... |
import { RequestHandler } from 'express'
import * as firebase from 'firebase-admin'
import { promisify } from 'util'
import { handlerCatch } from '../utils/decorators'
import renderPost from '../utils/logic/render-post'
const { version } = require('../../package.json')
const renderPostController: RequestHandler = han... |
import * as $ from 'jquery';
window['jQuery'] = window['$'] = $; |
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as rio from './RIO';
export type RIOP<R, I, O> = rio.RIO<R, I, Promise<O>>;
export type InferOutput<T> = T extends RIOP<any, any, infer O> ? O : never;
export type TypeFn<T> = T & {
Env: rio.InferEnv<T>;
Input: rio.InferInput<T>;
Output: InferOu... |
import { ButtonInteraction, MessageAttachment, Message } from "discord.js";
import { Controller } from "../../@types/Controller";
import { select, logs } from "../functions/dashboard";
export default async function getLogs(Client: Controller, interaction: ButtonInteraction) {
const msg = await interaction.deferRe... |
import {
UserDefinedElement,
DxElement,
} from '../core/element';
import {
template,
} from '../core/templates/template';
import {
EventInfo,
NativeEventInfo,
InitializedEventInfo,
ChangedOptionInfo,
} from '../events/index';
import {
Format,
} from '../localization';
import {
ba... |
import * as React from "react";
import { JSX } from "react-jsx";
import { IFluentIconsProps } from '../IFluentIconsProps.types';
const AddSubtractCircle16Filled = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => {
const {
primaryFill,
className
} = iconProps;
retur... |
// Copyright 2017 The Kubernetes Authors.
//
// 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 a... |
import User from './../../src/models/users';
import { connectToDb, collections } from './../../src/services/database.service';
import { MongoClient } from 'mongodb';
import * as dotenv from 'dotenv';
import bcrypt from 'bcrypt';
import request from 'supertest';
import Server from './../../src/server';
const app = (ne... |
// fix for @angular-devkit/core/src/utils/template.d.ts
declare module 'source-map'; |
import * as React from 'react';
import { PageHeader } from 'shared/view/elements/PageComponents';
import capitalize from 'shared/utils/capitalize';
interface ILocalProps {
title: string;
}
const BlobTitle = (props: ILocalProps) => {
return (
<PageHeader
title={capitalize(props.title.toLocaleLowerCase()... |
/**
* @module rx-jupyter
*/
import { ajax, AjaxResponse } from "rxjs/ajax";
import { createAJAXSettings, ServerConfig as _ServerConfig } from "./base";
// Workaround an issue with re-exporting an interface by type aliasing it
export type ServerConfig = _ServerConfig;
import { Observable } from "rxjs";
import * as c... |
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
expor... |
// DO NOT EDIT. This file was generated by running `npm run generate`.;
import * as React from 'react';
import { Colors } from '../../essentials';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';
type Props = IconProps;
const DropdownSelectIcon: React.FC<Props> = ({ size = 'medium'... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const MoonDimensions: {
height: undefined;
width: undefined;
}; |
import React from 'react'
import { IconProps } from './types'
const IconPhoneAndroid: React.FC<IconProps> = ({ ...props }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none" />
<path d="M16 1H8C6.3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.