text stringlengths 10 953k |
|---|
import * as React from 'react';
import DateTimePicker from 'react-datetime-picker';
// full test of all props available
function Test1() {
const [value, onChange] = React.useState(new Date());
return (
<div>
<DateTimePicker
amPmAriaLabel={'AM / PM Label'}
au... |
import Component from '@ember/component';
// @ts-ignore: Ignore import of compiled template
import template from '../../../templates/components/configurable/containers/entity-feature-configs';
import { task } from 'ember-concurrency';
import { layout } from '@ember-decorators/component';
import { ETaskPromise } from '@... |
import {Descriptor, Plugin, SettingsType} from '@berry/core';
import {Workspace} from '@berry/core';
import entry from './commands/_entry';
import add from './commands/add';
import bin from './commands/bin... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { GamesComponent } from './components/games/games.component';
import { AddGameComponent } from './components/add-game/add-game.component';
import { FormsModule } f... |
export * from './db-add-account';
export * from './db-delete-account';
export * from './db-list-accounts';
export * from './db-update-account'; |
export declare function keyframes(componentId: string, block: () => void, firstName?: string): string; |
import { ParticipantStats } from './patricipant.stats';
import { jsonObject, jsonMember } from 'typedjson';
import { ParticipantTimeline } from './participant.timeline';
@jsonObject
export class Participant
{
@jsonMember
public stats: ParticipantStats;
@jsonMember
participantId: number;
@jsonMemb... |
import { Model } from './model/Model';
import { DataBuffer as DataBufferClass } from './data/DataBuffer';
import { DataCollector as DataCollectorClass } from './data/DataCollector';
import { DataConditionMatcher as DataConditionMatcherClass } from './data/DataConditionMatcher';
export declare namespace NajsEloquent.Dat... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ASTRACOIN</source>
<translation>Au sujet de ASTRACOIN</translation>
</message>
<message>
... |
import { FaPhone } from 'react-icons/fa';
export const LeaveRoom = () => {
const handleLeaveRoom = () => {
const siteUrl = window.location.origin;
window.location.href = siteUrl;
};
return (
<div className="meeting-icons bg--danger" onClick={handleLeaveRoom}>
<FaPhone size={'1.3em'} title="lea... |
import { set } from '../lib/d0s/set';
describe('set values on context', () => {
it('should set value to primitive', async () => {
let action = set('testValue', () => 'SETIT');
let result = await action({} as any);
expect(result).toEqual({
testValue: 'SETIT',
});
});
it('should set value to... |
// Copyright 2020 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 { of } from 'fp-ts/lib/IO';
import { withLogging } from '../withLogging';
describe('time 함수를 조합한 withLogging 함수 테스트', () => {
const spy = jest.spyOn(console, 'log').mockImplementation();
const baseTime = new Date().getTime();
beforeEach(() => {
let callCount = 0;
spyOn(window, 'Date').and.callFake... |
export * from '@styled-icons/fa-solid/LessThanEqual' |
import * as hash from 'object-hash'
import * as debug from 'debug'
import * as deepClone from 'clone'
import {Almanac} from './almanac'
let verbose = debug('json-rules-engine-verbose')
export interface FactOptions {
cache?: boolean
priority?: number
}
export class Fact {
static CONSTANT = 'CONSTANT'
... |
import { NgModule } from '@angular/core';
import { StackedPanelsComponent } from './stacked-panels.component';
import { StackedPanelComponent } from './stacked-panel/stacked-panel.component';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [
StackedPanelComponent,
StackedPanelsCompo... |
// Copyright 2019 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 { createjs, loadAssetAsync as _loadAssetAsync, ILoadAssetOption, IAnimateLibrary } from '@tawaship/pixi-animate-core';
import { CreatejsMovieClip } from './MovieClip';
export { createjs, ILoadAssetOption, IAnimateLibrary } from '@tawaship/pixi-animate-core';
/**
* @ignore
*/
declare const AdobeAn: any;
expor... |
import { AppPage } from './app.po';
describe('ngx-rslide App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
}); |
import React from 'react';
const ReduxFormInput: React.FC = (field: any) => (
<div>
<label>{field.label}</label>
<input
{...field.input}
type={field.type}
placeholder={field.placeHolder}
max={field.maxDate}
min={field.minDate}
... |
/*
* Copyright 2021 The Backstage 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 applicable law or ... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'pm-demo-content',
templateUrl: './demo-content.component.html',
styleUrls: ['./demo-content.component.css']
})
export class DemoContentComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { NgModule } from '@angular/core'
import { CommonModule } from '@angular/common'
import { RouterModule, Routes } from '@angular/router'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import { RatingModule } from 'ngx-bootstrap/rating'
import { TooltipModule } from 'ngx-bootstrap/tooltip'
impo... |
import {
DatabaseMigrationServiceClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../DatabaseMigrationServiceClient";
import { DescribeEndpointTypesMessage, DescribeEndpointTypesResponse } from "../models/models_0";
import {
deserializeAws_json1_1DescribeEndpointTypesCommand,
serializeAws_... |
import {createMockAdminStore} from "../../../../mocks/mockStore";
import {mockDisease, mockScenario, mockTouchstoneVersion} from "../../../../mocks/mockModels";
import {shallow} from "enzyme";
import {
ScenariosList,
ScenariosListComponent,
ScenariosListProps
} from "../../../../../main/admin/components/Tou... |
import { ModelData } from '~/types/models-data/ModelData';
export interface LanguageData extends ModelData {
code: string,
name: string
} |
import { createWebHashHistory, createRouter } from 'vue-router'
import Home from './views/Home.vue'
import Doc from './views/Doc.vue'
import SwitchDemo from './components/SwitchDemo.vue'
import ButtonDemo from './components/ButtonDemo.vue'
import DialogDemo from './components/DialogDemo.vue'
import TabsDemo from './com... |
export function up(knex) {
return knex.table("library", (table) => {
table.index("key", "library_key_index"),
table.index("song_title", "library_song_title_index"),
table.index("song_author", "library_song_author_index"),
table.index("uploader", "library_uploader_index");
});
}
export function down(knex) {
... |
import { Component, OnDestroy, OnInit } from '@angular/core'
import { Subscription } from 'rxjs'
import { AuthService } from '../auth/auth.service'
@Component(
{
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.css']
})
export class HeaderComponent implements OnIni... |
export * from './findScrollParent'
export * from './getUserPlatform' |
import coreModule from 'app/core/core_module';
import { DashboardModel } from '../dashboard/dashboard_model';
import { VizTypePicker } from '../dashboard/dashgrid/VizTypePicker';
import { react2AngularDirective } from 'app/core/utils/react2angular';
import { PanelPlugin } from 'app/types/plugins';
export class VizTabC... |
/*
* 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 moment from 'moment'
import morgan from 'morgan'
import chalk from 'chalk'
import environment from '../environments/environment'
export enum LogStyle{
succes,
info,
warning,
error
}
export class Logger {
private static instance: Logger
constructor() {
console.log('┌─────────... |
import { RequestedFields } from '../graphql/ast/RequestedFields';
import { AuthUser } from './AuthUserInterface';
import { DataLoaders } from './DataLoadersInterface';
import { DbConnection } from './DbConnection.interface';
export interface ResolverContext {
db?: DbConnection;
authorization?: string;
authUser?:... |
import { Message, MessageEmbed } from "discord.js";
import HexToDecimal from "../../Utils/HexToDecimal";
import ErrorEmbed from "../../Utils/Embeds/ErrorEmbed";
import BaseCommand from "../BaseCommand";
import CommandManager from "../CommandManager";
import BSApi from "beatsaver-api";
import * as types from "beatsaver-... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2020, 2021 Šimon Brandner <simon.bra.ag@gmail.com>
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 Licens... |
/*
* Copyright 2017 OICR
*
* 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... |
import { Service, MongooseServiceOptions } from 'feathers-mongoose';
import { Application } from '../../declarations';
import { Params, Id, Paginated } from '@feathersjs/feathers';
import { PlayerData, PlayerInitializer } from '../players/players.class';
export interface RoomInit {
number: string;
player: PlayerD... |
import { Type } from '../../../src/facade/lang';
import { RouteData } from '../../instruction';
export interface RouteHandler {
componentType: Type;
resolveComponentType(): Promise<any>;
data: RouteData;
} |
import { Box, Typography } from "@material-ui/core";
import * as QR from "avenger/lib/QueryResult";
import { useQueries } from "avenger/lib/react";
import * as NEA from "fp-ts/lib/NonEmptyArray";
import * as O from "fp-ts/lib/Option";
import { pipe } from "fp-ts/lib/function";
import * as React from "react";
import { Q... |
import styled from 'styled-components';
export const Container = styled.header`
background: var(--blue);
`;
export const Content = styled.div`
max-width: 1120px;
margin: 0 auto;
padding: 2rem 1rem 12rem;
display: flex;
align-items: center;
justify-content: space-between;
button {
font-size: 1rem... |
import styled from 'styled-components/native';
import {Platform} from 'react-native';
import {getStatusBarHeight} from 'react-native-iphone-x-helper';
import {moderateScale} from 'react-native-size-matters';
export const Container = styled.View`
padding-top: ${Platform.OS === 'ios' ? getStatusBarHeight() + 24 : 0}px... |
import { NumericValueAccessor } from '@ionic/angular';
export class Station {
id: number;
name: string;
latitude: number;
longitude: number;
cityId: number;
} |
import type { Plugin, CodeKeywordDefinition, ErrorObject } from "ajv";
declare type Kwd = "formatMaximum" | "formatMinimum" | "formatExclusiveMaximum" | "formatExclusiveMinimum";
declare type Comparison = "<=" | ">=" | "<" | ">";
export declare type LimitFormatError = ErrorObject<Kwd, {
limit: string;
compariso... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'example-list-item-disabled',
template: `
<div class="medium-4 columns">
<md-list>
<div md-list-item label='List Item A'></div>
<div md-list-item label='List Item B' [disabled]="true"></div>
</md-l... |
import {
Component,
Input,
Output,
EventEmitter,
ViewChild, ViewEncapsulation, ContentChild
} from '@angular/core';
import { Placement, PopperOptions } from 'popper.js';
import { PopoverDirective, PopoverFillMode } from './popover-directive/popover.directive';
import { PopoverDropdownComponent } fro... |
import {
Column,
CreateDateColumn,
Entity,
getRepository,
UpdateDateColumn,
} from 'typeorm'
import * as types from '@/types'
import { PapyrEntity } from './PapyrEntity'
import {
DbAwareColumn,
DbAwarePGC,
sanitizeConditions,
} from '../utilities'
@Entity()
export class Message extends PapyrEntity {
... |
import * as React from "react";
import type { AppProps } from "next/app";
import { useMemo } from "react";
import { CreateAppProps } from "../defs";
import { XUIProvider } from "@bluelibs/x-ui-react-bundle";
export const createApp = (props: CreateAppProps) => {
const { loadingComponent, kernel: baseKernel } = props;... |
import {MigrationInterface, QueryRunner, TableColumn} from "typeorm";
export class AlterUsersPassword1624552725879 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.addColumn(
"users",
new TableColumn({
name: "password",
type: "varchar",
... |
import { ComponentRef } from '@angular/core';
import { NgbModalBackdrop } from './modal-backdrop';
import { NgbModalWindow } from './modal-window';
import { ContentRef } from '../util/popup';
/**
* A reference to the currently opened (active) modal.
*
* Instances of this class can be injected into your component pas... |
/*
* Copyright (c) 2011 Vinay Pulim <vinay@milewise.com>
* MIT Licensed
*/
import * as assert from 'assert';
import * as BluebirdPromise from 'bluebird';
import * as concatStream from 'concat-stream';
import * as debugBuilder from 'debug';
import { EventEmitter } from 'events';
import { IncomingHttpHeaders } from '... |
import { jsesc } from "../deps.ts";
import invalidRawCodePoints from '../data/invalid-raw-code-points.json';
const string = String.fromCodePoint.apply(String, invalidRawCodePoints);
export const invalidCodePointsString = jsesc(string, { 'wrap': true }); |
import { ActionType, createAction, createStandardAction } from 'typesafe-actions';
import { CyData, CytoscapeClickEvent, NodeParamsType } from '../types/Graph';
import { Layout } from '../types/GraphFilter';
enum GraphActionKeys {
CHANGED = 'CHANGED',
SET_LAYOUT = 'SET_LAYOUT',
SET_NODE = 'SET_NODE',
UPDATE_GR... |
import React from "react"
const MaterialIcon = ({iconName, id}: { iconName: string; id?: string }) => {
return (
<i className={"material-icons"} id={id}>{iconName}</i>
)
};
export default MaterialIcon |
import { Document } from "mongoose";
export interface IDog extends Document {
_id: string;
name: string;
age: number;
breed: string;
} |
/*
* MIT License
*
* Copyright (c) 2017-2018 Stefano Cappa
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... |
import { FirebaseApp } from '@nativescript/firebase-core';
export interface IUserMetadata {
creationDate: Date;
lastSignInDate: Date;
}
export interface IUserInfo {
uid: string;
displayName: string;
email: string;
phoneNumber: string;
photoURL: string;
providerId: string;
}
export interface IAuthTokenResult ... |
import { noop as css } from '../../helpers/noop-template'
const styles = css`
[data-nextjs-dialog-left-right] {
display: flex;
flex-direction: row;
align-content: center;
align-items: center;
justify-content: space-between;
}
[data-nextjs-dialog-left-right] > nav > button {
display: inlin... |
/*
* (C) Copyright 2020 Ashik Meerankutty.
*
* 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... |
import { DateTime } from 'luxon'
import Hash from '@ioc:Adonis/Core/Hash'
import {
column,
beforeSave,
BaseModel,
computed
} from '@ioc:Adonis/Lucid/Orm'
export default class User extends BaseModel {
@column({ isPrimary: true })
public id: number
@column()
public name: string
@computed()
public g... |
import * as d from '../../declarations';
import { normalizePath } from '@utils';
import path from 'path';
export async function taskServe(process: NodeJS.Process, config: d.Config) {
config.suppressLogs = true;
config.flags.serve = true;
config.devServer.openBrowser = config.flags.open;
config.devServer.reloa... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';
import { Observable } from 'rxjs';
import { IMenujson } from '../models/_menu';
import { environment } from 'src/environments/environment';
import { catchError } from 'rxjs/operators';
@Injectable({
providedIn:... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const BsStarFill: IconType; |
import { JsonUtils } from '../utils/JsonUtils';
import { DependencyConfig } from './DependencyConfig';
import { StringUtils } from '../utils/StringUtils';
export class Config {
private _separator: string;
private _spaceSeparator: string;
private _csvSeparator = ',';
private _insertTime: string;
private _version: ... |
import Leaflet from 'leaflet';
import mapMarkerImg from '../img/map-marker.svg';
const mapIcon = Leaflet.icon({
iconUrl: mapMarkerImg,
iconSize: [58, 68],
iconAnchor: [29, 68],
popupAnchor: [0, -60]
})
export default mapIcon; |
export * from "./editor-page/EditorPage"; |
import {
LightsailClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../LightsailClient";
import {
CreateRelationalDatabaseFromSnapshotRequest,
CreateRelationalDatabaseFromSnapshotResult
} from "../models/index";
import {
deserializeAws_json1_1CreateRelationalDatabaseFromSnapshotCommand,
... |
import {
Ref,
ref,
shallowRef,
isRef,
unref,
reactive,
expectType,
proxyRefs,
toRef,
toRefs
} from './index'
function plainType(arg: number | Ref<number>) {
// ref coercing
const coerced = ref(arg)
expectType<Ref<number>>(coerced)
// isRef as type guard
if (isRef(arg)) {
expectType<R... |
import { NgModule } from "@angular/core";
import { RouterModule } from "@angular/router";
import { WelcomeComponent } from "./home/welcome.component";
import { PageNotFoundComponent } from "./page-not-found.component";
import { AuthGuard } from "./user/auth-guard.service";
import { SelectiveStrategy } from "./selective... |
export default function SocketMain(socket: any) {
console.log('A user has connected');
socket.on('disconnect', () => {
console.log('A user has disconnected');
});
} |
/* eslint-disable prettier/prettier */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable prettier/prettier */
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import {
IPaginationOptions,
paginate,
Pagination,
} from 'nestjs-typeorm-paginate';... |
import tmp from 'tmp'
import foxr from 'foxr'
import path from 'path'
import Timeout from 'await-timeout'
import * as jetpack from 'fs-jetpack'
class Profiles {
tmpDir: tmp.DirResult
static async new(binaryPath, extensionPath) {
const tmpDir = tmp.dirSync()
console.error('📄 Creating new Firefox Profile..... |
/*!
* @author electricessence / https://github.com/electricessence/
* Licensing: MIT
*/
import {
Action,
ActionWithIndex,
Closure,
Func,
HashSelector,
PredicateWithIndex,
SelectorWithIndex
} from "../System/FunctionTypes";
import IEnumerable from "../System/Collections/Enumeration/IEnumerable";
import Enum... |
import { Body, Controller, HttpCode, HttpStatus, Post } from '@nestjs/common';
import console from 'console';
import { AuthService } from './auth.service';
import { AuthDto, RegisterDto } from './dto';
@Controller('auth')
export class AuthController {
constructor(private authService: AuthService) {}
@Post('signin... |
import { Pipe, PipeTransform } from '@angular/core';
import {User} from "../model/user.model";
@Pipe({
name: 'userFilter'
})
export class UserFilterPipe implements PipeTransform {
transform(userList: User[], searchUser:string): User[] {
if(searchUser) {
return userList.filter((user: User) =>
use... |
import { render } from '@testing-library/react';
import React from 'react';
import { StraddledTimeline, TimelineDividerItem, TimelineMarkerItem, TimelineMarkerItemProps } from 'lib';
const items = [
{
id: 'one',
children: <div>Hello world</div>,
color: 'primary' as TimelineMarkerItemProps['color'],
p... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { UiButtonDirective } from './ui-button.directive';
import { WhenDirective } from './when.directive';
@NgModule({
declarations: [
AppComponent,
UiButton... |
import { LogLevel, LogLevelDesc } from './logger';
import {
AudioCaptureOptions,
CreateLocalTracksOptions,
TrackPublishDefaults,
VideoCaptureOptions,
} from './room/track/options';
import { AdaptiveStreamSettings } from './room/track/types';
/**
* Options for when creating a new room
*/
export interface Room... |
// Generated from the intersection of:
// - properties available on Cesium object
// - files in Source/**/*
// - typings in @types/cesium/index.d.ts
declare module "terriajs-cesium/Source/Core/AssociativeArray" {
export default Cesium.AssociativeArray;
}
declare module "terriajs-cesium/Source/Core/AxisAlignedBoundin... |
import '../weak-set.js';
describe('weakSet', () => {
type TestSuccess = [string, string, boolean, boolean];
test.each<TestSuccess>([
['WeakSet.from', 'from', true, true],
['WeakSet.isWeakSet', 'isWeakSet', true, true],
['WeakSet.of', 'of', true, true],
])('%s', (_, a, b, expected) => {
const d = ... |
import { isPlainObject } from './util'
export function transformRequest(data: any) {
if (isPlainObject(data)) {
return JSON.stringify(data)
}
return data
}
export function transformResponse(data: any) {
if (typeof data === 'string') {
try {
data = JSON.parse(data)
} catch (error) {
// ... |
/**
* @file Automatically generated by barrelsby.
*/
export * from './CliniaSearchOptions'; |
export var Colors = [
"000000",
"800000",
"008000",
"808000",
"000080",
"800080",
"008080",
"c0c0c0",
"808080",
"ff0000",
"00ff00",
"ffff00",
"0000ff",
"ff00ff",
"00ffff",
"ffffff",
"000000",
"00005f",
"000087",
"0000af",
"0000d7",
"0000ff",
"005f00",
"005f5f",
"005f87",
"005faf",
"005fd7",
... |
import { CommonFunctionsClass } from "Helpers/CommonFunctionsClass";
import { CommonPageObjectsandConstants as constants } from "Fixtures/PageObjects/CommonPageObjectsandConstants";
import { URLPageObject as URLPageObject } from "Fixtures/PageObjects/URLConstants";
let CommonFunctions = new CommonFunctionsClass();
//v... |
import React from 'react';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
import { OrderModel } from '../../models/Order.model';
import { Paper } from '@material-ui/core';
import OrderItemList from '../OrderItemList/OrderItemList';
import { makeStyles } from '@mate... |
import { Controller, Post, Body, Get, Param } from '@nestjs/common';
import { ProductsService } from './products.service';
@Controller('products')
export class ProductsController {
constructor(private readonly productsService: ProductsService) {}
@Post()
addProduct(
@Body('title') prodTitle: string,
@Bo... |
import {spawnSync} from "child_process";
import fs from "fs";
import path from "path";
import glob from "glob";
import console from "./log";
export function replace_all(str: string, search: string, replacement: string): string {
return str.split(search).join(replacement);
}
export function read_text(filepath: str... |
import React from 'react'
import {StyleSheet, Image, View} from 'react-native';
const styles = StyleSheet.create({
ratingView: {
display: 'flex',
flexDirection: 'row',
marginBottom: 10,
},
ratingIcon: {
marginRight: 5,
},
});
interface IRatingProps {
rating: number;
}
export default ({ratin... |
import { WebsiteModel, WebsitePageModel } from '../core/models/website.model';
import * as fromActions from './website.actions';
import * as fromReducer from './website.reducer';
describe('Website Reducer', () => {
const initialState = fromReducer.initialState;
const thrownError = 'some bad error';
let ... |
import { HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { finalize } from 'rxjs/operators';
import { CurrentCollectionsService } from '../../../entry/state/current-collections.service';
import { AlertService } from '../../../shared/alert/state/alert.service';
import ... |
import { gql } from 'apollo-server-express';
const motivationSchema = gql`
extend type Query {
motivations(input: [MotivationEnum]): [Motivation]
}
extend type Mutation {
setMotivation(input: [MotivationEnum]): [Motivation]
}
type Motivation {
id: ID!
motivation: String!
owner: User!
... |
import { Entity, Column, PrimaryGeneratedColumn,CreateDateColumn } from 'typeorm';
@Entity()
export class Customers {
@PrimaryGeneratedColumn()
id: number;
@Column({ length: 100 })
name: string;
@Column({ length: 100 })
phone: string;
@CreateDateColumn()
createdAt: Date;
} |
import { buildEventHandler } from '../Provider/Provider.events'
import { ToasterEventProps } from '../Toaster'
import { ToastOptions } from './ToasterList.interface'
export const { dispatch: notify, subscribe } =
buildEventHandler<ToasterEventProps | string, ToastOptions>() |
import * as React from "react"
import { Hide, Show, useBreakpoint } from "../src"
export default {
title: "Breakpoints",
}
export const show = () => (
<Show above="sm">
<div>Hey! I'll show above sm (480px)</div>
</Show>
)
export const hide = () => (
<Hide below="md">
<div>Hallos! I'll hide below 768p... |
/*!
* @license
* Copyright 2019 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... |
import * as React from 'react';
import Box from '@mui/material/Box';
import Button from '@mui/material/Button';
import Typography from '@mui/material/Typography';
import Paper from '@mui/material/Paper';
import Stack from '@mui/material/Stack';
import TextField from '@mui/material/TextField';
import { useForm, Controll... |
import '@aws-cdk/assert/jest';
import { Stack } from '@aws-cdk/core';
import * as iam from '../lib';
// tslint:disable:object-literal-key-quotes
describe('ImmutableRole', () => {
let stack: Stack;
let mutableRole: iam.Role;
let immutableRole: iam.IRole;
beforeEach(() => {
stack = new Stack();
mutable... |
import { LengthArgs, parseLengthParams, isLengthValid } from './length';
import { FieldValidationFunctionSync } from '../model';
import { parseMessageWithCustomArgs } from './validators.helpers';
const VALIDATOR_TYPE = 'MAX_LENGTH';
let defaultMessage = 'The value provided does not fulfill max length';
export const s... |
import React from 'react';
import { PNG, Diagram, TextBox, GeneralIcon } from 'rediagram';
import { AWS, InvizAWS, Lambda, S3, IAM } from '@rediagram/aws';
PNG(
<Diagram title="Git to S3 Webhooks">
<InvizAWS>
<AWS>
<Lambda name="Lambda 1" upstream={['Lambda 2']}>
AWS Lambda
</Lamb... |
export { default as TwoToneAirlineSeatFlat } from './Icon'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.