text
stringlengths
10
953k
import type { AxiosRequestConfig, AxiosInstance, AxiosResponse } from 'axios'; import type { RequestOptions, Result, UploadFileParams } from '../../../../types/axios'; import type { CreateAxiosOptions } from './axiosTransform'; import axios from 'axios'; import qs from 'qs'; import { AxiosCanceler } from './axiosCancel...
import { default as openapiTS } from "../src/index"; describe("formatter", () => { it("basic", () => { const schema = { openapi: "3.0.1", components: { schemas: { date: { type: "string", format: "date-time", }, }, }, }; expect(...
export interface User { emailId?: string, phone?: string, newPassword?: string, firstName?: string, lastName?: string, auth?: boolean, token?: string, data?: any }
import { blankLine, getIndentation } from "./utilities"; export function getDocstringIndentation( document: string, linePosition: number, defaultIndentation: string, ): string { if (linePosition === 0) { return "" } const lines = document.split("\n"); const definitionPattern = /\b(...
import { convertNoIndex } from "../no-index"; describe(convertNoIndex, () => { test("conversion without arguments", () => { const result = convertNoIndex({ ruleArguments: [], }); expect(result).toEqual({ rules: [ { ruleName: "rxjs...
import React, { useCallback, useEffect, useMemo, useRef } from 'react' import { DownOutlined, SyncOutlined } from '@ant-design/icons' import { Dropdown, Menu } from 'antd' import { useSpring, animated } from 'react-spring' import { getValueFormat } from '@baurine/grafana-value-formats' import { useTranslation } from 'r...
export * from './sponsorAttend.component';
#!/usr/bin/env node_modules/.bin/ts-node // Shebang is required, and file *has* to be executable: chmod +x file.test.js // See: https://github.com/tapjs/node-tap/issues/313#issuecomment-250067741 import { test } from 'tap'; import * as path from 'path'; import * as dockerFile from '../../lib/docker-file'; const getD...
import { AsyncAction } from "./AsyncAction.d.ts"; import { Subscription } from "../Subscription.d.ts"; import { AsyncScheduler } from "./AsyncScheduler.d.ts"; import { SchedulerAction } from "../types.d.ts"; export declare class VirtualTimeScheduler extends AsyncScheduler { maxFrames: number; /** @deprecated remove...
import { Is } from '../is/index'; import { rpc } from '../rpc'; export default class MulTable extends Is.Program { constructor(screen: Is.Screen) { super('乘法表', { }, screen); } };
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { NotificationService } from 'app/services/notification/notification.service'; @Component({ selector: 'app-pipeline-form', templateUrl: './pipelin...
// This class is used of the case when there are multiple edges, but there is no need to duplicate layers. import {BasicGraph} from '../../structs/BasicGraph' import {GeomNode} from '../core/geomNode' import {Database} from './Database' import {LayerArrays, layersAreCorrect} from './LayerArrays' import {LayerEdge} fr...
declare module 'node-adodb' { let PATH: string; const open: (connection: string, x64?: boolean) => open; export interface open { query<T>(sql: string): Promise<T>; execute<T>(sql: string, scalar?: string): Promise<T>; schema<T>(type: number, criteria?: any[], id?: string): Promise<T>; } }
import { FormFieldItem } from '@bigcommerce/checkout-sdk'; import { getIn, FieldArray, FieldArrayRenderProps } from 'formik'; import { difference, kebabCase, noop, pick } from 'lodash'; import React, { memo, useCallback, ChangeEvent, FunctionComponent, ReactNode } from 'react'; import DynamicFormFieldType from './Dyna...
import inquirer = require('inquirer'); import { StrykerOptions } from '@stryker-mutator/api/core'; import Preset from './Preset'; import PresetConfiguration from './PresetConfiguration'; const handbookUrl = 'https://github.com/stryker-mutator/stryker-handbook/blob/master/stryker/guides/react.md#react'; /** * More i...
/** * @hidden */ export default function mustBeInteger(name: string, value: number, contextBuilder?: () => string): number;
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { Component, OnInit } from '@angular/core'; import { AngularFireAuth } from '@angular/fire/auth'; import firebase from 'firebase/app'; import { Router } from '@angular/router'; import { AlertController } from '@ionic/angular'; @Component({ selector: 'app-login', templateUrl: './login.page.html', styleUrls...
import { forceSimulation, forceLink, forceManyBody, forceX, forceY, SimulationLinkDatum, forceCollide } from "d3-force"; import { select } from "d3-selection"; import { OntologyVertexDatum } from "../types"; import { Ontology } from "../../../d"; import { drawHulls } from "./hulls"; import React from "react"; impor...
import { PersonalLoanRoutingModule } from './personal-loan-routing.module'; describe('PersonalLoanRoutingModule', () => { let personalLoanRoutingModule: PersonalLoanRoutingModule; beforeEach(() => { personalLoanRoutingModule = new PersonalLoanRoutingModule(); }); it('should create an instance', () => { ...
import { ButtonBar, BackButton, LoadingSpinner, useAccount } from "common-ui"; import { useRouter } from "next/router"; import { Footer, Head, Nav } from "../../../components"; import { BulkMetadataEditor } from "../../../components/object-store"; import { useDinaIntl } from "../../../intl/dina-ui-intl"; export defaul...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import Factory from 'tinymce/core/api/ui/Factory'; import Tools from ...
import React, { createContext, useContext, useCallback, useState } from 'react'; import { uuid } from 'uuidv4'; import ToastContainer from '../components/ToastContainer'; export interface ToastMessage { id: string; type?: 'sucess' | 'error' | 'info'; title: string; description?: string; } interface ToastConte...
import env from '@beam-australia/react-env'; export const FLAG_DISABLE_SIGNUPS = env('FLAG_DISABLE_SIGNUPS') === 'true';
import React from 'react'; import { toId } from '@storybook/router'; import { Story, StoryProps as PureStoryProps } from '@storybook/components'; import { CURRENT_SELECTION } from './shared'; import { DocsContext, DocsContextProps } from './DocsContext'; interface CommonProps { height?: string; inline?: boolean; ...
GOCAD TSurf 1 HEADER { name:PNRA-CRSF-YUHA-Shell_Beds_fault-CFM5_2000m *visible:true *solid*color:0.424887 0.993218 0.131616 1 } GOCAD_ORIGINAL_COORDINATE_SYSTEM NAME Default AXIS_NAME "X" "Y" "Z" AXIS_UNIT "m" "m" "m" ZPOSITIVE Elevation END_ORIGINAL_COORDINATE_SYSTEM TFACE VRTX 1 608340.89844 3622947.81250 -5651.5639...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {Config, NewPlugin, Printer, Refs} from '../types'; import {printListItems, printObjectProperties} fr...
//// <reference path="../../lib/phaser.comments.d.ts"/> /** * This draws the Fretboard Background * * @class FretboardBackground * @extends {Background} */ class FretboardBackground extends Background { createBackground() : void { // Fretboard background var img:Phaser.Image = this.game...
import { Property } from "@tsed/schema"; export class StateModel { @Property() id: string; @Property() googleId: string; @Property() name: string; @Property() confirmed: string; @Property() death: string; @Property() countryId: string; @Property() updatedAt...
import type { Immutable } from 'immer' import { createSelector } from 'reselect' import type { XkcdInfo } from '@/eggs/xkcd/contracts/api-response' import type { XkcdAwareState } from '@/eggs/xkcd/contracts/state' import { XkcdLoadingState } from '@/eggs/xkcd/contracts/state' import { XKCD_SLICE } from '@/eggs/xkcd/sl...
/* * LiskHQ/lisk-commander * Copyright © 2021 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied...
export const c_tree_view_m_compact_m_no_background__node_nested_indent_base: { "name": "--pf-c-tree-view--m-compact--m-no-background__node--nested-indent--base", "value": "3rem", "var": "var(--pf-c-tree-view--m-compact--m-no-background__node--nested-indent--base)" }; export default c_tree_view_m_compact_m_no_back...
/* eslint-disable @typescript-eslint/explicit-function-return-type */ import { all, fork } from 'redux-saga/effects'; import authSaga from './auth'; import navigationSaga from './navigation'; import dashboardSaga from './dashboard'; import settingsSaga from './setting'; import logsSaga from './logs'; export default f...
import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core'; import { ComponentBase, IComponentBase, applyMixins, ComponentMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base'; import { Schedule } from '@syn...
import { garamond, unica } from "Assets/Fonts" import { Truncator } from "Components/Truncator" import _ from "lodash" import React from "react" import styled from "styled-components" import Colors from "../../../Assets/Colors" import { ErrorBoundary } from "../../ErrorBoundary" import { pMedia } from "../../Helpers" i...
/* @license * Copyright 2019 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { LibraryAssetComponent } from './library-asset.component'; describe('LibraryAssetComponent', () => { let component: LibraryAssetComponent; let fixture: ComponentFixture<LibraryAssetComponent>; beforeEach(async () => { await TestBed....
// Libraries import React, {PureComponent} from 'react' import {Route, Switch} from 'react-router-dom' // Components import {ErrorHandling} from 'src/shared/decorators/errors' import LoadDataTabbedPage from 'src/settings/components/LoadDataTabbedPage' import LoadDataHeader from 'src/settings/components/LoadDataHeader'...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { LeadingPipe } from './leading.pipe'; @NgModule({ declarations: [ LeadingPipe, ], imports: [ CommonModule ], exports: [ LeadingPipe, ] }) export class PipesModule { }
import {IObj, IPos, LWChartOptions, LWChartTextStyle} from "./utils/interfaces"; import {formatPadding, getVertexPosition, isInBrowser, isMobile, off, on} from './utils'; export default abstract class Chart<T extends LWChartOptions> { protected constructor (el: HTMLElement, options?: T) { this.el = el; this....
<TS language="ru_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...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import * as React from 'react'; import { GroupedListBase } from './GroupedList.base'; import { IList, IListProps } from '../../List'; import { IRefObject, IRenderFunction } from '../../Utilities'; import { IDragDropContext, IDragDropEvents, IDragDropHelper } from '../../utilities/dragdrop/index'; import { ISelection, S...
import { Component, DebugElement } from '@angular/core'; import { TestBed, ComponentFixture, fakeAsync, tick } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DelayDirective } from './delay.directive'; @Component({ template: `<p *bmDelay="500">Test</p>` }) class TestDelayDirec...
import { Component, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; @Component({ selector: 'app-dialog', templateUrl: './dialog.component.html', styleUrls: ['./dialog.component.scss'] }) export class DialogComponent { } @Component({ selector: 'app-dialog-button', temp...
import { ArmorType, ArmorSize } from '../types/core'; import ARMOR_SIZE_DATA from '../data/armor-size.json'; import { Coin, coinMultiply } from './coin'; export const armorTypeMetaTranslates = { category: '盔甲类型', cost: '价格', ac: '护甲加值', maxDex: '最大敏捷加值', penalty: '防具检定减值', arcaneFailureChance: '奥术失败机率', ...
import Role from "./Roles"; export const logout = () => { localStorage.removeItem('token'); localStorage.removeItem('role'); window.location.reload(); } export const removeToken = () => { localStorage.removeItem('role'); return localStorage.removeItem('token'); } export const getToken = () =...
import { Component, Input, OnInit } from '@angular/core'; import { Router } from '@angular/router'; //import { Console } from 'console'; import { Assessment } from '../AngularModels/Assessment'; import { Diagnosis } from '../AngularModels/Diagnosis'; import { Patient } from '../AngularModels/Patient'; import { Vitals }...
import { Point } from '../type/index'; export declare const getCorssPointOfLine: (a: Point, b: Point, c: Point, d: Point) => false | { x: number; y: number; }; export declare const isInSegment: (point: any, start: any, end: any) => boolean;
import React from 'react'; import createSvgIcon from './helpers/createSvgIcon'; export default createSvgIcon( <path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM10 4h4v2h-4V4zm10 15H4V8h16v11z" />, 'WorkOutlineTwoTone', ...
import React from 'react' // @ts-ignore import { ResponsiveWrapper, Dimensions } from '@bitbloom/nivo-core' import { BulletSvgProps } from './types' import { Bullet } from './Bullet' export const ResponsiveBullet = (props: Omit<BulletSvgProps, 'height' | 'width'>) => ( <ResponsiveWrapper> {({ width, height...
import { FusionChartStatic } from "fusioncharts"; declare namespace Botswana {} declare var Botswana: (H: FusionChartStatic) => FusionChartStatic; export = Botswana; export as namespace Botswana;
describe('connective/html', () => { require('../renderer/test'); });
import test from "ava"; import * as sinon from "sinon"; import { GraphQLResolveInfo } from "gatsby/graphql"; import { asStub } from "./__testutils__/asStub"; import * as libServer from "../src/index.server"; test("returns a namespaced GraphQL field config", (t) => { const actual = libServer.buildFluidFieldConfig({ ...
import * as path from 'path'; import * as fs from 'fs-extra'; import * as inquirer from 'inquirer'; import { Context } from './domain/context'; import { ConfirmQuestion } from 'inquirer'; const prevLambdaRuntimeVersions = ['nodejs8.10']; const lambdaRuntimeVersion = 'nodejs10.x'; const jsonIndentation = 4; export asy...
import React from "react"; import FilteredTag from "../../components/FilteredTag"; import { useTopTag } from "../../hooks/useTopTag"; import { TagWrapper, Wrapper } from "./styles"; const Aside = () => { const tags = useTopTag(); return ( <Wrapper> <TagWrapper>Tags</TagWrapper> {Object.keys(tags).m...
import { test } from "./test/wpt.ts"; test("wasm");
export * from './cart-config.service'; export * from './cart-validation-state.service'; export * from './multi-cart-state-persistence.service'; export * from './product-import-info.service';
/** * @author: xuyang * 菜单组件 * */ import React, { Component } from 'react' import { Menu as AntdMenu } from 'antd' import Menu, { MenuProps } from 'antd/lib/menu' const { Item, SubMenu } = AntdMenu export type iconFunc = (item: dataType, level: number) => React.ReactNode export interface dataType { key: str...
type ConvertToRegex = (phrase: string) => RegExp; export const convertToRegex: ConvertToRegex = (phrase) => { try { const [, regex, tags] = phrase.split('/'); return new RegExp(regex, tags); } catch (error) { throw new Error(`Error converting "${phrase}" to RegExp`); } };
import {Reducer} from "redux" import {WikiSearchState} from "@uw/domain" import {WIKI_SEARCH, SET_WIKI_SEARCH} from "./constants" import {SET_LOADER} from "../loader" const initialState: WikiSearchState = { loading: false, } export const wikiSearchReducer: Reducer<WikiSearchState> = (state = initialState, action) =...
/** * Keepa API * The Keepa API offers numerous endpoints. Every request requires your API access key as a parameter. You can find and change your key in the keepa portal. All requests must be issued as a HTTPS GET and accept gzip encoding. If possible, use a Keep-Alive connection. Multiple requests can be made in ...
import React from 'react'; import styled from 'styled-components'; import { Box, BoxProps } from '@material-ui/core'; import { Kujenga } from '@kujenga/icons'; const StyledKujenga = styled(Kujenga)` max-width: 100%; width: auto; height: auto; `; export default function Logo(props: BoxProps) { return ( <Bo...
import { DistrictMappingPage } from '../district-mapping/district-mapping.page'; import { AppGlobalService, AppHeaderService, CommonUtilService, FormAndFrameworkUtilService, TelemetryGeneratorService, InteractType, ID, CorReleationDataType } from '../../services'; import { InteractSubtype, PageId, Environment }...
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { BackendServiceHelper, BodyParser } from './backend.service.helper'; import { BackendError } from '.'; import { ConfigService, AppStateService } from '../_app-services'; import { ICredentialsObject, IAuthenticate...
// This gets executed from the main thread and serves as an interface // to communicate with the Lifecycle worker, so it's a "Server" in terms of decentraland-rpc import future, { IFuture } from 'fp-future' import { TransportBasedServer } from 'decentraland-rpc/lib/host/TransportBasedServer' import { WebWorkerTranspo...
export as namespace acorn export = acorn declare namespace acorn { function parse(input: string, options: Options): Node function parseExpressionAt(input: string, pos: number, options: Options): Node function tokenizer(input: string, options: Options): { getToken(): Token [Symbol.iterator](): Iterator<...
import { getFavourite, updateFavourite, getRandomFavourite } from "$lib/Favourite" import { updateAccountFavourited } from "$lib/Account" import cookie from 'cookie'; const RANDOM = 1; export async function get(request: Request) :json { let result; const operation = request.query.get('operation'); switch(...
import * as Ot from "@ot-builder/ot"; import { CoordRectifier, GlyphReferenceRectifier, PointAttachmentRectifier, PointAttachmentRectifyManner } from "../../interface"; import { RectifyImpl } from "../../shared"; interface BaseRectifyFn { baseCoord(lc: Ot.Base.Coord): Ot.Base.Coord; } function pr...
// Type definitions for lodash.trimEnd 4.5 // Project: https://lodash.com // Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version:...
import { StyleSheet } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#F0F0F7', }, }); export default styles;
import { STU3_BackboneElement } from './STU3_BackboneElement' import { STU3_Coding } from './STU3_Coding' import { STU3_DomainResource } from './STU3_DomainResource' import { STU3_Reference } from './STU3_Reference' import { STU3_Signature } from './STU3_Signature' export class STU3_Contract_Signer extends STU3_B...
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const IoIosAlbums: IconType;
import React, { Component } from 'react'; import { StyleSheet, Switch, Text, View } from 'react-native'; import { ExampleContent } from './ExampleContent'; import { TopPopup } from './TopPopup'; interface State { showPopup: boolean, } export default class App extends Component<{}, State> { constructor(pr...
// prettier-ignore export const LETTER_JJ = ["svg", { viewBox: "0 0 32 32" }, ["path", { d: "M20 9h2v2h-2zM20 25h-3v2h3a2 2 0 002-2V13h-2zM14 23h-4a2 2 0 01-2-2v-2h2v2h4V9h2v12a2 2 0 01-2 2z" }]];
export default { siteName: '青龙控制面板', apiPrefix: '/api/', authKey: 'token', /* Layout configuration, specify which layout to use for route. */ layouts: [ { name: 'primary', include: [/.*/], exclude: [/(\/(en|zh))*\/login/], }, ], /* I18n configuration, `languages` and `defaultLa...
/** * Created by Jacob Xie on 3/2/2021 */ import {ProFormGroup, ProFormList, ProFormRadio, ProFormSelect} from "@ant-design/pro-form" import {SelectProps} from "antd" import {FormattedMessage} from "umi" const directionOptions = [ { label: <FormattedMessage id="gallery.component.general59" />, value: "as...
import { TestBed } from '@angular/core/testing'; import { QuotationMasterService } from './quotation-master.service'; describe('QuotationMasterService', () => { beforeEach(() => TestBed.configureTestingModule({})); it('should be created', () => { const service: QuotationMasterService = TestBed.get(QuotationM...
import { Range, TextEditorDecorationType, Position, window, DecorationRangeBehavior, workspace, ConfigurationTarget } from 'vscode'; import { generateOptimalTextColor, IDecoration } from '../util/color-util'; import Color from './color'; class ColorDecoration implements IDecoration { /** * The colo...
import {TcpRemoteCommand} from "./tscp-remote-command.interface"; export interface TcpRemote { ip: string; port: number; name: string; commands: TcpRemoteCommand[]; }
import { useCallback, useRef } from 'react'; /** * Hook to generate a double trigger event. * A double trigger event will be triggered if it is triggered twice in a short time. For example, double click. * * @param doubleTrigger A callback function to be triggered as the double trigger event. * @param delayLimit ...
import * as React from 'react' import { StyleSheet, View } from 'react-native' import AppLogo from 'src/download/AppLogo' import PhoneIllo from 'src/download/PhoneIllo' import RequestFunds from 'src/fauceting/RequestFunds' import { H1, H4 } from 'src/fonts/Fonts' import { I18nProps, NameSpaces, withNamespaces } from 's...
import { app, BrowserWindow } from 'electron'; // import { REACT_DEVELOPER_TOOLS } from 'electron-devtools-installer'; // const { default: installExtension } = require('electron-devtools-installer'); import path from 'path'; import './routes/dashboard'; import './routes/data'; // require('./routes/dashboard'); // requi...
import * as React from 'react'; import * as styles from './menu.styl'; import { HeadLogo } from '../head'; import { PAGES } from '../../pageConfig'; const Logo = ({ hasLogo }) => { return !hasLogo ? null : <HeadLogo />; }; const Settings = ({ hasSettings, leftClick, rightClick }) => { return !hasSettings ? null :...
import * as effect from "./effect"; import * as eff from "./eff"; import * as stream from "./stream/index"; import * as sink from "./stream/sink"; import * as managed from "./managed"; import * as queue from "./queue"; import * as ref from "./ref"; import * as concurrentRef from "./concurrentRef"; import * as semaphore...
/// <reference types="node" /> import * as http from 'http'; export declare enum HTTPVerb { POST = "POST", GET = "GET", PUT = "PUT", DELETE = "DELETE", HEAD = "HEAD", OPTIONS = "OPTIONS" } export interface WebServerConfig { port: number; ip?: string; } export interface HttpRequest { ...
import isNumber from 'lodash/isNumber'; import { addStringToBuffer, toCharCode } from 'utils'; import { validate } from 'utils/validate'; class PDFHeader { static forVersion = (major: number, minor: number) => new PDFHeader(major, minor); major: number; minor: number; constructor(major: number, minor: n...
// image.model.ts // Author: František Nečas /** * Data returned by the backend when posting an image. */ export class Image { url: string hash: string }
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import * as log from "../log"; import { MessagingError, translate } from "@azure/core-amqp"; import { AmqpError, EventContext, OnAmqpEvent, ReceiverEvents, SessionEvents, Receiver, Session } from "rhea-promise"; import { InternalR...
import { TypeName } from "../src/type/name"; interface TypeNameTestCase { name: string; isFqn: boolean; } const TEST_CASES: TypeNameTestCase[] = [ { name: '\\Namespace\\ClassName', isFqn: true }, { name: 'function1', isFqn: false }, { name: '\\function1', isFqn: true }, { name: 'COMPLETION_COM...
import fs from 'fs' const Papa = require('papaparse'); import _ from 'lodash' function parseCsv(file) { return new Promise((resolve, reject) => { Papa.parse( file, { header: true, complete: (results) => { if (results.error) { reject(results.error); } ...
import gql from 'graphql-tag'; export const GET_USER_GROUPS = gql` { user { nickName imageUrl groups(id: 198153) { endDate id name userStartDate userEndDate } } } `; export const GET_DONATIONS = gql` query donations($startDate: Int!) { ...
import { Test, TestingModule } from '@nestjs/testing' import { getRepositoryToken } from '@nestjs/typeorm' import { Repository } from 'typeorm' import { Photo, PhotoService } from '.' describe('PhotoService', () => { let service: PhotoService let repository: Repository<Photo> const photosArray = [ { n...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { NbMediaBreakpointsService, NbMenuService, NbSearchService, NbSidebarService, NbThemeService } from '@nebular/theme'; import { UserData } from '../../../@core/data/users'; import { map, takeUntil } from 'rxjs/operators'; import { Subject } from 'rxj...
/** * * * OpenAPI spec version: 20210215 * * * 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 { WheelData } from './components/Wheel/types'; export { Wheel } from './components/Wheel'; export declare type WheelDataType = WheelData;
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AboutPageComponent } from './components/about-page/about-page.component'; import { ContactPageComponent } from './components/contact-page/contact-page.component'; const routes: Routes = [ { path: 'about', com...
#!/usr/bin/env node import ElectronHelper from "./helpers/ElectronHelper"; import * as cli from "cli"; const BuildWinfs = require('fs'); let process = require("../../../config/config.json"); const electronInstaller = require('electron-winstaller'); const BuildWinframeworkInfo = './framework.json'; let ElectronHelp: Ele...