text
stringlengths
10
953k
import type { Container } from "../Container"; import type { Particle } from "../Particle"; import { Utils } from "../../Utils"; import { Mover } from "./Mover"; import { DestroyType, OpacityAnimationStatus, OutMode, RotateDirection, SizeAnimationStatus } from "../../Enums"; import type { IBounds } from "../Interfaces/...
import type TableLayout from './table-layout'; import { Table } from './table/defaults'; declare function useLayoutObserver<T>(root: Table<T>): { tableLayout: TableLayout<T>; onColumnsChange: (layout: TableLayout<T>) => void; onScrollableChange: (layout: TableLayout<T>) => void; }; export default useLayoutO...
import cpuStats from 'cpu-stats' import net from 'net' import os from 'os' import {stores, setSingle} from '@statecraft/core' import {serveToSocket} from '@statecraft/net' process.on('unhandledRejection', err => { console.error((err as any).stack) process.exit(1) }) type CPU = {user: number, sys: number} type Cl...
import { renderHook, act } from '@testing-library/react-hooks'; import { useState } from 'react'; import useLocalStorageState from '../index'; describe('useLocalStorageState', () => { it('should be defined', () => { expect(useLocalStorageState).toBeDefined(); }); const setUp = <T>(key: string, value: T) => ...
/** * Naming strategy defines how auto-generated names for such things like table name, or table column gonna be * generated. */ export interface NamingStrategyInterface { /** * Naming strategy name. */ name?: string; /** * Normalizes table name. * * @param targetName Name of the...
/* * Public API Surface of sales */ export * from './lib/components/accounts/accounts.component'; export * from './lib/components/activities/activities.component'; export * from './lib/components/contacts/contacts.component'; export * from './lib/components/contact/contact.component'; export * from './lib/components...
import React from 'react'; import { ComponentMeta, ComponentStory } from '@storybook/react'; import ArtbeesFlow from '../index'; document.body.style.padding = '0'; const meta: ComponentMeta<typeof ArtbeesFlow> = { title: 'Artbees Flow - Static', component: ArtbeesFlow, argTypes: { nodes: { description...
import { Page } from './_types'; export enum KEY { CONTROL = '\uE051', META = '\uE053', ALT = '\uE00A', SHIFT = '\uE008', } type KeyboardKey = | 'ArrowRight' | 'ArrowLeft' | 'ArrowUp' | 'ArrowDown' | 'Shift' | 'Return' | 'Enter' | 'End' | 'Control' | 'KeyZ' | 'Backspace'; // https://git...
import { defineConfig } from "vitest/config" export default defineConfig({ test: { globals: true, environment: "jsdom", setupFiles: "./setupTests.ts", coverage: { reporter: ["text", "json"], }, }, })
version https://git-lfs.github.com/spec/v1 oid sha256:7e87e1d16b132b887c04907f933504d3adea976a931363dfdf834a44678405a0 size 278616
import { ITodo } from "@features/todos/todo-interface"; import { todosAction } from "@features/todos/todos-slice"; import { formatDistanceToNow, parseISO } from "date-fns"; import { toArray } from "react-emoji-render"; import { FaRegTrashAlt } from "react-icons/fa"; import { useDispatch } from "react-redux"; const par...
/* ** StandoffCase Copyright (C) 2020 sunaiclub ** Full License is in the root directory */ import { ErrorObject } from "app/components/other/Error"; import { useEffect, useMemo } from "react"; import { Action, QueryResponse, useQuery, UseQueryResponse } from "react-fetching-library"; import { DefaultReducers, useDi...
import React, { useState, createRef, useReducer } from 'react'; import { mount } from 'enzyme'; import { act } from 'react-dom/test-utils'; import { TestingAdaptor } from '../../../__tests__/helpers/adaptor'; import { View, useLoadOptions, useRenderedEffect, setGojiBlockingMode } from '../../..'; import { GojiProvider ...
import { IsOptional } from 'class-validator'; import { Category } from '@leaa/api/src/entrys'; export class CategoryUpdateOneReq { @IsOptional() name?: string; @IsOptional() slug?: string; @IsOptional() parent_id?: string | null; @IsOptional() description?: string; // @IsOptional() parent?: Ca...
import * as Kb from '../../common-adapters/mobile.native' import * as React from 'react' import * as Styles from '../../styles' import {FloatingRolePicker} from '../role-picker' import {pluralize} from '../../util/string' import {TeamRoleType} from '../../constants/types/teams' // Contact info coming from the native c...
import React from 'react'; import styled from 'react-emotion'; import {Location} from 'history'; import {t} from 'app/locale'; import Count from 'app/components/count'; import DateTime from 'app/components/dateTime'; import Link from 'app/components/links/link'; import ProjectBadge from 'app/components/idBadge/project...
// Visit The Stimulus Handbook for more details // https://stimulusjs.org/handbook/introduction // // This example controller works with specially annotated HTML like: // // <div data-controller="hello"> // <h1 data-target="hello.output"></h1> // </div> import { Controller } from 'stimulus' export default class ext...
import anyTest, {TestFn} from 'ava'; import { violentMonkeyContextMacro, GM_getValue, GM_setValue, } from '../src/index.js'; const test = anyTest as TestFn<{foo: string}>; test.beforeEach(t => { t.context = { foo: 'aa', }; }); test( 'violentMonkeyContextMacro with context', violentMonkeyContextMacro(), t ...
import { Chart as ChartJS, CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip, Legend, } from 'chart.js'; import { VFC } from 'react'; import { Line } from 'react-chartjs-2'; import { AccountContestPartHistory } from '../types'; ChartJS.register( CategoryScale, LinearScale, Poi...
export interface IChatPrinter { /** * Insert a new participant. * * @param name A new name */ insert(name: string): void; /** * Erase ordinary participant. * * @param name The name to erase */ erase(name: string): void; /** * Print talking to everyone...
import { Dispatch } from 'redux'; import { UsersActionType, UserType } from '@/types'; import { apiRequests, getHostUrl } from '@/utils'; export const getUsers = (payload: string) => async (dispatch: Dispatch) => { dispatch({ type: UsersActionType.GET_USER_LIST_LOADING }); try { const response = await apiRequ...
import Tile from "./Tile"; export default class TileGenerator { private index: number; private iterator: IterableIterator<Tile>; private readonly tiles?: Tile[]; constructor(tiles?: Tile[]) { this.tiles = tiles; this.index = 0; this.iterator = this.generator(); } nextValue = (): Tile => { ...
import { Events } from '../events'; import Cea608Parser, { CaptionScreen } from '../utils/cea-608-parser'; import OutputFilter from '../utils/output-filter'; import { parseWebVTT } from '../utils/webvtt-parser'; import { sendAddTrackEvent, clearCurrentCues, addCueToTrack, removeCuesInRange, } from '../utils/tex...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ReactiveFormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { FormsModule } from '@angular/forms'; import { FlexLayoutModule } from '@angular/flex-layout'; import { AgentR...
import { SVGProps } from "react"; declare const Ontology: (props: SVGProps<SVGSVGElement>) => JSX.Element; export default Ontology;
/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ---------------------------------------------------------------...
import { Component, ViewEncapsulation, ViewChild } from '@angular/core'; @Component({ selector: 'row-details-demo', template: ` <div> <h3> Row Detail Demo <small> <a href="https://github.com/swimlane/ngx-datatable/blob/master/demo/basic/row-detail.component.ts" target="_blank"> ...
import { DebugElement } from '@angular/core'; import { ComponentFixture, fakeAsync } from '@angular/core/testing'; import { createTestContext } from '@delon/testing'; import { NzTagComponent } from 'ng-zorro-antd/tag'; import { configureSFTestSuite, SFPage, TestFormComponent } from '../../../spec/base.spec'; import { S...
import React from 'react'; import { HivePlot } from './HivePlot'; import { nodes, links } from '../../demo'; import { range } from 'd3-array'; export default { title: 'Charts/Hive Plot', component: HivePlot }; export const Mini = () => ( <HivePlot height={250} width={250} axis={[ { label: 'Sev...
import { Module } from '@nestjs/common'; import { UsersService } from './users.service'; import { UsersController } from './users.controller'; import { MongooseModule } from '@nestjs/mongoose'; import { UserSchema } from './user.schema'; @Module({ imports: [MongooseModule.forFeature([{ name: 'User', schema: UserSche...
import React, { useState } from 'react' import { Table, Input, InputNumber, Popconfirm, Form, Typography } from 'antd' import './index.css' interface Item { key: string name: string age: number address: string } const originData: Item[] = [] for (let i = 0; i < 100; i++) { originData.push({ key: i.toStr...
import { Logger } from "../Misc/logger"; import { Observable } from "../Misc/observable"; import { Nullable } from "../types"; import { Vector3 } from "../Maths/math.vector"; import { Color3 } from '../Maths/math.color'; import { AbstractMesh } from "../Meshes/abstractMesh"; import { PolyhedronBuilder } from "../Meshes...
import { Component, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { SharedService } from '../../../layouts/shared-service'; import 'rxjs/add/operator/startWith'; const breadcrumb: any[] = [ { title: 'UI Elements', link: '#' }, { title: 'Material components', ...
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import ActivitiesList from '../pages/ActivitiesList'; import Help from '../pages/Help'; import Login from '../pages/Login'; import NotFound404 from '../pages/NotFound404'; import Time from '../pages/Time'; import ScheduleActivity from '../page...
import { FormControl, FormErrorMessage, FormHelperText, FormLabel } from "@chakra-ui/react"; import QuillInput from "@components/@core/quill-input"; import React from "react"; import { useController } from "react-hook-form"; interface IRichTextareaProps { name: string; label?: string; mb?: number; hint?: strin...
import * as React from 'react' import { WorkflowEventTaskConditionEval } from '../Signum.Entities.Workflow' import { TypeContext, EntityDetail } from '@framework/Lines' import CSharpCodeMirror from '../../Codemirror/CSharpCodeMirror'; import { useForceUpdate } from '@framework/Hooks' export interface WorkflowEventTask...
import React, {useEffect, useState, Suspense} from 'react'; import { useSelector, useDispatch } from 'react-redux'; import {Dropdown} from 'react-bootstrap'; import {Link, useLocation} from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import {ManufacturerDeviceModelsTable} from '../deviceModels...
import { Plugin, PluginKey, EditorState, Transaction } from 'prosemirror-state'; import { EditorPlugin } from '../../types'; import { isEmptyDocument } from '../../utils'; export const pluginKey = new PluginKey( 'clearMarksOnChangeToEmptyDocumentPlugin', ); export function createPlugin(): Plugin | undefined { ret...
// Adding a comment to the syntax will become the first // comment in the output source file. // import { ImportedThing } from './import_dir/thing'; import { Reader, Writer, util, configure } from 'protobufjs/minimal'; import { Timestamp } from './google/protobuf/timestamp'; import * as Long from 'long'; import { Str...
/* * 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 { Component } from '@angular/core'; @Component({ selector: 'user', template: ` <h1>Hello {{name}}</h1> <p>Email: {{email}}</p> <p>Address: {{address.street}} {{address.city}}, {{address.province}}</p> <button (click) = "toggleHobbies()">{{showHobbies ? "Hide Hobbies" : "Show Hobbies"}}</button> <d...
/// <reference path='../drop-down-base/drop-down-base-model.d.ts'/> import { EventHandler, Property, Event, compile, EmitType, KeyboardEvents, append, select } from '@syncfusion/ej2-base'; import { attributes, isNullOrUndefined, getUniqueID, formatUnit, isUndefined, getValue } from '@syncfusion/ej2-base'; import { Anim...
import { join } from 'path'; console.log(join(__dirname, `./app-engine-test.json`)) const test = require('firebase-functions-test')({ databaseURL: 'https://eddystone-test-e4cd3.firebaseio.com', storageBucket: 'eddystone-test-e4cd3.appspot.com', projectId: 'eddystone-test-e4cd3', }, join(__dirname, `./app-e...
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * 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 restrict...
import React from 'react'; import { render, screen } from '@testing-library/react'; import { FooterComponent } from '.'; describe('FooterComponent', () => { it('should render properly', () => { render(<FooterComponent />); const footerRepoLinkElement = screen.getByText('Repository'); expect(footerRepoLin...
export const logOnRequest = `<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" xmlns:tns=\"http://www.ul...
import {Room, Client} from "colyseus"; import {State} from "./State"; import {generateName} from "../utils/name_generator"; import {Ship, ShipPlayer, ShipRoom} from "./Ship"; import {MapSchema} from "@colyseus/schema/lib/types/MapSchema"; import * as Matter from 'matter-js'; import {createWalls} from "../../lib/matter-...
export const global = { URL: 'https://code-forum-api-rest.herokuapp.com/api/' } //'http://localhost:3000/api/'
import styled from 'styled-components'; import React from 'react'; import { NavLink } from 'react-router-dom'; import { hexToRGB } from '../../../utils/common'; export const Button = styled.button` display: flex; align-items: center; text-align: left; background: none; border: 0; cursor: pointer; paddin...
import { readFileSync } from 'fs-extra'; import { logger } from '../common/logger'; const commitRE = /^(revert: )?(fix|feat|docs|perf|test|types|build|chore|refactor|breaking change)(\(.+\))?: .{1,50}/; const mergeRE = /Merge branch /; export function commitLint() { const gitParams = process.env.HUSKY_GIT_PARAMS as...
import { TelemetryModule } from '@sunbird/telemetry'; import { SharedModule, ResourceService } from '@sunbird/shared'; import { CoreModule, UserService, SearchService, PlayerService , LearnerService, CoursesService} from '@sunbird/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import {...
import { Volume } from "memfs"; export const vol = new Volume();
import 'reflect-metadata'; import * as bodyParser from 'body-parser'; import { NextHandleFunction } from 'connect'; import { Container } from 'inversify'; import { Configuration, DefaultConfiguration } from './configuration'; import { InstanceHolder } from './instance.holder'; import { AddMockScenarioToPresetHandler ...
import { User } from './../auth/user.entity'; import { Task } from './task.entity'; import { EntityRepository, Repository } from 'typeorm'; import { GetTasksFilterDto } from './dto/get-task-filter.dto'; @EntityRepository(Task) export class TaskRepository extends Repository<Task> { async getTaks(filterDto: GetTasksFi...
import {Arg3, AssertExact} from "../../src"; declare type Test = [ AssertExact<undefined, Arg3<() => boolean>>, AssertExact<undefined, Arg3<(x: string) => true>>, AssertExact<undefined, Arg3<(x: string, y: boolean) => true>>, AssertExact<undefined, Arg3<(x: string, y: boolean | undefined) => true>>,...
/* tslint:disable */ /* eslint-disable */ /** * Selling Partner API for Merchant Fulfillment * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * The version of the OpenAPI document...
import { AudiosPipe } from './audios.pipe'; describe('AudiosPipe', () => { it('create an instance', () => { const pipe = new AudiosPipe(); expect(pipe).toBeTruthy(); }); });
import test from 'ava'; import {array, Decoverto, model, property} from '../../src'; const decoverto = new Decoverto(); @model() class Person { @property({toInstance: () => 'Mark'}) firstName: string; @property(() => String, {toInstance: () => 'Foreman'}) lastName: string; getFullName() { ...
import { StyleSheet, css } from 'aphrodite'; import trim from 'lodash/trim'; import * as React from 'react'; import { Annotation } from '../types'; import { c, s } from './ThemeProvider'; type Props = { annotations: Annotation[]; onSelectFile: (path: string) => void; }; export default ({ annotations, onSelectFil...
import * as React from 'react'; interface ImageProps { alt?: string; title?: string; src?: string; style?: object; } /** * 文字 字体、大小、行高 * @param props */ const Image: React.ForwardRefRenderFunction<HTMLImageElement, ImageProps> = (props, ref) => { return <img {...props} ref={ref} />; }; const RefImage = R...
import WidgetBase from '@dojo/framework/widget-core/WidgetBase'; import { tsx } from '@dojo/framework/widget-core/tsx'; import Post from '../BlogPost'; import Outlet from '@dojo/framework/routing/Outlet'; export default class BlogPosts extends WidgetBase { protected render() { return ( <Outlet key="blog-pos...
import { Component, AfterContentInit, Input, Output, EventEmitter, HostBinding, ContentChildren, QueryList, OnDestroy } from "@angular/core"; import { SelectionTile } from "./selection-tile.component"; import { NG_VALUE_ACCESSOR } from "@angular/forms"; import { TileSelection } from "./tile-selection.interface...
class Parent { public constructor(public name: string, public description: string) {} } export default Parent;
import React from 'react' import { Meta, Story } from '@storybook/react' import { ButtonProps } from '../../components/button/Button' import { Button } from '../../components/' export default { title: 'components/Upload', component: Button, argTypes: { cap: { options: ['default', 'primary', 'ghost', '...
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * 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...
export { default as AppBar } from "./AppBar"; export * from "./AppBar"; export { default as AppBarTitle } from "./AppBarTitle"; export * from "./AppBarTitle"; export { default as AppBarNav } from "./AppBarNav"; export * from "./AppBarNav"; export { default as AppBarAction } from "./AppBarAction"; export * from "./Ap...
'use strict' const assert = require('assert'); describe('Website', function () { it('should be alive', function () { browser.url('/') const img = $('img[src="http://ip-5236.sunline.net.ua:38015/images/logotype.png"]') assert(img.isExisting(), 'Website should be opened, and logo displayed')...
import React from 'react' import { graphql } from 'gatsby' import Img from 'gatsby-image' import styled from 'styled-components' import { animated, useSpring, config } from 'react-spring' import Layout from '../components/layout' import GridItem from '../components/grid-item' import SEO from '../components/SEO' import ...
// Copyright 2017 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 { Component, OnInit } from '@angular/core'; import { routerTransition } from '../../router.animations'; import { WebService } from "../../ws.service"; import { Router,ActivatedRoute, Params} from '@angular/router'; @Component({ selector: 'app-viajes', templateUrl: './viajes.component.html', styleUrls: ['....
/** * @desc * * @使用场景 * * @Date 2019/5/31 **/ import {SchemaProps} from "./api"; import {IHandlePageParam} from "./util"; export interface IFileSaveOptions { projectOutDir: string; tplPath: string; toSaveFilePath: string; content: string; param?: IHandlePageParam } export interface IPageDefined { ...
import { GenericBuilderChain } from './generic-builder'; import { ComponentConstructor, IComponent } from './component'; import { IArchetypeValue } from './archetype-value'; // eslint-disable-next-line import/no-cycle import { SystemFactory, SystemTicker, SystemRender } from './system'; import { EntityId } from '../ent...
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import path from 'path'; import JestHasteMap from 'jest-haste-map'; import {cleanup, writeFiles} from '../Uti...
/** * Created by rsamec on 29.7.2014. */ ///<reference path='../../../typings/node/node.d.ts'/> ///<reference path='../../../typings/underscore/underscore.d.ts'/> ///<reference path='../../../typings/q/q.d.ts'/> ///<reference path='../../../typings/moment/moment.d.ts'/> ///<reference path='../../../dist/vacationAppr...
import { Entity, PrimaryColumn, Column, ManyToOne, JoinColumn, OneToMany, CreateDateColumn } from 'typeorm'; import { ObjectType, Field } from '@nestjs/graphql'; import { Environment } from '../environment/environment.entity'; import { Team } from '../team/team.entity'; import { TABLE_NAMES } from '../config/constant...
import { useHistory, useParams } from 'react-router-dom' import logoImg from '../assets/images/logo.svg'; import deleteImg from '../assets/images/delete.svg'; import checkImg from '../assets/images/check.svg'; import asnswerImg from '../assets/images/answer.svg'; import { Button } from '../components/button'; impo...
import { defineComponent } from 'vue' import { useStore } from '../index.state' export default defineComponent({ name: 'Counter', setup () { const state = useStore() const handleClick = () => state.addOne() const handleShowVersion = () => windowBridge.sendToMain('show-app-version') return () => ( ...
export class Auto { id: number; marke: string; typ: string; }
import { withKnobs } from '@storybook/addon-knobs'; import { storiesOf } from '@storybook/react'; import React from 'react'; import { createBreakpoint } from '../src'; import ShowDocs from './util/ShowDocs'; const useBreakpointA = createBreakpoint(); const useBreakpointB = createBreakpoint({ mobileM: 350, laptop: 1024...
import * as React from "react"; import { IIconProps } from "../styled"; const SvgLogisticsColor18 = (props: IIconProps) => ( <svg xmlns="http://www.w3.org/2000/svg" id="LogisticsColor18_svg__Layer_1" x={0} y={0} viewBox="0 0 256 256" xmlSpace="preserve" width="1em" height="1em" {....
export interface Intern { _id: string; startDate: string status: string; completed: boolean; companyName: string; updatedAt: string, createdAt: string, companyActivityArea: string, companyAdress: string, companyEmail: string, companyFax: string, companyPhone: string, ...
import * as Router from "koa-router"; import authController from "./auth"; import registrationController from "./RegistrationController"; import apiController from "./api"; const indexRouter = new Router(); indexRouter.use(registrationController.routes()); indexRouter.use("/auth", authController.routes()); indexRout...
/* tslint:disable */ import { WebAPICallResult } from '../WebClient'; export type AdminUsergroupsAddTeamsResponse = WebAPICallResult & { ok?: boolean; error?: string; needed?: string; provided?: string; };
import React from 'react'; import { reportErrorToSentry } from '@commercetools-frontend/sentry'; import { ApplicationContext } from '@commercetools-frontend/application-shell-connectors'; import { hasSomePermissions, hasEveryPermissions, hasEveryActionRight, getInvalidPermissions, hasAppliedDataFence, } from ...
import * as React from "react"; import { IIconProps } from "../styled"; const SvgSpaceColor15 = (props: IIconProps) => ( <svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 128 128" width="1em" height="1em" {...props} > <path fill="#603416" d="M95.25 55....
import {Bot} from '../Bot'; import {PluginInterface} from '../plugin/PluginInterface'; import {CommandInterface} from './CommandInterface'; export interface CommandConstructor { new(bot: Bot, plugin: PluginInterface): CommandInterface; }
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from "@angular/router"; import { AppHttpService } from "../../../../settings/services/app-http.service"; @Component({ selector: 'app-educations-view', templateUrl: './educations-view.component.html', styleUrls: ['./...
import express from 'express'; import accessRoute from '@karibash/node-access-route'; const app = express(); const port = 3000; app.get('/', (request, response) => { response.json(accessRoute(request)); }); app.listen(port, () => { console.log(`Example app listening at http://127.0.0.1:${port}`); });
import { Component, Input, ChangeDetectorRef, ViewChild, ViewEncapsulation } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import { FormGroup, AbstractControl, FormBuilder, Validators, ValidatorFn, FormControl } from '@angular/forms'; //import { EntityService } fro...
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { HomeComponent } from './home.component'; describe('HomeComponent', () => { let component: HomeCompo...
// *** WARNING: this file was generated by test. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** export const ExampleEnum = { One: "one", Two: "two", } as const; export type ExampleEnum = (typeof ExampleEnum)[keyof typeof ExampleEnum]; export const ExampleEnumInput = { ...
import NavbarMain from "containers/NavbarMain"; import AboutMe from "containers/AboutMe"; import Experience from "containers/Experience"; import Home from "containers/Home"; import Portfolio from "containers/Portfolio"; import Skills from "containers/Skills"; import NavbarPortfoliio from "containers/NavbarPorfolio"; i...
import { ObjectId } from 'mongodb'; import * as mongoose from 'mongoose'; export const UserSchema = new mongoose.Schema({ fullName: { type: String, required: true }, address: { type: String, required: true }, email: { type: String, required: true }, role: { type: String, required: true }, password: { type: S...
import { IncomingMessage, ServerResponse } from 'http'; import zlib from 'zlib'; // node.js standard lib export type RenderCallback = (errorValue: Error, successValue?: any) => void; export type RenderFunction = (callback: RenderCallback, ...args: any[]) => void; export interface AppInvocationInfo { renderFunction...
import * as React from 'react'; import cx from 'classnames'; import reactCSS from './helpers/reactcss'; import { ColorWrap, Saturation, Hue, Alpha, Checkboard } from './common'; import SketchFields from './SketchFields'; import SketchPresetColors from './SketchPresetColors'; const Sketch = ({ width, rgb, hex, ...
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {ItemComponent} from './item/item.component'; import { MatButtonModule, MatButtonToggleModule, MatCardModule, MatChipsModule, MatDialogModule, MatIconModule, MatInputModule, MatListModule, Ma...
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const tbRelationOneToMany: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const...
<TS language="pt_BR" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Clique com o botão direito para editar o endereço ou rótulo </translation> </message> <message> <source>Create a new address</so...
import {Routes} from "@angular/router"; import {DashboardComponent} from "../../pages/dashboard/dashboard.component"; import {TablesComponent} from "../../pages/tables/tables.component"; export const AdminLayoutRoutes: Routes = [ { path: "dashboard", component: DashboardComponent }, { path: "tables", component: ...
import "jest"; import { get } from "lodash-es"; import { getBreadcrumbs, getDataLocationsOfChildren, getLocationsFromObject, getNavigation, getReactChildrenLocationsFromSchema, getSchemaByDataLocation, getSchemaLocationSegmentsFromDataLocationSegments, HandleBreadcrumbClick, IBreadcr...