text stringlengths 10 953k |
|---|
/*
* @Author: fjt
* @Date: 2021-06-06 13:33:26
* @LastEditors: fjt
* @LastEditTime: 2021-06-20 18:38:23
*/
import { AxiosRequestConfig, AxiosPromise, AxiosResponse } from '../types/index'
import { parseHeaders } from '../helpers/headers'
import { createError } from '../helpers/error'
import { isURLSameOrigin } fro... |
//import * as config from "./config.json";
import * as http from "http";
//import * as jss from "json-stringify-safe";
import * as path from "path";
import * as fs from "fs";
import * as os from "os";
let config = JSON.parse(fs.readFileSync("config.json", 'utf8'));
let meshBase = config.meshBase;
let server = http.cr... |
/**
* The FrontPanel Web Application Base class.
*/
import * as frontpanelWs from '../FrontPanelAPI';
enum HTTPResponseType {
ArrayBuffer,
Text
}
/**
* This class encapsulates the basic functionality of a web application
* using FrontPanel API via web socket interface.
*/
export abstract class FrontPane... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { DocsModule } from 'ng-documentation';
import { MultilineEllipsisModule } from 'src/app/ui/multiline-ellipsis/multiline-ellipsis.module';
import { EllipsisExample1Component } f... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Framework Emulator Github:
// https://github.com/Microsoft/BotFramwork-Emulator
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// ... |
import { EventEmitter, TextDocumentContentProvider, Uri, workspace } from 'vscode';
import { ParsedDocument, parseText } from '../parser';
export class MumpsVirtualDocument {
static readonly schemes = {
compiled: 'compiledMumps',
coverage: 'coverageMumps',
};
readonly parsedDocument: ParsedDocument;
constru... |
import React, { useCallback } from 'react'
import { useDispatch } from 'react-redux'
import Drawer from 'components/drawer/Drawer'
import {
audioTierMapPng,
TierLevel,
TierNumber
} from 'containers/audio-rewards-page/Tiers'
import { getKeyboardVisibility } from 'store/application/ui/mobileKeyboard/selectors'
im... |
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MultiSelectModule } from 'p... |
import * as core from '@actions/core'
import {getNxAffectedApps} from './getNxAffectedApps'
export async function run(workspace: string = '.'): Promise<void> {
try {
const {GITHUB_WORKSPACE = workspace} = process.env
const base = core.getInput('base')
const head = core.getInput('head')
... |
import { playPass } from './playPass';
test('Basic test', () => {
// expect(playPass('I LOVE YOU!!!', 1)).toStrictEqual('!!!vPz fWpM J');
// expect(playPass('2015', 1)).toStrictEqual('4897');
// expect(playPass('BORN', 1)).toStrictEqual('oSpC');
// expect(playPass('BORN IN 2015!', 1)).toStrictEqual('!4... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { AbstractFormRead } from 'src/app/dsps-staff/form/abstract-form-read';
import { ActivatedRoute, Router } from '@angular/router';
import { FormsService } from 'src/app/dsps-staff/form/forms.service';
import { AuthPrintService } from 'src/app/auth/auth... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
// User
import { UserController } from './users/user.controller';
import { User } from './users/user.entity';
import { UserService } from './users/user.service';
@Module({
imports: [
TypeOrmModule.forRoot({
type: 'my... |
export declare function stringToArray(s: string): Uint8Array;
export declare function arrayToString(a: Uint8Array): string;
export declare function mergeArrays(...arrays: Uint8Array[]): Uint8Array;
export declare function arraysEqual(a: Uint8Array, b: Uint8Array): boolean; |
/**
* See:
* https://gist.github.com/arielweinberger/f5c02406b48bb0e145e8542c7006649f
*/
import {
NestInterceptor,
ExecutionContext,
Injectable,
CallHandler,
} from '@nestjs/common';
import { map } from 'rxjs/operators';
@Injectable()
export class TransformInterceptor implements NestInterceptor {
removeK... |
import { Component, forwardRef, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { CommonConstants, getCssLikeValue } from 'ngx-sfc-common';
import { AvatarBadgeComponent } from 'ngx-sfc-components';
import { Star... |
import { IFormulaSheet } from "../../../Types/character";
import { basicDMGFormula } from "../../../Util/FormulaUtil";
export const data = {
baseStat: {
characterHP: [775, 1991, 2570, 3850, 4261, 4901, 5450, 6090, 6501, 7141, 7552, 8192, 8604, 9244],
characterATK: [14, 37, 47, 71, 78, 90, 100, 112, 120, 131,... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const IoIosTrendingDown: IconType; |
import { TailSpin } from "react-loader-spinner";
const Status = (props: {
isLoading: boolean;
isError: boolean;
errorMessage?: string;
}) => {
return (
<div className="w-100">
{props.isError === true && !props.errorMessage && (
<div>
<p className="text-danger">Error!</p>
</d... |
import { Pipe, PipeTransform } from '@angular/core';
import {
isNull,
isNil,
isUndefined,
isFunction,
isArray,
isString,
isObject,
isNumber
} from '../utils/utils';
@Pipe({
name: 'isNull'
})
export class IsNullPipe implements PipeTransform {
transform (value: any): boolean {
return i... |
import React from 'react'
import { withRouter, RouteComponentProps } from 'react-router'
import { Container } from 'reactstrap'
import firebase from './Firebase'
import { useAuthState } from 'react-firebase-hooks/auth'
import SignInForm from './SignInForm'
function SignIn (props: RouteComponentProps): JSX.Element ... |
import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
//Grab everything with import 'rxjs/Rx';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/throw';
import { Observer } from 'rxjs/Observer';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/cat... |
import React from "react";
import type { HandledMessageResponse } from "@storybook/native-controllers";
import SuccessMessage from "./SuccessMessage";
import ErrorMessage from "./ErrorMessage";
export interface CommandDetailsProps {
command: HandledMessageResponse;
}
export default ({ command }: CommandDetailsPro... |
import * as ts from 'typescript';
import {RawSourceMap} from 'source-map';
export interface CodeWithSourceMap {
code: string;
source?: string;
map?: RawSourceMap;
}
export interface TemplateMetadata {
template: CodeWithSourceMap;
node: ts.Node;
url: string;
}
export interface StyleMetadata {
style: Cod... |
/* TSBindingsGenerator Generated code -- this code is regenerated on each build */
namespace SkiaSharp
{
export class sk_path_get_bounds_0_Params
{
/* Pack=4 */
t : number;
public static unmarshal(pData:number, memoryContext: any = null) : sk_path_get_bounds_0_Params
{
memoryContext = memoryContext ? memor... |
namespace Shine
{
/** 装备穿戴行为类型(generated by shine) */
export class ItemEquipActionType
{
/** 主角(当前角色)添加buff arg1:buffID arg2:buff等级 */
public static HeroAddBuff:number=1;
/** 添加buff(arg1:buffID,arg2:buff等级) */
public static AddBuff:number=1;
/** 添加技能(arg1:技能ID,arg2:技能等级) */
public static AddSkill:n... |
import React, {
FunctionComponent,
forwardRef,
Ref,
useState,
useEffect
} from 'react';
import { CheckboxCheckedIcon } from '../icons';
import {
CheckboxContainer,
CheckboxStyles,
ErrorLabelCheck,
FlexCenter,
HiddenCheckbox,
LabelCheckbox,
InputRequired
} from './CheckboxStyles';
type IProps = ... |
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
export * from './CausalEffectsArrows.constants.js'
export * from './CausalEffectsArrows.js' |
import { CourseResourcesFactory } from '@courses/sigaa-course-resources-factory';
import { CourseResourcesManager } from '@courses/sigaa-course-resources-manager';
import { HTTP } from '@session/sigaa-http';
import { CourseStudent } from './sigaa-course-student';
/**
* Abstraction to represent the class that create i... |
import tsDirPromise from './tsDir';
import path from 'path';
const tsDir: string = path.resolve(__dirname, './tsDir');
const tsAddDir: string = path.resolve(__dirname, 'tsAddDir');
export default () => {
describe('unit-test item', () => {
function basketball () {
return 'basketball';
}
let expectedT... |
import { ICrypto, Logger } from "@azure/msal-common";
import { InteractionType } from "../utils/BrowserConstants";
import { EventCallbackFunction, EventError, EventPayload } from "./EventMessage";
import { EventType } from "./EventType";
export declare class EventHandler {
private eventCallbacks;
private logger... |
namespace Shine
{
/** 角色绑定平台消息(generated by shine) */
export class ApplyBindPlatformRequest extends GameRequest
{
/** 数据类型ID */
public static dataID:number=GameRequestType.ApplyBindPlatform;
public uid:string;
public platform:string;
constructor()
{
super();
this._dataID=GameRequestType.Ap... |
import React from 'react'
import Webcam from "react-webcam";
import PageContainer from '../components/PageContainer'
const Camera: React.FC = () => {
return (
<PageContainer>
<Webcam />
</PageContainer>
)
}
export default Camera |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { AuthService } from '../services/auth.service';
import { ToastComponent } from '../shared/toast/toast.component';
@Component({
select... |
import Method from "./method";
import Type from "./type/type";
export default interface Create extends Method<Type.PUT> {
} |
import { EndPoints } from "axios/api-config";
import { deleteAxios, getAxios, postAxios } from "axios/generic-api-calls";
import {
types,
flow,
getSnapshot,
destroy,
applySnapshot,
} from "mobx-state-tree";
import { AntiHeroType } from "./antiHeroType";
const AntiHeroModel = types.model({
id: types.identif... |
import {Directive, EventEmitter, HostListener, ElementRef, OnInit, Input} from '@angular/core';
@Directive({
selector: '[dMovable]'
})
export class MovableDirective implements OnInit {
topStart = 0;
leftStart = 0;
_allowDrag = false;
md: boolean;
@Input() handle: HTMLElement;
constructor(pub... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import type { Kernel } from '@jupyterlab/services';
import type { Slot } from '@phosphor/signaling';
import { CancellationToken } from 'vscode-jsonrpc';
import { CancellationError } from '../../common/cancellat... |
/// <reference types="react" />
/** @jsx jsx */
import { React, ThemeVariables } from 'jimu-core';
import { ColorItem } from '../../color-components';
interface ThemeColorProps extends Omit<React.HtmlHTMLAttributes<HTMLDivElement>, 'onChange'> {
value?: string;
showSharedColors?: boolean;
onChange?: (value:... |
<?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 Bitcoin</source>
<translation>About FireGeek</tran... |
/**
* @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
*/
interface FnWithArg<T> {
(...args: any[]): T;
new (...args: any[]): T;
}
function callableClassDecorator(): FnW... |
import { LanguageFeaturesTester } from "../../typescript/language-features/language-features-tester";
import { RelativePathImportTester } from "./relative-path-import-tester";
describe("RelativePathImportTester", () => {
let tester = new RelativePathImportTester();
it("should import a class from a relative p... |
import {
Component,
Input,
OnInit,
EventEmitter,
Output,
AfterViewInit,
AfterContentInit,
Renderer,
ElementRef,
} from "@angular/core";
import {FormGroup,FormControl,Validators} from "@angular/forms";
@Component({
templateUrl: "./tenant-edit.component.html",
styleUrls: [
... |
import { ButtonInteraction, Message } from 'discord.js';
import { RateLimiter } from 'discord.js-rate-limiter';
import { createRequire } from 'node:module';
import { Button, ButtonDeferType } from '../buttons/index.js';
import { EventData } from '../models/internal-models.js';
import { InteractionUtils } from '../util... |
import { Module } from '@nestjs/common';
import { BlogService } from './blog.service';
import { BlogController } from './blog.controller';
import { JwtModule } from '@nestjs/jwt';
import { PassportModule } from '@nestjs/passport';
import { jwtConfig } from 'src/config/jwt.config';
import { AuthModule } from 'src/auth/a... |
import { AppConsts } from '@shared/AppConsts';
import { UtilsService } from '@yoyo/abp';
export class SignalRAspNetCoreHelper {
static initSignalR(): void {
const encryptedAuthToken = new UtilsService().getCookieValue(
AppConsts.authorization.encrptedAuthTokenName,
);
abp.signalr = {
autoCon... |
interface IFilterChangedHandler {
handleFilterChanged(selected: number[]): void;
}
interface ILineUpWidgetProps {
data: any[];
watchForFilter: IFilterChangedHandler[];
} |
import axios from "axios";
import { Button, CircularProgress, InputLabel } from "@material-ui/core";
import moment from "moment";
import CloudUploadOutlineIcon from "@material-ui/icons/CloudUpload";
import loadable from "@loadable/component";
import React, { useCallback, useState, useEffect } from "react";
import { use... |
export * from './angular.utils'; |
import { AngularPresentationPage } from './app.po';
describe('angular-presentation App', () => {
let page: AngularPresentationPage;
beforeEach(() => {
page = new AngularPresentationPage();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(1).toEqual(1);
});
}); |
import 'source-map-support/register';
import colors = require('colors/safe');
import fs = require('fs-extra');
import { determineStorageDirectory } from '../lib/determine-storage-directory';
import { findAllPackages } from '../lib/find-all-packages';
import { debug, setVerbose } from '../lib/logging';
import { runNpmC... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// Driver file to run the main analysis with NodeProf.
import {main} from "../nodeprof";
import Analysis from "./analysis";
// do not remove the following comment
// JALANGI DO NOT INSTRUMENT
const main: main = (sandbox) => {
// console.log("initializing...");
//@ts-ignore
sandbox.addAnalysis(new Analys... |
import React, { Component } from "react";
import { View, StyleSheet, Text } from "react-native";
import Button from "./Button";
interface Props {
count: number;
increment: () => any;
decrement: () => any;
}
export default class Counter extends Component<Props, {}> {
render() {
return (
<View style={... |
import {esBuilder} from '..'
describe('esBuilder - Filters', () => {
it('filter term', () => {
const result = esBuilder().filter('term', 'field', 'value').build()
expect(result).toEqual({
query: {
bool: {
filter: {
term: {field: 'value'},
},
},
},
... |
//Version type
let version: string = "V2 Alpha 2";
//Other vars
let edition: string;
declare var i: any;
declare var len: any;
//Sets label for each axis
function setLabel(val, ary) {
if(val > 100) {return ""} else
if(val > 95) {return ary[0]} else
if(val > 85) {return ary[1]} else
if(val > 75... |
export * from "./BaseGraphXml";
export * from "./GraphXml";
export * from "./GraphXmlGetter";
export * from "./GraphXmlSetter"; |
import { Formattable, FormattableArray as FA } from "../structures/formattable.struct";
export const language: Languages = {
blacklisted: "Fyrirgefðu, þú hefur verið bannaður, þú getur ekki keyrt commands þangað till að þú verður unbannaður.",
commands: {
help: {
title: new Formattable("Commands Listi: Síða {} a... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import ethereumConfig from "./json/ethereum-config.json";
import nearConfig from "./json/near-config.json";
import BN from "bn.js";
// NEAR keystore init
const nearAPI = require("near-api-js");
const keyStore = new nearAPI.keyStores.UnencryptedFileSystemKeyStore(
nearConfig.KeyStore
);
async function main() {
... |
import React from 'react';
import { IconProps } from '../types';
const LockClosed = ({ width, height, opacity, fill }: IconProps) => (
<svg width={width} height={height} opacity={opacity} viewBox="0 0 100 100">
<path
fill={fill}
d="M75.996 25.07l.004.43V47h12.5l1.5 1.5v50l-1.5 1.5h-77L10 98.5v-50l1.... |
import { Icon, Input, InputGroup, InputLeftElement } from '@chakra-ui/react';
import React from 'react';
export default function IconTextbox({ icon, ...other }) {
return (
<InputGroup>
<InputLeftElement pointerEvents='none' width='4.5rem'>
<Icon as={icon} mr={8} mb={2}/>
</InputLeftElement>
... |
/**
* Helper method to execute a row of hooks with certain parameters.
* It will return with a reject promise due to a design decision to not let hooks/service intefer the
* actual test process.
*
* @param {Function|Function[]} hooks list of hooks
* @param {Object[]} args list of parameter for hook functions
... |
import { Injectable } from '@angular/core';
import { Actions, ofType, createEffect } from '@ngrx/effects';
// Constants
import { map, withLatestFrom, catchError, mergeMap} from 'rxjs/operators';
// Actions
import * as fromActions from './api-keys.actions';
import * as fromUserSessionActions from '@stores/user-session... |
/**
* @module Intacct/SDK/Functions/GeneralLedger
*/
/**
* Copyright 2018 Sage Intacct, 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/LICENS... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { noop } from 'rxjs';
import { Store } from '@ngrx/store';
import { tap } from 'rxjs/operators';
import { AppState } from '../../app.reducer';
import ... |
import React, {useContext} from "react";
import {Project} from "../../../model/types";
import {State} from "../../../state/stateEntity";
const ProjectContext = React.createContext<State<Project> | null>(null);
// export const ProjectProvider = ({project, children} : {project: State<Project>, children: React.ReactNode... |
import * as moment from 'moment';
export var Defaults = {
ranges: [{
name: 'Today',
value: {
start: moment(),
end: moment()
}
},{
name: 'Yesterday',
value: {
start: moment().subtract(1, 'days'),
end: moment().subtract(1, 'days')
}
},{
name: 'last 7 days',
value: {
start: moment().sub... |
import { Component, OnInit } from '@angular/core';
import {Router} from "@angular/router";
import {AuthService} from "../auth.service";
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
export class HomeComponent implements OnInit {
constructor(pri... |
import React from 'react';
import { Link } from 'react-router-dom';
import Grid from '@material-ui/core/Grid';
import Box from '@material-ui/core/Box';
type IconsProps = {
icons: Record<string, any>
}
const iconStyle: React.CSSProperties = {
width: '200px',
height: '200px',
marginLeft: 'auto',
ma... |
import { Component, Input } from '@angular/core';
import { CollectionViewModel } from '@nakedobjects/view-models';
@Component({
selector: 'nof-collections',
templateUrl: 'collections.component.html',
styleUrls: ['collections.component.css']
})
export class CollectionsComponent {
@Input()
collecti... |
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { NgxPopoverComponent } from "./ngx-popover.component";
import { NgxPopoverDirective } from "./ngx-popover.directive";
@NgModule({
declarations: [NgxPopoverComponent, NgxPopoverDirective],
imports: [CommonModule],
ex... |
import React from 'react';
export const Ps1 = () => {
return (
<div>
<span className="text-light-yellow dark:text-dark-yellow">randomuser</span>
<span className="text-light-gray dark:text-dark-gray">@</span>
<span className="text-light-green dark:text-dark-green">gianlucatuscano.it</span>
... |
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
import { fi } from 'date-fns-jalali/locale'
export default fi |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { PinpointEmailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointEmailClient";
import {
PutConfigurationSetReputationOptionsRequest,
PutConfigurationSetReputationOptionsResponse,
} from "../models/index";
import {
deserializeAws_restJson1PutConfigurationSetReputationOptionsComm... |
import { Tag } from "./tag";
export declare class Regex<T extends string> {
private __regex;
}
export declare function isRegex<T extends string>(value: string, regex: T): value is string & Regex<T>;
export declare type Accii = Tag<"ascii">;
export declare function isAscii<T extends number>(value: string): value is ... |
/* 0.69.9 */
import { Selector } from './commands';
import { CoreOptions, MathfieldOptions, VirtualKeyboardOptions } from './options';
import { ParseMode, MacroDictionary, Style, Registers } from './core';
/**
*
| Format | Description |
| :-------------------- | :---------------------- |
| `... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Subject } from 'rxjs';
import { map } from 'rxjs/operators';
import { Router } from '@angular/router';
import {environment} from '../../environments/environment';
import swal from 'sweetalert2';
const Ba... |
import { ListRange } from "@angular/cdk/collections";
import { ScrollingModule } from "@angular/cdk/scrolling";
import { AfterViewInit, Component, NO_ERRORS_SCHEMA, OnDestroy, ViewChild } from "@angular/core";
import { async, ComponentFixture, TestBed } from "@angular/core/testing";
import { BehaviorSubject, Observable... |
export type LambdaResult = { say: "Yay!" } |
import React from 'react';
import { baseProps } from '../types';
export interface IFormValues {
value: any;
name: string;
values: baseProps;
}
export interface IFormValidator {
rule: string | (({ value, name, values }: IFormValues) => boolean);
message: string;
}
export interface IFormRef {
values: baseP... |
import * as fc from 'fast-check';
import { expect, test } from 'vitest';
import sigfig from '~/index.js';
test('rounds correctly', () => {
const num1 = '3.10194';
const num1Expected = [
[1, '3'],
[2, '3.1'],
[3, '3.10'],
[4, '3.102'],
[5, '3.1019'],
[6, '3.10194'],
[7, '3.101940'],
[8, '3.1019400']... |
<TS language="gl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Crear unha nova dirección</translation>
</message>
<message>
<source>&New</source>
<translation>&Novo</translation>
</message>
... |
import React from 'react';
import { ITestableProps } from '../../../types';
import { IToastData } from '../../providers/ToastProvider/ToastProvider.types';
export interface IToastProps extends ITestableProps, React.HtmlHTMLAttributes<HTMLElement> {
data: IToastData;
} |
import {
MigrationInterface,
QueryRunner,
Table,
TableForeignKey,
} from 'typeorm';
export default class CreateAdFilesTable1625683054770
implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: 'ad_files',
... |
/**
* License https://github.com/Remix-Design/RemixIcon/blob/master/License
*/
import { SVGIconDef } from './types';
const BankOutlined: SVGIconDef = {
name: 'bank',
theme: 'outlined',
attrs: {
viewBox: '0 0 24 24',
},
children: '<path fill="none" d="M0 0h24v24H0z"/><path d="M2 20h20v2H2v-2zm2-8h2v7H4v... |
/*
* The MIT License
*
* Copyright 2020 Juliano Maciel Ferreira.
*
* 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 us... |
declare namespace adone {
/**
* Various data [de]serializers
*/
namespace data {
/**
* JSON encoder
*/
namespace json {
namespace I {
type Replacer = ((key: string, value: any) => any) | string[];
interface CompareValue {
... |
import SensorDataComponent from "./components/SensorDataComponent";
import React from "react";
export function App() {
return (
<div className="container">
<h1>Reactive web app sample</h1>
<div className="row">
<SensorDataComponent/>
</div>
</div>... |
export interface ParsedPath {
root: string;
dir: string;
base: string;
ext: string;
name: string;
}
export interface IPath {
normalize(path: string): string;
isAbsolute(path: string): boolean;
join(...paths: string[]): string;
resolve(...pathSegments: string[]): string;
relative(... |
import config from 'config'
import * as request from 'request-promise'
import { Promise } from 'es6-promise'
import { Issue } from './core'
const apiKey = config.get<string>('trello.api_key')
const apiToken = config.get<string>('trello.api_token')
const listId = config.get<string>('trello.list_id')
export function cr... |
import { RouteRenderer } from './helper/route';
const ledger: RouteRenderer<typeof import('./windows/inspectors/money-inspector').MoneyInspector> = {
id: 'ledger',
emoji: '💰',
name: 'Money',
root: () =>
import('./windows/inspectors/money-inspector').then(
(m) => m.MoneyInspector
),
};
const allEntities: R... |
/**
* @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 { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect';
import { EmittedFiles, Webp... |
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { Menu } from '../menu/menu';
import { DropdownButton } from './dropdown-button'... |
import React from 'react';
import { Button } from 'antd';
import { AppState } from '../../reducers/RootReducer';
import { GameScore, NONE } from './../../util/calculateGameResult';
import { connect } from 'react-redux';
type GameFieldOwnProps = {
value: string,
rowIndex: number,
columnIndex: number,
is... |
import { currentRenderingInstance } from '../componentRenderUtils'
import {
currentInstance,
Component,
FunctionalComponent,
ComponentOptions
} from '../component'
import { Directive } from '../directives'
import { camelize, capitalize, isString, isObject } from '@vue/shared'
import { warn } from '../warning'
... |
import dayjs from "dayjs";
import CheckIn from "../../models/checkIn.model";
import Scheduling from "../../models/scheduling.model";
import User from "../../models/user.model";
import Volunteer from "../../models/volunteer.model";
import {
CheckInDTOWithShiftType,
SchedulingDTOWithShiftType,
UpdateVolunteerDTO,
... |
import { Entity, Column, PrimaryGeneratedColumn, ObjectIdColumn, ObjectID, PrimaryColumn, ChildEntity } from 'typeorm';
import { BaseEntity } from '../../utils/base.entity';
import { ApiProperty, ApiPropertyOptional, ApiBody } from '@nestjs/swagger';
@Entity('machines')
export class Machines extends BaseEntity {
... |
import walkSync from 'walk-sync';
import pLimit from 'p-limit';
import { NFTMetadata } from 'rmrk-tools/dist/rmrk1.0.0/classes/nft';
import { pinata, sleep, uploadAndPinIpfsMetadata } from './utils';
import fs from 'fs';
import { Readable } from 'stream';
import { PinataPinOptions } from '@pinata/sdk';
const defaultOp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.