text
stringlengths
10
953k
/** @format */ import assert = require('assert') // import sinon from 'sinon' import os = require('os') import {Downloader} from '../../src/loaders/Downloader' describe('Downloader', function () { var ctx = {os} describe('handleError', function () { it('handleError', async () => { let client = new Downl...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { DetailsLaboratoriesPageComponent } from './details-laboratories-page.component'; describe('DetailsLaboratoriesPageComponent', () => { let component: DetailsLaboratoriesPageComponent; let fixture: ComponentFixture<DetailsLaboratoriesPageCo...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { MatSnackBarModule } from '@angular/material/snack-bar'; import { ContentCodeSnippetComponent } from './content-code-snippet.component'; describe('ContentCodeSnippetComponent', () => { let component: ContentCodeSnippetComponent; let fixtur...
/** * @license * Copyright Google Inc. 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 { TestBed, inject } from '@angular/core/testing'; import { Service237Service } from './service-237.service';...
import {observer} from "mobx-react"; import * as React from "react"; import autobind from "autobind-decorator"; import LanguageModel from "../model/language-model"; @observer export default class LanguageComponent extends React.Component<any> { constructor(props: any) { super(props); } @autobind private handle...
import { css } from '@emotion/css'; import React from 'react'; import { GrafanaTheme2, PluginType } from '@grafana/data'; import { useStyles2 } from '@grafana/ui'; import { CatalogPlugin } from '../../types'; type Props = { plugin: CatalogPlugin; }; export function PluginUpdateAvailableBadge({ plugin }: Props): R...
import { Pipe, PipeTransform } from "@angular/core"; @Pipe({ name: "filterByBrand" }) export class FilterByBrandPipe implements PipeTransform { transform(items: any, select?: any): any { if (select !== "All") { return select ? items.filter(item => item["productSeller"] === select) : items...
import { Platform } from '@modules/platforms/infra/typeorm/entities/Platform'; import { platform } from 'os'; import { Entity, Column, CreateDateColumn, UpdateDateColumn, PrimaryGeneratedColumn, ManyToMany, JoinTable } from 'typeorm'; @Entity('games') export class Game { @PrimaryGeneratedColumn('uu...
import { IWebAssemblyMemoryMemory } from "../../external/i-web-assembly-memory"; export function shimWebAssemblyMemory ( memory: IWebAssemblyMemoryMemory, onGrowCallback: (newBuffer: ArrayBuffer, previousPageCount: number, requestedPagesToAdd: number) => void, ) : void { const grow = memory.grow.bind(m...
export { version } from '../package.json'; export interface MonoContextState { counts: { [k: string]: number; }; stateCreatedAt: Date; stateUpdatedAt: Date; [k: string]: any; } export default class MonoContext { private static instance; private static _stateCreatedAt; private sta...
export default { get name(): string { return 'ExponentIntentLauncher'; }, };
import { Routes } from '@angular/router'; import { DashboardComponent } from '../../dashboard/dashboard.component'; import { UserProfileComponent } from '../../user-profile/user-profile.component'; import { TableListComponent } from '../../table-list/table-list.component'; import { AadharPageComponent } from '../../aa...
export interface SEO { $: any; enable_search_indexing: boolean; keywords: string; meta_description: string; meta_title: string; }
/** * Menu.ts * * Implements API surface area for working with the status bar */ import { applyMiddleware, bindActionCreators, createStore } from "redux" import thunk from "redux-thunk" import * as Oni from "oni-api" import { Event, IEvent } from "oni-types" import * as ActionCreators from "./MenuActionCreators"...
export {attempt} from './attempt'; export {pipe} from './pipe'; export * as adt from './adt'; export * as ensure from './ensure'; export * as option from './option'; export * as result from './result'; export * as task from './task'; export type {ADT} from './adt'; export type {Option} from './option'; export type {Res...
import { useCallback, useEffect, useState, version } from 'react' import { fit, Unit } from './Gate' import { KNearestNeighbor } from './KNN' import * as tf from '@tensorflow/tfjs' import { mean, shuffle, sum, zip } from './m' import { SVM } from './SVM' import { svmLoss } from './SVM2d' import { NN } from './nn' impor...
/* Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license ...
import { createBootstrapper } from '~/utils/bootstrapper.js'; export const javaBootstrapper = createBootstrapper({ name: 'Java', todo: true, bootstrap() { // todo }, }); export default javaBootstrapper;
import 'react-image-crop/dist/ReactCrop.css'; import classnames from 'classnames'; import isNull from 'lodash/isNull'; import isUndefined from 'lodash/isUndefined'; import { useCallback, useEffect, useRef, useState } from 'react'; import { BiCrop, BiImageAlt } from 'react-icons/bi'; import { MdAddAPhoto } from 'react-...
export class SbbDateRange<D> { constructor(readonly start: D, readonly end: D) {} }
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DoCheck, Inject } from '@angular/core'; import { Router } from '@angular/router'; import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth'; import { SettingsService, User } from '@delon/theme'; @Component({ selector: 'header-user', template: ` ...
import {Body, Controller, Delete, Get, HttpCode, Options, Param, Post, Put, Request, UseGuards} from '@nestjs/common'; import {UsersService} from './users.service'; import {User} from './user.entity'; import {AuthGuard} from '@nestjs/passport'; @Controller('users') export class UsersController { constructor(privat...
import { AxiosRequestConfig } from "axios"; import clonedeep from "lodash.clonedeep"; import get from "lodash.get"; import { ITriggerClassType, ITriggerContructorParams, IHelpers, AnyObject, ITriggerOptions, } from "actionsflow-core"; export default class Poll implements ITriggerClassType { options: ITrigg...
import { Module } from '@nestjs/common'; import { AdminsService } from './admins.service'; import { MongooseModule } from '@nestjs/mongoose'; import { AuthAdminSchema } from './admins.model'; import { variables } from 'src/config'; import { PassportModule } from '@nestjs/passport'; @Module({ imports: [ MongooseM...
export interface LoginOptions { type: "FORM" | "OAUTH2", oauth2ProviderName: string, oauth2LoginUrl: string }
import Button from '../shared/Button'; import { IC_MASK } from '../../utils/Icons'; import React from 'react'; import { RootStackNavigationProps } from '../navigation/RootStackNavigator'; import { User } from '../../types'; import { View } from 'react-native'; import { getString } from '../../../STRINGS'; import styled...
import { IsBoolean, IsObject, IsString, IsOptional, IsArray } from '@jovotech/output'; export class Session { @IsString() @IsOptional() id?: string; @IsObject() data!: Record<string, unknown>; @IsOptional() @IsArray() state?: any[]; @IsBoolean() end!: boolean; }
import { customCors, AWSFunction, handlerPath } from '@medii/api-lambda'; export default { handler: `${handlerPath(__dirname)}/handler.main`, timeout: 10, versionFunction: false, events: [ { http: { method: 'put', path: '${self:custom.paths.protected}...
import {Permissions} from './lib-state'; export function libReducer(state = [], action): Permissions { return state }
import { CANVAS_HEIGHT, CANVAS_WIDTH } from "./config"; import { game } from "./game"; import { InputManager, Key } from "./input"; import { OptionsScreen } from "./optionsscreen"; import { IScreen } from "./screen"; import { TitleScreen } from "./titlescreen"; import { AudioManager } from "./audiomanager"; export cla...
/** * @packageDocumentation * @module api.functional */ //================================================================ export * as billing from "./billing"; export * as internal from "./internal"; export * as payments from "./payments"; export * as virtual_accounts from "./virtual_accounts";
import { Message, RichEmbed, MessageReaction, User, Collection } from "discord.js"; import moment from "moment"; const getParamFromResponse = async ( message: Message, title: string, question: string, time: number, optional = false ): Promise<string> => new Promise(async resolve => { const { ...
import { isWHATWGReadable } from './is-whatwg-readable' import { isReadStream } from './is-read-stream' import { isReadable } from './is-readable' /** * Checks if given value is ONLY fs.ReadStream OR stream.Readable instance */ export function isStream(value): boolean { return isWHATWGReadable(value) || isReadStre...
import { Component, EventEmitter, forwardRef, Input, Output, QueryList, ViewChildren } from "@angular/core"; import { FormGroup } from "@angular/forms"; import { DynamicFormArrayComponent, DynamicFormArrayModel, DynamicFormControlContainerComponent, DynamicFormControlCustomEvent, DynamicFormControlL...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** * Use this data source to access information about an exi...
import * as React from 'react'; import { Icon } from '@mountain-ui/react-components'; import { IconPresetProps } from '../icons.types'; function SvgImageRedo(props: IconPresetProps, svgRef?: React.Ref<SVGSVGElement>) { return ( <Icon {...props}> <svg xmlns='http://www.w3.org/2000/svg' view...
import * as utils from "../src/utils"; import * as os from "os"; describe("Get executable extension", () => { test("returns .exe when os is Windows", () => { jest.spyOn(os, "type").mockReturnValue("Windows_NT"); expect(utils.getExecutableExtension()).toBe(".exe"); expect(os.type).toBeCalled(); }); t...
import {Config} from "../../utils/Config"; import {ConstructionManager} from "../constructions/constructionManager"; import {CreepFactory} from "./creepFactory"; import {Guard} from "./guard"; import {Harvester} from "./harvester"; import {Upgrader} from "./upgrader"; export class CreepManager { private creeps: { ...
import { IDictionary } from "common-types"; export declare type IFmHasMany = IDictionary<string>; export declare function hasMany(fnToModelConstructor: () => new () => any, inverse?: string): (modelKlass: import("..").Model, key: string) => void;
import { Hero } from './hero'; export const HEROES: Hero[] = [ { id: 10, name: "Maciek" }, { id: 11, name: "karol1" }, { id: 12, name: "karol2" }, { id: 13, name: "karol4" }, { id: 14, name: "karol4" }, { id: 15, name: "karol5" } ];
export const exampleSchema = `""" The basic book in the graph """ type Book implements Product { """ All books can be found by an isbn """ isbn: String! """ The title of the book """ title: String """ The year the book was published """ year: Int """ A simple list of similar books """ ...
import express from '@feathersjs/express'; import feathers from '@feathersjs/feathers'; import socketio from '@feathersjs/socketio'; import compression from 'compression'; import cors from 'cors'; import expressUseragent from 'express-useragent'; import helmet from 'helmet'; import requestIp from 'request-ip'; import...
import { ExtractJwt, Strategy } from 'passport-jwt'; import { PassportStrategy } from '@nestjs/passport'; import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; @Injectable() export class JwtStrategy extends PassportStrategy(Strategy) { constructor(private readonly configService...
import * as path from 'path'; import format from 'string-format'; import BitId from '../../bit-id/bit-id'; import { DEFAULT_COMPONENTS_DIR_PATH, DEFAULT_DEPENDENCIES_DIR_PATH } from '../../constants'; import { PathLinuxRelative, PathOsBased } from '../path'; import { parseScope } from './parse-scope'; /** * the foll...
/* * 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 { register } from '~/components/icons/sheet'; register( `<symbol id="fa/duotone/gamepad" viewBox="0 0 640 512"><path d="M480.07 96H160a160 160 0 1 0 114.24 272h91.52A160 160 0 1 0 480.07 96zM248 268a12 12 0 0 1-12 12h-52v52a12 12 0 0 1-12 12h-24a12 12 0 0 1-12-12v-52H84a12 12 0 0 1-12-12v-24a12 12 0 0 1 12-12h...
import * as props from '../views/taxon/lib/props'; export interface WikipediaInfo { imageUrl: string; pageUrl: string; introText: string; title: string; pageId: number; exactMatch: boolean; matchingTerms: Array<string>; } // interface WikipediaParse { // headhtml: Map<string, string>; ...
import { gql } from "@apollo/client"; import { fullDasriFragment } from "common/fragments/dasris"; export const DASRI_GET = gql` query Bsdasri($id: ID!) { bsdasri(id: $id) { ...FullDasri } } ${fullDasriFragment} `; export const DASRIS_TRANSPORT_GET = gql` query Bsdasris( $siret: String ...
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors // // 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 // // Unl...
/** * @license * Copyright Google Inc. 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 */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js const u = undefined; fun...
import { JwtDto } from './dto/jwt.dto'; import { Strategy, ExtractJwt } from 'passport-jwt'; import { PassportStrategy } from '@nestjs/passport'; import { Injectable, UnauthorizedException } from '@nestjs/common'; import { AuthService } from '../../services/auth.service'; import { User } from '@prisma/client'; import {...
import { uuid } from '@ember/-internals/utils'; import { ActionManager, isSimpleClick } from '@ember/-internals/views'; import { assert } from '@ember/debug'; import { flaggedInstrument } from '@ember/instrumentation'; import { join } from '@ember/runloop'; import { Opaque, Simple } from '@glimmer/interfaces'; import {...
import path from 'path'; import { logger, readTsConfig, isRelativePath, createDebugger, } from '@modern-js/utils'; import type { Resolver } from 'webpack'; import { createMatchPath, MatchPath } from '@modern-js/utils/tsconfig-paths'; import { JS_RESOLVE_EXTENSIONS } from '../utils/constants'; const debug = cre...
import BigNumber from 'bignumber.js' import { DISPLAY_DECIMALS, MIN_ROUNDED_VALUE, WEI_PER_UNIT } from 'src/config/consts' import { logger } from 'src/utils/logger' import { fromWei as web3FromWei, toWei as web3ToWei } from 'web3-utils' export type NumberT = BigNumber.Value export function fromWei(value: NumberT | nu...
interface Token { value: string, text: string, type: string | null } interface Suggestion { id: string | null, value: string, text: string, type: string | null, description: string | null } interface Options { name: string, selector: string, noMatchesText: string | null, ...
import * as sinon from 'sinon'; import Swatches from '../../src/swatches'; import suite from './_suite'; suite('Swatches', ({ expect, spy, itShouldProvideAlias }) => { let swatches: Swatches; beforeEach(() => (swatches = new Swatches())); itShouldProvideAlias(Swatches, 'swatches'); describe('constructor()',...
import { HttpServer } from '@nestjs/common'; import { RequestMethod } from '@nestjs/common/enums/request-method.enum'; export declare class RouterMethodFactory { get(target: HttpServer, requestMethod: RequestMethod): Function; }
import { useCallback } from 'react'; import { PomodoroOperations, PomodoroState } from '../../../../shared/types'; import { useIpcQuery } from '../../../shared/ipc/useIpcQuery'; import { useIpcMutation } from '../../../shared/ipc/useIpcMutation'; export const usePomodoro = () => { const query = useIpcQuery<never, Po...
import React, { useContext, useState } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import moment from 'moment'; import { dequal } from 'dequal'; import FastImage from '@rocket.chat/react-native-fast-image'; import Touchable from './Touchable'; import Markdown from '../markdown'; import openLin...
import { SteedosFieldSummaryTypeConfig } from './type'; import { SteedosFieldFormulaTypeConfig } from '../formula'; import { getSteedosSchema } from '../types/schema'; export const getFieldSummaryConfigs = async(objectApiName?, fieldApiName?): Promise<Array<SteedosFieldSummaryTypeConfig>> => { return await getSte...
import { HttpClient, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { AuthService } from 'src/app/auth/services/auth.service'; import { INotification } from '../types/notification'; import { INotificationConfirm } from '../types/notificati...
import * as React from 'react'; import { IFormGroupProps } from '@blueprintjs/core'; import { InputComponentProps } from '@balgamat/react-autoform'; import { DateInput as Input, IDateInputProps } from '@blueprintjs/datetime'; import { InputWrapper } from './util/InputWrapper'; import { FC } from 'react'; import { local...
import { CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import memoizeOne from "memoize-one"; import { computeRTLDirection } from "../../../../../common/util/compute_rtl"; import "../../../../../components/ha-code-editor"; import { createCloseHeading } from "../../../../../components/ha-dialog"; import ...
import createIcon from './../createIcon' export default createIcon('la la-node-js')
import { expect } from 'chai' import nock from 'nock' import { verifyValidatorDomain } from '../src' import invalidAttestation from './fixtures/invalid-toml-signature.json' import invalidToml from './fixtures/invalid-toml.json' import payIdMayurResponse from './fixtures/payid-mayur.json' import rabbitKickResponse fro...
import React, { ElementType} from 'react'; import { Config } from '../../../../shared/config'; import * as Icon from 'react-feather'; import type { ConfigItem } from'../../../../@types/hyper' import Input from '../input'; type PageProps = { active: string, change?: () => void; } function ConfigPage( {active,...
interface DialogControlProps { isOpen: boolean; onClose: () => void; } export default DialogControlProps;
import {bodyCase} from './body-case'; import {bodyEmpty} from './body-empty'; import {bodyLeadingBlank} from './body-leading-blank'; import {bodyMaxLength} from './body-max-length'; import {bodyMaxLineLength} from './body-max-line-length'; import {bodyMinLength} from './body-min-length'; import {footerEmpty} from './fo...
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class UnitsHelperService { constructor() { } /** Get string representation of a file size * e.g. 2,560 -> 2.56 KB * e.g. 1,572,864 -> 1.57 MB */ public GetFileSizeString(size: number): string { if(size < 0) re...
import { Injectable } from '@angular/core'; import { HttpResponse } from '@angular/common/http'; import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Routes } from '@angular/router'; import { JhiPaginationUtil, JhiResolvePagingParams } from 'ng-jhipster'; import { UserRouteAccessService } from 'app/core'; imp...
import { prepareAddress } from "eth-utils"; import { INetwork } from "../network"; import { Contract } from "./Contract"; import { IEnsContract } from "./interfaces"; import { EnsAbi } from "./abi"; /** * Ens contract */ export class EnsContract extends Contract implements IEnsContract { /** * constructor *...
export * from './unique-id'; export * from './sort'; export * from './current-date-provider';
export default ReloadCircle; declare function ReloadCircle({ height, width, style, color, cssClasses, className, onClick }: { height?: number; width?: number; style?: {}; color?: string; cssClasses?: string; className?: string; onClick?: () => any; }): any;
import { StorageService } from './services/storage.service'; import { UserService } from './services/user.service'; import { PredictionService } from './services/prediction.service'; import { CategoryService } from './services/category.service'; import { NgModule } from '@angular/core'; @NgModule({ imports: [], ...
// Learn TypeScript: // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html // Learn Attribute: // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html import {...
import { IsNotEmpty } from 'class-validator'; import { RepositoryDto } from 'src/commons/repository/repository.dto'; export class CreatePublisherDto extends RepositoryDto { @IsNotEmpty() name: string; }
import { Bot } from 'grammy'; import { extract_entity_value, generate_keyboard, generate_response } from './helpers'; export const configureBotLogic = (bot: Bot) => { bot.command('start', (ctx) => { ctx.reply('Heya!😍 Welcome to WordMastersCheat bot.\n\nJust send me all allowed characters in a message and I\'ll...
declare const styles: { root: string; dragMask: string; box: string; boxFill: string; }; export = styles;
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-crear-menu', templateUrl: './crear-menu.component.html', styleUrls: ['./crear-menu.component.scss'] }) export class CrearMenuComponent implements OnInit { navigationSubscription; public usuarioData: User; cedula: any; param: ...
/* -------------------------------------------------------------------------- */ /* Copper API Object Types */ /* -------------------------------------------------------------------------- */ // Individual properties that appear within API responses export interface C...
type Event = string | symbol type Listener = (...args: any[]) => void class EventTarget { private events: Map<Event, Listener[]>; private globalEvents: Listener[]; private run(listener: Listener, ...args: any[]) { try { Reflect.apply(listener, this, args) } catch (error) { ...
import { ref, computed, ComputedRef, Ref, unref } from "vue-demi"; import { Product, CrossSelling, } from "@shopware-pwa/commons/interfaces/models/content/product/Product"; import { invokeGet, invokePost, getProductDetailsEndpoint, } from "@shopware-pwa/shopware-6-client"; import { getApplicationContext } fr...
import { Validator } from "../../src/validation/Validator"; import { Post } from "./Post"; import { Tag } from "./Tag"; let validator = new Validator(); let tag1 = new Tag(); tag1.value = "ja"; let tag2 = new Tag(); tag2.value = "node.js"; let post1 = new Post(); post1.title = "Hello world"; post1.tags = new Set();...
/* * 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 { getOr, uniqBy } from 'lodash/fp'; import memoizeOne from 'memoize-on...
import { Card } from '../../../interfaces' import Set from '../Sun & Moon' const card: Card = { name: { en: "Herdier", fr: "Ponchien", es: "Herdier", it: "Herdier", pt: "Herdier", de: "Terribark" }, illustrator: "sui", rarity: "Uncommon", category: "Pokemon", set: Set, dexId: [ 507, ], hp: 90, ...
/* * 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 { UMElasticsearchQueryFn } from '../adapters/framework'; interface Ge...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import {MigrationInterface, QueryRunner, Table} from "typeorm"; export class createUsersTokens1638185106824 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.createTable(new Table({ name: 'user_tokens', columns: [ ...
import * as React from 'react'; import { useTranslation } from 'react-i18next'; import { useFlag } from '@console/shared/src/hooks/flag'; import { ButtonBar } from '@console/internal/components/utils'; import { ActionGroup, Button } from '@patternfly/react-core'; import { FEATURES } from '../../features'; import { ch...
import React, { useState, useEffect } from 'react'; import Header from '../../components/Header'; import api from '../../services/api'; import Food from '../../components/Food'; import ModalAddFood from '../../components/ModalAddFood'; import ModalEditFood from '../../components/ModalEditFood'; import { FoodsContai...
declare var global: any; import { chromium } from 'playwright'; import { SITE_URL, FUNC_URL } from '../env'; jest.setTimeout(100 * 1000); global.SITE_URL = SITE_URL; global.mobileViewport = { width: 375, height: 667 }; global.desktopViewport = { width: 1366, height: 768 }; beforeAll(async () => { global.browser...
import { DropdownDirective } from './dropdown.directive'; describe('DropdownDirective', () => { it('should create an instance', () => { const directive = new DropdownDirective(); expect(directive).toBeTruthy(); }); });
import * as Validator from 'class-validator'; export class LoginAdministratorDto { @Validator.IsNotEmpty() @Validator.IsString() @Validator.Matches(/^[a-z][a-z0-9\.]{3,30}[a-z0-9]$/) username: string; @Validator.IsNotEmpty() @Validator.IsString() @Validator.Length(6, 128) password: string; }
import { ApplicationKind } from "pipecd/web/model/common_pb"; import { Deployment, DeploymentStatus } from "~/modules/deployments"; import { createGitPathFromObject } from "./common"; import { dummyApplication } from "./dummy-application"; import { dummyPiped } from "./dummy-piped"; import { createPipelineFromObject, d...
export interface IMetersAndFeets { readonly meters: number readonly feet: number } export interface IKgAndLb { readonly kg: number readonly lb: number } export interface IKnAndLbf { readonly kN: number readonly lbf: number }
import type { ProjectConfig } from '/#/config'; import { MenuTypeEnum, MenuModeEnum, TriggerEnum, MixSidebarTriggerEnum } from '/@/enums/menuEnum'; import { CacheTypeEnum } from '/@/enums/cacheEnum'; import { ContentEnum, PermissionModeEnum, ThemeEnum, RouterTransitionEnum, SettingButtonPositionEnum, Sessio...
/** * The settings for the grouping functionality of the Grid. */ export interface GroupableSettings { /** * Determines if grouping by dragging and dropping the column headers is allowed. */ enabled: boolean; /** * The text that is displayed when the grouping area is empty. The default valu...
import React, { useEffect, useState } from "react"; import AuthContainer from "../../components/AuthContainer"; import AuthBox from "../../components/AuthBox"; import AuthBoxHr from "../../components/AuthBoxHr"; import AuthBoxContainer from "../../components/AuthBoxContainer"; import css from "@emotion/css"; import { l...
import { Component, OnInit, Output } from '@angular/core'; import { TooltipDirective } from '../tooltip.directive'; @Component({ selector: 'app-tooltip', templateUrl: './tooltip.component.html', styleUrls: ['./tooltip.component.css'] }) export class TooltipComponent implements OnInit { placement: string; co...
import { boolean, select, text } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import { withState } from '@dump247/storybook-state'; import { ItemsMenu, TreeTable } from '@synerise/ds-table'; import Icon from '@synerise/ds-icon'; import { AddM, ChildRowLeftDownM, EditM, FileD...