text stringlengths 10 953k |
|---|
import * as React from "react";
import styled from "styled-components";
import useSanityQuery from "../../../utils/useSanityQuery";
const Header = styled.div`
font-size: 1.25rem;
`;
const ErrorStyling = styled(Header)`
color: red;
`;
const Emoji = styled.span`
font-size: 1.5em;
`;
type Referrer = {
title?: ... |
import ConfigProvider from "antd/lib/config-provider";
import enUS from "antd/lib/locale/en_US";
import zhCN from "antd/lib/locale/zh_CN";
import { styled } from "onefx/lib/styletron-react";
import React, { Component } from "react";
import { Switch } from "react-router";
import { Route } from "react-router-dom";
import... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { projectService } from 'src/app/services/master/project/project.service';
import { MatPaginator } from '@angular/material/paginator';
import { startWith, tap } from 'rxjs/operators';
import { project, ProjectFilter } from 'src/app/model/project';
im... |
/*
* 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... |
/// <reference path="fourslash.ts" />
////module Alpha {
//// export var [|{| "name" : "def" |}x|] = 100;
////}
////
////module Beta {
//// import p = Alpha.[|{| "name" : "import" |}x|];
////}
////
////var x = Alpha.[|{| "name" : "mem" |}x|]
goTo.marker('import');
verify.completionListContains('x', 'number');
... |
import { createRepo } from '../builders/repo-builder';
import { baseFeatures } from '../types';
describe('Repo Builder', () => {
it('withProps', () => {
const output = createRepo({
idKey: 'id',
features: ['withProps'],
crud: [],
template: 'class',
storeName: 'todos',
path: '',... |
// Type definitions for knockout-secure-binding
// Project: https://github.com/brianmhunt/knockout-secure-binding
// Definitions by: Pine Mizune <https://github.com/pine613>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="knockout" />
interface Knock... |
import { createI18n } from "vue-i18n"
export function loadLanguages() {
const context = import.meta.globEager("./languages/*.ts");
const languages: AnyObject = {};
let langs = Object.keys(context);
for (let key of langs) {
if (key === "./index.ts") return;
let lang = context[key].lang... |
import INamedVO from '../../../interfaces/INamedVO';
export default class VarConfVO implements INamedVO {
public static API_TYPE_ID: string = "var_conf";
public id: number;
public _type: string = VarConfVO.API_TYPE_ID;
/**
* Si on a un champ ts_ranges, ce paramètre permet d'en changer le field_... |
import { ValidationPipe } from '@nestjs/common'
import { NestFactory } from '@nestjs/core'
import { AppModule } from './app.module'
import { LoggingInterceptor } from './common/middleware/logging.interceptor'
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'
async function bootstrap() {
const app = ... |
// <copyright file="upvotes.tsx" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
import * as React from "react";
import { Text } from "@fluentui/react-northstar";
import { LikeIcon } from "@fluentui/react-icons-northstar";
interface IUpvotesProps {
upvoteCount: string;
i... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {Expression, seq, plus} from "../combi";
import {IStatementRunnable} from "../statement_runnable";
import {Source} from "./source";
export class PerformChanging extends Expression {
public getRunnable(): IStatementRunnable {
const changing = seq("CHANGING", plus(Source));
return changing;
}
} |
import { ErrorResponse, Response, NotFoundResponse } from "@webiny/graphql";
import S3 from "aws-sdk/clients/s3";
const S3_BUCKET = process.env.S3_BUCKET;
export default async (root: any, args: { [key: string]: any }, context: { [key: string]: any }) => {
const { File } = context.models;
const { id } = args;
... |
import React from 'react'
import styled, { keyframes } from 'styled-components'
import { mq, spacing, fontSize } from 'core/theme'
interface LogoProps {
className?: string
animated?: boolean
size?: string
showText?: boolean
}
export const Logo = ({ className, animated = true, showText = true, size = '... |
export { nanoid as default } from 'nanoid'; |
import {
isArray,
isFunction,
isString,
isObject,
EMPTY_ARR,
extend,
normalizeClass,
normalizeStyle,
PatchFlags,
ShapeFlags,
SlotFlags,
isOn
} from '@vue/shared'
import {
ComponentInternalInstance,
Data,
ConcreteComponent,
ClassComponent,
Component,
isClassComponent
} from './compone... |
import { ImageLoadState } from '@fluentui/react';
import { ISlotProp } from '@uifabric/foundation';
import { IPersonaCoinProps } from '../PersonaCoin.types';
export type IPersonaCoinImageSlot = ISlotProp<IPersonaCoinImageProps>;
export interface IPersonaCoinImageProps {
src?: string;
className?: string;
dimensi... |
import { Test } from '@nestjs/testing'
import { HttpStatus, INestApplication } from '@nestjs/common'
import * as request from 'supertest'
import { AppModule } from './../src/app.module'
describe('AppController (e2e)', () => {
let app: INestApplication
beforeAll(async () => {
const moduleFixture = awai... |
import styled from 'styled-components';
const Details = styled.details`
summary {
cursor: pointer;
outline: none;
}
`;
export default Details; |
// fontawesome/svgs/solid/earth-europe.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgEarthEurope = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<!--! Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/licens... |
import { Exclude, Expose, Type } from 'class-transformer';
import {
AuthenticatorAttachment,
ResidentKeyRequirement,
UserVerificationRequirement,
} from '@simplewebauthn/typescript-types';
import { ApiProperty } from '@nestjs/swagger';
@Exclude()
export class AuthenticatorSelectionCriteriaEntity {
@ApiProperty... |
import nock from "nock";
import { join as pathJoin } from "path";
import * as fs from "fs";
const relative = (path: string): string => pathJoin(__dirname, path);
const wsdlUrl = "https://www.w3schools.com/xml/tempconvert.asmx?WSDL";
let hasCache: boolean;
// We'll cache the WSDL request on disk to avoid spamming w3sc... |
/**
* Catapult REST Endpoints
* OpenAPI Specification of catapult-rest 2.3.0
*
* The version of the OpenAPI document: 0.11.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import * as runtime... |
import { assert } from 'chai'
import { describe, it } from 'mocha'
import { parseIcon } from '../../../ts/notifications/icons'
import { parseRedirect, parseLivewire } from '../../../ts/notifications/parses'
declare global {
interface Window {
Livewire: any
}
}
window.Livewire = {
find: () => null
}
describ... |
import { UnitTest, assert } from '@ephox/bedrock-client';
import { Result, Arr } from '@ephox/katamari';
import Jsc from '@ephox/wrap-jsverify';
import { parseSize, Size, nuSize, SizeUnit } from 'tinymce/themes/silver/ui/sizeinput/SizeInputModel';
import { units, largeSensible } from './SizeInputShared';
UnitTest.tes... |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import { BOOKS_FILE_PATH } from '../../constants';
type BookDocument = Book & Document;
@Schema()
class Book {
@Prop({ required: true })
public title: string;
@Prop({ default: '' })
public description: strin... |
import { Injectable } from "@angular/core";
import * as Comlink from 'comlink';
import { BehaviorSubject, Observable, Subject } from "rxjs";
import { Constants } from "../../constants/constants";
import { ConstantsService } from "../../constants/constants.service";
import { LocalStorageService } from "../../local-stora... |
import http from 'http';
import io from 'socket.io';
import Peer from './peer';
import {
IP,
CurrentPeerPayloadData,
Payload,
PayloadType,
AllPeersPayloadData,
PeerInfo,
PeerJoinedPayloadData,
PeerLeftPayloadData,
Payloads
} from './types';
export type ServerOptions = Partial<io.ServerOptions>;
type... |
import * as ndarray from 'ndarray';
let emlapack = require('emlapack');
export function dsytf2(UPLO: string,
N: number,
A: ndarray<number>,
LDA: number): ndarray<number> {
let func = emlapack.cwrap('dsytf2_', null, [
'number', // [in] UPLO: CHARACTER
'number', // [in] N: IN... |
import wretch from 'wretch';
import {Wretcher} from 'wretch/dist/wretcher';
import {config} from '../config';
import {RootStore} from '../stores/index';
export class RestApi {
protected readonly baseAuthUrl = config.auth.url;
protected readonly baseApiUrl = process.env.REACT_APP_API_URL;
protected readonly apiW... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import { ListTrainingJobs } from "../model/operations/ListTrainingJobs";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "../types/OutputTypesUnion";
i... |
import React from 'react'
import { Link } from 'react-router-dom'
import { T, t } from 'decentraland-dapps/dist/modules/translation/utils'
import { getContractName } from 'decentraland-transactions'
import {
GrantTokenSuccessAction,
RevokeTokenSuccessAction,
GRANT_TOKEN_SUCCESS,
REVOKE_TOKEN_SUCCESS
} from 'dec... |
/**
* Copyright (c) 2020-2021 August
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publis... |
import type { BerReader } from 'asn1';
import { BerWriter } from 'asn1';
import { ControlParser } from '../ControlParser';
import type { Control } from '../controls';
import { ProtocolOperation } from '../ProtocolOperation';
export interface MessageOptions {
messageId: number;
controls?: Control[];
}
export abst... |
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2022 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 { observer } from 'mobx-react-lite';
import { useContext, useEffect, useImperativeHandle, us... |
class User {
name: string;
id: string;
}
class AnnotationInfo {
count: number;
components: string[];
}
class Lease {
path: string;
user: User;
}
class Release {
paths: string[];
}
class Update {
paths: string[];
refreshPaths: string[];
time: number;
annotations: Anno... |
export class CreateMensajeDto {
readonly nick: string;
readonly mensaje: string;
} |
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Inject, Input, Output } from "@angular/core";
import { EventBus, IEvent } from "@nova-ui/bits";
import { DRILLDOWN } from "../../../../services/types";
import { PIZZAGNA_EVENT_BUS } from "../../../../types";
import { INavigationBarConfig } f... |
import {
FormControl,
FormLabel,
Input,
FormErrorMessage,
InputRightElement,
InputGroup,
} from "@chakra-ui/react";
import { useField } from "formik";
import { InputHTMLAttributes, useState } from "react";
import { AiOutlineEye, AiOutlineEyeInvisible } from "react-icons/ai";
type InputFieldProps... |
import {start as startBot} from './bot';
startBot(); |
import { customElement } from "@microsoft/fast-element";
import { neutralLayerCardBehavior } from "../styles/recipes";
import { Card } from "./card";
import { CardTemplate as template } from "./card.template";
import { CardStyles as styles } from "./card.styles";
@customElement({
name: "fast-card",
template,
... |
import * as React from "react";
import { render, RenderOptions } from "@testing-library/react";
import { ChakraProvider, theme } from "@chakra-ui/react";
const AllProviders = ({ children }: { children?: React.ReactNode }) => (
<ChakraProvider theme={theme}>{children}</ChakraProvider>
);
const customRender = (ui: Re... |
/*
* 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 { EuiFlyoutHeader, EuiFlyoutBody, EuiFlyoutFooter, EuiProgress } from ... |
export default {
mongoURI: 'mongodb://localhost:27017/products-service',
} |
import { ToolbarOptions } from '../interface/toolbar-options.interface';
import { Pixel } from './amap.pixel';
import { LngLat } from './amap.lng-lat';
export interface CToolBar {
new (opts?: ToolbarOptions): ToolBar;
}
export interface ToolBar {
getOffset(): Pixel;
setOffset(offset: Pixel): void;
hideRuler()... |
import {
objectType,
inputObjectType,
interfaceType,
unionType,
arg,
extendType,
scalarType,
intArg,
idArg,
mutationField,
mutationType,
booleanArg,
queryField,
connectionPlugin,
} from "nexus";
import _ from "lodash";
import { connectionFromArray } from "graphql-relay";
const USERS_DATA = ... |
import { Component } from '@angular/core';
import {Router, RouterLink} from '@angular/router';
import{HomeComponent } from './home/home.component';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
constructor(
priva... |
import {
MarketplaceCatalogClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../MarketplaceCatalogClient";
import { DescribeChangeSetRequest, DescribeChangeSetResponse } from "../models/models_0";
import {
deserializeAws_restJson1DescribeChangeSetCommand,
serializeAws_restJson1DescribeChang... |
import { AlchemyProvider } from '@ethersproject/providers';
import { Wallet } from '@ethersproject/wallet';
import { ImLogger, WinstonLogger } from '@imtbl/imlogging';
import { CreateProjectParams, ImmutableXClient } from '@imtbl/imx-sdk';
import { requireEnvironmentVariable } from 'libs/utils';
import env from '../co... |
/**
* Onshape REST API
* The Onshape REST API consumed by all clients.
*
* OpenAPI spec version: 1.93
* Contact: api-support@onshape.zendesk.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
... |
import { useState, useEffect } from "react";
import { MovieCard } from "./MovieCard";
import { api } from "../services/api";
import { Header } from "./Header";
interface MovieProps {
imdbID: string;
Title: string;
Poster: string;
Ratings: Array<{
Source: string;
Value: string;
}>;
Runtime: string;
... |
import {
Directive,
EventEmitter,
HostListener,
Input,
OnDestroy,
OnInit,
Output
} from '@angular/core';
import { ClipboardService } from './ngx-clipboard.service';
@Directive({
// tslint:disable-next-line:directive-selector
selector: '[ngxClipboard]'
})
export class ClipboardDirective implements On... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { ToastrService } from 'ngx-toastr';
import { timer } from 'rxjs';
import { ErrorHelper } from 'src/app/helpers/errorHelper';
import { Car } from 'src/... |
/*
jQWidgets v6.0.6 (2018-August)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
/* eslint-disable */
/// <reference path="jqwidgets.d.ts" />
import '../jqwidgets/jqxcore.js';
import '../jqwidgets/jqxbuttons.js';
import '../jqwidgets/jqxdropdownbutton.js';
import '../jqwidgets/jqxradiobut... |
import Vue, { ComponentOptions } from 'vue';
/**
* Type options for the property that will be animated.
*/
type AnimatedProperty = 'height' | 'width';
/**
* Adds parametrized methods to a component to allow the collapsing of the provided property.
*
* @param property - The property that will be animated.
* @ret... |
import {Routes} from '@angular/router';
export const MATERIAL_DOCS_ROUTES: Routes = [
{
path: '',
pathMatch: 'full',
loadChildren: () => import('./pages/homepage').then(m => m.HomepageModule)
},
{path: 'categories', redirectTo: '/components/categories'},
{path: 'cdk', pathMatch: 'full', redirectTo: ... |
import * as React from 'react';
import { SKIP_CURRENTTIME_OFFSET } from '../../extensions/KeyboardNavigationExtension/KeyboardNavigationExtension';
import { IInfo, SettingsTabs } from '../types';
import { withState } from '../withState';
import { Button } from './Button';
import { Center } from './Center';
import { Nod... |
/* eslint-disable @typescript-eslint/no-var-requires */
import {
kitchenSinkRoot,
optionsHtml,
} from '../../../__fixtures__/mv2-kitchen-sink-paths'
import { loadHtml } from '../cheerio'
const fs = require('fs-extra')
const cheerio = require('cheerio')
jest.spyOn(fs, 'readFileSync')
jest.spyOn(cheerio, 'load')
b... |
import {Injectable} from "@angular/core";
@Injectable()
export class HereosService{
private heroes:Heroe[]=
[
{
nombre: "Aquaman",
id : 0,
bio: "El poder más reconocido de Aquaman es la capacidad telepática para comunicarse con la vida marina, la cual puede convocar a grandes distancias.",
... |
import { module, IQService } from 'angular';
import { APPLICATION_DATA_SOURCE_REGISTRY, ApplicationDataSourceRegistry } from 'core/application/service/applicationDataSource.registry';
import { INFRASTRUCTURE_KEY } from 'core/application/nav/defaultCategories';
import { Application } from 'core/application/application.... |
import cls from "cls-hooked";
import { NextFunction, Request, Response } from "express";
export class Session {
private static instance: Session;
private namespace: cls.Namespace;
constructor () {
this.namespace = cls.createNamespace("user-session");
}
static bindEmitter (bind: any): void {
Session... |
/*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the ""Software""), to deal
* in the Software without restric... |
import * as React from 'react'
import Helmet from 'react-helmet'
import styled from 'styled-components'
import { colors, View } from './../components/constants'
import { ForgotPasswordCard } from './login/card-forgot'
import { SignInCard } from './login/card-sign-in'
// import { SignUpCard } from './login/card-sign-up... |
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { CreateStudentDTO } from './create-student.dto';
import { Student } from './student.model';
@Injectable()
export class StudentService {
constructor(
@InjectModel('Student')
p... |
import Currency from '../model/Currency';
type CreateWithdrawRequest = {
price: number;
memberId: number;
description: string;
currency: Currency;
};
export default CreateWithdrawRequest; |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Title } from '@angular/platform-browser';
import { AppConfig } from './app.config';
import { ApiService } from './shared/services/api.service';
import { GlobalService } from './shared/services/global.service';
import... |
import * as React from 'react';
export default function Droplet({ width = 24, height = 24, strokeWidth = 2 }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" className="icon icon-tabler icon-tabler-droplet" width={width}
height={height} viewBox="0 0 24 24" strokeWidth={strokeWidth} stroke="... |
import * as fs from 'fs';
import axios from 'axios';
import { introspectionQuery, buildClientSchema, printSchema } from 'graphql';
import { generateTypeScriptTypes } from 'graphql-schema-typescript';
import * as path from 'path';
export class GqlToTypeConverterUtil {
convert = async (url: string, authorization: any,... |
import PropTypes from "prop-types";
import React, { ChangeEvent, FormEvent, ReactNode } from "react";
import {
BarGraph,
DataTable,
HelpPopover,
PlayerNameLabels,
} from "../components";
import useTitleBar from "../hooks/useTitleBar";
import { getCols, helpers, logEvent, toWorker, useLocalShallow } from "../util";
... |
import { Exercise } from "src/app/admin/store/admin.state";
export interface CoreState {
}
export interface ExerciseState {
recentSelectedExerciseIdToStart?: string;
exerciseInProgress?: Exercise;
exerciseInProgressSaveCompleted?: boolean;
}
export interface SelectedExerciseSummary {
name: string;
typeDes... |
import { async, ComponentFixture, TestBed } from "@angular/core/testing";
import { FormsModule } from "@angular/forms";
import { ButtonModule } from "primeng/button";
import { MessageService } from "primeng/api";
import { ContextMenuModule } from "primeng/contextmenu";
import { ProgressSpinnerModule } from "primeng/pro... |
/*
* 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 { mount } from 'enzyme';
import React from 'react';
import { MemoryRou... |
import React, { useState } from "react";
import "./App.css";
//TODO: Better styling with Tailwind
//DONE: Simplify Transforms, Formatters and Selectors into a continuous chain of function calls.
//TODO: Introduce the concept of a selector, and integrate it into the mix
//TODO: Delete operation
//TODO: Make it possible ... |
import { etoPublicViewByIdLinkLegacy } from "../../../../components/appRouteUtils";
import { assertLanding, etoFixtureAddressByName, tid } from "../../../utils/index";
import {
assertAndConfirmJurisdictionDisclaimer,
assertAndRejectJurisdictionDisclaimer,
assertEtoView,
} from "./EtoViewUtils";
describe("Eto Una... |
import {
AfterViewChecked,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
Inject,
NgZone,
OnInit,
ViewChild,
} from '@angular/core';
import { Clipboard } from '@angular/cdk/clipboard';
import {
FormBuilder,
FormControl,
FormGroup,
ValidatorFn,
Validators,
} from '@angular... |
/**
* Copyright (c) 2021 OpenLens Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, p... |
import { OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Observable } from 'rxjs';
export declare class User {
name: string;
constructor(name: string);
}
/**
* @title Display value autocomplete
*/
export declare class AutocompleteDisplayExample implements OnInit {
myC... |
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
export default class IoIosTimeOutline extends React.Component<IconBaseProps, any> { } |
import React from 'react';
import ErrorBoundaryFallback from './ErrorBoundaryFallback';
import { ErrorBoundaryProps, ErrorBoundaryState } from './types';
class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
static defaultProps = {
FallbackComponent: ErrorBoundaryFallback,
... |
import { TestingModule, Test } from "@nestjs/testing";
import { AuthGuard } from "./auth.guard";
import { ConfigService } from "@nestjs/config";
import { HttpModule } from "@nestjs/axios";
jest.mock("../utilities/parse-token", () => ({
parseToken: jest.fn(() =>
jest.fn().mockReturnValue({ sessionId: "", userId: ... |
import {Router} from "@angular/router";
export const roleMatrix:any={};
/** search a value in a list
*
* @param value : object to be searched,
* @param original List : List to search in
* @param property : Nested property to search by if any
*
*/
export function alreadyExist(value:any,originalList: any[], property... |
import { Injectable, Module } from "@nestjs/common";
import { Test } from "@nestjs/testing";
import { Job, Queue } from "bull";
import { BullQueue, BullQueueInject, BullQueueProcess } from "../bull.decorator";
import { BullModule } from "../bull.module";
@BullQueue()
export class BasicExampleBullQueue {
@BullQueuePr... |
// parsers: rawData => struct
// If you want to use Model, please use fromRaw method.
// e.g. const reserve: ReserveInfo = ReserveInfo.fromRaw(rawData);
export * from "./ReserveParser";
export * from "./StakingPoolParser";
export * from "./StakeAccountParser";
export * from "./ParsedAccount";
export * from "./Parser";... |
import * as path from 'path'
import { Injectable } from '@angular/core'
import { HostAppService, Platform } from 'tabby-core'
import { ShellProvider, Shell } from '../api'
/* eslint-disable block-scoped-var */
try {
var wnr = require('windows-native-registry') // eslint-disable-line @typescript-eslint/no-var-req... |
import { Component, OnInit} from '@angular/core';
import { IProject, IEnvironment, IProjectEnv } from 'src/app/config/types';
import { ProjectService } from 'src/app/services/project.service';
import { AccountService } from 'src/app/services/account.service';
import { EnvService } from 'src/app/services/env.service';
... |
import { useEffect, useState } from 'react';
/**
*
* @param queries List of queries to match
* @returns Boolean value telling if the passed query/queries is a matching.
*/
function useMediaQuery(...queries: string[]): boolean {
const supportMatchMedia =
typeof window !== 'undefined' && typeof window.matchMed... |
import * as fse from "fs-extra";
import { expect } from "chai";
import path from "./assert_path";
import helper from "./helper";
import * as jetpack from "..";
describe("move", () => {
beforeEach(helper.setCleanTestCwd);
afterEach(helper.switchBackToCorrectCwd);
describe("moves file", () => {
const preparat... |
import { Plan } from './parse';
export declare function clearExistingOutput(): void;
export declare function hideParsingErrorMessage(): void;
export declare function displayParsingErrorMessage(): void;
export declare function unHidePlan(): void;
export declare function showReleaseNotification(version: string): void;
ex... |
import {PI, calculateCirumcumference} from "./math/circle"
import { calculateRectangle } from "./math/rectangle"
console.log(PI);
console.log(calculateCirumcumference(10));
console.log(calculateRectangle(20, 50)); |
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 { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BaseKubeGuid } from '../../kubernetes-page.types';
import { KubernetesBaseTestModules } from '../../kubernetes.testing.module';
import { HelmReleaseService } from '../../services/helm-release.service';
import { KubernetesEndpointService... |
/*
* 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 * as Rx from 'rxjs';
import { resolve } from 'path';
import KbnServer,... |
export const environment = {
production: true,
firebase: {
apiKey: 'AIzaSyBX1h29N8A2ypc_cR6HPw2IlhZ3SprNkPY',
authDomain: 'dobeerman-movie-quotes.firebaseapp.com',
databaseURL: 'https://dobeerman-movie-quotes.firebaseio.com',
projectId: 'dobeerman-movie-quotes',
storageBucket: 'dobeerman-movie-q... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DashboardOnePageComponent } from './modules/dashboards/pages/dashboard-one-page/dashboard-one-page.component';
import { DashboardTwoPageComponent } from './modules/dashboards/pages/dashboard-two-page/dashboard-two... |
import { Controller } from '@nestjs/common';
import { InjectModel } from 'nestjs-typegoose'
import { User } from '@libs/db/models/user.model';
import { Crud } from 'nestjs-mongoose-crud'
import { ApiTags } from '@nestjs/swagger'
@Crud({
model: User
})
@Controller('users')
@ApiTags('用户')
export class UsersController {... |
import { ComponentRef, ElementRef, Injector, NgModuleRef, ViewContainerRef } from '@angular/core';
import { Observable } from 'rxjs';
import { Applicable, CmsComponentMapping, Priority } from '@spartacus/core';
/**
* ComponentHandler implementations can be used for instantiating and launching
* different types of CMS... |
/*
* @license NewConsensus Platform v0.1
* (c) 2020-2021 KaoGeek. http://kaogeek.dev
* License: MIT. https://opensource.org/licenses/MIT
* Author: chalucks <chaluck.s@absolute.co.th>, shiorin <junsuda.s@absolute.co.th>
*/
import { PageContentService } from '../../services/PageContentService';
import { Get, Res, P... |
import { Icon } from '@/components/icon'
Icon.register({
'apple-alt': {
width: 448,
height: 512,
paths: [
{
d:
'M350.9 129c26 4.7 47.3 18.7 63.9 42 14.7 20.7 24.6 46.7 30 78 4.7 28.7 4.3 57.3-1 86-8 47.3-24 87-47.9 119-28.6 38.7-64.6 58-107.9 58-10.7 0-22.3-3.3-35-10-8.7-5.3-18.3-... |
import {Component, Input, Injectable} from "@angular/core";
import {GravatarService} from "./gravatar.service";
@Component({
selector: "gl-gravatar",
templateUrl: './app/shared/components/gravatar.component.html',
styleUrls: ['./app/shared/components/gravatar.component.css']
})
@Injectable()
export class Gravatar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.