text stringlengths 10 953k |
|---|
/**
* @license
* Copyright Google LLC 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 {ComponentHarness, HarnessPredicate} from '@angular/cdk/testing';
import {OptionHarnessFilters} from './option... |
/*
* 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 * from './numeric-column-transformer' |
import {
AfterContentChecked,
AfterContentInit,
AfterViewChecked,
AfterViewInit,
Component,
OnInit,
ViewChild
} from '@angular/core';
import { Router, ActivatedRoute, ParamMap } from '@angular/router';
import {animate, state, style, transition, trigger} from '@angular/animations';
import {GroupProduction... |
import { Component, OnInit, ChangeDetectionStrategy, Input, OnChanges, SimpleChanges } from '@angular/core';
import { Vessel } from '../../../../modules/free-company-workshops/model/vessel';
import { TeamcraftComponent } from '../../../../core/component/teamcraft-component';
import { TranslateService } from '@ngx-trans... |
import { BasicEmbed } from "../../../basic";
import { BasicAllowedMentions } from "../channel/CreateMessage";
export interface ExecuteWebhookRequest {
content?: string;
username?: string;
avatar_url?: string;
tts?: boolean;
embeds?: BasicEmbed[];
allow_mentions?: BasicAllowedMentions;
} |
import { IconDefinition } from '../types';
declare const QqSquareFill: IconDefinition;
export default QqSquareFill; |
import path from "path";
import chalk from "chalk";
import getSize from "g-factor";
import { TimeRelative } from "@app/lib/time";
import { TimeMonthToMilli } from "@app/lib/time";
import { IPromptSelect, IRefinedListItem } from "@app/lib/Interfaces";
/**
*
* @param timeVal
*/
export function validDiff(timeVal, FIL... |
export { ServerStyleSheet as StyledComponentServerSheets } from 'styled-components';
export { ServerStyleSheets as MaterialUiServerServerStyleSheets } from '@material-ui/core/styles'; |
import { Component, h } from 'preact';
import { ElementType, ModelType } from '../../constant/constant';
import { BaseNodeModel, LineEdgeModel } from '../../model';
import BezierEdgeModel from '../../model/edge/BezierEdgeModel';
import PolylineEdgeModel from '../../model/edge/PolylineEdgeModel';
import GraphModel from ... |
// The MIT License (MIT)
//
// Copyright (c) 2021 Firebase
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, ... |
import { FastifyInstance, FastifySchema } from "fastify";
import { AppConfig } from "../../../core/config";
import { ContentType_ApplicationJson } from "../../../core/const";
import { generateErrorResponse } from "../../../core/fastify-utilities";
import { LocalFileApi } from "../../../core/file-api/file-api";
import {... |
/*
* @Author: xuanyu
* @LastEditors: xuanyu
* @email: 969718197@qq.com
* @github: https://github.com/z-xuanyu
* @Date: 2022-03-08 10:14:34
* @LastEditTime: 2022-04-14 18:29:43
* @Description: Modify here please
*/
import { Body, Controller, Get, Put, UseGuards } from '@nestjs/common';
import { AuthGuard } from ... |
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";
import { parseUrl } from "@aws-sdk/url-parser";
import { ComprehendMedicalClientConfig } from "./ComprehendMedicalClient";
/**
* @internal
*/
export const getRuntimeConfig = (config: ComprehendMedicalClientC... |
import { useEffect, useRef, useState } from "react";
export function useLayout<T extends HTMLElement>() {
const [layoutHeight, setLayoutHeigt] = useState(window.innerHeight);
const [layoutWidth, setLayoutWidth] = useState(window.innerWidth);
const ref = useRef<T | null>(null);
const computeLayoutH... |
import { Strategy } from 'passport-local';
import { PassportStrategy } from '@nestjs/passport';
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { AuthService } from '../auth.service';
@Injectable()
export class LocalStrategy extends PassportStrategy(Strategy, 'local') {
constructor(private... |
import {Injectable} from '@angular/core';
declare var $: any;
@Injectable({
providedIn: 'root'
})
export class NotificationService {
showNotification(message, type) {
$.notify({
message: message
}, {
type: type,
timer: 3000,
placement: {
... |
/* Utility Types */
import type { ConditionalExcept, ConditionalPick } from 'type-fest';
/**
* An alternative to keyof that only extracts the string keys.
*/
export type StringKey<Type> = Extract<keyof Type, string>;
/**
* Extract the values of an object as a union type.
*
* @remarks
*
* ```ts
* const myReco... |
// Copyright 2018 Novo Nordisk Foundation Center for Biosustainability, DTU.
//
// 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
//
// Unle... |
import * as React from 'react';
import * as Models from '@artezio/models';
import { FormApi } from 'informed';
import QuestionItemProps from '../../interfaces/components/questionItems/QuestionItemProps';
export abstract class QuestionItem<T extends QuestionItemProps<any>> extends React.Component<T> {
formApi?: Fo... |
import { createEmptyMockDriver } from "../../../test/mocks";
import { IDriver } from "../driver/IDriver";
import { CommandClasses } from "./CommandClasses";
import {
LanguageCC,
LanguageCCGet,
LanguageCCReport,
LanguageCCSet,
LanguageCommand,
} from "./LanguageCC";
const fakeDriver = (createEmptyMockDriver() as u... |
import { Rule, Shortcut } from "@unocss/core";
import { Theme } from "../types";
import { literal } from "../utils/Handlers";
export const typographyRules: Array<Rule<Theme>> = [
[/^text-(left|center|right)$/, literal("text-align")],
[/^text-(ellipsis|clip)$/, literal("text-overflow")],
[/^(underline|over... |
import React from 'react';
import cls from 'classnames';
import { useDialogSection } from '../../../store/dialog-section-store';
import lukkDialogBilde from './lukk-dialog.svg';
import apneDialogBilde from './apne-dialog.svg';
interface DialogToggleBtnProps {
className?: string;
}
export function DialogToggleBtn(pro... |
// Vendors
import * as React from "react"
import cn from "classnames"
import { Link } from "gatsby";
// Internals
import { ILogolinkProps, DefaultValues } from "./interfaces"
const LogoLink = (
{
toPage = DefaultValues.toPage,
src = DefaultValues.src,
alt = DefaultValues.alt,
className
}: ILogolink... |
import { useRef } from 'react'
import { fireEvent, render, waitFor } from '@testing-library/react'
import { atom, useAtom } from '../src/index'
import { getTestProvider } from './testUtils'
const Provider = getTestProvider()
it('only relevant render function called (#156)', async () => {
const count1Atom = atom(0)
... |
export class CalendlyEventResponse {
data: CalendlyEvent[];
meta?: {
total_count: number,
total_pages: number,
current_page: number,
prev_page: boolean,
next_page: boolean
};
included?: Invitee[];
public CalendlyEventResponse() {}
}
export class CalendlyEven... |
export interface ISpreadOrBenchmarkCurveData {
SpreadToBenchmark?: number;
} |
import { inject, injectable } from "inversify";
import { IFormatter, Types } from "./interfaces";
import { ISample } from "../interfaces";
import "reflect-metadata";
@injectable()
export class SampleFormatter implements ISample {
private readonly _formatter: IFormatter<object, string>;
constructor(@inject(Types.F... |
/// <reference types="react" />
declare const WomanMediumSkinToneBlondHair: ({ size, rem }: {
size: number | string;
rem?: boolean | undefined;
}) => JSX.Element;
export default WomanMediumSkinToneBlondHair; |
/**
* @author Timur Kuzhagaliyev <tim.kuzh@gmail.com>
* @copyright 2020
* @license MIT
*/
import React from 'react';
import { Nullable } from 'tsdef';
import { FileData } from '../../types/file.types';
export interface FileEntryNameProps {
file: Nullable<FileData>;
className?: string;
}
export declare const... |
import { Component, Input } from '@angular/core';
import { AuthorizationService } from '../../../authorization/service/authorization.service';
@Component({
selector: 'app-user-menu',
templateUrl: './user-menu.component.html',
styleUrls: ['./user-menu.component.css'],
})
export class UserMenuComponent {
... |
/* eslint sonarjs/no-duplicate-string: 0 */
import { types } from "@algo-builder/web";
import { assert } from "chai";
import { RUNTIME_ERRORS } from "../../src/errors/errors-list";
import { AccountStore, Runtime } from "../../src/index";
import { ALGORAND_ACCOUNT_MIN_BALANCE } from "../../src/lib/constants";
import { ... |
import {
computed,
getCurrentInstance,
inject,
provide,
ref,
} from 'vue'
import English from '@lixi/locale/lang/en'
import type { InjectionKey, PropType, Ref } from 'vue'
import type { Language } from '@lixi/locale'
export const useLocaleProps = {
locale: {
type: Object as PropType<Language>,
},
}
... |
/// <reference path="../../../src/meteor_model.ts" />
import {MeteorModel, ValidationRule} from "@gdn/meteor-model";
import {SampleValidationRuleFixture, SampleValidationRuleFixture2,
SampleGlobalValidationRuleFixture} from "./sample_validation_rule_fixture";
export default class MeteorModelFixture extends MeteorM... |
/**
* Copyright 2018 Google Inc.
*
* 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 i... |
import { NextApiResponse } from 'next';
import nextConnect, { NextHandler } from 'next-connect';
import { Collection, Cursor } from 'mongodb';
import { UrlDbObjectType } from '../../../types/url';
import { AdminRequest } from './index';
import { URL_COLLECTION_NAME } from '../../../config';
import { Logger } from '../... |
<TS language="lv_LV" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Izveidot jaunu adresi</translation>
</message>
<message>
<source>&New</source>
<translation>&Jauns</translation>
</message>
... |
import { IsEmail, IsString, IsOptional } from 'class-validator';
export class UpdateUserDto {
@IsEmail()
@IsOptional()
email: string;
@IsString()
@IsOptional()
password: string;
} |
/*
* 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 { SearchParams } from 'elasticsearch';
import {
PROCESSOR_EVENT,
S... |
export { default as SequenceRecognizer, SequenceOptions, recognizePhoneNumber, recognizeIpAddress, recognizeMention, recognizeHashtag, recognizeEmail, recognizeURL, recognizeGUID } from "./sequence/sequenceRecognizer";
export { Culture } from "@microsoft/recognizers-text";
export { AbstractSequenceModel, PhoneNumberMod... |
import { Entity, Logger, MikroORM, PrimaryKey, Property } from '@mikro-orm/core';
@Entity()
export class A {
@PrimaryKey({ name: 'ID' })
id!: number;
@Property({ name: 'NAME' })
name: string;
constructor(name: string) {
this.name = name;
}
}
describe('GH issue 1595', () => {
let orm: MikroORM;
... |
import React, { useCallback, useMemo } from 'react';
import { useHistory } from 'react-router-dom';
import SupportMenySakIndex, { SupportTabs } from '@fpsak-frontend/sak-support-meny';
import { Fagsak, BehandlingAppKontekst, Personopplysninger, ArbeidsgiverOpplysningerWrapper } from '@k9-sak-web/types';
import { getS... |
import * as React from 'react';
import { connect } from 'react-redux';
import { signIn } from '../../actions/authActions';
import { ThunkDispatch } from '../../types';
const svgDefPath = `M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 \
13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C3... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Staff2019Component } from './staff2019.component';
describe('ProgramaComponent', () => {
let component: Staff2019Component;
let fixture: ComponentFixture<Staff2019Component>;
beforeEach(async(() => {
TestBed.configureTesting... |
import { Request, Response } from "express";
import { container } from "tsyringe";
import { CreateClasseUseCase } from "./CreateClasseUseCase";
class CreateClasseController {
async handle(request: Request, response: Response): Promise<Response> {
const { teacher_id, student_id } = request.body;
const creat... |
// *** 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";
/*... |
// @allowJs: true
// @noEmit: true
// @checkJs: true
// @filename: index.js
/**
* @param {Array<*>} list
*/
function thing(list) {
return list;
} |
import { ApiError, ResponseParameters } from '../platform.ts'
/**
* This class represents errors that are thrown by grammY because the Telegram
* Bot API responded with an error.
*
* Instances of this class hold the information that the Telegram backend
* returned.
*
* If this error is thrown, grammY could succ... |
import { interval, timer } from 'rxjs';
const observer = {
next: (val) => console.log('next', val),
error: (err) => console.log('error', err),
complete: () => console.log('Complete'),
};
const interval$ = interval(1000);
const timer$ = timer(0, 1000);
timer$.subscribe(observer);
interval$.subscribe(observer); |
import Ajv, { ErrorObject } from 'ajv';
import addFormats from 'ajv-formats';
import { EventEmitter } from 'events';
import cloneDeepWith from 'lodash.clonedeepwith';
import merge from 'lodash.merge';
import { URL } from 'url';
import { extractEmails, PartyEmail } from '@s1seven/schema-tools-extract-emails';
import {
... |
export { IconGrowRotate } from './IconGrowRotate'
export type { IconGrowRotateProps } from './IconGrowRotate' |
import { Observable } from 'rxjs';
import { catchError } from 'rxjs/operators';
import { ExecutionContext, NestInterceptor, Injectable, CallHandler, InternalServerErrorException } from '@nestjs/common';
@Injectable()
export class ErrorInterceptor implements NestInterceptor {
intercept(context: ExecutionContext, ne... |
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
import { StartPipelineExecutionRequest, StartPipelineExecutionResponse } from "../models/models_2";
import {
deserializeAws_json1_1StartPipelineExecutionCommand,
serializeAws_json1_1StartPipelineExecutionComma... |
export const pastelTableNames = {
statisticinfo: 'statisticinfo',
networkinfo: 'networkinfo',
nettotals: 'nettotals',
mempoolinfo: 'mempoolinfo',
rawmempoolinfo: 'rawmempoolinfo',
mininginfo: 'mininginfo',
blockinfo: 'blockinfo',
rawtransaction: 'rawtransaction',
transaction_tbl: 'transaction_tbl',
... |
// This file was auto-generated. Please do not edit it.
import * as p5 from '../../index';
declare module '../../index' {
class Font {
/**
* Base class for font handling
*
* @param [pInst] pointer to p5 instance
*/
constructor(pInst?: p5);
/**
... |
/*
Copyright 2020 Google Inc.
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
dis... |
/*
Copyright 2019 FM Foundation
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
d... |
import { TimeTravel } from "./timeTravel";
import { DarkPersonInDarkEvent } from "./darkPersonIndarkEvent";
import { TimeTravelInDarkEvent } from "./timeTravelInDarkEvent";
import { EpisodeTime } from "../episodeTime";
export interface DarkEvent {
title: string,
description: string,
worldTimeInMillis: numb... |
import { AnyAction } from 'redux';
export default (
state: any = {
users: [],
currentUser: null,
isFetching: false,
error: null,
},
action: AnyAction,
) => {
switch (action.type) {
case 'GET_USERS':
return { ...state, isFetching: true };
case 'GET_USERS_SUCCESS':
return { .... |
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {BrowserModule} from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {AppComponent} fro... |
import { FastifyReply, FastifyRequest } from 'fastify';
import { RestServerUtil, Request } from '@travetto/rest';
import { NodeEntityⲐ, ProviderEntityⲐ } from '@travetto/rest/src/internal/symbol';
/**
* Provide a mapping between fastify request/response and the framework analogs
*/
export class FastifyServerUtil {
... |
import {browser, by} from 'protractor';
import {ElementHelper} from '../../utils/element.helper';
export class StreamsListPage {
navigateTo() {
return browser.get(`#/streams/list`);
}
getTitle() {
return ElementHelper.getElement(by.css('.content-area h1'));
}
} |
import {Component, OnInit} from '@angular/core';
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
import {ActivatedRoute, Router} from '@angular/router';
import {Todo, TodoService} from '../todo.service';
import {Location} from '@angular/common';
import {MatDialog} from '@angular/material/dialog';
imp... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import './assets/styles/global.css';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you wa... |
export interface CommentData {
id:string;
text:string;
startTime:number;
duration?:number;
} |
import { Controller, HttpRequest, HttpResponse, Validation } from '@/presentation/protocols'
import { badRequest, ok, serverError, unauthorized } from '@/presentation/helpers'
import { Authentication } from '@/domain/usecases'
export class LoginController implements Controller {
constructor (
private readonly va... |
export declare type RangeFunction = (min: number, max: number, v: number) => any;
declare const _default: (func: RangeFunction) => (min: number, max: number, v?: number) => any;
export default _default; |
/**
* parseValue ensures the value is a number and within accepted range.
*/
export function parseValue(value: number): number {
const val: number = parseFloat(value.toString());
if (isNaN(val)) {
throw new Error(`Input value is not a number`);
}
if (val > Number.MAX_SAFE_INTEGER || val < Number.MIN_SAFE... |
import {
type CacheType,
type Client,
CommandInteraction,
type CommandInteractionOption,
type Guild,
type GuildMember,
type InteractionType,
Message,
type MessageType,
type TextBasedChannel,
type User,
} from "discord.js"
import type {APIInteractionGuildMember} from "discord-... |
/*
* 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 { ENTRIES } from '../../constants.mock';
import { ExceptionListItemSch... |
/* tslint:disable */
/* eslint-disable */
/**
* Deep Lynx
* The construction of megaprojects has consistently demonstrated challenges for project managers in regard to meeting cost, schedule, and performance requirements. Megaproject construction challenges are common place within megaprojects with many active projec... |
import { JSDOM } from 'jsdom';
declare global {
interface String {
replaceAll(search: string, replacement: string): string;
}
}
String.prototype.replaceAll = function(search: string, replacement: string): string {
var target = this;
return target.split(search).join(replacement);
};
export default class G... |
import { IChoiceGroupStyleProps, IChoiceGroupStyles } from 'office-ui-fabric-react/lib/ChoiceGroup';
import { getGlobalClassNames } from '@uifabric/styling';
import { ThemeExtended } from '../../SemanticColorsExtended';
import { IStyleFunction } from 'office-ui-fabric-react/lib/Utilities';
const GlobalClassNames = {
... |
import { equals } from '../../util/object'
export interface LineInfo {
filepath: string
// start lnum in refactor buffer, 1 indexed
lnum: number
start: number
lines: string[]
}
export type DeleteChange = Map<number, LineInfo>
export default class Changes {
private stack: DeleteChange[] = []
public add... |
// import "jest-dom/extend-expect";
// import "react-testing-library/cleanup-after-each";
import React from "react";
import { render } from "../../utils/test-utils";
import Sidebar from "./Sidebar";
describe.only("Sidebar Component", () => {
let projectsSpy: jest.SpyInstance;
it("renders without crashing", async ... |
import { CompletionItem, CompletionItemKind, IConnection, TextDocument, TextDocumentPositionParams, TextDocuments } from "vscode-languageserver";
import { LogLevel } from "../Log";
import { IComplexTypeEx, IElementEx, IFoundCursor, IStorageSchema, XmlBaseHandler, XmlStorage } from "../xmltypes";
export class XmlComple... |
import * as path from 'path';
export const PORT = 1270;
export const REDIRECT_PATH = '/redirect';
export const REDIRECT_URL = `http://localhost:${PORT}${REDIRECT_PATH}`;
export const DATA_DIR = path.join(__dirname, '../../../', 'data');
export const ANALYSIS_DATA_FILE = path.join(DATA_DIR, 'analysis.json');
export co... |
import { Injectable } from '@nestjs/common';
import { CustomHttpService } from '../shared/http.service';
import { CreateSubscriptionPayload } from './dto/create-subscription.dto';
@Injectable()
export class SubscriptionService {
constructor(private http: CustomHttpService) {}
async createSubscription(payload: Cre... |
export interface IWorkerDefinition {
id: string;
entry: string;
}
export interface IFeatureDefinition {
label: string;
entry: string | string[] | undefined;
worker?: IWorkerDefinition;
} |
import {Entity, JoinTable, ManyToMany, PrimaryGeneratedColumn, Column} from "typeorm";
import { ServiceRequest } from "./serviceRequest";
@Entity()
export class User
{
@PrimaryGeneratedColumn()
userId: number;
@Column()
systemRole: string;
@Column()
email: string;
@Column()
pas... |
import { NgModule } from "@angular/core";
import { RouterModule } from "@angular/router";
import { routes } from "./car.routes";
import { CarComponent } from "./car.component";
import { CommonModule } from "@angular/common";
console.log('`ChildDetail` bundle loaded asynchronously');
@NgModule({
declarations: [
... |
/**
* Copyright (c) 2019 The xterm-addon-attach-socketio.js. All rights reserved.
* @license MIT
*
* Implements the attach method, that attaches the terminal to a SocketIo.Socket stream.
*/
import { attach, detach, apply } from "./xterm-addon-attach-socketio";
apply((<any>window).Terminal); |
import { pick, pull, sample, filter, reject } from 'lodash';
import { Types } from 'mongoose';
import { before, after, api } from '../Shared';
const endpoint = '/resources';
before();
after();
describe('Resources Editor: Resource API', async () => {
it('should get all intents for user testdev', async () => {
... |
import startapi from './api/index';
console.log('Hello World');
startapi(); |
import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
/**
* Overlay component that displays a progress spinner and
* an optional text description.
*/
@Component({
selector: 'mav-spinner-overlay',
templateUrl: './spinner-overlay.component.html',
styleUrls: ['./spinner-overlay... |
import { } from '@lib/input';
import { Context } from '@app/types';
import { create } from '@lib/array2d';
import { Vec2 } from '@lib/math';
export default function (input: string[], { logger }: Context) {
let map = create(input[0].length, input.length, 0);
for (let y = 0; y < input.length; y++) {
let... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// WARNING: This file was auto-generated, any change will be overridden in next release. Please use configs/es6.conf.js then run "npm run convert". //
//////////////////... |
import { useEffect, useState } from "react";
import { api } from "../services/api";
import { MovieCard } from "./MovieCard";
import '../styles/content.scss';
interface GenreResponseProps {
id: number;
name: 'action' | 'comedy' | 'documentary' | 'drama' | 'horror' | 'family';
title: string;
}
interface MoviePro... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fi" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klikkaa hiiren oikealla muokataksesi osoitetta tai nimeä</translation>
</message>
<message>
<sou... |
import { PureComponent } from 'react';
import Events from '../utils/events';
import Throttle from '../utils/throttle';
import { ContainerType, getScrollContainer, getScrollTop } from './ScrollContainer';
export interface ScrollerProps {
prefixCls?: string;
container?: ContainerType;
onScroll?: (scrollTop?: numbe... |
//
// Copyright (c) Microsoft Corporation. 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 ... |
/*
* Copyright (c) 2014 Google, Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commerci... |
import SteamID from 'steamid';
import Bot from './Bot';
import log from '../lib/logger';
export = class Groups {
private readonly bot: Bot;
constructor(bot: Bot) {
this.bot = bot;
}
inviteToGroups(steamID: SteamID | string, groups: string[]): void {
if (!this.bot.friends.isFriend(st... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AddEventDiagnosisComponent } from './add-event-diagnosis.component';
describe('AddEventDiagnosisComponent', () => {
let component: AddEventDiagnosisComponent;
let fixture: ComponentFixture<AddEventDiagnosisComponent>;
beforeEach... |
import { TestBed } from '@angular/core/testing';
import { ConfirmGuard } from './confirm.guard';
describe('ConfirmGuard', () => {
let guard: ConfirmGuard;
beforeEach(() => {
TestBed.configureTestingModule({});
guard = TestBed.inject(ConfirmGuard);
});
it('should be created', () => {
expect(guard... |
// Comp_05_1434
import React from 'react';
import { incModCount } from '../modCount';
const Comp_05_1434: React.FC = () => {
React.useEffect(() => {
incModCount();
}, []);
return <div>
I'm component Comp_05_1434
<div>
</div>
</div>;
};
export default Comp_05_1434; |
<TS language="nl_NL" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klik met de rechter muisknop om dit adres of label te veranderen</translation>
</message>
<message>
<source>Create a new address... |
import React, { useMemo } from 'react';
import { ColorPickerField } from '@/components/core/Form';
import { useFocusIdx } from '@/hooks/useFocusIdx';
export function ContainerBackgroundColor() {
const { focusIdx } = useFocusIdx();
return useMemo(() => {
return (
<ColorPickerField
label='Containe... |
import MathObj, { MathObjType } from "../MathObj/MathObj";
import Constant from "../Constant/Constant";
import Fraction from "../Fraction/Fraction";
import Subtract from "../Subtract/Subtract";
export default class Add extends MathObj {
type = MathObjType.add;
left: MathObj;
right: MathObj;
atomic =... |
import React from 'react'
const ETHIcon: React.FC = () => {
return (
<img
src={require('../assets/images/eth.svg').default}
alt="ETH"
style={{ width: '1.2rem', marginLeft:'3vw' }}
/>
)
}
export default ETHIcon |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.