text stringlengths 10 953k |
|---|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
<name>ConfigDialog</name>
<message>
<location filename="config_dialog.ui" line="32"/>
<source>Mozc Settings</source>
<translation></translation>
</message>
<message>
<location filename="conf... |
import {Component, OnInit, Output, ViewChild} from '@angular/core';
import {_HttpClient, MenuService, ModalHelper} from '@delon/theme';
import {STChange, STColumn, STComponent, STPage} from '@delon/abc';
import { SFSchema } from '@delon/form';
import {CentrifugalElectricitychillerDetailViewComponent} from './view/view.... |
/*
* 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 { schema, TypeOf } from '@kbn/config-schema';
import {
IRouter,
Re... |
import 'rxjs/add/operator/mergeMap'; |
import {Store} from './store';
export const Spielegrotte: Store = {
currency: '€',
labels: {
inStock: [
{
container:
'html > body > table > tbody > tr > td > div > table > tbody > tr > td > center > table > tbody > tr > td > a.klein > img',
text: [''],
},
],
maxPri... |
import config from 'config'
import { MigrationInterface, QueryRunner } from 'typeorm'
import { getParticiple, PostgreSQLConfig } from '../clients/db/orm'
import { BlockType } from '../types/block'
export class TextSearchIndexing1623219476808 implements MigrationInterface {
private readonly searchIndexName = 'block_s... |
import React, { useEffect, useState } from 'react'
import { Form, Input, Button, Select, Divider, Switch, Row, Col, Radio, message } from 'antd';
import { useMutation, useQuery } from '@apollo/client';
import BrowserFrame from "react-browser-frame";
import { TwitterPicker } from 'react-color';
import Widget from 'mouf... |
import * as PropTypes from 'prop-types';
import { OperationVariables } from '../../core';
import { QueryComponentOptions } from './types';
import { useQuery } from '../hooks';
export function Query<TData = any, TVariables = OperationVariables>(
props: QueryComponentOptions<TData, TVariables>
) {
const { children,... |
import {CLIError} from '@oclif/errors'
import {Arg} from './args'
import {
InvalidArgsSpecError,
RequiredArgsError,
RequiredFlagError,
UnexpectedArgsError,
} from './errors'
import {ParserInput, ParserOutput} from './parse'
import {IFlag} from './flags'
export function validate(parse: {
input: ParserInput;
... |
import { Component,Input} from '@angular/core';
import { Http } from '@angular/http';
import { NavController } from 'ionic-angular';
import { CartPage } from "../../pages/cart/cart";
import { Storage } from '@ionic/storage';
import { CartProductsService } from "../../Services/cartProducts.sevice";
@Component({
selec... |
import * as React from 'react';
interface IAttributeCollection {
[name: string]: unknown;
}
type Locale = Record<string, string>;
const createElementRef = React.createElement;
export class Translate {
private readonly _skip = new Set<string>();
private readonly _map = new Map<string, string>();
g... |
import { HttpClient, HttpStatusCode } from '@/data/protocols/http'
import { LoadInvoices } from '@/domain/usecases'
import { ServerError, UnauthorizedError } from '@/presentation/errors'
export class RemoteLoadInvoices implements LoadInvoices {
constructor (
private readonly url: string,
private readonly htt... |
import React, { ReactElement } from 'react';
import type { PagerViewProps } from './types';
/**
* Container that allows to flip left and right between child views. Each
* child view of the `PagerView` will be treated as a separate page
* and will be stretched to fill the `PagerView`.
*
* It is important all childr... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr_CA" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About INVEST</source>
<translation>Au sujet de INVEST</translation>
</message>
<message>
<... |
import { TSESTree, ASTUtils } from '@typescript-eslint/experimental-utils';
import { PRESENCE_MATCHERS, ABSENCE_MATCHERS } from '../utils';
import { findClosestCallNode, isMemberExpression } from '../node-utils';
import { createTestingLibraryRule } from '../create-testing-library-rule';
export const RULE_NAME = 'pref... |
import { _DistributionConfig } from "./_DistributionConfig";
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>The request to create a new distribution.</p>
*/
export interface CreateDistributionInput {
/**
* <p>The distribution's co... |
import * as ts from 'typescript';
import {
chain,
noop,
Rule,
SchematicContext,
Tree,
} from '@angular-devkit/schematics';
import { join } from '@angular-devkit/core';
import { addDepsToPackageJson, insert } from '@nrwl/workspace';
import { addInitialRoutes } from '../../../utils/ast-utils';
import { Normaliz... |
import { DetectedError, ErrorMapper } from './types';
import { V1Deployment } from '@kubernetes/client-node';
import { detectErrorsInObjects } from './common';
/*
* Copyright 2020 Spotify AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... |
/*
* 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 ... |
import React, { useEffect, useState } from 'react';
import VerticalBarChart, {
VerticalBarChartEntry,
} from '../../BarChart/VerticalBarChart/VerticalBarChart.component';
import styles from './VerticalChartFilter.component.scss';
import RangeFilter from '../../RangeFilter/RangeFilter.component';
import TooltipContent ... |
import Auth, { CognitoUser } from '@aws-amplify/auth';
import { ActionContext, Store } from 'vuex';
import { IState } from '.';
import { IRegistrationState } from './register';
import { User } from './register';
Auth.configure({
identityPoolId: process.env.identityPoolId,
region: process.env.region,
userPoolId: ... |
import { IGridSelection, IGridSelectionProps } from './types';
import { IGridInnerColumn } from './Grid';
function setRowSpan<Data>(
column: IGridInnerColumn<Data>,
rows: Array<Array<IGridInnerColumn<Data>>>,
currentRow: number
) {
const rowSpan = rows.length - currentRow;
if (
column &&
!column.chil... |
import {
BaseEntity,
CreateDateColumn,
UpdateDateColumn,
Column,
PrimaryGeneratedColumn
} from 'typeorm';
export abstract class AbstractEntity extends BaseEntity {
@PrimaryGeneratedColumn('uuid')
id: string;
@CreateDateColumn()
createdAt: Date;
@UpdateDateColumn()
updatedAt: Date;
@Column({
... |
import {ServerSide} from "../../../shared/module/moduleServer";
import {registerServer} from "./server";
const output: ServerSide = {
register: registerServer,
priority: 1256,
identifier: "microsoft-auth"
};
export default output; |
import { AbstractResponse } from '../../AbstractResponse';
/**
* Class that represents a response from a Get Hashtag Id request.
* Technically the request will return an array of objects, but in practice it will always have a single item.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.4.0
*/
expor... |
import { describe, expect, test, it } from "@jest/globals";
import formatLocale, { formatRe, pad, requote, TimeLocaleDefinition } from "./locale";
const defaultLocaleDefinition: TimeLocaleDefinition = {
dateTime: '%x, %X',
date: '%-m/%-d/%Y',
time: '%-I:%M:%S %p',
periods: ['AM', 'PM'],
days: ['Sun... |
import { withTRPC } from '@trpc/next';
import { AppType } from 'next/dist/next-server/lib/utils';
import { transformer } from '../utils/trpc';
import { httpBatchLink } from '@trpc/client/links/httpBatchLink';
const MyApp: AppType = ({ Component, pageProps }) => {
return <Component {...pageProps} />;
};
export defaul... |
import { join } from 'path';
import { readdir, readFile, watch, writeFile } from './fs';
import { take } from 'rxjs/operators';
describe('fs', () => {
describe('readdir', () => {
it('should read a current directory', async () => {
expect.assertions(1);
expect(
await readdir(join(__dirname, '... |
import { EXPIRETIME, MESSAGES } from './../../config/constants';
import { IResolvers } from 'graphql-tools';
import { COLLECTIONS } from '../../config/constants';
import JWT from '../../lib/jwt';
import bcrypt from 'bcrypt';
import { findOneElement,findElementsSub } from '../../lib/db-functions';
import { pagination } ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { TextLegibilityTestStep } from 'assessments/text-legibility/test-steps/test-step';
import { Requirement } from 'assessments/types/requirement';
import { NewTabLink } from 'common/components/new-tab-link';
import { li... |
import { Version } from '@angular/core';
export const VERSION = new Version('0.0.0-PLACEHOLDER'); |
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import {
assert,
defineProperties,
ArrayFilter,
ArrayIndexOf,
ArrayPush,
ArrayReduce,
... |
import React, {useEffect, useState} from 'react';
import {config} from "../../constants";
import useToken from "../../hooks/useToken";
import {ERole} from "../../enums";
import {useNavigate} from "react-router-dom";
interface IRegister {
username: string,
password: string,
role: string
}
interface IError ... |
export declare enum WeaponHash {
Knife = 2578778090,
Nightstick = 1737195953,
Hammer = 1317494643,
Bat = 2508868239,
GolfClub = 1141786504,
Crowbar = 2227010557,
Bottle = 4192643659,
SwitchBlade = 3756226112,
Pistol = 453432689,
CombatPistol = 1593441988,
APPistol = 584646201... |
function without<T>(array: T[], value: T): T[] {
let presentParts: T[] = [];
for (let part of array) {
if (part !== value) {
presentParts.push(part);
}
}
return presentParts;
}
interface IUrl {
protocol: string;
host: string;
pathname: string;
hash: string;
searchParams: { [key: string... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
import React from 'react';
const PageNotFound: React.FC = () => {
return (
<div>
<h1 className={'display-4'}>Page Not Found</h1>
<p>The page your are looking for does not exist.</p>
</div>
);
};
export default PageNotFound; |
import { IsNotEmpty } from 'class-validator';
export class SellerSubscriptionPlanUpdateDTO {
@IsNotEmpty()
subscription_plan_id: number;
@IsNotEmpty()
subscription_start_date: Date;
@IsNotEmpty()
subscription_end_date: Date;
} |
import { mount } from '@vue/test-utils'
import ButtonGroup from '../src/index.vue'
const AXIOM = 'Rem is the best girl'
describe('ButtonGroup.vue', () => {
test('render test', () => {
const wrapper = mount(ButtonGroup, {
slots: {
default: AXIOM,
},
})
expect(wrapper.text()).toEqual(AXI... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { HttpErrorResponse, HttpHeaders, HttpResponse } from '@angular/common/http';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { LocalStorageService } from 'ngx-webstorage';
import { Jh... |
import { useRef, useState } from 'react'
import { useHistory } from 'react-router'
import { makeStyles, withStyles } from '@material-ui/core/styles'
import { WithStyles, Button } from '@material-ui/core'
import {
DropzoneArea,
FileObject,
PreviewIconProps,
} from 'material-ui-dropzone'
import clsx from 'clsx'
im... |
export abstract class ProductCategory {
/**
* The protected constructor for the abstract ProductCategory class.
*/
protected constructor(public name: string) {
}
public abstract getImageUrl(): string
}
export class SodaCategory extends ProductCategory {
/**
* The public constructo... |
import { Module } from '@nestjs/common';
import { BlogService } from './blog.service';
import { BlogController } from './blog.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { BlogEntity } from './entities/blog.entity';
@Module({
imports: [TypeOrmModule.forFeature([BlogEntity])],
controllers: ... |
import { IModuleRepositoryItem } from './IModuleRepositoryItem';
export interface IModuleRepository {
add(module: IModuleRepositoryItem): void;
remove(moduleName: string): void;
get(moduleName: string): IModuleRepositoryItem | undefined;
getAll(): IModuleRepositoryItem[];
} |
import { Observable } from 'rxjs';
import { User } from '../../interfaces/user';
import { Address, AddressData } from '../../interfaces/address';
import { OrdersList } from '../../interfaces/list';
import { Order } from '../../interfaces/order';
export interface EditProfileData {
firstName: string;
lastName: strin... |
import * as React from 'react';
import { useClusterProvidersQuery, useInventoryProvidersQuery } from '@app/queries';
import {
InventoryProvider,
IOpenShiftProvider,
IProviderObject,
SourceInventoryProvider,
} from '@app/queries/types';
import { getFormGroupProps, IValidatedFormField } from '@konveyor/lib-ui';
i... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AppTranslationModule } from '../../app.translation.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgaModule } from '../../theme/nga.module';
import { Login } from './login.component';... |
<TS language="fr_FR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Double cliquez afin de modifier l'adresse ou l'étiquette</translation>
</message>
<message>
<source>Create a new address</source... |
import chalk from 'chalk';
import ora, {Ora} from 'ora';
import {logger} from '@react-native-community/cli-tools';
import {HEALTHCHECK_TYPES} from './healthchecks';
import {EnvironmentInfo} from '@react-native-community/cli-types';
import {HealthCheckCategoryResult} from './types';
import {logManualInstallation} from '... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { HttpClientModule } from '@angular/common/http';
import { CatalogusComponent } from './catalogus/catalogus.component';
import { CatalogusArtikelComponent } from '.... |
import { createVfModal } from '/vf-modal/index'
import NetError from './modals/NetError.vue'
import '/vf-modal/index.css'
import { ComponentProps } from '/@/../dist/props'
import { defineComponent, toRef, toRefs } from 'vue'
const ApiError = defineComponent({
props: {
msg: {
default: 'hello',
require... |
import React, { useMemo } from "react";
import prettyBytes from "pretty-bytes";
import prettyMs from "pretty-ms";
import { Table, TableProps } from "../../../components/Table";
import { BinIcon } from "../../../components/Icons/BinIcon";
import { Dot } from "../../../components/Dot";
import { Badge } from "../../../com... |
import React from "react";
import { PrimaryAnchorButton } from "~/components/ui/button";
import { ContactDetail } from "~/lib/content/emergency-contacts";
export function EmergencyContactCard(contact: ContactDetail) {
return (
<div className="flex flex-col shadow-md rounded-md overflow-hidden max-w-xs">
<... |
import React from 'react';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import ListItemText from '@material-ui/core/ListItemText';
import ListItem from '@material-ui/core/ListItem';
import List f... |
import styled from 'styled-components'
import { selectors } from '@defencedigital/design-tokens'
const { color, spacing, fontSize } = selectors
export const StyledTitle = styled.h1`
color: ${color('neutral', 'white')};
margin: ${spacing('6')} 0 0 0;
font-size: ${fontSize('xl')};
font-weight: 500;
` |
import type {
Optimizer,
InternalCache,
TransformModuleOptions,
TransformModuleResult,
} from './types';
import type TypeScript from 'typescript';
import { isJsxFile, toBase64 } from './utils';
export function transformModuleSync(
optimizer: Optimizer,
c: InternalCache,
opts: TransformModuleOptions,
ts... |
import {INode} from '../../interfaces/INode';
import {IPackerElement} from '../../interfaces/IPackerElement';
import {VisualizationConfig} from '../../VisualizationConfig';
import {BoxGeometry, Geometry, Mesh, MeshLambertMaterial} from 'three';
import {IMetricMapping} from '../../interfaces/IMetricMapping';
import {Scr... |
import * as React from 'react';
export interface GlobalState {}
export type AnyCallback = (state: GlobalState, payload: any) => GlobalState;
export type AnyActions<TCallback> = Record<string, TCallback>;
export type ActionsOutput<
TCallback extends AnyCallback,
TActions extends AnyActions<TCallback>
> = {
[K ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pam" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Gplay</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+... |
import React, { ReactNode } from 'react'
import Select from 'react-select'
import { withTheme, ThemeProps, DefaultTheme } from 'styled-components'
import PropertyInFilter from '../../ui/property-in-filter'
import { filterStyles } from '../../../styles/select-styles'
import { FilterPropertyProps } from '../base-propert... |
import React from 'react';
import Button from '../Button';
import {
Container,
Topside,
Logo,
MenuButton,
HomeIcon,
BellIcon,
FavoriteIcon,
ProfileIcon,
EmailIcon,
Botside,
Avatar,
ProfileData,
ExitIcon,
} from './styles';
const MenuBar: React.FC = () => {
return (
<Container>
<... |
import { NumberFormatInternal, NumberFormatOptions, NumberFormatLocaleInternalData } from '../types/number';
/**
* https://tc39.es/ecma402/#sec-initializenumberformat
*/
export declare function InitializeNumberFormat(nf: Intl.NumberFormat, locales: string | string[] | undefined, opts: NumberFormatOptions | undefined,... |
import { Eq } from '@ephox/dispute';
import * as Fun from './Fun';
import { Optional } from './Optional';
import * as Type from './Type';
type ArrayMorphism<T, U> = (x: T, i: number) => U;
type ArrayGuardPredicate<T, U extends T> = (x: T, i: number) => x is U;
type ArrayPredicate<T> = ArrayMorphism<T, boolean>;
type ... |
import * as fs from 'fs'
import * as path from 'path'
import * as request from 'request'
import Command from '@oclif/command'
export function writeToFile(
cmd: Command,
sourceName: string,
targetName: string,
sourcePath = '.',
targetPath = '.',
force = false
) {
const sourceFileName = path.join(sourcePa... |
import merge from 'lodash/merge';
import userResolvers from './graph/user/resolvers';
const resolvers = merge(
userResolvers
)
export default resolvers; |
import Vue, { CreateElement, VNode } from 'vue';
import {
Component,
Emit,
Inject,
Model,
Prop,
Provide,
Watch,
} from 'vue-property-decorator';
import { IPC_NAMESPACE_TRANSLATOR_PROJECT } from '@src/main/utils/constants';
import {
TranslatorProject,
TranslatorProjectMetaData,
TranslatorProjectIpcTy... |
import { system } from '@codecademy/gamut-styles';
import { variance } from '@codecademy/variance';
import styled from '@emotion/styled';
import React, {
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from 'react';
import {
useIsomorphicLayoutEffect,
useWindowScroll,
useWindowSize,
} from 'react-u... |
import { IsNotEmpty, IsString, Length, Matches } from 'class-validator';
export class AuthCredentialsDto {
@IsNotEmpty()
@IsString()
@Length(4, 20)
username: string;
@IsNotEmpty()
@IsString()
@Length(8, 32)
@Matches(/(?:(?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/, {
message: 'Password i... |
export { ChartCandlestick20 as default } from "../"; |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { DisableControlDirective } from './disable-control.directive';
import { FocusedDirective } from './focused.directive';
@NgModule({
imports: [CommonModule],
declarations: [FocusedDirective, DisableControlDirective],
... |
/**
* @namespace toolkit.components
*/
/// <reference types="angular" />
import { BaseLookupController } from '../../baseClasses/baseLookupController';
import { IUiGridService } from '../../services/uiGridService';
export declare class EzGrid implements ng.IComponentOptions {
templateUrl: string;
controller: ... |
import { BaseRouteComponent } from '../../../../_common/route/route-component';
import { AppThemeSvg } from '../../../../_common/theme/svg/svg';
import { Component } from 'vue-property-decorator';
@Component({
name: 'RouteLandingPartners',
components: {
AppThemeSvg,
},
})
export default class RouteLandingPartners... |
export enum Apis {
UserInfo = '/exchange/v1/users/info',
UserBalance = '/exchange/v1/users/balances',
AccountTradeHistory = '/exchange/v1/orders/trade_history',
NewOrder = '/exchange/v1/orders/create'
} |
import { lot } from "transaction-details/__test__/data"
import { DeliveryType, LotList, LotSummary, Snapshot } from "transactions/types"
export const emptySnapshot: Snapshot = {
lots: {
draft: 0,
draft_imported: 0,
draft_stocks: 0,
in_total: 0,
in_pending: 0,
in_tofix: 0,
stock: 0,
st... |
import { builders } from "ast-types";
export const NESTJS_SWAGGER_MODULE = "@nestjs/swagger";
export const API_PROPERTY_ID = builders.identifier("ApiProperty"); |
import { Immutable } from "src/utils";
import { Viseur } from "src/viseur";
import { BasePane, IPaneStat } from "src/viseur/game";
import { Game } from "./game";
import { IGameState, IPlayerState } from "./state-interfaces";
// <<-- Creer-Merge: imports -->>
// Add additional imports you need here
// <<-- /Creer-Merge... |
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { ExternalLink } from '@console/internal/components/utils';
import { SUPPORT_URL } from '../../constants/vm-templates';
const VMTemplateSupport: React.FC<VMTemplateSupportProps> = ({ details }) => {
const { t } = useTranslation()... |
import { Airport, AtcEntry, FlightEntry } from '../lib/infinite-flight-live/types.js';
import { User } from '.prisma/client/index.js';
export interface ActiveInfiniteFlightUser {
user: User;
}
export interface ActivePilotUser extends ActiveInfiniteFlightUser {
flight: FlightEntry;
inboundAirport?: Airport... |
import { Position } from "src/app/model/position";
import { Scooter } from "src/app/model/scooter";
export class ScooterDTO {
constructor(
public readonly Id: string,
public readonly BatteryLevel: number,
public readonly Latitude: number,
public readonly Longitude: number,
public readonly Connect... |
import * as React from 'react';
import './style.css';
import SelectComponent from 'Components/SelectComponent';
class WithdrawForm extends React.Component<{}, {}> {
types = [
'Bitcoin',
'USD'
];
methods = [
'Bank',
'COD'
];
render() {
return (
<div>
<div className="dashboard... |
enum StringEnum {
AVOID_SPAM_INSTRUCTION_TITLE = 'Avoid the spams!',
AVOID_SPAM_INSTRUCTION = `
Dear player, you're now alone in
the void. You must shop avoiding
contacts with the spams!
Catch Buyzooka's shield in a
few seconds, it might help you.
Good luck!`,
AVOID_SPAM_INSTRUCTION_BUTTON = '[UNDERSTOO... |
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { AppModule } from './app.module';
import { sseMiddleware } from 'express-sse-middleware';
async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { User } from './user.entity';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
@Injectable()
export class UserServi... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsersModule } from './users/users.module';
@Module({
imports: [
TypeOrmModule.forRoot({
type: 'postgres',
host: '192.168.56.102',
port: 5432,
username: 'root',
password: 'root',
... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule, Router } from '@angular/router';
import { AppComponent } from './app.component';
import { ProjectsComponent } from './projects/projects.component';
import { AddProjectComponent } from './projects/add-project/add-project.component';
import { EditP... |
export type Unpack<T> = T extends Promise<infer U> ? U : T;
export type PromiseReturnType<T extends (...args: any[]) => any> = Unpack<ReturnType<T>>;
export type Nullable<T> = T | undefined | null;
export function delay(ms: number) {
return new Promise(resolve => setTimeout(resolve, ms));
} |
import { IInstrument } from './set/instrument'
import { IUnderlyingInstrument } from './set/underlying_instrument'
export interface IOrderMassCancelRequest {
ClOrdID: string// 11
SecondaryClOrdID?: string// 526
MassCancelRequestType: string// 530
TradingSessionID?: string// 336
TradingSessionSubID?: string//... |
import React from "react";
import {Route, Switch } from "react-router-dom";
import {Home} from "./Home";
export const AppContent = () => {
return (
<div className='content'>
<Switch>
<Route exact={true} path="/"><Home/></Route>
</Switch>
</div>
)
} |
import { Component } from '@angular/core';
import { products } from '../products';
@Component({
selector: 'app-product-list',
templateUrl: './product-list.component.html',
styleUrls: ['./product-list.component.css']
})
export class ProductListComponent {
products = products;
share() {
window.alert('The ... |
import { firstValueFrom } from 'rxjs';
import { filter, takeUntil } from 'rxjs/operators';
import { RuntimeUri, rx, slug, t } from '../common';
/**
* Event API for working with Electron windows.
*/
export function Events(args: { bus: t.EventBus<any> }): t.WindowEvents {
const { dispose$, dispose } = rx.disposable... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ListeningProfileComponent } from './listening-profile.component';
describe('ListeningProfileComponent', () => {
let component: ListeningProfileComponent;
let fixture: ComponentFixture<ListeningProfileComponent>;
beforeEach(async... |
import { ApiProperty } from '@nestjs/swagger';
import { IsEmail, IsNotEmpty, IsString, MaxLength, MinLength } from 'class-validator';
export class AuthRegisterDto {
@ApiProperty()
@IsNotEmpty({
message: 'First Name must not be empty',
})
@IsString({
message: 'First Name must be a string',
})
@MinLe... |
import { rowAndColumnToIndex } from "./index";
const judgeWinner = (
board: Array<string | null>,
size: number
): string | null => {
const winnerVerticalJudge = judgeVertically(board, size);
if (winnerVerticalJudge) {
return winnerVerticalJudge;
}
const winnerHorizontalJudge = judgeHori... |
/* Imports: External */
import * as fs from 'fs'
import * as path from 'path'
import fetch from 'node-fetch'
import { ethers } from 'ethers'
import { subtask, extendEnvironment } from 'hardhat/config'
import {
HardhatNetworkHDAccountsConfig,
HardhatNetworkAccountUserConfig,
} from 'hardhat/types/config'
import { ge... |
import {Schema} from '../../src/schema';
// imported from https://eu.api.soyoustart.com:443/1.0/stack/mis.json
export const schema: Schema = {
"apiVersion": "1.0",
"apis": [
{
"description": "Operations about the GS service",
"operations": [
{
"apiStatus": {
"descript... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { EditSyllabusComponent } from './edit-syllabus.component';
import { FormGroup, ReactiveFormsModule, FormsModule, FormBuilder } from '@angular/forms';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/c... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2018, 2019 New Vector Ltd
Copyright 2019 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 Li... |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
import { Position, Range, TextDocument, workspace } from "vscode";
import { armTemplateLanguageId... |
import React from "react";
import ReactDOM from "react-dom";
import App from "./projects/App";
it("renders without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
}); |
import * as bitECS from 'bitecs'
import { Entity } from '../classes/Entity'
import { useWorld } from './SystemHooks'
export const ComponentMap = new Map<string, ComponentType<any>>()
// TODO: benchmark map vs array for componentMap
export const createMappedComponent = <T extends {}, S extends bitECS.ISchema = bitECS.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.