text stringlengths 10 953k |
|---|
/*
* 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.
*/
import {
Service,
Container,
Directory,
Blob,
PageBlob,
AppendBlob,
BlockBl... |
import {Component} from '@angular/core';
import {AuthService} from './auth/auth.service';
import {Router} from '@angular/router';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
})
export class AppComponent {
discoverUrl = '/places/tabs/discover';
book... |
import { mock } from 'angular';
import * as _ from 'lodash';
import { REACT_MODULE } from 'core/reactShims';
import { CLUSTER_SERVICE } from 'core/cluster/cluster.service';
import { Application } from 'core/application/application.model';
import { ApplicationModelBuilder } from 'core/application/applicationModel.builde... |
/*
* Copyright 2019 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 { Geometry } from './../core/Geometry';
import { PolyhedronBufferGeometry } from './PolyhedronGeometry';
export class DodecahedronBufferGeometry extends PolyhedronBufferGeometry {
/**
* @param [radius=1]
* @param [detail=0]
*/
constructor( radius?: number, detail?: number );
/**
* @default 'Dodecah... |
import { Command as $Command } from "@aws-sdk/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
import { CodeBuildClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeBuildClient";
import { Cre... |
import { Button } from "../src"
import { render, screen } from "@testing-library/react"
import "@testing-library/jest-dom"
import { BsApp, BsTwitch } from "react-icons/bs"
test("Button renders with text", () => {
render(<Button data-testid="test">Hello</Button>)
expect(screen.getByTestId("test")).toBeInTheDocument... |
import { Subject } from 'rxjs/Rx';
export class ObsUsersService {
userActivated = new Subject
} |
import {
concat as observableConcat,
empty as observableEmpty,
from as observableFrom,
of as observableOf,
Observable,
Subject,
Subscription,
} from "rxjs";
import {
first,
expand,
map,
last,
mergeMap,
startWith,
publishReplay,
refCount,
catchError,
f... |
import {
AuthorizationServiceConfiguration,
BaseTokenRequestHandler,
} from '@openid/appauth';
import {NodeBasedHandler} from '@openid/appauth/built/node_support';
import {
PlatformEnvironment,
PlatformRegion,
platformUrl,
} from '../platform/environment';
import {OAuth} from './oauth';
jest.mock('@openid/ap... |
import { app, Tray } from 'electron'
import { creatAppTray } from './tray'
$tools.log.info(`Application <${$tools.APP_NAME}> launched.`)
let tray: Tray
app.allowRendererProcessReuse = true
const appLock = app.requestSingleInstanceLock()
if (!appLock) {
// 作为第二个实例运行时, 主动结束进程
app.quit()
}
app.on('second-instan... |
/**
* @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
*/
export const latestVersions = {
// These versions should be kept up to date with latest Angular peer dependencies.... |
import {
ChangeDetectionStrategy,
Component,
ElementRef,
OnInit,
ViewChild
} from '@angular/core';
import { FakerLocales } from '@mockoon/commons';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { Observable } from 'rxjs';
import { Settings } from 'src/app/models/settings.model';
import { Setti... |
<%#
Copyright 2013-2017 the original author or authors.
This file is part of the JHipster project, see https://jhipster.github.io/
for more information.
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 L... |
export * from './annotation';
export * from './annotation.service'; |
type obtieneInstrucciones = (lineas: string[]) => void;
export default class ObtieneInst {
private entrada: HTMLTextAreaElement;
private boton: HTMLButtonElement;
constructor(){
this.entrada = <HTMLTextAreaElement>document.getElementById("entrada");
this.boton = <HTMLButtonElement>document.getElementById("boto... |
import { ComponentBase, EJComponentDecorator, allVue, gh } from '@syncfusion/ej2-vue-base';
import * as Vue3 from 'vue-class-component';
import { Options } from 'vue-class-component';
import { isNullOrUndefined } from '@syncfusion/ej2-base';
import Vue from 'vue';
// {{VueImport}}
export const isExecute: any = gh ? fal... |
'use strict';
import {
CancellationToken, CodeLens, CodeLensProvider, Event, EventEmitter,
Range, TextDocument, DebugConfiguration
} from 'vscode';
import { RustTests } from './RustTests';
import { basename, dirname } from 'path';
export class RustCodeLensProvider implements CodeLensProvider {
constructor... |
export type RecordsReponse = {
content: RecordItem[],
totalPages: number;
}
export type RecordItem = {
id: number,
moment: string,
name: string,
age: number,
gameTitle:string,
gamePlatform: Platform,
gameGenre: string
}
export type Platform = 'XBOX' | 'PC' | "PLAYSTION"; |
import React from "react";
import styles from "../styles/Home.module.css";
import Link from "next/link";
import Layout from "../components/layout";
import Head from "next/head";
export const pageTitle = 'Next.js Documentation List'
export default function Documents() {
return (
<Layout>
<Head... |
import commands from '../../commands';
import Command, { CommandValidate, CommandOption, CommandError } from '../../../../Command';
import * as sinon from 'sinon';
import appInsights from '../../../../appInsights';
import auth, { Site } from '../../SpoAuth';
const command: Command = require('./folder-copy');
import * a... |
import { ITheme } from '../../../lib/theming/Theme';
import ThemeFactory from '../../../lib/theming/ThemeFactory';
import FLAT_THEME from '../../../lib/theming/themes/FlatTheme';
import { IS_PROXY_SUPPORTED } from '../../internal/Supports';
import { formatSourceCode } from './FormatSourceCode';
export interface Descri... |
import {Component, NgModule} from '@angular/core';
import {Cmp500Component} from './cmp0/cmp';
import {Cmp501Component} from './cmp1/cmp';
import {Cmp502Component} from './cmp2/cmp';
import {Cmp503Component} from './cmp3/cmp';
import {Cmp504Component} from './cmp4/cmp';
import {Cmp505Component} from './cmp5/cmp';
impor... |
import React from 'react';
import PadBox from '@bedrock-layout/padbox';
import styled from 'styled-components';
import { array } from '@storybook/addon-knobs';
const BorderedBox = styled.div`
border: 1px solid black;
`;
BorderedBox.displayName = 'BorderedBox';
let title = 'PadBox';
let name = 'Padding Array';
func... |
import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Injectable } from '@angular/core';
import { AuthService } from '../../data/services';
@Injectable()
export class AuthGuard implements CanActivate {
constructor(
private router: Router,
private authSer... |
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { LoginService } from './login.service';
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
import {FormsModule,ReactiveFormsModule} from '@angular/forms';
import { ToastrManager } from 'ng6-toastr... |
import { Extra, Markup } from "telegraf";
import {
MENU_SCENARIO,
DEFAULT_SCHEDULE_SCENARIO,
} from "@/constants/scenarios";
import {
DEFAULT_PLATOON_SCHEDULE_SUCCESS,
DEFAULT_PLATOON_SCHEDULE_FAILURE,
DEFAULT_PLATOON_SCHEDULE_IS_CHOSEN,
} from "@/constants/metricaGoals";
import { GENERAL_CONTROLS ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Sperry</source>
<translation>A Sperryról</translation>
</message... |
import { Directive, ViewContainerRef } from '@angular/core';
@Directive({
selector: '[appDynamicCarouselItemAnchor]'
})
export class DynamicCarouselItemAnchorDirective {
constructor(public viewContainer: ViewContainerRef) { }
} |
export * from './lib/ui-gard-navigation-tree.module'; |
import { Box, Flex } from '@chakra-ui/react'
import { MobileNavigationBar, NavigationBar } from './navigation'
import React, { useContext } from 'react'
import { IdentityContext } from '../App'
import InformationBar from './information'
import Transfer from './transfer'
import Wallet from './wallets'
const Container ... |
import * as core from '@actions/core'
import * as github from '@actions/github'
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
const getActionContext = async () => {
core.startGroup('Context')
const config = {
actionName: 'JIRA Reviewer',
actionRepoURL: 'https://github.com/di... |
/// <reference path="testcommon.ts" />
describe('$stateTransitionProvider', function () {
'use strict';
var mock = angular.mock;
var scope: ng.IRootScopeService;
function stringify(tansition) {
var children = [],
targets = [];
angular.forEach(tansition.targets, (target, ta... |
import * as React from 'react';
import { testing, snapshot } from '@semcore/jest-preset-ui';
import SpinContainer from '../src';
const { cleanup } = testing;
describe('SpinContainer', () => {
afterEach(cleanup);
test('Render correctly', async () => {
const Component = (
<>
<SpinContainer>
... |
// Copyright 2020 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
import type { TransformsStyle } from "react-native";
export interface Point {
x: number;
y: number;
}
export interface Size {
width: number;
height: number;
}
const isValidSize = (size: Size): boolean => {
return size && size.width > 0 && size.height > 0;
};
const defaultAnchorPoint = { x: 0.5,... |
import { message } from 'antd';
import { useEffect, useState } from 'react';
import CHANNELS from '../utils/channels';
import eventHandler from '../utils/eventHandler';
// Hook that manages the preparation status of a judge session.
const usePrepStatus = (steps: Array<string>, onError: () => void) => {
const [progre... |
'use strict';
import * as vscode from 'vscode';
import { JediFactory } from '../languageServices/jediProxyFactory';
import { captureTelemetry } from '../telemetry';
import { EventName } from '../telemetry/constants';
import { ItemInfoSource } from './itemInfoSource';
export class PythonHoverProvider implements vscode... |
import {Pipe, PipeTransform} from "@angular/core";
@Pipe({
name: 'orderBy'
})
export class OrderByPipe implements PipeTransform {
transform(array: Array<string>, key: string): Array<string> {
key = key + '';
if (key === undefined || key == '') {
return array;
}
... |
import { Directive, TemplateRef } from '@angular/core';
@Directive({selector: '[serie-tooltip-template]'})
export class GanttSeriesTooltipTemplateDirective {
constructor(public template: TemplateRef<any>) {
}
} |
import { Component } from '@angular/core';
@Component({
selector: 'app-no-endpoints-non-admin',
templateUrl: './no-endpoints-non-admin.component.html',
styleUrls: ['./no-endpoints-non-admin.component.scss']
})
export class NoEndpointsNonAdminComponent { } |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import {
generateCfBaseTestModules,
generateTestCfEndpointServiceProvider,
} from '../../../../../test-framework/cloud-foundry-endpoint-service.helper';
import { CloudFoundryFirehoseComponent } from './cloud-foundry-firehose.component';
des... |
//-----------------------------------------------------------------------------
// Spriteset_Map
//
// The set of sprites on the map screen.
declare class Spriteset_Map extends Spriteset_Base
{
public hideCharacters():void;
public loadTileset():void;
public createParallax():void;
public createTilemap():void;
pu... |
import { lstatSync, readdirSync } from 'fs';
export function allRules(): string[] {
return readdirSync('./src/rules').filter(isRuleFile);
}
export function isRuleFile(ruleFile: string): boolean {
return !lstatSync(ruleFilePath('.', ruleFile)).isDirectory() && ruleFile !== 'types.d.ts';
}
export function ruleFile... |
import React, { ChangeEvent, FormEvent } from "react";
import { WithTranslation, withTranslation } from "react-i18next";
import styled from "styled-components";
type Props = WithTranslation & {
filter: (p: string) => void;
value?: string;
};
type State = {
value: string;
};
const FixedHeightInput = styled.inpu... |
import Renderable from '../../template/Renderable';
import Unhandled from '../../util/Unhandled';
import TemplateParseException from '../../exception/TemplateParseException';
import AnnotationParser from './AnnotationParser';
import InputAnnotation from '../../annotation/InputAnnotation';
export default class InputAnn... |
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0,
* ap-northeast-3 (https://d2zq80gdmjim8k.cl... |
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
export class AddRoomUrlToParty1637628012076 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.addColumn(
'parties',
new TableColumn({
na... |
import { IntegrationEntity } from '@novu/dal';
import { UserSession } from '@novu/testing';
import { expect } from 'chai';
import { ChannelTypeEnum } from '@novu/shared';
describe('Get Integrations - /integrations (GET)', function () {
let session: UserSession;
beforeEach(async () => {
session = new UserSessi... |
import { Component } from 'react';
import { ModelOfTheme } from '@soccerapp/theme';
export type ModelOfStatusBarPage = {
theme: ModelOfTheme;
isStatusBarLight?: boolean;
};
export class StatusBarPage extends Component<ModelOfStatusBarPage> {} |
<TS language="vi_VN" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Nhấn chuột phải để sửa địa chỉ hoặc nhãn</translation>
</message>
<message>
<source>Create a new address</source>
<trans... |
import {Component} from '@angular/core';
@Component({
selector: 'app-root',
template: `<router-outlet></router-outlet>`,
})
export class AppComponent {} |
import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons';
import {
DangerAlert,
DangerWithIconAlert,
WarningAlert,
WarningWithIconAlert,
SuccessAlert,
SuccessWithIconAlert,
InfoAlert,
InfoWithIconAlert,
WithAdditionalContentAlert,
} from '../../components/elements/alerts';
import { Bloc... |
/*
***** Lesson 1
*/
type Fun<a,b> = {
f: (i:a) =>b
then:<c>(i:Fun<b,c>) => Fun<a,c>,
repeat:()=> Fun<number, Fun<a,a>>,
repeatUntil:(g:Fun<a,boolean>)=> Fun<Fun<a,boolean>,Fun<a,a>>
}
let Id = <a>() : Fun<a,a> => Fun(x=>x)
let repeat = function<a>(f: Fun<a,a>, n:number) : Fun<a,a>{
if(n <= 0){
retur... |
import { Component, Input, OnInit } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
const config = {
selector: 'cookbook-dropdown-example-ng-forms',
template: `<form [formGroup]="form">
<kirby-dropdown
formControlName="favoriteFood"
[size]="size"
placeholder... |
export default WeekVersionError;
export class WeekVersionError extends Error {
constructor(week: any, stalksHTTPError: any, stalks: any);
week: any;
stalksHTTPError: any;
stalks: any;
forceWeek(): Promise<any>;
} |
// Type definitions for ag-grid v18.1.2
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { AgGridComponentFunctionInput, AgGridRegisteredComponentInput } from "./componentProvider";
import { IComponent } from "../../interfaces/iComponent";
import { ComponentSource... |
import * as path from 'path';
import * as Mocha from 'mocha';
import * as glob from 'glob';
export function run(): Promise<void> {
const options: Mocha.MochaOptions = {
color: true,
ui: 'tdd'
}
const mocha = new Mocha(options);
const testsRoot = path.resolve(__dirname, '..');
return new Promise((c... |
import { AbstractConnector } from '@web3-react/abstract-connector'
import { Web3ReactProvider } from '@web3-react/core'
import React, { ReactNode, useEffect } from 'react'
import { useEthers } from '@usedapp/core'
import { MockConnector } from './mockConnector'
export interface MockWeb3WrapperProps {
connector?: Abs... |
import * as Immutable from "immutable";
import BaseGameState from "./BaseGameState";
import { applyDiffsToLocalBoardState, BoardDiff } from "./BoardDiffs";
import LocalBoardState, {
createBoardSquare as createLocalBoardSquare,
} from "./BoardState";
type ServerBoardSquare = {
number: number | null;
corners: num... |
import { JWTSession } from 'types/JWTSession'
export const token: JWTSession = {
applicationId: 'cfaZrORgaH2PMQpIcjTpfhERIpIEUJHev09ucjTp',
consumerId: 'test-consumer-ckgrs95l3y4er0b99qa37buj2',
consumerMetadata: {
account_name: 'Apideck Sandbox',
email: 'test@test.com',
user_name: 'nick@apideck.com'... |
import { DeviceProfileResponse, DeviceRegisterRequest, DeviceRegisterResponse, DeviceRegisterService } from '..';
import { Observable } from 'rxjs';
import { SdkConfig } from '../../sdk-config';
import { DeviceInfo } from '../../util/device';
import { AppInfo } from '../../util/app';
import { ApiService } from '../../a... |
/**
* @license
* Copyright 2018 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/**
* Socle Symfony2 API
* Documented API for Socle symfony2
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import {Inject, Injectable, Optional} ... |
import * as given from '../../steps/given'
import * as when from '../../steps/when'
import * as then from '../../steps/then'
import { User } from '../../../lib/entities'
describe('When a user signs up', () => {
it('The user should be saved in dynamodb', async () => {
const { email, password } = given.a_random_us... |
import React from 'react';
import useDebounce from '@rooks/use-debounce';
type ReloadFn = () => void;
export type ReloadHook = [ReloadFn, number];
export function useReload(): ReloadHook {
const [version, setVersion] = React.useState<number>(0);
const reloadRef = React.useRef(
useDebounce(() => {
setVe... |
declare const freeze: {
<T>(a: T[]): readonly T[];
<T extends Function>(f: T): T;
<T>(o: T): Readonly<T>;
}, seal: <T>(o: T) => T, keys: {
(o: object): string[];
(o: {}): string[];
}, create: {
(o: object | null): any;
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): an... |
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
],
... |
export { excludePlatform } from './excludePlatform';
export { bounceDetector } from './bounceDetector'; |
/* eslint-disable */
// @ts-nocheck
import 'should';
import { Docker } from './docker';
describe('Docker', function() {
const stdoutOutput = 'some stdout output';
const stderrOutput = 'some stderr output';
const testErr = new Error('Some error!');
const testCloseStatusCode = 1;
const args = ['-t', '-i'];
... |
import type { InitialOptionsTsJest } from 'ts-jest/dist/types'
const config: InitialOptionsTsJest = {
testEnvironment: 'jest-environment-jsdom',
preset: 'ts-jest',
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.test.json',
},
},
moduleNa... |
import { expect, test } from '@jest/globals'
import { identToSnakeCase } from './identToSnakeCase'
test('Convert an identifier into snake case.', async () => {
expect(identToSnakeCase('myType')).toEqual('my_type')
expect(identToSnakeCase('_myType')).toEqual('my_type')
expect(identToSnakeCase('networkIO')).toEqua... |
import { autoinject } from 'aurelia-framework';
import { Router } from 'aurelia-router';
import { DialogService } from 'aurelia-dialog';
import { I18N } from 'aurelia-i18n';
import { EventAggregator, Subscription } from 'aurelia-event-aggregator';
import { Contact, ContactModel } from './contact-model';
import { Con... |
import * as k8s from '@kubernetes/client-node';
import {ResourceKindHandler} from '@models/resourcekindhandler';
import navSectionNames from '@constants/navSectionNames';
const NetworkPolicyHandler: ResourceKindHandler = {
kind: 'NetworkPolicy',
apiVersionMatcher: '**',
navigatorPath: [navSectionNames.K8S_RESOUR... |
import { useState } from 'react'
import '../styles/tasklist.scss'
import { FiTrash, FiCheckSquare } from 'react-icons/fi'
interface Task {
id: number;
title: string;
isComplete: boolean;
}
export function TaskList() {
const [tasks, setTasks] = useState<Task[]>([]);
const [newTaskTitle, setNewTaskTitle] = ... |
/**
*
* (c) 2013-2018 Wishtack
*
* $Id: $
*/
import { Component, Input, NgModuleFactoryLoader } from '@angular/core';
import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { RouterTestingModule, SpyNgModuleFactoryLoader } from '@angular/router/testing';
import { Greetin... |
import { VimState } from '../../state/vimState';
import { PairMatcher } from './../../common/matching/matcher';
import { Position, PositionDiff } from './../../common/motion/position';
import { Range } from './../../common/motion/range';
import { configuration } from './../../configuration/configuration';
import { Mode... |
import { Octokit } from "@octokit/core";
import { state } from "../pages/Auth";
import { GITHUB_TOKEN } from "@env";
export const token = GITHUB_TOKEN;
export const octokit = new Octokit({
auth: token,
});
export const getData = async () => {
const data = await octokit.request(`GET /users/${state.username}`);
... |
<TS language="es_ES" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Haz clic derecho para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import styled from 'styled-components'
import { Link } from 'gatsby'
export const BtnLink = styled(Link)`
cursor: pointer;
display: block;
text-align: center;
padding: 0.4rem 0.6rem;
font-size: 1.3rem;
text-transform: capitalize;
border-radius: 0.4rem;
border: 2px solid ${props => props.theme.colors.wh... |
// requires impact.feature.terrain.terrain |
import * as _ from 'lodash'
import { Configuration, createConfiguration } from '../../../../codegen/crm/companies/configuration'
import {
AssociationsApi,
BasicApi,
BatchApi,
RequestContext,
ResponseContext,
SearchApi,
SimplePublicObjectWithAssociations,
} from '../../../../codegen/crm/companies/index'
im... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
import * as React from "react";
import { Todo } from "domain/todo";
import { TodoRenameForm } from "components/todo-list-panel/todo-list/todo-list-item/todo-rename-panel/todo-rename-form";
export interface CompletedTodoRenamePanelProps {
todo: Todo;
renameTodo(name: string): void;
showDefaultPanel(): void;
}
ex... |
export interface IUserStatistics {
id: number;
ownerId: number;
cardId: number;
cardName: string;
cardImage: string;
cardRarity: string;
cardUses: number;
cardsObtained: number;
userId: number;
} |
import { Container } from "./styles";
const Error: React.FC<ErrorMsg> = ({ error }) => {
return (
<Container>
<p>{error}</p>
</Container>
);
};
export { Error }; |
<TS language="zh" 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>创建一个新地址</translation>
... |
import {Component} from 'angular2/core';
import {TodoService} from "../services/todo-service";
import {TodoModel} from "../models/todo-model"
@Component({
selector: 'todo-input',
template: `<div>
<form (submit)="onSubmit()">
<input type="text" [(ngModel)]="todoModel.title">
</form>
</div>
`
})
export cl... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React, {useEffect, useState} from 'react';
import ReactDOM from 'react-dom';
import {toggleRightSidebarAvaila... |
import { listPathsInDirectory } from './listPathsInDirectory';
describe('listPathsInDirectory', () => {
it('should find file paths', async () => {
const paths = await listPathsInDirectory({ directory: __dirname });
expect(paths).toContain('listPathsInDirectory.ts');
expect(paths).toContain('listPathsInDi... |
export * from "./core"
// codegen:start { preset: barrel, include: ./api/*.ts }
export * from "./api/collectM"
export * from "./api/collectWhile"
export * from "./api/collectWhileM"
export * from "./api/compact"
export * from "./api/dropWhile"
export * from "./api/dropWhileM"
export * from "./api/every"
export * from ... |
import Dialog from 'material-ui/Dialog'
import * as React from 'react'
import { getAPIBaseURL } from '../../redux/modules/app'
import { SocialLoginButton } from '../social-login-button/SocialLoginButton'
interface ILoginDialogProps {
open: boolean
}
interface ILoginDialogState {}
export class LoginDialog extends Re... |
import * as ESTree from 'estree';
declare var node: ESTree.Node;
declare var program: ESTree.Program;
declare var functionAst: ESTree.Function;
declare var statement: ESTree.Statement;
declare var emptyStatement: ESTree.EmptyStatement;
declare var blockStatement: ESTree.BlockStatement;
declare var expressionStatement:... |
import ora from 'ora';
const spinner = ora();
export function log(message?: string): void {
spinner.stop();
// tslint:disable-next-line
if (message) console.log(message);
spinner.start();
}
export function stop(message?: string): void {
spinner.stop();
// tslint:disable-next-line
if (message) console.l... |
import * as React from 'react';
import { IIconSubset } from '@fluentui/style-utilities';
/**
* {@docCategory IconProvider}
* Props for the IconProvider component.
*/
export interface IconProviderProps extends React.HTMLAttributes<HTMLDivElement> {
/**
* Defines the icons provided by the user.
*/
icons: II... |
import React from "react";
import { LiveProvider, LiveEditor, LiveError, LivePreview } from "react-live";
import { Box, Button, useClipboard } from "@chakra-ui/react";
export const CodeBlock = (props) => {
const { hasCopied, onCopy } = useClipboard(props.children);
return (
<Box
pos="relative"
rol... |
import enemyConfig from "../../../data/enemyStatsConfig.json";
import enemyData from "../../../data/enemies.json";
import { Combatant } from "../../Combatant";
import { EnemyStats } from "./EnemyStats";
import { enemyNameType } from "../../../types.js";
import { Wizard } from "../../player/Wizard";
import { Magizoologi... |
import { EntityActionTypes, EntityType, Page } from '../types';
import { Dictionary } from '../../system-types';
import { EntityActions } from '../actions';
import { isNil, uniq } from 'lodash-es';
import { createLoadingStateReducer } from '../../shared/loading-state/reducers';
import { MAX_PAGES_COUNT } from '../const... |
import * as path from 'path';
import * as _ from "lodash";
import { FileSystemManager } from './file_system_manager';
import { WriteFileOptions } from 'fs';
import { BaseModel } from '../dart_snippets/architecture/base_model';
import { BaseService } from '../dart_snippets/architecture/base_service';
import { BaseViewMo... |
<TS version="2.1" language="uk">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation type="unfinished">Клацніть правою кнопкою миші для редагування адреси або мітки</translation>
</message>
<message>
<source>Create a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.