text stringlengths 10 953k |
|---|
import { Injectable } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { MatSnackBar } from '@angular/material/snack-bar';
import { TranslocoService } from '@ngneat/transloco';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
import { merge, Observable, Subject, Subscription... |
import { Request, Response } from "express";
import { CreateTagService } from "../services/CreateTagService";
class CreateTagController {
async handle(request: Request, response: Response){
const { name } = request.body; //desestruturação do atributo nome que vem do body params
const creat... |
// Some code in this file coming from https://github.com/microsoft/vscode/
// See LICENSE for details
export interface Position {
line: number;
character: number;
}
export abstract class Position {
static create(line: number, character: number): Position {
return { line, character };
}
static Min(...po... |
import { PublicKey } from "@solana/web3.js";
import { ICurve } from "@strata-foundation/spl-token-bonding";
import { useAccount, UseAccountState, useStrataSdks } from ".";
export function useCurve(
curve: PublicKey | undefined | null
): UseAccountState<ICurve> {
const { tokenBondingSdk } = useStrataSdks();
retu... |
// Author: Rui Deleterium
// Project: https://github.com/deleterium/SmartC
// License: BSD 3-Clause License
import { SmartC } from './SmartC/smartc'
import { tests, bytecodeTests, jestTests, jestBytecodeTests } from './templateTests'
export type CTestType = [string, boolean|null, string]
export type AssemblyTestType ... |
import { OmegaUp } from '../omegaup';
import { types } from '../api_types';
import Vue from 'vue';
import badge_List from '../components/badge/List.vue';
OmegaUp.on('ready', function () {
const payload = types.payloadParsers.BadgeListPayload();
new Vue({
el: '#main-container',
components: {
'omegaup... |
import React from 'react';
import classnames from 'classnames';
import { usePrefixCls, useControlledState } from '@gio-design/utils';
import format from 'date-fns/format';
import { CalendarOutlined } from '@gio-design/icons';
import Popover from '../popover';
import { InputButton } from '../input';
import StaticDateRan... |
import { makeStyles, Theme } from 'src/components/core/styles';
const useStyles = makeStyles((theme: Theme) => ({
menuGrid: {
minHeight: 64,
height: '100%',
width: '100%',
margin: 0,
padding: 0,
[theme.breakpoints.up('sm')]: {
minHeight: 72,
},
[theme.breakpoints.up('md')]: {
... |
import PropTypes from 'prop-types';
import React from 'react';
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
import QuickReplies from './QuickReplies';
import MessageText from './MessageText';
import MessageImage from './MessageImage';
import Time from './Time';
import { User, IMessage, LeftRightStyle... |
import { warn, invokeWithErrorHandling } from 'core/util/index'
import { cached, isUndef, isTrue, isArray } from 'shared/util'
import type { Component } from 'types/component'
const normalizeEvent = cached(
(
name: string
): {
name: string
once: boolean
capture: boolean
passive: boolean
han... |
/// <reference path="../externals.d.ts" />
import {expect} from '../test/mocha';
import {state} from './State';
describe('RingCentralHelpers.dictionaries.State', function() {
'use strict';
var states = [
{id: 1, country: {id: '1'}},
{id: 2, country: {id: '2'}},
{id: 3, country: {id: ... |
import {Theme as NavigationTheme} from '@react-navigation/native';
export interface Theme extends NavigationTheme {
name: ThemeName;
}
export enum ThemeName {
light = 'light',
dark = 'dark',
default = 'default',
} |
// @ts-nocheck
import { Plugin } from '/Users/ruizhengyun/run-kit/node_modules/@umijs/runtime';
const plugin = new Plugin({
validKeys: ['modifyClientRenderOpts','patchRoutes','rootContainer','render','onRouteChange','__mfsu',],
});
export { plugin }; |
import { BodyParams, Controller, Description, Get, PathParams, Post, Put, Req, Required } from "@tsed/common";
import { Authorize } from "@tsed/passport";
import { Summary } from "@tsed/swagger";
import { CustomAuth } from "../../middlewares/CustomAuth";
import { IAuthRequest } from "../../protocols/request";
import { ... |
export declare class ArrayIterator<T> implements Iterator<T> {
arr: T[];
index: number;
constructor(arr: T[]);
next(): IteratorResult<T>;
} |
import { Point } from "@nativescript/core/ui/core/view";
import { Property, View, Image, Color, EventData } from "@nativescript/core";
export class IndoorLevel {
public name: string;
public shortName: string;
}
export class IndoorBuilding {
public defaultLevelIndex: number;
public levels: IndoorLevel[... |
import {
blockchainTests,
constants,
expect,
filterLogsToArguments,
Numberish,
randomAddress,
} from '@0x/contracts-test-utils';
import { BigNumber, hexUtils } from '@0x/utils';
import { LogEntry } from 'ethereum-types';
import { artifacts } from '../artifacts';
import {
assertIntegerRoughl... |
import express, { Request, Response } from "express";
import request from "superagent";
import validator from "validator";
import { body } from "express-validator";
import { validateRequest } from "../middleware/validate-request";
const router = express.Router();
const BASE_URL =
"https://whoisapi-whois-v2-v1.p.r... |
import { Component, EventEmitter, OnInit, OnDestroy } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatOptionSelectionChange } from '@angular/material/core/option';
import { Store, select } from '@ngrx/store';
import { Observable, Subject, combineLatest } from 'rxjs... |
/* eslint-disable react/prop-types */
import * as React from 'react';
import { Grid } from '@material-ui/core';
import { ILabelSettings } from 'src/types';
import { getLanguageFromKey } from 'altinn-shared/utils';
import { HelpTextContainer } from './HelpTextContainer';
import { ILanguage } from 'altinn-shared/types';
... |
import TextToSVG from "text-to-svg";
import { fontOptions } from "./attr";
let textToSVG = null;
export const loadFontFamily = (fontFamily: string): void => {
textToSVG = TextToSVG.loadSync(fontFamily);
};
export const getSvg = (
text: string,
options?: { fontSize?: number; [propName: string]: any }
): string =>... |
import {
Controller,
Get,
Post,
Put,
Delete,
Param,
Body,
HttpCode,
HttpStatus,
HttpException,
NotFoundException,
NotAcceptableException
} from '@nestjs/common';
import { ProxyService } from '../proxy/proxy.service';
/**
* Add @Controller annotation to declare your class as Router controller.
... |
export type Company = {
id: string
name: string
speciality: string
city: string
logo: string
}
export type Order = 'asc' | 'desc'
export type OrderBy = 'name' | 'city' | 'speciality' |
import 'zone.js/dist/zone-mix';
import 'reflect-metadata';
import 'polyfills';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { Htt... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import Plugin from '../src/plugin'
import { configDefault, configMin, configPartial } from './helpers/config'
import { serverless } from './helpers/serverless'
import { options } from './helpers/options'
import { expectedPolicy } from './helpers/policy'
import { e... |
import React from 'react';
import PopperUnstyled, { PopperUnstyledProps } from '../PopperUnstyled';
import { UseMenuListboxSlotProps } from './useMenu.types';
export interface MenuUnstyledComponentsPropsOverrides {
}
export interface MenuUnstyledActions {
highlightFirstItem: () => void;
highlightLastItem: () =>... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { CheckoutErrorCode } from "./../../gqlTypes/globalTypes";
// ====================================================
// GraphQL mutation operation: AddCheckoutPromoCode
// ==================... |
export { API } from "./api";
export * as ApiResponse from "./apiResponse";
export * as Data from "./data";
export * as Enums from "./enums";
export * as Strings from "./strings"; |
import { GraphQLScalarType } from 'graphql';
import { Kind } from 'graphql/language';
function identity(value) {
return value;
}
function parseLiteral(ast, variables) {
switch (ast.kind) {
case Kind.STRING:
case Kind.BOOLEAN:
return ast.value;
case Kind.INT:
case Kind.FLOAT:
return par... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { AppsSharedModule } from '@apps/shared';
import { HlcClrFormModule } from '@ng-holistic/clr-forms';
import { ExampleSourceModule } from '../../example-source';
import { FormGroupsPageComponent } from './form-groups-page.co... |
import React, { ReactElement } from 'react';
import renderers, { renderBlock, renderInline, renderNoop } from './renderers';
import { Text, View } from '@react-pdf/renderer';
import parseHtml, { HtmlContent, HtmlElement } from './parse';
import { createHtmlStylesheet, HtmlStyles } from './styles';
import { Style } from... |
import { useEffect, useState } from "react";
export default function useDebounce(value: string, delay: number) {
const [debouncedValue, setDebouncedValue] = useState(value);
useEffect(() => {
const handler = setTimeout(() => {
setDebouncedValue(value);
}, delay);
return () => {
clearTimeo... |
/// <reference types="react" />
import EmailInput from '../../inputs/EmailInput';
import NumberInput from '../../inputs/NumberInput';
import ObjectInput from '../../inputs/ObjectInput';
import StringInput from '../../inputs/StringInput';
import { DateTimeInput, DateInput } from '../../inputs/DateInputs';
import TextInp... |
import { DafResolver } from 'daf-resolver'
import * as Daf from 'daf-core'
import * as DidJwt from 'daf-did-jwt'
import { IdentityProvider } from 'daf-ethr-did'
import { KeyManagementSystem } from 'daf-react-native-libsodium'
import * as W3c from 'daf-w3c'
import * as SD from 'daf-selective-disclosure'
import * as UR... |
import React from 'react';
import { AppLoading } from 'expo'
import { StatusBar, View } from 'react-native'
import {Roboto_400Regular, Roboto_500Medium} from '@expo-google-fonts/roboto'
import {Ubuntu_700Bold, useFonts} from '@expo-google-fonts/ubuntu'
import Routes from './src/routes';
export default function App()... |
import type { FC, SyntheticEvent } from 'react'
import Image from 'next/image'
import { useRouter } from 'next/router'
import { BiImageAlt } from 'react-icons/bi'
import { FiClipboard } from 'react-icons/fi'
import loader from 'utils/img-loader'
import { Manager } from 'types/manager'
import useNotificationStore from ... |
import { Element } from '../../../../../Class/Element/Element'
export interface I {}
export interface O {}
export default class SVGG extends Element<I, O> {
constructor() {
super({
i: ['class', 'style'],
o: [],
})
}
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Msszcoin</source>
<translation>&О Msszcoin</translation>
</m... |
import { addDisposableListener } from "vs/base/browser/dom";
import { Disposable } from "vs/base/common/lifecycle";
import { CommandBuffer } from "vs/fxdk/common/commandBuffer";
import { IConsoleDataAccessor } from "./consoleFrontendView";
export class ConsoleCmdInputController extends Disposable {
private readonly b... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SprkIconComponent } from '../sprk-icon/sprk-icon.component';
import { SprkLinkDirective } from '../../directives/sprk-link/sprk-link.directive';
import { SprkDropdownComponent } from './sprk-dropdown.component';
describe('SprkDropdownCo... |
import { ReactElement, useEffect, useState } from 'react'
import { ButtonVariant } from '@sebgroup/extract'
import { Button, ButtonProps } from '../button/button'
import { Group } from '../'
interface ButtonGroupProps {
children: ReactElement<ButtonProps> | ReactElement<ButtonProps>[]
selectedIndex?: number
vari... |
import { Action } from '@ngrx/store';
import ItemApi from '../Models/weather.model';
import { GeneralItem } from '../Models/item.model';
import ForecastApi from '../Models/forecast.model';
export enum CityActionTypes {
ADD_CITY = '[City] ADD_CITY',
ADD_CITY_ERROR = '[City] ADDED_CITY_ERROR',
ADDED_CITY = ... |
import type { PostConfig } from '$lib/types/post'
export const post: PostConfig = {
comment: {
use: ['Giscus', 'Webmention'],
style: 'boxed',
giscus: {
src: 'https://giscus.kwchang0831.dev/client.js',
repo: 'kwchang0831/kwchang0831.dev',
repoID: 'R_kgDOHPrjlQ',
category: 'Comments... |
// *** 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 { Observable, Subject, Subscriber, Subscription } from 'rxjs';
import { authenticate, loadAccessToken } from './authentication/authenticate';
import { TokenExpiredError } from './authentication/TokenExpiredError';
import { DexieCloudDB } from './db/DexieCloudDB';
const USER_INACTIVITY_TIMEOUT = 300_000; // 300_... |
import testExpression from '~/src/utils/testExpression';
export const expression = 'var a=2,o={a}';
export default () => testExpression(expression); |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { LgTemplate } from '@bfc/shared';
import React from 'react';
import { ArrayBasedStructuredResponseItem, PartialStructuredResponse } from '../types';
import { getTemplateId } from '../../utils/structuredResponse';
import { LGOption } fr... |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { RouterModule } from '@angular/router';
import { AppComponent } from './app.component'... |
export { ExampleProvider, useExample } from './Example' |
import {
Component,
Element,
Event,
EventEmitter,
h,
Host,
Listen,
Method,
Prop,
State,
} from '@stencil/core'
import { CodeChunk, codeChunk as makeCodeChunk, isA } from '@stencila/schema'
import { StencilaNodeUpdateEvent } from '../../globals/events'
import { CodeComponent, CodeVisibilityEvent } fr... |
import React from "react";
import { NextPage } from "next";
import Head from "next/head";
import Header from "../components/Header";
import PromoBanner from "../components/PromoBanner";
import UserActions from "../components/UserActions";
import Navigation from "../components/Navigation";
import SearchBox from "../com... |
import {
Connector as EthereumConnector,
Provider as EthereumProvider
} from "@ganache/ethereum";
import type {
Connector as FilecoinConnector,
Provider as FilecoinProvider
} from "@ganache/filecoin";
import {
EthereumDefaults,
EthereumProviderOptions,
EthereumLegacyProviderOptions
} from "@ganache/ethere... |
import React from 'react'
import { castArray, EasyValidator, EasyValidatorRules, EasyValidatorValidateReturn, isPlainObject, mapValues, Omit, pick, unique } from 'vtils'
import { isFunction } from 'vtils'
import { ListContainer } from './services'
import { PageName, Pages, pageUrls } from './pages'
import { StoreName, ... |
import {
Table,
Model,
Column,
DataType,
PrimaryKey,
ForeignKey,
BelongsTo,
} from 'sequelize-typescript';
import { Account } from '../../accounts/entities/account.entity';
export enum OrderStatus {
Pending = 'pending',
Approved = 'approved',
Rejected = 'rejected',
}
@Table({
tableName: 'orders'... |
import { assign, each, wrapBehavior } from '@antv/util';
import { View, ICanvas } from '../dependents';
interface InteractionCfg {
view: View;
startEvent?: string;
processEvent?: string;
endEvent?: string;
resetEvent?: string;
}
export interface InteractionConstructor {
new (cfg: any): Interaction;
}
con... |
import { Event, ModuleInterface, ModuleManager, RouterMiddleware, ServerService } from 'stix';
import * as config from '../config';
import { SchemaMiddleware } from './Middleware';
export class Module implements ModuleInterface {
public onBootstrap (event: Event<ModuleManager>): void {
const serviceManager = eve... |
import { DEFAULT_DATE_FORMAT, DEFAULT_LOCALE } from '../../../global/constants';
import moment, { Moment } from 'moment';
export const isValidStringDate = (inputText: string): boolean => {
const dateFormatRegExpYYYYMMDD = /^[0-9]{4}[-](0[1-9]|1[0-2])[-]([0-2]{1}[0-9]{1}|3[0-1]{1})$/;
return dateFormatRegExpYY... |
/**
* @license
* Copyright 2016 Palantir Technologies, 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... |
/*export default interface Property {
toObject(): any
}
*/ |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { WorkspaceComponent } from './workspace.component';
import { Component, NO_ERRORS_SCHEMA, Directive, Input } from '@angular/core';
@Component({ selector: 'app-breadcrumbs', t... |
import { ExtensibleObject, FlattenerResult, Interpolation, Styles } from '../types';
import { EMPTY_ARRAY } from '../utils/empties';
import flatten from '../utils/flatten';
import interleave from '../utils/interleave';
import isFunction from '../utils/isFunction';
import isPlainObject from '../utils/isPlainObject';
/*... |
import {
DatabaseMigrationServiceClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../DatabaseMigrationServiceClient";
import {
DescribeOrderableReplicationInstancesMessage,
DescribeOrderableReplicationInstancesResponse,
} from "../models/models_0";
import {
deserializeAws_json1_1Describe... |
import { errorUtil } from "./helpers/errorUtil.ts";
import {
addIssueToContext,
AsyncParseReturnType,
DIRTY,
getParsedType,
INVALID,
isAborted,
isAsync,
isDirty,
isValid,
makeIssue,
OK,
ParseContext,
ParseInput,
ParseParams,
ParseReturnType,
ParseStatus,
SyncParseReturnType,
ZodParse... |
/*!
* Copyright 2019, OpenTelemetry 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
import { act, renderHook, RenderHookResult } from '@testing-library/react-hooks';
import { RefObject } from 'react';
import { useHover, HookResult, HLPoint, HoverEffect, HoverProps } from './hover';
import { genPixelCompute } from '~client/components/graph/helpers';
describe('hover hook', () => {
const MyLabel: Hove... |
export class Group {
Id: number;
Name: string;
} |
// import * as _collections from './_collections';
// export const type = 'perItem';
// export const active = true;
// export const description = 'removes useless stroke and fill attributes';
// export const params = {
// stroke: true,
// fill: true,
// removeNone: false,
// hasStyleOrScript: false,
// };
... |
class AppState {
private _profile: string = null;
private _observer: (x: any) => void;
get profile(): string {
return this._profile;
}
set profile(newProfile: string) {
if (this._profile === newProfile) {
return;
}
this._profile = newProfile;
this._observer(this.getStateSnapshot()... |
import Phaser, { Game, Scene } from 'phaser'
export default class gameover extends Phaser.Scene{
public ganador1: any
public volver!: any
public texto!: any
constructor(scene: Scene){
super("gameover");
}
create(){
this.ganador1 = this.add.image(0,0, "ganador1").setOrigin... |
var scene: Scene;
interface NoiseAppParams {
vp : HTMLCanvasElement;
}
class NoiseApp {
renderer: Renderer;
camera: Camera;
dirty: boolean;
// material
noiseMat: VolumeMaterial;
// ui
dragging: boolean;
dragStart: gml.Vec2;
lastMousePos: gml.Vec2;
textureDataDownloadElement: HTMLAnchorElement... |
import {
ArrayDataFrame,
ArrayVector,
DataFrame,
DataLink,
DataTopic,
Field,
FieldType,
formatLabels,
getDisplayProcessor,
Labels,
MutableField,
ScopedVars,
TIME_SERIES_TIME_FIELD_NAME,
TIME_SERIES_VALUE_FIELD_NAME,
DataQueryResponse,
DataQueryRequest,
PreferredVisualisationType,
Cor... |
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
/* --- SERVICES --- */
import { LocalStorageService } from '../local-storage/local-storage.service';
@Injectable({
providedIn: 'root'
})
export class FiltersService {
private filter: BehaviorSubject<Filter[]> = new BehaviorS... |
import * as React from 'react'
import * as Styles from '../styles'
import {Box2} from './box'
import ClickableBox from './clickable-box'
import Avatar from './avatar'
import Text from './text'
import {IconType} from './icon.constants-gen'
import Icon from './icon'
type Props = {
icon: IconType
title: string
des... |
import React, { FC } from 'react'
import { SwatchOnly } from 'components/legend'
import * as Types from 'components/explore/types'
import { icons } from 'components/config'
import { FlagWithTitle } from './FlagWithTitle'
// TODO: forgot about `Status`. Include it?
// TODO: restore
export const SwatchOrFlagOrIconNew:... |
import React, { useEffect, useState } from "react";
import { createStyles, Grid, makeStyles } from "@material-ui/core";
import { Question, QuestionnaireEngine, Result } from "covquestions-js";
import { ResultComponent } from "./ResultComponent";
import { QuestionComponent } from "./QuestionComponent";
import { Question... |
import {Component, OnInit} from '@angular/core';
import {NavigationExtras} from '@angular/router';
import {Router} from '@angular/router';
@Component({
selector: 'app-new',
templateUrl: './new.page.html',
styleUrls: ['./new.page.scss'],
})
export class NewPage implements OnInit {
constructor(private router: Router... |
export interface DocumentSummary {
Name: string;
Type: string;
} |
/*
* @Author: your name
* @Date: 2020-12-11 19:20:05
* @LastEditTime: 2020-12-12 12:02:32
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \monitor-core\src\interfaces\index.d.ts
*/
interface ConfigI {
reportUrl: string;
}
interface BaseInfoI {
title: string;
locat... |
import SocketService from 'services/SocketService';
import * as API from 'types/api';
import PrivateChatConstants from 'constants/PrivateChatConstants';
import {
sendChatMessageDecorator, clearMessagesDecorator, setReadDecorator, fetchMessagesDecorator
} from './common/ChatActions';
export const changePrivateCha... |
import React from 'react';
import Container from 'components/ui/Container';
import Icon from 'components/ui/Icon';
import * as Styled from './styles';
const Footer: React.FC = () => (
<Styled.Footer>
<Container>
<Styled.Links>
<Styled.Link href="https://github.com/himanshu0128" rel="noreferrer no... |
/*! THIS FILE IS AUTO-GENERATED */
import { AuthPlus } from 'googleapis-common';
import { bigquery_v2 } from './v2';
export declare const VERSIONS: {
v2: typeof bigquery_v2.Bigquery;
};
export declare function bigquery(version: 'v2'): bigquery_v2.Bigquery;
export declare function bigquery(options: bigquery_v2.Optio... |
import { Component } from '@angular/core';
import { DatepickerDateCustomClasses } from 'ngx-bootstrap/datepicker';
@Component({
selector: 'demo-datepicker-date-custom-classes',
templateUrl: './date-custom-classes.html',
styleUrls: ['./date-custom-classes.scss']
})
export class DemoDatepickerDateCustomClassesComp... |
/// <reference path="../include.d.ts" />
import * as should from "should";
import * as mockFs from "mock-fs";
import { TranslationService } from "../../src/services/translation-service";
describe('TranslationService', function() {
describe('languages', function() {
it('displays correct language', async f... |
import { DownOutlined, UpOutlined } from '@ant-design/icons';
import { Button, Checkbox } from 'antd';
import { CheckboxChangeEvent } from 'antd/lib/checkbox';
import * as React from 'react';
import { useState } from 'react';
import styled from 'styled-components';
import { FacetMetadata } from '../../types.generated'... |
import { Adt, Fun } from '@ephox/katamari';
export type StrictField<T> = () => T;
export type DefaultedThunkField<T> = (fallbackThunk: (...rest: any[]) => any) => T;
export type AsOptionField<T> = () => T;
export type AsDefaultedOptionThunkField<T> = (fallbackThunk: (...rest: any[]) => any) => T;
export type MergeWith... |
import { Injectable, Logger, NotFoundException } from '@nestjs/common';
import { CreateTaskDto } from 'src/app/tasks/dto/create-task.dto';
import { TasksRepository } from 'src/app/tasks/tasks.repository';
import { Task } from 'src/app/tasks/task.entity';
import { TaskStatus } from 'src/app/tasks/task-status.enum';
impo... |
export { default as StartClient } from "./StartClient"; |
import { NextPage } from 'next';
const BackdropFilters: NextPage = () => {
return (
<div className="flex flex-col items-center justify-center min-h-screen p-4 space-y-8">
<div className="flex space-x-8">
<img
className="object-cover w-48 h-48 rounded-lg shadow-xl filter brightness-50"
... |
import { StreamRequestOptions } from "../internal/types";
const WEBSOCKET_OPTIONS_DEFAULTS: StreamRequestOptions = {
streamTimeout: Cypress.config("defaultCommandTimeout"),
retryDelay: 4000,
retryAttempts: 5,
startUpMessage: null,
startUpFn: (): void => {},
retryUntilFn: (): boolean => true,
takeWhileFn:... |
import { IStream } from 'iqs-libs-protocols-node';
import { IStreamable } from 'iqs-libs-protocols-node';
import { DataValue } from './DataValue';
export declare class Message implements IStreamable {
protocol_version: number;
type: number;
org_id: string;
gw_udi: string;
device_udi: string;
tim... |
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####... |
import ProductEdit from "modules/products/edit"
import ProductOption from "modules/products/edit/option"
import React from "react"
import { Route } from "react-router-dom"
const ProductDetails = props => {
return (
<div className="row row--no-gutter col-full-height scroll">
<div className="col-xs-12 col-sm... |
import { Node } from './node';
export class Edge {
constructor(name: string, tail: Node, head: Node) {
this._name = name;
this._tail = tail;
this._head = head;
}
public get name(): string {
return this._name;
}
public set name(newName: string) {
this._name = newName;
}
public get h... |
import { TStyleId } from "../structures/TStyleId";
export default (id: TStyleId): string =>
// @ts-ignore
id.__tsm_sid; |
import { Observable } from "rxjs/Rx";
import { Product } from "app/shared/models/product";
export class ShoppingCart {
constructor(
public $key: string,
public ownerId: string,
public products: Product[],
public totalPrice: number,
public dateOfOrder: Date,
public d... |
import "babel-polyfill"
import * as React from "react"
import Header from "./Header"
import ReactDOM from "react-dom"
import Settings from "./Settings"
import UsernamePicker from "./UsernamePicker"
interface State {
username: string
}
class Index extends React.Component<any, State> {
constructor(props) {
super(pr... |
import {ApplicationCommandData, ApplicationCommandPermissionData, BaseCommandInteraction} from "discord.js";
export interface Command {
data(): ApplicationCommandData
execute(interaction: BaseCommandInteraction)
permissions(): ApplicationCommandPermissionData[]
} |
import React from 'react';
import { css } from '@emotion/core';
import styled from '@emotion/styled';
import SEO from '../components/seo';
import { bgColor } from '../utils/colors';
const Container = styled.div`
background-color: ${bgColor};
display: flex;
align-items: center;
justify-content: center;
min-h... |
import { Element } from '../element';
export declare type BeforeElementActionHook = (element: Element, actionName: string) => void | Promise<void>; |
/// <reference path="IFeature.d.ts" />
/// <reference path="../model/IModel.d.ts" />
declare namespace NajsEloquent.Feature {
interface IFillableFeature extends IFeature {
/**
* Get the fillable attributes for the model.
*
* @param {Model} model
*/
getFillable(mod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.