text
stringlengths
10
953k
export const prettifyURL = (url: string): string => { const u = new URL(url); return `${u.protocol}//${u.hostname}`; };
import * as React from 'react'; import Grid from '@material-ui/core/Grid'; import { MoleculeBrowser as MoleculeBrowserBase, CoreProps, } from '../../base/browser/no-viewers'; import { Breadcrumbs } from '../breadcrumbs'; import { MoleculeTable, } from '../../../../Assets/MoleculeTable/components/style...
import { isDepExists, createDebugger, compatRequire, INTERNAL_PLUGINS, } from '@modern-js/utils'; import type { UserConfig } from './config'; import { CliPlugin, createPlugin } from './manager'; const debug = createDebugger('load-plugins'); type PluginItem = string | [string, any]; export type LoadedPlugin =...
import { DeleteHsmClientCertificateInput } from "../shapes/DeleteHsmClientCertificateInput"; import { DeleteHsmClientCertificateOutput } from "../shapes/DeleteHsmClientCertificateOutput"; import { InvalidHsmClientCertificateStateFault } from "../shapes/InvalidHsmClientCertificateStateFault"; import { HsmClientCertifica...
import React, { useState, useEffect } from "react"; import * as S from './styled'; import * as Type from './../../types'; import Client from './../Client/Client'; import * as api from '../../data/api'; export default function Clients() { let clientsData: Type.Clients = api.get('clients'); let data = clientsD...
import { ContentType, createHttpResponse, DEFAULT_REQUEST_TIMEOUT_MS, HttpCode } from '@coolio/http'; import { JsonApiClient, SortOrder } from '../'; import { JsonListResponse } from '../responses'; import { Data } from '../types'; import { createHttpMock, HttpMock } from './httpClient.setup'; import { DefaultHeadersMo...
export interface RecordModule { stockCode: string; stockType: string; risePercent: string; fallPercent: string; mobile?: string; }
/** @jsxRuntime automatic */ import React, { Fragment } from 'react'; import { ThemeProvider } from 'theme-ui'; import { Shapes } from '../components/shapes'; import { theme } from '../components/theme/theme'; import { Header } from '../components/layout/header'; import { Hero } from '../components/layout/hero'; import...
import "reflect-metadata"; import {createTestingConnections, closeTestingConnections, reloadTestingDatabases} from "../../utils/test-utils"; import {Connection} from "../../../src/connection/Connection"; import {Post} from "./entity/Post"; import {Category} from "./entity/Category"; /** * Because lazy relations are o...
// Generated typescript code of HL7v 2.3 DG1 (Diagnosis) import mongoose from "mongoose"; import Segment from "./Segment"; export type HL7DiagnosisV3Document = mongoose.Document & HL7DiagnosisV3I const HL7DiagnosisV3Schema = new mongoose.Schema({ hl7Segment: String, hl7version: String, id: String, setIDD...
export interface TokenResponse { token: string }
import schedule from 'node-schedule' import { uuid } from './uuid' export default class ScheduleJob { id: string ruleTime: object action: any constructor(ruleTime: object, action: any) { this.id = uuid() this.ruleTime = ruleTime this.action = action } start = (): void ...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import * as d3 from "d3"; import type { Graph } from "graphlib"; import type { App, TFile } from "obsidian"; import { openOrSwitch } from "src/sharedFunctions"; import { dfsFlatAdjList, VisModal } from "src/VisModal"; export const tidyTree = ( graph: Graph, app: App, currFile: TFile, modal: VisModal, width: ...
import { defaultEnv, Env } from './env'; export const environment = { production: true, wallet: "0x8c5233fcd924a336e35249fea32090a707c0033b", tatumKey: "" };
import { Injectable } from '@nestjs/common'; import { Task, TaskStatus } from './tasks.model'; import {v1 as uuid} from "uuid" import { CreateTaskDto } from './dto/create-task.dto'; @Injectable() export class TasksService { private tasks: Task[] = []; // this :Task[] simply defining the type getAllTask...
import * as React from 'react'; import { EditorContext, StepsInfo, Committed } from './Types'; import * as collab from "prosemirror-collab"; import { withEditorContext } from './EditorContextHOC'; import { Step } from 'prosemirror-transform'; import { Transaction, EditorState } from 'prosemirror-state'; import { Schema...
import 'core-js/shim'; import 'classlist-polyfill'; require('zone.js/dist/zone'); if (process.env.ENV === 'build') { // Production } else { // Development Error['stackTraceLimit'] = Infinity; require('zone.js/dist/long-stack-trace-zone'); }
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, HandlerExecutionContext, HttpHandlerOptions...
import { Component } from "@angular/core" @Component({ selector: "emp-root", template: ` <button routerLink="/">List employee</button> <button routerLink="/form">Add employee</button> <router-outlet></router-outlet> `, styles: [], }) export class AppComponent {}
import { Injectable } from '@angular/core'; import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router } from '@angular/router'; import { Observable } from 'rxjs'; import { AuthService } from '../services/auth.service'; import Swal from 'sweetalert2'; @Injectable({ providedIn: 'root' }) expor...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { LinguaSelectorComponent } from './lingua-selector.component'; describe('LinguaSelectorComponent', () => { let component: LinguaSelectorComponent; let fixture: ComponentFixture<LinguaSelectorComponent>; beforeEach(async(() => { ...
import {Component, OnInit} from '@angular/core'; import {RoleService} from "../../../../@core/data/role.service"; import {ActivatedRoute} from "@angular/router"; @Component({ selector: 'ngx-add-edit-permission', templateUrl: './add-edit-permission.component.html', styleUrls: ['./add-edit-permission.compone...
import { celebrate, Joi, Segments } from "celebrate"; import { Router } from "express"; import ForgotPasswordController from "../controllers/ForgotPasswordController"; import ResetPasswordController from "../controllers/ResetPasswordController"; const passwordRouter = Router(); const forgotPasswordController = new For...
import { CollectionsHubLinkedCollections } from "Apps/__tests__/Fixtures/Collections" import { useTracking } from "Artsy/Analytics/useTracking" import { mount } from "enzyme" import React from "react" import { ArtistSeriesEntity, ArtworkImage, StyledLink, } from "../ArtistSeriesEntity" jest.mock("Artsy/Analytics...
import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, PrimaryColumn, UpdateDateColumn } from "typeorm"; import { v4 as uuid } from "uuid"; import { User } from "./User"; @Entity("connections") class Connection { @PrimaryColumn() id: string; @Column() admin_id: string; @Column() socket_id: st...
import { ActionTagForm } from '../../commons/utils/actiontag.utils'; import { CommonSqlKeywordAdapter } from '../actions/common-sql-keyword.adapter'; export interface KeywordActionTagForm extends ActionTagForm { payload: { keywordAction: 'set' | 'unset'; keywords: string; }; } export declare cla...
// ag-grid-enterprise v21.2.0 export declare class FpsCounter { constructor(parent?: HTMLElement, document?: Document); private fps; private minFps; private maxFps; private pastFps; private maxPastFps; private lastSecond; private readonly fpsElement?; countFrame(): void; }
const mongoose = require('mongoose') const random = require('mongoose-simple-random') const Schema = mongoose.Schema const recipesSchema = mongoose.Schema( { title: String, image: String, time: Number, energy: Number, categories: [ { type: Schema....
let x: [];
/// <reference types="node" /> import { Buffer } from 'buffer'; import { BMFont, IBMFontParser } from "../types"; declare class BMFontBinaryParser implements IBMFontParser<Buffer> { private static HEADER; parse(buf: Buffer): BMFont; private readBlock; private readInfo; private readCommon; privat...
import * as React from 'react'; export type MenuTriggerProps = { /** * Explicitly require single child or render function */ children: (React.ReactElement & { ref?: React.Ref<unknown> }) | ((props: MenuTriggerChildProps) => React.ReactNode); }; /** * Props that are passed to the child of the MenuTrigger wh...
//CREATE AT: 2021-11-13 import {ActionContext, Module} from "vuex"; interface IMain { count: number, name: string } const mainOptions: Module<IMain, any> = { namespaced: true, state: { count: 1, name: "baby" }, actions: { increment(context: ActionContext<IMain, any>) { ...
import { mock, restore } from 'aws-sdk-mock' import { useFakeTimers, SinonFakeTimers } from 'sinon' import { handler } from './securityConfigTransitEncryption' import { expect } from 'chai' describe('emr cluster security configurations should have transit encryption', () => { const now = new Date(0) let clock: Sin...
/* * Copyright 2021 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * http://www.apache.org/licenses/LICENSE-2.0 * * or in the "...
import * as React from 'react'; import styled from 'styled-components'; const Bar = styled.div` background: ${props => props.theme.grey}; display: flex; justify-content: flex-start; width: 100%; height: 4px; border-radius: 2px; `; const Rejected = styled.div` && { background-color: ${props => props.theme.red...
export const language = { model: { pamApplication: { name: 'Application', key: { ictoNumber: 'ICTO Number' } }, asset: { name: 'Asset', combinedStatus: 'Combined Status', status: { assetSt...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { QuestionnairesComponent } from './questionnaires.component'; describe('QuestionnairesComponent', () => { let component: QuestionnairesComponent; let fixture: ComponentFixture<QuestionnairesComponent>; beforeEach(async(() => { ...
import { LoginBody } from '$/validators' export type Methods = { post: { reqBody: LoginBody resBody: { token: string } } }
export * from './CheckIcon'; export * from './ChevronRightIcon'; export * from './ExpoLogoIcon'; export * from './HomeFilledIcon'; export * from './InfoIcon'; export * from './QuestionMarkIcon'; export * from './RefreshIcon'; export * from './ShakeDeviceIcon'; export * from './ShowMenuIcon'; export * from './SettingsFi...
import { DocumentClient } from "aws-sdk/clients/dynamodb"; import { createHandler } from "@webiny/handler-aws"; import i18nPlugins from "@webiny/api-i18n/graphql"; import i18nDynamoDbStorageOperations from "@webiny/api-i18n-ddb"; import i18nContentPlugins from "@webiny/api-i18n-content/plugins"; import dbPlugins from "...
export interface RecordConfig { id: number; option1: string; option2: string; option3: string; isActive: boolean; extra: { data1: string; data2: string; }; }
import { RuntimeEvent, BaseEventMap } from './base'; export interface ExternalApplicationEvents extends BaseEventMap { connected: RuntimeEvent<'externalapplication', 'connected'>; disconnected: RuntimeEvent<'externalapplication', 'disconnected'>; }
import { Component, OnInit, Input, EventEmitter, Output, ElementRef, ViewChild, } from '@angular/core'; import { FormControl, FormGroup, } from '@angular/forms'; import {CdkTextareaAutosize} from '@angular/cdk/text-field'; import {I18nService} from "core-app/modules/common/i18n/i18n.service"; import {...
/* * 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 React, { FunctionComponent, useMemo, useContext } from 'react'; import './TreeBuilding.css'; import { Icon, IconStyle } from '../common/Icon'; import { TreeLink } from './TreeLink'; import { TreeContext } from './TechTree'; import { TreeUnit } from './TreeUnit'; import { EntityDetails } from '../common/EntityDet...
namespace bansho { declare let mat4:any; declare let vec4:any; declare let Viz : any; const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; let viz : any; let sim: Simulation; let srcVar : Variable | null = null; let simEditDlg : HTMLDialogElement; let simParamsInp : HTMLInputElement; let texEditDlg...
// Core import { Injectable } from "@nestjs/common"; import { AuthGuard } from "@nestjs/passport"; @Injectable() export class JwtAuthGuard extends AuthGuard("jwt") {}
import { DChartSeriesLinearParameters, DChartSeriesLinearParametersOptions } from "./d-chart-series-linear-parameters"; export class DChartSeriesExpressionParametersImpl implements DChartSeriesLinearParameters { protected _id: number; protected _idUpdated: number; protected _a: number; protected _b: number; pro...
/// <reference path="../../../node.d.ts" /> export = Model_RouterPlan; import Util = require('../../Util'); import Client = require('../Client'); import Model = require('./Model'); import Resource = require('../resources/Resource'); import RouterPlan = require('../resources/RouterPlan'); 'use strict'; /** * ルータ帯域プ...
import * as React from 'react'; import { compose } from 'recompose'; import { StyleRulesCallback, withStyles, WithStyles } from 'src/components/core/styles'; import Typography from 'src/components/core/Typography'; import DateTimeDisplay from 'src/components/DateTimeDisplay'; import ExternalLink from 'src/compone...
export * from './service' export * from './engine' export * from './http' export * from './handlers/express' export * from './handlers/next' export * from './handlers/micro'
import { Field, Formik, FormikProps } from 'formik'; import { Link } from 'office-ui-fabric-react'; import React, { useContext, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { style } from 'typestyle'; import ConfirmDialog from '../../../../../../components/ConfirmDialog/ConfirmDialog'...
import React from "react"; import styled from "styled-components"; import { Popover, InputGroup, PopoverInteractionKind, Position, Classes, } from "@blueprintjs/core"; import { ReactComponent as CheckedIcon } from "assets/icons/control/checkmark.svg"; import { debounce } from "lodash"; const ColorIcon = styl...
'use strict'; /** imports */ import {createStore, Store} from 'redux'; import combineStorageReducers from './reducers'; import ActionType from './action-type'; /** init */ let storageStates: Store; /** Storage */ const Storage = { init() { storageStates = createStore(combineStorageReducers()); return stora...
import { Component, OnInit, Input, OnDestroy, Output, EventEmitter, ViewChild, } from "@angular/core"; import { debounceTime, distinctUntilChanged, filter, finalize, switchMap } from "rxjs/operators"; import { MessageHandlerService } from "../../../../shared/services/message-handler.service"; import { ACTION_...
import type { NextPage } from "next"; import { QueryFunction, useQuery } from "react-query"; import { Layout } from "components/Layout"; import { DataTable } from "@taskless/ui"; import { DateTime } from "luxon"; import { XIcon } from "@heroicons/react/solid"; import { GetLogsResponse } from "./api/rest/logs"; import {...
// Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: MIT import React, { useState, useEffect, useRef } from 'react'; import { Col } from 'antd/lib/grid'; import Select from 'antd/lib/select'; import Radio, { RadioChangeEvent } from 'antd/lib/radio'; import Checkbox, { CheckboxChangeEvent } from 'antd...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { analyzeFolders, AnalysisSeverity, MAX_FILE_SIZE, } from '@snyk/code-client'; import { ReportingDescriptor, Result } from 'sarif'; import { SEVERITY } from '../../snyk-test/legacy'; import { api } from '../../api-token'; import config from '../../config'; import { getBase64Encoding } from '../../code-conf...
import { BlockEvent, Finding, HandleBlock, FindingSeverity, FindingType, getEthersProvider, ethers } from 'forta-agent' import ECCDMetadata from './EthCrossChainData.json' const ethersProvider = getEthersProvider() const ECCD_ADDRESS = "0xcf2afe102057ba5c16f899271045a0a37fcb10f2" const eccdContract = new ethers.Contra...
/* * 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 { Component, ElementRef, ViewChild, AfterViewInit } from '@angular/core'; import { AngularFireAuth } from '@angular/fire/compat/auth'; import firebase from 'firebase/compat/app'; @Component({ selector: 'app-header', templateUrl: './header.component.html', styleUrls: ['./header.component.css'] }) export cl...
import * as React from 'react' import { Link } from 'react-router-dom' import { pathRouting, pathRoutingEdit } from '../path' import { RoutingState } from '../routing/module' import { ActionDispatcher } from './Container' interface Props { value: RoutingState actions: ActionDispatcher } export class RoutingList e...
import React, { memo, useCallback, useEffect } from 'react'; import ReactGA from 'react-ga'; import { Option } from 'react-select'; import { Illustration } from '@spinnaker/presentation'; import { IModalComponentProps, ModalHeader, ModalBody, ModalFooter, ReactSelectInput, FormikFormField, TextAreaInput...
declare interface IGithubProfileWebPartStrings { PropertyPaneDescription: string; BasicGroupName: string; ListNameFieldLabel: string; } declare module 'GithubProfileWebPartStrings' { const strings: IGithubProfileWebPartStrings; export = strings; }
import { Component, OnInit, ViewChild } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { ModalDirective } from 'ngx-bootstrap/modal'; import { exit } from 'process'; import { Utilisateur } from '../../models/utilisateur.model';...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AdminComponent } from '../admin/admin.component'; import { MemberComponent } from './member.component'; const routes: Routes = [ { path: '', component: MemberComponent, children: [ { p...
import { chain, externalSchematic, move, noop, Rule, Tree, SchematicContext, schematic } from '@angular-devkit/schematics'; import { Schema } from './schema'; import * as ts from 'typescript'; import { insertImport } from '@schematics/angular/utility/ast-utils'; import { addImportToModule, addImport...
/* Copyright 2020. Huawei Technologies Co., Ltd. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless ...
/*! ========================================================= * Argon Dashboard Angular - v1.0.1 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard-angular * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (htt...
// Matrix Droplets import { getRandomNumber, rotateArrayRight } from "./utils"; import { ENGLISH_CHARACTER_CODE_START, ENGLISH_CHARACTER_CODE_END, getRandomCharacterCode } from "./characters"; import { GREEN, WHITE, printColor, moveCursorToPosition } from "./ansi"; // Our Droplet Class export class Droplet { ...
export * from './tabs.module'; export * from './tab-group'; export { McTabBody, McTabBodyOriginState, McTabBodyPositionState, McTabBodyPortal } from './tab-body'; export { McTabHeader, ScrollDirection } from './tab-header'; export { McTabLabelWrapper } from './tab-label-wrapper'; export { McTab } from '...
/* tslint:disable */ /* eslint-disable */ // @generated // This file was automatically generated and should not be edited. // ==================================================== // GraphQL fragment: MoneyRange // ==================================================== export interface MoneyRange_start { __typename: "...
import { Injectable, NotFoundException } from '@nestjs/common'; import { TaskStatus } from './task.task-status.enum'; import { v1 as uuid } from 'uuid'; import { CreateTaskDTO } from './dto/create-task.dto'; import { UpdateTaskDTO } from './dto/update-task.dto'; import { GetTaskFilterDTO } from './dto/get-task-filter.d...
export function wait(ms: number) { return new Promise<void>(resolve => setTimeout(resolve, ms)); }
/* * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
import { Component } from '@angular/core'; @Component({ selector: 'ngx-pages', template: ` <ngx-login-layout> <router-outlet></router-outlet> </ngx-login-layout> ` }) export class PagesLoginComponent { }
import { Field, InputType } from '@nestjs/graphql'; import { DiagnosisTypeFilter, DiagnosisTypeFilterInput } from './diagnosis-type-filter.input'; import { Filter } from '@nestjs-query/core'; @InputType() export class GetOneDiagnosisTypeInput { @Field(() => DiagnosisTypeFilterInput, {nullable: true} ) where?: Filte...
import { JSX } from 'solid-js'; import { GeneralObserver } from 'components/general-observer'; import { createTestId } from 'utilities'; export type AirtableFormProperties = { /** Airtable Form ID */ airtableFormId: string; }; export const AirtableForm = (properties: AirtableFormProperties): JSX.Element => ( <G...
/* eslint-disable no-console */ /* eslint-disable @typescript-eslint/no-unused-vars */ import React, { useState } from 'react'; function useLocalStorage<T>(key: string, initialValue: T) { // State to store our value // Pass initial state function to useState so logic is only executed once const [storedValue, set...
import React from "react"; import { IconProps } from "../lib"; declare const ArrowCircleRight: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>; export default ArrowCircleRight;
import * as React from 'react'; import * as _ from 'lodash'; import * as classNames from 'classnames'; import { sortable } from '@patternfly/react-table'; import { getName, getNamespace, getUID, getMachineNode } from '@console/shared'; import { MachineModel, NodeModel } from '@console/internal/models'; import { Multi...
/** * Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { ParamDefinition as PD } from '../../../mol-util/param-definition'; import { VisualContext } from '../../visual'; import { Structure, StructureEle...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; @Module({ imports: [TypeOrmModule.forRoot()], }) export class DatabaseModule {}
import { useMemo } from 'react'; import { EventTypes, Handler } from '@use-gesture/react'; import { useRootStore } from 'hooks/useRootStore'; import { useNotifyRef } from 'hooks/useNotifyRef'; import { addPoints } from 'utils/point'; import { useDiagramCursor } from 'hooks/userInteractions/useCursor'; import { check } ...
import * as React from 'react'; import { ErrorWrapper, ErrorDivider, ErrorSideCode, ErrorText, ErrorTextLower, } from './ErrorBanner.styled'; import { ErrorMessage } from 'templates/errors/errorStrings'; type ErrorBannerProps = { message: Required<ErrorMessage>; }; export const ErrorBanner = (...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AccountTableComponent } from './account-table.component'; describe('AccountTableComponent', () => { let component: AccountTableComponent; let fixture: ComponentFixture<AccountTableComponent>; beforeEach(async(() => { TestBed...
/* Copyright Amazon.com, Inc. or its affiliates. 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 ...
import { TestBed, inject } from '@angular/core/testing'; import { ServiceSourceService } from './service-source.service'; describe('ServiceSourceService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ServiceSourceService] }); }); it('should be created', inject([ServiceS...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
import { CustomermodelService } from './../../../../APIService/customermodel.service'; import { Router } from '@angular/router'; import { ListService } from './../../../../../list.service'; import { PostService } from './../../../../../post.service'; import { Paramcls } from './../../../../../paramcls'; import { HttpC...
import React from 'react'; import { Title } from 'ui/Title/Title'; import { Divider } from 'ui/Divider/Divider'; interface IProps { title: React.ReactNode; } export const DataTableViewOverviewSection: React.FC<IProps> = ({ title, children, }) => children ? ( <div> <div className="ov...
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, HandlerExecutionContext, HttpHandlerOptions...
import { InjectionToken } from '@angular/core'; import { CreateGameComponent } from '../game/create-game/create-game.component'; export let CHECKDIRTY_TOKEN = new InjectionToken('checkDirty'); export function checkDirtyState(component: CreateGameComponent) { if (component.isDirty) { return window.confirm('You d...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { SubjectRepository } from '../repositories/subject.repository'; import { SubjectService } from './subject.service'; @Module({ imports: [TypeOrmModule.forFeature([SubjectRepository])], providers: [SubjectService], ...
import React, { useState, forwardRef } from 'react'; import { Trans } from '@lingui/macro'; import { Button, CardStep, Select, Flex, Loading } from '@pipscoin/core'; import { Box, Grid, FormControl, InputLabel, MenuItem, Typography, } from '@material-ui/core'; import { useFormContext } from 'react-hook-form...
import { BaseEntity, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'; import { Product } from './product.entity'; import { User } from './user.entity'; @Entity('tbl_wishlist') export class Wishlist extends BaseEntity { @PrimaryGeneratedColumn() wishlist_id: number; @ManyToOne((type) => User, (user) => ...
import { IsInt, IsNotEmpty } from "class-validator"; export class DeleteProfileDTO{ //} extends GenericDTO{ @IsNotEmpty({message : 'Id should be provided'}) @IsInt() id : string; }
import { useRouter } from 'next/router' import { useMemo } from 'react' import type { SiteLocaleConfig } from '@/modules/i18n/getLocale' import { getLocale } from '@/modules/i18n/getLocale' import type { SiteLocale } from '~/config/site.config' /** * Returns the currently active locale settings. */ export function ...