text stringlengths 10 953k |
|---|
import { FormDataConvertible, Method } from './types';
export declare function hrefToUrl(href: string | URL): URL;
export declare function mergeDataIntoQueryString(method: Method, href: URL | string, data: Record<string, FormDataConvertible>): [string, Record<string, FormDataConvertible>];
export declare function urlWi... |
const getAllValidNumbers = (preamble: number[]): number[] => {
const validNums: number[] = [];
for (const x of preamble) {
for (const y of preamble) {
if (x !== y) {
validNums.push(x + y);
}
}
}
return validNums;
};
const findContiguousSet = (data: number[], targetSum: number): numb... |
/**
* @name responsive-state
* @description Core responsive state provider in ngx-responsive
*
* @license MIT
*/
import { Injectable, PLATFORM_ID, Inject } from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
import { Observable, BehaviorSubject, combineLatest } from 'rxjs';
import { fromEven... |
/// <reference path="../../defs/tsd.d.ts"/>
/// <reference path="./interfaces.d.ts"/>
import path = require('path');
import fs = require('fs');
import _ = require('lodash');
import utils = require('./utils');
import cache = require('./cacheUtils');
var Promise: typeof Promise = require('es6-promise').Promise;
export ... |
import type { CardTypeCategory } from "./CardTypeCategory";
import type { DeckPart } from "../../deck/DeckPart";
/**
* Card type, e.g. "Spell" or "Xyz Monster"
*/
interface CardType {
readonly name: string;
/**
* The general kind of type, e.g. "Spell" or "Monster"
*/
readonly category: CardTyp... |
import path from 'path'
import electronLog, { ElectronLog } from 'electron-log'
import { formatDate } from '../utils'
import { LOGS_PATH } from '../paths'
/**
* 创建一个 electron-log 记录器
* 参考:https://github.com/megahertz/electron-log
*/
export class SystemLogger {
public logger: ElectronLog
public logId: string
p... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { isScalar, isSeq, Scalar, YAMLSeq } from 'yaml';
import { ErrorKind } from '../interfaces/error-kind';
import { ValidationError } from '../interfaces/validation-error';
import { Primitive, Yaml, YAMLScalar, YAMLSequence } from './yaml-t... |
export * from './decorators';
export * from './exceptions';
export * from './guards';
export * from './interceptors';
export * from './constants';
export * from './common.module';
export * from './services';
export * from './validation'; |
import { Test, TestingModule } from '@nestjs/testing';
import { PrismaModule } from '../prisma/prisma.module';
import { PrismaService } from '../prisma/prisma.service';
import { ProjectsService } from './projects.service';
describe('ProjectsService', () => {
let service: ProjectsService;
let prismaService: PrismaS... |
export type KeyResultIconDrawing =
| 'Activity'
| 'Bookmark'
| 'Calendar'
| 'TrashBin'
| 'Discovery'
| 'Document'
| 'EditSquare'
| 'Folder'
| 'Game'
| 'Graph'
| 'Heart'
| 'Location'
| 'Message'
| 'Scan'
| 'Search'
| 'TicketStar'
| 'TimesSquare'
| 'Video'
| 'Voice'
| 'Wallet' |
import { Component, OnInit } from '@angular/core';
import { Hero } from './hero';
import { HeroService } from './hero.service';
@Component({
selector : 'my-dashboard',
moduleId : module.id,
templateUrl : 'dashboard.component.html',
styleUrls : ['dashboard.component.css']
})
export class DashboardCompon... |
import * as p2017091401 from '../../spec/fixture/project/2017091401.delir.json'
import { deserializeProject } from '../Exporter'
import ProjectMigrator from './ProjectMigrator'
describe('ProjectMigrator', () => {
it('Migrate to 2019052601 from 2017091401', () => {
const beforeMigration = deserializeProject(p2017... |
interface IServerBlockDetails {
hasSsl: boolean
forceSsl: boolean
publicDomain: string
localDomain: string
nginxConfigTemplate: string
containerHttpPort: number
crtPath?: string
keyPath?: string
customErrorPagesDirectory: string
staticWebRoot: string
} |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angul... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { TabStopsFailedCounter } from 'DetailsView/tab-stops-failed-counter';
import { shallow } from 'enzyme';
import * as React from 'react';
import {
FastPassReportSummary,
FastPassReportSummaryDeps,
FastPassR... |
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
@Component({
selector: 'sb-forgot-password',
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './forgot-password.component.html',
styleUrls: ['forgot-password.component.scss'],
})
export class ForgotPasswordCompone... |
import type { GraphLink } from 'src/model/link'
import type { GraphNode } from 'src/model/node'
/**
* Type token for nodes.
*/
export type NodeTypeToken = string
/**
* Graph containing nodes and links.
*/
export interface Graph<
T extends NodeTypeToken = NodeTypeToken,
Node extends GraphNode<T> = GraphNode<T>... |
import operationAPIShim, { APIs } from './operation-api-shim';
import legacySliceEventsShim from './legacy-slice-events-shim';
import DataEntity, { DataInput } from '../data-entity';
import { SchemaConstructor } from '../interfaces';
import {
LegacyProcessor,
Logger,
SliceRequest,
ProcessorFn,
Worke... |
// Libraries
import React, {PureComponent} from 'react'
import {connect} from 'react-redux'
// Components
import {
Dropdown,
DropdownMenuTheme,
ComponentStatus,
} from '@influxdata/clockface'
// Actions
import {selectVariableValue} from 'src/dashboards/actions/thunks'
// Utils
import {getVariableValuesForDropd... |
<TS language="lv_LV" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Izveidot jaunu adresi</translation>
</message>
<message>
<source>&New</source>
<translation>&Jauns</translation>
</message>
... |
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {ClarityModule} from '@clr/angular';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {SecurityServiceMock} from '../../tests/api/security.service.mock';
... |
import { Router, Route, Set } from '@redwoodjs/router'
import MainLayout from 'src/layouts/MainLayout/MainLayout'
const Routes = () => {
return (
<Router>
<Route path="/color-schemes/new" page={NewColorSchemePage} name="newColorScheme" />
<Route path="/color-schemes/{id}/edit" page={EditColorSchemePa... |
import { Injectable } from '@angular/core';
import { FilterCounters } from './filter-counters.interface';
import { FilterType } from '../filter-type';
import { SliderFilterMetadata } from '../metadata/slider-filter-metadata';
@Injectable()
export class SliderFilterCounters extends FilterCounters {
type: FilterType = ... |
import { IIdpUser } from "../entities/User";
// Auth errors
export class AuthenticationStrategySetupError extends Error {
constructor(
public authenticationStrategy: string,
message: string,
public originalError: any
) {
super(message);
}
}
export class AuthenticationRequire... |
import React, { ReactNode, useEffect } from 'react';
import { StateContext, DispatchContext } from '~/react-integration/context';
import masterReducer, { initialState as defaultState } from '~/state/reducer';
import NetworkManager from '~/state/NetworkManager';
import SubscriptionManager from '~/state/SubscriptionManag... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.0">
<context>
<name>MouseGesturesSettingsDialog</name>
<message>
<location filename="../mousegesturessettingsdialog.ui" line="14"/>
<source>Mouse Gestures</source>
<translation>Pergerakan Mouse</translation>
</message... |
import {
containsNotAllowedFile,
getBlacklistedPatterns,
isAllowedFile,
} from "./blacklist_patterns";
/* eslint-disable @typescript-eslint/no-unused-vars */
import { OwnershipRules } from "../types";
/* eslint-enable @typescript-eslint/no-unused-vars */
import { getDefaultOwnershipRules } from "../config_parser/... |
import chalk from 'chalk'
import path from 'path'
import { PathLike } from 'fs'
import { writeFile, mkdir } from 'fs/promises'
import { Config } from '@iconsauce/config/src/interface/config'
const buildDictionary = async (config: Config, dictionary: Map<string, PathLike>, outputPath: PathLike): Promise<void> => {
co... |
import { TelegramJSONMain } from '../../main';
import { Components } from '../../component';
export namespace TsunamiInformation {
export interface Schema {
type: 'tsunami-information';
version: '1.0.0';
}
export interface TsunamiForecastKindLastKind extends Components.CodeName {
}
export interfac... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="cs">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<source>About Beancash</source>
<translation type="obsolete">O Beancashu</translation>
</message>
<message>
<sourc... |
/*!
* @license
* Copyright 2018 Alfresco Software, Ltd.
*
* 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 la... |
import React from "react"
import { Badge } from "../badge"
import type { BadgeProps } from "../badge"
const Trove = (props: BadgeProps) => <Badge name="Trove" {...props} backgroundColor="#2D004B" />
export default Trove |
// eslint-disable-next-line import/no-extraneous-dependencies
import type { Request, Response } from 'express';
import { parse } from 'url';
import type { TableListItem, TableListParams } from './data.d';
// mock tableListDataSource
const genList = (current: number, pageSize: number) => {
const tableListDataSource: ... |
/* eslint-disable */
/* 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";
import { ActivityDefinitionProperty, ActivityDescript... |
/**
* Api Documentation
* Api Documentation
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
... |
import {
chakra,
forwardRef,
omitThemingProps,
PropsOf,
SystemProps,
SystemStyleObject,
ThemingProps,
useMultiStyleConfig,
HTMLChakraProps,
} from "@chakra-ui/system"
import { callAll, cx, Omit, __DEV__, dataAttr } from "@chakra-ui/utils"
import * as React from "react"
import { useCheckboxGroupContext... |
import { Component, OnInit } from '@angular/core';
import { SharedService } from '../../layouts/shared-service';
@Component({
moduleId: module.id,
selector: 'page-not-found',
templateUrl: 'not-found.component.html'
})
export class PageNotFoundComponent implements OnInit {
pageTitle: string = 'Not found!';
c... |
import { all } from '../all';
import { lt } from '../../Logic/lt';
describe('all', () => {
it('should return true when call all', () => {
const result = all(lt(100), [1, 2, 3, 3, 56, -112, -32]);
expect(result).toBeTruthy();
});
it('should return false when call all', () => {
const result = all(lt(1... |
import tabs from './tabs';
import { fetchPost } from './utils';
import { IRecord } from '../typing/request';
import { IRecursive } from '../typing/common';
/**
* Send logs to the server, let the server log
* @param {string} name - Log name
* @param {object} [payload] - Log meta info
* @param {string} [level=error]... |
import devalue from 'next/dist/compiled/devalue'
import { webpack, sources } from 'next/dist/compiled/webpack/webpack'
import {
BUILD_MANIFEST,
MIDDLEWARE_BUILD_MANIFEST,
CLIENT_STATIC_FILES_PATH,
CLIENT_STATIC_FILES_RUNTIME_MAIN,
CLIENT_STATIC_FILES_RUNTIME_MAIN_ROOT,
CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_... |
import { TestBed, async } from '@angular/core/testing';
import { Title } from '@angular/platform-browser';
import { RouterTestingModule } from '@angular/router/testing';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/of';
import { AppComponent } from './app.component';
import { UiModule } fro... |
import React, { FunctionComponent } from 'react';
import styled from 'styled-components';
import * as discord from '../../../assets/images/icons/social/discord.svg';
import * as facebook from '../../../assets/images/icons/social/facebook.svg';
import * as github from '../../../assets/images/icons/social/github.svg';
im... |
import {
fajr,
dhuhr,
asr,
maghrib,
ishaa
} from '../../salah'
import {
getFajrDateTimeUtc,
getDhuhrDateTimeUtc,
getAsrDateTimeUtc,
getMaghribDateTimeUtc,
getIshaaDateTimeUtc
} from '../index'
import {
generateRandomDate,
randomGeoCoordinates,
iterativeTest,
randomLongitude
} from '../../tes... |
import * as React from 'react';
function SvgManTiedOutlined(props: React.SVGProps<SVGSVGElement>) {
return (
<svg width="1em" height="1em" viewBox="0 0 1024 1024" {...props}>
<path d="M424.32 681.28l-37.312 227.2 121.536 114.08 109.664-114.496-28.864-226.784H424.32zm82.112 262.4l-58.72-55.136 24.928-151.64... |
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
@Component({
selector: 'support-acknowledgement',
templateUrl: './support-acknowledgement.component.html',
styleUrls: ['./support-acknowledgement.component.scss']
})
export class ... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Looker Data Sciences, Inc.
*
* 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 rig... |
import React, { createRef, FC, useEffect } from 'react'
import styled from 'styled-components'
import { HamburgerProps } from './Hamburger.types'
const handleTopbarSize = (size: string) => {
switch (size) {
case 'small':
return '20px'
case 'large':
return '40px'
default:
return '30px'
... |
import * as React from 'react';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { Radio } from '../../Radio';
import { RadioGroupField } from '../RadioGroupField';
import { RadioGroupFieldProps } from '../../types/radioGroupField';
import { Component... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';
import { catchError } from 'rxjs/operators';
import { throwError, Observable } from 'rxjs';
import { User } from './models';
import { EndPointGetterService } from '../utilities/end-point-getter... |
import { ref } from 'vue';
import isObject from 'lodash/isObject';
import { TdColProps, TdRowProps } from './type';
import { calcSize } from '../utils/responsive';
import { useListener } from '../hooks/event';
export interface RowProviderType {
gutter: TdRowProps['gutter'];
}
/**
* rowSizeHook
* @returns
*/
expo... |
/*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the ""Software""), to deal
* in the Software without restric... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {UserComponent} from './user.component';
describe('UserComponent', () => {
let component: UserComponent;
let fixture: ComponentFixture<UserComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations:... |
import { Migrator, normalizeVersion, parseMigrationsOptions } from './migrate';
describe('Migration', () => {
describe('packageJson patch', () => {
it('should throw an error when the target package is not available', async () => {
const migrator = new Migrator({
versions: () => '1.0',
fetch... |
import { PersonaPresence } from '@fluentui/react';
import type {
IButtonProps,
ICalloutProps,
IContextualMenuProps,
IFontIconProps,
IIconProps,
ILabelProps,
IListProps,
IPersonaPresenceProps,
} from '@fluentui/react';
import type { ISlotProp } from '@fluentui/foundation-legacy';
// TODO: All contents o... |
import { TextDecoder } from "util";
import * as vscode from "vscode";
import { parsePHP } from "./parser";
import TestCase from "./testCase";
import TestClass from "./testClass";
export type phpTestData = TestFile | TestClass | TestCase;
export const testData = new WeakMap<vscode.TestItem, phpTestData>();
const textD... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="nl">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Bithereum</source>
<translation>Over Bithereum</tra... |
/* tslint:disable */
/* eslint-disable */
/**
* (tsType: MessageHistoryWithRelations, schemaOptions: { includeRelations: true })
*/
export interface MessageHistoryWithRelations {
alea: string;
codem: string;
createdAt?: string;
id?: number;
idAPI: number;
label: string;
ofnr?: string;
operation: stri... |
declare const version = "2.0.5";
export { version }; |
import { Module } from 'vuex';
import { StateInterface } from '../index';
import state, { ExampleStateInterface } from './state';
import actions from './actions';
import getters from './getters';
import mutations from './mutations';
const exampleModule: Module<ExampleStateInterface, StateInterface> = {
namespace... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-base-layout',
templateUrl: './base-layout.component.html',
styleUrls: ['./base-layout.component.css']
})
export class BaseLayoutComponent implements OnInit {
year: number = Date.now();
constructor() { }
ngOnInit(): void {
... |
// @ts-ignore
import { components } from '../../components.82895.json'
// @ts-ignore
import { presets } from '../../presets.82895.json'
export function findPresets<T = undefined>(componentName: string): T[] {
const found = components.find((item) => item.name === componentName)
const componentId = found?.id
if (c... |
<TS language="sn" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Gadzira Kero Itsva</translation>
</message>
<message>
<source>&New</source>
<translation>Itsva</translation>
</message>
<messag... |
import {Inject, Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {Observable} from 'rxjs';
import {User, UserWithoutId} from './user';
import {ApiUrl} from '../api-url';
import {ResourceService} from '../resource.service';
import {map, catchError, share, take} from 'rxjs/oper... |
import React from "react";
import ReactGA from "react-ga";
import {allSunk, Coord, Ship} from "./util";
import Board from "./Board";
import "./Game.css";
import BattleshipActor from "./BattleshipActor";
interface GameProps {
humanShips: Ship[];
botShips: Ship[];
humanShots: Coord[];
botShots: Coord[];
... |
declare module 'cometd-nodejs-client';
declare module 'cometd' {
namespace CometD {
interface ConfigurationOptions {
url: string;
logLevel?: string;
maxConnections?: number;
backoffIncrement?: number;
maxBackoff?: number;
reverseIncomi... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ChartTypes } from "../../ChartTypes";
import { Cohort } from "../../Cohort";
import { IGenericChartProps } from "../../IGenericChartProps";
import { ColumnCategories, JointDataset } from "../../JointDataset";
export function buildCust... |
/**
* Clase que representa un producto de la base de datos
*/
export class Producto {
id: number;
nombre: string;
codigo: string;
descripcion: string;
notas:string;
url: string;
activo:boolean;
//precios
precioCompra: number;
porcenGan: number;
precioVenta: number;
po... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { FormularioDinamicoComponent } from './formulario-dinamico/formulario-dinamico.component';
import { ElementoFormularioComponent } from './formulario-dinamico/elemento-f... |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
// (C) 2020 GoodData Corporation
export * from "./typings";
export { ConfirmDialog } from "./ConfirmDialog";
export { ConfirmDialogBase } from "./ConfirmDialogBase";
export { Dialog } from "./Dialog";
export { DialogBase } from "./DialogBase";
export { ExportDialog } from "./ExportDialog";
export { ExportDialogBase } f... |
import React from 'react';
import { Helmet } from 'react-helmet';
import { Redirect, RouteComponentProps } from 'react-router';
import { Base, Block, Heading, styled } from 'reakit';
import { assertNever } from '../../../utils';
import { findNonEmptySiblingSection, findSectionByLocation, getSectionContent, getSectionUR... |
<TS language="ko_KR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>주소 및 라벨을 수정하려면 마우스 오른쪽 버튼을 클릭해주세요.</translation>
</message>
<message>
<source>Create a new address</source>
<translation... |
/// <reference path="../../../../typings/_custom.d.ts" />
// Angular 2
import {Component, View, CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/angular2';
import {Autosuggest} from './autosuggest';
@Component({
selector: 'search-github'
})
@View({
directives: [ CORE_DIRECTIVES, FORM_DIRECTIVES, Autosuggest ],
... |
/*
* Copyright (c) 2018 the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License").
* See LICENSE file in the root directory of this source tree.
*/
import Dialog from '@material-ui/core/Dialog';
import DialogContent from '@material-ui/core/DialogContent/DialogContent';
import... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LearningKatakanaTable4Page } from './learning-katakana-table4.page';
const routes: Routes = [
{
path: '',
component: LearningKatakanaTable4Page
}
];
@NgModule({
imports: [RouterModule.forChild(rou... |
import React, { ReactNode, PureComponent, ChangeEvent } from 'react'
import classnames from './input-radio.module.scss'
export interface Props extends BaseProps {
/**
* A list of options for the radio element.
*/
options: Array<{ value: string; label: string }>
/**
* Selected option value.
*/
value... |
import { Context } from 'graphql-yoga/dist/types'
import { Arg, Authorized, Ctx, Mutation, Query } from "type-graphql"
import { User, UserInput } from "../entity/User"
import { checkIfNotExpired } from "../helpers/date"
import log from "../helpers/log"
import { Login, Session } from './../entity/Session'
import { MyCon... |
import { Component, OnInit } from '@angular/core';
import {GlobalState} from './../../../../../core/common';
import { dataServices } from '../../../services';
import { _ } from 'underscore';
import {Enums} from './../../../../../shared/utils/enums';
import {
NzMessageService,
NzModalService
} from 'ng-zorro-antd';
... |
import type { RuleConfig } from '../rule-config';
/**
* Config.
*/
export interface PreferDestructuringConfig {
enforceForRenamedProperties?: boolean;
}
/**
* Option.
*/
export type PreferDestructuringOption =
| {
VariableDeclarator?: {
array?: boolean;
object?: boolean;
};
A... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
source: any =
{
datatype: "csv",
datafields: [
{ name: 'Date', type: 'date' },
{ name: 'S&P 500', type: 'float' },
... |
import { evaluatePath, parsePath, Path } from "../types/classes/path";
describe("Path Resolver", () => {
test("should parse a path", () => {
const parsed = parsePath("abc/:def/ghi/:jkl");
expect(parsed[0].kind).toBe("literal");
expect(parsed[1].kind).toBe("variable");
expect(parsed.length).toBe(4);
... |
// svg/eye-circle-outline.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgEyeCircleOutline = 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" xmlns... |
import {
BaseApp,
ErrorCode,
Extensible,
ExtensibleConfig,
HandleRequest,
Jovo,
JovoError,
TestSuite,
Platform
} from 'jovo-core';
import _merge from 'lodash.merge';
import { BixbyRequestBuilder } from './core/BixbyRequestBuilder';
import { BixbyCore } from './core/BixbyCore';
import { BixbyCapsule } ... |
import { Autowired, PostConstruct, PreDestroy } from '../context/context';
import { ColumnController } from '../columnController/columnController';
import { Events } from '../events';
import { HeaderRowComp, HeaderRowType } from './headerRowComp';
import { BodyDropTarget } from './bodyDropTarget';
import { ScrollVisibl... |
import type * as d from '../../../declarations';
import { convertValueToLiteral, createStaticGetter } from '../transform-utils';
import ts from 'typescript';
export const addNativeComponentMeta = (classMembers: ts.ClassElement[], cmp: d.ComponentCompilerMeta) => {
classMembers.push(createStaticGetter('is', convertVa... |
import { oneLineTrim } from 'common-tags';
import {
expectFileNotToExist,
expectFileToExist,
expectFileToMatch,
writeFile,
} from '../../utils/fs';
import { ng } from '../../utils/process';
export default async function () {
await writeFile('browserslist', 'Safari 10.1');
await ng('build');
await expectF... |
import {
validateComplex,
VALIDATE_ERROR_ARRAY_TYPEDEF_MISSING,
VALIDATE_ERROR_ENUM_TYPEDEF_MISSING,
VALIDATE_ERROR_OBJECT_TYPEDEF_MISSING,
VALIDATE_ERROR_SCALAR_TYPEDEF_MISSING
} from "../src/complex";
import { Aggregation, ComplexTypeDef } from "../src/schema";
describe("Complex type definitions"... |
import React, { FunctionComponent } from "react";
import STREAM from "../../images/stream.png";
import { TWITCH_URL, YOUTUBE_URL } from "../../constants/ExternalUrls";
import Link from "../../components/link";
import styles from "./styles.module.scss";
const Stream: FunctionComponent = () => {
return (
<di... |
import { buildFSUrl, fieldChangedAtom } from "@/atoms/firestore";
import {
actionUpdateFieldKey,
actionRemoveFieldKey,
} from "@/atoms/firestore.action";
import { ClientDocumentSnapshot } from "@/types/ClientDocumentSnapshot";
import React, {
useState,
useRef,
useMemo,
useCallback,
useEffect,
useLayoutE... |
export declare class HashData {
readonly data: string;
constructor(data: string);
}
export declare class TransactionInfo {
/**
* The height of the block in which the transaction was included.
*/
readonly height: number;
/**
* The id of the transaction.
*/
readonly id: number... |
import { CredentialManager } from "@takomo/aws-clients"
import {
ConfigSet,
ConfigSetContext,
ConfigSetName,
DEFAULT_STAGE_NAME,
StageName,
} from "@takomo/config-sets"
import { InternalCommandContext } from "@takomo/core"
import {
DeploymentConfig,
DeploymentGroupConfig,
} from "@takomo/deployment-target... |
import { Generic_fromJSON, Generic_toJSON, Reviver } from "../utils/JSONReviver";
import { Export } from "./Export";
interface IConstructorParams {
name?: string;
}
export class Material {
// Name of material
name = "InitName";
// Amount of material owned
qty = 0;
// Material's "quality". Unbounded
ql... |
/*---------------------------------------------------------------------------------------------
* Copywight (c) Micwosoft Cowpowation. Aww wights wesewved.
* Wicensed unda the MIT Wicense. See Wicense.txt in the pwoject woot fow wicense infowmation.
*----------------------------------------------------------------... |
import { Button, TextIcon, Translate } from '~/components'
import AddInvitationDialog from '../AddInvitationDialog'
/**
* This button component is for adding new circle invitations.
*
* Usage:
*
* ```tsx
* <CircleInvitationAddButton />
* ```
*/
const CircleInvitationAddButton = () => {
return (
<AddIn... |
import { PageModel } from '../class/page-model';
import { DataTableArgs } from '../interfaces/data-table-args';
import { AjaxService } from '../services/ajax.service';
export class DataTable {
public cols: Array<any>;
public value: Array<any>;
public selections: any;
constructor(public args: DataTableArgs = ... |
import { BasicParser } from '../common/BasicParser';
/**
* DSDIFF - Direct Stream Digital Interchange File Format (Phillips)
*
* Ref:
* http://www.sonicstudio.com/pdf/dsd/DSDIFF_1.5_Spec.pdf
*/
export declare class DsdiffParser extends BasicParser {
parse(): Promise<void>;
private readFmt8Chunks;
priv... |
import { call, takeLatest, put } from 'redux-saga/effects';
import { http } from 'services';
import {
AUTH_REGISTER,
AUTH_REGISTER_SUCCESS,
AUTH_REGISTER_ERROR,
AuthRegister,
} from '../actions';
function* handle(action: AuthRegister) {
const { email, password, firstName, lastName } = action.payload;
try ... |
import { useQuery } from "react-query";
import { getRecordedShow } from "../api/RecordedShows.api";
export const useRecordedShowById = (recordedShowId: string | number) => {
const { data, isLoading } = useQuery(
["recorded_shows", recordedShowId],
() => getRecordedShow(recordedShowId),
{
refetchOnW... |
import React, { Component } from 'react';
import { ACTUATOR_URL, SENSOR_URL } from '../../defineUrl';
import { actuatorListElem } from '../../ElemInterface/ElementsInterface';
import Pagination from '../Pagination';
//import DeleteRequest from './DeleteRequest'
interface ActuatorTableState {
actuatorList: Array<a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.