text stringlengths 10 953k |
|---|
import * as assert from 'assert'
import * as E from 'fp-ts/lib/Either'
import { FhirLibrary } from '../src/generated/FhirLibrary'
import * as Library from './fixtures/Library/library-cms146-example.json'
describe('FhirLibrary', () => {
it('should decode valid Library resources', () => {
assert.deepStrictEqual(Fh... |
import { Object3D } from 'three';
import Cloud from './cloud';
import { HALF_PI, TAU } from '../utils/math';
export default class Sky {
public mesh: Object3D;
constructor() {
// create an empty container that will hold the different parts of the sky
this.mesh = new Object3D();
// choose a number of c... |
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
import { ListAttachedRolePoliciesRequest, ListAttachedRolePoliciesResponse } from "../models/models_0";
import {
deserializeAws_queryListAttachedRolePoliciesCommand,
serializeAws_queryListAttachedRolePoliciesCommand,
} fr... |
import { getGreeting } from '../support/app.po';
describe('hed3-react', () => {
beforeEach(() => cy.visit('/'));
it('should display welcome message', () => {
// Custom command example, see `../support/commands.ts` file
cy.login('my-email@something.com', 'myPassword');
// Function helper example, see ... |
import { Company } from 'types/company'
import styles from './forms.module.scss'
import { FormInput } from './input'
import { Pricing } from './pricing'
import { Search } from './search'
interface Props {
company: Company
onChange: (value: Company) => void
className?: string
}
export function CompanyForm(props:... |
/*
MIT License
Copyright (c) 2019 Looker Data Sciences, Inc.
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, copy, mod... |
import { Component, Inject, OnInit } from '@angular/core';
import { MatTableDataSource } from '@angular/material/table';
import { ParqueoDetalle } from '@parqueo/shared/model/parqueo-detalle';
import { ParqueoService } from '@parqueo/shared/service/parqueo.service';
import {MatDialogRef, MAT_DIALOG_DATA} from '@angular... |
import React from 'react'
import { linkContainerStyles } from '../App.styles'
import Spinner from './Spinner'
type Props = {
handleSelectText: () => void
loading: boolean
link: string
copied: boolean
}
const Footer: React.FC<Props> = ({
handleSelectText,
loading,
link,
copied
}) => (
<footer>
{l... |
import { AbstractControl } from '@angular/forms';
import { NotificationQueueService } from './services/notification-queue.service';
import { EMAIL, PHONE_NUMBER } from '../core/constants/regex.constants';
import * as _ from 'lodash';
// form helpers. Validity hints and hide/show toggles
export class FormHelper {
sho... |
import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#f0f0f7'
},
teacherlist: {
marginTop: -40,
},
searchForm: {
marginBottom: 24,
},
label: {
color: '#d4c2ff',
fontFamily: 'Poppins_400Regular'
},
inputGroup: {... |
<TS language="da" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Double-click to edit address or label</source>
<translation>Dobbeltklik for at redigere adresse eller mærkat</translation>
</message>
<message>
<source>Create a new address</source>
... |
/// <reference types="react" />
import React from 'react';
import { TargetType } from 'dnd-core';
import { DropTargetSpec, DndOptions, DropTargetCollector, DndComponentClass } from './interfaces';
export default function DropTarget<P, S, TargetComponent extends React.Component<P, S> | React.StatelessComponent<P>, Colle... |
import { RouteRecordRaw } from 'vue-router'
const routes: RouteRecordRaw[] = [
{
path: '/login',
component: () => import("@/views/login/index.vue")
}
]
export default routes |
import * as eris from '@dyno.gg/eris';
import Utils from './Utils';
const utils = new Utils();
export default class Resolver {
/**
* Resolve username/id/mention
*/
public static async user(guild: eris.Guild, user: string, exact?: boolean): Promise<eris.Member|eris.User> {
if (!user) {
return null;
}
l... |
import {PureComponent} from "react";
import React from "react";
import {PropsInterface} from "../../interfaces/interfaces/PropsInterface";
import {Card} from "../Card";
import {TitleSubtitleInterface} from "../../interfaces/interfaces/TitleSubtitleInterface";
import {ProgressLabel, ProgressLabelInterfaceProps} from "..... |
import { isObject, isUndefined } from '@nestjs/common/utils/shared.utils';
import { fromEvent } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import {
CANCEL_EVENT,
GRPC_DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH,
GRPC_DEFAULT_MAX_SEND_MESSAGE_LENGTH,
GRPC_DEFAULT_PROTO_LOADER,
GRPC_DEFAULT_URL
} from '../... |
import { Chatle.AngularPage } from './app.po';
describe('chatle.angular App', () => {
let page: Chatle.AngularPage;
beforeEach(() => {
page = new Chatle.AngularPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
... |
import { createContext, useContext, JSX } from 'solid-js';
import { AnyStore } from './types';
export const StoreContext = createContext<AnyStore>([{}, {}]);
export const useStore = <T extends AnyStore>() =>
useContext<T>(StoreContext as any);
export const createStoreHook = <T extends AnyStore>(): (() => T) => use... |
import React from "react"
import { Layout } from "../../components/layout"
import { Intl } from "../../components/Intl"
import { graphql, } from "gatsby"
import { EmptyPageQuery } from "../../__generated__/gatsby-types"
type Props = {
pageContext: any
data: EmptyPageQuery
}
import "./css/tools.scss"
import { crea... |
import { ApiProperty } from '@nestjs/swagger';
export class LoginDTO {
@ApiProperty({ example: 'gabriel@gmail.com', description: 'E-mail do usuário.' })
email: string;
@ApiProperty({ example: 'Teste@123', description: 'Senha do usuário.' })
password: string;
@ApiProperty({ example: 84000, description: 'T... |
import * as React from "react";
import ContactUs from "./ContactUs";
export default (): JSX.Element => (
<div>
<ContactUs />
</div>
); |
import { levenshtein, Operation } from '../levenshtein';
import { hasLayout, ParsedTypeDetailed, isEnumMembers, isStructMembers } from './layout';
import { UpgradesError } from '../error';
import { StorageItem as _StorageItem, StructMember as _StructMember, StorageField as _StorageField } from './layout';
import { Layo... |
import { ImgAdmin } from './imgadmin/imgadmin.component';
import { DataTableModule } from 'angular2-datatable';
import { Ng2SmartTableModule } from 'ng2-smart-table';
import { NgbModalModule, NgbDropdownModule, NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap';
import { HttpModule } from '@angular/http';
import { Ng... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { execa } from 'execa';
import { isNativeError } from 'node:util/types';
interface PnpmInstallOptions {
ignoreScripts?: boolean;
}
/**
* Run `pnpm install` in the provided directory
*
* @returns A Promise that resolves once the installation is finished.
*/
export async function pnpmInstall(
cwd: string... |
import { Component, Injector } from '@angular/core';
import { MatSnackBarRef } from '@angular/material';
export declare type OSnackBarIconPosition = 'left' | 'right';
/**
* Configuration for showing a SnackBar with the SnackBar service.
*/
export class OSnackBarConfig {
/** Text shown in the action button. */
p... |
import { padStart, sortBy } from 'lodash';
import React from 'react';
import { AllowedTimeWindow, IAllowedTimesConstraint } from 'core/domain';
export interface GroupRange {
start: number;
end: number;
}
export const groupConsecutiveNumbers = (values: number[]) => {
const groups: GroupRange[] = [];
for (cons... |
interface ActionCallbackRegistry {
callbacks: {}
}
class SwitchboardController {
rootElement: HTMLElement;
// State Actions => Element Methods
actionCallbacks = {} as ActionCallbackRegistry;
key(o) { return btoa(o); }
setRootElement(rootElement: HTMLElement) {
this.rootElement = rootElement;
}
... |
import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/do';
export class LoggingInterceptor implements HttpInterceptor {
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
re... |
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
import { CreatePushTemplateRequest, CreatePushTemplateResponse } from "../models/index";
import {
deserializeAws_restJson1CreatePushTemplateCommand,
serializeAws_restJson1CreatePushTemplateCommand,
} from "../pr... |
export * from '@styled-icons/remix-line/BarChartGrouped' |
// Copyright Contributors to the Amundsen project.
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import { withKnobs, object } from '@storybook/addon-knobs';
import StorySection from '../StorySection';
import { AlertIcon, DownIcon, UpIcon, RightIcon } from '.';
export const SVGIcons = () => (
<>... |
import difference from 'lodash/difference';
import omit from 'lodash/omit';
import { stringifyJSON } from './stringifyJSON';
import { SET_STATE } from '../constants/actionTypes';
import { InstancesState, State } from '../reducers/instances';
import { Dispatch, MiddlewareAPI } from 'redux';
import { DispatchAction, Stor... |
import React from "react";
import CodeBlock from "../../helpers/CodeBlock";
export default function Logging() {
document.title = "Logging | lastfm-typed documentation";
return (
<main>
<h1>Logging</h1>
<p>lastfm-typed has logging built in. Currently the logging is built into the main class, not the individua... |
import { Inject, Injectable, Optional } from '@angular/core';
import { GoogleTagManagerConfig } from './google-tag-manager-config';
@Injectable({
providedIn: 'root',
})
export class GoogleTagManagerService {
private isLoaded = false;
private browserGlobals = {
windowRef(): any {
return window;
},
... |
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
/**
* AWS Route 53
*/
export interface Route53RecordConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_recor... |
type CleanUpCallback = () => void
type Ref = (node: Node) => void | CleanUpCallback |
/* eslint-disable functional/no-expression-statement */
import Transport, { TransportStreamOptions } from "winston-transport";
export default class NullTransport extends Transport {
public constructor(options: TransportStreamOptions) {
super(options);
}
public log(
info: readonly unknown[],
callback... |
// @ts-nocheck
/**
* @name hsv2rgba
* @namespace js.color
* @type Function
* @platform js
* @platform ts
* @platform node
* @status beta
*
* HSV to RGBA
*
* @param {Number|Object} h The hue value between 0-360 o... |
export {withBlitz} from "./with-blitz"
export {build} from "./build"
export {dev} from "./dev"
export {prod} from "./prod"
export {normalize} from "./config"
export {resolveBinAsync} from "./resolve-bin-async"
export {ManifestLoader} from "./manifest-loader"
export * from "./rpc"
export * from "./supertokens" |
import { Message, buildMessage, publishMessage } from 'amqp-extension';
import { MessageQueueSelfToUIRoutingKey } from '../../config/services/rabbitmq';
import { TrainResultEvent, TrainResultStep } from '../../domains/train-result/type';
export async function writeStartFailedEvent(message: Message, error: Error) {
... |
import {
getManifestSyncState as getADOClusterSync,
getReleasesURL as getADOReleasesURL,
IAzureDevOpsRepo,
} from "spektate/lib/repository/IAzureDevOpsRepo";
import {
getManifestSyncState as getGitHubClusterSync,
getReleasesURL as getGitHubReleasesURL,
IGitHub,
} from "spektate/lib/repository/IGitHub";
impo... |
import { motion, useAnimation, Variants } from "framer-motion";
import { GuildConfig } from "../../types";
import Loader from "react-loader-spinner";
import React, { useEffect } from "react";
interface Props {
isSubmitting: boolean;
init: GuildConfig;
formik: GuildConfig;
functions: {
resetForm: () => void;
su... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import assert from 'assert';
import path from 'path';
import { Configuration } from '../src/configuration';
describe('Configuration', function () {
const makeConfiguration = (files = ['base.json']) => {
const configuration = new Co... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { FABButton, Icon, Slider, Grid, Cell, Card, CardTitle, CardText, ProgressBar } from 'react-mdl';
import Configs from '../../../core/Configs';
import FieldTag from '../core/FieldTag';
import HudTag from '../core/HudTag';
import { GameDump, ... |
import React from "react"
import styled from "styled-components"
import { tooltipData } from "../../data/menuData"
import MenuButton from "../buttons/MenuButton"
export default function MenuTooltip(props) {
const { isOpen } = props
return (
<Wrapper isOpen={isOpen}>
{tooltipData.map((item, index) => (
... |
/**
* Copyright 2019 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... |
import type { NextApiRequest, NextApiResponse } from 'next';
export default function initMiddleware(middleware: any) {
return (req: NextApiRequest, res: NextApiResponse) =>
new Promise((resolve, reject) => {
middleware(req, res, (result: any) => {
if (result instanceof Error) {
return rej... |
import { useEffect, useRef } from 'react';
export default (eventName: string, handler: (e: Event | CustomEvent | UIEvent | any) => void, options?: boolean | EventListenerOptions) => {
const savedHandler = useRef<any>(null);
useEffect(() => {
savedHandler.current = handler;
}, [ handler ]);
us... |
import { BinaryReader } from './BinaryReader'
import { BinaryWriter } from './BinaryWriter'
import * as Caching from './Caching/index'
import { ISerializable } from './ISerializable'
import { MemoryStream } from './MemoryStream'
import { Stream } from './Stream'
// export * from './BinaryReader'
// export * from './B... |
import {getLogger} from 'pinus-logger';
let logger = getLogger('pinus-rpc', 'mqtt2-mailbox');
import {EventEmitter} from 'events';
import {Tracer} from '../../util/tracer';
import * as utils from '../../util/utils';
import {Composer} from '../../util/composer';
import * as util from 'util';
import * as net from 'ne... |
// https://github.com/validatorjs/validator.js
import isDate from 'validator/lib/isDate';
import isEmail from 'validator/lib/isEmail';
import isEmpty from 'lodash/isEmpty';
import isURL from 'validator/lib/isURL';
import { getCharacterLength } from '../utils/helper';
import { CustomValidator, FormRule, ValueType, AllV... |
export default DataTile;
/**
* Data that can be used with a DataTile. For increased browser compatibility, use
* Uint8Array instead of Uint8ClampedArray where possible.
*/
export type Data = Uint8Array | Uint8ClampedArray | Float32Array | DataView;
export type Options = {
/**
* Tile coordinate.
*/
... |
import IIndexFeaturedTypeDTO from "../dtos/IIndexFeaturedTypeDTO";
import IRemoveFeaturedTypeDTO from "../dtos/IRemoveFeaturedTypeDTO";
import FeaturedType from "../entities/FeaturedType";
export interface IFeaturedTypeRepository {
all(): Promise<FeaturedType[]>;
find(data: IIndexFeaturedTypeDTO): Promise<Featured... |
import loop from './utils/loop';
import processActionProcessor from './processActionProcessor';
export default function processActionProcessors<T>
( actionsConf:AR_Conf.Actions
, state:T
, processors:AR_Build.ActionProcessors
, actions:AR_Build.Actions
, parentIdentifier:AR_Conf.CapitalizedString
, parentType:AR... |
import { Component, OnInit, ViewEncapsulation, ChangeDetectionStrategy, ElementRef, Renderer2 } from '@angular/core';
@Component({
selector: 'sh-header',
exportAs: 'shheader',
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
preserveWhitespaces: false,
template: ` <ng... |
"use strict";
import toPascal from "to-pascal-case";
import map from "map-iterable";
export default () =>
map(token => {
const tk = Object.assign({}, token);
if (tk.type) {
tk.originalType = token.type;
// console.log({defaultNodeType, tk})
if (token.is("WORD") || token.is("NAME") || token.is("ASSIGNMEN... |
import { Interfaces, Transactions, Utils } from "@arkecosystem/crypto";
import { MagistrateTransactionGroup, MagistrateTransactionType } from "../enums";
import { BusinessResignationTransaction } from "../transactions";
export class BusinessResignationBuilder extends Transactions.TransactionBuilder<BusinessResignation... |
/// <reference path="../../baseHelpers.ts"/>
/// <reference path="../../core/js/coreHelpers.ts"/>
/// <reference path="../../core/js/workspace.ts"/>
/// <reference path="../../forms/js/formHelpers.ts"/>
/// <reference path="endpointChooser.ts"/>
/**
* @module Camel
*/
module Camel {
export var log:Logging.Logger ... |
import { Injectable } from '@nestjs/common';
import { CreateIntelligenceConfigDto } from './dto/create-intelligence-config.dto';
import { UpdateIntelligenceConfigDto } from './dto/update-intelligence-config.dto';
@Injectable()
export class IntelligenceConfigService {
create(createIntelligenceConfigDto: CreateIntelli... |
import VueCodemirror from 'vue-codemirror';
import 'codemirror/lib/codemirror.css';
// language
import 'codemirror/mode/javascript/javascript.js';
// theme css
import 'codemirror/theme/neo.css';
// require active-line.js
import 'codemirror/addon/selection/active-line.js';
// styleSelectedText
import 'codemirror/addon/... |
import { teztoolsApi as api } from '.'
import { createEntityAdapter, EntityState } from '@reduxjs/toolkit'
interface Response {
contracts: Token[]
}
interface Token {
name: string
symbol: string
tokenAddress: string
decimals: number
address: string
currentPrice: number
type: string
usdValue: number
... |
import { Contracts } from "ts-extractor";
import { BasePlugin } from "@src/abstractions/base-plugin";
import { SupportedApiItemKindType, PluginResult, PluginOptions } from "@src/contracts/plugin";
import { GeneratorHelpers } from "@src/generator-helpers";
import { MarkdownBuilder } from "@simplrjs/markdown";
export cl... |
// ------------------------------------------------------------------------------
// Copyright (c) 2017 RobotlegsJS. All Rights Reserved.
//
// NOTICE: You are permitted to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
// -----------------------------... |
import { Router } from 'express';
import {
OngController,
IncidentsController,
SessionController,
} from 'controllers';
import { Authentication, Validation } from 'middlewares';
import { Ongs, Incidents, Session } from 'validators';
const routes = Router();
routes.get('/', (req, res) => {
return res.json({
... |
import {Component, OnInit, EventEmitter, Output} from '@angular/core';
import {MenuService} from '../../../menu/menu.service';
import {
MenuDefini,
CategorieMenu,
IDroit,
ContenuMenu,
IContenuMenu,
EnumTypeFichierGroupe,
EnumTypeFichier,
IFichier
} from '@aleaac/shared';
import {QueryBui... |
import { api_type } from "../../tier0/constants";
import { NotImplemented } from "../../tier0/exceptions";
import { Sort } from "../objects/Subreddit";
import RedditContent from "./RedditContent";
export default interface ReplyableContent<Type extends ReplyableContent<Type>>
extends RedditContent<Type> {
_sort: Sor... |
import * as _isNil from 'lodash/isNil';
import * as moment from 'moment';
import { Injectable } from '@angular/core';
import { HelpersService } from './helpers.service';
import {
DaysForecast,
HoursForecast,
Overcast,
State,
TimeOfDay,
WeatherDefinitions,
WeatherTypes,
WindDirections
} from '../../../... |
/// <reference path="dagre-d3.d.ts"/>
namespace DagreD3Tests {
var gDagre = new dagreD3.graphlib.Graph();
var graph = gDagre.graph();
// has graph methods from dagre.d.ts
graph.setNode("a", {});
var num: number = 251 + graph.height + graph.width;
var predecessors: { [vertex:string]: string[] } ... |
import IDictionary from './IDictionary';
declare type IHeaders = IDictionary<string>;
export default IHeaders; |
/**
* Wechaty Chatbot SDK - https://github.com/wechaty/wechaty
*
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
* Wechaty Contributors <https://github.com/wechaty>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in ... |
import React, {
MouseEvent as ReactMouseEvent, ReactElement, useCallback,
useEffect, useRef, useState,
} from 'react';
import ReactFlow, {
ConnectionLineType, Controls, Edge, Elements, getIncomers, getOutgoers,
isEdge, isNode, Node, OnLoadParams, ReactFlowProvider,
removeElements,
} from 'react-flow-renderer'... |
import { MigrationInterface, QueryRunner } from 'typeorm';
export class ScenarioPlanningUnitInclusionEvents1623159171726
implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
INSERT INTO api_event_kinds (id) values
('scenario.planningUn... |
// © Microsoft Corporation. All rights reserved.
import React, { useEffect, useState } from 'react';
import { Image, ImageFit, Label } from '@fluentui/react';
import { LocalVideoStream, Renderer, RendererView } from '@azure/communication-calling';
import { videoHint, mediaContainer, localVideoContainerStyle } from './... |
import {wait} from '../src/wait'
import {run} from '../src/handle'
import * as process from 'process'
test('throws invalid number', async () => {
const input = parseInt('foo', 10)
await expect(wait(input)).rejects.toThrow('milliseconds not a number')
})
test('wait 500 ms', async () => {
const start = new Date()... |
import { future, TestableScript } from './support/ClientHelpers'
import { MessageBusClient } from './support/MessageBusClient'
import { inject, WebWorkerTransport } from '../../lib/client/index'
const winingCombinations = [
[0, 1, 2], // 1 row
[3, 4, 5], // 2 row
[6, 7, 8], // 3 row
[0, 3, 6], // 1 col
[1, ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import { Router } from '@angular/router';
import { BpService } from '../services/bp.service';
@Component({
selector: 'new-bp',
templateUrl: './new-bp.component.html',
styleUrls: ['./new-bp.co... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { getTestAlertData } from './utils';
import { FtrProviderContext } fro... |
import { Math } from 'phaser';
import { PlayerDirection } from './PlayerController';
export class Player {
private _playerSprite: any;
private _assetName: string;
private _playerCustomSize: Math.Vector2;
private _sceneCamera: any;
//#region Creation
constructor(assetName: string, camera: any) {
this... |
const ImageList = [
{
id: "0",
author: "Alejandro Escamilla",
width: 5616,
height: 3744,
uri: "https://picsum.photos/id/0/5616/3744"
},
{
id: "1",
author: "Alejandro Escamilla",
width: 5616,
height: 3744,
uri: "https://picsum.ph... |
import { IFile } from "./IFile";
export interface IStatus{
ahead:number;
behind:number;
created:IFile[];
conflicted:IFile[];
deleted:IFile[];
modified:IFile[];
renamed:{
from:string;
to:string;
}[];
staged:IFile[];
not_added: IFile[];
isClean:boolean;
} |
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import { delay } from "../async/mod.ts";
/** Thrown by Server after it has been closed. */
const ERROR_SERVER_CLOSED = "Server closed";
/** Thrown when parsing an invalid address string. */
const ERROR_ADDRESS_INVALID = "Invalid address";
/**... |
import { equals } from "../../../../Data/Eq"
import { List } from "../../../../Data/List"
import { Maybe, Nothing } from "../../../../Data/Maybe"
import { fromDefault, Record } from "../../../../Data/Record"
import { pipe } from "../../../Utilities/pipe"
import { AllRequirementObjects } from "../wikiTypeHelpers"
import... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Middleware, NextFunction } from "@feathersjs/hooks/lib";
import { AzureSolutionSettings, err, Inputs, Plugin } from "@microsoft/teamsfx-api";
import * as fs from "fs-extra";
import { CoreHookContext, NoProjectOpenedError, PathNotExistE... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { ValueTransformer } from 'typeorm';
import * as bcrypt from 'bcrypt';
export class PasswordTransformer implements ValueTransformer {
to(value) {
return bcrypt.hashSync(value, 10);
}
from(value) {
return value;
}
} |
import * as React from "react";
import {Link} from "react-router-dom";
import {SingleViewLayout} from "layout";
import {routerSwitchRoutes} from "core";
import {LoginContainer} from 'pods/login';
export const LoginPage = () => (
<SingleViewLayout>
<LoginContainer/>
</SingleViewLayout>
); |
import React, { useRef, useCallback, useMemo } from "react";
import { css } from "emotion";
import styled from "@emotion/styled";
import Files, { FilesRenderChildren } from "react-butterfiles";
import { ButtonPrimary, ButtonIcon } from "@webiny/ui/Button";
import { Icon } from "@webiny/ui/Icon";
import File, { FileProp... |
declare namespace _default {
namespace sr {
const days: string[];
const daysShort: string[];
const daysMin: string[];
const months: string[];
const monthsShort: string[];
const today: string;
const weekStart: number;
const format: string;
}
}
expor... |
import { BidirectionalDuplexRequestStream, RequestHandler, DuplexRequestStream, WritableRequestStream } from '@interledger/rafiki'
import { MojaloopHttpRequest, MojaloopHttpReply } from './mojaloop-packets'
export type MojaloopRequestHandler = RequestHandler<MojaloopHttpRequest, MojaloopHttpReply>
export type RuleRequ... |
import { DEFAULTS } from '../defaults';
import {
getModalStyles,
TOOLBARS,
BUTTON_TYPES,
decorateComponentWithProps,
getBottomToolbarModalStyles,
} from 'wix-rich-content-editor-common';
import {
TwitterIcon,
InstagramIcon,
FacebookIcon,
TikTokIcon,
PinterestIcon,
YoutubeIcon,
} from '../icons';
i... |
import { FC, useEffect, useState } from "react";
import { Food, FoodEaten } from "../types/Food";
import CircularProgress from "./CircularProgress";
import ProgressBar from "./ProgressBar";
export const Chart: FC<{
foodList: Food[];
foodsEaten: FoodEaten[];
calorieBudget: number;
}> = ({ foodList, foodsEaten, ca... |
import styled from 'react-emotion';
import {slideInUp} from 'app/styles/animations';
const FieldErrorReason = styled('div')`
color: ${p => p.theme.redDark};
position: absolute;
right: 2px;
margin-top: 6px;
background: #fff;
padding: 6px 8px;
font-weight: 600;
font-size: ${p => p.theme.fontSizeSmall};
... |
import { INestApplication, HttpStatus } from "@nestjs/common";
import { Test } from "@nestjs/testing";
import * as express from "express";
import * as request from "supertest";
import "mocha";
import * as chai from "chai";
import { ApplicationModule } from "../../src/app.module";
import { UserService } from "../../src/... |
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<ul>
<li><a routerLink="/">Home</a></li>
<li><a routerLink="/about">About</a></li>
</ul>
<hr>
<router-outlet></router-outlet>
`,
})
export class AppComponent {
} |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// tslint:disable:no-big-function
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testi... |
import { MockMethod } from 'vite-plugin-mock'
import { resultSuccess } from '../_util'
const demoList = (keyword, count = 20) => {
const result = {
list: [] as any[]
}
for (let index = 0; index < count; index++) {
result.list.push({
name: `${keyword ?? ''}选项${index}`,
id: `${index}`
})
... |
import { useState, ChangeEvent } from "react"
export const useChangeInput = (initInput='') => {
const [searchInput, setSearchInput] = useState(initInput)
const changeInput = (e: ChangeEvent<HTMLInputElement>) => {
setSearchInput(e.target.value)
}
return ({
searchInput,
changeInput,
})
} |
/// <amd-module name="@angular/compiler-cli/ngcc/src/packages/build_marker" />
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { AbsoluteFsPath } from '../../.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.