text stringlengths 10 953k |
|---|
import { Component, OnInit, OnDestroy } from '@angular/core';
import { GPSValue } from './gps-value';
import { BaiduMap } from './baidu-map';
import { LocationService } from '../../providers/location.service';
@Component({
selector: 'app-baidu-map',
templateUrl: './baidu-map.component.html',
styleUrls: ['./baidu... |
import { MdiReactIconComponentType } from './dist/typings';
declare const InjectionIcon: MdiReactIconComponentType;
export default InjectionIcon; |
import React, { useState, FormEvent } from 'react';
import PageHeader from '../../components/PageHeader';
import Input from '../../components/Input';
import Textarea from '../../components/Textarea';
import Select from '../../components/Select';
import api from '../../services/api';
import warningIcon from '../../asse... |
import isEqual from 'lodash.isequal';
import { CreateElement, VNode } from 'vue';
import HtmlInput from '../base/HtmlInput';
import CssClass from '../types/CssClass';
import Key from '../types/Key';
const checkIfTagShouldBeChecked = (
model: string | Record<string, unknown> | number | boolean | undefined,
checked:... |
import * as React from "react";
import Link from "gatsby-link";
const styles = require('./PostListViewItem.module.scss');
export interface IPostListViewItemProps{
url: string;
title: string;
date: string;
description: string;
}
export const PostListViewItem = (props: IPostListViewItemProps) => {
... |
import { Component, OnInit, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
@Component({
selector: 'app-login-dialog',
templateUrl: './login-dialog.component.html',
styleUrls: ['./l... |
import { AngularOnBluemixPage } from './app.po';
describe('angular-on-bluemix App', function() {
let page: AngularOnBluemixPage;
beforeEach(() => {
page = new AngularOnBluemixPage();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqu... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react'
import MinusSquareFilledSvg from '@ant-design/icons-svg/lib/asn/MinusSquareFilled';
import AntdIcon, { AntdIconProps } from '../components/AntdIcon';
const MinusSquareFilled = (
props: AntdIconProps,
ref: React.Mutable... |
import * as React from 'react';
import { Alert, AlertActionLink } from '@patternfly/react-core';
import { K8sKind, k8sPatch, K8sResourceKind } from '../../module/k8s/index';
import { errorModal } from '../modals/index';
export const togglePaused = (model: K8sKind, obj: K8sResourceKind) => {
const patch = [{
pat... |
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import 'hammerjs';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
import {MatStepperModule} from '@angular/material';
import { MatCardModu... |
import { githubAPI } from "./axios"
export async function githubPaginatedDataSearchFetcher<T>(
url: string,
q: string,
page?: number,
per_page?: number
): Promise<T> {
const { data } = await githubAPI.get<T>(url, {
params: {
q,
page,
per_page,
},
})
return data
}
export functi... |
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
firebaseConfig : {
apiKey: "AIzaSyCdHPA2n6... |
import * as React from "react";
import { IEmojiProps } from "../../styled";
const SvgPlaceBuilding15 = (props: IEmojiProps) => (
<svg viewBox="0 0 72 72" width="1em" height="1em" {...props}>
<path fill="#E27022" d="M9 38h53v17H9z" />
<path
fill="#92D3F5"
d="M14 45h10v10H14zM28 45h10v10H28zM38 45h... |
/* 2-type.ts */
let n: null = null
let udf: undefined = undefined
let num: number = NaN
let str: string = ''
let bool: boolean = true
let obj: {} = {}
let arr: any[] = []
let fn = function (a: any): number {
return a++
}
function fn2(a: any): number {
return a--
}
let arrowFn = (a: any): any => typeof a
num = 0
n... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import { async, ComponentFixture, TestBed} from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { of } from 'rxjs';
import { NgProgressComponent } from './ng-progress.component';
import { NgProgress } from './ng-progress.service';
class NgProgressStub {
config = {
};
... |
/// <reference path="../types.d.ts" />
import './styles/index.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import '@compiler/x86-nano-c';
import {RootContainer} from './containers/RootContainer';
ReactDOM.render(
<RootContainer />,
document.getElementById('react-root'),
); |
import * as React from 'react';
import {Component, FunctionComponent} from 'react';
import * as PropTypes from 'prop-types';
import {AnalyticsDispatcher} from 'shisell';
import {Analytics, ShisellContext} from './shisell-context';
type DispatcherFactory = () => AnalyticsDispatcher<void>;
class LazyAnalytics implement... |
import GuildFightJoinRequestMessage from "@/protocol/network/messages/GuildFightJoinRequestMessage";
export default class GuildFightTakePlaceRequestMessage extends GuildFightJoinRequestMessage {
public replacedCharacterId: number;
constructor(taxCollectorId = 0, replacedCharacterId = 0) {
super(taxCollectorId... |
import ApolloClient from "apollo-client";
import { createHttpLink } from "apollo-link-http";
import { InMemoryCache } from "apollo-cache-inmemory";
/** Client Apollo Client */
const apolloClient = new ApolloClient({
link: createHttpLink({
uri: "/api"
}),
ssrForceFetchDelay: 100,
cache: new InMemoryCache().... |
import React from 'react';
import { Divider, useTheme } from 'react-native-paper';
import { useAlternateTheme } from './hooks/useAlternateTheme';
export type ThemedDividerProps = React.ComponentProps<typeof Divider>;
/**
* ThemedDivider component
*
* This component is a wrapper around the React Native Paper [Divid... |
import { Injectable } from '@angular/core';
import { HttpHeaders, HttpResponse, HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { map, catchError } from 'rxjs/operators';
import { MOCK_API } from '../config/api.config';
import { Menu } from "../app/models/menu.models";
import {
... |
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ReaderFragment } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type CommerceOrderDisplayStateEnum = "ABANDONED" | "APPROVED" | "CANCELED" | "FULFILLED" | "IN_TRANSIT" | "PENDING" | "PROCESSING" | "REFUNDED" | "SUBMITTED" | "... |
import { Field, registerEnumType, InputType } from 'type-graphql';
export enum Lang {
cs = 'cs',
en = 'en',
}
registerEnumType(Lang, {
name: 'Lang',
});
@InputType()
export class ProductTranslationInput {
@Field(type => Lang)
LANG: Lang;
@Field(type => String)
NAME: string;
} |
import { Component } from '@angular/core';
import { IonicPage, ModalController, NavController } from 'ionic-angular';
import { Item } from '../../models/item';
import { Items } from '../../providers/providers';
@IonicPage()
@Component({
selector: 'page-list-master',
templateUrl: 'list-master.html'
})
export class... |
/// <reference path="../typings/tsd.d.ts" />
import fs = require("fs-extra");
import assert = require("assert");
import sinon = require("sinon");
import child_process = require('child_process');
var myss = require('../bin/myss-core');
var execStub = child_process.exec = sinon.stub();
describe("myss", function():void... |
import '../test-helpers';
import {getPaginationModel} from '../../src/ultimate-pagination';
describe('getPaginationModel', function() {
describe('when there are 10 pages', function() {
describe('and hide first and last page links is "false"', function() {
it('should return correct model for 1 of 10', funct... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { KittenComponent } from './kitten.component';
describe('KittenComponent', () => {
let component: KittenComponent;
let fixture: ComponentFixture<KittenComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
... |
// Created by Mathew Henson
// Based on the files here: https://github.com/GoogleCloudPlatform/gcloud-node/tree/master/lib/storage
declare module 'gcloud' {
import * as fs from 'fs';
export interface IOWner {
entity: string;
}
export interface IMeta {
etag: string;
id: strin... |
// Copyright 2021 Carnegie Mellon University. All Rights Reserved.
// Released under a MIT (SEI)-style license. See LICENSE.md in the project root for license information.
import {
EntityUIQuery,
HashMap,
Order,
QueryConfig,
QueryEntity,
} from '@datorama/akita';
import { ModulesState, ModuleStore, ModuleUIS... |
import {DeleteResult, EntityRepository, Repository} from 'typeorm';
import {Task} from './task.entity';
import {CreateTaskDto} from './dto/create-task.dto';
import {TaskStatus} from './task-status.enum';
import {GetTasksFilterDto} from './dto/get-tasks-filter.dto';
import {User} from '../auth/user.entity';
import {Inte... |
/**
* @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 {Injector} from '@angular/core';
import {IInjectorService} from './angular1';
import {$INJECTOR, INJECTOR_KEY... |
import React from 'react';
import { Center, VStack, Stack, StackProps, Heading } from '@chakra-ui/react';
export const Main = (props: StackProps): JSX.Element => (
<Center w='80%' minW='85%'>
<VStack w='100%'>
<Heading pt='1rem' size="2xl" isTruncated>GraphQL Online Client</Heading>
<Stack
id... |
/**
* Generated by orval v6.4.0 🍺
* Do not edit manually.
* Swagger Petstore
* OpenAPI spec version: 1.0.0
*/
import {
HttpClient,
HttpHeaders,
HttpParams,
HttpContext
} from '@angular/common/http'
import {
Injectable
} from '@angular/core'
import {
Observable
} from 'rxjs'
import type {
Pets,
Lis... |
export interface IState {
items?: ITaskRun[]
}
export interface INormalizedData {
taskRuns: any[]
result: any
}
export type TaskRunsAction =
| { type: 'UPSERT_JOB_RUN'; data: INormalizedData }
| { type: '@@redux/INIT' }
| { type: '@@INIT' }
const INITIAL_STATE = { items: undefined }
export default (stat... |
import {CustomElement, Toggle} from 'custom-elements-ts';
import {Chipset} from "../chipset";
import {ImageSpec} from "../../models/image-spec";
@CustomElement({
tag: 'vc-generation-request-details-step',
shadow: false,
style: ``,
template: `
<div class="step">
<div class="number"><span></span></di... |
import {Component} from '@angular/core';
@Component({
selector: 'app-navbar',
template: `
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">
msg.Helps
</a>
<button class="navbar-toggler" type="button"
(click)="tog... |
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import HLTV from '../../../dist'
import { NextApiRequest, NextApiResponse } from 'next'
export default async (req: NextApiRequest, res: NextApiResponse) => {
const results = await HLTV.getResults()
res.status(200).json(results)
} |
/**
* Created by Administrator on 2019/7/17.
*/
import { Injectable } from '@angular/core';
import { ApiService } from '../../api.service';
import { DEPARTMENT_CONFIG, MASTER_URLS } from '../../url-params.const';
@Injectable()
export class DepartmentConfigService {
constructor(private api: ApiService) { }
/**
... |
import { Vendor } from "./vendor.model";
import { VendorService } from "./vendor.service";
const template = require("./vendor-list.component.html");
const styles = require("./vendor-list.component.scss");
export class VendorListComponent extends HTMLElement {
constructor(
private _document: Document = document,... |
/* tslint:disable */
/* eslint-disable */
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: unversioned
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tec... |
import { browser, by, element } from 'protractor';
export class SimPage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
} |
import { Order, SignedOrder } from '@0x/types';
import { BigNumber } from '@0x/utils';
import { Provider } from 'ethereum-types';
import * as _ from 'lodash';
import { constants } from './constants';
import { orderHashUtils } from './order_hash';
import { generatePseudoRandomSalt } from './salt';
import { signatureUti... |
import { NgModule } from '@angular/core';
// import { TimeAgoPipe } from 'time-ago-pipe';
@NgModule({
imports: [],
exports: [
// TimeAgoPipe
],
declarations: [
// TimeAgoPipe
],
providers: [],
})
export class TimeAgoModule { } |
import {Request, Response} from "express";
import SierraClient from "@weco/sierra-client";
import {ResponseStatus} from "@weco/identity-common";
import {toMessage} from "../models/common";
export async function validateCredentials(sierraClient: SierraClient, req: Request, res: Response): Promise<void> {
sierraClient... |
import { Axis, Chart, Coord, Geom, Tooltip } from 'bizcharts';
import { Col, Row } from 'antd';
import React, { Component } from 'react';
import autoHeight from './autoHeight';
import styles from './index.less';
export type RadarProps = {
title?: React.ReactNode;
height?: number;
padding?: [number, number, numb... |
export const environment = {
production: true,
base_url: '/api',
images_url: '/images/'
}; |
import { execSync } from "child_process";
import log from "loglevel";
const loggedExec = (command: string): void => {
log.info(command);
execSync(command, { stdio: "inherit" });
};
export function typedoc(): void {
const commitSha = process.env.VERCEL_GIT_COMMIT_SHA;
const isNoRemote = execSync("git remote -v... |
export interface CallsAddResponse {
ok?: boolean;
call?: Call;
error?: string;
response_metadata?: ResponseMetadata;
needed?: string;
provided?: string;
}
export interface Call {
id?: string;
date_start?: ... |
import { Observable, BehaviorSubject, Subject, Subscription } from 'rxjs'
interface Handler<T = any> {
suspender: Promise<T>
resolve: (value?: T) => void
}
/**
* Rewires Observable to Relay-like Suspense resource.
*/
export class ObservableResource<TInput, TOutput extends TInput = TInput> {
/**
* Unlike Pr... |
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { User, UserSchema } from './entities/user.entity';
import { UserController } from './user.controller';
import { UserService } from './user.service';
@Module({
imports: [
MongooseModule.forFeature([{ name: User.na... |
import { RTCSignalingSendIceCandidate } from "@scrypted/sdk";
import type { RTCAVSignalingSetup, RTCSignalingSession } from "@scrypted/sdk/types";
function logSendCandidate(console: Console, type: string, session: RTCSignalingSession): RTCSignalingSendIceCandidate {
return async (candidate) => {
console.lo... |
import React from 'react'
import WorksNav from "./WorksNav";
import WorksQuery from "./WorksQuery";
interface ComponentProps {
page: string
}
const Works = ({page}: ComponentProps) => {
return (
<div className='works-container'>
<WorksNav />
<WorksQuery page={page}/>
</div>
)
}
export def... |
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.15.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.15.0,
* ap-northeast-3 (https://d2zq80gdmjim8k.cl... |
/**
*
*
* OpenAPI spec version: 20200601
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
import * as React from 'react';
import {getSourceType} from "../../data/utils";
import {ST} from "../../data/const";
export default class SourceIcon extends React.Component {
readonly props: {
url: string
};
render() {
const type = getSourceType(this.props.url);
return(
<div className="Source... |
import { Injectable } from '@angular/core';
import { LoggerService } from './logger.service';
import { AppConfigurationService } from './app-configuration.service';
import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'r... |
import { ethers } from 'hardhat';
import { ZooDrop } from '../types/ZooDrop';
import chai, { expect } from "chai";
import { BigNumber, Bytes, BytesLike, utils } from 'ethers';
let drop : any;
let signers: any;
let mintAmt = 100000000;
let owner;
const TOKEN_URI = "idx.zoolabs.io/token/"
const META_URI = "idx.zoolabs.... |
import * as ble from 'react-native-ble-plx';
import {
ROOT_IDENTIFIER_SERVICE,
IEventEmitter,
BleDeviceInformation,
} from './shared';
import {EventEmitter} from 'eventemitter3';
import manager from './bluetooth';
export interface Status {
isPoweredOn: boolean;
isScanning: boolean;
}
export class RobotFinde... |
import dotenv from 'dotenv'
dotenv.config()
import anyTest, { TestInterface } from 'ava'
import { getProfilesById } from './ubi-services'
import credentials from '../../config/test.json'
const test = anyTest as TestInterface<{
account: { ticket: string }
}>
test.before(async t => {
const { ticket } = crede... |
import React, { PureComponent } from 'react';
import { css, cx } from 'emotion';
import tinycolor from 'tinycolor2';
import { Themeable, withTheme, getLogRowStyles } from '@grafana/ui';
import { GrafanaTheme, LogRowModel, TimeZone } from '@grafana/data';
import ElapsedTime from './ElapsedTime';
const getStyles = (th... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { PhotosModule } from './photos/photos.module';
import { AppRoutingModule } from './app.routing.module';
import { ErrorsModule } from './errors/errors.module';
imp... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_CL" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ecocoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
import "jest-webgl-canvas-mock";
import * as React from "react";
import { shallow, mount } from "enzyme";
import { AceConsensusSequenceComponent } from "../AceConsensusSequenceComponent";
import { Alignment } from "../../common/Alignment";
import { Ace, default as ace } from "ace-builds";
import { SequenceSorter } fr... |
export { SubtractAlt24 as default } from "../"; |
import {m} from 'malevic';
import {isURLEnabled, isPDF} from '../../../utils/url';
import SiteToggle from '../components/site-toggle';
import ControlGroup from '../control-group';
import {ViewProps} from '../types';
export default function SiteToggleGroup(props: ViewProps) {
const isPageEnabled = isURLEnabled(prop... |
/// Generated by expo-google-fonts/generator
/// Do not edit by hand unless you know what you are doing
///
export { useFonts } from './useFonts';
export const __metdata__: Any;
export const DoHyeon_400Regular: number; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* @license Angular v12.1.4
* (c) 2010-2021 Google LLC. https://angular.io/
* License: MIT
*/
import { AfterContentInit } from '@angular/core';
import { ChangeDetectorRef } from '@angular/core';
import { Compiler } from '@angular/core';
import { ComponentFactoryResolver } from '@angular/core';
import { Componen... |
/*
MIT License
Copyright (c) 2019 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export interface TrackInfo {
type: 'video';
readonly id?: number;
readonly url: string;
readonly title: string;
readonly artist: string;
readonly thumbnailUrl: string;
readonly duration: number;
}
export interface ShelfInfo {
type: 'shelf';
title: string;
thumbnailUrl: string;
items: TrackInfo[];... |
// Type definitions for lodash.toInteger 4.0
// Project: https://lodash.com
// Definitions by: Brian Zengel <https://github.com/bczengel>
// Ilya Mochalov <https://github.com/chrootsu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
// Generated from https:... |
import { Controller, Get } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AppService, Message } from './app.service';
@ApiTags('health')
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {
}
@Get()
health(): Message {
return this.ap... |
/**
* @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 { CdkTreeNodeToggle } from '@angular/cdk/tree';
import * as i0 from "@angular/core";
/**
* Wrapper for the Cdk... |
// Naming conventions base off - https://airbnb.io/javascript/#naming--uppercase
export const HIT_TIERS = [
{ min: 0, max: 300_000 },
{ min: 300_001, max: 2_500_000 },
{ min: 2_500_001, max: 10_000_000 },
{ min: 10_000_001, max: 99_999_999_999 },
];
export const CURRENCIES = {
USD: 'USD',
CHF: 'CHF',
EU... |
let allChars =
'0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*()ABCDEFGHIJKLMNOPQRSTUVWXYZ';
let alphaNumeric = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
export const randomString = (length = 12, allCharacter = false): string => {
let chars = alphaNumeric;
if (allCharacter) chars = allChars;
let password = '';
... |
import React, { FC } from "react";
import { Field, ErrorMessage } from "formik";
import { Input } from "antd";
import Error from "../Error";
import "./inputField.scss";
interface InputFieldProps {
title?: string;
type: string;
name: string;
placeholder?: string;
mt?: string;
rounded?: boolean;
classes?: ... |
import _ from 'lodash';
import { map } from 'rxjs/operators';
import { MetricFindValue, TimeRange } from '@grafana/data';
import { PrometheusDatasource } from './datasource';
import { PromQueryRequest } from './types';
import { getTimeSrv } from 'app/features/dashboard/services/TimeSrv';
export default class Prometheu... |
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerEx... |
import styled from "styled-components"
const StyledBacklogNav = styled.nav`
display: flex;
padding: 20px 0px;
`
export function BacklogNav({ children }) {
return <StyledBacklogNav>{children}</StyledBacklogNav>
} |
// *** 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";
/**
* D... |
import { LoggerFactory } from "@mmit/logging";
const logger = LoggerFactory.getLogger('mmit.ml.udemy.NumTS');
export function multiplier2d_1d(m1: number[][], m2: number[]): number[][] {
const r1: number = m1.length;
const c1: number = m1[0].length;
const r2: number = m2.length;
const m3: number[][] = ... |
/**
* OpenNMS flow node SNMP interface metadata.
* @category Model
*/
export class OnmsFlowSnmpInterface {
/** the interface's ifIndex */
public index?: number;
/** the interface name */
public name?: string;
/** the interface's ifDescription */
public description?: string;
/** the int... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
* @format
*/
'use strict';
import * as React from 'react';
import {IPickerItemProps, IPickerProps} from './PickerProps';
class PickerItem extends React.Component<IPickerItemProps> {
public render(): JSX.Element | n... |
/* eslint-disable no-restricted-globals */
import type {
WorkerMessageData,
WorkerMessageType,
WorkerMessagePayload
} from '../worker-protocol/protocol';
import {getTransferList} from '../worker-farm/get-transfer-list';
const onMessageWrapperMap = new Map();
/**
* Type safe wrapper for worker code
*/
export d... |
/// <amd-module name="@angular/common/locales/to" />
declare const _default: (string | number | (string[] | undefined)[] | number[] | (string | undefined)[] | ((n: number) => number) | {
'AUD': string[];
'JPY': string[];
'NZD': string[];
'TOP': string[];
'USD': string[];
} | undefined)[];
export def... |
import { StreamDeflateParams } from '../../stream/core';
export interface StreamZlibCompressParams extends StreamDeflateParams {
}
/**
* Compresses Uint8Array to a RFC 1951 ZLIB file format Uint8Array.
*
* @example
* jz.stream.zlib.compress({
* buffer: buffur,
* streamFn: chunk => {
* console.log(chunk.l... |
import { Type } from "class-transformer";
import { IsNotEmpty, IsString, MaxLength, IsNumber, Min, IsOptional } from "class-validator";
export class CreateMongoProductDto
{
@IsString()
@IsNotEmpty()
@MaxLength(255)
@Type(() => String)
title?: string;
@IsOptional()
@IsString()
@MaxLengt... |
import { repeat } from './tool';
interface Decorated {
text: string;
selection?: {
start: number;
end: number;
};
}
// 最简单的Decorator,即在现有文字的基础上加上前缀、后缀即可
const SIMPLE_DECORATOR: { [x: string]: [string, string] } = {
bold: ['**', '**'],
italic: ['*', '*'],
underline: ['++', '++'],
strikethrough: [... |
import { Component, ElementRef, OnInit, ViewChild } from "@angular/core";
import {
ActiveConfiguration,
CalculatedCostForOrder,
Channel,
ConsentType,
InitOpenPaymentResponse,
Order,
OrdersService,
PaymentService,
SupportedLocale,
} from "@caas/service-client-angular";
import {
AppConfiguration,
Ap... |
import {Timer} from "./Timer";
export class Step {
id: number;
stepImgLink: string;
stepDescription: string;
timer: Timer;
constructor(id: number, stepImgLink: string, stepDescription: string) {
this.id = id;
this.stepImgLink = stepImgLink;
this.stepDescription = stepDescription;
this.timer ... |
import * as SVGO from "svgo";
/**
* Options for the Inline SVG plugin.
*/
export interface Options {
/**
* The maximum image size (in bytes) to inline.
* Images that are larger than this (after optimization) will not be inlined.
*
* Defaults to 3000 (3 kilobytes).
*/
maxImageSize: number;
/**
... |
/* Generated code */
import ExtensionCallLogResponse from '../definitions/ExtensionCallLogResponse';
import UserCallLogRecord from '../definitions/UserCallLogRecord';
import PathSegment from '../PathSegment';
export default class CallLog extends PathSegment {
constructor(prv: PathSegment, id?: string, service?) {
s... |
import {
Column,
CreateDateColumn,
Entity,
PrimaryColumn,
UpdateDateColumn,
} from 'typeorm';
import { GameRoom } from '../../core/types/GameRoom';
@Entity('game_rooms')
export class GameRoomEntity {
@PrimaryColumn()
id!: string;
@Column({ type: 'jsonb' })
cache!: GameRoom;
@CreateDateColumn({ t... |
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { ServerRequest, ServerResponse, StrictBody } from '@sveltejs/kit/types/hooks';
import { makeExpressCompatible } from './ExpressUtils';
export class OAuthResponse implements Server... |
import { Card } from "@blueprintjs/core";
import React, { Component } from 'react';
import { connect } from "react-redux";
import { Bank, Game, MajorCompany, MinorCompany, Player, PrivateCompany, StockCertificates } from "../models/index";
import AuctionBid from "./AuctionBid";
import StockMarket from "./StockMarket";
... |
/* eslint-disable react/jsx-props-no-spreading */
import React, {FC, ReactNode, useMemo} from 'react';
import ReactSelect, {ActionMeta, FocusEventHandler, FormatOptionLabelMeta} from 'react-select';
import ReactSelectCreatable from 'react-select/creatable';
import {ValueType} from 'react-select/src/types';
import clsx... |
export {default as Sample} from './sample.component';
export {SampleProps} from './sample.component'; |
import { useTranslation } from "react-i18next"
import { Card, Page } from "components/layout"
import ImportWalletForm from "./ImportWalletForm"
const ImportWalletPage = () => {
const { t } = useTranslation()
return (
<Page title={t("Import wallet")} small>
<Card>
<ImportWalletForm />
</Car... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.