text stringlengths 10 953k |
|---|
// #docplaster
// #docregion
import { Component } from '@angular/core';
import { HEROES } from './heroes';
@Component({
selector: 'app-flying-heroes',
templateUrl: './flying-heroes.component.html',
styles: ['#flyers, #all {font-style: italic}']
})
// #docregion v1
export class FlyingHeroesComponent {
heroes: ... |
import { prismaClient } from "../../prisma";
export class GetMessagesService {
async execute() {
const messages = await prismaClient.message.findMany({
take: 3,
orderBy: {
created_at: "desc",
},
include: {
user: true,
},
});
return messages;
}
} |
export type ArgType = "string" | "int" | "decimal" | "filepath"
export type ArgValue = string | number | undefined
export interface ArgOption {
value: ArgValue
label: string
}
export interface ArgValidator {
type: string
params: any
}
export interface ArgOptions {
values: ArgOption[]
}
export interface Ar... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About IMAcredit</source>
<translation>About IMAcredit</t... |
import { Int32 } from '../primitive';
import { Reader } from '../readers';
// https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Private/Containers/String.cpp#L1390-L1498
export async function FString(reader: Reader) {
const length = await reader.read(Int32);
let value:... |
import type { NextPage } from 'next'
import Heading from 'components/Heading'
import { BsArrowRight } from 'react-icons/bs'
import FAQ from 'components/Sections/FAQ.mdx'
import Team from 'components/Sections/Team'
import Meta from 'components/Meta'
import Sponsors from 'components/Sections/Sponsors'
const Home: NextPa... |
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import {
Injectable,
NestMiddleware,
} from '@nestjs/common';
@Injectable()
export class LoggingMiddleware implements NestMiddleware {
use(req: any, res: any, next: () => void) {
console.time('Request-response time');
console.log('Hi ... |
import {useRef} from 'react';
const useLazyRef = <T>(initialValFunc: () => T) => {
const ref = useRef<T>(null!);
if (ref.current === null) {
ref.current = initialValFunc();
}
return ref;
};
export default useLazyRef; |
import { Color4 } from "../material/Color4";
import { IEntityObject } from "./IEntityObject";
interface IAxisEntity extends IEntityObject {
colorX: Color4;
colorY: Color4;
colorZ: Color4;
/**
* initialize the axis entity mesh and geometry data
* @param axisSize the X/Y/Z axis length
*/
... |
export default {
mall: {
moduleName: '商城',
center: '购物中心',
cart: '购物车',
business: '商务配套',
checkout: '结账中心',
},
personal: {
moduleName: '个人',
profile: '个人简介',
security: '安全设置',
buddy: '伙伴',
},
accounting: {
moduleName: '帐务管理',
order: '订单',
payment: '付款',
bonu... |
export default [{
author: 'Harrison Hogg',
config: require('./Mushroom.json'),
name: 'Mushroom',
Thumbnail: require('./Mushroom.svg').default,
}, {
author: 'Harrison Hogg',
config: require('./Island.json'),
name: 'Island',
Thumbnail: require('./Island.svg').default,
}, {
author: 'Dorota Pankoska',
a... |
declare module 'useWindowWidth'; |
/* eslint-disable node/no-missing-import */
import { expect } from "chai";
import { ethers } from "hardhat";
import type { RandomWalkNFT } from "../typechain/RandomWalkNFT";
import type { ImpishDAO } from "../typechain/ImpishDAO";
import type { ImpishSpiral } from "../typechain/ImpishSpiral";
import type { ImpishCryst... |
import {
CodeTween,
CodeConfig,
CodeStep,
} from "@code-hike/smooth-code"
import React from "react"
export type CodeFile = CodeStep & {
name: string
}
type EditorPanel = {
tabs: string[]
active: string
heightRatio: number
}
export type EditorStep = {
files: CodeFile[]
northPanel: EditorPanel
sout... |
import { Component, Host, Element, h } from '@stencil/core';
import katex from 'katex';
import { extractMath, Segment } from 'extract-math';
@Component({
tag: 'katex-math',
styleUrl: 'katex-math.css'
})
export class KatexMath {
@Element() el: HTMLElement;
componentDidLoad() {
this.getSlottedCo... |
import { Cell } from './Cell'
<<<<<<< HEAD
import { solutionLength } from '../../lib/words'
=======
import { unicodeSplit } from '../../lib/words'
>>>>>>> 7d1a95b867d250bd060c4faa244b7eff9c929f10
type Props = {
guess: string
className: string
}
export const CurrentRow = ({ guess, className }: Props) => {
<<<<<<< ... |
import { RFValidator } from "./RFValidator";
export interface IRFFormContext {
setValue: (name: string, value: IRFFormValue) => void;
getErrors: (name: string) => string[];
}
export interface IRFFormValue {
value: string;
validators: RFValidator[];
errors?: string[];
}
export interface IRFFormModel {
[na... |
/**
* @module botbuilder
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Activity, ResourceResponse } from 'botframework-schema';
/**
* Type signature for a return value that can (Optionally) return its value
* asynchronously using a Promise.
* @... |
import { Abi, ImmutableReferences } from "@truffle/contract-schema/spec";
export type Compilation = {
sourceIndexes: string[]; //note: doesnot include internal sources
contracts: CompiledContract[];
compiler: {
name: string | undefined;
version: string | undefined;
};
};
export interface CompilerResul... |
import { CalendarComponent } from './calendar.component';
export const calendarRoutes = [
{
path: '',
component: CalendarComponent
}
]; |
import fs from 'fs';
import { PresentationSubmission } from '@sphereon/pe-models';
import Ajv from 'ajv';
import { Validation, ValidationPredicate } from '../core';
import { PresentationSubmissionVB } from './presentationSubmissionVB';
import { ValidationBundler } from './validationBundler';
export class Presentati... |
export { default as ActionSheet } from './action-sheet/index.native';
export { default as Badge } from './badge/index.native';
export { default as Button } from './button/index.native';
export { default as Cell } from './cell/index.native';
export { default as FilePicker } from './file-picker/index.native';
export { de... |
import Vue from 'vue';
import Router from 'vue-router';
import HelloWorld from '@/components/HelloWorld.vue';
Vue.use(Router);
export default new Router({
routes: [
{
path: '/',
name: 'Hello',
component: HelloWorld,
},
],
}); |
import { createContext, FC, useContext, useState } from 'react';
import * as ls from 'local-storage';
export interface AlertEntity {
id: string;
type: string;
message: string;
title?: string;
content?: string;
}
const STORAGE_KEY = `_alertsCollection`;
interface AlertsState {
alerts: AlertEntity[];
pus... |
export {Utf16LE, Utf16BE, Utf16} from "./lib/encoder/Utf16"; |
/**
* @license
* Copyright 2013 Palantir Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
import JestRunner from 'jest-runner'
import type {
Test,
TestRunnerContext,
TestWatcher,
OnTestStart,
OnTestSuccess,
OnTestFailure,
TestRunnerOptions,
} from 'jest-runner'
import type { Config as JestConfig } from '@jest/types'
import type {
BrowserType,
BrowserTest,
DeviceType,
WsEndpointType,
... |
import {
Component,
OnInit,
OnDestroy,
Input,
ViewChild,
Output,
EventEmitter,
} from '@angular/core';
import { I18nService } from '../../../service/i18n.service';
import { AxiosService } from '../../../service/axios.service';
import { TiTableColumns, TiTableRowData, TiTableSrcData } from '@... |
/**
* Internal Imports
*/
import { compose } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
export const composeEnhancers: typeof composeWithDevTools =
(process.env.NODE_ENV === 'development' && window && composeWithDevTools) ||
compose; |
import * as React from "react";
import { Underkategori } from "../../../typer/underkategori";
import HovedSoknadsobjekt from "./HovedSoknadsobjekt";
import InformasjonPapirsoknad from "./InformasjonPapirsoknad";
import { injectIntl, InjectedIntlProps } from "react-intl";
interface Props {
valgtUnderkategori: Underka... |
import {pointer} from 'smart-table-json-pointer';
import {SearchConfiguration, SearchFunction} from './interfaces';
import {re} from 're-template-tag';
export interface RegexSearchInput extends SearchConfiguration {
escape?: boolean;
flags?: string;
}
export const regexp = <T>(input: RegexSearchInput): Search... |
/*
* 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 { HOST_STATS, NETWORK_STATS, OVERVIEW_EMPTY_PAGE } from '../screens/ov... |
export class AssertionUtility {
public static expectEqual(toTest: any, expected: any): void {
expect(toTest).toBe(expected);
}
public static expectDeepEqual(toTest: any, expected: any): void {
expect(toTest).toEqual(expected);
}
public static expectTrue(toTest: any): void {
... |
import WebhookWorker from "../webhook/WebhookWorker";
import { RegTestWallet } from "../wallet/Wif";
import { mine } from "../mine/mine";
import { Webhook, WebhookRecurrence, WebhookType } from "./Webhook";
let worker: WebhookWorker;
let alice;
let aliceWif;
/**
* @jest-environment jsdom
*/
describe("Webhook worker... |
<TS language="zh_TW" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<source>About EvolveChainX Core</source>
<translation>關於位元幣核心</translation>
</message>
<message>
<source><b>EvolveChainX Core</b> version</source>
<translation><b>位元幣核心</... |
function chapter7_3() {
function parse(birthday: string): Date[] {
const date = new Date(birthday)
if (!isValid(date)) {
return []
}
return [date]
}
let date = parse(ask())
date
.map(_ => _.toISOString())
.forEach(_ => console.info('Date is', _))
function ask() {
const result =... |
import { Test, TestingModule } from '@nestjs/testing';
import { CommentsController } from './comments.controller';
import { CommentsService } from '../services/comments.service';
describe('CommentsController', () => {
let controller: CommentsController;
beforeEach(async () => {
const module: TestingModule = a... |
import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {MainComponent} from '@modules/main/main.component';
import {BlankComponent} from '@pages/blank/blank.component';
import {LoginComponent} from '@modules/login/login.component';
import {ProfileComponent} from '@pages/pro... |
import { NameService as EthereumNameService } from '../ethereum/name-service';
export class NameService extends EthereumNameService {} |
import { BusinessLogicException } from '../../shared/exceptions/business-logic.exception';
export class InvalidBookingException extends BusinessLogicException {
constructor() {
super('You are tryting to create a invalid booking.');
}
} |
import React from 'react';
import test from 'ava';
import {renderToString} from './helpers/render-to-string';
import {Box} from '../src';
test('grow equally', t => {
const output = renderToString(
<Box width={6}>
<Box flexGrow={1}>A</Box>
<Box flexGrow={1}>B</Box>
</Box>
);
t.is(output, 'A B');
});
tes... |
import * as React from 'react';
import type { PageProps } from 'gatsby';
import useDarkMode from 'use-dark-mode';
import { global } from 'gatsby-theme-stitches/src/stitches.config';
import { useLocation } from '@reach/router';
import type { OverrideProps } from '@cometjs/core';
import DefaultLayout from './DefaultLayo... |
version https://git-lfs.github.com/spec/v1
oid sha256:41a4985b10f4406224325fe235a6b2804edd54ce91e2b60e8267d7f5b63a976a
size 1468280 |
declare module "react-animated-cursor"; |
import { errors } from "../errors";
import { getLibFiles } from "../getLibFiles";
import { FileSystemHost } from "./FileSystemHost";
import { FileUtils } from "./FileUtils";
import { matchGlobs } from "./matchGlobs";
import { StandardizedFilePath } from "./StandardizedFilePath";
interface VirtualDirectory {
path: ... |
export { default as Typograph } from "./components/Typograph";
export { default as Button } from "./components/Button";
export { default as MotionButton } from "./components/MotionButton"; |
export enum Color {
BLACK = 'rgb(20, 12, 28)',
DARK_VIOLET = 'rgb(68, 36, 52)',
DARK_BLUE = 'rgb(48, 52, 109)',
DARK_GREY = 'rgb(78, 74, 78)',
BROWN = 'rgb(133, 76, 48)',
DARK_GREEN = 'rgb(52, 101, 36)',
RED = 'rgb(208, 70, 72)',
DARK_BROWN = 'rgb(117, 113, 97)',
BLUE = 'rgb(89, 125, 206)',
ORANGE =... |
export * from './file-storage-reducer';
export * from './file-storage-actions'; |
import { useCallback, useEffect, useReducer, useRef } from 'react';
import { runSaga, stdChannel } from 'redux-saga';
import { combinedReducers, dispatch, reducers, sagas } from '../types/service';
import { State } from '../types/state';
import Service from './Service';
const useLocalReducer = <S extends State, T exte... |
import { Component, EventEmitter, isDevMode, Output } from '@angular/core';
import { ActionField, StepItem, StepperView } from '../../../models/content';
import {
FormBuilder,
FormGroup,
ValidatorFn,
Validators,
} from '@angular/forms';
import { WebsocketService } from '../../../../../data/services/websocket/we... |
declare module "consts:*" {
//Constant that will be inlined by Rollup and rollup-plugin-consts.
const constant: any;
export default constant;
} |
import {
HttpInterceptor,
HttpRequest,
HttpHandler,
HttpEvent,
HttpResponse
} from "@angular/common/http";
import { Injectable } from "@angular/core";
import { Observable } from "rxjs";
import { tap, catchError } from "rxjs/operators";
import { Post } from "./posts.service";
@Injectable()
export cl... |
import {
extendFileName,
getBasePath,
getFileExt,
getFilePathWithoutExt,
isTextFileExt,
relativize,
replaceFileName,
simplifyPath
} from './path-utils';
describe('PathUtils', () => {
it('getFileExt() returns proper value', () => {
expect(getFileExt('test/v.pdf')).toEqual('.pdf');
expect(getFileExt('qwe.j... |
export interface BundleOptions {
intro?: string;
separator?: string;
}
export interface SourceMapOptions {
hires: boolean;
file: string;
source: string;
includeContent: boolean;
}
export interface DecodedSourceMap {
file: string;
sources: string[];
sourcesContent: string[];
names: string[];
mapp... |
// See also: https://overreacted.io/making-setinterval-declarative-with-react-hooks/
import { useState, useEffect, useRef } from "react";
interface IntervalHandlerAsObject {
/**
* Function to start the interval
*/
start: () => void;
/**
* Function to stop the interval
*/
stop: () => void;
/**
... |
import { EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRClient.ts";
import { ListStudioSessionMappingsInput, ListStudioSessionMappingsOutput } from "../models/models_0.ts";
import {
deserializeAws_json1_1ListStudioSessionMappingsCommand,
serializeAws_json1_1ListStudioSessionMappingsCom... |
import axios, { AxiosResponse } from 'axios';
import { ShopQuantity } from '../../../types';
export const GetShopQuantitiesApi = (): Promise<AxiosResponse<ShopQuantity>> =>
axios.get('/shopQuantity', {
params: { shop: '2e2b8431-791f-45ff-9982-fe491f5f9d6d' }
}); |
import React from 'react';
export interface FooterProps {
children: React.ReactNode;
}
function Footer(props: FooterProps): JSX.Element {
return <footer {...props} />;
}
export default Footer; |
import { Column, Entity, JoinColumn, ManyToOne } from 'typeorm';
import DefaultAttributes from '../../database/config/default.attributes';
import { Person } from '../../person/entities/person.entity';
import { ServiceProvider } from '../../service-provider/entities/service-provider.entity';
@Entity()
export class Cont... |
import { UnionToIntersection } from "../../_utils/UnionToIntersection"
import { ColumnOptions } from "./ColumnOptions"
import { NamedColumns } from "./NamedColumns"
export type ColumnsOptions<TNamedColumns extends NamedColumns<any>> = UnionToIntersection<
{
[TColumnKey in keyof TNamedColumns]: {
[TColumnKey_ in ... |
/** Get permutations where no number can be in original position */
/** https://www.geeksforgeeks.org/count-derangements-permutation-such-that-no-element-appears-in-its-original-position/ */
export function specialPermutations (xs: number[]): number {
if (xs.length <= 1) {
console.log("xs: ", xs)
re... |
import { ElementRef, EventEmitter } from '@angular/core';
import * as ɵngcc0 from '@angular/core';
export declare class ClickOutsideDirective {
private _elementRef;
constructor(_elementRef: ElementRef);
clickOutside: EventEmitter<MouseEvent>;
onClick(event: MouseEvent, targetElement: HTMLElement): void;... |
import React, { Component } from "react";
import {
ProjectType,
ClusterType,
CapabilityType,
ContextProps,
} from "shared/types";
import { pushQueryParams } from "shared/routing";
const Context = React.createContext<Partial<ContextProps>>(null);
const { Provider } = Context;
const ContextConsumer = Context.... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterModule } from '@ang... |
import { Connection } from 'typeorm';
import { Weekday } from '../../entity/ExerciseAbleDays';
import connectDB, {
getUserRepository,
getExerciseAbleDaysRepository,
} from '../..';
import { Role, Provider } from '../../entity/User';
let conn: Connection;
beforeEach(async () => {
conn = await connectDB();
});
aft... |
import React, { ReactNode } from 'react'
import { Message } from '@alicloud/console-components'
import './index.less'
export interface IProps {
type: 'success' | 'warning' | 'error';
title?: ReactNode;
description?: ReactNode;
extra?: ReactNode;
actions?: ReactNode;
children?: ReactNode;
}
const XconsoleR... |
import type {
DevCardRequest,
HouseRequest,
RoadRequest,
SetupMoveRequest,
ThiefDropRequest,
ThiefPlayRequest,
TradeBankRequest,
TradePlayerRequest,
TradeResponseRequest,
_DevBuyRequest,
_EndTurnRequest,
_RollRequest,
} from './game-request';
import type { LoginRequest, RefreshTokenRequest, Sign... |
import { setUpApp } from 'api/utils/testingRoutes';
import { NextFunction } from 'express';
import { Task, TaskProvider } from 'shared/tasks/tasks';
import request from 'supertest';
import testRoute from '../routes';
jest.mock(
'../../auth/authMiddleware.ts',
() => () => (_req: Request, _res: Response, next: NextF... |
import { Currency } from '../Currency'
import { NativeCurrency } from '../NativeCurrency'
import { Token } from '../Token'
import { WNATIVE } from '../../constants/tokens'
import invariant from 'tiny-invariant'
export class Fuse extends NativeCurrency {
protected constructor(chainId: number) {
super(chainId, 18,... |
import * as React from "react"
import Layout from "../components/layout"
import Seo from "../components/seo"
import FaqPage from "../components/FaqPage"
import faq from "../data/faq"
const Faq = ({
location,
}: {
location: {
search: string
pathname: string
}
}) => (
<Layout location={location} defaultL... |
import { AngularFirePerformance } from './performance';
export declare class AngularFirePerformanceModule {
constructor(_: AngularFirePerformance);
} |
import { Component, Inject, NgZone, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { NotificationService } from 'app/Services/notification.service';
import { IPayDesignation } from 'app/... |
import { StyleSheet } from "react-native";
import { Sizing, Colors, Typography } from "../../styles";
const styles = StyleSheet.create({
container: {
justifyContent: "space-between",
flexDirection: "row",
alignItems: "center",
paddingHorizontal: Sizing.layout.x30,
paddingVer... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
/*
* Copyright 2020 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 {GitStatus} from 'projects/git/src/lib/entities/git-status';
export const testGitStatus: () => GitStatus = () => {
return {
branch: {
oid: 'oid',
head: 'head',
upstream: 'upstream',
ahead: 42,
behind: 1337,
},
changed: [{
xy: 'xy',
path: 'path',
}],
... |
import { Observable } from 'rxjs/Rx';
import { Response } from '@angular/http';
import { PeopleService } from './people.service';
import { Component } from '@angular/core';
import {Person} from './person';
@Component({
selector: 'people-list',
template: `
<section *ngIf="isLoading && !errorMessage">
Loading ... |
import { AppPage } from './app.po';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to videos-EDM!');
});
}); |
import React from 'react';
import {Emoji} from '../commons/Emoji';
interface EmojiPanelProps {
code: number[];
}
export const EmojiPanel = ({code}: EmojiPanelProps) => {
const emojis = code.map((code: number, index: number) => (
<li key={`emojiPanel_${index}`}>
<Emoji code={code}/>
</li>
));
re... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ThingListComponent } from './components/thing-list/thing-list.component';
import { ThingComponent } from './components/thing/thing.component';
import {FormsModule} from '@angular/forms';
import {BrowserAnimationsModule} f... |
import classNames from 'classnames'
import { CircleDigest, Translate } from '~/components'
import { analytics } from '~/common/utils'
import DonationButton from './DonationButton'
import Donators from './Donators'
import { fragments } from './gql'
import styles from './styles.css'
import { SupportWidgetArticlePriva... |
export class GetItems {
public static readonly type = '[Cv] Get Items';
constructor() { }
}
export class AddDetail {
public static readonly type = '[Cv] Add Detail';
constructor(public entryId: string) { }
}
export class RemoveDetail {
public static readonly type = '[Cv] Remove Detail';
con... |
/**
* @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 {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion';
import {
AfterContentChecked,
... |
import React, { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import { FiPlus, FiArrowRight } from 'react-icons/fi';
import { Map, TileLayer, Marker, Popup } from 'react-leaflet';
import 'leaflet/dist/leaflet.css';
import mapMarkerImg from '../images/map-marker.svg';
import mapIcon from... |
/**
* @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
*/
import { normalize, virtualFs } from '@angular-devkit/core';
import { HostTree, VirtualTree } from '@angular-devkit/s... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { JwtModule, JWT_OPTIONS } from '@auth0/angular-jwt';
import { HttpModule } from '@angular/http';
import { HttpClientModule } from '@angular/common/http';
import { Io... |
// @uifabric/react-cards@0.2.1
// Do not modify this file, the file is generated as part of publish. The checked in version is a placeholder only.
import { setVersion } from '@uifabric/set-version';
setVersion('@uifabric/react-cards', '0.2.1'); |
/* "Barrel" of Http Interceptors */
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { AuthInterceptor } from './auth-interceptor.service';
/** Http interceptor providers in outside-in order */
export const httpInterceptorProviders = [
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: ... |
// Type definitions for sinon-mongoose v1.3.0
// Project: https://github.com/underscopeio/sinon-mongoose
// Definitions by: stevehipwell <https://github.com/stevehipwell>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
import * as s from "sinon";
declare module "sinon" {
... |
import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
export class CreateCpfTotalTable1617547946504 extends MigrationUtility {
constructor() {
super('sal_cpf_totals');
this.process();
}
process() {
this.primary();
this.foreign({ name: 'employee_id', fo... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export ... |
import React, { useEffect, useMemo } from 'react';
import { toast } from 'react-toastify';
import type { ICompetition, IEntry } from '../competition.types';
import { httpPost } from '../../../utils/fetcher';
import { Input } from '../../../components/Input';
import { useForm, Controller } from 'react-hook-form';
import... |
import original from "date-fns/startOfYear"
import fromJSDate from "../fromJSDate"
import toJSDate from "../toJSDate"
export default function startOfYear(date: string): string {
return fromJSDate(original(toJSDate(date)))
} |
import { Point } from "../types";
// given collection of {x, y} points, get all y values
const getAllYs = (pts: Point[]): number[] => pts.map((pt) => pt.y);
export default getAllYs; |
import { Location } from '../source/Location';
export type BaseToken = {
readonly type: string;
};
export type TokenComment = BaseToken & {
readonly type: 'comment';
readonly value: string;
};
export type TokenText = BaseToken & {
readonly type: 'text';
readonly value: string;
};
export type TokenData = B... |
import { Component, OnInit } from '@angular/core';
import { Board, MyNode, Bridge } from '../board';
import { ActivatedRoute } from '@angular/router';
import { Router } from '@angular/router';
import { Injectable } from '@angular/core';
import { AngularFireAuth } from 'angularfire2/auth';
import * as firebase from 'fir... |
// Copyright 2017-2021 @axia-js/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ThemeProps } from '@axia-js/react-components/types';
import React from 'react';
import styled from 'styled-components';
import { Icon } from '@axia-js/react-components';
import { bountySvgColor }... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_BR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ICOBID</source>
<translation>Sobre o ICOBID</translation>
</message>
<message>
<loca... |
import styled from "styled-components";
import { darken, transparentize } from "polished";
export const Container = styled.form`
h2 {
color: var(--text-title);
font-size: 1.5rem;
margin-bottom: 2rem;
}
input {
width: 100%;
padding: 0 1.5rem;
height: 4rem;
border-radius: 0.25rem;
... |
/**
* Namespace: browser.contextMenus
* Generated from Mozilla sources
*
* Use the browser.contextMenus API to add items to the browser's context menu. You can choose what types of objects your context menu additions apply to, such as images, hyperlinks, and pages.
* Permissions: "contextMenus"
*
* Comments foun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.