text
stringlengths
10
953k
import * as moment from 'moment'; import Component from 'vue-class-component'; import { Prop } from 'vue-property-decorator'; import AnimationImportModuleVO from '../../../../../../../shared/modules/Animation/import/Module/vos/AnimationImportModuleVO'; import DataImportAdminVueModule from '../../../../data_import/DataI...
import {Column, Entity, ManyToMany, OneToMany, PrimaryGeneratedColumn} from 'typeorm'; import {UserGroup} from './user-group.entity'; import {ApiProperty, ApiPropertyOptional} from '@nestjs/swagger'; import {IsNotEmpty, Length} from 'class-validator'; import {User} from './user.entity'; @Entity('group', {schema: 'tick...
/* tslint:disable:no-unused-variable */ import { TestBed, async, inject } from '@angular/core/testing'; import { AboutMeService } from './about-me.service'; describe('Service: AboutMe', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [AboutMeService] }); }); it('should ...'...
import { DeltaItemDto } from "./DeltaItemDto"; export class ListDelta { constructor(public readonly id: string, public readonly items: DeltaItemDto[]) { } }
export type version = [ number, number, number, ] const versionExp = /^v?(\d+)\.(\d+).(\d+)$/ export function isValidVersion(version: string): boolean { return Boolean(version.trim().match(versionExp)) } export function compareVersions(version1: string, version2: string): number { const v1 = parseVersion(v...
import { LoginService } from './../../layout/projectcompononts/services/login.service'; import { Injectable } from '@angular/core'; import { CanActivate } from '@angular/router'; import { Router } from '@angular/router'; @Injectable() export class AuthGuard implements CanActivate { constructor(private router: Rout...
import themeWorker from "../../reducer/theme"; export const initDarkModeAction = () => themeWorker.actions.initDarkMode(); export const setDarkModeAction = (value: boolean) => themeWorker.actions.setDarkMode({ isDarkMode: value });
import { cloneObject } from '../common/ciphercommon'; import { CipherHandler, IState, toolMode } from '../common/cipherhandler'; import { ICipherType } from '../common/ciphertypes'; import { JTButtonItem } from '../common/jtbuttongroup'; import { JTTable } from '../common/jttable'; import { textStandard } from '../comm...
/* * Copyright (c) 2019, Xiaomi, Inc. All rights reserved. * This source code is licensed under the Apache License Version 2.0, which * can be found in the LICENSE file in the root directory of this source tree. */ import { AnyAction } from 'redux'; import { MenuDataItem } from '@ant-design/pro-layout'; import { R...
import { createDOMRenderer, rehydrateRendererCache } from '@griffel/core'; import * as React from 'react'; import type { GriffelRenderer } from '@griffel/core'; export interface RendererProviderProps { /** An instance of Griffel renderer. */ renderer: GriffelRenderer; /** * Document used to insert CSS variab...
import Document, { Html, Head, Main, NextScript, DocumentContext, } from "next/document"; import { ServerStyleSheet } from "styled-components"; export default class MyDocument extends Document { static async getInitialProps(ctx: DocumentContext) { const sheet = new ServerStyleSheet(); const origina...
/* * 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 { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ProductDetailsComponent } from '@app-seller/product-management/containers/product-details/product-details.component'; import { OcProductService } from '@ordercloud/angular-sdk'; import { ActivatedRoute } from '@angular/router'; import {...
import React, { useRef, useState, useCallback, useEffect, OptionHTMLAttributes, } from 'react'; import Input from '../UI/Input'; import Textarea from '../UI/Textarea'; import Select from '../UI/Select'; import ToggleSwitch from '../UI/ToggleSwitch'; import Button from '../UI/Button'; import { BodyVacancy } fr...
<%# Copyright 2013-2017 the original author or authors from the JHipster project. This file is part of the JHipster project, see http://www.jhipster.tech/ for more information. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ma...
// @ts-ignore import {bar} from 'fns'; bar();
import {IStatement} from "./_statement"; import {str} from "../combi"; import {IStatementRunnable} from "../statement_runnable"; export class EndMethod implements IStatement { public getMatcher(): IStatementRunnable { return str("ENDMETHOD"); } }
import React from 'react'; import { QueryBuilderProps } from '../types'; import { QueryBuilderComponentSelector } from '../abstract'; import { Default, Extraction, ListFiltered, Lookup, RegisteredLookup, PrefixFiltered, RegexFiltered } from './'; export const Dimension = (props: QueryBuilderProps) => ( <QueryBuilder...
import { ApiHelper, Query, RemoteData, StateHelperWithEnv, UpdaterWithEnv, } from "@/Core"; import { getUrl } from "@S/ServiceCatalog/Data/Callbacks/getUrl"; export class CallbacksUpdater implements UpdaterWithEnv<"GetCallbacks"> { constructor( private readonly stateHelper: StateHelperWithEnv<"GetCallb...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../../types"; import * as utilities from "../../utilities"; /*...
import { TestProvision } from "^jarun"; import { addDataUpdate_empty, errorData2 } from "../_fixture"; //also source map export default (prov: TestProvision) => addDataUpdate_empty( prov, [{ type: "error", context: "browser", data: errorData2 }], true ).then((state) => { prov.imp(state); }); //...
// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/dialects/mssql/index.js // MSSQL Client // ------- import _ from '../../deps/lodash@4.17.15/index.js'; const flatten = _.flatten; const map = _.map; const values = _.values; import inherits from '../../deps/inherits@2.0.4/inherits.js'; import C...
import multer from 'multer' import path from 'path' import crypto from 'crypto' export default { storage: multer.diskStorage({ destination: path.resolve(__dirname, '..', '..', 'uploads'), filename(request, file, callback) { const hash = crypto.randomBytes(6).toString('hex') ...
import { DEFAULT_VIDEO_CONSTRAINTS, SELECTED_AUDIO_INPUT_KEY, SELECTED_VIDEO_INPUT_KEY } from '../../../constants'; import { useCallback, useState } from 'react'; import Video, { LocalVideoTrack, LocalAudioTrack, CreateLocalTrackOptions } from 'twilio-video'; import useDevices from '../../../hooks/useDevices/useDevices...
import type { Characteristic, WithUUID } from 'homebridge'; export default function amperes( DefaultCharacteristic: typeof Characteristic ): WithUUID<new () => Characteristic> { return class Amperes extends DefaultCharacteristic { static readonly UUID = 'E863F126-079E-48FF-8F27-9C2605A29F52'; constructor(...
import { CloudRegistry16 } from "../../"; export = CloudRegistry16;
import { PageServiceImpl } from './services/page/page.service.impl'; import * as angular from 'angular'; /** * TODO: Needed for non-TypeScript components/services to register themselves. Remove once they are migrated. */ export const QuayPagesModule: ng.IModule = angular.module('quayPages', []) .constant('pages',...
import { Order } from '../../../models/order/order'; export interface DaffOrderReducerState { order: Order, loading: boolean, errors: string[] }
import type { AnyJson, AnyU8a, Codec, CodecClass, CodecRegistry } from '../types'; import { Bytes } from './Bytes'; export declare class WrapperKeepOpaque<T extends Codec> extends Bytes { #private; constructor(registry: CodecRegistry, typeName: CodecClass<T> | string, value?: AnyU8a | Codec); static with<T ...
import { ChangeDetectorRef, Component, Inject, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { NbAuthService, NbRequestPasswordComponent, NB_AUTH_OPTIONS } from '@nebular/auth'; import { NbToastrService } from '@nebular/theme'; import { AuthService } from '../../service/auth.service'; ...
interface IMessage { createdTime: string; threadStatus: string; message: string; threadId: string; messageId: string; } export = IMessage;
/*--------------------------------------------------------------------------------------------- * Copyright (c) IBAX All rights reserved. * See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Epic } from ...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { Micro...
import { useState } from "react"; import { getAddresses, TOKEN_DECIMALS, DEFAULT_NETWORK } from "../../../constants"; import { useSelector } from "react-redux"; import { Link, Fade, Popper } from "@material-ui/core"; import "./psi-menu.scss"; import { IReduxState } from "../../../store/slices/state.interface"; import {...
const SE_UPDATE_VER = 322; const CHALLENGE_URL = 'https://ota.cbx.io/api/challenge'; const CRYPTOGRAM_URL = 'https://ota.cbx.io/api/cryptogram'; const MAIN_AID = '436f6f6c57616c6c657450524f'; const BACKUP_AID = '4261636b75704170706c6574'; const CARDMANAGER_AID = 'A000000151000000'; const SSD_AID = 'A000000151535041'; ...
const config = { asana: { token:"1/1199915424415308:f75aaa7404ee151f688c8fc2bcc31ea8", workspace:"163593568272638", }, sheets: { tutorial: { tabs: { users:{ name:"users", }, }, }, }, };
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ByteFormatPipe } from './byteFormat.pipe'; @NgModule({ declarations: [ByteFormatPipe], imports: [CommonModule], exports: [ByteFormatPipe], }) export class PipesModule {}
import * as React from 'react' import styles from '../../index.module.css' import useReactiveTable from '../../hooks/useReactiveTable' import { TableHeadElement } from '../../types' const TableHeader: React.FC = ({ children }) => { const { generateColumns, table } = useReactiveTable() React.useEffect(() => { ...
import { test } from 'uvu'; import * as assert from 'uvu/assert'; import type { SignaturError } from '../../signatur/index'; import { sign, unsign } from '../../signatur/index'; import { data, secret } from './CONSTANTS'; test(`throws when undefined 'data'`, async () => { try { await sign(null as never, null as...
import * as Framework from '../../scripts/framework'; module CQRSjs.Test{ var _eventName = "test event"; var _aggregateRootID = "123"; var _userName = "eventstoreservice test"; describe("the event store service", function(){ var event = new Framework.Deed(_aggregateRootID, _eventName, _userN...
import { Web3ProviderEngine } from "@0x/subproviders"; import { BigNumber } from "@0x/utils"; import { Web3Wrapper } from "@0x/web3-wrapper"; // import Web3 from 'web3'; import { EventEmitter } from "events"; import Web3 from "web3"; import constantAddress from "../config/constant.json"; import { IWeb3ProviderSetti...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Filme } from '../shared/models/filme'; import { ConfigPrams } from '../shared/models/config-prams'; import { ConfigParamsService } from './config-params.service'; const url = 'http...
import minimist from 'minimist' import getConfig from './getConfig' import write from './writeRouteFile' import watch from './watchInputDir' import build from './buildTemplate' export const run = (args: string[]) => { const argv = minimist(args, { string: ['version', 'watch', 'enableStatic'], alias: { v: 've...
import path from 'path'; import { promises as fs } from 'fs'; import { PathMap } from '../pathMap'; import { User } from '../user'; import { Args } from '../utils/args'; type ResumeConfig = { filenames: string[]; downloadFiles: { [lang: string]: { png: string; pdf: string } } }; export module Prebuild { export int...
import {IOptions, Options} from "./interfaces/IOptions"; import {IRouteInfo} from "./interfaces/IRouteInfo"; import {IJsonRoute} from "./interfaces/IJsonRoute"; import {JrouteHandler} from "./jroute-handler"; import {RoutesDisplay} from "./routes-display"; import {RouteValidator} from "./route-validator"; import * as...
import { Injectable, UnauthorizedException } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { PassportStrategy } from '@nestjs/passport'; import { InjectRepository } from '@nestjs/typeorm'; import { ExtractJwt, Strategy } from 'passport-jwt'; import { JwtPayload } from './jwt-payload.inte...
import { useReactiveVar } from "@apollo/client"; import { useCallback, useEffect, useState, VFC } from "react"; import { useInviteMutation, useLeaveFromWorkspaceMutation, useUpdateUserProfileMutation, useWorkspaceQuery, } from "../../generated/graphql"; import { useSubscribeUsersInWorkspace } from "../../hooks/...
'use strict'; import * as vscode from 'vscode'; class Config { private config: vscode.WorkspaceConfiguration; constructor() { this.config = vscode.workspace.getConfiguration(); } getColorThemeName() { return this.config.get('workbench.colorTheme'); } getWorkbenchColorCustomizations(scope: vscode.Configura...
import { Component, OnInit, ComponentFactoryResolver, ViewChild, AfterViewInit, Input, Output, EventEmitter, ComponentRef } from '@angular/core'; import { DynamicDirective } from '../../../dynamic.directive'; import { AppConfig, ComponentType } from '../../../../../app.config'; import { registerCompoenentFactorys } fro...
import * as React from 'react'; import { Platform, StyleSheet } from 'react-native'; import Animated from 'react-native-reanimated'; const { interpolate, cond, greaterThan } = Animated; const PROGRESS_EPSILON = 0.05; type Props = React.ComponentProps<typeof Animated.View> & { progress: Animated.Node<number>; }; c...
import { _UnmarshalledCaseDetails } from "./_CaseDetails"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * <p>Returns an array of <a>CaseDetails</a> objects and a <code>nextToken</code> that defines a point for pagination in the result set.</p> */ export interface DescribeCasesOutput extends __aws_sdk_types...
import {NgModule} from '@angular/core'; import {RecommendListLargeComponent} from './recommend-list-large'; import {PipesModule} from '../../../shared/pipe/pipe.module'; @NgModule({ declarations: [ RecommendListLargeComponent ], imports: [ PipesModule ], providers: [ // Arti...
import { TestBed, inject } from '@angular/core/testing' import { DataService } from './data.service' describe ('DataService', () => { beforeEach (() => { TestBed.configureTestingModule({ providers: [DataService] }) }) it ('should be created', inject([DataService], (service: DataService...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { Toolbar } from '@jupyterlab/apputils'; import { ITranslator, nullTranslator } from '@jupyterlab/translation'; import { PanelLayout, Widget } from '@lumino/widgets'; /** * The header for a Breakpoints Pan...
import { GetUsageForecastInput } from "../shapes/GetUsageForecastInput"; import { GetUsageForecastOutput } from "../shapes/GetUsageForecastOutput"; import { LimitExceededException } from "../shapes/LimitExceededException"; import { DataUnavailableException } from "../shapes/DataUnavailableException"; import { Unresolva...
import { Component, OnInit, OnDestroy, EventEmitter, Input, Output, ViewChild } from '@angular/core'; import { CameraComponent } from '../camera/camera.component'; import { DeviceService } from '../services/device.service'; import { debounceTime } from 'rxjs/operators'; import { Subscription } from 'rxjs'...
import { EventStore } from '../../src' import { CoffeeFinished, CoffeeMachine, CoffeeMachineDefectFound, CoffeeMachineStartedPreparation, PlayEpicSaxGuyMusicAfterCoffeeMachineStartedWork, SendSmsAfterCoffeeFinished, WarnAfterCoffeeMachineDefectFound } from './model-mocks' interface SutTypes { coffeeMac...
import _ from 'lodash'; import { assignModelProperties } from 'app/core/utils/model_utils'; /* * This regex matches 3 types of variable reference with an optional format specifier * \$(\w+) $var1 * \[\[([\s\S]+?)(?::(\w+))?\]\] [[var2]] or [[var2:fmt2]] * \${(\w+)(?::(\w+))?} ...
export const theme = { colors: { primary: '#E51C44', secondary100: '#0A1033', secondary90: '#0D133D', secondary80: '#0E1647', secondary85: '#171f52', secondary70: '#1B2565', secondary60: '#1B2565', secondary50: '#243189', secondary40: '#1D2766', secondary30: '#495BCC...
export interface DoctorPatientInfo { id: string; email: string; dateAdded: Date; lastUpdate: Date | null; } export interface PatientInfo { id: string; email: string; firstName: string; lastName: string; dateOfBirth: Date | null; bloodType: BloodType; sex: Sex; } export enum BloodType { aNeg = ...
module pskl { export module utils { var base64Ranks; if (Uint8Array) { base64Ranks = new Uint8Array([ 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 1...
import * as React from 'react'; import manifest from '@ant-design/icons/lib/manifest'; import { ThemeType as ThemeFolderType } from '@ant-design/icons/lib/types'; import { Radio, Icon, Input } from 'antd'; import { RadioChangeEvent } from 'antd/es/radio/interface'; import { injectIntl } from 'react-intl'; import deboun...
// tslint:disable only-arrow-functions // tslint:disable no-unused-expression import { expect } from 'chai'; import * as sinon from 'sinon'; import { IVSCodeManager, INotificationManager, ILanguageResourceManager, } from '../../src/models'; import { VSCodeManager } from '../../src/vscode/vscodeManager'; import { ...
// *** 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 { input as inputs, output as outputs } from "./types"; import * as utilities from "./utilities"; /...
import {Driver} from "../Driver.ts"; import {ConnectionIsNotSetError} from "../../error/ConnectionIsNotSetError.ts"; import {DriverPackageNotInstalledError} from "../../error/DriverPackageNotInstalledError.ts"; import {OracleQueryRunner} from "./OracleQueryRunner.ts"; import {ObjectLiteral} from "../../common/ObjectLit...
import { EventBus } from './EventBus'; import { GameStateProvider } from './GameStateProvider'; /** * Key intercept event data. */ export type KeyEventData = { /** The key. */ key: string; /** The index of the key event. */ index?: number; /** The value of the key event. */ value?: number; } /** * Ke...
import { describe, test } from 'mocha' import { Driver } from '../../../shared/src/testing/driver' import { getConfig } from '../../../shared/src/testing/config' import { getTestTools } from './util/init' import * as GQL from '../../../shared/src/graphql/schema' import { GraphQLClient } from './util/GraphQlClient' impo...
import {Component, Input} from '@angular/core'; import {Dictionary} from '../dictionary'; @Component({ selector: 'ngx-propagate-loader', templateUrl: './propagate-loader.component.html', styleUrls: ['./propagate-loader.component.scss'] }) export class PropagateLoaderComponent { @Input() color = 'rgb(54, 215, 1...
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import { ProtectableMap, IProtectableMapParameters } from './ProtectableMap'; /** * The internal wrapper used by ProtectableMap. It extends the real `Map<K, V>` ba...
import * as React from 'react'; import { md, Example, Props, code, AtlassianInternalWarning, } from '@atlaskit/docs'; export default md` ${(<AtlassianInternalWarning />)} This component provides a renderer for ADF documents. ## Usage Use the component in your React app as follows: ${code` import { ReactR...
import { Component, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators, FormBuilder } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { ServiceService } from 'src/app/services/service.service'; import { User } from 'src/modals/user'; import { Router } from ...
import {CameraController, CameraControllerOptions, CameraControllerServiceMap} from "./CameraController"; import {Doorbell, ProgrammableSwitchEvent} from "../gen/HomeKit"; import {Service} from "../Service"; import {Characteristic, CharacteristicEventTypes, CharacteristicGetCallback} from "../Characteristic"; import {C...
import React from "react"; import dayjs from "dayjs"; interface Props { date: string; format?: string; } const FormattedDate: React.FunctionComponent<Props> = ({date, format}) => { const template = format ? format : "DD.MM.YYYY"; const formattedDate = dayjs(date).format(template); return <time dat...
import { Commit } from '@src/components/commit/commit'; import FlexRow from '@src/components/ui/FlexRow'; import HeaderLink from '@src/components/ui/HeaderLink'; import { useAsync } from '@src/hooks/useAsync'; import { getRunTestsOverall } from '@src/lib/run'; import { Alert, Button, Cell, Grid, Heading, HF...
import React from 'react'; import styled from 'styled-components'; interface Props { fontSize: string | number; } const Flag = styled.span<Props>(({ fontSize }) => ({ fontSize, })); // Lao People's Democratic Republic const IconFlagLA: React.FC<Props> = ({ fontSize, ...props }) => ( // eslint-disable-next-line...
import {workIcon} from '../../../icons/work'; import {technologyIcon} from '../../../icons/technology'; import {EClientType, ETeamType, IWorkLabel} from './models'; export const eventerpriseLabel: IWorkLabel = { id : 'eventerprise-work-svg', title : 'Eventerprise', link : 'https://www.eventerprise.c...
import type { TreeNode } from '~/utils/treeNode' /** * 递归 * @desc 时间复杂度 O(N) 空间复杂度 O(N) * @param root~ * @returns */ export function tree2str(root: TreeNode | null): string { if (!root) return '' if (!root.left && !root.right) return `${root.val}` if (!root.right) return `${root.val}(${tree2str(root.left)}...
import { AbstractKeyApplicator, IAbstractKeyApplicator } from '@/core/formatters/formatter/base-applicator'; import { copyStringNumberOfTimes } from '@/base/string'; import { BASE_INDENT_VALUE } from '@/core/renderer/html/common/helpers'; import { ParenType } from '@/core/renderer/html/common/GlyphParenNode'; export c...
import { Max, Min } from 'class-validator'; import { ArgsType, Field, Int } from 'type-graphql'; @ArgsType() export class PaginationArgs { @Field((type) => Int, { nullable: true }) @Min(0) public skip: number = 0; @Field((type) => Int, { nullable: true }) @Min(1) @Max(50) public take: number = 25; }
import Pretender, { ResponseHandler } from 'pretender'; import { Cases } from '../../../../src/api/support/cases'; import { ServerCredentials, UserCredentials } from '../../../../src/util/credentials'; import { Store } from '../../../../src/util/store'; describe('api', () => { describe('Support', () => { describ...
// A single check step export interface CheckStepInterface { getName(): string; // return [errors, warnings] check(): Promise<[string[], string[]]>; } // An action for a check, fix, or update, or a combination. export interface ActionInterface { getName(): string; // return check steps for sanity c...
import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name QuikklyPlugin * @description ionic wrapper for cordova-plugin-quikkly * Use the quikkly scanner in your ionic app */ @Plugin({ pluginName: 'QuikklyPlugin', plugin: 'cordova-plugin-qu...
/* eslint-disable no-bitwise */ import * as DOMPurify_ from 'dompurify'; const DOMPurify = DOMPurify_; // patch to fix rollup to work interface Binding { variable: any; property: string; } export interface ElementBinding { element: Element | null; attribute: string; } export interface ElementBindingWithListen...
import { Users } from 'src/users/users.entity'; export class CreateReservesDto { id?: number; date: Date; period: string; user: Users; }
import {map, mapArray} from '../common/Mapper'; import AnalyticsAbstractFilter from './AnalyticsAbstractFilter'; import AnalyticsAttribute from './AnalyticsAttribute'; import AnalyticsQueryOperator from './AnalyticsQueryOperator'; /** * @export * @class AnalyticsGreaterThanOrEqualFilter */ export class AnalyticsGre...
import { Pipe, PipeTransform } from '@angular/core'; import { AuthService } from '../auth/auth.service'; @Pipe({ name: 'convertTemp' }) export class ConvertTempPipe implements PipeTransform { constructor( private $auth: AuthService, ) { } transform(value: number, unit: 'c' | 'f' = this.$auth.env.temperature...
/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import type { GraphManager } from '@data-wrangling-components/core' import type { TableContainer } from '@essex/arquero' import type ColumnTable from 'arquero/dist/types/table/column-table' impor...
import Path from 'path'; import prettier from 'prettier'; import fs from 'fs-extra'; import { AdminFileToWrite } from '@keystone-next/types'; import { buildAdminUI, generateAdminUI } from '../../admin-ui/system'; import { createSystem } from '../../lib/createSystem'; import { initConfig } from '../../lib/config/initCon...
/* * Copyright WebGate Consulting AG, 2020 * * 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 ag...
import { RPGPlayerSession } from "../services/rpg-player-session"; import ApiService from "../services/api-service"; export default class ProfileController { characters: Elixr.Api.ViewModels.CreatureViewModel[]; loading = false; static $inject = ["apiService", "rpgPlayerSession"]; constructor(private ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { CouponClaimComponent } from './coupon-claim.component'; import { RoutingService, GlobalMessageService, PageContext, PageType, GlobalMessageType, CustomerCouponService, } from '@spartacus/core'; import { of } from 'rxjs'; con...
import { Observable } from '../../internal/Observable'; import { startWith } from '../../internal/patching/operator/startWith'; Observable.prototype.startWith = startWith; declare module '../../internal/Observable' { interface Observable<T> { startWith: typeof startWith; } }
import { MarkSpec } from 'prosemirror-model'; export interface AlignmentAttributes { align: 'start' | 'center' | 'end'; } /** * @name alignment_mark * @stage 0 */ export interface AlignmentMarkDefinition { type: 'alignment'; attrs: AlignmentAttributes; } export const alignment: MarkSpec = { attrs: { a...
import { Link } from '@fluentui/react'; import React, { useContext } from 'react'; import ReactSVG from 'react-svg'; import { style } from 'typestyle'; import { ThemeContext } from '../../ThemeContext'; interface InformationCardProps { id: string; icon: string; title: string; description: string; additional...
import { DTOMapper } from "infrastructure/service-utils/dto-mapper"; import { AttachmentDoc } from "models/attachments/attachment.model"; import { TaxonomyDoc } from "models/taxonomies/taxonomy.model"; export class TaxonomyDto extends DTOMapper { description?: string = undefined; term: string = ""; slug: string ...
import createLogger from 'glogg'; import * as Prism from 'prismjs'; import 'prismjs/components/prism-clike'; import 'prismjs/components/prism-markup'; import 'prismjs/components/prism-markdown'; import 'prismjs/components/prism-css'; import 'prismjs/components/prism-css-extras'; import 'prismjs/components/prism-scss';...
export interface MenuIcon { type: 'class' | 'icon' | 'img'; /** 值,包含:类名、图标 `type`、图像 */ value: string; /** 图标主题风格,默认:`outline` */ theme?: 'outline' | 'twotone' | 'fill'; /** 是否有旋转动画,默认:`false` */ spin?: boolean; /** 仅适用双色图标,设置双色图标的主要颜色,仅对当前 icon 生效 */ twoToneColor?: string; /** 指...
let oranges: number = 7; let watermelons = 5; // note: type inference will implicitly infer the type, additionally type inference only works when declaration + initialization happens on same line let direction: string = 'west'; let completed: boolean = true; // note same type and value let falsey: null = null; let not...
import { Validators, createFormValidation, ValidationSchema, } from '@lemoncode/fonk'; const validationSchema: ValidationSchema = { field: { description: [ { validator: Validators.minLength.validator, customArgs: { length: 10 }, message: 'The min length is {{length}}', }...