text stringlengths 10 953k |
|---|
export type Recipe = {
id: number,
title: string,
url: string,
imageUrl: string,
materials: string[],
}; |
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import React, {
TextareaHTMLAttributes,
useRef,
useCallback,
useEffect,
useLayoutEffect,
useState
} from 'react';
import PropTypes from ... |
function doubleChar(str: string): string {
return [...str].map(char => char.repeat(2)).join('');
}
export default doubleChar; |
import KafkaConsumer from "../../kafka/kafkaConsumer"
import {Topic} from "../../kafka/topic"
import MobService from "../service/mobService"
import MobMapper from "../mapper/mobMapper"
export default class MobCreateConsumer implements KafkaConsumer {
constructor(private readonly mobService: MobService, private reado... |
import { pingHandler } from '../../backend/handlers/ping';
/**
* @swagger
* /api/ping:
* get:
* title: "API's status"
* description: "Returns status of API's"
* responses:
* 200:
* content:
* application/json:
* schema:
* type: object
* ... |
// *** 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";
// Export members:
export * from "./analyticsApplication";
exp... |
import { Card } from '../../../interfaces'
import Set from '../Detective Pikachu'
const card: Card = {
name: {
en: "Bulbasaur",
fr: "Bulbizarre",
es: "Bulbasaur",
it: "Bulbasaur",
pt: "Bulbasaur",
de: "Bisasam"
},
illustrator: "MPC Film",
rarity: "Common",
category: "Pokemon",
set: Set,
dexId: [
... |
import imperium from 'imperium';
imperium.role('admin', async (req) => {
return true;
});
imperium.role('user')
.can('seeUser', { user: '@' })
.can('manageUser', { user: '@' });
imperium.role('admin')
.is('user', { user: '*' });
imperium.can('seeUser');
imperium.can(['seeUser', 'manageUser']);
imper... |
import { Box } from '@theme-ui/components'
import { PickCloseState } from 'components/dumb/PickCloseState'
import { SliderValuePicker } from 'components/dumb/SliderValuePicker'
import { AppLink } from 'components/Links'
import { useTranslation } from 'next-i18next'
import React from 'react'
import { Text } from 'theme-... |
// Usually if there is no replay loaded
// Just show a text
// In the future -> show a cool looking logo
import { UserScene } from "../../../core/scenes/IScene";
import { Container } from "pixi.js";
import { injectable } from "inversify";
@injectable()
export class IdleScene implements UserScene {
stage = new Conta... |
/**
* 套件配置表模块
*
* 主类型、子类型均为16机制值
* <pre>
* object<string, string> type: 设备类型匹配表.
* 设备分为主设备类型及子设备类型,主类型的key为主类型码,
* 子类型由主类型码及子类型码组成key <br/>
*
* object<string, string> status: 设备状态匹配表,
* 分类主类型设备状态,及子类型设备状态,其中主类型状态key由主类型码+状态码组成,
* 子设备类型状态key由主类型码+子类型码+状态码组成 <br/>
*
* object<string, array> gr... |
import {
IoTThingsGraphClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../IoTThingsGraphClient";
import {
SearchFlowExecutionsRequest,
SearchFlowExecutionsResponse
} from "../models/index";
import {
deserializeAws_json1_1SearchFlowExecutionsCommand,
serializeAws_json1_1SearchFlowExecut... |
import { expect } from "chai";
import * as fetch from "node-fetch";
import { addTokenHeader } from "../../src/helpers/refresher";
export function refresher(): void {
describe("Refresher", () => {
describe("addTokenHeader", () => {
it("addTokenHeader should create an init if not provided", () =>... |
import _ from 'lodash';
import { isMainThread } from 'worker_threads';
import { getLocalizedName, getOwner, isBroadcaster, isModerator, prepare, sendMessage } from '../commons';
import { command, settings, shared } from '../decorators';
import Game from './_interface';
const ERROR_NOT_ENOUGH_OPTIONS = '0';
const ERRO... |
import React, { SFC } from 'react';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import { makeStyles } from '@material-ui/core/styles';
import classnames from 'classnames';
import sanitizeRestProps from './sanitizeRestProps';
import { FieldProps, InjectedFieldProps, fieldPropTypes } from './types'... |
import { Component, ChangeDetectorRef, OnInit, Inject } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { NbAuthService, NB_AUTH_OPTIONS, NbResetPasswordComponent } from '@nebular/auth';
@Component({
selector: 'ngx-reset',
templateUrl: 'reset-password.component.html',
})
expo... |
import { locationUtil } from '@grafana/data';
import { locationService, navigationLogger } from '@grafana/runtime';
export function interceptLinkClicks(e: MouseEvent) {
const anchor = getParentAnchor(e.target as HTMLElement);
// Ignore if opening new tab or already default prevented
if (e.ctrlKey || e.metaKey |... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams} from '@angular/common/http';
import { BASE_URL } from '../utils/constants';
import { retry } from 'rxjs/internal/operators/retry';
import { map, catchError } from 'rxjs/operators';
import { PLACMError } from 'models/error';
import { throwError... |
export * from './pr-opened';
export * from './pr-edited'; |
import { attributeFragment } from "@saleor/attributes/queries";
import makeQuery from "@saleor/hooks/makeQuery";
import gql from "graphql-tag";
import { pageInfoFragment, TypedQuery } from "../queries";
import { ProductTypeCreateData } from "./types/ProductTypeCreateData";
import {
ProductTypeDetails,
ProductTypeD... |
<TS language="en_US" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Right-click to edit address or label</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import * as path from 'path';
import gitInfo = require('git-repo-info');
import { JsonFile } from '@rushstack/node-core-library';
import { RushConfiguration } from... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import {
useThemeConfig,
parseCodeBlockTitle,
parseLanguage,
parseLines,
containsLineNumbers,... |
/*
* Public API Surface of ngx-chess-board
*/
export * from './lib/ngx-chess-board.module';
export * from './lib/ngx-chess-board-view';
export * from './lib/service/ngx-chess-board.service'; |
declare module 'gsap' |
import { NoAuthRestClient } from './NoAuthRestClient';
const { promisify } = require('util');
const request = promisify(require('request'));
export class OAuth2RestClient extends NoAuthRestClient {
private async fetchNewToken() {
this.emitter.logger.info('Fetching new token...');
const authTokenResponse = a... |
import {Component} from '@angular/core';
@Component({
selector: 'my-app',
template: `
<h1>{{title}}</h1>
<h2>My Heroes</h2>
<ul class="heroes">
<li *ngFor="let hero of heroes"
(click)="onSelect(hero)"
[class.selected]="hero === selectedHero">
<spa... |
export * from "./features/features";
export * from "./description/description";
export * from "./creators/creators";
export * from "./promotion/promotion";
export * from "./header/header"; |
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-void */
import fs from "fs";
import path from "path";
import os from "os";
import { setMscz } from "./mscz";
import { loadMscore, INDV_DOWNLOADS, WebMscore } from "./mscore";
import { ScoreInfoHtml, ScoreInfoObj } from "./scoreinfo";
import {... |
declare function isString(value: unknown): value is string;
declare function isArrayOfStrings(value: unknown): value is string[];
const assert: (value: unknown) => asserts value = value => {}
declare function assertIsString(value: unknown): asserts value is string;
declare function assertIsArrayOfStrings(value: unkno... |
import * as React from 'react';
export default class ErrorBoundary extends React.Component {
state = {
hasError: false,
error: {
message: '',
},
};
componentDidCatch(error: Error) {
this.setState({
hasError: true,
error,
});
}
render() {
const { message } = this.st... |
import { Component, Element, h, State, Prop, Watch, Listen } from '@stencil/core';
import { AV_API_KEY } from '../../global/global';
@Component({
tag: 'my-stock-price',
styleUrl: 'stock-price.css',
shadow: true
})
export class MyComponent {
// initialStockSymbol: string;
stockInput: HTMLInputElement;
@Elem... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { FunctionComponent } from 'react';
import { Store, AnyAction } from 'redux';
import { GetServerSideProps, GetStaticProps, NextPageContext } from 'next';
import { GetServerSidePropsContext, GetStaticPropsContext, WrapperProps, Config, Context } from "next-redux-wrapper";
import { ParsedUrlQuery } from 'querystri... |
import { useEffect } from 'react';
import { APP_NAME } from '../constants';
function getPageTitle(substring?: string) {
return substring ? `${APP_NAME}: ${substring}` : APP_NAME;
}
export default function usePageTitle(substring?: string) {
const pageTitle = getPageTitle(substring);
return useEffect(() => {
... |
import defineTest from "@webpack-cli/utils/defineTest";
import { join } from "path";
const dirName: string = join(__dirname, "..");
defineTest(dirName, "bannerPlugin", "bannerPlugin-0");
defineTest(dirName, "bannerPlugin", "bannerPlugin-1");
defineTest(dirName, "bannerPlugin", "bannerPlugin-2"); |
import { Tween } from "@akashic-extension/akashic-timeline";
import { Label } from "@akashic-extension/akashic-label";
import { clampString } from "../../commonUtils/utils";
import { ResultScene } from "../../scene/ResultScene/ResultScene";
export interface RankingLabelParameterObject extends g.PaneParameterObject {
... |
/**
* @file config
* @author Yourtion Guo <yourtion@gmail.com>
*/
import fs from "fs";
import yaml from "js-yaml";
import { merge } from "lodash";
import path from "path";
import { IConfig } from "../gen/config.gen";
export const env = process.env.NODE_ENV || "dev";
export const config = {} as IConfig;
config.e... |
const sayHello = function sayHello(helloTo: string): string {
return `Hello, ${helloTo}`;
};
console.log(sayHello('world'));
process.exit(0); |
import { BucketAggregation } from './components/QueryEditor/BucketAggregationsEditor/aggregations';
import {
ExtendedStat,
MetricAggregation,
MovingAverageModelOption,
MetricAggregationType,
} from './components/QueryEditor/MetricAggregationsEditor/aggregations';
import { metricAggregationConfig, pipelineOption... |
import Options from './types/Options'
import { CanvasDrawer } from '../../common/drawer/types'
import { Rect } from '../../common/types/geometry'
import { TextOptions } from '../../common/types/canvas'
import { InputMargin } from '../../common/rectPositioningEngine/types'
const DEFAULT_TEXT_OPTIONS: TextOptions = {
... |
import React from 'react';
import { asStyleGuideTemplateToken, vitalStyleGuideTemplate } from '@bodiless/vital-templates';
import { flowHoc, on, replaceWith } from '@bodiless/fclasses';
import { FooterClean, vitalFooter } from '@bodiless/vital-layout';
// Apply similar method as done in the vitalLayout token.
const St... |
// import { ChainId } from '@pancakeswap-libs/sdk';
import { ChainId } from '@traderjoe-xyz/sdk';
import { Configuration } from './tomb-finance/config';
import { BankInfo } from './tomb-finance';
const configurations: { [env: string]: Configuration } = {
production: {
chainId: 43114,
networkName: 'Avalanche ... |
import to from 'await-to-js';
import config from '../libs/config';
import * as dynamoDb from '../libs/dynamoDb';
import log from '../libs/logs';
import putVivaMsEvent from '../helpers/putVivaMsEvent';
import completionsHelper from '../helpers/completions';
import validateApplicationStatus from '../helpers/validateAp... |
import { useWallet } from '@solana/wallet-adapter-react';
import { Col, Layout, Row, Tabs } from 'antd';
import React, { useState } from 'react';
import Masonry from 'react-masonry-css';
import { useMeta } from '../../../../contexts';
import { CardLoader } from '../../../../components/MyLoader';
import { Banner } from... |
export * from './fixtures.command' |
import KairosInstance from './'
import {
CompanionFeedbackEvent,
SomeCompanionInputField,
CompanionBankRequiredProps,
CompanionBankAdditionalStyleProps,
CompanionFeedbackEventInfo,
CompanionBankPNG,
} from '../../../instance_skel_types'
import { options } from './utils'
export interface KairosFeedbacks {
// Tal... |
import * as React from 'react';
import {
VictoryAnimation,
VictoryLabel,
AnimationStyle,
VictoryArea,
VictoryAxis,
VictoryStack,
VictoryBar,
VictoryLine,
VictoryChart,
VictoryScatter,
VictoryPie,
VictoryStyleInterface,
VictoryTheme,
VictoryThemeDefinition,
Vic... |
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms';
import { Serveur } from '../../shared/Serveur';
import { ServeurService } from './serveur.service';
@Component({
selector: 'app-serveur',
templateUrl: './serveur.component.html',
styleUrls: ['./serveur.com... |
export * from "./generate";
export * from "./httpsServerOptions";
export * from "./install";
export * from "./verify";
export * from "./uninstall"; |
export const Colors = {
primary: '#474D7F',
background: '#f0f1f5',
blockBackground: '#FFFFFF',
inputBackground: '#FFFFFF',
darkText: '#282828',
lightText: '#878686',
success: "#C6D57E",
failed: "#D57E7E"
}; |
import { Component, OnInit } from '@angular/core';
import { View } from '../../../../shared/view.shared';
import { ClientService } from '../../../../service/client.service';
import { StoreService, Store } from '../../../../service/store.service';
import { map } from 'rxjs/operators';
import { take } from 'rxjs/operat... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { InspectionComponent } from './inspection.component';
describe('InspectionComponent', () => {
let component: InspectionComponent;
let fixture: ComponentFixture<InspectionComponent>;
beforeEach(async(() => {
TestBed.configureT... |
import { EventEmitter } from 'events';
import { obx, makeObservable } from '@alilc/lowcode-editor-core';
import { Node, comparePosition, PositionNO } from './node/node';
import { DocumentModel } from './document-model';
export class Selection {
private emitter = new EventEmitter();
@obx.shallow private _selected:... |
import { Tag } from 'dox';
export function find(
tags: ReadonlyArray<Tag>,
key: string
): string | undefined {
const tagOpt = tags.find(tag => {
return tag && tag.type === key;
});
return tagOpt ? tagOpt.string : tagOpt;
}
export function findAll(
tags: ReadonlyArray<Tag>,
key: string
): ReadonlyAr... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import { retry, map, catchError } from 'rxjs/operators';
import 'rxjs/add/observable/throw';
import { Book } from './book';
import { BookRaw } from './book-raw';
import { BookFac... |
import { Website } from '../../interfaces/website.interface';
import { WebsiteStatus } from '../../enums/website-status.enum';
import { Observable } from 'rxjs';
/**
* @abstract @class BaseWebsite
*/
export class BaseWebsite implements Website {
public websiteName: string;
protected baseURL: string;
protected ... |
declare interface IData {
[key: string]: any
}
declare interface IRoute {
url: string,
name: string
}
declare module '*.svg'
declare module '*.png'
declare module '*.jpg'
declare module '*.jpeg'
declare module '*.gif'
declare module '*.bmp'
declare module '*.tiff' |
// Copyright 2017-2021 @axia-js/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { EraIndex } from '@axia-js/types/interfaces';
export function filterEras <T extends { era: EraIndex }> (eras: EraIndex[], list: T[]): EraIndex[] {
return eras.filter((era) => !list.some((entry) => e... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ms_MY" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ElenaCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location l... |
import classnames from 'classnames';
import { sortBy } from 'lodash';
import find from 'lodash/find';
import isEmpty from 'lodash/isEmpty';
import isUndefined from 'lodash/isUndefined';
import React from 'react';
import { FaBuilding, FaUser } from 'react-icons/fa';
import { GoLaw, GoPackage } from 'react-icons/go';
imp... |
/* eslint-disable @typescript-eslint/require-await */
import fs from "fs";
import { act, renderHook } from "@testing-library/react-hooks";
import { ReadableFile } from "@/app/hooks/use-files";
import { useProfileImport } from "@/domains/profile/hooks/use-profile-import";
import { env } from "@/utils/testing-library";
... |
// Superpowers Game fLang plugin
// https://github.com/florentpoujol/superpowers-game-flang-plugin
// Easy localization of any in-game strings in the Superpowers Game system.
declare namespace fLang {
interface Config {
locales: string[];
defaultLocale: string;
currentLocale: string;
searchInDefaultL... |
import createIcon, { JSX } from './utils/createIcon'
export const jsx: JSX = {
type: 'svg',
props: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 24 24'
},
children: [
{
type: 'g',
props: null,
children: [
{
type: 'path',
props: {
fill... |
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { DetailsPage, DetailsPageProps } from '@console/internal/components/factory';
import { KebabAction, navFactory, LoadingBox } from '@console/internal/components/utils';
import { useK8sGet } from '@console/internal/components/utils/k8... |
export const MAX_WORD_LENGTH = 5
export const MAX_CHALLENGES = 6
export const ALERT_TIME_MS = 2000
export const REVEAL_TIME_MS = 350 |
import React, { ReactElement } from 'react';
import { Helmet } from 'react-helmet';
import { Route, Switch, useRouteMatch } from 'react-router-dom';
import { getTitle } from '../../../utils';
import { CouponListManagement } from '../components/CouponListManagement';
export function Coupon(): ReactElement {
const { p... |
/* eslint-disable import/no-extraneous-dependencies */
import { query, mutation } from "./resolvers";
import { manifest } from "./manifest";
import {
Client,
Plugin,
PluginManifest,
PluginModules,
} from "@web3api/core-js";
import { Signer, ethers } from "ethers";
import {
ExternalProvider,
JsonRpcProvider... |
import * as React from 'react';
import Document, { Html, Head, Main, NextScript } from 'next/document';
export default class MyDocument extends Document {
render() {
return (
<Html lang="en">
<Head>
{/* PWA primary color */}
<meta name="theme-color" />
<link
... |
/**
* Some predefined delays (in milliseconds).
*/
export enum Delays {
SHORT = 500,
MEDIUM = 2000,
LONG = 5000,
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Eurekabitcoin</source>
<translation>Par Eurekabitcoin</translatio... |
import { DocumentQuickPulse } from "./DocumentQuickPulse";
export interface DependencyDocumentQuickPulse extends DocumentQuickPulse {
Name: string;
Target: string;
Success?: boolean;
Duration: string;
ResultCode: string;
CommandName: string;
DependencyTypeName: string;
OperationName: str... |
import { PlaneGeometry, SimplePlane } from '@pixi/mesh-extras';
import { skipHello } from '@pixi/utils';
import { Loader } from '@pixi/loaders';
import { Point } from '@pixi/math';
import { Renderer, BatchRenderer, RenderTexture, Texture } from '@pixi/core';
import { expect } from 'chai';
skipHello();
// TODO: fix wi... |
import { storiesOf } from "@storybook/react"
import React from "react"
import { Box } from "../Box"
import { Serif } from "../Typography"
import { BarChart } from "./BarChart"
storiesOf("Components/BarChart", module)
.add("BarChart with labels", () => {
return (
<Box width="50%">
<BarChart
... |
import * as wasm from '../pkg/node_sdk_helpers';
import { Buffer } from 'buffer/';
/**
* Given a contract's raw state, its name and its schema, return the state as a JSON object.
* The return type is any, and the actual type should be determined by using the schema.
*/
export function deserializeContractState(
... |
import * as React from 'react';
const Browser: React.FC<React.SVGProps<SVGSVGElement>> = (props) => (
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
viewBox="2 -1 38 38"
enableBackground="new 0 0 129 129"
height={22}
fill="currentColor"
{...props}
>
<path d="M12 9.984l3.984 4... |
/**
* @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 { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp1915Component } from './comp... |
/* eslint-disable max-len */
/**
* sunset.
*
* {@link https://icons.getbootstrap.com/icons/sunset/}.
*/
export const sunset = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-sunset" viewBox="0 0 16 16">
<path d="M7.646 4.854a.5.5 0 0 0 .708 0l1.5-1.5a.5.5 0 0 0-.7... |
import { Submitter } from './types'
export interface ExtendedSubmitEvent extends CustomEvent {
submitter: Submitter
detail: {
submitter?: Submitter
}
}
export function findSubmitter (event: ExtendedSubmitEvent): Submitter | undefined {
// Not supported by webkit
if (event.submitter instanceof HTMLElemen... |
import { Module } from '@nestjs/common';
import { DishService } from './dish.service';
import { DishResolver } from './dish.resolver';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Dish } from './model/dish.model';
import { DishRepository } from './dish.repository';
@Module({
imports: [TypeOrmModule.forF... |
// Copyright 2021 the Deno authors. All rights reserved. MIT license.
/** @jsx h */
import { h, htmlEntities, removeMarkdown } from "../deps.ts";
import { getLibWithVersion } from "../shared.ts";
import { parseURL } from "../util.ts";
const wrap = (s: string) =>
s.replace(/(?![^\n]{1,48}$)([^\n]{1,48})\s/g, "$1\n");... |
//
// Workspace.ts
// Supernova SDK
//
// Created by Jiri Trecak.
// Copyright © 2021 Supernova. All rights reserved.
//
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
// MARK: - Imports
import { Exporter } from "../model/exporters/SDKExporter"
impo... |
/*
* Copyright 2021 Red Hat, Inc. and/or its affiliates.
*
* 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 ... |
export declare function deleteFtpFile(sftpClient: any, fullFileName: string): Promise<boolean>; |
import { PUBLIC_PERMISSION } from 'api/permissions/publicPermission';
import { MemberWithPermission } from 'shared/types/entityPermisions';
import { AccessLevels, MixedAccess } from 'shared/types/permissionSchema';
export const data: MemberWithPermission[] = [
{
type: 'user',
refId: 'id1',
label: 'User n... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AboutComponent } from '../components/about/about.component';
import { BisqTransactionsComponent } from './bisq-transactions/bisq-transactions.component';
import { BisqTransactionComponent } from './bisq-transactio... |
import assert from 'assert'
import util from 'util'
import { Resource } from '../util/resource.js'
import { AwaitLock } from '../util/lock.js'
import { Database } from './database.js'
import { OpLog } from './log.js'
import { VM } from './vm.js'
import { ContractFraudProof, ContractFraudProofDetails } from './fraud-pro... |
import _ from 'lodash';
import { colors, ansicolor } from '@grafana/ui';
import {
Labels,
LogLevel,
DataFrame,
findCommonLabels,
findUniqueLabels,
getLogLevel,
FieldType,
getLogLevelFromKey,
LogRowModel,
LogsModel,
LogsMetaItem,
LogsMetaKind,
LogsDedupStrategy,
GraphSeriesXY,
dateTime,
... |
import { FC, memo } from "react";
const HomePage: FC = (): JSX.Element => {
return <div>Example home page</div>;
};
export default memo(HomePage); |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_DO" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About EduCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
import * as path from 'path';
import chalk from 'chalk';
import * as crossSpawnType from 'cross-spawn';
import { createProcessEnv } from '@ionic/cli-framework/utils/process';
import { ILogger, IShell, IShellOutputOptions, IShellRunOptions, IShellSpawnOptions, ITaskChain } from '../definitions';
import { isExitCodeE... |
import * as PIXI from 'pixi.js';
import {ZoomPan} from './zoom-pan';
import {RendererChunkData} from './renderer-chunk-data';
import {Subject} from 'rxjs';
import {ThemingService} from '../../services/theming/theming.service';
import {takeUntil} from 'rxjs/operators';
import {ProjectsService} from '../../services/proje... |
import { Module } from '@nestjs/common';
import { MailService } from './mail.service';
@Module({
providers: [MailService],
exports: [MailService]
})
export class MailModule {
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { Items, UOM, AssemblyItems } from '../../../models/Items';
import { MetadataService } from '../../services/metadata/metadata.service';
import { ProductLines } from '../../../models/ProductLines';
import notify from 'devextreme/ui/notify';
imp... |
import {AppContextType, AppType} from "next/dist/next-server/lib/utils";
import * as React from "react";
import {ApolloProvider} from "@apollo/client";
import {ThemeProvider} from "@material-ui/styles";
import client from "../utils/apollo";
import {appWithTranslation} from "../utils/i18n";
import {theme} from "../theme... |
import {Email, Nullable, ObjectKey, User} from "common/types/commonTypes";
const retrieve = (key: ObjectKey, users: User[]= []): Nullable<User> => {
return users.find((it) => it.key === key) || null
}
const findByMail = (email: Email, users: User[]= []): Nullable<User> => {
return users.find((it) => it.mail ... |
import BluebirdPromise = require("bluebird");
import Express = require("express");
import Exceptions = require("../../Exceptions");
import ErrorReplies = require("../../ErrorReplies");
import { ServerVariables } from "../../ServerVariables";
import GetWithSessionCookieMethod from "./get_session_cookie";
import GetWithB... |
export interface TheRest {
success: boolean;
error: null;
data: Data;
}
export interface Data {
pageCount: number;
list: List[];
}
export interface List {
protocols: string[];
id: number;
balance: number;
author: ... |
import {
createLogger,
format,
transports
} from 'winston'
const { printf } = format
let level, silent
switch (process.env.NODE_ENV) {
case 'production':
level = 'info'
silent = false
break
case 'test':
level = 'emerg'
silent = true
break
default:
level = 'debug'
silent = fa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.