text stringlengths 10 953k |
|---|
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import { Holiday } from 'src/app/model/Holiday.model';
import { HttpClient } from '@angular/common/http';
import { MatSnackBar } from '@angular/material/snack-bar';
import { Department } from 'src/app/model/Department.model';
import { S... |
export { default as ChatLayout } from '../components/ChatLayout/ChatLayout'; |
import {Message} from 'eris';
import {BoatWatcherClient} from '../client';
import { Context } from '../commands';
import {BaseHandler} from './BaseHandler';
class LogHandler extends BaseHandler {
constructor(client: BoatWatcherClient) {
super(client, 'handle-log');
}
public async run(message: Mess... |
// Generated automatically by nearley, version 2.19.2
// http://github.com/Hardmath123/nearley
// Bypasses TS6133. Allow declared but unused functions.
// @ts-ignore
function id(d: any[]): any {
return d[0];
}
declare var property: any;
declare var integer: any;
declare var qqString: any;
declare var qString: any;
i... |
import '../../../../es/style/index.less';
import './index.less';
import '../../progress/style';
import '../../ripple/style'; |
export * from './types'
export * from './uniqWith' |
/*
* 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 expect from '@kbn/expect';
import { Response as SupertestResponse } fr... |
import vyRequest from "./api";
export async function changeQAQuestion(options) {
try {
await vyRequest({
path: "/companion/qa/change",
method: "POST",
body: {pagename: options.pagename, direction: options.direction, eventid: this.config.eventid}
}, this.config.ap... |
// Original file: deps/envoy-api/envoy/config/accesslog/v3/accesslog.proto
// Original file: deps/envoy-api/envoy/config/accesslog/v3/accesslog.proto
export enum _envoy_config_accesslog_v3_GrpcStatusFilter_Status {
OK = 0,
CANCELED = 1,
UNKNOWN = 2,
INVALID_ARGUMENT = 3,
DEADLINE_EXCEEDED = 4,
NOT_FOUND ... |
import { BigNumber, Signature, utils } from 'ethers'
const { keccak256, defaultAbiCoder, toUtf8Bytes, solidityPack } = utils
import {
encodeAddLiquidity,
encodeSwapExactTokensForTokens,
encodeSwapTokensForExactTokens,
encodeRemoveLiquidityWithPermit
} from './functionEncoder'
// EIP712 Types
export const Domai... |
import type { AppRouteRecordRaw, AppRouteModule } from '/@/router/types';
import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '/@/router/routes/basic';
import { mainOutRoutes } from './mainOut';
import { PageEnum } from '/@/enums/pageEnum';
import { t } from '/@/hooks/web/useI18n';
const modules = import.meta.globE... |
import { Component, OnInit } from '@angular/core';
import { AuthService } from 'src/app/core/services/auth.service';
import { CookieService } from 'ngx-cookie-service';
import { CartService } from 'src/app/store/services/cart.service';
@Component({
selector: 'app-header',
templateUrl: './header.component.html',
... |
import * as Router from 'koa-router'
import BaseDao from '../db/baseDao'
import { GraphQLString, GraphQLObjectType, GraphQLSchema, GraphQLList, GraphQLInt } from 'graphql'
const graphqlHTTP = require('koa-graphql')
let router = new Router()
export default (() => {
let authorType = new GraphQLObjectType({
... |
import { Component, OnChanges, OnDestroy, Input, Injector, SimpleChanges } from '@angular/core';
import { ConfigSaveComponent, ArmSaveConfigs } from 'app/shared/components/config-save-component';
import { FormGroup, FormArray, FormBuilder, Validators } from '@angular/forms';
import { ResourceId, ArmObj } from 'app/shar... |
/**
* 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 { useTranslation } from 'react-i18next';
import { EnergyFormatter, formatDate } from '@energyweb/origin-ui-utils';
import { TUseLogicMyTrades, TFormatMyTradesData } from './types';
const formatMyTradesData: TFormatMyTradesData = ({ t, trades }) => {
const buyText = t('exchange.myTrades.buy');
const sellText... |
import * as React from 'react';
import {
ReactBucketComponentProps,
ShorthandCollection,
ReactBucketIcon,
ElementSize,
ShorthandItem,
ShorthandContent
} from '../../generic';
import { ButtonProps } from '../../elements/Button';
import { IconProps } from '../../elements/Icon';
import { StrictBackdropProps... |
#!/usr/bin/env node
import ec2 = require('@aws-cdk/aws-ec2');
import cdk = require('@aws-cdk/cdk');
import elb = require('../lib');
const app = new cdk.App();
const stack = new cdk.Stack(app, 'aws-cdk-elb-integ');
const vpc = new ec2.VpcNetwork(stack, 'VPC', {
maxAZs: 1
});
new elb.LoadBalancer(stack, 'LB', {
vp... |
import IdentitiesInterfaces = require("../interfaces/IdentitiesInterfaces");
export interface GraphCachePolicies {
/**
* Size of the cache
*/
cacheSize?: number;
}
/**
* Subject descriptor of a Graph entity
*/
export interface GraphDescriptorResult {
/**
* This field contains zero or more i... |
import {AbstractFileTemplate} from '@ohoareau/microgen';
export type GitIgnoreTemplateConfig = {
ignores?: (string|ignore)[],
groups?: group[],
};
export type ignore = {
path: string,
} ;
export type group = {
name: string,
ignores?: (string|ignore)[],
};
export class GitIgnoreTemplate extends A... |
import { subtractArrayFromArray } from "../utils/arrays";
import { getNearbyMines } from "./getNearbyMines";
import { getNearbyTiles } from "./getNearbyTiles";
import { IBoard } from "./interfaces/IBoardState";
export const getTouchingEmptyTiles = (
board: IBoard,
position: number,
visitedTiles: number[] = [posi... |
import fetch from 'cross-fetch';
import { URL, URLSearchParams } from 'url';
import { Logger } from './logger';
class GraphApi {
static async callSendApi(requestBody: any) {
const url = new URL(`${process.env.apiUrl}/me/messages`);
url.search = new URLSearchParams({
access_token: process.env.pageAccess... |
/* tslint:disable */
/* eslint-disable */
/**
* Selling Partner APIs for Fulfillment Outbound
* The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon\'s fulfillment network. You can get information on b... |
import React from 'react';
import RouteStore from '@/store/routes';
import { Input } from '@/components/Input/Input';
import { Button } from '@/components/Button/Button';
import { DeliveryInfoErrors, IUserInstance } from '@/models/UserData';
import Carrier from '@/services/carrier';
import { serializeFormData } from '@... |
<TS language="hr" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<source>About Bitcoin Core</source>
<translation>O Bitcoin Jezrgu</translation>
</message>
<message>
<source>Copyright</source>
<translation>Autorsko pravo</translation>
</message>
</con... |
// Angular
import { Component, OnInit, ChangeDetectionStrategy, Input } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { Store } from '@ngrx/store';
// RxJS
import { BehaviorSubject } from 'rxjs';
import { debounceTime, distinctUntilChanged, tap } from 'rxjs/operators'... |
export {};
declare global {
interface Math {
/**
* Generate random int value
*
* @param {Number} [min=0]
* @param {Number} [max=32767]
* @return {Number} result in int-type between min and max values
*/
randomInt: typeof import("./randomInt").default;
/**
* Object with ... |
import { State } from './engine/state';
import { Game } from './engine/game';
import { MainMenuState } from './states/main-menu.state';
import { GameState } from './states/game.state';
class MyGame extends Game {
constructor() {
super(document.getElementById('main_window'));
}
onStart() {
... |
/**
* @name NewTherapy
* @description This class represent the definition of an Exercise object.
*
* @author Yanick Masse
*/
export class NewTherapy {
// Participant properties
/**
* Identify the therapist in charge of this therapy
*/
public therapist: string;
/**
* Identify the patient to targe... |
import React from 'react'
export const LogoInverted: React.FC = () => {
return (
<svg viewBox="0 0 93 37" fill="none" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
<rect width="93" height="37" fill="url(#pattern1)"/>
<defs>
<pattern id="pattern1" patternContent... |
/* eslint-disable import/extensions */
/* eslint-disable import/no-unassigned-import */
import "@surface/material-design/components/button";
import "@surface/material-design/components/icon";
import CustomElement, { element } from "@surface/custom-element";
import template from "./index.html";
import... |
import {TestClass} from "./test.class";
import {Type} from "@digitalascetic/ngx-reflection";
export abstract class AbstractTestClass {
@Type(() => TestClass)
protected _testClass: TestClass;
constructor(testClass: TestClass, id: number = undefined) {
this._testClass = testClass;
}
get te... |
import { WritableStore, ReadableStore, WalletInterfaceStore, WalletStateSliceStore, BalanceStore, CancelablePromise } from './interfaces';
export declare const app: WritableStore;
export declare const stateSyncStatus: {
[key: string]: null | CancelablePromise | Promise<Array<string>> | Promise<string> | Promise<voi... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import {HeroDetailComponent} from './hero-detail.component';
import {HeroesComponent} from './heroes.component';
impor... |
const IS_BLANK = /^\s*$/;
export interface LetterProps {
text: string;
ignoreBlank?: boolean;
letterClassName?: string;
}
export const Letters: React.FC<LetterProps> = ({ text, letterClassName, ignoreBlank = true }) => {
const chars = text.trim().split('');
return (
<>
{chars.map((char, index) =>... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Store } from '@ngrx/store';
import { Router } from '@angular/router';
import { isCreated } from './store/comandas.selector';
import {
fromComandaActions
} from './store/comandas.actions';
import { NotificationMessageService } from '../shared/servi... |
/* eslint-disable key-spacing */
export const defaultPaginationTheme = {
button: 'pagination-button',
controlButtons: 'pagination-controls',
controlFirst: 'first',
controlLast: 'last',
controlNext: 'next',
controlPrev: ... |
import { Request, Response } from 'express';
import { IUpdateACCTypeRequestDTO } from './UpdateACCTypeDTO';
import { UpdateACCTypeUseCase } from './UpdateACCTypeUseCase';
export class UpdateACCTypeController {
private updateACCTypeUseCase;
constructor(updateACCTypeUseCase: UpdateACCTypeUseCase) {
this.updateA... |
/**
* Types representing values
*
* @module Values
*/
/** This comment is needed so that TypeDoc parses the above one correctly */
import { AsyncLazy } from '../common/lazy';
/**
* TODO
*/
interface Value {
kind: "jsoutput" | "dataframe" | "exports" | "nothing" | "printout" | "figure";
}
/**
* TODO
*/
interface... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react'
import QuillPenLineSvg from '@airclass/icons-svg/lib/asn/QuillPenLine';
import AntdIcon, { AntdIconProps } from '../components/AntdIcon';
const QuillPenLine = (
props: AntdIconProps,
ref: React.MutableRefObject<HTMLSpa... |
import { Dom7Array } from 'dom7';
import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class';
export namespace Popover {
interface Events {
/** Event will be triggered when Popover starts its opening animation. As an argument event handler receives popover instance */
... |
import { Injectable, Output, EventEmitter } from "@angular/core";
import { ApiService } from "@rapydo/services/api";
import { NotificationService } from "@rapydo/services/notification";
import { Observable, forkJoin } from "rxjs";
import { map } from "rxjs/operators";
import { AppShotsService } from "./app-shots";
@In... |
import * as React from 'react';
import { ScreenRect, ViewStyle } from 'react-native';
import { IRenderData } from '@uifabricshared/foundation-composable';
import { IBackgroundColorTokens, IBorderTokens } from '@fluentui-react-native/tokens';
import { IFocusable } from '@fluentui-react-native/interactive-hooks';
export... |
import {
Output,
OnInit,
AfterContentInit,
OnChanges,
Component,
ElementRef,
forwardRef
} from '@angular/core';
import { base } from './base';
export class tabletpickerMetaData {
public static XTYPE: string = 'tabletpicker';
public static PROPERTIESOBJECT: any = {
"activeChildTabIndex": "Number",
... |
/*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... |
import { CreateValidatorArg, GenericObject, Validator } from "..";
import { FORM_ID_FIELD } from "../internal/constants";
import { objectFromPathEntries } from "../internal/flatten";
const preprocessFormData = (data: GenericObject | FormData): GenericObject => {
// A slightly janky way of determining if the data is ... |
import 'reflect-metadata';
import { Container } from 'inversify';
import USER_IDENTIFIERS from '../../user/domain/constants';
import { IUserRepository } from '../../user/domain/interfaces/IUserRepository';
import { UserRepository } from '../../user/infrastructure/db/repository/UserRepository';
import { IBotRepository }... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const StopImageBuilderInput: _Structure_ = {
type: "structure",
required: ["Name"],
members: {
Name: {
shape: {
type: "string",
min: 1
}
}
}
}; |
import { ethers } from 'ethers'
import { retry, race, take, call, put, select, delay } from 'redux-saga/effects'
import * as matchers from 'redux-saga-test-plan/matchers'
import { expectSaga } from 'redux-saga-test-plan'
import { generateTree } from '@dcl/content-hash-tree'
import { push, replace } from 'connected-reac... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { FormsComponent } from './forms.component';
import { FormInputsComponent } from './form-inputs/form-inputs.component';
import { FormLayoutsComponent } from './form-layouts/form-layouts.component';
import { TourOpe... |
import { ApproxStructure, Log, Pipeline, RealKeys } from '@ephox/agar';
import { UnitTest } from '@ephox/bedrock';
import { TinyApis, TinyLoader, TinyUi } from '@ephox/mcagar';
import NonbreakingPlugin from 'tinymce/plugins/nonbreaking/Plugin';
import theme from 'tinymce/themes/silver/Theme';
import Env from 'tinymce/c... |
import 'promise-polyfill/src/polyfill';
import React, {useEffect} from 'react';
import ReactDOM from 'react-dom';
import { PluginStore } from './store'
import { usePluginStore } from './hooks'
import { Provider, observer } from 'mobx-react';
import type {IAgoraExtApp, AgoraExtAppHandle, AgoraExtAppContext} from 'agora-... |
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import cx from 'classnames'
import { Icon } from '@fluentui/react'
import { FC, memo, useState } from 'react'
import { Col, Row } from 'react-bootstrap'
import { ReactSelect } from '../ReactSelec... |
import { Injectable } from '@angular/core';
import { ParseService } from './parse.service';
import * as Parse from 'parse';
import { HttpClient } from '@angular/common/http';
import { environment } from '../../../environments/environment';
@Injectable()
export class TourService {
dataUpdate: Array<any> = [];
i... |
import * as amqp from "amqplib";
import { Injectable, Inject, Logger } from '@nestjs/common';
import { QueueChannelProviderToken } from '../../common/provide-tokens';
import { NotificationEvent } from "../models";
import { ConfigService } from "../../config/config.service";
@Injectable()
export class ProducerService {... |
declare namespace Jymfony.Component.HttpFoundation.Session.Storage {
import CacheItemPoolInterface = Jymfony.Contracts.Cache.CacheItemPoolInterface;
import SessionBagInterface = Jymfony.Component.HttpFoundation.Session.SessionBagInterface;
/**
* Cache storage backend for session.
*/
export cl... |
import deepSort from '../src'
import test from 'ava'
test('number', t => {
t.deepEqual(deepSort(1), 1)
})
test('string', t => {
t.deepEqual(deepSort('aaa'), 'aaa')
})
test('array', t => {
const actual = deepSort([1, 2])
t.true(actual.length === 2)
t.true(actual.includes(1))
t.true(actual.includes(2))
})
... |
import styled from '@emotion/styled'
import css from '@styled-system/css'
import * as _Color from '../../../../../types/color'
import * as _Position from '../../../../../types/position'
import * as _Typography from '../../../../../types/typography'
interface StyledProps {
active: boolean
error: string
htm... |
import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Purchase } from './entities/purchase.entity'
import { PurchasesService } from './purchases.service'
import { PurchasesResolver } from './purchases.resolver'
@Module({
imports: [
TypeOrmModule.forFeature([
Purc... |
import { Component, Input, OnInit } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import { JsonSchemaFormService } from '../../json-schema-form.service';
@Component({
selector: 'semantic-ui-textarea-widget',
template: `
<div
[class]="'ui field ' + options?.htmlClass || ''">
... |
import React, { useEffect, useContext, ReactNode, useCallback } from 'react'
import cn from 'classnames'
import { ID, UID } from 'models/common/Identifiers'
import { Tabs, ProfileUser } from 'containers/profile-page/store/types'
import { Status } from 'store/types'
import styles from './ProfilePage.module.css'
import ... |
export interface sequenceMetadata {
identicalSeqs: string[]
accession: string
submitters: string
releaseDate: string
species: string
genus: string
family: string
length: number
sequenceType: string
geoLocation: string
host: string
isolationSource: string
collectionDate: string
genBankTitle?:... |
import React from 'react';
import { Tags } from '../../../lib/components';
const items = [
{ disabled: false, name: 'python' },
{ name: 'fortran' },
{ name: 'c sharp' },
{ name: 'Go lang' },
{ disabled: true, name: 'RUST' },
];
export const Default = (
<Tags
placeholder="Choose a language..."
item... |
import { output, input } from '@covid-modeling/api'
export interface RunnerModelInput {
modelInput: input.ModelInput
inputFiles: string[]
}
export interface Model {
inputs(input: input.ModelInput): RunnerModelInput
run(runInput: RunnerModelInput): Promise<output.ModelOutput>
} |
import { GenericServerOptions, HttpError, newError, UpdateInfo } from "builder-util-runtime"
import { AppUpdater } from "./AppUpdater"
import { getChannelFilename, getCustomChannelName, getDefaultChannelName, isUseOldMacProvider, newBaseUrl, newUrlFromBase, Provider, ResolvedUpdateFileInfo } from "./main"
import { pars... |
import { HighlightEnum } from 'components/HighlightModesPopover/HighlightModesPopover';
import { ZoomEnum } from 'components/ZoomInPopover/ZoomInPopover';
import { DensityOptions } from 'config/enums/densityEnum';
import {
ImageRenderingEnum,
MediaItemAlignmentEnum,
} from 'config/enums/imageEnums';
import {
Ag... |
import { useEffect, useState } from 'react';
export type ScreenSize = Pick<Screen, 'width' | 'height'>;
export default function useScreenSize(): ScreenSize {
const [size, setSize] = useState<ScreenSize>({
width: window.screen.width,
height: window.screen.height,
});
useEffect(() => {
const changeHa... |
/*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import { DThemeBase } from "./d-base";
import { DBaseStateSet } from "./d-base-state-set";
import { DStateAwareOrValueMightBe } from "./d-state-aware";
export interface DBackground {
color?: DStateAwareOrValueMightBe<number | nul... |
import React from 'react';
import { LinearGradient } from 'expo-linear-gradient';
import { View, Image } from 'react-native';
import styles from './styles';
import { theme } from '../../global/styles/theme';
type Props = {
urlImage: string;
};
const Avatar: React.FC<Props> = ({ urlImage }) => {
const { secondary... |
// Type definitions for amazon-product-api
// Project: https://github.com/t3chnoboy/amazon-product-api
// Definitions by: Matti Lehtinen <https://github.com/MattiLehtinen/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "amazon-product-api" {
interface ICredentials {
aws... |
/*
FileName: LoadPlaceInfo.ashx.ts
Written By: Nikita Nikolaevich Petko
File Type: Module
Description: Load Place info script
All commits will be made on behalf of mfd-co to https://github.com/mfdlabs/robloxlabs.com
***
Copyright 2006-2021 ROBLOX
Licensed under the Apache License, Version 2.0 (the "Licen... |
/* eslint-disable import/prefer-default-export, import/no-cycle */
import {
Annotation,
BackboneElement,
CodeableConcept,
EffectEvidenceSynthesisCertaintyCertaintySubcomponent,
FhirList,
IEffectEvidenceSynthesisCertainty,
FhirType
} from "../internal";
@FhirType("EffectEvidenceSynthesisCertainty", "Backb... |
// @ts-ignore TS6133
import { expect } from "https://deno.land/x/expect@v0.2.6/mod.ts";
const test = Deno.test;
import * as z from "../index.ts";
const minFive = z.number().min(5, "min5");
const maxFive = z.number().max(5, "max5");
const intNum = z.number().int();
test("passing validations", () => {
minFive.parse(... |
import { FC } from 'react'
import Thead from './Thead'
interface TableProps {
columns: string[]
}
const Table: FC<TableProps> = ({ columns, children }) => {
return (
<table className="min-w-full">
<Thead columns={columns} />
{children}
</table>
)
}
export default Table |
import { Suspense, lazy } from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import { ChakraProvider } from "@chakra-ui/react";
import theme from "../theme";
const Entry = lazy(() => import("../pages/entry"));
const Room = lazy(() => import("../pages/room"));
export default func... |
import * as React from 'react';
import styled from '../theme/index';
import BaseSeries, { IProps, PropsWithDefaults } from './base-series';
import { getScaleFunc, IDatum } from '../utils/scales';
import { curveCardinal, line } from 'd3-shape';
// const strokeStyles = {
// dashed: '6, 2',
// solid: null
// }... |
import { NgModule } from '@angular/core';
import { SnackbarDirective } from '../snackbar.directive';
@NgModule({
declarations: [SnackbarDirective],
exports: [SnackbarDirective],
})
export class SnackbarModule {} |
// Type definitions for jQueryUI 1.9
// Project: http://jqueryui.com/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>, John Reilly <https://github.com/johnnyreilly>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="jquery.d.ts"/>
declare namespace JQueryUI {
// Ac... |
/**
* @file Adapted from https://github.com/parsonsmatt/purescript-pair
*/
import { Applicative1 } from 'fp-ts/lib/Applicative';
import { Comonad1 } from 'fp-ts/lib/Comonad';
import { Foldable2v1 } from 'fp-ts/lib/Foldable2v';
import { Endomorphism } from 'fp-ts/lib/function';
import { Monoid } from 'fp-ts/lib/Monoid... |
import { ArchDropdownModule } from './arch-dropdown.module';
describe('ArchDropdownModule', () => {
let archDropdownModule: ArchDropdownModule;
beforeEach(() => {
archDropdownModule = new ArchDropdownModule();
});
it('should create an instance', () => {
expect(archDropdownModule).toBeTruthy();
});
... |
import {
Body,
Controller,
Delete,
Get,
Param,
Patch,
Post,
UseGuards,
} from '@nestjs/common';
import { ApiTags, ApiOperation } from '@nestjs/swagger';
import { AddCommentDto, UpdateCommentDto } from './comments.dto';
import { CommentsService } from './comments.service';
import { CommentOwnerGuard } fr... |
import { FrameOptions, TextFrame } from "./src/options";
export function computeTextFrames(options: FrameOptions): TextFrame[];
export function renderFrame(
context: CanvasRenderingContext2D,
frame: TextFrame,
clear?: boolean
): void; |
export const TEKTON_HUB_API_ENDPOINT = 'https://api.hub.tekton.dev';
export const TEKTON_HUB_ENDPOINT = `https://hub.tekton.dev`;
export const TEKTON_HUB_INTEGRATION_KEY = 'enable-devconsole-integration'; |
import { Body, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { City } from './city.entity';
@Injectable()
export class CitiesService {
constructor(
@InjectRepository(City)
private cityRepository: Repository<City>,
) {}
... |
import { mock } from "jest-mock-extended";
import { PrismaService } from "nestjs-prisma";
import { HealthServiceBase } from "../../health/base/health.service.base";
describe("Testing the HealthServiceBase", () => {
//ARRANGE
let prismaService: PrismaService;
let healthServiceBase: HealthServiceBase;
describe(... |
import React, {
useRef,
useState,
useEffect,
useContext,
useCallback,
createContext,
} from 'react';
import type {
FC,
MouseEventHandler,
FormEventHandler,
} from 'react';
export type VisibleSide =
| 'front'
| 'back';
export interface Card
extends Record<string, string> {
front: string;
ba... |
import AWS from 'aws-sdk';
import { Handler } from 'aws-lambda';
type DescribeUserPoolClientRequest = AWS.CognitoIdentityServiceProvider.DescribeUserPoolClientRequest;
type DescribeUserPoolClientResponse = AWS.CognitoIdentityServiceProvider.DescribeUserPoolClientResponse;
type PutParameterRequest = AWS.SSM.PutParamete... |
/* eslint-disable no-console */
import fs from 'fs';
import glob from 'glob';
import { runTimeFixGenerator } from './runTImeFixGenerator';
function getFileName(match: string): string {
const start = match.lastIndexOf('/');
const end = match.lastIndexOf('.ts');
return match.substring(start + 1, end);
}
function get... |
/**
* header-row.tsx
*
* Forked from reactabular-table version 8.14.0
* https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
*/
import * as React from 'react';
import { evaluateFormatters } from './evaluate-formatters';
import { evaluateTransforms } from './evaluate-transforms';
i... |
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
import styled, { keyframes } from 'styled-components';
import Section from '../Section';
import { media } from '@/utils/theme';
import { getRelativePath } from '@/utils';
import ScrollAnimation from 'react-animate-on-scroll';
const Title = styled.h1`
margin: 4rem 0 2rem;
font-size: 5rem;
letter-spacing: 4px;
f... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
import React, { useState, useEffect } from 'react';
import createFocusStore from './focus-store';
import lrudInput from './lrud-input/focus-lrud';
import { ProviderValue, RootFocusNode, Orientation } from './types';
import warning from './utils/warning';
const FocusContext = React.createContext<null | ProviderValue>(n... |
/** The collection of multi-value extended properties defined for the calendar. Read-only. Nullable. */
export class MultiValueExtendedPropertiesRequestBuilderGetQueryParameters {
/** Include count of items */
public count?: boolean | undefined;
/** Expand related entities */
public expand?: string[] | ... |
/// <reference path="../../src/bobril.d.ts"/>
/// <reference path="model/world.ts" />
/// <reference path="components/gamecontrolpanel.ts" />
/// <reference path="components/canvas.ts" />
module GameOfLifeApp{
export interface IGameOfLifeData{
runing: boolean;
delay: number;
startLiveCell:... |
import React from 'react';
import './styles.css';
const Footer = () =>
{
return (
<footer className="footer">
<p>
Todos os direitos reservados © Tem Bilhete? 2020
</p>
</footer>
)
}
export default Footer; |
import * as React from 'react'
import Cascader from 'antd/lib/cascader'
import DatePicker from 'antd/lib/date-picker'
import Input from 'antd/lib/input'
import Mentions from 'antd/lib/mentions'
import Radio from 'antd/lib/radio'
import Select from 'antd/lib/select'
import create from './create'
const { lazy } = React
... |
/**
* @generated-from ./methods/$drop-while/async-drop-while.d.ts
* This file is autogenerated from a template. Please do not edit it directly.
* To rebuild it from its template use the command
* > npm run generate
* More information can be found in CONTRIBUTING.md
*/
import asyncDropWhile from './methods/$drop-... |
import {
Controller,
Get,
UseGuards,
ClassSerializerInterceptor,
UseInterceptors,
Query,
} from '@nestjs/common'
import { ApiTags, ApiOkResponse } from '@nestjs/swagger'
import { JwtAuthGuard } from '@/guards/jwt-auth.guard'
import { User } from '@/decorators/user.decorator'
import { UsersService } from '.... |
import { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
import { ListRegexPatternSetsRequest, ListRegexPatternSetsResponse } from "../models/models_0";
import {
deserializeAws_json1_1ListRegexPatternSetsCommand,
serializeAws_json1_1ListRegexPatternSetsCommand,
} from "../p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.