text stringlengths 10 953k |
|---|
/// <reference path="../typings/jquery.d.ts" />
import $ = require('jquery');
import {IAnimal} from './IAnimal';
export class Dog implements IAnimal{
public hasFur : boolean = true
public color : String
public name : String
constructor(name: String = "Teddy", color: String = "black"){
this.color = colo... |
/*
* Copyright 2018 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 applicable law... |
import JSBI from "jsbi"
const ALICE_AND_BOB = [
"Alice",
"Bob",
"Carol",
"Dave",
"Eve",
"Forest",
"George",
"Harry",
"Issac",
"Justin",
"Kevin",
"Laura",
"Mallory",
"Neal",
"Oscar",
"Pat",
"Quentin",
"Rose",
"Steve",
"Trent",
"Utopia",
"Victor",
"Walter",
"Xavier",
"Yo... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en">
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+67"/>
<source>Right-click to edit address or label</source>
<translation>Right-click to edit addr... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-apartamento-main',
templateUrl: './apartamento-main.component.html',
styleUrls: ['./apartamento-main.component.scss']
})
export class ApartamentoMainComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { EffectDef, EventBus, EventDef } from "@thi.ng/interceptors";
import type { Fn, IObjectOf, Path } from "@thi.ng/api";
import type { IView } from "@thi.ng/atom";
/**
* Function signature for main app components.
* I.e. components representing different app states linked to router.
*/
export type AppComponent... |
const DATE_REGEX = /(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(.*)/
export const tapDate = (value: string): Date | string =>
DATE_REGEX.test(value) ? new Date(value) : value |
/********************************************************************************
* Copyright (C) 2018 TypeFox 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.
*
* Th... |
import type { Context } from "https://deno.land/x/oak@v9.0.1/mod.ts";
import { Oak } from "../../../../deps.ts";
declare module "https://deno.land/x/oak@v9.0.1/mod.ts" {
interface Context {
_query: Record<string, string>;
parameter: (name: string) => string | undefined;
}
// noinspection JSUnusedGlobalS... |
declare namespace Workers {
type worker = {
postMessage: (opts: {}) => any,
};
type main = {
list: Workers.worker[],
sendToWorker: (opts: {}) => any,
}
} |
import { useEffect, useRef } from 'react';
import Jazzicon from '@sekmet/jazzicon';
import { useEthers } from '@usedappify/core';
export default function Identicon({
accountId,
iconSize = 36,
}: {
accountId: string;
iconSize: number;
}) {
const ref = useRef<HTMLDivElement>();
const { account } = useEthers... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import expect from '@kbn/expect';
import { Spaces } from '../../scenarios';
i... |
import { ApiProperty } from '@nestjs/swagger';
import { GenderEnum } from '@app/entity';
export class ResLoad {
@ApiProperty()
public birthday: Date;
@ApiProperty()
public createTime: Date;
@ApiProperty()
public gender: GenderEnum;
@ApiProperty()
public nickname: string;
@ApiProperty()
public u... |
import { Injectable } from '@angular/core';
import { Identification } from 'app/models/identification';
@Injectable({
providedIn: 'root'
})
export class TokenReaderService {
public getIdentificationPerformer(): Identification {
const token = localStorage.getItem('token');
if (token != null) {
... |
import "tailwindcss/tailwind.css";
import type { AppProps } from "next/app";
import Head from "next/head";
const App = (props: AppProps) => {
return (
<>
<Head>
<title>すまほのみかた</title>
</Head>
<props.Component {...props.pageProps} />
</>
);
};
export default App; |
import {
BlockAPI as BlockAPIInterface,
BlockTool,
BlockToolConstructable,
BlockToolData,
BlockTune,
BlockTuneConstructable,
SanitizerConfig,
ToolConfig,
ToolSettings
} from '../../../types';
import { SavedData } from '../../../types/data-formats';
import $ from '../dom';
import * as _ from '../utils... |
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 20220523
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit t... |
import JSDefaultRenameProcessor = require('nashorn/com/intellij/lang/javascript/refactoring/JSDefaultRenameProcessor');
declare class JSQualifiedElementRenameProcessor {
constructor();
}
declare interface JSQualifiedElementRenameProcessor extends JSDefaultRenameProcessor {}
export = JSQualifiedElementRenameProcesso... |
export default {
zh: {
year: '年',
month: '月',
day: '日',
week: '周',
hour: '时',
minute: '分',
seconds: '秒',
all: '全部',
},
en: {
year: 'Year',
month: 'Month',
day: 'Day',
week: 'Week',
hour: 'Hour',
minute: 'Minute',
seconds: 'Seconds',
all: 'All',
}
}... |
import test from "ava";
import { Algo } from "../src/algos/algo_types.js";
import { IterableDijkstra } from "../src/algos/IterableDijkstra.js";
import { getManhattanNeighbors } from "../src/app_util/app_util.js";
test("short path", (t) => {
const start = { x: 0, y: 0 };
const end = { x: 2, y: 2 };
const grid = A... |
export declare type Platforms = keyof typeof PLATFORMS_MAP;
interface IsPlatformSignature {
(plt: Platforms): boolean;
(win: Window, plt: Platforms): boolean;
}
export declare const getPlatforms: (win?: any) => ("ios" | "ipad" | "iphone" | "android" | "phablet" | "tablet" | "cordova" | "capacitor" | "electron" ... |
import { Card } from '../../../interfaces'
import Set from '../Platinum'
const card: Card = {
name: {
en: "Memory Berry",
fr: "Baie de mémoire",
},
illustrator: "Shizurow",
rarity: "Uncommon",
category: "Trainer",
set: Set,
effect: {
fr: "Attachez Baie de mémoire à 1 de vos Pokémon qui ne poss... |
import * as React from "react";
import * as ReactDom from "react-dom";
import { Provider } from "react-redux";
import { fromJS, Map } from "immutable";
import BinaryScanr from "./BinaryScanr";
import apiHandler from "./store/apiRequetHandler";
import configureStore from "./store/configureStore";
import exampleHandler... |
#!/usr/bin/env node
import * as log from '../build/output/log'
import arg from 'next/dist/compiled/arg/index.js'
import { NON_STANDARD_NODE_ENV } from '../lib/constants'
;['react', 'react-dom'].forEach((dependency) => {
try {
// When 'npm link' is used it checks the clone location. Not the project.
require.re... |
import {Component} from '@angular/core';
@Component({
moduleId: module.id,
selector: 'new-account',
templateUrl: 'new-account.component.html',
styleUrls: ['new-account.component.css']
})
export class NewAccountComponent {
constructor( ) {
console.log('constructor new account ');
}
} |
import * as React from 'react';
import { Button } from '@uifabric/experiments';
import { Spinner, Stack, TooltipHost, IStackProps } from 'office-ui-fabric-react';
const stackProps: IStackProps = { tokens: { childrenGap: 16 }, padding: 8, maxWidth: 400 };
// tslint:disable:jsx-no-lambda
export class SlotsExample exten... |
import { EditableGridColConfig } from "@app/shared/components";
export class EditableGridColumConfig {
public config: any;
constructor(config: EditableGridColConfig) {
this.config = config;
}
} |
import * as fs from "fs";
import { promisify } from "util";
import * as path from "path";
import * as Conf from "conf";
import { DeviceTokenCredentials } from "@azure/ms-rest-nodeauth";
const CONFIG_PATH = path.join(`${process.cwd()}/.azez.json`);
interface ILocalConfig {
_cache: any;
get(key: string): Promise<an... |
import React, { useState } from 'react';
import { Text } from 'react-native';
import { themes } from '../../constants/colors';
import { MultiSelect } from '../../containers/UIKit/MultiSelect';
import { ISearchLocal } from '../../definitions';
import I18n from '../../i18n';
import RocketChat from '../../lib/rocketchat'... |
import { Router } from '@angular/router';
import {
Component,
Input,
AfterViewInit,
EventEmitter,
Output,
OnChanges,
} from '@angular/core';
import {
animate,
state,
style,
transition,
trigger,
} from '@angular/animations';
import { Observable } from 'rxjs';
import 'rxjs/add/observable/fromEvent';
import { E... |
import {
DxcCheckbox,
DxcInset,
DxcStack,
} from "@dxc-technology/halstack-react";
const code = `() => {
const onChange = newValue => {
console.log(newValue);
};
return (
<DxcCheckbox
label="Uncontrolled"
defaultChecked
onChange={onChange}
... |
import React from 'react';
import Layout from '../components/layout';
import { PageProps, graphql, Link } from 'gatsby';
import { FluidTopicPhoto, Topic } from '../types';
import styles from './thumbnails.module.scss';
import Img from 'gatsby-image';
import { toFraction, splitToSubgroups, capitalize } from '../utils';
... |
/**
* Handles aria-hidden for dialogs.
*/
export default class AriaIsolate {
private element: HTMLElement;
private affectedElements: HTMLElement[];
constructor(el: HTMLElement) {
if (!(el instanceof HTMLElement)) {
throw new Error(
'AriaIsolate must be instantiated with a valid HTML element'
... |
import { IIncludeQueryParams, IQuery, IQueryParser, Query } from "@pablor21/queryable-js";
import { IMongooseQueryParams } from "./mongoose.queryparams";
import { MongooseQueryParser } from "./mongoose.queryparser";
import { Model, Document, Query as MQuery } from "mongoose";
export interface IMongooseQueryOptions {
... |
module Lttp.Entities.Misc {
export class Flower extends Entities.Entity {
constructor(game: Game) {
super(game, 'sprite_misc', false);
this.animations.add('flower_1', [
'flower/flower_1_3.png',
'flower/flower_1_1.png',
'flower/flower_... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { CommonRefreshTokenRequest } from "@azure/msal-common";
/**
* CommonRefreshTokenRequest
* - scopes - Array of scopes the application is requesting access to.
* - claims -... |
/// <reference types="react" />
declare const RaisedFistMediumDarkSkinTone: ({ size, rem }: {
size: number | string;
rem?: boolean | undefined;
}) => JSX.Element;
export default RaisedFistMediumDarkSkinTone; |
import { Validator, Requireable, PureComponent, Component } from 'react';
import { CellMeasurerCache } from './CellMeasurer';
import { Index, Alignment, ScrollEventData, IndexRange, OverscanIndexRange } from '../../index';
import { Grid, GridCoreProps } from './Grid';
export type TableCellDataGetterParams = {
colu... |
import { Injectable } from '@angular/core';
import { ToastrService } from 'ngx-toastr';
import { IndividualConfig } from 'ngx-toastr/toastr/toastr-config';
import { ThemeService } from '../theme/theme.service';
@Injectable( {
providedIn: 'root'
} )
export class ToastService {
darkTheme: string;
constructor(
... |
module.exports = function (RED: any) {
function configNode(config) {
RED.nodes.createNode(this, config);
this.name = config.name;
this.endpoint = config.endpoint;
this.profiles = config.profiles ;
this.label = config.label ;
this.configtokenenv = config.conf... |
/*
* Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import {
CognitoSyncClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../CognitoSyncClient";
import { RegisterDeviceRequest, RegisterDeviceResponse } from "../models/index";
import {
deserializeAws_restJson1_1RegisterDeviceCommand,
serializeAws_restJson1_1RegisterDeviceCommand
} from "../pro... |
/* eslint-disable @typescript-eslint/no-empty-function */
/* eslint-disable no-console */
/* eslint-disable dot-notation */
import { Plugin, OnResolverCalledHook, EnvelopError, isAsyncIterable } from '@envelop/core';
import * as Sentry from '@sentry/node';
import type { Span } from '@sentry/types';
import { ExecutionAr... |
// @ts-ignore-file
import { google, youtube_v3 } from "googleapis";
import { YOUTUBE_API_KEY } from "../../../config/server";
import {SearchParams} from "../typings";
const youtube = google.youtube({
auth : YOUTUBE_API_KEY,
version : "v3"
});
function durationStrToSeconds(str: string): number {
const REG... |
import * as React from "react";
import DocumentBuilder from "@components/document-builder";
import SEO from "@components/seo";
const propList = [
{
name: "Link",
value: "link",
propTypes: [
{
property: "as",
type: ["React.ElementType"],
default: 'a',
values: [],
... |
/** Interface for mathematical matrices. */
export interface MathMatrix {
/**
* The number of rows in the matrix.
*/
rows: number;
/**
* The number of columns in the matrix.
*/
columns: number;
/**
* Sets the matrix as the identity matrix.
*/
identity(): this;
/... |
import * as React from 'react'
import Icon, { IconProps } from './Icon'
import { ReactComponent as wiDaySunny } from '../icons/wi-day-sunny.svg'
import { ReactComponent as wiNightClear } from '../icons/wi-night-clear.svg'
import { ReactComponent as wiDayCloudy } from '../icons/wi-day-cloudy.svg'
import { ReactCompone... |
import React from "react";
import { action } from "@storybook/addon-actions";
import ListItem from "./list-item";
import StoreIcon from "../store-icon/store-icon";
export default {
title: "ListItem",
component: ListItem,
};
export const Default = () => (
<ListItem
icon={<StoreIcon name="Buchhandlung Pustet"... |
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.15.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.15.0,
* ap-south-1 (https://d2senuesg1djtx.cloudf... |
import { DatePipe } from '@angular/common';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute } from '@angular/router';
import { generateCfBaseTestModules } from '../../../../../test-framework/cloud-foundry-endpoint-service.helper';
import { DetachAppsComponent } from '.... |
import { Database, State, TransactionPool } from "@arkecosystem/core-interfaces";
import { Identities, Interfaces, Transactions, Utils } from "@tycoon69-labs/crypto";
import {
InvalidMultiSignatureError,
MultiSignatureAlreadyRegisteredError,
MultiSignatureKeyCountMismatchError,
MultiSignatureMinimumKeys... |
import { AcademyWallet } from './AcademyWallet'
import { MasterName } from './MasterName'
export const CONTRACTS = {
AcademyWallet,
Name: MasterName,
} |
import * as webpack from 'webpack'
import config from '../config'
import webpackConfig from '../webpack.config'
const pkg = require('../package.json')
const { paths } = config
const webpackUMDConfig = {
target: 'web',
devtool: false,
entry: {
[pkg.name]: paths.src('umd.ts'),
},
externals: {
react: ... |
/**
* @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 {CommonModule} from '@angular/common';
import {Component, Directive, forwardRef, Inject, Injectable, Injection... |
import { Token, TokenType } from '../struct/token'
import { must } from './utils/must'
import { nextIsJoin } from './utils/next-is-join'
import { Node } from '../struct/node'
import { ElseNode } from '../nodes/else'
import { join } from './join'
import { TitanNode } from '../nodes/titan'
// <else> = else <join>?
expor... |
export const name: "ipfs";
export const version: "0.61.0";
export const node: ">=14.0.0";
//# sourceMappingURL=package.d.ts.map |
import { DocDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBClient";
import {
DescribeDBClusterSnapshotAttributesMessage,
DescribeDBClusterSnapshotAttributesResult,
} from "../models/models_0";
import {
deserializeAws_queryDescribeDBClusterSnapshotAttributesCommand,
serializeAws_qu... |
import * as React from "react";
import { render } from "react-testing-library";
import Blockquote from "../Blockquote";
test("html attrs", () => {
const { getByTestId } = render(
<Blockquote id="test" aria-label="test" data-testid="test" />
);
expect(getByTestId("test")).toHaveAttribute("data-testid", "test"... |
export interface IDatable {
data: any;
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
... |
import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { StixObject } from 'src/app/classes/stix/stix-object';
import { AliasPropertyConfig } from '../alias-property.component';
import { AliasEditDialogComponent } from './alias-edit-dial... |
import { Injectable } from '@angular/core';
@Injectable()
export class AuthService {
hello(email: string, password: string){
console.log(email, password)
}
constructor() { }
} |
import { connectionActionTypes } from '../constants/modal.constants';
import { ModalActionHandlers } from '../models/actions.model';
import { copyPasteActionHandler } from './copy-paste.action';
import { addLogoActionHandler } from './add-logo.action';
import { printActionHandler } from './print.action';
import { wpsAc... |
export enum ControlFlowReplacers {
BinaryExpressionControlFlowReplacer,
CallExpressionControlFlowReplacer,
LogicalExpressionControlFlowReplacer,
StringLiteralControlFlowReplacer,
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Framework Emulator Github:
// https://github.com/Microsoft/BotFramwork-Emulator
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// ... |
import { EventEmitter } from "https://deno.land/std@0.91.0/node/events.ts";
import { Flattened } from "./flattened.ts";
import { Nil } from "./interfaces.ts";
import { InternalValue } from "./internal-value.ts";
import { PConstructor } from "./p-constructor.ts";
/**
* Actual Stream constructor wrapped the the main ex... |
import { RFValue } from 'react-native-responsive-fontsize';
import styled from 'styled-components/native';
export const TextContent = styled.View`
width: 100%;
margin-top: ${RFValue(16)}px;
`;
export const Title = styled.Text`
font-size: 22px;
font-family: ${({ theme }) => theme.fonts.medium};
color: ${({ t... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {useIntl} from 'react-intl';
import FeatureRestrictedModal from 'components/feature_restricted_modal/feature_restricted_modal';
import OverlayTrigger from 'components/overl... |
import { Module } from '@nestjs/common';
import { BeerService } from './beer.service';
import { BeerController } from './beer.controller';
@Module({
providers: [BeerService],
controllers: [BeerController],
})
export class BeerModule {} |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Surface } from 'gl-react-native';
import { Shaders, GLSL, Node } from 'gl-react';
const shaders = Shaders.create({
Test: {
frag: GLSL`
precision highp float;
varying vec2 uv;
void main() {
gl_FragColor = vec... |
/* -------------------------------------------------------------------------- */
/* Product Name: DictionaryEngine */
/* Author: Mediasoftpro */
/* Email: support@mediasoftpro.com ... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AddBuyComponent } from './add-buy.component';
describe('AddBuyComponent', () => {
let component: AddBuyComponent;
let fixture: ComponentFixture<AddBuyComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... |
import React from "react";
import { CDEvent } from "./CDEvent";
import CountDown from "./CountDown";
interface EventCountDownProps {
event: CDEvent;
removeEvent: () => void;
}
const EventCountDown: React.VFC<EventCountDownProps> = ({
event,
removeEvent,
}) => (
<div className="countdown-event">
... |
import { observable, reaction, autorun } from '../'
import { batch } from '../batch'
import { define } from '../model'
const sleep = (duration = 100) =>
new Promise((resolve) => setTimeout(resolve, duration))
test('autorun', () => {
const obs = observable({
aa: {
bb: 123,
},
})
const handler = j... |
import { Component, OnInit, EventEmitter, Input, Output } from '@angular/core';
@Component({
selector: 'app-pagination',
templateUrl: './pagination.component.html',
styleUrls: ['./pagination.component.scss']
})
export class PaginationComponent implements OnInit {
@Input() currentPage: number; // the c... |
import * as React from 'react';
import {useState, useRef, useEffect, useMemo, useCallback} from 'react';
import BallHooks from './BallHooks';
const getWinNumbers = () => {
console.log('getWinNumbers...');
const candidate = Array(45)
.fill(null)
.map((v, i) => i + 1);
const shuffle = [];
while (candi... |
export class ReportPnGenerateModel {
type: number;
relationship: number;
dateTo: string;
dateFrom: string;
constructor(data?: any) {
if (data) {
this.type = data.type;
this.relationship = data.relationship;
this.dateTo = data.dateTo;
this.dateFrom = data.dateFrom;
}
}
} |
import {chain, noop, Rule, SchematicContext, Tree} from '@angular-devkit/schematics';
import {NodePackageInstallTask} from '@angular-devkit/schematics/tasks';
import {
addModuleImportToRootModule,
addPackageJsonDependency,
getProjectFromWorkspace,
getWorkspace,
NodeDependency,
NodeDependencyType
} from 'sch... |
export declare const schemas: {
addressSchema: {
id: string;
type: string;
pattern: string;
};
assetPairsRequestOptsSchema: {
id: string;
type: string;
properties: {
assetDataA: {
$ref: string;
};
assetDataB:... |
import { Core, CoreOptions } from './core';
import { Repo } from './repo';
export interface GitHubAPIOptions extends CoreOptions {
version?: string;
}
export class GitHubAPI {
public api = new Core(this.options);
public repo = new Repo(this.api);
constructor(private readonly options: GitHubAPIOptions) {}
}
... |
import { extname, resolve } from 'path'
import { existsSync } from 'fs'
import glob from 'fast-glob'
import type { Plugin } from 'vite'
import { browser } from '@bugsnag/source-maps'
import colors from 'picocolors'
import type { Sourcemap, SourceMapUploaderConfig } from './types'
import { debug, warn, limitParalleli... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const GiFulguroPunch: IconType; |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import Interactive from './Interactive';
import FlexColumn from './FlexColumn';
import {colors} from './colors';
imp... |
import { ILayout } from './ILayout';
import { IPropertyPaneField } from "@microsoft/sp-property-pane";
import { ServiceScope } from '@microsoft/sp-core-library';
import { WebPartContext } from '@microsoft/sp-webpart-base';
export abstract class BaseLayout<T> implements ILayout {
private _properties!: T;
priva... |
export * from './theme'
export * from './ThemeProvider' |
import * as React from 'react';
import { SinglePilet } from 'piral-core';
import { TileComponentProps } from 'piral-dashboard';
const MyTile: React.FC<{ count: number; increment(): void }> = ({ count, increment }) => (
<div className="tile">
<div>
<b>Preserves the count</b>
</div>
<button onClick={... |
var data = [
{firstName:'harry', lastName:'potter', age:18, notes:[10,10], birthday: "10/10/1990"},
{firstName:'hermione', lastName:'granger', age:17, notes:[19,19], birthday: "10/10/1990"},
{firstName:'drago', lastName:'malfoy', age:17, notes:[10,10], birthday: "10/10/1990"}];
var friend = {harry:['hermione'... |
import { Component, ChangeDetectionStrategy } from '@angular/core';
import { DocumentationSectionComponent } from '../../../../../decorators/documentation-section-component';
import { BaseDocumentationSection } from '../../../../../components/base-documentation-section/base-documentation-section';
@Component({
sel... |
import app from '../main/apps/main.app';
import * as chai from 'chai';
let chaiHttp: any = require('chai-http');
chai.use(chaiHttp);
let api: any = app.expressApp;
let should: any = chai.should();
describe('requests on base router - /api/v1', () => {
/**
* GET
*/
it('should return proper header on GET - /... |
export const logLevels = {
debug: 20,
error: 50,
fatal: 60,
info: 30,
trace: 10,
warn: 40,
}; |
import React from "react";
import { renderWithTheme } from "../../testHelpers";
import ButtonMenu from "../../components/ButtonMenu/ButtonMenu";
import ButtonMenuItem from "../../components/ButtonMenu/ButtonMenuItem";
const handleClick = jest.fn();
it("renders correctly", () => {
const { asFragment } = renderWithTh... |
import { GraphQLObjectType, GraphQLString } from 'graphql';
const STranslatedString = new GraphQLObjectType({
fields: {
en: { type: GraphQLString },
fi: { type: GraphQLString },
},
name: 'TranslatedString',
});
export default STranslatedString; |
import { FC, useState } from "react";
import Button from "./Button";
type EyeDropperResultType = {
sRGBHex: string;
};
type EyedropperType = {
new (property: string): EyedropperType;
open(): Promise<EyeDropperResultType>;
};
declare global {
interface Window {
EyeDropper: new () => EyedropperType;
}
}
... |
<TS language="mk_MK" 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>
<... |
const {sinon} = intern.getPlugin('sinon');
const {describe, it} = intern.getPlugin('interface.bdd');
const {expect} = intern.getPlugin('chai');
const { assert } = intern.getPlugin("chai");
import {
ConnectionState,
ConnectionStateStore
} from "../../main/frontend/ConnectionState";
describe('ConnectionStateStore',... |
import '@testing-library/cypress/add-commands';
Cypress.Commands.add(
'navigateToStation',
(
value: string,
{
isStubbed = true,
findPrefix,
}: {
isStubbed?: boolean;
findPrefix?: string;
} = {}
) => {
if (!isStubbed) {
cy.route(/\/api\/iris\/v1\/abfahrten.*/).as(... |
import { BaseNode } from './baseNode';
import { TreeItemCollapsibleState } from 'vscode';
import { Platform } from '../../types/common';
import { DevelopmentTarget } from '../../types/cli';
export class DeviceNode extends BaseNode {
public readonly collapsibleState = TreeItemCollapsibleState.None;
public readonly ... |
import { FunctionComponent } from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import toast, { Toaster } from 'react-hot-toast'
import { useRouter } from 'next/router'
import { useClipboard } from 'use-clipboard-copy'
import { getBaseUrl } from "../utils/getBaseUrl"
const DownloadBtn: Func... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.