text stringlengths 10 953k |
|---|
import { Injectable } from '@angular/core';
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { AsyncSubject, Observable, of } from 'rxjs';
import { catchError, map, switchMap, tap } from 'rxjs/operators';
import { htmlEscape } from 'safevalues';
import { htmlFromStringKnownToSatisfyTypeCont... |
//
// Copyright (c) Microsoft.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
import azure from 'azure-storage';
import crypto from 'crypto';
import {
IObjectWithDefinedKeys } from '../../lib/entityMetadataProvider/entityMetadataProvider';
import { EntityMet... |
import { Request, Response, NextFunction } from 'express'
import { IRoleDTO } from '../dtos/IRoleDTO'
import { AppException } from '@shared/exceptions/AppException'
class RoleUserMiddleware {
public role(roles: IRoleDTO[]): any {
return function (req: Request, res: Response, next: NextFunction): any {
... |
export interface FormatHelper {
format: (
value: number | Date | null | undefined | string,
format: string | ((value: unknown) => string) | Record<string, unknown>) => string;
}
declare const formatHelper: FormatHelper;
export default formatHelper; |
/**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
import * as glob from 'glob';
import * as path from 'path';
import * as os from 'os';
import * as fs from 'fs';
import * as pty from 'node-pty';
import { Terminal } from './Terminal';
import { IDisposable } from 'xterm';
// all t... |
// eslint-disable-next-line @typescript-eslint/no-unused-vars
namespace AmazonProvider.Kinesis {
export function KinesisAtendeeFactory(
isMaster: boolean,
configs: any
): OSFramework.Interface.IAtendee {
if (isMaster) {
return new MasterAtendee(configs);
} else {
... |
<TS language="pl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Kliknij prawym przyciskiem myszy, aby edytować adres lub etykietę</translation>
</message>
<message>
<source>Create a new address</... |
import BigNumber from 'bignumber.js'
import { BufferComposer, ComposableBuffer } from '@defichain/jellyfish-buffer'
import { Script } from '../../tx'
import { CScript } from '../../tx_composer'
export interface TokenBalance {
token: number // ---------------------| 4 bytes unsigned
amount: BigNumber // -----------... |
let youtubeSocket: SocketLibSocket | undefined;
let container = $("<div class='flexrow'></div>")
let buttons = $("<div class='sound-controls playlist-controls flexrow'></div>")
let header = $("<footer title='Youtube Video ID' textContent='Youtube Video ID'>VID ID </footer>")
let input = $("<input id='vidIdInput' style=... |
import * as createjs from 'createjs-module';
var flowjs = flowjs || {};
export class FlowConnector {
color: string;
alpha: number;
strokeWidth: number;
xa: any;
ya: any;
xb: any;
yb: any;
lines: any;
dots: any;
constructor(xa, ya, xb, yb) {
this.color = "blue";
... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import * as dayjs from 'dayjs';
import { first } from 'rxjs/operators';
import { DbService } from '../../services/db.service';
@Component({
selector: 'app-add',
templateUrl: 'add.page.html',
styleUrls: ['a... |
// 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: true,
apiUrl :'https://api.github.com/users/',
gitT... |
import { ReactElement, ReactNode } from 'react';
import { QueryRenderer } from 'react-relay';
import graphql from 'babel-plugin-relay/macro';
import environment from '../../appEnv';
import LoadingPlaceholder from '../utils/LoadingPlaceholder';
import { ENTITIES_PER_PAGE } from '../../constants';
import TagsList from '.... |
export * from "./classx";
export * from "./date";
export * from "./env.client";
export * from "./env.server";
export * from "./json";
export * from "./meta";
export * from "./package";
export * from "./seo";
export * from "./sleep"; |
import { ActorAbstractPath } from '@comunica/actor-abstract-path';
import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';
import type { IActionContext, IQueryOperationResult } from '@comunica/types';
import { Algebra } from 'sparqlalgebrajs';
/**
* A comunica Path Inv Query Operat... |
import { PostModeler } from "./Post";
import { UserModeler } from "./User";
export { PostModeler, UserModeler }; |
import { addDefaultDefs } from '_src/addAllDefs';
import { Sanivali } from '../sanivali';
addDefaultDefs();
test('filterItems', async () => {
const sani = new Sanivali([['filterItems', (x: any) => x && x !== 2]]);
expect(
sani.run([0, '1', null, true, false, 2, undefined, '3.5'])
).toStrictEqual({
fatal... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Assert, CommonError, StringUtils } from "../common";
import { Token } from "../language";
import { Localization, LocalizationUtils } from "../localization";
import { ParseState } from "./parseState";
export type TParseError = CommonEr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { IAnimatedSprite } from './IAnimatedSprite';
export declare function ClearAnimations<T extends IAnimatedSprite>(...sprites: T[]): T[];
//# sourceMappingURL=ClearAnimations.d.ts.map |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TokenCredential } from "@azure/core-http";
import { DefaultAzureCredential } from "./credentials/defaultAzureCredential";
export { ChainedTokenCredential } from "./credentials/chainedTokenCredential";
export { TokenCredentialOptions }... |
import React, { FunctionComponent, useCallback, useContext, useEffect } from 'react';
import { Anchor, Box, Button, Heading, Text } from 'grommet';
import { User } from '@centrifuge/gateway-lib/models/user';
import { Modal } from '@centrifuge/axis-modal';
import UserForm from './UserForm';
import { formatDate } from '@... |
// *** 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 {GameFaction} from 'shared';
import {KingBlue, KingRed} from '../resources/icons';
import {Piece, PieceIdentity} from './piece';
export class King extends Piece {
identity: PieceIdentity = {
type: 'king',
name: '大帅',
[GameFaction.RED]: {
displayName: '帥',
Icon: KingRed,
},
[G... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitcoinX</source>
<translation>A BitcoinX-ról</translation>
</message>
<message>
<locat... |
import {getConfig, getNestedConfig} from './getter'
export const onConfigNesting = (
rawConfig,
fn: (babelData: any, userConfig: any) => void,
) => {
if (getNestedConfig(rawConfig)) {
fn(getConfig(rawConfig), getNestedConfig(rawConfig))
}
} |
import { Box, ClickAwayListener, Typography } from "@material-ui/core";
import { createStyles, makeStyles, Theme } from "@material-ui/core/styles";
import React, { FC, useState } from "react";
import { Action, ActionTypes } from '../../../reducers/ProjectReducer';
import { IProject } from "../../../types/ModelTypes";
i... |
import { NextFunction, Request, Response } from 'express';
import jwt from 'jsonwebtoken';
interface TokenPayload {
id: string;
iat: number;
exp: number;
isAdmin: boolean;
}
export default function authMiddleware(
req: Request,
res: Response,
next: NextFunction,
) {
const { authorization } = req.heade... |
import {
Component, Input, Output, EventEmitter,
} from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
import { FaultSummary } from '@shared/models/fault-marking.model';
import { TestCategory } from '@dvsa/mes-test-schema/category-definitions/common/test-category';
@Component({
selector:... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { first } from 'rxjs/operators';
import { AlertService, UserService, AuthenticationService } from '@app/_services';
@Component({ templateUrl: 'regis... |
/**
* @file DataNull 数据空
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper('data-null', (props: ISvgIconProps) => (
'<?xml version="1.0" encoding="UTF-8"?>'
+ '<svg wid... |
import API from "./api";
export default {
}; |
import {it, inject, beforeEachProviders} from 'angular2/testing';
import {Alert} from './alert.component';
describe('Alert', () => {
beforeEachProviders(() => [
Alert
]);
it('should have default type', inject([Alert], (alert:Alert) => {
expect(alert.type)
.toEqual('warning');
}));
}); |
<TS version="2.1" language="yo">
<context>
<name>AddressBookPage</name>
<message>
<source>&New</source>
<translation type="unfinished">&ati tuntun</translation>
</message>
</context>
<context>
<name>QObject</name>
<message numerus="yes">
<source>%n second(s)</sour... |
import { Module } from '@nestjs/common';
import { BooksService } from './books.service';
import BooksController from './books.controller';
import { APP_GUARD } from '@nestjs/core';
import { JwtAuthGuard } from 'src/auth/jwt-auth.guard';
@Module({
imports: [],
controllers: [BooksController],
providers: [Book... |
import { CommandStore, KlasaMessage } from 'klasa';
import { BotCommand } from '../../lib/BotCommand';
import { stringMatches, formatDuration, rand } from '../../lib/util';
import { Time, Activity, Tasks } from '../../lib/constants';
import { BuryingActivityTaskOptions } from '../../lib/types/minions';
import addSubTa... |
import { FolderTheme, IconPack } from '../models/index';
/**
* Defines folder icons
*/
export const folderIcons: FolderTheme[] = [
{
name: 'specific',
defaultIcon: { name: 'folder' },
rootFolder: { name: 'folder-root' },
icons: [
{ name: 'folder-src', folderNames: ['src', 'source', 'sources',... |
import { FidanValue, FidanArray } from "@fidanjs/runtime";
export type GrammarChildsType = "ordered" | "choice" | "value";
export interface IGrammarNode {
text: FidanValue<string>;
childsType: FidanValue<GrammarChildsType>;
childs: FidanArray<IGrammarNode[]>;
isSelected?: FidanValue<boolean>;
} |
import { Indicator, IndicatorInput } from "../indicator/indicator";
import { LinkedList } from "../Utils/LinkedList";
import { MAInput, SMA } from "./SMA";
export class WEMA extends Indicator {
public static calculate = wema;
public period: number | undefined;
public price: number[] | undefined;
publi... |
/** An error thrown by the API. */
declare class SlothpixelError extends Error {
message: string
}
interface GraphqlData {
query: string
operationName?: string
variables?: object
}
declare const slothpixel: {
SlothpixelError: typeof SlothpixelError
/**
Send a request to the Slothpixel API.
@param endpoint Th... |
// Gatsby supports TypeScript natively!
import React from "react"
import { PageProps } from "gatsby"
import moment from "moment"
import Layout from "../components/Layout"
import SEO from "../components/Seo"
import { technologies } from "../../contents/data/technologies"
import { experiences } from "../../contents/data... |
import wireMockClient from '../../../wireMockClient';
test('createCustomerPayment', async () => {
const { adapter, client } = wireMockClient();
adapter.onPost('/customers/cst_FhQJRw4s2n/payments').reply(201, {
resource: 'payment',
id: 'tr_44aKxzEbr8',
mode: 'test',
createdAt: '2018-03-13T14:02:29+... |
export interface ICloseable {
close(): this;
} |
export enum TaskType {
ADD_ACCOUNT = 'add_account',
REMOVE_ACCOUNT = 'remove_account',
TRADE_HISTORY = 'process_trade_history',
QUERY_BLOCKCHAIN_BALANCES = 'query_blockchain_balances_async',
QUERY_EXCHANGE_BALANCES = 'query_exchange_balances_async',
QUERY_BALANCES = 'query_balances_async',
DSR_BALANCE = '... |
import { ILoginResponse } from './../types'
import { GluegunCommand, print } from 'gluegun'
import api from '../client/api'
import { error, success } from 'log-symbols'
import { isEmail } from '../utils/utils'
import { Toolbox } from 'gluegun/build/types/domain/toolbox'
const options = (email?: string) => {
let mess... |
import { TestBed } from '@angular/core/testing';
import { AuthGuard } from './auth.guard';
describe('AuthGuard', () => {
let guard: AuthGuard;
beforeEach(() => {
TestBed.configureTestingModule({});
guard = TestBed.inject(AuthGuard);
});
it('should be created', () => {
expect(guard).toBeTruthy();
... |
import './polifills';
import {AppModule} from './app.module';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
/*
* Bootstrap our Angular app with a top level NgModule
*/
platformBrowserDynamic()
.bootstrapModule(AppModule); |
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { KeyValueEditComponent } from './key-value-edit/key-value-ed... |
import JsonReact from '../src';
import * as ReactDOMServer from 'react-dom/server';
import * as trenderer from 'react-test-renderer';
import * as A from '../examples/components/A';
import * as B from '../examples/components/B';
JsonReact.RegisterComponent(A);
JsonReact.RegisterComponent(B);
describe('success render ... |
export { DefaultSeo } from './DefaultSeo';
export { Seo as default } from './Seo'; |
import c from "./Popup.module.scss";
import { scopeModuleClasses } from "../../utils/scopModuleClasses";
const s = scopeModuleClasses(c);
import { createSignal } from "solid-js";
import Dismiss from "solid-dismiss";
const Popup = () => {
const [open, setOpen] = createSignal(false);
let btnEl!: HTMLButtonElement;
... |
export type pagination = {
pageSize: number;
totalResults: number;
totalPages: number;
page: number;
previous: string;
next: string;
} |
import { devConstants, web3Factory } from '@0x/dev-utils';
import { Web3ProviderEngine } from '@0x/subproviders';
import { Web3Wrapper } from '@0x/web3-wrapper';
const txDefaults = {
from: devConstants.TESTRPC_FIRST_ADDRESS,
gas: devConstants.GAS_LIMIT,
};
const provider: Web3ProviderEngine = web3Factory.getRp... |
import { render } from '@testing-library/react-native'
import React from 'react'
import { View } from '../dist'
describe('View', () => {
it('renders without crashing', () => {
const { queryByTestId } = render(<View pa={3} testID="my-view" />)
expect(queryByTestId('my-view')).toBeTruthy()
})
}) |
import mongoose = require("mongoose");
import User from "./schemas/user";
import IU from "./schemas/IUser";
const mongoDBURI = "<%= dbcon %>";
class DataAccess {
constructor() {
mongoose.connect(mongoDBURI);
mongoose.Promise = global.Promise;
mongoose.connection.on(
"error",
console.error.bi... |
import * as _ from 'underscore';
import {IReduxAction} from '../../utils/ReduxUtils';
import {AutocompleteActions} from '../autocomplete/AutocompleteActions';
import {SelectActions} from '../select/SelectActions';
import {IListBoxPayload, ListBoxActions} from './ListBoxActions';
export interface IListBoxState {
id... |
import { Injectable, Autowired, INJECTOR_TOKEN, Injector } from '@opensumi/di';
import { URI } from '@opensumi/ide-core-common';
import { IIconTheme, ThemeContribution, getThemeId } from '../common';
import { IconThemeData } from './icon-theme-data';
@Injectable()
export class IconThemeStore {
@Autowired(INJECTOR_... |
import * as ActionTypes from '../../constant/actionTypes'
import { fetchDiscountList } from '../../dao'
declare var global
export function getDiscountList(page = 1, {
ddstatus = 'all',
pf = 'all',
region = 'all',
title = ''
}) {
return dispatch => {
return fetchDiscountList({ page, title, ddstatus, regio... |
import "../../styles/sass/globals.scss";
import BankContext from "../context/BankContext";
function MyApp({ Component, pageProps }) {
return (
<BankContext.Provider
value={{
name: process.env.NEXT_PUBLIC_BANK_NAME,
code: process.env.NEXT_PUBLIC_BANK_CODE,
get cssCode() {
r... |
import { FormSchema } from '/@/components/Form';
export const schemas: FormSchema[] = [
{
field: 'product_id',
component: 'Input',
label: '商品ID',
componentProps: {
placeholder: '商品ID',
},
required: true,
},
{
field: 'title',
component: 'Input',
label: '商品名称',
compone... |
/*!
* Copyright 2018 Google Inc. All Rights Reserved.
*
* 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 appli... |
import {
HttpClientTestingModule,
HttpTestingController,
} from '@angular/common/http/testing';
import { Injector } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { EventService } from './event.service';
import { Event, EventResponse } from './event.model';
describe('Event Servic... |
import type {JsonValue} from 'type-fest'
import {renderJSON, renderMustache} from './replaceVars'
const {isBinarySync} = require('istextorbinary')
const path = require('path')
const {copyFile, mkdirp, readFile, writeFile} = require('./fs')
export async function buildFile(
fromPath: string,
toPath: string,
templ... |
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, ContractTransaction, EventFilter, Signer } from 'ethers'
import { Listener, Provider } from 'ethers/providers'
import { Arrayish, BigNumber, BigNumberish, Interface } from 'ethers/utils'
import {
TransactionOverrides,
TypedEventDesc... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Use this data source to get the name and value of a pre... |
import * as cdk from '@aws-cdk/core';
import * as iam from '@aws-cdk/aws-iam';
import * as lambda from '@aws-cdk/aws-lambda';
import * as apigw from '@aws-cdk/aws-apigateway';
interface Props extends cdk.StackProps {
slackEventHandler: lambda.Function;
}
export class ApiGatewayStack extends cdk.Stack {
private re... |
import * as ndarray from 'ndarray';
let emlapack = require('emlapack');
export function dsysv_aa(UPLO: string,
N: number,
NRHS: number,
A: ndarray<number>,
LDA: number,
B: ndarray<number>,
LDB: number): ndarray<number> {
let func = emlapack.cwrap('dsysv_aa_', null, [
'numbe... |
import {Injectable} from 'angular2/src/di/decorators';
import {
isBlank,
isPresent,
BaseException,
StringWrapper,
RegExpWrapper
} from 'angular2/src/facade/lang';
import {ListWrapper, List} from 'angular2/src/facade/collection';
import {
Lexer,
EOF,
Token,
$PERIOD,
$COLON,
$SEMICOLON,
$LBRACKET,... |
import { newE2EPage } from '@stencil/core/testing';
describe('icon-corner-right-down', () => {
it('renders', async () => {
const page = await newE2EPage();
await page.setContent('<icon-corner-right-down></icon-corner-right-down>');
const element = await page.find('icon-corner-right-down');
expect(el... |
import { Injectable, Logger } from '@nestjs/common';
import * as AWS from 'aws-sdk'
import { ConfigService } from '@nestjs/config'
@Injectable()
export class AwsService {
private logger = new Logger(AwsService.name)
constructor (
private configService: ConfigService
) {}
public async uploadA... |
import {connect} from "@@/plugin-dva/exports";
import React from "react";
import {Card} from "antd";
import TagTypeItem from "@/pages/welcome/parts/TagTypeCard/components";
import style from './style.less';
import {ConnectState} from "@/models/connect";
import {HomeModelStateType} from "@/pages/welcome/model";
import {... |
export class UsersList {
static from(jsonArray: Array<Object>): UsersList {
return new UsersList(jsonArray.map((jsonObj: User) => User.from(jsonObj)));
}
constructor(readonly users: User[]) {
}
}
export class User {
static from(json: any): User {
return new User(
json['id'],
json['name']... |
import { Test, TestingModule } from '@nestjs/testing'
import { getLoggerToken } from 'nestjs-pino'
import { getTerraToken } from 'nestjs-terra'
import { TxService } from './tx.service'
describe('TxService', () => {
let service: TxService
beforeEach(async () => {
const module: TestingModule = await Test.create... |
let promiseLikeOfString: PromiseLike<string>; |
let global : any = typeof window !== 'undefined' ? window : self;
global.config = {
apiUrl: typeof window !== 'undefined' && window.location ? window.location.href.substr(0, window.location.href.lastIndexOf('/') + 1) + 'api/' : 'https://wallet.bitcoin2.network/api/',
mainnetExplorerUrl: "http://explorer.bitcoin... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AuthService } from 'src/services/auth.service';
import { ProfileComponent } from './profile.component';
import { UserService } from '../../services/user.service';
import { ToastsService } from '../../services/toasts.service';
import {For... |
/********************************************************************************
* Copyright (C) 2017 Ericsson and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* T... |
import { ValidationError } from '@nestjs/common';
import { plainToClass } from 'class-transformer';
import { validate } from 'class-validator';
import { registerDecorator, ValidationOptions } from 'class-validator';
import zxcvbn from 'zxcvbn';
export function checkPropertiesExists(obj: Record<string, unknown>) {
fo... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {Component, OnInit} from 'angular2/core';
import {Router} from 'angular2/router';
import {Movie} from './movie';
import {MovieService} from './movie.service';
@Component({
selector: 'my-dashboard',
templateUrl: 'app/dashboard.component.html',
styleUrls: ['app/dashboard.component.css']
})
export class Dash... |
import { IStore } from '../../../types';
import { Notifications } from '../../../types/constants';
import { makeSelectNotifications } from '../selectors';
it('returns all the notifications', () => {
const state: IStore = {
notifications: [{
message: 'dont-care',
type: Notifications.Error,
}, {
... |
// Copyright 2020 UBIO Limited
//
// 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... |
import { deepMerge, removeUndefined } from '@monots/utils';
import is from '@sindresorhus/is';
import chalkTemplate from 'chalk-template';
import del from 'del';
import glob from 'fast-glob';
import fs from 'node:fs/promises';
import path from 'node:path';
import normalizePath from 'normalize-path';
import parseJson fr... |
import { Component, Input, OnChanges } from '@angular/core';
import dayjs from 'dayjs';
import { Exercise } from 'app/entities/exercise.model';
/*
Display warning for instructors on submission page, team page and the assessment page.
Instructors are allowed to access and assess submissions before the exercise's due da... |
import React, {useState, useEffect} from 'react'
import prettyBytes from 'pretty-bytes'
import {
Box,
Spacing,
Panel,
PanelHeader,
PanelSection,
Toast,
NavigationButton,
FocalPointInput,
DescriptionList,
DescriptionListItem,
PanelSectionHeader,
TextInput,
Point,
Link,
TagInput
} from '@ka... |
// Elix is a JavaScript project, but we define TypeScript declarations so we can
// confirm our code is type safe, and to support TypeScript users.
import Dialog from './Dialog.js';
import EffectMixin from './EffectMixin.js';
import LanguageDirectionMixin from './LanguageDirectionMixin.js';
import TouchSwipeMixin from... |
import { contains, fromHtml, isRtl, VTable } from 'roosterjs-editor-dom';
import { Editor, EditorPlugin } from 'roosterjs-editor-core';
import {
ContentPosition,
PluginEvent,
PluginEventType,
PluginMouseEvent,
ChangeSource,
} from 'roosterjs-editor-types';
const TABLE_RESIZE_HANDLE_KEY = 'TABLE_RES... |
import { Cell } from '../grid/Cell'
import { BaseModal } from './BaseModal'
type Props = {
isOpen: boolean
handleClose: () => void
}
export const InfoModal = ({ isOpen, handleClose }: Props) => {
return (
<BaseModal title="즐기는 방법" isOpen={isOpen} handleClose={handleClose}>
<p className="text-sm text-g... |
import { Command, CommandResult, help, success, failure, ErrorCodes, shortName, longName, hasArg, required } from "../../../util/commandline";
import { out } from "../../../util/interaction";
import { AppCenterClient, models, clientRequest } from "../../../util/apis";
const debug = require("debug")("appcenter-cli:comm... |
/**
* [[MessagingSessionConfiguration]] contains the information necessary to start
* a messaging session.
*/
export default class MessagingSessionConfiguration {
userArn: string;
messagingSessionId: string | null;
endpointUrl: string;
chimeClient: any;
awsClient: any;
/**
* Maximum amou... |
// Type definitions for non-npm package Google Calendar API v3 3.0
// Project: https://developers.google.com/google-apps/calendar/firstapp
// Definitions by: Bolisov Alexey <https://github.com/Bolisov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// IMPORTANT
// This fi... |
/**
* @license Angular v8.2.14
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/
import { AnimationBuilder } from '@angular/animations';
import { AnimationDriver } from '@angular/animations/browser';
import { AnimationFactory } from '@angular/animations';
import { AnimationMetadata } from '@angular... |
import { Command, Editor } from '@ckeditor/ckeditor5-core';
export default class IndentBlockCommand extends Command {
constructor(editor: Editor, indentBehavior: IndentBehavior);
refresh(): void;
execute(): void;
}
export interface IndentBehavior {
checkEnabled(indentAttributeValue: string): boolean;
... |
// Copyright 2017-2018 @polkadot/ui-keyring authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import { KeyringPair } from '@polkadot/util-keyring/types';
import { State } from '../types';
import saveAccount from './save';
... |
// This gives you default context menu (cut, copy, paste)
// in all input fields and textareas across your app.
(function () {
'use strict';
var remote = require('remote');
var Menu = remote.require('menu');
var MenuItem = remote.require('menu-item');
var cut = new MenuItem({
label: "Cut"... |
import React from 'react';
import classNames from 'classnames';
import TimelineItem, { TimeLineItemProps } from './TimelineItem';
export interface TimelineProps {
prefixCls?: string;
className?: string;
/** 指定最后一个幽灵节点是否存在或内容 */
pending?: React.ReactNode;
style?: React.CSSProperties;
}
export default class T... |
import { Injectable } from "@nestjs/common";
import { JwtService } from "@nestjs/jwt";
import * as bcrypt from "bcrypt";
import { UserI } from "src/user/user.interface";
@Injectable()
export class AuthService {
constructor(private readonly jwtService: JwtService) {}
async generateJwt(user: UserI): Promise<string>... |
/* tslint:disable */
/* eslint-disable */
/**
* Qase.io API
* Qase API Specification.
*
* The version of the OpenAPI document: 1.0.0
* Contact: support@qase.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class ... |
import { Breakpoints } from '@lib/core/breakpoints/breakpoints';
export type ResponsiveProperty<Type> = Partial<Record<Breakpoints, Type>>;
export interface StyleSheet {
// %%[CODER_START]:StyleSheet_attributes%%
bottom?: ResponsiveProperty<string | number> | string;
left?: ResponsiveProperty<string | number> |... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'client-devops',
templateUrl: './devops.component.html',
styleUrls: ['./devops.component.scss']
})
export class DevopsComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.