text stringlengths 10 953k |
|---|
JSLinqHelper.NonEnumerable("Clear",
function <T>(this: T[]): T[] {
this.length = 0;
return this;
}); |
import { Inject, Injectable, InjectionToken, Optional } from '@angular/core';
import { ArrayBehaviorState } from '@vitagroup/common';
import { NavEntry } from './nav-entry';
/** Optionally provides the initial set of {@link NavEntry}s that's pushed to the {@link NavEntryState} state */
export const NAV_ENTRIES = new I... |
import { request } from 'http';
import { constant, pipe } from 'fp-ts/lib/function';
import { sequenceT } from 'fp-ts/lib/Apply';
import * as O from 'fp-ts/lib/Option';
import { lookup, ContextProvider } from '@marblejs/core';
import { createServer, HttpMethod, HttpRequestMetadataStorageToken, HttpRequestMetadata } fro... |
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { SectionRoutingModule } from "./section-routing.module";
import { SectionComponent } from "./section.component";
import { MaterialModule } from "src/app/shared/material/material.module";
import { SectionItemComponent } fr... |
import RibbonPluginInterface from './RibbonPluginInterface';
import RibbonButton from './RibbonButton';
import { Strings } from '../strings/ribbonButtonStrings';
interface RibbonProps {
/**
* Ribbon Plugin
*/
ribbonPlugin: RibbonPluginInterface;
/**
* A customized renderer function.
* ... |
/// <reference types="multer" />
import { S3 } from 'aws-sdk';
declare class StorageService {
private readonly storage;
constructor(storage: S3);
newUserProfileAttachment(user: string, file: Express.Multer.File): Promise<S3.ManagedUpload.SendData>;
}
export default StorageService; |
import { Body, Controller, Delete, Get, HttpCode, Param, Post } from '@nestjs/common';
import { ContactService } from './contact.service';
@Controller('contacts')
export class ContactController {
constructor(private contactService: ContactService) {}
@Get()
async list() {
return this.contactService.list()... |
declare type StateCallback = (key?: string | number | symbol, value?: any) => void;
declare class State {
private prototype: any;
set(state: object): void;
static createState(callback: StateCallback): State;
static createArrayProxy(array: Array<any>, callback: StateCallback): Array<any>;
}
declare in... |
import IVideoApiModel from '@/model/api/video/IVideoApiModel';
import IServerConfigModel from '@/model/serverConfig/IServerConfigModel';
import { inject, injectable } from 'inversify';
import * as apid from '../../../../../../api';
import ISendVideoFileToKodiState from './ISendVideoFileToKodiState';
@injectable()
expo... |
import {createFeatureSelector, createSelector} from '@ngrx/store';
import {COMMON_SEARCH_ACTIONS, setSearchQuery} from './common-search.actions';
export interface ICommonSearchState {
isSearching: boolean;
searchQuery: {query: string; regExp?: boolean};
placeholder: string;
active: boolean;
}
// Todo remove ... |
export const fetchImage = (url: string): Promise<ArrayBuffer> => {
return new Promise((resolve, reject) => {
const request = new XMLHttpRequest()
request.open('GET', url, true)
request.responseType = 'arraybuffer'
request.onloadend = () => {
if (request.response !== undefined && (request.status ... |
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
import { AnyAction } from 'redux';
import { AuthActionTypes } from 'actions/auth-actions';
import { FormatsActionTypes } from 'actions/formats-actions';
import { ModelsActionTypes } from 'actions/models-actions';
import { ShareActionTypes } fr... |
import { ANIMATIONS } from './common';
const ROTATE_IN: Keyframe[] = [
{ offset: 0, opacity: 0, transform: 'rotateZ(180deg)', transformOrigin: 'center' },
{ offset: 1, opacity: 1, transform: 'rotateZ(0deg)', transformOrigin: 'center' }
];
const ROTATE_IN_CLOCKWISE: Keyframe[] = [
{ offset: 0, opacity: 0, transf... |
/// <reference path="../../../typings/index.d.ts" />
import TodoModalEditController = require('./TodoModalEditController');
import TodoItem = require('../../models/todo/TodoItem');
import TodosService = require('../../Services/todo/TodosService');
class TodoModalController {
private $scope: ng.IScope;
private ... |
import { Action, combineReducers } from '@ngrx/store'
import * as actions from '../actions/login-form'
import {
cast,
createFormGroupReducerWithUpdate,
createFormGroupState,
disable,
enable,
FormGroupState,
formGroupReducer,
updateGroup,
validate,
} from 'ngrx-forms'
import { equalTo, minLength, requ... |
import { ConfigManifestEntryType } from '../../../../lib/api/deviceConfig'
import { MeteorCall } from '../../../../lib/api/methods'
import { PeripheralDeviceAPI } from '../../../../lib/api/peripheralDevice'
import { PeripheralDevice, PeripheralDevices } from '../../../../lib/collections/PeripheralDevices'
import { prot... |
import React from 'react';
import { Marker, Path, Reference, ReferenceFilterSearchOptions, ReferenceSchemaType, SanityDocument } from '@sanity/types';
import { Observable } from 'rxjs';
import PatchEvent from '../../PatchEvent';
declare type SearchHit = {
_id: string;
_type: string;
};
declare type PreviewSnaps... |
interface FileInfo {
name: string;
content: string;
contentType: string;
}
export class FileUtils {
public static downloadFile(file: FileInfo) {
const link = document.createElement("a");
link.download = file.name;
link.href = `data:application/octet-stream;base64,${file.content}... |
import { GameState, MapAddress, PersonType, PointType, ThreeEnvironment } from '@/assets/types'
import { reactive, computed } from 'vue'
import { defalutPerson, workMapList, travelMapList, getOutOrderTravelMapList } from '@/assets/setting'
import { randItemInList } from '@/assets/index'
import { SETTING } from '@/confi... |
/* GENERATED FILE */
import * as React from 'react';
import Svg, { Rect, Path } from 'react-native-svg';
import { IconProps } from '../lib';
function LockSimpleOpen(props: IconProps) {
return (
<Svg
id="Raw"
viewBox="0 0 256 256"
width={props.size}
height={props.size}
{...props}
... |
import { setupShallowTest } from '../tests/enzyme-util/shallow';
import { ExtensionMobileView } from './component';
import { createExtensionForTest } from '../tests/constants/extension';
import { MobileOrientation } from '../constants/mobile';
import { ExtensionMode } from '../constants/extension-coordinator';
const s... |
import { isPlainObject } from './util'
// 请求的data如果是普通对象,转换成JSON字符串
export function transformRequestData(data: any): any {
if (isPlainObject(data)) {
// 普通对象需要转为JSON字符串才能被写进body被传递
return JSON.stringify(data)
}
return data
}
// 响应的data从JSON字符串转为普通对象
export function transformResponseData(data: any): any ... |
import { React, classNames } from 'jimu-core'
import { Icon, SVGIconProps } from 'jimu-ui'
import svg from '../../svg/outlined/brand/widget-version-management.svg'
export const WidgetVersionManagementOutlined = (props: SVGIconProps) => {
const { className, ...others } = props
const classes = classNames('jimu-icon-... |
export interface ImageConfiguration {
} |
import {Asset} from 'expo-media-library';
import React, {createRef, useRef, useEffect} from 'react';
import { Image, Text, StyleSheet, Animated, View } from 'react-native';
import { layout } from '../types/interfaces';
import { prettyTime } from '../utils/functions';
import { MaterialIcons } from '@expo/vector-icons'; ... |
interface Document {
documentMode: unknown;
}
interface HTMLLinkElement {
onreadystatechange: () => void;
} |
import { Event } from "./index";
import { Logger } from "winston";
import { Joi } from "celebrate";
export type EventHandler = (event: Event) => Promise<any>;
export const httpEventHandler = ({
logger,
eventDispatcherCallbackUrls,
myFetch,
}: {
logger: Logger;
eventDispatcherCallbackUrls: string[];
myFetc... |
/**
* 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.
*/
import type {PluginContext, UserPluginOptions} from '../types';
import collectRedirects from '../collectRedirects';
import normali... |
import { NativeScriptCommonModule } from "nativescript-angular/common";
import { ModalDialogService, NativeScriptFormsModule, NativeScriptRouterModule } from "nativescript-angular";
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { Routes } from "@angular/router";
import { TNSFontIconModule } from "n... |
import React from 'react';
import { Mdc } from '../../interfaces/mdc';
let mdcNum1: number;
let mdcNum2: number;
let rest: number;
let mdc: number;
export default function MdcFraction(
mdcNum1: number,
mdcNum2: number,
rest: number,
mdc : Mdc[]
) {
const Mdc = (c: number, d: number) => {
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BlazerCoin</source>
<translation>عن BlazerCoin</translation>
</m... |
import React from 'react'
import { useRootContext } from './RootContext'
export const Scripts: React.FC<
Omit<
React.DetailedHTMLProps<
React.ScriptHTMLAttributes<HTMLScriptElement>,
HTMLScriptElement
>,
'src' | 'type' | 'async'
>
> = ({
nonce,
// @ts-ignore: You could still pass them ... |
import React, { FC } from 'react';
import { IconProps } from 'types/common';
const Plus: FC<IconProps> = ({ size = 20, color = 'currentColor' }) => {
return (
<svg fill={color} width={size} height={20} viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
d="M10 ... |
import React from 'react';
import styles from "./styles";
import { createUseStyles } from 'react-jss';
import { useLittera } from "react-littera";
const useStyles = createUseStyles(styles);
const translations = {
changeLanguage: {
pl_PL: "Zmień język",
en_US: "Change language"
}
}
const Setti... |
import { LitElement, html, customElement, property } from 'lit-element';
import { repeat } from 'lit-html/directives/repeat';
import { Store } from './store';
const store = new Store();
@customElement('main-element')
export class MainElement extends LitElement {
@property()
_rows = store.data;
@property(... |
import type { Props } from "./Title";
export const Title = (props: Props) => {
document.title = props.children;
return null;
}; |
import { AgmCoreModule } from '@agm/core';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { BrowserModule } from '@angular/platform-browser';
import { StatusBar } from '@ionic-native/status-bar';
import { IonicApp, IonicModule } from 'ionic-angular';
import { Config } from ... |
/*! @license Firebase v3.6.1
Build: 3.6.1-rc.3
Terms: https://firebase.google.com/terms/ */
declare namespace firebase {
interface FirebaseError {
code: string;
message: string;
name: string;
stack: string;
}
class Promise<T> extends Promise_Instance<T> {
static all(values: firebase.P... |
import { Produto } from "./produto";
export interface CartItem {
quantidade: number,
produto: Produto
} |
import { render } from '@testing-library/react';
import React from 'react';
import { H1, H2, H3, H4, H5, H6 } from '.';
describe('<Headings />', () => {
it('has all headings defined ', () => {
expect(H1).toBeDefined();
expect(H2).toBeDefined();
expect(H3).toBeDefined();
expect(H4).toBeDefined();
... |
// Copyright 2012 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import {PortablePath, npath, ppath, FakeFS, NodeFS} from '@yarnpkg/fslib';
import {Argument, ArgumentSegment, CommandChain, CommandLine, ShellLine, parseShell, stringifyCommandChain} from '@yarnpkg/parsers';
import {EnvSegment, ArithmeticExpression, ArithmeticPrim... |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requi... |
const styles: any = {
backgroundKeyword: {
width: 113,
height: 113,
},
wrapper: {
width: 113,
height: 113,
backgroundColor: 'rgba(0, 31, 44, 0.3)',
justifyContent: 'center',
alignItems: 'center',
},
keyword: {
color: '#FFF',
fontWeight: 'bold',
fontSize: 16,
},
};
export default styles; |
import { readString } from "./utils";
export class DataReader
{
buffer: ArrayBuffer;
dataView: DataView;
position: number;
constructor(buffer: ArrayBuffer, start = 0)
{
this.buffer = buffer;
this.dataView = new DataView(buffer);
this.position = start;
}
readSlice(len... |
export {};
const inside = require("./inside");
/**
* Unravels nested polygons into an array of polygons
*
* @param multiPoly a polygon of arbitrary depth with at it's deepest contains arrays of coordinate pairs
* @returns An array of polygons
*/
function arrayOfSubPolygonsFromMultiPolygons(multiPolygon: Array<Arr... |
import { curry, Curried2Result } from '@frampton/core';
/**
* @name addClass
* @method
* @memberof Frampton.Style
* @param {Object} element
* @param {String} name
*/
export default curry(function add_class(name: string, element: HTMLElement): void {
element.classList.add(name);
}); |
import {Component, ElementRef, Host, Optional} from "@angular/core";
import {AdditionalElement, AnyAdditionalElement} from "../../model/intern/additional-element";
import {currentAdditionalElements, selectedAdditionalElementId} from "../../model/intern/printmaps-ui-state";
import {distinctUntilChanged, filter} from "rx... |
import 'rxjs';
import { Inject, Injectable } from '@angular/core';
import { Http } from '@angular/http';
const moduleDepsMapping: Map<string, string[]> = new Map<string, string[]>();
let instance: ModuleLoaderService = null;
@Injectable()
export class ModuleLoaderService {
public static load(moduleName: string)... |
import { Rectangle } from '@pixi/math';
import { BUFFER_BITS } from '@pixi/constants';
import type { ISystem } from '../ISystem';
import type { Renderer } from '../Renderer';
import type { RenderTexture } from './RenderTexture';
import type { BaseRenderTexture } from './BaseRenderTexture';
import type { MaskData } fro... |
export interface OtherInterface {
from: {
other: string;
};
}
export class OtherCustomElementCustomElement {
@bindable otherFoo: string[];
@bindable otherBar;
otherQux: OtherInterface[];
otherUseQux() {
this.otherQux[0];
}
} |
import { surveyCss } from "./cssstandard";
export var defaultBootstrapCss = {
root: "sv_main sv_bootstrap_css",
container: "sv_container",
header: "panel-heading card-header",
body: "panel-body card-block mt-4",
bodyEmpty: "panel-body card-block mt-4 sv_body_empty",
footer: "panel-footer card-footer",
ti... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* List of resources for story-speech scenario
*
* The resources are specified as a list of string resource objects. Each string
* resource object can optionally be attached with a set of file resource
* object. For all resources, the c... |
export const COMPANY_NOT_FOUND_ERROR = 'Company not found'; |
export const SIDE_BAR_MINI_WIDTH = 48;
export const SIDE_BAR_SHOW_TIT_MINI_WIDTH = 80;
export enum ContentEnum {
// auto width
FULL = 'full',
// fixed width
FIXED = 'fixed',
}
// menu theme enum
export enum ThemeEnum {
DARK = 'dark',
LIGHT = 'light',
}
export enum SettingButtonPositionEnum {
AUTO = 'au... |
/**
* Edge Impulse API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* ... |
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({name: 'feeBooleanPipe'})
export class FeeBooleanPipe implements PipeTransform {
transform(value: any, exponent: any) {
// return value.repeat(times);
let res = '';
switch (value){
case '0':res = '否'; break;
case '1':res = '是'; break;
... |
import React, { Component } from 'react'
import {
Animated,
Dimensions,
Easing,
LayoutChangeEvent,
Platform,
StyleProp,
View,
ViewStyle,
TouchableWithoutFeedback,
} from 'react-native'
import Svg, { PathProps } from 'react-native-svg'
import { IStep, ValueXY } from '../types'
import { svgMaskPathMorph... |
import { ethers } from "ethers";
import data from "../../artifacts/contracts/Card.sol/WileCard.json"; // get data abi
import addressData from "../../deploy.json";
const conTractAddress = addressData.address; // * nft contractaddress
// * abi of nft address
const abi = data.abi;
let contract: ethers.Contract;
let prov... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Mkwaycoin</source>
<translation>Mkwaycoin-i buruz</translation>
... |
export default SkullOutline;
declare function SkullOutline(props: any): any;
declare namespace SkullOutline {
namespace defaultProps {
const style: {};
const color: string;
const height: string;
const width: string;
const cssClasses: string;
const title: string;
... |
/** Declaration file generated by dts-gen */
export class Client extends NodeJS.EventEmitter {
constructor(globalConf: any, SubClientType: any, topicConf: any);
connect(metadataOptions: any, cb?: (err: any, data: any) => any);
getClient(): any;
connectedTime(): number;
getLastError(): any;
... |
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
... |
import { combineLatest, Observable, of, ReplaySubject } from 'rxjs';
import { switchMap, tap } from 'rxjs/operators';
import { Injectable } from '@angular/core';
import { CompetitionTableBase } from '../base';
import { CompetitionTableFactory } from '../factory/competition-table.factory';
@Injectable()
export class ... |
import * as vscode from "vscode";
import * as utils from "./utils";
import { Constants } from "./constants";
import { LeoUI } from "./leoUI";
/**
* * Statusbar indicator controller service
*/
export class LeoStatusBar {
private _leoStatusBarItem: vscode.StatusBarItem;
private _statusbarNormalColor = new vs... |
import styled from 'styled-components';
const IntroduceContent = styled.div`
max-width: 1200px;
background: transparent;
padding: 7.5rem 0;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: flex-start;
`;
export { IntroduceContent }; |
import { BaseDTO } from './../../base/base.dto';
import { ApiProperty } from '@nestjs/swagger';
import { Exclude, Expose } from 'class-transformer';
/**
* { id: number; }
*/
@Exclude()
export class IdDTO extends BaseDTO {
@ApiProperty()
@Expose()
id?: number;
} |
import Beatmap from '../../Beatmap'
import Mods from '../../Enum/Mods'
export default class DifficultyCalculator {
public beatmap: Beatmap
public mods: Mods
public static use(beatmap: Beatmap): DifficultyCalculator
public calculate (): this
public setMods (mods: Mods): this
public circleSize: number
publ... |
import {
Cell,
CellCollector,
HexString,
Indexer,
Script,
Tip,
Output,
utils,
Block,
} from "@ckb-lumos/base";
import { validators } from "ckb-js-toolkit";
import { RPC } from "@ckb-lumos/rpc";
import { request, requestBatch } from "./services";
import { CKBCellCollector } from "./collector";
import {... |
export function getFunctionName(functionDefinition: string): string {
const pattern = /(?:def|class)\s+(\w+)\s*\(*/;
const match = pattern.exec(functionDefinition);
if (match == undefined || match[1] == undefined) {
return "";
}
return match[1];
} |
import { css, ElementStyles } from '@microsoft/fast-element';
import { display, ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
import { designUnit, neutralStrokeDividerRest, strokeWidth } from '../design-tokens';
export const dividerStyles: (
context: ElementDefinitionCont... |
import { topmost, NavigationTransition, Frame, getFrameById, Page, BackstackEntry, ViewBase, NavigatedData } from "tns-core-modules/ui/frame";
import FrameElement from "./native/FrameElement";
import { createElement, logger as log } from "./basicdom";
import PageElement from "./native/PageElement";
import NativeElement... |
import { render } from "@testing-library/react";
import { Input } from ".";
describe("Input Component", () =>{
it("should input working", () =>{
const {getByPlaceholderText} = render(<Input type="email" placeholder="Email"/>);
const inputElement = getByPlaceholderText("Email");
expect(inpu... |
// We require the Hardhat Runtime Environment explicitly here. This is optional
// but useful for running the script in a standalone fashion through `node <script>`.
// When running the script with `hardhat run <script>` you'll find the Hardhat
// Runtime Environment's members available in the global scope.
import { et... |
import { TextInput } from "react-native";
//@libraries
import styled from "styled-components/native";
import { RFValue } from "react-native-responsive-fontsize";
export const Container = styled(TextInput)`
width: 100%;
padding: 16px 18px;
font-family: ${({ theme }) => theme.fonts.regular};
font-size: ${RFValu... |
import { GNBLayout } from 'components/Layouts';
import classNames from 'classnames/bind';
import styles from './BucketCreate.module.scss';
import { Input } from 'components/Input';
import { EmojiSelectModal } from 'components/Modal/EmojiSelectModal';
import { useModalState } from 'hooks';
import { useRecoilState, useR... |
import React, { useState } from 'react';
import { useAsync } from 'react-async-hook';
import { usePrefixedTranslation } from 'hooks';
import { encode } from 'lndconnect';
import { LndNode } from 'shared/types';
import { useStoreActions } from 'store';
import { read } from 'utils/files';
import { ellipseInner } from 'ut... |
import chalk from 'chalk';
import { columnar } from '@ionic/cli-framework/utils/format';
import { CommandLineInputs, CommandLineOptions, CommandMetadata, IntegrationName } from '@ionic/cli-utils';
import { Command } from '@ionic/cli-utils/lib/command';
import { INTEGRATION_NAMES } from '@ionic/cli-utils/lib/integratio... |
/**
* Human Cell Atlas
* https://www.humancellatlas.org/
*
* Class responsible for mapping response returned from project end point, to a model appropriate for display on project
* detail page.
*/
// App dependencies
import { Accession } from "../accession/accession.model";
import { ACCESSION_CONFIGS_BY_RESPONSE... |
// 12
// import { inject, observer } from 'mobx-react';
// import Link from 'next/link';
// import { Store } from '../../lib/store';
// const ActiveLink = ({
// linkText,
// href,
// as,
// hasIcon,
// highlighterSlug,
// store,
// }: {
// store?: Store;
// linkText: string;
// href: string;
// as... |
import { Span } from "opentracing";
import { DocumentNode, GraphQLSchema, Source, GraphQLError, ExecutionResult } from "graphql";
import { Store } from "redux";
import { IGatsbyState } from "../redux/types";
import { IGraphQLRunnerStatResults, IGraphQLRunnerStats } from "./types";
declare type Query = string | Source;
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BulmaDropdownComponent } from './dropdown.component';
describe('BulmaDropdownComponent', () => {
let component: BulmaDropdownComponent;
let fixture: ComponentFixture<BulmaDropdownComponent>;
beforeEach(async(() => {
TestBed.... |
import { ChakraProvider } from '@chakra-ui/react';
import { ToastContainer, Zoom } from 'react-toastify';
import { AuthProvider } from '../contexts/AuthContext';
import { SideBarDrawerProvider } from '../contexts/SideBarDrawerContext';
import theme from '../styles/theme';
import 'react-toastify/dist/ReactToastify.min.c... |
import React from 'react';
import StepsItem, { Step } from '@/js/components/steps/stepsItem';
const Steps = ({
steps,
title,
handleAction,
}: {
steps: Step[];
title: string;
handleAction?: (step: Step) => void;
}) => {
const someAssignees = steps.some((i) => i.assignee);
return (
<>
<h3 clas... |
import is from '@sindresorhus/is';
import fs from 'fs-extra';
import path from 'path';
import {AdvancedService, PUBLIC_ADVANCED_SERVICES as publicAdvancedServices} from './apis';
import {ClaspError} from './clasp-error';
import {FS_OPTIONS, PROJECT_MANIFEST_FILENAME} from './constants';
import {DOT, ProjectSettings} f... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Map } from 'immutable'
import { EventBus } from 'ts-bus'
import { ReportErrorActions } from '../report-error/actionCreators'
import { clearError } from './clearError'
import { configureStore } from '../../store/store'
import type { ReduxStore } from '../../store/store'
import type { AppState } from '../../stor... |
import {Entity,PrimaryGeneratedColumn,Column,BaseEntity,OneToOne,JoinColumn} from "typeorm";
/**
* Statusdatensatz
*/
@Entity("orderstatus")
export class StatusEntity extends BaseEntity
{
@PrimaryGeneratedColumn()
id: number;
@Column("varchar",{length: 20})
name: string;
@Column("boolean")
... |
import * as React from 'react';
export const LoadableCheckoutPaymentStep = React.lazy(() =>
import('@pages/CheckoutPage/CheckoutPaymentStep').then(module => ({ default: module.CheckoutPaymentStep }))
); |
import { Component, OnInit, Input, Output, ViewChild, ElementRef, HostListener, EventEmitter, Renderer2, Optional} from '@angular/core';
import { Router, NavigationExtras, ActivatedRoute, Params } from '@angular/router';
import { ControlValueAccessor, DefaultValueAccessor, NgControl, NgModel} from '@angular/forms';
imp... |
import { GGG, MyRank } from './impl/myrank';
interface IGG {
ggenv?: string[];
}
interface IFF {
ffname: string;
aa?: IGG[];
}
enum EnumTest {
AA,
BB,
CC
}
export interface onRank extends IFF, IGG {
/**
* The float of the nowplayers.
*
* @additionalProperties number
... |
<TS language="ja" 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>
<translation>新規アドレスの作成</tra... |
/**
* ErrorHandler helps spot and determine transaction errors.
*
* @packageDocumentation
* @module ErrorHandler
* @preferred
*/
import { EventRecord } from '@polkadot/types/interfaces'
import type { ISubmittableResult } from '@kiltprotocol/types'
import { ConfigService } from '@kiltprotocol/config'
import { err... |
import { TestBed } from '@angular/core/testing';
import { AppAuthGuard } from './auth.guard';
describe('AuthGuard', () => {
let guard: AppAuthGuard;
beforeEach(() => {
TestBed.configureTestingModule({});
guard = TestBed.inject(AppAuthGuard);
});
it('should be created', () => {
expect(guard).toBe... |
import {
ElementParallaxItem, ParallaxController, VectorParallaxItem,
} from '../../src';
// Create visible element
const element = document.createElement('div');
// Create parallax item
const state = { x: 100, y: 300, width: 300, height: 300 };
const controller = new ParallaxController();
const vectorItem = new Ve... |
import { Component, OnInit } from '@angular/core';
import { UserService} from '../services/user.service';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { JarwisService } from 'app/services/jarwis.service';
import { TokenService } from 'app/services/token.service';
import { Router } from '... |
import { BehaviorSubject } from 'rxjs';
import { CLEAN_FN_STATS, ProviderFnStats, TrackedTxSubmitProvider, TxSubmitProviderStats } from '../../src';
import { TxSubmitProvider } from '@cardano-sdk/core';
import { mockTxSubmitProvider } from '../mocks';
describe('TrackedTxSubmitProvider', () => {
let txSubmitProvider:... |
/**
*
*/
import * as events from 'events';
import * as Promise from 'bluebird';
import { deepClone, mergeInto } from '../utils/object';
import Agent from './agent';
/**
*
*/
export interface ClientOptions {
ignoredSuffixes?: string[];
proxyService?: {
endpoint?: string;
blacklist?: string[];
white... |
import * as os from 'os';
import * as path from "path";
import * as vscode from 'vscode';
import * as fs from 'fs';
// POV-Ray Extension Activation
export function activate(context: vscode.ExtensionContext) {
registerTasks();
registerCommands(context);
}
// Create a Render Taks Definiton that we can use to ... |
import { Request, Response } from "express";
export const index: (req: Request, res: Response) => void = (req, res) => {
res.send("<h1>Home</h1>");
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.