text stringlengths 10 953k |
|---|
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable no-prototype-builtins */
import { IDomainEvent } from './IDomainEvent';
import { AggregateRoot } from '../AggregateRoot';
import { UniqueEntityID } from '../UniqueEntityID';
export class DomainEvents {
private static handlersMap: Record<stri... |
import { cloneDeep, compact, isPlainObject } from "lodash-es";
import { v4 } from "uuid";
export function isQuery(dataId: string) {
return dataId === "ROOT_QUERY" || dataId === "ROOT_MUTATION";
}
/**
* Returns a store entity ID matching the path at which the entity is found in the entity store.
* For a store enti... |
/* Copyright Contributors to the Open Cluster Management project */
import { render, waitFor } from '@testing-library/react'
import { MemoryRouter, Route } from 'react-router-dom'
import { RecoilRoot } from 'recoil'
import { nockCreate } from '../../../lib/nock-util'
import { NavigationPath } from '../../../Navigation... |
import Cookies from 'js-cookie'
import type { Cart } from '../types'
import type {
Prop,
HookFetcherFn,
UseHookInput,
UseHookResponse,
} from '../utils/types'
import useData from '../utils/use-data'
import { Provider, useCommerce } from '..'
export type FetchCartInput = {
cartId?: Cart['id']
}
export type U... |
import { FixTypeLater } from '../types/FixTypeLater'
import store from '../store/store'
export const mapUserToPropsFromState = (
state: FixTypeLater
): { user: FixTypeLater } => {
if (state && state.oidc && state.oidc.user) {
return { user: state.oidc.user }
} else {
return { user: undefined }
}
}
exp... |
import React from 'dom-chef';
import select from 'select-dom';
import delegate from 'delegate-it';
import elementReady from 'element-ready';
import * as pageDetect from 'github-url-detection';
import features from '.';
import onReplacedElement from '../helpers/on-replaced-element';
async function addSidebarReviewButt... |
import CameraRoll from "@react-native-community/cameraroll"
import React from "react"
import { Alert, Linking, NativeModules } from "react-native"
import * as renderer from "react-test-renderer"
jest.mock("@react-native-community/cameraroll", () => ({ getPhotos: jest.fn() }))
import SelectFromPhotoLibrary from "../Se... |
import React, { useEffect, useState, useRef } from 'react'
import {
Modal,
StyleSheet,
View,
ViewStyle,
Text,
FlatList,
ActivityIndicator,
TouchableOpacity,
Image,
Dimensions,
Platform,
StyleProp,
} from 'react-native'
import CameraRoll from '@react-native-community/cameraroll'
import ImageZoom ... |
import ts from "typescript";
import { Rule } from "./Rule";
import { RuleResult } from "./RuleResult";
export class RuleNameRegex implements Rule {
readonly functionName: RegExp | undefined;
readonly variableName: RegExp | undefined;
constructor(options: { functionName?: RegExp; variableName?: RegExp }) {... |
import React from "react";
import { makeStyles, Theme } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
import Link from "@material-ui/core/Link";
import Container from "@material-ui/core/Container";
import Typography from "../components/Typography";
import TextField from "../components/Text... |
/* eslint-disable require-unicode-regexp */
import fs from "fs";
import path from "path";
// POSTS_PATH is useful when you want to get the path to a specific file
export const POSTS_PATH = path.join(process.cwd(), "content/blog");
// postFilePaths is the list of all mdx files inside the POSTS_PATH directory
export co... |
import {
ForgotPasswordRequest,
ForgotPasswordResponse,
} from "aws-sdk/clients/cognitoidentityserviceprovider";
import { UnsupportedError, UserNotFoundError } from "../errors";
import { Services } from "../services";
import { DeliveryDetails } from "../services/messageDelivery/messageDelivery";
import { attributeV... |
import {RequestHandler} from 'express';
import Pricing from '../../models/Pricing';
export const getAllPricingItems: RequestHandler = async (req, res) => {
try {
// Get all pricing items from MongoDB
let items = await Pricing.find({});
return res.json({items});
} catch (err) {
r... |
/**
* @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 * as ts from 'typescript';
import { collectDeepNodes } from '../helpers/ast-utils';
export function testScru... |
import React, { useEffect, useState } from "react";
import {
Image,
View,
ScrollView,
Text,
StyleSheet,
Dimensions,
Linking,
} from "react-native";
import MapView, { Marker } from "react-native-maps";
import { Feather, FontAwesome } from "@expo/vector-icons";
import mapMarkerImg from "../images/map-marker... |
// *** 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";
/*... |
/* eslint-disable */
/**
*
* Notes
* JSTOTS - javascript to typescript Conversation
* Just moved all module from store folder to to modules/* folder
* No changes in functionality or any variables
* this is just moving
* in Future have to extract all functions and export Individually with typs defined
* and impo... |
/**
* @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 {Directive, forwardRef, Input, OnChanges, SimpleChanges, StaticProvider} from '@angular/core';
import {Observa... |
import { AlgorithmResult } from '../lib/streams/alg';
import { Candles } from '../lib/streams/candles';
import { Crossover } from '../lib/util/decisions';
import { safeStop } from '../lib/util/helpers';
export default function(candles: Candles):AlgorithmResult {
const macd = candles.volumeWeightedMacd();
const sig... |
import {ITheme} from "./theme";
/**
* Red theme
* Based on Material Design | Red
* @type {ITheme}
*/
export const red: ITheme = {
backgroundColor: "#F44336",
color: "white",
markerColor: "#B71C1C",
markerWidth: "2px",
pagerBackgroundColor: "none",
pagerColor: "#FF8A80",
pagerColorActive: "#FF1744",
pagerGap... |
import 'whatwg-fetch';
// This is an implementation of a mocked window.fetch implementation similar in
// structure to the MockedNetworkInterface.
export interface MockedIResponse {
ok: boolean;
status: number;
statusText?: string;
json(): Promise<Object>;
}
export interface MockedFetchResponse {
url: stri... |
import { ComponentDesignProp, RendererParam } from '@fluentui/react-bindings'
import * as customPropTypes from '@fluentui/react-proptypes'
// @ts-ignore
import { ThemeContext } from 'react-fela'
import * as React from 'react'
import * as PropTypes from 'prop-types'
import { ProviderContextPrepared, ReactChildren } fro... |
import mongoose from "mongoose";
import { AuditInterface } from "../../types/audit";
const auditSchema = new mongoose.Schema({
id: String,
organization: String,
user: {
_id: false,
id: String,
email: String,
name: String,
},
event: String,
entity: {
_id: false,
object: String,
i... |
import { S3 } from 'aws-sdk';
import * as http from 'http-status-codes';
import { ChildProgramStatus, ChildProgramType, IChildProgram, IEnvironmentFull, IMetricsList,
Logging, MetricsStorage, MetricType } from '@lbt-mycrt/common';
import { launch, ReplayConfig } from '@lbt-mycrt/replay';
import { StorageBackend }... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
export {
AccessPolicy,
AccessTier,
AccountKind,
AppendBlobCreateResponse,
AppendBlobAppendBlockResponse,
AppendBlobAppendBlockFromUrlHeaders,
AppendBlobAppendBlockFromUrlResponse,
AppendBlobAppendBlockHeader... |
/**
* @license
* Copyright 2020 Energinet DataHub A/S
*
* Licensed under the Apache License, Version 2.0 (the "License2");
* 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 appl... |
export class pageHelper {
pageUrl: URL;
constructor(){
this.pageUrl = new URL(document.URL);
}
isPortfolioPage() : boolean{
return this.pageUrl.pathname.indexOf("bestportfolio/wealth-management-tool/investments") > 0;
}
} |
declare module '@salesforce/design-system-react/components/radio-group' {
import React from 'react';
type Props = {
/**
* **Assistive text for accessibility**
* * `label`: This label appears in the legend.
* * `required`: Text to help identify the group as required
*/
assistiveText?: Partial<{
labe... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { IStatusCodeError, StatusCodes } from 'botframework-schema';
export type StatusCode = number;
export class AuthenticationError extends Error implements IStatusCodeError {
constructor(
message: s... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CreateAmendmentPopupComponent } from './create-amendment-popup.component';
describe('CreateAmendmentPopupComponent', () => {
let component: CreateAmendmentPopupComponent;
let fixture: ComponentFixture<CreateAmendmentPopupComponent>... |
import Axios from 'axios';
import auction from './auction';
import recommendation from './recommendation';
import { Client, Context, CreateClientOptions } from './types';
/**
* Creates a new instance of API client.
* Example
* ```typescript
* const client = v1.createClient({
* apiKey: process.env.RMP_DECISION_... |
import {DataSource, ImageryLayer} from 'cesium';
export class OlCesiumObjectMapItem {
olObject: any;
csObject: ImageryLayer | DataSource;
} |
import {
Injectable,
InternalServerErrorException,
NotFoundException,
} from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { CreateUserInput } from './dto/create-user.input';
import { UpdateUserInput } from './dto/update-user.input';
import { Us... |
import { $root } from '../services';
export const $loading = {
increase(text = '') {
const { loading } = $root;
loading.status++;
loading.text = text;
},
decrease() {
setTimeout(() => $root.loading.status--);
},
}; |
import { TestBed } from '@angular/core/testing';
import { SystemAdminService } from './system-admin.service';
describe('SystemAdminService', () => {
let service: SystemAdminService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(SystemAdminService);
});
it('should be... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AdminComponent } from './admin/admin.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { PagesComponent } from './pages.component';
import { PerformanceDataComponent } from '... |
declare var fimApi: any;
declare var $: any;
declare var $l: any;
declare var jQuery: any;
declare var fim_messagePreview: any;
declare var directory: any;
declare var dia: any;
declare var fim_buildUsernameTag : any;
declare var fim_buildUsernameTagPromise : any;
declare var fim_getUsernameDeferred : any;
declare var ... |
/* eslint-disable lines-between-class-members */
import { ObjectEnum, VolumeType } from '../../../constants';
import { DataVolumeSourceType, DiskType } from '../../../constants/vm/storage';
import { getStringEnumValues } from '../../../utils/types';
import { BinaryUnit } from '../../form/size-unit-utils';
export clas... |
/**
* This class deals with shenanigans around JVB media session's ICE failed status handling.
*
* If ICE restarts are NOT explicitly enabled by the {@code enableIceRestart} config option, then the conference will
* delay emitting the {@JitsiConferenceErrors.ICE_FAILED} event by 15 seconds. If the network info modu... |
import { describe, expect, it } from 'vitest'
import { z } from 'zod'
import { withGetType, zodToTs } from '../src'
import { printNodeTest } from './utils'
const dateType = withGetType(z.instanceof(Date), (ts) => ts.factory.createIdentifier('Date'))
const schema = z.object({
name: z.string(),
date: dateType,
})
... |
// Type definitions for three.js (RenderPass.js)
// Project: https://github.com/mrdoob/three.js/blob/r68/examples/js/postprocessing/RenderPass.js
// Definitions by: Satoru Kimura <https://github.com/gyohk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="./three.d.ts" />
declare... |
import { TModuleConstructorMap, TModuleCreator, GetModuleInstanceFor, TModuleLocatorType, TProviderFor } from './interfaces';
import { Provider, ProviderOptions } from './provider';
interface ScopeSettings {
parentScope: Scope | null;
autoregister: boolean;
providerOptions?: Partial<ProviderOptions>;
}
/**
... |
import styled from 'styled-components';
import { COLORS } from '../styles/constants';
const Footer = () => {
return (
<Wrapper>
<FooterText>@2021 tulo.js</FooterText>
</Wrapper>
);
};
const Wrapper = styled.footer`
padding: 0 24px;
display: flex;
justify-content: center;
align-items: center;... |
import {useCallback, useEffect, useMemo, useRef} from 'react';
import {useInterval} from '@dnd-kit/utilities';
import {getScrollDirectionAndSpeed, defaultCoordinates} from '../../utilities';
import type {Coordinates, Direction, ClientRect} from '../../types';
export type ScrollAncestorSortingFn = (ancestors: Element[... |
import { forwardRef } from 'react'
import cx from 'clsx'
import { createStyle, getThemeCSSObject } from '../../styles'
import type { ChromatinIcon } from '../types'
const useStyles = createStyle((theme) => ({
root: (props: ChromatinIcon) => ({
height: props.height ?? '100%',
width: props.width ?? ... |
export * from "./store_window.ts";
export * from "./store_find.ts"; |
declare module 'is-css-length' {
/**
* @example
* isLength('10px')
* //=> true
* isLength('10')
* //=> false
* isLength('0em')
* //=> true
* isLength('0')
* //=> true
* @param str
*/
function isLength (str: string): boolean
export = isLength
} |
import { HomeAssistant } from "../types";
export interface LovelaceConfig {
_frontendAuto: boolean;
title?: string;
views: LovelaceViewConfig[];
}
export interface LovelaceViewConfig {
title?: string;
badges?: string[];
cards?: LovelaceCardConfig[];
id?: string;
icon?: string;
}
export interface Love... |
import NavBar from '@admin/components/NavBar';
import Page from '@admin/components/Page';
import PageTitle from '@admin/components/PageTitle';
import PreviousNextLinks from '@admin/components/PreviousNextLinks';
import { ReleaseContextProvider } from '@admin/pages/release/contexts/ReleaseContext';
import { getReleaseAp... |
import resolveChunks, { Resolvable } from './Resolvable'
import { Chunk, createNotFoundChunk } from './Chunks'
import {
Matcher,
MatcherIterator,
MatcherGenerator,
concatMatcherIterators,
createMatcherIterator
} from './Matcher'
import { NaviRequest } from './NaviRequest'
export function createChunksMatcher<... |
/**
* Copyright 2018, 2019 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
import { Contract } from './contract';
import { Gateway } from './gateway';
import { Channel, DiscoveryService, Endorser } from 'fabric-common';
import { BlockListener, CommitListener, EventType, ListenerOptions } from '... |
import { ServiceCatalogClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceCatalogClient";
import { ImportAsProvisionedProductInput, ImportAsProvisionedProductOutput } from "../models/models_0";
import {
deserializeAws_json1_1ImportAsProvisionedProductCommand,
serializeAws_json1_1ImportAsP... |
import React from "react";
import { BotState } from "../interfaces";
import { Diagnosis, ConnectionStatusFlags, getDiagnosisCode } from "./diagnosis";
import { ConnectivityRow, StatusRowProps } from "./connectivity_row";
import { Row, Col } from "../../ui";
import { ConnectivityDiagram } from "./diagram";
import {
Ch... |
import { Module } from '@nestjs/common';
@Module({})
export class TopPageModule {} |
import {REMOVE_MANIFEST, fetchManifestWorker, removeManifest} from '../../actions';
import configureMockStore from 'redux-mock-store';
import fetchMock from 'fetch-mock'
import thunk from 'redux-thunk';
const middlewares = [thunk];
const mockStore = configureMockStore(middlewares);
describe('manifest actions', () => ... |
import { Validator, BadRequestResponse, SuccessResponse, AuthErrorResponse, ErrorResponse } from "sakura-node-3";
import { BaseController, Request, Response, NextFunction } from "../base/basecontroller";
import { LandService } from "../service/landservice";
import { Land } from "../model/land";
import { HAS_PAGINATION_... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import {
AssessmentTelemetryData,
BaseTelemetryData,
DetailsViewOpenedTelemetryData,
DetailsViewOpenTelemetryData,
DetailsViewPivotSelectedTelemetryData,
ExportResultsTelemetryData,
FeatureFlagTog... |
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { ITheme } from "../themes/ITheme";
import { EventDispatcher, AMEvent } from "./utils/EventDispatcher";
import { Dictionary... |
import { Entity } from '@loopback/repository';
export declare class Todo extends Entity {
id?: number;
title: string;
description?: string;
isDone: boolean;
reminder?: string;
priority?: string;
constructor(data?: Partial<Todo>);
}
export interface TodoRelations {
}
export declare type TodoW... |
/**
* Copyright 2017 Google Inc. All rights reserved.
* Modifications copyright (c) Microsoft Corporation.
*
* 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.or... |
import {
catalystRealmInitialized,
initCatalystRealm,
setCatalystCandidates,
setAddedCatalystCandidates,
setContentWhitelist,
INIT_CATALYST_REALM,
SET_CATALYST_REALM,
InitCatalystRealm,
SetCatalystRealm,
SET_CATALYST_CANDIDATES,
SET_ADDED_CATALYST_CANDIDATES,
SetCatalystCandidates,
SetAddedCat... |
/* eslint-disable no-shadow */
/* eslint-disable no-use-before-define */
import { Response } from 'express-serve-static-core' // eslint-disable-line no-unused-vars, import/no-unresolved
import Normalizer from '../utils/normalizer'
import LockData from '../utils/lockData'
import { expiredSignature } from '../utils/signa... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {BeerTypeDialogComponent} from './beer-type-dialog.component';
describe('BeerTypeDialogComponent', () => {
let component: BeerTypeDialogComponent;
let fixture: ComponentFixture<BeerTypeDialogComponent>;
beforeEach(async(() => {
... |
/**
* DevExtreme (ui/speed_dial_action.d.ts)
* Version: 19.2.5
* Build date: Mon Dec 16 2019
*
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import DevExpress from '../bundles/dx.all';
declare global {
interface JQ... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import {
Card,
CardHeader,
CardMedia,
CardContent,
CardActions,
Collapse,
Avatar,
IconButton,
Typography,
} from '@material-ui/core';
import { red } from '@material-ui/core/colors';
import Favori... |
import React from "react";
import { Link } from "react-router-dom";
import Grid from "@mui/material/Grid";
import Toolbar from "@mui/material/Toolbar";
import ListItemIcon from "@mui/material/ListItemIcon";
import ListItemText from "@mui/material/ListItemText";
import Button from "@mui/material/Button";
import HowToRe... |
import { Injectable, isDevMode } from '@angular/core';
import { Pagination } from './pagination.model';
const DISPLAY_NUM_PAGES = 3;
/**
* Service that is used to retrieve all the pages,
* the number of pages,
* and to validate the pagination object.
*/
@Injectable()
export class PaginationService {
/** Const... |
// Copyright 2019 The Oppia 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 required by ap... |
import React from 'react';
import { mount } from 'enzyme';
import mockConsole, { RestoreConsole } from 'jest-mock-console';
import { triggerResizeObserver } from 'resize-observer-polyfill';
import ErrorBoundary from 'react-error-boundary';
import { promiseTimeout } from '@superset-ui/core';
import { SuperChart } from ... |
/*
* /*
* * Copyright 2012-2018 the original author or 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... |
import { ErrorHandler } from "./error_handler";
import { Schema } from "./schema";
import { Scope } from "./scope";
import { Token, ValueListObserverDelegate } from "../mutation-observers";
export interface ScopeObserverDelegate extends ErrorHandler {
createScopeForElementAndIdentifier(element: Element, identifier:... |
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... |
import {
Button,
Card,
Classes,
Dialog,
NonIdealState,
Spinner,
SpinnerSize
} from '@blueprintjs/core';
import { IconNames } from '@blueprintjs/icons';
import { GetResponseTypeFromEndpointMethod } from '@octokit/types';
import classNames from 'classnames';
import { Variant } from 'js-slang/dist/types';
im... |
import { Injectable, NotFoundException } from '@nestjs/common';
import { TaskRepository } from './task.repository';
import { InjectRepository } from '@nestjs/typeorm';
import { Task } from './task.entity';
import { CreateTaskDto } from './dto/create-task.dto';
import { TaskStatus } from './task-status.enum';
import { G... |
import { Controller, Post, Body, UseGuards } from '@nestjs/common';
import { SignInDto } from './dto/signin.dto';
import { SignInQrDto } from './dto/signin-qr.dto';
import { PasswordForgetDto } from './dto/password-forget.dto';
import { PasswordResetDto } from './dto/password-reset.dto';
import { ApiTags, ApiBasicAuth ... |
export class Student {
public id: string;
public name: string;
public age: number;
constructor() {
this.id = '';
this.name = '';
this.age = 18;
}
} |
/**
*
*
* OpenAPI spec version: 20191031
*
*
* 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 { URL } from "url";
import test from "ava";
import { setup } from "./setup";
import { basename } from "path";
import fetch from "node-fetch";
export class FunctionalTestContext {
url: URL | null = null;
async graphQL(
query: string,
basicAuthString: string | null = null
): Promise<any> {
if (... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Connection } from 'typeorm';
import { ApiModule } from './api/module/api.module';
import { AuthModule } from './api/module/auth.module';
@Module({
imports: [TypeOrmModule.forRoot(),ApiModule, AuthModule ],
providers... |
import { QueryBuilder } from '../../../shared/queryBuilder';
import { EntityManager } from 'typeorm';
import { Author } from '../../entities/author';
import { Filter } from '../../../../shared';
export class AuthorQueryBuilder extends QueryBuilder<Author> {
public constructor(entityManager: EntityManager) {
supe... |
/**
* Copyright 2015 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 {b64tohex, hex2b64} from "../lib/jsbn/base64";
import {JSEncryptRSAKey} from "./JSEncryptRSAKey";
declare var JSENCRYPT_VERSION:string;
export interface IJSEncryptOptions {
default_key_size?:string;
default_public_exponent?:string;
log?:boolean;
}
/**
*
* @param {Object} [options = {}] - An obj... |
import { inject, injectable } from 'inversify';
import { GraphQLSchema } from 'graphql';
import { merge } from 'lodash';
import { UserSchema } from '@modules/user/user_interface/api/graphql/modules/user/user/user.schema';
import { USER_GRAPHQL_IDENTIFIERS } from '@modules/user/user_interface/user_interface.symbols';
... |
import User from "../../interfaces/User";
export interface Item {
query: string[];
title: string;
href?: string;
show: (user: User | null) => boolean;
}
// This list will be updated along new releases
export const Items: Item[] = [
{
query: ["officer", "create officer", "create an officer", "emergency"]... |
import {TreeData} from './tree-data-builder';
import * as d3 from 'd3';
import {ScaleOrdinal} from 'd3';
export enum ColorMode {
BRANCH,
NODE
}
export enum OpacityMode {
FLAT,
GRADIENT
}
export class SunburstRendererColor {
private static FALLBACK_COLOR = 'rgb(230,247,255)';
private _colorMo... |
import * as swap from './../src'
const {
on: { onFinish },
room: { ready },
orders: { request, subscribe },
swap: { onStep, start },
history: { saveInProgress, removeInProgress, saveFinished },
} = swap.helpers
//@ts-ignore
const { wallet, auth, room, orders } = swap.setup()
const doSwap = async order => {
... |
// Type definitions for ag-grid v18.1.2
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { Column } from "../entities/column";
import { GridCell } from "../entities/gridCell";
import { GridPanel } from "../gridPanel/gridPanel";
export interface IRangeController {
... |
version https://git-lfs.github.com/spec/v1
oid sha256:3e30d01683161de424ae906a1ecbc14bf36b22fb5296d51873ef4ca19e7ab47a
size 1133828 |
import * as React from 'react'
import styled from '@emotion/styled'
import { formatReadingTimeToEmoji } from '../utils/helper'
import { Twemoji } from './Twemoji'
export type DatesProps = {
published: string
updated: string | DatesProps['published']
timeToRead: number
isPreview: boolean
}
type StyledDatesProp... |
// src/redux/modules/root/reducer.ts
import * as types from './types';
import update from 'immutability-helper';
import {RootAction} from "./actions";
export function reducer(state: object, action: RootAction) {
switch (action.type) {
case(types.SET_PROJECT_NAME):
return update(state, {
... |
import { StandardProps } from '..';
import { ButtonBaseProps } from '../ButtonBase/ButtonBase';
export interface TabScrollButtonProps
extends StandardProps<ButtonBaseProps, TabScrollButtonClassKey> {
direction?: 'left' | 'right';
visible?: boolean;
}
export type TabScrollButtonClassKey = 'root';
declare const ... |
import {IRegistry} from "../src/_iregistry";
import {ABAPObject} from "../src/objects/_abap_object";
export function getABAPObjects(reg: IRegistry): ABAPObject[] {
return reg.getObjects().filter((obj) => { return obj instanceof ABAPObject; }) as ABAPObject[];
} |
import {DropDownMenu} from 'argo-ui';
import * as React from 'react';
import {Key, KeybindingContext, useNav} from 'react-keyhooks';
import {Cluster} from '../../../shared/components';
import {Consumer} from '../../../shared/context';
import * as models from '../../../shared/models';
import {ApplicationURLs} from '../a... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { GamePageComponent } from './game-page.component';
@NgModule({
declarations: [GamePageComponent],
imports: [
CommonModule
]
})
export class GamePageModule { } |
import {
ChangeDetectionStrategy,
Component,
Inject,
OnInit,
PLATFORM_ID,
} from '@angular/core';
import { Translatable } from '@spartacus/core';
import { BaseMessageComponent } from '../base-message.component';
import { MessageData } from '../message.model';
import { MessageService } from '../services/messag... |
import { NockbackHelper } from '../../lib/NockbackHelper'
import express from 'express'
import * as nock from 'nock'
import { Server } from 'net'
import { readFileSync, writeFileSync, existsSync, unlinkSync } from 'fs'
export function rmSyncRecursive(rmPath: string) {
if (existsSync(rmPath)) {
unlinkSync(rmPath)... |
import './parse.setup'
import { clearParseTestData } from './../cloud/commands'
export const parseTeardown = async () => {
await clearParseTestData()
} |
import * as rtlDetect from 'rtl-detect';
import * as _ from 'lodash';
export class LocalizedResourcesHelper {
static loadResources(callback: () => void): void {
$.when(LocalizedResourcesHelper.loadLocalizedStlyes(), LocalizedResourcesHelper.loadLocalizedScripts()).done(() => {
callback();
... |
/*
* Copyright 2020 Cognite AS
*/
import React, { useEffect, useRef } from 'react';
import * as THREE from 'three';
import * as reveal from '@cognite/reveal/experimental';
import CameraControls from 'camera-controls';
import dat from 'dat.gui';
import {
getParamsFromURL,
createRenderManager,
} from '../utils/exam... |
declare module 'atom-ide' {
import { Disposable, Grammar, Point, Range, TextEditor } from 'atom';
export interface OutlineProvider {
name: string;
// If there are multiple providers for a given grammar, the one with the highest priority will be
// used.
priority: number;
grammarScopes: string[]... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.