text
stringlengths
10
953k
import React, {useEffect, useState} from 'react' import {Link} from 'react-router-dom' import './styles.css' interface genreItem{ title: string; queryName: string; } const Genres = () =>{ const [genreList, setGenreList] = useState<genreItem[]>([]) useEffect(()=>{ const list=[ ...
import { User } from "./user"; export class Team { name: string; players: User[] = []; constructor(name: string) { this.name = name; } }
export interface IButtonMonths { monthNumber: number, monthName: string, monthFullName?: string }
import React from 'react'; import createSvgIcon from './helpers/createSvgIcon'; export default createSvgIcon( <path d="M14 6l-.72-1.45c-.17-.34-.52-.55-.9-.55H6c-.55 0-1 .45-1 1v15c0 .55.45 1 1 1s1-.45 1-1v-6h5l.72 1.45c.17.34.52.55.89.55H19c.55 0 1-.45 1-1V7c0-.55-.45-1-1-1h-5zm4 8h-4l-1-2H7V6h5l1 2h5v6z" />, 'Ou...
/* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ import { ResolvedConfig } from './config'; export default class State { config: ResolvedConfig; con...
import * as expressMiddlewareSession from "../../middleware/expressSession"; import * as expressMiddlewareValidator from "../../middleware/expressValidator"; import * as expressValidator from "express-validator"; import * as schemaValidations from "./schemaValidations"; import type * as types from "./accountFriendTypes...
/** * FormValidation (https://formvalidation.io) * The best validation library for JavaScript * (c) 2013 - 2021 Nguyen Huu Phuoc <me@phuoc.ng> */ import { Core } from './Core'; export default class Plugin<T> { protected core: Core; protected opts?: T; constructor(opts?: T) { this.opts = opts;...
// Copyright (C) 2019 Orange // // This software is distributed under the terms and conditions of the 'Apache License 2.0' // license which can be found in the file 'License.txt' in this package distribution // or at 'http://www.apache.org/licenses/LICENSE-2.0'. // This file is required by karma.conf.js and loads r...
import { UserUpdateFormComponent } from './../user-update-form/user-update-form.component'; import { UserService } from './../fetch-api-data.service'; import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; @Component({ selector: 'app-profile-view', templateUrl: './...
import Theme from 'vitepress/theme' import '../style/main.css' import '../style/vars.css' async function getTheme(){ const CodeDemo = typeof window === 'undefined' ? await import("../components/srrDemo.vue") : await import('../components/CodeDemo.vue') return { ...Theme, enhanceApp({ app }: { app: any...
import { AppsFlyerConfig } from "@bubblewrap/core/dist/lib/features/AppsFlyerFeature"; import { FirstRunFlagConfig } from "@bubblewrap/core/dist/lib/features/FirstRunFlagFeature"; import { LocationDelegationConfig } from "@bubblewrap/core/dist/lib/features/LocationDelegationFeature"; import { PlayBillingConfig } from "...
import { ROTATION } from 'src/actions/geometric/types'; import { Vector } from 'src/typings'; import Change from '../Change'; type Rotate = Change & { type: typeof ROTATION; vector: Vector; }; export default Rotate;
import { expect as expectCDK, matchTemplate, MatchStyle } from '@aws-cdk/assert'; import cdk = require('@aws-cdk/core'); import CdkApiExample = require('../lib/cdk-api-example-stack'); test('Empty Stack', () => { const app = new cdk.App(); // WHEN const stack = new CdkApiExample.CdkApiExampleStack(app, 'My...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="gu_IN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About U2coin</source> <translation>બીટકોઈન વિષે</translation> </mes...
import { textFormatter } from './text-formatter'; import { placeholderFormatter } from './placeholder-formatter'; import { I18nPayload } from '../types'; /** * Get the formatter depending on the match type * @param match I18nPayload - Matched payloed */ export const getFormatter = (match: I18nPayload) => { if ( ...
export { Opportunity } from './opportunity.schema'
// https://cirrus-ci.org/guide/writing-tasks/#environment-variables import IDetectProvider from "../detectProvider.ts"; const CIRRUS_CI_DASHBOARD = "https://cirrus-ci.com"; const cirrusProvider: IDetectProvider = { detect(env) { return Boolean(env.CIRRUS_CI); }, configuration(env) { const pr = env.CIRR...
// Copyright (c) 2021 University System of Georgia and janki contributors // Distributed under the terms of the BSD-3-Clause License. import { IRenderMime } from '@jupyterlab/rendermime-interfaces'; import { PLUGIN_ID, FILE_TYPES } from './tokens'; import { rendererFactory } from './widget'; /** * Extension definit...
/* eslint-disable max-lines */ /* eslint-disable @typescript-eslint/no-explicit-any */ import { Measurements, SpanContext } from '@sentry/types'; import { browserPerformanceTimeOrigin, getGlobalObject, htmlTreeAsString, isDebugBuild, isNodeEnv, logger, } from '@sentry/utils'; import { Span } from '../span'...
/** * Generated by orval v6.0.0 🍺 * Do not edit manually. * Swagger Petstore * OpenAPI spec version: 1.0.0 */ import { useMutation, UseMutationOptions, useQuery, UseQueryOptions } from '@sveltestack/svelte-query'; import type { CreatePetsBody, Error, ListPetsParams, Pet, Pets } from '../model'; import { custo...
import {PictureBlockData} from './PictureBlockData'; import {AbstractContentBlock} from "../components/models/AbstractContentBlock"; import {Icon} from "../components/icon/Icon"; export class PictureBlock extends AbstractContentBlock<PictureBlockData> { public title = 'Картинка'; public icon = new Icon('fa-ima...
export { AggregateClientArgs } from "./AggregateClientArgs"; export { CreateClientArgs } from "./CreateClientArgs"; export { DeleteClientArgs } from "./DeleteClientArgs"; export { DeleteManyClientArgs } from "./DeleteManyClientArgs"; export { FindFirstClientArgs } from "./FindFirstClientArgs"; export { FindManyClientAr...
/** * Describes all entity view's options. */ import { Connection, SelectQueryBuilder } from "../.."; export interface ViewEntityOptions { /** * View name. * If not specified then naming strategy will generate view name from class name. */ name?: string; /** * View expression. */ ...
import { clone } from "remeda"; import { treeMock } from "../mocks/tree.mock"; import { relateConditionToNode } from "./relateConditionToNode"; import { expect, test, beforeEach } from "vitest"; let currentTreeMock; beforeEach(() => { currentTreeMock = clone(treeMock); }); test("relateConditionToEdge should add an ...
export {BlueshellState} from './BlueshellState'; export {NodeStorage} from './NodeStorage'; export * from './ResultCode'; import {resultCodes} from './ResultCode'; export {resultCodes as rc}; export {BaseNode} from './BaseNode'; export {ParentNode, isParentNode} from './ParentNode'; export * from './Conditional'; ex...
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class ComputeOpt...
import { Request, Response, Router } from "express"; const uploadRouter: Router = Router(); uploadRouter.post("/", (req: Request, res: Response) => { req.busboy.on('file', function(fieldname, file, filename) { console.log('on:file'); }); req.busboy.on('field', function(fieldname, value, valTruncated, keyTr...
import { collectToMap } from './collectToMap'; test('collectToMap empty', () => { const m = collectToMap([], () => undefined); expect(m).toEqual(new Map()); }); test('collectToMap single', () => { const m = collectToMap([{k: 'a', v: 1}], o => o.k); expect(m).toEqual(new Map([['a', [{k: 'a', v: 1}]]]))...
import { Vector3 } from "@babylonjs/core"; interface Attackee { receiveAttack(damage: number): void; getPosition(): Vector3; } export {Attackee}
import { getPages } from '../common/get-pages'; import { IAuth0AuthorizationApiUser } from '../interfaces'; export interface Input { groupId: string; } export interface Response { users: IAuth0AuthorizationApiUser[]; total: number; } export interface Options { page: number; perPage: number; } const defaul...
import path from 'path'; import fs from 'fs'; import { lockFile, unlockFile, readFile } from '../index'; interface Error { message: string; } const getFilePath = (filename: string): string => { return path.resolve(__dirname, `assets/${filename}`); }; const removeTempFile = (filename: string): void => { const ...
/** * Copyright 2018 The AMP HTML Authors. 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 require...
import { vec2, mat4, quad, rgb, rng, rand, randi, randSeed, chance, choose, clamp, lerp, map, mapc, wave, testLineLine, testLineLineT, testRectRect2, testRectLine, testRectPt, minkDiff, testRectRect, dir, deg2rad, rad2deg, isVec2, } from "./math"; import { originPt, gfxInit, } from "./gfx";...
import querystring from 'querystring'; class Post { client: any; private readonly _messageMaxRunes = 4000; constructor( client: any, ) { this.client = client; if (typeof this.client.options.messageMaxRunes !== 'undefined') { this._messageMaxRunes = this.client.opt...
import { EditorState } from 'draft-js'; export const hasEntityAtSelection = (editorState: EditorState): boolean => { const selection = editorState.getSelection(); if (!selection.getHasFocus()) { return false; } const contentState = editorState.getCurrentContent(); const block = contentStat...
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import { Guid } from '../Guid'; describe('when creating', () => { const guid = Guid.create(); it('should hold a 16 byte array', () => guid.bytes.should.be.leng...
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {WaiterConfiguration} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/conf...
import React, { useState } from "react"; import classes from "./IndexPage.module.css"; import Typography from "src/components/ui-kit/Typography"; import { useLocale, WithLocale } from "react-targem"; import Container from "src/components/ui-kit/Container"; import Select, { components } from "react-select"; import Comme...
import * as React from 'react'; import Row from "react-bootstrap/Row"; import Col from "react-bootstrap/Col"; import {inject, observer} from "mobx-react"; import {ExplorerStore} from "app/stores/ExplorerStore"; import ListGroup from "react-bootstrap/ListGroup"; import {DrngSubtype} from "app/misc/Payload" interface Pr...
import OrdersRoutes from './routes' const orderRoutes = new OrdersRoutes().getRoutes() export { orderRoutes }
import React from 'react'; import Tippy from '@tippyjs/react'; import Styled, { JssInjectedProps } from 'rsg-components/Styled'; import * as Rsg from '../../../typings'; export const styles = ({ space, color, borderRadius, fontSize }: Rsg.Theme) => ({ tooltip: { '&.tippy-box': { transitionProperty: [['opacity']]...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fi" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About DynamicsCoin</source> <translation>Tietoa DynamicsCoinista</translat...
import { enforceAsyncResult } from '@expo/results'; import { v4 as uuidv4 } from 'uuid'; import Entity from '../Entity'; import EntityCompanionProvider, { EntityCompanionDefinition } from '../EntityCompanionProvider'; import EntityConfiguration from '../EntityConfiguration'; import { UUIDField } from '../EntityFields'...
import { IScheduler } from '../Scheduler'; import { Observable } from '../Observable'; import { fromArray } from '../observable/fromArray'; import { scalar } from '../observable/scalar'; import { empty } from '../observable/empty'; import { concat as concatStatic } from '../observable/concat'; import { isScheduler } fr...
import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { SortOrder } from '../prisma/sort-order.enum'; @InputType() export class TagCountOrderByAggregateInput { @Field(() => SortOrder, { nullable: true }) id?: keyof typeof SortOrder; @Field(() => SortOrder, { nullable...
import { RouteConfig } from 'vue-router/types/router'; import { lazyLoadRoute } from '../../../common/utils/lazyLoadRoute.util'; import { requiresAdminMeta } from '../../../common/utils/meta.util'; import { i18n } from '../../../common/config/i18n.config'; export const CommentRoutes: RouteConfig[] = [ { path: '/...
import styled from 'styled-components'; const VerticallyAlignedCell = styled.div` td & { display: flex; justify-content: space-between; align-items: center; } `; export default VerticallyAlignedCell;
import styled from 'styled-components/macro' //import { HistorikkIkon } from '../../felleskomponenter/ikoner/HistorikkIkon' //import { TabButton } from '../TabButton' const Header = styled.section` display: flex; justify-content: flex-end; height: 48px; box-sizing: border-box; ` /*const HistorikkTabButton = s...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ProductDescribesComponent } from './product-describes.component'; describe('ProductDescribesComponent', () => { let component: ProductDescribesComponent; let fixture: ComponentFixture<ProductDescribesComponent>; beforeEach(async...
// mock from jest 'use strict'; jest.mock('fs'); jest.mock('filehound'); // imports import * as path from 'path'; import {parse as nameParser} from 'parse-torrent-title'; import {files, folders, MediaScan} from '../__helpers__/_constants'; import {basename} from "path"; describe('allMovies', () => { beforeAll(()...
import * as hal from 'htmlrapier.halcyon/src/EndpointClient'; import { Fetcher } from 'htmlrapier/src/fetcher'; export class OutputResult { private client: hal.HalEndpointClient; constructor(client: hal.HalEndpointClient) { this.client = client; } private strongData: Output = undefined; p...
import {expect} from 'chai'; import {Contract, Wallet, utils, providers} from 'ethers'; import {loadFixture, deployContract, createMockProvider, getWallets} from 'ethereum-waffle'; import {TEST_ACCOUNT_ADDRESS, ETHER_NATIVE_TOKEN, Message, TEST_GAS_PRICE} from '@universal-login/commons'; import {messageToSignedMessage,...
import { fetchAndActivate, getRemoteConfig, getValue } from 'firebase/remote-config'; import { reactive } from 'vue'; import { getFirebaseApp } from '../firebase/firebase.service'; const ConfigService_ = { isLoaded: false, options: [] as ConfigOption[], }; export const ConfigService = reactive(ConfigService_) as typ...
import { EggPlugin } from 'egg'; const plugin: EggPlugin = { tegg: { enable: true, package: '@eggjs/tegg-plugin', }, teggConfig: { enable: true, package: '@eggjs/tegg-config', }, teggController: { enable: true, package: '@eggjs/tegg-controller-plugin', }, }; export default plugin;
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; @Component({ selector: 'app-main', templateUrl: './main.component.html', styleUrls: ['./main.component.css', './table.component.css'] }) export class MainComponent implements OnInit { public basicSelectorChart = ''; ...
import { ConflictException, Injectable, InternalServerErrorException, } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { CreateCustomerDto } from '../../auth/dto/create_customer.dto'; import { Customer } from './../entities/customer.entity';...
import { Table, DIVIDER, SIZE } from 'baseui/table-semantic'; import { PropTypes } from 'react-view'; import { TConfig } from '../types'; const TableSemanticConfig: TConfig = { componentName: 'Table', imports: { 'baseui/table-semantic': { named: ['Table'], }, }, scope: { Table, DIVIDER, ...
import express from 'express'; import RelativeTimeService from '../services/time.service'; import debug, { IDebugger } from 'debug'; const log: IDebugger = debug('app:time-controller'); export const availableFilters: string[] = [ 'era', 'year', 'quarter', 'month', 'week', 'weekOfMonth', 'day', 'dayOfY...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Injectable, InternalServerErrorException, NotFoundException, UnprocessableEntityException, } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { CreateUserInput } from './dto/create-user.input'; import { UpdateUserInput } from './dto...
import Vue from "vue"; import type { NavBarConfigItem } from "@theme/utils/navbar"; declare const _default: import("vue/types/vue").ExtendedVue<Vue, { open: boolean; }, { setOpen(value: boolean): void; isLastItemOfArray(item: NavBarConfigItem, array: NavBarConfigItem[]): boolean; }, { dropdownAriaLabel:...
import BotchedError from '../BotchedError'; // Exports export class VariantAlsoNegotiates extends BotchedError { /** * @override */ public static statusCode = 506; public static title = 'Variant Also Negotiates'; }
import { defaultRegionInfoProvider } from "./endpoints.ts"; import { Logger as __Logger } from "../types/mod.ts"; /** * @internal */ export const ClientSharedValues = { apiVersion: "2017-10-11", disableHostPrefix: false, logger: {} as __Logger, regionInfoProvider: defaultRegionInfoProvider, serviceId: "syn...
import { Component } from '@angular/core'; @Component({ template: '<h4>Not found</h4>' }) export class NotFoundComponent { }
import { NgModule } from '@angular/core'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { StoreDevtoolsModule } from '@ngrx/store-devtools'; import { environment } from '../environments/environment'; import { AppModule } from './app.module'; import { AppComponent } from './core...
export default class ConstraintSolverMemento { // private constraint solver state. }
import React, { useState } from 'react'; import { Drawer, Button, Group } from '../../../index'; const code = ` import React, { useState } from 'react'; import { Drawer, Button, Group } from '@mantine/core'; function Demo() { const [opened, setOpened] = useState(false); return ( <> <Drawer open...
interface ElectricGuitar { numberOfPickups : number; } interface Violin { } function isElectricGuitar(v : Violin | ElectricGuitar) : v is ElectricGuitar { return (<ElectricGuitar>v).numberOfPickups !== undefined; } class Electric implements ElectricGuitar { numberOfPickups: number; constructor(number...
// Implements the standalone test runner (see also: /standalone/index.html). import { DefaultTestFileLoader } from '../framework/file_loader.js'; import { Logger } from '../framework/logging/logger.js'; import { LiveTestCaseResult } from '../framework/logging/result.js'; import { parseQuery } from '../framework/query/...
export { default as default, Callback, RouterOptions, RouterRunResult, Route, RouteOptions, Mount, MountOptions } from "./Router"; export { default as RoutingData } from "./RoutingData"; export { default as GlobalRouter } from "./GlobalRouter";
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lt" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Seedcoin</source> <translation>Apie Seedcoin</translation> </mes...
/*! * Copyright 2022 Google LLC. 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 appli...
import React from 'react'; import { render, cleanup, screen } from "@testing-library/react"; import ButtonGroup from '.'; describe('<ButtonGroup />', () => { afterEach(cleanup); const defaultProps = { testId: 'buttonGroup' }; test(": matches snapshot", () => { const { container } = render(<ButtonGro...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {AnyJSExpression, JSNodeBase} from "@romejs/ast"; import {createBuilder} from "../utils"; export type JSAwaitExpression = ...
import { IncomingMessage, ServerResponse } from "http"; import { parseRequest } from "./parse-request"; import { OAuthApp } from "../../index"; import { MiddlewareOptions } from "./types"; export async function middleware( app: OAuthApp, options: Required<MiddlewareOptions>, request: IncomingMessage, respons...
interface LayoutSettings { // Controls settings panel display showSettings: boolean // Controls tagsview display showTagsView: boolean // Controls siderbar logo display showSidebarLogo: boolean // If true, will fix the header component fixedHeader: boolean // If true, will change...
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; under version 2 * of the License (non-upgradable). * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'd-status', templateUrl: './status.component.html', styleUrls: ['./status.component.scss'] }) export class StatusComponent implements OnInit { private _type: String; classMap = {}; @Input() get type() { ...
import { Component } from '@angular/core'; import segmentedDefaultExample from '!./examples/segmented-button-default-example.component.html?raw'; import segmentedDefaultExampleTs from '!./examples/segmented-button-default-example.component.ts?raw'; import segmentedToggleExample from '!./examples/segmented-button-toggl...
/** * @file IconH1 标题 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import React from 'react'; import {ISvgIconProps, IconWrapper} from '../runtime'; export default IconWrapper( 'IconH1', true, (props: ISvgIconProps) => ( <svg ...
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { CardBackgroungModel } from '@app-core/models/card.model'; @Component({ selector: 'app-background-preview', template: ` <style> .background{ width: 100%; height: 100%; max-width:...
import * as React from 'react'; import { StyledIconProps } from '@styled-icons/styled-icon'; export declare const TransitEnterexitDimensions: { height: number; width: number; };
// import 'canvas-text-metrics-polyfill' import { default as textMetrics } from './textMetrics' /** * @function textSize * @desc Given a text string, returns the predicted pixel width and height of the string when placed into DOM. * @param {String|Array} text Can be either a single string or an array of strings ...
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; import * as equal from 'fast-deep-equal'; import { combineLatest, Observable } from 'rxjs'; import { distinctUntilChanged, switchMap } from 'rxjs/operators'; import { ApiService } from '../../services/api/api.service'; import { I...
import PluginManager from '@jbrowse/core/PluginManager' import Plugin from '@jbrowse/core/Plugin' import { AbstractSessionModel, isAbstractMenuManager, } from '@jbrowse/core/util/types' import TableChartIcon from '@material-ui/icons/TableChart' import SvInspectorViewTypeFactory from './SvInspectorView/SvInspectorVi...
/* * Copyright 2018 Uncharted Software Inc. */ import DataView = powerbi.DataView; import DataViewMetadataColumn = powerbi.DataViewMetadataColumn; import * as $ from 'jquery'; /** * Finds and returns the dataview column(s) that matches the given data role name. * * @param {DataView} dataView A Powerbi data...
import { createAction, props } from '@ngrx/store'; import { IGame } from '../models'; export const titleLoaded = createAction( '[Title] Title Loaded', props<{ payload: IGame }>() );
import { Tree } from "ant-design-vue" import { App, defineComponent, h } from "vue" import Icon from "../mars-icon/index.vue" import "./tree.less" /** * 树控件 * @copyright 火星科技 mars2d.cn * @author 火星吴彦祖 2022-01-01 */ const MarsTree = defineComponent({ name: "mars-tree", inheritAttrs: false, setup(props, contex...
/*! * @author electricessence / https://github.com/electricessence/ * Based upon .NET source. * Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md * Source: http://referencesource.microsoft.com/#mscorlib/system/IObserver.cs */ import { IDisposable } from "../Disposable/IDisposa...
import { edkt } from '../../src'; import { timeStampInSecs } from '../../src/utils'; import { clearStore, setUpLocalStorage } from '../helpers/localStorage'; import { makeAudienceDefinition, makeCosineSimilarityQuery, makeLogisticRegressionQuery, } from '../helpers/audienceDefinitions'; import { PageView } from '...
export class RunApplicationOnDeviceCommand implements ICommand { constructor(private $devicesService: Mobile.IDevicesService, private $errors: IErrors, private $stringParameter: ICommandParameter, private $staticConfig: Config.IStaticConfig, private $options: IOptions) { } public allowedParameters: ICommand...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-configuration', templateUrl: './configuration.component.html', styleUrls: ['./configuration.component.css'] }) export class ConfigurationComponent implements OnInit { constructor() { } ngOnInit() { } }
import { Moment } from "moment"; interface IQueryParams { app: string; type?: string; dateRangeEnd: Moment; dateRangeStart: Moment; } /** * Build a query for the Chronicle API * @param queryParams */ export const chronicleAPIQueryBuilder = (queryParams: IQueryParams) => { let typeQuery = null; ...
import Sound from "./Sound"; export interface RenderOptions { width?: number; height?: number; fill?: string | CanvasPattern | CanvasGradient; } export default class SoundUtils { static sineTone(hertz?: number, seconds?: number): Sound; static render(sound: Sound, options?: RenderOptions): PIXI.Base...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Category } from 'src/app/models/Category'; @Injectable({ providedIn: 'root' }) export class CategoryService { url = localStorage.getItem('ServerUrl'); constructor(private htt...
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {FormsModule} from '@angular/forms'; import {MatSelectModule} from '@angular/material/select'; import {ButtonModule} from '../button/button.module'; import {DropdownActionsComponent} from './dropdown-actions.component'; @NgMo...
import { AzureFunction, Context, HttpRequest } from "@azure/functions"; import productsService from "../services/productsService"; const httpTrigger: AzureFunction = async function ( context: Context, req: HttpRequest, ): Promise<void> { let response; try { const product = req.body; const result = awa...
import type { MutationTuple, QueryResult, Reference } from "@apollo/client"; import { gql } from "@apollo/client"; import { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, Alert, AlertDescription, AlertIcon, AlertTitle, Box, Button, FormControl, ...
import * as React from 'react'; import { mount } from '@cypress/react'; import { MainWrapper } from './MainWrapper'; describe('MainWrapper Component', () => { describe('rendering', () => { it('renders', () => { mount(<MainWrapper>Some content</MainWrapper>); cy.get('[data-testid="MainWrapper"]').sho...
import {Ref} from "@fovea/common"; import {TemplateElement} from "../../template/element/template-element/template-element"; /** * Adds a ref to a TemplateElement * @param {TemplateElement} child * @param {Ref} ref * @private */ export function ___addRef (child: TemplateElement, ref: Ref): void { child.addRef(re...