text
stringlengths
10
953k
import { match } from 'node-match-path' import { RequestHandler, ResponseResolver, MockedRequest, } from './requestHandler' import { Mask } from '../composeMocks/glossary' import { set } from '../context/set' import { status } from '../context/status' import { cookie } from '../context/cookie' import { body } fro...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; const routes: Routes = [ { path: '', redirectTo: 'home', pathMatch: 'full' }, { path: 'home', loadChildren: './home/home.module#HomePageModule' }, { path: 'list', loadChildren: './lis...
export * from './entity/User'; export * from './entity/UserFlags'; export * from './entity/UserSiteData'; export * from './storage'; // import "reflect-metadata"; // import {createConnection} from "typeorm"; // import {User} from "./entity/User"; // createConnection().then(async connection => { // console.log("I...
// GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY import { Component as OmiComponent, h, tag } from 'omi'; import { rmIEFP } from 'omi-tools'; import type { AntdIconProps } from '../components/types'; import '../components/AntdIcon'; const VerticalAlignTopOutlinedSvg: AntdIconProps['icon'] = {"icon":{"...
import { CommandError } from "@kachkaev/commands"; import * as turf from "@turf/turf"; import chalk from "chalk"; import fs from "fs-extra"; import _ from "lodash"; import path from "path"; import { deepClean } from "../../deepClean"; import { TrivialName } from "../../helpersForNames"; import { normalizeSpacing } fro...
import { Injectable } from "@angular/core"; import { BehaviorSubject, Observable, Subscription } from "rxjs"; import { filter, map } from "rxjs/operators"; export type MessageCallback = (payload: any) => void; @Injectable() export class BroadcastService { private _msalSubject : BehaviorSubject<any> ; private ...
import { NgModule } from "@angular/core"; import { Routes } from "@angular/router"; import { NativeScriptRouterModule } from "nativescript-angular/router"; import { WeatherHomeComponent } from "./weather-home/weather-home.component"; import { PanelComponent } from "./panel/panel.component"; const routes: Routes = [ ...
declare namespace DarkMist { /** * Base64 */ class Base64 { /** * Base64 List */ private static _BASE64_STRING; /** * Format decode error string * * @param data Decode string * @param index Decoding error position *...
import AppSettingsService from './AppSettingsService'; import { AccountInfo, Configuration, AuthenticationResult, PublicClientApplication, SilentRequest, RedirectRequest, EndSessionRequest } from "@azure/msal-browser" class AuthService { constructor(appSettings: AppSettingsService) { if (!appSettings) { ...
///<reference path="TheSeaPattern.ts"/> class TheSeaPattern_MaybeOneMediumFish extends TheSeaPattern{ // Constructor constructor(theSea: TheSea, initialDistance: number){ super(theSea, initialDistance); } // Public methods public isPatternDone(): boolean{ if(this.getTheSea().ge...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, EventEmitter, forwardRef, Host, Inject, Input, Optional, Output, QueryList, Self, SkipSelf, ViewChildren, ViewEncapsulation } from '@angular/core'; import { NgControl, NgForm ...
import { newE2EPage } from '@stencil/core/testing'; describe('a11y-menu-item', () => { it('renders', async () => { const page = await newE2EPage(); await page.setContent('<a11y-menu-item></a11y-menu-item>'); const element = await page.find('a11y-menu-item'); expect(element).toHaveClass('hydrated'); ...
const ua = navigator.userAgent; const w = window as any; // // Devices // /** Is Android Device */ export const isAndroid: boolean = /*#__PURE__*/ /Android/.test(ua); /** Is Windows Device */ export const isWindows: boolean = /*#__PURE__*/ /(win32|win64|windows|wince)/i.test(ua); /** Is Mac Device */ export const i...
import React from 'react'; import HeaderTable from './HeaderTable'; import HeaderTableCards from './HeaderTableCards'; import HeaderTableDescription from './HeaderTableDescription'; import { HTableContainerProps } from './interfaces'; function HeaderTableContainer({ data }: HTableContainerProps) { return ( <div...
import Event from '../models/Event'; test('Test invalid event', async () => { expect(() => { // @ts-ignore //ignore invalid type passing const invalidEvent = new Event(null, null, null); console.log(invalidEvent); //to suppress unused variable }).toThrow(); });
export * from './workspace.dto'; export * from './create-workspace.dto'; export * from './update-workspace.dto'; export * from './add-workspace-user.dto';
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AppComponent } from './app-component/app.component'; import { NavbarComponent } from './navbar-component/navbar.component'; import { InfoComponent } from './info-component/info.component'; import { GameComponent...
import * as React from 'react'; import { View, StyleSheet, LayoutChangeEvent, Platform, ViewStyle, } from 'react-native'; import Animated from 'react-native-reanimated'; import { getStatusBarHeight } from 'react-native-safe-area-view'; import HeaderBackButton from './HeaderBackButton'; import HeaderBackground...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. import * as Q from "q"; import * as path from "path"; import * as WebSocket from "ws"; import { EventEmitter } from "events"; import { ensurePackagerRunning } from "../commo...
/** * Listview(pull down refresh、pull up load more) * 1. dataSource * 2. Item * 3. onRefresh * 4. onEndReached * 5. fnLink * 6. useBodyScroll */ import * as React from "react"; import List from "./List"; import "./style"; class Listview extends React.PureComponent { constructor(props: any) { super(...
import React from 'react'; export declare const PageHeader: React.FC<{}>;
import * as Types from '../../server/generated/graphql'; import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type ShopsNumberQueryVariables = Types.Exact<{ [key: string]: never; }>; export type ShopsNumberQuery = ( { __typename?: 'Query' } & { shopsConnection: ( { __...
import React from "react"; import Button from "../button/button"; import Message from './message' const MessageExample1 = ()=>{ const info = ()=>{ Message.info({ content:'This is a normal message' }); } const success = ()=>{ Message.success({ content:'This is a success message' }); ...
import { Node } from "./Node"; import { BlockParentNode } from "./BlockParentNode"; import { Position } from "./Position"; import { FormatNode } from "./FormatNode"; import { TextNode } from "./TextNode"; export type Location = { row: number, column: number }; export class TableNode extends Node<BlockParentNode> { ...
import * as assert from "assert"; import { Aborter } from "../src/Aborter"; import { ContainerURL } from "../src/ContainerURL"; import { getBSU, getUniqueName } from "./utils"; import * as dotenv from "dotenv"; dotenv.config({path:"../.env"}); // tslint:disable:no-empty describe("Aborter", () => { const serviceURL ...
/** * Domain Element Index */ import { CalculationDisplay } from "./CalculationDisplay" import { Sakata } from "./Sakata" export { CalculationDisplay, Sakata }
// Here go all dependencies that plugins reuqire, // but are not explicitly imported from any file reachable // from the app entry file (in our case `js/app2.js`) import {BrainstormingFormComponent} from '../components/brainstorming/brainstorming-form.component'; import {BrainstormingPanelComponent} from '../component...
const source = process.argv[2]; import { ScottishPostcode } from "../app/models/index"; if (!source) { console.log("Aborting Import. No source directory specified"); process.exit(1); } export const run = async () => { try { const start = process.hrtime(); console.log("Importing postcodes..."); awai...
export * from './object.create.component'; export * from './object.details.component';
export * from './MDXComponents'
import transact from '../db/transaction' import { createGameRecord } from '../models/games' import { createGameUserRecord } from '../models/games-users' import { findUserIdsForNames } from '../models/users' import { GameConfig, GameConfigPlayerName, GameSource } from './configuration' import { genResultCode } from './g...
import { track, trigger } from './effect' import { TrackOpTypes, TriggerOpTypes } from './operations' import { isArray, isObject, hasChanged } from '@vue/shared' import { reactive, isProxy, toRaw, isReactive } from './reactive' import { CollectionTypes } from './collectionHandlers' declare const RefSymbol: unique symb...
import * as Factory from "factory.ts"; import { generateReactKey } from "utils/generators"; import { WidgetProps } from "widgets/BaseWidget"; export const VideoFactory = Factory.Sync.makeFactory<WidgetProps>({ isVisible: true, url: "https://assets.appsmith.com/widgets/bird.mp4", autoPlay: false, type: "VIDEO_W...
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { SoftDatetimePickerComponent } from './soft-datetime-picker.component'; describe('SoftDatetimePickerCo...
import * as React from 'react'; import { createIcon } from '../Icon'; export const ShieldOffIcon = createIcon( <React.Fragment> <path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18" /> <path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38" /> <line x1={1} y1={1} x2={23} y2={23} /> </Rea...
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // Borrowed from: https://github.com/magnusdanielson/aureactwrapper export function kebabCase(input: string): string { // Matches all places where a two upper case ...
import { renderWithTheme as render } from "../../../utils/testing" import { Basic } from "../ToggleCheckbox.stories" describe(`ToggleCheckbox`, () => { it(`correctly links label to the checkbox`, () => { const { getByLabelText } = render(Basic()) expect(getByLabelText(`Behaves like a checkbox`)).toHaveAttri...
import { Controller, Get, UseGuards, UseInterceptors, Post, Body, UsePipes, ValidationPipe, Request, HttpCode, Patch, Param, } from '@nestjs/common' import { ApiOperation, ApiTags, ApiBearerAuth, ApiOkResponse, ApiUnauthorizedResponse, ApiBadRequestResponse, ApiNotFoundResponse, } ...
/// <reference path="..\compiler\commandLineParser.ts" /> /// <reference path="..\services\services.ts" /> /// <reference path="utilities.ts" /> /// <reference path="session.ts" /> /// <reference path="scriptVersionCache.ts"/> /// <reference path="project.ts"/> /// <reference path="typingsCache.ts"/> namespace ts.serv...
import 'codemirror/lib/codemirror.css' import 'codemirror/theme/monokai.css' import 'codemirror/mode/coffeescript/coffeescript' import './Compiler.css' import { UnControlled as CodeMirror } from 'react-codemirror2' import React from 'react' import c2a from 'coffee-ahk' // component const Compiler: React.FC = () => { ...
import * as prettier from "prettier"; // tslint:disable-next-line: no-implicit-dependencies import { Uri } from "vscode"; import { ModuleResolver } from "./ModuleResolver"; const ESLINT_SUPPORTED_LANGUAGES = [ "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", ]; const STYLE_PARSERS = ...
import { TestBed } from '@angular/core/testing'; import { UpdateOService } from './update-o.service'; describe('UpdateOService', () => { let service: UpdateOService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(UpdateOService); }); it('should be created', () => { ...
import { Component } from '@angular/core' import { MatIconRegistry } from '@angular/material/icon' import { DomSanitizer } from '@angular/platform-browser' @Component({ selector: 'app-root', template: ` <mat-toolbar color="primary" fxLayoutGap="8px"> <button mat-icon-button><mat-icon>menu</mat-icon></but...
import { buildUrl } from "v2/Components/ArtworkFilter/Utils/urlBuilder" import { useArtworkFilterContext } from "v2/Components/ArtworkFilter/ArtworkFilterContext" import { useRouter } from "v2/System/Router/useRouter" import { stringify } from "qs" export function useComputeHref() { const { match: { location }, ...
///<reference path="./app.ts"/> ///<reference path="./models/datePickerConfig.ts"/> ///<reference path="./models/repeaterFinishedArgument.ts"/> ///<reference path="./filters/emptyForNull.ts"/> ///<reference path="./filters/rials.ts"/> ///<reference path="./filters/unsafe.ts"/> ///<reference path="./filters/whitespaceFo...
/* * Copyright 2020 The Backstage Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
/* Generated from: * ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 14.2.0, * ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 14.2.0, * ap-south-1 (https://d2senuesg1djtx.cloudf...
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; // Just return the tree export function ngAdd(_options: any): Rule { return (tree: Tree, _context: SchematicContext) => { _context.addTask(new NodePackageInstallTa...
/* Copyright Contributors to the Open Cluster Management project */ import { IResource, ManagedClusterAddOn, ResourceError, ResourceErrorCode, SubmarinerConfig } from '../resources' import { deleteResources } from './delete-resources' export function deleteSubmarinerAddon(managedClusterAddon: ManagedClusterAddOn, sub...
export default { props: { // 测边栏标题 asideTitle: String, // 侧边栏顶部高度 asideHeaderHeight: { type: String, default: '30px' }, // 侧边栏宽度 asideWidth: { type: String, default: '200px' }, hasAsideHeader: { type: Boolean, default: true } }, data () {...
import React from 'react'; import { ApolloClient, DefaultOptions } from '../../../ApolloClient'; import { ApolloLink } from '../../../link/core/ApolloLink'; import { Resolvers } from '../../../core/types'; import { ApolloCache } from '../../../cache/core/cache'; import { MockedResponse } from '../../../utilities/testin...
import * as React from 'react'; import { FormikErrors } from 'formik'; import { wizardPage, IWizardPageProps, IJob } from '@spinnaker/core'; export type IDisclaimerProps = IWizardPageProps<IJob>; class CfDisclaimerWizardPage extends React.Component<IDisclaimerProps> { public static LABEL = 'Disclaimer'; public...
<TS language="fr_FR" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Clique droit pour modifier l'adresse ou le label</translation> </message> <message> <source>Create a new address</source> ...
/** * Copyright 2020, Yahoo Holdings Inc. * Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. * */ import Component from '@glimmer/component'; import config from 'ember-get-config'; import { getOwner } from '@ember/application'; import { camelize } from '@ember/string'; import...
export default { amount: { currency: 'BRL', subtotals: { shipping: 1000, }, }, items: [ { product: 'Descrição do pedido', quantity: 1, detail: 'Mais info...', price: 1000, }, ], customer: { fullname: 'Jose Silva', email: 'jose_silva0@email.com', birthDate: '1988-12-30', taxDocument...
/* * Copyright © 2019 Province of British Columbia * 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 ...
import { select } from 'd3'; import React, {useState, useEffect, useRef} from 'react'; import styled from 'styled-components'; import createChart from './createChart'; import debounce from 'lodash/debounce'; import {Datum} from './types'; const Root = styled.div` width: 100%; height: 100%; margin: auto; `; cons...
import { Injectable } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { Http, Headers } from '@angular/http'; import { FieldBase } from '../../user/shared/field/field-base'; import { FieldText } from '../../user/shared/field/field-text'; import { FieldValidators } from...
/** * * This file is auto-generated. Do not edit manually: changes may be erased. * Generated by Aqua compiler: https://github.com/fluencelabs/aqua/. * If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues * Aqua version: 0.2.2-221 * */ import { FluenceClient, PeerIdB...
import { Orientation } from 'vega'; import { Field } from '../channeldef'; import { Encoding } from '../encoding'; import { NormalizerParams } from '../normalize/index'; import { GenericUnitSpec, NormalizedLayerSpec } from '../spec'; import { Interpolate } from '../vega.schema'; import { CompositeMarkNormalizer } from ...
export type UserProfile = { user: any, timezone: string, goldLogs: any[], pointsRank: number };
import Picker from './picker'; import AddressPicker from './addressPicker'; import PickerView from './pickerView'; export { Picker, AddressPicker, PickerView };
import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
import * as React from 'react'; import Ingress from 'nav-frontend-typografi/lib/ingress'; import './oppsummeringsseksjon.less'; interface OppsummeringsseksjonProps { ingress?: string; children: React.ReactNode; } const Oppsummeringsseksjon: React.StatelessComponent<OppsummeringsseksjonProps> = ({ ingress, chi...
import { fork, all } from 'redux-saga/effects' import * as uiSaga from './sagaAll' export function* rootSaga() { yield all([ ...Object.values(uiSaga) ].map(fork)); } // import { watchGetProduct} from './sagaAll'; // export default function* (){ // yield[ // watchGetProduct(), /...
/** * Types extracted from https://discord.com/developers/docs/resources/channel */ import type { Permissions, Snowflake } from '../../globals'; import type { APIPartialEmoji } from './emoji'; import type { APIGuildMember } from './guild'; import type { APIMessageInteraction } from './interactions'; import { APIAppl...
import {TestBed} from '@angular/core/testing'; import {RouteGuardsService} from './route-guards.service'; describe('RouteGuardsService', () => { beforeEach(() => TestBed.configureTestingModule({})); it('should be created', () => { const service: RouteGuardsService = TestBed.get(RouteGuardsService); expec...
namespace Facepunch { export interface ILoadable { loadNext(callback: (requeue: boolean) => void): void; getLoadPriority(): number; getLoadProgress(): number; } export interface ILoader { update(requestQuota: number): number; getLoadProgress(): number; } ...
type Album = { id: string; name: string; firstPublicationDate: number; scenarioArtist: string; drawArtist: string; images: string[]; }; type NewAlbum = { name: string; }; type Artist = { id: string; name: string; albums: EntityAlbumLink[]; images: string[]; createDate?: Date; createdBy?: str...
// Copyright 2017-2019 @polkadot/types authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. export default meta;
import { Store } from '@vue-storefront/storefront-api'; import { AgnosticStore, UseStoreGetters } from '@vue-storefront/core'; import { UseStoreFilterParams } from '../types'; // eslint-disable-next-line @typescript-eslint/no-unused-vars function getItems( stores: Store, criteria: UseStoreFilterParams = {} ): Agno...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { FC, useState, useContext, useEffect } from 'react'; import { ...
import { OnCommandEvent, OnSayEvent } from "../../models" import { EventBus, Events } from "../../events" import { ShouldThrottle } from '../shouldThrottle' /** * Sends a message to chat with a link to BaldBeardedBuilder's store * @param onCommandEvent */ export function Store(onCommandEvent: OnCommandEvent):void ...
// Copyright 2017-2020 @polkadot/app-democracy authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId } from '@polkadot/types/interfaces'; import { ComponentProps } from './types'; import React from 're...
import { Operator } from '../Operator'; import { Subscriber } from '../Subscriber'; import { ArgumentOutOfRangeError } from '..//util/ArgumentOutOfRangeError'; import { Observable } from '../Observable'; import { TeardownLogic } from '../Subscription'; import { MonoTypeOperatorFunction } from '../../internal/types'; /...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="la"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+20"/> <source>About Digitalmoneybits</source> <translation type="unfinished"></translation> </message...
<TS language="es_VE" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Click derecho para editar la dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> ...
import React from 'react' import {BrowserRouter, Route} from 'react-router-dom' import { Landing } from '../pages/Landing' import { TeacherList } from '../pages/TeacherList' import { TeacherForm } from '../pages/TeacherForm' export function Routes() { return ( <BrowserRouter> <Route path='/' exact compone...
import Base, { ChainProviders } from './Base' import Token from './models/Token' import TokenClass from './Token' import arbErc20Abi from '@hop-protocol/core/abi/static/ArbERC20.json' import arbitrumGlobalInboxAbi from '@hop-protocol/core/abi/static/ArbitrumGlobalInbox.json' import l1HomeAmbNativeToErc20 from '@hop-pro...
import { useState, useEffect } from 'react'; import { api } from '../services/api'; import '../styles/content.scss'; import { Header } from './Header'; import { MovieCard } from './MovieCard'; interface MovieProps { imdbID: string; Title: string; Poster: string; Ratings: Array<{ Source: string; Value:...
import { ApiProperty } from '@nestjs/swagger'; export class LoginDto { @ApiProperty() password: string; @ApiProperty() username: string; }
export interface User { id : number, name : string, email : string, password : string, rol : string, score : number }
import "@testing-library/jest-dom"; import "@testing-library/jest-dom/extend-expect"; import { render, screen } from "@testing-library/react"; import React from "react"; import TestWrapper from "../../../tests/components/TestWrapper"; import { albumGridItemDefault, reviewListItemDefault } from "../../../tests/defau...
import { VERIFY_CODE_VALID_INTERVAL } from '../../app/env'; export function verifyCodeExpiredDate(startDate: Date): Date { const time = startDate.getTime() + VERIFY_CODE_VALID_INTERVAL; return new Date(time); }
import * as _ from 'lodash' import { TransactionFilter } from '../controllers/model' import { HoldInfo, TransactionCancelledInfo, TransactionDetail, TransactionDetailExt, TransactionInfo, TransactionKind, TransactionPendingInfo, TransactionRejectedInfo, TransactionScheduledInfo } from './model' interface Transa...
/* tslint:disable */ import { Injectable } from '@angular/core'; import { HttpClient, HttpResponse } from '@angular/common/http'; import { BaseService } from '../base-service'; import { ApiConfiguration } from '../api-configuration'; import { StrictHttpResponse } from '../strict-http-response'; import { RequestBuilder ...
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core'; import { Location, LocationStrategy, PathLocationStrategy, PopStateEvent } from '@angular/common'; import 'rxjs/add/operator/filter'; import { NavbarComponent } from '../../components/navbar/navbar.component'; import { Router, NavigationEnd, N...
export default (encoded: Uint8Array) => { const decoded = new Uint8Array(Math.floor((7 / 8) * encoded.byteLength)); let next = 0; for (let i = 0; i < encoded.byteLength - 1; i++) { const carryBits = i % 8; if (carryBits != 7) { decoded[next++] = (encoded[i] << (carryBits + 1)) | (enc...
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react' import { Icon, List } from 'semantic-ui-react' import { Party } from '@daml/types'; import { User } from '@daml.js/create-daml-app'; type Props = { user...
import { Component, OnInit, NgModule } from '@angular/core'; import { PublicationsService } from '../../../../services/publications.service'; @Component({ selector: 'app-frontoffice', templateUrl: './frontoffice.component.html', styleUrls: ['./frontoffice.component.scss'] }) export class FrontofficeComponent i...
/******************************************************************************** * Copyright (C) 2018 Red Hat, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. *...
import * as React from 'react'; import { Card } from '@alifd/next'; import classnames from 'classnames'; import successIcon from '@/assets/success.svg'; import styles from './index.module.scss'; interface IScaffoldCardProps { title: string | React.ReactNode; content?: string | React.ReactNode; selected: boolean;...
import Vue from 'vue' import Vuex from 'vuex' import VueRouter from 'vue-router' import {render, fireEvent, screen, waitFor} from '@testing-library/vue' declare const elem: Element const SomeComponent = Vue.extend({ name: 'SomeComponent', props: { foo: {type: Number, default: 0}, bar: {type: String, defau...
/** * Object Storage Service API * Common set of Object Storage and Archive Storage APIs for managing buckets, objects, and related resources. For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and [Overview of Archive Storage](/Content/Archive/Concepts/archives...
import { createServer as createHttpServer, Server as HttpServer, IncomingMessage, ServerResponse } from 'http'; import { createServer as createHttpsServer, Server as HttpsServer } from 'https'; import {readFileSync} from 'fs'; import {join} from 'path'; import {Readable} from 'stream'; import {...
class InvalidParamError extends Error { constructor (paramName: string) { super() this.name = 'InvalidParamError' this.message = `The param "${paramName}" is invalid` } } export default InvalidParamError
import {DefaultOptions} from '../helpers/options.interface'; import {ResizeDimensions} from '../methods/images.interfaces'; import {CheckMethodOptions} from './check.interfaces'; export interface SaveElementOptions { wic: DefaultOptions; method: SaveElementMethodOptions; } export interface SaveElementMethodOption...
import { Injectable } from "@angular/core"; import { Observable } from "rxjs/Observable"; import { CommonService } from "./common-service"; @Injectable() export class NewInboundReceiptService extends CommonService { public getInboundDetail(): Observable<any> { return this.hc.get(this.apiURL.inboundReceipt); } ...
import {User} from '@prisma/client' const users: Array<User>= [ { id:1, name: 'Nabin Jha', email: 'sales@nabin.com', password: '$2a$10$PmXVMju.K0Uzu7xIW8iktuDvum.SMsirvTVVqRBv71IVpDgxfbmGm', isAdmin: true } ]; export default users;
import { Component, Input } from '@angular/core'; import { ControlComponent } from '../control.component'; import { ControlNumber } from './control-number'; @Component({ selector: 'control-number-component', templateUrl: 'control-number.component.html', }) export class ControlNumberComponent extends ControlComponent...