text stringlengths 10 953k |
|---|
import { ISkill, MasteryType } from './types';
export const skills: ISkill[] = [
{
name: 'Windows',
mastery: MasteryType.HIGH,
},
{
name: 'Linux',
mastery: MasteryType.MEDIUM,
},
{
name: 'React',
mastery: MasteryType.MEDIUM,
},
{
name:... |
import { createContext } from 'react';
import { FilterPayload, RaRecord, SortPayload } from '../../types';
/**
* Context to store choices and functions to retrieve them.
*
* Use the useChoicesContext() hook to read the context.
*/
export const ChoicesContext = createContext<ChoicesContextValue>(undefined);
export... |
import { Post } from './../models/model';
import { User } from '../models/model';
import { where } from 'sequelize/types';
export function apiGetProfileDataQuery(userid:number)
{
return User.findOne({where:{userid:userid}}).then((data)=>data);
}
export function apiGetProfilePostsQuery(userid:number)
{
... |
// <rootDir>/__mocks__/k6/http.ts
export default {
request: jest.fn(() => {
return {
json: jest.fn((key) => key),
status: 200,
timings: {
duration: 0,
},
};
}),
}; |
import * as AnchorJS from 'anchor-js';
import { h, render } from 'preact';
import PrimerSpec from './components/PrimerSpec';
import Config from './Config';
import { updateTheme } from './subthemes';
function main() {
const anchors = new AnchorJS();
anchors.add('h1');
anchors.add();
const main_content_node = d... |
export const c_nav__list_link_hover_Color: {
"name": "--pf-c-nav__list-link--hover--Color",
"value": "#fff",
"var": "var(--pf-c-nav__list-link--hover--Color)"
};
export default c_nav__list_link_hover_Color; |
import { registerDecorator, ValidationArguments, ValidationOptions } from 'class-validator';
export function IsCorrectLength(min: number, max: number, validationOptions?: ValidationOptions) {
return function (object: any, propertyName: string) {
registerDecorator({
name: 'isCorrectLength',
target: ob... |
import { ComplexBase } from '@syncfusion/ej2-react-base';
import { CellModel } from '@syncfusion/ej2-spreadsheet';
/**
* `CellDirective` represent a cell of the React Spreadsheet.
* It must be contained in a `RowDirective`.
* ```tsx
* <SpreadsheetComponent>
* <SheetsDirective>
* <SheetDirective>
* <Row... |
import { RouteComponentProps } from "@reach/router";
import React from "react";
import styled, { keyframes } from "styled-components";
import logo from "./react-logo.svg";
const Container = styled.section`
text-align: center;
`;
const Header = styled.header`
background-color: #222;
height: 150px;
padding: 20p... |
import React from 'react'
import './App.css'
import 'antd/dist/antd.css';
import { Layout } from 'antd';
import { Colors } from './components';
const { Header, Footer, Content } = Layout;
const App: React.FC = () => {
return (
<div className="App">
<Layout>
<Header>
<div className="App-... |
import React from 'react'
import { Box, Heading, Stack, Text, Button, Flex } from '@chakra-ui/core'
import { useNavigate } from 'react-router-dom';
const CampaignCard = (props: any): JSX.Element => {
let navigate = useNavigate();
return (
<Box
backgroundColor="teal.100"
ml={0}... |
import { checkPullRequestTitleForMergePreset } from './prTitleParsers';
describe('checkPullRequestTitleForMergePreset', (): void => {
describe('given containing major bump', (): void => {
const title = 'bump @types/jest from 26.0.12 to 27.0.13';
it.each(['DEPENDABOT_MINOR', 'DEPENDABOT_PATCH'])(
'retu... |
/**
* @file Worker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Log, Debug, WorkerRegistry } from '../globals'
export default class _Worker {
pending = 0
postCount = 0
onmessageDict: { [k: number]: Function|undefined } = {}
onerrorDict: { [k: number]: Function|undefined }... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="af_ZA" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About KaneCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location li... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {StyleSanitizeFn} from '../../sanitization/style_sanitizer';
import {RElement} from '../interfaces/renderer';
import... |
import {
AssociateDelegateToResourceCommandInput,
AssociateDelegateToResourceCommandOutput,
} from "./commands/AssociateDelegateToResourceCommand";
import {
AssociateMemberToGroupCommandInput,
AssociateMemberToGroupCommandOutput,
} from "./commands/AssociateMemberToGroupCommand";
import {
CancelMailboxExportJ... |
/** @format */
import { ISvgIconProps, IconWrapper } from '../runtime';
export const BytedHotelPleaseClean = IconWrapper(
'byted-hotel-please-clean',
false,
(props: ISvgIconProps) => (
<svg width={props.size} height={props.size} viewBox="0 0 48 48" fill="none">
<path d="M13 27C13 27 33 27 33 15V44H13V... |
import type { VueConstructor } from 'vue'
export const install: (app: VueConstructor) => void
export * from './appBar'
export * from './button'
export * from './card'
export * from './cell'
export * from './locale'
export * from './skeleton'
export * from './cell'
export * from './lazy'
export * from './progress'
exp... |
// Copyright 2017-2019 @polkadot/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Address, Call } from '../../../interfaces/runtime';
import { ExtrinsicPayloadValue, IExtrinsicImpl, IKeyringPair, Signa... |
import IImageInfo from "../src/IImageInfo";
import IImageStats from "../src/IImageStats";
import ImageQueue from "../src/ImageQueue";
describe("Image queue", () => {
let imageStats;
let imageDownloader;
let logger;
let queueContents;
let queue;
const createImageQueue = (downloader) => new Imag... |
// Test library and utilities for internal use.
export * from './test';
export * from './src/test_lib/spies';
export * from './src/test_lib/utils';
export * from './src/test_lib/fake_async'; |
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { map, mergeMap } from 'rxjs/operators';
import { CheckoutPaymentAdapter } from '../../../checkout/connectors/payment/checkout-payment.adapter';
import {
CA... |
import { Component, OnInit } from '@angular/core';
import { CustomizationService } from '../service/customization.service';
import { FooterService } from '../service/footer.service';
import { SummaryService } from '../service/summary.service';
@Component({
selector: 'app-wheels',
templateUrl: './wheels.component.h... |
import { StructType } from "./class-type";
import { DysplayResult } from "./interfaces";
/**
*
* ### The purpose of this function is to print some "ArrayBuffers that do not know the data structure"
*
* @param view
* @param type
* @param isHex
* @param littleEndian
*/
export function display(
view: DataView,
... |
import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { PrismaClient } from '@prisma/client';
@Injectable()
export class PrismaService extends PrismaClient {
constructor(config: ConfigService) {
super({
datasources: {
db: {
url: config.get('DA... |
import { Router } from '@angular/router';
import { Component } from '@angular/core';
import { FormBuilder, Validator, FormGroup, Validators } from '@angular/forms';
import { RegistationService } from '../services/register.service';
@Component({
selector: 'app-dashboard',
templateUrl: 'register.component.html'
})
... |
import { Axis, Chart, Coord, Geom, Guide, Shape } from 'bizcharts';
import React from 'react';
import autoHeight from '../autoHeight';
const { Arc, Html, Line } = Guide;
export interface GaugeProps {
title: React.ReactNode;
color?: string;
height?: number;
bgColor?: number;
percent: number;
forceFit?: bo... |
import { ApiProperty } from "@nestjs/swagger";
import { Length, IsBoolean, IsNumber } from "class-validator";
export class CreateChecklistDto {
@ApiProperty({example : "find news about sockets", description : 'value of checklist'})
@Length(10, 100)
readonly value : string;
@ApiProperty({example : 'tru... |
import { chunk } from "lodash";
var hl = require("highland");
var Rx = require("rx-extra");
// TODO ~2^16 is what I observed as the approximate
// max size handled on my Macbook, but that's not a
// representative sample of what this could run on.
// What should this value be?
var MAX_CHUNK_SIZE_DEFAULT = Math.pow(2, ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { computed, defineComponent } from 'vue';
import classNames from '../_util/classNames';
import PropTypes from '../_util/vue-types';
import { tuple } from '../_util/type';
import useConfigInject from '../_util/hooks/useConfigInject';
import Element, { skeletonElementProps, SkeletonElementProps } from './Element';... |
import { Component, OnInit, OnDestroy, Inject} from '@angular/core';
import { DOCUMENT } from '@angular/platform-browser';
@Component({
selector: 'app-clean-blog',
templateUrl: './clean-blog.component.html',
styleUrls: ['./clean-blog.component.css']
})
export class CleanBlogComponent implements OnInit {
cons... |
import React from "react";
import { request } from "graphql-request";
import { GET_LAUNCHES } from "./graphql";
import { GetLaunchesQuery } from "@graphqlTypes/__types__";
const endpoint = "https://api.spacex.land/graphql/";
export const GraphQLRequestExample: React.FC = () => {
const [launches, setLaunches] = R... |
import CarouselButton from "./CarouselButton";
export default CarouselButton; |
type StringOrNumber = number|string
// Full Order
export interface Billing {
firstname: string;
lastname: string;
address_1: string;
address_2: string;
city: string;
state_or_region: string;
postcode_or_pobox: string;
country: string;
phone: string;
}
export interface Shipping {
firstname: string;... |
import getUrl from './getUrl';
import getQuery from './getQuery';
import urlEncode from './urlEncode';
import urlDecode from './urlDecode';
export default {
getUrl,
getQuery,
urlEncode,
urlDecode,
}; |
import { VirtualRepeat } from './virtual-repeat-collection';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { VirtualRepeatContainer } from './virtual-repeat-container';
import { VirtualRepeatAsynch } from './virtual-repeat-asynch';
import { VirtualRepeatReac... |
import { type } from "os";
import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
import { Comic } from "./comic.entity";
import { User } from "./user.entity";
@Entity('user_comic')//Nombre de la tabla
export class UserComic {
//ATRIBUTOS DE LA TABLA
@PrimaryGe... |
import {Client, expect} from '@loopback/testlab';
import {TwpapiApplication} from '../..';
import {setupApplication} from './test-helper';
import * as constants from '../../constants';
describe('Tx Fee Controller', () => {
let app: TwpapiApplication;
let client: Client;
before('setupApplication', async () => {
... |
import Component from './component'
import PureComponent from './pure-component'
import { render } from './render'
import createElement from './create-element'
import cloneElement from './clone-element'
import { nextTick } from 'nerv-utils'
import { Children } from './children'
import { hydrate } from './hydrate'
impor... |
import "../../src/scripts/cdp.i18n";
describe("CDP.i18n", () => {
beforeEach(() => {
// noop.
});
afterEach(() => {
// noop.
});
it("can initializeI18N(null)", (done) => {
expect(CDP).toBeDefined();
CDP.initializeI18N()
.then(() => {
ex... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
import { DeletePolicyRequest } from "../models/models_0";
import {
deserializeAws_restJson1DeletePolicyCommand,
serializeAws_restJson1DeletePolicyCommand,
} from "../protocols/Aws_restJson1";
import { getSerdePlugin } fro... |
import { RAFirebaseOptions } from "../../options";
import {
FireApp,
FireAuth,
FireUser,
FireAuthUserCredentials,
FireStorage,
FireStore,
FireStoreTimeStamp,
FireStoragePutFileResult,
FireStoreCollectionRef,
FireStoreBatch
} from "misc/firebase-models";
export interface IFirebaseWrapper {
options... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
import * as jsep from "jsep";
import {QueryBuilderError} from "./QueryBuilderError";
import {BuildElasticsearchQueryOptions} from "./BuildElasticsearchQueryOptions";
export {QueryBuilderError};
jsep.removeUnaryOp("~");
jsep.removeBinaryOp("|");
jsep.removeBinaryOp("^");
jsep.removeBinaryOp("&");
jsep.removeBinaryOp("... |
/* tslint:disable:no-eval */
import {
Directive,
ContentChildren,
QueryList,
AfterContentInit,
IterableDiffer,
IterableDiffers,
ElementRef,
Output,
EventEmitter,
OnInit,
Renderer2,
OnDestroy,
ViewContainerRef,
Inject,
Type,
IterableChangeRecord
} from '@angular/core';
import { TableEditorRowDirective }... |
import React from "react";
import { useTranslation } from "react-i18next";
import { Route, Switch, useRouteMatch } from "react-router-dom";
import { Heading } from "../../components/heading";
import { useDocumentTitle } from "../../hooks/use-document-title";
import { RouteChildProps } from "..";
import { AssociateCont... |
// @flow
import invariant from "invariant";
import { BigNumber } from "bignumber.js";
import { log } from "@ledgerhq/logs";
import { encodeAccountId } from "../../account";
import { mergeOps } from "../../bridge/jsHelpers";
import type { GetAccountShape } from "../../bridge/jsHelpers";
import { encodeOperationId } from... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import { TestInvokeMethod } from "../model/operations/TestInvokeMethod";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "../types/OutputTypesUnion";
i... |
import {
AbstractControl, FormArray, FormControl, FormGroup, ValidatorFn
} from '@angular/forms';
import * as _ from 'lodash';
import {
forEach, getControlValidators, hasOwn, hasValue, inArray, isArray, isEmpty,
isObject, isDefined, isPrimitive, JsonPointer, JsonValidators, Pointer,
toJavaScriptType, toSchema... |
function selamVer(isim : string){
return "Merhaba" + isim
}
let mesaj= selamVer('Selma 2');
console.log(mesaj);
let sayi:number =12;
sayi=10;
sayi=10.4
let sehir : string ="İzmit"
sehir ="Ankara"
sehir ="İstanbul"
let dogruMu : boolean =true
dogruMu =true;
dogruMu=false;
let sayilar:number[] =[1,2,3]
let ... |
import React, { CSSProperties, FC, ReactNode, useState } from 'react';
import { DatavTheme } from '../../../data';
import RcDrawer from 'rc-drawer';
import { css } from 'emotion';
import CustomScrollbar from '../CustomScrollbar/index'
import { IconButton } from '../IconButton/IconButton';
import { stylesFactory, useTh... |
export type LocalStorageKey = 'nickname'; |
import React from 'react';
import { IconNames } from '@spinnaker/presentation';
import { Application } from '../application';
import { IManagedResourceSummary, ManagedResourceStatus } from '../domain';
import { logger } from '../utils';
interface IViewConfiguration {
appearance: 'info' | 'warning' | 'error';
icon... |
//
// Copyright (c) 2021 Cisco Systems, Inc and its affiliates
// All rights reserved
//
import { Component, EventEmitter, Inject, Input, Output, ViewChild } from '@angular/core';
import _ from 'lodash';
import { AngularJSProvider, WizardComponent } from '@msx/common';
import template from './create-site.component.html... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
// TO... |
import { Params } from '../../proxy';
import { BoolStr, MethodFunc, Track } from '../common';
export type ArtistTopTracksParams = Params & (
{ artist: string } | { mbid: string }
) & {
autcorrect?: BoolStr;
limit?: number;
page?: number;
};
interface ArtistTopTracksResponseBody {
toptracks: {
track: Tra... |
import ElementRenderer from '../../lib/html-renderer/ElementRenderer';
import Window from '../../lib/Window';
import HTMLElement from '../../lib/nodes/basic-types/html-element/HTMLElement';
import HTMLPage from './data/HTMLPage';
describe('ElementRenderer', () => {
let window: Window;
beforeEach(() => {
window = ... |
export const MagicNotPossibleId = -100;
export const FirstValidMatchingSolution = 3; |
import {Component, OnDestroy, OnInit} from '@angular/core';
import {selectRouterConfig, selectRouterParams} from '../../../core/reducers/router-reducer';
import {get, getOr} from 'lodash/fp';
import {select, Store} from '@ngrx/store';
import {interval, Observable, Subscription} from 'rxjs';
import {ActivatedRoute, Rout... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
/**
* Copyright (c) Microsoft Corporation.
*
* 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 agr... |
import { SVGProps } from "react";
declare const Peercoin: (props: SVGProps<SVGSVGElement>) => JSX.Element;
export default Peercoin; |
export class FilterDto {
limit?: number;
offset?: number;
byVotes?: 'DESC' | 'ASC';
} |
import * as CUI from "@chakra-ui/react";
import * as QMR from "components";
import { AddSSMCard } from "./AddSSMCard";
import { CoreSetAbbr, MeasureStatus, MeasureData } from "types";
import { CoreSetTableItem } from "components/Table/types";
import { Link, useLocation, useNavigate, useParams } from "react-router-dom";... |
import { browser, logging } from 'protractor';
import { AppPage } from './app.po';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', async () => {
await page.navigateTo();
expect(await page.getTitleText()... |
import assert from 'assert';
import fs from 'fs-extra';
import path from 'path';
import Sema from 'async-sema';
import spawn from 'cross-spawn';
import { SpawnOptions } from 'child_process';
import { deprecate } from 'util';
import debug from '../debug';
import { NowBuildError } from '../errors';
import { Meta, Package... |
import * as React from 'react';
import { useTheme, styled, Theme } from '@mui/material/styles';
import { SxProps } from '@mui/system';
import Tooltip from '@mui/material/Tooltip';
export type IconImageProps = {
name:
| 'product-core'
| 'product-advanced'
| 'product-templates'
| 'product-designkits'
... |
import { EventEmitter } from 'events'
import tape from 'tape-catch'
import td from 'testdouble'
import { BN } from 'ethereumjs-util'
import { Config } from '../../lib/config'
import { Event } from '../../lib/types'
tape('[LightEthereumService]', async (t) => {
class PeerPool extends EventEmitter {
open() {}
... |
import * as React from 'react';
import TimelineEntry from './entry';
import './styles.scss';
export interface TimelineProps {
children?: React.ReactNode;
}
const Timeline: React.SFC<TimelineProps> = (props: TimelineProps) => (
<div className="timeline-wrapper">{props.children}</div>
);
export { Timeline, Timel... |
import { Component, Output, EventEmitter, Input } from '@angular/core';
import { DaffAddress } from '@daffodil/core';
import { ShippingOption } from '@daffodil/checkout';
import { ShippingOptionsService } from '../shipping-options/components/services/shipping-options.service';
@Component({
selector: 'demo-shipping... |
// Stub event for local and development stuff.
function stubEvent(_eventName: string, _eventDetail: any) {}
function realEvent(eventName: string, eventDetail: any) {
gtag('event', eventName, eventDetail);
}
export function useAnalytics() {
return {
sendEvent:
(import.meta as any).env.PUBLIC_VERCEL_ENV ==... |
export * from './css-class';
export * from './multiline';
export * from './pause';
export * from './press-back-space';
export * from './press-delete';
export * from './press-delete-line';
export * from './press-down';
export * from './press-end';
export * from './press-home';
export * from './press-left';
export * from... |
import { IsArray, IsNotEmpty, IsString } from "class-validator";
import { Player } from "src/players/interfaces/player.interface";
import { Result } from "../interfaces/match.interface";
export class CreateMatchDTO {
@IsString()
@IsNotEmpty()
def: string;
@IsArray()
results: Result[];
@IsArr... |
import { MinimalViewPortConfig } from '@synchro-charts/core';
import { isMinimalStaticViewport } from './predicates';
import { parseDuration } from './time';
export const viewportStartDate = (viewportConfig: MinimalViewPortConfig): Date =>
isMinimalStaticViewport(viewportConfig)
? new Date(viewportConfig.start)
... |
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import { storiesOf } from '@storybook/react';
import centered from '@storybook/addon-centered';
import { NavAZ } from 'nhsuk-react-components';
const stories = storiesOf('NHSUK/Nav A-Z', module);
stories
.addDecorator(centered)
.add... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Allow unused variables in the mocks to have leading underscore
// tslint:disable: variable-name
import { Disposable, ExtensionContext, WebviewPanel } from "vscode";
import TelemetryReporter from "vscode-extension-teleme... |
export function globBus<Event extends { type: string }>() {
type Listener = (event: Event) => void;
const listenersByGlob: Record<string, Set<Listener>> = {};
return {
/**
* Register a listener of events.
*
* @example Listen to a single event
* ```
* bus.on('basket.product.add', fn)... |
import express, { Request, Response } from "express";
import register from "@react-ssr/express/register";
import { config, toMaskConfig } from "./config/config";
const app = express();
(async () => {
await register(app);
app.get("/", (_req: Request, res: Response) => {
const user = { name: "World" };
res... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt API
* This is KubeVirt API an add-on for Kubernetes.
*
* The version of the OpenAPI document: 1.0.0
* Contact: kubevirt-dev@googlegroups.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-ge... |
import { AnchorConfig } from '../addresses/types';
const tequilaDefaultConfig: AnchorConfig = {
lcd: {
URL: 'https://tequila-lcd.terra.dev',
chainID: 'tequila-0004',
gasPrices: {
uluna: 0.15,
usdr: 0.1018,
uusd: 0.15,
ukrw: 178.05,
umnt: 431.6259,
},
gasAdjustment: 1... |
import { SinonSpy, spy } from "sinon";
import { container } from "tsyringe";
import { PropertiesMap, Property, PropertyImpl } from "../../src/util/property";
export function initPropertySpy(): {
propertySpy: SinonSpy;
setProperty: <K extends keyof PropertiesMap>(
name: K,
value: PropertiesMap[... |
declare module 'broccoli-merge-trees' {
import Plugin from 'broccoli-plugin';
import { InputNode } from 'broccoli-node-api';
import { PluginOptions } from 'broccoli-plugin/dist/interfaces';
interface Options extends PluginOptions {
overwrite?: boolean;
}
export default class MergeTrees extends Plugin ... |
import { expect } from "chai";
import { createTestDirectory, createTestFile, createWebpackConfig, removeTestDirectory } from "./helpers";
import loader from "../src/loader";
describe("Multi-File Component Loader", () => {
beforeEach(() => {
createTestDirectory();
});
afterEach(() => {
removeTestDirect... |
import {
Command,
CommandContext,
CommandMap,
PasteCommandContext,
PasteOptions,
Selection
} from "../types";
import { getDefaultCommandMap, L18n, TextApi, TextState } from "..";
import { insertText } from "../util/InsertTextAtPosition";
import { extractKeyActivatedCommands } from "./command-utils";
import ... |
import { app, ipcMain, shell } from 'electron';
import { resolve } from 'path';
import { logError } from '@/main/modular/log';
import Shortcut from '@/main/modular/shortcut';
import Window from '@/main/modular/window';
import { isSecondInstanceWin, customize, opt } from '@/cfg/window.json';
export class App {
privat... |
import React from 'react';
import { Person, Groups, Tabs, Household, ImageEditor, PersonHelper, UserHelper, ApiHelper, PersonInterface, Merge } from './Components'
import { Row, Col } from 'react-bootstrap';
import { RouteComponentProps } from "react-router-dom";
type TParams = { id?: string };
export const PersonPag... |
import React from 'react';
import { useTranslation } from 'react-i18next';
import { useWallet } from 'ui/utils';
import { splitNumberByStep } from 'ui/utils/number';
import { KEYRING_TYPE, HARDWARE_KEYRING_TYPES } from 'consts';
import { AddressViewer } from 'ui/component';
import { useCurrentBalance } from 'ui/compone... |
import { Client, Message } from 'discord.js';
import fs from 'fs';
import path from 'path';
import { prefix } from '../config.json';
const importFile = async (filePath: string) => {
return (await import(filePath))?.default;
};
const commandsExtension = process.env.enviroment === 'prod' ? '.js' : '.ts';
const comman... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import { Provider, TransactionRequest } from "@ethersproject/providers";
import type { DMMRouter02, DMMRouter02Interface } from "../DMMRouter02";
cons... |
import React from 'react';
import { MDXProvider } from '@mdx-js/react';
import { Link } from 'gatsby';
import { EvaIcon } from 'oah-ui';
import styled from 'styled-components';
const ALink: React.FC<any> = ({ href, children }) => {
const internal = /^\/(?!\/)/.test(href);
if (internal) {
return <Link to={href... |
import winston = require('winston');
import config = require('config');
import {
Sha256Notary,
SigningNotary,
LoggingConfiguration,
ContractFactory,
ISigningNotary,
IStorage
} from 'torchwood';
import { IWeb3Adapter, Ethereum } from 'torchwood/Ethereum';
import { EthereumAddress } from 'tor... |
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable @typescript-eslint/no-use-before-define */
Cypress.Commands.add('getManagementInfo', () => {
return cy
.request({
method: 'GET',
url: '/management/info',
})
.then(response => response.body);
});
declare global {
namespa... |
import { Injectable, NotFoundException ,OnModuleInit } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model, Types } from 'mongoose';
import { CreateNotificationArgs, GetNotificationsArgs } from './notification.dto';
import { Notification } from './notification.schema';
@Injectable()
e... |
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { DoctypeProxy } from '../src/doctypes'
async function wrapSettle(promise) {
try {
const value = await promise
return { status: 'fulfilled', value }
} catch (reason) {
return { status: 'rejected', reason }
}
}
describe('DoctypeProx... |
import {Participant, Address, Uint256, DomainBudget} from '../data-types';
import {JsonRpcRequest, JsonRpcResponse} from '../jsonrpc-header-types';
export interface ApproveBudgetAndFundParams {
hub: Participant;
playerParticipantId: string;
asset: Address;
requestedSendCapacity: Uint256;
requestedReceiveCapa... |
import { Account, Status, Application } from 'megalodon'
import DirectMessages, { DirectMessagesState, MUTATION_TYPES } from '@/store/TimelineSpace/Contents/DirectMessages'
const account: Account = {
id: '1',
username: 'h3poteto',
acct: 'h3poteto@pleroma.io',
display_name: 'h3poteto',
locked: false,
create... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.