text stringlengths 10 953k |
|---|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilitie... |
import { createElement, DateProfileGenerator, memoize, DateProfile, ChunkContentCallbackArgs, CalendarContext } from '@fullcalendar/common'
import { TimeColsView, buildTimeColsModel, buildSlatMetas } from '@fullcalendar/timegrid'
import {
ResourceDayHeader, ResourceDayTableModel, DayResourceTableModel, ResourceViewPr... |
/**
* Represents an app authorization structure.
*/
export interface AppAuthorization {
key: string;
valid: boolean;
} |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import * as dsv from 'd3-dsv';
import {
ActivityMonitor, PathExt
} from '@jupyterlab/coreutils';
import {
ABCWidgetFactory, DocumentRegistry
} from '@jupyterlab/docregistry';
import {
PromiseDelegate
} from ... |
import {AfterViewInit, Component, ElementRef, EventEmitter, ViewChild} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {Location} from '@angular/common';
import {BaseComponent} from '../../common/base.component';
import {GraphQLService} from '../../services/graphql.service';
import ... |
import { SourceMapGenerator, RawSourceMap } from 'source-map'
import Node, {
Position,
Source,
ChildNode,
NodeProps,
ChildProps,
AnyNode
} from './node.js'
import Declaration, { DeclarationProps } from './declaration.js'
import Root, { RootProps } from './root.js'
import Comment, { CommentProps } from './c... |
/*
* Copyright 2020 RoadieHQ
*
* 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 ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Feather } from '@expo/vector-icons'
import React from 'react'
import {StyleSheet, Text, View} from 'react-native'
import {RectButton, RectButtonProps} from 'react-native-gesture-handler'
import Swipeable from 'react-native-gesture-handler/Swipeable'
import Animated from 'react-native-reanimated'
import {SvgFro... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="sr">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation type="unfinished">Десни клик за измену адресе или ознаке</translation>
</message>
<mes... |
import * as React from 'react'
import { ajaxPost, ajaxGet } from '@framework/Services';
import { SearchValueLine } from '@framework/Search'
import { EntitySettings } from '@framework/Navigator'
import * as Navigator from '@framework/Navigator'
import { Entity } from '@framework/Signum.Entities'
import { PropertyRouteEn... |
import { Mutation } from 'react-apollo';
import { ModalType } from 'constants/enums';
interface ModalData {}
interface ModalVariables {
type: ModalType;
}
export class ModalMutation extends Mutation<ModalData, ModalVariables> {} |
import {DamageStepArgs, DamageStepContext} from "~classes/generic";
export default (
{name: teamName, orders, room, preamble}: DamageStepArgs,
{name, displayName = name, location, stations}: DamageStepContext,
) => {
// Find the station with the security teams
const station = stations.find(s =>
s.cards.fin... |
export const Abilities: {[k: string]: ModdedAbilityData} = {
infectiousbite: {
name: "Infectious Bite",
desc: "This is a long description",
shortDesc: "Infects Pokemon that attack it.",
onDamagingHit(damage, target, source, move) {
const sourceAbility = source.getAbility();
if (sourceAbility.isPermanent ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import React, { ReactNode } from 'react';
import { WidgetContainerProps, WidgetComponent } from '@bfc/extension-client';
import { ActionHeader } from '../ActionHeader';
import { CardTemplate } from './CardTemplate';
import { ActionCardBody } ... |
export const getTodayFirstTimestamp = function(): Date {
let date = new Date();
date.setHours(0);
date.setMinutes(0);
date.setSeconds(0);
return date;
};
export const getTodayLastTimestamp = function(): Date {
let date = new Date();
date.setHours(23);
date.setMinutes(59);
date.setSec... |
import { Derivable, DerivableAtom, LensDescriptor, MaybeFinalState, SettableDerivable } from '../interfaces';
import { unresolved as unresolvedSymbol } from '../symbols';
import { ErrorWrapper, FinalWrapper } from '../utils';
import { Atom } from './atom';
import { Derivation } from './derivation';
import { Lens } from... |
import { TestBed, async, inject, ComponentFixture } from "@angular/core/testing";
import { DebugElement } from "@angular/core";
import { ReactiveFormsModule, FormGroup, FormControl } from "@angular/forms";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { By } from "@angular/platform... |
import type { StyleProps } from "../utils/StyleTypes";
import { useMediaContext } from "../context/useMediaContext";
// One of onClick or href required
export type ButtonProps = {
primary?: boolean;
href?: string;
onClick?: () => void;
children: React.ReactNode;
} & StyleProps;
export const Button = ({
chil... |
export default class User {
constructor(data) {}
} |
import cluster from "cluster";
import { appPort, clusterSize, ngRokToken, selfUrl } from "../env";
import { Logger } from "../logger";
import { run as runServer } from "./start";
import { getHostName } from "../server/tunnel";
const logger = new Logger("cluster");
export function run(): void {
const launchTime = ne... |
import {Injectable} from "@angular/core";
import {HttpClient, HttpHeaders} from "@angular/common/http";
import * as jwt_decode from "jwt-decode";
import { host } from '../../../util/constantes-app';
import {NavigationExtras, Router} from "@angular/router";
import {JwtHelperService} from "@auth0/angular-jwt";
import {Ut... |
import { MenuEntry } from '@pancakeswap-libs/uikit'
const config: MenuEntry[] = [
{
label: 'Home',
icon: 'HomeIcon',
href: '/',
},
{
label: 'Trade',
icon: 'TradeIcon',
initialOpenState: true,
items: [
{
label: 'Exchange',
href: '/swap',
},
{
l... |
import {
ContentFields,
ContentType,
SysLink,
} from 'contentful-management/types'
export type EntryTypeField = {
contentFieldType?: ContentFields
fieldValue: {
/** Either syslink, an array of syslinks or a record of fieldIds */
[localeCode: string]: SysLink | SysLink[] | Record<string, any>
}
}
e... |
import { useCallback, useRef, useState } from 'react'
interface Params {
url: string
method: 'GET' | 'POST'
}
export function useFetcher() {
const [loading, setLoading] = useState(false)
const [error, setError] = useState<string>()
const abortRef = useRef<AbortController>()
const request = useCallback(as... |
import { OutMode, OutModeAlt } from "../../../../Enums/Modes";
export interface IOutModes {
bottom?: OutMode | keyof typeof OutMode | OutModeAlt;
default: OutMode | keyof typeof OutMode | OutModeAlt;
left?: OutMode | keyof typeof OutMode | OutModeAlt;
right?: OutMode | keyof typeof OutMode | OutModeAlt... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { Routes, RouterModule } from '@angular/router';
import { AppComponent } from './app.component';
impo... |
import React from 'react';
import { Table, Avatar, AvatarGroup, Tag } from '@gio-design/components';
import Sign from '@gio-design/components/es/components/sign';
import Toggles from '@gio-design/components/es/components/toggles';
import { AndroidFilled, IosFilled, DesktopFilled, MiniProgramFilled } from '@gio-design/i... |
const dict = {
'Normal': 'Normal',
'Magic': 'Magic',
'Rare': 'Rare',
'Unique': 'Unique',
'Gem': 'Gem',
'Currency': 'Currency',
'Divination Card': 'Divination Card',
'Map Tier: ': 'Map Tier: ',
'Rarity: ': 'Rarity: ',
'Item Level: ': 'Item Level: ',
'Talisman Tier: ': 'Talisman Tier: ',
'Level: '... |
import { RadixBasicContainer, RadixBase64 } from '../RadixAtomModel'
export default class RadixSignature extends RadixBasicContainer {
static SERIALIZER = -434788200
r: RadixBase64
s: RadixBase64
public static fromEllasticSignature(ecSig) {
let r = ecSig.r.toArray()
let s = ecSig.s.to... |
import { newSpecPage } from '@stencil/core/testing';
import { PdfViewer } from '../pdf-viewer';
describe('pdf-viewer', () => {
it('renders', async () => {
const page = await newSpecPage({
components: [PdfViewer],
html: `<pdf-viewer></pdf-viewer>`,
});
expect(page.root).toEqualHtml(`
<pd... |
import { Routes } from '@angular/router';
import { DashboardComponent } from '../../dashboard/dashboard.component';
import { UserProfileComponent } from '../../user-profile/user-profile.component';
import { TableListComponent } from '../../table-list/table-list.component';
import { TypographyComponent } from '../../ty... |
export interface PQueueComparator<T> {
(a: T, b: T): number
}
export default class PQueue<T> {
contents: T[]
private _sorted: boolean
private _comparator: PQueueComparator<T>
private _sort (): void {
if (!this._sorted) {
this.contents.sort(this._comparator)
this._sorted = true
}
}
co... |
import {Component, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {DataService} from '../../services/data.service';
import {NotificationService} from '../../services/notification.service';
import {Subscription} from 'rxjs/Subscription';
import {Post, P... |
import { DocumentNode, GraphQLError } from 'graphql';
import { equal } from "@wry/equality";
import { Cache, ApolloCache } from '../cache';
import { WatchQueryOptions, ErrorPolicy } from './watchQueryOptions';
import { ObservableQuery } from './ObservableQuery';
import { QueryListener } from './types';
import { FetchR... |
import { readFileSync, renameSync, writeFileSync } from 'fs';
import { join } from 'path';
import chalk from 'chalk';
import del from 'del';
import ora from 'ora';
import { replaceInFile } from 'replace-in-file';
import { Placeholders, Tasks } from './tasks';
import { normalizePath, Runner, TypescriptStarterOptions }... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import shallowequal from 'lodash/isEqual';
import Icon from '../icon';
import { ElementProps } from '../core/ViewComponent';
import autobind from '../_util/autobind';
export interface ExpandIconProps exte... |
export enum Categoria {
SIN_IMPORTANCIA = 'SIN_IMPORTANCIA',
LEVE = 'LEVE',
GRAVE = 'GRAVE',
} |
import { Controller, Res, Param, HttpStatus, Body, Post, Get, Put, UseGuards, Delete } from '@nestjs/common';
import { TypeOfActivityService } from './typeOfActivity.service';
import { TypeActivityDTO } from './dto/typeOfActivity.dto';
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard';
@UseGuards(JwtAuthGua... |
import { TestBed, async, inject } from '@angular/core/testing';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { MockConfigService } from 'tests/mocks/mock-config.service';
import { ConfigCodePipe } from './config-code.pipe';
import { ConfigService } from './config.service';
import { A... |
import { Paragraph, TextRun } from 'docx';
import { IndividualBeing } from '../../data/parties/base';
import { trustDateKey, trustNameKey } from '../../data/parties/grantorKey';
import { Missing } from '../../template/Language/Missing';
import { getStandardDate } from '../functions';
export function NoticeSigningLineT... |
import { Client as DBClient } from 'pg';
import config from 'config';
import {
name as commandName,
run as command,
} from '../../../services/discord-bots/hub-bot/commands/dm/airdrop-prepaidcard/start';
import * as JSONAPI from 'jsonapi-typescript';
import {
MockUser,
makeTestMessage,
makeTestChannel,
makeT... |
import int from './int';
import isValidDate from './isValidDate';
import formatYearDigits from './formatYearDigits';
import getOnlyNumber from './getOnlyNumber';
import getDateDefault from './getDateDefault';
import daysInMonth from './daysInMonth';
import dateInRange from './dateInRange';
export {
int,
isValidDat... |
import { FakeOptions, fake } from './core/core';
import { data } from './mime-type.json';
/**
* Generate a random mime type.
*
* @category system
*
* @example
*
* randMimeType()
*
* @example
*
* randMimeType({ length: 10 })
*
*/
export function randMimeType<Options extends FakeOptions>(options?: Options) ... |
import { UserType, HealthAuthority } from '@/constants/localEnums';
export interface UserProfile {
id: string;
name: string;
bcid: string;
email: string;
type: UserType;
}
export interface Business {
id: string;
address: string;
email: string;
type: string;
legalName: string;
businessName: strin... |
/* istanbul ignore next */
/**
* Represents a displayable node in the AST.
*
* @author Eric MORAND <eric.morand@gmail.com>
*/
export interface TwingNodeOutputInterface {
TwingNodeOutputInterfaceImpl: TwingNodeOutputInterface;
} |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import chalk = require('chalk');
import getType = require('jest-get-type');
import {ERROR, ValidationError, f... |
import React, {useState} from 'react';
import {Icon, IconType} from '@thenewboston/ui';
import {useHistory} from 'react-router';
import {ROUTES} from 'constants/routes';
import {SFC} from 'types/generic';
import * as S from './Styles';
type Props = {
description: string;
logoUrl: string;
title: string;
webs... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
IncomingMessage, ServerResponse,
} from 'http'
import { MatchResult } from './MatchResult'
export type ExtractMatchResult<M> = M extends Matcher<infer MR> ? MR : never
export interface Matcher<T extends MatchResult = MatchResult> {
match(req: IncomingMessage, res: ServerResponse): T
} |
import Compiler from '../Compiler';
import Frame from '../Frame';
import { Token } from '../Lexer';
import Node from '../Node';
import Parser from '../Parser';
import * as Nodes from './index';
import ListNode from './List';
export default class MacroNode extends Node {
public static parse(parser: Parser) {
cons... |
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { PAGE_SETTINGS } from '../../demo-wrapper/demo-wrapper.component';
import { DemoWrapperModule } from '../../demo-wrapper/demo-wrapper.module';
import { FormsDemoCom... |
import React from 'react';
import App from './App';
import {runAxeCheck} from "./setupTests";
test('App', async () => {
await runAxeCheck(<App/>);
}); |
/***************************************************************************
* *
* This file was automatically generated with idlc.js *
* build info: *
* ... |
import { testSuite } from '../../support/testSuite'
testSuite.tests.manualEntry._0() |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="de_DE">
<context>
<name>AddFxContextMenu</name>
<message>
<source>Insert Fx</source>
<translation type="vanished">FX einsetzen</translation>
</message>
<message>
<source>Add FX</source>
<tran... |
import { fireEvent, render, waitFor } from '@testing-library/react';
import React from 'react';
import Input from '../../components/Input';
jest.mock('@unform/core', () => {
return {
useField() {
return {
fieldName: 'email',
defaultValue: '',
error: '',
registerField: jest.... |
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import {
expectBoolean as __expectBoolean,
expectInt32 as __expectInt32,
expectNonNull as __expectNonNull,
expectObject as __expectObject,
expectString as __expectString,
extendedEncodeURIComponent as __ex... |
export { choiceCardDefault } from '@guardian/src-foundations/themes';
export { ChoiceCard } from './ChoiceCard';
export type { ChoiceCardProps } from './ChoiceCard';
export { ChoiceCardGroup } from './ChoiceCardGroup';
export type {
ChoiceCardGroupProps,
ChoiceCardColumns,
} from './ChoiceCardGroup'; |
import { Injectable } from '@angular/core';
import { Subject, BehaviorSubject } from 'rxjs';
import { Route } from '@angular/compiler/src/core';
import { Router, NavigationStart } from '@angular/router';
import { filter } from 'rxjs/operators';
import { MspDataService } from 'app/services/msp-data.service';
import { As... |
/* eslint-disable */
export function App() {
console.log('APP');
} |
// Type definitions for redux-first-routing 0.3
// Project: https://github.com/mksarge/redux-first-routing
// Definitions by: Tomek Łaziuk <https://github.com/tlaziuk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import createBrowserHistory from 'history/createBrowserHi... |
import { createIcon } from '../createIcon';
export const SaveIcon = createIcon({
d:
'M29.1213125,8.1213125 L23.8786875,2.8786875 C23.3160816,2.31607741 22.5530229,2 21.757375,2 L5,2 C3.343125,2 2,3.343125 2,5 L2,27 C2,28.656875 3.343125,30 5,30 L27,30 C28.656875,30 30,28.656875 30,27 L30,10.242625 C30,9.44697712... |
import { Config } from '../config';
import arrayGlob from './arrayGlob';
export default async function getStoryFiles({
storyPath,
storyPathIgnorePatterns,
executionPath,
}: Config) {
const ignoreStoryFiles = await arrayGlob(storyPathIgnorePatterns, { executionPath });
const storyFiles = await arrayGlob(story... |
import { createAction, props } from '@ngrx/store';
export interface IStudentProfileStateAction {
id?: number;
firstName?: string;
lastName?: string;
studentId?: number;
middleName?: string;
otherNames?: string;
dateOfBirth?: string;
religion?: string;
gender?: string;
}
export const loadStudentProfi... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import * as Puppeteer from 'puppeteer';
import { CommonSelectors } from '../element-identifiers/common-selectors';
import { detailsViewSelectors } from '../element-identifiers/details-view-selectors';
import { Page, PageOpti... |
import React from "react";
import { ConfigurableLink, UserHasAccess } from "@openmrs/esm-react-utils";
import styles from "./dashboard-button.component.css";
export interface DashboardButtonProps {
label: string;
link: string;
requiredPrivilege: string | void;
}
export default function DashboardButton(props: Da... |
/*
Copyright 2022 The Dapr Authors
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... |
/**
* ? Not deprecated, but trying to use pactum handler instead [register-user.handler.ts]
*/
import { AuthService } from "@/modules/auth/auth.service";
import { UserService } from "@/modules/user/user.service";
import { user } from "./fixtures/user";
const auth = async (userService: UserService, authService: Auth... |
import React from "react";
import { render, waitFor, screen } from "@testing-library/react";
import "@testing-library/jest-dom";
import { Database } from "./Database";
import { getPouchDb } from "./test-utils";
test("<Database/> renders children", async (): Promise<void> => {
const db = await getPouchDb();
const ... |
import { Theme } from '@mui/material/styles'
// ----------------------------------------------------------------------
export default function Fab(theme: Theme) {
return {
MuiFab: {
defaultProps: {
color: 'primary',
},
styleOverrides: {
root: {
boxShadow: theme.customShadows.z8,
'&:hove... |
import { CollectionCache, CollectionKey } from "../../../common";
import { BuildingLevels } from "./BuildingLevels";
import { FactionResourceIds } from "./FactionResourceIds";
export declare namespace FactionResourcesBuildingLevelsPermissionsJunctions {
const KEY: CollectionKey;
class Entry {
private re... |
/*
* 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 React from 'react';
import styled from 'styled-components';
import { E... |
var EdgeGrid = require('akamai-edgegrid');
const untildify = require('untildify');
var path = require('path');
const fs = require('fs');
import * as os from 'os';
import * as cliUtils from './cli-utils';
export var timeoutVal: number = 0;
const edgeRcParams = {
section: process.env.AKAMAI_EDGERC_SECTION || 'default... |
import React from 'react';
import { ControlProps, OwnPropsOfEnum, RankedTester } from '@jsonforms/core';
export declare const MaterialOneOfEnumControl: (props: ControlProps & OwnPropsOfEnum) => JSX.Element;
export declare const materialOneOfEnumControlTester: RankedTester;
declare const _default: React.ComponentType<im... |
import { Component, OnInit } from '@angular/core';
import {SubmitDetails} from '../submitproperty/submit'
import {MyPropertyService} from './myproperty.services'
import {Signup} from '../signup/signup'
import { ImageResult, ResizeOptions } from 'ng2-imageupload';
declare var $: any;
@Component({
selector: 'app-myp... |
import React, { PropsWithChildren } from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/Dialo... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { DigitalTwinsClient, DigitalTwinsAddRelationshipOptionalParams } from "../../src";
import { authenticate } from "../utils/testAuthentication";
import { Recorder } from "@azure/test-utils-recorder";
import chai from "chai";
const assert... |
import { Injectable } from '@nestjs/common';
import { CommandBus, QueryBus } from '@nestjs/cqrs';
import { ItemEntity } from '@infrastructure/entities';
import {
CreateItemCommand,
DeleteItemByIdCommand,
UpdateItemCommand,
} from '../commands/impl';
import { GetItemByIdQuery, GetItemsQuery } from '../queries/imp... |
import index from './'
import debug from '../debug'
// Debug
debug(`cwd: ${process.cwd()}`)
// Run hook
index(process.argv)
.then((status: number): void => process.exit(status))
.catch((err: Error): void => {
console.log('Husky > unexpected error', err)
process.exit(1)
}) |
import { NgModule } from '@angular/core';
import { NgxsModule } from '@ngxs/store';
import { SharedModule } from '../shared/shared.module';
import { CompaniesListContainerComponent } from './companies-page/companies-list-container/companies-list-container.component';
import { CompaniesListComponent } from './companies-... |
import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import styled from 'styled-components';
import { useTodoPageSlice } from '../../slice';
import { todoListSelector } from '../../slice/selectors';
import { Button } from '../../components/Button';
import { TodoItem } from '../TodoItem';
... |
export interface Attr {
name: string
value: string
quote: string
index: number
raw: string
}
export interface Block {
tagName: string
attrs: Attr[]
type: string
raw: string
pos: number
line: number
col: number
content: string
long: boolean
close: string
lastEvent?: Partial<Block>
}
exp... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { IMock, It, Mock } from 'typemoq';
import { ConnectionNames } from '../../../../common/constants/connection-names';
import { DevToolState } from '../../../../common/types/store-data/idev-tool-state';
import { Inspec... |
import { IsString, IsEmail, IsNotEmpty, IsDefined } from 'class-validator';
export class LoginDto {
@IsEmail()
@IsNotEmpty()
@IsDefined()
public readonly email!: string;
@IsString()
@IsNotEmpty()
@IsDefined()
public password!: string;
} |
// DocSection: structure_in_rte_implement_link_resolver
// This is a global resolver for all links to articles. You can also define a resolver for a given query: https://docs.kontent.ai/js-resolve-query
import { ContentItem, Elements } from '@kentico/kontent-delivery';
export class Article extends ContentItem {
cons... |
// Copyright 2016-2018, Pulumi 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... |
import * as core from '@actions/core';
import {runImpl} from "./main";
async function run(): Promise<void> {
try {
await runImpl();
} catch (error) {
core.setFailed(String(error));
}
}
// noinspection JSIgnoredPromiseFromCall
run(); |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import meta from "../../data/metadata.json"
export type MetadataMapping = typeof meta |
import { sortOptions } from "./types";
import { DB } from "../db/DB";
import * as _ from "lodash";
import {
Augur,
convertDisplayPriceToOnChainPrice,
convertOnChainAmountToDisplayAmount,
convertOnChainPriceToDisplayPrice,
numTicksToTickSize,
} from "../../index";
import { BigNumber } from "bignumber.js";
impo... |
import { Pen } from './models';
interface Item {
id: string;
pen: Pen;
lastModified: number;
}
interface Storage {
activeItemId: string | null;
items: Item[];
}
export const createStorage = (name = '__localpen_data__') => {
const EMPTY: Storage = {
activeItemId: null,
items: [],
};
const getD... |
import {NextFunction, Request, Response} from "express";
import {v4} from "uuid";
import {CORRELATION_ID_HEADER_NAME} from "./constants";
export const CorrelationId = (req: Request, res: Response, next: NextFunction) => {
if (req.header(CORRELATION_ID_HEADER_NAME) == null) {
req.headers[CORRELATION_ID_HEADER_NA... |
import { InstantApp } from "@felvin-search/core";
import { Component, queryToData } from "./App";
const App: InstantApp = {
id: "@felvin-search-apps/",
name: "Dictionary App",
description: "A simple dictionary app to define as english word.",
queryToData,
Component,
};
export default App; |
import * as path from 'path';
import { expect } from 'chai';
import {
addEventListenersToPuppeteerPage,
EventPromiseFactory,
takeScreenshot,
TestBed, loadCachedTestBed
} from '../../../puppeteer-tests/util';
import { ParamSetSkClickEventDetail } from './paramset-sk';
import { ParamSetSkPO } from './paramset-sk_... |
import { DomainObjectPropertyType, DomainObjectVariant } from 'domain-objects-metadata';
import { SqlSchemaReferenceMethod } from '../../../domain/objects/SqlSchemaReferenceMetadata';
import { SqlSchemaToDomainObjectRelationship } from '../../../domain/objects/SqlSchemaToDomainObjectRelationship';
import { defineQueryS... |
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport'
import { Strategy, ExtractJwt} from 'passport-jwt'
import { JwtPayload } from './jwt-payload.interface'
import { InjectRepository } from '@nestjs/typeorm'
import { UserRepository } from './user.reposi... |
export const version = '6.0.19'; |
import Hammer from 'hammerjs';
import React from 'react';
import GitHubButton from 'react-github-btn';
import './App.scss';
import Game2048, { Direction, Game2048Tile } from './lib/Game2048';
import SoundManager from './lib/SoundManager';
import StateManager from './lib/StateManager';
import VibratorManager from './lib... |
import { Header } from '@/component/Header'
import '@/component/page.css'
interface PageProps {
user?: {};
onLogin: () => void;
onLogout: () => void;
onCreateAccount: () => void;
}
export const Page = ({ user, onLogin, onLogout, onCreateAccount }: PageProps) => (
<article>
<Header user={user} onLogin={o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.