text stringlengths 10 953k |
|---|
import { Display } from 'rot-js';
const gameDisplay = new Display({ width: 60, height: 60, forceSquareRatio: true, fontSize: 13 });
const messageDisplay = new Display({ width: 80, height: 60, fontSize: 13});
const gameContainer = gameDisplay.getContainer()!;
const messageContainer = messageDisplay.getContainer()!;
... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
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, modi... |
/**
* https://demo.thi.ng/umbrella/hiccup-carbon-icons/#CATEGORY_AND
*/
// prettier-ignore
export const CATEGORY_AND: any[] =
["svg", { viewBox: "0 0 32 32" },
["path", { d: "M4 30v-4h11v4h2v-4h11v4h2v-4a2 2 0 00-2-2H17v-5h-2v5H4a2 2 0 00-2 2v4zM20.695 13.986A10.08 10.08 0 0021.946 10H23V8h-3v1a9.263 9.26... |
import { useHistory } from 'react-router-dom'
import { useAuth } from '../hooks/useAuth'
import '../styles/login.scss'
export function Login() {
const history = useHistory();
const { user, signInWithEmail } = useAuth();
if(user){
// history.push('/homemotorista')
if (user?.name === "Motorista") {
... |
export class MenuOptions {
search:boolean = false
} |
import type { AnyEnv } from '@morphic-ts/common/lib/config'
import { memo } from '@morphic-ts/common/lib/utils'
import type { ModelAlgebraTaggedUnions } from '@morphic-ts/model-algebras/lib/tagged-unions'
import { pipe } from 'fp-ts/pipeable'
import { toArray } from 'fp-ts/Record'
import { chainEitherK as SEchainEither... |
import * as React from 'react'
import { CreatedTheme } from '../themes/createTheme'
import { ThemeContext } from '../themes/ThemeProvider'
const Consumer = ThemeContext.Consumer
export interface InjectedProps {
theme: CreatedTheme
}
export const withTheme = <OriginalProps extends {}>(
WrappedComponent: React.Co... |
// Type definitions for strip-json-comments
// Project: https://github.com/sindresorhus/strip-json-comments
// Definitions by: Dylan R. E. Moonfire <https://github.com/dmoonfire/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as stripJsonComments from "strip-json-comments";
const json = ... |
const content1 = `--------------------------366796e1c748a2fb\r\nContent-Disposition: form-data; name="payload"\r\nContent-Type: text/plain\r\n\r\nCONTENT\r\n--------------------------366796e1c748a2fb--`;
const boundary1 = "------------------------366796e1c748a2fb";
export { content1 as content };
export { boundary1 as ... |
// tslint:disable:no-empty
import { PageWithSimpleHeader } from "lib/Components/PageWithSimpleHeader"
import { SwitchMenu } from "lib/Components/SwitchMenu"
import { defaultEnvironment } from "lib/relay/createEnvironment"
import { renderWithPlaceholder } from "lib/utils/renderWithPlaceholder"
import useAppState from "l... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeLandingComponent } from './components/home-landing/home-landing.component';
import { HomeRoutingComponent } from './components/home-routing/home-routing.component';
import { CommonModule } from '@angular/commo... |
import express, { Express } from 'express';
import bodyParser from 'body-parser';
import router from './router';
const app: Express = express();
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use('/api', router);
const server = app.listen(3000, () => {
console.log('Magic happen... |
export * from './MainEngine';
export * from './types'; |
<TS language="ja_JP" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>編集するためにアドレスもしくはラベルを右クリックします</translation>
</message>
<message>
<source>Create a new address</source>
<translation>新しいアドレ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import {
IInteractiveWindowMapping,
InteractiveWindowMessages
} from '../../../client/datascience/interactive-common/interactiveWindowTypes';
import { IJupyterVariable, IJupyterVariablesRequest } from ... |
import React from "react"
import Button from "@material-ui/core/Button"
import Typography from "@material-ui/core/Typography"
import { Box, VerticalLayout } from "./Layout/Box"
// tslint:disable-next-line
const pkg = require("../../package.json")
const buttonLabels = ["Oh no", "Drats!", "Nevermind", "Let's try this a... |
/// <reference path="../../../typings/index.d.ts"/>
import { promises as fs } from 'fs'
import path from 'path'
import readProjectManifest, { tryReadProjectManifest } from '@pnpm/read-project-manifest'
import tempy from 'tempy'
const fixtures = path.join(__dirname, '../fixtures')
test('readProjectManifest()', async (... |
declare const styles: {
readonly "ChessboardTable": string;
readonly "ChessboardTd": string;
};
export = styles; |
import {combineReducers, ReducersMapObject} from 'redux'
/**
* @ignore
*/
export type MycorizaState<T> = {
} & T
/**
* @ignore
* Generates a mycoriza generated state empowered redux state.
*
* @param reducers
*/
export function mycorizaState<T>(reducers: ReducersMapObject<T>) {
return combineReducers< Myc... |
import * as React from 'react';
import { StyledLabel } from './styled';
interface ILabel {
label: string;
}
const Label: React.FC<ILabel> = ({ label }) => (
<StyledLabel label={label} size="small" variant="outlined" color="error" />
);
export default Label; |
/*
* @adonisjs/application
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/// <reference path="../adonis-typings/application.ts" />
import {
RcFile,
SemverNode,
PreloadNode,
App... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About icebergcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location li... |
/* GENERATED FILE */
import * as React from "react";
import Svg, { Rect } from "react-native-svg";
import { IconProps } from '../lib'
function Stop(props: IconProps) {
return <Svg viewBox="0 0 256 256" width={props.size} height={props.size}
fill={props.color} {...props}><Rect width={256} height={256} fill="none" />... |
/**
* https://demo.thi.ng/umbrella/hiccup-carbon-icons/#FACE_SATISFIED
*/
// prettier-ignore
export const FACE_SATISFIED: any[] =
["svg", { viewBox: "0 0 32 32" },
["path", { d: "M16 2a14 14 0 1014 14A14 14 0 0016 2zm0 26a12 12 0 1112-12 12 12 0 01-12 12z" }],
["path", { d: "M11.5 11a2.5 2.5 0 102... |
import React, { useCallback, useEffect, useState } from 'react'
import { gql, useMutation } from '@apollo/client'
import classNames from 'classnames'
import { RouteComponentProps } from 'react-router'
import { ErrorAlert } from '@sourcegraph/branded/src/components/alerts'
import { Form } from '@sourcegraph/branded/sr... |
import { ClusterDetailsValues } from '../../../common/components/clusterWizard/types';
import { NetworkConfigurationValues } from '../../../common/types/clusters';
import {
AgentK8sResource,
ClusterDeploymentK8sResource,
AgentClusterInstallK8sResource,
InfraEnvK8sResource,
SecretK8sResource,
ConfigMapK8sRes... |
import {
AfterViewInit,
Component,
EventEmitter,
Injector,
Input,
Output,
} from "@angular/core";
import * as rx from "rxjs";
import {
distinctUntilChanged,
distinctUntilKeyChanged,
tap,
} from "rxjs/operators";
import * as prt from "../../kaart/kaart-protocol";
import { KaartLoadingUISelector } from... |
import { RefObject, useCallback } from 'react';
import { useHistory } from 'react-router-dom';
import DocumentModel from '../model/document/document-model';
import LocalSettings from '../model/local/local-settings';
import useLogger from './useLogger';
/**
* A hook that manages a function to save local settings, base... |
import React from 'react';
import ReactMarkdown from 'react-markdown';
import { getClassName } from '@kibalabs/core';
import { Box, PrettyText, TextAlignment, Media } from '..';
interface IMarkdownProps {
id?: string;
className?: string;
source: string;
rootBoxVariant?: string;
}
export const Markdown = (pro... |
/*
Copyright 2015 - 2021 The Matrix.org Foundation C.I.C.
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... |
import * as React from 'react'
import shortid from 'shortid'
// Import interface
import { BudgetItemAddInterface } from './../interfaces'
const BudgetItemAdd = (props: BudgetItemAddInterface) => {
// Prepare BudgetItemAdd states
const [date, setDate] = React.useState('')
const [title, setTitle] = React.useState... |
import { PatternUseCase } from "../PatternUseCase";
import { Client } from "./Client";
import { ConcreteFactoryFamilyA } from "./ConcreteFactoryFamilyA";
import { ConcreteFactoryFamilyB } from "./ConcreteFactoryFamilyB";
import { AbstractFactory } from "./AbstractFactory";
export default class UseCase extends Pattern... |
import { Entity } from "./entity"
import { Vector2 } from "./Vector2"
import { SpriteRenderer } from "./SpriteRenderer"
import { removeEnemy, addEnemy } from "./main"
import { worldHeight } from "./world"
import { drawWrappedAroundBottom } from "./enemy"
import { TextureAtlas } from "./TextureAtlas"
import { FlyingPar... |
import { selectTabItems } from '..';
import { tabItemDomainStateConfig } from './tab-item.state';
const defSelectors = { ...tabItemDomainStateConfig.getSelectors(selectTabItems) };
export const tabItemSelectors = {
...defSelectors,
}; |
import * as React from "react";
import { IEmojiProps } from "../../styled";
const SvgPlantOther11 = (props: IEmojiProps) => (
<svg viewBox="0 0 72 72" width="1em" height="1em" {...props}>
<path
fill="#b1cc33"
d="M28.919 27.91c8.152-6.829 20.773-4.925 20.773-4.925s-.6 12.836-8.624 19.455-20.774 4.925-... |
export interface CarouselProps {
children: React.ReactNode
renderCustomArrow?: ({
direction,
ref,
onClick,
}: CustomArrowProps) => JSX.Element
slidesPerPageSettings?: SlidesPerPageSettings
slideWidth?: number
onScrollStart?: (index: number) => void
onScrollEnd?: (index: number) => void
onSli... |
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
// `.env.ts` is generated by the `npm run env` command
import env from './.env';
export const en... |
import { observer } from 'mobx-react-lite'
import { Typography } from '@supabase/ui'
import { useStore } from 'hooks'
import { ExampleProject, ClientLibrary } from 'components/interfaces/Home'
import { CLIENT_LIBRARIES, EXAMPLE_PROJECTS } from 'components/interfaces/Home/Home.constants'
import { IS_PLATFORM } from 'lib... |
export { RadioButton } from './RadioButton'
export type { Props } from './RadioButton' |
import { NgModule } from '@angular/core';
import { NewFamilyWizardComponent } from './new-family-wizard.component';
import { IonicModule } from '@ionic/angular';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { WizardModule } from '@sneat/wizard';
@NgModule({
impo... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Licensed to Ela... |
<TS language="ne" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>ठेगाना वा लेबल सम्पादन गर्न दायाँ-क्लिक गर्नुहोस्</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { Observable } from 'rxjs';
import { Try } from 'javascriptutilities';
import { DispatchReducer, ReduxStore as Store } from 'reactive-rx-redux-js';
import { Data } from 'react-base-utilities-js';
import { InputCell, InputForm } from 'react-basic-input-components';
import { ErrorDisplay } from 'react-error-displa... |
export class FeuilleCaisseSecondaire {
id: string;
libelle: string;
date: string;
montant: string;
mode: string;
facture: string;
cheque: string;
banque: string;
echeance: string;
observation: string;
client: string;
tire: string;
sens: string;
datVer: string;
... |
import * as React from "react";
import { ISvgIconProps } from "../util/react/SvgIcon";
export interface IPaginationLastIconProps extends ISvgIconProps {
}
export declare class PaginationLastIcon extends React.Component<IPaginationLastIconProps> {
render(): JSX.Element;
}
//# sourceMappingURL=PaginationLastIcon.d.ts... |
import { useWallet, WalletStatus } from '@terra-money/wallet-provider';
import React from 'react';
export function ConnectSample() {
const {
status,
network,
wallets,
availableConnectTypes,
availableInstallTypes,
availableConnections,
availableInstallations,
supportFeatures,
conne... |
import { getMongoRepository, MongoRepository } from 'typeorm';
import IPostsRepository from '@modules/posts/repositories/IPostsRepository';
import ICreatePostDTO from '@modules/posts/dtos/ICreatePostDTO';
import { ObjectID } from 'mongodb';
import IUpdatePostDTO from '@modules/posts/dtos/IUpdatePostDTO';
import Post fr... |
import { RequestInit, Response } from 'node-fetch';
import { ClientCookie } from './ClientCookie';
import { ClientInfo } from './ClientInfo';
export abstract class AbstractHandler {
abstract handle(
clientInfo: ClientInfo,
clientCookie: ClientCookie,
response: Response,
resource: string,
init: Re... |
#!/usr/bin/env node
import createModularApp from './cli';
import mri from 'mri';
const argv = mri(process.argv.slice(2));
try {
void createModularApp(argv);
} catch (err) {
console.error(err);
} |
import { Test } from 'nodeunit';
import * as sinon from 'sinon';
import { FARGATE_PROFILE_RESOURCE_TYPE } from '../lib/cluster-resource-handler/consts';
import { FargateProfileResourceHandler } from '../lib/cluster-resource-handler/fargate';
export = {
create: {
async 'calls createFargateProfile with a generated... |
import { html } from '@lion/core';
export const multiStepStyles = html`
<style>
.psdk-vertical-step {
position: relative;
margin-left: 0.4375rem;
display: flex;
flex-direction: column;
}
.psdk-vertical-assignment {
padding-left: 2rem;
}
/* makes the line between... |
import { MessageConnection, createMessageConnection, Logger } from 'vscode-jsonrpc';
import { Channel } from './channel-protocol';
import { ChannelMessageReader } from './reader';
import { ChannelMessageWriter } from './writer';
import { Component } from '@malagu/core';
export const ConnnectionFactory = Symbol('Connne... |
import { WithStyle } from '@medly-components/utils';
import React, { FC } from 'react';
import AddCommentIconSvg from '../../assets/Editor/add_comment_24px_rounded.svg';
import SvgIcon, { SvgIconProps } from '../../SvgIcon';
const AddCommentIcon: FC<SvgIconProps> & WithStyle = React.memo(props => {
const { size, w... |
/* Released under the BSD 2-Clause License
*
* Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistrib... |
import type { IError } from '@interfaces/common';
export class HttpError extends Error implements IError {
public status: number;
public message: string;
constructor(status: number, message: string) {
super(message);
this.status = status;
this.message = message;
}
}
export class BadRequestError e... |
import * as vscode from 'vscode'
import type ws from 'ws'
import * as path from 'path'
import * as cs from 'cross-spawn'
import type {Extension} from '../main'
import type {SyncTeXRecordForward} from './locator'
import {openWebviewPanel} from '../utils/webview'
import type {ClientRequest, ServerResponse, PanelRequest... |
import type { FileSystemDriver, FileSystemNode } from './index';
export class HTTPFS implements FileSystemDriver {
#root: string;
constructor(root: string) {
this.#root = root;
}
async resolveUri(path: string[]): Promise<string> {
const url = new URL(path.join('/'), this.#root);
url.hash = '';
... |
import { StyleSheet } from "react-native";
import {
HEADER_HEIGHT,
SIZE_REF_8,
WINDOW_HEIGHT,
WINDOW_WIDTH,
} from "./constants";
export const globalColors = StyleSheet.create({
screenColor: {
backgroundColor: "#FDFDFD",
},
shutterHeaderColor: {
backgroundColor: "#FDFDFD",
borderTopColor: "#D... |
import {
Component,
Input,
OnInit,
EventEmitter,
Output,
AfterViewInit,
AfterContentInit,
Renderer,
ElementRef,
} from "@angular/core";
import {FormGroup,FormControl,Validators} from "@angular/forms";
@Component({
templateUrl: "./domain-edit.component.html",
styleUrls: [
... |
// This file contains the action of the Redux Store
import { Injectable } from '@angular/core';
import { Action } from '@ngrx/store';
import { ToDoItem } from '../models/todo.model';
// This are the string constants of the actions
export const ADD_TODO = '[Todo] ADD_TODO';
export const REMOVE_TODO = '[Todo] REMOVE_TOD... |
import { feast } from './feast';
test('basic test', () => {
expect(feast("great blue heron", "garlic naan")).toStrictEqual(true);
expect(feast("brown bear", "bear claw")).toStrictEqual(false)
}) |
export interface BaseConfigOptions {
/**
* If specified, the class will operate on a nested object within the config
* file navigated to by this path prefix, an array of object path keys.
*
* For example, to operate on `c` object within `{ a: { b: { c: {} } } }`,
* use `pathPrefix` of `['a'... |
/*
* 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... |
export enum LayoutType {
Leader = 'leader',
Tile = 'tile',
} |
import { compareErrors, FileWithLineNumbers } from '../src/compareErrors'
import { ErrorTs } from '../src/main'
import { outputBaseBranch } from './test_compare_1/outputBaseBranch'
import { errorsCurrentBranch } from './test_compare_1/errorsCurrentBranch'
import { errorsBaseBranch } from './test_compare_1/erreursBaseBr... |
import { Component, OnInit } from '@angular/core';
import { PatientService } from '@app/_services/patient.service'
@Component({
selector: 'app-search',
templateUrl: './search.component.html',
styles: []
})
export class SearchComponent implements OnInit {
private patients;
constructor(private patientServic... |
import { BrowserHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>The request to get a distribution's information.</p>
*/
export interface GetDistributionInput {
/**
* <p>The distribution's ID. If the ID is empty, an empty distribution configurat... |
import AppError from '@shared/errors/AppError';
import FakeAppointmentsRepository from '@modules/appointments/repositories/fakes/FakeAppointmentsRepository';
import FakeNotificationsRepository from '@modules/notifications/repositories/fakes/FakeNotificationsRepository';
import FakeCacheProvider from '@shared/container... |
import {default as chalk} from 'chalk';
export class Out {
private prefix: string;
constructor(){
this.prefix = "";
}
group(name = ""): void {
this.log(chalk.bold(name));
this.indent(" | ");
}
groupEnd(): void {
this.outdent(3);
this.log("-");
}
private indent(str: string): void... |
import React, { forwardRef } from 'react'
import { Sankey, SankeyOptions } from '@antv/g2plot'
import BaseChart, { BaseChartProps } from '../../components/base'
export type SankeyChartProps = Omit<
BaseChartProps<SankeyOptions>,
'chart' | 'data'
> &
SankeyOptions
const SankeyChart = forwardRef<HTMLDivElement | ... |
export default class TelemetryEvent {
private startTimestamp;
protected event: any;
eventId: string;
constructor(eventName: string, correlationId: string);
private setElapsedTime;
stop(): void;
telemetryCorrelationId: string;
readonly eventName: string;
get(): object;
} |
// fontawesome/svgs/brands/reddit-alien.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgRedditAlien = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<!--! Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/licen... |
import Joi from 'joi';
import { PackCommandConfig, PackConfig } from '../models';
import { commandConfigSchema } from './command';
const packCommandConfigSchema = commandConfigSchema.append<PackCommandConfig>({
src: Joi.string().required(),
dst: Joi.string().required(),
devPostfix: Joi.string().required(),
p... |
import { Context, EggAppConfig } from "egg";
import { verify } from "jsonwebtoken";
export const extractToken = (
ctx: Context,
config: EggAppConfig
): { githubId: string; email: string } => {
const token = ctx.cookies.get("tle_app_token", { signed: false });
try {
const res = verify(token, config.passport... |
import GameItem from './GameItem.js';
import Game from './Game.js';
export default class Virus extends GameItem {
private type: string;
/**
* Initialize the Virus
*
* @param type type of the Virus
* @param canvasWidth width of the canvas
* @param canvasHeight heighst of the canvas
*/
public co... |
import { Component, OnInit } from '@angular/core';
import { PersonalDataService } from 'app/services/personal-data.service';
import { RestService} from 'app/service/rest.service';
import { TutoriaConstants } from 'app/constants/constants';
import { FormGroup } from '@angular/forms';
import { ToastrService } from 'ngx-t... |
import Link from 'next/link'
import styles from '@styles/table.module.css'
import { PAGE_LINKS } from '@utils/settings'
import { useRouter } from 'next/router'
const LinksTable = () => {
const { pathname } = useRouter()
return (
<table className={styles.table}>
<thead>
<tr className={styles.heade... |
import {
Tokenizer,
TokenType,
EmojiMatch,
HyperlinkMatch,
} from '../../src/lib/text-token-parser'
import { GitHubRepository } from '../../src/models/github-repository'
import { Repository } from '../../src/models/repository'
const emoji = new Map<string, string>([[':shipit:', '/some/path.png']])
describe('T... |
/// <amd-module name="Router/_Builder/_Bootstrap/DataAggregators/Monitoring" />
import * as AppEnv from 'Application/Env';
import { Head as AppHead } from 'Application/Page';
import { IDataAggregatorModule, ICollectedDeps, IRenderOptions, IFullData } from 'Router/_Builder/_Bootstrap/Interface';
/**
* Скрипты монитор... |
import {
spawn,
ChildProcessWithoutNullStreams,
execFile as ex,
} from "child_process";
import util from "util";
import fs from "fs";
// This tracks all the processes that we spawn from this file.
// Used to clean up processes when exiting this program.
const p: { [key: string]: ChildProcessWithoutNullStreams } = {... |
import { resolve } from 'path'
import * as dotenv from 'dotenv'
import { readFileSync } from 'fs'
import { Injectable, Logger } from '@nestjs/common'
@Injectable()
export class ConfigService {
private readonly logger = new Logger(ConfigService.name)
private envPath: any
private readonly nodeEnv: string = proces... |
import React, { useEffect } from "react";
import { Footer } from "components/footer";
import { Navbar } from "components/navbar";
import { InnerPageContainer, PageContainer } from "components/pageContainer";
import { hot } from "react-hot-loader/root";
import styled from "styles/styled-components";
import { screenSizes... |
export class UnprocessedRequest {
// eslint-disable-next-line no-useless-constructor
constructor(public uniqueKey: string, public url: string, public method?: string) {}
} |
/*
* Copyright 2020 IBM 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 agreed to ... |
import {TypeOrmModuleOptions} from '@nestjs/typeorm';
import * as config from 'config';
const dbConfig = config.get('db');
export const typeOrmConfig: TypeOrmModuleOptions = {
type: dbConfig.type,
host: process.env.RDS_HOSTNAME || dbConfig.host,
port: process.env.RDS_PORT || dbConfig.port,
username: process.e... |
import { IsString, IsNotEmpty, IsEmail, Length } from 'class-validator';
import { PartialType, ApiProperty } from '@nestjs/swagger';
export class CreateUserDto {
@IsString()
@IsEmail()
@ApiProperty({ description: 'the email of user' })
readonly email: string;
@IsString()
@IsNotEmpty()
@Length(6)
reado... |
import React from "react";
import { Text, StyleSheet } from "react-native";
import { RectButton, RectButtonProps } from "react-native-gesture-handler";
import { SvgFromUri } from "react-native-svg";
import colors from "../styles/colors";
import fonts from "../styles/fonts";
interface PlantCardPrimaryProps extends Re... |
import { Transactions, Utils } from "@blockpool-io/crypto";
import ByteBuffer from "bytebuffer";
import { MagistrateTransactionGroup, MagistrateTransactionStaticFees, MagistrateTransactionType } from "../enums";
import { IBusinessRegistrationAsset } from "../interfaces";
import { businessSchema } from "./utils/business... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DashboardComponent } from './dashboard.component';
import { HeroesComponent } from './heroes.component';
import { HeroDetailComponent } from './hero-detail.component';
const routes: Routes = [
{ path: '', red... |
export declare function initTimezone(): void;
export declare function getZoneAbbr(isUTC: boolean): "" | "UTC";
export declare function getZoneName(isUTC: boolean): "" | "Coordinated Universal Time"; |
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
/* eslint-disable global-require */
// ICONS
const iconMap: { [index: string]: string } = {
account: require('../svg-icons/account.svg').toString(),
'add-circle': require('../svg-icons/add-circle.svg').toString(),
close... |
'use strict';
export abstract class PluginsDataService {
abstract listConfigurationItems(configKey: string): Promise<Array<string>>;
abstract addConfigurationItem(configKey: string, value: string): Promise<void>;
abstract on(event: string | symbol, listener: (...args: any[]) => void): this;
abstract re... |
import type { HelixEventSubSubscription } from '@twurple/api';
import { rtfm } from '@twurple/common';
import type { EventSubChannelPollBeginEventData } from '../events/EventSubChannelPollBeginEvent';
import { EventSubChannelPollBeginEvent } from '../events/EventSubChannelPollBeginEvent';
import type { EventSubBase } f... |
import { Injectable } from '@angular/core';
import {
LoadingIndicator,
OptionsCommon,
Mode
} from '@nstudio/nativescript-loading-indicator';
@Injectable()
export class LoadingIndicatorService {
private loadingIndicator: LoadingIndicator;
constructor() {
this.loadingIndicator = new LoadingI... |
export { Headset16 as default } from "../../"; |
import express from 'express';
import path from 'path';
import bodyParser from 'body-parser';
import http from 'http';
import os from 'os';
import helmet from 'helmet';
import cookieParser from 'cookie-parser';
import L from './logger';
import { RegisterRoutes } from '../routes';
import swaggerUi from 'swagger-ui-expre... |
import React, { Ref } from 'react'
import {
Sdp,
Html5VideoPipeline,
Html5CanvasPipeline,
HttpMsePipeline,
TransformationMatrix,
Rtcp,
} from 'media-stream-library'
import debug from 'debug'
import { WsRtspVideo } from './WsRtspVideo'
import { WsRtspCanvas } from './WsRtspCanvas'
import { StillImage } from... |
/**
* @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 * as chars from '../chars';
import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '../ml_parser/inte... |
import THREE from 'three';
import { MeshLine, MeshLineMaterial } from 'meshline';
import BaseMesh from '../base-mesh';
// Simple 2-dimensional point
type Point = { x: number, y: number };
// Blueprint for application communication
type Tile = {
startPoint: Point, endPoint: Point, positionZ: number, requestsCache: n... |
/* GENERATED FILE */
import { useContext } from "solid-js";
import { IconContext, IconProps } from "../lib";
const renderPathFor = (weight: string, color: string) => {
switch (weight) {
case "bold":
return (
<>
<line x1="127.99219" y1="48.00288" x2="127.99219" y2="124.00288" fill="none"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.