text stringlengths 10 953k |
|---|
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { ItemSchema } from './schemas/item.schema';
import { ItemsController } from './items.controller';
import { ItemsService } from './items.service';
@Module({
imports: [MongooseModule.forFeature([{ name: 'Item', schema: ... |
import React, { useMemo } from "react";
import useNavigation from "lib/hooks/useNavigation";
export const NavigationContext = React.createContext<NavigationContextValue>({
navigation: [],
activePath: undefined,
isVerticalOpen: false,
setVerticalOpen: () => undefined,
toggleVerticalOpen: () => undefined,
});... |
import React from 'react';
import { Box, Progress, Center, Heading } from 'native-base';
export const Example = () => {
return (
<Box w="90%">
<Center mb={8}>
<Heading>Flat Progress</Heading>
</Center>
<Progress rounded="0" size="lg" value={65} mx={4} />
</Box>
);
}; |
export default interface ICreateNotificationDTO {
content: string;
recipient_id: string;
} |
/*
Copyright 2021 The CloudEvents Authors
SPDX-License-Identifier: Apache-2.0
*/
/**
* The object interface for CloudEvents 1.0.
* @see https://github.com/cloudevents/spec/blob/v1.0/spec.md
*/
export interface CloudEventV1<T> extends CloudEventV1Attributes<T> {
// REQUIRED Attributes
/**
* [REQUIRED] Ident... |
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {IonicModule} from '@ionic/angular';
import {AutoCompleteModule} from 'ionic-autocomplete';
import {SimpleServiceComponent} from './simple-service.component';
import {CountryServic... |
import React from 'react';
import {mountWithApp} from 'tests/utilities';
import {VisuallyHidden} from 'components';
import {Badge} from '../Badge';
describe('<Badge />', () => {
it('renders its children', () => {
const badge = mountWithApp(<Badge>Badge test</Badge>);
expect(badge.text()).toBe('Badge test');... |
// import { isChineseMobile } from "hmd-utils";
// move to hmd-utils
// const mobileValidator = (rule, value, callback) => {
// if (!value) {
// return callback(new Error("请输入"));
// }
// if (!isChineseMobile(value)) {
// return callback(new Error("格式错误"));
// }
// return callback();
// };
export co... |
declare function pathRoot(foo: string): string;
export = pathRoot; |
import * as React from 'react'
import { ViewProps, LayoutChangeEvent } from 'react-native'
// Mocks a View or container as React sees it
const Container = React.memo(
React.forwardRef(({ onLayout, ...props }: ViewProps, ref) => {
React.useLayoutEffect(() => {
onLayout?.({
nativeEvent: {
l... |
// *** 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";
/*... |
import styles from "./WidgetTrash.module.css"
interface WidgetTrashProps {
onMouseUp: (event: React.MouseEvent) => void
}
export function WidgetTrash({onMouseUp}: WidgetTrashProps) {
return (
<div className={styles.widgetTrash} onMouseUp={onMouseUp}>
T
</div>
)
} |
// Type definitions for ag-grid-community v20.0.0
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { Promise } from '../utils';
export declare class TabbedLayout {
private eGui;
private eHeader;
private eBody;
private params;
private afterAttac... |
import { CategoryType, ExerciseType } from "../enums/enums";
import { Inputs } from "./support-classes/inputs";
import { Objective } from "./support-classes/objective";
import { ExerciseRecord } from "./support-classes/exerciseRecord";
import uuid from "uuid";
/**
* @todo
*/
export class Exercise {
readonly id: st... |
import CartesianG3 from './CartesianG3'
import GeometricE3 from './GeometricE3'
import isNumber from '../checks/isNumber'
import isObject from '../checks/isObject'
const scratch: GeometricE3 = { a: 0, x: 0, y: 0, z: 0, yz: 0, zx: 0, xy: 0, b: 0 }
export default function(arg: any): GeometricE3 {
if (isObject(arg) ... |
import { ApiResponse } from '../apiResponse';
import { RequestOptions } from '../http/requestBuilder';
import { V1CashDrawerShift } from '../models/v1CashDrawerShift';
import { V1Employee } from '../models/v1Employee';
import { V1EmployeeRole } from '../models/v1EmployeeRole';
import { V1Timecard } from '../models/v1Ti... |
import * as vscode from 'vscode';
import * as util from '../../utilities';
const paredit = require('paredit.js');
function adjustRangeIgnoringComment(doc, range) {
let text = doc.getText(range);
if (text.match(/^\(\s*comment\s+/m)) {
let start = doc.offsetAt(range.start),
preTextLength = ... |
import { ReactNode } from "react";
type AuthLayoutProps = { children: ReactNode };
const AuthLayout = ({ children }: AuthLayoutProps) => {
return <div>{children}</div>;
};
export default AuthLayout; |
import { renderHook } from '@testing-library/react-hooks';
import useMounted from './useMounted';
describe('hooks/useMounted', () => {
it('returns a function that checks if component is mounted', () => {
const { result, rerender, unmount } = renderHook(() => useMounted());
expect(result.current()).toBe(true... |
import omit from 'lodash.omit';
import isString from 'lodash.isstring';
import { ZWeb3 } from 'zos-lib';
import add from './add';
import push from '../scripts/push';
import Session from '../models/network/Session';
import { compile } from '../models/compiler/Compiler';
import { fromContractFullName } from '../utils/na... |
// prettier-ignore
export const AT =
["svg", { viewBox: "0 0 32 32" },
["path", { d: "M16 3A12.92 12.92 0 003 16v1a13 13 0 0013 13h7v-2h-7A11 11 0 015 17v-1A10.94 10.94 0 0116 5a10.64 10.64 0 0111 11c0 3.59-1.4 5-3.66 5-1.58 0-2.34-1.29-2.34-3v-8h-2v1.94A3.84 3.84 0 0015.5 10a5.48 5.48 0 00-5.5 5.44v2.12A5.... |
import { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient";
import { DescribePendingMaintenanceActionsMessage, PendingMaintenanceActionsMessage } from "../models/models_1";
import {
deserializeAws_queryDescribePendingMaintenanceActionsCommand,
serializeAws_queryDescribePendingMain... |
import { Injectable, Optional } from '@angular/core';
import { NavigationExtras, Router, UrlTree } from '@angular/router';
export const enum NavIntent {
Auto,
Forward,
Back,
Root
}
@Injectable()
export class NavController {
private intent: NavIntent = NavIntent.Auto;
private animated = true;
private st... |
/**
* Copies some text to the clipboard.
*
* @see https://developers.slapdash.com/reference/command-response-action#actioncopy
*/
export type ActionCopy = {
type: 'copy';
/**
* The string that will be copied to the clipboard.
*/
value: string;
}; |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { ComponentType } from '@angular/cdk/portal/portal';
import { BehaviorSubject, filter, Observable, take, tap } from 'rxjs';
import { StoryRoute } from '../components.data';
import { CompoDoc } from './compodoc.model';
... |
import { AppException } from '../AppException';
export class UnknownEntityProcedure extends AppException {
} |
import * as superagent from "superagent"
const REQUEST_TIMEOUT = 60000
export default function apiCaller() {
return dispatch => {
return (action): Promise<any> => {
const apiCall: ApiCall = action.apiCall
if (!apiCall) {
return Promise.resolve(dispatch(action))
... |
import React from 'react';
import ScrollableTabView, { DefaultTabBar } from 'react-native-scrollable-tab-view';
import styles from './style/';
import TabsProps from './PropsType';
class Tabs extends React.Component<TabsProps, any> {
static defaultProps = {
tabBarPosition: 'top',
animated: true,
swipeable... |
/**
* Monitoring API
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
For information ... |
import { myPow } from "./solution-iterative";
it("myPow should return 1024.00000 for x = 2.00000, n = 10", () => {
expect(myPow(2.0, 10)).toBe(1024.0);
});
it("myPow should return 8 for x = 2, n = 3", () => {
expect(myPow(2, 3)).toBe(8);
});
it("myPow should return 0.25000 for x = 2.00000, n = -2", () => {
exp... |
import { DocumentSymbol, SymbolKind } from 'vscode-languageserver';
import { isUsingAdv3Lite } from '../../parse-workers-manager';
import { serverState } from '../../state';
import { DefaultMapObject } from './DefaultMapObject';
export const possibleExits = ['north', 'south', 'east', 'west', 'northeast', 'northwest', ... |
export default interface PropTypes {
/**
* The Global max speed
*/
colCount?: number
/**
* available max speed
*/
value: number
/**
* steps size
*/
options: Array<number>
/**
* on click on other speeds
*/
onClick?: any
/**
* whether component is disabled
*/
disabled?: b... |
import { Schema } from "../../constants";
import mongoose from "mongoose";
export const UserBreakSchema = new Schema({
discordId: String,
discordTag: String,
});
export const UserBreakModel = mongoose.model("BreakMembers", UserBreakSchema); |
import { Artifact } from './storage.interface';
export interface FlowModule {
name: string;
description?: string;
artifacts: Artifact[];
author: string;
tags?: string[];
functions: string[];
readPermissions: string[];
readWritePermissions: string[];
createdAt?: string;
updatedAt?: string;
} |
export const pencilSquare32F: string; |
import { Component, EventEmitter } from 'angular2/core';
import { FoodComponent } from './food.component';
import { Food } from './food.model';
import { EditFoodDetailsComponent } from './edit-food-details.component';
import { NewFoodComponent } from './new-food.component';
import { HealthyPipe } from './healthy.pipe'... |
/* Copyright 2021, Milkdown by Mirone. */
import { createCmd, createCmdKey } from '@milkdown/core';
import { wrapIn, wrappingInputRule } from '@milkdown/prose';
import { createNode, createShortcut } from '@milkdown/utils';
import { SupportedKeys } from '../supported-keys';
type Keys = SupportedKeys['BulletList'];
ex... |
import { EOL } from 'os';
import * as events from '@aws-cdk/aws-events';
import * as iam from '@aws-cdk/aws-iam';
import * as kms from '@aws-cdk/aws-kms';
import { ArnFormat, IResource, Lazy, RemovalPolicy, Resource, Stack, Token } from '@aws-cdk/core';
import { IConstruct, Construct } from 'constructs';
import { CfnRe... |
import jsonViewStyles from "@/components/JsonView/index.less";
import { CaretDownOutlined, CaretRightOutlined } from "@ant-design/icons";
import { useEffect, useState } from "react";
import JsonValue from "@/components/JsonView/JsonValue";
import classNames from "classnames";
import JsonArray from "@/components/JsonVie... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const SnglsDimensions: {
height: number;
width: number;
}; |
import http, { IncomingMessage } from 'http';
import https from 'https';
import { URL } from 'url';
import * as zlib from 'zlib';
/**
* In nodejs enviroment, by default for XMLHttpRequest, fetch and wx.request, http-request-mock
* does a fallback request by simply using http/https native request module, which encode... |
import React from 'react';
import Modal from '../Modal';
<Modal container={() => document.body}></Modal>; |
import { IAnswer } from "../../types/IAnswer";
import { IQuestion } from "../../types/IQuestion";
export interface IAnswerFormProps {
question: IQuestion;
}
export interface IStoreProps {
answers: Array<IAnswer>;
}
export interface IDispatchProps {
addAnswer;
}
export type AnswerFormProps = IAnswerFormProps &... |
import { readFileSync } from 'fs';
import { join } from 'path';
const lines = readFileSync(join(__dirname, './input.txt'), 'utf-8').split('\n');
const ARGS = process.argv;
const DEBUG = ['-d', '--debug'].some((flag) => ARGS.includes(flag));
const debug = (logOut: any) => {
if (DEBUG) {
console.log(logOut);
}... |
import { GetStaticProps } from 'next'
import Head from 'next/head'
import LayoutCategory from 'components/LayoutCategory'
import getCategory from 'helpers/getCategory'
import mainCategories, { brands, locations } from 'data'
function Category({ category }) {
return (
<>
<Head>
<title>Street Photogr... |
import { ExportResult } from '@opentelemetry/core';
/**
* Exporter config
*/
export interface ExporterConfig {
headers?: Record<string, string>;
serviceName?: string;
url?: string;
statusCodeTagName?: string;
statusDescriptionTagName?: string;
getExportRequestHeaders?: () => Record<string, str... |
import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
import styles from './styles';
import { CustomButtonTheme, getButtonStyle } from './utils';
interface Props {
text: string;
stylesButton: CustomButtonTheme;
}
function CustomButton({ text, stylesButton }: Props) {
const { styleTe... |
import { Component } from '@angular/core';
import { Router, ActivatedRoute, ROUTER_DIRECTIVES } from '@angular/router';
import { Config, NavbarComponent, ToolbarComponent } from './commonc/index';
import { UserService, WeixinService } from './service/index';
/**
* This class represents the main application component.... |
import "@/components/combobox/ComboBox";
import { comboBoxComplexObjectOption, comboBoxObjectOptions, comboBoxOptions } from "@/[sandbox]/sandbox.mock";
import { html } from "lit-element";
import { repeat } from "lit-html/directives/repeat";
const dropdownValue: string[] = [];
export const comboBoxTemplate = html`
... |
import * as React from 'react'
export default class SapIxpBlazer extends React.Component {
static optionValue = 'SapIxpBlazer'
render () {
return (
<g
id='Clothing/Blazer-+-Shirt'
transform='translate(0.000000, 170.000000)'>
<path fill-rule='evenodd' clip-rule='evenodd' d='M159 3... |
/**
* Generic helpers used across the application
*/
import BigNumber from "bignumber.js";
import * as Helpers from "../helpers";
let address: string;
describe("Helpers", () => {
it("atomsToTokens", async () => {
const atomsValue = new BigNumber(1_000_000_000_000);
const realValue = Helpers.atomsToToken... |
import { Model } from "../Model";
export declare function JSONAPI(type: string): <T extends typeof Model>(constructor: T) => void; |
// tslint:disable:no-any
export interface IBabelConfigItem {
value: Function;
options?: {[key: string]: unknown};
dirname: string;
name?: string;
file: {
request: string;
resolved: string;
};
}
export interface IBabelInputOptions {
presets: {}[];
plugins: {}[];
retainLines: boolean;
compact: boolean | "... |
// Libraries
import React, { PureComponent } from 'react';
// Components
import { DataSourcePicker } from 'app/core/components/Select/DataSourcePicker';
import { Button, CustomScrollbar, HorizontalGroup, Icon, Modal, stylesFactory, Tooltip } from '@grafana/ui';
import { getDataSourceSrv } from '@grafana/runtime';
impor... |
const { cd, exec, echo, touch } = require("shelljs")
const { readFileSync } = require("fs")
const url = require("url")
let repoUrl
let pkg = JSON.parse(readFileSync("package.json") as any)
if (typeof pkg.repository === "object") {
if (!pkg.repository.hasOwnProperty("url")) {
throw new Error("URL does not exist i... |
// import { createElement } from "react";
// import { shallow } from "enzyme";
// import { HelloWorldSample, HelloWorldSampleProps } from "../ColourCounterComponent";
// describe("HelloWorldSample", () => {
// // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
// const createHelloWor... |
import React from "react";
import { Radio } from "./radio";
import s from "./radio-group.module.css";
export interface RadioOption<T> {
value: T;
id: string;
label: React.ReactNode;
}
interface Props<T> {
name: string;
value: T;
setValue: (value: T) => void;
options: RadioOption<T>[];
}
type Foo<T> = Props<T... |
import { FilterGroup } from 'common';
import React from 'react';
import BooleanFilterGroupForm from '../boolean-filter/BooleanFilterGroupForm';
import { assertFilterId } from '../common/FilterRow';
import DateFilterGroupForm from '../date-filter/DateFilterGroupForm';
import NumberFilterGroupForm from '../number-filter/... |
import * as React from "react";
export default class Alert extends React.Component<any, any> {
state: any;
static defaultProps: any;
colorArr: any;
constructor(props: any);
componentWillReceiveProps(props: any): void;
render(): JSX.Element;
getMessageElement(): JSX.Element;
getColor(colo... |
import { logger } from "@truffle/db/logger";
const debug = logger("db:project:names:resources");
import gql from "graphql-tag";
import pascalCase from "pascal-case";
import { singular } from "pluralize";
import {
resources,
IdObject,
NamedCollectionName
} from "@truffle/db/project/process";
import * as Batch fro... |
import { OData, ODataDateTime, ODataDateTimeOffset, ODataFilter } from "../src";
describe("OData Filter Test", () => {
test('OData filter alternative constructor', () => {
expect(OData.newFilter()).toBeInstanceOf(ODataFilter)
expect(ODataFilter.newBuilder()).toBeInstanceOf(ODataFilter)
})
test("ODataFi... |
/*
* Copyright (C) 2020 Argos Notary
*
* 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 a... |
import { promises as fs } from 'fs';
import type { Content } from 'types';
import type { Constructor } from 'types/content';
import { db, server } from '../../core';
import schema from './schema.json';
export const content = new (function Content(this: Constructor) {
this.options = {
prefix: 'content',
};
t... |
import React, { Dispatch, useMemo } from 'react';
import { observer } from 'mobx-react';
import { Box, Grid } from '@material-ui/core';
import { SearchStoreV3 } from 'DriverApp/store/SearchStoreV3';
import LoadCard from 'components/v3/LoadCardV3';
import FOInfiniteLoader from 'components/v3/FOInfiniteLoader';
import RA... |
import classNames from 'classnames';
import _ from 'lodash';
import { findNodeOfTree } from 'rsuite-utils/lib/utils';
import placementPolyfill from '../utils/placementPolyfill';
export function createConcatChildrenFunction(node: any, nodeValue?: any) {
return (data: any[], children: any[]): any[] => {
if (nodeVa... |
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptCommonModule } from "@nativescript/angular";
import { TryBeforeYouBuyRoutingModule } from "./try-before-you-buy-routing.module";
import { TryBeforeYouBuyComponent } from "./try-before-you-buy.component";
@NgModule({
imports: [
... |
import type { ReactElement } from 'react';
import type { ReducerAction } from './useForm';
export declare type InternalNamePath = (string | number)[];
export declare type NamePath = string | number | InternalNamePath;
export declare type StoreValue = any;
export declare type Store = Record<string, StoreValue>;
export i... |
// DO NOT EDIT. This file was generated by running `npm run generate`.;
import * as React from 'react';
import { Colors } from '../../essentials';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';
type Props = IconProps;
const ThumbUpOutlineIcon: React.FC<Props> = ({ size = 'medium'... |
import { Controller, Post, Body, ValidationPipe} from '@nestjs/common';
import { AuthCredentialsDto } from './dto/auth-credentials.dto';
import { AuthService } from './auth.service';
@Controller('auth')
export class AuthController {
constructor(private readonly authService: AuthService) {}
@Post('/signup')
signUp... |
/**
* Copyright Microsoft Corporation. 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 ... |
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfin API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 10.8.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech)... |
import * as ts from 'typescript';
import { PluginOptions } from '../merge-options';
export declare class ModelClassVisitor {
visit(sourceFile: ts.SourceFile, ctx: ts.TransformationContext, program: ts.Program, pluginOptions: PluginOptions): ts.SourceFile;
clearMetadataOnRestart(node: ts.ClassDeclaration): void;... |
import apiRequest from '@/utils/request';
import ApplicationConfig from '@/config';
export function changeUserNickname({ nickname }: { nickname: string }) {
return apiRequest(ApplicationConfig.api.userNickname, {
method: 'put',
data: {
nickname,
},
});
}
export function changeUserPassword({
ol... |
/*
* typeEvaluator4.test.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
* Author: Eric Traut
*
* Unit tests for pyright type evaluator. Tests are split
* arbitrarily among multiple files so they can run in parallel.
*/
import * as assert from 'assert';
import { ConfigOptions } fro... |
import React from 'react'
import { Meta, Story } from '@storybook/react/types-6-0'
import LargeCard, { Props } from './index'
const metaData: Meta = {
title: 'app-ui/LargeCard',
component: LargeCard,
}
const Template: Story<Props> = props => <LargeCard {...props} />
export const Primary = Template.bind({})
Prim... |
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import "@testing-library/jest-dom";
// mock the Chrome API
Object.assign(global, require("jest-chrome"));
// remo... |
export * from './markup';
export * from './react';
export * from './vue'; |
export interface IPlugin {
apply: () => void;
} |
import { Collection } from 'mongodb';
import Database from '../Database';
import * as types from '../typings';
export default abstract class Model<T extends types.MongoModelProps> {
protected static readonly collectionName: string;
protected props: T;
protected constructor(props: T) {
this.props = { ...pr... |
import { ComputedObserver } from '@aurelia/runtime';
import {
IObserverLocator,
CustomElement,
IDirtyChecker,
Aurelia,
} from '@aurelia/runtime-html';
import {
Constructable,
} from '@aurelia/kernel';
import {
assert,
eachCartesianJoin,
TestContext,
} from '@aurelia/testing';
describe('simple Computed ... |
export {
default as GlobalQuickSearch,
Props,
} from './components/GlobalQuickSearchWrapper';
export { Config } from './api/configureSearchClients';
export {
default as withFeedbackButton,
} from './components/feedback/withFeedbackButton'; |
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import type { IJodit } from '../../types';
import * as consts from '../../core/constants';
import ... |
/**
* Copyright 2018 Google Inc. 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 appli... |
import { HTTP_INTERCEPTORS } from "@angular/common/http";
// Interceptors
import { RequestInterceptor } from "./request.interceptor";
export const httpInterceptorProviders = [
{ provide: HTTP_INTERCEPTORS, useClass: RequestInterceptor, multi: true },
]; |
import * as path from 'path';
export const generatedFolderPath = (): string => {
return process.env.WARTHOG_GENERATED_FOLDER || path.join(process.cwd(), 'generated');
}; |
import { AllowedComponentProps } from 'vue';
import { App } from 'vue';
import { Component } from 'vue';
import { ComponentCustomProps } from 'vue';
import { ComponentPublicInstance } from 'vue';
import { ComputedRef } from 'vue';
import { InjectionKey } from 'vue';
import { Ref } from 'vue';
import { UnwrapRef } from ... |
import * as React from 'react';
import { Route } from 'react-router';
import { Switch } from 'react-router-dom';
import Home from './views/Home';
import AboutUs from './views/AboutUs';
import NavigationBar from './views/NavigationBar';
const component: React.SFC = () => {
return (
<div>
<Navig... |
import React from 'react';
import { MatColorVariant } from './matColors';
export declare type ButtonVariant = 'text' | 'outline' | 'solid' | 'link';
export declare type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
export declare type ColorVariant = 'primary' | 'secondary' | 'accent' | 'warning' | 'danger' | 'default' | MatC... |
import { ChecklistStatus } from '../../common/DocPage.types';
export const PanelStatus = {
keyboardAccessibilitySupport: ChecklistStatus.unknown,
markupSupport: ChecklistStatus.unknown,
highContrastSupport: ChecklistStatus.pass,
rtlSupport: ChecklistStatus.pass,
testCoverage: ChecklistStatus.fair
}; |
import { inject, injectable, named, optional } from 'inversify';
import * as path from 'path';
import { IFileSystem, IPlatformService } from '../../../common/platform/types';
import { IProcessService } from '../../../common/process/types';
import { ILogger, IPersistentStateFactory } from '../../../common/types';
import... |
'use strict';
import { Message } from './Message';
export class Markdown extends Message
{
protected type: string = 'markdown';
protected properties: Array<string> = ['content'];
constructor(content: string)
{
super({
content,
});
}
} |
// Type definitions for lodash.fromPairs 4.0
// Project: https://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
// TypeScript Versio... |
import { AthenaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AthenaClient.ts";
import { ListDatabasesInput, ListDatabasesOutput } from "../models/models_0.ts";
import {
deserializeAws_json1_1ListDatabasesCommand,
serializeAws_json1_1ListDatabasesCommand,
} from "../protocols/Aws_json1_1.ts"... |
export class CreateCatDto {
id: number;
name: string;
age: number;
breed: string;
} |
/* eslint-disable */
export type MsgVpnAclProfileCollectionsSubscribetopicexceptions = {
/**
* The total number of objects in the subscribeTopicExceptions collection. Available since 2.14.
*/
count?: number;
}
export namespace MsgVpnAclProfileCollectionsSubscribetopicexceptions {
/**
* th... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HeaderComponent } from './components/header/header.component';
import { FooterComponent } from './compon... |
import { getPath } from 'ts-object-path';
import {
IQueryBuilder,
IFireOrmQueryLine,
IOrderByParams,
IFirestoreVal,
FirestoreOperators,
IQueryExecutor,
IEntity,
IWherePropParam,
} from './types';
export default class QueryBuilder<T extends IEntity> implements IQueryBuilder<T> {
protected queries: Ar... |
/****************************************************************************
* Copyright 2021 EPAM Systems
*
* 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... |
import { SnotifyToastConfig } from './snotify-toast-config.interface';
import { SafeHtml } from '@angular/platform-browser';
/**
* Snotify toast params
*/
export interface Snotify {
/**
* Toast Title
*/
title?: string;
/**
* Toast message
*/
body?: string;
/**
* Config obj... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About cannation</source>
<translation>About cannation</translation>
</message>
<mes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.