text
stringlengths
10
953k
import 'source-map-support/register'; export const main = async (): Promise<any> => { return { statusCode: 200, body: JSON.stringify({ message: `Go Serverless v1.0! ${await message({ time: 1, copy: 'Your function executed successfully!', })}`, }), }; }; const message = (res...
// Copyright 2019 - present Xlab // // 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 ...
import { Chain } from '../types' type ChainName = | 'arbitrumOne' | 'arbitrumRinkeby' | 'goerli' | 'hardhat' | 'kovan' | 'localhost' | 'mainnet' | 'optimisticEthereum' | 'optimisticKovan' | 'polygonMainnet' | 'polygonTestnetMumbai' | 'rinkeby' | 'ropsten' export const chain: Record<ChainName...
import { MainRuntime } from '@teambit/cli'; import { EnvsAspect, EnvsMain, Environment } from '@teambit/environments'; import { ReactAspect, ReactMain } from '@teambit/react'; import { NodeAspect } from './node.aspect'; import { NodeEnv } from './node.env'; export class NodeMain { // please replace to the nodeJS ic...
/** * Data Integration API * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. * OpenAPI spec version: 20200430 * Contact: di_dis_ww_grp@oracle.com * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2...
// TypeScript Version: 3.2 /// <reference types="node" lib="esnext" /> import * as fs from 'fs'; import { Readable } from 'stream'; declare namespace readdir { interface EntryInfo { path: string; fullPath: string; basename: string; stats?: fs.Stats; dirent?: fs.Dirent; } interface Readdirp...
// Type definitions for yeoman-test 4.0 // Project: https://github.com/yeoman/yeoman-test, http://yeoman.io/authoring/testing.html // Definitions by: Ika <https://github.com/ikatyang> // Manuel Thalmann <https://github.com/manuth> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Typ...
import { createSelector } from "@ngrx/store"; import { IUiState } from './common' export const uiStatePreviewingDatasetFilesSelector = createSelector( state => state['uiState'], (uiState: IUiState) => uiState['previewingDatasetFiles'] ) export const uiStateMouseOverSegmentsSelector = createSelector( state => st...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BusinessCategoryComponent } from './business-category.component'; describe('BusinessCategoryComponent', () => { let component: BusinessCategoryComponent; let fixture: ComponentFixture<BusinessCategoryComponent>; beforeEach(async () => ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { SamAutocompleteModule } from '../autocomplete'; import { SamListComponent } from './list.component'; import { SamWrapperModule } from '../../wrappers'; @NgModule({ imports:...
export function requiredFieldValidator(value: boolean): string | undefined { return value === true ? undefined : "Field is required!"; }
/*! * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { AWSResourceNode } from '../../shared/treeview/nodes/awsResourceNode' import { AWSTreeNodeBase } from '../../shared/treeview/nodes/awsTreeNodeBase' import { RestApi } from 'aws-sdk/clients/...
import { CacheNode } from './CacheNode'; import { Node } from '../snap/Node'; /** * Stores the data we have cached for a view. * * serverSnap is the cached server data, eventSnap is the cached event data (server data plus any local writes). * * @constructor */ export declare class ViewCache { private readonly...
import type { DropDownProps } from 'antd' export interface LinkData { id: string title: string url: string } export type LinkList = LinkData[] export interface QuickAccessProps extends Omit<DropDownProps, 'overlay'> { id: string type: 'cbt' | 'quiz' | 'doc' style?: React.CSSProperties }
import * as admin from 'firebase-admin'; export async function deleteToken(userRecord: admin.auth.UserRecord) { if (!userRecord || !userRecord.uid || userRecord.uid === undefined || userRecord.uid === '') { return; } try { const userId: string = userRecord.uid; await deletePlatformDoc(userId); } ...
import { Controller, Get, Post, Delete, Put, Body, Param, } from '@nestjs/common'; import { BaseE, BaseService } from './'; export class BaseController<T extends BaseE> { constructor(private readonly baseService: BaseService<T>) {} @Get('list') async getAll(): Promise<T[]> { return await this....
import { useEffect } from 'react' import { useWeb3React } from '@web3-react/core' import connectors from '../utils/connectors' const AUTO_CONNECT = true const AutoConnect = () => { const w3ctx = useWeb3React() const { active, activate } = w3ctx const connectWeb3 = async (connectorName = 'metamask') => { a...
/* eslint-disable max-params */ import { format } from 'date-fns'; export const dateRender = ( { dateFormat }: { dateFormat: string; } = { dateFormat: 'dd-MM-yyyy HH:mm' } ) => (value: number | Date | string | null) => { return value ? format(new Date(value), dateFormat) : n...
import type { NextPage } from 'next'; import CSS from 'csstype'; import { useEffect, useState } from 'react'; import { Console } from 'console'; type props = { data: {page: number, pages: number}; onPage: (page: number) => void; } const Pagination: NextPage<props> = ({data,onPage}) => { const [active, setActive...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { StatisticalReportResolver } from './statistical-report/statistical-report-resolver.service'; import { SwitchManageComponent } from './switch-manage.component'; import { SwicthSettingResolver } from './switch-setti...
/** * The {@link QuadOperator} positions nodes to minimize a quadratic * optimization. * * @module */ import { CoordNodeSizeAccessor, CoordOperator } from "."; import { bigrams, def, dfs, setIntersect } from "../../utils"; import { SugiNode } from "../utils"; import { indices, init, layout, minBend, minDist, solve...
export interface IWelcomeEmailData { displayName: string; url: string; redirectUrl: string; }
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { ServiceWorkerModule } from '@angular/service-worker'; import { environment } from '../environments/envir...
import { useEffect, useState } from "react"; import { useDispatch } from "react-redux"; import { dailyRoundsAnalyse } from "../../../Redux/actions"; export interface ITelePatientVitalsGraphCardProps { consultationId?: number; } export default function TelePatientVitalsGraphCard({ consultationId, }: ITelePatientVi...
export type TNodeData<T> = { data: { [P in keyof T]?: T[P]; }; } export type TInputData<T> = { [P in keyof T]: T[P][]; }
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { Application } from 'app/core/models/application'; @Injectable({ providedIn: 'root' }) export class ApplicationListDataService { priva...
import { Godam, Mutation, Task, Expression, Computed } from "godam"; import { Student } from "./model/student"; export class RootState { students: Student[] = []; studentId = 0; } export class RootMutation extends Mutation<RootState>{ addStudent(student) { this.state.students.push(student); } ...
import React from 'react'; import { EditorContextProps } from '../EditorContext'; import Item from './Item'; interface ItemPanelProps extends EditorContextProps { style?: React.CSSProperties; className?: string; } export { Item }; declare const _default: React.ForwardRefExoticComponent<Omit< React.PropsWithChildr...
/* * 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. /** * This sa...
export * from './list'; export * from './attach'; export * from './delete'; export * from './create'; export * from './download'; export * from './list'; export * from './sort';
import { Body, Controller, Delete, Get, Inject, Patch, Post, Res, UploadedFile, UseGuards } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { AuthService } from 'src/auth/auth.service'; import { AuthLoginDto } from 'src/auth/dto/AuthLoginDto.dto'; import { UserObj } from 'src/decorators/user...
import * as React from "react"; import Messages from "../../components/messages"; import Navigator from "../../components/Navigator"; import Shop from "../../components/Shop"; import { WindowTitle } from "../../components/WindowTitle"; import i18n from "../../i18n"; import { decimal, getMutationState, maybe } from ".....
import { loginSlice, clearProjectName, setProjectName } from "./login"; describe("loginSlice reducer", () => { it("should handle initial state", () => { expect( loginSlice.reducer(undefined, { type: "TEST_ACTION", }) ).toEqual({ projectName: null, }); }); it(`should handle ...
// @ts-ignore try{self['workbox:range-requests:6.5.3']&&_()}catch(e){}
import { useField } from "formik"; import React from "react"; type Props = { name: string; label?: string; helpText?: string | React.ReactNode; } & React.InputHTMLAttributes<HTMLTextAreaElement>; const TextAreaField = React.forwardRef((props: Props, ref: React.Ref<HTMLTextAreaElement>) => { const [field, meta...
import { keccak256 } from "ethereum-cryptography/keccak"; import chalk from "chalk"; import { stripHexPrefix } from "./utils"; const toChecksumAddress = (address: string, chainId: null | number = null) => { if (!/^(0x)?[0-9a-f]{40}$/i.test(address)) { console.log( chalk.underline("\nError:\n\n") + ...
/* * LiskHQ/lisk-commander * Copyright © 2021 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied...
import EntityType from '../types/entity'; import Entity from './entity'; const ENTITIES: Record<string, Omit<EntityType, 'name'>> = { [Entity.Nestle]: { reasons: [ 'Nestlé aggressively markets breast milk substitutes, particularly in underdeveloped countries.', ], sources: ['https://en.wikipedia.or...
import React from 'react'; import { ChakraProvider, Container, Grid, Box, IconButton } from '@chakra-ui/react'; import customTheme from '../../theme'; import Sidebar from './sidebar'; import Seo from './seo'; type SitePageContext = { children: React.ReactNode; }; const Layout: React.FC<SitePageContext> = ({ childr...
import { Injectable } from '@angular/core'; import {User} from '../user'; import {HttpClient} from '@angular/common/http'; import {environment} from '../../environments/environment'; import {Repo} from '../repo'; @Injectable({ providedIn: 'root' }) export class ProfileService { repo: Repo; user: User; private use...
interface opc_prpa_watchingbrieffile_analysts_Base extends WebEntity { opc_prpa_watchingbrieffile_analystsid?: string | null; opc_prpa_watchingbrieffileid?: string | null; systemuserid?: string | null; versionnumber?: number | null; } interface opc_prpa_watchingbrieffile_analysts_Relationships { opc_prpa_watc...
import { MigrationInterface, QueryRunner, Table } from 'typeorm'; export default class CreateFichas1612917408813 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.createTable( new Table({ name: 'fichas', ...
import { NextPage } from 'next'; import Image from 'next/image'; import config from '../../config'; const BlogBanner: NextPage = () => { const bannerTitle = config.blogs.banner.title; const bannerSubtitle = config.blogs.banner.subtitle; const bannerImageURL = config.blogs.banner.imageURL; const bannerImageAlt ...
// Elix is a JavaScript project, but we define TypeScript declarations so we can // confirm our code is type safe, and to support TypeScript users. import CalendarElementMixin from "./CalendarElementMixin.js"; import SeamlessButton from "./SeamlessButton.js"; export default class CalendarDayButton extends CalendarEle...
//Testing support http://wiki.apache.org/solr/FieldCollapsing?highlight=%28field%29%7C%28collapsing%29 /** * Modules dependencies */ const figc = require('figc'), assert = require('chai').assert, libPath = process.env['SOLR_CLIENT_COV'] ? '../lib-cov' : '../lib', solr = require(libPath + '/solr') import * as ...
import React from 'react'; import { AppLoading } from 'expo'; import { StatusBar } from 'react-native'; import { Roboto_400Regular, Roboto_500Medium } from '@expo-google-fonts/roboto'; import { Ubuntu_700Bold, useFonts } from '@expo-google-fonts/ubuntu'; import Routes from './src/routes'; const mobile: React.FC = ()...
import { gql } from 'graphql-request' import { useQuery, UseQueryResult } from 'react-query' import { graphQLClient } from '@lib' import { getLocalizedSubpageSlugs } from '../getLocalizedSlugs' export type GetSubpageQuery = { subpages?: ISubpage[] } export const GET_SUBPAGE = gql` query getSubpages( $locale: ...
import yaml from 'js-yaml'; import fs from 'fs'; import os from 'os'; import path from 'path'; import { get } from 'lodash'; import sleep from './sleep'; import untildify from './untildify'; function getConfigRootDir(net = 'mainnet'): string { const homedir = os.homedir(); return 'LITTLELAMBOCOIN_ROOT' in process...
import { ComponentSlotStylesPrepared } from '@fluentui/styles'; import { FlexItemProps } from '../../../../components/Flex/FlexItem'; import { toFlexAlignment, toFlexItemSizeValues } from './utils'; import { FlexItemVariables } from './flexItemVariables'; const flexItemStyles: ComponentSlotStylesPrepared<FlexItemProp...
import secrets from '../utility-methods/env'; //const { Telegraf } = require('telegraf'); import { Telegraf } from 'telegraf'; const token = secrets.telegramToken; const bot = new Telegraf(token); export default bot;
import styled from 'styled-components'; import LogoSVG from '../../assets/icons/logo.svg'; const animation = { hide: `transform: translateY(-150px);`, show: `transform: translateY(0);`, }; type StyledHeaderProps = { hide: boolean; show: boolean; }; export const StyledHeader = styled.header<StyledHeaderProps...
import { useContext } from 'react'; import { ChallengesContext } from '../contexts/ChallengesContext'; import styles from '../styles/components/ExperienceBar.module.css'; export const ExperienceBar = () => { const { currentExperience, experienceToNextLevel } = useContext( ChallengesContext ); const percentT...
import {Component, Input} from '@angular/core'; // Using ngIF and ngFor @Component({ selector: 'lab7', templateUrl: './lab7.component.html', styleUrls: ['./lab7.component.css'], }) export class Lab7Component { private show: boolean = false; private things: Array<string> = ['A','B','C']; onToggle(){ this....
import { FormField, FormSelect } from 'argo-ui'; import * as React from 'react'; import {Form, FormApi, Text} from 'react-form'; import { CheckboxField } from '../../../shared/components'; import * as models from '../../../shared/models'; import { ProjectSyncWindowsParams } from '../../../shared/services/projects-se...
import { Injectable } from '@angular/core'; import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot} from '@angular/router'; import { UserLoginService } from '../user/user-login/user-login.service'; @Injectable() export class AuthGuard implements CanActivate { constructor( private router: Rout...
// Type definitions for yui 3.14.0 // Project: https://github.com/yui/yui3/blob/release-3.14.0/src/test/js // Definitions by: // Gia Bảo @ Sân Đình <https://github.com/giabao> declare module YUITest { interface YUITestStatic{ Assert: IAssert Case: TestCase Runner: TestRunner } inte...
import { attribute, classNames } from '@ember-decorators/component'; import { action } from '@ember-decorators/object'; import Component from '@ember/component'; import layout from '../templates/components/page-switch'; /** * The page switch component is an easy switch button to change the page of a page layout. * ...
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core'; import { FormControlState } from '../state'; import { FormViewAdapter } from './view-adapter'; export interface Navigator { userAgent: string; } export declare class NgrxDefaultViewAdapter implements FormViewAdapter, AfterViewInit { private r...
version https://git-lfs.github.com/spec/v1 oid sha256:da6e0e891b4374ca7559d5c102f422f18a3d277139bc907fac2e43e51b6a90f9 size 171644
export { defineComponent } from './defineComponent' export { defineAsyncComponent } from './defineAsyncComponent' export { SetupFunction, ComputedOptions, MethodOptions, ComponentPropsOptions, } from './componentOptions' export { ComponentInstance, ComponentPublicInstance, ComponentRenderProxy, } from './...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
const options = ["first_option", "second_option", "third_option", "fourth_option", "fifth_option", "sixth_option", "seventh_option", "eighth_option", "ninth_option", "tenth_option", "eleventh_option", "twelfth_option", "thirteenth_option", "fourteenth_option", "fifteenth_option", "sixteenth_option", "seventeenth_option...
import "styled-components"; import { DarkMode } from "use-dark-mode"; import { DARK } from "web/themes/dark"; import { LIGHT } from "web/themes/light"; type Theme = typeof DARK & typeof LIGHT & { darkMode: DarkMode; }; declare module "styled-components" { // eslint-disable-next-line @typescript-eslint/no-empty...
import { Component } from '@angular/core'; import { getStyle } from '@coreui/coreui/dist/js/coreui-utilities'; import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'; @Component({ templateUrl: 'widgets.component.html' }) export class WidgetsComponent { // lineChart1 public lineChart1Data:...
import React from 'react' import { ICharacter } from '../../../services/types' import CardTitle from '../../atoms/CardTitle' import ItemDescription from '../../atoms/ItemDescription' import { Container, Image } from './style' export interface IItemCard { testID?: string color?: string char: ICharacter } const I...
import {setupAngular} from './_setup'; import gql from 'graphql-tag'; import {ApolloLink} from 'apollo-link'; import {TestBed, inject, async} from '@angular/core/testing'; import {Observable} from 'rxjs/Observable'; import {InMemoryCache} from 'apollo-cache-inmemory'; import {Apollo, ApolloBase} from '../src/Apollo'...
/** * Copyright (c) 2020-present, Goldman Sachs * * 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 l...
// Type definitions for karma-webpack 2.0 // Project: http://github.com/webpack/karma-webpack // Definitions by: Matt Traynham <https://github.com/mtraynham> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import 'karma'; import * as Webpack from 'webpack'; import { Report...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit, ViewChild } from '@angular/core'; import { UMLModel } from '@ls1intum/apollon'; import * as moment from 'moment'; import { ModelingSubmission } from 'app/entities/modeling-submission.model'; import { ModelingExercise } from 'app/entities/mod...
export const widgetSettings = { widgetUrls: [ 'https://altinncdn.no/altinn-apps/widgets/message.json', ], };
declare module 'electron-is' { interface IsStatic { renderer(): boolean; main(): boolean; osx(): boolean; macOS(): boolean; windows(): boolean; linux(): boolean; x86(): boolean; x64(): boolean; production(): boolean; dev(): boolean; sandbox(): boolean; mas(): boolean; ...
export const SUPPORT_LANGUAGES = { FI: 'fi', SV: 'sv', EN: 'en', };
import { identityMap } from "@sangonz193/utils/identityMap" import { ColumnsOptions } from "../_utils/ColumnsOptions" import { createTypedEntitySchema } from "../_utils/createTypedEntitySchema" import { RelationsOptions } from "../_utils/RelationsOptions" import { UserRoleColumns, UserRoleEntitySchema, UserRoleRelatio...
/* * The MIT License * * Copyright 2017 kuniaki. * * 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...
import { BlockDurationDto } from './BlockDurationDto'; import { EmbeddedTransactionBuilder } from './EmbeddedTransactionBuilder'; import { EntityTypeDto } from './EntityTypeDto'; import { KeyDto } from './KeyDto'; import { NamespaceIdDto } from './NamespaceIdDto'; import { NamespaceRegistrationTransactionBodyBuilder } ...
export interface InstitutionAddress { address1: string; address2?: string; city: string; country: string; postalZipCode: string; provinceState: string; } export interface InstitutionLocation extends InstitutionAddress { locationName: string; } export interface InstitutionLocationData { id?: number; na...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { TripModel } from './trip'; export class TripRequestModel { trip: TripModel; trip_types?: string[]; user_profile?: any; only_filters?: string[]; except_filters?: string[]; constructor(){ this.trip = new TripModel; this.trip_types = []; this.user_profile = {}; } }
declare module "p2/demos/js/WebGLRenderer";
// Type definitions for Node.js v0.11.13 // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/borisyankov/DefinitelyTyped> // Definitions: https://github.com/borisyankov/DefinitelyTyped /************************************************ ...
import { Inject, Injectable } from '@nestjs/common'; import KeycloakConnect from 'keycloak-connect'; import { KEYCLOAK_CONNECT_OPTIONS } from '../constants'; import { KeycloakConnectOptions } from '../interface/keycloak-connect-options.interface'; /** * Stores all keycloak instances when multi tenant option is define...
// tslint:disable:no-namespace // tslint:disable:max-classes-per-file // tslint:disable:object-literal-sort-keys declare var Json: any; export namespace Packager { export function join(...items: any[]): string | Uint8Array | Error { if (items instanceof Array && items.length === 1 && items[0] instanceof ...
import React from 'react'; import { withCenteredStory } from '../../utils/storybook/withCenteredStory'; import { UseState } from '../../utils/storybook/UseState'; import { TabsBar } from './TabsBar'; import { Tab } from './Tab'; import { TabContent } from './TabContent'; export default { title: 'Layout/Tabs', deco...
import {PromiseWrapper, EventEmitter} from '../../src/facade/async'; import {StringMapWrapper} from '../../src/facade/collection'; import {isBlank, isPresent} from '../../src/facade/lang'; import { Directive, Attribute, DynamicComponentLoader, ComponentRef, ViewContainerRef, provide, ReflectiveInjector, ...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ExperimentCreationComponent } from './experiment-creation.component'; describe('ExperimentCreationComponent', () => { let component: ExperimentCreationComponent; let fixture: ComponentFixture<ExperimentCreationComponent>; ...
import { RefObject, useEffect, useRef } from 'react' const on = <T extends Window | Document | HTMLElement | EventTarget>( obj: T | null, ...args: Parameters<T['addEventListener']> | [string, Function | null, ...any] ): void => { if (obj && obj.addEventListener) { obj.addEventListener(...(args as Parameters<...
import { assert } from 'chai' import { validate, PaymentFlags, ValidationError } from 'xrpl-local' import { validatePayment } from 'xrpl-local/models/transactions/payment' /** * PaymentTransaction Verification Testing. * * Providing runtime verification testing for each specific transaction type. */ describe('Paym...
<TS language="sr@latin" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klikni desnim tasterom za uređivanje adrese ili oznake</translation> </message> <message> <source>Create a new address</sourc...
import * as fs from 'fs'; import { downloadFile, downloadAndExtract } from '../download'; import { runCensusTractDataQuery } from '../census'; import { geoJsonFromFile, parseGeoJsonFromShapeFile } from '../loaders'; import { findMaxHeatIndexes, mergeHeatIndexData } from './heat-index'; import addDemographics from './a...
import { api } from "services/api" type TResponse = { process_id: string; workflow: { id: string; name: string; version: number } } export async function createProcessByName(name: string): Promise<TResponse> { try { const { data } = await api.post<TResponse>(`workflows/name/${name}/start`); return data ...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { MainpageComponent } from './mainpage.component'; describe('MainpageComponent', () => { let component: MainpageComponent; let fixture: ComponentFixture<MainpageComponent>; beforeEach(async () => { await TestBed.configureTestingModul...
export const COREMEDIA_RICHTEXT_PLUGIN_NAME = "CoreMediaRichText"; export const COREMEDIA_RICHTEXT_NAMESPACE_URI = "http://www.coremedia.com/2003/richtext-1.0"; export const XLINK_NAMESPACE_PREFIX = "xlink"; export const XML_NAMESPACE_PREFIX = "xml"; export const XML_NAMESPACE_URI = "http://www.w3.org/XML/1998/namespac...
export * from './formatEntities'; export * from './interfaces';
// Copyright 2017-2020 @polkadot/react-hooks authors & contributors // SPDX-License-Identifier: Apache-2.0 import { useEffect, useState } from 'react'; import keyring from '@polkadot/ui-keyring'; import { useIsMountedRef } from './useIsMountedRef'; interface UseContracts { allContracts: string[]; hasContracts: ...
/* VIEW COMPONENT: HOME ========================================================================== */ const ViewHome = () => { return <>{"Home"}</>; }; export default ViewHome;
import * as React from 'react'; import { HashRouter as Router, Route, Switch } from 'react-router-dom'; import * as routes from '../services/routes'; import { Menu } from './menu'; import * as pages from '../pages'; import { ErrorBoundary } from './ErrorPage'; import { setCurrentVersion, useMetadata } from '../service...
import { TestBed, inject } from '@angular/core/testing'; import { ElectronRemoteService } from './electron-remote.service'; describe('ElectronRemoteService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ElectronRemoteService] }); }); it('should be created', inject([Elec...
import { FormWithRedirect, FormWithRedirectProps, MutationMode } from '@mochilabs/ra-core'; import PropTypes from 'prop-types'; import * as React from 'react'; import { FC, HtmlHTMLAttributes, ReactElement, ReactNode } from 'react'; import { SimpleFormView } from './SimpleFormView'; /** * Form with a one column layou...
import { defaultAPIMocks, MOCK_TEAM_ID, mockAPI } from 'lib/api.mock' import { expectLogic, partial } from 'kea-test-utils' import { initKeaTests } from '~/test/init' import { insightLogic } from './insightLogic' import { AvailableFeature, InsightType, ItemMode, PropertyOperator } from '~/types' import { eventUsageLogi...