text stringlengths 10 953k |
|---|
import SerialPort, { parsers } from 'serialport'
import { IHwContext, ISerialPortInfo, SerialPortHelper } from 'src/custom-types'
import { IWiseXboardPremiumControl } from './IWiseXboardPremiumControl'
const DEBUG = false
const DELIMITER = Buffer.from([0x23, 0x08, 0x0])
/**
* 하드웨어 서비스
*/
export class WiseXboardPrem... |
import { ReactNode } from 'react';
type IHeroOneButtonProps = {
title: ReactNode;
description: string;
button: ReactNode;
image?: {
src: string;
alt: string;
};
};
const HeroOneButton = (props: IHeroOneButtonProps) => (
<header className="flex flex-wrap items-center text-center lg:text-left">
... |
import keypairs = require('call-keypairs')
function fromSecret(secret) {
try {
const keypair = keypairs.deriveKeypair(secret);
const address = keypairs.deriveAddress(keypair.publicKey);
return {secret: secret, address: address};
} catch (error) {
return null;
}
};
export {
... |
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { NgModule, Component } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import {LocationStrategy, HashLocationStrategy} from '@angular/common';
import {RouterModule} from "@angular/router";
import {H... |
// Copyright (c) 2019 Dominic Masters
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, mod... |
import { async, inject, TestBed } from '@angular/core/testing';
import { FeatureCollectorService } from './collector.service';
import { EsriMapModule } from '@tamu-gisc/maps/esri';
import { RouterTestingModule } from '@angular/router/testing';
import { SearchModule } from '@tamu-gisc/search';
import { HttpClientTestin... |
import { useEffect, useMemo } from 'react'
import BigNumber from 'bignumber.js'
import { kebabCase } from 'lodash'
import { useWeb3React } from '@web3-react/core'
import { Toast, toastTypes } from 'polygon-moonwalkerswap-uikit'
import { useSelector, useDispatch } from 'react-redux'
import { getWeb3NoAccount } from 'uti... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About VLBcoin</source>
<translation>O VLBcoinu</translation>
</message... |
import { createBrowserHistory } from 'history';
import { applyMiddleware, compose } from 'redux';
import { routerMiddleware, connectRouter } from 'connected-react-router';
import Store, { combine, create } from 'store-decorator';
import app from './app';
import sideMenu from './side-menu';
const models = {
app,
s... |
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { EditAccountFormComponent } from './edit-account-reactive.component';
import { AddAccountFormComponent } from './add-account-reactive.component';
@NgModule... |
import { injectable } from "inversify";
import { ProductDAO, ProductEntity } from "../../../domain/entities/product.entity";
import { IProductRepository } from "../../../domain/interfaces/product-repository.interface";
@injectable()
export class ProductRepository implements IProductRepository {
save(item: ProductEn... |
export { defaultRoutes, routes };
const routes = {
ADMIN: { getPath: () => '/label/admin' },
ADMIN_MAIN: { getPath: () => '/label/admin/main/' },
WORKING_USERS: { getPath: () => '/label/admin/main/working-users' },
ANNOTATION: { getPath: () => '/label/annotation' },
ANONYMIZED_DOCUMENT: {
getPath: (docum... |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { RecipesModule } from './recipes/recipes.module';
import { IngredientsModule } from './ingredients/ingredients.module';
@Mod... |
// https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTFLoader.js
import {AnimationClip} from "./three-core";
import {Camera} from "./three-core";
import {LoadingManager} from "./three-core";
import {Scene} from "./three-core";
export class GLTF {
animations: AnimationClip[];
scene: Scene;
... |
import LaTeX2JS from '../index';
const latex = new LaTeX2JS();
describe('Parser', () => {
it('parser', () => {
const parser = latex.getParser();
const parsed = parser.parse(`
Let's get to the point. The core of PSTricks is graphics!
\\begin{center}
\\begin{pspicture}(-5,-5)(5,5)
\\psline{->}(0,-3.75)(0,3.75... |
/**
* Asynchronously loads the component for HomePage
*/
import * as React from 'react'
import LoadingIndicator from 'components/LoadingIndicator'
import loadable from 'utils/loadable'
export default loadable(() => import('./index'), {
fallback: <LoadingIndicator />,
}) |
/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { AnalyticsService, ApiUrlConfig, DateTime, hasAnyLink, pretifyError, Resource, R... |
import Command from "~/core/Command";
import { ROLE_RESTRICT } from "~/const/command/setting";
import GuildConfig, { GuildConfigDocument } from "~/model/GuildConfig";
export default new Command({
name: ROLE_RESTRICT.REMOVE.CMD,
description: ROLE_RESTRICT.REMOVE.DESC,
usage: ROLE_RESTRICT.REMOVE.USAGE,
alias: R... |
// TypeScript Version: 2.1
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
export default class MdPlusOne extends React.Component<IconBaseProps, any> { } |
declare module '*.css';
declare module '*.less';
declare module 'deli-design'; |
/**
* サービス状態を表すオブジェクト
*/
export default class ServiceStatus {
static readonly STATUS_OK = 'OK'
static readonly STATUS_ERROR = 'ERROR'
static readonly STATUS_UNKNOWN = 'UNKNOWN'
/**
* サービス名
*/
protected name!: string
/**
* サービス状態コード(STATUS_XXX)
*/
protected status!: string
/**
* エラーの詳... |
import * as React from 'react';
import { ToggleButtonProps } from './ToggleButton.types';
import { useToggleButton } from './useToggleButton';
import { renderToggleButton } from './renderToggleButton';
import { useInlineTokens } from '@fluentui/react-theme-provider/lib/compat/index';
import { useToggleButtonClasses } f... |
import { Entity, IdentifiedReference, MikroORM, OneToOne, PrimaryKey, Property, wrap, Reference } from '@mikro-orm/core';
import type { SqliteDriver } from '@mikro-orm/sqlite';
@Entity()
export class A {
@PrimaryKey({ type: 'number' })
id!: number;
// eslint-disable-next-line @typescript-eslint/no-use-before-d... |
/*!
* devextreme-angular
* Version: 18.2.3
* Build date: Thu Nov 08 2018
*
* Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://git... |
// Copyright 2022 the optic authors. All rights reserved. MIT license.
// Adapted from https://github.com/planttheidea/fast-stringify (MIT, Copyright (c) 2018 Tony Quetano)
import { DateTimeFormatter } from "../types.ts";
/**
* @function getReferenceKey
*
* @description
* get the reference key for the circular va... |
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, TestBed } from '@angular/core/testing';
import { Platform } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { RouterTestingModule } from '@angu... |
/*
* Copyright (C) 2019 CaMnter yuanyu.camnter@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
import { ManagedObject, Handle, MonoRuntime, MarshalType } from "./runtime";
declare const Module: any;
export class WebAssemblyAgent extends ManagedObject {
constructor(handle: Handle, runtime: MonoRuntime) {
const asm = runtime.loadAssembly("Xamarin.Workbooks.WebAssembly")
const klass = asm.find... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.24
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*... |
import { IHero, IPowerStats, PreparationT } from '_types/types'
type SetPlayer1HeroAction = {
type: 'SET_PLAYER_1'
payload: {
player1: IHero
}
}
type SetPlayer2HeroAction = {
type: 'SET_PLAYER_2'
payload: {
player2: IHero
}
}
type SetAllHeroesAction = {
type: 'SET_ALL_HEROES'
payload: {
a... |
import { getActiveOrgGraphObjects, getDeletedOrgGraphObjects } from "./db";
import * as graphKey from "./graph_key";
import { Graph, Rbac, Model, Api, Auth } from "@core/types";
import { env } from "./env";
import { verifySignedLicense } from "./auth";
import { getOrgBillingId } from "./billing";
import * as R from "ra... |
import * as mApps from './mock-applications';
import { Journey } from './journey';
export const testJourney1 = new Journey({
title: "Test1",
startDate: "2019-4-13",
active: true,
id: 0,
applications: [].concat(mApps.MOCK_APPS_1),
});
export const testJourney2 = new Journey({
title: "Test2221",
startDate:... |
/* eslint-disable @typescript-eslint/unbound-method */
import { Event, Hub, Integration } from '@sentry/types';
import { CaptureConsole } from '../src/captureconsole';
const mockScope = {
setLevel: jest.fn(),
setExtra: jest.fn(),
addEventProcessor: jest.fn(),
};
const mockHub = {
withScope: jest.fn(callback ... |
//@target: ES6
class StringIterator {
next() {
return "";
}
}
var v: string;
for (v of new StringIterator) { } // Should fail because the iterator is not iterable |
/**
* @license
* Copyright 2020 Dynatrace 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
/* eslint-disable */
// This file is automatically generated
import React from 'react'
import createIcon from './base/createIcon'
const svgElement = (
<svg viewBox='0 0 512 512'>
<path d='M208 464H304V496H208z'/><path d='M192 416H320V448H192z'/><path d='M369.42 62.69C339.35 32.58 299.07 16 256 16A159.62 1... |
import {StyleSheet} from 'react-native';
import {useSizeLabor} from '../../providers/size-labor';
import {getSharedStyles} from '../../helpers';
import {SizeLabor, ThemeLabor} from '../../types';
export const makeStyles = (sizeLabor: SizeLabor, themeLabor: ThemeLabor) => {
const {ms, designsBasedOn} = useSizeLabor... |
import React, { useState, useCallback } from 'react';
import { Stack, Callout, Link, IconButton } from '@fluentui/react';
import LogDrawer from '../../modals/LogPanel';
import { EXPERIMENT } from '../../../static/datamodel';
import { formatTimestamp } from '../../../static/function';
import { useId } from '@uifabric/re... |
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { join } from "path"
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
// root: join(__dirname, "src/render"),
build: {
outDir: join(__dirname, 'dist/render'),
assetsDir: '', // 相对路径 加载问题
rollu... |
import { Avalanche, BN } from "../../src"
import {
PlatformVMAPI,
KeyChain as PlatformKeyChain
} from "../../src/apis/platformvm"
import {
EVMAPI,
KeyChain as EVMKeyChain,
UnsignedTx,
Tx
} from "../../src/apis/evm"
import {
PrivateKeyPrefix,
DefaultLocalGenesisPrivateKey,
Defaults,
costExportTx
} fr... |
import { readdirSync } from "fs";
/**
*
* The function gets the paths to the files in the folder
*
* @method
* @param dirs Array strings
*
* @returns Paths to files in the folder
*/
function getPathsFS(dirs: string[]): string[] {
/**
* File paths
*
*/
let fls: string[] | any[] = new Array();
di... |
import {HttpClient, HttpErrorResponse} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Observable, throwError as observableThrowError} from 'rxjs';
import {catchError} from 'rxjs/operators';
import {Book} from "../model/book";
import {ShortBook} from "../model/short-book";
@Injectable()
... |
import { should } from 'chai';
import { TypeException, nameof } from "../src/index";
should();
describe('simple error', () => {
it('check error type', () => {
let err = returnNewTypeException();
err.should.instanceOf(TypeException);
function returnNewTypeException(): Error {
tr... |
import { Injectable } from '@angular/core';
import { Company } from './company';
@Injectable({
providedIn: 'root'
})
export class CompanyProfileService {
private key = 'companyKey';
constructor() { }
getCompany(): Company {
return JSON.parse(localStorage.getItem(this.key));
}
setCompany(company: Co... |
<TS language="ku_IQ" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>ناوونیشانێکی نوێ دروست بکە</translation>
</message>
<message>
<source>&New</source>
<translation>&نوێ</translation>
</messag... |
import { Shop } from './components/shop.component';
export const routing = ($stateProvider: angular.ui.IStateProvider) => {
$stateProvider
.state('shop', {
url: '/shop',
component: Shop.selector
});
}; |
import { Field, InputType } from '@nestjs/graphql';
import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
import { IsStrongPassword } from '@shared/validators/is-strong-password';
@InputType({
description: 'Reset password input.'
})
export class ResetPasswordInput {
@Field(() => String, {
nullable:... |
import { connect } from "react-redux";
import { fetchObservationPosition } from "../../actions/observation-positions/observationPositionActions";
import { bindActionCreators } from "redux";
import ObservationPositionHome from "../../components/observation-positions/ObservationPositionHome";
interface MyStateProps {
... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
import { ExchangeRateItem } from "../../src/resources/ExchangeRates";
export const generateFixture = (): ExchangeRateItem => ({
amount: 5000,
currency: "jpy",
}); |
import {Component, ContentChild, HostBinding, Input, ViewEncapsulation} from '@angular/core';
import {MdlTabPanelTitleComponent} from './mdl-tab-panel-title.component';
@Component({
selector: 'mdl-tab-panel-content',
template: '<ng-content></ng-content>',
encapsulation: ViewEncapsulation.None
})
export class Mdl... |
import { Injectable } from '@nestjs/common';
import { User } from './interfaces/user.interface';
import { CreateUserDto } from './dto/create-user.dto';
import { UsersRepository } from './users.repository';
@Injectable()
export class UsersService {
constructor(private readonly usersRepository: UsersRepository) {}
... |
import { HTTP_INTERCEPTORS, HttpClient, HttpInterceptor } from '@angular/common/http'
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'
import { ClassProvider } from '@angular/core'
import { TestBed } from '@angular/core/testing'
import { firstValueFrom } from 'rxjs'
import {... |
// *** 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 * as inputs from "../../types/input";
import * as outputs from "../../types/output";
import * as utilities from "..... |
import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { HomePageComponent } from "./home-page/components/home-page/home-page.component";
import { EventPageComponent } from "./event-page/components/event-page/event-page.component";
const routes: Routes = [
{ path: ""... |
import { PlanService } from '@/services/plan-service';
import { IPlan } from '@/iplan';
describe('PlanService', () => {
const planService = new PlanService();
// tslint:disable:max-line-length
const source = `
Result (cost=0.01..0.05 rows=2 width=4) (actual time=1001.083..1001.087 rows=2 loops=1)
CTE test
-... |
/*
Copyright 2020 The Matrix.org Foundation C.I.C.
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 agreed to in ... |
/**
* @license
* Copyright 2019 Balena Ltd.
*
* 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 o... |
export default textStyle;
declare namespace textStyle {
export { setFont };
export { getFont };
export { setFontSize };
export { getFontSize };
export { setBackgroundColor };
export { getBackgroundColor };
}
declare function setFont(font: any): void;
declare function getFont(): string;
declare f... |
export interface PreloadSession extends Record<string, any> {} |
import React from 'react';
import { css } from 'glamor';
import { NavLink } from 'react-router-dom';
import _ from 'lodash';
import CurrentUserNavItem from './CurrentUserNavItem';
import styles from './Nav.styles';
import { compose } from 'recompose';
import { injectState } from 'freactal';
import RESOURCE_MAP from 'c... |
import { isDate, isNormalObject, isFormData, extend, deepMerge } from '../../src/helps/untils'
describe('helpers:util', () => {
describe('isXX', () => {
test('should validate Date', () => {
expect(isDate(new Date())).toBeTruthy()
expect(isDate(Date.now())).toBeFalsy()
})
test('should validat... |
/*
* Copyright 2022 Salto Labs Ltd.
*
* 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 ... |
import Ajv from "ajv";
import { should } from "chai";
should();
const ajv = new Ajv({ schemaId: "id", allErrors: true });
ajv.addMetaSchema(require("ajv/lib/refs/json-schema-draft-04.json"));
export function assertValid(schema: Object, model: any): void {
assert(true, schema, model);
}
export function assertInval... |
export const ON_LOCATION_CHANGED = 'ON_LOCATION_CHANGED';
export const TOGGLE_LOADER = 'TOGGLE_LOADER';
export const TOGGLE_WEBVIEW = 'TOGGLE_WEBVIEW';
export const LOCALE_CHANGED = 'LOCALE_CHANGED';
export const TOGGLE_CHANGE_LANGUAGE = 'TOGGLE_CHANGE_LANGUAGE';
export const UPDATE_EXPOSURES = 'UPDATE_EXPOSURES';
expo... |
import * as React from 'react';
import { TextField } from '../../../../src/components/';
import * as styles from '../../styles/components-page.scss';
const TextFieldExample2 = () => (
<div className={styles.example}>
<TextField
label="Shipping address"
multiline
/>
</div>
);
export default Tex... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { WelcomeComponent } from './welcome/welcome.component';
import { SetupAdminComponent } from './setup-admin/setup-admin.component';
import { InitRouterModule } from './init-routing';
import { MatFormFieldModule } from '@ang... |
import { VmAffinityRuleUpdateRequestJson } from './__json__/vm-affinity-rule-update-request-json';
/* istanbul ignore next: autogenerated */
export class VmAffinityRuleUpdateRequest {
private readonly _json: VmAffinityRuleUpdateRequestJson;
constructor(vmAffinityRuleUpdateRequest: VmAffinityRuleUpdateRequest);
... |
import chai from "chai"
import chaiHtpp from "chai-http"
import { expect } from "chai"
import { usersApp } from '../../app'
chai.use(chaiHtpp);
describe("Check : Users Service ", () : void => {
it ("Users Service Base Url Checking", (done) : void => {
chai.request(usersApp)
.get('/u... |
import { defineConfig } from 'vite';
import Vue from '@vitejs/plugin-vue';
import { VitePWA } from 'vite-plugin-pwa';
import Pages from 'vite-plugin-pages';
import ViteComponents from 'vite-plugin-components';
import ViteIcons, { ViteIconsResolver } from 'vite-plugin-icons';
import { resolve } from 'path';
import { exe... |
import { Context, HttpRequest } from '@azure/functions';
import { AzureHttpAdapter } from '@nestjs/azure-func-http';
import { createApp } from '../src/main.azure';
export default function (context: Context, req: HttpRequest): void {
context.res = {
headers: {
"Content-Type": "application/json"
}
};... |
import {Injectable} from '@angular/core';
import {Router} from "@angular/router";
import {AngularFireAuth} from "@angular/fire/auth";
import {AngularFirestore, AngularFirestoreDocument} from "@angular/fire/firestore";
import {Observable, of} from "rxjs";
import {switchMap} from "rxjs/operators";
import {User} from ".... |
import { isSameDay } from 'date-fns';
import { AbstractControl, ValidationErrors } from '@angular/forms';
import * as moment from 'moment';
export class DateValidators {
static dateRange(group: AbstractControl): ValidationErrors | null {
const startTime = group.get('startTime').value;
const endTime = group.... |
import type { WatchOptions } from "vue";
import type { Commit, Dispatch } from "vuex";
import type { ModuleOptions } from "./options";
import type { StoreModule } from "./store-modules";
export type ProxyKind = "public"|"getter"|"mutation"|"action";
export type LocalGetter<M extends StoreModule> = (this: M) => unknow... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*
* Copyright 2022 ThoughtWorks, 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 applicable law or agr... |
/**
* Copyright (c) 2019, cic (http://www.cic.org) All Rights Reserved.
*
* cic licenses this file to you 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/L... |
import { registerEnumType } from 'type-graphql';
export enum GrantType {
AccessToken = 'access_token',
RefreshToken = 'refresh_token',
}
registerEnumType(GrantType, {
name: 'GrantType',
description: 'Available grant types',
}); |
/**
* Copyright (c) Crew Dev.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import * as colors from "fmt/colors.ts";
/**
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby... |
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
import type * as typedoc from 'typedoc';
export type DeclarationReflection = typedoc.JSONOutput.DeclarationReflection;
export interface ExtendedDeclarationReflection extends DeclarationReflection {
location?: Location;
exte... |
import { SortType, SortDirection, SortPropDir } from '../types';
/**
* Gets the next sort direction
*/
export declare function nextSortDir(sortType: SortType, current: SortDirection): SortDirection | undefined;
/**
* Adapted from fueld-ui on 6/216
* https://github.com/FuelInteractive/fuel-ui/tree/master/src/pipes/O... |
export type User = {
userId: number;
userName: string;
userFullName: string;
signName: string;
signSymbol: string;
birthdate: string;
chatId: number;
}; |
import {useContext} from "react";
import {AuthContext} from "../context/AuthContext";
export function useAuth(){
const value = useContext(AuthContext);
return value;
} |
import {
ElasticLoadBalancingV2ClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../ElasticLoadBalancingV2Client";
import { ModifyTargetGroupInput, ModifyTargetGroupOutput } from "../models/models_0";
import {
deserializeAws_queryModifyTargetGroupCommand,
serializeAws_queryModifyTargetGroup... |
import {GatewayBond, PagedGatewayResponse} from "../types";
import {INetClient} from "../net-client"
import {IQueryClient} from "../query-client";
import {VALIDATOR_API_GATEWAYS, VALIDATOR_API_PORT} from "../index";
import axios from "axios";
/**
* There are serious limits in smart contract systems, but we need to k... |
/* GENERATED FILE */
import * as React from "react";
import Svg, { Rect, Circle, Polyline } from "react-native-svg";
import { IconProps } from '../lib'
function Medal(props: IconProps) {
return <Svg viewBox="0 0 256 256" width={props.size} height={props.size}
fill={props.color} {...props}><Rect width={256} height={... |
import path = require('path');
import tl = require('vsts-task-lib/task');
import sign = require('ios-signing-common/ios-signing-common');
import utils = require('./xcodeutils');
import { ToolRunner } from 'vsts-task-lib/toolrunner';
async function run() {
try {
tl.setResourcePath(path.join(__dirname, 'tas... |
import { Vehicle } from './Vehicle';
import { VehicleWindowIndex } from '../enums';
import { VehicleWindow } from './VehicleWindow';
export class VehicleWindowCollection {
private _owner: Vehicle;
private readonly _vehicleWindows: Map<VehicleWindowIndex, VehicleWindow> = new Map<
VehicleWindowIndex,
Vehicl... |
export default {
$schema: "http://json-schema.org/schema#",
title: "Component with number-field",
description: "A test component's schema definition.",
type: "object",
id: "numberField",
properties: {
level: {
title: "Level",
type: "number",
enum: [1, ... |
import { OverlayModule } from '@angular/cdk/overlay';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NzAddOnModule } from '../core/addon/addon.module';
import { NzIconModule } from '../icon/nz-icon.module';
import { NZ_MESSAGE_DEFAULT_CONFIG_PROVIDER } from './nz-mes... |
import { createAtom, createStore } from 'dotto.x'
import { reduxDevtools } from './index'
it('test types', () => {
let someStore = createStore({ some: 'value' })
let unbind = reduxDevtools({ someStore })
unbind()
})
it('test types with mutliply stores', () => {
let someStore = createStore({ some: 'value' })
... |
import * as mongoose from "mongoose";
import {schemaOptions} from "../utils/schemaOptions";
/**
*
* @param {(schema: "mongoose".Schema, options?: any) => void} plugin
* @param options
* @returns {Function}
* @decorator
* @mongoose
* @class
*/
export function MongoosePlugin(plugin: (schema: mongoose.Schema, opt... |
import { Response, NextFunction, Request } from 'express';
import { getAllTodos } from '../services/todos';
export const getTodos = (_: Request, res: Response, next: NextFunction): Promise<Response> =>
getAllTodos()
.then(todos => res.send(todos))
.catch(next); |
import { TermuxApi } from '../lib/TermuxApi';
async function main() {
let api = TermuxApi.getInstance();
let exists = await api.apiExists();
if (exists) {
let result = api.createCommand()
.vibrate()
.setDuration(500)
.build()
.run();
... |
// tslint:disable:no-conditional-assignment
import { SourceMapConsumer } from "source-map";
export class ErrorMapper {
// Cache consumer
private static _consumer?: SourceMapConsumer;
public static get consumer(): SourceMapConsumer {
if (this._consumer == null) {
this._consumer = new SourceMapConsumer(... |
import { socialButtons } from './components/socialMediaButtons';
import { buttons } from './components/buttons';
import { cards } from './components/cards';
import { result } from './components/result';
import { hero } from './templates/hero';
import { features } from './templates/features';
import { navbar } from './t... |
import {IsBoolean} from "class-validator";
export class ApproveReportDto {
@IsBoolean()
approved: boolean
} |
/******************************************************************************
* Spine Runtimes License Agreement
* Last updated January 1, 2020. Replaces all prior versions.
*
* Copyright (c) 2013-2020, Esoteric Software LLC
*
* Integration of the Spine Runtimes into software or otherwise creating
* derivative... |
import React from 'react'
import styled from 'styled-components'
import { StatefulUIElement } from 'src/util/ui-logic'
import { StaticListItem } from 'src/custom-lists/components/overview/sidebar/static-list-item'
import Logic, { Dependencies, State, Events } from './logic'
export interface Props extends Dependencies ... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { ServiceInjector } from '../../shared/services/service-injector.service';
import { Subscription } from 'rxjs';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MustMatch }... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.