text
stringlengths
10
953k
import { Component } from '@angular/core' import { NavController } from 'ionic-angular' import { AppService } from '../../../app/app.service' import { EditProfileComponent } from '../../edit-profile/edit-profile.component' import { AngularFireAuth } from 'angularfire2/auth'; @Component({ selector: 'page-settings', ...
interface MongoDoc { _createTime?: any; [propName: string]: any; } interface SocotraAPIResponse { error: number; msg?: string; [propName: string]: any; } interface SocotraRoute { path: string; controller: string; method?: SocotraRequestMethod; middlewares?: Array<string>; par...
import { TableCell } from "@material-ui/core"; import { TableCellProps } from "@material-ui/core/TableCell"; import { makeStyles } from "@saleor/macaw-ui"; import classNames from "classnames"; import React from "react"; import Avatar, { AvatarProps } from "./Avatar"; const useStyles = makeStyles( theme => ({ ro...
import { Frontend } from './frontend' import { hterm, preferenceManager } from '../hterm' export class HTermFrontend extends Frontend { term: any io: any private htermIframe: HTMLElement private initialized = false private configuredFontSize = 0 private configuredLinePadding = 0 private con...
import React from "react"; import type { ComponentStory, ComponentMeta } from "@storybook/react"; import { Heading as HeadingPrimitive } from "./heading"; import argTypes from "./button.props.json" export default { title: "Components/Heading", component: HeadingPrimitive, argTypes, } as ComponentMeta<typeof Head...
type GetAuthorizationUrlFuncConfig = { callbackUrl: string; responseType?: string; state?: string; scopes?: string[]; }; export default GetAuthorizationUrlFuncConfig;
import * as React from "react"; import { CarbonIconProps } from "../../"; declare const DewPoint16: React.ForwardRefExoticComponent< CarbonIconProps & React.RefAttributes<SVGSVGElement> >; export default DewPoint16;
/* eslint-disable @next/next/no-img-element */ import Head from "next/head"; import Image from "next/image"; import styles from "../styles/Home.module.css"; import Navbar from "../components/navbar"; import Footer from "../components/footer"; import database from "../common/database"; import { GetStaticProps } from "ne...
/* eslint-disable class-methods-use-this */ import chalk from 'chalk'; import _ from 'lodash'; import path from 'path'; import { IMigrationContext } from '../migration-context'; import { IEnvironmentVariables, IRepo } from './base'; import GitAdapter from './git'; import GithubService from '../services/github' enum S...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { inject, injectable } from 'inversify'; import { Terminal } from 'vscode'; import { IWorkspaceService } from '../../application/types'; import { traceVerbose } from '../../logger'; import { IPlatformS...
// This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, wasmAssetsPath: "/assets/wasm", }; /* * For ...
// NOTE: This file is autogenerated. Do not modify. // See packages/babel-types/scripts/generators/ast-types.js for script used. interface BaseComment { value: string; start: number; end: number; loc: SourceLocation; type: "CommentBlock" | "CommentLine"; } export interface CommentBlock extends BaseComment {...
import React from 'react'; import { ComponentType } from 'react'; const LINKS: any[] = []; const createLinks = (Component: ComponentType) => { return LINKS.map((props) => { return { content: <Component {...props} />, id: props.id, }; }); };
import * as React from 'react' import PropTypes from 'prop-types' // import Nav from './nav' import '../styles/main.scss' import 'bootstrap/dist/css/bootstrap.css' const Layout = ({ children }) => ( <div> <div>{children}</div> </div> ) Layout.propTypes = { children: PropTypes.any, } export default Layout
import {Component, ViewChild, TemplateRef} from '@angular/core'; import {MatDialog, MatDialogRef, MatDialogConfig} from '@angular/material-experimental/mdc-dialog'; @Component({ selector: 'mdc-dialog-e2e', templateUrl: 'mdc-dialog-e2e.html', }) export class MdcDialogE2E { dialogRef: MatDialogRef<TestDialog> | nu...
/* GENERATED FILE */ import * as React from 'react'; import Svg, { Rect, Line, Path } from 'react-native-svg'; import { IconProps } from '../lib'; function GameController(props: IconProps) { return ( <Svg id="Raw" viewBox="0 0 256 256" width={props.size} height={props.size} {...pro...
import { Component, OnInit, Input } from '@angular/core'; import { ScanningResultService, VulnerabilityItem, VulnerabilitySeverity } from '../service/index'; import { ErrorHandler } from '../error-handler/index'; import { toPromise } from '../utils'; import { GRID_COMPONENT_HTML } from './scanning.html'; i...
import assert = require("assert"); import { emptyDir } from "fs-extra"; import * as yargs from "yargs"; import { Options } from "./lib/common"; import NpmClient, { fetchNpmInfo } from "./lib/npm-client"; import { AllPackages, NotNeededPackage, readNotNeededPackages, TypingsData } from "./lib/packages"; import { output...
import {existsSync, readFileSync} from 'fs'; import {resolve} from 'url'; import {ServerRuntime, ServerRuntimeConfig} from '../types'; import {sourcemap_stacktrace} from './sourcemaps'; import {transform} from './transform'; // This function makes it possible to load modules from the snowpack server, for the sake of S...
import { mdiCellphone, mdiEmail, mdiGoogleHangouts, mdiPhone, mdiSlack } from '@lumx/icons'; import { Button, Emphasis, IconButton, Orientation, Size, Theme, UserBlock } from '@lumx/react'; import React from 'react'; export const App = ({ theme }: any) => { const createSimpleAction = () => ( <Button ...
import { IInlineItems } from '../common'; class InlineItalic implements IInlineItems { constructor(private text: string = '') { } get contentIfFocus(): string { return this.text; } update(input: string): void { this.text = input; } get contentIfBlur(): string { return `<em${this.text}</em>...
import { from } from 'env-var' /** * Base configuration class that uses env-var and dotenv * Usage: * * ```ts * class AppConfig extends BaseConfig { * port = this.get('PORT').default(3000).asPortNumber() * } * const config = new AppConfig() * console.log(config.port) // 3000 * ``` * * Env names can also ...
import * as fs from 'fs'; import * as path from 'path'; import {ProcessRerunError} from './error'; const getFilesList = function(dir: string, fileList: string[] = [], directoryToSkip: string[] = [], ignoreSubDirs?: boolean): string[] { if (!fs.existsSync(dir)) { throw new ProcessRerunError('FileSystem', `${dir} ...
import { FC, useState } from "react"; import { View } from "react-native"; import { useGame } from "../../providers/GameProvider"; const BoardLogic: FC = ({ children }) => { const [prevLocation, setPrevLocation] = useState<[number, number]>(); const [moved, setMoved] = useState(false); const { moveRight, moveLef...
import cliSelect from 'cli-select'; import { createUserAdminOption } from './scriptOptions'; cliSelect({ values: ['Create user admin', 'Exit'], selected: '(*)', }) .then((response) => { switch (response.id) { case 0: createUserAdminOption(); break; default: process.exit(0)...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.21.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do no...
/** * * * OpenAPI spec version: 20200131 * * * 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 {Request, Response } from 'express'; import MessagesServices from '../../services/MessagesServices'; import { IMessageRequest } from '../interfaces/IMessages'; class MessagesController { static async index(req: Request, res: Response) { const user_id: String = String(req.params.user_id); t...
declare const _default: (componentOrElement: Element) => Window; export default _default;
<TS language="lt" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Spustelėkite dešinįjį klaviša norint keisti adresą arba etiketę</translation> </message> <message> <source>Create a new address</so...
import { PersistenceSystem } from "./PersistenceSystem"; export namespace PersistenceLocalStorage { export function create(): PersistenceSystem { const persistenceSystem: PersistenceSystem = { save: (t) => Promise.resolve(), load: (url) => Promise.resolve('data'), }; ...
import { RootState } from '../../app/store'; export const getAccessTokenSelector = () => (state:RootState) => state.authentication.accessToken; export const getUserIDSelector = () => (state: RootState) => state.authentication.userID; export const getIsAuthenticated = () => (state: RootState) => state.authentication....
/* Tree选择 - 角色选择 - 多选 */ import React, { useState, useMemo, useEffect, useCallback } from "react"; import { Tree, Modal } from "antd"; import { cloneDeep } from "lodash"; import { Role } from "@/models/index.type"; // ================== // 类型声明 // ================== type RoleLevel = Role & { key?: string; parent?...
import React, { FC, memo, useState } from "react"; import { IoMdClose, IoMdShareAlt } from "react-icons/io"; import { useHistory } from "react-router"; import Button from "../Button"; import { AiFillTags } from "react-icons/ai"; interface Props { children: string; questionID: string; tag: string; } const Questi...
import { pxToRem } from '../../../../utils'; export interface DialogVariables { border: string; rootBackground: string; rootBorderRadius: string; rootPadding: string; rootWidth: string; contentMargin: string; headerMargin: string; overlayBackground: string; overlayZIndex: number; boxShadow: str...
/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import { FirewallV4inRule } from './FirewallV4inRule'; import { FirewallV4outRule } from './FirewallV4outRule'; import { FirewallV6inRule } from './FirewallV6inRule'; import { FirewallV6outRule } from './FirewallV6outRule'; export type FirewallRules...
// Copyright The LearnSpot Authors 2021. All Rights Reserved. // Node module: @learnspot/discussion-board-management-frontend // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT // jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you ...
// Type definitions for @ember/controller 3.0 // Project: http://emberjs.com/ // Definitions by: Mike North <https://github.com/mike-north> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import Ember from 'ember'; export default class Controller extends Ember.Controller ...
import { Controller, Post, Body, UseGuards, Request, Get, Header, } from "@nestjs/common"; import { AuthGuard } from "@nestjs/passport"; import { AuthService } from "src/auth/auth.service"; import { ApplicationService } from "./application.service"; import { AppSearchDto } from "./dto/app-search.dto"; @C...
/* eslint-disable*/ import { WebApiExecuteRequest } from "../../types/WebApiExecuteRequest"; import { StructuralProperty } from "../../types/StructuralProperty"; import { OperationType } from "../../types/OperationType"; // Action CalculateRollupField export const CalculateRollupFieldMetadata = { parameterTypes: { ...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input } from '@angular/core'; import { NgbModal, NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { Map } from 'immutable'; import { CreateEventModalComponent } from './../create-event-modal/create-event-modal.component'; import { StateService } from...
import { UnitTestTree } from '@angular-devkit/schematics/testing'; import { HostTree } from '@angular-devkit/schematics'; import { createProject, saveActiveProject, setActiveProject, } from 'ng-morph/project'; import { createSourceFile } from 'ng-morph/source-file'; import { getClasses } from 'ng-morph/classes'; ...
import React, { useCallback, useEffect, useRef, useState } from "react"; import { Box, Button, FormHelperText, Grid, Theme, Tooltip, Typography, useTheme, } from "@material-ui/core"; import { AttachFile } from "@material-ui/icons"; import FilePreview, { getFileIconOrDefault } from "./File"; import { FileSelecto...
/* * 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 { darken, transparentize } from 'polished'; import * as React from 're...
version https://git-lfs.github.com/spec/v1 oid sha256:58dc488edd5d7fbe800b9dbe9c23603731363eac8532c587a114d37f369a2b8a size 596900
// smithy-typescript generated code import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerEx...
import React, { FC, useState } from "react"; import { AppBar, AppBarAction } from "@react-md/app-bar"; import { Button } from "@react-md/button"; import { DialogContent } from "@react-md/dialog"; import { Checkbox, Fieldset, Form, Select, useSelectState, } from "@react-md/form"; import { List, ListItem } from...
import * as fs from 'fs'; import * as prettier from 'prettier'; import { parse as DocParser } from 'react-docgen'; import * as dom from './dts-dom'; import * as Utils from './utils'; export interface ImportType { named?: string; default?: string; from: string; } export interface Extends { includeProps...
import { Component, NotFoundException } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; import { Item } from '../model/schemas/item/item'; import { ItemSchema } from '../model/schemas/item/item.schema'; import { ItemDto } from './item.dto'; @Component() export ...
import Scale from './Scale'; import { ScaleTick, Dictionary } from '../util/types'; declare class IntervalScale<SETTING extends Dictionary<unknown> = Dictionary<unknown>> extends Scale<SETTING> { static type: string; type: string; protected _interval: number; protected _niceExtent: [number, number]; ...
/* * Copyright 2022 Salto Labs 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 applicable ...
import eventCenter from "@/utils/event"; export const responseResolver = (response: any) => { try { if (response.code !== 0) { response.message && eventCenter.emit("ajax-request-error", response.message); return false; } else if (response.message && response.message !== "ok") { eventCenter....
export default function setupPipeline(kolkrabbi: any, app: any, settings: any, pipelineID: any, ciSettings?: any): Promise<any>;
import { expect } from 'chai'; import * as http from 'http'; import * as https from 'https'; import * as path from 'path'; import * as fs from 'fs'; import * as ChildProcess from 'child_process'; import { app, session, BrowserWindow, net, ipcMain, Session } from 'electron/main'; import * as send from 'send'; import * a...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0"> <context> <name>Sumokoin::PendingTransactionImpl</name> <message> <location filename="../src/wallet/api/pending_transaction.cpp" line="95"/> <source>daemon is busy. Please try again later.</source> <translation type=...
const Instagram = ({ ...props }) => { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor" {...props} > <path d="M17.34,5.46h0a1.2,1.2,0,1,0,1.2,1.2A1.2,1.2,0,0,0,17.34,5.46Zm4.6,2.42a7.59,7.59,0,0,0-.46-2.43,...
import React, { useState, FormEvent, ChangeEvent } from "react"; import { Map, Marker, TileLayer } from 'react-leaflet'; import { LeafletMouseEvent } from 'leaflet'; import { FiPlus } from "react-icons/fi"; import '../styles/pages/create-orphanage.css'; import Sidebar from "../components/Sidebar"; import MapIcon fro...
import * as React from 'react' import FlagIconFactory from 'react-flag-icon-css' import styled from '@emotion/styled' import { Box } from 'theme-ui' // Please only use `FlagIconFactory` one time in your application, there is no // need to use it multiple times (it would slow down your app). You may place the // line b...
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Public deno module. export { noColor, pid, env, exit, isTTY, execPath } from "./os"; export { chdir, cwd } from "./dir"; export { File, open, openSync, stdin, stdout, stderr, read, readSync, write, writeSync, seek, se...
import { t } from '../../common'; export type EventHistoryItem = { id: string; timestamp: number; event: t.Event; count: number; }; /** * A state hook that stores a set of events coming via an event-bus. */ export type EventBusHistoryHook = ( bus?: t.EventBus<any>, options?: EventBusHistoryOptions, ) =>...
import Link from 'next/link' function BtnSaveNext() { return ( <> <Link href="/mi-proyecto"> <button className="btn-save-next">Guardar y Continuar</button> </Link> </> ) } export default BtnSaveNext
import { Directive, ElementRef, AfterViewInit, AfterViewChecked, OnDestroy, Input, Output, EventEmitter } from '@angular/core'; @Directive({ selector: '[odpTimeoutTrigger]' }) export class TimeoutTriggerDirective implements AfterViewInit, AfterViewChecked, OnDestroy { @Input() odpTimeoutTrigger: number; @Output...
import React from 'react' const ManArtistMediumSkinTone = ({ size, rem }: { size: number | string, rem?: boolean }) => { const width = (typeof size === 'string') ? size : rem ? `${size}rem` : `${size}px` return ( ) } export default ManArtistMediumSkinTone
import { BaseCommand } from '@adonisjs/core/build/standalone'; import { MongodbContract } from '@ioc:Mongodb/Database'; import { AutoIncrementModel, Model } from '@ioc:Mongodb/Model'; export default class MongodbEnsureIndexes extends BaseCommand { static commandName: string; static description: string; stat...
import { beforeEach, describe, expect, it, jest } from '@jest/globals'; import { cxConstAsset } from '@proc7ts/context-builder'; import { Mock } from 'jest-mock'; import { Component, ComponentContext, ComponentElement, ComponentSlot } from '../../component'; import { ComponentClass, DefinitionContext } from '../../comp...
import { Statement, Attachment, MultiPart } from "../interfaces/Statement"; import { StatementResponseWithAttachments, StatementsResponseWithAttachments, } from "../interfaces/XAPI"; const crlf: string = "\r\n"; export function parseMultiPart( data: string ): StatementResponseWithAttachments | StatementsRespons...
export class MissingParamError extends Error { constructor(param: string) { super(`The "${param}" parameter is missing in request body.`) this.name = 'MissingParamError' } }
namespace HoverfulScatter { import plt = Bokeh.Plotting; const {range, zip} = Bokeh.LinAlg; Bokeh.set_log_level("info"); Bokeh.logger.info(`Bokeh ${Bokeh.version}`); const M = 100 const xx: Array<number> = [] const yy: Array<number> = [] for (let y = 0; y <= M; y += 4) { for (let x = 0; x <= M; x...
export enum TestTrigger { Failure = 'Failure', Success = 'Success', UnexpectedTrigger = 'UnexpectedTrigger', ExecuteCode = 'ExecuteCode', Reset = 'Reset' }
import { INode } from "./node"; import { IBaklavaEvent, IPreventableBaklavaEvent, IHook } from "../../baklavajs-events/types"; import { IInterfaceState } from "./state"; export interface INodeInterface { /** Additional Properties */ [k: string]: any; id: string; isInput: boolean; parent: INode; ...
/* * CloudBeaver - Cloud Database Manager * Copyright (C) 2020-2021 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import styled from 'reshadow'; import type { AdministrationItemDrawerProps } from '@cloudbeaver/co...
const rules = { monitorInterval: { init: 1, min: 1, max: Math.floor((Math.pow(2, 32) / 2 - 1) / 1000), rule: (value: string | number | undefined): boolean => { const obj = rules.monitorInterval; return obj.min <= Number(value) && Number(value) <= obj.max; }, value: (value: string |...
import MagicString from 'magic-string' import { escapeRegExp } from './utils' import { regexClassGroup } from './regexes' export interface TransformerOptions { include?: RegExp[] } export type TransformerFunction = (code: string, id: string) => string | undefined | null export type Transformer<T extends Transforme...
import {CommonModule} from "@angular/common"; import {NgModule} from "@angular/core"; import {MatButtonModule, MatDialogModule, MatDividerModule, MatIconModule, MatListModule, MatToolbarModule} from "@angular/material"; import {RouterModule} from "@angular/router"; import {I18nComponent} from "../../i18n/i18n.component...
import { expect } from 'chai'; describe('TypeScript', () => { describe('Operator', () => { it('IntegerDivisionRoundsDown', () => { expect(Math.floor(11 / 3)).to.equal(3); }); }); });
version https://git-lfs.github.com/spec/v1 oid sha256:aca09673fd588ebeac0fb7f05bc69166b177ff1722fd148788b04cbbdedcf6d0 size 333700
export { default as ClearRefinements } from './ClearRefinements'; export { default as CurrentRefinements } from './CurrentRefinements'; export { default as Hits } from './Hits'; export { default as PerPage } from './PerPage'; export { default as Pagination } from './Pagination'; export { default as SearchBox } from './...
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext' import LinkCreateRequestValidator from 'App/Validators/LinkCreateRequestValidator' import Link from 'App/Models/Link' import User from 'App/Models/User' import { rules, schema, validator } from '@ioc:Adonis/Core/Validator' import AppException from 'App/...
/* * Copyright 2020 Spotify AB * * 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 to i...
/* * 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 agreed to in w...
export default (value: unknown): value is Function => typeof value === "function";
/* istanbul ignore file - tricky to import some things from this module during testing */ // semantic version export { VERSION } from "./version" export { CstParser, EmbeddedActionsParser, ParserDefinitionErrorType, EMPTY_ALT } from "./parse/parser/parser" export { Lexer, LexerDefinitionErrorType } from "./s...
import * as React from 'react'; interface LinkProps { target?: string; children?: string; href?: string; style?: object; __designMode?: string; } /** * 文字 字体、大小、行高 * @param props */ const Link: React.ForwardRefRenderFunction<HTMLAnchorElement, LinkProps> = (props, ref) => { const { children, __designMod...
import { TwitterPost, TwitterDeleteInfo } from './TwitterModels'; import { Post } from '../../../entities/Post'; import { Account } from '../../../entities/Account'; import { Embed } from '../../../entities/Embed'; import { PolitEmbedType } from '../../../models'; import { stripHTML } from '../../../utils/stripHTML'; ...
import {Component} from '@angular/core'; /** * @title Basic use of `<mat-table>` (uses display flex) */ @Component({ selector: 'table-basic-flex-example', styleUrls: ['table-basic-flex-example.css'], templateUrl: 'table-basic-flex-example.html', }) export class TableBasicFlexExample { displayedColumns = ['po...
// Generated file. Do not edit export const statusCodeToReasonPhrase: Record<string, string> = { "202": "Accepted", "502": "Bad Gateway", "400": "Bad Request", "409": "Conflict", "100": "Continue", "201": "Created", "417": "Expectation Failed", "424": "Fai...
import * as React from 'react'; import { connect } from 'react-redux'; import Checkbox from 'material-ui/Checkbox'; import RootSelector from './RootSelector'; import { getSchemaSelector } from '../../introspection'; import { changeDisplayOptions } from '../../actions/'; interface SettingsProps { schema: any; op...
import { Request, Response, NextFunction } from 'express'; import jwt from 'jsonwebtoken'; import { promisify } from 'util'; interface JWTDecoded { id: number; } export default class Authenticate { async auth(request: Request, response: Response, next: NextFunction) { const { authorization } = request.headers...
import type * as net from 'net'; import type { IpcPacketBuffer, IpcPacketBufferCore, IpcPacketBufferList } from 'socket-serializer'; import { WriteBuffersToSocket } from 'socket-serializer'; import type * as Client from '../IpcBusClient'; import * as IpcBusCommandHelpers from '../IpcBusCommand-helpers'; import { IpcB...
import { MilkdownPlugin, Parser, parserCtx, ParserReady, prosePluginsCtx, schemaCtx, serializerCtx, SerializerReady, } from '@milkdown/core'; import { Node as ProseNode, Schema, Slice } from 'prosemirror-model'; import { Plugin } from 'prosemirror-state'; const clipboardPlugin = (schema...
import * as rp from 'request-promise' import { Microservice } from '@microservices/validate' import HttpRun from '~/commands/run/HttpRun' import * as utils from '~/utils' import Run from '~/commands/run/Run' jest.mock('request-promise') jest.mock('~/utils/docker') jest.mock('~/utils/getOpenPort') describe('HttpRun.js...
/** * 所有配置通过此文件进行配置 * @author xiejiahe * @url https://github.com/xjh22222228/nav */ export const appLanguage = [ '英文', '中文', 'GitHub' ]; export const webpLanguage = [ 'EN', 'CN', 'Git' ]; // 如果没有请赋值空字符串 export const git = 'https://github.com/xjh22222228/nav'; export const caseNumber = '粤ICP备16052285...
const createError = require("http-errors"); const express = require("express"); const path = require("path"); const cookieParser = require("cookie-parser"); const methodOverride = require("method-override"); const logger = require("morgan"); import api from "./routes"; const app = express(); const allowCrossDomain = ...
/** * ============LICENSE_START======================================================================== * ONAP : ccsdk feature sdnr wt odlux * ================================================================================================= * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. Al...
<TS language="eo" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Dekstre klaku por korekti au etikedo</translation> </message> <message> <source>Create a new address</source> <translation>...
import React from "react"; import "./footer.scss"; import Icon from "../images/icon-external-link.inline.svg"; export default class Footer extends React.Component { render() { return ( <footer className="footer"> <div className="footer__container"> <h2 className="footer__title" id="refere...
declare namespace omegaup { export interface Experiments { }; export interface EventListenerList { }; export interface OmegaUp { addError: (error: any) => void; convertTimes: (item: any) => any; experiments?: omegaup.Experiments; loggedIn: boolean; on: (events: string, handler: () => voi...
import { assertEquals } from "https://deno.land/std@0.61.0/testing/asserts.ts"; import { base64Decode, jsonParse } from "../utils.ts"; // base64Decode() Deno.test("it can decode base64 strings", () => { assertEquals(base64Decode("aGVsbG8gd29ybGQ="), "hello world"); }); Deno.test("it always returns strings", () => {...
import { Request } from 'express'; import { HttpError } from '../../shared/httpErrors'; import { Handler } from '../../shared/handler'; import { UserAlreadyActivatedError } from '@app/userAccess/domain/user'; import { TokenAlreadyUsedError, TokenNotFoundError, } from '@app/userAccess/domain/userActivation'; import ...
import request from 'umi-request'; import { TableListParams } from './data'; export async function optionRule(method: string, params?: TableListParams) { return request('/server/admin/admin/menu', { method: 'POST', data: { ...params, method: method } }) } export async function batchRule(m...