text stringlengths 10 953k |
|---|
export enum NotificationActionType {
SHOW = '[notifications] SHOW',
DISMISS = '[notifications] DISMISS',
CLEAR = '[notifications] CLEAR'
} |
import { ethers } from 'ethers';
import { BigNumber, LogDescription } from 'ethers/utils';
import { CelerLedgerFactory } from '../abi/CelerLedgerFactory';
import { TransactionOverrides } from '../abi/index';
import { Config } from '../api/config';
import { ContractsInfo } from '../api/contracts_info';
import { CryptoM... |
import { Utils } from "@arkecosystem/crypto";
import { Column, Entity } from "typeorm";
import { transformBigInt } from "../utils/transform";
@Entity({
name: "rounds",
})
export class Round {
@Column({
primary: true,
type: "varchar",
length: 66,
nullable: false,
})
publ... |
import { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient";
import { ImportSshPublicKeyRequest, ImportSshPublicKeyResponse } from "../models/models_0";
import {
deserializeAws_json1_1ImportSshPublicKeyCommand,
serializeAws_json1_1ImportSshPublicKeyCommand,
} from "../pro... |
import React, { FC, useEffect, useState } from 'react';
import Alert from '@material-ui/lab/Alert';
import { Record } from 'immutable';
import { MIME_TYPES, UNEXPECTED_ERROR_MESSAGE } from '../constants';
import FileImage from './FileImage';
import FileAudio from './FileAudio';
import FileVideo from './FileVideo';
impo... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ContentItemCo... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const ukBell: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatures: s... |
import type { UserConfig, ConfigEnv } from 'vite';
import pkg from './package.json';
import moment from 'moment';
import { loadEnv } from 'vite';
import { resolve } from 'path';
import { generateModifyVars } from './build/generate/generateModifyVars';
import { createProxy } from './build/vite/proxy';
import { wrapperEn... |
// This file is part of the research.fi API service
//
// Copyright 2019 Ministry of Education and Culture, Finland
//
// :author: CSC - IT Center for Science Ltd., Espoo Finland servicedesk@csc.fi
// :license: MIT
import { Pipe, PipeTransform } from '@angular/core';
import { CheckFieldLocalePipe } from './check-f... |
import { Mesh, Color, PlaneBufferGeometry, ShaderMaterial, DoubleSide, Plane, Vector3 } from 'three'
import { addIsHelperFlag } from '@xrengine/engine/src/scene/functions/addIsHelperFlag'
import { CommandManager } from '../managers/CommandManager'
import EditorEvents from '../constants/EditorEvents'
import { ObjectLaye... |
import {
MessageActionRow,
MessageSelectMenu,
SelectMenuInteraction
} from 'discord.js-light'
import { v4 as uuid } from 'uuid'
import { testGuildID } from '../main'
import { CommandOptions, SlashCommandBuilder } from '../util/commands'
export const command: CommandOptions = {
data: new SlashCommandBuilder()
... |
/// <reference types="node" />
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { AppModule } from './app/app.module';
if (process.env.ENV === 'production') {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule); |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { HttpClient } from '@angular/common/http';
@Component({
templateUrl: 'dashboard.component.html'
})
export class DashboardComponent implements OnInit {
users: any;
names: any = [ 1 , 3 , 5 , 6, 7 , 8 ];
construc... |
import React from 'react';
import Helmet from 'react-helmet';
import { injectIntl, InjectedIntlProps } from 'gatsby-plugin-intl';
import { Normaltekst } from 'nav-frontend-typografi';
import { RouterProps } from '@reach/router';
import GlobalPageHeader from './components/global-page-header/GlobalPageHeader';
import '..... |
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
im... |
import { RuntimeConfig } from "@nmshd/runtime";
import nconf from "nconf";
import { ConnectorRuntime } from "./ConnectorRuntime";
import { ConnectorRuntimeConfig } from "./ConnectorRuntimeConfig";
export function createConnectorConfig(overrides?: RuntimeConfig): ConnectorRuntimeConfig {
function upperCaseToCamelCa... |
import { action } from '@storybook/addon-actions';
import { Story, Meta } from '@storybook/react';
import { DefaultButton, Props } from '@web-components/components/atoms/button/default';
import { generateTitleByImportMetaUrl } from '@stories/utils/title';
export default {
title: generateTitleByImportMetaUrl(import.m... |
import tw from 'twin.macro';
import * as Icon from 'react-feather';
import React, { useState } from 'react';
import { ApplicationStore } from '@/state';
import { httpErrorToHuman } from '@/api/http';
import { ServerContext } from '@/state/server';
import { Subuser } from '@/state/server/subusers';
import { Actions, use... |
/// <reference path="../../built/pxtlib.d.ts" />
import * as React from "react";
import * as data from "./data";
import * as sui from "./sui";
import * as md from "./marked";
import * as compiler from './compiler';
import * as ReactDOM from 'react-dom';
import * as pkg from './package';
import * as toolbox from "./too... |
import App from "./App";
import Callout from "./Callout";
import Form from "./Form";
import ShoutboxLauncher from "./ShoutboxLauncher";
export { App, Callout, Form, ShoutboxLauncher }; |
import { useEffect } from 'react'
import {
Grid,
makeStyles,
Theme,
createStyles,
Typography,
Paper,
Box,
Hidden,
Button,
SwipeableDrawer,
Link,
} from '@material-ui/core'
import { Alert } from '@material-ui/lab'
import ArrowBackIcon from '@material-ui/icons/ArrowBack'
import ListIcon from '@mater... |
import React from 'react';
import { render, mount } from 'enzyme';
import {
requiredProps,
findTestSubject,
takeMountedSnapshot,
} from '../../test';
import { EuiToolTip } from './tool_tip';
jest.mock('./../../services/accessibility', () => ({
htmlIdGenerator: () => () => 'id',
}));
describe('EuiToolTip', () ... |
/*
Copyright 2021 - 2022 The Matrix.org Foundation C.I.C.
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... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('contact... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
import { Category } from './enums';
interface DamageLoger {
(reason: string): void;
}
interface Book {
id: number;
title: string;
author: string;
available: boolean;
category: Category;
pages?: number;
markDamaged?: DamageLoger;
}
interface Person {
name: string;
email: string... |
// This is an external API type
/* eslint-disable @typescript-eslint/naming-convention */
import type { IgdbWebsiteCategory } from './websiteCategory'
export type IgdbWebsite = {
id: number,
category: IgdbWebsiteCategory,
trusted: boolean,
url: string,
} |
// Mario Kart DS
import * as Viewer from '../viewer';
import * as CX from '../compression/CX';
import * as NARC from './narc';
import * as NSBMD from './nsbmd';
import * as NSBTA from './nsbta';
import * as NSBTP from './nsbtp';
import * as NSBTX from './nsbtx';
import { fetchData } from '../fetch';
import Progressab... |
'use strict'
import {UserModel} from '../api/user/user.model'
const adminEmail = 'admin@taalmap.nl'
const demoUserEmail = 'demo@taalmap.nl'
UserModel.findOne({email: adminEmail}, (err, user) => {
if (err) {
console.error(err)
} else if (!user) {
let now = new Date()
UserModel.create({
... |
import React, { Component } from 'react'
import { Container, List } from './Styled'
import NewTodo from './NewTodo'
import TodoItem from './TodoItem'
export interface ITodo {
id: number
text: string
completed: boolean
}
interface IProps {}
interface IState {
todos: ITodo[]
newTodo: string
}
class TodoApp ... |
import { Action } from '@ngrx/store';
import { Language } from './settings.model';
export enum SettingsActionTypes {
CHANGE_LANGUAGE = '[Settings] Change Language',
CHANGE_THEME = '[Settings] Change Theme',
CHANGE_ANIMATIONS_PAGE = '[Settings] Change Animations Page',
CHANGE_ANIMATIONS_PAGE_DISABLED = '[Setti... |
import { PlainObject } from '@angular-ru/cdk/typings';
export function instanceOfPlainObject(plainObject: PlainObject): boolean {
return Object.prototype.toString.call(plainObject) === '[object Object]';
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ContacttransferComponent } from './contacttransfer.component';
describe('ContacttransferComponent', () => {
let component: ContacttransferComponent;
let fixture: ComponentFixture<ContacttransferComponent>;
beforeEach(async(() =>... |
import { Component, OnInit } from '@angular/core';
import { DuiApplication } from '../dui-interface/dui-application';
import { LookupService } from '../dui-interface/lookup.service';
@Component({
selector: 'app-config',
templateUrl: './config.component.html',
styleUrls: ['./config.component.scss']
})
export clas... |
export declare const interactive: MantineDemo;
//# sourceMappingURL=interactive.d.ts.map |
/// <reference path="../../node_modules/@types/mocha/index.d.ts" />
import '../tests/PromiseUtilTest'; |
export * from './seq-logger-module-options.interface';
export * from './seq-logger-options.interface'; |
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared/shared.module';
import { PaginationModule } from '../component/pagination';
import { BaseLayoutModule } from '../layouts/index';
import { PagesRoutingModule } from './pages.routing';
import { PagesComponent } from './pages.component';
im... |
import { IndexedDBConfig } from "./interfaces";
export declare function validateBeforeTransaction(db: any, storeName: string, reject: Function): void;
export declare function createTransaction(db: IDBDatabase, dbMode: IDBTransactionMode, currentStore: string, resolve: any, reject?: any, abort?: any): IDBTransaction;
ex... |
import React, { FC, useRef, useEffect, useCallback } from 'react'
import Portal from '@reach/portal'
import {
disableBodyScroll,
enableBodyScroll,
clearAllBodyScrollLocks,
} from 'body-scroll-lock'
import styled from 'styled-components'
import { CloseIcon } from '../components/Icons'
interface Props {... |
import { HttpRequestBase } from "../../../Primitives/Http";
import { IMaintenanceOperation, OperationResultType } from "../OperationAbstractions";
import { IndexLockMode } from "../../Indexes/Enums";
import { RavenCommand } from "../../../Http/RavenCommand";
import { DocumentConventions } from "../../Conventions/Docume... |
import { Plugin, unified } from "unified";
import remarkParse from "remark-parse";
import rehypeParse from "rehype-parse";
import { selectAll } from "unist-util-select";
import { Node, visit } from "unist-util-visit";
import { HTML, Image } from "mdast";
import { Element } from "hast";
import rehypeStringify from "rehy... |
import { isFunction, isPresent } from '../../facade/lang';
import { reflector } from '../reflection/reflection';
import { InjectableMetadata } from '../di/metadata';
import { globalKeyRegistry } from '../di/key';
import { Type } from '../../facade/type';
/**
* An interface implemented by all Angular type decorators,
... |
import { BehaviorSubject, fromEvent, interval, NEVER } from 'rxjs'
import { map, switchMap, tap } from 'rxjs/operators'
const state = new BehaviorSubject({ counter: 0, isStarted: false })
export const counter = () =>
state.asObservable().pipe(
switchMap(x => (x.isStarted ? interval(1_000).pipe(map(() => x.count... |
import { Module } from '@nestjs/common';
import { ReviewController } from './review.controller';
import { TypegooseModule } from "nestjs-typegoose";
import { ReviewModel } from "./review.model";
import { ReviewService } from './review.service';
@Module({
controllers: [ReviewController],
imports: [
TypegooseMod... |
import { Injectable, EventEmitter } from '@angular/core';
import { SocketService } from './socket.service';
import { Observable } from 'rxjs';
import { SocketEvent } from '../models/socket.model';
import { ConnectionStates } from '../models/socket.class';
@Injectable({ providedIn: 'root' })
export class DataService {
... |
/* tslint:disable */
import { DatePeriod } from './date-period';
import { Group } from './group';
import { User } from './user';
/**
* Information regarding a specific group membership change
*/
export interface GroupMembershipLog {
by?: User;
/**
* Comments supplied by the manager that performed the group c... |
import * as mongoose from 'mongoose';
// dummy variables
var cb = function () {};
/*
* Most of these tests are taken directly from the examples
* in the Mongoose API documentation.
*
* http://mongoosejs.com/docs/guide.html
* http://mongoosejs.com/docs/api.html
*/
/*
* section index.js
* http://mongoosejs.com... |
import { Injectable } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import { environment } from '../../environments/environment';
import {isNullOrUndefined} from "util";
import {BehaviorSubject} from "rxjs/BehaviorSubject";
import {Log} from "web3/types";
let Web3 = require('web3');
let Truffle... |
export type PointerButton = "default" | "left" | "right" | "middle";
export type PointerDisposition = "down" | "up";
export type PointerType = "default" | "mouse" | "pen" | "touch";
export type PointerPoint = [x: number, y: number];
export type PointerClick = {
duration?: number;
count?: number;
delay?: number;
... |
import { Controller, Get } from '@nestjs/common';
import { TagService } from '@app/tag/services/tag.service';
@Controller('tags')
export class TagController {
constructor(private readonly tagService: TagService) {}
@Get()
async findAll(): Promise<{ tags: string[] }> {
const tags = await this.tagService.find... |
import React, { FC } from 'react';
import { Router, Switch, Route } from 'react-router-dom';
import { createBrowserHistory } from 'history';
import Pokedex from '../Pokedex/Pokedex';
const Routes: FC<any> = () => {
const history = createBrowserHistory();
const path = (/#!(\/.*)$/.exec(window.location.href) || [])[... |
import React, { useEffect, useCallback } from "react";
import Stack from "@mui/material/Stack";
import useMediaQuery from "@mui/material/useMediaQuery";
import Backspace from "@mui/icons-material/Backspace";
import { Theme } from "@mui/material";
import Key, { KeyColor } from "./Key";
interface Props {
usedLetters?: ... |
const actions = {
};
export default actions; |
import Markdown, { importAll } from '../../../component/Markdown';
export default class Page extends Markdown {
path = '/packages/core/src/MenuDropdown/README.md';
getMarkdown = async () => {
const md = await import('@uiw/react-native/lib/MenuDropdown/README.md');
// 支持 markdown 中,相对于当前 index.tsx 相对路径引入图片资... |
import { TEditor } from '@udecode/slate-plugins-core';
import { Editor, Location } from 'slate';
/**
* See {@link Editor.string}.
* If `at` is not defined, return an empty string.
*/
export const getText = (editor: TEditor, at?: Location | null) =>
(at && Editor.string(editor, at)) ?? ''; |
import { mock } from 'angular';
import type { IInstanceTypeCategory, InstanceTypeService } from './instanceType.service';
import { INSTANCE_TYPE_SERVICE } from './instanceType.service';
describe('Service: instanceTypeService', function () {
let instanceTypeService: InstanceTypeService, $q: ng.IQService, $scope: ng.... |
/* eslint-disable */
import { Injectable, Inject, Optional } from '@angular/core';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { SDKModels } from './SDKModels';
import { BaseLoopBackApi } from '../core/base.service';
import { LoopBackConfig } from '../../lb.config';
import { LoopBackAuth } f... |
import { Backend, Initial } from 'typings';
import Cluster from './Cluster';
import TaskDefinition from './TaskDefinition';
import Service from './Service';
import CloudMap from './CloudMap';
export default (inputs: Backend.ECS.Inputs): Backend.ECS.Outputs => {
// const map = CloudMap();
// const alb = ELB(inputs)... |
module example {
import Pool = entitas.Pool;
import Group = entitas.Group;
import Entity = entitas.Entity;
import Matcher = entitas.Matcher;
import Exception = entitas.Exception;
import TriggerOnEvent = entitas.TriggerOnEvent;
import IExecuteSystem = entitas.IExecuteSystem;
import ISetPool = entitas.IS... |
import { renderHook, act } from '@testing-library/react-hooks';
import useOptimisticState, { HookResult } from '../src/index';
type Action = {
state: number;
type: 'success' | 'error';
delay: number;
result?: string;
error?: any;
};
type StateData = HookResult<number, string, any>;
function wait(delay: num... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About FUND</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39... |
import { fetch } from 'undici';
import { Command } from '../../Structures/Command.js';
import { RegisterCommand } from '../../Structures/Decorator.js';
interface IMCOnline {
online: true,
ip: string
port: number
debug: {
ping: boolean
query: boolean
srv: boolean
querymismatch: boolean
ipinsrv: boolean... |
import * as crypto from 'crypto';
class Crypto {
hash(value: string) {
return crypto.createHash('sha256').update(value).digest('hex');
}
}
export default new Crypto(); |
import * as _ from 'lodash-es';
import * as semver from 'semver';
import { ClusterVersionModel } from '../../models';
import { referenceForModel } from './k8s';
import {
ClusterVersionKind,
ClusterUpdate,
ClusterVersionConditionType,
K8sResourceConditionStatus,
ClusterVersionCondition,
UpdateHistory,
} fro... |
import { CartItem } from './../../restaurant-detail/shopping-cart/cart-item.model';
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
@Component({
selector: 'mt-order-items',
templateUrl: './order-items.component.html'
})
export class OrderItemsComponent implements OnInit {
@Input(... |
import * as fs from "fs";
import * as util from "util";
import { getArgs } from "./args";
const { consoleLogging, fileLogging } = getArgs();
const logFile = fileLogging ? fs.createWriteStream(fileLogging, { flags: "w" }) : null;
const stdout = process.stdout;
const stderr = process.stderr;
export function log(...ar... |
import { applyDecorators } from '@nestjs/common';
import { ApiHeader } from '@nestjs/swagger';
import { ApiResponseDecorator } from './api.response.decorator';
export function ApiJwtHeaderDecorator(): ReturnType<typeof applyDecorators> {
return applyDecorators(
ApiHeader({
name: 'Authorization',
description: ... |
import UniqueEntityID from '@core/domain/UniqueEntityID';
export type UpdatePartial<T> = {
[P in keyof T]?: T[P];
} & {
id: UniqueEntityID | string;
};
export type AllOptional<T> = {
[P in keyof T]?: T[P];
}; |
import * as restify from "restify";
import { loadRoot as loadRecipesRoot } from "./recipes";
import { loadRoot as loadRecipeUnlocksRoot } from "./recipeunlocks";
const load = (server: restify.Server) => {
server.use(restify.plugins.queryParser());
loadRecipesRoot(server);
loadRecipeUnlocksRoot(server);
};
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ja" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Satoshi</source>
<translation>Satoshiについて</translation>
</messag... |
import { arrayify } from '@ethersproject/bytes'
import { keccak256 } from '@ethersproject/keccak256'
// https://github.com/ethers-io/ethers.js/blob/d9d438a119bb11f8516fc9cf02c534ab3816fcb3/packages/address/src.ts/index.ts
export function normalizeAccount(_address: string): string {
const address = _address.substring... |
/* eslint-disable prettier/prettier */
import {
Column,
Entity,
JoinTable,
ManyToMany,
ManyToOne,
OneToMany,
OneToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
import { ContactInfo } from './contact-info.entity';
import { Meeting } from './meetings.entity';
import { Task } from './task.entity';
@Entit... |
import { OAuthUser } from '@accounts/oauth';
export interface Configuration {
getRegistrationPayload?: (oauthUser: OAuthUser) => Promise<any>;
} |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { WalletsRoutingModule } from './wallets-routing.module';
import { WalletsComponent } from '@wallets/wallets.component';
import { TezedgeSharedModule } from '@shared/tezedge-shared.module';
import { ClipboardModule } from '... |
import {tokenizer} from './tokenizer';
import {parser} from './parser';
import {transformer} from './transformer';
import {codeGenerator} from './code_generator';
/**
* ============================================================================
* (۶* ‘ヮ’)۶”
* ... |
import { LiturgicalDocument } from '../liturgical-document';
import { Option } from '../option';
import { versionToString } from './version-to-string';
/* Converts a list of documents into a single document showing options in parallel */
export function docsToOption(
d: LiturgicalDocument[] | LiturgicalDocument,
v... |
/*
* 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 { mapValues } from 'lodash';
import { ShortcutMap, ShortcutNameSpace ... |
import { CollectionObject } from './collection-object.model';
export interface DataPoint extends CollectionObject {
description: string;
units: string;
lowerLimit?: string;
upperLimit?: string;
metaTags?: string[];
processTag?: string;
locationId: string;
dataGroupId: string;
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { assert, expect, use } from 'chai';
import * as chaiPromise from 'chai-as-promised';
import * as path from 'path';
import * as fsExtra from 'fs-extra';
import * as sinon from 'sinon';
import { Subject... |
import * as React from 'react';
import { SVGIconProps } from '../createIcon';
export declare const ThemecoIconConfig: {
name: 'ThemecoIcon',
height: 512,
width: 448,
svgPath: 'M202.9 8.43c9.9-5.73 26-5.82 35.95-.21L430 115.85c10 5.6 18 19.44 18 30.86V364c0 11.44-8.06 25.29-18 31L238.81 503.74c-9.93 5.66-26 5.57... |
import { Events, Listener, ListenerOptions } from '@sapphire/framework'
import { ApplyOptions } from '@sapphire/decorators'
import type { Guild } from 'discord.js'
import db from '#database'
import type { GuildSettings } from '#types'
@ApplyOptions<ListenerOptions>({
event: Events.GuildDelete
})
export default class... |
import * as THREE from 'three';
import { readOption, pick, generateUuid } from '../../utils';
import { TextureUtils } from '../../textures';
const CSS_CLASS_PIXELATE = `pixelate-${generateUuid()}`;
const CSS_PIXELATE = `
.${CSS_CLASS_PIXELATE} {
image-rendering: crisp-edges;
image-rendering: pixelated;
}
... |
process.env.GITHUB_WORKFLOW = 'PR Checks';
process.env.GITHUB_SHA = 'b24f03a32e093fe8d55e23cfd0bb314069633b2f';
process.env.GITHUB_REF = 'refs/heads/feature/19';
process.env.GITHUB_EVENT_NAME = 'push';
import {
Client,
With,
Success,
Failure,
Cancelled,
Always,
} from '../src/client';
const fixedFields = ... |
import { HttpClient } from '@angular/common/http';
import { Inject, Injectable, Injector } from '@angular/core';
import { Router } from '@angular/router';
import { ACLService } from '@delon/acl';
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
import { ALAIN_I18N_TOKEN, MenuService, SettingsService, Titl... |
/*
* 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 'jest-styled-components';
// @ts-ignore
import configureStore from 'x-... |
import * as prettier from 'prettier'
import { sort } from '../src/Array'
import { Option } from '../src/Option'
import { contramap, ordString } from '../src/Ord'
import {
Constant,
Data,
Func,
Interface,
isConstant,
isData,
isFunc,
isInterface,
isTypeclass,
Method,
Module,
Typeclass
} from './do... |
import { module } from 'angular';
import { CLOUD_PROVIDER_REGISTRY, CloudProviderRegistry } from 'core/cloudProvider/cloudProvider.registry';
import { ACCOUNT_SERVICE, AccountService } from 'core/account/account.service';
export interface IApplicationNameValidationMessage {
cloudProvider?: string;
message: string;... |
declare module 'input-event'; |
/*
* 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 gql from 'graphql-tag';
export const authenticationsQuery = gql`
qu... |
import { IColorOpts } from '../interfaces/IColorOpts'
import { LogFormat } from '../interfaces/LogFormat'
export const DefaultColors: IColorOpts = {
debug: 'cyan',
error: 'red',
info: 'gray',
success: 'green',
warn: 'yellow'
}
export const DefaultLogFormat: LogFormat = 'plaintext'
export const DefaultDayJS... |
import { AppStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppStreamClient";
import { CreateUserRequest, CreateUserResult } from "../models/models_0";
import {
deserializeAws_json1_1CreateUserCommand,
serializeAws_json1_1CreateUserCommand,
} from "../protocols/Aws_json1_1";
import { ge... |
export type MaybeAsync<T> = Promise<T> | T;
export const isPromise = <T extends unknown>(
test?: MaybeAsync<T>
): test is Promise<T> =>
!!test && typeof (test as Promise<T>).then === "function";
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
expor... |
const identifier = 'is.workflow.actions.choosefromlist';
const icon = 'Scripting';
const WFAction = {
ActionClass: 'WFChooseFromListAction',
ActionKeywords: ['choose', 'select', 'list', 'options', 'menu', 'multiple'],
CreationDate: '2014-02-05T06:00:00.000Z',
Description: {
DescriptionSummary:
"Prese... |
import { NgModule, Directive, ElementRef, HostListener, Input, forwardRef, Output, EventEmitter } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DomHandler } from 'primeng/dom';
import { Validator, AbstractControl, NG_VALIDATORS } from '@angular/forms';
export const KEYFILTER_VALIDATOR:... |
const GOAL_MARKER_TEXT_WIDTH = 40;
/**
* Implements per-week/month annual goal tracking.
*
* This modifier adds two additional progress bars to the annual goal
* tracker found in the #progress-goals-v2 element. The bars track monthly
* and weekly progress towards the overall annual goal.
*/
export class GoalsMod... |
import webpack, { Configuration } from 'webpack';
import PubsubAspect, { PubsubMain } from '@teambit/pubsub';
import {
BundlerAspect,
BundlerContext,
BundlerMain,
DevServer,
DevServerContext,
BundlerMode,
Target,
} from '@teambit/bundler';
import { MainRuntime } from '@teambit/cli';
import { Logger, Logge... |
// tslint:disable:no-empty
import { Chalk } from 'chalk';
import { Console } from 'console';
import { LoaderOptions } from './interfaces';
type InternalLoggerFunc = (whereToLog: any, message: string) => void;
type LoggerFunc = (message: string) => void;
export interface Logger {
log: LoggerFunc;
logInfo: LoggerF... |
import { debounce } from '../utils'
import { useMemo } from 'react'
import { useRefValue } from './useRefValue'
export function useDebounce<T extends (...args: any[]) => any>(
fn: T,
delay: number,
) {
const fnRef = useRefValue(fn)
const debouncedFn = useMemo(() => {
return debounce(fnRef.current, delay)
... |
export default class SignedRequest {
data: object;
pk: string;
sig: string;
nonce: number;
constructor(data: object, publicKey: string, sig: string, nonce: number);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.