text
stringlengths
10
953k
export type CommandHelpData = { name: string, shortBrief: string, description: string | null, structure: string, example: string, notes: string | null, options?: { [key: string]: string; } };
export class Logs { constructor(public message: string){} }
/** * @license * Copyright 2016 Google Inc. * 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...
import { ArtReportService } from "./art_report_service"; export class TbPrevReportService extends ArtReportService { constructor() { super() } getTBPrevReport() { return this.getReport(`/programs/${this.programID}/reports/tb_prev2`) } }
/** * @license * Copyright 2017 Google Inc. * * 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...
import { render, screen } from '@testing-library/react'; import { Header } from "./Header"; test('Header renders welcome message', () => { render(<Header />); const codeMessage = screen.getByText(/Welcome to the Rviewer React skeleton!/i); expect(codeMessage).toBeInTheDocument(); });
import { Message } from "discord.js"; import fetch from "node-fetch"; import Command from "../../structures/Command"; import Bot from "../../structures/Bot"; export default class BirdCommand extends Command { constructor(bot: Bot) { super(bot, { name: "bird", description: "Returns an image of a bird"...
import { NgModule } from '@angular/core'; import { MatToolbarModule} from '@angular/material/toolbar'; import {MatListModule} from '@angular/material/list'; import {MatButtonModule} from '@angular/material/button'; import {MatCardModule} from '@angular/material/card'; const MaterialComponents = [MatToolbarModule,MatLi...
import express from 'express' import puppeteer from 'puppeteer-extra' import StealthPlugin from 'puppeteer-extra-plugin-stealth' import AdblockPlugin from 'puppeteer-extra-plugin-adblocker' import { json } from 'body-parser' import { config } from 'dotenv' import { join } from 'path' import { GetComic } from './Util/Ge...
interface Ambox { (): Ambox; } declare const ambox: Ambox; declare module 'ambox' { export = ambox; }
import * as React from 'react'; import { DefaultButton } from 'office-ui-fabric-react/lib/Button'; import { FocusTrapZone } from 'office-ui-fabric-react/lib/FocusTrapZone'; import { Link } from 'office-ui-fabric-react/lib/Link'; import { TextField } from 'office-ui-fabric-react/lib/TextField'; import { Toggle, IToggle...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Supreme</source> <translation type="unfinished"/> </message> <message> <location line="...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-product-add', templateUrl: './product-add.component.html', styleUrls: ['./product-add.component.css'] }) export class ProductAddComponent implements OnInit { constructor() { } ngOnInit() { } }
import { Request, Response } from 'express'; import { Aggregate } from 'mongoose'; import Lemma from '../models/lemma.model'; import Synset from '../models/synset.model'; import { getPromisePerLemma, replaceUnderscores } from '../util/string.util'; import { Edge, HierarchyNode, InputGraph, LemmaPosRelations, ...
import * as THREE from 'three' import * as React from 'react' import create, { GetState, SetState, StoreApi, UseBoundStore } from 'zustand' import { prepare } from './renderer' import { DomEvent, EventManager, PointerCaptureTarget, ThreeEvent } from './events' import { calculateDpr, Camera, isOrthographicCamera, update...
import { Flow as IFlow } from "@bitflow/core"; import { Flow } from "@bitflow/flow"; import { useFlow } from "@bitflow/provider"; import { AutoGrid, Box, Card, CardContent, Heading, Text, TextLink, } from "@openpatch/patches"; import { useEffect, useState } from "react"; import { FlowCard } from "../compo...
/** * @license Angular v11.2.6 * (c) 2010-2021 Google LLC. https://angular.io/ * License: MIT */ import { AfterContentInit } from '@angular/core'; import { ChangeDetectorRef } from '@angular/core'; import { Compiler } from '@angular/core'; import { ComponentFactoryResolver } from '@angular/core'; import { Componen...
import React from 'react'; import { useLogionChain } from './logion-chain'; import { isExtensionAvailable } from './logion-chain/Keys'; import RootRouter from './RootRouter'; import Loader from './Loader'; import LandingPage from './LandingPage'; import { CommonContextProvider } from './common/CommonContext'; import {...
import {expect} from "chai"; import {Registry} from "../../src/registry"; import {Diagnostics} from "../../src/lsp/diagnostics"; import {MemoryFile} from "../../src/files/memory_file"; describe("LSP, diagnostics", () => { it("find issues for file", () => { const file = new MemoryFile("zfoobar.prog.abap", "BREAK...
/* * Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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...
import { genId } from '@m-fe/utils'; export const uuid = genId;
// @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTION...
import { gid, ShopOrigin } from '@shopfabrik/shopify-data'; import * as cache from '../../cache'; import { rest } from '../../client'; import * as _ from './Theme'; describe('api', () => { describe('Theme', () => { describe('find', () => { it('fetches single theme if it exists', async () => { const...
import { Text } from 'ink'; import React, { FC } from 'react'; import { BettererTaskLog } from './types'; export type BettererTaskStatusProps = { name: string; status: BettererTaskLog | null; }; export const BettererTaskStatus: FC<BettererTaskStatusProps> = function BettererTaskStatus({ name, status }) { if (!...
import * as React from 'react'; import { chatEvent } from '@/services'; import { assertNever } from '@/utils'; import EmojiPartRenderer from './emoji-part-renderer'; import TextPartRenderer from './text-part-renderer'; interface Props { className?: string; messageParts: chatEvent.MessagePart[]; } const Mess...
export class RouteParamReader { private static currentDate = new Date(); static getDefaultDate(): Date { return RouteParamReader.currentDate; } static monthToRouteParams(month: Date): number[] { return [month.getFullYear(), month.getMonth() + 1]; } static routeParmsToMonth(params: {[paramName: string]...
import React from 'react'; import { View, StyleSheet, TouchableOpacity, Switch } from 'react-native'; import { Text } from './Text'; import { useTheme } from '../../theme'; import type CommonViewProps from '../models/CommonViewProps'; import Icon from 'react-native-vector-icons/FontAwesome5'; export interface RowModel...
import * as iam from 'aws-cdk-lib/aws-iam'; import * as cognito from 'aws-cdk-lib/aws-cognito' import * as apigateway from 'aws-cdk-lib/aws-apigateway'; import * as lambda from 'aws-cdk-lib/aws-lambda'; import * as base from '../../lib/template/stack/base/base-stack'; import { AppContext } from '../../lib/template/app...
import { ObjectExt } from '../../util' import { Node } from '../../model/node' import { Cell } from '../../model/cell' import { Base } from '../base' export function getMarkup(tagName: string, noText = false) { return `<g class="rotatable"><g class="scalable"><${tagName}/></g>${ noText ? '' : '<text/>' }</g>` ...
import * as moment from 'moment'; export class BaseModel{ /** * 时间格式化 * @param val 值 * @param format 格式,默认格式为 YYYY-MM-DD HH:mm:ss * @returns {string} */ format(val:any,format:string='YYYY-MM-DD HH:mm:ss'){ return moment(val).format(format); } /** * 默认时间 * @par...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { FormGroup, FormControl } from '@angular/forms'; import { Subscription } from 'rxjs'; import { UserService } from '../../../../shared/user.service'; import { UserCart, NewUser } from '../../...
import React, { FunctionComponent, useState } from 'react'; import { useParams } from 'react-router-dom'; import { Button } from '../components/Button/Button'; import { $t } from '../helpers/i18n'; import { DATABASE_CONFIG } from '../queries/config/database.constants'; import { useGetBranchQuery } from '../queries/con...
/* * 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 { trigger, state, style, transition, animate, keyframes, animation, } from '@angular/animations'; export const somePulse = trigger('puleEffect', [ state( 'open', style({ height: '200px', opacity: 1, backgroundColor: 'yellow', }) ), state( 'close', style(...
import HmppsRestClient from './hmppsRestClient' import CommunityApiClient from './communityApiClient' import { CommunityApiManagedOffender, CommunityApiStaffDetails } from '../@types/communityClientTypes' import { User } from '../@types/CvlUserDetails' jest.mock('./tokenStore', () => { return jest.fn().mockImplement...
export * from './entry-client'
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-delivery-address', templateUrl: './delivery-address.component.html', styleUrls: ['./delivery-address.component.css'] }) export class DeliveryAddressComponent implements OnInit { constructor() { } ngOnInit(): void { } }
import { Component } from '@angular/core'; import { MatCheckboxModule } from '@angular/material/checkbox'; import { MatSelectModule } from '@angular/material/select'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { moduleMetadata, storiesOf } from '@storybook/angular'; import {...
/** * @license * Copyright 2017 Google LLC * * 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 ...
{ let name: string = 'Tom' let age: number = 3 // age = '3 years old' 会因类型不匹配而报错。 let isBoy :boolean = true let intro: string = `Hello, my name is ${name}. I'll be ${age + 1} years old next month.` let res: any = 'abc' // any 表示任意类型 res = 3434 // 用 void 表示没有任何返回值的函数 function doSth() : void { ...
import * as clc from "cli-color"; import * as childProcess from "child_process"; import * as controller from "../emulator/controller"; import * as Config from "../config"; import * as utils from "../utils"; import * as logger from "../logger"; import * as path from "path"; import { Constants } from "./constants"; impo...
const baseProductionCdnUrl = 'https://static2.sharepointonline.com/files/fabric/office-ui-fabric-react-assets/'; export const PersonaDetails = { imageUrl: baseProductionCdnUrl + 'persona-female.png', imageInitials: 'AL', primaryText: 'Annie Lindqvist', secondaryText: 'Software Engineer' };
import React from "react"; import ReactDOM from "react-dom"; import thunk from "redux-thunk"; import jwt from "jsonwebtoken"; import { Provider } from "react-redux"; import { applyMiddleware, createStore, compose } from "redux"; import { setCurrentUser } from "./actions"; import setAuthToken from "./utils/SetAuthToken"...
import { Component, OnInit } from '@angular/core'; import { NgForm } from "@angular/forms"; import { Router } from "@angular/router"; import { UserService } from '../../shared/user.service'; import { AuthService } from '../../services/auth.service'; @Component({ selector: 'app-sign-in', templateUrl: './sign-in.com...
import { Aurum } from 'aurumjs'; import { TextField, TextFieldProps } from './text_field'; export interface ColorPickerProps extends Omit<TextFieldProps, 'type'> {} export interface ColorPickerProps {} export function ColorPicker(props: ColorPickerProps) { const { ...inputProps } = props; return <TextField {...in...
/** * Created by xie on 2016/7/29. */ import {Component, Input, Output, OnInit, OnDestroy} from "@angular/core"; import {Hero} from "./hero"; import {EventEmitter} from "@angular/compiler/src/facade/async"; import {ajaxGet} from "rxjs/observable/dom/AjaxObservable"; import {HeroService} from "./hero.service"; import ...
import { AutoMapper } from "automapper-nartc"; import bcrypt from "bcrypt"; import { EventDispatcher } from "event-dispatch"; import httpStatus from "http-status-codes"; import { injectable } from "inversify"; import jwt from "jsonwebtoken"; import { autoMapper, eventDispatcher, userRepository } from "../....
import { PaypalCommerceSDK } from './paypal-commerce-sdk'; export function getPaypalCommerceMock(): PaypalCommerceSDK { return { Messages: () => ({ render: jest.fn(), }), PaymentFields: () => ({ render: jest.fn(), }), FUNDING: { PAYPAL: 'p...
import React from 'react'; import { Snippets } from '../private/Snippets'; import { Toggle } from '../../playroom/components'; import source from '../../utils/source.macro'; export const snippets: Snippets = [ { name: 'Standard', code: source(<Toggle label="Label" />), }, { name: 'Small', code: s...
import { createApp } from 'vue' import App from './App.vue' import ElementUI from 'element-plus'; import 'element-plus/lib/theme-chalk/index.css'; import router from './router' // vite 使用 esm 编译 import, electron 及 node.js 内置模块用 require 形式 const electron:any = require('electron') const ipc:any = electron.ipcRenderer i...
/* * 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 React, { FC } from 'react'; import { Modal } from '@percona/platform-core'; import { BackupLogsModalProps } from './BackupLogsModal.types'; import { ChunkedLogsViewer } from '../../ChunkedLogsViewer/ChunkedLogsViewer'; export const BackupLogsModal: FC<BackupLogsModalProps> = ({ title, isVisible, onClose, getLog...
/** * Clamps the given value between two other values. * @param min The lowest value possible. * @param max The highest value possible. * @param value The value to clamp. */ const clamp = (min: number, max: number, value: number) => value < min ? min : value > max ? max : value; export default clamp;
module BABYLON { export interface IDisposable { dispose(): void; } export class PointerEventTypes { static _POINTERDOWN = 0x01; static _POINTERUP = 0x02; static _POINTERMOVE = 0x04; static _POINTERWHEEL = 0x08; static _POINTERPICK = 0x10; public sta...
import React from 'react'; import { AppBar, IconButton, makeStyles, createStyles, Toolbar, Typography, } from '@material-ui/core'; import MenuIcon from '@material-ui/icons/Menu'; import BackIcon from '@material-ui/icons/ArrowBack'; import Link from 'next/link'; import { useRouter } from 'next/router'; impor...
import React from 'react'; import { render, fireEvent, wait } from '@testing-library/react'; import Input from '../../components/Input'; jest.mock('@unform/core', () => { return { useField() { return { fieldName: 'email', defaultValue: '', error: '', registerField: jest.fn(), }; }, }; }); ...
import { DbAuthentication } from './db-authentication' import { AccountModel, AuthenticationModel, LoadAccountByEmailRepository, HashComparer, Encrypter, UpdateAccessTokenRepository } from './db-authentication-protocols' const makeFakeAccount = (): AccountModel => ({ id: 'any_id', name: 'any_name', e...
import { Component, OnInit } from "@angular/core"; import { WorkFlowService } from "../../Services/workflow.service"; import { ActivatedRoute, Router } from "@angular/router"; import { NgxSpinnerService } from "ngx-spinner"; import { ToastrService } from "ngx-toastr"; @Component({ selector: "app-add-edit-dct", tem...
import {BrowserModule} from '@angular/platform-browser'; import {NgModule} from '@angular/core'; import {AppComponent} from './app.component'; import {ProductListComponent} from './products/product-list.component'; import {FormsModule} from '@angular/forms'; import {ConvertToSpacesPipe} from './shared/convert-to-spaces...
import { getRepository } from 'typeorm'; import Transaction from '../models/Transaction'; import AppError from '../errors/AppError'; class DeleteTransactionService { public async execute(id: string): Promise<void> { const transactionRepository = getRepository(Transaction); const transaction = await transact...
import { inject, injectable } from 'inversify'; import { ServiceIdentifiers } from '../container/ServiceIdentifiers'; import { TDictionary } from '../types/TDictionary'; import { TTransformersRelationEdge } from '../types/utils/TTransformersRelationEdge'; import { ILevelledTopologicalSorter } from '../interfaces/util...
import { addGlobalEventProcessor, getCurrentHub } from "@sentry/core"; import { Event, EventHint, Integration, StackFrame } from "@sentry/types"; import { addContextToFrame, logger } from "@sentry/utils"; const INTERNAL_CALLSITES_REGEX = new RegExp( ["ReactNativeRenderer-dev\\.js$", "MessageQueue\\.js$"].join("|") )...
import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; import { AlertState } from './show-state'; @Injectable() export class AlertHelper { private alertSubject = new Subject<AlertState>(); alertState = this.alertSubject.asObservable(); constructor() { } show( subject : string, bod...
import { registerAs } from '@nestjs/config'; const buildUri = (returnOption: 'string' | 'object' = 'string') => { if (process.env.MONGO_URI) { return process.env.MONGO_URI; } const uri = { protocol: process.env.MONGO_PROTOCOL || 'mongodb', host: process.env.MONGO_HOST || 'localhost', port: proces...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import { QueryClient, QueryClientProvider } from 'react-query'; import { createTheme, CssBaseline, ThemeProvider } from '@material-ui/core'; import { LazyGitHubAut...
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' import { RecoilRoot } from 'recoil' import reportWebVitals from './reportWebVitals' import * as Sentry from '@sentry/react' const sentryDsn = process.env.REACT_APP_SENTRY_DSN const sentryEnv = process.env.REACT_APP_...
import React, { useState } from 'react'; import { styled, t } from '@rabbitai-ui/core'; import Modal from 'src/components/Modal'; import cx from 'classnames'; import Button from 'src/components/Button'; import withToasts, { ToastProps } from 'src/messageToasts/enhancers/withToasts'; import SyntaxHighlighterCopy from 's...
/// fork from https://github.com/MetaMask/KeyringController/blob/master/index.js import { EventEmitter } from 'events'; import log from 'loglevel'; import encryptor from 'browser-passworder'; import * as ethUtil from 'ethereumjs-util'; import * as bip39 from 'bip39'; import { ObservableStore } from '@metamask/obs-stor...
import {AfterViewInit, Component, ElementRef, OnDestroy, OnInit, Renderer2, ViewChild} from '@angular/core'; import {HeaderService} from '../../services/header.service'; import {Subscription} from 'rxjs'; import {AuthenticationService} from '../../services/authentication.service'; import {SettingsService} from '../../s...
import { ForestInstance } from '.' import { Forest } from './instance' import { ForestConfig } from './interface/forest_config' const DEFAULT_HOST = 'http://localhost:8200' let instance: Forest /** * Use either global or instance pattern. * * ## Global Pattern * * For using global, init must be called, otherwis...
/** * InitFunc * @description 初始化方法类型 * @author ruixiaozi * @email admin@ruixiaozi.com * @date 2022年01月16日 19:20:11 * @version 2.0.0 */ export class InitFunc{ /** * 构造函数 * @param fn 方法本身 * @param priority 优先级 */ constructor(public fn: Function, public priority: number){ } }
import { invariant, isPropSchema, isAliasedPropSchema, isIdentifierPropSchema, } from "../utils/utils" import { _defaultPrimitiveProp } from "../constants" import { PropSchema, PropDef } from "../api/types" /** * Alias indicates that this model property should be named differently in the generated jso...
/* GENERATED FILE */ import * as React from "react"; import Svg, { Rect, Path } from "react-native-svg"; import { IconProps } from '../lib' function ArrowFatLinesUp(props: IconProps) { return <Svg viewBox="0 0 256 256" width={props.size} height={props.size} fill={props.color} {...props}><Rect width={256} height={25...
import { Middleware } from 'redux'; import { ConnectionHandler } from './connection-handler'; import { disconnectFromBackend, setConnectedToBackend } from './store/backend'; import { devices, deviceSelected, mesasurements } from './store/device'; import { RootState } from './store/root'; import { closeToast, openToast...
import Head from 'next/head' import * as R from 'ramda' import { Page, Context } from 'next-extensions' import { initApollo } from '../initApollo' import { initRedux } from '../initRedux' import { loadApolloData } from './loadApolloData' import { loadGetInitialProps } from './loadGetInitialProps' import { responceFin...
/* * Copyright 2020 * SRDC - Software Research & Development Consultancy; Ankara; Turkey In collaboration with * SRFG - Salzburg Research Forschungsgesellschaft mbH; Salzburg; Austria Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lice...
import { BigNumber, normalize, normalizeBN, valueToBigNumber } from './'; describe('BigNumber tests', () => { describe('valueToBigNumber', () => { it('should turn value to big number', () => { expect(valueToBigNumber('1923.232323')).toBeInstanceOf(BigNumber); }); }); describe('normalize', () => { ...
/// <reference path="globals/node/index.d.ts" /> /// <reference path="globals/pug/index.d.ts" />
import { Point } from './point'; export class Path { previous: Path; current: Point; constructor(previous: Path, current: Point ) { this.current = current; this.previous = previous; } }
declare module 'mock-express-request' { export default class Mock { constructor(param: object); } }
(function () { 'use strict'; angular.module('sample1App').directive('blade11Blade', [blade11Blade]); function blade11Blade() { return { replace: true, transclude: true, templateUrl: '/azureportalng/directives/blade/blade.html', controller: 'blade11'...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** * Manages a Microsoft Defender Advanced Threat Protection...
import { CommandClasses, Duration, validatePayload, ValueMetadata, } from "@zwave-js/core"; import type { Maybe, ValueID } from "@zwave-js/core"; import type { Driver } from "../driver/Driver"; import { CCAPI, SetValueImplementation, SET_VALUE, throwUnsupportedProperty, throwWrongValueType, } from "./API"; imp...
// // Copyright (c) Microsoft. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // 'use strict'; import { OrganizationMemberCacheProvider, IOrganizationMemberCacheCreateOptions, IOrganizationMemberCacheProvider } from './organizationMemberCacheProvider'; export as...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import type { Kernel, KernelMessage, ServerConnection, Session } from '@jupyterlab/services'; import type { ISignal, Signal } from '@phosphor/signaling'; import * as uuid from 'uuid/v4'; import '../../common/extensions'; imp...
import { Component } from '@angular/core'; import { FirebaseAuthenticationService } from './core'; @Component({ selector: 'app-root', templateUrl: 'app.component.html', styleUrls: ['app.component.scss'], }) export class AppComponent { constructor( private readonly firebaseAuthenticationService: FirebaseAut...
import { FieldValues, InternalFieldName } from '../types'; export const isMatchFieldArrayName = (name: string, searchName: string) => RegExp( `^${searchName}[\\d+]`.replace(/\[/g, '\\[').replace(/\]/g, '\\]'), ).test(name); export default ( names: Set<InternalFieldName<FieldValues>>, name: InternalFieldNa...
import { run_test } from '../test-harness'; run_test([ 'besselj(x,n)', 'besselj(x,n)', 'besselj(0,0)', '1', 'besselj(0,1)', '0', 'besselj(0,-1)', '0', 'besselj(x,1/2)-sqrt(2/pi/x)*sin(x)', '0', 'besselj(x,-1/2)-sqrt(2/pi/x)*cos(x)', '0', 'besselj(x,3/2)-sqrt(2/pi/x)*(sin(x)/x-cos(x))', ...
import { generateSyncPatterns } from 'src/util/tests/sync-patterns' import { BackgroundIntegrationTest, BackgroundIntegrationTestSetup, BackgroundIntegrationTestInstance, } from 'src/tests/integration-tests' import { setupBackgroundIntegrationTest } from 'src/tests/background-integration-tests' import { cre...
/** @jsx jsx */ import { jsx } from '__test-utils__/jsx'; import { mentionables } from '__tests__/elements/mention/useMention/onKeyDown/mentionables.fixture'; import { act, renderHook } from '@testing-library/react-hooks'; import { pipe } from 'common/pipe'; import { useMention, withMention } from 'elements/mention'; i...
import { SchematicContext, Tree, } from '@angular-devkit/schematics'; import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; import { addPackageJsonDependency, NodeDependency, NodeDependencyType, } from '@schematics/angular/utility/dependencies'; export const ngAdd = () => (tree: Tree, co...
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanLoad, NavigationExtras, Route, Router, RouterStateSnapshot, } from '@angular/router'; import { forkJoin, from, Observable, of } from 'rxjs'; import { first, mergeMap, tap } from...
import { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); })); it('should create the app', ...
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient"; import { UploadSigningCertificateRequest, UploadSigningCertificateResponse } from "../models/index"; import { deserializeAws_queryUploadSigningCertificateCommand, serializeAws_queryUploadSigningCertificateComman...
import { HttpErrorResponse } from '@angular/common/http'; import { InjectionToken } from '@angular/core'; import { environment } from '../environments/environment'; /* auth0 application configuration */ export const auth0Config = { domain: 'projectperform.eu.auth0.com', client_id: 'GNnNi0E0Bg5F3jAuFkDhKULWVgv3S21...
import { Neovim } from '@chemzqm/neovim' import manager from '../../list/manager' import { Range } from 'vscode-languageserver-protocol' import events from '../../events' import helper from '../helper' let nvim: Neovim const locations: any[] = [{ filename: __filename, range: Range.create(0, 0, 0, 6), text: 'foo'...
import React, { FC } from 'react'; import { Icon, IconInterface } from "@redesign-system/ui-core"; export const PageLastIcon: FC<IconInterface> = function PageLastIcon({ className, ...propsRest }) { const classNames = `PageLastIcon ${className}`; return ( <Icon alt="PageLast...
/* * Copyright (c) 2022 by MILOSZ GILGA <https://miloszgilga.pl> * * File name: ChooseSoftwareSelectBoxComponent.tsx * Last modified: 16/04/2022, 03:52 * Project name: digititles-imagine * * Licensed under the MIT license; you may not use this file except in compliance with the License. * * Permission is hereb...
export enum ApiErrorCode { TIMEOUT = -1, // 系统繁忙 SUCCESS = 0, // 成功 /**token 过期状态码code */ TOKEN_EXPIRE_CODE=-10001, /** * 成功 */ CODE_SUCCESS = 200, /** * 服务器错误 */ MSG_SUCCESS = "success", MSG_ERROR = "server error ", MSG_CATCH_ERROR = "server catch error", ...
import process from "https://deno.land/std@0.119.0/node/process.ts"; import { BackupClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupClient.ts"; import { ListRestoreJobsInput, ListRestoreJobsOutput } from "../models/models_0.ts"; import { deserializeAws_restJson1ListRestoreJobsCommand, s...