text
stringlengths
10
953k
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribu...
import { JSDOM } from "jsdom"; import htmlFile from "../htmlFile"; import "should"; import { run } from "./script"; export default function boundary() { it("honors error boundary", async () => { const dom = new JSDOM(htmlFile(), { runScripts: "outside-only", resources: "usable", }); const win...
import React from 'react'; import { render } from '@testing-library/react'; import WebComponentsLineGraph from './web-components-line-graph'; describe(' WebComponentsLineGraph', () => { it('should render successfully', () => { const { baseElement } = render(<WebComponentsLineGraph />); expect(baseElement).t...
//Imports import dotenv from "dotenv"; interface Config { NODE_ENV: string; API: string; } dotenv.config(); const config: Config = { NODE_ENV: process.env.NODE_ENV === "production" ? "production" : "development", API: removeTrailingSlash(process.env.REACT_APP_API || "/"), }; export default c...
import * as React from 'react'; import { connect } from 'react-redux'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/Wizard/wizard'; import { Alert, Button, ButtonVariant, WizardContextConsumer, WizardStep, } from '@patternfly/react-core'; import *...
export class InjectionToken<T> { private key: String; constructor(key: string = '') { this.key = new String(key); } public toString() { return `InjectionToken(${this.key})`; } }
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { AuthService } from '../auth.service'; import { LoginModel } from '../../models/login.model'; @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls: ['./login.component.css'] }) exp...
import * as jspb from "google-protobuf" import * as token_pb from './token_pb'; export class TokenDeleteRequest extends jspb.Message { getAppUid(): string; setAppUid(value: string): void; getAppSecret(): string; setAppSecret(value: string): void; getToken(): string; setToken(value: string): void; ser...
import * as React from 'react'; import { CircularProgress, IconButton } from '@material-ui/core'; import CheckIcon from '@material-ui/icons/Check'; type AppBarActionButtonProps = { onClick: (e: any) => any; loading: boolean; actionSuccess: boolean; icon: React.ReactNode; }; const AppBarActionButton = ({ onCli...
/* * @Description: * @Version: 1.0 * @Autor: z.cejay@gmail.com * @Date: 2021-12-15 18:39:21 * @LastEditors: cejay * @LastEditTime: 2021-12-19 18:15:39 */ import { Discord, DiscordEventType, Guild, GuildMsg } from './discord'; /** * ็™ปๅฝ•ๅนถไธ”็›‘ๅฌDiscordๆถˆๆฏ * @param username ็”จๆˆทๅ * @param password ๅฏ†็  * @param showLo...
export const SUCCESS_SYMBOL = '๐Ÿ’ซ'; export const SHRUG_SYMBOL = 'ยฏ\\_(ใƒ„)_/ยฏ'; export const NO_REGRESSION_COPY = 'No regression found'; export const REGRESSION_COPY = 'There was a regression';
/* eslint-disable import/no-named-as-default */ import React from 'react'; import { IPdfFileListItem } from './PdfFileListItem'; import PdfFileOrderList from './PdfFileOrderList'; interface Props { srcFiles: ReadonlyArray<IPdfFileListItem>; setSrcFiles: React.Dispatch< React.SetStateAction<readonly IPdfFileLis...
import { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); })); it('should create the app', as...
export default class Image { constructor( public src: string, public title: string, public description: string, ) {} }
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { HomePageRoutingModule } from './home-routing.module'; import { HomePage } from './home.page'; import { ComponentsModule } from '....
import Validators from "../../../dist/validator/validators/validators"; import Validator from "@dikac/t-validator/validator"; it("force console log", () => { spyOn(console, 'log').and.callThrough();}); describe('compiler compatibility', ()=>{ let strict : Validators<Record<PropertyKey, Validator>> = { va...
import { Component, trigger, state, style, transition, animate } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Recipe } from './recipe'; import { FetchRecipeService } from './fetch-recipe.service'; import { GroceryService } from './grocery.service'; import 'rxjs/add/operator/catch'; impor...
export { profile as default } from "./";
import {MetricName} from './MetricName'; import {MetricsCollectPeriodConfig} from './MetricsCollectPeriodConfig'; import {BaseHistogram} from './metrics/Histogram'; import {BaseCounter} from './metrics/Counter'; import {BaseMeter} from './metrics/Meter'; import {BaseTimer} from './metrics/Timer'; import {BucketCounter}...
import { HashedString, createHashedStringEnum } from "../../data-types"; export const GeyserTypeNames = [ "steam", "hot_steam", "hot_water", "slush_water", "filthy_water", "salt_water", "small_volcano", "big_volcano", "liquid_co2", "hot_co2", "hot_hydrogen", "hot_po2", "slimy_po2", "chlorin...
import { gql } from 'urql' export const WALLET_EXCHANGE_FRAGMENT = gql` fragment walletExchangeFragment on WalletExchangeType { id exchange balance account } `
import { readFileSync, writeFileSync } from 'fs' type Axis = 'x'|'y' class Coordinate { x: number y: number constructor(line: string) { [this.x, this.y] = line.split(',').map(str => parseInt(str)) } } class Fold { axis: Axis coordinate: number constructor(line: string) { const lastToken = line...
// TypeScript Version: 2.6 import * as React from 'react'; interface Props { /** * Is the modal closable when user press esc key. */ closeOnEsc?: boolean; /** * Is the modal closable when user click on overlay. */ closeOnOverlayClick?: boolean; /** * Callback fired when the Modal is open and ...
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { BehaviorSubject, Observable, timer } from 'rxjs'; import { AuthenticationService } from 'src/app/services/authentication.service'; import { filter, takeUntil, tap } from 'rxjs/operators'; imp...
/* * 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 { EuiAvatar, isValidHex } from '@elastic/eui'; import React, { FC } fr...
export default class RefGenerator { public static generateRef(): string { let string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; return Math.random().toString(36).substring(2, 4) + Math.random().toString(36).substring(2, 5)+(new Date).getTime().toString().substr(2,6); } public static generatePass(): s...
// // DefaultRequestBloc.ts // // Copyright (c) 2018 Hironori Ichimiya <hiron@hironytic.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 limit...
export interface IAppMetaData { name: string; displayName?: string; version: string; repository: string; description: string; homepage: string; screenshot?: string; } export declare class AppMetaDataUtils { static getMetaData(): Promise<IAppMetaData>; }
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ConfirmacionComponent } from './confirmacion.component'; import { MatDialogModule } from '@angular/material/dialog'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; @NgModule({ declarations: [Confi...
/* * ยฉ 2017 Stratio Big Data Inc., Sucursal en Espaรฑa. * * This software is licensed under the Apache License, Version 2.0. * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See ...
declare module "somelib" { global { interface Object { sayHello(); } } }
// This is a generated file, do not modify manually import * as React from "react" import Icon from "../../index"; export default function OutlineArrowLeft(props) { return ( <Icon iconMarkup={'<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.825 19.5L3.5 12l6.325-7.5M3.5 ...
import 'react-i18next' import { Translation } from '../localization' declare module 'react-i18next' { interface CustomTypeOptions { resources: { translation: Translation } } }
export interface ISuggestedText { value: string }
import { Component , OnInit } from '@angular/core'; import { AppService } from './app.service'; import { Router , ActivatedRoute } from '@angular/router'; import { Observable } from 'rxjs/Observable'; import { Title } from '@angular/platform-browser'; import { ToastsManager } from 'ng2-toastr/ng2-toastr'; import { Pr...
/* Copyright 2015, 2016 OpenMarket Ltd Copyright 2017, 2018 New Vector Ltd Copyright 2019, 2020 The Matrix.org Foundation C.I.C. 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.apach...
import React, { FC } from 'react' // import { Box } from '@fower/react' import { PopoverContext, PopoverProps } from './types' import { useLayer } from 'react-laag' import { PopoverProvider } from './context' export const Popover: FC<PopoverProps> = (props) => { const { initialOpened = false, placement = 'bo...
import nodemailer, { Transporter, SendMailOptions } from 'nodemailer' import { join } from 'path' import exphbs from 'express-handlebars' import nodemailerhbs from 'nodemailer-express-handlebars' import mailConfig from '../config/mail' interface SendMailOptionsHBS extends SendMailOptions { template: string context...
import type { CompositeWeights, Conf, Div } from "./types"; import type { Position, RatingKey } from "./types.hockey"; const COMPOSITE_WEIGHTS: CompositeWeights<RatingKey> = { playmaker: { ratings: ["stk", "pss", "oiq", "spd", "hgt", "stre"], weights: [1, 1, 1, 1, 0.25, 0.1], skill: { label: "Pm", cutoff:...
import * as React from 'react'; import { Link } from 'react-router-dom'; import { Footer } from './Footer'; export class MainLayout extends React.Component<{}, {}> { public render() { return <div> <nav className="navbar navbar-expand-md bg-light navbar-light"> <div className="c...
import { useContext } from "react"; import { ColorSchemeContext } from "src/contexts/colorSchemeToggle/colorSchemeContext"; import { Sun, Moon } from "react-feather"; const ColorSchemeToggle = () => { const { colorScheme, toggleColorScheme } = useContext(ColorSchemeContext); return ( <button aria-label...
import { Component } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { Events, ModalController, NavController, NavParams } from 'ionic-angular'; import * as _ from 'lodash'; // Pages import { ScanPage } from '../../scan/scan'; import { AmountPage } from '../amount/amount'; ...
import React from 'react'; export declare const Equation: React.FC<{ math: string; block?: boolean; children?: React.ReactNode; className?: string; }>;
/* |-------------------------------------------------------------------------- | ่ฏทๆฑ‚ๆ“ไฝœ๏ผšๅˆทๆ–ฐใ€ไฟๅญ˜ๆŽฅๅฃใ€ๅ‘้€่ฏทๆฑ‚็ญ‰ |-------------------------------------------------------------------------- | */ import { ref, Ref, computed } from "vue" import { useStore } from "@/pages/modules/apidoc/doc-view/store/index" import { sendRequest, stopR...
import { CollectionCache, CollectionKey } from "../../../common"; export declare namespace FactionResourcesRequirementSetOperators { const KEY: CollectionKey; class Entry { private readonly collectionCache; readonly operatorKey: string; constructor(collectionCache: CollectionCache, value...
import { newSpecPage } from '@stencil/core/testing'; import { AzwcCollapseT1 } from '../azwc-collapse-t1'; describe('azwc-collapse-t1', () => { it('renders', async () => { const page = await newSpecPage({ components: [AzwcCollapseT1], html: `<azwc-collapse-t1></azwc-collapse-t1>`, }); expect(...
import { Component, OnInit } from '@angular/core'; import { UrlsService } from '../urls.service'; import { ActivatedRoute, Router } from '@angular/router'; import { Url } from '../models/url.model'; import * as $ from 'jquery'; @Component({ selector: 'app-urls', templateUrl: './urls.component.html', styleUrls: [...
import { compile } from "../../dist/compiler/index"; test("required", () => { const validator = compile({ properties: { active: { type: "bool", errors: { type: (actual) => (actual === undefined || actual === null) ? "Active must be provided." : "Active must be a boolean." ...
import Node from './node' import { getNodeKey } from './util' import { TreeKey, TreeData, TreeStoreNodesMap, LoadFunction, FilterNodeMethodFunction, TreeOptionProps, TreeStoreOptions, FilterValue, TreeNodeData, } from '../tree.type' export default class TreeStore { currentNode: Node currentNodeKe...
import buildWhereQuery from "../util/buildWhereQuery.js" export async function cypherDelete(label, where, projection = []) { const query = [] query.push(`MATCH (node:${label})`) if (typeof where === "object" && Object.keys(where).length > 0) { query.push(`WHERE ${buildWhereQuery(where, { prefix: "node." })}...
// Type definitions for @fluent/bundle 0.14 // Project: http://projectfluent.org // Definitions by: Mark Weaver <https://github.com/blushingpenguin>, Huy Nguyen <https://github.com/huy-nguyen>, James Nimlos <https://github.com/jamesnimlos> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript...
const nock = require('nock') const path = require('path') describe('Team', () => { it('It requests a review to a team', async () => { const teams = 'hello,team' const repoToken = 'token' process.env['INPUT_TEAMS'] = teams process.env['INPUT_REPO-TOKEN'] = repoToken process.env['GITHUB_REPOSITORY...
// GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY import * as React from 'react' import InformationLineSvg from '@airclass/icons-svg/lib/asn/InformationLine'; import AntdIcon, { AntdIconProps } from '../components/AntdIcon'; const InformationLine = ( props: AntdIconProps, ref: React.MutableRefObjec...
import { getXPath } from './index'; export const PositioningElement = (Element: Element) => { console.log([Element]); console.log(getXPath(Element)); }; // ้ๅކๅญๅ…ƒ็ด  export const bindChildElenemt = (target: Array<Element> | NodeListOf<ChildNode> | Array<Node>, handleBind: Function) => { let nodeElem = target; nodeE...
import React, { forwardRef } from "react"; import { IconWeight, IconProps, PaintFunction, renderPathForWeight, } from "../lib"; import IconBase, { RenderFunction } from "../lib/IconBase"; const pathsByWeight = new Map<IconWeight, PaintFunction>(); pathsByWeight.set("bold", (color: string) => ( <> <circl...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { DashboardComponent } from './dashboard.component'; const routes: Routes = [ { path: '', component: DashboardComponent, }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [Router...
import { regexInlineChoiceGroup, regexInlineChoices, regexString, regexVariable, reservedKeys } from "./tracery.const"; import { grammar } from "./tracery.load"; export let grammarHTML = ''; export function generateGrammarHTML(): void { let html = ''; const keys = Object.keys(grammar); keys.forEach(k...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { TwoFactorComponent } from './two-factor/two-factor.component'; const routes: Routes = [{ path: 'two-factor', component: TwoFactorComponent }]; @NgModule({ imports: [RouterModule.forChild(routes)] }) export cl...
import {Component} from '@angular/core'; import {NavController} from 'ionic-angular'; import {User} from '../../providers/user'; import {Storage} from '@ionic/storage'; import {UserServiceProvider} from "../../providers/user-service/user-service"; import {CommonServiceProvider} from "../../providers/common-service/co...
/* * Copyright 2019 NEM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnChanges, OnInit, ViewEncapsulation, } from '@angular/core'; import { DrawerService } from './service/drawer.service'; import { StateListener } from './state-listener.component'; import { Subscription } from 'rxjs'; @Co...
import Knex, { SchemaBuilder } from 'knex'; export async function up(knex: Knex): Promise<SchemaBuilder> { await knex.raw('CREATE EXTENSION IF NOT EXISTS "uuid-ossp"'); return knex.schema.createTable('connections', table => { table.uuid('id').primary().defaultTo(knex.raw('uuid_generate_v4()')); table ...
import { createApp } from 'vue' import App from './App.vue' import router from './router' import directives from './directives' import "@/assets/scss/index.scss"; const app =createApp(App) app.use(router) app.use(directives) app.mount('#app')
import { keyboardKey, SpacebarKey } from '@fluentui/keyboard-key'; import { Accessibility } from '../../types'; /** * @description * Adds accessibility attributed to implement the Accordion design pattern. * Adds 'aria-disabled' to the 'content' slot with a value based on disabled, active and canBeCollapsed props. ...
/** @component radio */ import { ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Input, Output, ViewChild, } from '@angular/core'; import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'; // tslint:disable:no-use-before-declare const CUSTOM_RADIO_VALUE_ACCESSOR: an...
import { START_OF_SETUP, DURING_GAME, BATTLESHOCK_PHASE } from 'types/phases' import { TScenery } from 'types/army' const Scenery: TScenery = [ { name: `Herdstone`, effects: [ { name: `Set up Herdstone`, desc: `After territories have been chosen but before players begin to set up their ...
/** * @license * Copyright Google Inc. 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 * as o from '../../../src/output/output_ast'; import {I18nContext} from '../../../src/render3/view/i18n'; de...
//import { Controller } from '@nestjs/common'; import { ContactService } from './contact.service'; import { Controller, Get, Post,Put, Delete, Body, Param } from '@nestjs/common'; import { Contact } from '../entities/contact.entity'; import { promises } from 'fs'; @Controller('contact') export class ContactsControl...
import { Action } from '../../../../../reducers/types'; import { NAMESPACE, CLOSE, OPEN, HANDLE_CHANGE } from './lokacijaModal.actions'; import { Lokacija, newLokacijaCDTO } from '../../lokacije.types'; const initialState: LokacijaModalStore = { show: false, title: '', lokacija: {} as Lokacija, mode: '' }; ex...
import type { Source } from "./source"; import type { vec } from "./struct"; import * as v from "./binfmt/values"; export async function readVec<R>( source: Source, itemReader: (s: Source) => Promise<R>, ): Promise<vec<R>> { const length = await v.readU32(source); if (length > (2 ** 31) - 1) { throw new Er...
export const AuthAction = { SignIn: "scrumlr.io/signIn" as const, SignOut: "scrumlr.io/signOut" as const, UserCheckCompleted: "scrumlr.io/userCheckCompleted" as const, }; export const AuthActionFactory = { signIn: (id: string, name: string) => ({ type: AuthAction.SignIn, id, name, }), signOut:...
import { NgModule, Component, enableProdMode } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { DxTreeListModule } from 'devextreme-angular'; import { Task, Employee, Service } from './app.service'; i...
import DashBot from '../DashBot'; export default interface Interaction { register(bot: DashBot): void; }
import React, { useEffect } from 'react' import { useTranslation } from 'react-i18next' import Button from '@mui/material/Button' import { useDispatch } from '../../../store' import SignIn from '../../../user/components/Auth/Login' import Dropdown from '../../../user/components/Profile/ProfileDropdown' import { useAu...
/** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported...
import { Expectation } from '@serenity-js/core'; export declare function or<Actual>(...assertions: Array<Expectation<any, Actual>>): Expectation<any, Actual>;
import * as sinon from 'sinon'; import * as sinonChai from 'sinon-chai'; import * as chai from 'chai'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { MockComponent, MockDirective, MockPipe } from 'ng-mocks'; import { TranslatePipe } from '@ngx-translate/core'; import { FaIconComponent } fr...
/* eslint-disable @typescript-eslint/explicit-function-return-type */ /* eslint-disable @typescript-eslint/camelcase */ /* eslint-disable @typescript-eslint/no-explicit-any */ import { RippleHandlers } from "@material/mwc-ripple/ripple-handlers"; import { Ripple } from '@material/mwc-ripple'; import { LitElement, html,...
import jwt from "jsonwebtoken"; const algorithm = process.env.JWT_ALGORITHM; let secret: string; const issuer = process.env.JWT_ISSUER; let expiresIn: number; // can't test these as they are set as variables during initiation // and we only hit the file once during execution /* istanbul ignore next */ if (process.env...
import parse from 'html-react-parser'; import React, { memo } from 'react'; interface HtmlParserProps { children: string; } function HtmlParser({ children }: HtmlParserProps) { return <>{parse(children)}</>; } export default memo(HtmlParser);
import * as React from 'react'; import { useTranslation } from 'react-i18next'; import styles from './homePartners.module.scss'; import Partners from './PartnerLogoList'; import { mainPartnerList, partnerList } from './constants/PartnersConstants'; const HomePartners: React.FunctionComponent = props => { const { t ...
import * as React from 'react'; export interface IWithLoaderProps { error: boolean; loading: boolean; minWait?: number; loaderChildren: JSX.Element; errorChildren: JSX.Element; children(): any; } export interface IWithLoaderState { loaded: boolean; } export class WithLoader extends React.Component< I...
/// <reference types="react" /> declare const TimesCircle: import("react").ForwardRefExoticComponent<import("../../Icon").IconProps & import("react").RefAttributes<SVGElement>>; export default TimesCircle;
/// <reference path='fourslash.ts' /> //// var x: [|function(this: number, number): string|] = 12; verify.codeFix({ description: "Change 'function(this: number, number): string' to '(this: number, arg1: number) => string'", newRangeContent: "(this: number, arg1: number) => string", });
import { Document } from 'mongoose'; export interface Step extends Document { readonly title: string; readonly stepNumber: number; readonly body: string; }
import * as React from 'react' import { StackScreenProps } from '@Navigation/Stack/types' import { loginUser } from '@Api' import { setCurrentUser } from 'Api' const useService = (props: StackScreenProps) => { const newEmail: any = props.route.params?.email || false const [email, setEmail] = React.useState('guest...
declare const window: any; /** * @private */ export function get(element: Element | Window, path: string) { const paths: string[] = path.split('.'); let obj: any = element; for (let i = 0; i < paths.length; i++) { if (!obj) { return null; } obj = obj[paths[i]]; } return obj; } /** * @pr...
import { MenuTheme } from 'antd/es/menu/MenuContext'; export type ContentWidth = 'Fluid' | 'Fixed'; export interface Settings { /** * theme for nav menu */ navTheme: MenuTheme | 'realDark' | undefined; /** * nav menu position: `sidemenu` or `topmenu` */ layout: 'sidemenu' | 'topmenu'; /** * l...
<TS language="hr_HR" version="2.1"> <context> <name>AddNewAddressDialog</name> <message> <source>Dialog</source> <translation>Dijaloลกki okvir</translation> </message> <message> <source>My Address</source> <translation>Moja adresa</translation> </message> <message>...
export declare const cifAg: any[];
import styled from "styled-components"; import { Link } from "react-router-dom"; interface NavListProps { open: boolean; } export const Nav = styled.nav` display: flex; position: fixed; top: 0; width: 100%; justify-content: space-between; align-items: center; /* background-color: #333; */ background-color: #...
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { ProductListComponent } from './product-list.component'; import { ProductDetailComponent } from './product-detail.component'; import { ProductEditComponent } from './product-edit/product-edit.component'; import { ProductE...
import {BaseAPI} from '../../common/BaseAPI'; import Configuration from '../../common/Configuration'; import {map, mapArray} from '../../common/Mapper'; import AnalyticsExportTask from '../../models/AnalyticsExportTask'; import PaginationResponse from '../../models/PaginationResponse'; import {AnalyticsExportTaskListQu...
import React, { FC, MouseEvent, useState } from 'react'; import axios from 'axios'; import './Review.scss' import Badge from 'react-bootstrap/Badge'; import Tooltip from 'react-bootstrap/Tooltip'; import OverlayTrigger from 'react-bootstrap/OverlayTrigger'; import { useCookies } from 'react-cookie'; import { Link } fro...
import { AntiTheftSystemStates } from "./AntiTheftSystemStates"; import { AntiTheftSystemArmedModes } from "./AntiTheftSystemArmedModes"; import { Sensor } from "./Sensor"; export interface SystemState { before: AntiTheftSystemStates; state: AntiTheftSystemStates; mode: AntiTheftSystemArmedModes; activ...
import { TestLabel } from '@ephox/bedrock-client'; import { Fun, Result } from '@ephox/katamari'; import { SugarElement, Truncate, Visibility } from '@ephox/sugar'; import * as UiSearcher from '../find/UiSearcher'; import { Chain } from './Chain'; import * as Guard from './Guard'; import { Step } from './Step'; const...
import HttpStatus from 'http-status-codes' import { Exception } from '../../application/domain/exception/exception' import { ValidationException } from '../../application/domain/exception/validation.exception' import { ApiException } from './api.exception' import { ConflictException } from '../../application/domain/exc...
import { NotFoundError } from '@apextoaster/js-utils'; import { expect } from 'chai'; import { findByBaseId } from '../../../src/util/template'; describe('template helpers', () => { describe('find template by id', () => { it('should throw when no item is found', async () => { expect(() => findByBaseId([],...
import { LeafletMouseEvent } from "leaflet"; import React, { ChangeEvent, FormEvent, useEffect, useState } from "react"; import { useHistory } from "react-router-dom"; import Dropzone from "../../components/Dropzone"; import api from "../../services/api"; import Header from "../Header"; import CityAndState from "./City...
import { KubernetesObject } from 'kpt-functions'; import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1'; // MutatingWebhook describes an admission webhook and the resources and operations it applies to. export class MutatingWebhook { // AdmissionReviewVersions is an ordered list of preferred `Admissio...