text stringlengths 10 953k |
|---|
/**
* @license
* Copyright (c) 2017 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io... |
import './types';
import { NodeFilterTS } from './types';
/**
* @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177
* The NodeList interface provides the abstraction of an ordered collection of nodes,
* without defining or constraining how this collection is implemented. NodeList obje... |
import { Lang } from './enum';
import { Locale } from './locale';
const locale: Locale = {
lang: Lang.zh_CN,
DataSet: {
unsaved_data_confirm: '有未保存的数据,是否继续?',
invalid_query_dataset: '查询条件数据集校验不通过',
delete_selected_row_confirm: '确认删除选中行?',
delete_all_row_confirm: '确认删除所有行?',
query_failure: '查询失败... |
class EffectMaterialDemo{
private rotation:Laya.Vector3;
constructor(){
Laya3D.init(0, 0);
Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;
Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;
Laya.Stat.show();
var scene = Laya.stage.addChild(new Laya.Scene3D());
th... |
/**
* @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 { Path, getSystemPath, normalize, schema, virtualFs } from '@angular-devkit/core';
import { NodeJsSyncHost } f... |
import { compileVariables } from "./lib/compile-variables";
import { SmoothVariablesRollupPluginOptions } from "./lib/SmoothVariablesRollupPluginOptions";
const DEFAULT_OPTIONS: Partial<SmoothVariablesRollupPluginOptions> = {
breakpointsExportName: 'breakpoints',
variablesExportName: 'uiVariables',
verbose: fals... |
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import { escape } from 'arquero'
import type { ExprObject } from 'arquero/dist/types/table/transformable'
import { container } from '../../factories.js'
import type { TableStore } from '../../ind... |
import * as sinon from "sinon";
import * as assert from "assert";
import {Logless} from "../src/logless";
import {LoglessContext} from "../src/logless-context";
import {Server} from "http";
import * as express from 'express';
import { Request, Response, Application } from 'express';
const request = require("supertest")... |
import { createElement, render } from 'rax';
import * as DriverDOM from 'driver-dom';
import { document } from 'global';
import dedent from 'ts-dedent';
const rootElement = document ? document.getElementById('root') : null;
export default function renderMain({
storyFn,
kind,
name,
showMain,
showError,
}: {... |
import * as React from "react";
import { SVGProps } from "react";
const Allsafe = (props: SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" {...props}>
<g fill="none">
<circle cx={16} cy={16} r={16} fill="#00688C" />
<g fill="#FFF">
<path d="M26.989 22.... |
// Type definitions for jquery.pnotify 3.x
// Project: https://github.com/sciactive/pnotify
// Definitions by: David Sichau <https://github.com/DavidSichau>, Robin Maenhaut <https://github.com/FUNExtreme>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
type NoticeTypeOptio... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const ModifyInstancePlacementOutput: _Structure_ = {
type: "structure",
required: [],
members: {
Return: {
shape: {
type: "boolean"
},
locationName: "return"
}
}
}; |
import Contact from './Contact';
const testFriends = [
{
src: "https://i.ibb.co/42drhRP/mcerleantom-79390488-2535626826491703-1307724872187531610-n-1.jpg",
name: "Tom McErlean"
},
{
src: "https://i.ibb.co/42drhRP/mcerleantom-79390488-2535626826491703-1307724872187531610-n-1.jpg",
... |
import { Paper } from '@material-ui/core';
import Button from '@material-ui/core/Button';
import { AnimateLink, AnimateRoute, AnimateSwitch, useAnimationKey } from 'la-danze-ui';
import React from 'react';
import { Demo, DemoAndSource, Header, SourceCode } from '../../DemoAndSource/DemoAndSource';
import styles from '.... |
import React from "react";
import {getTabId, setTabId, persistenceKey} from "./getTabId";
export function useTabId(): [string, (id: string) => void] {
const [storedTabId, setTabIdFunc] = React.useState(
sessionStorage.getItem(persistenceKey) || ""
);
const unmounted = React.useRef(false);
async function ru... |
import { MemoryAccountRepository } from '@/infra/db/account/repositories';
import { MemoryVoluntariesRepository } from '@/infra/db/voluntaries';
import { UpdateAccount } from '@/domain/usecases/account';
import { DbUpdateVoluntary } from '@/data/usecases/voluntary/db-update-voluntary';
import { InvalidEmail } from '@/d... |
export const RouteUnavailableMiddleware = (req: any, res: any, next: any) => {
const statusCode = 404
const message = `Cannot ${req.method} ${req.originalUrl}`
console.log(`> ${message}`)
res.status(statusCode).json({
status: 'error',
statusCode,
message
})
} |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
// eslint-disable-next-line import/no-internal-modules
import cloneDeep from "lodash/cloneDeep";
import { ITelemetryLogger } from "@fluidframework/common-definitions";
import { assert, performance } from "@fluidfra... |
/*
* Copyright 2018 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 agr... |
import {Entity, PrimaryGeneratedColumn, Column } from "typeorm";
/**
* Tabla que contiene las opciones de estado civil (casado, soltero,...)
*/
@Entity()
export class EstadoCivil {
@PrimaryGeneratedColumn()
id_estado_civil: number;
@Column({
type: "varchar",
length: 50,
un... |
import {Injectable, UnauthorizedException} from '@nestjs/common';
import {InjectModel} from "@nestjs/sequelize";
import {User} from "./user.model";
import {CreateUserDto} from "./dto/create.user.dto";
import {JwtService} from "@nestjs/jwt";
@Injectable()
export class UsersService {
constructor(@InjectModel(User) ... |
import { SSMHelper } from './helper';
import { Logger, LogLevel } from 'typescript-ilogger';
import { TestingValues } from './test-values';
const error = new Error(`AWS Error`);
const cancelCommand = jest.fn().mockImplementation(() => {
return Promise.reject(error);
});
const deleteParameter = jest.fn().mockImpleme... |
// Copyright 2017-2022 @polkadot/app-extrinsics authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { SubmittableExtrinsicFunction } from '@polkadot/api/types';
import type { Call } from '@polkadot/types/interfaces';
import type { HexString } from '@polkadot/util/types';
export interface Decoded... |
import { toaster } from "@/libs/Toaster";
import { Auth } from "@/libs/Auth";
import DB from "@/libs/DB";
const colors = [
"red",
"pink",
"purple",
"deep-purple",
"indigo",
/*"blue", */ "light-blue",
"cyan",
"teal",
"green",
"light-green",
"lime",
"yellow",
"amber",
"orange",
"deep-orange... |
import { CLOSE_MODAL, ModalActionTypes, ModalState, OPEN_MODAL, SET_MODAL_CHILDREN, SET_MODAL_OPTIONS } from './types';
const initialState: ModalState = {
modalChildren: null,
modalProps: { isVisible: false } as ModalState['modalProps'],
};
export default (state = initialState, action: ModalActionTypes): Moda... |
import * as React from 'react';
import { Meta } from '@storybook/react';
import { Button } from '@real-system/button';
import {
TooltipAnchorPrimitive,
TooltipPrimitive,
useTooltipStatePrimitive,
} from '@real-system/tooltip-primitive';
export default {
title: 'Primitives/Tooltip Primitive',
component: Tool... |
/*
* 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 { RecursiveReadonly } from '@kbn/utility-types';
import { LicenseType ... |
import { platformBrowser } from '@angular/platform-browser';
import { enableProdMode } from '@angular/core';
import { AppModuleNgFactory } from '../../../temp/app/grid/refreshdata/app.module.ngfactory';
enableProdMode();
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory); |
import Vue from 'vue';
import { ComponentBase, EJComponentDecorator } from '@syncfusion/ej2-vue-base';
import { DataMatrixGenerator } from '@syncfusion/ej2-barcode-generator';
export const properties: string[] = ['backgroundColor', 'displayText', 'enablePersistence', 'enableRtl', 'encoding', 'foreColor', 'height', 'l... |
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
// Node module: @loopback/rest
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {bind, Context, inject, Provider} from '@loopback/core';
import {asMiddleware, Middleware} from '@loopback/expres... |
import "./index.scss";
import {Provider} from "react-redux";
import React from "react";
import ReactDOM from "react-dom";
import Routes from "./pages/router/Routes";
import store from "./store";
ReactDOM.render(
<Provider store={store}>
<Routes/>
</Provider>
, document.getElementById("root")); |
import fs from 'fs';
import { promisify } from 'util';
import moment from 'moment';
import { SexAndSenturyMap, IidentityResponse } from './types';
export const readFileAsync = promisify(fs.readFile);
const SEX_AND_SENTURY_MAP: SexAndSenturyMap = {
3: {
key: 3,
sex: 'male',
century: 'XX',
},
4: {
... |
/** Comment on module */
export module M {
/** var */
var v1: number;
/** let */
let l1: number;
/** const */
const c1: number;
}
/** Comment on namespace */
export namespace N {
/** var */
var v1: number;
/** let */
let l1: number;
/** const */
const c1: number;
} |
export interface Mob {
nom: string,
image: string
} |
import firebase from "@/plugins/firebase";
import { db } from "@/plugins/firebase/firestore";
import { Expense, Expenses } from "@/state/expenses";
export type FirestoreExpense = {
amount: number;
category: {
id: string;
name: string;
};
date: firebase.firestore.Timestamp;
dateStr: string;
name: st... |
// import Grid from '../class/Grid'
// describe('Grid unit test', () => {
// describe('Grid#randomNumberCardPositionGenerator function test', () => {
// it('Brute Force', () => {
// const grid = new Grid(3, 4)
// expect(
// grid.randomNumberCardPositionGenerator(1)[... |
import next from 'next'
export type NextModuleOptions = {
dev?: boolean
dir?: string
}
export type NextApp = ReturnType<typeof next> |
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,
HandlerExecutionContext,
HttpHandlerOptions... |
import { NextFunction, Request, Response } from 'express';
import validator from 'validator';
import BitcoinActionEnum from '../app/common/enums/BitcoinAction.enum';
import UsdActionEnum from '../app/common/enums/UsdAction.enum';
import HttpException from '../app/common/HttpException';
import { IEditUser } from '../app... |
import { NotFoundException } from "./NotFoundException";
import { LimitExceededException } from "./LimitExceededException";
import { InternalFailureException } from "./InternalFailureException";
import { BadRequestException } from "./BadRequestException";
export type GetIntentsExceptionsUnion =
| NotFoundException
... |
import Mmenu from '../../core/oncanvas/mmenu.oncanvas';
import options from './_options';
import { extendShorthandOptions } from './_options';
import * as DOM from '../../_modules/dom';
import { extend } from '../../_modules/helpers';
// Add the options.
Mmenu.options.lazySubmenus = options;
export default function (... |
import styled from 'styled-components';
import { shade } from 'polished';
export const Container = styled.div``;
export const Content = styled.main`
max-width: 1120px;
margin: 64px auto;
display: flex;
`;
export const Schedule = styled.div`
flex: 1;
margin-right: 120px;
h1 {
font-size: 36px;
}
... |
import React, { ReactNode, useState } from "react";
export type UserContextType = {
user: any;
setUser: React.Dispatch<React.SetStateAction<any>>;
};
export const UserContext = React.createContext({ user: {} } as UserContextType);
export const UserProvider = (props: { children?: ReactNode }) => {
const [user, ... |
import { AfterViewInit, Directive, ElementRef, HostListener, HostBinding, Input, OnDestroy } from '@angular/core';
import { NavigationEnd, Router } from '@angular/router';
import { Platform } from '@angular/cdk/platform';
import { Subject } from 'rxjs';
import { filter, takeUntil } from 'rxjs/operators';
import Perfect... |
import React, { useEffect, useState } from 'react'
import { useParams } from 'react-router-dom'
import { RedocStandalone } from 'redoc'
import HeaderBar from './components/HeaderBar'
const networks = ['mainnet', 'hangzhounet'] as const
const endpoints = ['general', 'block', 'mempool'] as const
type Networks = typeof n... |
const requestAnimationFrame =
typeof window === 'object' && window.requestAnimationFrame
? window.requestAnimationFrame
: function (fn) {
return setTimeout(fn, 16);
};
const cancelAnimationFrame =
typeof window === 'object' && window.cancelAnimationFrame
? window.cancelAnimationFrame
... |
import { Node, KeyboardInfo, KeyboardEventTypes } from 'babylonjs';
import { LiteGraph } from 'litegraph.js';
import { registerNode } from '../graph-node';
import { IGraphNode } from '../types';
/**
* Registers all the available keyboard nodes.
* @param object the object reference being customized using the graph e... |
import { ElementRef, EventEmitter, QueryList, Renderer, NgZone } from '@angular/core';
import { Item } from './item';
import { List } from '../list/list';
import { Platform } from '../../platform/platform';
import { DomController } from '../../platform/dom-controller';
export declare const enum ItemSideFlags {
None... |
import { KillChainPhase } from './kill-chain-phase';
import { KillChain, StixExpanded } from './stix-core';
import { StixCoreEnum } from './stix-core.enum';
/**
* @description attack pattern
* @see https://oasis-open.github.io/cti-documentation/stix/intro
*/
export class AttackPattern extends StixExpanded implement... |
import { RawRigidBodySet } from "../raw"
import { VectorOps, RotationOps } from '../math';
import { RigidBody, RigidBodyDesc, RigidBodyHandle } from './rigid_body'
import { ColliderSet } from "../geometry";
import { ImpulseJointSet } from "./impulse_joint_set";
import { MultibodyJointSet } from "./multibody_joint_set";... |
import 'bootstrap/dist/css/bootstrap.min.css';
import $ from 'jquery';
import Popper from 'popper.js';
import 'bootstrap/dist/js/bootstrap.bundle.min';
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.r... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="kk_KZ" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About monkey</source>
<translation type="unfinished"/>
</message>
<message>
<location line... |
import * as assert from 'assert';
import {EventEmitter} from 'events';
import {isString, isNullOrUndefined} from 'util';
import {ErrorCode} from '../error_code';
import {LoggerInstance, } from '../lib/logger_util';
import { StorageManager, StorageLogger, StorageDumpSnapshot, JStorageLogger } from '../storage';
import ... |
/* eslint-disable no-underscore-dangle */
import qs from 'qs';
import axios, { AxiosInstance, AxiosResponse } from 'axios';
import { ClientParams } from './types';
const TOKEN_PATH = '/api/oauth/v1/token';
const defaultConfig = {
insecure: false,
retryOnError: true,
headers: {} as Record<string, unknown>,
htt... |
export interface ScrapQrcode {
base64Image: string;
urlCode: string;
} |
import { VectorChainReader } from "@connext/vector-contracts";
import {
ChannelSigner,
createTestChannelUpdate,
expect,
getRandomChannelSigner,
createTestChannelState,
mkSig,
createTestFullHashlockTransferState,
createTestUpdateParams,
mkAddress,
createTestChannelStateWithSigners,
getTransferId,
... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faUps: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatures: st... |
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
import { UpdateTemplateActiveVersionRequest, UpdateTemplateActiveVersionResponse } from "../models/models_1";
import { Command as $Command } from "@aws-sdk/smithy-client";
import { Handler, MiddlewareStack, HttpHand... |
import { timestamp, files, shell } from '@sapper/service-worker';
declare var self: ServiceWorkerGlobalScope;
const ASSETS = `cache${timestamp}`;
// `shell` is an array of all the files generated by the bundler,
// `files` is an array of everything in the `static` directory
const to_cache = (shell as string[]).concat... |
import { Global, Module } from '@nestjs/common';
import { APP_FILTER, APP_PIPE } from '@nestjs/core';
import { GraphQLModule } from '@nestjs/graphql';
import { AwsS3Factory } from './aws-s3.factory';
import { ConfigModule } from './config/config.module';
import { CoreController } from './core.controller';
import { Data... |
export { getRootReducer } from './common/rootReducer';
export { default as edgeReducer } from './edge/edgeReducer';
export { default as potentialEdgeReducer } from './edge/potentialEdgeReducer';
export { default as editorReducer } from './editor/editorReducer';
export {
createDeleteItemsAction,
createNewItemsActio... |
import 'vite/dynamic-import-polyfill'
import { App, createApp as createClientApp, createSSRApp, h } from 'vue'
import { inBrowser, pathToFile } from './utils'
import { Router, RouterSymbol, createRouter } from './router'
import { mixinGlobalComputed, mixinGlobalComponents } from './mixin'
import { siteDataRef } from '.... |
import { EventEmitter } from '@angular/core';
import { CustomError } from '../models/custom-error';
import { directiveResolver } from './reflect';
const className = (object: any) => (
object
&& object.constructor
&& object.constructor.name
)
|| '<UnknownClass>';
export type KeysOfType<TObject, TProper... |
<TS language="fa_IR" 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>
... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import Lockr from "lockr";
const LOCAL_STORAGE_PREFIX = "__vtra_";
Lockr.prefix = LOCAL_STORAGE_PREFIX;
const setItem = (key: string, value: any): void => {
Lockr.set(key, value);
};
const getItem = (key: string): any => {
return Lockr.get(key);
};
const removeItem = (key: string): void => {
Lockr.rm(key);
};... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ur_PK" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bitrewards</source>
<translation type="unfinished"/>
</message>
<message>
<location ... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { DatatableComponent } from './datatable.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { KeysPipe } from '../../pipes/index';
/**
* Do not specify p... |
/** @jsx jsx */
/** Do not edit this file directly. Edit the template in scripts/icon-template.ejs **/
import { jsx } from "@emotion/core";
import * as React from "react";
import PropTypes from "prop-types";
import { IconProps } from "../IconTypes";
import { useTheme } from "../../Theme/Providers";
export const IconMo... |
import React from 'react'
const Glass6: React.FC = () => {
return (
<g
id="Glasses/-6"
stroke="none"
strokeWidth="1"
fill="none"
fillRule="evenodd"
strokeLinecap="round"
strokeLinejoin="round"
>
<g
id="Group"
transform="translate(289.000000, 489... |
// https://www.dspguide.com/ch13/4.htm
export default class Waveform {
static fixAmplitude(_partials: number[][]) {
const sum = _partials.reduce((_sum, [f, a]) => _sum + a, 0)
return _partials.map(([f, a, p], i) => [f, a / sum, p])
}
static saw(n: number) {
const _partials = Array.from({ length: n }... |
import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
const excel: AppRouteModule = {
path: '/excel',
name: 'Excel',
component: LAYOUT,
redirect: '/excel/customExport',
meta: {
icon: 'mdi:microsoft-excel',
title: 'routes.demo.excel.excel',
},
childr... |
import * as Promise from 'promise-polyfill';
import { Utils } from '../UXClient/Utils';
class ServerClient {
private apiVersionUrlParam = "?api-version=2016-12-12";
private oldTsmTsqApiVersion = "?api-version=2018-11-01-preview";
private tsmTsqApiVersion = "?api-version=2020-07-31";
public maxRetryCoun... |
import { useState, ChangeEvent } from "react";
import { useAppSelector, useAppDispatch } from "../hooks";
import { queryByTeamNameStateAbbr } from "../features/ejections/ejectionsSlice";
import { Ejection, EjectionQuery } from "../queries/queryTypes";
import {
RetroButton,
RetroText,
RetroTeamSelect,
validText... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const PhoneAltDimensions: {
height: undefined;
width: undefined;
}; |
export * from './Adapter'; |
import { FastifyPluginAsync } from 'fastify';
import { quoteData } from '../data/quote-data';
import { randomQuote } from '../utils/util';
const quotes: FastifyPluginAsync = async (fastify, opts): Promise<void> => {
fastify.get('/quotes', async function (request, reply) {
return quoteData;
});
fas... |
import {OutputRecordSchema} from "./OutputRecordSchema";
import {CommandOutputRecordField} from "./CommandOutputRecordField";
export interface CommandOutputRecordSchema extends OutputRecordSchema {
/**
* Defines the fields of the record.
*/
fields?: Array<CommandOutputRecordField>;
} |
import { GraphNode, NodeDefinition } from '../../../types/graph';
import {
FirstNode,
FirstNodeDefinition,
FirstNodeType,
isFirstNodeDefinition,
} from '../keys/first';
import { isLastNodeDefinition, LastNode, LastNodeDefinition, LastNodeType } from '../keys/last';
import {
isLengthNodeDefinition,
LengthNod... |
import './main';
import './register';
import './run'; |
/**
* Operations Insights API
* Use the Operations Insights API to perform data extraction operations to obtain database
resource utilization, performance statistics, and reference information. For more information,
see [About Oracle Cloud Infrastructure Operations Insights](https://docs.cloud.oracle.com/en-us/iaas/o... |
import browser from "webextension-polyfill";
type WarningType = "alteredClipboard" | "hiddenElements";
export const logWarning = (host: string, type: WarningType, selection: string, clipboard?: string) => {
browser.storage.sync.get("warnings").then((result) => {
const warnings = result?.warnings ?? {};
warn... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const CgDisc: IconType; |
import React, {
FunctionComponent,
useCallback,
useEffect,
useState,
} from "react";
import { Arc, IArcProps } from "./Arc";
import { useCanvas } from "./CanvasContext";
import { Coords } from "./models";
import { useNodeRect } from "./NodeRefProvider";
function leftCoords(rect: DOMRect) {
const { left, y } ... |
import { Container } from "typescript-ioc";
import { IActionResultApplicationService } from "../../../src/Application/Core/IActionResultApplicationService";
import { IGitAuthenticationApplicationService } from "../../../src/Application/Core/IGitAuthenticationApplicationService";
import { IGitBranchApplicationService } ... |
export * from "./namespaces";
export * from "./interfaces";
export * from "./helpers"; |
import { Component } from '@angular/core';
import {SpotifyService} from "./services/spotify.service";
@Component({
moduleId: module.id,
selector: 'my-app',
templateUrl: 'app.component.html',
providers:[SpotifyService]
})
export class AppComponent { } |
(function( $ ) {
const _PLUGIN_ = 'mmenu';
const _ADDON_ = 'fixedElements';
$[ _PLUGIN_ ].addons[ _ADDON_ ] = {
// setup: fired once per menu
setup: function()
{
if ( !this.opts.offCanvas )
{
return;
}
var that = this,
opts = this.opts[ _ADDON_ ],
conf = this.conf[ _ADDON_ ];
... |
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { FormsModule } from "@angular/forms";
import { HttpClientModule } from "@angular/common/http";
import { RouterModule } from "@angul... |
import { observable, computed, action } from 'mobx';
export class AppStore {
@observable time = new Date().toLocaleTimeString('en-US');
constructor() {
setInterval(() => {
this.time = new Date().toLocaleTimeString('en-US');
}, 1000);
}
}
export default AppStore; |
import React from 'react';
import { View } from 'react-native';
import { scale } from '../../utils/dimensions';
import color from '../../constants/color';
interface ISpaceProps {
height?: number;
width?: number;
}
export const Space = (props: ISpaceProps) => (
<View
style={{
height: sc... |
import { Component, ViewChild } from '@angular/core';
import { AlertService, MessageSeverity } from '../../services/alert.service';
import { AccountService } from "../../services/account.service";
import { Role } from '../../models/role.model';
import { Permission } from '../../models/permission.model';
@Component(... |
import {
AssociateApprovalRuleTemplateWithRepositoryCommandInput,
AssociateApprovalRuleTemplateWithRepositoryCommandOutput,
} from "./commands/AssociateApprovalRuleTemplateWithRepositoryCommand.ts";
import {
BatchAssociateApprovalRuleTemplateWithRepositoriesCommandInput,
BatchAssociateApprovalRuleTemplateWithRe... |
import React, { ReactNode, useContext } from "react"
import { styled } from "@mui/material/styles"
import { Box, Grid, TextField, Tooltip } from "@mui/material"
import { ReactFieldJSON } from "../ReactField"
import ReactInlineField from "../ReactInlineField"
import { PointerBoundary } from "../PointerBoundary"
import... |
import * as crypto from "crypto";
import { Wallet } from "ethers";
const { publicKeyConvert, publicKeyCreate } = require("secp256k1");
const createKeccakHash = require("keccak");
export class Key {
value: Buffer;
constructor(value?: string | Buffer) {
if (value) {
if (value instanceof Buffer) {
... |
import isEmpty from 'lodash/isEmpty';
import React, {Component, useCallback} from 'react';
import {Platform, StyleSheet, Alert, View, Text, TouchableOpacity, Button} from 'react-native';
import {ExpandableCalendar, AgendaList, CalendarProvider, WeekCalendar} from 'react-native-calendars';
import testIDs from '../testID... |
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { BrowserModule } from '@angular/platform-browser';
import { FormComponent } from './form/form.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { Ht... |
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/en/configuration.html
*/
export default {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
//... |
import createEditorFactory from '@atlaskit/editor-test-helpers/create-editor';
import { doc, p } from '@atlaskit/editor-test-helpers/schema-builder';
import { isValidPosition } from '../../selection';
import { pluginKey } from '../../../plugins/table/pm-plugins/plugin-factory';
describe('#isValidPosition', () => {
c... |
/**
* Copyright 2018 The AMP HTML Authors. 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 require... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.