text
stringlengths
10
953k
import { User } from '@modules/user/core/domain/models/user.model'; import { AuthenticationRequest } from '@core/application/services/auth/requests/authenticationRequest'; import { SignUpRequest } from '@core/application/services/auth/requests/signUpRequest'; export interface IAuthService { signUp(request: SignUpReq...
import { createPluginStub } from "./helper/ExamplePlugin"; import { errorRule } from "./helper/ErrorRule"; import { TextlintKernel } from "../src"; import * as path from "path"; import * as assert from "assert"; import { createBinaryPluginStub } from "./helper/BinaryPlugin"; import { TextlintRuleReporter } from "@textl...
import { CreateBlogDTO } from './create-blog.dto'; // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface UpdateBlogDTO extends Partial<CreateBlogDTO> {}
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FinalizacaoCompraComponent } from './finalizacao-compra.component'; describe('FinalizacaoCompraComponent', () => { let component: FinalizacaoCompraComponent; let fixture: ComponentFixture<FinalizacaoCompraComponent>; beforeEach(...
<%# Copyright 2013-2017 the original author or authors from the JHipster project. This file is part of the JHipster project, see https://jhipster.github.io/ for more information. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
declare module '@openzeppelin/test-helpers' { const expectRevert: { assertion: (promise: Promise<any>) => Promise<void>, outOfGas: (promise: Promise<any>) => Promise<void>, unspecified: (promise: Promise<any>) => Promise<void> } & ((promise: Promise<any>, expectedError: string) => Promise<void>) }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license information. *----------------------------------------------------------------...
import { CanActivate } from '@angular/router'; import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, Router } from '@angular/router'; @Injectable() export class ProductGuardService implements CanActivate { constructor ( private _router: Router ) { } canActivate(route: ActivatedRout...
import { Transform } from 'stream'; import { IWallet } from '../../../models/wallet'; import { IEthTransaction } from '../types'; import { MongoBound } from '../../../models/base'; import { WalletAddressStorage } from '../../../models/walletAddress'; export class EthListTransactionsStream extends Transform { constru...
import cleanRequire from '../../../utils/clean-require'; import isTemplateValid from '../../../utils/is-template-valid'; import * as npm from '../../../utils/npm-utils'; import strings from '../../../resources/index'; import { Logger } from '../../logger'; import { Template } from '../../../types'; export default func...
// smithy-typescript generated code import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerEx...
import * as React from "react"; import { useTranslation } from "react-i18next"; import { Helmet } from "react-helmet"; import { Link } from "react-router-dom"; import { Card, Typography } from "antd"; import { RedditOutlined } from "@ant-design/icons"; import useMediaQuery from "@material-ui/core/useMediaQuery"; const...
import { Injectable } from '@angular/core'; import { Http, Headers, RequestOptions } from '@angular/http'; import 'rxjs/add/operator/map'; @Injectable() export class BahiaService { private _bahiaUrl: string = 'http://shackox.apphb.com/api/Bahias/'; constructor(private _http: Http) { } getBahias() { ...
import { Component, OnInit, Output, EventEmitter, Input } from '@angular/core'; export const FIRST_PAGE = 1; /** * The Paginantion component for navigates in the application. * * Provides the data by pages. */ @Component({ selector: 'app-paginator', templateUrl: './paginator.component.html', styleUrls: ['./...
import React from 'react'; import { TouchableOpacityProps } from 'react-native'; import { Container, Icon, Title } from './styles'; const icons = { up: 'arrow-up-circle', down: 'arrow-down-circle', }; interface TransactionTypeButton extends TouchableOpacityProps { type: 'up' | 'down'; title: string; isActi...
import * as fs from 'fs' import BigNumber from 'bignumber.js' import { Networks } from 'common/domain/network' import { FG_COLORS as COLORS, colorString } from 'common/utils/colorString' let _hasTradeConfig: boolean = false let _tradeConfig: any = false let _mnemonic: string | boolean = false let _network: Networks ...
import React from "react"; import { CircularProgress, createMuiTheme, MuiThemeProvider, SvgIcon,Typography, useTheme } from "@material-ui/core"; import useCheckIsDesktop from "../../../utlities/layoutUtlities"; import {checkObjIsEmpty, sumValues, sumObjectValues} from "../../../utlities/ObjUtlities"; import {red}...
import 'reflect-metadata' import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); } bootstrap();
// svg/shield-check-outline.svg import { createSvgIcon } from './createSvgIcon'; export const SvgShieldCheckOutline = createSvgIcon( `<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns="http://www.w3.org/2000/svg" x...
import * as React from 'react'; import Button from '../../button'; import { noop } from '../constants'; const PanelFooter = props => { const { buttonText, errorText, linkCls, linkText, onClickButton, onClickLink, showError, showLink, } = props; return ( <div className="panel...
import React, { StrictMode, StatelessComponent } from 'react'; const App: StatelessComponent = () => ( <StrictMode> <div>Hello react-statement!</div> </StrictMode> ); export default App;
import { Component, EventEmitter } from '@angular/core'; import { Router } from '@angular/router'; import { ViewCommodityComponent } from './../viewCommodity/index'; import { EditCommodityComponent } from './../editCommodity/index'; import { Commodity } from '../_models/index'; import { AlertService, CommodityService...
import { registerLocaleData } from '@angular/common'; import '@angular/common/locales/global/en-GB'; import en_GB from '@angular/common/locales/en-GB'; import extra_en_GB from '@angular/common/locales/extra/en-GB'; import '@angular/common/locales/global/zh-Hans'; import zh_Hans from '@angular/common/locales/zh-Hans'; ...
/* * 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 React, { useMemo } from 'react'; import { Redirect } from 'react-route...
import * as path from 'path' import { pageWith } from 'page-with' import { SetupWorkerApi } from 'msw' import { waitFor } from '../../../support/waitFor' declare namespace window { export const msw: { startWorker(): ReturnType<SetupWorkerApi['start']> } } function prepareRuntime() { return pageWith({ ex...
import * as angular from 'angular'; /** Base class for all services. */ abstract class BaseService { protected serviceUrl: string; protected headers: ng.IHttpRequestConfigHeaders = {}; private _reqConfig: ng.IRequestShortcutConfig; private _storage: Storage; /** * Use the base service class t...
/** * FormValidation (https://formvalidation.io) * The best validation library for JavaScript * (c) 2013 - 2020 Nguyen Huu Phuoc <me@phuoc.ng> */ import Plugin from '../core/Plugin'; import { TriggerExecutedEvent } from './Trigger'; export interface DependencyOptions { [field: string]: string; } export defau...
import React from 'react'; import { Recipe } from '~constants/interfaces/recipe'; import useShadow from '~hooks/useShadow'; interface Props { className?: string; recipe: Recipe; } function ShadowRecipe({ className = '', recipe }: Props) { // TODO: Update to the new files structure const shadowElem = useShado...
export const requestFullScreen = (element: HTMLVideoElement) => { const methods = ['requestFullscreen', 'webkitRequestFullscreen', 'mozRequestFullScreen', 'msRequestFullscreen']; const methodName = (methods as any).find((name: string) => (element as any)[name]); (element as any)[methodName](); }
import { departureDao } from "../daos/departureDao"; // Private functions for use in search const searchPoll = async ( params: DepartureSearchPollParams ): Promise<DepartureSearchResponse | void> => { return departureDao.searchPoll(params); }; const searchInit = async ( params: DepartureSearchInitParams ): Promi...
import React from 'react'; function Icon() { return ( <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32" className="w-full h-full fade-in"> <path stroke="#0984E3" strokeWidth="8" d="M28 16c0 6.627-5.373 12-12 12S4 22.627 4 16 9.373 4 16 4s12 5.373 12 ...
import type { App, Component as VueComponent } from 'vue' import type { IContext } from '@/context' // const layouts = import.meta.glob("./layouts/*.vue") // async function registerLayouts(app: App<Element>) { // for (const path in layouts) { // const component = await layouts[path]() // const nam...
type ObjectWithKeys = { [key: string]: unknown }; export const overrideDefinedPropsOnly = < TResult, T1 extends ObjectWithKeys, T2 extends ObjectWithKeys >( left: T1, right: T2 ): TResult => { let result: ObjectWithKeys = { ...left }; for (const key of Object.keys(right)) { const val = right[key]; ...
export class Area { _id: string = ''; chName: string = ''; chPinyin: string = ''; constructor(values: Object = {}) { Object.assign(this, values); } }
import styled from 'styled-components' export const Container = styled.header` background: var(--blue); ` export const Content = styled.div` max-width: 1120px; margin: 0 auto; padding: 2rem 0 10rem; display: flex; align-items: center; justify-content: space-between; @media (max-width...
import { Controller } from '@hotwired/stimulus' const memoize = (controller: Controller, name: string, value: any) => { Object.defineProperty(controller, name, { value }) return value } export const useMemo = (controller: Controller) => { ;(controller.constructor as any).memos?.forEach((getter: string) => { ...
import { Module } from "@nestjs/common"; import { VectorController } from "./vector.controller"; import { VectorService } from "./vector.service"; @Module({ controllers: [VectorController], providers: [VectorService], }) export class VectorModule {}
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core' import { MatDialog } from '@angular/material/dialog' import { ISelectorResponsive, ISelectorResponsiveUnit } from '@sunbird-cb/collection' import { NsWidgetResolver } from '@sunbird-cb/resolver' import { WIDGET_LIBRARY } from '../...
import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { ExportTestDataService, FileContentData, ValueData } from '../excel/test-data.service.spec'; import { ExportUtilities } from '../exporter-common/export-utilities'; import { IgxCsvExporterService } from './csv-exporter'; i...
import { AppPage } from './app.po'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to i18n!'); }); });
export * from './is/isArray' export * from './is/isArrayLike' export * from './is/isBetween' export * from './is/isBool' export * from './is/isFunction' export * from './is/isInstanceOf' export * from './is/isInteger' export * from './is/isIterable' export * from './is/isLength' export * from './is/isMap' export * from...
import { Component, OnInit } from '@angular/core'; import { ServersService } from '../servers.service'; import { ActivatedRoute, Params } from '@angular/router'; @Component({ selector: 'app-edit-server', templateUrl: './edit-server.component.html', styleUrls: ['./edit-server.component.css'] }) export class Edit...
import React from 'react' import styles from './styles.module.scss' import Image from 'next/image' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { useState } from 'react' import Feedback from '../../../pages/Feedback' import Link from 'next/link' export default function Menu({id = 'modal', ...
import { RootStore } from '../root-store'; import { Store } from '../store'; import { spreadArrayStore$ } from './spread-array-store'; describe('spreadArrayStore$()', () => { let store: Store<number[]>; beforeEach(() => { store = new RootStore([1, 2]); }); it('emits a separate store object for each eleme...
/** * Core Services API * Use the Core Services API to manage resources such as virtual cloud networks (VCNs), compute instances, and block storage volumes. For more information, see the console documentation for the [Networking](/iaas/Content/Network/Concepts/overview.htm), [Compute](/iaas/Content/Compute/Concepts/c...
import { ActivatedRouteSnapshot, RouterStateSnapshot, Resolve } from '@angular/router'; import { JobAdsService } from 'src/app/core/services/job-ads.service'; import { JobDetails } from './../models/job-details'; import { Injectable } from '@angular/core'; @Injectable() export class JobDetailsResolver implements Resol...
/*-------------------------------------------------------------------------- smoke-node The MIT License (MIT) Copyright (c) 2019 Haydn Paterson (sinclair) <haydn.developer@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...
import { BarCoordinates, BarPrices } from '../model/bar'; import { SeriesItemsIndexesRange, TimedValue } from '../model/time-data'; import { IPaneRenderer } from './ipane-renderer'; import { optimalBarWidth } from './optimal-bar-width'; export type BarCandlestickItemBase = TimedValue & BarPrices & BarCoordinates; ex...
import { ApiProperty } from "@nestjs/swagger"; import { Column, Entity, UpdateDateColumn, CreateDateColumn, PrimaryGeneratedColumn, JoinColumn, ManyToOne, OneToMany } from "typeorm"; import { tbProduct } from "../entity/product.entity"; export class IProductGroup { @ApiProperty() id: number @ApiProperty...
import { Plugin, Path, StateLink, StateValueAtPath, PluginInstance } from '@hookstate/core'; export type ValidationSeverity = 'error' | 'warning'; export interface ValidationError { readonly message: string; readonly path: Path; readonly severity: ValidationSeverity; } export interface ValidationExtensio...
import React from 'react'; import * as yup from 'yup'; import { useSelector, useDispatch } from 'react-redux'; import { useForm, FormContextValues } from 'react-hook-form'; import { Button, BugVillaLogo, Flex, IconLink, Label, toast } from '@bug-ui'; import { Input } from '@bug-ui/Form'; import useQuery from 'hooks/us...
import { useState } from 'react'; import * as React from 'react'; import uniqWith from 'lodash/uniqWith'; import BootstrapFormInput from '../../BuiltInFormControls/BootstrapFormInput'; import FormGroupWithLabel from '../../BuiltInFormControls/FormGroupWithLabel'; import CmsContentSelect, { CmsContentOption } from './C...
import * as React from 'react' import { keyframes } from '@emotion/core' import { Box } from 'theme-ui' import { emojiList, useEmojiIndex } from 'components/emoji' const bgAni = keyframes({ '0%': { backgroundPosition: '0% 0%' }, '100%': { backgroundPosition: '0% 100%' }, }) function EmojiBG(): React.ReactElement ...
import { Component, ViewChild, OnInit } from '@angular/core'; import { MatTableDataSource } from '@angular/material/table'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; export interface PeriodicElement { LocationDescription: string; MaterialDescript...
/** * Common utility functionality. */ import * as winston from 'winston'; /** * Get a logger to use. * * The logger is for the console, includes timestamps, the module name and coloured log levels. * * @param name The name of the module * @param logLevel The log level to set (silly, debug, info, warni...
import { Injectable } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; @Injectable() export class LocalAuthGuard extends AuthGuard('local') { // Empty }
import * as React from "react"; import * as PropTypes from "prop-types"; import ComponentDetail from "components/ComponentDetail"; import * as docEntry from "react-uwp/Icon/index.doc.json"; import * as readmeText from "!raw!./README.md"; import CodeExample from "components/CodeExample"; import SimpleExample from "./...
import mongoose, { Schema, model, Document } from 'mongoose' export interface UserInterface extends Partial<Document> { name: string avatar: string teamId?: string teamName?: string password?: string addUserPassword?: string } export interface UserLoginInterface { userId: string teamId: string passwo...
<TS language="es_MX" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Click derecho para editar tu dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> ...
export interface ChangeEvent<T extends HTMLElement> { target: T; }
import {NgModule,Component,Input,Output,OnInit,AfterViewInit,AfterContentInit,OnDestroy,ElementRef,ViewChild,EventEmitter,ContentChildren,QueryList,TemplateRef} from '@angular/core'; import {CommonModule} from '@angular/common'; import {Message} from 'primeng/api'; import {DomHandler} from 'primeng/dom'; import {PrimeT...
import { runOneStatic } from '../src/task-runner'; import { StaticResult, StaticTask } from '../src/types'; it('should run static tests', async () => { const ourGetNode = () => null; const returnValue: string = 'hello old friend'; const runMock = jest.fn().mockImplementation(() => Promise.resolve(returnValue)); ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MapsComponent } from './maps.component'; describe('MapsComponent', () => { let component: MapsComponent; let fixture: ComponentFixture<MapsComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ declarati...
export const recordVote = async ( identifier: string, ballotID: string, token: string, captchaToken: string ): Promise<void> => { const url = `/api/vote/${ballotID}`; try { await fetch(url, { method: "POST", headers: { "Content-Type": "application/json", "X-Captcha": captcha...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { SqlMa...
import './account-listing.scss'; import React from 'react'; import {useDispatch, useSelector} from 'react-redux'; import {getAccountDetail} from '../../../store/slice/account.slice'; function AccountListing() { const {accounts, filterName} = useSelector((state: any) => state.account); const dispatch = useDispa...
import React, { useMemo } from 'react'; import { Button } from '@material-ui/core'; import Link from 'next/link'; import { Event, useCancelEventMutation, useDeleteEventMutation, } from '../../../../generated'; import useConfirm from '../../../../hooks/useConfirm'; import { EVENT, EVENTS } from '../graphql/querie...
const boxOrange = 6 const boxRed = 7 const boxBlue = 8 const boxGreen = 9 const boxGrey = 10 const targetOrange = 25 const targetRed = 38 const targetBlue = 51 const targetGreen = 64 const targetGrey = 77 export { boxOrange, boxRed, boxBlue, boxGreen, boxGrey, targetOrange, targetRed, targetBlue, ...
import * as t from 'io-ts' import { FhirBundle_Link } from './FhirBundle_Link' import { FhirBundle_Request } from './FhirBundle_Request' import { FhirBundle_Response } from './FhirBundle_Response' import { FhirBundle_Search } from './FhirBundle_Search' import { FhirElement } from './FhirElement' import { FhirExtension ...
import { IsDefined } from "class-validator"; export class CreateConfigEcommerceDto { titulo_inicio:string; subtitulo_inicio:string; descripcion_inicio:string; titulo_footer:string; descripcion_footer:string; sucursal:any; }
import { container, title } from "../../../material-kit-react"; import headerLinksStyle from "../../components/headerLinksStyle"; // import { Theme } from "@mui/material"; import { Theme } from "@emotion/react"; const navbarsStyle = (theme: Theme) => ({ section: { padding: "70px 0", paddingTop: "0" }, co...
import { IComponentOptions, IController, ISCEService, IInterpolateService, module } from 'angular'; import { get, partition } from 'lodash'; import * as DOMPurify from 'dompurify'; interface IAnnotationsMap { [key: string]: string; } interface ICustomSection { title: string; key: string; isHtml: boolean; co...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Alert, AlertDescription, AlertTitle, Anchor, Box, Button, ButtonGroup, createDisclosure, HStack, IconButton, Input, Kbd, ListItem, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, T...
import React from 'react' import { logger } from '@hazelcast/services' import { TextArea } from '../src/TextArea' import styles from '../src/TextArea.module.scss' import { Form, Formik } from 'formik' import { TextAreaFormik } from '../src/TextAreaFormik' const text = 'Yoda, a Force-sensitive male being belonging ...
import * as React from 'react'; import { useClickOutside } from '@hooks'; import { Container } from '@components/Layouts'; import { Text } from '@components/DataDisplay'; import { StyledTextField, StyledTextFieldProps, TextFieldInput } from './style'; interface TextFieldProps extends Partial<Omit<StyledTextFieldP...
export enum PermissionState { ask = 0, allow = 1, block = 2, } export type BrowserPermissionName = keyof BrowserPermissions export interface BrowserPermissions { camera: PermissionState microphone: PermissionState notifications: PermissionState geolocation: PermissionState popups: PermissionState im...
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm'; @Entity() export class Company { @PrimaryGeneratedColumn() id: number; @Column({ length: 500 }) name: string; @Column() cnpj: string; @Column() companyName: string; @Column() adress: string; @Column() phone: string; @Colu...
import { Template } from '../types' export interface RemoteCopyPasterInterface { createTemplate(args: Omit<Template, 'id'>): Promise<number> findTemplate(args: { id: number }): Promise<Template> updateTemplate(args: Template): Promise<void> deleteTemplate(args: { id: number }): Promise<void> findAl...
import {expect} from 'chai'; import 'mocha'; import {core} from '../'; import {newGatewaySdkMock} from '../mediarithmics/api/sdk/GatewaySdkMock'; import {IRecommenderSdk} from '../mediarithmics/api/sdk/GatewaySdk'; import {RecommenderApiTester} from '../helper'; describe('Fetch recommender API', () => { class MyFake...
import React, { PureComponent } from 'react'; import { DataSourcePluginOptionsEditorProps } from '@grafana/data'; import { CloudMonitoringOptions, CloudMonitoringSecureJsonData } from '../../types'; import { ConnectionConfig } from '@grafana/google-sdk'; export type Props = DataSourcePluginOptionsEditorProps<CloudMoni...
/* 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 { HTMLStencilElement, JSXBase } from '@stencil/core/internal'; export namespace Components { interface App404 {} interface AppRoo...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ecoinonline</source> <translation>Over ecoinonline</translation> </message> <message> <...
import {OverlayXPosition, OverlayYPosition} from '@sndvll/core'; export enum ToastType { Info = 'info', Success = 'success', Warning = 'warning', Error = 'error' } export interface ToastConfig { x: OverlayXPosition; y: OverlayYPosition; time: number; type: ToastType message?: string; } type ToastCo...
/* 🤖 this file was generated by svg-to-ts*/ export const nationFlagDg: { name: 'dg'; data: string; } = { name: 'dg', };
import { Time } from 'e'; import { Monsters } from 'oldschooljs'; import { GearSetupTypes, GearStat } from '../../../../gear'; import { SkillsEnum } from '../../../../skilling/types'; import itemID from '../../../../util/itemID'; import resolveItems, { deepResolveItems } from '../../../../util/resolveItems'; import { ...
import * as definition from "ui/frame"; import {View, CustomLayoutView} from "ui/core/view"; import {Page} from "ui/page"; import {isString, isFunction, isDefined} from "utils/types"; import * as trace from "trace"; import {resolveFileName} from "file-system/file-name-resolver"; import * as fs from "file-system"; impo...
import { BackgroundMessageTypeEnum, CallbackFunction, ChromeApiMessage, getStorageLocal, MessageSender, setStorageLocal } from 'common'; import { changeIcon, triggerOneMinuteWarningNotification } from './utilities/actions'; import { connecToNativeApp, shutdownCommand } from './utilities/nativeCommunication'; import...
import { sign } from 'jsonwebtoken'; import { getEd25519Sign, toBuffer } from './sign'; import { Keystore } from '../types'; import { v4 } from 'uuid'; export class KeystoreAuth { keystore?: Keystore; constructor(keystore?: Keystore) { this.keystore = keystore; } signToken(signatrue: string, requestID: st...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// Type definitions for TOAST UI Grid v4.19.2 // TypeScript Version: 3.9.5 import { CellValue, RowKey, Row, SortState, RowSpan, InvalidRow } from './store/data'; import { SummaryColumnContentMap, SummaryValueMap } from './store/summary'; import { ColumnInfo } from './store/column'; import { Range } from './store/selec...
import { Router } from "express"; import routes from "../../../common/routes"; const sitemapRoute = Router(); sitemapRoute.get("/", (req, res) => { res.type("text/xml"); res.render("sitemap", { routes: routes, origin: req.fullURL.origin, }); }); export default sitemapRoute;
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { PredictPage } from './predict.page'; const routes: Routes = [ { path: '', component: PredictPage } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule], }) export cla...
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import { artifact_type, artifact_type_id } from '../given/artifacts'; import no_associations from '../given/no_associations'; import { describeThis } from '@dolittle/ty...
import { DetectiveClient } from "./DetectiveClient"; import { AcceptInvitationCommand, AcceptInvitationCommandInput, AcceptInvitationCommandOutput, } from "./commands/AcceptInvitationCommand"; import { CreateGraphCommand, CreateGraphCommandInput, CreateGraphCommandOutput } from "./commands/CreateGraphCommand"; im...
export class EmpresaTO { public empr_sq_id: string; public empr_nm_razaosocial: string; constructor() { this.empr_sq_id = ''; this.empr_nm_razaosocial= ''; } }
/// <reference types="../experimental"/> import React = require('react'); function useExperimentalHooks() { const [toggle, setToggle] = React.useState(false); const [startTransition, done] = React.unstable_useTransition({ busyMinDurationMs: 100, busyDelayMs: 200, timeoutMs: 300, }...
/** * Grunt task: assembles the summary js-file by the compiled file and the template */ "use strict"; declare var require: (path: string) => any; var placeholder: string = "\"<%= content %>\";"; /** * Removes the top comment in the template * * @param {string} template * @return {string} */ function removeCo...
import * as React from "react"; import { Link } from "react-router-dom"; import { displayTimeInFromNowFormat } from "../utils/index"; import Table from "../ui/Table"; const apisToDisplayFormat = (apis) => { if (!apis) { return ""; } return apis.map((api) => `${api.name}<${api.handler_type}>`).join("\n"); };...