text stringlengths 10 953k |
|---|
export interface ReactNativeBuildOptions {
apk?: boolean;
debug?: boolean;
} |
import { Router, parser } from "../../mod.ts";
const sleep = (time: number = 100) =>
new Promise((resolve) => {
setTimeout(() => resolve(null), time);
});
/**
* Test purpose
*
* - check param method
*/
const paramTest = new Router();
paramTest.param("username", async (req, res, username) => {
await sl... |
/**
* collection of stateless utility functions for declutter and easy to test
*/
import * as vscode from 'vscode';
import * as path from 'path';
import { ProjectWorkspace } from 'jest-editor-support';
import { JestProcessRequest } from '../JestProcessManagement';
import {
PluginResourceSettings,
JestExtAutoRunCo... |
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-explore-container',
templateUrl: './explore-container.component.html',
styleUrls: ['./explore-container.component.scss'],
})
export class ExploreContainerComponent {
@Input() name: string;
} |
import { ArrayField, createForm } from '@formily/core';
import {
createSchemaField,
FormProvider,
Schema,
SchemaOptionsContext,
useField,
useFieldSchema,
useForm,
} from '@formily/react';
import { uid } from '@formily/shared';
import constate from 'constate';
import { get } from 'lodash';
import React, { ... |
import { TaskStatus } from "../tasks.model";
export class UpdateTasksDto {
title: string;
description: string;
status: TaskStatus;
} |
<?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 KmushiCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location li... |
import { Cursor, FindOneOptions, WithoutProjection } from 'mongodb';
import { IRole, IUser } from '../../../../definition/IUser';
import { Roles } from '../../../models/server/raw';
export function getUsersInRole(roleId: IRole['_id'], scope?: string): Promise<Cursor<IUser>>;
export function getUsersInRole(
roleId: ... |
import { XEUtilsMethods } from '../xe-utils'
/**
* 判断是否 Map 对象
* @param val 值
*/
export declare function isMap(val: any): boolean;
declare module '../xe-utils' {
interface XEUtilsMethods {
/**
* 判断是否 Map 对象
* @param val 值
*/
isMap: typeof isMap;
}
}
export default isMap |
import {ActionReducerMap} from '@ngrx/store';
import {AppState} from './app.state';
import {notificationReducer} from './feature/notification';
import {sidebarReducer} from './feature/sidebar';
import {userReducer} from './feature/user';
import { onOfflineReducer } from './feature/onoffline';
export const APP_REDUCERS... |
import { Component, Input } from '@angular/core';
import { VisualizationMode } from '../timeline.component';
import { ProfilerFrame } from 'protocol';
import { BargraphNode } from '../record-formatter/bargraph-formatter';
import { FlamegraphNode } from '../record-formatter/flamegraph-formatter';
export interface Selec... |
import React, { useCallback, useContext } from "react";
import { ProductContext } from "./ProductCar";
import styles from '../styles/styles.module.css'
export interface Props {
className?: string;
style?: React.CSSProperties
}
export const ProductButtons = ({ className, style }: Props) => {
const { inc... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { text, boolean, select } from '@storybook/addon-knobs';
import Select from './Select';
import Option from '../Option';
storiesOf('Components|Select', module)
.addParameters({
propT... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HorselessTagsComponent } from './horseless-tags.component';
import { ApiModule, Configuration, ConfigurationParameters } from '@wizardcontroller/horseless-contentapi-lib';
import { NewTenantComponent } from './new-tenant/... |
import { FastifyRequest } from 'fastify';
type CustomRequest = FastifyRequest<{
Body: {
name: string;
email: string;
password: string;
}
}>; |
import { SweetAlertDismissReason, SweetAlertOptions } from 'sweetalert2';
export const invokeStrategy = Symbol('@sweetalert2/guards#invokeStrategy');
export const errorStrategy = Symbol('@sweetalert2/guards#errorStrategy');
export const onDismiss = Symbol('@sweetalert2/guards#onDismiss');
export const onError = Symbol... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="hu">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Referencelinecoin</source>
<translation>A Referenc... |
import * as globAll from 'glob-all';
import type { IOptions } from 'glob';
import * as fsExtra from 'fs-extra';
import { Formatter } from './Formatter';
import type { FormattingOptions } from './FormattingOptions';
import * as path from 'path';
import type { ParseError } from 'jsonc-parser';
import { parse as parseJson... |
import express, { Request, Response, NextFunction } from 'express';
const router = express.Router();
import blog from './blog';
import user from './user';
router.use('/blog', blog);
router.use('/user', user);
router.get('/', (req: Request, res: Response, next: NextFunction) => {
res.send('/api');
});
export def... |
import { createSlice } from '@reduxjs/toolkit'
import { RootState } from "../../../store/store"
export const sidebarInitialState = {
isOpen: false,
}
export const sidebarSlice = createSlice({
name: 'sidebar',
initialState: sidebarInitialState,
reducers: {
open: (state) => {
state.i... |
import { Component, Input } from '@angular/core';
import { Headers, Http, Response } from '@angular/http';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { Router } from '@angular/router'
@Component({
selector: 'login',
templateUrl: './login.component.html',
styleUrls: ['./logi... |
import { IConnection } from "./IConnection";
import { IHttpConnectionOptions } from "./IHttpConnectionOptions";
import { HttpTransportType, TransferFormat } from "./ITransport";
/** @private */
export interface INegotiateResponse {
connectionId?: string;
availableTransports?: IAvailableTransport[];
url?: s... |
export declare class Util {
static create(): Util;
/** Create directory */
mkdir(dir: string): string;
/** get document path if not present create the document */
getDocumentPath(entity: string, baseFolder?: string): string;
/** Get Random Id for an record */
rand(digits: number): number;
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sv" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Geld</source>
<translation>Vad du behöver veta om Geld</translation>
</message>
<message>
... |
import {
Controller,
Post,
Body,
Get,
Param,
Patch,
Delete,
} from '@nestjs/common';
import { ProductsService } from './products.service';
@Controller('products')
export class ProductsController {
constructor(private readonly productsService: ProductsService) {}
@Post()
addProduct(
@Body('titl... |
import { Injectable } from '@angular/core';
import {HttpClient, HttpHeaders} from '@angular/common/http';
import {LoginModel, loginResponse, Role, TokenModel} from '../models/auth.model';
import {Router} from '@angular/router';
import {Observable} from 'rxjs';
import {environment} from '../../environments/environment';... |
/**
* 状态栏导航
*/
export interface NavItem {
/**
* 数据状态
*/
Status?: number;
/**
* 审核状态
*/
AuditStatus?: number;
/**
* 业务状态
*/
BusinessStatus?: number;
/**
* 导航状态名称
*/
Name: string;
/**
* 导航标识
*/
Code: string;
/**
* 是... |
import { Build } from 'postgraphile';
import {
PgAttribute,
PgProc,
PgClass,
PgConstraint,
PgExtension,
PgType,
PgNamespace,
PgIndex,
} from 'graphile-build-pg';
export interface GraphilePgIntrospection {
__pgVersion: number;
attribute: PgAttribute[];
attributeByClassIdAndNum: { [classId: string]... |
import { CommandInteraction, GuildMember } from "discord.js";
import logger from "../utils/logger";
export default async (
interaction: CommandInteraction
): Promise<string | undefined> => {
const voiceChannel = (interaction.member as GuildMember).voice.channel;
const botMember = interaction.guild?.me;
if (!... |
import { ActivateActionBehaviour } from './activate-action-behaviour';
import { DeactivateActionBehaviour } from './deactivate-action-behaviour';
import { EntryActionBehaviour } from './entry-action-behaviour';
import { ExitActionBehaviour } from './exit-action-behaviour';
import { InternalTriggerBehaviour } from './in... |
/**
*
*
* OpenAPI spec version: 20200601
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
/**
* Gesture blocks
*/
//% weight=100 color=#0fbc11 icon=""
namespace Gestures {
export class Vector {
X: number;
Y: number;
Z: number;
constructor(x: number, y: number, z: number) {
this.X = x;
this.Y = y;
this.Z = z;
}
}
func... |
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { customElement, property, state } from "lit/decorators";
import { atLeastVersion } from "../../../src/common/config/version";
import { fireEvent } from "../../../src/common/dom/fire_event";
import "../../../src/components/buttons/ha-pr... |
import React, { Suspense, useCallback, useEffect, useMemo } from 'react'
import { Redirect, Route, RouteComponentProps, Switch, matchPath } from 'react-router'
import { Observable } from 'rxjs'
import { ResizablePanel } from '@sourcegraph/branded/src/components/panel/Panel'
import { LoadingSpinner } from '@sourcegraph... |
/// <reference types="node" />
export declare function renderToString<T>(fn: () => T, options?: {
timeoutMs?: number;
}): T extends Promise<any> ? Promise<string> : string;
export declare function renderToNodeStream<T>(fn: () => T): NodeJS.ReadableStream;
export declare function renderToWebStream<T>(fn: () => T): R... |
import { setMentions } from '@urbit/api/dist';
import React from 'react';
import { Setting } from '../../components/Setting';
import { pokeOptimisticallyN } from '../../state/base';
import { HarkState, reduceGraph, useHarkStore } from '../../state/hark';
import { useSettingsState, SettingsState } from '../../state/sett... |
import { App } from 'vue'
import { Router, RouteRecordRaw, RouterOptions as VueRouterOptions } from 'vue-router'
import { HeadClient } from '@vueuse/head'
export interface ViteSSGOptions {
/**
* Rewrite scripts loading mode, only works for `type="module"`
*
* @default 'sync'
*/
script?: 'sync' | 'async... |
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
import { Injectable } from "@angular/core";
import API, { graphqlOperation } from "@aws-amplify/api";
import { GraphQLResult } from "@aws-amplify/api/lib/types";
import * as Observable from "zen-observable";
e... |
import { RequestHandler } from "express";
import httpStatus from "http-status";
const getUserInisght: RequestHandler = async (req, res) => {
const currentUser = req.currentUser;
return res.status(httpStatus.OK).send({
liked: currentUser.likedUUIDs.length,
passed: currentUser.passedUUIDs.length,
});
};
e... |
/// <reference types="react" />
declare const GeoDocs: () => JSX.Element;
export default GeoDocs;
//# sourceMappingURL=geo.d.ts.map |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import logger from '@docusaurus/logger';
import path from 'path';
import type {Configuration} from 'webpack';
import merge from 'w... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.15.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do no... |
// type Compose<Fs extends List<(...args: any[]) => any>> = Pipe<ReverseList<Fs>>; |
// Type definitions for proper-lockfile 4.1
// Project: https://github.com/moxystudio/node-proper-lockfile
// Definitions by: Nikita Volodin <https://github.com/qlonik>
// Linus Unnebäck <https://github.com/LinusU>
// ulrichb <https://github.com/ulrichb>
// Definitions: https://github.co... |
export interface GetVendorInfoResponse {
id: string;
name: string;
logoUrl: string;
slug: string;
} |
import {
CommandUser,
ResolvedMemberData,
CDN_URL,
Endpoints,
ImageFormat,
ImageFormats,
ImageSizeBoundaries
} from '../constants';
import { SlashCreator } from '../creator';
import { User } from './user';
/** Represents a resolved member object. */
export class ResolvedMember {
/** The member's ID */
... |
import { IApplicationData } from './pcr'
import { ActivityItem } from './plugins/activity'
import { ISchoologyData } from './plugins/schoology'
import { ICustomAssignment } from './plugins/customAssignments'
import { IModifiedBodies } from './plugins/modifiedAssignments'
import { localStorageRead, localStorageWrite } f... |
export {default} from "./PooCircularProgress"; |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { CondaEnvironmentInfo } from '../../pythonEnvironments/discovery/locators/services/conda';
import { InterpreterInformation } from '../../pythonEnvironments/discovery/types';
import { traceError, traceInfo } from '..... |
import React from 'react';
import { ValidationError } from '@42.nl/jarb-final-form';
import { MetaError } from '../types';
import {
getTranslator,
Translation
} from '../../utilities/translation/translator';
export function errorMessage(error: MetaError): React.ReactNode {
const translator = getTranslator();
... |
import mongoose from 'mongoose';
import { Message } from 'node-nats-streaming';
import { ExpirationCompleteEvent, Subject } from '@sebsonic2o-org/common';
import { ExpirationCompleteListener } from '../expiration-complete-listener';
import { natsWrapper } from '../../../nats-wrapper';
import { Ticket } from '../../../m... |
import format from 'date-fns/format'
import ptBR from 'date-fns/locale/pt-BR'
import styles from './styles.module.scss'
export default function Header() {
const currentDate = format(new Date(), 'EEEEEE, d MMMM', {
locale: ptBR,
})
return (
<header className={styles.headerContainer}>
... |
import {ObjectId} from '../../../models/object-id.model';
export class SaleOrder {
_id: ObjectId;
boxId: ObjectId;
employeId: ObjectId;
clientId: ObjectId;
companyId: ObjectId;
cubicMeters: number;
total: number;
subtotal: number;
numTotalProducts: number;
numTotalCancel: number;
numTotalDelivere... |
'use strict';
import { EOL } from 'os';
import * as url from 'url';
import { CancellationToken, DocumentSymbolProvider, Location, Range, SymbolInformation, SymbolKind, TextDocument, window } from 'vscode';
import { ArrayUtility } from "../common/arrayUtility";
import * as Constants from '../common/constants';
import {... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-transaction-page',
templateUrl: './transaction-page.component.html',
styleUrls: ['./transaction-page.component.css']
})
export class TransactionPageComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
// Comp_05_1480
import React from 'react';
import { incModCount } from '../modCount';
const Comp_05_1480: React.FC = () => {
React.useEffect(() => {
incModCount();
}, []);
return <div>
I'm component Comp_05_1480
<div>
</div>
</div>;
};
export default Comp_05_1480; |
import { FirmaConfig } from "./FirmaConfig";
import { create, IPFSHTTPClient } from 'ipfs-http-client';
import fs from 'fs';
import { FirmaUtil } from "./FirmaUtil";
export class IpfsService {
private _ipfsNodeClient: IPFSHTTPClient;
private _protocol: string;
constructor(private _config: FirmaConfig) {
... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'ns-tab-screen',
templateUrl: './tab-screen.component.html',
styleUrls: ['./tab-screen.component.css'],
moduleId: module.id,
})
export class TabScreenComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { MjmlToJson } from '../MjmlToJson';
import mjml from 'mjml-browser';
const mjmlText = `
<mjml>
<mj-head>
<mj-html-attributes>
<mj-html-attribute class="easy-email" multiple-attributes="false" attribute-name="text-color" text-color="#000000"></mj-html-attribute>
<mj-html-attribute class="easy-email" multiple... |
import * as acorn from 'acorn';
import ExternalModule from './ExternalModule';
import Graph from './Graph';
import Module from './Module';
import {
CustomPluginOptions,
EmittedChunk,
HasModuleSideEffects,
ModuleOptions,
NormalizedInputOptions,
PartialNull,
Plugin,
ResolvedId,
ResolveIdResult,
SourceDescriptio... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PartListComponent } from './part-list.component';
describe('PartListComponent', () => {
let component: PartListComponent;
let fixture: ComponentFixture<PartListComponent>;
beforeEach(async () => {
await TestBed.configureTestingModu... |
import { create, tsx } from '@dojo/framework/core/vdom';
import {
createResourceMiddleware,
defaultFind,
createResourceTemplate
} from '@dojo/framework/core/middleware/resources';
import Example from '../../Example';
import Tree, { TreeNodeOption } from '@dojo/widgets/tree';
const template = createResourceTemplate<... |
import FollowersComponent from './FollowersComponent';
export default FollowersComponent; |
import { firestore } from "firebase";
import { useEffect, useState, useCallback } from "react";
import { CollectionData, initialCollectionData, QueryOptions } from "..";
import { getCollection, getCollectionSnapshot } from "../getFunctions";
import useIsMounted from "../isMounted";
import * as typeCheck from "../typeCh... |
/**
* Copyright 2017-2018 the original author or authors from the JHipster Online project.
*
* This file is part of the JHipster Online project, see https://github.com/jhipster/jhipster-online
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... |
import { Product } from "@shopware-pwa/shopware-6-client/src/interfaces/models/content/product/Product";
/**
* @alpha
*/
export function getProductSpecialPrice(product: Product): number {
const price = product?.calculatedPrices?.[0]?.unitPrice;
return price || 0;
} |
import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { PassportModule } from '@nestjs/passport';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserEntity } from './entities/user.entity';
import { UserController } from './user.controller';
import { UserService } from './us... |
export * from './timezone.service';
export * from './utc-to-local-date-time.pipe';
export * from './utc-to-local-time.pipe';
export { MomentFormat } from './moment-format'; |
import SFacebook from './SFacebook';
export default SFacebook; |
import { RoundPipe } from './round';
describe('RoundPipe', () => {
let pipe: RoundPipe;
beforeEach(() => {
pipe = new RoundPipe();
});
it('should return rounded number of given number', () => {
expect(pipe.transform(1.2)).toEqual(1);
expect(pipe.transform(1.5)).toEqual(2);
expect(pipe.transfo... |
import { AssertionError } from "../AssertionError";
describe("AssertionError", () => {
it("should be check by instanceof when catched.", () => {
try {
throw new AssertionError({ message: "foo" });
} catch (e) {
expect(e instanceof AssertionError).toBe(true);
}
});
}); |
import EventDispatcher from "@valeera/eventdispatcher";
import IEngine, { EngineEvents } from "./IEngine";
export default class WebGPUEngine extends EventDispatcher implements IEngine {
public static async detect(
canvas: HTMLCanvasElement = document.createElement("canvas"),
): Promise<{context: GPUCanvasContext, ... |
import {
CloudFormationClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../CloudFormationClient";
import {
StopStackSetOperationInput,
StopStackSetOperationOutput
} from "../models/index";
import {
deserializeAws_queryStopStackSetOperationCommand,
serializeAws_queryStopStackSetOperation... |
import React, { RefObject, useRef, useState } from 'react'
import { Overlay } from 'react-bootstrap'
import { Placement } from 'react-bootstrap/esm/Overlay'
function resetTimer(timer: React.MutableRefObject<NodeJS.Timeout | null>) {
if (timer.current) {
clearTimeout(timer.current)
}
}
export function useOverl... |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { CatagoryController } from './product-catagory.controller';
import { Catagory, CatagorySchema } from './schema/product-catagory.schema';
import { CatagoryService } from './product-catagory.service';
@Module({
imports:... |
export const emptyState = {
step: "",
name: undefined,
age: 18,
sex: 0,
stats: {},
homeworld: undefined,
availableSkillCount: undefined,
skills: {},
activeCareer: undefined,
careers: undefined,
hasBeenDrafted: false,
events: [],
connections: {
allies: [],
contacts: [],
enemies: [],... |
import { Component} from '@angular/core';
@Component({
selector: 'ngx-resources-card-back',
styleUrls: ['./resources-card-back.component.scss'],
templateUrl: './resources-card-back.component.html',
})
export class ResourcesCardBackComponent {
} |
import styles from "styles/modal.module.scss";
import type { CSSProperties, FC } from "react";
import { useEffect, useRef, useState } from "react";
import { useRouter } from "next/router";
import { AnimatePresence, motion } from "framer-motion";
import NextHead from "next/head";
import useOnClickOutside from "hooks/use... |
export * from "./api";
export * from "./diff";
export * from "./dom";
export * from "./normalize";
export * from "./render-once";
export * from "./start"; |
import { isConformant } from 'test/specs/commonTests';
import FormDropdown from 'src/components/Form/FormDropdown';
import Dropdown from 'src/components/Dropdown/Dropdown';
describe('FormDropdown', () => {
isConformant(FormDropdown, {
constructorName: 'FormDropdown',
forwardsRefTo: false,
passesUnhandled... |
/*
* Copyright © 2019 Atomist, Inc.
*
* 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 { Machine } from "xstate";
import { assign } from "@xstate/immer";
import { v4 as uuidv4 } from "uuid";
const TOTAL_AVAILABLE_TOPIC_VOTES = 1;
const DISCUSSION_TIME_IN_SEC = 5;
interface LeanHotChocolateMachineSchema {
states: {
lobby: {};
addingTopics: {};
topicVoting: {};
discussion: {
... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { AdminPanelServiceService } from '../Service/AdminPanelService.service';
import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
import { DeviceDetectorService } from 'ngx-device-detector';
import { MediaChange, MediaObserver} from "... |
import {Compiler, WebpackPluginInstance} from "webpack";
import {ObjectOption} from "../ObjectOption";
export type Plugin = ((this: Compiler, compiler: Compiler) => void)
| WebpackPluginInstance;
export class Plugins extends ObjectOption<Plugin[]> {
protected readonly value: Plugin[] = [];
constructor(va... |
import { Reflection } from 'typedoc/dist/lib/models/reflections';
import { TYPE_NUMBER, TYPE_STRING, SPACE_STR, EMPTY_STR, NEWLINE, BRACE_CLOSE, DASH_STR } from './constants';
export function br(count?: number) {
return (count && typeof count === TYPE_NUMBER) ? NEWLINE.repeat(count) : NEWLINE;
}
export function ... |
declare global {
interface Object {
isEqual(other);
}
}
function isEqualObject(this: Object, other) {
if (this === other)
return true;
if (this.constructor === Object && other.constructor === Object) {
// both are dictionaries
let thisKeys = Object.keys(this);
let otherKeys = Object.keys(ot... |
/**
* Copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
import * as fs from 'fs';
import * as path from 'path';
import { green } from '../utilities';
if (process.env.SOLVE && process.env.SOLVE.toLowerCase() === 'true') {
const challengePathname = path.resolve(__dirname, './input.txt');
const challengeFile = fs.readFileSync(challengePathname, 'utf-8');
const challen... |
import { ApiProperty } from '@nestjs/swagger';
import { plainToClass, Transform, Type } from 'class-transformer';
import { FieldEnum, OperatorEnum, OrderByFieldEnum, OrderDirectionEnum } from '@transaction/enums/filter.enum';
import { IsEnum, IsNotEmpty, IsNumber, IsOptional } from 'class-validator';
export class Filt... |
import { connect } from "react-redux";
import { withRouter } from "react-router-dom";
import { Message } from "modules/modal/message";
import { AppState } from "appStore";
import { closeModal } from "modules/modal/actions/close-modal";
import getRep from "modules/account/actions/get-rep";
import { ThunkDispatch } from ... |
export interface Hamburger {
title: string;
price: number;
description: string;
quantity: number;
} |
import {
EnvelopeType,
Request,
Response,
ChannelsNamesParameters,
ChannelsNamesProperties,
Envelope,
} from 'electron-rpc-types';
import { resolve, isNil, Loggable } from 'electron-rpc-utils';
import { IpcRenderer, WebContents, IpcMain, Event } from 'electron';
import { v4 } from 'uuid';
import... |
/**
* @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 { dirname, join, normalize } from '@angular-devkit/core';
import {
Rule,
SchematicContext,
SchematicsExc... |
import {Component, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
import {ModalComponent} from "../../../bootstrap/modal/modal.component";
import {HttpErrorResponse} from "@angular/common/http";
import {CategoryHttpService} from "../../../../services/http/category-http.service";
import {Category}... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AppCreateConsumerComponent } from './app-create-consumer.component';
describe('AppCreateConsumerComponent', () => {
let component: AppCreateConsumerComponent;
let fixture: ComponentFixture<AppCreateConsumerComponent>;
beforeEach... |
import { DocumentNode } from 'graphql';
import { ObservableQuery } from '../../core';
import { QueryDataOptions } from '../types/types';
import { QueryData } from '../data/QueryData';
type QueryInfo = {
seen: boolean;
observable: ObservableQuery<any, any> | null;
};
function makeDefaultQueryInfo(): QueryInfo {
... |
export { ListViewComponent} from './list-view/listview.component';
export { ListViewModule } from './list-view/listview.module';
export { ListViewAllModule, VirtualizationService } from './list-view/listview-all.module';
export * from '@syncfusion/ej2-lists'; |
import { FunctionComponent } from 'react';
import styled from '@emotion/styled';
import Img, { FluidObject } from 'gatsby-image';
export interface ProfileImageProps {
profileImage: FluidObject;
}
const ProfileImageWrapper = styled(Img)`
width: 120px;
height: 120px;
margin-bottom: 30px;
border-radius: 50%;
... |
import { config } from 'dotenv';
import { join } from 'path';
import { getConnectionOptions } from 'typeorm';
export const loadEnvVariables = async () => {
console.log('Chargement des paramètres de connexion ...');
config();
};
export const connexionOptions = async () => {
return Object.assign(await getConnectio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.