text stringlengths 10 953k |
|---|
import { NestFactory } from '@nestjs/core';
import { AppModule } from './modules/app.module';
import { ValidationPipe } from '@nestjs/common';
import { setupSwagger } from './util/swagger';
// master에서 작성
// 1
// 2
async function bootstrap() {
const app = await NestFactory.create(AppModule, { cors: true });
app.... |
import { TSubscription, TWSOptions } from '../types';
import { useDeribit } from './useDeribit';
import { useBitmex } from './useBitmex';
export const useExchange = (
subscriptions: TSubscription[],
wsOptions?: TWSOptions
) => {
const deribit = useDeribit(subscriptions, wsOptions);
const bitmex = useBitmex(sub... |
import React from "react";
import "./sidebar.css";
import { sideMenu } from "../../constants/sideMenu";
import { Trans } from "react-i18next";
import { SidebarProps, SidebarState } from "./interface";
import { withRouter } from "react-router-dom";
const isElectron = require("is-electron");
class Sidebar extends React.C... |
//
// test codegen for instance properties
//
class A {
public p1 = 0;
private p2 = 0;
p3;
}
class B {
public p1 = 0;
private p2 = 0;
p3;
constructor() {}
}
class C {
constructor(public p1=0, private p2=0, p3=0) {}
}
//
// test requirements for super calls
//
class D { // NO ERROR
}
class E extends D { /... |
import StringBuilder from './StringBuilder';
const C_ESC_CHAR = '\'"`\\\b\f\n\r\t';
const C_ESC_SYMB = '\'"`\\bfnrt';
const MIN_PRINTABLE_CHAR = ' ';
export default class StringUtil {
public static isJavaIdentifier(str?: string | null): boolean {
if (str == null || str.length < 1)
return false;
return... |
import { TypedError } from './TypedError';
export interface DomainError extends TypedError {
message: string;
error?: any;
} |
import {IsString} from 'class-validator';
export class AuthDto {
@IsString()
login: string;
@IsString()
password: string;
} |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-list',
templateUrl: './list.component.html',
styleUrls: ['./list.component.css']
})
export class ListComponent implements OnInit {
constructor() { }
ngOnInit() {
console.log(window['data'].articles[1].images[0]... |
import { OrderSide, OrderType, OrderTimeInForce } from './entities.js'
export interface AddToWatchList {
uuid: string
symbol: string
}
export interface CancelOrder {
order_id: string
}
export interface ClosePosition {
symbol: string
}
export interface CreateWatchList {
name: string
symbols?: string[]
}
... |
import { Module } from '@nestjs/common';
import { UserService } from './users.service';
import { MongooseModule } from '@nestjs/mongoose';
import { UserSchema } from './schemas/user.schema';
import { UserResolver } from './user.resolver';
import { CounterSchema } from 'src/utils/counters/schemas/counter.schema';
@Modu... |
import puppeteer from "puppeteer";
module.exports.CustomTest = class {
public name = 'Loads in less than';
constructor() {
}
public test = async (pageInContext: puppeteer.Page = page, maxLoadTime: number, args?: any) => {
const loadEvent: puppeteer.LoadEvent = args.loadEvent ? args.loadEvent ... |
import type { OperationContext } from '@commerce/api/operations'
import type { GetProductOperation } from '../../types/product'
import type { CommercejsConfig, Provider } from '../index'
import { normalizeProduct } from '../../utils/normalize-product'
export default function getProductOperation({
commerce,
}: Operat... |
import { Formik, Field } from 'formik';
import React from 'react';
import { useMutation } from '@apollo/client';
import { makeStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
import Button from '@material-ui/core/Button';
import { TextFie... |
import addCommas from "./add-commas"
export { addCommas } |
import { ChangeDetectionStrategy, Component, OnDestroy, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Observable, Subject } from 'rxjs';
import { filter, first, map, take, takeUntil } from 'rxjs/operators';
import { AccountFacade } from 'ish-core/facades/account.facade';
import { Ch... |
/*!
* @license
* Copyright 2016 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 app... |
#!/usr/bin/env node
import 'source-map-support/register';
import cdk = require('@aws-cdk/core');
import { BackendAggregatorStack } from '../lib/backend-aggregator-stack';
const app = new cdk.App();
new BackendAggregatorStack(app, 'BackendAggregatorStack'); |
// Copyright 2018 The Bazel 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 appl... |
import { TestBed } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { KeycloakService } from 'keycloak-angular';
import { MockAuthService } from 'test/mocks/mock-auth.service';
import { AuthService } from '@auth/... |
import { start, finish, text } from '~/lib/submit';
import { MessageType } from '~/type/flash';
import { showFlash } from '~/store/flash';
import type { UserRegister, UserRegisterResponse } from '~/type/user';
import type { ErrorResponse } from '~/type/error';
export const userRegister = async (body: UserRegister): Pr... |
import { isObject, SuperComponent, wxComponent } from '../common/src/index';
import props from './props';
import { MediaType, UploadMpConfig, UploadFile } from './type';
import config from '../common/config';
const { prefix } = config;
const name = `${prefix}-upload`;
@wxComponent()
export default class Upload extends... |
export const getBase64 = (file: Blob): Promise<string> => (
new Promise((resolve, reject) => {
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = (): void => resolve(reader.result as string);
reader.onerror = (error): void => reject(error);
})
); |
import * as React from "react";
import { Frame } from "framer";
import { addPropertyControls, ControlType } from "framer";
import {SvgOval } from "./Group/Oval";
import { WrapperSubgroup } from "./Group/WrapperSubgroup";
export function Wrappe... |
import { extend, arrayUnion } from './utils';
const PRIVATE_PREFIX = '$$';
const RESERVED_REGEX = /^(\$\$).*/;
function validateMethodName(name: string) {
if (!name) {
throw new Error(`Illegal method name. Empty method name is not allowed`);
} else if (name in this) {
throw new Error(`A member name '${name... |
import React from 'react';
import createSvgIcon from './helpers/createSvgIcon';
export default createSvgIcon(
<path d="M20 8.69V6c0-1.1-.9-2-2-2h-2.69l-1.9-1.9c-.78-.78-2.05-.78-2.83 0L8.69 4H6c-1.1 0-2 .9-2 2v2.69l-1.9 1.9c-.78.78-.78 2.05 0 2.83l1.9 1.9V18c0 1.1.9 2 2 2h2.69l1.9 1.9c.78.78 2.05.78 2.83 0l1.9-1.9H1... |
import * as React from "react";
import {
SpreadLayer, SpreadLayerProps, SpreadCircle, SpreadCircleProps,
} from "../spread_layer";
import { shallow } from "enzyme";
import { fakePlant } from "../../../../../__test_support__/fake_state/resources";
import {
fakeMapTransformProps,
} from "../../../../../__test_support... |
import { NgModule } from '@angular/core';
import { ModalManagerModule } from '@browninglogic/ng-modal';
import { LoadingIndicatorComponent } from './components/loading-indicator.component';
@NgModule({
imports: [ ModalManagerModule ],
declarations: [ LoadingIndicatorComponent ],
exports: [ LoadingIndicatorCompon... |
import Button from '@material-ui/core/Button';
import Step from '@material-ui/core/Step';
import StepLabel from '@material-ui/core/StepLabel';
import Stepper from '@material-ui/core/Stepper';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import { Form, Formik, FormikHelpers } from 'formik'... |
export interface HeaderOptionsItemProps {
Icon: (props: React.ComponentProps<"svg">) => JSX.Element;
IconClass?: string;
count?: number;
onClick?: () => void;
}
const HeaderOptionsItem: React.FC<HeaderOptionsItemProps> = ({
Icon,
IconClass,
count = 0,
onClick,
}) => {
return (
<div className="rel... |
// Type definitions for echarts 4.1.0
// Project: http://echarts.baidu.com/
// Definitions by: Xie Jingyang <https://github.com/xieisabug>
// AntiMoron <https://github.com/AntiMoron>
// Liveangela <https://github.com/liveangela>
// Ovilia <https://github.com/Ovilia>
// ... |
import * as Color from "color";
import { NodeCG } from "./nodecg";
import { Run } from "../nodecg/run";
import { removeEmpty } from "./lib/util";
export const relay = (nodecg: NodeCG) => {
const relayRep = nodecg.Replicant("relay", {
defaultValue: {
name: "",
runs: [],
color: "#bcbcff"
}
... |
import { flags } from '@cli-engine/command'
import { color } from '@heroku-cli/color'
import { cli } from 'cli-ux'
import { compare, objEntries } from '../../util'
import Command from '../base'
let examplePlugins = {
'heroku-ci': { version: '1.8.0' },
'heroku-cli-status': { version: '3.0.10', type: 'link' },
'... |
import * as bt from '@babel/types'
import babylon from '../../babel-parser'
jest.mock('../../utils/resolveRequired')
jest.mock('../../utils/resolvePathFrom')
jest.mock('../../parse')
import { Documentation } from '../../Documentation'
import { parseFile } from '../../parse'
import resolveExportedComponent from '../../u... |
import { PromptObject } from 'prompts';
import { promptQuestions } from '../../src';
import { getCommonSecrets, writeSecrets } from '../secrets-utils';
const questions: PromptObject[] = [
{
type: 'text',
name: 'apiKey',
message: [
'The OpenWeather example requires an API key, which can be acquired ... |
import { MigrationInterface, QueryRunner, Table } from "typeorm";
export class CreateSettigns1618933648712 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: "settings",
columns: [
{
... |
// Type definitions for ag-grid v5.4.0
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ceolter/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
import { IEventEmitter } from "../interfaces/iEventEmitter";
import { Context } from "../context/context";
import { Grid... |
import { Request, Response, Router } from 'express';
import BaseController from './BaseController';
import { IController } from '../../common/interfaces';
import { IVerificationService } from '@ethereum-sourcify/verification';
import { InputData, getChainId, Logger, PathBuffer, CheckedContract, isEmpty, PathContent, Ma... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const checkSchemaFor = (schema, definition) => {
if (schema?.content?.definitions) {
return schema.content.definitions[definition] !== undefined;
}
return false;
};
export const checkForPVASchema = (schema) => checkSchemaFor(schema, ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import * as React from 'react';
import { connect } from 'react-redux';
import { Identifiers } from '../../client/datascience/constants';
import { buildSettingsCss } from '../interactive-common/buildSettingsCss';
import { Con... |
///
/// Copyright © 2016-2020 The Thingsboard Authors
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// http://www.apache.org/licenses/LICENSE-2.0
///
/// Unless required by... |
/*
* 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 {join} from 'path';
import {testGroup} from 'test-vir';
import {getAllRecursiveFiles, sanitizedFilesDir} from '../repo-paths';
import {createSanitizedTestInput} from './sanitized-test';
async function getAllSanitizedFiles(): Promise<string[]> {
return Array.from(await getAllRecursiveFiles(sanitizedFilesDir)... |
import { Record, PaginationPayload, SortPayload } from '../../types';
import { GET_LIST } from '../..';
import { FETCH_END, FETCH_ERROR } from '../fetchActions';
import { NotificationSideEffect } from '../../sideEffect';
export declare const crudGetList: (resource: string, pagination: PaginationPayload, sort: SortPaylo... |
// Angular
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-pages-privacy',
templateUrl: './pages-privacy.component.html',
styleUrls: ['./pages-privacy.component.scss']
})
export class PagesPrivacyComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { createConfig, IConfig } from 'bighut-relabel';
export function makeConfig(): IConfig {
const config = createConfig();
config
.addLabel('back end')
.whenFilePath(/\.cs$/);
config
.addLabel('front end')
.whenFilePath(/\.(((t|j)sx?)|(s?css))$/);
config
.addLabel('database')
.wh... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const FaGrinSquintTears: IconType; |
import { Injectable } from '@angular/core';
import { Observable, timer } from 'rxjs';
import { share } from 'rxjs/operators';
@Injectable({ providedIn: 'root' })
export class TimeService {
timer: Observable<number>;
constructor() {
this.timer = timer(0, 1000);
}
getCurrentTime(): Observable<Date> {
r... |
/* Autogenerated by @sbb-esta/angular-icons schematics */
// tslint:disable
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
@Component({
selector: 'svg[sbbIconStopSmall]',
template: ` <svg:path fill="none" stroke="#000" d="M5.5 18.5h13v-13h-13z" /> `,
styles: [
`
:host-con... |
/** @packageDocumentation
* Listen Option Schnittstelle
*
* API-Version: 2.0
* Datum: 13.10.2021
*
* Letzte Aenderung: 13.10.2021
* Status: gelb
*
* @module listen
* @author SB
*/
// base
import { IBaseOption } from '@speech/base';
// asr
import { IASROption } from './asr/asr-option.interface';
/** @... |
// https://documentation.cpanel.net/display/DD/UAPI+Functions+-+SSL%3A%3Aset_autossl_excluded_domains
export interface setAutosslExcludedDomainsParameters {
domains?: string;
}
import { execute } from './index';
export default (param?: setAutosslExcludedDomainsParameters) => {
return execute({
function: 'set_... |
<TS language="en_US" version="2.1">
<context>
<name>AddNewAddressDialog</name>
<message>
<source>Dialog</source>
<translation>Dialog</translation>
</message>
<message>
<source>New Address</source>
<translation>New Address</translation>
</message>
<message>
... |
import { css, cx } from '@emotion/css';
import React, { FC, useState } from 'react';
import { GrafanaTheme2, ThemeRichColor } from '@grafana/data';
import { useTheme2 } from '../../themes/ThemeContext';
import { allButtonVariants, Button } from '../Button';
import { Card } from '../Card/Card';
import { CollapsableSec... |
import {ElementError} from '../errors/element-error'
import {ElementContext} from './element-context'
import type {Template} from '../html/template'
type NativeArguments = {
child?: DocumentFragment
children?: DocumentFragment[]
}
type Definition<P extends {} = {}> = (args: P & NativeArguments) => Template
expor... |
type state = {
[k: string]: any
}
export interface Opts {
namespace: string;
sessionStorage?: boolean;
keepAlive?: boolean;
}
export default function useKeepState(
initState: state,
opts?: string | Opts
) : [
state,
(args: state) => void,
(namespace?: string) => void
]; |
/*! *****************************************************************************
Copyright (c) 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... |
import React, { useEffect } from 'react'
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import Select from '@material-ui/core/Select';
import { observer } from "mobx-react";
import { CustomButton } from '@/components/custom-button';
import { useDeviceStore, use... |
import { AfterViewInit, Component, Input, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { NbThemeService } from '@nebular/theme';
import { takeWhile } from 'rxjs/operators';
import { LayoutService } from '../../../../@core/utils/layout.service';
declare const echarts: any;
@Component({
selecto... |
/**
* Bitbucket API
* Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
*
* The version of the OpenAPI document: 2.0
* Contact: support@bitbucket.org
*
* ... |
import { Occupancy } from '../interfaces/occupancy';
import { filter } from 'rxjs/operators';
export class Parking {
parkingNumber:string;
flatId:number;
parkingType: string;
parkingArea: number;
// unitDetailsIdFk: Occupancy = new Occupancy();
filter: any;
countOfAvailParkingSlots:number
} |
import {
ApexParserListener,
AnnotationContext,
InterfaceDeclarationContext,
ClassDeclarationContext,
} from 'apex-parser';
export default class ApexTypeListener implements ApexParserListener {
private apexType: ApexType = {
class: false,
testClass: false,
interface: false,
... |
import { Component } from '@angular/core';
// noinspection TsLint
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
constructor() {
this.title = 'Template Reference Variable In Angular 2/4/5';
this.title2 = 'This I... |
const spaces: {
none: 'none';
xxxs: 'xxxs';
// 4px
xxs: 'xxs';
// 8px
xs: 'xs';
// 12px
sm: 'sm';
// 16px
md: 'md';
//24px
lg: 'lg';
// 32px
xl: 'xl';
// 48px
xxl: 'xxl';
// 72px
xxxl: 'xxxl';
} = {
none: 'none',
xxxs: 'xxxs',
// 4px
xxs: 'xxs',
// 8px
xs: 'xs',
// 12px... |
import * as React from "react";
import {inject, observer} from "mobx-react";
@observer
export class Home extends React.Component<any> {
componentDidMount() {
}
render() {
return (
<div>
<h1>Welcome to Marketing Template Cms</h1>
</div>);
}
} |
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
... |
import '../src/testutils/extend-expect' |
import * as cpp from "../lib/cppjs/cppjs";
import { ultra64h } from "../events/includes/ultra64h";
/** Preprocess a given file. */
export async function preprocess(contents: string): Promise<string> {
return new Promise((resolve, reject) => {
const preprocessor = cpp.create({
include_func: (file, is_global... |
import Koa from 'koa';
import KoaCompress from 'koa-compress';
import KoaBodyParser from 'koa-bodyparser';
import KoaLogger from 'koa-logger';
import KoaRoute from 'koa-route';
import { RenderWorker } from './render-worker';
/**
* Configuration - Render
*/
const renderTimeout = +(process.env.RENDER_TIMEOUT || 10000)... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sv" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bricocoin</source>
<translation>Om Bricocoin</translation>
</mes... |
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { HttpClientModule } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } fr... |
import {Colors} from '@blueprintjs/core';
import gql from 'graphql-tag';
import * as React from 'react';
import styled from 'styled-components/macro';
import {ParentSolidNode, SVGLabeledParentRect} from 'src/graph/ParentSolidNode';
import {SVGViewport, DETAIL_ZOOM, SVGViewportInteractor} from 'src/graph/SVGViewport';
... |
import Phaser from 'phaser';
import scenes from './scenes';
const isProduction = process.env.NODE_ENV === 'production';
/**
* https://photonstorm.github.io/phaser3-docs/Phaser.Types.Core.html#.GameConfig
*/
new Phaser.Game({
width: 800, // 1024
height: 600, // 768
zoom: 2,
title: 'Phaser RPG',
url: 'http... |
import puppeteer, { Page, Browser } from 'puppeteer'
import treeKill from 'tree-kill';
import blockedHostsList from './blocked-hosts';
import { getDurationInDays, formatDate, getCleanText, getLocationFromText, statusLog, getHostname } from './utils'
import { SessionExpired } from './errors';
export interface Locatio... |
export interface Options {
// entry path
entry?: string;
// whether to support pc-side component props
pc?: boolean;
} |
import { mondayClient } from "../client/monday";
const monday = mondayClient();
type BoardsQueryResponse =
| {
data: { boards: BoardsProps[] };
errors: { message: string; locations: unknown[] }[];
account_id: string;
}
| undefined;
export type BoardsProps = { id: string; description: string... |
import { Router } from 'express'
import { body, query } from 'express-validator/check'
import {
getInfo,
getResultInfo,
getXhjInfo,
getXhjResultInfo,
payBuyOut,
payXhjBuyOut,
} from '../../controllers/account/buy-out'
import { handler } from '../../utils/router'
const router = Router()
// 轻松用买断逻辑
router.g... |
import { ReactElement, useEffect, useState } from "react";
// Custom Components
import { Header } from "@/components/Header";
import { Layout } from "@/components/Layout";
import { Box, Button, Paper } from "@mui/material";
import { NextLinkComposed } from "@/components/Link";
import AddIcon from '@mui/icons-material/... |
import { Bounds } from "../../math/primitives/bounds";
import { SubTexture } from "./sub-texture";
/**
* Helps us track the bounds of the image being loaded in tied in with the
* texture it represents
*/
export interface IPackNodeDimensions<T> {
data: T;
bounds: Bounds<any>;
}
/**
* This is used specifically ... |
// Copyright 2020-2021 OnFinality Limited authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { Injectable } from '@nestjs/common';
import { OnEvent } from '@nestjs/event-emitter';
import {
BestBlockPayload,
EventPayload,
IndexerEvent,
NetworkMetadataPayload,
ProcessBlockPayload,
TargetBlo... |
<TS language="ro" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click dreapta pentru a modifica adresa o eticheta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { type RESP
, type RedisRequest
, type RedisResponse
, encodeRESP
, decodeRESP
} from './protocol.ts'
import { auth
, expire
, get
, hset
, hget
, set
, setex
, zadd
, zcount
, zremrangebyscore
} from './commands.ts'
type ConnectOptions = {
hostname? : string
port?... |
import Renderer from '../../Renderer';
import Element from '../../../nodes/Element';
import Wrapper from '../shared/Wrapper';
import Block from '../../Block';
import { is_void } from '../../../../utils/names';
import FragmentWrapper from '../Fragment';
import { escape_html, string_literal } from '../../../utils/stringi... |
import React, { useEffect, useState } from "react";
import {
Image,
View,
ScrollView,
Text,
StyleSheet,
Dimensions,
Linking,
} from "react-native";
import MapView, { Marker } from "react-native-maps";
import { Feather, FontAwesome } from "@expo/vector-icons";
import mapMarkerImg from "../images/map-marke... |
import { Injectable } from '@angular/core';
import { HTTP_INTERCEPTORS, HttpErrorResponse, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { throwError } from 'rxjs';
import { catchError } from "rxjs/operators";
import { Store } from "@ngrx/store";
import * as fromAuth from '@auth/store... |
export let Global = {
url:"https://siacutpl.herokuapp.com/api/"
} |
import classnames from 'classnames';
import React from 'react';
import { useTranslation } from 'react-i18next';
import styles from './Loading.module.scss';
export enum LoadingSize {
Small,
Medium,
Large,
}
interface LoadingProps {
size?: LoadingSize;
}
const Loading: React.FunctionComponent<LoadingProps> = ... |
// tslint:disable no-magic-numbers
import { Integer, negative, to, Translation } from '@musical-patterns/utilities'
const DEFAULT_TRANSLATION_FOR_ALMOST_FULL_SUSTAIN: Translation = to.Translation(negative(0.1))
const COMPILER_PRECISION: Integer = to.Integer(5)
export {
COMPILER_PRECISION,
DEFAULT_TRANSLATIO... |
import React from "react";
import { useSelector } from "react-redux";
import { Modal, Button, Alert, Spinner } from "react-bootstrap";
import { Duty, Assignment, Ddah } from "../../../api/defs/types";
import { upsertDdah, ddahsSelector } from "../../../api/actions/ddahs";
import { DdahEditor } from "../../../components... |
import { useEffect, useState } from "react";
import { useMsal, useAccount } from "@azure/msal-react";
import Typography from "@material-ui/core/Typography";
const WelcomeName = () => {
const { accounts } = useMsal();
const account = useAccount(accounts[0] || {});
const [name, setName] = useState("");
... |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" {...props}>
<path d="M379.8 304.7c12.3-3.6 24.2 7.1 19.1 18.8-24.1 54.5-79 92.6-142.9 92.6-63.8 0-118.7-38.1-142.8-92.6-5.1-11.7 6.8-22.4 19.... |
import {Produto} from "./Produto"
export const listaProdutosCadastrados : Produto[] = [
{name: "Barra de cereal", price: 2.95, vegan: true},
{name: "Cerveja 1lt", price: 5.99, vegan: false},
{name: "Oléo de soja", price: 8.59, vegan: true},
{name: "Sorvete 2lt", price: 22.95, vegan: false},
{name: ... |
import {
Coal,
Fish,
Game,
Gems,
Gold,
Horse,
Oasis,
Oil,
Seal,
Shield,
} from '../../TerrainFeatures';
import {
Desert,
Forest,
Grassland,
Hills,
Jungle,
Mountains,
Ocean,
Plains,
River,
Swamp,
Tundra,
} from '../../Terrains';
import { Food, Production, Trade } from '../../Yie... |
import { _CacheSubnetGroup } from "./_CacheSubnetGroup";
import { Structure as _Structure_ } from "@aws-sdk/types";
export const CreateCacheSubnetGroupOutput: _Structure_ = {
type: "structure",
required: [],
members: {
CacheSubnetGroup: {
shape: _CacheSubnetGroup
}
}
}; |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
import { Component, OnInit } from '@angular/core';
import { DataprocessorService } from './dataprocessor.service';
import { Card } from './app.interface';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnIni... |
export interface PermisotaxisResponseInterface {
success: any;
result: any;
message?: string;
} |
// Type definitions for ag-grid v18.1.1
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { IComponent } from "../interfaces/iComponent";
import { IDateFilterParams } from "../filter/dateFilter";
export interface IDate {
/** Returns the current date represented... |
import * as TypeGraphQL from "type-graphql";
import * as GraphQLScalars from "graphql-scalars";
import { Prisma } from "@prisma/client";
import { DecimalJSScalar } from "../../scalars";
import { DateTimeFieldUpdateOperationsInput } from "../inputs/DateTimeFieldUpdateOperationsInput";
import { UserUpdateOneRequiredWitho... |
import { Context, GetterFunction, TextMapPropagator, SetterFunction, SpanContext } from '@opentelemetry/api';
export declare const TRACE_PARENT_HEADER = "traceparent";
export declare const TRACE_STATE_HEADER = "tracestate";
/**
* Parses information from the [traceparent] span tag and converts it into {@link SpanContex... |
export * from '@styled-icons/boxicons-logos/Wordpress' |
const imagine = (x: any) => `Imagine ${String(x)} in 2020.`;
export default imagine; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.