text stringlengths 10 953k |
|---|
// Copyright 2018-2021 the oak authors. All rights reserved. MIT license.
import { assert, assertEquals, assertStrictEquals } from "./test_deps.ts";
import {
createMockApp,
createMockContext,
mockContextState,
} from "./testing.ts";
import type { Application } from "./application.ts";
import type { Context } fr... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { PxbAuthModule } from '../../auth.module';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { PxbResetPasswordComponent } from './reset-password.co... |
import { Controller, Get, UseGuards } from "@nestjs/common";
import { User } from "@prisma/client";
import { GetUser } from "src/auth/decorator";
import { JwtGuard } from "src/auth/guard";
@UseGuards(JwtGuard)
@Controller("users")
export class UserController {
@Get("me")
getMe(@GetUser() user: User) {
return u... |
export function getNowUTC() {
return new Date();
}
export function parseDate(value: string): Date {
const dateTimeRegex = new RegExp(
/^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\.[0-9]+)?(Z|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9])?$/... |
import { Body, Button, Header, Left, Right } from "native-base";
import React from "react";
import { TouchableOpacity } from "react-native";
import { Image, Text } from "react-native-elements";
import { colors } from "~/utils/theme";
const HeaderToolbar: React.StatelessComponent = (props: any) => {
return (
<Hea... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import 'reflect-metadata';
import { CosmosContainerClient } from 'azure-services';
import { ItemType, OnDemandPageScanRequest, PartitionKey } from 'storage-documents';
import { Mock } from 'typemoq';
import { DbMockHelper ... |
import { ModalOptions, ModalType } from "v2/Components/Authentication/Types"
import { data as sd } from "sharify"
const mediator = require("desktop/lib/mediator.coffee")
/**
* Open authentication modal via 'click' trigger
*/
export const openAuthModal = (mode: ModalType, options: ModalOptions) => {
mediator.trigg... |
export function showScreen(screen: HTMLElement): void {
for (const s of document.querySelectorAll(".screen")) {
s.classList.toggle("hidden", s !== screen);
}
} |
import {NgModule} from '@angular/core';
import {AvConfigurationPanelComponent} from './av-configuration-panel/av-configuration-panel.component';
import {AvTableDetailPanelComponent} from './av-table-detail-panel/av-table-detail-panel.component';
import {AvTablePropertiesPanelComponent} from './av-table-properties-panel... |
/*
** StandoffCase Copyright (C) 2020 sunaiclub
** Full License is in the root directory
*/
import { User } from "../../../resources/interfaces/user"
// SCSS
import "../../../assets/scss/components/table.scss"
import { Link } from "react-router-dom"
import { useSelector } from "react-redux"
import BrowserHistory fro... |
/* Copyright 2021, Milkdown by Mirone. */
import { injectGlobal } from '@emotion/css';
import * as D from './default-value';
import { obj2color, obj2var } from './transformer';
import { Color, PR, ThemePack, ThemeTool } from './types';
export const injectVar = (themePack: ThemePack) => {
const { color = {}, font,... |
import * as React from 'react'
/**
* @interface IDiv
*/
export interface IDiv extends React.DetailedHTMLProps
<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> { }
/**
* @interface IButton
*/
export interface IButton extends React.DetailedHTMLProps
<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButt... |
import { shallow } from 'enzyme';
import * as React from 'react';
import { mockNotification } from 'src/__data__/notifications';
import { light } from 'src/themes';
import { CombinedProps, LinodeRow, RenderFlag } from './LinodeRow';
describe('LinodeRow', () => {
const mockClasses = {
actionCell: '',
actionIn... |
import { DataSource } from '@angular/cdk/table';
import { Observable, BehaviorSubject, merge } from 'rxjs';
import { startWith, map } from 'rxjs/operators';
import { IListOperateData, ListOperateData } from './listoperatedata';
/** An database that the data source uses to retrieve data for the table. */
export class L... |
import React from 'react';
import styled from '@emotion/styled';
import DateTime from 'app/components/dateTime';
import Link from 'app/components/links/link';
import ShortId from 'app/components/shortId';
import overflowEllipsis from 'app/styles/overflowEllipsis';
import space from 'app/styles/space';
/**
* Styled c... |
// Create a Git-friendly set of files summarizing WebReg data
// deno run --allow-all track-classes.ts <UqZBpD3n> <jlinksessionidx>
import { ensureDir } from 'https://deno.land/std@0.125.0/fs/ensure_dir.ts'
import { writeAll } from 'https://deno.land/std@0.125.0/streams/conversion.ts'
import { exams, instructionTypes ... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { ActivityIndicator, ImageBackground, ViewPropTypes, ViewStyle } from 'react-native';
import { Image } from '../../types';
type PhotoPreviewProps = {
image: Image;
style: ViewStyle;
};
function PhotoPreview({ image, style }: Photo... |
import ConstRole from '@expresso/constants/ConstRole'
import asyncHandler from '@expresso/helpers/asyncHandler'
import { arrayFormatter } from '@expresso/helpers/Formatter'
import HttpResponse from '@expresso/modules/Response/HttpResponse'
import Authorization from '@middlewares/Authorization'
import PermissionAccess f... |
namespace form {
const {
AppBar,
Toolbar,
Typography,
IconButton,
makeStyles,
CssBaseline,
} = material.core;
const {
Drawer,
ListItem,
Container,
ListItemText,
ListItemIcon,
List: MatList,
} = material.core;
const {
GitHub,
Menu,
} = material.icons... |
import * as React from "react";
import { useState } from "react";
import { Button, Dialog, Classes, Intent, FormGroup, InputGroup, Callout } from "@blueprintjs/core";
import adamite, { AuthUser, DatabaseServerValue } from "@adamite/sdk";
type RegisterPropTypes = {
title: string;
subtitle: string;
isOpen: boolean... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
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, including without limitation the rights
to use, copy, modi... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="it" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Articfox</source>
<translation>Info su Articfox</translation>
</... |
/**
* @fileoverview Converts TypeScript AST into ESTree format.
* @author Nicholas C. Zakas
* @author James Henry <https://github.com/JamesHenry>
* @copyright jQuery Foundation and other contributors, https://jquery.org/
* MIT License
*/
import ts from 'typescript';
import {
canContainDirective,
createError,
... |
import React from 'react';
import { Switch, Route } from 'react-router-dom';
import { Main } from '../pages/Main';
import { Redirect } from '../pages/Redirect';
import { ShortsterStats } from '../pages/ShortsterStats';
export const Routes: React.FC = () => (
<Switch>
<Route path="/" exact component={Main} />
... |
import {EntityEvent} from './entity-event';
export interface EventBusSubscriptionOptions {
replay? : boolean;
}
export interface EventBusSubscription {
unsubscribe() : void;
}
export interface EventBus {
subscribe(listener : (event : EntityEvent, isReplaying? : boolean) => void,
options? : EventBus... |
/**
* @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
*/
declare function plural(n: number): number;
declare const _default: (string | number | number[] | (string | undefine... |
export default VolumeHighSharp;
declare function VolumeHighSharp(props: any): any;
declare namespace VolumeHighSharp {
namespace defaultProps {
const style: {};
const color: string;
const height: string;
const width: string;
const cssClasses: string;
const title: stri... |
// Core dependencies
import {
Component,
Input,
ChangeDetectionStrategy,
} from "@angular/core";
// App dependencies
import { FileSummary } from "./file-summary";
/**
* Component displaying three summary counts: files, donors, and file size.
*/
@Component({
selector: "bw-file-summary",
templateU... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import Widget from './Widget';
import { document } from '@ephox/dom-g... |
import { mergeStyleSets } from './mergeStyleSets';
import {
Stylesheet,
InjectionMode
} from './Stylesheet';
const _stylesheet: Stylesheet = Stylesheet.getInstance();
interface ITestClasses {
root: string;
}
_stylesheet.setConfig({ injectionMode: InjectionMode.none });
describe('mergeStyleSets', () => {
bef... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Component, h, Prop, State, Method } from "@stencil/core";
@Component({
tag: 'my-side-drawer',
styleUrl: './side-drawer.css',
shadow:true
})
export class SideDrawer {
@State() showContactInfo = false;
@Prop({reflect: true}) titled: string;
@Prop({reflect:true, mutable:true}) opened: bo... |
/* GENERATED FILE */
import { useContext } from "solid-js";
import { IconContext, IconProps } from "../lib";
const renderPathFor = (weight: string, color: string) => {
switch (weight) {
case "bold":
return (
<>
<path d="M150,102a22,22,0,1,1-6.44365-15.55635A21.93114,21.93114,0,0,1,150,1... |
/**
* @license
* Copyright Google LLC 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 { RawSourceMap } from 'source-map';
import * as ts from 'typescript';
export type TransformerFactoryCreator =... |
import {Injectable} from "@angular/core";
import {ActivatedRouteSnapshot, Resolve, RouterStateSnapshot} from "@angular/router";
import {Course} from "../model/course";
import {Observable, of} from 'rxjs';
@Injectable()
export class CourseResolver implements Resolve<Course> {
constructor() {
}
resolve(... |
/* TypeScript file generated by genType. */
// tslint:disable-next-line:no-var-requires
const TypesBS = require('./Types.bs');
import {list} from '../../src/shims/ReasonPervasives.shim';
// tslint:disable-next-line:interface-over-type-literal
export type t = number;
// tslint:disable-next-line:interface-over-type-l... |
import React, {
useState,
useRef,
useEffect,
useLayoutEffect,
ReactNode
} from "react";
import { Text, View } from "react-native";
const measureHeightAsync = async (
component: React.RefObject<Text>
): Promise<number> => {
return new Promise(resolve => {
if (component.current) {
component.curre... |
import * as React from 'react';
import { Motion, presets, spring } from 'react-motion';
import { Link } from 'react-router-dom';
export interface INavbarItemProps {
to: string;
icon: JSX.Element;
label: string;
route?: string;
hide?: boolean;
minimize?: boolean;
}
function renderLabel(label: string, width... |
import { Factory } from '../../../core';
import { expect } from 'chai';
describe('Factory', () => {
class TestFactory extends Factory<{ settings: string }, { someInstance: string }> {
}
class TestItem {
constructor(private readonly s: { settings: string }) { }
get someInstance() {
return this.s... |
import OnThisPageAnchors from '@weco/common/views/components/OnThisPageAnchors/OnThisPageAnchors';
const Template = args => <OnThisPageAnchors {...args} />;
export const basic = Template.bind({});
basic.args = {
links: [
{ text: 'Getting here', url: '#getting-here' },
{
text: 'Getting around the buildi... |
import React from 'react'
import { KTSVG, toAbsoluteUrl } from '../../../helpers'
import { Dropdown1 } from '../../content/dropdown/Dropdown1'
type Props = {
className: string
}
const FeedsWidget2: React.FC<Props> = ({ className }) => {
return (
<div className={`card ${className}`}>
{/*begin::Body */}
... |
import errors from '../utils/errors';
import { User } from '../types/user';
import { Option, Optional } from '../types/option';
import logger from '../utils/logger';
import { db } from '../database';
export async function getUserById(id: number): Promise<Option<User>> {
try {
const user = await db<User>('u... |
import type { NextApiRequest, NextApiResponse } from 'next'
import _ from 'lodash'
import { IVisit, Visit, VisitKeys } from '@database/models/visit'
import { getSession } from 'next-auth/react'
import hasPermission from '@utils/hasPermission'
export default async function handler(
req: NextApiRequest,
res: NextApi... |
import { Lang } from '../../resources/languages';
import NetRegexes from '../../resources/netregexes';
import { UnreachableCode } from '../../resources/not_reached';
import { LocaleNetRegex } from '../../resources/translations';
import Util from '../../resources/util';
import { Job } from '../../types/job';
import { Ca... |
import * as React from 'react';
import { ACCOUNT_ID, Currency, getCurrentXRBPrice } from '../../lib/';
import { PaymentResponse, ReblocksPayment } from './ReblocksPayment';
export interface Props {
onSuccess: (data: PaymentResponse) => void;
}
export interface State {
currentXRBPrice?: number;
xrbPerBeer?: nu... |
import Model from '../model';
import { getOwner } from '@ember/application';
type Store = import('@ember-data/store').default;
/*
In case someone defined a relationship to a mixin, for example:
```
let Comment = Model.extend({
owner: belongsTo('commentable'. { polymorphic: true })
});
... |
import {Scheduler} from './Scheduler'
import {Procedure} from './Procedure'
export async function reconcile(procedures: Procedure[]): Promise<void> {
const scheduler = new Scheduler()
console.log('starting reconciliation loop')
// eslint-disable-next-line no-constant-condition,@typescript-eslint/no-unnecessary-c... |
/**
* @module systems/sys_animate
*/
import {slerp} from "../../common/quat.js";
import {lerp} from "../../common/vec3.js";
import {Entity} from "../../common/world.js";
import {AnimationFlag, AnimationKeyframe} from "../components/com_animate.js";
import {Game} from "../game.js";
import {Has} from "../world.js";
c... |
// This icon file is generated by build/generate.ts
// tslint:disable
import { IconDefinition } from '../types';
export const CodepenCircleOutline: IconDefinition = {
name: 'codepen-circle',
theme: 'outline',
icon:
'<svg viewBox="64 64 896 896"><path d="M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-... |
// eslint-disable-next-line no-unused-vars
import { CommonFieldTypes, Manifest } from '@sitecore-jss/sitecore-jss-manifest';
/**
* This is a standalone _base template_ that is inherited by components in the styleguide that need to
* show explanatory text. The fields on this template are implicitly available on inher... |
// Copyright 2019, Pure Storage Inc.
//
// 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 ... |
import React, {useContext} from 'react'
import {Button, Col, Row} from 'reactstrap'
import QRCode from 'qrcode.react'
import {ModalContext} from '../App'
type Props = {
nodeInfo: App['nodeInfo']
}
export const NodeInfoModal: React.FC<Props> = ({nodeInfo}) => {
const [, modalDispatch] = useContext(ModalContext)
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import IFormatProvider from './IFormatProvider'
import DataFormatter from './DataFormatter'
import TypeNameParser from '../parsers/TypeNameParser'
import TypeName from '../parsers/TypeName'
import {TypeNameStyle} from '../parsers/TypeName'
import escape from '../escape'
export default class GridFormatProvider implemen... |
export enum Mode {
BROKER = 'BROKER',
CLIENT = 'CLIENT',
}
export default Mode; |
import {MetaUtils} from "../metadata/utils";
import * as Utils from "../utils";
import {IPreauthorizeParams} from '../decorators/interfaces';
import {Decorators} from '../constants/decorators';
import {winstonLog} from '../../logging/winstonLog';
import * as Enumerable from 'linq';
var Q = require('q');
export class ... |
import './graphql-server'
import './remote-func-server'
const autocannon = require('autocannon')
const Table = require('cli-table')
const benchmarkDuration = 20
const remoteFuncLoad = () => {
const source = `async (id) => {
const book = await query.bookById(id)
const author = await query.authorByBook(book)... |
import React from 'react';
import { createApolloLoadingProvider } from '../src';
import { render } from '@testing-library/react';
import { Todo } from './fixtures/Todo';
test('works with defaults', async () => {
const MockedProvider = createApolloLoadingProvider();
const { getByText } = render(
<MockedProvider... |
import { APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda';
import 'source-map-support/register';
import * as AWS from 'aws-sdk'
import * as uuid from 'uuid'
import * as middy from 'middy'
import { cors } from 'middy/middlewares'
const docClient = new AWS.DynamoDB.DocumentClient()
// ADD AN INSTANCE OF ... |
import { createIcon } from '../core';
/**
* remixicon download-2-fill
*/
export default createIcon('download-2-fill', {
"viewBox": "0 0 24 24",
"paths": [
{
"d": "M0 0h24v24H0z",
"fill": "none"
},
{
"d": "M4 19h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8h2v7zM14 9h5l-7 7-7-7h5V3h4v6z... |
import { Context } from 'graphql-yoga/dist/types'
export const User = {
async trips ({ id }: any, args: any, context: Context) {
return context.prisma.user({ id }).trips()
},
} |
import PropTypes from 'prop-types';
import React, {useState} from 'react';
import {Provider} from 'react-redux';
import Store from './store';
import AppContainer from './AppContainer.react';
const AppProvider = ({hooks}: any) => {
const [{store}] = useState(() => new Store());
return (
<Provider stor... |
import {setGlobalOptions} from '../loader-utils/option-utils';
/**
* Set global loader options
* @param options
*/
export function setLoaderOptions(options: object): void {
setGlobalOptions(options);
} |
/*
* Copyright 2020 Spotify AB
*
* 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... |
// svg/palette.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgPalette = createSvgIcon(
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w... |
import * as React from 'react'
import { I18nProps, withNamespaces } from 'src/i18n'
import { Cell, GridRow, Spans } from 'src/layout/GridRow'
import VideoModal from 'src/shared/VideoModal'
import { standardStyles } from 'src/styles'
import image from 'src/join/claire-video-banner.jpg'
type Props = I18nProps
class Ho... |
import { Changelog } from '../src/index';
describe('Changelog', () => {
it('should have be defined', () => {
expect(Changelog).toBeDefined()
})
}) |
//# sourceMappingURL=workarounds.d.ts.map |
const upperCase = (str: string) => str.toUpperCase();
export { upperCase }; |
import { Component } from '@angular/core';
@Component({
templateUrl: 'page-access.component.html'
})
export class PageAccessComponent {
constructor() { }
} |
/*
* Copyright 2019 HERMENEUT Consortium
*
* 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 la... |
// via: http://visionmedia.github.io/superagent/
import request = require("superagent");
import * as fs from "fs";
import assert = require("assert");
import { Agent } from "https";
// Examples taken from https://github.com/visionmedia/superagent/blob/gh-pages/docs/index.md
// and https://github.com/visionmedia/superag... |
import { GuiComponent } from './gui-component';
import { ElementRef } from '@angular/core';
export declare abstract class PureComponent extends GuiComponent {
private readonly subClassConstructor;
private readonly subClassNgOnInit;
protected constructor(elementRef: ElementRef);
private hasConstructorOnl... |
import {
style,
state,
transition,
animate,
keyframes,
AnimationMetadata
} from '@angular/core';
export const zoom = (timing: string): AnimationMetadata[] => [
state('zoomOut', style({
display: 'none'
})),
state('zoomOutDown', style({
display: 'none'
})),
sta... |
import { makeStyles, Theme } from '@material-ui/core';
export const useStyles = makeStyles(({ spacing, palette }: Theme) => ({
widget: {
marginLeft: spacing(2),
marginTop: spacing(1),
padding: spacing(1.5),
},
apiSelect: {
width: 322,
'& .MuiOutlinedInput-input': {
padding: spacing(1.5,... |
import {
JsonController,
Get,
Res,
HttpCode,
Param,
Put,
Body,
UseBefore,
} from "routing-controllers";
import { Response } from "express";
import { UserService } from "../services/UserService";
import { OpenAPI } from "routing-controllers-openapi";
import { UpdateUserDto } from "../dtos/UserDto";
impor... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { RouterModule } from '@angular/router';
import { AppRoutingModule } from './app.routing'... |
import axios from "axios";
class ProductService {
baseUrl = process.env.VUE_APP_BASE_URL;
apiUrl = this.baseUrl + "api/products";
uploadUrl = this.baseUrl + "api/upload";
getAll() {
return axios.get(this.apiUrl);
}
getOne(id: string) {
return axios.get(this.apiUrl + "/" + id);
}
create(data:... |
// //Author Maxim Kuzmin//makc//
import {AppCoreCommonModJobListGetOutput} from '@app/core/common/mod/jobs/list/get/core-common-mod-job-list-get-output';
import {AppModDummyTreeJobItemGetOutput} from '../../item/get/mod-dummy-tree-job-item-get-output';
/** Мод "DummyTree". Задания. Список. Получение. Вывод. */
export... |
import { UserClass } from 'src/usersClasses/usersClasses.entity';
import { List } from 'src/list/lists.entity';
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, OneToMany } from 'typeorm';
@Entity()
export class Class {
@PrimaryGeneratedColumn()
id: number;
@Column({ u... |
import { Glb } from '@glb/glb'
import { GlbPagesNames } from '@glb/glb-names'
export const Routes = Glb.makeEnum({
Root: '/',
WS: '/ws',
Filter: '/filter',
Refiner: '/filter/refiner/',
IGV: '/igv',
})
export const RouteNames = Glb.makeEnum({
[Routes.Filter]: GlbPagesNames.Filter,
[Routes.Refiner]: GlbPa... |
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
import { mdiPencilOutline } from '@mdi/js';
import Icon from '@mdi/react';
import EditDialog from 'components/dialog/EditDialog';
import { IErrorDialogProps } from 'components/dialog/ErrorDialog';
import { H3ButtonToolbar ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AuthLandingComponent } from './auth-landing.component';
describe('AuthLandingComponent', () => {
let component: AuthLandingComponent;
let fixture: ComponentFixture<AuthLandingComponent>;
beforeEach(async(() => {
TestBed.conf... |
/*import { assert, expect } from 'chai';
import { servicesContainer } from '../../../services/inversify.config';
import { DBService, getModel, IDBService } from '@pyro/db-server';
import { DBCreateObject, DBObject, DBRawObject, PyroObjectId, Schema, Types } from '@pyro/db';
import Logger from 'bunyan';
import mongoose ... |
import {
BATTLESHOCK_PHASE,
CHARGE_PHASE,
COMBAT_PHASE,
HERO_PHASE,
SHOOTING_PHASE,
START_OF_HERO_PHASE,
} from 'types/phases'
import { TSpells } from 'types/army'
// Lore of the Storm, Lore of Invigoration & Prayers of the Stormhosts
const Spells: TSpells = [
{
name: `Lightning Blast`,
effects: ... |
import { apibase } from '@/utils/apibase'
import { markRaw } from 'vue'
import { decode } from 'js-base64'
import Manage from './Manage.vue'
import { SyncProvider } from '../typing'
import { SYNCERR, SyncError } from '@/store/sync'
interface IMsToken {
access_token: string
expires_in: number
id_token: strin... |
import { ContinuousScale } from "./continuous_scale";
import * as p from "../../core/properties";
export declare namespace LogScale {
type Attrs = p.AttrsOf<Props>;
type Props = ContinuousScale.Props;
}
export interface LogScale extends LogScale.Attrs {
}
export declare class LogScale extends ContinuousScale {
... |
import firebase from 'firebase/app';
import 'firebase/analytics';
import 'firebase/auth';
import 'firebase/firestore';
let firebaseAuth: firebase.auth.Auth;
let firestoreClient: firebase.firestore.Firestore;
const isBrowser = global.window && global.navigator;
if (isBrowser && !firebase.apps.length) {
firebase.ini... |
import { Repository } from "../../../../../src/repository/Repository";
import { Category } from "../entity/Category";
export declare class CategoryRepository extends Repository<Category> {
findByName(name: string): Promise<Category | undefined>;
} |
/**
* @module model
*/
import 'reflect-metadata';
import { ReactiveModel } from './reactive-model';
/**
* Retrieves the property metadata that has been applied to a reactive model and
* determines how to handle the metadata.
*/
export declare class PropertyMetadataHandler {
private model;
/**
* @param... |
export { DataError as default } from "./"; |
// This file was generated
import * as Joi from 'joi';
import { OaValidationError } from '../oaValidationError';
import * as oa from '../oa';
import * as schema from '../schema';
/**
* schema:Place
*/
export type Place = {
'@type': 'Place';
'@context'?: string | string[];
/**
* The identifier property repre... |
import { isSignedIn, getUser } from '../../api/auth'
import SignInForm from '../../auth/SignInForm'
import { submitApp } from '../../api/app-service'
import config from '../../config'
import { Root, Section, Row } from './FormLayout'
import AppHeader from './AppHeader'
import SubmitBtns from './SubmitBtns'
import AppS... |
import * as debugsx from 'debug-sx';
const debug: debugsx.IDefaultLogger = debugsx.createDefaultLogger('odb2:serial:serial-base');
import * as events from 'events';
export abstract class SerialBase extends events.EventEmitter implements SerialInterface {
private _waiting: IWaiting = { received: '' };
/**
... |
import {TSTupleElement} from "@romefrontend/ast";
import {Builder, Token, Tokens, concat, space} from "@romefrontend/formatter";
export default function TSTupleElement(
builder: Builder,
node: TSTupleElement,
): Token {
let tokens: Tokens = [];
if (node.name) {
tokens.push(builder.tokenize(node.name, node));
}... |
import { createHash } from "crypto";
import { NightwatchAllureInterface } from "./NightwatchAllureInterface";
import * as Models from "./model";
import { ContentType, LabelName, Stage, Status, StatusDetails } from "./allure/model";
import { AllureTest } from "./allure/AllureTest";
import { AllureStep } from "./allure/E... |
export * from './new-player/new-player.component';
export * from './player/player.component';
export * from './edit-player/edit-player.component';
export * from './players-carousel/players-carousel.component';
export * from './player-details/player-details.component';
export * from './player-details-small/pla... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import SenryuConfirmDialog from './index';
import { action } from '@storybook/addon-actions';
storiesOf('organisms/SenryuConfirmDialog', module).add('default', () => (
<SenryuConfirmDialog
open={true}
onClickSet={action('onClickSet')}
... |
/*
Copyright 2016 kanreisa
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 writin... |
import { AskCodeOrValue, toAskCode, value } from './askCode';
import { reduce } from './reduce';
export function parse(code: string) {
return reduce<AskCodeOrValue>(
{
node: (type, ...children) =>
toAskCode({
name: type,
params: children,
}),
id: (type) =>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.