text stringlengths 10 953k |
|---|
import * as R from 'ramda';
() => {
// $ExpectType { a: number; b: number; c: number; }
R.zipObj(['a', 'b', 'c'], [1, 2, 3]); // => {a: 1, b: 2, c: 3}
// $ExpectType { a: number; b: number; c: number; }
R.zipObj(['a', 'b', 'c'])([1, 2, 3]); // => {a: 1, b: 2, c: 3}
// Order of numeric keys matters. 2, 3, 1... |
import { Legend as VgLegend, NewSignal, Title as VgTitle } from 'vega';
import { Config } from '../config';
import { LayoutSizeMixins, NormalizedLayerSpec } from '../spec';
import { VgData, VgLayout } from '../vega.schema';
import { Model } from './model';
import { RepeaterValue } from './repeater';
export declare clas... |
import * as React from 'react';
import { Loader } from '../../Loader/Loader';
import { ByteType, UserType } from '@/types';
import { withApollo } from 'react-apollo';
import ApolloClient from 'apollo-client';
import gql from 'graphql-tag';
import './AddMembers.scss';
import UserCard from '../../UserGroup/UserCard/User... |
// Copyright (c) 2020, jupytercalpoly
// Distributed under the terms of the BSD-3 Clause License.
// Some lines of code are from Elyra Code Snippet.
/*
* Copyright 2018-2020 IBM Corporation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
import { createIcon } from './createIcon/index'
export const LineStyle = createIcon({
name: 'LineStyle',
path: 'M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h-8v2zM3 4v4h18V4H3z',
size: '24'
}) |
import { Callback, SubscriptionType } from "../events";
import { BaseConnector } from "./base-connector";
import { SubscriptionEventName } from "../constants";
import fetch from "cross-fetch";
export class HTTPConnector extends BaseConnector {
constructor(readonly endpoint: string) {
super();
}
async conne... |
// Copyright 2019-2022 @polkadot/extension-plus authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable header/header */
/* eslint-disable react/jsx-max-props-per-line */
/**
* @description
* here users can double check their transfer information before submitting it to the blockchain
* *... |
/* tslint:disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL query operation: ListCustomers
// ====================================================
export interface ListCustomers_customers_edges_node_orders {
__typename: "... |
/*
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
mMMMMMMMMMNNNmmNNNMMNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
mmNMMNMMMMNNNN... |
/*
* Copyright IBM Corporation 2020,2021
*
* 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 a... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TopCash</source>
<translation>O TopCash-u</translation>
</messag... |
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Post } from 'models';
import { PostService, MessageParser } from 'services';
@Component({
selector: 'post',
templateUrl: 'post.html'
})
export class PostComponent {
@Input() post: ... |
import type { NextPage } from 'next'
import Head from 'next/head'
import Image from 'next/image'
import Header from '../components/Header'
import styles from '../styles/home.module.scss'
const Home: NextPage = () => {
return (
<div className={styles.container}>
<Head>
<title>Rocket NFT</title>
... |
/** @hidden */
// eslint-disable-next-line import/export
export enum PredefinedColorSpace {
SRGB = "srgb",
}
/** @hidden */
// eslint-disable-next-line import/export
export enum PowerPreference {
LowPower = "low-power",
HighPerformance = "high-performance",
}
/** @hidden */
export enum FeatureName {
D... |
//@ts-expect-error (it's ok, the path actually exists after sanity build, it's just not shipped with types)
export {default} from '@sanity/base/lib/__legacy/@sanity/components/formfields/DefaultFormField' |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { Publi... |
/* eslint-disable no-unused-expressions */
/* eslint-disable no-loop-func */
/* eslint-disable no-console */
import { useQuery } from '@apollo/client';
import {
IconButton,
Paper,
Table,
TableBody,
TableCell,
TableContainer,
TablePagination,
TableRow,
Typography,
} from '@material-ui/core';
import use... |
import { Injectable } from '@angular/core';
import { CollectionConfig, CollectionService } from 'akita-ng-fire';
import { AnalyticsState, AnalyticsStore } from './analytics.store';
@Injectable({ providedIn: 'root' })
@CollectionConfig({ path: 'analytics' })
export class AnalyticsService extends CollectionService<Analy... |
/** @module data */
import { AnyValueMap } from './AnyValueMap';
/**
* Data transfer object to pass paging parameters for queries.
*
* The page is defined by two parameters:
* - the <code>skip</code> parameter defines number of items to skip.
* - the <code>take</code> parameter sets how many items to return in a... |
/*
* 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 { shallow } from 'enzyme';
import React from 'react';
import { MockedP... |
// dd-resizable-handle.ts 2.0.1-dev @preserve
/**
* https://gridstackjs.com/
* (c) 2020 Alain Dumesny, rhlin
* gridstack.js may be freely distributed under the MIT license.
*/
import { DDUtils } from "./dd-utils";
export interface DDResizableHandleOpt {
start?: (event) => void;
move?: (event) => void;
stop?:... |
import * as React from 'react';
import { TeamsProcessedSvgIconSpec } from '../types';
export default {
icon: ({ classes }) => (
<svg role="presentation" focusable="false" viewBox="8 8 16 16" className={classes.svg}>
<g>
<path d="M8.5 10.477l9-2.079v15.204l-9-2.079V10.477zm3.516 5.617l-1.547 2.898 1... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React from 'react';
import {
View,
ViewProps,
} from 'react-native';
import {
ThemedComponentProps,
ThemeType,
withStyles,
} from '@kitten/theme';
import { CheckBox } from '@kitten/ui';
import {
textStyle,
ValidationInput,
SelectComponent,
} from '@src/components/common';
import {
DOBValidator,... |
import { NgModule } from '@angular/core';
import { ProductListComponent } from './product-list.component';
import { ProductDetailComponent } from './product-detail.component';
import { ConvertToSpacesPipe } from '../shared/convert-to-spaces.pipe';
import { RouterModule } from '@angular/router';
import { ProductDetailGu... |
import type { GatsbyNode } from "gatsby"
import path from "path"
const onCreateWebpackConfig: GatsbyNode["onCreateWebpackConfig"] = ({ stage, actions }) => {
const alias = {
// to avoid relative imports (must match `paths` in `tsconfig.json`):
src: path.resolve(__dirname, ".."),
}
if (stage.startsWith("... |
import moment from 'moment'
interface TimeModel {
getNowDate: (format?: string) => string
convertSecondsToMs: (seconds: number) => number
sqliteDateFormat: string
toFormat: (date: Date | string) => string
}
export const sqliteDateFormat = 'YYYY-MM-DD HH:mm:ss'
export const getNowDate = (format: string = sqlit... |
// Type definitions for Plottable v1.4.0
// Project: http://plottablejs.org/
// Definitions by: Plottable Team <https://github.com/palantir/plottable>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../d3/d3.d.ts" />
declare namespace Plottable {
namespace Utils {
n... |
/// <reference path="../../../../node_modules/@types/jasmine/index.d.ts" />
import { TestBed, async, ComponentFixture, ComponentFixtureAutoDetect } from '@angular/core/testing';
import { BrowserModule, By } from "@angular/platform-browser";
import { HomeComponent } from './home.component';
let component: HomeComponen... |
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig');
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
setupFilesAfterEnv: ['jest-extended/all'],
roots: ['./src/'],
testPathIgnorePat... |
import { Component, OnInit, Inject } from '@angular/core';
import { MatBottomSheetRef, MAT_BOTTOM_SHEET_DATA } from '@angular/material/bottom-sheet';
import {MatSnackBar} from '@angular/material/snack-bar';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { ObraService } from '../../../../sha... |
export * from './create-refresh-token.dto';
export * from './update-refresh-token.dto';
export * from './jwt-sign.dto';
export * from './delete-account.dto';
export * from './modify-password.dto';
export * from './update-profile.dto'; |
import {DataSetPage} from '@/services/data/console/dataset';
export enum ColumnSortBy {
NONE = 'none',
ASC = 'asc',
DESC = 'desc'
}
export interface ColumnDef {
fixed: boolean;
width: number;
index: number;
}
export interface DataColumnDef extends ColumnDef {
name: string;
sort: ColumnSortBy;
}
export inter... |
import { useRef, useEffect } from 'react'
import {
disableBodyScroll,
enableBodyScroll,
clearAllBodyScrollLocks,
} from 'body-scroll-lock'
function useBodyScroll(open: boolean) {
const ref = useRef(null!)
useEffect(() => {
if (open) {
disableBodyScroll(ref.current)
} else {
enableBodyScr... |
import {
Component,
Inject,
EventEmitter,
Output} from 'angular2/core';
import {
FORM_DIRECTIVES,
FORM_PROVIDERS,
Control,
ControlGroup,
Validators,
NgFormModel,
FormBuilder
} from 'angular2/common';
import {ToastsManager} from 'ng2-toastr/ng2-toastr';
import {tokenNotExpired} from 'angular2-jwt';
import {Task} from ... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
export type TagId = number;
export interface Tag {
ID: TagId;
Name: string;
} |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
module formFor {
/**
* Object containing keys to be observed by the input button.
*/
export interface SubmitButtonWrapper {
/**
* Button should disable itself if this value becomes true; typically this means the form is being submitted.
*/
disabled:boolean;
};
}; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* @module botbuilder
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import * as jwt from 'jsonwebtoken';
/**
* Validates and Examines JWT tokens from the Bot Framework Emulator
*/
export declare module EmulatorValidation {
/**
* TO BOT FROM EM... |
import {
Body,
Controller,
Delete,
Get,
Param,
Patch,
Post,
Query,
} from '@nestjs/common';
import { CoffeesService } from './coffees.service';
import { CreateCoffeeDto } from './dto/create-coffee.dto';
import { UpdateCoffeeDto } from './dto/update-coffee.dto';
@Controller('coffees')
export class Coffe... |
import { CovidApi } from '../../../api/covidApi'
import {
dashboardActions,
DashboardActionTypes,
FetchData,
FetchHcdTestData,
FetchTHLData,
} from '../actions/dataActions'
import { call, put, takeLatest } from 'redux-saga/effects'
import { FinnishCoronaData } from '../../../entities/FinnishCoronaDa... |
import { Injectable } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Logger } from '../../providers/logger/logger';
// providers
import { OnGoingProcessProvider } from '../on-going-process/on-going-process';
import { ProfileProvider } from '../profile/profile';
@Injectable()
ex... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import * as _stream from "stream";
import { ConfirmProductInstance } from "../model/operations/ConfirmProductInstance";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputT... |
// import { Request, Response, NextFunction } from "express";
// import { getRepository } from "typeorm";
// import { User } from "../entity/User";
// export const checkRole = (roles: Array<string>) => {
// return async (req: Request, res: Response, next: NextFunction) => {
// //Get the user ID from previous mi... |
import { Version } from '@microsoft/sp-core-library';
import { BaseClientSideWebPart, IPropertyPaneConfiguration } from '@microsoft/sp-webpart-base';
export interface IThreeColumnPageWebPartProps {
description: string;
}
export default class ThreeColumnPageWebPart extends BaseClientSideWebPart<IThreeColumnPageWebPa... |
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* 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 ... |
import * as RelayModernRecord from 'relay-runtime/lib/store/RelayModernRecord';
import { Store as RelayModernStore, RecordSource as WoraRecordSource } from '../src';
import RelayRecordSourceObjectImpl from 'relay-runtime/lib/store/RelayRecordSourceMapImpl';
import { getRequest } from 'relay-runtime/lib/query/GraphQLTa... |
import { sign } from "jsonwebtoken";
export const generateToken = (id: string) => {
return sign({ id }, process.env.JWT_SECRET!, {
expiresIn: "30d",
});
}; |
import appRootPath from 'app-root-path'
import convict from 'convict'
import { Snowflake } from 'discord.js'
import { existsSync, readFileSync } from 'fs'
import { join } from 'path'
interface Configuration {
version: string | number
clientToken: string
webhook: {
id: Snowflake
secret: string
}
prefix: string
... |
/* eslint-disable prettier/prettier */
export interface Contract {
errors: any[];
validate(model: any): boolean;
} |
import {
AuthToken,
EmailLoginToken,
Registration,
UserRegistration,
VerifyToken,
} from '@openlab/deconf-shared'
import emailRegex from 'email-regex'
import { object, refine, string, Describe } from 'superstruct'
import {
ApiError,
assertStruct,
DeconfBaseContext,
EmailLoginTokenStruct,
VerifyToke... |
import React from "react";
import { InertiaLink } from "@inertiajs/inertia-react";
import { TutorialType } from "@/utils/types";
interface Props {
tutorial: TutorialType;
}
export default ({ tutorial }: Props) => (
<div className="w-full">
<InertiaLink
className="block rounded-lg overflow-hidden bg-whi... |
import browser from 'webextension-polyfill';
export const getExtensionId = (): string => {
return browser.runtime.id;
};
export const getExtensionAppUrl = (): string => {
return browser.runtime.getURL('dist/views/app/index.html');
};
export const getAppTab = async (): Promise<browser.Tabs.Tab | undefined> => {
... |
import { ReasonPhrases, StatusCodes } from 'http-status-codes';
import { HttpException } from './HttpException';
class RequestTooLongException extends HttpException {
constructor(message: string = ReasonPhrases.REQUEST_TOO_LONG, details?: any) {
super(message, 'RequestTooLongException', StatusCodes.REQUEST_TOO_... |
namespace ts {
export function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName = "tsconfig.json"): string | undefined {
return forEachAncestorDirectory(searchPath, ancestor => {
const fileName = combinePaths(ancestor, configName);
return fileE... |
import React from 'react';
export const BylineArrow: React.FC = () => (
<svg
width="11"
height="11"
viewBox="0 0 11 11"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5 1H10V6"
stroke="#668CFF"
strokeWidth="1.5"
strokeLinejoin="round"
/>
<path d="... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS language="as" version="2.1">
<context>
<name>BootInfoWidget</name>
<message>
<location filename="../src/modules/partition/gui/BootInfoWidget.cpp" line="71"/>
<source>The <strong>boot environment</strong> of this system.<br>... |
import React from 'react';
import { useState,useEffect } from 'react';
import { StyledMessage } from './styles/Message.styled';
interface Props {
message: string
}
const Message: React.FC<Props> = (props) => {
const { message } = props;
const [color, setColor] = useState('grey');
useEffect(() => {
if (mes... |
"use strict";
import {app, Menu, MenuItemConstructorOptions} from "electron";
import EngineProcessor from "./EngineProcessor";
export const createMenu = (mainWindow: Electron.BrowserWindow) => {
const fileSubmenu: MenuItemConstructorOptions[] = [
{
label: "棋譜ファイルを開く",
click: () => mainWindow.webConte... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { User } from './user.entity';
import * as bcrypt from 'bcrypt';
@Injectable()
export class UserService {
private saltRounds = 10;
constructor(
@InjectRepository(User)
... |
import identity from '@newdash/newdash/.internal/identity';
import { defaultParser } from '@odata/parser';
import { FieldNameMapper, transformFilterAst, transformQueryAst } from '../../src';
import { createDBHelper } from '../../src/type/db_helper';
describe('DB Helper Test Suite', () => {
it('should support conver... |
import { Component } from '@angular/core';
import { ExampleData } from 'helper-models';
import { DataFetchService } from 'helper-services';
@Component({
selector: 'app-menu-width-height-usage',
templateUrl: './menu-width-height-usage.component.html'
})
export class MenuWidthHeightUsageComponent {
public items:... |
import { ScrollEventData } from ".";
import { View, layout, ScrollViewBase, scrollBarIndicatorVisibleProperty } from "./scroll-view-common";
export * from "./scroll-view-common";
class UIScrollViewDelegateImpl extends NSObject implements UIScrollViewDelegate {
private _owner: WeakRef<ScrollView>;
public sta... |
import { Component } from '@angular/core';
/*
@Component({
selector: 'my-app',
template: `
<button (click)="onClickMe()">Click me!</button>
{{clickMessage}}
`
})
export class AppComponent {
clickMessage = '';
onClickMe(){
this.clickMessage ='You are my hero!';
}
}
*/
/*
@Component({... |
import { AirGapAngularCoreModule } from '@airgap/angular-core'
import { AirGapAngularNgRxModule } from '@airgap/angular-ngrx'
import { CommonModule } from '@angular/common'
import { NgModule } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { IonicModule } from '@ionic/angular'
import { Reactiv... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ArticleController } from './article/article.controller';
import { NewsService } from './news/news.service';
@Module({
imports: [],
controllers: [AppController, ArticleCont... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as BittrexActions from '../../actions/bittrex';
import { MarketSummary } from '../../mo... |
import * as React from 'react'
import { SVGProps } from 'react'
const SvgLinkedinPlain = (props: SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" {...props}>
<path d="M116 3H12a8.91 8.91 0 0 0-9 8.8v104.42a8.91 8.91 0 0 0 9 8.78h104a8.93 8.93 0 0 0 9-8.81V11.77A8.93 8.9... |
/** @format */
import { PRProps } from "."
import { Issues, Project, PullRequests } from "../../contexts"
const TYPE = "isDraft"
export interface ConditionIsDraft {
type: typeof TYPE
value: boolean
}
function isDraft(
this: Issues | PullRequests | Project,
condition: ConditionIsDraft,
pr: PRProps
) {
return p... |
import { CSS, TEXT } from "./resources";
import { accessible, defaults, hidden, reflects, renders } from "../../tests/commonTests";
import { E2EPage, newE2EPage } from "@stencil/core/testing";
describe("calcite-block-section", () => {
it("renders", async () => renders("calcite-block-section"));
it("honors hidden ... |
import * as ts from 'typescript';
export declare function endsControlFlow(statement: ts.Statement | ts.BlockLike): boolean;
export declare type ControlFlowStatement = ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.ThrowStatement;
export interface ControlFlowEnd {
readonly statements: ReadonlyArr... |
/**
* @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
*/
// tslint:disable:no-implicit-dependencies
// tslint:disable:non-null-operator
import { TestHost } from './test';
/... |
import { PortfolioList } from '.'
import { InMemoryResource } from '@/client/resources'
import { component } from '@/testing/component'
import { PortfolioForge } from '../testing/PortfolioForge'
import { screen } from '@testing-library/svelte'
import type { PortfolioItem } from '../types'
describe('PortfolioList', () ... |
/**
* 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 React from 'react';
import styles from './styles.module.css';
const IconExternalLink = (): JSX.Element => {
return (
... |
export interface HobbyItemModel {
title: string;
icon: string;
} |
import { Genetics } from "./Genetics";
export class Population {
population: Genetics[];
matingPool: Genetics[];
generations: number;
finished: boolean;
target: string;
crossoverRate: number;
mutationRate: number;
perfectScore: number;
best: string;
constructor(p: string, c: number, m: number, num... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as FrontendHelpers from '../../../../../test/unittests/front_end/helpers/EnvironmentHelpers.js';
import * as Buttons from '../../buttons/buttons.... |
/*
* 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 writing, software
* distributed u... |
import * as React from "react";
import { DefaultButton } from "office-ui-fabric-react";
import { formatNumber, getPercentageClass } from "../utils";
export interface StockDetailsData {
changesPercentage: string;
companyName: string;
description: string;
image: string;
price: number
symbol: str... |
import { MovieCard } from '../components/MovieCard';
import '../styles/content.scss';
// Cria uma interface para tipar a props
interface ContentProps {
selectedGenre: { title: string };
movies: Array<{
Title: string;
Poster: string;
Runtime: string;
Ratings: Array<{ Value: string }>;
}>;
}
// ... |
export * from './items/update-thumbnail';
export * from './items/get-user-content';
export * from './items/share-items';
export * from './items/unshare-items';
export * from './items/itemsgroups'; |
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
import ... |
import { Component, AfterViewInit, EventEmitter, Output } from '@angular/core';
import {
NgbModal,
ModalDismissReasons,
NgbPanelChangeEvent,
NgbCarouselConfig
} from '@ng-bootstrap/ng-bootstrap';
import { PerfectScrollbarConfigInterface } from 'ngx-perfect-scrollbar';
import { AuthenticationService } from 'src/... |
import IAdapter from '@adapters/IAdapter'
export default class DataManager {
constructor(protected resource: string, protected adaptor: IAdapter) {
this.resource = resource
this.adaptor = adaptor
}
load(id: string, options?: any): Promise<any> {
return this.adaptor.doRequest(`${this.resource}/${id}`,... |
import { slugify } from './slugify';
describe('slugify', () => {
const cases = [
['We ♥ $ & €', 'we-love-usd-and-eur'],
['it`s a Slug', 'its-a-slug'],
['it’S a slug', 'its-a-slug'],
["it's a SLUG", 'its-a-slug'],
];
cases.forEach((input) => {
it(`converts "${input[0]}" to "${input[1]}"`, () ... |
import Quill from "quill";
const Break = Quill.import("blots/break");
/**
* Extends Quill default "break" so it adds "empty" class to paragraphs when
* there is no text within them. Used with CustomBreak to simulate <br /> vs <p>.
*/
class CustomBreak extends Break {
static value() {
return undefined;
}
... |
import { propertyFlatList } from "../src/helpers/propertyFlatList";
describe("propertyFlatList", () => {
it("generates list", () => {
const map = propertyFlatList({
user: {
email: "EMAIL",
addresses: [
{
description: "DESCRIPTION",
city: "CITY",
... |
/*!
* @license
* Copyright 2019 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 {
ActionBar,
Avatar,
Breadcrumb,
BusyIndicator,
Button,
ButtonGroup,
Calendar,
ComboboxInput,
Counter,
DatePicker,
Dialog,
Checkbox,
FormFieldset,
FormGroup,
FormInput,
FormItem,
FormLabel,
FormLegend,
FormRadioGroup,
FormRadioItem,
... |
import { ChangeDetectionStrategy, Component, Input, OnDestroy, OnInit } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { first, takeUntil } from 'rxjs/operators';
import { AccountFacade } from 'ish-core/facades/account.facade';
import { Basket } from 'ish-core/models/basket/basket.model';
imp... |
import * as React from 'react';
import { StyleSheet, FlatList, SafeAreaView } from 'react-native';
import { useSharedValue } from 'react-native-reanimated';
import {} from 'react-native-swipeable';
import PersonItem from './components/PersonItem';
const DATA = [
{
id: 1,
avatar:
'https://encrypted-tbn0... |
import * as vscode from 'vscode';
import * as cs from '../cs';
import { View, BridgeCommunicationMethod } from '../core/webui/View';
import { ViewRenderer } from "../core/webui/ViewRenderer";
import { CdsWebApi } from '../api/cds-webapi/CdsWebApi';
import DiscoveryRepository from '../repositories/discoveryRepository';
... |
import { readFileSync } from 'fs';
import { join } from 'path';
import { parseMPS } from '../parseMPS';
describe('parseMPS', () => {
it('test', () => {
const arrayBuffer = readFileSync(
join(__dirname, '../../__tests__/data/test/test.mps'),
);
parseMPS(arrayBuffer);
});
}); |
import { serverEnv, anotherServerEnv } from './x.feature';
import sampleFeature from './x.feature';
import { socketClientInitializer } from '@wixc3/engine-core';
sampleFeature.setup(serverEnv, ({ anotherEchoService, run }, { COM: { communication } }) => {
run(async () => {
await socketClientInitializer({ c... |
import { XYAxes, LegendProps } from '../VizData'
export interface ChartProps {
data: Object
axes: XYAxes
colors: string[]
textColors: string[]
keys?: string[]
chartTitle: string
// pie chart
group?: string
value?: string
legend?: LegendProps
}
export interface LineChartProps extends ChartProps {
... |
import URI from "urijs";
export function only<T, K extends keyof T>(target: T, ...members: K[]): Pick<T, K> {
const copy: Partial<T> = {};
members.forEach((member) => target[member] !== undefined && (copy[member] = target[member]));
return copy as Pick<T, K>;
}
export function urlMatches(target: string, needle:... |
import { Writable } from 'stream';
import { ChildProcess } from "child_process";
declare namespace StreamUtils {
declare class ffmpeg {
/**
* The ChildProcess created for this wrapper
*/
process: ChildProcess;
/**
* Creates a new ffmpeg wrapper instance
... |
import JSStubElementType = require('nashorn/com/intellij/lang/javascript/psi/JSStubElementType');
import TypeScriptClassStub = require('nashorn/com/intellij/lang/javascript/psi/stubs/TypeScriptClassStub');
import TypeScriptClass = require('nashorn/com/intellij/lang/javascript/psi/ecma6/TypeScriptClass');
declare class... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.