text
stringlengths
10
953k
import { ChildProperty } from '@syncfusion/ej2-base'; import { PredicateModel, ICustomOptr } from '@syncfusion/ej2-grids'; import { FilterType, FilterHierarchyMode } from '../base/enum'; /** * Configures the filtering behavior of the Gantt. */ export declare class FilterSettings extends ChildProperty<FilterSettings> ...
import type { LiteralUnion } from '../../../src/utils/types'; /** * Parameter options type with default from signature. */ export type ParameterOptionsTypeA = { /** * Options value. */ value?: number; }; /** * Parameter options type with default from jsdocs. Defaults to `{value: 0}`. */ export type Para...
import { IdentityApi } from '@backstage/core-plugin-api'; import { ArgoCDApi } from '..'; export const getEntityStub = { metadata: { namespace: 'default', annotations: { 'backstage.io/managed-by-location': 'url:https://github.com/mcalus3/sample-service/blob/master/backstage.yaml', 'argocd...
import * as React from 'react'; import { TeamLogo } from '../../../../hockey/TeamLogo' type Props = { //@TODO all english, and color logic homeplatz: number, awayplatz: number, homepunkte: number, awaypunkte: number, hometore: number, homegegentore: number, awaytore: number, awaygeg...
import React from 'react'; import styled from 'styled-components'; import { getRem } from '../../helpers'; export interface IGenericFormCardProps { /** * Form container title */ title: string; } /** * Generic form container card */ export const GenericFormCard: React.FunctionComponent<IGenericFormCardProp...
import * as path from 'path'; import { prettyPath } from '@ionic/cli-framework/utils/format'; import { readFile, writeFile } from '@ionic/utils-fs'; import chalk from 'chalk'; import * as Debug from 'debug'; import * as et from 'elementtree'; import { ProjectIntegration, ResourcesPlatform } from '../../../definitions...
import * as express from 'express'; import { interfaces, controller, httpGet, request, response, } from 'inversify-express-utils'; @controller('/ready') export class ReadyController implements interfaces.Controller { constructor() { } @httpGet('/') private async ready(@request() req: ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor * license agreements; and to You under the Apache License, Version 2.0. */ /* * written by Scopevisio AG 2021 */ import express from 'express' import { ApiResponse } from '../apiresponse' import { Auth } from '../auth' import { Co...
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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...
import { RestClient } from "../src/rest-client"; /* Demonstrations on basic REST API calls */ (async () => { // Optional, but required for private endpoints const key = 'apiKeyHere'; const secret = 'apiSecretHere'; const client = new RestClient(key, secret); // Try some public API calls try { co...
/* * Created on Wed Apr 28 2021 * * Copyright (c) storycraft. Licensed under the MIT Licence. */
import { IBot, IBotCommand, IBotCommandHelp, IBotMessage, IBotConfig } from '../api' import { getRandomInt } from '../utils' import * as discord from 'discord.js' export default class PurgeCommand implements IBotCommand { private readonly CMD_REGEXP = /^\?purge/im public getHelp(): IBotCommandHelp { r...
import { CodeBuildClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeBuildClient"; import { UpdateWebhookInput, UpdateWebhookOutput } from "../models/models_0"; import { deserializeAws_json1_1UpdateWebhookCommand, serializeAws_json1_1UpdateWebhookCommand, } from "../protocols/Aws_json1_1"; i...
import { DEGRADED, FAILURE, HEALTHY, NA, ServiceHealth, Status } from './Health'; import { DestinationRule, ObjectCheck, ObjectValidation, Validations, ValidationTypes, VirtualService } from './IstioObjects'; import { TLSStatus } from './TLSStatus'; import { AdditionalItem } from './Workload'; import { Reso...
import React from 'react' import 'react-awesome-button/src/styles/styles.scss' import Helmet from 'react-helmet' import { ThemeProvider } from 'styled-components' import '../assets/fonts/fira' import { defaultTheme, GlobalStyles } from '../styles' import Footer from './Footer' import Navbar from './Navbar' const Layou...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { PracticeAmountPageRoutingModule } from './practice-amount-routing.module'; import { PracticeAmountPage } from './practice-amou...
import SidebarLink from "./components/SidebarLink"; import SidebarSeparator from "./components/SidebarSeparator"; import { HomeIcon, LibraryIcon, SearchIcon, HeartIcon, PlusCircleIcon, RssIcon, } from "@heroicons/react/outline"; const SidebarNav = () => { return ( <> <SidebarLink title="Home" I...
version https://git-lfs.github.com/spec/v1 oid sha256:1b8680c9e42335507639d77fefd93dc9083f934909a17595a3b2c9cde2de5514 size 405704
// import { EventListener } from '../event-handler'; // import config from '../../../config.json'; // import { TextChannel } from 'discord.js'; // export const listener: EventListener<'shardReconnecting'> = { // event: 'shardReconnecting', // async run(client, shardId) { // const channel = client.chann...
import { ResolverMap, Token } from "../../../types/types"; import { verify } from "jsonwebtoken"; import { User } from "../../../entity/User"; export const resolvers: ResolverMap = { Mutation: { confirmEmail: async (_, { token }: any, __) => { const { userId } = verify( token, process.env.E...
//import * as $ from 'jquery'; // throw "Cannot call a namespace ('$')" error on build declare var $: any; import 'bootstrap'; $.extend($.easing, { easeOutSine: function(e, t, a, r, n) { return r * Math.sin((t / n) * (Math.PI / 2)) + a; } }); export function initLayout() { function t() { var e = $(".nav...
// smithy-typescript generated code import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerEx...
import { Resolvers, createLogger, handler } from '../../global'; import { assertOwnerOfLocation } from '../location.auth'; import { assertOwnerOfOrganisation } from '../organisation.auth'; import { createLocationForOrganisation, getLocationsOfOrganisation, getLocationById, } from './location.service'; const logg...
import "../../components/component.less"; import { Nav } from "../../shared/nav"; import { ServiceLocator } from "../../utils/serviceLocator"; import { BaseServices } from "../../services/baseServices"; import { NavService } from "../../services/navService"; import { INavService } from "../../services/iNavService"; im...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import React, { useState } from 'react'; import { JsonEditor } from '../../src'; const content = { 'ComposerDialogs/AddToDo/AddToDo.lu': { lastUpdateTime: 1, lastPublishTime: 0, }, 'ComposerDialogs/ClearToDos/ClearToDos.lu': { ...
import { async, TestBed } from '@angular/core/testing'; import { FeatureEditModule } from './feature-edit.module'; describe('FeatureEntitiesModule', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ FeatureEditModule ] }) .compileComponents(); })); it('should create'...
import { TextChannel, ThreadChannel } from "discord.js"; import { config } from "../../config"; import Command from "../classes/Command"; export default new Command({ commandName:"create", subCommandGroup:"tickets", execute(interaction){ // 1-90 char only let supportRoleOnly = interaction.optio...
/** * Copyright 2020 Vercel 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 t...
import React, { useEffect, useState } from 'react'; import { StackNavigationProp } from '@react-navigation/stack'; import { RouteProp } from '@react-navigation/native'; import { ScrollView, StyleSheet, Text } from 'react-native'; import { connect } from 'react-redux'; import { BLOCK_CONTEXT } from '@rocket.chat/ui-kit'...
/* eslint no-extra-parens: off */ import { guid } from "photoncss/lib"; import { Card } from "photoncss/lib/react"; import React, { CSSProperties, useEffect, useState } from "react"; import { base } from "../../manifest.json"; export type Props = { adLayout: "in-article"; style: CSSProperties; adFormat: "fluid"; f...
import { Table } from "./Table" export * from "./types" export default Table
import { Timestamp } from 'rxjs'; import { AngularFirestore, AngularFirestoreCollection } from '@angular/fire/firestore'; //import { Subject } from 'rxjs/RX'; //import { Observable } from 'rxjs/Observable'; import { catchError, map, tap } from 'rxjs/operators'; import { IEvento, ISession } from './shared/evento-model';...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule as AngularFormsModule } from '@angular/forms'; import { AppTranslationModule } from '../../app.translation.module'; import { NgaModule } from '../../theme/nga.module'; import { NgbRatingModule } from '@n...
import React, { Fragment } from 'react'; import Avatar from '@material-ui/core/Avatar'; import Typography from '@material-ui/core/Typography'; import styles from './Avatar.module.scss'; const LetterAvatars = (): any => { return ( <Fragment> <Typography variant="body1" color="inherit"> Shaw </...
import { TokenEndpointOptions, TokenEndpointResponse } from './global'; import { DEFAULT_AUTH0_CLIENT } from './constants'; import { getJSON } from './http'; import { createQueryParams } from './utils'; /** * @ignore */ const getTokenUrl = (baseUrl: string) => { return (baseUrl.search('token') === -1) ? `${baseU...
/* TSBindingsGenerator Generated code -- this code is regenerated on each build */ namespace SkiaSharp { export class sk_bitmap_get_pixel_colors_0_Params { /* Pack=4 */ b : number; colors_Length : number; colors : Array<SkiaSharp.SKColor>; public static unmarshal(pData:number, memoryContext: any = null) : s...
import { Component, OnInit, HostBinding } from '@angular/core'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss'] }) export class HomeComponent implements OnInit { constructor() { } ngOnInit() { } }
import { Component, Input } from '@angular/core'; @Component({ selector: 'sellit-product-item', templateUrl: './product-item.component.html', styleUrls: ['./product-item.component.scss'] }) export class ProductItemComponent { @Input() public item = {}; }
import { Market, MARKETS, OpenOrders, Orderbook, TOKEN_MINTS, TokenInstructions, } from '@project-serum/serum'; import { PublicKey } from '@solana/web3.js'; import React, { useContext, useEffect, useState } from 'react'; import { divideBnToNumber, floorToDecimal, getTokenMultiplierFromDecimals, sleep, useLocalStorageSt...
import * as mongoose from 'mongoose'; import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Document } from 'mongoose'; import { BeforeInsert } from 'typeorm'; export type UserDocument = User & Document; @Schema() export class User { @Prop() name: string; @Prop() age: number; @Prop() ...
import { UAString } from "node-opcua-basic-types"; import { DTStructure } from "./dt_structure"; /** * | | | * |-----------|--------------------------------------------------| * | namespace |http://opcfoundation.org/UA/ | * | nodeClass ...
export interface PuestosResponseInterface { idRespuesta: number; mensajeRespuesta: string; valorRespuesta: string; }
import { User } from "../../domain/entities/User"; import { UsersRepository } from "../../domain/repositories/UserRepository"; import { userRef, storage } from "./api/firebaseAPI" class UserDTO { id: number = 0; firstName: string = ""; middleName: string = ""; lastName: string = ""; dateOfBirth: s...
// Type definitions for Kendo UI Professional v2017.3.1026 // Project: http://www.telerik.com/kendo-ui // Definitions by: Telerik <https://github.com/telerik/> declare namespace kendo { function culture(): { name: string; calendar: { AM: string[]; PM: string[]; d...
import { IPilotStudyRepository } from '../../../src/application/port/pilot.study.repository.interface' import { PilotStudy } from '../../../src/application/domain/model/pilot.study' import { IQuery } from '../../../src/application/port/query.interface' import { DefaultEntityMock } from '../models/default.entity.mock' i...
// Copyright 2019 The Oppia Authors. 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 ap...
<TS language="ca@valencia" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Feu clic dret per a editar l'adreça o l'etiqueta</translation> </message> <message> <source>Create a new address</source> ...
import range from "lodash/range"; import PropTypes from "prop-types"; import React from "react"; import { DataTable, PlayerNameLabels } from "../../components"; import { getCols, helpers } from "../../util"; import type { View } from "../../../common/types"; import { Dropdown } from "react-bootstrap"; type HandleToggl...
export declare class MenuService { }
import App from "./App.svelte"; const app = new App({ target: document.getElementById("app"), }); export default app;
import { Action } from '@ngrx/store'; import { typeFor, QueryPayload } from '../util'; import { SliceAction } from '../slice/slice.actions'; import { actions as sliceActions } from '../slice/slice.actions'; import { RootState } from '../'; export const actions = { ...sliceActions, ADD: 'ADD', ADD_SUCCESS:...
/** * Copyright 2017-2020 Rex Lee * * THIS FILE IS PART OF PROJECT * ALL COPYRIGHT RESERVED * * Created by duguying on 2018/5/25. */ import Graph from "./graph"; import Af from "./af"; export type Chain = string[]; export default class GraphNetwork { private g : Graph = new Graph(); private labels : s...
export default [ ]
import { PaddingDirection, TruncationStrategy } from "../bindings/enums"; import { BPE } from "../bindings/models"; import { PaddingConfiguration, Tokenizer, TruncationConfiguration } from "../bindings/tokenizer"; import { BaseTokenizer } from "./base.tokenizer"; describe("BaseTokenizer", () => { let tokenizer...
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { enableProdMode } from '@angular/core'; import { environment } from './environments/environment'; import { AppModule } from './app/app.module'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModu...
import _ from 'lodash'; import {TailwindConfigParser} from './TailwindConfigParser'; import {nonConfigurableClassNames} from '../lib/non-configurable'; // prettier-ignore import { TAllClassnames, Backgrounds, Layout, Borders, Tables, Effects, Interactivity, TransitionsAndAnimations, Transforms, Accessibility, SVG, ...
import { Injectable, Injector } from '@angular/core'; import { AppComponentBase } from '@shared/common/app-component-base'; import { HubConnection } from '@aspnet/signalr'; @Injectable() export class ChatSignalrService extends AppComponentBase { constructor( injector: Injector ) { super(inject...
export class User { _id?: string; username: string; }
const Main = () => ( <> <a>teste</a> </> ) export default Main
import { dateTime, TimeRange } from '@grafana/data'; import { TemplateSrv } from '../../templating/template_srv'; import { onTimeRangeUpdated, OnTimeRangeUpdatedDependencies, setOptionAsCurrent } from './actions'; import { DashboardModel } from '../../dashboard/state'; import { DashboardState } from '../../../types'; ...
import * as assert from "assert"; import * as vscode from "vscode"; import { activateExtension, EXTENSION_ID } from "./common"; import { getCompilerOptions } from "../compilerOptions"; import { CompilerHost } from "../compilerHost"; import { CompilerOptions, Program } from "typescript"; import { Walker } from "../walke...
export { BaseDataSchemaCompiler } from './base' export { DataSchemaCompilerMaster } from './master' export { DataSchemaCompileResult } from './result' export { DDSCResult, DSCResult, DSCompiler, DSCompilerConstructor, DataSchemaCompiler, DataSchemaCompilerConstructor, DataSchemaCompilerContext, TDSCResu...
export declare class ViewerGlobals { disableInit: boolean; disableWebGL2Support: boolean; get version(): string; } export declare let viewerGlobals: ViewerGlobals;
import { EMPTY_OBJECT } from '../../../dummies' import { forEachChildToArray } from '.' test(forEachChildToArray.name, (): void => { const collection = { 'id1': { value: 1 }, 'id2': { value: 2 }, 'id3': { value: 3 }, 'id4': { value: 4 }, 'id5': { value: 5 }, } const output = forEachChildToArr...
import * as React from "react"; import Step, { Props as StepProps, StepState } from "./Step"; import "./Stepper.less"; export interface Props { className?: string; steps: StepProps[]; currentStepID: string; seekableStates?: StepState[]; onStepClick?: StepProps["onClick"]; } const cssClass = { STEPS_DISP...
import getSingleCourse, { getCourse } from "../saga"; import * as course from "./mocks/course.json"; import * as user from "./../../Auth/tests/mocks/user.json"; import { put, takeEvery } from "redux-saga/effects"; import { courseActionError, courseActionSuccess } from "../actions"; import { COURSE_ACTION } from "../con...
/* * Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { registerElementSafely } from '@cds/core/internal'; import { CdsRange } from './range.element.js'; i...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { HttpResponse, HttpErrorResponse } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { JhiEventManager, Jh...
export * from './lib/number'; // @ts-ignore // import WebCapture from 'webpage-capture'; // import http from 'http'; import IPs from './lib/IPs'; import ChromeCastServer from './lib/server'; const server = new ChromeCastServer( [ {url: 'http://github-dashing.herokuapp.com/default', displayTime: 10000}, ...
import { BeanStub } from "./context/beanStub"; import { Column } from "./entities/column"; import { ColumnEventType } from "./events"; export declare class SortController extends BeanStub { private static DEFAULT_SORTING_ORDER; private gridOptionsWrapper; private columnController; private columnApi; ...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ReportingComponent } from './reporting.component'; const routes: Routes = [{ path: '', component: ReportingComponent }]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule], }) expo...
// Copyright 2018-2021 Polyaxon, 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 agre...
/* * 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 { CoreSetup } from 'src/core/public'; import { ManagementAppMountParams...
export const users = [ { id: "1", name: "Ada Lovelace", birthDate: "1815-12-10", username: "@ada" }, { id: "2", name: "Alan Turing", birthDate: "1912-06-23", username: "@complete" } ];
import React, { Component } from 'react' export default class Ralph extends Component<any,any> { render() { return ( <div className = "ralph"> <h2>{this.props.device_name}(Ralph)</h2> <h3>Server: Home</h3> <button style ={this.props.active_status...
/* GENERATED FILE */ import * as React from 'react'; import Svg, { Rect, Path, Line, Polyline } from 'react-native-svg'; import { IconProps } from '../lib'; function SpeakerSlash(props: IconProps) { return ( <Svg id="Raw" viewBox="0 0 256 256" width={props.size} height={props.size} ...
import { MonacoOverrideServiceRegistry } from '@opensumi/ide-core-browser'; import { ILoggerManagerClient, Emitter, CommandRegistry } from '@opensumi/ide-core-common'; import { WorkbenchEditorService, EditorCollectionService } from '@opensumi/ide-editor'; import { MonacoActionRegistry, MonacoCommandRegistry, Mona...
/* eslint-disable @typescript-eslint/restrict-plus-operands */ import { CommandManager } from "../utils/CommandManager"; import { ListenerLoader } from "../utils/ListenerLoader"; import { createLogger } from "../utils/Logger"; import { YouTube } from "../utils/YouTube"; import * as config from "../config"; import { Cli...
import 'reflect-metadata'; import { ApolloServer, Config } from 'apollo-server-express'; import bodyParser from 'body-parser'; import { config } from 'dotenv'; import Express from 'express'; import helmet from 'helmet'; import createSchema from './utils/createSchema'; import { logger } from './utils/globalMethods'; i...
import { Injectable } from '@angular/core'; import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable() export class JwtInterceptor implements HttpInterceptor { intercept(request: HttpRequest<any>, next: HttpHandler): Observable<Http...
export class DoctorInfo { fullname:string; dob:string; address:string; speciality:string; qualification:string; availablity:boolean; userName:string; }
export * from './menu-group.model'; export * from './menu-options.model'; export * from './menu.model'; export * from './neo-menu-component';
import { Component, OnInit } from '@angular/core'; import { StuServiceService } from '../stu-service.service'; import { Student } from '../student'; import { TrainersService } from '../trainers.service'; import { Trainer } from '../Trainer'; import { Course } from '../Course'; import { CourseService } from '../course.s...
export interface IBaseResponse { valid: boolean; message?: string; }
interface Array<T> { constructor(getEnumerator: () => linqjs.IEnumerator<T>); getEnumerator(): linqjs.IEnumerator<T>; // Extension Methods traverseBreadthFirst(func: (element: T) => linqjs.IEnumerable<T>): linqjs.IEnumerable<T>; traverseBreadthFirst<TResult>(func: (element: T) => linqjs.IEnumerable...
import { Inject, Injectable } from '@angular/core'; import {HttpClient, HttpHeaders} from '@angular/common/http' import {USER} from '../model/user' import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class DummyService { url: string = 'http://5.252.224.199:3000/'; constructor(private ...
import styled from 'styled-components'; import themes from 'src/styles/DefaultTheme'; export const Container = styled.div` display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; flex-direction: column; .row { display: flex; width: 100%; justify-content: center; align-it...
import * as React from 'react'; function SvgAlignRight( props: React.SVGProps<SVGSVGElement>, svgRef?: React.Ref<SVGSVGElement> ) { return ( <svg width="1.5em" height="1.5em" strokeWidth={1.5} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="...
import { Button, Divider, Stack, Typography } from "@mui/material"; import React from "react"; import { MovieList } from "../../components/modules/movies/MovieList"; import NextLink from "next/link"; const MoviesPage = () => { return ( <> <Stack direction="column" gap={2}> <Typography variant="h2" ...
import fetch from 'node-fetch'; import YoutubeElement from './youtubeElement'; import * as Credentials from '../config/local.env'; const apiKey = Credentials.googleYoutubeAPIKey; const ytSearchURL = 'https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=2&key=' + apiKey + '&q='; export default class Yo...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="en"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About DigitalPrice</source> <translation>About DigitalPr...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { DounotsComponent } from './dounots.component'; describe('DounotsComponent', () => { let component: DounotsComponent; let fixture: ComponentFixture<DounotsComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ ...
import { Injectable, UnauthorizedException } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { AuthCredentialsDto } from './dto/auth-credentials.dto'; import { UserRepository } from './user.repository'; import { JwtService } from '@nestjs/jwt' import { JwtPayload } from './jwt-payload....
export const getDatePrefix = (year?: number | null, month?: number | null) => { if (year == null) { return '' } if (month == null) { return `${year}` } const monthStr = month < 10 ? `0${month}` : `${month}` return `${year}-${monthStr}` }
import {promisify} from "util"; import fs from "fs"; export const readFileAsync = promisify(fs.readFile);
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getProPrefixCls } from 'choerodon-hap-ui/lib/configure'; import Trigger from '../trigger/Trigger'; import { Action } from '../trigger/enum'; import getPlacements, { AdjustOverflow } from './placements'; export type TooltipPlacement ...
import { assertEquals } from "https://deno.land/std@0.85.0/testing/asserts.ts"; // code under test import * as byteBlockUtils from "../usageTracker/byteBlockUtils.ts"; Deno.test({ name: "byteBlockUtils.mergeTags() - handle empty tags", fn: async () => { // arrange const tags1 = new Set<string>...
import React, { forwardRef, RefForwardingComponent } from 'react'; import Box, { Attributes, BoxProps } from '../Box/Box'; const Icon: RefForwardingComponent<SVGSVGElement, Attributes<Omit<SVGSVGElement, 'display'>, BoxProps & { size?: string; }>> = (props, ref) => { const { size = '1rem', ...rest } = pr...
/* eslint-disable global-require */ import { clear } from '../../src/useGuestWishlist/actions'; import { contextMock } from '../../__mocks__/context.mock'; import { Wishlist, WishlistItem } from '../../src/types'; describe('[BigCommerce - composables] useGuestWishlist clear', () => { let getProductsMock: jest.Mock<a...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { IUser } from '../../../shared/interfaces/user.interface'; import { UserService } from '../../../shared/services/user/user.service'; @Component({ selector: 'user-detail', templateUrl: 'user-detail.c...