text stringlengths 10 953k |
|---|
import ISocialsUserData from '../../../interfaces/socials-user-data.interface';
export default interface IFacebookLoginButton {
onUserSelected: (data: ISocialsUserData) => void;
} |
/**
* @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 {Type} from '@angular/compiler';
import * as ts from 'typescript';
import {ComponentDecoratorHandler, Directi... |
import { Injectable } from '@angular/core';
import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/do';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/take';
import { AngularFireAuth } from 'a... |
export interface ScrollerOptionsInterface {
graphHeight?: number,
graphWidth?: number,
scrollBorderWidth?: number,
graphBorderWidth?: number,
scrollerWidth?: number
} |
import { Document } from 'mongoose';
export interface IAudioFre extends Document {
// 窨井Id
readonly wellId: string;
// 设备id
readonly deviceId: string;
// 超声波频率
readonly frequency: number;
// 超声波振幅
readonly amplitude: number;
} |
export * from './empleadotareas-table.component'; |
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable no-useless-escape */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import {
ButtonInteraction,
Message,
MessageActionRow,
MessageButton,
} from "discord.js";
import Button from "../../struct/Button";
abstract cla... |
import React from 'react';
import { Switch, Route } from 'react-router-dom'
import Layout from '../components/Layout';
import Dashboard from '../pages/Dashboard';
import List from '../pages/List';
const AppRoutes: React.FC = () => (
<Layout>
<Switch>
<Route path="/dashboard" exact component={Dashboard}/>
... |
// *** 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";
/*... |
import './src/boilerplate.polyfill';
import type { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { UserSubscriber } from './src/entity-subscribers/user-subscriber';
import { SnakeNamingStrategy } from './src/snake-naming.strategy';
const configs: TypeOrmModuleOptions & { seeds: string[]; factories: string[] ... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { AuthModule } from './modules/auth/auth.module';
import { UsersModule } from './modules/users/users.module';
import { ProductsModule } from './modules/products/products.module';... |
import * as jspb from 'google-protobuf';
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
export class ListAuthorsRequest extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListAuthorsRequest.AsObject;
static toObject(
incl... |
import {
DEPLOYED_PROXY,
DEPLOYED_RAW,
CONTRACT_ADDR,
MADNET_FACTORY,
DEPLOY_CREATE,
DEPLOYED_STATIC,
PROXY,
} from "./constants";
import { task } from "hardhat/config";
import { HardhatRuntimeEnvironment } from "hardhat/types";
import {
DeployCreateData,
FactoryConfig,
FactoryData,
MetaContractDa... |
import * as core from "@actions/core";
import { createExecution, getResults } from "./api";
async function run(): Promise<void> {
try {
const executionId = await createExecution();
if (!executionId) {
throw new Error("Failed to create business rule service execution.");
}
const data = await ... |
/**
*
*
* OpenAPI spec version: 20181001
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
import { Command } from '../Command'
import { UpdateBuilder } from '@contember/database'
export class ConfirmOtpCommand implements Command<void> {
constructor(private readonly personId: string) {}
async execute({ db, providers }: Command.Args): Promise<void> {
await UpdateBuilder.create()
.table('person')
.... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-elemento-list',
templateUrl: './elemento-list.component.html',
styleUrls: ['./elemento-list.component.css']
})
export class ElementoListComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { Exclude, Expose } from 'class-transformer';
import {
Column,
CreateDateColumn,
Entity,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from 'typeorm';
import { storageConfig } from '@config/storage.config';
import { ConfigService } from '@nestjs/config';
const configService = new ConfigService();
@Ent... |
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class JobRoleService {
constructor() { }
} |
import {Directive, Renderer, ElementRef} from 'angular2/angular2';
import {NgControl} from './ng_control';
import {ControlValueAccessor} from './control_value_accessor';
import {isBlank, isPresent} from 'angular2/src/facade/lang';
import {setProperty} from './shared';
/**
* The default accessor for writing a value an... |
export interface Ambulances {
version: string;
encoding: string;
feed: Feed;
}
export interface Feed {
xmlns: string;
xmlns$openSearch: string;
xmlns$gsx: string;
id: ID;
updated: ID;
category: ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
import {TaskMeta, TaskWithData} from "../sweet/sweet";
import {Directory} from "./directory";
export type FileCreateEncoding = "utf8" | "ascii" | "base64" | "hex";
export interface FileCreateData {
path: string;
content: string;
/** @default "utf8" */
encoding?: FileCreateEncoding;
}
export class FileCreate... |
<TS language="ja" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>右クリックでアドレスまたはラベルを編集します</translation>
</message>
<message>
<source>Create a new address</source>
<translation>新規アドレスの作成</tra... |
import { container } from 'tsyringe';
import IStorageProvider from './models/IStorageProvider';
import DiskStorageProvider from './implementations/DiskStorageProvider';
import S3StorageProvider from './implementations/S3StorageProvider';
import uploadConfig from '@config/upload';
const providers = {
disk: DiskStorag... |
import { Observable, Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { Disposable, DisposeCallback } from './disposable';
export class DisposeBag implements Disposable {
private _dispose$ = new Subject<void>();
private _list = new Set<DisposeCallback>();
private _isDisposed: boolean = fal... |
import { Component, ChangeDetectionStrategy } from '@angular/core';
import { DataService, Atom } from '../data.service';
import { Observable } from 'rxjs';
const EXAMPLE_TAGS = [
'filter-row-atom-basic',
'Table data can be filtered by every column'
];
@Component({
selector: 'example-filter-row-atom-basic',
templa... |
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import Animated, {
interpolate,
useAnimatedStyle,
useDerivedValue,
} from "react-native-reanimated";
import { ReText, Vector, round } from "react-native-redash";
import ETH from "./components/ETH";
import { graphs, SIZE } from "./M... |
import {expect} from "chai";
import {describe, it} from "mocha";
import {fromHexString, toHexString} from "../../../src";
describe("util / byteArray", () => {
const testCases: string[] = [
"0x",
"0x00",
"0xffffffff",
"0xe7299fdb3fb238c05e5b57bb8f4380f0d7c4dacc991f3876976e6e46559389ef",
];
for (c... |
import './state'
import { events, Q } from './context'
import { scene } from './renderer'
import { addToLoop, startLoop } from '../../../../shared-utils/frameLoop'
Q.state.time = 0
addToLoop((tpf) => {
Q.state.device.tpf = tpf
Q.state.time += tpf / 1000
Q.emit(events.FRAME)
Q.painter.compose(scene)
}, 'loop')
st... |
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { APP_BASE_HREF } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platf... |
import {NgModule} from '@angular/core';
import {PreloadAllModules, RouterModule} from '@angular/router';
import {ROUTE_INDEX} from "./app-shell/sidenav/navigation-item";
import {
TC_ADMIN, TC_ROUTE_CDH,
TC_ROUTE_DOCUMENTS, TC_ROUTE_EXECUTIVES,
TC_ROUTE_HALLS,
TC_ROUTE_HOME, TC_ROUTE_EDIT,
TC_ROUTE_IMPRINT, TC... |
import { EntityRepository, Repository } from 'typeorm';
import { Setting } from '../entities/Setting';
@EntityRepository(Setting)
export class SettingsRepository extends Repository<Setting> { } |
import * as React from "react";
import { t } from "i18next";
import { getDevice } from "../device";
import { FarmwareConfigMenuProps } from "./interfaces";
import { commandErr } from "../devices/actions";
import { toggleWebAppBool } from "../config_storage/actions";
/** First-party Farmware settings. */
export functio... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TabNavService } from '../../../../tab-nav.service';
import { KubernetesBaseTestModules } from '../kubernetes.testing.module';
import { KubernetesTabBaseComponent } from './kubernetes-tab-base.component';
describe('KubernetesTabBaseComp... |
/**
* @file Icon
* @description
* @author fex
*/
import React from 'react';
// @ts-ignore
import CloseIcon from '../icons/close.svg';
// @ts-ignore
import UnDoIcon from '../icons/undo.svg';
// @ts-ignore
import ReDoIcon from '../icons/redo.svg';
// @ts-ignore
import EnterIcon from '../icons/enter.svg';
// @ts-igno... |
export declare const PKG_NAME = "@hpcc-js/util";
export declare const PKG_VERSION = "2.8.2";
export declare const BUILD_VERSION = "2.10.1";
//# sourceMappingURL=__package__.d.ts.map |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule, XHRBackend } from '@angular/http';
/* App Root */
import { AppComponent } from './app.component';
/* Feature Modules */
import { CoreModule } from './core/core.module';
import { routi... |
/* eslint-disable react/no-multi-comp */
import React from 'react';
import { requiredProps } from '../../test';
import { mount, shallow } from 'enzyme';
import { EuiSearchBar } from './search_bar';
import { Query } from './query';
import { ENTER } from '../../services/key_codes';
import { SearchFiltersFiltersType } fro... |
import metrics = require('datadog-metrics');
metrics.init({ host: 'myhost', prefix: 'myapp.' });
metrics.gauge('mygauge', 42);
metrics.increment('test.requests_served');
metrics.increment('test.awesomeness_factor', 10);
metrics.histogram('test.service_time', 0.248);
metrics.flush();
metrics.flush(() => {});
metrics.flu... |
import Request from "../../core/request";
export default class deleteUser extends Request {
protected id: string;
constructor(id: string) {
super();
this.id = id
}
public getMethod() : string {
return Request.HTTP_DELETE
}
public getPath(): string {
return `u... |
import Vue from "vue";
import VueRouter, { RouteConfig } from "vue-router";
import Kitchensink from "../views/Kitchensink.vue";
import Crud from "../views/Crud.vue";
import Contact from "../views/Contact.vue";
Vue.use(VueRouter);
const routes: Array<RouteConfig> = [
{
path: "/",
name: "Home",
redirect: ... |
import * as React from "react";
import { IEmojiProps } from "../../styled";
const SvgPersonSport158 = (props: IEmojiProps) => (
<svg viewBox="0 0 72 72" width="1em" height="1em" {...props}>
<g fill="#fcea2b">
<path d="M45.185 42.897s-3.527-7.435-4.29-9.914l-1.716 8.961-4.862-1.049-4.861.286-1.812-10.485-.9... |
import * as React from "react"
import ApiRefTable from "./ApiRefTable"
import CodeArea, { CodeSandBoxLink } from "./CodeArea"
import SideMenu from "./SideMenu"
import ApiFormState from "./ApiFormState"
import resetCode from "./codeExamples/resetCode"
import ApiWatch from "./ApiWatch"
import ApiErrors from "./ApiErrors"... |
// *** 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 { request } from "./request";
import type { Meta } from "./meta";
import type { Quality } from "./quality";
export type RightsItem = {
code: string;
title: string;
artist: string;
lyric: string;
composer: string;
time: string;
org: string;
};
export type Community = {
id: string;
name: string... |
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs';
export type OS = 'Android' | 'iOS';
export type Gender = 'Male' | 'Female';
export type Event =
| 'messageReceived'
| 'notificationTapped'
| 'tokenReceived'
| ... |
import { Classes, TextArea } from '@blueprintjs/core';
import React, { ChangeEvent, FunctionComponent } from 'react';
import useMount from 'react-use/lib/useMount';
import { TTranslator } from '../../App';
import { IField, IFieldChange } from '../../containers/InterfaceCreator/panel';
import { addMessageListener, postM... |
import { Injectable } from '@angular/core';
import {LoginModel} from '../_models/login-model';
import {Observable} from 'rxjs/Rx';
import {catchError, tap} from 'rxjs/internal/operators';
import {of} from 'rxjs/index';
import {HttpClient, HttpHeaders} from '@angular/common/http';
import {API_URL} from '../_constants/co... |
import $, { Cash } from 'cash-dom'
import { convertParsonsGraderFuncToEnum, convertTestVariablesToString, convertUnitTestsFromString } from './converters'
import {
ParsonsGrader, ParsonsOptions, ParsonsSettings, VariableTest, UnitTest
} from '../@types/types'
import { tryToCreateEditorFromTextarea } from './editor'
... |
import { ITableHeight, ITableConfig } from 'src/interfaces';
import { ADMIN } from 'src/constants';
export const OTHER_HEIGHT: ITableHeight = {
userTable: '201px',
dailyTable: '381px',
contactTable: '296px',
myContactTable: '296px',
blacklistTable: '520px',
exportTable: '250px',
reportTable: '296px'
};
... |
import * as errors from './utilities/errors'
import Tooltip from './components/common/tooltip'
import { Event } from './interfaces'
import * as ev from './events'
import * as uuid from 'uuid/v4'
/**
* Chart superclass
*/
export default class Chart {
config: any
width: number
height: number
svg: any
tooltip... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sv" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About MortyCoin</source>
<translation>Vad du behöver veta om MortyCoin</translation>
</message>
<mess... |
async function fetchAPI(query: any, { variables = {} } = {}) {
const res = await fetch(`${process.env.NEXT_PUBLIC_STRAPI_API_URL}/graphql`, {
method: `POST`,
headers: {
'Content-Type': `application/json`,
},
body: JSON.stringify({
query,
variables,
}),
});
const json = await... |
import { Product } from './product.model';
import { BehaviorSubject, Observable } from 'rxjs';
import { ProductsService } from '../api-services/products.service';
import { CollectionViewer, DataSource } from '@angular/cdk/collections';
import { MoleculerListOptions } from '../../shared/models/MoleculerWrapper';
export... |
import { Direction, Directionality } from '@angular/cdk/bidi';
import { clamp } from '@aposin/ng-aquila/utils';
import { coerceBooleanProperty, coerceNumberProperty, BooleanInput, NumberInput } from '@angular/cdk/coercion';
import { DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW, UP_ARROW } from '@angular/cdk/keycodes';
import {
... |
import * as box2d from "@box2d";
import { g_debugDraw } from "./DebugDraw.js";
// #if B2_ENABLE_PARTICLE
import { FullScreenUI } from "./FullscreenUI.js";
import { ParticleParameter, ParticleParameterValue, ParticleParameterDefinition } from "./ParticleParameter.js";
// #endif
export const DRAW_STRING_NEW_LINE: number... |
import { screen, render } from '@testing-library/react'
import React from 'react'
import { Collapse } from '../../../src/components/Item/Collapse'
describe('<Collapse />', () => {
it('rotates the chevron', () => {
render(<Collapse collapsed={false} onClick={jest.fn()} />)
expect(screen.getByTitle('Toggle col... |
// Copyright 2017 The Kubernetes 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 a... |
import { useEffect } from 'react'
import { renderHook } from '..'
// This verifies that by importing RHTL in an
// environment which supports afterEach (like Jest)
// we'll get automatic cleanup between tests.
describe('auto cleanup tests', () => {
let cleanupCalled = false
test('first', () => {
const hookWit... |
export class GetChecksParams {
page: number;
count: number;
userId?: number;
statuses?: string;
} |
import { Module } from '@nestjs/common';
import { PermissionsService } from './permissions.service';
import { PermissionsController } from './permissions.controller';
import { SharedModule } from '../shared/shared.module';
@Module({
imports: [SharedModule],
controllers: [PermissionsController],
providers: [Permi... |
import { vec3, quat } from 'gl-matrix';
import { VEC3_UNIT_Z } from '../../../common/gl-matrix-addon';
import { MappedDataRow } from '../../../utils/mappeddata';
import DooDoodad from '../../../parsers/w3x/doo/doodad';
import MdxModel from '../mdx/model';
import War3MapViewerMap from './map';
import { Widget } from './... |
import { NgModule } from '@angular/core';
import { LoaderComponent } from './loader.component';
// Angular
@NgModule({
declarations: [LoaderComponent],
exports: [LoaderComponent]
})
export class LoaderModule { } |
import { Body, Controller, Get, Param, Post } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AuthenticationDto } from './DTO/authentication-dto';
import { GetFavoritesDto } from './DTO/get-favorites-dto';
import { UserService } from './user.service';
//TODO - Adicionar passportjs para auten... |
import {LEFT_ARROW} from '@angular/cdk/keycodes';
import {dispatchFakeEvent, dispatchKeyboardEvent} from '@angular/cdk/testing';
import {Component, OnInit, QueryList, ViewChild, ViewChildren} from '@angular/core';
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing';
import {By} from ... |
/* tslint:disable */
/* eslint-disable */
/**
* CrowdStrike API Specification
* Use this API specification as a reference for the API endpoints you can use to interact with your Falcon environment. These endpoints support authentication via OAuth2 and interact with detections and network containment. For detailed usa... |
export const button = Behavior({
externalClasses: ['hover-class'],
properties: {
id: String,
lang: {
type: String,
value: 'en'
},
sessionFrom: String,
sendMessageTitle: String,
sendMessagePath: String,
sendMessageImg: String,
showMessageCard: String,
appParameter: St... |
import Entity from "../core/Entity";
import { glTF2 } from "../../commontypes/glTF";
import ModelConverter from "./ModelConverter";
import EntityRepository from "../core/EntityRepository";
import AnimationComponent from "../components/AnimationComponent";
import { AnimationInterpolation } from "../definitions/Animation... |
<TS language="el_GR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Δεξί-κλικ για επεξεργασία της διεύθυνσης ή της ετικέτας</translation>
</message>
<message>
<source>Create a new address</source>... |
import * as path from "path";
import * as vs from "vscode";
import { pubPath, stagehandInstallationInstructionsUrl } from "../../shared/constants";
import { LogCategory } from "../../shared/enums";
import { DartSdks, Logger, StagehandTemplate } from "../../shared/interfaces";
import { logProcess } from "../../shared/lo... |
import * as React from 'react';
import { StyleSheet, ViewStyle } from 'react-native';
import {
createNavigator,
CreateNavigatorConfig,
NavigationDescriptor,
NavigationParams,
NavigationProp,
NavigationRoute,
NavigationRouteConfigMap,
NavigationScreenProp,
NavigationState,
NavigationSwitchProp,
Nav... |
import { InternalServiceException } from "./InternalServiceException";
import { InvalidRequestException } from "./InvalidRequestException";
import { NotFoundException } from "./NotFoundException";
import { UnauthorizedException } from "./UnauthorizedException";
export type StartGameSessionPlacementExceptionsUnion =
|... |
import * as React from 'react'
import SearchErrorIcon from '../../assets/icons/SearchErrorIcon'
import VaultIcon from '../../assets/icons/VaultIcon'
import styles from './index.module.scss'
interface VaultEmptyProps {
type: any
}
const VaultEmpty: React.FC<VaultEmptyProps> = ({ type }) => (
<div className={styl... |
import { CallbackType } from '../../auth/enums';
import { Callback } from '../../auth/interfaces';
import AttributeInputCallback from './attribute-input-callback';
describe('AttributeInputCallback', () => {
const payload: Callback = {
_id: 0,
input: [
{
name: 'IDToken0',
value: '',
... |
import * as assert from 'assert';
import {Z80Cpu} from '../remotes/zsimulator/z80cpu';
import {Z80Ports} from '../remotes/zsimulator/z80ports';
import {MemBuffer} from '../misc/membuffer';
import {Settings} from '../settings';
import {SimulatedMemory} from '../remotes/zsimulator/simmemory';
suite('Z80Cpu', () => {
s... |
import React, { forwardRef, HTMLAttributes } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { Colors, colorPropType } from '../Types'
export interface CTableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
/**
* A string of all className you want applied to ... |
import { ActionReducerMap } from '@ngrx/store';
import { AppState } from '../state/app.state';
import { loginReducers } from './login.reducers';
import { productReducers } from './product.reducers';
import { shoppingCartReducers } from './shopping-cart.reducers';
export const appReducers: ActionReducerMap<AppState, an... |
import { Component } from '@angular/core';
import { View } from '../../../../shared/view.shared';
@Component({
selector: 'app-welcome-for-open-your-store',
templateUrl: './welcome-for-open-your-store.component.html',
styleUrls: ['./welcome-for-open-your-store.component.css']
})
export class WelcomeForOpenYourSto... |
import { unmarshall } from '@aws-sdk/util-dynamodb'
import test from 'ava'
import * as E from 'fp-ts/Either'
import { pipe, flow } from 'fp-ts/function'
import * as iots from 'io-ts'
import * as PathReporter from 'io-ts/lib/PathReporter'
import { DynamoInsertEvent } from '../../src/LambdaDynamoStreamEvent'
/**
* A s... |
import {Autocomplete, Checkbox} from 'argo-ui/v2';
import * as classNames from 'classnames';
import * as React from 'react';
import './filter.scss';
interface FilterProps {
selected: string[];
setSelected: (items: string[]) => void;
options?: CheckboxOption[];
label?: string;
labels?: string[];
... |
export function camalize(str: string) {
if (str.length <= 1) return str;
const camalized = str
.toLowerCase()
.replace(/[^a-zA-Z0-9]+(.)/g, (_, chr) => chr.toUpperCase());
const camalizedUpperCase = `${camalized
.charAt(0)
.toUpperCase()}${camalized.slice(1)}`;
return camalizedUpperCase;
} |
export function px(d: number): string | undefined {
if (d === undefined) {
return;
} else {
// making to fixed number since css does not support decimal px points.
return `${d.toFixed()}px`;
}
} |
const dynamicSort = (prop: string): ((a: Object, b: Object) => number) => {
let order: number = 1;
let property: string;
if (prop.startsWith("-")) {
order = -1;
property = prop.substring(1);
} else {
property = prop;
}
return (a, b) => {
let ret: number;
if (a[property] < b[property]) {
... |
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { BaseCommand } from "./baseCommand";
// eslint-disable-next-line import/prefer-default-export -- Some nasty export errors occur when making this a default.
export abstract class Subcommand extends BaseCommand {
abstract registerSubcommand(... |
import { Request, Response } from "express";
import express = require("express");
import { list, imageRouter } from './controllers/dogs'
// Our Express APP config
const app = express();
app.set("port", process.env.PORT || 3000);
// API Endpoints
app
.get("/list", list)
.use("/images", imageRouter)
.all("*", (req: Req... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>CoverPage</name>
<message>
<source>My Cover</source>
<translation>Mein Cover</translation>
</message>
</context>
<context>
<name>FirstPage</name>
<message>
<source>Show Page 2</source>
... |
import { Component, OnInit } from '@angular/core';
import {Router} from "@angular/router";
@Component({
selector: 'app-forgot',
templateUrl: './forgot.component.html',
styles: []
})
export class ForgotComponent implements OnInit {
constructor(private router: Router) { }
ngOnInit() {
}
submit(event){
... |
import { AggregateId } from '@rental-system/common';
import { UserTypes } from '../../enums/user-types.enum';
import { IUser } from '../../interfaces/user.interface';
import { CanReceiveNewsletterAbility } from './abilities/can-receive-newsletter.ability';
import { UserEntity } from './user.entity';
export class UserC... |
import Router, { ModelFor, TransitionState } from 'router_js';
import { shallowEqual } from '../utils';
import Route from './route';
import EmberRouter from './router';
export default class RouterState<R extends Route> {
router: Router<R>;
emberRouter: EmberRouter<R>;
routerJsState: TransitionState<R>;
constru... |
import React from "react";
import type {
TAllReducers,
TSelectors,
TInternalDispatchFn,
} from "../../types";
type MapStateCallback<S> = (allSelectors: S, ownProps?: any) => any;
type MapDispatchCallback<A> = (actions: A) => any;
type MapSelectorReturnType<T> = {
[P in keyof T]: T[P] extends (...args: any[]) =... |
// Source code licensed under Apache License 2.0.
// Copyright © 2017 William Ngan. (https://github.com/williamngan/pts)
import {Pt, Bound} from "./Pt";
import {Form} from "./Form";
import {UIPointerActions as UIA} from "./UI";
import {ITimer, ISpacePlayers, IPlayer, AnimateCallbackFn, IPt, TouchPointsKey} from "./... |
import { safeStringify } from '../src/utils';
describe('utils', () => {
describe('safeStringify', () => {
it('Stringify as expected', () => {
const stringified = safeStringify({ hello: 'world'});
expect(stringified).toBe('{"hello":"world"}')
})
it('Fails to stringif... |
export enum ParseErrorCodes {
LEX_ERROR_CODE = 0,
ERROR_CODE = 1,
BEFORE_CODE = 2,
INSERTION_CODE = 3,
INVALID_CODE = 4,
SUBSTITUTION_CODE = 5,
SECONDARY_CODE = 5,
DELETION_CODE = 6,
MERGE_CODE = 7,
MISPLACED_CODE = 8,
SCOPE_CODE = 9,
EOF_CODE = 10,
INVAL... |
import { expect, haveResource } from '@aws-cdk/assert';
import { ArnPrincipal } from '@aws-cdk/aws-iam';
import { Stack } from '@aws-cdk/core';
import { nodeunitShim, Test } from 'nodeunit-shim';
// tslint:disable-next-line:max-line-length
import { IVpcEndpointServiceLoadBalancer, Vpc, VpcEndpointService } from '../li... |
import { GetSummaryDataOptions, DataTable, GetUnderlyingDataOptions } from "@tableau/extensions-api-types";
export interface DataSpec {
readonly worksheet: string;
readonly source: "summary" | "underlying" | "datasource";
}
export async function getData(spec: DataSpec, options: any): Promise<DataTable | null> {
... |
/*
* Copyright OpenSearch Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompa... |
import { Component, ViewChild } from '@angular/core';
import { NavController, IonicPage } from 'ionic-angular';
@Component({
selector: 'cmp-game',
templateUrl: 'game.html',
})
@IonicPage()
export class GamePage {
constructor() {}
ionViewWillEnter() {}
ionViewDidEnter() {}
ionViewDidLeave() {}
} |
// tslint:disable: interface-name
// tslint:disable: variable-name
import * as builder from "botbuilder";
import * as bluebird from "bluebird";
import * as request from "request";
import * as _ from "lodash";
import mongoose = require("mongoose");
mongoose.Promise = bluebird;
// fix deprecation warning
mongoose.set("us... |
import { IsString, IsInt } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";
export class UserDTO {
@ApiProperty({ description: 'Identificador do usuário' })
@IsInt()
readonly id: number;
@ApiProperty({ description: 'Usuário do sistema' })
@IsString()
readonly username: s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.