text
stringlengths
10
953k
import { coerceBooleanProperty, BooleanInput } from '@angular/cdk/coercion'; import { ConnectedPosition, ConnectionPositionPair, FlexibleConnectedPositionStrategy, Overlay, OverlayConfig, OverlayRef, PositionStrategy, VerticalConnectionPos, HorizontalConnectionPos, OverlayConnectionPosition, Origi...
/* * Copyright (c) 2022 Eric Thiebaut-George. * * 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...
import { isServer } from './tools'; let lastTime = 0; const prefixes = 'webkit moz ms o'.split(' '); let requestAnimationFrame: typeof window.requestAnimationFrame; let cancelAnimationFrame: typeof window.cancelAnimationFrame; (() => { const NO_LOOP: any = () => {}; const getWindowFrame = (name: string) => { r...
import * as assert from "@eeue56/ts-assert"; import { Ok } from "@eeue56/ts-core/build/main/lib/result"; import { blockKind, intoBlocks } from "../blocks"; import { compileTypescript } from "../compile"; import { generateJavascript } from "../js_generator"; import { parse } from "../parser"; import { generateTypescript...
import { Component, OnInit,Input } from '@angular/core'; import { NavController, ModalController } from '@ionic/angular'; import { DomSanitizer } from '@angular/platform-browser'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { AlertController, MenuController, ToastController, Popo...
import { TestBed } from '@angular/core/testing'; import { CheckLoguedGuard } from './check-logued.guard'; describe('CheckLoguedGuard', () => { let guard: CheckLoguedGuard; beforeEach(() => { TestBed.configureTestingModule({}); guard = TestBed.inject(CheckLoguedGuard); }); it('should be created', () ...
import { APIMessageContentResolvable, Message, Presence, EmojiIdentifierResolvable, MessageReaction, } from 'discord.js'; import type LocaleService from '../src/struct/LocaleService'; declare global { interface Array<T> { /** * Remove a element of the array by it's name * Returns a copy of th...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { InvalidRequestException } from "./InvalidRequestException"; import { ResourceNotFoundException } from "./ResourceNotFoundException"; import { ThrottlingException } from "./ThrottlingException"; import { ServiceUnavailableException } from "./ServiceUnavailableException"; import { CertificateValidationException ...
import { Style, Query } from './shared'; export function media(list: Query | string, style: Style): Style { return { [`@media ${typeof list === 'string' ? list : query(list)}`]: style }; } export function query(list: Query): string { const results = Object.keys(list).map(feature => { const value = list[featur...
export function reverseList(head: ListNode | null): ListNode | null { let prev: ListNode | null = null; while (head !== null) { const next = head.next; head.next = prev; prev = head; head = next; } return prev; } export function reverseListRecursive(head: ListNode | null): ListNode | null { /...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { DirectionalHint, mergeStyles, IStyle, ITooltipHostStyles, ITooltipProps, TooltipDelay, TooltipHost } from "@fluentui/react"; import { IErrorAnalysisMatrix, IErrorAnalysisMatrixNode, Metrics } from "@responsible-ai/c...
import { Module } from '@nestjs/common'; import { UsersModule } from './users/users.module'; import { ReportsModule } from './reports/reports.module'; import { PrismaModule } from './prisma/prisma.module'; @Module({ imports: [UsersModule, ReportsModule, PrismaModule], controllers: [], providers: [], }) export cl...
import React, { FC, createContext, useContext, useRef } from 'react'; import { AbiItem } from 'web3-utils'; import ContractListener from 'web3/components/contract-listener'; import Erc20Contract from 'web3/erc20Contract'; import Web3Contract from 'web3/web3Contract'; import { useWeb3 } from 'components/providers/web3P...
import { password, } from "@rxweb/reactive-form-validators" export class LoginInfo { @password({validation:{maxLength: 10,minLength: 5,digit: true,specialCharacter: true} }) newPassword: string; }
import { PieceByPiece } from './piece-by-piece'; import { Simulation } from '../../../simulation/simulation'; import { ActionType } from '../action-type'; import { CraftingJob } from '../../crafting-job.enum'; /** * MuMe is just piece by piece with a different condition, cost and success rate. */ export class Muscle...
import * as path from "path"; import * as fs from "fs"; import * as tmp from "tmp"; import { runTests } from "@vscode/test-electron"; import { assert } from "console"; const PROJECT_ROOT = path.join(__dirname, "..", ".."); const DATA_ROOT = path.join(PROJECT_ROOT, "src", "test", "data"); async function main() { ...
import {AsyncContainer} from '@barlus/experimental'; import {suite, test, expect} from '@barlus/tester'; @suite class AsyncContainerTest { async * generator() { let i = 10; while (--i) { yield i; } } @test public async testParallel() { try { let container = AsyncContainer.fr...
import { SavedStates } from "../gamestate/SavedStates" import { either, nonEmptyArray } from "fp-ts" import { Frame, RBRequest, NULL_FRAME, PlayerIndex, RBError } from "../types" import { GameStateCell } from "../gamestate/GameStateCell" import { assert } from "../assert" import { gameInput, SerializedGameInput } from ...
import { Injectable } from '@angular/core'; import { Http, Headers, RequestOptions, Response } from '@angular/http'; import { Session } from '../classes/session'; import { Observable } from 'rxjs/Observable'; @Injectable() export class CalendarService { private urlCalendar = "/api-calendar" constructor(priva...
/* * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requi...
export * from "./response-content-utils"; export * from "./request-expectation"; export * from "./mock-api-router"; export * from "./validation-error"; import { MockApiRouter } from "./mock-api-router"; export const app = new MockApiRouter();
import { RectButton } from 'react-native-gesture-handler'; import styled from 'styled-components/native'; import colors from '../../styles/colors'; import fonts from '../../styles/fonts'; export const Container = styled(RectButton)` flex: 1; max-width: 45%; background: ${colors.shape}; border-radius: 20px; p...
import { QueryTag as Tag } from '@spaceone/design-system/dist/src/inputs/search/query-search-tags/type'; import { KeyItem, KeyItemSet, OperatorType, QueryItem, } from '@spaceone/design-system/dist/src/inputs/search/query-search/type'; import { Filter, FilterOperator, Query } from '@/lib/space-connector/...
import accountsAbi from "./Abi/Accounts.json"; import servicesAbi from "./Abi/Services.json"; import documentsAbi from "./Abi/Documents.json"; export const accountsABI = accountsAbi.abi; export const servicesABI = servicesAbi.abi; export const documentsABI = documentsAbi.abi; export const utilsAddress = "0x891d040B70...
import SvgIcon from "@material-ui/core/SvgIcon" import { useDarkMode } from "material-ui-pack" import React from "react" export default function VercelIcon() { const { darkMode } = useDarkMode() return ( <SvgIcon viewBox="0 0 74 64" fontSize="large" height="100" width="100"> <path d="M141.04 16c...
import { Observable } from '../../core/Observable' import { commonTest } from '../../helpers/testHelpers/commonTest' import { concat as concatOperator } from '../../operators/concat' import { startWith } from '../../operators/startWith' import { concat } from '../concat' import { of } from '../of' describe('(Extra) co...
import { ScheduledRoom as ScheduledRoomInfo } from '@dogehouse/kebab'; import { ScheduledRoomData } from './ClientUser'; import { UUID, User } from './User'; import { Client } from './Client'; /** * The scheduled room class. * This does not extends the [Room]{@link Room} class because a scheduled room lacks data tha...
// Type definitions for pusher-js 4.2 // Project: https://github.com/pusher/pusher-js // Definitions by: Qubo <https://github.com/tkqubo> // Lance Ivy <https://github.com/cainlevy> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace pusher { interface PusherStatic {...
import { ApiClient } from './ApiClient'; export class Client extends ApiClient { constructor() { super(process.env.REACT_APP_BACKEND_URL); } } export const QuestionModelProps = { createdAt: 'createdAt', updatedAt: 'updatedAt', id: 'id', title: 'title', difficulty: 'difficulty', category: 'category...
import * as React from 'react'; import { ITravel, TRAVEL_POLICY } from '../../config'; import { Button, LinkDuo } from '../../shared/Elements'; interface ITravelStatusProps { travel: ITravel; } const TravelStatusPolicy: React.FunctionComponent<ITravelStatusProps> = () => { return ( <div> Your travel re...
/* * Copyright (c) BrownBear, 2022-Present. All Rights Reserved. * * This file is a part of Tuleap. * * Tuleap 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; either version 2 of the License, or * (at ...
export * from './plugin-area'; export * from './plugin-api';
import { bytes } from '@zilliqa-js/util' export enum Network { MainNet = 'MainNet', TestNet = 'TestNet', } type Networks = keyof typeof Network export const APIS: { [key in Networks]: string } = { [Network.MainNet]: 'https://api.zilliqa.com', [Network.TestNet]: 'https://dev-api.zilliqa.com', } export const W...
import Grid from "../../components/Grid"; import { Color } from "../../constants/Color"; import { NodeRefContainer } from "../../types/NodeRefContainer"; import { PathSolver } from "../PathSolver"; export abstract class Pathfinder implements PathSolver { protected nodes: NodeRefContainer[][]; protected start: Node...
// prettier-ignore // @ts-ignore import { moduleMetadata, Meta, componentWrapperDecorator } from '@storybook/angular'; import { SprkInputContainerModule } from './sprk-input-container/sprk-input-container.module'; import { SprkInputContainerComponent } from './sprk-input-container/sprk-input-container.component'; impor...
/* * Oozaru JavaScript game engine * Copyright (c) 2015-2020, Fat Cerberus * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above ...
import { Component, OnInit } from '@angular/core'; import { Item } from 'src/modules/app/models/Item'; import { ManagerService } from '../../services/manager.service'; import { DrinkEditModalComponent } from '../../modals/drink-edit-modal/drink-edit-modal.component'; import { MdbModalRef, MdbModalService } from 'mdb-an...
import {IResponseOptions} from "@tsed/common"; import {Header, Schema} from "swagger-schema-official"; declare global { namespace TsED { interface ResponseHeader extends Header {} interface ResponseOptions { description: string; schema?: Schema; examples?: {[exampleName: string]: {}}; ...
import React from 'react'; import { SvgIcon, SvgIconProps } from '@kukui/ui'; const SvgComponent = props => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}> <path d="M288 192h-64v-64c0-8.844-7.156-16-16-16s-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16s7.2 16 16 16h64v64c0 8.844 7.156 16 16 ...
import { SvgIcon } from '@material-ui/core'; import { ReactComponent as TimeMimSvg } from '../assets/tokens/TIME-MIM.svg'; export function getPairImage(name: string): JSX.Element { if (name.indexOf('mai') >= 0) return <SvgIcon component={TimeMimSvg} viewBox="0 0 62 32" style={{ height: '30px', width: '62px' }} /...
import { TranslateService } from 'ng2-translate'; import { Component, ViewChild } from "@angular/core"; import { NavController, NavParams, Slides, AlertController } from "ionic-angular"; import { GoogleAnalyticsProvider } from '../../providers/ga'; import { KidsSize, MenSize, WomenSize } from "whats-size"; import { ...
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; @Schema() export class Category { @Prop() name: string; @Prop() description: string; } export const CategorySchema = SchemaFactory.createForClass(Category);
/* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import '@stencil/core'; export namespace Components { interface PwnedPassword { 'minlength': number; 'name': string; 'patte...
// Copyright 2019-2021 @polkadot/extension-ui authors & contributors // SPDX-License-Identifier: Apache-2.0 const darkTheme = { accountBackground: '#1A1B20', accountDotsIconColor: '#8E8E8E', addAccountImageBackground: '#1A1B20', backButtonBackground: '#3A3B41', backButtonBackgroundHover: '#3a3b41ad', backB...
import { GenerateNexusPrismaPlugin } from './nexus-prisma-plugin'; import { GeneratorsType, Options } from '@paljs/types'; import { GenerateNexus } from './nexus'; import { GenerateSdl } from './sdl'; import { GenerateModules } from './graphql-modules'; export class Generator { generators: { [key in GeneratorsTy...
import mqtt from "mqtt"; import { MQTTStore, VosekastStore, PumpState, ValveState, TankState, } from "../Store"; import { message } from "antd"; import moment from "moment"; import { TimeSeries, TimeEvent, Event } from "pondjs"; type MessageTypes = "status" | "log" | "message" | "command" | "info" | "data"; ...
import { DeviceManager } from 'homematic-js-xmlapi'; export declare function getDeviceList(): void; export declare function getCurrentStates(): Promise<DeviceManager>;
import * as vscode from "vscode"; import { TextDecoder } from "util"; import * as path from "path"; import { parseFile, parseDirectory, learnFileId } from "./parsing"; import { filterNonExistingEdges, getColumnSetting, getConfiguration, getFileTypesSetting } from "./utils"; import { Graph } from "./types"; const watch...
<?xml version="1.0" encoding="UTF-8"?> <tileset name="woa_desert" tilewidth="32" tileheight="32" tilecount="252" columns="18"> <image source="desert_1_0_7.png" width="594" height="450"/> </tileset>
import { Typography } from 'antd'; import styled from 'styled-components'; export const SearchResultsWrapper = styled.div` & > div { font-size: 0.875rem; & .ant-list-header { font-size: 0.75rem; padding-bottom: 6px; color: ${(props) => props.theme.colors.main.primary}; @media only ...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'todolist'; }
import { Request, Response } from 'express'; import Service from '../models/Service'; import EmpService from './EmpService'; export default class Services extends EmpService { constructor() { // Set the route prefix super("services"); // Create the child routes this.get('/', this.getAll, false); ...
import {STRule} from '../rule/rule'; import {STRuleFn} from '../rule/fn'; import {STRuleModifiers} from '../rule/modifiers'; import {STRuleNode} from '../rule/node'; import {STRuleNodeType} from '../rule/node-type'; export type STOpIsIpv4Addr<CallerType> = () => CallerType; export const isIpv4Addr = (curr: string): b...
import { ApolloClient } from 'apollo-client' import { InMemoryCache, NormalizedCacheObject } from 'apollo-cache-inmemory' import { ApolloCache } from 'apollo-cache' import { Connection } from 'invest-rpc' import { InvestRpcLink, InvestRpcLinkOptions } from './RpcLink' export class PluginClient { private connectio...
// import { useEffect } from "react"; // import { uniqBy } from "lodash"; import { IChain as Chain } from "../models/chain"; import React from "react"; // const mergeChainSets = (c1: Chain[], c2: Chain[]) => uniqBy(c1.concat(c2), "name"); export default function() { const [chains, setChains] = React.useState<Chain[...
import {Component, OnDestroy} from '@angular/core'; import {ConfigService, Country} from '../../services/config.service'; import {NavigationEnd, Router} from '@angular/router'; import {Subscription} from 'rxjs/Subscription'; import {I18NService} from '../../modules/i18n/services/i18n.service'; import {PlatformService} ...
import React from 'react'; // import styles from './index.scss'; import videojs from 'video.js/dist/video.js'; import 'videojs-flash'; import 'videojs-contrib-hls'; import 'video.js/dist/video-js.css'; class FixedVideo extends React.Component { // public player1: any; public timer: any; constructor(props) { s...
import { Behavior, Stream, moment, combine } from "@funkia/hareactive"; import { Component, elements, modelView, fgo } from "../../../src"; const { span, button, ul, li, a, footer, strong } = elements; import { navigate, Router } from "@funkia/rudolph"; // import {mapTraverseFlat} from "./TodoApp"; import { Output as ...
import fs from "fs/promises" import { ExpressModule } from "@main/classes/ExpressModule"; import { EveryoneRole, Guild, GuildMember, GuildMessage, GuildRegion, JoinedGuild, Role, UnavailableGuild } from "@main/classes/Guild"; import { ServerData } from "@main/serverdata"; import express from "express"; import { Message...
import { Box, Text, Stack, Divider } from "@chakra-ui/react"; import { GetStaticProps } from "next"; import BlogPost from "../components/BlogPost"; import ProjectSection from "../components/ProjectSection"; import { getAllPosts } from "../lib/api"; import { PostType } from "../types/post"; import { ProjectType } from ...
import { Component, OnInit, Output, EventEmitter, ElementRef, ViewChild } from "@angular/core"; import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap"; import { FormBuilder, FormGroup, Validators } from "@angular/forms"; @Component({ selector: "app-otp", templateUrl: "./otp.component.html", styl...
import { AfterViewInit, Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core'; import { AbstractControl, FormControl, Validators } from '@angular/forms'; import { TranslateService } from '@ngx-translate/core'; import { Chart, ChartData, ChartDataset, ChartOptions, Color, TooltipItem } from 'chart.js'; ...
/* * Power BI Visual CLI * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * 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...
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { RFValue } from 'react-native-responsive-fontsize'; import Svg, { Path, SvgProps } from 'react-native-svg'; import { useRecoilValue } from 'recoil'; import mirroringShareState from '../store/atoms/mirroringShare'; const styles = ...
SimplifiedTest
/* * Prepare environment for unit tests. * This file is required by karma.conf.js and loads recursively all the .spec and framework files. */ import 'zone.js/dist/zone-testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angul...
import * as React from 'react' import { widgetReducer, widgetState } from '@app/reducers/widgetManager.reducer' import BreadcrumbsBase from '@components/base/BreadcrumbsBase' import SideMenuWithContent from '@components/base/SideMenuWithContent' import WigetManagerMenuList from '@components/templates/widget-manager/Wi...
interface opc_cts_documenttype_Base extends WebEntity { createdon?: Date | null; importsequencenumber?: number | null; modifiedon?: Date | null; opc_cts_documenttypeid?: string | null; opc_islegacy?: boolean | null; opc_islocalizable?: boolean | null; opc_name?: string | null; opc_nameenglish?: string |...
import { dataApiFactory } from '../__testHelpers/mockApi'; import records from '../__testHelpers/records'; import { ApiError } from '../utils/errors'; const { getTestAccount, getProfile, getPost, getProfilealt, getTestAccountalt, } = records; let mockApi: ReturnType<typeof dataApiFactory>; const profile = getPr...
import { ConsoleLogger } from "@thi.ng/logger"; import { group } from "@thi.ng/testament"; import * as assert from "assert"; import { DEFAULT, defmulti, defmultiN, implementations, setLogger, } from "../src/index.js"; group("defmulti", { flatten: () => { const flatten = defmulti<any[]>(...
import { isEmpty } from "./helpers"; import { i18n } from "./i18n"; export function hasValidationErrors(errors = {}) { return Object.keys(errors).length > 0; } export function validateNotEmpty( id: string, fieldName: string, key: string, value: string, existingErrors = {} ) { const hasErrors = isEmpty(v...
/// <reference types="svelte" /> import { SvelteComponentTyped } from "svelte"; export interface SteeringWheelProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["svg"]> { tabindex?: string; /** * @default "currentColor" */ fill?: string; } export default class SteeringWheel extends SvelteCom...
export * from "./WorkDocs"; export * from "./WorkDocsClient"; export * from "./commands"; export * from "./models"; export * from "./pagination"; export { WorkDocsServiceException } from "./models/WorkDocsServiceException";
/* *************************************************************************** * * Copyright (c) 2021, the iexjs authors. * * This file is part of the iexjs library, distributed under the terms of * the Apache License 2.0. The full license can be found in the LICENSE file. * */ /* eslint-disable no-param-reass...
import { Box, Flex, Stack, useMediaQuery } from '@stacks/ui'; import { Text } from '@app/components/typography'; import { CenteredPageContainer } from '@app/components/centered-page-container'; import { CENTERED_FULL_PAGE_MAX_WIDTH, DESKTOP_VIEWPORT_MIN_WIDTH, ONBOARDING_PAGE_MAX_WIDTH, } from '@app/components/g...
/** Provides operations to manage the privacy singleton. */ export enum SubjectRightsRequestStage { ContentRetrieval = "contentRetrieval", ContentReview = "contentReview", GenerateReport = "generateReport", ContentDeletion = "contentDeletion", CaseResolved = "caseResolved", ContentEstimate = "co...
import { Tag } from "./Tag"; export interface Edge { v1: Tag; v2: Tag; }
// @flow import { useAuth } from 'context/auth-context'; import * as React from 'react'; type Props = { }; export const RegisterScreen = (props: Props) => { const { register } = useAuth() const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => { event.preventDefault() const userna...
import React, { useMemo } from 'react'; import { FieldOverrideEditorProps, SelectableValue } from '@grafana/data'; import { HorizontalGroup, IconButton, LineStyle, RadioButtonGroup, Select } from '@grafana/ui'; type LineFill = 'solid' | 'dash' | 'dot'; const lineFillOptions: Array<SelectableValue<LineFill>> = [ { ...
import * as url from 'url'; import { stripIndents } from 'common-tags'; import { E2eTaskOptions } from '../commands/e2e'; import { CliConfig } from '../models/config'; import { requireProjectModule } from '../utilities/require-project-module'; import { getAppFromConfig } from '../utilities/app-utils'; const Task = re...
/* tslint:disable */ import * as PropTypes from 'prop-types'; import * as React from 'react'; import { ISlider } from 'viser'; class Props { container?: string; } class SubPlugin<T = {}> extends React.Component<Props & T, any> { public static childContextTypes = { container: PropTypes.string, }; public ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { TeacherManagerComponent } from './teacher-manager.component'; describe('TeacherManagerComponent', () => { let component: TeacherManagerComponent; let fixture: ComponentFixture<TeacherManagerComponent>; beforeEach(async(() => { ...
import 'mocha'; import * as assert from 'assert'; import { InsertDataQuill, InsertDataCustom } from './../src/InsertData'; import { DataType } from './../src/value-types'; describe('InsertData', function () { describe('InsertDataQuill', function () { describe('constructor()', function () { it('should inst...
// tests go here; this will not be compiled when this package is used as a library let devices:number; matrixpanel_max7219_spi.matrixpanel_init(DigitalPin.P15,DigitalPin.P13,DigitalPin.P1,1); devices=matrixpanel_max7219_spi.get_device_count(); //we have to init all devices in a loop for(let address=0;address<devices;ad...
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { UserModule } from './user/user.module'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Connection } from 'typeorm'; import { User } from './entity/User'; @Module({ ...
import * as React from 'react'; import { AcceptDropParams, DropParams, getOrderBetween, IModal, Lens, DataColumnProps, ColumnsConfig } from '@epam/uui'; interface ColumnsConfigurationModalBaseProps<T> extends IModal<ColumnsConfig> { columns: DataColumnProps<T>[]; columnsConfig?: ColumnsConfig; defaultC...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *--------------------------------------------------------------...
import React, { useState, useEffect } from 'react' import { StyleSheet, Text, View, SafeAreaView, ScrollView, TouchableOpacity } from 'react-native' import { useRoute } from '@react-navigation/native' import NavigationBar from '../../../../../components/NavigationBar' import { navigation } from '../../../../../navigati...
'use strict' export interface CookieOptions { /** * The time-to-live (TTL) in milliseconds. */ maxAge: number /** * The cookie URL path. */ path: string /** * Determine whether the cookie is a 'same-site' cookie. * Using `true` maps to `'strict'`. */ sameSite: 'strict' | 'lax' | 'non...
/* Copyright 2016 OpenMarket Ltd Copyright 2019, 2020 FM Foundation 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...
import * as assert from "assert"; import * as util from "util"; import * as sinon from "sinon"; import { Schema, type, filter, ArraySchema, MapSchema, Reflection, DataChange } from "../src"; import { Client, filterChildren } from "../src/annotations"; import { nanoid } from "nanoid"; import { assertExecutionTime } from...
import React, { useReducer } from "react" import gql from "graphql-tag" import InfiniteScroll from "react-infinite-scroller" import ArtworkGallery from "../components/ArtworkGallery/ArtworkGallery" import LoadingSpinner from "../components/LoadingSpinner/LoadingSpinner" import ArtistBar from "../components/ArtistBar/A...
import { ChipStatus } from './epprProtocol/game/ChipStatus'; import { SnapshotRequest } from './epprProtocol/game/SnapshotRequest'; import { Injectable, EventEmitter } from '@angular/core'; import { WsRoomService } from './room/ws-room.service'; import { TerminalService } from './terminal.service'; import { EventWS } f...
export const Abilities: {[k: string]: ModdedAbilityData} = { psylink: { onStart(pokemon) { this.add('-ability', pokemon, 'Psylink'); }, onAnyBasePowerPriority: 20, onAnyBasePower(basePower, source, target, move) { if (target === source || move.category === 'Status' || move.type !== 'Psychic') return; ...
import {Component, OnInit,Input} from '@angular/core'; import { HttpService } from "../../service/http.service"; import {CommonService} from '../../service/common.service'; @Component({ selector: 'app-productchangeform', templateUrl: './productchangeform.component.html', styleUrls: ['./productchangeform.componen...
import {Request} from 'aws-sdk/lib/request'; import {Response} from 'aws-sdk/lib/response'; import {AWSError} from 'aws-sdk/lib/error'; import {Service} from 'aws-sdk/lib/service'; import {ServiceConfigurationOptions} from 'aws-sdk/lib/service'; import {ConfigBase as Config} from 'aws-sdk/lib/config-base'; interface Bl...
import * as React from "react"; import Svg, { Path } from "react-native-svg"; type Props = { size?: number | string; color?: string; }; function StopwatchThin({ size = 16, color = "currentColor", }: Props): JSX.Element { return ( <Svg width={size} height={size} viewBox="0 0 24 24" fill="none"> <Pat...
import { letters } from "../app" const distribution = (s: string): NodeJS.Dict<number> => { const dict: NodeJS.Dict<number> = {} letters.forEach((k) => dict[k] = 0) for (const l of s) { const u = l.toUpperCase() if (!letters.has(u)) continue dict[u]!++ } const keys = Object.keys(dict) keys.so...
import convict, { Schema } from 'convict' import { url } from 'convict-format-with-validator' import { ISgidVarsSchema } from '../../../types' convict.addFormat(url) const HOUR_IN_MILLIS = 1000 * 60 * 60 const DAY_IN_MILLIS = 24 * HOUR_IN_MILLIS export const sgidVarsSchema: Schema<ISgidVarsSchema> = { endpoint: {...