text stringlengths 10 953k |
|---|
/**
* @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 { buildWebpackBrowser } from '../../index';
import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } fro... |
<TS language="ru" 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</sourc... |
// Copyright 2017 The Cockroach Authors.
//
// Licensed under the Cockroach Community Licence (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://github.com/cockroachdb/cockroach/blob/master/licenses/CCL.txt
import React from... |
/// <reference types="node" />
import * as dgram from "react-native-udp";
import { EventEmitter } from "events";
import { CipherSuites } from "./DTLS/CipherSuites";
import { Alert } from "./TLS/Alert";
export declare namespace dtls {
/**
* Creates a DTLS-secured socket.
* @param options - The options used... |
/* eslint-disable indent */
/* eslint-disable dot-notation */
import { U16_MAX } from './util';
import { reverseOpCodes } from '../opcodes';
import type { IPolyfill } from './type';
const op = reverseOpCodes;
function i16x8Op(instruction: number, localIndices: Uint8Array[], signed: boolean): Uint8Array {
const buf ... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { ImageListComponent } from './image-list/image-list.component';
import { ImageService } from './shared/ima... |
import {
Link,
Button,
chakra,
Heading,
Stack,
Text,
SlideFade,
} from '@chakra-ui/react';
import useMediaQuery from '../hook/useMediaQuery';
import { FaLinkedin, FaEnvelope, FaFileAlt } from 'react-icons/fa';
import SlideUpWhenVisible from '../hook/SlideUpWhenVisible';
import ReactGA from 'react-ga';
imp... |
import { expect } from 'chai';
import { Sequence } from '../../../../src/sequences/sequence';
import { DefaultComparator } from '../../../../src/utils/default-comparator';
import { books } from '../../../models/fixtures';
import { AuthorComparator } from '../../../utils/author-comparator';
import { DistinctSequence } f... |
import { DocumentNode, gql } from "@apollo/client";
export const ADD_RESULT: DocumentNode = gql`
mutation addResult(
$date: String!
$tweet_id: String
$tournament_name: String!
$placement: Int!
) {
addResult(
date: $date
tweet_id: $tweet_id
tournament_name: $tournament_name
... |
import { Emitter, CompositeDisposable } from 'atom'
import { WebviewTag, shell } from 'electron'
import fileUriToPath = require('file-uri-to-path')
import { handlePromise, atomConfig } from '../util'
import { RequestReplyMap, ChannelMap } from '../../src-client/ipc'
import { getPreviewStyles } from './util'
export ty... |
// Copyright 2020 Jebbs. All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.
import { settingsPanel } from "./meaxure/panels/settingsPanel";
import { updateContext } from "./meaxure/common/context";
import { logger } from "./meaxure/common/logger";
i... |
import {
expect as expectCdk,
countResources,
haveResource,
} from "@aws-cdk/assert";
import * as sns from "@aws-cdk/aws-sns";
import { App, Stack, Topic, Queue, Function } from "../src";
const lambdaDefaultPolicy = {
Action: ["xray:PutTraceSegments", "xray:PutTelemetryRecords"],
Effect: "Allow",
Resource:... |
import { Controller, Post, Body } from '@nestjs/common';
import { UsersService } from '../services/users.service';
import { Users } from '../entities/users.entity';
import { BaseController } from './base.controller';
@Controller('sa/users')
export class UsersController extends BaseController<Users> {
constructor(p... |
import * as assert from 'assert';
import fOnce from '../src/once';
describe('once', () => {
it('should invoke `func` once', () => {
let count = 0,
once = fOnce(() => ++count);
once();
assert.strictEqual(once(), 1);
assert.strictEqual(count, 1);
});
it('should ignore recursive calls', () =... |
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import Backend from "i18next-xhr-backend";
import detector from "i18next-browser-languagedetector";
i18n.use(Backend)
.use(detector)
.use(initReactI18next)
.init({
supportedLngs: ["en", "de"],
backend: {
... |
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* 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 app... |
export interface ChannelsListResponse {
ok?: boolean;
channels?: Channel[];
warning?: string;
response_metadata?: ResponseMetadata;
error?: string;
needed?: string;
provided?: string;
}
export interface Channel {
id?: ... |
import { AnimationClip, Loader, FileLoader } from "..";
class AnimationLoader extends Loader {
constructor(manager) {
super(manager);
}
load(url, onLoad, onProgress, onError) {
const scope = this;
const loader = new FileLoader(this.manager);
loader.setPath(this.path);
loader.setRequestHeader(this.reques... |
import {IDictionary} from '../models';
export const listeners = (el: EventTarget, action: string, type: "interaction" | "resize" | "game", callback: (e?: Event) => any) => {
const events: IDictionary<string[]> = {
interaction: [
"mousemove",
"click",
"scroll",
... |
import { Match, check } from 'meteor/check';
import type { IUser } from '@rocket.chat/core-typings';
import { API } from '../../api';
import { Users } from '../../../../models/server/raw/index';
import { hasPermission } from '../../../../authorization/server/index';
import { LivechatVoip } from '../../../../../server/... |
import { Injectable, Logger, OnModuleInit } from '@nestjs/common'
import { SchedulerRegistry } from '@nestjs/schedule'
import { EnvKeyEnum, getEnvSetting } from '@x-forward/common'
import { errorHandleWarpper } from '@x-forward/common/utils/error.util'
import { ExecutorService } from '@x-forward/executor'
import { Cron... |
import { ICardGame } from "./models/ICardGame";
import { isCardAvail } from "../utils/misc";
import { IPlayer } from "./models/IPlayer";
import { Deck } from "../utils/deck";
import { MAX_PLAYERS } from "../constants/misc";
import { InMemoryStore } from "../persistence/InMemoryStore";
/**
* The class which helps to h... |
export * from "https://deno.land/x/github_app_auth@v0.1.4/jwt.ts";
export * from "https://deno.land/x/github_app_auth@v0.1.4/request.ts"; |
import IO from 'socket.io-client';
import platform from 'platform';
import config from '../config/client';
import store from './state/store';
import { guest, loginByToken, getLinkmansLastMessages, getLinkmanHistoryMessages } from './service';
import { ActionTypes, SetLinkmanPropertyPayload, AddLinkmanHistoryMessagesPa... |
import { Mods } from "./enums/mods";
import { ScoreLetterGrade } from "./types/score-letter-grade";
export interface PlayerScore {
osuUserId: string;
passed: boolean;
score: number;
mods: Mods;
scoreLetterGrade: ScoreLetterGrade;
} |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const GoArrowUp: IconType; |
import { AutofocusDirective } from './autofocus.directive';
describe('AutofocusDirective', () => {
it('should create an instance', () => {
//const directive = new AutofocusDirective();
//expect(directive).toBeTruthy();
});
}); |
import { TestBed } from '@angular/core/testing';
import { HangmanService } from './hangman.service';
describe('HangmanService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: HangmanService = TestBed.get(HangmanService);
expect(service).toBeTr... |
import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { ProfileController } from './profile.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserEntity } from '../entities/user.entity';
import { AuthModule ... |
/* eslint-disable @typescript-eslint/no-unused-vars */
import {
jsPDF,
GState,
TilingPattern,
ShadingPattern,
AcroFormPasswordField,
AcroFormChoiceField,
AcroFormButton,
AcroFormComboBox,
AcroFormCheckBox,
AcroFormRadioButton,
AcroFormEditBox,
AcroFormPushButton,
AcroFormListBox,
AcroFormTe... |
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2020 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import './image-properties.less';
import { Config } from '../../../config';
import {
Alert,
Con... |
import { spawnOrFail } from "../utils/cmd-utils";
import { overwriteIndex } from "../utils/file-utils";
import { installUpgrade } from "../utils/npm-utils";
import { installCodegenDeps, runCodegenSync } from "./common";
import { CPAStrategy } from "./types";
const reactStrategy: CPAStrategy = {
create: async (args) ... |
import colors from '../colors';
import core from '../core';
const theme = {
colors: {
...colors,
primary: colors.blue1,
util: '#FFFF00',
none: 'rgba(0,0,0,0)',
},
...core,
};
export default theme; |
import "./SearchInput.scss"
import { ChangeEvent } from "react"
import SearchIcon from "../icons/SearchIcon"
interface SearchInputProps extends React.HTMLProps<HTMLDivElement> {
value: string,
iconCount: number,
onChange: (event: ChangeEvent<HTMLInputElement>) => void
}
function SearchInput({ value, onChange, i... |
import { Strategy } from 'passport-local';
import { PassportStrategy } from '@nestjs/passport';
import { Injectable, HttpException, HttpStatus } from '@nestjs/common';
import { AuthService } from '../auth.service';
import { CUSTOM_HTTP_ERRORS } from '../../utils/exception-filters/custom-http-errors.filter';
@Injectabl... |
import { browser, element, by } from 'protractor';
export class AwedrobePage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
} |
import { Matrix } from '@pixi/math';
import type { Texture } from './Texture';
const tempMat = new Matrix();
/**
* Class controls uv mapping from Texture normal space to BaseTexture normal space.
*
* Takes `trim` and `rotate` into account. May contain clamp settings for Meshes and TilingSprite.
*
* Can be used ... |
import { useModel } from 'umi';
import { Descriptions } from 'antd'
export default () => {
const { initialState, loading, error, refresh, setInitialState } = useModel('@@initialState');
const { currentUser } = initialState
return <>
<h2>页面三</h2>
<Descriptions title="登陆信息">
<Descriptions.Item labe... |
import firebase from 'firebase/app';
const projectId = 'nextjs-on-firebase-ts';
const apiKey = 'AIzaSyCsiDksZmYnliMhMVlaZc0AMi-k0JIixSk';
const app =
firebase.apps[0] ||
firebase.initializeApp({
apiKey,
authDomain: `${projectId}.firebaseapp.com`,
databaseURL: `https://${projectId}.fire... |
import React from 'react';
import Svg, { Path } from 'react-native-svg';
const Svg112 = (props: any) => (
<Svg width="1em" height="1em" viewBox="0 0 47 72" {...props}>
<Path
d="M37 11l1 3h4l1-1v1h1v3h1v1h1l1 2-4 3v1l-1 1-1 2v1l-3-2h-1l-1-1v-1h1v-1h1v-1l-1-1h-1v-1 2l-3 6 1 1v1l-1 3-1 2h-5l1 3h1l1 1 3 3v3h1v... |
/*
* @license NewConsensus Platform v0.1
* (c) 2020-2021 KaoGeek. http://kaogeek.dev
* License: MIT. https://opensource.org/licenses/MIT
* Author: chalucks <chaluck.s@absolute.co.th>, shiorin <junsuda.s@absolute.co.th>
*/
import 'reflect-metadata';
import { IsBooleanString } from 'class-validator';
export class ... |
export * from './initRoutes'; |
import { default as EventEmitter } from 'eventemitter3'
import { Signer } from 'ethers/lib/ethers'
import { defaultChains } from '../constants'
import { Chain } from '../types'
export type ConnectorData<Provider = any> = {
account?: string
chain?: { id: number; unsupported: boolean }
provider?: Provider
}
expo... |
import 'isomorphic-fetch';
import * as jwt from 'jsonwebtoken';
import { cloudApiEndpoint } from './constants';
import { GraphQLClient } from 'graphql-request';
import chalk from 'chalk';
import { IOutput } from './Output';
import { getProxyAgent } from './utils/getProxyAgent';
const debug = require('debug')('environme... |
import { PersonalizeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeClient";
import { CreateDatasetRequest, CreateDatasetResponse } from "../models/models_0";
import {
deserializeAws_json1_1CreateDatasetCommand,
serializeAws_json1_1CreateDatasetCommand,
} from "../protocols/Aws_jso... |
import { PieceConstant } from '../../utils/unicode-constants';
import { Board } from '../board';
import { Color } from './color';
import { Piece } from './piece';
import { Point } from './point';
export declare class King extends Piece {
castledAlready: boolean;
shortCastled: boolean;
longCastled: boolean;
... |
import { BaseUuidEntity } from "./sys$BaseUuidEntity";
export class Config extends BaseUuidEntity {
static NAME = "sys$Config";
version?: number | null;
createTs?: any | null;
createdBy?: string | null;
updateTs?: any | null;
updatedBy?: string | null;
name?: string | null;
value?: strin... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import ... |
/* imports from node_modules */
import * as Pbf from 'pbf';
import FuzzySet from 'fuzzyset.js';
//import * as tf from '@tensorflow/tfjs';
import { Action, Selector, State, StateContext } from '@ngxs/store';
import { HttpClient, HttpHeaders } from '@angular/common/http';
//import { InferenceModel } from '@tensorflow/tfj... |
import axios from 'axios';
const instance = axios.create({
baseURL: '/api',
timeout: 30000,
});
//请求拦截
instance.interceptors.request.use(
(config) => {
config.headers.Authorization = localStorage.token;
return config;
},
(error) => {
return Promise.reject(error);
},
);
//响应拦截
instance.interce... |
import { AddressMap } from '../types';
export declare const USDC_ADDRESS: AddressMap;
export declare const FACTORY_ADDRESS: AddressMap;
export declare const ROUTER_ADDRESS: AddressMap;
export declare const SUSHI_ADDRESS: AddressMap;
export declare const MASTERCHEF_ADDRESS: AddressMap;
export declare const BAR_ADDRESS: ... |
import * as React from 'react';
import { IconWrapper } from '../IconWrapper';
import { ISvgIconProps } from '../svgConfig';
export default IconWrapper(
(props: ISvgIconProps) => (
<svg
width={props.size}
height={props.size}
viewBox="0 0 48 48"
fill="none"
... |
import { Injectable, Logger } from '@nestjs/common';
import { CreateAccountDTO } from 'src/dto/account-create.dto';
import { GetAllAccountDTO } from 'src/dto/account-get-all.dto';
import {
AccountAndId,
createAccountAndidInterface,
} from 'src/interface/account-and-id.interface';
import { Account } from 'src/interf... |
import { Any } from "../lib/Any";
import { Type } from "../lib/Type";
import assert from "assert";
describe("SafeAny.type", () => {
it("should return Type.string", () => {
assert.deepStrictEqual(new Any("test").type, Type.string);
});
it("should return Type.number", () => {
assert.deepStrictEqual(new Any... |
import { IPackageJson } from '@ts-type/package-dts'
import { readFile, readFileSync, PathLike } from 'fs';
import { resolve } from 'path';
const defaultPackagePath: FilePath = resolve(__dirname, '..');
export type ApplicationPackage = IPackageJson;
export type FilePath = PathLike | number;
export type FileOptions =... |
import * as React from 'react';
import { ExtendRouteObject } from './types';
import { useRoutes } from 'react-router-dom';
import { routes as mainRoutes } from './pages/routes';
import SyncRoutesWrapper from './module-sync';
const AsyncRoutesWrapper = React.lazy(() => import('./module-async'));
// https://github.com/... |
export const acceptableFiles = [
'264',
'265',
'3g2',
'3gp',
'asf',
'avi',
'divx',
'flv',
'h264',
'h265',
'hevc',
'm4a',
'm4v',
'mkv',
'mov',
'mp2',
'mp4',
'mpe',
'mpeg',
'mpg',
'mts',
'mxf',
'ogg',
'ogm',
'ogv',
'rm',
'rmvb',
'ts',
'vob',
'webm',
'wmv'
]; |
/*global fetch */
import Web3 from 'web3';
import RewardPoolABI from '../../contracts/abi/v0.8.6/reward-pool';
import { Contract, ContractOptions } from 'web3-eth-contract';
import { getAddress } from '../../contracts/addresses';
import { AbiItem, fromWei, toWei } from 'web3-utils';
import { signRewardSafe, signSafeTx... |
import dbInit from '../helpers/database-init';
import getLogger from '../../fixtures/no-logger';
let stores;
let db;
let featureToggleStore;
beforeAll(async () => {
getLogger.setMuteError(true);
db = await dbInit('feature_toggle_store_serial', getLogger);
stores = db.stores;
featureToggleStore = store... |
import styled from 'styled-components/native';
import { FlatList } from 'react-native';
import { RectButton } from 'react-native-gesture-handler';
import { Provider } from './index';
interface ProviderContainerProps {
selected: boolean;
}
interface ProviderNameProps {
selected: boolean;
}
interface HourProps {
... |
import {GeneratorArgs} from '@rcgen/core';
export function createGeneratorArgs<T>(
filename: string,
previouslyGeneratedContent?: T
): GeneratorArgs<T> {
return {
absoluteManifestFilename: '/path/to/m',
filename,
previouslyGeneratedContent,
existingContent: undefined
};
} |
import { createTheme } from '@mui/material';
export const theme = createTheme({
palette: {
background: {
default: '#f0f0f0',
},
},
}); |
import {BasePlugin, DutyMember} from "../types";
import {PrivateMessageEvent} from "oicq/lib/events";
import {multiMunkres} from "multi-munkres";
import schedule from 'node-schedule'
interface ScheduleConfig {
members: DutyMember[],
managers: number[]
}
const setChart = ({
template,
... |
import './MailTemplateProvider'
import './MailProvider'
import './StorangeProvider'
import './CacheProvider' |
import KeyActionBinder from './KeyActionBinder';
/**
* Information on a keyboard event filter
*/
export default class KeyboardActionBinding {
// Properties
public keyCode:number;
public keyLocation:number;
public isActivated:boolean;
// ======================================================================... |
import { App, SuggestModal, TFolder } from "obsidian";
import { ignoreItems, sorter } from "../utils/collection-helper";
import { FOLDER } from "./icons";
import { Settings } from "../settings";
import { AppHelper } from "../app-helper";
import { smartIncludes, smartStartsWith } from "../utils/strings";
interface Sugg... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms';
import { TabService } from '../../../../common/services/tab.service';
import { RoleService } from '../../../../common/services/role.service';
import { PermissionService } from '../../../.... |
import * as React from 'react'
import { Flex, Segment } from '@stardust-ui/react'
const FlexExampleColumns = () => (
<>
<Flex gap="gap.small" padding="padding.medium">
<Flex.Item size="size.half">
<Segment content="1/2" />
</Flex.Item>
<Flex.Item size="size.half">
<Segment cont... |
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/example-passport-login
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {DefaultCrudRepository} from '@loopback/repository';
import {UserCredentials} from '../models';
impo... |
import { bufferToHex } from "ethereumjs-util";
import { inspect } from "util";
import { decodeRevertReason } from "./revert-reasons";
import {
CONSTRUCTOR_FUNCTION_NAME,
PRECOMPILE_FUNCTION_NAME,
SolidityStackTrace,
SolidityStackTraceEntry,
SourceReference,
StackTraceEntryType,
UNKNOWN_FUNCTION_NAME,
U... |
import { Repository } from '../core/repository';
import { ChallengeStateResponse } from '../responses';
export declare class ChallengeRepository extends Repository {
state(): Promise<ChallengeStateResponse>;
selectVerifyMethod(choice: string, isReplay?: boolean): Promise<ChallengeStateResponse>;
replay(choice: st... |
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { Role } from '../../entities/role';
import { Credentials } from '../../entities/credentials';
const credentialsKey = 'credentials';
const nameKey = 'name';
/**
* Provides storage for authentication credentials.
* The Credent... |
import React, { useEffect } from 'react';
import {BrowserRouter as Router, Switch, Route, Link, Redirect, useLocation} from 'react-router-dom';
import './App.css';
// pages
import HomePage from './components/pages/home';
import NotFound from './components/pages/notfound';
import WorldMapPage from './components/pages/w... |
import * as assert from 'assert';
import sinon from 'sinon';
import ts from 'typescript';
import { DocumentSnapshot } from '../../../src/plugins/typescript/DocumentSnapshot';
import { createSvelteSys } from '../../../src/plugins/typescript/svelte-sys';
describe('Svelte Sys', () => {
afterEach(() => {
sinon... |
import { add, Point } from "./positions";
import { gridSize } from "../config/grid";
export const directions = [
Point(-1, -1),
Point(0, -1),
Point(1, -1),
Point(1, 0),
Point(1, 1),
Point(0, 1),
Point(-1, 1),
Point(-1, 0),
];
/**
* Will attempt to get the record from the array at the specified index
... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { DriverRepository } from './driver.repository';
import { Driver } from './driver.entity';
import { CreateDriverDto } from './dto/create-driver.dto';
import { UpdateDriverDto } from './dto/update-driver.dto';
import... |
import { Atom } from "@nova-ui/bits/sdk/atoms";
import { ChartAtom } from "./atoms/chart.atom";
import { SeriesAtom } from "./atoms/series.atom";
import { StatusBarDataPointAtom } from "./atoms/status-bar-data-point.atom";
export class StatusChartAtom extends ChartAtom {
public async getStatusBarDataPointByIndex... |
import { BigNumber } from "@0x/utils";
import { Asset } from "./Asset";
import { BorrowRequest } from "./BorrowRequest";
import { WalletType } from "./WalletType";
export class BorrowRequestAwaiting {
public walletType: WalletType;
public walletAddress: string;
public borrowAsset: Asset;
public borrowAmount: B... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { TranslationErrorCode } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: ShippingPriceTranslateErrorFragment
// =============... |
import React from 'react';
import { useStaticQuery, graphql } from 'gatsby';
import { Helmet } from 'react-helmet';
import styled from 'styled-components';
import { GlobalStyle } from '../../assets/styles/index.style';
import { SMALL } from '../../constants/breakpoints';
import Nav from '../Nav/Nav';
import Footer fr... |
import { StepNotifier } from '../types';
export class TestNotifier implements StepNotifier {
actions: any[] = [];
async notify(text: string, data?: any) {
if (data) {
this.actions.push({ text, data });
} else {
this.actions.push(text);
}
}
} |
import { EditorConfiguration, Editor } from 'codemirror';
import { debounce } from 'lodash-es';
import {
$,
EditorInterface,
isEngine,
isServer,
NodeInterface,
} from '@aomao/engine';
import { SYNTAX_MAP } from './mode';
import { CodeBlockEditorInterface, Options } from './types';
const qa = [
'c',
'cpp',
'csha... |
export default class CustomLectureResetError extends Error {
constructor() {
super("Tried to reset a custom lecture");
}
} |
import { InjectionToken } from '@angular/core';
export interface ClickOutsideConfig {
events: string[];
}
export const NGX_CLICK_OUTSIDE_CONFIG = new InjectionToken<any>('@ngex/common/click-outside/config', {
providedIn: 'root',
factory: () => ({
events: ['click'],
}),
}); |
import { Channel, channel, hasSubscribers } from 'node:diagnostics_channel';
const ch1: Channel = channel('test');
function listener(name: string, data: unknown) {
}
const active: boolean = ch1.hashSubscribers;
const name: string = ch1.name;
ch1.subscribe(listener);
ch1.unsubscribe(listener);
const hasSubs = hasSu... |
/**
* Country is a reference to a country
*/
import { SevdeskAccount } from '../sevdesk.classes.account';
export const getCountryIdByCountryName = async (
sevdeskAccount: SevdeskAccount,
countryNameArg: string
) => {
const response = await sevdeskAccount.request('GET', `/StaticCountry?limit=1000`);
const co... |
/**
* @module adaptive-expressions
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { EnumExpression } from '../expressionProperties';
import { Expression } from '../expression';
declare type Input<T> = T | string | Expression;
/**
* `string` to json [... |
export class BettererTestState {
constructor(private _isSkipped: boolean = false, private _isOnly: boolean = false) {}
public get isOnly(): boolean {
return this._isOnly;
}
public get isSkipped(): boolean {
return this._isSkipped;
}
public only(): this {
this._isOnly = true;
return this;
... |
import { Logger, LoggerFactory } from '@codification/cutwater-logging';
import { ItemRepository } from '@codification/cutwater-repo';
import { DynamoDB } from 'aws-sdk';
import { AttributeMap, GetItemOutput, PutItemInput, QueryInput, QueryOutput } from 'aws-sdk/clients/dynamodb';
import { CompoundKey } from '.';
import... |
import { BadRequestException } from '@nestjs/common';
import { Args, Mutation, Resolver } from '@nestjs/graphql';
import { User } from '../users/users.entity';
import { AuthService } from './auth.service';
import { SignInInput } from './dto/sign-in-input.dto';
import { SignInResult } from './dto/sign-in-result.dto';
... |
import React from "react";
import {NodeSpawner} from "./NodeMenuSpawnerContainer";
import {Button} from "@material-ui/core";
import {IntermediateNode, NodeType} from "../../../models/models";
import {generateUniqueID} from "web-vitals/dist/modules/lib/generateUniqueID";
import {showNodeIntermediateDialog} from "../../O... |
import * as React from "react";
declare const ClrRulerPencilSolid: React.SFC;
export default ClrRulerPencilSolid; |
import React from 'react';
import clsx from 'clsx';
import Drawer from '@material-ui/core/Drawer';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import List from '@material-ui/core/List';
import Typography from '@material-ui/core/Typography';
import Divider from '@mat... |
import hre, { ethers } from 'hardhat';
import { Contract, BigNumber, utils } from 'ethers';
import { bn, fp } from '@balancer-labs/v2-helpers/src/numbers';
import { expectEqualWithError } from '@balancer-labs/v2-helpers/src/test/relativeError';
import { MerkleTree } from '@balancer-labs/v2-distributors/lib/merkleTree'... |
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
import { KeyObject } from "./keys.ts";
import { Buffer } from "../../buffer.ts";
import { ERR_INVALID_ARG_TYPE } from "../errors.ts";
import { isArrayBufferVi... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-colors',
templateUrl: './colors.component.html',
styleUrls: ['./colors.component.scss']
})
export class ColorsComponent implements OnInit {
colors = {
"red": {
"100": "#ffcdd2",
"200": "#ef9a9a",
"300": "#e5737... |
import { outputFile } from 'fs-extra';
import { join, basename, extname, dirname } from 'path';
import contentDisposition from 'content-disposition';
import decompress, { DecompressOptions } from '@xingrz/decompress'
import { File } from '@xingrz/decompress-types'
import filenamify from 'filenamify';
import getStream f... |
const markdownBody = `
I was recently reformatting my laptop for the nth time in the past year and I have been carrying around some bash aliases i've used for years. They need to be on my machine because otherwise my muscle memory will not work :)
A bit ago I decided to put it in a public git repo to share and for eas... |
export { EaseError } from './EaseError'; |
import { IObservable } from '../../../../../../../../type/observable.type';
import { IReactiveFunctionObservables } from '../../../reactive-function';
import { distinctReactiveFunction } from '../../others/distinct-reactive-function';
export function reactiveOrMany(
...observables: IReactiveFunctionObservables<type... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.