text stringlengths 10 953k |
|---|
import * as React from 'react'
import {WebView as NativeWebView} from 'react-native-webview'
import {WebViewInjections, WebViewProps} from './web-view'
import memoize from 'lodash/memoize'
import openURL from '../util/open-url'
const escape = (str?: string): string => (str ? str.replace(/\\/g, '\\\\').replace(/`/g, '\... |
import { Injectable } from '@angular/core';
import { Observable, BehaviorSubject, ReplaySubject } from 'rxjs';
import { ApiService } from './api.service';
import { JwtService } from './jwt.service';
import { User } from '../models';
import { map, distinctUntilChanged } from 'rxjs/operators';
@Injectable()
export cla... |
// *** 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 } from "../types";
import * as utilities from "../utilities";
... |
import { Direction } from '../src/component/interfaces';
import { makeTest, TestBedConfig } from './scaffolding/runner';
import { Misc } from './miscellaneous/misc';
import { generateItems, Item, insertItems } from './miscellaneous/items';
describe('Adapter Insert Spec', () => {
const MIN = 1;
const MAX = 100;
... |
// tslint:disable:max-classes-per-file
declare module 'ngl' {
export type ColormakerScale = (v: number) => number;
export type StuctureColormakerParams = { structure: Structure } & Partial<IColormakerParameters>;
export type VolumeColormakerParams = { volume: Volume } & Partial<IColormakerParameters>;
export i... |
import { GenericProvider } from '@0xcert/ethereum-generic-provider';
import { Protocol } from '@0xcert/ethereum-sandbox';
import { AssetLedgerCapability } from '@0xcert/scaffold';
import { Spec } from '@specron/spec';
import * as path from 'path';
import { AssetLedger } from '../../../core/ledger';
const spec = new Sp... |
import { injectable, inject } from 'tsyringe';
import ISelectionsRepository from '../repositories/ISelectionsRepository';
import ISelectionEntity from '../schemas/ISelectionSchema';
@injectable()
export default class ListSelectionsService {
constructor(
@inject('SelectionsRepository')
private selectionsRepo... |
import { AiRoundControl } from '../../src/systems/ai-round-control'
import { registerComponents, TlbWorld } from '../../src/tlb'
import { mockLog, mockQueries, mockReturnValue } from '../mocks'
import { ViewportResource } from '../../src/resources/viewport'
import { WorldMapResource } from '../../src/resources/world-ma... |
/**
* Implements CRUD options from a file. Replaces the usage of a database, acts like environment variables.
*/
import fs from 'fs';
import jsonfile from 'jsonfile';
import path from 'path';
const FILE_NAME = '../data.json';
/**
* This variable exists only to specify which environment variables are being used.
*... |
import { Element } from './Element';
export function nameEqual(a: Element, b: Element): boolean;
export function attrsEqual(a: Element, b: Element): boolean;
export function childrenEqual(a: Element, b: Element): boolean;
export function equal(a: Element, b: Element): boolean; |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
import { JwtUtils } from "./JwtUtils";
describe("JwtUtils", () => {
let jwt: string;
beforeEach(() => {
jwt = "eyJ0eXAiOiJKV... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute } from '@angular/router';
import { of } from 'rxjs';
import { HttpHeaders, HttpResponse } from '@angular/common/http';
import { ArtemisTestModule } from '../../test.module';
import { TextExerciseDetailComponent } from 'app/exerci... |
export const sampleProgram = `{
**Press 'Compile & Run'** (top right corner) to start this application!
}
program myProgram;
var
year: integer; { only supported data type: integer}
stop: integer;
begin
year := §MMXX; { roman numbers are prefixed with a § }
{ this featur... |
import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
import { ModulesContainer } from '@nestjs/core/injector/modules-container';
import { GqlModuleOptions } from '../interfaces/gql-module-options.interface';
import { BaseExplorerService } from './base-explorer.service';
export declare class Plugins... |
import { rpc } from "./scatter";
import * as store from "./store";
export function update_block() {
rpc.get_info().then((info) => {
store.head_block_num.set(info.head_block_num);
setTimeout(update_block, 5000);
});
}
export function update_time() {
store.time.set(String(new Date()));
setTimeout(update... |
import {
Schema,
SchemaArray,
SchemaBoolean,
SchemaInteger,
SchemaNull,
SchemaNumber,
SchemaObject,
SchemaStrict,
SchemaString,
} from './schema';
describe('JSON Schema definitions', () => {
describe('SchemaArray use cases', () => {
it('should pass schema with type="arra... |
export class BuilderChain<T> {
readonly builder: T;
constructor(builder: T) {
this.builder = builder;
}
then(
middelware: (builder: T) => T
): BuilderChain<T> {
const newBuilder = middelware(this.builder);
return new BuilderChain<T>(newBuilder);
}
} |
export enum Supplement {
Values
} |
/*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import { BigNumber } from 'bignumber.js';
import { RequestBuilder, GetAllRequestBuilder, GetByKeyRequestBuilder } from '@sap-cloud-sdk/core';
import { JobOffe... |
import { fileName } from './setName/encrypt.ts';
class kandoo {
// path for saving data
path: string;
constructor(path: string = './kandoo/') {
this.path = path;
}
// setter
set(key: string, value: string): string {
try {
Deno.mkdirSync(this.path, { recursive: true });
Deno.writeTextFileSync(this... |
/** @format */
interface IContractExportInterfaces<IT> {
readonly Interfaces: IT
}
interface IContractExportLibraries<LT> {
readonly Libraries: LT
}
/* Aave */
import * as AaveInterfaces from './aave/interfaces'
import * as AaveLibraries from './aave/libraries'
export const Aave: IContractExportInterfaces<typeof... |
// svg/account-arrow-down-outline.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgAccountArrowDownOutline = 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/... |
import { RequestBuilder, GetAllRequestBuilder, GetByKeyRequestBuilder, CreateRequestBuilder, UpdateRequestBuilder, DeleteRequestBuilder } from '@sap-cloud-sdk/core';
import { RoleSkillMappingEntity } from './RoleSkillMappingEntity';
/**
* Request builder class for operations supported on the [[RoleSkillMappingEntity]]... |
export { DotInfo } from './dot.component'; |
import {EmailAddress} from "../../ComplexProperties/EmailAddress";
import {ExchangeService} from "../ExchangeService";
import {EwsServiceJsonReader} from "../EwsServiceJsonReader";
import {XmlElementNames} from "../XmlElementNames";
import {ServiceResponse} from "./ServiceResponse";
/**
* @internal Represents the re... |
import { Component } from '@angular/core';
import { ModalController } from '@ionic/angular'
import { Suit } from '../../../../models/card'
@Component({
selector: 'app-select-suit',
templateUrl: './select-suit.component.html',
styleUrls: ['./select-suit.component.scss'],
})
export class SelectSuitComponent {
co... |
import R_add = require('../ramda/dist/src/add');
declare const number: number;
// @dts-jest:pass:snap
R_add(number, number);
// @dts-jest:pass:snap
R_add(number)(number); |
import {
Controller,
Get,
Param,
UseGuards,
Query,
Body,
Put
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { IPagination } from '@gauzy/contracts';
import { CrudController } from './../core/crud';
import { EmployeeLevel } from './organization-employee-level.entity';
import { Employee... |
import { IFact } from "./Fact";
import { ReteNode } from "./nodes/ReteNode";
import { compareTokensAndBindings, Token } from "./Token";
export function removeFromList<T>(list: T[], item: T): T[] {
const i = list.indexOf(item);
return removeIndexFromList(list, i);
}
export function replaceInList<T>(list: T[], ite... |
export default interface PlayerDetails {
/**
* Amount of points the player has
*/
points: number;
/**
* Amount of bullets the player has
*/
bullets: number;
/**
* Can the player reload in this round
*/
canReload: boolean;
/**
* Can the player shoot in th... |
import React from 'react'
import renderer from 'react-test-renderer'
import ThemeProvider from '../ThemeProvider'
import Pill from './Pill'
test('Pill renders without error', () => {
const tree = renderer
.create(
<ThemeProvider>
<Pill label="Important message" />
</ThemeProvider>,
)
... |
import Link from "next/link";
export default function FourOhFour() {
return (
<>
<div className="herocont padd2 center">
<h1 className="createTitle text-4xl">
Peach is lost in another castle
</h1>
<p className="createText text-1xl mt-2">
You look like you might h... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const BlenderDimensions: {
height: undefined;
width: undefined;
}; |
type CollectionEvent = 'relay';
interface Dictionary<Item> {
[ name: string ]: Item;
}
type SerializableValue = string | number | boolean | undefined;
interface CollectionData {
name?: CollectionEvent;
tags?: Dictionary<SerializableValue>;
attachments?: Dictionary<SerializableValue>;
titles?: Dictionary<Se... |
export enum TRANSITION_SCREEN_EVENT {
FADE_IN_START = "transition_fade_in_start",
FADE_IN_COMPLETE = "transition_fade_in_complete",
FADE_OUT_START = "transition_fade_out_start",
FADE_OUT_COMPLETE = "transition_fade_out_complete",
} |
export default class GetSettings {
} |
import { Metadata } from '@appland/models';
export interface AppMapMetadata {
labels: string[];
apps: string[];
clients: Metadata.Client[];
frameworks: Metadata.Framework[];
git: Metadata.Git[];
languages: Metadata.Language[];
recorders: Metadata.Recorder[];
testStatuses: ('succeeded' | 'failed')[];
... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { I18nTestingModule } from '@spartacus/core';
import { AssetsTableComponent } from './assets-table.component';
describe('AssetsTableComponent', () => {
let component: AssetsTableComponent;
let fixture: ComponentFixture<AssetsTableComponent>... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BENJIROLLS</source>
<translation type="unfinished"/>
</message>
... |
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'search',
})
export class SearchPipe implements PipeTransform {
transform(items: any[], terms: string): any[] {
if(!items) return [];
if(!terms) return items;
terms = terms.toLowerCase();
return items.filter( it => {
return it... |
import { createIcon } from '../_createIcon/createIcon';
import IconTagSizeAll from './IconTag_size_all';
export const IconTag = createIcon({
l: IconTagSizeAll,
m: IconTagSizeAll,
s: IconTagSizeAll,
xs: IconTagSizeAll,
name: 'IconTag',
}); |
import { CompositionObjectBase } from '../base';
import { ObjectType } from '../constants';
export class PlainTextObject extends CompositionObjectBase {
public type: ObjectType;
public text: string;
constructor(text: string) {
super();
this.type = ObjectType.Text;
this.text = text;
}
} |
import Calendar from './Calendar';
export default Calendar; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fi" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitcoinX</source>
<translation>Tietoa BitcoinXista</translation>
</message>
<message>
<... |
import { newE2EPage } from '@stencil/core/testing';
describe('checkbox-component', () => {
it('should create checkbox, unchecked by default', async () => {
const page = await newE2EPage();
await page.setContent(`
<brn-checkbox></brn-checkbox>
`);
const onChange = await... |
import * as path from "path";
import * as url from "url";
namespace EntryPoint {
export class Path {
public static WORK_DIR = process.cwd();
public static join(...paths: string[]): string {
return url.pathToFileURL(path.join(...paths)).href;
}
public static resolve(...... |
import { Vec2Like, GradientStop } from "./api";
import { ff } from "./format";
const RE_ALPHA_COLOR = /(rgb|hsl)a\(([a-z0-9.-]+),([0-9.%]+),([0-9.%]+),([0-9.]+)\)/;
const gradient = (type: string, attribs: any, stops: GradientStop[]): any[] =>
[
type,
attribs,
...stops.map(gradientStop)
... |
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { faTimes } from '@fortawesome/free-solid-svg-icons';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { AppMatchFieldsValidator } from '@app-buyer/shared/validators/match-fields/match-fields.validator';
import { ... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'Angular-Hackaton';
} |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-infrastructure',
templateUrl: './infrastructure.component.html',
styleUrls: ['./infrastructure.component.scss']
})
export class InfrastructureComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
import { Test, TestingModule } from '@nestjs/testing';
import { WalletController } from './wallet.controller';
import { WalletService } from './wallet.service';
describe('WalletController', () => {
let walletController: WalletController;
beforeEach(async () => {
const app: TestingModule = await Test.createTes... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About IZEcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="... |
import { generate } from '@ant-design/colors';
export const primaryColor = '#0034FF';
export const darkMode = 'light';
type Fn = (...arg: any) => any;
type GenerateTheme = 'default' | 'dark';
export interface GenerateColorsParams {
mixLighten: Fn;
mixDarken: Fn;
tinycolor: any;
color?: string;
}
export fu... |
import { LangfullEntity } from './LangfullEntitiy'
export class Alert {
constructor(
public id: number = 0,
public title: LangfullEntity = { rus: '', eng: '' }
) {}
} |
// fontawesome/svgs/solid/arrows-rotate.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgArrowsRotate = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<!--! Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/lice... |
import { ApiClient } from "@iota-pico/api/dist/client/apiClient";
import { ErrorHelper } from "@iota-pico/core/dist/helpers/errorHelper";
import { PAL } from "@iota-pico/pal-browser/dist/pal";
import * as networkConfig from "../networkConfig";
/**
* Example of API findTransactions.
*/
export async function findTrans... |
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
function App() {
return (
<div className="App">
<header className="App-header">
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
... |
import * as vscode from "vscode";
import { RegisterData } from "../emulator/communicator";
export class Z80RegistersProvider
implements vscode.TreeDataProvider<RegisterItem | FlagItem> {
// --- Keeps register data
private _registers: RegisterItem[] = [];
private _onDidChangeTreeData: vscode.EventEmitter<
R... |
import React, { Component } from 'react';
import {
StyleProp,
StyleSheet,
Text,
TextStyle,
View,
ViewStyle
} from 'react-native';
const styles = StyleSheet.create({
container: {},
label: {
fontWeight: 'bold'
},
value: {}
});
export interface KeyValuePair {
label: string;
value: string;
t... |
import { isFunction, isObject } from '@antv/util';
import { Geometry } from '@antv/g2';
import { Params } from '../../core/adaptor';
import { findGeometry } from '../../utils';
import { flow, transformLabel } from '../../utils';
import { DEFAULT_COLORS } from '../../constant';
import { tooltip, interaction, animation, ... |
import { ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { Config } from './config';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
a... |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class SSMContact... |
import { MedulasThemeProvider } from "medulas-react-components";
import * as React from "react";
import TestUtils from "react-dom/test-utils";
import { Provider } from "react-redux";
import { Store } from "redux";
import Routes from "../../routes";
export const createDom = (store: Store): React.Component =>
TestUti... |
import {
Route53ClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../Route53Client";
import {
ListTrafficPolicyVersionsRequest,
ListTrafficPolicyVersionsResponse
} from "../models/index";
import {
deserializeAws_restXmlListTrafficPolicyVersionsCommand,
serializeAws_restXmlListTrafficPoli... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { BehaviorSubject, of } from 'rxjs';
import { take, map, tap, delay, switchMap } from 'rxjs/operators';
import { Place } from './place.model';
import { AuthService } from '../auth/auth.service';
import { PlaceLocation... |
import RdfResourceImpl, { Constructor, namespace, RdfResource, property } from '@tpluscode/rdfine';
import { createFactory } from '@tpluscode/rdfine/factory';
import * as $rdf from '@rdf-esm/data-model';
import type * as RDF from '@rdfjs/types';
import { schema } from './namespace';
import type { Initializer, ResourceN... |
import Core from "../Core";
import { throwError } from "../Messaging";
export default function checkDatastore(operation: string) {
if (Core.Instance.ds == null) {
throwError("Datastore has not been connected to Pebblebed");
}
} |
// Copyright 2017-2021 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import BN from 'bn.js';
import { assert } from '../assert';
import { bnToBn, bnToU8a } from '../bn';
import { u8aConcat } from '../u8a';
const MAX_U8 = new BN(2).pow(new BN(8 - 2)).subn(1);
const MAX_U16 = new BN(2).p... |
import { Bitcoin } from '@renproject/chains-bitcoin';
import type { RenNetwork } from '@renproject/interfaces';
import { PublicKey } from '@solana/web3.js';
const SOL_REGEXP = /[1-9A-HJ-NP-Za-km-z]{32,44}/;
const BTC_REGEXP =
/(bc|tb)(0([ac-hj-np-z02-9]{39}|[ac-hj-np-z02-9]{59})|1[ac-hj-np-z02-9]{8,87})|([13]|[mn2])... |
/**
*
*
* OpenAPI spec version: 20160918
*
*
* 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 ... |
<TS language="de_DE" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Rechtsklick um Adresse oder Etikett zu bearbeiten</translation>
</message>
<message>
<source>Create a new address</source>
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { ReactNode } from 'react'
import * as S from './styles'
import Aside from '@/components/Aside'
import Header from '@/components/Header'
import Content from '@/components/Content'
type Props = {
children: ReactNode
}
export default function Layout({ children }: Props) {
return (
<S.Grid>
<Aside... |
import path from 'path';
import rule from '../../src/rules/prefer-includes';
import { RuleTester } from '../RuleTester';
const rootPath = path.join(process.cwd(), 'tests/fixtures/');
const ruleTester = new RuleTester({
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: rootPath,
projec... |
import "hardhat-gas-reporter";
import "solidity-coverage";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-etherscan";
import { task } from "hardhat/config";
import { verifyLatestCoreDeploy } from "../../typescript/optics-deploy/src/verification/verifyLatestDeploy";
import * as dotenv from "dotenv";
dotenv.co... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { OurStoryComponent } from './our-story.component';
describe('OurStoryComponent', () => {
let component: OurStoryComponent;
let fixture: ComponentFixture<OurStoryComponent>;
beforeEach(async(() => {
TestBed.configureTestingMod... |
export * from "./use-event";
export * from "./use-lifecycle-hooks";
export * from "./use-debounced-effect"; |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { parse } from "url";
import { fromUtf8ToBase64, Uint8ArrayToString } from "@fluidframework/common-utils";
import { ISummaryTree, ISnapshotTree, SummaryType } from "@fluidframework/protocol-definitions";
impo... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import * as stickyfill from 'stickyfilljs';
import { CommandBar, ICommandBarItemProps } from 'office-ui-fabric-react/lib/CommandBar';
import {
ConstrainMode,
DetailsListLayoutMode,
IColumn as ICompositeListColumn,
IDetailsList,
IDetailsRo... |
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* 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 app... |
import { app } from "@blockpool-io/core-container";
import { Blockchain, Database, State } from "@blockpool-io/core-interfaces";
import { formatTimestamp } from "@blockpool-io/core-utils";
import { Interfaces, Utils } from "@blockpool-io/crypto";
export const transformBlock = (model, transform) => {
if (!transform... |
import { Args, Query, Resolver, Subscription } from '@nestjs/graphql';
import { ShapeWherePipe } from '../common/pipes/shape-where.pipe';
import { AtlasLightningWhereArgs } from './atlas-lightning-where.args';
import { AtlasLightning } from './atlas-lightning.entity';
import { AtlasLightningService } from './atlas-ligh... |
import * as React from "react";
import { render } from "reakit-test-utils";
import { ToolbarItem } from "../ToolbarItem";
const props: Parameters<typeof ToolbarItem>[0] = {
stopId: "rover",
stops: [],
currentId: null,
register: jest.fn(),
unregister: jest.fn(),
move: jest.fn(),
next: jest.fn(),
previou... |
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* @module helpers/utils
*/
import type { IDictionary } from 'jodit/types';
/**
* Parse qu... |
export * from './rcTableAdapter/rcTableAdapter'
export * from './ExpandIcon/ExpandIcon'
export * from './RcTable/RcTable' |
/// <reference types="react" />
import { TabBarProps } from '../../types/TabBarProps';
export declare function MiddleActionTabBar({ children, style, tabBarPosition }: TabBarProps): JSX.Element; |
import { radios, select } from "@storybook/addon-knobs";
import { StoryFn } from "@storybook/addons";
import React, { ReactNode } from "react";
import { HVCThemeProvider } from "./withTheme";
import { TeamsTheme } from "../themes";
import { TTranslations } from "../translations";
const storybookT10s = {
// The Farsi... |
import { reverse } from "../fp";
export = reverse; |
import { ClientSmartBarServiceModel } from 'app/services/SmartBarService';
import { useActionUpdateStatusItem } from '../actions/actionStatisticPopup';
export const useActiveSmartBar = () => {
const setUpdateStatusItem = useActionUpdateStatusItem();
const handleActive = (item: ClientSmartBarServiceModel) => (isAc... |
import React from "react";
import { Grid } from "@material-ui/core";
import Pagination from "./Pagination";
import StatusBar from "./DataActionBar";
const Footer = () => {
return (
<Grid container justify={"space-between"}>
<Grid item>
<StatusBar />
</Grid>
<Grid item>
<Pagination />
</Grid>
<... |
import { Component, Directive, Input, NgModule } from '@angular/core';
import { Shallow } from '../shallow';
////// Module Setup //////
@Component({
selector: 'heading',
template: `
<h1 *myStructuralDirective="'first'">Hi there!</h1>
<h1 *myStructuralDirective="'second'">Hi there!</h1>
`,
})
class Headin... |
// Copyright (c) 2020-present PowerBotKit Team
//
// 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, merge, publis... |
import { TestBed } from '@angular/core/testing';
import { CardsApiService } from './cards-api.service';
import { HttpClient } from '@angular/common/http';
describe('CardsApiService', () => {
const httpSpy = jasmine.createSpyObj('HttpClient', ['get']);
beforeEach(() => TestBed.configureTestingModule({
provide... |
import { BundleData } from '../../types/BundleData';
import { Stats } from '../../types/Stats';
import { deriveGraph } from './deriveGraph';
import { deriveChunkGroupData } from './deriveChunkGroupData';
import { DataOptions } from '../../types/DataOptions';
export function deriveBundleData(stats: Stats, options?: Dat... |
//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Polyfill
if (!Function.prototype.bind) {
Function.prototype.bind = function (oThis) {
if (typeof this !== 'function') {
// closest thing possible to the ECMAScript 5
// internal IsCallabl... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const _ScheduledInstancesPlacement: _Structure_ = {
type: "structure",
required: [],
members: {
AvailabilityZone: {
shape: {
type: "string"
}
},
GroupName: {
shape: {
type: "string"
}
}
}
}... |
import { Service, SequelizeServiceOptions } from 'feathers-sequelize'
import { Application } from '../../../declarations'
/**
* A class for channel type service
*
* @author Vyacheslav Solovjov
*/
export class ChannelType extends Service {
public docs: any
constructor(options: Partial<SequelizeServiceOptions>, ... |
import styled from 'styled-components'
export default styled.button`
background-color:#2196Fb;
color:#ffffff;
padding:0.96rem;
border: none;
outline:none;
border-radius:0.75rem;
font-size:0.99rem;
font-weight:700;
transition:0.2s;
&:hover{
background-color:#90caf9;
color:#454545;
borde... |
import { RenderResult } from '@dojo/framework/core/interfaces';
import { create, tsx } from '@dojo/framework/core/vdom';
export type IconName = 'copy' | 'backArrow';
export interface LevelIconProperties {
icon: IconName;
}
const IconMap: { [K in IconName]: RenderResult } = {
copy: (
<svg width="14" height="15" vi... |
import {getMetadataArgsStorage} from "../../globals.ts";
import {TableMetadataArgs} from "../../metadata-args/TableMetadataArgs.ts";
import {DiscriminatorValueMetadataArgs} from "../../metadata-args/DiscriminatorValueMetadataArgs.ts";
/**
* Special type of the table used in the single-table inherited tables.
*/
expo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.