text stringlengths 10 953k |
|---|
import { useCallback } from 'react';
import { PositionPopover, UsePopoverProps, UsePopoverResult } from '.';
import { getNewPopoverRect, getNudgedPopoverRect } from './util';
import { useElementRef } from './useElementRef';
export const usePopover = ({
childRef,
positions,
containerClassName,
containerParent,
... |
import "reflect-metadata"
import { resolvers } from "@generated/type-graphql";
import { ApolloServer } from "apollo-server";
import { buildSchema } from "type-graphql";
import { PrismaClient } from ".prisma/client";
const prisma = new PrismaClient();
(async () => {
const schema = await buildSchema({
reso... |
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { MessageComponent } from './message.component';
describe('MessageComponent', () => {
let component: MessageComponent;
let fixture: ComponentFixture<MessageComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTe... |
import { configItem } from '../types'
const configList: configItem[] = [
{
method: 'get',
path: '/more/get',
callBack: function(req, res) {
res.json(req.cookies)
}
},
{
method: 'post',
path: '/more/upload',
callBack: function(req, res) {
console.log(req.body, req.files)
... |
/**
* eonce: 快速处理一次性的订阅发布场景 (阅后即焚).
*/
export type EventType = string | symbol;
// 事件处理函数采用可选的事件参数,不返回值
export type Handler<T = any> = (event?: T) => void
export type EventHandlerMap = Map<EventType, Handler>
export interface Eonce {
all: EventHandlerMap
once<T = any>(type: EventType, handler: Handler<T>): v... |
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed 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/LICENSE-2.0
*
* Unless required by appli... |
import { ApplicationRef, ComponentFactoryResolver, EmbeddedViewRef, Injectable, Injector } from '@angular/core';
export class Modal {
protected modal: any = null;
close() {
this.modal.close();
}
}
@Injectable()
export class ModalService {
private componentRef: any;
private modalContainer: any;
const... |
import React, { useEffect, useRef } from 'react'
import Webcam from 'react-webcam'
import jsQR from 'jsqr'
import jpeg from 'jpeg-js'
const DELAY = 500
const SIZE = 400
type Props = {
onData: (data: string) => void
onError: (error: string) => void
enableScan: boolean
facingMode?: string
}
const QRCodeScanner... |
import React from 'react'
import styled from 'styled-components'
import every from 'lodash/every'
import {
Stepper,
Step,
StepStatus,
Card,
CardBody,
Heading,
Text,
Button,
Link,
OpenNewIcon,
} from '@pancakeswap-libs/uikit'
import { BASE_ADD_LIQUIDITY_URL } from 'config'
import useI18n from 'hooks/... |
import {
BatchMeterUsageCommandInput,
BatchMeterUsageCommandOutput
} from "../commands/BatchMeterUsageCommand";
import {
MeterUsageCommandInput,
MeterUsageCommandOutput
} from "../commands/MeterUsageCommand";
import {
RegisterUsageCommandInput,
RegisterUsageCommandOutput
} from "../commands/RegisterUsageCom... |
import { Component, OnInit } from '@angular/core';
import { NbAccessChecker } from '@nebular/security';
import { NbDialogService } from '@nebular/theme';
import { FeatureService } from '../../../shared/services/feature.service';
import { ToastrService } from '../../../shared/services/toastr.service';
import { DialogNam... |
describe('ResponseDocument', () => {
const expect = chai.expect;
it('When extractStatus of container Then return value of statusCode and statusText attributes', () => {
const container = $('<textarea statusCode="500" statusText="Bad"></textarea>');
const result = extractStatus(container);
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TokenCredential } from "@azure/core-http";
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { ContainerClient } from "@azure/storage-blob";
import { SpanStatusCode } from "@azure/core-tracing";
impo... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About LegionX</source>
<translation>Tentang LegionX</translation>
</message>
<message>
<lo... |
import React, { ReactElement } from 'react'
import { Image, View, ImageSourcePropType, StyleProp, ImageStyle, ImageResizeMode } from 'react-native'
export type ImageSourceType = string | number | null
type PropsType = {
source: ImageSourceType
style?: StyleProp<ImageStyle>
resizeMode?: ImageResizeMode
}
const g... |
/**
* Copyright 2017-2018 the original author or authors from the JHipster Online project.
*
* This file is part of the JHipster Online project, see https://github.com/jhipster/jhipster-online
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... |
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angul... |
/**
* @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 { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp381Component } from './comp-... |
import { MemoryDirectory, MemoryFile } from "./files/memory.js";
import { Requester } from "./utils.js";
import * as files from "./files/base.js";
export declare class MockBackendDirectory extends MemoryDirectory {
static addDirectoryName: string;
static addFileName: string;
static renameFileName: string;
... |
declare module 'blueimp-load-image' {
export default function loadImage(url: File | Blob | string,
callback: (img: HTMLImageElement | HTMLCanvasElement | Event) => void, { }): any;
}
declare module 'ndarray-gemm' {
import ndarray from 'ndarray';
export default function matrixProduct(c: ndarray.NdArray, a: nd... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ChooseByTagFPage } from './choose-by-tag-f.page';
const routes: Routes = [
{
path: '',
component: ChooseByTagFPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModu... |
import { joinURL } from "../tools/url";
import { encodePath, getAllDirectories, normalisePath } from "../tools/path";
import { request, prepareRequestOptions } from "../request";
import { handleResponseCode } from "../response";
import { getStat } from "./stat";
import { CreateDirectoryOptions, FileStat, WebDAVClientCo... |
import Styled from './Styled';
import { Constants, Helpers } from '../utils';
interface Range {
index: number;
length: number;
}
export interface Options {
accepts: string[];
upload(file: File): Promise<string>;
}
class BaseHandler {
quill: any;
options: Options;
range: Range | null;
handler: string;... |
import { Vignette } from '../game/pipelines/vignette';
import { SoftLight } from '../game/pipelines/softLight';
import { HSL } from '../game/pipelines/hsl';
export default {
type: Phaser.WEBGL,
backgroundColor: '#000000',
width: 64,
height: 64,
// scale: {
// mode: Phaser.Scale.ENVELOP,
... |
/*---------------------------------------------------------------------------------------------
* Copywight (c) Micwosoft Cowpowation. Aww wights wesewved.
* Wicensed unda the MIT Wicense. See Wicense.txt in the pwoject woot fow wicense infowmation.
*----------------------------------------------------------------... |
import * as d from '../../declarations';
export declare function generateComponentEntries(_config: d.Config, buildCtx: d.BuildCtx, allModules: d.ModuleFile[], userConfigEntryTags: string[][], appEntryTags: string[]): d.EntryPoint[];
export declare function processAppComponentEntryTags(buildCtx: d.BuildCtx, allModules: ... |
import { searchFullTextApiPost } from './host';
import { Concept } from '../../../types';
const mapSorting = ({ sortfield }: any) =>
sortfield === 'harvest.firstHarvested'
? { field: 'harvest.firstHarvested', direction: 'desc' }
: undefined;
const mapFilters = ({
id,
identifiers,
uri,
orgPath,
las... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { assert } from 'chai';
import { IJupyterSettings } from '../../client/common/types';
import {
createEmptyCell,
CursorPos,
DebugState,
extractInputText,
ICellViewModel
} from '../../d... |
export const formatDate = (date: Date): string => {
const tokens = date.toISOString().split('T');
const dates = tokens[0].split('-');
const times = tokens[1].split(':');
return `${dates[0]}-${dates[1]}-${dates[2]} ${times[0]}:${times[1]}`;
}; |
const child_process = {
ChildProcess: {
}
};
export { child_process }; |
// Initializes the `nedb2` service on path `/nedb-2`. (Can be re-generated.)
import { App } from '../../app.interface';
import createService from 'feathers-sequelize';
import createModel from '../../models/nedb-2.model';
import hooks from './nedb-2.hooks';
// !code: imports // !end
// !code: init // !end
let moduleEx... |
export class UpdateChallengeDto {
title: string;
code: string;
description: string;
imgId: string;
creatorId: string;
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CsvModelComponent } from './csv-model.component';
describe('CsvModelComponent', () => {
let component: CsvModelComponent;
let fixture: ComponentFixture<CsvModelComponent>;
beforeEach(async(() => {
TestBed.configureTestingMod... |
import React from 'react'
import whatsappIcon from '../../assets/icons/whatsapp.svg';
import './styles.css';
export interface Teacher {
id: number;
avatar: string;
bio: string;
cost: number;
name: string;
subject: string;
whatsapp: string;
}
interface TeacherItemProps {
teacher: Teac... |
/*
* 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... |
let password = '';
let passwordHeader = 'x-fetch-password';
let excludeHeadersPrefix = ['cf-', 'x-forwarded-proto', 'x-real-ip', 'true-client-ip', 'x-forwarded-for', passwordHeader];
async function handleFetch(request: Request): Promise<Response> {
let url = new URL(request.url);
let requestUrl = url.pathname ... |
export interface ILogger {
info: (string) => void,
error: (string) => void,
debug: (string) => void,
} |
import Home from './home';
import Page404 from './not-found';
import Posts from './posts-example';
import ProtectedPage from './protected-page';
import Second from './second';
import type { RouteObject } from 'react-router';
const AppRoutes = [ Home, Po... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react'
import BarsOutlinedSvg from 'infra-design-svgs/lib/asn/BarsOutlined';
import AntdIcon, { AntdIconProps } from '../components/AntdIcon';
const BarsOutlined = (
props: AntdIconProps,
ref: React.MutableRefObject<HTMLSpanEle... |
import {
ExportConfig,
ExporterConfig,
ExportFolder,
ExportNote,
ExportNoteTagRelation,
ExportResource,
ExportTag,
} from './Exporter'
import { readFile, readJson } from 'fs-extra'
import { AsyncArray, asyncLimiting, wait } from '@liuli-util/async'
import path from 'path'
import { omit } from '@liuli-util... |
import { Inject, Module, OnModuleDestroy } from '@nestjs/common'
import { Connection } from 'typeorm'
import { DATABASE_CONNECTION, databaseProviders } from './DatabaseProvider'
@Module({
providers: [...databaseProviders],
exports: [...databaseProviders]
})
export class DatabaseModule implements OnModuleDestroy {... |
import { $PointerLibrary, _getPointer, PointerLibrary } from "../Pointer/PointerLibrary";
import { isString } from "../Utils";
import { RDFList } from "./List";
import { RDFLiteral } from "./Literal";
import { RDFNode } from "./Node";
/**
* Interface that represents an RDF Value.
*/
export interface RDFValue {
/... |
import React from "react";
export class InputBox extends React.Component<{
addItem: (description: string) => void;
}, { text: string }> {
constructor(props: { addItem: (description: string) => void }) {
super(props);
this.state = {
text: ""
};
this.handleChange = this.handleChange.bind(this)... |
import React, { useCallback } from "react";
import { InferableComponentEnhancer } from "recompose";
import {
Disposable,
Environment,
GraphQLSubscriptionConfig,
requestSubscription as requestSubscriptionRelay,
} from "relay-runtime";
import { CoralContext, useCoralContext } from "../bootstrap";
import { resolv... |
export function zip<T1, T2>(iterable1: Iterable<T1>, iterable2: Iterable<T2>): Generator<[T1, T2]>;
export function zip<T1, T2, T3>(
iterable1: Iterable<T1>,
iterable2: Iterable<T2>,
iterable3: Iterable<T3>,
): Generator<[T1, T2, T3]>;
export function zip<T1, T2, T3, T4>(
iterable1: Iterable<T1>,
iterable2: I... |
export const TYPEORM_LOGGER = 'TYPEORM_LOGGER'; |
import { HttpErrorResponse } from '@angular/common/http';
import { AsyncStatus } from '@core/async/models/async-status';
import { AnyAction } from '@shared/models/any-action';
export const asyncFeatureKey = 'async';
export interface AsyncState {
[key: string]: AsyncStatus;
}
export const initialState: AsyncState =... |
import {Component, OnInit} from '@angular/core';
import {NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'app-prescription-delete-confirm-modal',
templateUrl: './prescription-delete-confirm-modal.component.html',
styleUrls: ['./prescription-delete-confirm-modal.component.css']
})
export... |
import { module as HyperlinkRewrite } from '../../../preprocessing/preprocessing-modules/HyperlinkRewrite';
describe('HyperlinkRewrite module', () => {
test('has correct name', () => {
expect(HyperlinkRewrite.name).toBe('HyperlinkRewrite');
});
test('adds hyperlink attributes', () => {
const code = `<!D... |
import { BrowserWindow, Menu, app, ipcMain, nativeImage, protocol, session } from 'electron';
import * as fs from 'fs';
import * as path from 'path';
import { Pinyin } from '@baranwang/pinyin';
import { EK } from '/@eventKeys';
import { execSync } from 'child_process';
import viewInsertCSS from '../../preload/src/view... |
interface HasA {
a:string;
}
class ClassWithA {
constructor(public a:!string) {
}
}
var hasA:HasA = new ClassWithA("string"); |
import { Module } from '@nestjs/common';
import { ProductsModule } from './products/products.module';
import { MongooseModule } from '@nestjs/mongoose';
import { UsersModule } from './users/users.module';
import { AuthModule } from './auth/auth.module';
import { ConfigModule, ConfigService } from '@nestjs/config';
@Mo... |
import { Decoder, Encoder, MessageHeaders } from "@aws-sdk/types";
/**
* @internal
*/
export declare class HeaderMarshaller {
private readonly toUtf8;
private readonly fromUtf8;
constructor(toUtf8: Encoder, fromUtf8: Decoder);
format(headers: MessageHeaders): Uint8Array;
private formatHeaderValue;... |
import React, { useState, useCallback, useEffect, useRef } from 'react';
import TrackPlayer, { usePlaybackState, STATE_PLAYING, STATE_PAUSED } from 'react-native-track-player';
import { TouchableOpacity } from 'react-native';
import styled from 'styled-components/native';
import { useHasQueue } from 'utility/useQueue';... |
import { EventBus } from "./event-bus";
export class SystemService {
public static readonly TOPIC_MONITORS = 'MONITORS';
public monitors: any[] = [];
protected constructor() {
}
static get instance(): SystemService {
if (!(<any>overwolf.windows.getMainWindow()).pubgistics_systemServiceP... |
import {
AcceptPortfolioShareCommandInput,
AcceptPortfolioShareCommandOutput,
} from "./commands/AcceptPortfolioShareCommand";
import {
AssociateBudgetWithResourceCommandInput,
AssociateBudgetWithResourceCommandOutput,
} from "./commands/AssociateBudgetWithResourceCommand";
import {
AssociatePrincipalWithPort... |
import React from 'react';
import styled from 'styled-components';
import {Seed, BlockComponentProps} from 'core-dayo';
import {ConfirmProps} from './interfaces';
import mixin from './mixin';
const SUMI = '#1c1c1c';
const ROKUSYOH = '#24936e';
const Confirm = styled.div`
${mixin}
`;
// eslint-disable-next-line rea... |
import Hapi from 'hapi';
import { User, Hobby } from './schema';
export interface DataLoaderType<T, R> {
load(key: T): Promise<R[]>;
loadMany(keys: T[]): Promise<R[]>;
clear(key: T): void;
clearAll(): void;
}
export interface Loaders {
userLoader: DataLoaderType<string, User>;
hobbyLoader: DataLoaderTy... |
// Type definitions for ioredis 4.27
// Project: https://github.com/luin/ioredis
// Definitions by: York Yao <https://github.com/plantain-00>
// Christopher Eck <https://github.com/chrisleck>
// Yoga Aliarham <https://github.com/aliarham11>
// Ebrahim <https://github.com/... |
declare var _default: {
isArray: any;
includes: any;
isUndefined: any;
isFunction: any;
defaults: any;
each: any;
extend: any;
has: any;
initial: any;
clone: any;
isNull: any;
map: any;
isBoolean: any;
keys: any;
reduce: any;
forEach: any;
isObject: an... |
class A {
b = 3;
a = () => {
console.warn(this.b);
};
}
const a = new A();
a.a();
a.a.bind({b: 4})(); |
import express from 'express';
import path from 'path';
import 'express-async-errors';
import cors from 'cors';
import './database/connection';
import routes from './routes';
import errorHandler from './errors/handler';
const app = express();
app.use(cors());
app.use(express.json());
app.use(routes);
app.use('/uplo... |
import { KeyDto } from 'catbuffer-typescript';
import { NetworkType } from '../network/NetworkType';
import { Address } from './Address';
/**
* The public account structure contains account's address and public key.
*/
export declare class PublicAccount {
/**
* The account's public key.
*/
readonly ... |
import StarBorderOutlinedIcon from "@material-ui/icons/StarBorderOutlined";
import { observer } from "mobx-react-lite";
import { useStore } from "stores/store";
import styled from "styled-components";
const ChatHeaderInfo = () => {
const { selectedChannel } = useStore().channelStore;
return (
<StyledContainer... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { AlloyComponent, AlloyTriggers, Composing, Disabling, Focusin... |
/*
* Copyright 2019 gylidian
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
import { IStandardHeader } from './set/standard_header'
import { IInstrument } from './set/instrument'
import { IFinancingDetails } from './set/financing_details'
import { IOrderQtyData } from './set/order_qty_data'
import { IYieldData } from './set/yield_data'
import { IUndInstrmtGrp } from './set/und_instrmt_grp'
imp... |
import { LodLoader } from './lod-loader';
import { LodNode } from './lod-node';
import { BinaryXHR } from '../../utils/binary-xhr';
import { LodBinary } from './lod-binary';
export class XhrLodLoader implements LodLoader {
constructor(public baseUrl: string) {
}
async loadNode(id: number | string): Promi... |
import { VerticalFormationRepository } from './vertical-formation.repository';
import { VerticalFormationScrollBarPositionArchive } from './scroll-bar/vertical-formation.scroll-bar-position.archive';
import { StructureId } from '../../../core/api/structure.id';
import { HermesObservable } from '@generic-ui/hermes';
imp... |
/**
* @module parjs/internal/implementation
*/
/** */
import {QUIET_RESULT} from "./special-results";
import {BasicParsingState, ParjsAction} from "./action";
import {FailureReply, Reply, ReplyKind, SuccessReply, Trace} from "../../reply";
import {ParsingState} from "./state";
import _defaults = require("lodash/defau... |
import {Location} from "spacetraders-api-sdk";
export interface LocationWithDistance extends Location {
distance: number;
} |
import styled from 'styled-components'
import { compose, layout, space } from 'styled-system'
export const StyledFigure = styled.figure`
margin: 0 0 2em 0;
position: relative;
width: 100%;
${compose(layout, space)}
`
export const VideoContainer = styled.div`
position: relative;
padding-bottom: 56.25%;
`
... |
import React, {PureComponent, ReactNode} from "react";
import {KeyboardAvoidingView, View, ViewProps} from "react-native";
import {isDroid} from "../../core/theme";
export class KeyboardAvoidingViewWrapper extends PureComponent<ViewProps & { extraHeight?: number }> {
render(): ReactNode {
if (isDroid) {
... |
/**
* Incrementally accumulate results, starting with the provided initial value.
*
* @name scan<A, B>(f: (seed: B, value: A) => B, initial: B, stream: Stream<A>): Stream<B>
* @example
* import { scan, periodic, observe } from '@motorcycle/stream'
*
* // creates a stream that increments by 1 every 1000ms
* co... |
import { Component } from 'vue-property-decorator';
import _ from 'lodash';
import template from './aggregation.html';
import { injectNodeTemplate } from '../node';
import { SubsetNode } from '../subset-node';
import FormSelect from '@/components/form-select/form-select';
import ColumnSelect from '@/components/column-... |
import 'phaser';
import React, { useEffect, useRef, useState } from 'react';
import { getGameConfig } from '../../scripts/game';
import { MODE, setActiveMode } from '../../scripts/helpers/constants';
import { NavLink } from 'react-router-dom';
import styled from 'styled-components';
import firebase from 'firebase';
imp... |
import { AbonSet, resolve } from "../src";
describe("AbonSet", () => {
it("constructs", () => {
let set = new AbonSet<number>();
expect(set.size).toBe(0);
set = new AbonSet<number>([1, 2]);
expect(set.size).toBe(2);
});
it("sets", () => {
const set = new AbonSet<... |
import * as _ from 'lodash';
import {AbstractModuleLoader} from '../AbstractModuleLoader';
import {ModuleDescriptor} from '../../registry/ModuleDescriptor';
import {ClassesHandle} from './ClassesHandle';
import {IClassesOptions} from './IClassesOptions';
import {ClassLoader, PlatformUtils} from 'commons-base';
import... |
import React, { useState, useEffect } from 'react';
import {
Table,
TableHeader,
TableBody,
TableVariant,
sortable
} from '@patternfly/react-table';
import {
Title,
EmptyState,
EmptyStateIcon,
EmptyStateBody,
Bullseye,
Card,
CardBody,
Button
} from '@patternfly/react-core';
import {
CheckCir... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
import { Store } from 'redux';
import ReactDOM fro... |
import { Component, OnInit } from '@angular/core';
import { FormGroup } from "@angular/forms"
import { RxFormBuilder } from '@rxweb/reactive-form-validators';
import { EmployeeInfo } from './employee-info.model';
import { HttpClient } from '@angular/common/http';
import { environment } from 'src/environments/environme... |
/**
*
*
* OpenAPI spec version: 20200601
*
*
* 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 { $Wrappable, $IterableIterator } from '../../types/$iterable';
declare function $compress<T>(
source: $Wrappable<T>,
included: $Wrappable<boolean>,
): $IterableIterator<T>;
export { $compress }; |
import { SYMBOL_GEO_POLYGON } from '../helper/symbol'
import { isArray, isNumber } from '../utils/type'
import { LineString } from './lineString'
import { ISerializedPolygon } from './interface'
/**
* 面
*
* @author starkewang
*/
export class Polygon {
readonly lines: LineString[]
/**
* 初始化
*
* @param... |
import { BaseObject } from "../core/BaseObject";
import { Map } from "../core/DragonBones";
import { DisplayData } from "./DisplayData";
import { ArmatureData } from "./ArmatureData";
/**
* The MIT License (MIT)
*
* Copyright (c) 2012-2018 DragonBones team and other contributors
*
* Permission is hereby granted, ... |
import {
AfterViewInit,
Component,
ElementRef,
OnDestroy,
OnInit,
ViewChild
} from "@angular/core";
import { FormBuilder, FormGroup, Validators } from "@angular/forms";
import { fromEvent } from "rxjs";
import { debounceTime, distinctUntilChanged, filter, finalize, map, switchMap } from "rxjs/op... |
/**
* MPEG parser helper
*/
import { DemuxedAudioTrack } from '../types/demuxer';
let chromeVersion: number | null = null;
const BitratesMap = [
32,
64,
96,
128,
160,
192,
224,
256,
288,
320,
352,
384,
416,
448,
32,
48,
56,
64,
80,
96,
112,
128,
160,
192,
224,
25... |
/**
* Defines base class for CMake drivers
*/ /** */
import * as path from 'path';
import * as vscode from 'vscode';
import * as api from '@cmt/api';
import { CMakeExecutable } from '@cmt/cmake/cmake-executable';
import * as codepages from '@cmt/code-pages';
import { ConfigureTrigger } from "@cmt/cmake-tools";
impo... |
export const PROSTAVA = {
ACTION: {
BACK: "prostava-back",
EXIT: "prostava-exit",
SETTINGS_LANGUAGE: "prostava-settings-language",
SETTINGS_CURRENCY: "prostava-settings-currency",
SETTINGS_TYPE: "prostava-settings-type",
SETTINGS_TYPENEW: "prostava-settings-typenew",
... |
export default interface IChangeTitleDTO {
titleId?: string;
playerId: string;
gameId: string;
userId: string;
} |
import React from 'react';
import {
Page,
Text,
View,
Document,
StyleSheet,
Image,
} from '@react-pdf/renderer';
import moment from 'moment';
import IPedidoFuncionario from '../../Interfaces/IPedidoFuncionario';
import Logo from '../../Images/logo.png';
const styles = StyleSheet.create({
page: {
pad... |
/**
* Copyright 2018, OpenCensus Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
import { ServerResponse } from "http";
import { serializeCookie } from "../core/utils";
const authPaths: Path[] = [
{
method: "GET",
route: /^\/\.auth\/login\/(?<provider>aad|github|twitter|google|facebook|[a-z]+)/,
function: "auth_login_provider",
},
{
method: "GET",
route: /^\/\.auth\/me/,
... |
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './componentes/home/home.component';
import { AboutComponent } from './componentes/about/about.component';
import { CoursesComponent } from './componentes/courses/courses.component';
import { CourseComponent } from './componentes/cour... |
import CElementCover from './CElementCover'
export {
CElementCover
} |
import React from "react";
import { FormattedMessage } from "react-intl";
// Components
import CopyableFieldComponent from "./CopyableField";
const SettingShoutoutAlertClip: React.FC = () => {
return (
<>
<h3 className="section__sub-header">
<FormattedMessage
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
ArgumentMetadata,
HttpException,
HttpStatus,
Injectable,
PipeTransform,
Type,
} from '@nestjs/common';
import { plainToClass } from 'class-transformer';
import { validate } from 'class-validator';
@Injectable()
export class ValidationPipe implements PipeTransform<any> {
async transform(value: an... |
import { RpgEvent, EventData, RpgPlayer, EventMode, Direction } from '@rpgjs/server'
export function TreeEvent(options): object {
const { name, text, gain } = options
@EventData({
name,
mode: EventMode.Scenario,
hitbox: {
width: 32,
height: 32
}
})
... |
export function streamMultipart(body: any, boundary: any): AsyncGenerator<any, void, unknown>;
/**
*
* @param {ReadableStream<Uint8Array>} body
* @param {string} boundary
* @returns {AsyncIterable<FilePart>}
*/
export function iterateMultipart(body: ReadableStream<Uint8Array>, boundary: string): AsyncIterable<File... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.