text
stringlengths
10
953k
import { TestHost } from "@cadl-lang/compiler/testing"; import { ok, strictEqual } from "assert"; import { isBody, isHeader, isPathParam, isQueryParam } from "../src/http/decorators.js"; import { createRestTestHost } from "./test-host.js"; describe("rest: plain data", () => { let testHost: TestHost; beforeEach(as...
import {LiveCaseRequests} from '../resources/requests/liveCaseRequests'; const liveCaseStatusRequest = new LiveCaseRequests(); export class LiveCaseService { public async getLiveCases(courtId: number): Promise<any> { return await liveCaseStatusRequest.getLiveCases(courtId); } }
import { sample, sum, times } from 'lodash/fp' import { Actor, Entity } from './types' export type DieResult = 0 | 1 | 2 // Values on each face of a combat die const DieFaces: DieResult[] = [0, 0, 1, 1, 2, 2] export interface CombatRollResult { /** information on the individual dice rolled */ dice: DieResult[] ...
import { Routes } from '@angular/router'; import { HomeComponent } from './home.component'; export const HomeRoutes: Routes = [ { path: '', children: [ { path: 'Home', component: HomeComponent }] } ];
import type { ISanivaliDef } from '_src/types'; export type RemoveDuplicateItemsParam = | boolean | string | ((x: any) => string) | undefined; export type RemoveDuplicateItemsRuleItem = | 'removeDuplicateItems' | ['removeDuplicateItems', RemoveDuplicateItemsParam?]; export const removeDuplicateItemsDef: ...
import test from 'ava'; import { IgnoreKeys } from "../../../src/lib/assertionModifications/IgnoreKeys"; test(`keys are successfully removed from a basic object`, (t) => { let actual = { hello: 1, world: 2 }; let expected = { hello: 1, world: 3 }; IgnoreKeys.process(['world'], actual, expec...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* -------------------------------------------------------------------------------------------- * 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 { ILayoutRestorer, JupyterLab, JupyterLabPlugin } from '@jupyterlab/application'; import { ICommandPalette, InstanceTracker } from '@jupyterlab/apputils'; import { JSONExt } from '@phosphor/coreutils';...
// //Author Maxim Kuzmin//makc// import {Subject} from 'rxjs'; import {takeUntil} from 'rxjs/operators'; import {AppCoreLocalizationService} from '@app/core/localization/core-localization.service'; import {AppModDummyMainPageListSettingFields} from '../settings/mod-dummy-main-page-list-setting-fields'; /** Мод "Dummy...
namespace ts { // branded string type used to store absolute, normalized and canonicalized paths // arbitrary file name can be converted to Path via toPath function export type Path = string & { __pathBrand: any }; /* @internal */ export type MatchingKeys<TRecord, TMatch, K extends keyof TRecord = ...
import { Request, Response } from 'express'; import knex from '../database/connection'; class ItemsController { async index(req: Request, res: Response) { const items = await knex('items').select('*'); const serializedItems = items.map((item) => { return { id: item.id, title: item.titl...
export * from '@monorail/visualComponents/actionsMenu/exports' export * from '@monorail/visualComponents/alerts/exports' export * from '@monorail/visualComponents/buttons/exports' export * from '@monorail/visualComponents/divider/exports' export * from '@monorail/visualComponents/dropdown/exports' export * from '@monor...
import fs, { Dirent } from 'fs'; const getFiles = (dir: string, suffix: string): string[] => { const files: Dirent[] = fs.readdirSync(dir, { withFileTypes: true, }) let commandFiles: string[] = []; for (const file of files) { if (file.isDirectory()){ commandFiles = [ ...
/** * Function that returns a type of the field. Returned value must be a class used on the relation. */ export type RelationTypeInFunction = | ((type?: any) => Function) | Function | string; // todo: |string ?
import { report, deepCopy } from '@monere/shared' const next = window.requestAnimationFrame ? requestAnimationFrame : (callback) => { setTimeout(callback, 1000 / 60); }; const frames = []; export function fps() { let frame = 0; let lastSecond = Date.now(); function calculateFPS() { frame++; ...
import { FileModification, FileModificationUnit } from '@dsh/api-codegen/claim-management/swagger-codegen'; import { SpecificClaimModificationUnit } from './specific-claim-modification-unit'; // eslint-disable-next-line @typescript-eslint/naming-convention const FileModificationType = FileModification.FileModificatio...
/** * The MIT License * * Copyright (c) 2011 Heather Arthur <fayearthur@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without limitation t...
/* Copyright 2020-2021 University of Oxford and Health and Social Care Information Centre, also known as NHS Digital 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/licens...
export interface ApiConfig { name: string; method: string; path: string; desc?: string; mockPath?: string; query?: string[]; params?: string[]; } export interface ApiMakerOptions { mockBaseURL?: string; mock?: boolean; debug?: boolean; config?: any; } export interface ApiBuilderOptions { names...
// MongoDB naming limitation // https://docs.mongodb.com/manual/reference/limits/ export const MAX_DB_NAME_LENGTH = 64; export const MAX_ID_NAME_LENGTH = 120; // system collection names not available export const INVALID_DB_NAMES = [ 'admin', 'system', 'basement' ]; export const INVALID_COLL_NAMES = [ 'basement' ]; /...
import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; declare class IoAndroidFolderOpen extends React.Component<IconBaseProps> { } export = IoAndroidFolderOpen;
import React, { Context, Reducer } from 'react'; import isEqual from 'lodash.isequal'; import { RepositoryKeyState } from 'tweek-local-cache'; import { OptionalTweekRepository, PrepareKey } from './types'; import { ensureHooks } from './utils'; export interface UseTweekValue { <T>(keyPath: string, defaultValue: T): ...
import { isNullOrUndefined } from '../../../util/node-utilities'; export class FieldOption { private _value: string; private _displayValue: string; constructor(value?: string, displayValue?: string) { this._value = value; this._displayValue = displayValue; } get value(): string { return this._v...
import { num, px } from '../util/dom/px' import { between } from '../util/math/between' import { applyStyle } from '../util/dom/css' import { Content, Heading } from '../types' import { isDebugging } from '../util/env' import { toArray } from '../util/dom/to_array' //-------------- container extender -------------- ...
import { ProjectGraph } from '../project-graph'; import { NxJson } from '../shared-interfaces'; import { Task } from '../../tasks-runner/tasks-runner'; import { readFileSync } from 'fs'; import { rootWorkspaceFileNames } from '../file-utils'; import { exec, execSync } from 'child_process'; import { defaultFileHasher,...
import * as assert from 'assert'; import * as sinon from 'sinon'; import appInsights from '../../../../appInsights'; import auth from '../../../../Auth'; import { Logger } from '../../../../cli'; import Command from '../../../../Command'; import request from '../../../../request'; import Utils from '../../../../Utils';...
export interface IEXStock { symbol: string; name: string; date: string; isEnabled: boolean; } export interface IEXStockPrice { symbol: string; price: number; size: number; time: number; } export interface IEXHistory { link: string; date: string; feed: string; version: string; protocol: strin...
import { TestBed } from '@angular/core/testing'; import { ModalService } from '../modal.service'; describe('ModalService', () => { beforeEach(() => TestBed.configureTestingModule({ providers: [ModalService], }) ); it('should be created', () => { const service: ModalService = TestBed.get(Modal...
/* * 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...
export * from "./useClickOutside"; export * from "./useDebounce"; export * from "./useHover"; export * from "./useMediaQuery"; export * from "./useVisibility";
import { AuthService } from './../auth/service/auth.service'; import { Injectable, NestMiddleware, HttpException, HttpStatus, } from '@nestjs/common'; import { Request, Response, NextFunction } from 'express'; @Injectable() export class TokenMiddleware implements NestMiddleware { constructor(private authSer...
import { Routes } from '@angular/router'; import { ShellComponent } from './shell/shell.component'; /** * Provides helper methods to create routes. */ export class Route { /** * Creates routes using the shell component and authentication. * @param routes The routes to add. * @return {Routes} The new rou...
import { Ref } from 'vue'; import './index.css'; import { ContainerProvider, ResizingHandle } from './types'; export declare const ALL_HANDLES: ResizingHandle[]; declare const VueDraggableResizable: import("vue").DefineComponent<{ initW: { type: NumberConstructor; default: any; }; initH: { ...
<TS language="ja" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>右クリックでアドレスまたはラベルを編集します</translation> </message> <message> <source>Create a new address</source> <translation>新規アドレスの作成</tra...
import { AppPage } from './app.po'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getTitleText()).toEqual('Welcome to moneyoverview!'); }); });
// Copyright (C) 2020-2022 Intel Corporation // // SPDX-License-Identifier: MIT import { ActionCreator, AnyAction, Dispatch, Store, } from 'redux'; import { ThunkAction } from 'utils/redux'; import isAbleToChangeFrame from 'utils/is-able-to-change-frame'; import { RectDrawingMethod, CuboidDrawingMethod, Canvas } f...
import * as React from "react"; import { ErrorResponse } from "../api/errors"; import { MuiPickersUtilsProvider } from "material-ui-pickers"; import MenuIcon from "@material-ui/icons/Menu"; import BackIcon from "@material-ui/icons/ArrowBack"; import AccountIcon from "@material-ui/icons/AccountCircle"; import Assignment...
import { TGATools } from "../../../Misc/tga"; import { Nullable } from "../../../types"; import { Engine } from "../../../Engines/engine"; import { InternalTexture } from "../../../Materials/Textures/internalTexture"; import { IInternalTextureLoader } from "../../../Materials/Textures/internalTextureLoader"; import { _...
import { ApiProperty } from "@nestjs/swagger"; import { Column, CreateDateColumn, DeleteDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; @Entity() export class Two { @ApiProperty() @PrimaryGeneratedColumn() TwoId: number; @ApiProperty() @Column() regionId: str...
import { AfterContentChecked, AfterViewInit, ChangeDetectorRef, Component, EventEmitter, OnChanges, OnDestroy, OnInit, Output, ViewChild } from '@angular/core'; import { AppStorageService, AudioService, KeymappingService, MessageService, SettingsService, TranscriptionService, UserInte...
import React from "react"; import { StyleSheet, ScrollView, View, Text, TouchableWithoutFeedback, } from "react-native"; import { NativeStackNavigationProp } from "@react-navigation/native-stack"; import SettingsSelect from "../../components/SettingsSelect"; import useOrientation from "../../hooks/useOrie...
/** * @license * Copyright Google LLC 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 {ParseSourceSpan} from '../parse_util'; import {I18nMeta} from '../render3/view/i18n/meta'; import {error} fr...
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; @Component({ selector: 'app-button', template: ` <!-- <button (click)= "handleRock()" > Rock </button> <button (click)= "handlePaper()"> Paper </button> <button (click)= "handleScissors()"> Scissors </button> <p>{{mycho...
import inquirer from 'inquirer' async function getInput(message: string) { const answers = await inquirer.prompt([ { name: 'userInput', message: message, }, ]) return answers.userInput } export { getInput }
import { Asset, Network } from '../../constants'; interface Allowance { asset: Asset; from: string; to: string; network: Network; } export declare function getAllowance({ network, asset, from, to }: Allowance): Promise<Allowance>; export {}; //# sourceMappingURL=getAllowance.d.ts.map
import AbstractEvent from './AbstractEvent'; class Nat extends AbstractEvent { } export default Nat;
import {Component} from '@angular/core'; import {BaCard} from '../../theme/components'; import {RouteConfig} from '@angular/router-deprecated'; //import {CHART_DIRECTIVES} from 'ng2-charts/ng2-charts'; import {Router,RouteParams,CanActivate} from '@angular/router-deprecated'; import {UIChart} from 'primeng/primeng'; ...
import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient.ts"; import { ListVaultsInput, ListVaultsOutput } from "../models/models_0.ts"; import { deserializeAws_restJson1ListVaultsCommand, serializeAws_restJson1ListVaultsCommand, } from "../protocols/Aws_restJson1.ts"; im...
export const b = "test";
import Box from 'components/Box'; import Text from 'components/Text'; import React from 'react'; import { COLORS, FONT_SIZES } from 'consts'; import styled from 'styled-components'; import Button from 'view/ProductDetail/components/Button'; import { useSelector } from 'react-redux'; import { itemsSelectors } from 'stat...
import { REG_VUE, chalk } from '@agreejs/helper' import * as webpack from 'webpack' import { toCamelCase, internalComponents, capitalize } from '@agreejs/shared' import { componentConfig } from '../template/component' import type { RootNode, TemplateChildNode, ElementNode, AttributeNode, DirectiveNode, SimpleExpression...
export const classes = `interface PopUpClasses { title?: string content?: string actions?: string button?: string }` export const styles = `interface PopUpStyles { title?: React.CSSProperties content?: React.CSSProperties actions?: React.CSSProperties button?: React.CSSProperties }` export const Actio...
import { defineMessage, defineMessages } from 'react-intl' export const icRulingStepOne = { title: defineMessage({ id: 'judicial.system.investigation_cases:ruling_step_one.title', defaultMessage: 'Úrskurður', description: 'Notaður sem titill á úrskurðar skrefi í rannsóknarheimildum.', }), sections: {...
export type Task = { id: number; title: string; body?: string; dueDate: number; completedDate?: number; deletedDate?: number; priority: 1 | 2 | 3; };
import { PrizeDistributor } from '@pooltogether/v4-js-client' import { useMemo } from 'react' import { getStoredDrawResults } from 'lib/utils/drawResultsStorage' import { useUnlockedDrawIds } from './useUnlockedDrawIds' import { useUsersClaimedAmounts } from './useUsersClaimedAmounts' import { useUsersNormalizedBalanc...
import {Component, OnInit, ViewChild} from '@angular/core'; import {Router} from '@angular/router'; import {FilterData} from '../../../components/interfaces'; import {FieldSearch} from '../../../utils/utils'; import {CommonsGrid} from '../../../commons-grid'; import {ReportGroup} from '../../../shared/report-group...
<TS language="es_MX" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Click derecho para editar dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> ...
import { Injectable } from '@nestjs/common'; import { UserRepository } from './user.repository'; import { User } from './user.entity'; import { SaveUserDto } from './saveUser.dto'; @Injectable() export class UsersService { constructor(private readonly userRepository: UserRepository) {} async findUser(username: st...
/* eslint-disable no-restricted-syntax */ /* eslint-disable import/no-cycle */ /* eslint-disable import/extensions */ import State from '../State'; import Relation from '../utility/Relation'; import { Cache } from '../control/Manager'; /** An extension of the abstract {@linkcode Cache} interface which implements all ...
import { AppConfig } from '@configs/app/app.config'; import { UserEntity } from '@modules/users/entities/user.entity'; import { Command, CommandHandler, ICommandHandler, } from '@nestjs-architects/typed-cqrs'; import { MailerService } from '@nestjs-modules/mailer'; import { JwtService } from '@nestjs/jwt'; import...
/* eslint-disable @typescript-eslint/no-explicit-any */ import type { ReactElement } from 'react'; export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; export interface Column<TRow, TSummaryRow = unknown> { /** The name of the column. By default it will be displayed in the header cell */ name: s...
import styled from "styled-components"; export const GroupAvatarContainer = styled.figure` position: relative; > div { &::after { content: ""; display: block; position: absolute; top: 0; right: 0; left: 0; bottom: 0; z-index: 1; background-image: linear-gradient(0deg, #00000073, transpar...
// *** 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"; /** * Allocates a static IP address. * * > **Note:** Lights...
// smithy-typescript generated code import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerEx...
import {Injectable, EventEmitter} from 'angular2/core'; import {Splash} from './Splash'; import {Champion} from './Champion'; @Injectable() export class CanvasService { /** * Store amount of clicks on canvas. Even clicks emit select * event, where odd clicks emit swap events. */ public clicks: number =...
import React, {FC, ReactElement} from 'react'; import {classNameFactory,classes} from '../helpers/classes' import './button.scss' interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>{ buttonType?: string, size?:string, shape?:string, icon?: ReactElement, loading?:boolean, ...
// import { ChainId } from '@pancakeswap-libs/sdk'; import { ChainId } from '@spookyswap/sdk'; import { Configuration } from './tomb-finance/config'; import { BankInfo } from './tomb-finance'; const configurations: { [env: string]: Configuration } = { production: { chainId: ChainId.MAINNET, networkName: 'Fa...
import React from 'react'; import { useContactInfo } from 'hooks/useContactInfo'; export const Header: React.FC = () => { const { findMe } = useContactInfo(); return ( <header className="c_general-container flex justify-between items-center py-4 md:py-5"> <p className="text-base md:text-lg font-bold te...
import { Component, OnInit, Input, Output, ChangeDetectionStrategy , EventEmitter } from '@angular/core'; import { FormGroup, FormControl } from '@angular/forms'; import { Authenticate } from '../../models/user'; @Component ({ selector: 'bc-login-form', template: ` <mat-card> <mat-card-title>로그인</mat-card...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { TranslateModule } from '@ngx-translate/core'; import { DIALOG_CONTAINER, DIALOG_INPUT_COMPONENT, DIALOG_MESSAGE_COMPONENT, } from '@narik/infrastructure'; import {...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cmn" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About iCash Core</source> <translation>关于达世币核心</translation> </message> <message> <location f...
import { ComponentFactoryResolver, ComponentRef, Directive, Input, OnDestroy, OnInit, ViewContainerRef, } from '@angular/core'; import { Toast } from '../toast'; @Directive({ selector: '[toastContent]', }) export class ToastContentDirective implements OnInit, OnDestroy { @Input() toast: Toast; priv...
import React, { FC, ReactElement } from 'react'; import * as S from './style'; interface Props { progress: number; } const ButtonProgress: FC<Props> = ({ progress }): ReactElement => { return ( <S.ButtonProgressWrap width={progress}> <S.ButtonProgress> <S.ButtonProgressBar /> </S.ButtonPr...
/** * @format * @file BytedLaptop byted-laptop * @author 由 fe6 自动生成 */ import { IIconProps, IconWrapper } from '../runtime'; // 获取 SVG 的 HTML 字符串 export const getIconBytedLaptopSvgHtml = (props: IIconProps) => `<?xml version="1.0" encoding="UTF-8"?> <svg width="${props.size}" height="${props.size}" viewBox="0 0...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ const SWIPING_LEFT = 1; const SWIPING_RIGHT = -1; const SWIPING_NONE ...
import { EventArgs } from '@ephox/sugar'; import * as AlloyEvents from '../../api/events/AlloyEvents'; import * as NativeEvents from '../../api/events/NativeEvents'; import { BlockerDragApi } from '../common/BlockerTypes'; const init = (dragApi: BlockerDragApi<MouseEvent>): AlloyEvents.AlloyEventRecord => AlloyEvents...
// @ts-check import Index from './index'; Index.greeter(); Index.wave(); // import { greeter, wave } from './Index'; // greeter(); // wave();
/// <reference types="react" /> import { BaseComponent } from '../../../Utilities'; import { IBeakProps } from './Beak.types'; export declare const BEAK_HEIGHT = 10; export declare const BEAK_WIDTH = 18; export declare class Beak extends BaseComponent<IBeakProps, {}> { constructor(props: IBeakProps); render(): ...
import { reduce } from 'rhax'; /** * Paths to fill in for "path variables" (i.e. aliases for well-known dynamic segments of a generated path, * Such as <componentPath> for the path at which a component is generated). * A record of type VariablePaths is expected to match the corresponding path against each variable...
import fetch from "node-fetch"; import { ResultSet } from "../models/search-result"; import { MediaTypes, MediaSourceType } from "../models/enums"; export class TVMazeRepository { private async searchMedia( uri: string, type: MediaTypes ): Promise<Array<ResultSet>> { try { co...
import { NgModule } from '@angular/core'; import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; import { IsencaoResponsabilidadeGuard } from './isencao-responsabilidade/isencao-responsabilidade.guard'; const routes: Routes = [ { path: '', loadChildren: () => import('./home/home.module...
/* * 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 { TYPE } from "../../../common/type" import { User } from "../../../common/user" import { Logger } from "../../../core/logger" import RequestData from "../../../core/requestData" import { AUTH_LEVEL, PERMISSION, REQUEST_TYPE } from "../../../models/constant" const log = new Logger("reward/openAll") export defa...
import { AccessDenied } from "./AccessDenied"; import { InvalidIfMatchVersion } from "./InvalidIfMatchVersion"; import { NoSuchFieldLevelEncryptionConfig } from "./NoSuchFieldLevelEncryptionConfig"; import { PreconditionFailed } from "./PreconditionFailed"; import { FieldLevelEncryptionConfigInUse } from "./FieldLevelE...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { OrderDetailComponent } from './order-detail.component'; import { RouterTestingModule } from '@angular/router/testing'; import { HttpClientModule } from '@angular/common/http'; import { DrestaurantUiModule } from '@d-restaurant-frontend/...
import { AuthCredentialsDto } from './dto/auth-credentials.dto'; import { UsersRepository } from './users.repository'; import { JwtService } from '@nestjs/jwt'; export declare class AuthService { private usersRepository; private jwtService; constructor(usersRepository: UsersRepository, jwtService: JwtServic...
import { ComponentFactoryResolver, ViewContainerRef, ElementRef, EventEmitter } from '@angular/core'; import 'rxjs/add/operator/takeUntil'; import 'rxjs/add/operator/distinctUntilChanged'; export declare class EmojiPickerApiDirective { private _cfr; private _vcr; private _el; private _directionCode; ...
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import { createApp } from 'vue'; import App from './App.vue' import router from './router'; createApp(App).use(router).mount('#app');
import { Component, OnInit } from '@angular/core'; @Component({ templateUrl: './internal-server-error.page.html', styleUrls: ['./internal-server-error.page.scss'] }) export class InternalServerErrorPage implements OnInit { constructor() { } ngOnInit(): void { } }
import React, { useState, useEffect } from 'react'; import './list-basic.scss'; import { Action } from '../model'; import { ListItem } from './list-item'; import { addThemeCls } from '../../util/util'; export interface ListBasicProps { theme?: string[]; // theme class data: any | any[]; idField: string; nameFi...
/** * Copyright (c) 2020 GraphQL Contributors * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. * */ import { ASTNode, DocumentNode, GraphQLError, GraphQLSchema, Location, NoDeprecatedCustomRule, Sou...
import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
console.log("hello app");
import { IComponentDefinition } from '../Base/Component'; import { LazyInitialization } from '../Base/Initialization'; import { lazyExport } from '../../GlobalExports'; export function lazySortDropdown() { LazyInitialization.registerLazyComponent('SortDropdown', () => { return new Promise((resolve, reject) => { ...
/*! * @license * Copyright 2019 Alfresco Software, 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 app...
import fs from 'fs'; import fse from 'fs-extra'; import * as helpers from './helpers'; import { StoryFormat } from './project_types'; jest.mock('fs', () => ({ existsSync: jest.fn(), })); jest.mock('fs-extra', () => ({ copySync: jest.fn(() => ({})), })); jest.mock('path', () => ({ // make it return just the se...
/* * Copyright 2019 The Kubeflow 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
import { Component, OnInit, ViewChild } from '@angular/core'; import { STColumn, STPage, STComponent } from '@delon/abc'; import { publicPageConfig, pageOnChange } from 'infrastructure/expression'; import { Router } from '@angular/router'; import { EventEmiter } from 'infrastructure/eventEmiter'; import { RegulationSe...
import * as React from 'react' import Layout from '../components/layout' import SEO from '../components/seo' import { Link } from 'gatsby' const IndexPage = () => ( <Layout> <SEO title="Home" keywords={[`gatsby`, `application`, `react`]} /> <h1>Hello</h1> <p>Welcome to my data visualization collection.<...