text stringlengths 10 953k |
|---|
import { Component, Input } from '@angular/core';
import { Router } from '@angular/router';
import { CartService } from '@client/core/services/cart.service.ts.service';
import { CURRENCIES_SYMBOL, CURRENCY_LIST } from '@mugan86/ng-shop-ui';
import { IProduct } from '@mugan86/ng-shop-ui/lib/interfaces/product.interface'... |
import * as $ from 'rxjs/operators';
import * as $$ from 'rxjs';
describe('Subscribe & Assert Testing in RxJS', () => {
it('Wait async value | false positive', () => {
const source$ = $$.timer(100);
const final$ = source$.pipe(
$.mapTo(10),
);
const res = final$.toPromise();
expect(res).... |
import * as React from 'react';
import { NestedListActions } from '@waldur/resource/actions/NestedListActions';
import { ResourceRowActions } from '@waldur/resource/actions/ResourceRowActions';
import { ResourceName } from '@waldur/resource/ResourceName';
import { ResourceState } from '@waldur/resource/state/ResourceS... |
/**
* Copyright (c) Microsoft Corporation.
*
* 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... |
/*
* 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 restricti... |
import {
Button,
CircularProgress,
FormControlLabel,
TextField,
Typography
} from "@material-ui/core";
import Accordion, { AccordionProps } from "@saleor/components/Accordion";
import { useChannelsSearch } from "@saleor/components/ChannelsAvailabilityDialog/utils";
import ChannelsAvailabilityDialogChannelsLis... |
import {MetaData} from './meta.data.model';
export class GridData {
metaData: MetaData;
data: any[][];
} |
import axios from 'axios';
const instance = axios.create({
baseURL: 'https://shibe.online/api/shibes'
});
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=utf-8';
axios.defaults.headers.post['Access-Control-Allow-Origin'] = '*';
export default instance; |
/*
* Copyright 2019 ABSA Group Limited
*
* 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... |
export * from '@styled-icons/boxicons-regular/Tag' |
import { MergeMapToSignature } from '../../operator/mergeMapTo';
declare module '../../Observable' {
interface Observable<T> {
flatMapTo: MergeMapToSignature<T>;
mergeMapTo: MergeMapToSignature<T>;
}
} |
// Type definitions for Sortable.js 1.10
// Project: https://github.com/RubaXa/Sortable
// Definitions by: Maw-Fox <https://github.com/Maw-Fox>
// Maarten Staa <https://github.com/maartenstaa>
// Wayne Van Son <https://github.com/waynevanson>
// Definitions: https://github.com/Definitely... |
import {ILoginData} from '../IState'
import {SET_LOGIN_DATA} from '../sagas/mainLoop'
export function loginData(state: ILoginData = {}, action: {type: string}) {
if (action.type === SET_LOGIN_DATA) {
const a = action as any as {idToken: string}
const {idToken} = a
return <ILoginData>{idToken}
}
return stat... |
import { toMatchCloseTo } from 'jest-matcher-deep-close-to';
import { matrixColumnsCorrelation } from '../matrixColumnsCorrelation';
expect.extend({ toMatchCloseTo });
test('matrixColumnsCorrelation', () => {
let data: number[][] = [
[1, 3, 1, 3],
[2, 2, 2, 2],
[3, 1, 3, 1],
];
let result = matrixC... |
import { PlayCircleOutlined, WalletOutlined } from '@ant-design/icons';
import { Button, Divider, message, Spin } from 'antd';
import { MouseEvent, useCallback, useEffect, useState } from "react";
import { useNavigate, useParams } from "react-router";
import { getClient, RepoMetadata } from "../api";
import { FullRepos... |
/*
* 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... |
import { fakeAsync, TestBed, tick } from '@angular/core/testing';
import { NoopModule } from '../utils/noop.module';
import { RouterTestingModule } from '@angular/router/testing';
import { Component, Injectable, NgZone, Provider } from '@angular/core';
import { Router, Routes } from '@angular/router';
import { RoutePar... |
import {
Entity,
PrimaryColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
JoinColumn,
ManyToOne,
} from "typeorm";
import { v4 as uuid } from "uuid";
import { Tag } from "./Tag";
import { User } from "./User";
@Entity("compliments")
class Compliment {
@PrimaryColumn()
readonly id: string;
@Colum... |
import { Component, Input, Output, EventEmitter } from '@angular/core'
import { HSBuyer, HSSupplier, ReportTemplate } from '@ordercloud/headstart-sdk'
import { FormGroup } from '@angular/forms'
@Component({
selector: 'reports-selection-component',
templateUrl: './reports-selection.component.html',
styleUrls: ['.... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { Component, DebugElement, EventEmitter, ViewChild } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SohoBlockGridModule } from './soho-blockgrid.module';
import { Soho... |
import { Component } from '@angular/core';
@Component({ //meta-data passed to the @Component decorator, sets starting component??, starting view location (similar to index.html), and location of the css styling.
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
expo... |
import { ApolloError, useQuery, useReactiveVar } from "@apollo/client"
import { StackNavigationProp } from "@react-navigation/stack"
import * as React from "react"
import { SectionList, Text, View } from "react-native"
import EStyleSheet from "react-native-extended-stylesheet"
import { TouchableOpacity } from "react-na... |
import { ScrollSpyIndexService } from './index.service';
jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000;
describe('plugin index.service', () => {
let scrollSpyIndexService: ScrollSpyIndexService;
beforeEach(() => {
scrollSpyIndexService = new ScrollSpyIndexService();
});
it('is defined', () => {
expect(Scr... |
export enum ContentType {
CONDITION = 'conditions',
VARIABLE = 'variables',
SYS_VARIABLE = 'sysVariables',
FUNCTION = 'functions',
MOCK = 'mocks',
TEMPLATE = 'templates',
PAGE = 'pages',
} |
export { Heading, HeadingProps } from './heading';
export { Text, TextProps } from './text'; |
<TS language="lt" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Spustelėkite dešinįjį klaviša norint keisti adresą arba etiketę</translation>
</message>
<message>
<source>Create a new address</so... |
/* eslint-disable import/first */
import 'reflect-metadata';
import '@service/utils/polyfills';
require('dotenv').config();
import http from 'http';
import path from 'path';
import express from 'express';
import compression from 'compression';
import Container from 'typedi';
import SocketIO from 'socket.io';
import *... |
import { JsonHeadPipe } from "./json-head.pipe";
describe("JsonHeadPipe", () => {
it("create an instance", () => {
const pipe = new JsonHeadPipe();
expect(pipe).toBeTruthy();
});
}); |
import { Action } from '@ngrx/store';
export enum AgencyActionTypes {
LoadAgencies = '[Agency] Load Agencies',
LoadedAgencies = '[Agency] Loaded Agencies',
ErrAgencies = '[Agency] Error'
}
export class LoadAgencies implements Action {
readonly type = AgencyActionTypes.LoadAgencies;
}
export class LoadedAgenc... |
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { RaidDetailsComponent } from './raid-details.component';
describe('RaidDetailsComponent', () => {
let component: RaidDetailsComponent;
let fixture: ComponentFixture<RaidDetailsComponent>;
beforeEach(waitForAsync(() => {
... |
import { ComposeManifest } from 'spryly';
import { pjson } from './utils';
const pkg = pjson();
const DefaultPort = 9072;
const PORT = process.env.PORT || process.env.port || process.env.PORT0 || process.env.port0 || DefaultPort;
// @ts-ignore
export function manifest(config?: any): ComposeManifest {
return {
... |
import { Component, ViewEncapsulation, Input } from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { ActivatedRoute, Params, Router } from '@angular/router'
import { FormGroup, AbstractControl, FormBuilder, Validators } from '@angular/forms';
import { SharedService } from '../../../../servic... |
import {GameState} from '../../GameState';
import cards from '../../data/cards';
import {CardEntity, createSimpleRegexParser, identifyPlayer, readEntityString} from './base';
/**
* Object derived from FULL_ENTITY or SHOW_ENTITY sub-blocks.
*/
export interface FullEntity {
type: 'embedded_entity';
action: 'Creating... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export class User {
id: number;
username: string;
email: string;
password: string;
sex: string;
weight: number;
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Evocoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="... |
import { Plugin, PluginListenerHandle } from './definitions';
export interface PluginRegistry {
Accessibility: AccessibilityPlugin;
App: AppPlugin;
BackgroundTask: BackgroundTaskPlugin;
Browser: BrowserPlugin;
Camera: CameraPlugin;
Clipboard: ClipboardPlugin;
Device: DevicePlugin;
Filesystem: Filesyste... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
declarations: [
AppComponent
],
im... |
export declare function generateAutocompleteId(): string; |
namespace Y
{
export function date_str(d?:Date){
if(d===undefined) d= new Date();
let text:string = d.getFullYear().toString();
let month :number = d.getMonth();text +=(month<10)? "-0":"-"; text += month.toString();
let day :number = d.getDate();text +=(day<10)? "-0":"-";text += day.... |
/**
* @license
* Copyright 2020 Google LLC
*
* 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 o... |
import { CommonModule } from '@angular/common';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { AbpModule } from '@abp/abp.module';
import { RouterModule } from '@angular/router';
import { NgxPaginationModule } from 'ngx-pagination';
import { AppSessionService } from './session/app-session.serv... |
/**
* All test cases are ported from markdown-it-katex.
*
* @see https://github.com/waylonflinn/markdown-it-katex/blob/master/test/fixtures/default.txt
*/
import MarkdownIt from 'markdown-it'
import { markdown as mathjaxPlugin } from '../../src/mathjax/math'
const countMath = (stt) => stt.split('class="MathJax"')... |
export default <V, R>(
it: Iterable<V>,
mapper: (val: V) => R | undefined
): R | undefined => {
for (const val of it) {
const mapped = mapper(val);
if (mapped !== undefined) {
return mapped;
}
}
return undefined;
}; |
import { EntityMetadata } from 'typeorm';
import { paramCase } from 'param-case';
import {
ValidationError,
QueryParams,
QueryField,
} from '../../../types';
export async function checkQueryIncludeParam(
queryParams: QueryParams,
entityMetadata: EntityMetadata,
): Promise<ValidationError[]> {
const error... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { AllPostsComponent } from '../all-posts';
import { AuthService } from '../../services';
@Component({
selector: 'app-atanet',
templateUrl: './atanet.component.html',
styleUrls: ['./atanet.component.scss... |
/* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { SubscriptionDetailComponent } from './subscription-detail.component';
describe('SubscriptionDetailCom... |
import { PaletteOptions } from '@material-ui/core/styles/createPalette';
import { PaletteType } from '@material-ui/core';
export const generatePalette = (paletteType: PaletteType): PaletteOptions => ({
type: paletteType,
primary: {
main: paletteType === `light` ? `#2196f3` : `#1976d2`,
},
secondary: {
... |
import type { EnhancedSpy } from '../jest-mock'
import { isMockFunction } from '../jest-mock'
import { addSerializer } from '../snapshot/port/plugins'
import type { Constructable } from '../../types'
import { assertTypes } from '../../utils'
import type { ChaiPlugin, MatcherState } from './types'
import { arrayBufferEq... |
/// <reference path="../support/index.d.ts" />
import {desktopSizes} from "./resolutions";
desktopSizes.forEach((size) => {
describe(`Test Elements, Routing Page: ${size} Resolution`, () => {
beforeEach(() => {
cy.viewport(size[0], size[1])
cy.intercept("GET", "**/TAMU_BaseMap/**").as("basemap")
... |
export * from "@nativescript/angular/directives/dialogs"; |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { Router, ActivatedRoute } from '@angular/router';
import { ValidarCamposService } from 'src/app/shared/components/campos/validar-campos.se... |
import { tagAs } from 'factions/metatagger'
import { GenericEffects } from 'generic_rules'
import { HERO_PHASE } from 'types/phases'
import rule_sources from './rule_sources'
const Scenery = {
'Bone-tithe Nexus': {
effects: [
GenericEffects.FactionTerrainSetup_Removable,
{
name: `Deadly Gaze`... |
import type { AST_NODE_TYPES } from '../../ast-node-types';
import type { BaseNode } from '../../base/BaseNode';
import type { TypeNode } from '../../unions/TypeNode';
export interface TSArrayType extends BaseNode {
type: AST_NODE_TYPES.TSArrayType;
elementType: TypeNode;
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { action } from '@storybook/addon-actions';
import { Meta } from '@storybook/react';
import React from 'react';
import { DataFrame } from '@grafana/data';
import { withCenteredStory } from '../../utils/storybook/withCenteredStory';
import { TableInputCSV } from './TableInputCSV';
export default {
title: 'F... |
import { HttpStatusCode, IHttp, ILogger, IRead } from '@rocket.chat/apps-engine/definition/accessors';
import { ImgurResult } from './ImgurResult';
import { ImgurImageResult } from './ImgurImageResult';
export class ImageGetter {
private readonly defaultKey = '9f75b03f6156b08';
public async search(logger: ILog... |
interface SupportGivenLog {
tokenId: BigNumber;
supporter: string;
amount: BigNumber;
burnt: BigNumber;
treasury: BigNumber;
blockTime: Date;
} |
/**
* @since 0.5.0
*/
import * as t from 'io-ts'
import { either } from 'fp-ts/lib/Either'
/**
* @since 0.5.0
*/
export interface NumberFromStringC extends t.Type<number, string, unknown> {}
/**
* @example
* import { NumberFromString } from 'io-ts-types/lib/NumberFromString'
*
* NumberFromString.decode('1') /... |
import { Button, Card, Image } from "semantic-ui-react";
import { Activity } from "../../../app/models/activity";
interface Props {
activity: Activity;
cancelSelectActivity: () => void;
openForm: (id: string) => void;
}
export default function ActivityDetails({
activity,
cancelSelectActivity,
openForm,
}:... |
import { DateHelperService } from './date-helper.service';
import { SortingService } from './sorting.service';
import { EventInterface } from '../types/agenda.types';
describe('Sorting Service', () => {
const dateHelper = new DateHelperService();
const sortingService = new SortingService(dateHelper);
it('should... |
import {HomeTownSummary} from './interfaces/HomeTownSummary';
import * as cheerio from 'cheerio';
export const hometown = (element: Cheerio): HomeTownSummary[] => {
return element.children('div').children('div[class]').toArray().map((item: CheerioElement): HomeTownSummary => {
const itemElement = cheerio(i... |
export class Helpers {
public static genUUID(): string {
const s4 = () => Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
return `${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
}
public static async getDataUrlFromBlob(blob: Blob): Promise<string> {
... |
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'nz-demo-popconfirm-basic',
template: `
<a
nz-popconfirm
nzPopconfirmTitle="Are you sure delete this task?"
nzPopconfirmPlacement="bottom"
(nzOnConfirm)="confirm(... |
import { danger, markdown, message, fail, warn } from "danger"
const buidNum = process.env.CIRCLE_BUILD_NUM
if (buidNum === undefined) throw new Error('CIRCLE_BUILD_NUM is undefined')
const baseUrl = `https://${buidNum}-216242872-gh.circle-artifacts.com/0/tmp/workspace`
const coverageUrl = `${baseUrl}/coverage/lcov-r... |
import React from 'react';
import ReactDOM from 'react-dom';
import global from 'global';
import AnsiToHtml from 'ansi-to-html';
import dedent from 'ts-dedent';
import { StoryId, StoryKind, StoryFn, ViewMode, Channel } from '@storybook/addons';
import Events from '@storybook/core-events';
import { logger } from '@stor... |
import BigNumber from 'bignumber.js'
import fetchPrice from '../../../app/actions/fetchPrice'
import handleError from '../../../app/actions/errors/handleError'
import Pair from '../../Pair'
import proceed from './doRequest'
export default (app, orders) => async (order) => {
console.log(new Date().toISOString(), `... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import {
JSONObject, ReadonlyJSONObject
} from '@phosphor/coreutils';
import {
Message
} from '@phosphor/messaging';
import {
Signal
} from '@phosphor/signaling';
import {
Panel, PanelLayout
} from '@phosp... |
import Head from 'next/head'
const WebHead: React.FC = () => {
return (
<Head>
{/* Base configuration */}
<title>CardOf.Me - All Your Socials, One Card</title>
<link rel="icon" href="/favicon.ico" />
{/* SEO configuration */}
<meta name="viewport" content="width=device-width, initi... |
import { getConfigurationStorage } from '..'
export function DetailType(...fieldNames: string[]) {
return function (
object: Object,
methodName: string | symbol,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
descriptor: PropertyDescriptor
) {
for (const fieldName of [...fieldNam... |
import {EventSubscriberInterface} from '../EventDispatcher';
import {OpenCmpUIEvent} from '../Event';
import {CmpPreparatoryService} from '../Service';
/**
* OpenCmpUISubscriber.
*/
export class OpenCmpUISubscriber implements EventSubscriberInterface {
private cmpPreparatoryService: CmpPreparatoryService;
... |
import { lighten, darken } from 'polished';
import React from 'react';
import styled from '@emotion/styled';
import { colors } from '../styles/colors';
import { inner, outer } from '../styles/shared';
import { PageContext } from '../templates/post';
import { PostCard } from './PostCard';
import { ReadNextCard } from ... |
import { NextFunction, Request, Response } from "express";
import { AppErros } from '../errors/AppErros';
import { UserRepository } from "../modules/accounts/repositories/UserRepository";
export async function userIsAdmin(req:Request, res: Response, next:NextFunction) {
const {id}=req.user
const userRepository... |
import { types as allTypes } from '@pnpm/config'
import path = require('path')
import R = require('ramda')
import renderHelp = require('render-help')
export function types () {
return R.pick([
'global',
], allTypes)
}
export const commandNames = ['root']
export function help () {
return renderHelp({
de... |
import {
binding, given, then,
} from 'cucumber-tsflow/dist';
import { testControllerHolder } from '../../../support/test-controller-holder';
import HelperService from '../../../support/helper/helper.service';
@binding()
export default class UrlSteps {
@given(/^I navigate to (.*)$/)
public async NavigateToPage(p... |
/* 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';
export namespace Components {
interface KeepitB... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { Provider } from 'react-redux';
import store from './store';
ReactDOM.render(
<React.StrictMode>
<... |
import * as Actions from './actions';
import { ActionType, getType } from 'typesafe-actions';
export type FirstFactorAction = ActionType<typeof Actions>;
enum Result {
NONE,
SUCCESS,
FAILURE,
}
interface FirstFactorState {
lastResult: Result;
loading: boolean;
error: string | null;
}
const firstFactorIn... |
// Type definitions for Lo-Dash 4.14
// Project: http://lodash.com/
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as _ from "../inde... |
import { TestBed } from '@angular/core/testing';
import { SocketIoService } from './socket-io.service';
describe('SocketIoService', () => {
let service: SocketIoService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(SocketIoService);
});
it('should be created', () =... |
export enum CurrencyCode {
AED = "AED",
AFN = "AFN",
ALL = "ALL",
AMD = "AMD",
ANG = "ANG",
AOA = "AOA",
ARS = "ARS",
AUD = "AUD",
AWG = "AWG",
AZN = "AZN",
BAM = "BAM",
BBD = "BBD",
BDT = "BDT",
BGN = "BGN",
BHD = "BHD",
BIF = "BIF",
BMD = "BMD",
... |
/**
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import './index.html';
import { resizeCanvas } from '../../mol-canvas3d/util';
import { Canvas3D } from '../../mol-canvas3d/canvas3d';
import { MeshBuilder } f... |
/*!
* @modern-dev/mtproto - a JavaScript client for the telegram MTProto protocol
* https://github.com/modern-dev/mtproto
*
* Copyright (c) 2020 Bohdan Shtepan
* Licensed under the MIT license.
*/
import { buildURI } from './uri';
import { expect } from 'chai';
import 'mocha';
describe('transport/uri.ts', () =>... |
import { BitFlags, GeoPoint, GeoPointInterface, MagVar, NavMath, Subject, UnitType } from 'msfssdk';
import { ControlEvents, EventBus } from 'msfssdk/data';
import { GNSSEvents, NavEvents, NavSourceId, NavSourceType } from 'msfssdk/instruments';
import {
AirportFacility, ApproachProcedure, Facility, FacilityType, Fix... |
export const npmPackages = {
"@hpcc-js/wasm": "@hpcc-js/wasm/dist/index",
"ajv": "ajv/dist/ajv.bundle",
"colorbrewer": "colorbrewer/index",
"codemirror": "codemirror/",
"d3-array": "d3-array/dist/d3-array",
"d3-axis": "d3-axis/dist/d3-axis",
"d3v4-bullet": "d3v4-bullet/build/d3-bullet",
... |
import {Testkit} from '../../../test/e2e/driver';
export class HeaderTestkit extends Testkit {
} |
import doWhen from "./doWhen";
import doWhenTrue from "./doWhenTrue";
import doForAll from "./doForAll";
import doForAllKeys from "./doForAllKeys";
import doWhenChanged from "./doWhenChanged";
import createMiddleware from "./createMiddleware";
import when from "./when";
import forEach from "./forEach";
import forEachE... |
import React from 'react';
import { styled, keyframes } from '@stitches/react';
import { violet, blackA, mauve } from '@radix-ui/colors';
import { ChevronDownIcon } from '@radix-ui/react-icons';
import * as AccordionPrimitive from '@radix-ui/react-accordion';
const slideDown = keyframes({
from: { height: 0 },
to: ... |
import IColorPalette = require('./IColorPalette');
// TODO: rename sections to section_ids
interface IEnrollment {
color: IColorPalette;
course_id: number;
sections: Array<number>;
}
export = IEnrollment; |
import { StyleSheet } from 'react-native';
import { scale } from 'react-native-size-matters';
const styles = StyleSheet.create({
mainView: {
height: '100%',
},
welcomeText: {
margin: scale(30),
marginHorizontal: '6%',
},
welcomeTextView: {
marginVertical: scale(50),
},
});
export default... |
import * as Validator from 'class-validator';
export class LoginUserDto {
@Validator.IsNotEmpty()
@Validator.IsEmail({
// eslint-disable-next-line @typescript-eslint/camelcase
allow_utf8_local_part: true,
})
email: string;
@Validator.IsNotEmpty()
@Validator.IsString()
@Valid... |
interface Window {
api: API;
}
type powerMonitorType = 'idle';
type NotificationData = {
body: string;
title: string;
tag?: string | undefined;
}
type API = {
time: (listener: (second: number) => void) => void;
notification: (listener: (data: NotificationData) => void) => void;
} |
import styled from 'styled-components';
import Label from '../Label';
import colors from '../../theme/colors';
export const StyledLabel = styled(Label)`
white-space: break-spaces;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
width: 100%;
align-items: center;
line-height: 20px;
& span {... |
import { IJsonRpcClient } from './jsonrpc';
declare class Module {
readonly client: IJsonRpcClient;
readonly name: string;
constructor(client: IJsonRpcClient, name: string);
call(method: string, ...params: any): Promise<any>;
}
declare class Chain extends Module {
getHeaderByNumber(...params: any): ... |
import React from 'react';
import { Tab, TopNavigation, TopNavigationAction } from '@ui-kitten/components';
import { SafeAreaLayout } from '../../components/safe-area-layout.component';
import { BrandTabBar } from '../../components/brand-tab-bar.component';
import { ArrowIosBackIcon, GridIcon, ListIcon } from '../../co... |
import { Component, OnInit } from '@angular/core';
import { AutheticationService } from '../services/authetication.service';
import { ApplicationUser } from '../models/application-user';
import { UserService } from '../services/user.service';
import { Router } from '@angular/router';
import { Role } from '../models/rol... |
import * as React from "react"
import { EventEmitter } from "events"
import { Application } from "express"
import { WindowLocation } from "@reach/router"
export {
default as Link,
GatsbyLinkProps,
navigate,
navigateTo,
push,
replace,
withPrefix,
} from "gatsby-link"
export interface StaticQueryProps {
... |
import * as React from 'react';
interface TitleProps {
readonly text: string;
readonly color: string;
}
export const Title: React.FunctionComponent <TitleProps> = ({text, color}: TitleProps) => (
<span style={{color}}>{text}</span>
); |
import * as angular from 'angular';
import {routes} from './routes';
import {aboutComponent} from './about-component';
var aboutModule: ng.IModule = angular.module('about', ['ui.router']);
aboutModule
.config(routes)
.directive('aboutComponent', aboutComponent);
export {aboutModule}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.