text
stringlengths
10
953k
import * as ORM from '@mikro-orm/core'; import { AbstractModel } from '#/BackendCore/Domain/Model/AbstractModel'; import { User } from '#/Watchdog/Domain/Model/User'; type ChainState = { peers : number, highestBlock : number, finalizedBlock : number, }; @ORM.Entity({ tableName: 'watchdog_state_node'...
import { assert } from 'chai'; import { dedupe, drop, dropWhile, filter, find, first, last, map, reduce, reject, scan, sort, take, takeWhile, zip, windowed, unique, zipWithIndex } from "../src/transducers"; import { range, repeat } from "../src/sequenc...
/** * @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 {RendererType2} from '../../src/render/api'; import {getLContext} from '../../src/render3/context_discovery'; ...
<TS language="fa" 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> <transl...
import { KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaClient"; import { RebootBrokerRequest, RebootBrokerResponse } from "../models/models_0"; import { deserializeAws_restJson1RebootBrokerCommand, serializeAws_restJson1RebootBrokerCommand, } from "../protocols/Aws_restJson1"; imp...
import { privates, tswElement } from './elm'; import { boolValType, singleStringValType, PropDef, ElementValueInfo, ValueChangeHandler, nothing } from "./types"; import { tswRef } from './ref'; export class tswRawHtml { constructor(public value: string) { } } export class tswElementButton extends tswElement { con...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.18.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do n...
import { FlowEndNode, FlowEndPublicNode } from "@bitflow/core"; import { useBitEnd } from "@bitflow/provider"; import { EndShell } from "@bitflow/shell"; import { DoPropsBase } from "./types"; export const DoEnd = ({ onNext, getResult, node, }: Pick<DoPropsBase, "getResult" | "onNext" | "node"> & { node: FlowE...
import { Component } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { IonicPage, NavController, NavParams, LoadingController, AlertController } from 'ionic-angular'; import { Push, PushObject, PushOptions } from '@ionic-native/push'; import { DataService } from '../../providers/da...
import { App, Time } from 'koishi' import mock from '@koishijs/plugin-mock' import memory from '@koishijs/plugin-database-memory' import * as admin from '@koishijs/plugin-admin' import * as rate from '@koishijs/plugin-rate-limit' import { install } from '@sinonjs/fake-timers' const app = new App() let now = Date.now()...
import { Input, Box, Grid, Flex } from 'theme-ui' import { useHandlers } from '@/uibox' function TextPanel() { const handlers = useHandlers() const addHeading = () => { const options = { type: 'StaticText', width: 800, metadata: { fontWeight: 700, fontFamily: 'Lexend', ...
import { ModuleWithProviders } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { loginRoutes } from './login/login.routes'; import { planRoutes } from './plan/plan.routes'; // Route Configuration export const routes: Routes = [ { path: '', redirectTo: '/login', ...
import chalk from 'chalk'; import debug from 'debug'; import fs from 'fs'; import { isNotEmpty } from 'my-easy-fp'; import * as TEI from 'fp-ts/Either'; import path from 'path'; import typescript, { textSpanIsEmpty } from 'typescript'; import * as TJS from 'typescript-json-schema'; import util from 'util'; import { ICr...
import * as taskLib from 'azure-pipelines-task-lib/task'; import * as semver from 'semver'; import * as path from "path"; import * as peParser from "packaging-common/pe-parser"; import {VersionInfo} from "packaging-common/pe-parser/VersionResource"; import * as telemetry from "utility-common/telemetry"; import nuGetGe...
import { Router } from 'express'; import { CreateTagSchema, UpdateTagSchema } from 'domains/tag/tag-schema'; import { validate, auth } from 'app/middlewares'; import { makeUuidSchema } from 'domains/common/common-schema'; import * as controller from './tag-controller'; const base = Router(); const router = Router(); ...
import { Component, Input, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'bc-nav-item', template: ` <a mat-list-item [routerLink]="routerLink" (click)="navigate.emit()"> <mat-icon mat-list-icon>{{ icon }}</mat-icon> <span mat-line><ng-content></ng-content></span> <span m...
import { IStructDef, IFieldDef, IPrivateDef } from '~/types'; import Dependencies from '../../Dependencies'; import { typeWrap, externalize } from '../../helpers'; export default function renderInternal( item: IStructDef, dependencies: Dependencies ): string { const str: string = [ ` $val: { ge...
import React from 'react' import { Block } from 'baseui/block' import env from '@beam-australia/react-env' import { Metrics } from '@dakan/metrics' import { useElasticSearch } from '@dakan/hooks' import exampleJson from '../resources/example.json' import Content from '../components/Content' import ErrorMessage from '....
import { Component, OnInit } from '@angular/core'; import { AuthService } from 'src/app/auth/auth.service'; import { WindowPopService } from 'src/app/shared/window-pop/window-pop.service'; import { BreadcrumbsService } from 'src/app/shared/breadcrumbs.service'; import { SearchService } from 'src/app/header/search/searc...
module BABYLON { Node.AddNodeConstructor("WebVRFreeCamera", (name, scene) => { return () => new WebVRFreeCamera(name, Vector3.Zero(), scene); }); Node.AddNodeConstructor("WebVRGamepadCamera", (name, scene) => { return () => new WebVRFreeCamera(name, Vector3.Zero(), scene); }); /** ...
import {PlatformTest} from "@tsed/common"; import {Store} from "@tsed/core"; import {InjectorService, ProviderType} from "@tsed/di"; import {expect} from "chai"; import Sinon from "sinon"; import {SocketFilters} from "../interfaces/SocketFilters"; import {SocketReturnsTypes} from "../interfaces/SocketReturnsTypes"; imp...
/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ---------------------------------------------------------------...
import * as React from 'react'; // tslint:disable-next-line:ordered-imports import { Svg, Path } from 'swgs'; import { FlexSvgPropsOptional, reflexComponent, SvgIcon, } from '@reflex-ui/core'; export const AirlineSeatReclineNormalIcon = reflexComponent< FlexSvgPropsOptional >({ name: 'AirlineSeatReclineNorm...
/* eslint-disable no-inner-declarations */ import { CharSet } from "./char-set"; import { Char, ReadonlyWord, Word } from "./char-types"; import { ReadonlyWordSet, WordSet } from "./word-set"; import { FABuilder, FAIterator, FiniteAutomaton, NodeFactory, ToRegexOptions, TransitionIterable, TransitionIterator, } ...
import 'phaser'; import AreaCollier from '../../areaCollider'; import Hero from '../sprites/hero'; export default class House1GroundFloorScene extends Phaser.Scene { hero: Hero; areaCollider: AreaCollier = new AreaCollier(this, 'game'); areaObjects: Array<Phaser.Types.Tilemaps.TiledObject>; construct...
function id(element: HTMLElement) { return element.id ? `#${element.id}` : '' } function classes(element: HTMLElement) { let classSelector = '' const classList = element.classList for (const c of classList) { classSelector += '.' + c } return classSelector } function nthChild(element: HTMLElement) { ...
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getTitleText()).toEqual('Welcome...
import { Pool, PoolConfig, QueryResult } from "pg"; const credentials = { "user": process.env.POSTGRES_USER, "host": process.env.POSTGRES_DB_HOST || "localhost", "database": process.env.POSTGRES_DB_NAME, "password": process.env.POSTGRES_PASSWORD } const pool: Pool = new Pool(<PoolConfig>credentials); ...
import { R4 } from "@ahryman40k/ts-fhir-types"; export declare class Bundle { constructor(); /** First it checks if there is a valid 'Composition' resource (with title, type, date and status) * as first resource in the FHIR Bundle document, then return the type code if any or undefined */ getTypeOfBund...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { FormsModule } from '@angular/forms'; import { SharkTablePaginationComponent } from './table.pagination.component'; import { SharkTableComponent } from './table.component'; ...
import React from 'react'; import { View, StyleSheet } from 'react-native'; import { SceneView, SceneViewProps } from 'react-navigation'; const styles = StyleSheet.create({ container: { flex: 1 } }); export default function(props: SceneViewProps) { return ( <View style={styles.container}> <SceneVi...
import { PowerCutFormFullModel } from './basicModel'; import { AxiosRequestConfig, AxiosResponseHeaders } from 'axios'; export interface GetPowerCutFormListParams { /** 正序倒序 */ ascending: boolean; /** 排序的字段名 */ orderBy: string; /** 当前页码数 */ pageNo?: number; /** 一页多少条记录 0标识不分页全部显示 */ pageSize?: number; ...
import { FileUtils, StandardizedFilePath, TransactionalFileSystem } from "../fileSystem"; import { ts } from "../typescript"; import { TsSourceFileContainer } from "./TsSourceFileContainer"; /** * Options for creating a module resolution host. */ export interface CreateModuleResolutionHostOptions { /** The transac...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Rhodium</source> <translation>عن Rhodium</translation> </message...
import chalk from 'chalk'; import { metrics, shouldCollectMetrics } from '../metrics'; import { APIError } from '../errors-ts'; import renderLink from './link'; const metric = metrics(); export default function error( ...input: string[] | [Pick<APIError, 'slug' | 'message' | 'link' | 'action'>] ) { let messages =...
/* import { TestBed } from '@angular/core/testing'; import { AuthService } from './auth.service'; describe('AuthService', () => { let service: AuthService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(AuthService); }); it('should be created', () => { expect(ser...
import MenuAccounts from 'app/accounts/MenuAccounts'; import { currentAccountSelector } from 'app/accounts/selectors'; import Sheet from 'app/dim-ui/Sheet'; import { Hotkey } from 'app/hotkeys/hotkeys'; import { useHotkeys } from 'app/hotkeys/useHotkey'; import { t } from 'app/i18next-t'; import { accountRoute } from '...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="et" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Artbyte</source> <translation>Info Artbyte&apos;i kohta</translation> </message> <message> ...
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; /** * <p>Contains information for a group identity in an access policy.</p> */ export interface GroupIdentity { /** * <p>The Amazon Web Services SSO ID of the group.</p> */ id: string | undefined; } e...
/** * Sync to go-const-ts templates! */ // data: null // file: pipe/index-base.pipe.ts export const indexBasePipeTpl = `// Generated by node-private-tools import { Pipe, PipeTransform } from '@angular/core'; import { XlangJsonService } from 'ng-ef-sand/xlang'; export abstract class IndexBasePipe implements PipeTran...
import * as azmaps from "azure-maps-control"; import { MapPathPlayableAnaimation as MapPathPlayableAnimation } from './MapPathPlayableAnimation'; import { RoutePathAnimationOptions } from '../options/RoutePathAnimationOptions'; import { Utils } from '../../helpers/Utils'; import { TimeSpan } from '../interfaces/TimeSpa...
/** * @jest-environment ./jest-environment */ import type { CeramicApi } from '@ceramicnetwork/common' import { publishEncodedModel } from '@glazed/devtools' declare global { var ceramic: CeramicApi var packages: Record<string, string> } const publishedModel = expect.objectContaining({ definitions: expect.any...
/// <reference path="../node_modules/typescript/lib/lib.es6.d.ts" /> class Figure { name: string; timeline: Step[]; constructor(name: string, timeline: Step[]) { this.name = name; this.timeline = timeline; } } enum Foot { Left, Right } let LF = Foot.Left; let RF = Foot.Right; enum Pla...
import type { BuiltInCreditCardType, CardCollection } from "../types"; const cardTypes: CardCollection = { visa: { niceType: "Visa", type: "visa", patterns: [4], gaps: [4, 8, 12], lengths: [16, 18, 19], code: { name: "CVV", size: 3, }, } as BuiltInCreditCardType, mastercar...
import { Component, OnInit, ViewChild, HostListener } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { User } from 'src/app/_models/user'; import { AlertifyService } from 'src/app/_services/alertify.service'; import { NgForm } from '@angular/forms'; import { UserService } from 'src/app/_...
import * as source from 'vinyl-source-stream'; import { task, dest } from 'gulp'; /** rollup-stream has no type definitions */ const rollupStream = require('rollup-stream'); export interface RollupConfig { input: string; format: 'amd' | 'cjs' | 'es' | 'iife' | 'umd' | 'system'; name?: string; external: string...
import React from "react"; import { NavigationContainer } from "@react-navigation/native"; import { createStackNavigator } from "@react-navigation/stack"; import Landing from "../pages/Landing"; import GiveClasses from "../pages/GiveClasses"; import StudyTabs from "./StudyTabs"; const { Navigator, Screen } = createStac...
import { IDeviceConfig } from '../devices/device'; import { IHistoryItem } from './componentcontainer'; import { Container } from './container'; export interface IComponent { hide(): void; getCurrentState(): IHistoryItem; getIsModal(): boolean; getConfig(): IDeviceConfig; isComponent(): boolean; } e...
// Copyright 2017-2021 @canvas-ui/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import LabelHelp from './LabelHelp'; import { BareProps } from './types'; interface Props extends BareProps { help?: React.ReactNode; label?: React.ReactNode; withEllipsis...
import * as lp from './latex_parser_types'; export declare function stringify(node: lp.Node | lp.Node[], options?: { lineBreak: string; }): string;
/** * @license * Copyright 2020 Google Inc. 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 a...
import { Neptune } from "../Neptune"; import { NeptuneClient } from "../NeptuneClient"; import { DescribeDBEngineVersionsCommand, DescribeDBEngineVersionsCommandInput, DescribeDBEngineVersionsCommandOutput, } from "../commands/DescribeDBEngineVersionsCommand"; import { NeptunePaginationConfiguration } from "./Int...
import {Component, OnInit} from '@angular/core'; @Component({ selector: 'app-sidebar', templateUrl: './sidebar.component.html', styleUrls: ['./sidebar.component.scss'] }) export class SidebarComponent implements OnInit { constructor() { } ngOnInit(): void { } }
/* * Generated by @medplum/generator * Do not edit manually. */ import { Extension } from './Extension'; /** * Base StructureDefinition for Expression Type: A expression that is * evaluated in a specified context and returns a value. The context of * use of the expression must specify the context in which the e...
import { COMPONENT_PREFIX, CSS_PREFIX } from '@lumx/react/constants'; import kebabCase from 'lodash/kebabCase'; import trimStart from 'lodash/trimStart'; /** * Get the name of the root CSS class of a component based on its name. * * @param componentName The name of the component. This name should contains the com...
import { BrowserRouter, Routes, Route } from "react-router-dom"; import Listing from "./components/pages/Listing"; import Form from "./components/pages/Form"; import Navbar from "./components/Navbar"; function App() { return ( <BrowserRouter> <Navbar /> {/* Componente Navbar*/} <Routes> ...
/* eslint-env jest */ import { BigButton } from '@covid/components'; import * as React from 'react'; import renderer from 'react-test-renderer'; describe('Button', () => { it('should match snapshot', () => { const component = renderer.create(<BigButton onPress={() => {}}>Button Text</BigButton>); // @ts-exp...
import React, { useEffect, useState } from 'react'; import { useRoute, useNavigation } from '@react-navigation/native'; import { View, Text, StyleSheet, Platform, TouchableOpacity } from 'react-native'; import { FancyAlert } from 'react-native-expo-fancy-alerts'; import { Ionicons } from '@expo/vector-icons'; import ap...
import { useLayoutEffect, useRef } from "react"; import { TransitionState, AnimationHook } from "./types"; interface ContainerRectangle extends AnimationHook { } export const useContainerRectangle = (props: ContainerRectangle) => { const prevClientRect = useRef<ClientRect>(null); const nextClientRect = useR...
export class KeystoneUpdateUserOption { private 'domain_id'?: string | undefined; public name?: string; public password?: string; public enabled?: boolean; public description?: string; private 'pwd_status'?: boolean | undefined; public constructor() { } public withDomainId(domainId:...
import * as path from 'path'; import * as mkdirp from 'mkdirp'; import * as sfs from 'fs'; import { cloneOrFetchRepo, cloneRepo, checkoutSha, getWorkdirForRepoUrl, getTempdirForRepoUrl, getOriginForRepo, getHeadForRepo, resetOriginUrl } from './git-api'; import { getSanitizedRepoUrl, getNwoFromRepoUrl, postCommitSta...
import { animate, animateChild, animation, AnimationTriggerMetadata, group, keyframes, query, style, transition, trigger, useAnimation } from '@angular/animations'; import { IAnimationOptions } from '../common/interfaces'; const bounceOut = animation( group([ animate( '{{duration}}ms...
export const key = /** Your KEY here */ "";
import { serialize } from './serialize' import { isFunction, isUndefined, UNDEFINED } from './helper' import { SWRGlobalState, GlobalState } from './global-state' import { broadcastState } from './broadcast-state' import { getTimestamp } from './timestamp' import { Key, Cache, MutatorCallback, MutatorOptions } from '....
import {async, ComponentFixture, TestBed} from "@angular/core/testing"; import {MenuComponent} from "./menu.component"; import {MaterialDesignModule} from "../materialdesign.module"; import {BrowserModule} from "@angular/platform-browser"; import {FormsModule} from "@angular/forms"; import {CommonModule} from "@angular...
import {ReactNode, PropsWithoutRef} from "react" import {Form as FinalForm, FormProps as FinalFormProps} from "react-final-form" import * as z from "zod" export {FORM_ERROR} from "final-form" type FormProps<S extends z.ZodType<any, any>> = { /** All your form fields */ children: ReactNode /** Text to display in ...
/** * @license * Copyright 2020 Google Inc. 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 a...
import React from "react" import { Container, Grid, styled } from "@mui/material" import { DaoCard } from "../../components/DaoCard" import { ProposalList } from "../../components/ProposalList" const CommunityDetailsContainer = styled(Grid)(({ theme }) => ({ boxSizing: "border-box", padding: "0px 15px", [theme.b...
/* * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
/** * ID: 01649 * Title: Create Sorted Array through Instructions * Difficulty: Hard * Description: Given an integer array instructions, you are asked to create a sorted array from the elements in instructions. You start with an empty container nums. For each element from left to right in instructions, insert it...
import React, { type FC } from "react"; import { PayPalScriptProvider, FUNDING, PayPalButtons } from "../../index"; import { getOptionsFromQueryString, generateRandomString } from "../utils"; import DocPageStructure from "../components/DocPageStructure"; import { InEligibleError } from "../commons"; import { getDefaul...
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { enableProdMode } from '@angular/core'; import { environment } from './environments/environment'; import { AppModule } from './app/app.module'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapMod...
/** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * b...
export class Broadcast { id = 0; url: string; }
import { startServer, closeServer } from "server/utils/server"; import { logger } from "server/utils/logger"; import { autoUpdateGames, autoAssignPlayers } from "server/utils/cron"; import { config } from "server/config"; const startApp = async (): Promise<void> => { // Start cronjob to auto update games from Kompas...
import { EquipmentLevel } from "../../../../definitions"; import { EquipmentActions } from "../../definition"; import { BaseAxe } from "./base"; /* 猛虎斧 增加120点攻击 增加150点生命 20%吸血率 */ export class TigerAxe extends BaseAxe implements EquipmentActions { level = EquipmentLevel.Good; pr...
import { EdgeCollection } from 'arangojs/collection'; import { BaseDoc } from "./basedoc"; import { CollType } from '../../types/arangoTypes'; import { byNodesQuery } from '../queries/edgeQ'; /** * */ export class ArangoEdge extends BaseDoc { _from!: string; _to!: string; public static _type = CollType.EDGE;...
import { Card } from 'antd'; import capitalize from 'lodash/capitalize'; import React from 'react'; import { ProjectOutput } from '../../../../models/api/model/projectOutput'; export interface Props { item: ProjectOutput; onClick: (id: string) => void; } export class ListItem extends React.Component<Props> { ...
import { check, gen, Generator, property } from 'testcheck'; import validatorLookup, { defaultValidatorMessage, IValidatorFunc } from '../../src/utils/validator-lookup'; import ValidationResult from '../../src/validation-result'; import validatePresence from '../support/validate-presence'; const validationResultGe...
import { Injectable } from '@angular/core'; import { CanActivate, Router} from '@angular/router'; import { AuthService } from 'src/app/services/auth.service'; @Injectable({ providedIn: 'root' }) export class LoginGuard implements CanActivate { constructor( private authService: AuthService, pr...
export { default as RoundDeveloperMode } from './Icon';
import React from 'react'; import { connect } from 'react-redux'; import { Link, RouteComponentProps } from 'react-router-dom'; import { Button, Row, Col, Label } from 'reactstrap'; import { AvForm, AvGroup, AvInput, AvField } from 'availity-reactstrap-validation'; // tslint:disable-next-line:no-unused-variable import ...
export default function _default(): void;
import { Module } from '@nestjs/common'; import { EmployeeTerritoryService } from './employee-territory.service'; import { EmployeeTerritoryController } from './employee-territory.controller'; @Module({ providers: [EmployeeTerritoryService], controllers: [EmployeeTerritoryController] }) export class EmployeeTerrit...
/* * 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 { FtrProviderContext } from '../../../ftr_provider_context'; import { ...
import { Typography, message, Tag } from 'antd'; import { EditOutlined } from '@ant-design/icons'; import React, { useState } from 'react'; import styled from 'styled-components'; import { FetchResult } from '@apollo/client'; import { UpdateDatasetMutation } from '../../../../../../graphql/dataset.generated'; import U...
import { TestBed } from '@angular/core/testing'; import { GameApiService } from './game-api.service'; describe('GameApiService', () => { let service: GameApiService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(GameApiService); }); it('should be created', () => { ...
// Copyright 2017-2022 @polkadot/app-parachains authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { AccountId, GroupIndex, ParaId } from '@polkadot/types/interfaces'; import type { LeasePeriod, QueuedAction } from '../types'; import type { EventMapInfo, ValidatorInfo } from './types'; import R...
import { GetServerSideProps } from "next"; import { assert } from "../../lib/utils"; export default () => null; export const getServerSideProps: GetServerSideProps = async ({ res, params }) => { if (res) { res.writeHead(301, { Location: `/neighbourhoods/${assert(params).slug}`, }); res.end(); } ...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { SurvivalController } from './survival.controller'; import { Survival } from './survival.entity'; import { SurvivalService } from './survival.service'; @Module({ imports: [TypeOrmModule.forFeature([Survival])], contro...
import { connect } from 'react-redux'; import { Dispatch } from 'redux'; import Counter from '../components/Counter'; import { RootState } from '../reducers'; import { CounterAction, decrement, increment } from '../actions/counterActions'; const mapStateToProps = (state: RootState) => ({ value: state.counter.value ...
/** * * @__Abstract__USER__CLASS_ * * ## Contains all communs (columns & function) * extended by ( @_Client , @_Owner ) * */ import { PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, BaseEntity, Column, Index } from 'typeorm'; import CreateUserDTO from '../dtos/create.user.dto'; import Up...
import { MiddlewareConsumer, Module, NestModule, RequestMethod, } from '@nestjs/common'; import { UserController } from './user.controller'; import { TypeOrmModule } from '@nestjs/typeorm'; import { UserEntity } from './user.entity'; import { UserService } from './user.service'; import { AuthMiddleware ...
import * as React from 'react' import Link from 'next/link' export default function NotFound() { return ( <div data-cy="overthought-not-found"> <h1>Post not Found</h1> <Link href={'/paulsmessage'} passHref> <a>&larr; Back to Paul&apos;s Message</a> </Link> </div> ) }
import {Injectable} from 'angular2/core'; import {Http} from 'angular2/http'; import 'rxjs/add/operator/map'; import {Headers} from 'angular2/http'; import {Observable} from 'rxjs/Observable'; import 'rxjs/Rx'; @Injectable() export class HTTPTestService{ getData:string; getBook:string; getBranch:string; postDa...
import React, { useEffect, useState } from "react"; import Autocomplete from "@material-ui/lab/Autocomplete"; import { Button, CircularProgress, IconButton, TextField, } from "@material-ui/core"; import { Paper } from "@material-ui/core"; import SwapVertIcon from "@material-ui/icons/SwapVert"; import { searchSt...
/* tslint:disable */ /* eslint-disable */ /** * Jellyfin API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 10.7.7 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech)...
interface DialogBoxError { title: string; content: string; } export function invalidZulipServerError(domain: string): string { return `${domain} does not appear to be a valid Zulip server. Make sure that \n • You can connect to that URL in a web browser.\ \n • If you need a proxy to connect to the Internet, tha...
export class DisplayType { type: string; // To define a lower boundary, set the value to 0 // To define a higher boundary, set the value to undefined minWidth: number; maxWidth: number; minHeight: number; maxHeight: number; } export class Mobile extends DisplayType { type = 'mobile';...
import { Command, Editor } from "@ckeditor/ckeditor5-core"; import ChangeBuffer from "./utils/changebuffer"; export default class DeleteCommand extends Command { constructor(editor: Editor, direction: "forward" | "backward"); readonly direction: "forward" | "backward"; readonly buffer: ChangeBuffer; ex...