text stringlengths 10 953k |
|---|
/* eslint-disable prettier/prettier */
export interface Job {
id?: string;
title: string;
salary: number;
description: string;
shift: string;
role: string;
} |
import { Module } from '@nestjs/common';
import { TopPageController } from './top-page.controller';
@Module({
controllers: [TopPageController]
})
export class TopPageModule {} |
import { Paginator } from "@aws-sdk/types";
import {
SearchProductsAsAdminCommand,
SearchProductsAsAdminCommandInput,
SearchProductsAsAdminCommandOutput,
} from "../commands/SearchProductsAsAdminCommand";
import { ServiceCatalog } from "../ServiceCatalog";
import { ServiceCatalogClient } from "../ServiceCatalogC... |
export type IOutLogErrorString = (constructorName: string, propertyKey: string, err: any) => string
function defaultErrorLog(constructorName: string, propertyKey: string, err: any): string {
return constructorName + '.' + propertyKey + ' threw error at ' + new Date(Date.now()).toUTCString() + ': ' + err;
}
/**
*... |
/**
* @license Angular v9.1.9
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
import { InjectionToken } from '@angular/core';
import { Location } from '@angular/common';
import { LocationChangeListener } from '@angular/common';
import { LocationStrategy } from '@angular/common';
import { Platform... |
import { Client, createAccount, NetworkType } from 'orbs-client-sdk';
import { LocalSigner } from 'orbs-client-sdk';
const ORBS_VIRTUAL_CHAIN_ID = 1_100_000; // The virtual chain Id on the Orbs network
const ORBS_NODE_ADDRESS = 'validator.orbs.com'; // The Orbs node that we will query
const PROTOCOL = 'https';
const O... |
import { Component, OnInit } from '@angular/core'
import { FormBuilder, FormGroup, Validators } from '@angular/forms'
import { BranchOffice } from 'src/app/shared/models/branch-office.model'
import { Period } from 'src/app/shared/models/period.model'
import { BranchOfficeService } from 'src/app/shared/services/branch-o... |
import React, { FunctionComponent } from "react";
import { Hello } from "@src/components/hello";
import { browser } from "webextension-polyfill-ts";
import { Scroller } from "@src/components/scroller";
import "./styles.scss";
// // // //
export const Popup: FunctionComponent = () => {
// Sends the `popupMounted` ... |
import { PartialType, IntersectionType, OmitType } from '@nestjs/mapped-types';
import { CreateSongDto } from './create-song.dto';
import { FindOneParams } from '../../shared/dto/find-one-params.dto';
export class UpdateSongDto extends IntersectionType(
FindOneParams,
PartialType(OmitType(CreateSongDto, ['albumId'... |
import {
Controller,
Post,
UseInterceptors,
UploadedFile,
UploadedFiles,
BadRequestException,
Logger,
Body,
Patch
} from '@nestjs/common';
import { FileInterceptor, FilesInterceptor } from '@nestjs/platform-express';
import { memoryStorage } from 'multer';
import { PhotosService } from './photos.service';
@Co... |
import React, { createContext, useContext, ReactNode } from 'react'
import { useColorScheme } from 'react-native'
import { Mode } from './types'
type ContextType = ReturnType<typeof useColorScheme>
export const ColorSchemeContext = createContext<ContextType>(null)
ColorSchemeContext.displayName = 'ColorSchemeContext'... |
// lesson 14
import React from "react";
import * as THREE from "three";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import { RectAreaLightHelper } from "three/examples/jsm/helpers/RectAreaLightHelper";
import { ThreeRenderer } from "Renderers/Three";
import type { ThreeSetupFn } from "R... |
import CallsListPanel from '../../components/CallsListPanel';
import { connectModule } from '../../lib/phoneContext';
const CallsListPage = connectModule((phone) => phone.callsListUI)(
CallsListPanel,
);
export { CallsListPage, CallsListPage as default }; |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faLadderWater: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligat... |
import * as interfaces from '../docstring_parts';
import { BaseFactory } from './base_factory'
import * as vscode from 'vscode';
export class SphinxFactory extends BaseFactory {
generateSummary(docstring: interfaces.DocstringParts){
if (this._includeName) {
this._snippet.appendText(`${docstrin... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import React, { useEffect, useState } from 'react';
import {
Text,
Input,
Flex,
Divider,
LinkIcon,
} from '@fluentui/react-northstar';
import * as microsoftTeams from '@microsoft/teams-js';
import LessonList from '../components/Lesson... |
import * as React from 'react';
function IconRestartSizeXs(props: React.SVGProps<SVGSVGElement>) {
return (
<svg viewBox="0 0 12 12" {...props}>
<path d="M1.5 1l1.18 1.376A5 5 0 0111.024 5H10v.004a4.002 4.002 0 00-6.668-1.867L4.5 4.5H1L1.5 1zm.417 7.886A5 5 0 011.102 7h1.025a4.002 4.002 0 006.667 1.863L7.6... |
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'core-js/es/reflect';
import 'zone.js';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-b... |
import React, { createContext } from 'react';
const dragContext = createContext<{
setElementDrag: (item?: { w: number; h: number }) => void;
elementDrag?: { w: number; h: number };
}>({
setElementDrag: () => {}
});
interface DragProviderProps {
children: React.ReactNode;
}
const DragProvider: React.FC<DragPro... |
import styled from "styled-components";
export const Container = styled.div`
background-color: #02044a;
color: #fff;
min-height: 100mv;
font-family: "Arial";
`;
export const Area = styled.div`
margin: auto;
max-width: 980px;
min-height: 100mv;
display: flex;
flex-direction: column;
`;
export const ... |
/**
* Base-class for any MHub client.
*
* Derived classes add actual transport logic to connect to
* e.g. a Node.JS websocket API, a browser version, or a version
* specifically for testing.
*/
import * as assert from "assert";
import * as events from "events";
import Message, { Headers } from "./message";
impo... |
/**
* <p>The tunnel options for a VPN connection.</p>
*/
export interface _VpnTunnelOptionsSpecification {
/**
* <p>The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway. </p> <p>Constraints: A size /30 CIDR ... |
import {Component, Inject, OnInit} from '@angular/core';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
@Component({
selector: 'app-verify',
templateUrl: './verify.component.html'
})
export class VerifyComponent implements OnInit {
_title: string;
constructor(public dialog: MatDialogRe... |
import tw from "twin.macro";
export default tw.span`
text-red-500 font-bold text-base
mt-4 top-4
transition-all duration-100 ease-in-out
`; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*
* Parser module
*
* const parse from'./parser';
*
* parse(text)
* Returns the abstract syntax tree for the given program text. This
* function will first pre-parse (figure out indents and dedents),
* then match against an Ohm grammar, then apply AST generation
* rules. If there a... |
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import * as cdk from "@aws-cdk/core";
import * as ssm from '@aws-cdk/aws-ssm'
import * as cloudfront from "@aws-cdk/aws-cloudfront";
import * as s3 from "@aws-cdk/aws-s3";
import { FrontendS3DeploymentStack } f... |
import { FC } from 'react';
import { QueryClient, QueryClientProvider } from 'react-query';
const queryClient = new QueryClient();
export const MockQuery: FC = (props) => {
const { children } = props;
return <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>;
};
export default MockQu... |
import { Box, Heading, Image, SimpleGrid, useColorModeValue } from '@chakra-ui/react'
import { GetStaticProps } from 'next'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
import NextLink from 'next/link'
import { useTranslation } from 'react-i18next'
import { Seo, Layout } from '@componen... |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { Channel, ChannelSchema } from './channel.schema';
import { ChannelsService } from './channels.service';
import { ChannelsResolver } from './channels.resolvers';
@Module({
imports: [
MongooseModule.forFeature([{ n... |
import { MatDialogModule, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { Component, Inject, Input, OnInit, Output } from '@angular/core';
import { EventEmitter } from 'events';
@Component({
selector: 'app-text-dialog',
templateUrl: './text-dialog.component.html',
})
export class TextDialogComponent {
... |
<TS language="pt" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clique com o botão direito do rato para editar o endereço ou a descrição</translation>
</message>
<message>
<source>Create a new ad... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/* Create basic easing functions
Usage:
var ease = easing.createEasing('easeOutQuint', 3000); // createEasings a 3 second duration easing function
ease(); // each call will return a value from 0 (at t=0) to 1.0 (at t>=duration)
https://gist.github.com/gre/1650294
*/
const easeIn = (power: number) => ... |
import * as React from 'react';
import mdxFiles from '../../mdx-manifest.json';
import Sidebar from '../Sidebar';
const orders = [
{
'': [
'getting-started',
'theming',
'styling-components',
'palette',
'global-styles',
'breakpoints',
'fonts',
'spacing',
'com... |
import Vue from 'vue';
import { arrayRemove } from '../../../../utils/array';
import { EventItem } from '../../../../_common/event-item/event-item.model';
import { FiresidePost } from '../../../../_common/fireside/post/post-model';
import { Game } from '../../../../_common/game/game.model';
import { User } from '../../... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilitie... |
import React, { Component } from 'react';
import cx from 'classnames';
import Link from 'next/link';
import { useRouter } from 'next/router';
import styles from './Pagination.module.scss';
import Select from '~/components/Select';
type Props = {
q: string;
total: number;
limit: number;
page: number;
};
const... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilitie... |
import { GetTenantMemberHandler } from './get-tenant-member.handler';
import { GetTenantMembersHandler } from './get-tenant-members.handler';
export const TenantMemberQueryHandlers = [
GetTenantMemberHandler,
GetTenantMembersHandler,
]; |
import { Component, DebugElement, Input } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { LgPaddingDirective } from './padding.directive';
@Component({
template: `
<div
[lgPadding]="lgPadding ? lgPaddi... |
// Copyright 2020 Google LLC
//
// 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 or agreed to in ... |
// import winston from 'winston';
// const { createLogger, transports } = winston;
// export default () => {
// // Enable rejection and exception handling when creating logger.
// createLogger({
// rejectionHandlers: [
// new transports.Console({ format: winston.format.simple() }),
// new transpor... |
import { StatefulImplementation, updateContextSymbol } from '../StatefulImplementation';
import { InternalLogger } from './InternalLogger';
function reconfigureObject(instance: Object | any, logger: InternalLogger) {
const newConfiguration = Object.keys(instance).reduce((config, property) => {
config[`_${propert... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DatosCarritoComponent } from './datos-carrito.component';
describe('DatosCarritoComponent', () => {
let component: DatosCarritoComponent;
let fixture: ComponentFixture<DatosCarritoComponent>;
beforeEach(async(() => {
TestBed... |
import { IFileInfo, FileInfo } from './file-info'
import { FileStatus } from './file-status'
export const files: IFileInfo[] = [
{
name: 'test-file-1.txt',
status: FileStatus.Encrypted,
size: 7855,
date: new Date(),
progress: 0,
file: null
},
{
n... |
import { expect } from 'chai';
import { latLng, point } from 'leaflet';
import {
EXAMPLE_CONTENT,
LatLng,
MapComponent,
Point,
PopupDirective,
} from './index';
describe('Popup Directive', () => {
let map: MapComponent;
let popup: PopupDirective;
beforeEach(() => {
map = new Map... |
// @vendors
import * as React from 'react';
import MonacoEditor from 'react-monaco-editor';
interface JsonEditorComponentProperty {
fileContent: string;
onEditorDidMount: (editor) => void;
onFormatDocument: () => void;
onInitialFormatDocument: () => void;
onUpdateLayer: () => void;
}
interface Jso... |
/*
* 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 { NotFoundException } from '@nestjs/common';
export class UserNotFoundError extends NotFoundException {
constructor(message = 'exception:USER_NOT_FOUND') {
super(message);
this.message = message;
this.name = 'UserNotFoundError';
}
} |
import { Fragment, h } from 'preact';
import { useEffect, useMemo, useState } from 'preact/hooks';
import striptags from 'striptags';
import fetch from 'unfetch';
import Container from '@material-ui/core/Container';
import CssBaseline from '@material-ui/core/CssBaseline';
import Grid from '@material-ui/core/Grid';
impo... |
import _ from 'lodash';
import { getMixedResult } from '../Utils';
import {
Policy,
PolicyArgs,
PolicyGrantArgs,
RolesType,
ScopesType,
} from './Types';
import { Options } from '../Common';
/**
* Use this policy to implicitly grant against roles and scope.
* ie. new Allow({ roles: ["user", "admin"], scope... |
import { DynamicModule } from '@nestjs/common';
import { METADATA } from '@nestjs/common/constants';
import { Type } from '@vendure/common/lib/shared-types';
import { notNullOrUndefined } from '../../../common/lib/shared-utils';
import { APIExtensionDefinition, PluginConfigurationFn, PluginLifecycleMethods } from './... |
import jwtDecode from 'jwt-decode';
import { getString, setString, removeItem } from './local-storage';
const AUTH_TOKEN = 'auth_token';
export interface TokenInterface {
getString: () => string;
getDecoded: () => DecodedToken | null;
setToken: (token: string) => void;
revokeToken: () => void;
}
exp... |
import Two = require("two.js");
{
// Make an instance of two and place it on the page.
const elem = document.getElementById("draw-shapes")!;
const params = { width: 285, height: 200 };
const two = new Two(params).appendTo(elem);
// two has convenience methods to create shapes.
const circle = tw... |
// export from modules
export * from './function';
export * from './listener';
export * from './number';
export * from './object';
export * from './sampling';
export * from './tree';
export * from './types';
export * from './url';
export * from './version'; |
import {
BadRequestException,
Body,
Controller,
Delete,
Get,
HttpCode,
HttpException,
HttpStatus,
NotFoundException,
Param,
ParseUUIDPipe,
Post,
Put,
Query,
UploadedFile,
UseGuards,
UseInterceptors,
} from '@nestjs/common';
import { FileInterceptor } from '@nestjs/platform-express';
im... |
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import { NodeOpacityControls } from '../../../../../controls/NodeOpacityControls'
import styled from 'styled-components'
export const NodeOpacityControlsPanel = () => {
return (
<Content>
... |
import { ChartConfig, ChartDataSectionType } from 'app/types/ChartConfig';
import { curry, pipe } from 'utils/object';
import {
isUnderUpperBound,
mergeChartStyleConfigs,
reachLowerBoundCount,
} from './chartHelper';
export const transferChartConfigs = (
targetConfig?: ChartConfig,
sourceConfig?: ChartConfig... |
// @ts-check
import factories from "../api"
import { uncachedLoaderFactory } from "lib/loaders/api/loader_without_cache_factory"
import gravity from "lib/apis/gravity"
export default opts => {
const { gravityLoaderWithoutAuthenticationFactory } = factories(opts)
const gravityLoader = gravityLoaderWithoutAuthentica... |
import { BigNumberish } from 'ethers';
import bigNumberishToNumber from './bigNumberishToNumber';
const numberFormatCurrency = Intl.NumberFormat(navigator.languages.slice(), {
style: 'currency',
currency: 'USD',
// currencyDisplay: 'narrowSymbol',
currencyDisplay: 'symbol',
});
const numberFormatToken = Intl.... |
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" />
import { Color } from 'tns-core-modules/color';
import { DrawingPadBase, penColorProperty, penWidthProperty } from './drawingpad-common';
declare var SignatureView: any;
export class DrawingPad extends DrawingPadBase {
constructor() {
s... |
/*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... |
import { SearchOptions, Device, Point } from '../../model';
import { DeviceDAO } from '../DeviceDAO';
import { Db, Filter } from 'mongodb';
import { fromString } from '../../../device/FilterParser';
import { getFilter } from './MongoFilterBuilder';
import { getSort } from './MongoSortBuilder';
// this class exists to ... |
/**
* ORY Oathkeeper
* ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
*
* The version of the OpenAPI document: v0.0.0-alpha.37
* Contact: hi@ory.am
*
* NOTE: This class is auto generated by ... |
import { Meta, Story } from "@storybook/react";
import { Button, ButtonProps, ButtonType } from "./Button";
export default {
component: Button,
title: "react components/Button",
} as Meta;
export const Playground: Story<ButtonProps> = (args) => <Button {...args} />;
Playground.args = {
children: "Button",
ty... |
export declare function help(): string;
export interface Options {
cwd: string;
save: boolean;
saveDev: boolean;
savePeer: boolean;
global: boolean;
verbose: boolean;
help: boolean;
}
export declare function exec(args: string[], options: Options): Promise<void>; |
import {
createLogger,
getLogLevel,
getMonorepoRoot
} from '@design-systems/cli-utils';
import fs from 'fs';
import path from 'path';
import changeCase from 'change-case';
import ts from 'typescript';
import postcss from 'postcss';
import postcssIcssSelectors from 'postcss-icss-selectors';
import { extractICSS } ... |
import { EventEmitter, forwardRef, Inject, Injectable } from '@angular/core';
import { AngularFireAuth } from '@angular/fire/auth';
import { MatSnackBar, MatSnackBarConfig, MAT_SNACK_BAR_DEFAULT_OPTIONS } from '@angular/material';
import { firebase } from '@firebase/app';
import '@firebase/auth';
import {Router} from '... |
/// <reference types="react" />
declare const PersonPoutingLightSkinTone: ({ size, rem }: {
size: number | string;
rem?: boolean | undefined;
}) => JSX.Element;
export default PersonPoutingLightSkinTone; |
import Logger from "../../src/logger";
class LoggerMock extends Logger {
log() {}
warn() {}
debug() {}
error() {}
}
export default new LoggerMock(); |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { OnlineTreksService } from '@app/services/online-treks/online-treks.service';
import { MapboxOptions } from 'mapbox-gl';
import { environment } from '@env/environment';
import { unsubscribe, U... |
/* GENERATED FILE */
import React, { useContext, useMemo } from 'react'
import { IconProps, IconContext } from '../lib'
import bold from '../bold/Plus'
import duotone from '../duotone/Plus'
import fill from '../fill/Plus'
import light from '../light/Plus'
import regular from '../regular/Plus'
import thin from '../thin... |
import './abstract-factory/client'; |
import { Jogador } from './'
export interface Time {
modalidade: string
jogadores: Array<Jogador>
} |
export interface GridColumnMenuState {
open: boolean;
field?: string;
id?: string;
labelledby?: string;
} |
import { minBy, remove } from 'lodash-es';
import { backtrace } from '../core/util';
import { calculateHeuristic } from '../core/heuristic';
import { Grid } from '../core/grid';
import {
IAStarFinderConstructor,
IPoint
} from '../interfaces/astar.interfaces';
import { Node } from '../core/node';
import { Heuristic... |
import { Component, OnInit } from '@angular/core';
import { ThemeService } from '../theme.service';
import { LangService } from '../lang.service';
import { AuthService } from '../auth.service';
import { FirebaseService } from '../firebase.service';
import { AngularFirestore } from '@angular/fire/firestore';
import { An... |
import { Config } from '@stencil/core';
export const config: Config = {
namespace: 'content-layouts',
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
},
{
type: 'dist-custom-elements',
},
{
type: 'docs-readme',
},
{
type: 'www',
serviceWo... |
import * as PropTypes from 'prop-types';
import * as React from 'react';
import FontAwesome = require('react-fontawesome');
import BoxToolButton from './BoxToolButton';
const contextTypes = {
$adminlte_box: PropTypes.shape({
collapsed: PropTypes.bool,
onCollapseToggle: PropTypes.func,
}),
};
const BoxColl... |
/*
* @adonisjs/mail
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/// <reference path="../../adonis-typings/mail.ts" />
import nodemailer from 'nodemailer'
import {
MessageNode,
Trap... |
import { GetServerSideProps } from 'next';
import Head from 'next/head';
import {
ExperienceBar,
Profile,
CompletedChallenges,
Countdown,
ChallengeBox,
} from '../components';
import styles from '../styles/pages/Home.module.css';
import { CountdownProvider } from '../contexts/CountdownContext';
import { Cha... |
import {BootMixin} from '@loopback/boot';
import {ApplicationConfig} from '@loopback/core';
import {
RestExplorerBindings,
RestExplorerComponent,
} from '@loopback/rest-explorer';
import multer from 'multer';
import {RepositoryMixin} from '@loopback/repository';
import {RestApplication} from '@loopback/rest';
impor... |
import { Component } from "@angular/core";
import "../../public/css/styles.css";
import InputComponent from "./input/InputComponent.ts";
import GameInfoComponent from "./GameInfoComponent.ts";
import GameHistory from "./GameHistory.ts";
import GameState from "./GameState.ts";
import PlayerInterface from "./player/Play... |
import { Optional } from '@ephox/katamari';
import * as Behaviour from '../../api/behaviour/Behaviour';
import { AlloyComponent } from '../../api/component/ComponentApi';
import { TransitionRoute } from './TransitionApis';
export interface TransitioningBehaviour extends Behaviour.AlloyBehaviour<TransitioningConfigSpe... |
const defaultTiming = "0.2s ease"
const bgTransition = `background ${defaultTiming}`
const colorTransition = `color ${defaultTiming}`
const defaultTransition = `${bgTransition}, ${colorTransition}`
export const transitions = {
DEFAULT: defaultTransition,
COLOR: colorTransition,
BACKGROUND: bgTransition,
ALL: d... |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import * as application from 'tns-core-modules/application';
@Injectable({
providedIn: 'root'
})
export class IoskeyboardobserverService {
public willHide$(): Observable<boolean> {
return new Observable((observer) => {
... |
import { AsyncNextFuncLike } from './types'
import AsyncIterableIteratorInstance from './async-iterable-iterator-instance'
export default <Element>(next: AsyncNextFuncLike<Element>) => new AsyncIterableIteratorInstance<Element>(next) |
import React from 'react';
import styles from './style.module.scss';
const Loader = (): any => {
return (
<div className={styles["wrapper"]}>
<div className={styles["box"]}>
<div className={styles["cube"]}></div>
<div className={styles["cube"]}></div>
<div className={styles["cube"]}></div>
... |
import { HeroSearchComponent } from './hero-search.component';
import { AppRoutingModule } from './app-routing.module';
import { RouterModule } from '@angular/router';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { NgModule } from '@angular/core';
impor... |
import { SiteViewFragment } from "types/SiteViewFragment";
import { SiteViewMutationInput, SiteViewOperation } from "types/globalTypes";
import { find, propEq, reject } from "ramda";
import { cloneDeep } from "apollo-utilities";
export const createMutation = (
name: string,
value: any
): SiteViewMutationInput => {... |
import {Observable} from "rxjs/Observable";
import {AppMetaEntry} from "../../../../electron/src/storage/types/app-meta";
export interface AppMetaManager {
getAppMeta(key?: string): Observable<AppMetaEntry | any>;
patchAppMeta(key: keyof AppMetaEntry, value: any): Promise<any>;
} |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Manages Token auth backend role in a Vault server. See ... |
import { Module } from "@nestjs/common";
import { AppApiModuleV1 } from "./v1/api.module";
@Module({
imports: [AppApiModuleV1]
})
export class AppApiModule { } |
import { Request, Response } from "express";
import pool from "../../utils/database";
class ModeloBienController{
public async leerTodos(req: any, res: Response){
// Se debe validar si el usuario tiene el privilegio de ejecutar este método.
if (req.pleer != 2) res.status(404).send('No tienes permis... |
import { Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { NotFoundComponent } from './not-found/not-found.component'
import { ApiComponent } from './api/api.component';
import { CallbackComponent } from './callback/callback.component';
export const ROUTES: Routes = [
{... |
import {
Body,
Controller,
Delete,
Get,
Param,
ParseIntPipe,
Post,
Put
} from '@nestjs/common';
import { ActionResponseService } from '../actionResponse/actionresponse.service';
import { Category } from './category.model';
import { CategoryService } from './category.service';
import { AddCategory, Updat... |
import { Connection, WorkspaceFolder } from 'vscode-languageserver/node';
import { getConfiguration, getWorkspaceFolders } from './vscode.config';
import { URI as Uri } from 'vscode-uri';
jest.mock('vscode-languageserver/node');
describe('Validate vscode config', () => {
test('getConfiguration', async () => {
... |
/**
* Effectually flat maps over the value type.
*
* @tsplus fluent ets/Exit flatMapEffect
*/
export function flatMapEffect_<E, A, R, E1, A1>(
self: Exit<E, A>,
f: (a: A) => Effect<R, E1, Exit<E, A1>>,
__tsplusTrace?: string
): Effect<R, E1, Exit<E, A1>> {
switch (self._tag) {
case "Failure":
retu... |
import { Shape } from '@antv/g';
import { ElementLabels, registerElementLabels } from '@antv/g2';
import * as _ from '@antv/util';
import { rgb2arr } from '../../../../util/color';
const TOP_MARGIN = 20;
interface Point {
[key: string]: any;
}
export class ColumnLabels extends ElementLabels {
public setLabelPosi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.