text
stringlengths
10
953k
import { knobPositions, LedState, totalKnobs } from './knob-positions.data'; // get possible moves given current LED state export function getPossibleMoves(state: LedState): string[] { var possibleMoves: string[] = []; // if state has not been initialised at all // dont check var hasLed: boolean = fals...
import { Tree } from '@nrwl/devkit'; import { getNxDotnetProjects, getProjectFilesForProject, iterateChildrenByPath, readXml, } from '@nx-dotnet/utils'; export async function updateDependencyVersions( host: Tree, packageName: string, version: string, ) { const projects = await getNxDotnetProjects(host...
import { MenuService } from '../../services/menu.service'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import * as sinon from 'sinon'; import { COMPONENTS } from '../components'; import { cold, getTestScheduler, hot } from 'jasmine-marbles'; import { RouterModule } from '@angular/router'; import ...
import { processor } from "./processor"; const processors = { '.js' : processor, '.jsx' : processor, '.ts' : processor, '.tsx' : processor }; const plugin = { processors }; export default plugin;
import {ZombieMoved} from "./ZombieMoved"; import {Coordinate} from "./Coordinate"; export class ZombieMovedProcessor { process(msg:any):ZombieMoved { var id = "123"; var coordinate = new Coordinate(msg.x, msg.y); var zombieMoved = new ZombieMoved(id, coordinate); return zombieMove...
import { useMutation } from "@apollo/client"; import { EditItem, EditItemGQL, EditItemVariables } from "campaign/gql"; import { useState } from "react"; export const useEditQuantity = ({ currentQuantity, itemId, }: { itemId: string; currentQuantity: number; }) => { const [quantity, setQuantity] = useState(cu...
import * as React from "react"; import { connect } from "react-redux"; import { signinUser } from "~actions/Auth"; import FieldGenerator from "~components/Forms/FieldGenerator"; import FormTitle from "~components/Forms/FormTitle"; import Center from "~components/Layout/Center"; import Modal from "~components/Layout/Mod...
/// <reference path="Object.d.ts" /> module dojox.drawing{ export var _base : Object; export function register (item:any,type:any) : any; export function getRegistered (type:any,id:any) : any; }
import twas from 'twas'; import cache from 'webext-storage-cache'; import React from 'dom-chef'; import {RepoIcon} from '@primer/octicons-react'; import elementReady from 'element-ready'; import * as pageDetect from 'github-url-detection'; import features from '.'; import * as api from '../github-helpers/api'; import ...
import { strict as assert, AssertionError } from 'assert'; import { once } from 'events'; import { itWithClient, TEST_REDIS_SERVERS, TestRedisServers, waitTillBeenCalled, isRedisVersionGreaterThan } from './test-utils'; import RedisClient from './client'; import { AbortError, ClientClosedError, ConnectionTimeoutError, ...
import { Schema } from "mongoose"; import { DropDownItemSchema } from "./catalogos.schema"; import { DomicilioSchema } from "./domicilio.schema"; import { PoderSchema } from "./poder.schema"; // Documentos Soporte export const IdentificacionSchema = new Schema({ id: { type: String, required: true }, tipoDocum...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About humanitylink</source> <translation type="unfinished"/> </message> <message> <locatio...
/* * 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 { getPositiveComparators, getNegativeComparators, queryMappings,...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { GridComponent } from './grid.component'; describe('GridComponent', () => { let component: GridComponent; let fixture: ComponentFixture<GridComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ declaratio...
import {LangEncoder} from '../../../src/encoder/field/LangEncoder'; import {expect} from 'chai'; describe('encoder/field->LangEncoder', (): void => { describe('encode', (): void => { const shouldBeOk = (testStr: string, numBits: number, expectedValue: string): void => { it(`should encode "${testStr}" in...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RichiesteComponent } from './richieste.component'; describe('RichiesteComponent', () => { let component: RichiesteComponent; let fixture: ComponentFixture<RichiesteComponent>; beforeEach(async(() => { TestBed.configureTestin...
/// <reference lib="dom" /> import { Color, Mesh, Texture } from "../../../src/Three.d.ts"; export class LensflareElement { constructor( texture: Texture, size?: number, distance?: number, color?: Color, ); texture: Texture; size: number; distance: number; color: Color; } export class Lens...
export default function localize(literals: TemplateStringsArray, ...args) { let result: string[] = [] for (let i = 0; i < literals.length; i++) { result.push(literals[i]) if (args[i] !== undefined) result.push(args[i]) } return result.join("") }
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BlockedUsersPage } from './blocked-users.page'; describe('BlockedUsersPage', () => { let component: BlockedUsersPage; let fixture: ComponentFixture<BlockedUsersPage>; beforeEach(async () => { await TestBed.configureTestingModule({ ...
/** * Copyright (c) 2021 OpenLens Authors * * 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 limitation the rights to * use, copy, modify, merge, p...
import { Component, Prop } from '@stencil/core'; @Component({ tag: 'components-tooltips' }) export class ComponentsTooltips { @Prop() name: string; componentWillLoad() { document.title = `${this.name} - Blaze`; } render() { return ( <page-template name={this.name}> <p slot="intro" cla...
import * as React from "react"; import { inject, observer } from "mobx-react"; import {Search} from "../../components/Search"; import { CounterStore } from "../../stores"; import { Todo } from "../../components/Todo"; const s = require("./style.scss"); interface IProps { counterStore: CounterStore; } interface ITo...
import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parse...
import React from 'react'; import { View, ImageBackground, Text } from 'react-native'; import {RectButton} from 'react-native-gesture-handler'; import giveClassesBgImage from '../../assets/images/give-classes-background.png'; import styles from './styles'; import { useNavigation } from '@react-navigation/native'; func...
import { Instance, FlatpickrFn, DayElement } from "./types/instance"; import { Options, ParsedOptions, DateLimit, DateRangeLimit, DateOption, defaults as defaultOptions, Hook, HookKey, HOOKS, } from "./types/options"; import { Locale, CustomLocale, key as LocaleKey } from "./types/locale"; import Eng...
import classNames from 'classnames'; import { FC, useState } from 'react'; import { AboutMeType, BasicProps } from '../../types'; import Tabs from '../Tabs/Tabs'; import Wrapper from '../Wrapper/Wrapper'; import styles from './AboutMe.module.scss'; interface AboutMeProps extends BasicProps { profile: AboutMeType; }...
<TS language="sv" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Högerklicka för att ändra adressen eller etiketten.</translation> </message> <message> <source>Create a new address</source> ...
export { default as InputField } from './InputField'; export { default as TextAreaField } from './TextAreaField'; export { default as SelectField } from './SelectField'; export { default as TextAreaSecretField } from './TextAreaSecretField';
export function autogrow() { document.querySelectorAll('[data-autogrow]').forEach(function (element: any) { element.style.boxSizing = 'border-box' const offset = element.offsetHeight - element.clientHeight element.addEventListener('input', function (event) { event.target.style.height = 'auto' ...
import React from 'react'; import { FormInputGroupComponentProps } from '../FormInputGroupItem/FormInputGroupItem'; export interface DefaultInputGroupItemComponentProps extends FormInputGroupComponentProps { label?: string, } /** * Default Formup input component. * @param param0 Options. */ const DefaultInputGro...
import React from 'react' import { Card, useTheme } from 'components' import { CardColors } from 'components/utils/prop-types' const colors = ['primary', 'success', 'warning', 'error'] const Colors: React.FC<React.PropsWithChildren<{}>> = () => { const theme = useTheme() return ( <div className="colors"> ...
import React, { useContext } from "react"; import { useParams } from "react-router-dom"; import { FormattedMessage, Context } from "@oursky/react-messageformat"; import { Pivot, PivotItem, Text } from "@fluentui/react"; import cn from "classnames"; import PasswordPolicySettings from "./PasswordPolicySettings"; import ...
import { Container, IContainerSettings, IContainerPrivate, IContainerEvents } from "../../core/render/Container"; import { p100 } from "../../core/util/Percent"; export interface IChartSettings extends IContainerSettings { } export interface IChartPrivate extends IContainerPrivate { } export interface IChartEvents e...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { PeopleService } from './people.service'; import { PersonComponent } from './person.component'; import { FemaleComponent } from './female.component'; import { Fem...
import * as mocha from "mocha"; import * as should from "should"; import * as sinon from "sinon"; import { AttributeIds } from "node-opcua-data-model"; import { NodeId } from "node-opcua-nodeid"; import { StatusCodes } from "node-opcua-status-code"; import { DataType } from "node-opcua-variant"; import { checkDebugFla...
module BABYLON { export class DepthRenderer { private _scene: Scene; private _depthMap: RenderTargetTexture; private _effect: Effect; private _viewMatrix = Matrix.Zero(); private _projectionMatrix = Matrix.Zero(); private _transformMatrix = Matrix.Zero(); pr...
import { Module } from '@nestjs/common'; import { ModuleGeneratorService } from './module-generator.service'; import { ModuleGeneratorController } from './module-generator.controller'; @Module({ controllers: [ModuleGeneratorController], providers: [ModuleGeneratorService], }) export class ModuleGeneratorModule {}
import { TokenTicker, TxCodec } from "@iov/bcp"; import { Back, Block, Button, Form, useForm } from "medulas-react-components"; import React from "react"; import * as ReactRedux from "react-redux"; import { CodecType, ConfigErc20Options, getConfig } from "../../../config"; import { RootState } from "../../../store/red...
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('payment...
import { optimize } from 'ml-spectra-fitting'; import { xGetFromToIndex } from 'ml-spectra-processing'; import { ShapeType, PeakType, DataType } from '../gsd'; import { groupPeaks } from './groupPeaks'; /** * Optimize the position (x), max intensity (y), full width at half maximum (width) * and the ratio of gaussi...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-dmca', templateUrl: './dmca.component.html', styleUrls: ['./dmca.component.css'] }) export class DmcaComponent implements OnInit { constructor() { } ngOnInit() { } }
import { BrowserModule, HAMMER_GESTURE_CONFIG, HammerModule } from '@angular/platform-browser'; import { ErrorHandler, NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { ServiceWorkerModule } from '@angular/service-worker'; import { environment } from '../environments/environment'...
/* * 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 * distributed u...
@Component('IsHoldable') export class IsHoldable { constructor(){ } } @Component('IsDrinkable') export class IsDrinkable { constructor(){ } } @Component('IsDispenser') export class IsDispenser { constructor(){ } } @Component('IsWineGlass') export class IsWineGlass { constructor(){ ...
import { CreateDateColumn, PrimaryGeneratedColumn, UpdateDateColumn, } from "typeorm"; export abstract class BaseEntity { @PrimaryGeneratedColumn("uuid") id: string; @CreateDateColumn({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }) createdAt: Date; @UpdateDateColumn({ type: "timestamptz"...
import { createElement, ReactElement } from "react"; import { BarcodeScannerPreviewProps } from "../typings/BarcodeScannerProps"; import { BarcodeScannerOverlay } from "./components/BarcodeScanner"; import previewQrCodeSvg from "./assets/previewQrCode.svg"; export function preview(props: BarcodeScannerPreviewProps): ...
import { Component } from '@angular/core'; @Component({ selector: 'tw-page-not-found', template: `<h1>Oooppss... <br/>This page does not exist!</h1>` }) export class PageNotFoundComponent { }
import React from 'react'; import { storiesOf } from '@storybook/react'; import { Display } from './display'; import { Property } from 'interfaces/Property'; // import more addons const story = storiesOf('Products.Display', module); const mockProperty: Property[] = [ { name: 'Rumah 1', address: '...
require('dotenv').config(); import { NestFactory } from '@nestjs/core'; import { join } from 'path'; import * as express from 'express'; import * as helmet from 'helmet'; import { NestExpressApplication } from '@nestjs/platform-express'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; import * as rate...
// This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, apiUrl: 'http://localhost:5001' }; /* * For ...
import { ParsedConfig, BaseVisitor, EnumValuesMap } from '@graphql-codegen/visitor-plugin-common'; import { JavaResolversPluginRawConfig } from './config'; import { GraphQLSchema, EnumTypeDefinitionNode, EnumValueDefinitionNode, InputObjectTypeDefinitionNode, ObjectTypeDefinitionNode, FieldDefinitionNode, ...
import { EntityRepository, Repository } from 'typeorm'; import { SessionEntity } from './session.entity'; @EntityRepository(SessionEntity) export class SessionRepository extends Repository<SessionEntity> {}
jest.mock("fs"); import { actions, makeAppRecord, selectors } from "@nteract/core"; import { sendNotification } from "@nteract/mythic-notifications"; import { ipcRenderer as ipc, remote, webFrame } from "electron"; import * as Immutable from "immutable"; import * as menu from "../../src/notebook/menu"; import { mockA...
/// <reference path="../node_modules/@types/mocha/index.d.ts" /> import * as assert from 'assert'; import {Board, Player, King, Rook, Cell, GameStatus, Queen, Pawn, Move, PieceType} from '../src/Chess'; describe('ConnectFourBoard', () => { it('checkmate', () => { let board = new Board(); board.p...
import { EntityRepository, Repository } from 'typeorm'; import { Task } from './task.entity'; import { CreateTaskDto } from './dto/create-task-.dto'; import { TaskStatus } from './task-status.enum'; import { InternalServerErrorException, Logger, NotFoundException, } from '@nestjs/common'; import { GetTaskFilterDt...
import {Sounds} from '../constants/GameConstants'; export class SoundPlayer { private static _game: Phaser.Game; private static _missileSound: Phaser.Sound; private static _mainMenuSound: Phaser.Sound; private static _gameMusic: Phaser.Sound; private static _explosionMusic: Phaser.Sound; public static ini...
/* eslint-disable @typescript-eslint/no-explicit-any */ import fs from 'fs-extra'; import {BigNumber} from '@ethersproject/bignumber'; // import {AddressZero} from '@ethersproject/constants'; const AddressZero = '0x0000000000000000000000000000000000000000'; const transferEvents = JSON.parse( fs.readFileSync('tmp/ass...
import * as React from 'react'; import { Box } from 'ink'; import { Message } from '../components/Message'; import { StepRunner, StepRunnerStep, OnSuccessOptions } from './StepRunner'; import { Config } from '../config'; import { ErrorMessage } from '../components/ErrorMessage'; import { SuccessMessage } from '../compo...
import { IsString, IsNumber } from 'class-validator'; export class UpdateCourseTypeDto { @IsString() readonly name: string; @IsNumber() readonly price: number; @IsNumber() readonly discount: number; @IsNumber() readonly maxStudents: number; }
export default interface ModeStatus { spa?: boolean; ssr?: boolean; static?: boolean; }
/** * @title 动画尺寸 * @description 通过`size`设置Loading动画的尺寸,只对原生的动画指示符`indicator`有效。 */ import * as React from 'react' import styled from 'styled-components' import { Loading } from '@alicloudfe/components' export default function DemoComponent() { const content = ( <div> <Loading tip={<span>default = lar...
/* * 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 { findSignals } from './find_signals'; import { SignalAlertType, isAle...
import { CommandCollection } from '../command-collection'; const MockCommands = () => ({ standard: { name: 'standard', execute: jest.fn() }, hasAlias: { name: 'hasAlias', aliases: ['hasAl'], execute: jest.fn() } }); describe('CommandCollection', () => { let mockCommands: ReturnType<typeo...
/// <reference lib="es2015.iterable" /> /** @noSelfInFile */ declare namespace ma { const tools_version: string; function version(): string; }
import { defer, Deferred } from './defer' type PoolState = 0 | 1 const ACTIVE: PoolState = 0 const POOLED: PoolState = 1 export interface ObjectPool<T extends object> { get(): Promise<T> add(value: T): void close(onClose: (value: T) => Promise<void> | void): Promise<void> } interface Request<T extends object>...
/* Copyright 2020 Adobe. All rights reserved. This file is licensed to you 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 agre...
// Vendor modules import * as actionTypes from "@nteract/actions"; import { fromJS } from "@nteract/commutable"; import { ContentModel, ContentRecord, ContentRef, ContentsRecord, createContentRef, DummyContentRecordProps, JupyterHostRecord, makeContentsRecord, makeDirectoryContentRecord, makeDirecto...
enum ModeType{ LIGHT, DARK } export default ModeType;
// Copyright IBM Corp. 2020. All Rights Reserved. // Node module: @loopback/example-graphql // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT import {inject, service} from '@loopback/core'; import { arg, authorized, fieldResolver, GraphQLBindings, ...
export interface IEnviroment { env: string; client: string; connection: { database: string user: string password: string }; serverPort: number; serverHost: string; databasePort: number; authSecret: string; }
import styled from 'styled-components' export const Container = styled.div` flex: 1; height: 0; padding-bottom: 32%; overflow: hidden; position: relative; touch-action: manipulation; -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2); box-shadow: 0px...
import { TretinoinGlyph, TretinoinGlyphSecondary } from './svgs'; import { IconProps, useIcon } from '../../shared-components/icon'; export default (props: IconProps) => useIcon(TretinoinGlyph, TretinoinGlyphSecondary, props);
import { Component, OnInit, ViewEncapsulation, Input, ViewChild, ElementRef } from '@angular/core'; import { FormGroup, FormControl, FormBuilder, Validators, AbstractControl } from '@angular/forms'; import { NgbModal, ModalDismissReasons } from '@ng-bootstrap/ng-bootstrap'; import { ToastrService } from 'ngx...
import { prerelease } from 'semver' export interface Answers { bump: string customVersion: string npmTag: string } export const versions: Record<string, string> = {} export const getVersion = (answers: Answers): string => answers.customVersion || versions[answers.bump] export const isPreRelease = (version: ...
import * as Viewer from '../viewer'; import { SMGSceneDescBase } from "./smg_scenes"; class SMG2SceneDesc extends SMGSceneDescBase { protected pathBase: string = `j3d/smg2`; protected getZoneMapFilename(zoneName: string): string { return `${this.pathBase}/StageData/${zoneName}/${zoneName}Map.arc`; ...
import { Injectable } from '@nestjs/common'; import { Cat } from './interfaces/cat.interface'; @Injectable() export class CatsService { private readonly cats: Cat[] = []; create(cat: Cat) { this.cats.push(cat); } findAll(): Cat[] { return this.cats; } }
import { Joi } from 'express-validation'; // User validations const userValidation = { body: Joi.object({ firstName: Joi.string().regex(/^[A-Za-z]+$/).min(3).max(30).required(), lastName: Joi.string().regex(/^[A-Za-z]+$/).min(3).max(30).required(), email: Joi.string().email().required(), role: Joi.st...
declare module "*.png"; declare module "*.jpg"; // Generic CSS import definition declare module "*.css" { interface IClassNames { [className: string]: string; } const classNames: IClassNames; export = classNames; } declare module "download-csv" { // These types are for our use-case and are in no way re...
// import {Animated} from "react-animated-css"; // <Animated animationIn="bounceInLeft" animationOut="fadeOut" isVisible={true}> // <div> // hello world ;) // </div> // </Animated>
import { FormGroup } from '@angular/forms'; /** * Marks all fields in a form group as dirty recursively (i.e. for nested form groups also) * @param formGroup The form group */ export function markAsDirtyRecursive(formGroup: FormGroup) { Object.keys(formGroup.controls).forEach(key => { if (formGroup.controls[k...
import { Component } from "@angular/core"; @Component({ selector: "employee-list", templateUrl: "app/employee/views/employee.list.html" }) export class EmployeeListComponent { title:string="Employee Portal"; subtitle:string="Displaying the list of employees"; employee:any={ name: "Niranjan...
import { Component, EventEmitter, Output } from '@angular/core'; @Component({ selector: 'bc-toolbar', template: ` <md-toolbar color="primary"> <button md-icon-button (click)="openMenu.emit()"> <md-icon>menu</md-icon> </button> <button md-button [routerLink]="''"> <ng-con...
/** * * * OpenAPI spec version: 20200630 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ...
/** * @see https://github.com/Flet/github-slugger */ declare module 'github-slugger' { const value: { slug: (id?: string | null) => string; }; export default value; }
/* eslint-disable @typescript-eslint/camelcase */ // Copyright 2017-2019 @polkadot/app-explorer authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { ApiProps } from '@polkadot/react-api/types'; import { I18nProp...
import * as path from 'path'; import isCI from 'is-ci'; import { ExecaError } from 'execa'; import actionPreflightCheck from './utils/actionPreflightCheck'; import { resolveAsBin } from './utils/resolveAsBin'; import getModularRoot from './utils/getModularRoot'; import execAsync from './utils/execAsync'; import { getD...
export enum ContentType { JSON = 'application/json', URL_ENCODED = 'application/x-www-form-urlencoded', HTML = 'text/html', TEXT = 'text', }
/* tslint:disable:no-unused-variable */ /* tslint:disable:no-unused-expression */ /* tslint:disable:no-var-requires */ /* tslint:disable:max-classes-per-file */ import { Component } from '@angular/core'; import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing'; import { FormsModule } from '@an...
import axios, { AxiosRequestConfig, CancelTokenSource } from 'axios'; import Vue from 'vue'; import { createMockFile, createMockFileList } from '../../../tests/helpers/file'; import { HttpService } from '../http/http'; import { RequestConfig } from '../http/rest'; import { ModulVue } from '../vue/vue'; import { extract...
// Copyright 2020 The Kubermatic Kubernetes Platform contributors. // 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 app...
import * as kinesis from '@aws-cdk/aws-kinesis'; import * as lambda from '@aws-cdk/aws-lambda'; import {StreamEventSource, StreamEventSourceProps} from './stream'; export interface KinesisEventSourceProps extends StreamEventSourceProps { } /** * Use an Amazon Kinesis stream as an event source for AWS Lambda. */ exp...
import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; function getRandomInt(min: number = 0, max: number = 0) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min) + min); } function StartPageLogo() { const { t } = useTranslation();...
import { AsnProp } from "@peculiar/asn1-schema"; import { GeneralNames } from "@peculiar/asn1-x509"; import { IssuerSerial } from "./issuer_serial"; import { ObjectDigestInfo } from "./object_digest_info"; /** * ``` * V2Form ::= SEQUENCE { * issuerName GeneralNames OPTIONAL, * baseCertificate...
// MIT License // // Copyright (c) 2016-2018 GenesisKernel // // 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 limitation the rights // to use, copy...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import {NgModule} from '@angular/core'; import {Routes, RouterModule} from '@angular/router'; import {LayoutComponent} from './layout.component'; import {AuthGuard} from '../shared/guard'; const routes: Routes = [ { path: '', component: LayoutComponent, children: [ {path: '', redirectTo: 'dashboard...
import React from 'react'; import { AndroidWebViewProps, NativeWebViewAndroid, State } from './WebViewTypes'; /** * Renders a native WebView. */ declare class WebView extends React.Component<AndroidWebViewProps, State> { static defaultProps: { overScrollMode: string; javaScriptEnabled: boolean; ...
/* eslint-disable jsx-a11y/anchor-is-valid */ /* eslint-disable no-nested-ternary */ import { useState } from 'react'; import { Box, Button, Checkbox, Flex, Heading, Icon, Link, Table, Tbody, Td, Text, Th, Thead, Tr, Spinner, useBreakpointValue, } from '@chakra-ui/react'; import { RiAdd...
<TS language="es_ES" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Haz clic derecho para editar la dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> ...
export interface JwtContent { email: string; sub: string; jti: string; exp: number; iat: number; }