text
stringlengths
10
953k
import { MongoMemoryServer } from 'mongodb-memory-server'; import mongoose from 'mongoose'; let mongoServer: MongoMemoryServer; const connect = async () => { mongoServer = await MongoMemoryServer.create(); const uri = mongoServer.getUri(); const mongooseOpts = { minPoolSize: 10, }; await m...
export const request = { "headers": { "Content-Type": "application/json", "Authorization": "Bearer bearer-token" }, "body": { "type": "rebuild", "image": "new-image", }, }; export const response = { "body": { "action": { "id": 72531856, "status": "completed", "t...
/* * Copyright 2020 The Kubernetes Authors * * 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 agr...
import { Progress, Tag } from 'antd'; import ProList from '@ant-design/pro-list'; const data = [ '新人比例较多', '关键机械缺乏保养', '材料不足', '安全员人数不够', '日常疫情管理宽松', '技术方案存在不确定因素', '雨季来临', '不具备作业界面', ].map((item) => ({ title: item, subTitle: <Tag color="#5BD8A6">分部工程xxx</Tag>, actions: [<a>刷新</a>], avatar: 'ht...
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 ...
import * as ts from "ts-mockito"; import { Instruction } from "../talon/common/Instruction"; import { Method } from "../talon/common/Method"; import { Type } from "../talon/common/Type"; import { IPerformanceRuler } from "../talon/IPerformanceRuler"; import { ITimeOutput } from "../talon/ITimeOutput"; import { Any } fr...
import * as React from 'react'; import { Map, GeoJSONSource, GeoJSONSourceRaw, Layer, AnyLayer } from 'mapbox-gl'; import { TilesJson } from './util/types'; import { withMap } from './context'; export interface Props { id: string; geoJsonSource?: GeoJSONSourceRaw; tileJsonSource?: TilesJson; map: Map...
import { b, x, p } from 'code-red'; import Component from '../Component'; import Renderer from './Renderer'; import { CompileOptions, CssResult } from '../../interfaces'; import { walk } from 'estree-walker'; import { extract_names, Scope } from 'periscopic'; import { invalidate } from './invalidate'; import Block from...
import { IScreen } from "../spa"; import { MainApp } from "../MainApp"; import { Setting } from "../SettingsService"; import { ensureUrlProtocol, checkOrigin, getOrigin } from "../Util"; export class CheckinPage implements IScreen { static typeId = "checkin"; private webview: HTMLWebviewElement; private...
import Document, { Html, Head, Main, NextScript } from 'next/document' export default class MyDocument extends Document { render() { return ( <Html lang="en"> <Head /> <body> <Main /> <NextScript /> </body> </Html> ) } }
import styled from 'styled-components' export const WaitingContainer = styled.div` display: flex; flex: 1; align-items: center; justify-content: center; width: 100%; margin-bottom: ${({ theme }) => theme.margins.medium}; ` export const Description = styled.h1` font-family: ${({ theme }) => theme.fonts....
import { Request, Response } from 'express' import { getRepository } from 'typeorm' import User from '../database/models/User' class UserController { async store(req: Request, res: Response) { try { const userRepository = getRepository(User) const { email, password } = req.body const isRegist...
import { browser, logging } from 'protractor'; import { AppPage } from './app.po'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', async () => { await page.navigateTo(); expect(await page.getTitleText()...
declare var window: Window & { devToolsExtension: any, __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: any }; import { createStore, compose, applyMiddleware } from 'redux' import createSagaMiddleware from 'redux-saga' import { rootReducer, RootState } from './reducer' import { rootSaga } from './saga' import { RouteActions } f...
/** * @module js-hierarchy */ /** */ import {Walker} from './Walker'; import {ActionFunction} from '../ActionFunction'; import {Node} from '../Node'; import * as loglevel from 'loglevel'; import Bluebird = require('bluebird'); /** * A walker, that runs all parents children from the current * child to the left. *...
import { ReaderState, ReaderStateParser, Xml2Json, XmlAttributes } from "./xml2json"; import { withPojoLambda } from "./xml2Json_pojo_tools"; export declare const json_parser: ReaderStateParser; export declare function startPojo(pThis: ReaderState, elementName: string, attrs: XmlAttributes, withPojo: withPojoLambda): v...
import { Injectable } from '@angular/core'; import { Action } from '@ngrx/store'; import { BehaviorSubject } from 'rxjs'; import { DaffStateError } from '@daffodil/core/state'; import { DaffPaypalTokenResponse } from '@daffodil/paypal'; import { DaffPaypalFacadeInterface } from '@daffodil/paypal/state'; /** * @inher...
/** This is an autogenerated file, please do not change this file directly. */ declare namespace LegendModuleScssModule { export interface ILegendModuleScss { end: string; fadeIn: string; legend: string; legendContainer: string; legendTicks: string; middle: string; ...
/* GENERATED FILE */ import * as React from 'react'; import Svg, { Rect, Path } from 'react-native-svg'; import { IconProps } from '../lib'; function Cloud(props: IconProps) { return ( <Svg id="Raw" viewBox="0 0 256 256" width={props.size} height={props.size} {...props} > ...
import { normalizeBN } from '@aave/math-utils'; import { governanceConfig } from 'src/ui-config/governanceConfig'; import { governanceContract } from './governanceProvider'; export type VoteType = { proposalId: number; voter: string; support: true; votingPower: number; transactionHash: string; timestamp: n...
import { Blot, Parent, Leaf } from './blot'; import LinkedList from '../../collection/linked-list'; import ShadowBlot from './shadow'; import * as Registry from '../../registry'; class ContainerBlot extends ShadowBlot implements Parent { static defaultChild: string; static allowedChildren: any[]; children: Link...
import { NgModule } from '@angular/core'; import { CommonModule, } from '@angular/common'; import { BrowserModule } from '@angular/platform-browser'; import { Routes, RouterModule } from '@angular/router'; import { AdminLayoutComponent } from './components/layout/admin-layout/admin-layout.component'; const routes: R...
import { getCustomRepository } from "typeorm" import { TagsRepositories } from "../repositories/TagRepositories" import { classToPlain } from "class-transformer"; class ListTagsService { async execute() { const tagsRepositories = getCustomRepository(TagsRepositories); const tags = await tagsRepositories.find...
import { Observable } from "@microsoft/fast-element"; import { expect } from "chai"; import { fixture } from "../fixture"; import { DesignSystemProvider, designSystemProperty, defineDesignSystemProvider, DesignSystemProviderTemplate as template, } from "./index"; @defineDesignSystemProvider({ name:...
import { Permissions, Client, CreateRoleOptions, GuildMember, Intents, MessageActionRow, MessageButton, MessageEmbed } from 'discord.js'; import config from 'config'; import { MessageButtonStyles } from 'discord.js/typings/enums'; const delay = (ms: number) => new Promise(res => setTimeout(res, ms)); interface Disco...
import { newSpecPage } from '@stencil/core/testing'; import fetchMock from 'fetch-mock'; import { ManifoldDataDeprovisionButton } from './manifold-data-deprovision-button'; import { createGraphqlFetch, GraphqlError } from '../../utils/graphqlFetch'; import resource from '../../spec/mock/elegant-cms/resource'; interfa...
/** For types only */ import * as Notion from 'notionapi-agent'; import * as Nast from '../nast'; declare function transformBookmark(node: Notion.Block): Promise<Nast.WebBookmark>; export default transformBookmark; //# sourceMappingURL=transformBookmark.d.ts.map
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js const u = undefined; func...
/* * 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. */ export const BULK_ACTIONS_BTN = '[data-test-subj="bulkActions"] span'; expor...
import { ReactNode } from "react"; interface Props { children: ReactNode; } export const ModalTitle = ({ children }: Props) => { return ( <h3 className="text-lg font-medium leading-6 text-center text-gray-700 uppercase"> {children} </h3> ); };
/** Declaration file generated by dts-gen */ export function bodyDateParser(): any; export function bodyDateParser(strict: boolean): any; export function dateParser(): any; export function dateParser(strict: boolean): any; export function parse(object: any): void; export function parse(object: any, strict: boolean):...
import { inject, injectable } from "tsyringe"; import { IUsersRepository } from "@modules/accounts/repositories/IUsersRepository"; import { IStorageProvider } from "@shared/container/providers/StorageProvider/IStorageProvider"; interface IRequest { user_id: string; avatar_file: string; } @injectable() class Upda...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { DecoratorFunction, StoryFn } from '@storybook/addons'; import { StoryFnAngularReturnType } from './types'; export default function decorateStory(mainStoryFn: StoryFn<StoryFnAngularReturnType>, decorators: DecoratorFunction<StoryFnAngularReturnType>[]): StoryFn<StoryFnAngularReturnType>;
import AudioPlayer from './AudioPlayer/AudioPlayer'; import Button from './Button/Button' import Lemur from './Lemur/Lemur' import LinkButton from './LinkButton/LinkButton' import TextDisplay from './TextDisplay/TextDisplay' import Option from './Option/Option' import ImageOption from './Option/ImageOption' import Pira...
/* * 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 { EuiIcon } from '@elastic/eui'; import * as React from 'react'; impor...
import { ClarityAbiFunction } from "@stacks/transactions"; import { Noop } from "../proxy/types"; export function unchanged(codeBody: string) { return codeBody; } export interface ClarinetConfigAccount { mnemonic: string; balance: bigint; } export interface ClarinetDevConfig { network: { name: string; ...
import { Message } from '@markuplint/i18n'; import { Result, RuleConfigValue, RuleInfo, Severity } from '@markuplint/ml-config'; import Document from '../ml-dom/document'; export interface MLRuleOptions<T extends RuleConfigValue, O = null> { name: string; defaultLevel?: Severity; defaultValue: T; defaultOptions: O...
// generated by genversion export const version = '4.3.7';
// TypeScript Version: 2.1 import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; export default class MdOpenInBrowser extends React.Component<IconBaseProps, any> { }
import React from "react"; import { TouchableOpacity, TouchableOpacityProps, View, Text } from 'react-native'; import { Feather } from '@expo/vector-icons'; import { styles } from "./styles"; import { GuildIcon } from "../GuildIcon"; import { theme } from "../../global/styles/theme"; export type GuildProps = { id: ...
export * from "./dashboard.component";
/*--------------------------------------------------------------------------------------------- * Copyright (c) Gitpod. All rights reserved. *--------------------------------------------------------------------------------------------*/ import { isStandalone } from 'vs/base/browser/browser'; import { streamToBuffer...
interface GlobalizeCulture { name: string; calendar: GlobalizeCalendar; calendars: CalendarDictionary; numberFormat: GlobalizeNumberFormat; } interface GlobalizeCalendar { patterns: any; firstDay: number; } interface CalendarDictionary { [key: string]: GlobalizeCalendar; } interface Globaliz...
/* * 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...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as ts from 'typescript'; export declare function removeDecorators(shouldTransform: (fileName: string) => boo...
import { fireEvent, render, screen } from "@testing-library/react"; import { signIn, useSession } from "next-auth/client"; import { useRouter } from 'next/router'; import { SubscribeButton } from "../../components/SubscribeButton"; jest.mock('next-auth/client'); jest.mock('next/router'); describe('SubscribeButton co...
export let cognitoConfig = { userPool: { UserPoolId: 'us-east-1_k5VRsNR7d', ClientId: '33ngfdfta1ae8f02neoei3kpc', region: 'us-east-1' }, identityPoolId: 'arn:aws:cognito-idp:us-east-1:171450913473:userpool/us-east-1_k5VRsNR7d' };
"use strict"; import { Component, Input, Output, EventEmitter, OnInit, ViewChild, forwardRef } from "@angular/core"; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms"; import { CtrCompleter, CompleterData, CompleterItem } from "../src/ng2-completer"; import { MAX_CHARS, MIN_SEARCH_LENGTH, PAUSE,...
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Lesson } from './lesson.entity'; import { v4 as uuid } from 'uuid'; import { CreateLessonInput } from './lesson.input'; @Injectable() export class LessonService { constructo...
import * as React from "react"; import { Text } from "@blueprintjs/core"; import styled from "styled-components"; import { ComponentProps } from "components/designSystems/appsmith/BaseComponent"; import { TextAlign } from "widgets/TextWidget"; import Interweave from "interweave"; import { UrlMatcher, EmailMatcher } fro...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.13.9 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do no...
export interface ProcessResponseResDto { processSummary: string[]; errorsSummary: string[]; }
import { JobHelpers } from "graphile-worker"; import { getBroadcastWeekRange, formatBroadcastDateRange, StringInterval, parseDateFromSQL, } from "@viacomcbs/broadcast-calendar"; import { isMonday } from "../dateHelpers"; import { InventoryItemStatus } from "../../graphql/__generated__/types"; import { getAllF...
import { Shape } from './types' export const eyes: Shape[] = [ (_color) => ` <circle cx="169" cy="250" r="20.4" fill="#15212a"/> <circle cx="175.4" cy="255.8" r="9.6" fill="#fff"/> <circle cx="159.4" cy="241" r="4.2" fill="#fff"/> <circle cx="331" cy="250" r="20.4" fill="#15212a"/> <circle cx="32...
/** * Defines the external Chunk File structure. * Deltas are intentionally objects because at observing time, we don't know if delta are valid or not yet. */ export default interface ChunkFileModel { deltas: object[]; }
/** * Data Catalog API * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata. For more information, see [Data Catalog](https://docs.oracle.com/iaas/data-catalog/home.htm). * OpenAPI spec version: 20190325 * * * NOTE: This c...
import { IconProps } from "../lib"; declare const ArrowClockwise: (props: IconProps, ref: any) => import("solid-js").JSX.Element; export default ArrowClockwise;
export const existingAddress1 = "0x1111111111111111111111111111111111111111"; export const existingAddress2 = "0x2222222222222222222222222222222222222222"; export const nonexistentAddress = "0x9999999999999999999999999999999999999999";
export enum Effect { Glow = 'glow', Flicker = 'flicker', SubtleFlicker = 'subtle-flicker', Pulsate = 'pulsate' }
// Copyright 2017-2020 @polkadot/api-derive 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 { AccountId, Balance, BlockNumber, Hash, PropIndex } from '@polkadot/types/interfaces'; import { ITuple } from '@pol...
/** * 日期时间实用工具 */ export default class DateTimeUtil { /** * 私有化类默认构造器 */ private constructor() { } /** * 获取日期时间字符串, 例如: "2020年10月10日" * * @param nMS 毫秒数 * @return 日期时间字符串 */ static getYYYYMMdd(nMS: number): string { let oDate = new Date(nMS); re...
// Returns all todos import fs = require('fs'); import {TodoReader, Todo} from '../TodoReader'; interface TodoList { msg: String, children?: TodoList[], parent?: TodoList, completed?: boolean } function* todoListGenerator(list: TodoList){ yield { msg: list.msg, parent: list.parent,...
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { RouterModule } from '@angular/router'; import { JhiLanguageService } from 'ng-jhipster'; import { JhiLanguageHelper } from 'app/core'; import { UploadSharedModule } from 'app/shared'; /* jhipster-needle-add-admin-module-import - JHipster will ad...
import { Directive, ElementRef, Input } from '@angular/core'; import { ApprovalFlowNewNodePlacement } from '../approval-flow-add-node/approval-flow-add-node.component'; @Directive({ // tslint:disable-next-line:directive-selector selector: '[fdp-approval-flow-drop-zone]', exportAs: 'fdp-approval-flow-drop-...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Injectable } from '@angular/core'; @Injectable() export class Service5Service { constructor() { } }
/* * Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved. */ // This is the definitions of the predefined text editor used by TextEditingTool // when you set or bind TextBlock.editable to true. // You do not need to load this file in order to use in-place text editing. import * as go from...
import React from 'react'; import { SvgIcon, SvgIconProps } from '@kukui/ui'; const SvgComponent = props => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" {...props}> <path d="M160 32v32h128V32c0-17.67 14.3-32 32-32s32 14.33 32 32v32h48c26.5 0 48 21.49 48 48v48H0v-48c0-26.51 21.49-48 48-48h48V32...
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm'; import UserPaper from './UserPaper'; import PapersPermissions from './PapersPermissions'; @Entity('papers', { schema: 'flavors' }) export default class Paper { @PrimaryGeneratedColumn({ type: 'int', name: 'id' }) id: number; @Column('...
export const SortableColumnMetadataKey = Symbol('sortable_column_name'); export function Sortable() { return (target: Object, propertyKey: string | symbol): void => { Reflect.defineMetadata( SortableColumnMetadataKey, true, target, propertyKey, ); }; }
'use strict'; import 'mocha'; import * as chai from 'chai'; import * as request from 'request'; import {Container} from 'typescript-ioc'; import {Configuration} from '../../src/configuration'; const expect = chai.expect; // tslint:disable:no-unused-expression // tslint:disable:no-console let gatewayRequest: any; le...
export const namespace = 'login' export const LOGIN_REQUEST = 'login:request' export const LOGIN_SUCCESS = 'login:success' export const LOGIN_FAILURE = 'login:failure' export const LOGOUT_SUCCESS = 'logout:success'
import { useState } from 'react' import styled from 'styled-components' import BigNumber from 'bignumber.js' import { Text, Flex, Box, BunnyPlaceholderIcon, Skeleton, Button, useMatchBreakpoints, useModal, SubMenu, SubMenuItem, EllipsisIcon, LinkExternal, } from '@pancakeswap/uikit' import { get...
import * as angular from "angular"; import {moduleName} from "../../module-name"; import {DomainType} from "../../../services/DomainTypesService.d"; import {DomainTypeDetailsService} from "../../services/details.service"; import {AbstractSectionComponent} from "../abstract-section.component"; /** * Properties sectio...
import assert from 'assert'; import React, { KeyboardEvent, useContext, useRef, useEffect, ReactNode, MouseEvent, } from 'react'; import { Box, BoxProps } from '../Box/Box'; import { Text } from '../Text/Text'; import { touchableText } from '../../hooks/typography'; import { normalizeKey } from '../private/...
console.log("hello world"); const coreCount = document.getElementById("cores"); // @ts-expect-error coreCount?.innerText = `Core count here: ${api.threads}`; // @ts-expect-error console.log(api.threads);
export interface WpTaxonomy { capabilities?: any; description?: string; hierarchical?: boolean; labels?: any; name?: string; slug?: string; show_cloud?: boolean; types?: any[]; rest_base?: string; }
import React from "react"; import { Feather } from '@expo/vector-icons'; import { TouchableOpacity, TouchableOpacityProps, View, Text } from 'react-native'; import { GuildIcon } from "../GuildIcon"; import { styles } from './styles'; import { theme } from "../../global/styles/theme"; export type GuildProps = { i...
import { Body, Button, Container, Content, Footer, Header, Icon, Input, Text, Title, View, } from 'native-base'; import React, { Component } from 'react'; import { ActivityIndicator, Platform } from 'react-native'; export interface ILoginComponent { username?: string; password?: string; load...
import React from 'react'; // eslint-disable-next-line export function SearchIcon(props: React.SVGProps<SVGSVGElement>) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width={512} height={512} {...props} > <path d="m24 22.586-6.262-6.262a10.01...
export declare const cilHotel: string[];
import { MigrationInterface, QueryRunner, TableColumn, TableForeignKey, } from 'typeorm'; export default class AddUserIdToAppointments1602605069057 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.addColumn( 'appointments', new Tab...
/* * 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 { TypeOf } from '@kbn/config-schema'; import { RequestHandler } from 's...
export * from './applications.service'; import { ApplicationsService } from './applications.service'; export * from './applications.serviceInterface' export * from './operations.service'; import { OperationsService } from './operations.service'; export * from './operations.serviceInterface' export * from './services.se...
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { HttpEventType, HttpErrorResponse } from '@angular/common/http'; import { of } from 'rxjs'; import { catchError, map } from 'rxjs/operators'; import {FileUploadService } from '../../services/file-upload.service'; import {MatCardModu...
// Copyright 2017-2021 @polkadot/api authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { IsEvent } from '@5ire/types/metadata/decorate/types'; import type { AnyTuple } from '@5ire/types/types'; import type { ApiTypes } from './base'; // In events we don't need the ApiType, however add it for c...
import { ReadStream, WriteStream } from 'fs'; type IReaderOptions = | { schema: Record<string, any>; map?: never; } | { map: Record<string, any>; schema?: never; }; interface IReaderErrors { row: string | number; column: string | number; error: string; value: any; } interfa...
export * from './unfinished-validator.directive'; export * from './unfinished-validator.module';
import * as React from "react"; const ClrEnvelopeAlerted: React.SFC = () => ( <svg version="1.1" viewBox="0 0 36 36" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" focusable="false" role="img" xmlnsXlink="http://www.w3.org/1999/xlink" > <path d="M33.68,15.26H...
import type { Subscription, Subscriber, Node, NodeUnit, kind, StateRef, Unit, Config, } from './index.h' import type {CompositeName} from './naming' export interface Event<E> extends Unit { (payload: E): E id: string kind: kind getType(): string create(payload: E, type: string, args: any[]): ...
import { MouseEvent } from "react"; export interface SecretIdentityType { id?: string; avatar: string; name: string; color?: string; accessory?: string; } export interface UserIdentityType { avatar: string; name: string; } export interface AccessoryType { id?: string; name: string; accessory: str...
import $ from 'jquery'; import * as db from './indexdb'; import * as log from '../shared/log'; import * as nearest from './nearest'; import * as list from './list'; import * as config from '../shared/config'; let mapContainer; let L; async function find(images, lat, lon, share) { const t0 = performance.now(); // ...
import _ from 'lodash'; import { getSingle } from 'utils'; import { Cap, Polyhedron } from 'math/polyhedra'; import { isInverse } from 'math/geom'; type Relation = {}; export const hasMultiple = (relations: Relation[], property: string) => _(relations) .map(property) .uniq() .compact() .value().leng...
import os from 'os' import fs from 'fs' import path from 'path' import * as net from 'net' import * as http from 'http' import * as https from 'https' import connect from 'connect' import corsMiddleware from 'cors' import chalk from 'chalk' import { AddressInfo } from 'net' import chokidar from 'chokidar' import { reso...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MealEditDetailsDialogComponent } from './meal-edit-details-dialog.component'; describe('MealEditDetailsDialogComponent', () => { let component: MealEditDetailsDialogComponent; let fixture: ComponentFixture<MealEditDetailsDialogComp...
import { IVersion } from './interfaces'; import { UpdateType } from './UpdateType'; import { UpdateTypes } from './UpdatesTypes'; const alphanumericValuesSeparatedByDots = /\w+(\.\w+)*/i; const defaultIndexValue = 0; /** * A simple utility class wrapping up some methods to manage your project's version from within t...
/* * SPDX-License-Identifier: Apache-2.0 */ import { Context } from 'fabric-contract-api'; import { ChaincodeStub, ClientIdentity } from 'fabric-shim'; import { SharedDataContract } from '.'; import * as chai from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as sinon from 'sinon'; import * a...
/* Remember to copy any necessary tokens and fields from environment.ts to this production version. */ export const environment = { production: true, contentful_config: { space: 'YOUR CONTENTFUL SPACE ID HERE', accessToken: 'YOUR CONTENTFUL ACCESS TOKEN HERE', contentTypeIds: { blogPost: 'blog-p...
declare module '@sentry/ember' { import {BrowserOptions} from '@sentry/browser'; export function InitSentryForEmber(_runtimeConfig: BrowserOptions): void; export * from '@sentry/browser'; }
import { DB } from "../db"; import { Model } from "./model"; export class DriverBalance extends Model { constructor(dbo: DB) { super(dbo, 'driver_balances'); } }