text stringlengths 10 953k |
|---|
import React from 'react';
import '@testing-library/jest-dom';
import MatchMediaMock from 'jest-matchmedia-mock';
import {act} from '@testing-library/react';
import {renderWithTheme} from '../../../../test/test-utils';
import {
useMediaQueryObject,
MediaQueryProvider,
useBreakpointKey,
} from '../index';
import {... |
import { FC } from 'react'
import { Input } from './formComponentsInterface'
const EMAIL_REGEX = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
const InputEmail: FC<Input> = ({ register, errors, placeholder }) =>... |
import * as mongoose from 'mongoose';
export interface ILogModel extends mongoose.Document {
name: string;
power: string;
amountPeopleSaved: number;
createdAt: Date;
modifiedAt: Date;
}
let LogSchema = mongoose.Schema({
message: {
type: String,
required: true
},
modul... |
import cn from 'classnames'
import Link from 'next/link'
import { FC, useRef, useState, useEffect } from 'react'
import { useTheme } from 'next-themes'
import { useRouter } from 'next/router'
import s from './DropdownMenu.module.css'
import { Avatar } from '@components/common'
import { Moon, Sun } from '@components/ico... |
import { NgModule } from '@angular/core';
import { TranslateModule } from '@ngx-translate/core';
import { IonicPageModule } from 'ionic-angular';
import { TasksPage } from './tasks';
@NgModule({
declarations: [
TasksPage,
],
imports: [
IonicPageModule.forChild(TasksPage),
TranslateModule.forChild()
... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome... |
import * as pbjs from "protobufjs";
import { api } from "../generated/api";
import {
b64ToStr,
isBase64,
strToJson,
strToU8,
u8ToStr,
} from "./util";
// Alter classes.
/**
* Payload represents the return value of an alter operation.
*/
export class Payload extends api.Payload {
public get... |
import * as fs from 'fs';
import * as path from 'path';
import * as avro from 'avsc';
import { ICommandOptions } from './cli';
import { IAvroSchema, IAvroField, AvroSchemaType, IAvroArray, IAvroMap, IAvroRecord } from './avro/avro-schema';
import { findAVSCFilesInFolder, isPrimitiveAvroType, isComplexAvroType, clone } ... |
import { MessageTemplateParser, TemplateTokenKind } from "@rbxts/message-templates";
import t from "@rbxts/t";
import ZrTextStream from "@rbxts/zirconium/out/Ast/TextStream";
import { getRichTextColor3, ZirconTheme, ZirconThemeDefinition } from "Client/UIKit/ThemeContext";
interface PlainTextToken {
Type: "Text";
Val... |
import { getScores } from '@snapshot-labs/snapshot.js/src/utils';
import voting from '@snapshot-labs/snapshot.js/src/voting';
import { apolloClient } from '@/helpers/apollo';
import { PROPOSAL_QUERY, VOTES_QUERY } from '@/helpers/queries';
import cloneDeep from 'lodash/cloneDeep';
export async function getProposalVote... |
import {
describe,
expect,
it,
} from '@jest/globals';
import { AccountId } from "@hashgraph/sdk";
import BigNumber from "bignumber.js";
import {
ResourceReadOptions,
loadContractRegistry as loadContractRegistryResource,
load as loadResource,
read as readResource,
} from "../../utils";
import { ApiSe... |
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import { downloadCommand } from '@data-wrangling-components/react'
import { ICommandBarItemProps } from '@fluentui/react'
import { useMemo } from 'react'
import { ICsvContent } from '~models'
ex... |
/*
0 1 2
3 4 5
6 7 8
*/
export enum AlignPositionMode {
left_top = 0,
top_left = 0,
center_top = 1,
top_center = 1,
right_top = 2,
top_right = 2,
left_center = 3,
center_left = 3,
center = 4,
center_center = 4,
right_center = 5,
center_right = 5,
left_bottom = ... |
import { LiveAnnouncer } from '@angular/cdk/a11y';
import { Component } from '@angular/core';
import { Filter, FilterAddEvent, FilterEvent, FilterRemoveAllEvent,
FilterRemoveEvent } from '@ux-aspects/ux-aspects';
import 'chance';
@Component({
selector: 'app',
templateUrl: './app.component.html',
})
export ... |
<TS language="it" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Fai clic con il tasto destro del mouse per modificare l'indirizzo oppure l'etichetta</translation>
</message>
<message>
<source>Cre... |
// Require packages.
import * as util from 'util';
import * as mockconsole from 'mockconsole';
import * as wildemitter from 'wildemitter';
import { ILakeNiceClient } from '../../../../lakenicejs/base/lakenice-client';
/**
* Agents handler interface.
*/
export interface IHAgents {
/**
* Handle the action.
* ... |
import { Component, OnInit } from '@angular/core';
import { Contact } from '../../model/contact.model';
@Component({
selector: 'app-contact',
templateUrl: './contact.component.html',
styleUrls: ['./contact.component.css']
})
export class ContactComponent implements OnInit {
contactModel: Contact = new Contact... |
import { TrieNode } from "./model/TrieNode";
import { Trie } from "./Trie";
export class IgnorableTrie extends Trie {
private readonly ignoreCharacters = "-_ .;\\?,/";
public findWordsStartWithExcludeIgnoreCharacters = (
startWith: string,
maxCount: number,
previousWords: Set<string>
) => {
if (... |
/* tslint:disable */
// This is a generated file from running the "createIcons" script. This file should not be updated manually.
import React, { FC } from "react";
import { FontIcon, FontIconProps } from "@react-md/icon";
const MarkunreadFontIcon: FC<FontIconProps> = props => (
<FontIcon {...props}>markunread</Fon... |
import { MigrationInterface, QueryRunner, Table } from "typeorm";
export class CreateTableOrders1623694752161 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: "orders",
columns: [
{
... |
import { DocumentNode } from '../language/ast';
import { GraphQLSchema } from '../type/schema';
/**
* Produces a new schema given an existing schema and a document which may
* contain GraphQL type extensions and definitions. The original schema will
* remain unaltered.
*
* Because a schema represents a graph of r... |
import { FarmType } from "./FarmType";
export default interface FarmLocation {
farm: FarmType;
row: number;
col: number;
} |
/// <reference path="../DI/-DI.ts" />
/// <reference path="../Typings/MidnightLizard.d.ts" />
/// <reference path="../Settings/-Settings.ts" />
/// <reference path="../Settings/ExtensionModule.ts" />
/// <reference path="-Popup.ts" />
namespace MidnightLizard.Popup
{
DI.Container.register(Document, class { constru... |
/**
* Calculates the topic count, i.e., how many times the keyword or its synonyms were encountered in the text.
*
* @param {Object} paper The paper containing keyword, text and potentially synonyms.
* @param {boolean} [onlyKeyword=false] Whether to only use the keyword for the count.
*
* @... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { RouterModule } from '@angular/router';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { ShellComponent } from './shell.component';
import { HeaderCom... |
import { Component } from '@angular/core';
@Component({
selector: 'app-server',
templateUrl: './server.component.html',
styleUrls: ['./server.component.css']
})
export class ServerComponent {
serverId: number = 10;
serverStatus: string = 'offline';
constructor() {
this.serverStatus = Math.random() > 0... |
import { MapContext } from '@src/contexts/MapContext';
import React from 'react';
import { Handles, Rail, Slider, Tracks } from 'react-compound-slider';
import { minYearConstant } from '../../../../../../shared/constants/constants';
const TimeLine: React.FC = ({}) => {
const mapContext = React.useContext(MapContext... |
export class BitSet {
public readonly bytes: Uint8Array
public readonly size: number
constructor(bits: number) {
if (bits < 1) {
throw new RangeError("Bitset size must be atleast 1")
}
this.bytes = new Uint8Array(Math.ceil(bits / 8))
this.size = bits
}
... |
import { CreateInvoiceService } from './create-invoice.service';
import { PaymentsService } from './payments.service';
export const services = [CreateInvoiceService, PaymentsService];
export * from './create-invoice.service';
export * from './payments.service'; |
import dynamodb = require('@aws-cdk/aws-dynamodb');
import { Kind, Shape } from '../../shape';
export type HashKey<T extends Shape, PKey extends keyof T> = {
[K in PKey]: T[K];
};
export type CompositeKey<T extends Shape, PKey extends keyof T, SKey extends keyof T> =
{ [K in PKey]: T[K] } &
{ [K in SKey]: T[K] }... |
import { LabLocation } from '../location/types';
export enum LabPolicyTypes {
LOAD_REQUEST = '@lab/policy/LOAD_REQUEST',
LOAD_SUCCESS = '@lab/policy/LOAD_SUCCESS',
LOAD_FAILURE = '@lab/policy/LOAD_FAILURE',
CREATE_REQUEST = '@lab/policy/CREATE_REQUEST',
CREATE_SUCCESS = '@lab/policy/CREATE_SUCCESS',
CREATE... |
export * from "./Analytics"
export * from "./SystemContext" |
import { useFiefAuth, useFiefIsAuthenticated } from '@fief/fief/react';
import React, { useEffect } from 'react';
const RequireAuth: React.FunctionComponent = ({ children }) => {
const fiefAuth = useFiefAuth(); // (1)!
const isAuthenticated = useFiefIsAuthenticated(); // (2)!
useEffect(() => {
if (!isAuthe... |
import { DOMWindow, JSDOM } from 'jsdom';
import { LiveDOMRenderer } from 'render-jsx/dom';
import { makeRenderer } from '../../index';
export interface Extras {
window: DOMWindow;
click: (element: HTMLElement) => void;
}
export function testRender(test: (renderer: LiveDOMRenderer, document: Document, extras: E... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** 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 "../utili... |
declare const _default: ({ production, port, https, target, dontOpenBrowser, publicPath, }: {
production?: boolean;
port?: number;
https?: boolean;
target?: "module" | "es5";
dontOpenBrowser?: boolean;
publicPath?: string;
}) => Promise<void>;
export default _default; |
/*
* The MIT License
*
* Copyright (c) 2018 Google LLC.
*
* 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, modify, ... |
import React from 'react';
import { SystemCommonProps } from '../constants';
import { SxProp } from '../sx';
import { ComponentProps } from '../utils/types';
export declare const listItemStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
declare const StyledItem: impo... |
import { forwardRef, Component } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { DateRangePickerComponent } from './date-range-picker.component';
@Component({
selector : 'nz-date-picker',
templateUrl: './date-range-picker.component.html',
providers : [ {
provide : NG... |
// Videos Page:
// ___________________________________________________________________
import React, { useEffect, useState } from 'react'
// Theme
import * as S from './styles.scss'
import theme from '../../gatsby-plugin-theme-ui'
import { Box, Flex, Heading, Text } from '../../components/ui'
// Components
import S... |
export = wrapReducerAction;
/**
* Creates a state validator reducer
* @param {ValidatorSchema} schema
* @param {Reducer} reducer
*/
declare function wrapReducerAction(schema: ValidatorSchema, reducer?: Reducer): (state: any, action: AnyAction) => any;
declare namespace wrapReducerAction {
export { AnyAction, Re... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('gup app... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UserFormGeneralComponent } from './user-form-general.component';
describe('UserFormGeneralComponent', () => {
let component: UserFormGeneralComponent;
let fixture: ComponentFixture<UserFormGeneralComponent>;
beforeEach(async(() ... |
/**
*
*
* OpenAPI spec version: 20200601
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
/**
* @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
*/
/// <reference types="node"/>
/// <reference lib="es2017"/>
import {format, parseTsconfig} from '@bazel/typescript';... |
import React, { FunctionComponent } from 'react'
import { CodeSnippet, Conditional } from '@aviato/ui'
import { NextText, NextTitle } from '../text'
export interface ShowcaseHeaderProps {
title: string
description: string
props?: string
}
export const ShowcaseHeader: FunctionComponent<ShowcaseHeaderProps> = ({... |
import { GeneralSteps, Pipeline, Logger, Log } from '@ephox/agar';
import { UnitTest } from '@ephox/bedrock';
import { TinyApis, TinyLoader, TinyUi } from '@ephox/mcagar';
import Plugin from 'tinymce/plugins/media/Plugin';
import Theme from 'tinymce/themes/silver/Theme';
import Utils from '../module/test/Utils';
Uni... |
/** @file Defines the core BattleParser function type. */
import {Logger} from "../../../../util/logging/Logger";
import {BattleAgent, Choice} from "../agent";
import {BattleState} from "../state";
import {EventIterator} from "./iterators";
/**
* Function type for parsing battle events.
*
* @template TAgent Battle ... |
export * from './LinkMenu' |
import { MenuDataItem, getMenuData, getPageTitle } from '@ant-design/pro-layout';
import { Helmet } from 'react-helmet';
import React, { useEffect } from 'react';
import { connect } from 'dva';
import { Row, Col, message } from 'antd';
import { formatMessage } from 'umi-plugin-react/locale';
import { ConnectProps, Con... |
import * as Request from "request";
import { OAFModel, OAFConfiguration, OAFError } from "./index";
export class OAFQuery<T extends OAFModel> {
public constructor() {
}
public execute(): Promise<T[]> {
if (OAFConfiguration.shared.apiKey) {
let uri = OAFCon... |
import { IStyle } from 'office-ui-fabric-react/lib/Styling';
/**
* Enum that defines what we show in columns
*/
export enum GridColumnContentType {
/**
* Enum if we want to show facepile with/without text
*/
facepile,
/**
* Enum if we want to show icon with/without text
*/
icon,
/**
* Enum... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-product-relatives',
templateUrl: './product-relatives.component.html',
styleUrls: ['./product-relatives.component.css']
})
export class ProductRelativesComponent implements OnInit {
listBoxRelative = [1, 2, 3, 4];
constructor() ... |
import { ILogEntry } from 'dataweave/types';
export interface IProps {
entries?: ILogEntry[];
onClearLogs?: () => void;
onGoToAPIReference?: (anchor: string) => void;
}
export interface IState {
filter: string;
} |
export interface Message {
readonly userId?: string;
readonly message: string;
readonly nickname: string;
readonly created?: any;
} |
import React, { ReactNode } from 'react';
import { View, Text, Image } from "react-native";
import { BorderlessButton } from 'react-native-gesture-handler';
import { useNavigation } from '@react-navigation/native';
// import styles from './styles';
import {styles} from './styles';
import backIcon from "../../assets/i... |
import { List as _List_ } from "@aws-sdk/types";
export const _Resources: _List_ = {
type: "list",
member: {
shape: {
type: "string"
}
}
}; |
export interface IValidation {
validate(data: any): Error | null;
} |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const WorldDimensions: {
height: number;
width: number;
}; |
import React, { VFC } from 'react';
import styled from 'styled-components';
import { Emoji } from '~/components/parts/commons';
type Props = {
emojisInfo: { emojiId: string; count: number }[];
onClick: (id: string) => void;
selectedEmojiId?: string;
viewable?: boolean;
};
export const EmojiRadioGroup: VFC<Pr... |
import * as React from "react";
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { ApolloProvider } from "react-apollo";
import List from "./List";
import { GlobalStyle } from "../themes/GlobalStyle";
const client ... |
import React from 'react'
import { useStyles } from '../../commonComponents/styled'
import { MutationFunction } from '@apollo/client'
import { Teams } from './components/Teams'
import { Positions } from './components/Positions'
import { Jerseys } from './components/Jerseys'
import { Sponsors } from './components/Sponso... |
import { AnyObject, PropsResult } from '../types';
import { shallowEqual } from './shallowEqual';
import { logPropertyIntersection } from './logPropertyIntersection';
import { Redirect } from 'next';
interface NextRedirectResult {
redirect?: Redirect;
revalidate?: number | boolean;
notFound?: true;
}
interface ... |
import { FormGroupState, createFormGroupState } from 'ngrx-forms';
import {
LoggedUser,
PasswordForm,
ProfileForm,
Password,
ConfigPassword,
Profile,
ConfigProfile,
FirstLogin
} from '@shared/models';
export const PROFILE_EDIT_FORM = 'PROFILE_EDIT_FORM';
export const PASS_EDIT_FORM = 'PASS_ED... |
import { EncodeOptions, defaultOptions } from '../shared/meta';
import type WorkerBridge from 'client/lazy-app/worker-bridge';
import { h, Component } from 'preact';
import { preventDefault, shallowEqual } from 'client/lazy-app/util';
import * as style from 'client/lazy-app/Compress/Options/style.css';
import Checkbox ... |
import { styled } from '~/styles/stitches.config';
export const HighlighterComponent = styled('div', {
background: 'hsl(0 0% 90.9%)',
position: 'absolute',
top: 40,
left: 16,
borderRadius: 4,
height: 32,
transition: '0.15s ease',
transitionProperty: 'width, transform, opacity',
border: '1px solid whi... |
import { css } from '@rocket.chat/css-in-js';
import { Box, Field, TextInput } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import React, { FC } from 'react';
import AutoCompleteDepartment from '../../../../../client/components/AutoCompleteDepartment';
import Tags from '../.... |
import { Component } from '@angular/core';
import { ModalController, LoadingController } from '@ionic/angular';
import { Secao1Page } from '../secoes/secao1/secao1.page';
import { Secao2Page } from '../secoes/secao2/secao2.page';
import { Secao3Page } from '../secoes/secao3/secao3.page';
import { Secao4Page } from '../... |
import compose from '../reducer'
import testComposer from '../__helpers__/compose'
interface State {
bar?: string
foo?: string
mung?: string
}
describe('reducer', () => {
testComposer(compose)
it('overrides the state with whatever\'s passed to next()', () => {
return compose<State>([
(_, next) =>... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React, {ReactNode} from 'react';
import Avatar, {TAvatarSizeToken} from 'components/widgets/users/avatar/avatar';
import {ActionFunc} from 'mattermost-redux/types/actions';
import {UserCustomStatus, U... |
import * as semVer from "semver";
function shouldSkipPrismaVersionCheck() {
const value = process.env.SKIP_PRISMA_VERSION_CHECK;
return value === "true" || value === "TRUE" || value === "1";
}
function getInstalledPrismaVersion(): string {
const prismaPackageJson = require("@prisma/cli/package.json");
return ... |
import { ethers, upgrades, waffle } from "hardhat";
import { Signer, BigNumberish, utils, Wallet, BigNumber, constants } from "ethers";
import chai from "chai";
import { solidity } from "ethereum-waffle";
import "@openzeppelin/test-helpers";
import {
MockERC20,
MockERC20__factory,
PancakeFactory,
PancakeFactory... |
import { INestApplication } from '@nestjs/common';
import { DocumentBuilder, OpenAPIObject, SwaggerModule } from '@nestjs/swagger';
import { SWAGGER_CONFIG } from './swagger.config';
/**
* Create OpenAPI document using swagger.
* @param app the nestjs application
* @returns the OpenAPI document
*/
export function... |
export * from './Timeline'
export * from './config' |
import { graphql, useStaticQuery } from "gatsby"
import Teacher from "types/Teacher"
const query = graphql`
query collective {
allCollectiveJson {
edges {
node {
_0
_1 {
id
name
photoUrl
}
}
}
}
}
`
export interf... |
import { AttributeValue } from "@aws-sdk/client-dynamodb";
export interface marshallOptions {
convertEmptyValues?: boolean;
removeUndefinedValues?: boolean;
convertClassInstanceToMap?: boolean;
}
export declare const marshall: <T extends {
[K in keyof T]: any;
}>(data: T, options?: mars... |
import { RouteConfig } from 'vue-router';
export const routeLandingAdtest: RouteConfig = {
name: 'landing.adtest',
path: '/adtest',
component: () => import(/* webpackChunkName: "routeLandingAdtest" */ './adtest.vue'),
}; |
import { Coordinates } from "../src/lib/Coordinates";
import { isLine } from "../src/lib/Line";
/** Tests for line coordinate validations. */
describe("Lines", () => {
/** Point Arrays */
const validPA: Coordinates = [
[1.1, 1.2],
[1.5, 1.3],
[1.5, 1.3],
];
const validPA0: Coordinates = [
[0, 0... |
import { Component, ElementRef } from '@angular/core';
// import * as jq from 'jquery';
@Component({
selector: 'main-container.content',
template: ''
})
export class OpportunitiesComponent {
public type: string = "opportunities";
public filter: string = "";
public style: string = "";
public xid... |
import { action, observable, runInAction } from 'mobx';
import { JudgeHost } from '../models';
import http from '../utils/http-client';
export class JudgeHostsStore {
@observable data: JudgeHost[] = [];
@observable updateCount: number = 0;
@action
fetchAll = async (): Promise<JudgeHost[]> => {
return (th... |
import { newE2EPage } from '@stencil/core/testing';
describe('icon-save', () => {
it('renders', async () => {
const page = await newE2EPage();
await page.setContent('<icon-save></icon-save>');
const element = await page.find('icon-save');
expect(element).toHaveClass('hydrated');
expect(element).... |
import React, { useState } from 'react';
import { Form } from 'semantic-ui-react';
import classNames from 'classnames';
import { useDisplayErrorMessage } from '../../context/MessagesContext';
import { parseError } from '../../pages/error/errorTypes';
type Renderable = number | string | React.ReactElement | React.Reac... |
/*
* Copyright 2018- The Pixie 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 ag... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../src/components/StoryWrapper/StoryWrapper';
import { SliderWhite } from './SliderWhite';
storiesOf('SliderWhite', module).add('SliderWhite', () => (
<StoryWrapper at... |
import ISurveyResponse from "./ISurveyResponse";
export class LikertResponse implements ISurveyResponse {
value!: number;
} |
import { OrderGenerator } from "./order-generator"
import { Utils } from "./utils"
import { Disband } from "./order"
import { Board, Unit } from "./types"
export class BuildOrderGenerator<Power> implements OrderGenerator<Power> {
ordersToSkipPhase (board: Board<Power>) {
const numberOfSupplyCenters = Utils.numbe... |
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { Component, OnInit } from '@angular/core';
/**
* @title Manipulating model example
*/
@Component({
selector: 'code-input-model-example',
templateUrl: 'code-input-model-example.html',
styleUrls: ['code-input-model-example.css']
})
expor... |
import * as fs from 'fs';
import * as path from 'path';
import { assertDomSnapshot, launchPuppeteer } from '../utils';
import { toMatchImageSnapshot } from 'jest-image-snapshot';
import * as puppeteer from 'puppeteer';
import events from '../events/webgl';
interface ISuite {
code: string;
browser: puppeteer.Browse... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', ... |
declare namespace Jymfony.Component.Validator.Constraints {
import Constraint = Jymfony.Component.Validator.Constraint;
export class Regex extends Constraint {
public static readonly REGEX_FAILED_ERROR: string;
public message: string;
public pattern?: RegExp;
public htmlPattern... |
import StackGrid from "react-stack-grid";
import { useEffect, useState } from "react";
import { isArray, map, throttle, without, debounce, isFunction } from "lodash";
import { getRecordMedia, getRecordAbstract, getRecordDisplay, isNonEmptyString, newGuid } from 'douhub-helper-util'
import { Card, _window, Tooltip } fro... |
import React from 'react'
export const FOF = () => {
return (
<div className="flex w-full justify-center">
<img src="https://www.elsetge.cat/myimg/f/99-992071_404-page-error-with-funny-figure-skull.jpg" alt="" className="block"/>
</div>
)
} |
import assert from 'assert';
import { Board } from '../src/sites/ptt/model';
import { newbot } from './common';
import { username, password } from './config';
describe('Board', () => {
let ptt;
describe('get', () => {
before('login', async () => {
ptt = await newbot(username, password);
});
aft... |
import type { Plugin, ServerHook, TransformResult } from 'vite';
import type { TransformHook, TransformPluginContext, SourceMap } from 'rollup';
import { createInstrumenter } from 'istanbul-lib-instrument';
import TestExclude from 'test-exclude';
interface IstanbulPluginOptions {
include?: string|string[];
exclude... |
<TS language="ro" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click dreapta pentru a modifica adresa o eticheta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { Combinator, CombinatorTupleContents, Push } from '../combinator';
import { Continuation, ParseState, success } from '../parser/result';
export const { seq } = class SeqCombinator<
T extends Array<Combinator>
> extends Combinator<CombinatorTupleContents<T>> {
private constructor(private readonly combinator... |
import { mdiEyeOffOutline, mdiPlus } from '@mdi/js'
import React, { useMemo, useState } from 'react'
import { useCallback } from 'react'
import { LoadingButton } from '../../../../design/components/atoms/Button'
import EllipsisText from '../../../../design/components/atoms/EllipsisText'
import Flexbox from '../../../..... |
export const httpOptions = {
keepAlive: true,
withCredentials: false,
timeout: 2500, // ms
headers: [
{
name: 'Access-Control-Allow-Origin',
value: '*'
}
]
}
export const wsOptions = {
timeout: 20000, // ms
clientConfig: {
keepalive: true,
keepaliveInterval: 1000 // ms
},
... |
/// <reference path='fourslash.ts' />
/////**
//// * @param {number} x - the first parameter
//// * @param {{ a: string, b: Date }} y - the most complex parameter
//// * @param z - the best parameter
//// * @param alpha - the other best parameter
//// * @param {*} beta - I have no idea how this got here
//// */
////fun... |
import {action} from '@ember/object';
import {inject as service} from '@ember/service';
import Route from '@ember/routing/route';
import projectCollaboratorsQuery from 'accent-webapp/queries/project-collaborators';
import RouteParams from 'accent-webapp/services/route-params';
import ApolloSubscription, {
Subscripti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.