text stringlengths 10 953k |
|---|
import { Router } from 'express';
import appointmentsRouter from '@modules/appointments/infra/http/routes/appointments.routes';
import usersRouter from '@modules/users/infra/http/routes/users.routes';
import sessionRouter from '@modules/users/infra/http/routes/sessions.routes';
const routes = Router();
routes.use('/a... |
import React, { useState, useContext, createContext } from 'react';
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles';
// import Button from '@material-ui/core/Button';
import NavBar from '../components/top/NavBar';
import LeftContainer from './LeftContainer';
import MainContainer from './Main... |
import { makeStyles } from '@material-ui/core/styles';
export default makeStyles(() => ({
cardHeader: {
backgroundColor: '#FFFFFF',
borderBottom: '1px solid #DBE4E9',
padding: '2px 12px',
position: 'sticky',
display: 'flex',
top: 0,
zIndex: 1,
},
cardWrapper: {
flexGrow: 1,
bo... |
import {Span} from "@opentelemetry/api";
export const MESSAGE = 'FORBIDDEN';
export const STATUS_CODE = 403;
export function filterError() : Error{
let e = new Error(MESSAGE)
e.message = MESSAGE
// @ts-ignore
e.status = STATUS_CODE
// @ts-ignore
e.statusCode = STATUS_CODE
return e
}
expor... |
import BluebirdPromise from "bluebird-lst"
import { walk } from "builder-util/out/fs"
import { checkWineVersion } from "builder-util/out/wine"
import { Arch, createTargets, DIR_TARGET, Platform } from "electron-builder"
import { readAsar } from "electron-builder-lib/out/asar/asar"
import { move, outputJson, readFileSyn... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import './tasks/clean'; |
/** Base class Department definition */
/* Commented
abstract class Department {
// private employees: string[] = [];
protected employees: string[] = [];
constructor (readonly id: string, public name: string) {
}
abstract describe (this: Department): void;
addEmployee (employee: string) {
... |
/**
* An exhaustive list of set types; Scryfall provides an overall categorization for each Set in the set_type property.
*/
export declare enum ScryfallSetType {
/**
* A yearly Magic core set (e.g. Tenth Edition).
*/
core = "core",
/**
* A rotational expansion set in a block (e.g. Zendikar... |
import * as tf from '@tensorflow/tfjs';
import {
saveModel,
loadModel
} from '../../../lib/api';
const numFilters = 32;
const defaultNumLayers = 4;
const numEpochs = 10;
interface Options {
height: number;
width: number;
depth: number;
}
export default class Network {
private model: tf.Layers... |
import { Injectable } from '@nestjs/common';
import { FirebaseService } from '../firebase/firebase.service';
@Injectable()
export class MatchService {
constructor(private firebaseService: FirebaseService) { }
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
async getMatches (... |
import { spawn as _spawn, type SpawnOptions } from "child_process";
/** Promisify Spawn processes */
export async function spawn(
command: string,
args: string[] = [],
options: SpawnOptions = {}
): Promise<number | null> {
return new Promise<number | null>(function (resolve, reject) {
const p = _spawn(comm... |
import { MdiReactIconComponentType } from './dist/typings';
declare const LessThanOrEqualIcon: MdiReactIconComponentType;
export default LessThanOrEqualIcon; |
import { Test, TestingModule } from '@nestjs/testing';
import { OpeningHoursService } from './opening_hours.service';
describe('OpeningHoursService', () => {
let service: OpeningHoursService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [OpeningHours... |
import { Server, Socket } from "socket.io";
import uuid from "uuid/v4";
import okta from "@okta/okta-sdk-nodejs";
import OktaJwtVerifier from "@okta/jwt-verifier";
const messageExpirationTimeMS = 10 * 1000;
const jwtVerifier = new OktaJwtVerifier({
clientId: process.env.OKTA_CLIENT_ID,
issuer: `${process.env.OKTA... |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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
*
... |
export declare function numberWithRangeMap(input: number, inputLow: number, inputHigh: number, outputLow: number, outputHigh: number): number; |
import TestBase from "../../TestBase";
export default class extends TestBase {
getDescription() {
return 'Exception for multiline function with undefined variable';
}
getTemplates() {
return {
'index.twig': `
{{ include('foo',
with_context=with_context
) }}`,
'fo... |
import { Amount } from "../../generics/amount";
import { HttpOperation } from "../../generics/httpOperation";
import { State } from "../../enums/state";
import * as v from 'class-validator'
import { Type } from 'class-transformer';
import { BaseModel } from "../../generics/baseModel";
export class AuthorizationTransac... |
/**
* @file splicer.
* @author tony7lee
*/
import { fillTabWith } from '../utils';
import { ICollectItem } from '../types/collector';
interface IPlayload {
nestImports: string[];
nestImportsNames: string[];
nestSlice: string[];
indent: number;
}
/**
* loop splice
*
* @param {*} payload
* @param {*} co... |
# perl -I../net-async-webservice-lxd/lib/ -I../tm2-base/lib/ -I../templescript/lib/ -Ilib ../templescript/bin/ts --module=TM2::Virtual::lxd --ur-path=../templescript/ontologies/ --path=ontologies/ --map ontologies/lxc.ts --continuation --variable=endpoint=https://192.168.3.50:8443
%include file:lxd.ts
§ isa ts:stream... |
import { Token, Literal, Bracket, Field, RepeaterPlaceholder, Repeater, RepeaterNumber, ValueToken, Quote, Operator, OperatorType } from './tokenizer/tokens';
import { ConvertState } from './types';
type TokenVisitor = (token: Token, state: ConvertState) => string;
const operators: { [key in OperatorType]: string } =... |
import * as core from '@actions/core';
import fetch from 'node-fetch';
export const submitDeploy = async (
cloudId: string,
token: string,
body: string,
) => {
try {
const response = await fetch(
`https://api.atlassian.com/jira/deployments/0.1/cloud/${cloudId}/bulk`,
{
method: 'POST',
... |
/*
* 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 { Map as MbMap, Layer as MbLayer, GeoJSONSo... |
import React from "react";
import { useContext } from "react";
import { Redirect } from "react-router-dom";
import { AppContext } from "../App";
import { emptyProfile } from "../hooks";
import { profilesMatch } from "../utils";
interface Props {}
function RedirectManager(props: Props) {
const { isAuthenticated, pro... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { DtIconModule } from '@dynatrace/bari... |
import { Form, Formik, FormikProps } from 'formik';
import * as Yup from 'yup';
import Head from 'next/head';
import { useRouter } from 'next/router';
import { Button } from '@chakra-ui/react';
import { MyInput } from '../../components/MyInput';
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
import {... |
import { useEffect, useState } from "react";
import { api } from "../services/api";
import { MovieCard } from "./MovieCard";
interface GenreResponseProps {
id: number;
name: 'action' | 'comedy' | 'documentary' | 'drama' | 'horror' | 'family';
title: string;
}
interface MovieProps {
imdbID: string;
Title: st... |
import { provide } from 'ng-metadata/core';
import { SearchCtrl } from './search-controller';
import Results from './results/results';
export default angular.module( 'App.Views.Search', [
Results,
] )
.controller( ...provide( 'SearchCtrl', { useClass: SearchCtrl } ) )
.name; |
/* tslint:disable:no-empty */
// Silent navigator.vibrate polyfill
if (!('vibrate' in window.navigator)) (window.navigator as any).vibrate = () => {} |
import { TEXT_BLOCK_ELEMENTS } from '../../const';
import { DOMNode } from '../../dom-node';
import { OutputConfig } from '../../output-config';
import { StringOutput } from '../string-output';
/**
* Parses DOMNode[] to HTML string
*/
export class HTMLOutput extends StringOutput {
constructor(nodes: DOMNode[], con... |
import * as vscode from 'vscode'
import configService from '../services/config-service'
import { ConfigCredential } from '../fast-sfdc'
async function showCredsMenu (credentials: ConfigCredential[], currentCredential: number): Promise<string | undefined> {
return (await vscode.window.showQuickPick(credentials
.f... |
import React, { useState, useEffect, useCallback } from "react";
import { useDispatch, useSelector } from "react-redux";
import {
CreateNewRelicConfigFileRequestType,
CreateNewRelicConfigFileResponse,
InstallNewRelicRequestType,
InstallNewRelicResponse
} from "../../protocols/agent/agent.protocol.nr";
import { logE... |
import * as ec2 from '@aws-cdk/aws-ec2';
import { Construct, Duration, IResource, Lazy, Resource } from '@aws-cdk/core';
import { BaseListener } from '../shared/base-listener';
import { HealthCheck } from '../shared/base-target-group';
import { ApplicationProtocol, SslPolicy } from '../shared/enums';
import { IListener... |
import { AccountsClient } from '@accounts/client';
import { LoginResult, CreateUser } from '@accounts/types';
import { AccountsClientPasswordOptions } from './types';
export class AccountsClientPassword {
private client: AccountsClient;
private options: AccountsClientPasswordOptions;
constructor(client: Account... |
import { EventEmitter, OnInit, ElementRef, Renderer, DynamicComponentLoader, ViewContainerRef } from '@angular/core';
import { NgModel } from '@angular/forms';
import { TypeaheadContainerComponent } from './typeahead-container.component';
import 'rxjs/add/observable/from';
import 'rxjs/add/operator/debounceTime';
impor... |
export function matchNumber(n: number): string {
switch (n) {
case 1:
return 'one';
case 2:
return 'two';
case 3:
return 'three';
default:
return `${n}`;
}
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { VisualizacaoComponent } from './visualizacao.component';
describe('VisualizacaoComponent', () => {
let component: VisualizacaoComponent;
let fixture: ComponentFixture<VisualizacaoComponent>;
beforeEach(async(() => {
TestBed.... |
import { MigrationInterface, QueryRunner } from 'typeorm';
export class InitTableMigration implements MigrationInterface {
name = 'initTable1599256555400';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
"CREATE TABLE `user` (`id` int NOT NULL AUTO_INCRE... |
import { Field, InputType } from '@nestjs/graphql';
@InputType()
export class NestedDateTimeFilter {
@Field(() => Date, { nullable: true })
equals?: Date | string;
@Field(() => [Date], { nullable: true })
in?: Array<Date> | Array<string>;
@Field(() => [Date], { nullable: true })
notIn?: Array... |
/* eslint-disable @typescript-eslint/ban-types */
import { selectCurrentSelection } from 'apps/authoring/store/parts/slice';
import React, { ChangeEvent, CSSProperties, Fragment, useState } from 'react';
import { useEffect } from 'react';
import { Button, Modal } from 'react-bootstrap';
import { useSelector } from 'rea... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// tslint:disable-next-line:no-unused-variable
import * as React from 'react';
import styles from './sharePointComponents.module.scss';
import { FieldComponent, IFieldComponentProps, IFieldComponentState } from './FieldCo... |
import styled, { css } from 'styled-components';
import { BsPencilSquare } from 'react-icons/bs';
import {
AiOutlineCamera,
AiOutlineVideoCamera,
AiOutlineFileText,
AiOutlineProfile,
} from 'react-icons/ai';
export const Container = styled.div`
color: var(--color-gray);
.write {
display: flex;
ali... |
import { CLIENT } from "../../constants"
import { ApolloProvider } from "@apollo/client"
import Layout from "../../components/global/layout"
import SEO from "../../components/global/seo"
import { navigate } from "gatsby"
import React from "react"
import { StringParam, useQueryParam } from "use-query-params"
import Test... |
export type Opts = {
character?: string
classname?: string
spaces?: boolean
charclassname?: string
}
function generateArrayOfNodes(target: string | NodeList): Array<Node> {
if (typeof target === 'string') {
return [...document.querySelectorAll(target)]
} else if ('length' in target) {
return [...ta... |
import * as React from 'react';
import { Avatar, AvatarProps } from './index';
export const Color = (props: Partial<AvatarProps>) => (
<>
<Avatar {...props} color="darkRed" />
<Avatar {...props} color="cranberry" />
<Avatar {...props} color="red" />
<Avatar {...props} color="pumpkin" />
<Avatar {... |
import { nextTick } from "vue";
import {
createRouter,
createWebHistory,
RouteRecordRaw,
RouterScrollBehavior,
NavigationGuard,
} from "vue-router";
import { startCase, clone } from "lodash";
import { hideAll } from "tippy.js";
import PageHome from "@/views/PageHome.vue";
import PageExplore from "@/views/expl... |
import moment from 'moment';
import React, { memo, useMemo, useState } from 'react'
import {
clampWrapInclusive,
WeekScheduler,
EventDetails,
Events,
Hours,
ClosedDaysTimes,
EventContentProps
} from 'react-week-schedulr';
interface SchedulerProps {
dynamicEvents: Events;
onChangeDyn... |
import Jimp from 'jimp';
export default (image: Jimp) => {
const { width, height } = image.bitmap;
let isScanning = true;
const pixels = [];
let x = 0;
let y = 0;
while (isScanning) {
const { r, g, b, a } = Jimp.intToRGBA(image.getPixelColor(x, y));
pixels.push([r, g, b, x, y, a]);
if (x === width - 1) {
... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'mattroberts';
} |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LoginComponent } from './login/login.component';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { MatMenuModule } from '@angular/material/menu';
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
EndpointsInputConfig,
EndpointsResolvedConfig,
RegionInputConfig,
RegionResolvedConfig,
resolveEndpointsConfig,
resolveRegionConfig,
} from "@aws-sdk/config-resolver";
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
import {
getHostHeaderPlugin,
HostHeaderInputConfi... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="et" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About academiccoin</source>
<translation>academiccoinist</translation>
... |
import { RemoveIssueWebhook } from "../../Interfaces";
export const removeIssue: RemoveIssueWebhook = {
action: "remove",
createdAt: "2021-01-30T11:48:48.707Z",
data: {
id: "ac36bcc2-xxxx-xxxx-xxxx-3e13107f89be",
createdAt: "2021-01-30T11:33:45.487Z",
updatedAt: "2021-01-30T11:33:45.487Z",
archiv... |
export declare type WhiteSpaceSizeType = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
export declare class WhiteSpaceComponent {
prefixCls: string;
size: WhiteSpaceSizeType;
amWhiteSpace: boolean;
get amWhitespaceXs(): boolean;
get amWhitespaceSm(): boolean;
get amWhitespaceMd(): boolean;
get amWhitesp... |
import { graphql } from 'gatsby';
import { getSrc, getImage } from 'gatsby-plugin-image';
import React from 'react';
import { Helmet } from 'react-helmet';
import { css } from '@emotion/react';
import { Footer } from '../components/Footer';
import SiteNav from '../components/header/SiteNav';
import Pagination from '.... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule } from '@ngx-translate/core';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { AlertComponent } from './alert.component';
import { AlertService } from './../service/alert.service';
describe('AlertCompon... |
export function main(){
console.log(double("Figaro"));
}
function double(a: string){
return a + a
} |
/**
* This file was automatically generated with @twilio-labs/svg-to-react
*/
import * as React from 'react';
import {UID} from 'react-uid';
import {IconWrapper, IconWrapperProps} from './helpers/IconWrapper';
export interface TemplatesIconProps extends IconWrapperProps {
title?: string;
decorative?: boolean;
}
... |
import React, { Suspense } from 'react';
import { Router, Route, Switch } from 'react-router-dom';
import DashboardLayout from '../../../layouts/Dashboard';
import Loader from '../../../components/lib/Loader';
import history from '../../../utils/history';
import routes from './routes';
const App: React.FC<Record<strin... |
import { Mutation as qna } from "resolvers/app/qna"
import { Mutation as mentoring } from "resolvers/app/mentoring"
export default {
...qna,
...mentoring
} |
import React, { FC, useState } from "react";
import AppBar from "@mui/material/AppBar";
import Box from "@mui/material/Box";
import Toolbar from "@mui/material/Toolbar";
import IconButton from "@mui/material/IconButton";
import Typography from "@mui/material/Typography";
import Menu from "@mui/material/Menu";
import Me... |
import { LitElement, html, css } from 'lit';
import { customElement, property } from 'lit/decorators.js';
@customElement('caa-card')
export class CaaCard extends LitElement {
@property({ type: Number }) selectedAs?: number;
@property({ type: String }) text: string = '';
@property({ type: String }) version: strin... |
export interface HttpTriggerConfig {
authType: string;
methods: string[];
name?: string;
qualifier?: string;
}
export interface IOssTriggerConfig {
bucketName: string;
events: string[];
filter: {
prefix: string;
suffix: string;
};
}
export declare function instanceOfHttpT... |
import { BigNumber } from '@ethersproject/bignumber';
interface TransactionData {
status: string;
message: string;
result: Transaction[];
}
interface Transaction {
blockHash: string;
blockNumber: string;
confirmations: string;
contractAddress: string;
cumulativeGasUsed: string;
from: string;
gas: ... |
import {Component, OnInit} from "@angular/core";
import {ReportingService} from "../../services/reporting.service";
import {ActivatedRoute, Router} from "@angular/router";
import "rxjs/add/operator/switchMap";
@Component({
selector: 'reporting-page',
templateUrl: './reporting-page.component.html'
})
export class R... |
/**
* (c) Phan Trung Nguyên <nguyenpl117@gmail.com>
* User: nguyenpl117
* Date: 4/20/2020
* Time: 12:57 PM
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { MssqlDialect } from './Mssql'
import { MysqlDialect } from './Mys... |
import { BigNumber } from "ethers";
import { Request, Response } from "express";
import {
ETH_PRICE_PRECISION,
RATIO_MULTIPLIER,
WBTC_PRICE_PRECISION,
ETH_USDC_OPTION_ID,
WBTC_USDC_OPTION_ID
} from "../../constants/constants";
import { PKKTHodlBoosterOption } from "../../typechain";
import {
ca... |
import {
Middleware,
SlackCommandMiddlewareArgs,
SlackActionMiddlewareArgs,
BlockAction,
} from '@slack/bolt';
export type Nullable<T> = T | null;
export type CommandMw = Middleware<SlackCommandMiddlewareArgs>;
export type ActionMw = Middleware<SlackActionMiddlewareArgs<BlockAction>>; |
import {CategorizedClassDoc} from './dgeni-definitions';
import {
ArrayLiteralExpression,
CallExpression,
ObjectLiteralExpression,
PropertyAssignment,
StringLiteral, SyntaxKind
} from 'typescript';
/**
* Determines the component or directive metadata from the specified Dgeni class doc. The resolved
* direc... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
i... |
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
export const Title: React.FC = ({ children }) => (
<section className="border-b bg-marp-brand text-white py-3">
<h1 className="text-3xl font-bold text-center font-rounded uppercase">
{children}
<style jsx>{`
& :global(a),
& :global(a:hover),
& :global(a:hover:active) {
... |
import {
DIR,
GraphMode,
GraphStats,
NextArray,
MinAdjacencyListArray,
MinAdjacencyListDict,
} from "../interfaces";
import { IBaseNode, BaseNode } from "./BaseNode";
import { BaseEdgeConfig, IBaseEdge, BaseEdge } from "./BaseEdge";
import { prepareBFSStandardConfig, BFS, BFS_Scope } from "@/traversal/BFS";... |
import { AnyKeyProps } from '../types/AnyKeyProps'
import zhCN from './zh_cn'
import enUS from './en_US'
import jaJP from './ja_JP'
export let activeLang = localStorage.getItem('AMIYA_LOCALE') || 'zh_CN'
let langMap: AnyKeyProps = {
zh_CN: zhCN,
en_US: enUS,
ja_JP: jaJP
}
export const isJP = () => {
return a... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { RepositorySelector, InstigationType, InstigationStatus, RunStatus, InstigationTickStatus } from "./../../types/globalTypes";
// ====================================================
// Gr... |
export { Client } from "./client.ts";
export {
ConnectionError,
PostgresError,
TransactionError,
} from "./client/error.ts";
export { Pool } from "./pool.ts";
// TODO
// Remove the following reexports after https://doc.deno.land
// supports two level depth exports
export type {
ClientOptions,
ConnectionOptio... |
import React, { useContext } from "react";
import { Approval } from "../../interfaces/approval";
import { diemAmountToHumanFriendly } from "../../utils/amount-precision";
import { settingsContext } from "../../contexts/app";
import { useTranslation } from "react-i18next";
interface RequestDetailsProps {
approval: Ap... |
import { get } from 'lodash';
import { i18n } from '../../../i18n';
export const toEvents = (data: any[], fieldNames: any) => {
return data?.map((item) => {
return {
id: get(item, fieldNames.id || 'id'),
title: get(item, fieldNames.title) || i18n.t('Untitle'),
start: new Date(get(item, fieldNam... |
import { PrivateKeyFactory } from "../private-key.factory";
import { AlgorithmKind } from "../algorithm-kind";
import { fingerprint } from "../fingerprint";
const factory = new PrivateKeyFactory();
test("secp256k1", async () => {
const privateKey = factory.fromSeed(AlgorithmKind.secp256k1, "seed");
const publicKe... |
export { APIManager } from './APIManager';
export { APIServer } from './APIServer';
export { APIClient } from './APIClient';
export { WSConfig } from './WSConfig';
export { WSResponse } from './WSResponse';
export { apiMethod } from './apiMethod';
export * from './utils/logs';
export declare function getPublicPath(): s... |
/**
* Copyright 2015 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 appli... |
import { ApiPropertyOptional } from '@nestjs/swagger'
import { Type } from 'class-transformer'
import { IsEnum, IsInt, IsOptional, Max, Min } from 'class-validator'
import { Order } from '../types'
export class PageOptionsDto {
@ApiPropertyOptional({
enum: Order,
default: Order.ASC,
})
@IsEnum(Order)
@... |
import { writable } from "svelte/store";
export const drawerVisible = writable(false); |
export interface Frontmatter {
title: string
description?: string
keywords?: string
} |
import * as _ from "ramda";
import { Board } from "../objects/Board";
import { BoardSize } from "../objects/BoardSize";
import { Coords } from "../objects/Coords";
import { GameState } from "../objects/GameState";
import { Player } from "../objects/Player";
// wee lad full of reusable functions
export class Utils {
... |
import { Component, ComponentInterface, Element, Prop } from '@stencil/core';
import { UniColor, UniSize } from '../../../../models';
import { uniSmartWrap } from '../../../../utils';
@Component({
tag: 'uni-icons-mat-f-wrap',
styleUrl: '../styles/icons-mat-fill.css',
})
export class UniIconsMatBaseWrapComponent i... |
import { app } from '../../app';
import request from 'supertest';
describe('POST /api/users/signup', () => {
it('Returns a 201 on successful signup', async () => {
return request(app)
.post('/api/users/signup')
.send({
email: 'test@test.com',
password: 'password'
})
.expe... |
/**
*
* Ce composant permet d'afficher le tableau pour les données rubrique.
*
*/
/**
* This is a doc comment for a dynamic module.
*/
import {Component, Input} from '@angular/core';
import myGlobals = require('../../../../globals');
declare var require: any;
@Component({
selector : 'componentMainArrayRubriqu... |
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
// All rights reserved. MIT License.
// This allows us to have async/await in our code. It must be loaded first.
import "babel-polyfill";
import * as dispatch from "./dispatch";
import { deno as pb } from "./msg.pb";
import * as runtime from "./runtime";
import * as uti... |
import type { CarbonTheme } from 'carbon/theme/utils.js';
import { LS_THEME_KEY } from 'carbon/theme/utils.js';
import type { ReactiveControllerHost, TemplateResult } from 'lit';
import { html, ReactiveController } from 'lit';
export class ThemeController implements ReactiveController {
host: ReactiveControllerHost ... |
import { _PolicyDescriptorType } from "./_PolicyDescriptorType";
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* AssumeRoleWithSAMLInput shape
*/
export interface AssumeRoleWithSAMLInput {
/**
* <p>The Amazon Resource Name (ARN) of... |
///
/// Copyright © 2016-2020 The Thingsboard 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... |
import card from './Character_Bennett_Card.jpg'
import thumb from './Character_Bennett_Thumb.png'
import c1 from './Constellation_Grand_Expectation.png'
import c2 from './Constellation_Impasse_Conqueror.png'
import c3 from './Constellation_Unstoppable_Fervor.png'
import c4 from './Constellation_Unexpected_Odyssey.png'
... |
import { Injectable, EventEmitter } from '@angular/core';
import { Ng4LoadingSpinnerService } from 'ng4-loading-spinner';
@Injectable()
export class SpinnerService {
public spinnerActive: EventEmitter<Boolean>;
constructor(
private spinnerService: Ng4LoadingSpinnerService
) {
this.spinnerActive = new Eve... |
import React, { PureComponent } from 'react';
import { TableProps, TableState } from '../../interfaces/components/tables/Table';
import _ from 'lodash';
import classNames from 'classnames';
import TableHeader from './TableHeader';
import TableRow from './TableRow';
class Table extends PureComponent<TableProps, TableSt... |
// Type definitions for PDF.js v0.1.0
// Project: https://github.com/mozilla/pdf.js
// Definitions by: Josh Baldwin <https://github.com/jbaldwin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/*
Copyright (c) 2013 Josh Baldwin https://github.com/jbaldwin/pdf.d.ts
Permission is hereby granted, fre... |
import { settings } from "./../settings";
function compareVersions(a: any, b: any) {
const regExStrip0: RegExp = /(\.0+)+$/;
const segmentsA: string[] = a.replace(regExStrip0, "").split(".");
const segmentsB: string[] = b.replace(regExStrip0, "").split(".");
const len: number = Math.min(segmentsA.length, segmen... |
export type NewUserRequestData = {
username: string;
email: string;
password: string;
};
export type NewUserResponseData = {
id?: string;
username: boolean;
email: boolean;
password: boolean;
};
export type PasswordResetData = {
id: string;
password: string;
currentPassword?: string;
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.