text stringlengths 10 953k |
|---|
import { Body, Controller, Delete, Get, Param, Post, UseGuards } from "@nestjs/common";
import { JwtAuthGuard } from "src/auth/shared/jwt-auth.guard";
import { CreateOrderDto } from "./dto/create-order.dto";
import { OrdersService } from "./orders.service";
@Controller('orders')
export class OrdersController {
con... |
import React, { Component } from 'react'
enum Gender {
male = 0,
female,
}
interface Props {}
interface State {
name: string
age: number
gender: Gender
}
export default class StudentCard extends Component<Props, State> {
state = {
name: '',
age: 0,
gender: Gender.male,
}
// React.ChangeE... |
import { Logger, LogLevel, LogOutput } from './logger.service';
const logMethods = ['log', 'info', 'warn', 'error'];
describe('Logger', () => {
/* tslint:disable */
let savedConsole: Function[];
/* tslint:enable */
let savedLevel: LogLevel;
let savedOutputs: LogOutput[];
beforeAll(() => {
savedConso... |
/* eslint-disable */
import { Observable } from 'rxjs';
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
export interface TemplRes {
resTmplData: ResTmplData | undefined;
error: string | undefined;
}
export interface ResTmplData {
docId: string;
synUrl: string;
title: TitleType;
name... |
import { OnInit } from '@angular/core';
import { DatePickerInnerComponent } from './datepicker-inner.component';
export declare class MonthPickerComponent implements OnInit {
title: string;
rows: any[];
datePicker: DatePickerInnerComponent;
maxMode: string;
constructor(datePicker: DatePickerInnerCom... |
import { Config } from '../config';
import { Connection } from '../connection/connection';
import { Model } from '../model/model';
import { Node } from '../node/node';
import { Synapse } from '../connection/synapse';
export class Parameter extends Config {
private _factors: string[]; // not functional yet
private ... |
interface ServerResponseData {
id: string;
name: string;
}
interface AutocompleteParam {
id: string;
value: string;
}
class myAutocompleteHelper {
startSearchCallback: (searchText: string) => any;
selectResultCallback: (selectData: AutocompleteParam) => any;
autoCompleteControlName: stri... |
import {StructureNode} from "../../abap/nodes";
import {Identifier} from "./_identifier";
import * as Structures from "../../abap/structures";
import * as Expressions from "../../abap/expressions";
export class MethodImplementation extends Identifier {
constructor(node: StructureNode, filename: string) {
if (!(... |
import { Component } from '@angular/core';
@Component({
selector: 'nz-demo-alert-banner',
template: `
<nz-alert nzBanner nzMessage="Warning text"></nz-alert>
<nz-alert nzBanner nzMessage="Very long warning text warning text text text text text text text" nzCloseable></nz-alert>
<nz-alert nzBanner nzMes... |
import React, { useEffect } from 'react';
import { css, cx } from 'emotion';
import { hot } from 'react-hot-loader';
import { connect, MapDispatchToProps, MapStateToProps } from 'react-redux';
import { NavModel } from '@grafana/data';
import { Pagination, Forms, Tooltip, HorizontalGroup, stylesFactory } from '@grafana/... |
import {Component} from '@angular/core';
import {NavController, NavParams} from 'ionic-angular';
import {ItemDetailsPage} from '../item-details/item-details';
@Component({
templateUrl: 'build/pages/list/list.html'
})
export class ListPage {
selectedItem: any;
icons: string[];
items: Array<{ title: str... |
import { greenhouseOptions } from '../greenhouse-options';
import { createHarvestConsumer } from '../harvest-consumer';
describe('harvest-consumer', () => {
const options = greenhouseOptions({
boardToken: process.env.BOARD_TOKEN,
harvestApiToken: process.env.HARVEST_TOKEN
})
const consumer = createHarv... |
import {Annotation, AnnotationView} from "./annotation"
import {TooltipAttachment} from "core/enums"
import {div, display, undisplay, empty, remove, classes} from "core/dom"
import * as p from "core/properties"
import {bk_tooltip, bk_tooltip_custom, bk_tooltip_arrow} from "styles/tooltips"
import {bk_left, bk_right, b... |
import { StateModule } from "./State";
import { OvaleCooldownClass, CooldownData } from "./Cooldown";
import { pairs, kpairs } from "@wowts/lua";
import { SpellCast } from "./LastSpell";
import { Profiler, OvaleProfilerClass } from "./Profiler";
import { Tracer, OvaleDebugClass } from "./Debug";
export class Cooldown... |
/*
Copyright 2022 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
import { EntityRepository, Repository } from "typeorm";
import { Task } from "./task.entity";
@EntityRepository(Task)
export class TasksRepository extends Repository<Task>{
} |
import expenses from '../../fixtures/expenses';
import setExpensesTotal from '../../selectors/expensesTotal';
describe('ExpensesTotal Selector', () => {
test('should return 0 if no expenses', () => {
expect(setExpensesTotal([])).toBe(0);
});
test('should correctly add up a single expense', () => {
expect... |
/*
* Copyright 2021 Salto Labs 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 ... |
import Control = require('./control');
export {Control};
export function getControl(ber: any): Control;
export class EntryChangeNotificationControl extends Control { }
export class PagedResultsControl extends Control { }
export class PersistentSearchControl extends Control { }
export class ServerSideSortingRequestCon... |
import { ethers } from "hardhat"
import { expect } from "chai";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/dist/src/signers";
import { constants } from "ethers";
import { WPowerPerp } from "../../typechain";
describe("WPowerPerp", function () {
let wsqueeth: WPowerPerp;
let controller: SignerWith... |
import Koa from "koa";
import bodyParser from 'koa-bodyparser';
import Router from 'koa-router';
import http from 'http';
import https from 'https';
import path from 'path';
import { initCurrencies } from "./currency";
import * as fs from "fs";
import { Logger } from "./log";
// if not exists create configuration file... |
const intRegEx = /^-?\d+$/
export function int(value: string) {
return intRegEx.test(value)
}
export const isInt = int
export const isInteger = int |
import readline from 'readline';
import { IState, IGame, IPlayer } from '../types';
export default abstract class NodeConsolePlayer<S extends IState, A> implements IPlayer<S, A> {
private rl: readline.Interface;
constructor(protected game: IGame<S, A>) {
this.rl = readline.createInterface({
input: proc... |
import {countLitNeighbors, parseGrid, part1, part2} from './18';
describe('Day 18', () => {
test('countLitNeighbors', () => {
expect(
countLitNeighbors(
parseGrid(`.#.#.#
...##.
#....#
..#...
#.#..#
####..`),
5,
0
)
).toEqual(1);
});
test('Part 1', () => {
expect(... |
import { Question, QuestionType, Page, Values, Errors } from '../lib/types'
import DatePicker from '../components/form-components/DatePicker'
import TextInput from '../components/form-components/TextInput'
import Select from '../components/form-components/Select'
import SingleSelect from '../components/form-components/... |
import { Glue42Web } from "../../web";
import { defaultConfig, defaultWorkerName, defaultAssetsBaseLocation, defaultConfigName } from "./defaults";
import { Glue42CoreConfig } from "../glue.config";
import { fetchTimeout } from "../utils";
const getRemoteConfig = async (userConfig: Glue42Web.Config): Promise<Glue42Cor... |
/**
* The base type of a category filter option.
*/
export interface DaffCategoryFilterOptionBase {
/**
* Whether or not the filter option is applied.
*/
applied: boolean;
} |
import * as TypeGraphQL from "type-graphql";
import { DecisionTreeWhereUniqueInput } from "../inputs/DecisionTreeWhereUniqueInput";
@TypeGraphQL.ArgsType()
export class DeleteDecisionTreeArgs {
@TypeGraphQL.Field((_type) => DecisionTreeWhereUniqueInput, {
nullable: false,
})
where!: DecisionTreeWhereUniqueIn... |
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerEx... |
import mongoose from "mongoose";
import Notification from "../../../client/core/src/models/Notification";
export default interface NotificationDocument extends Notification, mongoose.Document {} |
/** @jsx jsx */
import { jsx } from '@emotion/core';
import style from './style';
import { BaseProps } from '../types';
export default function BallSpinFadeLoader({ color, loading }: BaseProps) {
if (loading) {
return (
<div css={style(color)}>
<div/>
<div/>
... |
import { Component, HostBinding, Input } from '@angular/core';
@Component({
selector: 'trl-badge',
template: `<ng-content></ng-content>`,
styleUrls: ['./badge.component.scss'],
})
export class BadgeComponent {
@Input() @HostBinding('style.backgroundColor') color: string;
} |
import classNames from 'classnames'
import React from 'react'
import { AccessibleFieldProps } from './AccessibleFieldType'
import styles from './BaseControlInput.module.scss'
import { FormFieldLabel } from './FormFieldLabel'
import { FormFieldMessage } from './FormFieldMessage'
import { getValidStyle } from './utils'
... |
import "reflect-metadata";
import {closeTestingConnections, createTestingConnections, reloadTestingDatabases} from "../../../utils/test-utils";
import {Connection} from "../../../../src/connection/Connection";
import {Post} from "./entity/Post";
describe("repository > pagination", () => {
let connections: Connect... |
import React, { useState } from "react";
import Modal from "react-modal";
import api from "../api";
import { useLedger } from "../contexts/ledger";
export default function NewCommodityModal({ modalStatus, setModalStatus }) {
const ledgerContext = useLedger();
const [name, setName] = useState("");
const [descript... |
/*
* 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 React, { ReactElement } from 'react';
import { ReactWrapper } from 'en... |
import {IColumn, Column} from "../../column";
/*
Used to implement the AS clause as in,
SELECT
table AS aliased
...
*/
export type WithTableAlias<
ColumnT extends IColumn,
NewTableAliasT extends string
> = (
ColumnT extends IColumn ?
Column<{
readonly tableAlias : NewTableA... |
/*
* /*
* * Copyright 2012-2018 the original author or 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... |
// Copyright 2021 The Oppia Authors. 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 ap... |
import React, { useState } from 'react';
import { Input, AutoComplete } from 'antd';
import { SearchOutlined } from '@ant-design/icons';
import styled from 'styled-components';
import { AutoCompleteResultForEntity, EntityType } from '../../types.generated';
import { IconStyleType } from '../entity/Entity';
import Enti... |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Rx';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
import { ApiService } from './api.service';
@Injectable()
export class TagsService {
constructor (
private apiService: ApiService
) {}
getAll(): Observable<[st... |
/// <reference path="../../../../../node_modules/@types/jasmine/index.d.ts" />
import { TestBed, async, ComponentFixture, ComponentFixtureAutoDetect } from '@angular/core/testing';
import { BrowserModule, By } from "@angular/platform-browser";
import { PartyEventGamesComponent } from './party-event-games.component';
... |
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
firebaseConfig: {
apiKey: "AIzaSyDAankiYDz... |
/// <reference lib="webworker" />
/* eslint-disable no-restricted-globals, jest/require-hook */
import { clientsClaim, RouteHandlerCallbackOptions } from 'workbox-core';
import * as navigationPreload from 'workbox-navigation-preload';
import { precacheAndRoute } from 'workbox-precaching';
import type { PrecacheEntry }... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { SeriesService } from '../services/series.service';
import { NgForm } from '@angular/forms';
@Component({
selector: 'app-serie-edite',
templateUrl: './serie-edite.component.html',
styleUrls: ['./ser... |
import { GraphQLScalarType } from 'graphql';
export declare const GraphQLPositiveFloat: GraphQLScalarType; |
import afs from 'fs/promises';
import path from 'path';
import createManifestFile, { error } from './createManifestFile';
describe('createManifestFile async function', () => {
const originalEnv = process.env;
const buildPath = process.env.TEST_BUILD_PATH as string;
const packageFilename = `${path.resolve(build... |
import Taro, { Component, Config } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import { Commen } from '../index/child/commen'
import './MovieType.scss'
export default class MovieType extends Component {
constructor() {
super(...arguments)
this.$router.params.tag && Taro.setN... |
import { useStaticQuery, graphql } from "gatsby"
export default () => {
const data = useStaticQuery(graphql`
query {
dog: file(relativePath: { eq: "images/404-dog.png" }) {
childImageSharp {
fluid(maxWidth: 2560) {
...GatsbyImageSharpFluid
}
}
}
}
... |
import fetch from 'cross-fetch'
import { isLeft } from 'fp-ts/lib/Either'
import { readFileSync } from 'fs'
import * as t from 'io-ts'
import { PathReporter } from 'io-ts/lib/PathReporter'
export enum ClaimTypes {
ATTESTATION_SERVICE_URL = 'ATTESTATION_SERVICE_URL',
DOMAIN = 'DOMAIN',
NAME = 'NAME',
PROFILE_PI... |
declare module '*.svg' {
const content: any;
export default content;
}
declare module '*.png' {
const content: any;
export default content;
}
declare module '*.jpg' {
const content: any;
export default content;
}
declare module '*.jpeg' {
const content: any;
export default content;
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bitcoin</source>
<translation>در مورد بیتکویین</translation>
... |
import {UserSessionMut} from '../../model';
import {LoginResult as LoginResultType} from '../types';
import {ResolversFor, Mutators} from './types';
import {publicMutator} from '../helpers';
const LoginResult: ResolversFor<LoginResultType, LoginResultType> = {
__resolveType: p => 'reason' in p ? 'FailedLogin' : 'U... |
// svg/image-multiple.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgImageMultiple = 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:xlink=... |
import type { App } from 'vue'
import type { SFCWithInstall } from '@/utils/types'
import Slider from './src/index.vue'
Slider.install = (app: App): void => {
app.component(Slider.name, Slider)
}
export default Slider as SFCWithInstall<typeof Slider> |
// *** 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";
/*... |
/**
* Copyright (c) 2017 Oliver Warrings <dev@qhun.de>
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
import { EnableGarbageCollection, GarbageCollector, Singleton } from '@shared';
import { suite, test, context } from 'mocha-typescript';
import { expect } from 'cha... |
import type {ValueOf} from '@twilio-paste/types';
import type {
MenuPrimitiveItemProps,
MenuPrimitiveProps,
MenuPrimitiveSeparatorProps,
} from '@twilio-paste/menu-primitive';
import type {MenuItemVariants} from './constants';
export type MenuProps = MenuPrimitiveProps & {'aria-label': string};
export type Menu... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { GatewayProviderAPI, GatewayProviderEvents } from '@src/core'
import { TypedEmitter } from 'tiny-typed-emitter'
import { WebSocketManager } from '@src/gateway/WebSocketManager'
import PartialGatewayOptions from '@src/gateway/interfaces/PartialGatewayOptions'
import { GatewayConnectOptions } from '@src/gateway/i... |
import { RequestHandler } from "express";
import { group } from "../../generators";
export default ((req, res) => {
res.status(200).send(group({ id: req.params.groupId }));
}) as RequestHandler; |
import type { gameRealTime } from './utils/types'
type gameState = {
ongoing: gameRealTime[],
finished: gameRealTime[],
gameIds: Set<string>
}
type action = {
type: string,
payload: gameRealTime
}
export default function gameDataReducer (state: gameState, action: action): gameState {
const { type, payloa... |
export default function removeJsExtension(name: string) {
return name.endsWith('.js') ? name.slice(0, -3) : name;
} |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from '../../environments/environment';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class CoinbaseService {
coinbaseApiUrl: ... |
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
text: 'Hello Vue & TypeScript!'
},
mutations: {
setText: (state, payload) => {
state.text = payload
}
},
actions: {
setText: (context, text) => {
context.commit('setText', text)
... |
/// <reference path="../typings/tsd.d.ts" />
import {computedFrom} from 'aurelia-framework';
import {Validation} from 'aurelia-validation';
@inject(Validation)
export class Welcome{
constructor(validation: Validation){
this.heading = 'Welcome to the Aurelia Navigation App!';
this.firstName = 'John';
thi... |
import { betterer } from '@betterer/betterer';
import { createFixture } from './fixture';
describe('betterer', () => {
it('should work when a test gets worse', async () => {
const { paths, logs, resolve, readFile, cleanup } = await createFixture('test-betterer-worse', {
'.betterer.js': `
const { smaller,... |
import axios, { AxiosError, AxiosResponse } from "axios";
import Router from "next/router";
import { IUser } from "../../models/auth";
import { store } from "../../store";
import { setCurrentUser } from "../../store/actions";
export const responseInterceptorHandleSuccess = ( response: AxiosResponse ) => {
return res... |
import { PagarmeClientInterface } from './client/pagarme-client.interface';
export interface PasswordStrategyInterface {
readonly strategy: 'password';
readonly email: string;
readonly password: string;
}
export interface ApiKeyStrategyInterface {
readonly strategy: 'apiKey';
readonly api_key: string;
}
exp... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ja" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bunkercoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<locatio... |
// Type definitions for react-native 0.55
// Project: https://github.com/facebook/react-native
// Definitions by: Eloy Durán <https://github.com/alloy>
// HuHuanming <https://github.com/huhuanming>
// Kyle Roach <https://github.com/iRoachie>
// Tim Wang <https://github.co... |
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { TransferService } from './transfer.service';
@Component({
selector: 'app-step1',
template: `
<form nz-form [formGroup]="form" (ngSubmit)="_submitForm()">
<div nz-form-ite... |
import React from 'react';
import { SvgCardProps } from './SvgCardProps';
export const Spades2SvgComponent = ({ width, height }: SvgCardProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
className="card"
height={height}
preserveAspectRatio="none"
vie... |
import { ITestCase } from '../../types/i-test-case';
import { IContext } from '../../types/i-context';
import {NumberImportsException} from '../exceptions/number-imports-exception';
let glob = require('glob');
import * as path from 'path';
import * as fs from 'fs';
export class AppNumberImportsTest implements ITestC... |
import React, { FC } from 'react';
import { Icon, IconInterface } from "@redesign-system/ui-core";
export const ClipboardTextPlayOutlineIcon: FC<IconInterface> = function ClipboardTextPlayOutlineIcon({
className,
...propsRest
}) {
const classNames = `ClipboardTextPlayOutlineIcon ${classNa... |
export interface SetupGame {
neutral: SetupNeutral;
players: Array<SetupPlayer>;
local: boolean;
}
export interface SetupPlayer {
name: string;
look: string;
}
export interface SetupNeutral extends SetupPlayer {
planets: number;
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MagicalFieldErrorComponent } from './magical-field-error.component';
describe('MagicalFieldErrorComponent', () => {
let component: MagicalFieldErrorComponent;
let fixture: ComponentFixture<MagicalFieldErrorComponent>;
beforeEach... |
/*
* Copyright 2015 Palantir Technologies, 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 req... |
// generated file index.ts
import DONUT_CHART from './donut_chart';
import HEATMAP from './heatmap';
import LINE_CHART from './line_chart';
import RADAR_CHART from './radar_chart';
import SANKEY_DIAGRAM from './sankey_diagram';
import SUNBURST_DIAGRAM from './sunburst_diagram';
export const ChartSymbols = {
DONUT_C... |
export * from './ekawara';
export * from './dwiwara';
export * from './triwara';
export * from './caturwara';
export * from './pancawara';
export * from './sadwara';
export * from './saptawara';
export * from './astawara';
export * from './sangawara';
export * from './dasawara'; |
import '../styles/header.scss'
export function Header() {
return (
<header className="header">
<div>
<img src="https://raw.githubusercontent.com/eduardoluizdev/todo/main/.github/logo.svg" alt="to.do" />
</div>
</header>
)
} |
// 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... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About mmocoin</source>
<translation>О mmocoin</translation>
</message>
<message>
<location li... |
import './web'
import './websocket' |
import * as React from "react";
import {
SearchkitComponent,
SortingAccessor,
FastClick,
SortingOptions,
SearchkitComponentProps,
SortingOption,
renderComponent,
RenderComponentType,
RenderComponentPropType
} from "../../../../core"
import {
Select, ListProps
} from "../../../ui"
const defaults = require("... |
import React, { Fragment } from 'react';
import { Field, FieldArray, FormikProps, getIn } from 'formik';
import CheckboxField from 'components/shared/CheckboxField';
import FieldErrorMsg from 'components/shared/FieldErrorMsg';
import FieldGroup from 'components/shared/FieldGroup';
import Label from 'components/shared/... |
import { Column, Entity, JoinTable, ManyToMany, OneToMany, PrimaryColumn } from 'typeorm';
import { OrderEntity } from './order_entity';
import { TakerAssetFillAmountEntity } from './taker_asset_fill_amount_entity';
@Entity({ name: 'transaction' })
export class TransactionEntity {
@PrimaryColumn()
public hash... |
/**
Copyright 2019 Forestry.io Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwa... |
import type { FormatRelativeFn } from '../../../types'
const formatRelativeLocale = {
lastWeek: "eeee 'اللي جاي الساعة' p",
yesterday: "'إمبارح الساعة' p",
today: "'النهاردة الساعة' p",
tomorrow: "'بكرة الساعة' p",
nextWeek: "eeee 'الساعة' p",
other: 'P',
}
const formatRelative: FormatRelativeFn = (token)... |
/*
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
import {
SmokeTestCase,
SmokeTestModel
} from '@aws-sdk/build-types';
/**
* @internal
*/
export function isSmokeTestModel(model: any): model is SmokeTestModel {
return typeof model === 'object'
&& model !== null
&& typeof model.version === 'number'
&& typeof model.defaultRegion ==... |
/** Provides a map with valid default properties */
import MediaScan from "../declaration";
import {filterDefaultProperties} from "../utils/utils_functions";
export function filterDefaultStringProperties(searchObject: MediaScan.DefaultSearchParameters): MediaScan.filterTuple<string|string[]>[] {
const propertiesNa... |
import { Component, Type, ViewChild, ChangeDetectionStrategy, Injectable, Directive } from '@angular/core';
import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { FormsModule, ReactiveFormsModule, FormGroup, FormControl, Validators } from '@angular/forms';
import { Nx... |
import logoImg from '../../assets/logo.svg'
import { Container, Content } from './styles'
interface HeaderProps {
onOpenNewTransactionModal: () => void;
}
export function Header({ onOpenNewTransactionModal}: HeaderProps){
return (
<Container>
<Content>
<img src={logoImg} alt="dt money" />
... |
import React from 'react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';
import './Tab3.css';
import SimpleMap from '../map';
const Tab3: React.FC = () => {
return (
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Map</IonTitle>
</IonToolbar>
... |
import * as React from 'react';
import { Table } from '../../../components/Table/Table';
import { IPageSectionProps, CodeSnippet, MarkdownHeader } from '@uifabric/example-app-base/lib/index2';
import { IStylesPageProps, StylesAreaPage } from '../StylesAreaPage';
import { LayoutPageProps } from './LayoutPage.doc';
impor... |
import React, { VFC, useCallback } from 'react'
import styled, { css } from 'styled-components'
import { Theme, useTheme } from '../../hooks/useTheme'
import { useOffsetHeight } from './dialogHelper'
import { DangerButton, PrimaryButton, SecondaryButton } from '../Button'
import { FaCheckCircleIcon, FaExclamationTria... |
import { ApiResponseBase } from '../../../models/apiResponseBase';
import { PhoneType } from './createUserAndLocationApiResponse';
import { ResourceType } from '../paidServices/getSoftwareSubscriptionsApiResponse';
import { LocationAccessLevel, LocationNotificationsCategory } from '../locations/getLocationUsersApiRespo... |
import {EducationAssignment} from '../../../../../../models/';
import {createEducationAssignmentFromDiscriminatorValue} from '../../../../../../models/createEducationAssignmentFromDiscriminatorValue';
import {SetUpResourcesFolderRequestBuilderPostRequestConfiguration} from './setUpResourcesFolderRequestBuilderPostReque... |
export class ModelNav {
color: string;
opacity:number;
backgroundColor: string;
bottom:number;
height:string;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.