text
stringlengths
10
953k
import React, { FC } from 'react' import cn from 'classnames' import styles from './style.css' export const BeatQuarterCell: FC<{ isActive: boolean handleClick: () => void }> = ({ isActive, handleClick }) => { return ( <button onClick={handleClick} className={cn(styles.beatQuarterCell, { [String...
import { asyncSequenceOf } from "../../src/Sequence"; import { asAsyncSequence } from "../../src/async-sequence/asyncSequence"; describe("toList", () => { it("should return new array", async () => { const input = [1, 2, 3]; const array = await asAsyncSequence(input).toList(); expect(input).not.toBe(array...
export class EnvService { // The values that are defined here are the default values that can // be overridden by env.js // API url public apiUrl = ''; // Whether or not to enable debug mode public enableDebug = true; constructor() { } }
export const GATEWAY_MODULE_OPTIONS = 'GATEWAY_MODULE_OPTIONS'
import React, { ReactNode } from 'react'; import HeadingContext from './HeadingContext'; import { Box, BoxProps } from '../Box/Box'; import { useHeading, HeadingLevel, HeadingWeight, } from '../../hooks/typography'; /* tslint:disable-next-line no-object-literal-type-assertion */ const resolveDefaultComponent = {...
import { createStyles, Tab, Tabs, Theme, Typography, WithStyles, withStyles, } from "@material-ui/core"; import React from "react"; import { connect } from "react-redux"; import { getNodeInfo, getRayletInfo, getTuneAvailability } from "../../api"; import { StoreState } from "../../store"; import LastUpdat...
import { MemorySectionType } from "./MemorySectionType"; /** * This class describes a memory section with a start address and a length */ export class MemorySection { private _start = 0; private _end = 0; private _type = MemorySectionType.Disassemble; /** * The start address of the section *...
import { atomGenerator, camelCaseSplit, capitalize, isEmpty } from '../utils'; test('atomGenerator should return a new atom', () => { expect(atomGenerator('backgroundColor', 'red')).toEqual({ backgroundColor: 'red', }); expect(atomGenerator('textAlign', 'center')).toEqual({ textAlign: 'center', }); e...
import * as React from 'react'; import { CSSModule } from './utils'; export interface BadgeProps extends React.HTMLAttributes<HTMLElement> { [key: string]: any; color?: string; pill?: boolean; tag?: React.ElementType; innerRef?: React.Ref<HTMLElement>; cssModule?: CSSModule; } declare class Badge extends ...
import React, { forwardRef, useEffect, useState } from 'react' import { Select } from '@chakra-ui/react' import type { Store } from 'effector' import { WidgetWrapper } from '../../common/components/WidgetWrapper' import { getAccessor, getData, getPayload, getWidgetContent, applyCallback, getAccessorWithDef...
import { Component } from '@angular/core'; import { EThree } from '../../../../../dist/e3kit.browser.umd.min'; @Component({ selector: 'page-hello-ionic', templateUrl: 'hello-ionic.html' }) export class HelloIonicPage { result: string; fetch: any; constructor() { this.result = 'waiting for test'; let ...
import ma = require('vsts-task-lib/mock-answer'); import tmrm = require('vsts-task-lib/mock-run'); import path = require('path'); let taskPath = path.join(__dirname, '..', 'gradletask.js'); let tr: tmrm.TaskMockRunner = new tmrm.TaskMockRunner(taskPath); tr.setInput('wrapperScript', 'gradlew'); tr.setInput('cwd', '/h...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Tatsumicoin</source> <translation>Über Tatsumicoin</translation> ...
import { connect } from 'react-redux'; import Flows from './flow_list' import { viewStateSelector } from '../../selectors'; import { makeNewID } from '../index'; function makeMapStateToProps() { return (state: any, ownProps: any) => { ownProps.id = ownProps.id || makeNewID(ownProps) let entityState...
import { log, ModuleTypes, utils, readPackageJsonSync } from 'ern-core' import fs from 'fs' import path from 'path' /** * * @param apiImplPluginPath : node package directory from for the api impl module. * @param mustacheView: Object * @param excludeJsImpl: setting this to true will exclude api details for a JS im...
import { ErrorRequestHandler, NextFunction, Request, RequestHandler, Response } from "express"; import Context from "./Context"; import ExpressRequestAdapter from "./ExpressRequestAdapter"; import ExpressResponseAdapter from "./ExpressResponseAdapter"; import IHandlers from "./handlers/IHandlers"; import deserializerM...
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import * as dotenv from 'dotenv'; dotenv.config(); async function bootstrap() { const app = await NestFactory.create(AppModule); app.enableCors(); await app.listen(process.env.PORT || 4040); } bootstrap();
namespace wasi { /** * A super basic `wasi_snapshot_preview1` syscall provider. * All provided syscalls are implemented as: * * ```js * debugger; * return ERRNO_NOTCAPABLE; * ``` * * This allows you to run programs that require not yet implemented syscalls * until y...
import PreventExtensibleList from '../../dist/handler/prevent-extensible-list-all'; it('enable console log', () => { spyOn(console, 'log').and.callThrough();}); describe('direct set', () => { it('delete', ()=>{ class Class { data : string = 'class'; } let object = { ...
import { render, waitFor } from '@testing-library/react'; import Login from '../../pages/Login'; import userEvent from '@testing-library/user-event'; import { MemoryRouter, Router } from 'react-router'; import { createMemoryHistory } from 'history'; import { renderHook } from '@testing-library/react-hooks'; import { Au...
/** * @license * Copyright Anthem Inc. All Rights Reserved. * * This source code is released under version 2.0 of the Apache License. * The LICENSE information can be found at http://www.apache.org/licenses/LICENSE-2.0 */ import { Component, Input } from '@angular/core'; import { Param } from '../../../shared/ap...
import { NgModule } from '@angular/core'; import { NxAnchorButtonComponent } from './anchor-button.component'; import { NxAnchorIconButtonComponent } from './anchor-icon-button.component'; import { NxAnchorPlainButtonComponent } from './anchor-plain-button.component'; import { NxButtonComponent } from './button.compone...
/* eslint-disable max-len */ import React from 'react'; import HoverIcon from './HoverIcon'; const SegementsIcon: HoverIcon = ({ isHovered }) => ( <svg width='24' height='17' viewBox='0 0 24 17' fill='none' xmlns='http://www.w3.org/2000/svg'> <path d='M5.31394 6.31818C5.8893 6.31818 6.45175 6.14757 6.93014 5.82...
import { Entity } from '../common/entity'; import { Iland } from '../../iland'; import { MediaJson } from './__json__/media-json'; import { EntityType } from '../common/__json__/entity-type'; import { Task } from '../task/task'; import { MediaUpdateRequest } from './media-update-request'; import { MediaCloneRequest } f...
export declare const pick: <Context, T, K extends keyof T, X extends (o: Pick<T, K>[K], _: any, ctx: Context) => any = never>(k: K, transform?: X | undefined) => (o: T, args_0: any, args_1: Context) => X | undefined extends undefined ? Pick<T, K>[K] : ReturnType<X>;
import { Request, Response } from 'express'; import User from '../../../models/user'; import redisClient from '../../../config/db.connect'; import { ttlResetPassword, redirectUrlPasswordReset, } from '../../../config/config'; import genericError from '../../../utils/generic_error'; const GetResetPassword = (req: R...
type MapCallback<T, N> = (value: T, index: number, array: T[]) => N; export function map<T, N>(array: T[], callback: MapCallback<T, N>): N[] { const result = []; const { length } = array; for (let index = 0; index < length; index += 1) { const value = array[index]; result[index] = callback(value, index...
import React, { useEffect, useState } from "react"; import { Drawer, Menu, Button, Typography } from "antd"; import { MenuOutlined } from "@ant-design/icons/lib"; import { Link } from "react-router-dom"; import { User } from "../../types/types"; class Page { name: string; link: string; privateRoute: boolean; ...
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import * as $ from 'jquery'; import { AuthService } from 'src/app/services/auth.service'; import {UserDto} from "../../../util/dto"; @Component({ selector: 'app-chat-list', templateUrl: './chat-list.component.html', styleUrls: ['./ch...
import { sampleTests } from './sample.test' sampleTests()
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { CreateNewListComponent } from './create-new-list.component'; describe('CreateNewListComponent', () =>...
import { BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BraketClient"; import { SearchQuantumTasksRequest, SearchQuantumTasksResponse } from "../models/index"; import { deserializeAws_restJson1SearchQuantumTasksCommand, serializeAws_restJson1SearchQuantumTasksCommand, } from "../protoc...
import {MutableRefObject, useEffect, useRef, useState} from "react"; import {Object3D} from "three"; import {useFrame} from "react-three-fiber"; export const useIsPlayerMoving = (ref: MutableRefObject<Object3D | undefined>) => { const [isMoving, setIsMoving] = useState(false) const [temporaryIsMoving, setTempo...
export { NgxDocViewerComponent } from './document-viewer.component'; export { NgxDocViewerModule } from './document-viewer.module';
import { Component, Input, Output, EventEmitter, OnInit, Inject, ChangeDetectorRef, OnDestroy, } from '@angular/core' import { get as _get } from 'lodash' import { CurrentUserService } from '@app-seller/shared/services/current-user/current-user.service' import { Address, SupplierAddresses, AdminAd...
/** * @eightfeet/modal * 与react结合最佳实践 */ import React, { useCallback, useEffect, useRef, useState } from "react"; import * as CSS from "csstype"; import MD, { ModalParameters } from "@eightfeet/modal"; import ReactDOM from "react-dom"; interface Props { id?: ModalParameters["id"]; animation?: ModalParameters["a...
// 利用可能なノード一覧 export type AvailableNodeInfo = { regionName: string, nodeId: string, nodeName: string, }
// Angular import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; // Project import { HsvaColor } from '../../interfaces/hsva-color.interface'; import { ColorModel } from '../../interfaces/color-model.interface'; import { hsvaToRgbaString, rgbaStringToHsva } from '../../utils/convert'; @Com...
import 'jest-extended'; import { Logger } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { Test, TestingModule } from '@nestjs/testing'; import { restore as sinonRestore, stub, SinonStub } from 'sinon'; import { Readable } from 'stream'; import { Request } from 'express'; import { from } ...
import ssm = require('@aws-cdk/aws-ssm'); import { Construct, Stack, Token } from '@aws-cdk/cdk'; import { UserData } from './user-data'; import { WindowsVersion } from './windows-versions'; /** * Interface for classes that can select an appropriate machine image to use */ export interface IMachineImage { /** *...
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {Hero} from "../hero"; @Component({ selector: 'app-dashboard-hero', templateUrl: './dashboard-hero.component.html', styleUrls: ['./dashboard-hero.component.css'] }) export class DashboardHeroComponent implements OnInit { @Inp...
import * as vscode from 'vscode'; import * as fs from 'fs'; import * as path from 'path'; import * as url from 'url'; import utils from './utils'; import { locale as $l } from './utils'; import * as qiniu from 'qiniu'; class Qiniu implements Upload { config: Config; token: string; lastTimestamp: number; ...
import deprecated, { logged } from '@wordpress/deprecated'; // $ExpectType void deprecated('foo'); deprecated('foo', { alternative: 'bar' }); deprecated('foo', { hint: 'bar' }); deprecated('foo', { link: 'bar' }); deprecated('foo', { plugin: 'bar' }); deprecated('foo', { version: 'bar' }); deprecated('foo', { alterna...
namespace gdjs { gdjs.PixiFiltersTools.registerFilterCreator('Glow', { makePIXIFilter: function (layer, effectData) { const glowFilter = new PIXI.filters.GlowFilter(); return glowFilter; }, update: function (filter, layer) {}, updateDoubleParameter: function (filter, parameterName, value) ...
// (C) 2007-2018 GoodData Corporation import React from "react"; import { injectIntl, WrappedComponentProps } from "react-intl"; import { ObjRef, areObjRefsEqual } from "@gooddata/sdk-model"; import Dropdown, { DropdownButton } from "@gooddata/goodstrap/lib/Dropdown/Dropdown"; import { stringUtils } from "@gooddata/uti...
import { TestBed, inject } from '@angular/core/testing'; import { HeaderToPedidosEventService } from './header-to-pedidos-event.service'; describe('HeaderToPedidosEventService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [HeaderToPedidosEventService] }); }); it('should...
/** * ID: 01432 * Title: Max Difference You Can Get From Changing an Integer * Difficulty: Medium * Description: You are given an integer num. You will apply the following steps exactly two times: * * Pick a digit x (0 <= x <= 9). * Pick another digit y (0 <= y <= 9). The digit y can be equal to x. * Replac...
export function round(node) { node.x0 = Math.round(node.x0); node.y0 = Math.round(node.y0); node.x1 = Math.round(node.x1); node.y1 = Math.round(node.y1); }
import { ExecutionContext, Injectable } from '@nestjs/common'; import { IJwtPayload } from '../interface'; import { AbstractGuard } from './AbstractGuard'; import { AuthService } from '../service/AuthService'; @Injectable() export class UserIdGuard extends AbstractGuard { constructor(authService: AuthService) { ...
// Generated file. Do not edit export const statusCodeToReasonPhrase: Record<string, string> = { "202": "Accepted", "502": "Bad Gateway", "400": "Bad Request", "409": "Conflict", "100": "Continue", "201": "Created", "417": "Expectation Failed", "424": "Fai...
import { CustomType, CustomTypeChild, DocAgnosticFormat, DocSection, ExternalExportToLink, ExternalTypeToLink, GeneratedDocJson, IndexSignature, Parameter, Property, Type, TypeDocNode, TypeDocType, TypeDocTypes, TypeParameter, TypescriptFunction, Types...
export { default as actions } from './actions'; export { default as reducer } from './reducer'; export { default as selectors } from './selectors'; export { default as PluralSelector } from './components/PluralSelector'; export type { PluralState } from './reducer'; // List of available CLDR plural categories. expor...
/** * The Graph */ export class Graph { /** The ID of the current node **/ parentId: number; /** An array of the IDs of the current node's children **/ children: number[]; }
import { Component, OnInit, Renderer, AfterViewInit } from '@angular/core'; import { Router } from '@angular/router'; import { AhanaService } from '../../../../services/ahana.service'; @Component({ selector: 'app-room-charge-item', templateUrl: './room-charge-item.component.html', styleUrls: ['./room-charge-item.c...
import { Component, OnInit, Output, EventEmitter } from '@angular/core'; import {RoomReservations} from '../room-reservations/room-reservations.model'; import {Room} from '../room/room.model'; import {RoomListService} from '../room-list/room-list.service'; import {RoomReservationsListService} from '../room-reservations...
import { DinaForm } from "../../formik-connected/DinaForm"; import { mountWithAppContext } from "../../test-util/mock-app-context"; import { BulkDataEditor } from "../BulkDataEditor"; interface TestRow { a: string; b: string; c: string; id: string; } const mockOnSubmit = jest.fn(); // Mock out the HandsOnTab...
/* * Copyright 2021 AI Redefined Inc. <dev+cogment@ai-r.com> * * 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 requir...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
export { VSystemBar } from './VSystemBar'
import * as React from 'react' import {Component} from 'react' import * as PropTypes from 'prop-types' import * as omit from 'lodash.omit' interface ScrollAreaProps { resetOnLeave?: boolean, horizontal?: boolean, vertical?: boolean, style?: Object } export default class ScrollArea extends Component<ScrollArea...
import React from 'react'; import { Box, Text } from 'rebass'; import { InlineIcon } from '@iconify/react'; import deleteBinFill from '@iconify/icons-ri/delete-bin-fill'; type Props = { onClick: any; }; const DeteleButton: React.FC<Props> = ({ onClick }) => { const textStyling = { fontFamily: 'body',...
import React, { useCallback } from 'react'; import IFizzyCarouselControlPropTypes from './IFizzyCarouselControlPropTypes'; interface ISliderArrowsPropTypes { previousControl?: React.ComponentType<IFizzyCarouselControlPropTypes>; nextControl?: React.ComponentType<IFizzyCarouselControlPropTypes>; onClick: (...
import { SaveGame } from '../types'; import { ReadArchive, WriteArchive } from './Archive'; import { Builder, functionCommands } from './Builder'; import { Command, Context, LoopBodyCommand } from './commands'; import { transformHeader, transformActorOrComponent, } from '../transforms/transform'; import { transform...
import * as structGoogle from 'google-protobuf/google/protobuf/struct_pb'; import * as struct from '../out/google/protobuf/struct.pb'; describe('struct.proto', () => { it('should serialize non-trivial scalar values consistentl wiht web-grpc', () => { const msg = new struct.Struct({ fields: { someD...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
export class AppAnswer{ constructor( private answer1:any, private answer2:any, ){} }
import type { ActionDefinition } from '@segment/actions-core' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' const action: ActionDefinition<Settings, Payload> = { title: '{{name}}', description: '{{description}}', fields: {}, perform: (request, data) => { ...
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Web3Service } from './web3.service'; import {Web3MobileService} from "./web3.mobile.service"; declare var require: any; const transactionArtifacts = require('../../build/contracts/Transaction.json'); const contract = req...
import React, { useEffect, useState } from 'react'; import { FaWhatsapp } from "react-icons/fa"; import { FiClock, FiInfo } from "react-icons/fi"; import { Map, Marker, TileLayer } from "react-leaflet"; import { useParams } from 'react-router-dom'; import api from '../services/api'; import Sidebar from "../components...
import { AsyncCommand } from './command/AsyncCommand'; import { Command } from './command/Command'; import { ICommand } from './command/ICommand'; import { CommandsIterable } from './commands/CommandsIterable'; type Setup<Model, Real> = () => { model: Model; real: Real }; type AsyncSetup<Model, Real> = () => Promise<{...
import { RsuvResultBoolPknz } from './RsuvResultBoolPknz'; import { RsuvTxStringACB } from './RsuvTxStringACB'; const valuesOk = ['aaAA11_', 'a1', '_']; const valuesKo = [null, NaN, undefined, ' 1', {}, 'a a', '1a^', '1name']; function fnVerif(values: any, isTrue: boolean) { values.forEach((elVal: any) => { it(...
import { injectable } from 'inversify'; import quad from '../../../../shaders/post-processing/quad.glsl'; import sepia from '../../../../shaders/post-processing/sepia.glsl'; import BasePostProcessingPass from '../BasePostProcessingPass'; export interface ISepiaPassConfig { amount: number; } @injectable() export def...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-healthy', templateUrl: './healthy.component.html', styleUrls: ['./healthy.component.scss'] }) export class HealthyComponent implements OnInit { plan = 1; constructor() { } ngOnInit() { } }
import React, { useState } from 'react'; import { Shell, ConfigProvider } from '@alifd/next'; (function () { const throttle = function (type: string, name: string, obj: Window = window) { let running = false; const func = () => { if (running) { return; } running = true; requ...
import { Request, Response } from "express"; import { ListPedidosUseCase } from "./ListPedidosUseCase"; class ListPedidosController { constructor(private listPedidosUseCase: ListPedidosUseCase) {} async handle(request: Request, response: Response): Promise<Response> { try { const pedidos = await this.l...
import { accessSync, constants, mkdirSync, readFileSync, unlinkSync, writeFileSync } from 'fs'; import { folders, files } from './const'; folders.forEach(folder => { try { mkdirSync(folder); } catch (err) { console.log("Folder (" + folder + ") already exist. Skip creating it.") } }); Object.keys(files)....
export * from './base'; export * from './theme'; export * from './user'; export * from './post';
import * as React from 'react'; import { IconProps } from './types'; export const Share1Icon = React.forwardRef<SVGSVGElement, IconProps>( ({ color = 'currentColor', ...props }, forwardedRef) => { return ( <svg width="15" height="15" viewBox="0 0 15 15" fill="none" x...
import { ResizeDirective } from './resize.directive' describe('ResizeDirective', () => { it('should create an instance', () => { const directive = new ResizeDirective(null, null, null) expect(directive).toBeTruthy() }) })
import Icon from './icon-internal'; type YoutubeBrandProps = Omit<React.ComponentProps<typeof Icon>, 'children'>; function YoutubeBrand({ size, ...restProps }: YoutubeBrandProps) { return ( <Icon viewBox="0 0 18 18" size={size} {...restProps}> <path fill="currentColor" d="M9 2C.155 2 0 2.7...
import type { Prisma } from '@prisma/client' import type { ResolverArgs, BeforeResolverSpecType } from '@redwoodjs/api' import { db } from 'src/lib/db' import { requireAuth } from 'src/lib/auth' // Used when the environment variable REDWOOD_SECURE_SERVICES=1 export const beforeResolver = (rules: BeforeResolverSpecTyp...
import { Component } from '@angular/core'; import { SliderValue, SliderOptions, ColorService, SliderStyle, SliderCalloutTrigger, SliderSize, SliderSnap, SliderType } from '@ux-aspects/ux-aspects'; @Component({ selector: 'app', templateUrl: './src/app.component.html' }) export class AppComponent { slider1:...
import * as Module from './module/_index' import { createStore } from 'vuex' import { createProxy, extractVuexModule, VuexModule } from 'vuex-class-component' import createPersistedState from 'vuex-persistedstate' import vuexProxy from './proxy' import config from './config' export default function () { const Modu...
import { NgModule } from '@angular/core'; import { Ng2SmartTableModule } from 'ng2-smart-table'; import { NbDialogModule } from '@nebular/theme'; import { ThemeModule } from '../../@theme/theme.module'; import { SmartTableDatePickerComponent } from '../../@theme/components/smart-table-date-picker-component/smart-table...
import React, { useEffect, useState } from "react"; import Layout from "../components/layout"; import SEO from "../components/seo"; import ProductItem from "../components/product-item"; import { useStaticQuery, graphql } from "gatsby"; import Product from "../interfaces/Product"; import { getProducts } from "../util/he...
import {createIntegrationTest} from "@internal/test-helpers"; import {test} from "rome"; test( "smoke", createIntegrationTest( { files: { "index.js": "unknownVariable", }, }, async (t, {client}) => { await client.query({commandName: "check"}); }, ), ); test( "smoke save", createIntegrationTe...
import { Injectable } from '@angular/core'; import { ActivityM } from '../../models/activity.model'; @Injectable() export class Activities { constructor() { } /** * Fake get, without call api (get activities) * @param {string} type - parameter for get different types of activities * @retu...
/** @jsx jsx */ import { jsx } from "theme-ui" import Divider from "../elements/divider" import Inner from "../elements/inner" import Content from "../elements/content" import SVG from "./svg" import { UpDown, UpDownWide } from "../styles/animations" // @ts-ignore import AboutMDX from "../sections/about" const About =...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.22.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do no...
import { Observable } from 'tns-core-modules/data/observable'; import { NsVideoPlayer } from 'nativescript-ns-video-player'; export class HelloWorldModel extends Observable { public message: string; private nsVideoPlayer: NsVideoPlayer; constructor() { super(); this.nsVideoPlayer = new NsVideoPlayer();...
import { NodeFileSystem } from './fs/nodefs-impl' import { FileSystem } from './fs/file-system' import { MTime } from './fs/mtime' import { DataBase } from './db' export class IO { static fs: FileSystem static db?: DataBase static mtime?: MTime static getFileSystem (): FileSystem { if (!this.f...
// Copyright (c) 2019 The DAML Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 'use strict'; // The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; import * as path from 'path'; ...
export * from "./post"; export * from "./workout"; export * from "./user"; export * from "./post-comment"; export * from "./reaction"; export * from "./post-extended"; export * from "./planned-post-extended"; export * from "./route"; export * from "./planned-route"; export * from "./event-post-extended"; export * from ...
import { Component, OnInit, Input } from '@angular/core'; import { ComponentRendering } from '@sitecore-jss/sitecore-jss-angular'; // declare var $:any; // declare var AOS:any; @Component({ selector: 'app-corporate-profile', templateUrl: './corporate-profile.component.html', styleUrls: ['./corporate-profile.comp...
/** Page Objects */ import { fireEvent, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { format } from 'date-fns'; export function getDayButton(day: Date) { return screen.getByRole('button', { name: format(day, 'do MMMM (EEEE)') }); } export function getAl...
import { Menu } from "./Menu"; export interface Restaurant { id?: number; name?: string; chain?: string; url?: string; lat?: number; lng?: number; enabled?: boolean; createdAt?: Date; updatedAt?: Date; menus?: Menu[]; distance?: number; }
export interface ExpressionContext { [key: string]: any; }
import { SortType } from '../../helpers/types'; export interface StoryColumnType { name: string; username: string; date: string; score: number; location: string; // This is only for the headers and not used in the body whatsoever. checkbox?: boolean; } export interface FetchParams { filter: string; ...
/* * 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 moment from 'moment-timezone'; import React from 'react'; import { For...
import React from 'react'; import BackgroundImage from '../../../assets/img/discord.jpg'; import A32nxWireframe from '../../../assets/svg/a32nx_wireframe.svg'; import { Button } from '../../Button'; export const Hero: React.FC = () => ( <> <header className="absolute max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 ...