text stringlengths 10 953k |
|---|
import { range } from '../util/lang';
describe('logic.range', () => {
it('is truthy', () => {
expect(range).toBeTruthy();
})
it('works with 1 arg', () => {
const arr = range(5);
expect(arr).toHaveLength(5);
expect(arr[0]).toEqual(1);
expect(arr[4]).toEqual(5);
}... |
import {Component, OnInit} from '@angular/core';
import Amplify, {API, Auth, Hub} from 'aws-amplify';
import Axios from 'axios';
import {User} from '../../../ui-react/src/model/user';
import amplifyConfig from '../../../ui-react/src/config/amplifyConfig';
import {Pet} from '../../../ui-react/src/model/pet';
import {Htt... |
import { Problem, ProblemSchema } from './entities/problem.entity';
import { Module } from '@nestjs/common';
import { ProblemsService } from './problems.service';
import { ProblemsController } from './problems.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { UsersModule } from 'src/users/users.m... |
import {
HostBinding,
Input,
Component,
ChangeDetectionStrategy,
ElementRef,
AfterViewInit,
Output,
EventEmitter
} from '@angular/core';
/**
* Angular wrapper for the soho wizard page.
*/
@Component({
selector: 'div[soho-wizard-page]', // eslint-disable-line
template: `<ng-content></ng-content>`,... |
import * as jspb from "google-protobuf"
import * as BasicTypes_pb from './BasicTypes_pb';
import * as QueryHeader_pb from './QueryHeader_pb';
import * as ResponseHeader_pb from './ResponseHeader_pb';
import * as CryptoAddClaim_pb from './CryptoAddClaim_pb';
export class CryptoGetClaimQuery extends jspb.Message {
ge... |
import CardDeck from "./CardDeck";
import { Socket } from "socket.io";
import { SocketInitSuccessData } from "../common/Tycoon";
import { CardJson } from "../common/Card";
interface SocketCallbackBundle {
onTycoonInitHandler: () => void;
onTycoonActionHandler: (selectedCardJsons: CardJson[]) => void;
}
class Tyco... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
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, modi... |
import { Column, Entity, OneToMany, PrimaryColumn } from "../../../../src"
import { Photo } from "./Photo"
import { StringDecoder } from "string_decoder"
@Entity()
export class User {
@PrimaryColumn("binary", {
length: 2,
})
private _id: Buffer
get id(): string {
const decoder = new St... |
import * as angular from 'angular';
import { NgAuthRead } from './authRead.Directive';
import { NgAuthWrite } from './authWrite.Directive';
export const PermissionsDirective = angular
.module('blipComponents.permissionsDirective', [])
.directive('ngAuthRead', NgAuthRead.factory)
.directive('ngAuthWrite', N... |
import * as yauzl from 'yauzl';
import { join } from 'path';
import mkdirp from 'mkdirp';
import { createWriteStream, existsSync } from 'fs';
import { IArtifact } from '../../artifact';
import { ArtifactTask } from '../artifact-task';
import { exists } from '../../../util';
export interface IArtifactExtractTaskProgres... |
import * as React from "react";
import * as renderer from "react-test-renderer";
import { Inbox } from "reinbox";
import { Provider } from "../src/Provider";
const Child = () => (
<Inbox topic="test">
{({ payload, dismiss }) =>
payload && (
<div>
<span>{payload.id}</span>
<butto... |
import React, { useState, useEffect } from 'react';
import Constants from 'expo-constants';
import { Feather as Icon } from '@expo/vector-icons';
import { useNavigation, useRoute} from '@react-navigation/native';
import { View, Text, StyleSheet, TouchableOpacity, ScrollView, Image, Alert } from 'react-native';
import... |
import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient";
import { UpdateChannelClassRequest, UpdateChannelClassResponse } from "../models/models_1";
import {
deserializeAws_restJson1UpdateChannelClassCommand,
serializeAws_restJson1UpdateChannelClassCommand,
} from "... |
import {IStatement} from "./_statement";
import {seq, alt, opt} from "../combi";
import {Integer, DefinitionName} from "../expressions";
import {IStatementRunnable} from "../statement_runnable";
export class StaticBegin implements IStatement {
public getMatcher(): IStatementRunnable {
const occurs = seq("OCCURS... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { JourneysDiscoverComponent } from './journeys-discover.component';
describe('JourneysDiscoverComponent', () => {
let component: JourneysDiscoverComponent;
let fixture: ComponentFixture<JourneysDiscoverComponent>;
beforeEach(async... |
import { NextApiRequest, NextApiResponse } from 'next'
import { WORKER_URL } from './../../lib/constant'
export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
try {
const url = WORKER_URL
const resp = await fetch(url, {
method: 'POST',
... |
import {Lifecycle, instanceCachingFactory} from 'tsyringe';
import * as esTreeWalker from 'estree-walker';
import {DynamicPool} from 'node-worker-threads-pool';
import vfsConfig, {VFSConfig} from './config/vfs_config';
import threadPoolConfig, {ThreadPoolConfig} from './config/thread_pool_config';
import ESTreeCodeGene... |
import "@material/mwc-ripple";
import {
css,
CSSResult,
customElement,
eventOptions,
html,
internalProperty,
LitElement,
property,
PropertyValues,
TemplateResult,
} from "lit-element";
import { classMap } from "lit-html/directives/class-map";
import memoizeOne from "memoize-one";
import { isComponen... |
import { Component, OnInit, Input } from '@angular/core';
import { ProjectModel } from '@my-company-frontend/shared';
@Component({
selector: 'app-main-detail-project',
templateUrl: './main-detail-project.component.html',
styleUrls: ['./main-detail-project.component.scss']
})
export class MainDetailProjectCompone... |
import { css } from "@emotion/css";
import * as typography from "@klimadao/lib/theme/typography";
import * as common from "@klimadao/lib/theme/common";
import breakpoints from "@klimadao/lib/theme/breakpoints";
export const container = css`
position: relative;
padding: 3.2rem;
background-color: var(--surface-02)... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
'use strict';
import { Container, Scope } from 'typescript-ioc';
import * as fs from 'fs';
import * as component from './common/component';
import { Database, DataStore } from './common/datastore';
import { setExperimentStartupInfo } from './... |
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import * as path from "../path/mod.ts";
import { ensureDir, ensureDirSync } from "./ensure_dir.ts";
import { getFileInfoType } from "./_util.ts";
/**
* Ensures that the file exists.
* If the file that is requested to be created is in director... |
import { DelimiterType, FileType } from './../models/index';
export interface ExportOption {
/** export delimiter, can be (comma, tab, ... or even custom string). */
delimiter?: DelimiterType | string;
/** Allows you to override for the export delimiter, useful when adding the "listSeparator" to the GraphQL que... |
/*---------------------------------------------------------------------------------------------
* 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.
// Licensed under the MIT License.
import { FlowEditorWidgetMap } from '@bfc/extension-client';
import { ListOverview } from '@bfc/ui-shared';
import {
ActionCard,
ActionCardBody,
DialogRef,
PromptWidget,
IfConditionWidget,
SwitchConditionWidget,
ForeachWidget,
... |
import { Applicative1 } from './Applicative';
import { Comonad1 } from './Comonad';
import { Foldable2v1 } from './Foldable2v';
import { Monoid } from './Monoid';
import { NonEmptyArray } from './NonEmptyArray';
import { Option } from './Option';
import { Semigroup } from './Semigroup';
import { Traversable2v1 } from '... |
import React, { FC } from 'react';
import './FullBook.css';
interface FullBookProps {
item: any;
}
const FullBook: FC<FullBookProps> = ({ item }) => {
interface itemTypes {
title: string;
authors: any[];
categories: any[];
imageLinks: any;
description: string;
}
const {
title,
authors,
catego... |
import { IBroadcasterSession } from "./libs/interface/networking";
import { Addson } from "./libs/types/global";
/**
* ClientConfig is config file for whole client part of application.
* It is a better to not mix with server config staff.
* All data is defined like default private property values.
* Use mmethod cl... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { MatPaginatorModule } from '@angular/material/paginator';
import { MatSortModule } from '@angular/material/sort';
import { MatTableModule } from '@angular/materi... |
import {NgModule,Directive,ElementRef,HostListener,Input,OnInit} from '@angular/core';
import {CommonModule} from '@angular/common';
@Directive({
selector: '[pInputTextarea]',
host: {
'[class.ui-inputtext]': 'true',
'[class.ui-corner-all]': 'true',
'[class.ui-state-default]': 'true',
... |
import { PubSub, withFilter, FilterFn } from 'apollo-server'
export { FilterFn } from 'apollo-server'
export const pubsub = new PubSub()
export const publish = (eventName : string, payload : any, customInfo : object = null) => {
pubsub.publish(eventName, Object.assign({ [eventName]: payload }, customInfo))
}
expor... |
import { NestFactory, Reflector } from '@nestjs/core';
import { AppModule } from './app.module';
import { RoleGuard } from './feature/auth/guard/role.guard';
import { AuthService } from './feature/auth/auth.service';
import { UserService } from './feature/user/user.service';
import { ConfigService } from './share/modul... |
import {IStatement} from "./_statement";
import {seq, alt, opt, tok, per, optPrio, altPrio} from "../combi";
import {InstanceArrow, StaticArrow} from "../../1_lexer/tokens";
import {FSTarget, Target, Source, Dynamic, Field, TypeName} from "../expressions";
import {IStatementRunnable} from "../statement_runnable";
expo... |
import { ApiProperty } from '@nestjs/swagger';
import { Pagination } from 'src/common/dto/pagination.dto';
import { Track } from '../track.entity';
export class TrackPagination extends Pagination {
@ApiProperty({ type: [Track] })
items: Track[];
} |
import { contentsToTree, ProjectContentTreeRoot } from '../components/assets'
import {
DefaultPackageJson,
PersistentModel,
persistentModelForProjectContents,
StoryboardFilePath,
} from '../components/editor/store/editor-state'
import {
appJSFile,
getDefaultUIJsFile,
getSamplePreviewFile,
getSamplePrevi... |
import { ThemeUIPresetSketchyVariants } from './variants';
declare const scalesAndStyles: {
colors: {
text: "#000200";
background: "#FAFAF9";
muted: "rgba(0,0,0,.1)";
primary: "#F25F5C";
primaryDark: "#B51916";
primaryLight: "#FCBAB1";
blue: "#B6DEE2";
... |
import { SofiaWebAppPage } from './app.po';
describe('sofia-web-app App', () => {
let page: SofiaWebAppPage;
beforeEach(() => {
page = new SofiaWebAppPage();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('app works!');
});
}... |
/**
* Copyright (c) Cisco Systems, 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 "@momentum-ui/web-components";
import "@cjaas/common-components";
import { customElement, html, internalProperty, Li... |
import { Component, Prop, h } from '@stencil/core'
import svgIcon from '../../../icons/usb.svg'
/**
* WARNING: This is an autogenerated component.
* Do not make any changes to this file or they will be overwritten on build.
* The template for this file is located in the generate-icons.js util file.
... |
import { pre } from './check/precondition/Pre';
import {
asyncProperty,
IAsyncProperty,
IAsyncPropertyWithHooks,
AsyncPropertyHookFunction,
} from './check/property/AsyncProperty';
import { property, IProperty, IPropertyWithHooks, PropertyHookFunction } from './check/property/Property';
import { IRawProperty } ... |
/*
* 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... |
/**
* 获取变量类型
* @param value
* @return 变量类型(string,全部小写字母)
*/
export declare function getVarType(value: any): string;
/**
* 检查value值是否为null
* @param value
*/
export declare function isNull(value: any): boolean;
/**
* 检查value值是否为undefined
* @param value
*/
export declare function isUndefined(value: any): boolea... |
import { Save } from '../../src/util/Save';
import { fetchVaccinationBy } from '../../src/fetch/vaccination/Fetch';
import { parse } from '../../src/fetch/vaccination/Parse';
import { VaccinationData } from '../../src/type/Vaccination';
import { exit } from 'process';
export async function fetchVaccination () {
const... |
export interface ParseLogfileStatus {
readonly status: string;
readonly progress?: number;
result?: any;
} |
import { getLocalizations as getCurrentLocalizations } from "@applicaster/zapp-react-native-utils/appUtils/localizationsHelper";
import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils";
const Localizations = require("../../../manifests/localizations.config");
const getConfig = () =>
platform... |
import os from 'os';
import path from 'path';
import fs from 'fs'
import { Notification, shell } from 'electron';
import PreviewWindow from '../windows/preview';
import ffmpeg, { FfmpegCommand } from 'fluent-ffmpeg';
import log from 'electron-log';
const ffmpegPath = () => {
let currentPlatform = os.platform();
le... |
export * from './Home'
export * from './Landing'
export * from './Search'
export * from './Restaurant'
export * from './FoodDetail'
export * from './Cart'
export * from './Login'
export * from './Order'
export * from './OrderDetail'
export * from './Account'
export * from './Offer' |
import { OptionsSlugify } from '../types';
import { Transliterate } from './transliterate';
export declare const defaultOptions: OptionsSlugify;
export declare class Slugify extends Transliterate {
get options(): OptionsSlugify;
/**
* Set default config
* @param options
*/
config(options?: Op... |
import {
BelongsTo,
Column,
DataType,
Default,
ForeignKey,
HasMany,
IsUUID,
Model,
PrimaryKey,
Table,
TableOptions,
Unique
} from 'sequelize-typescript';
import { Court } from './court.model';
import { Event } from './event.model';
@Table({
timestamps: true,
schema: 'event'
} as TableOption... |
import { StockResponse } from './StockResponse'
export type State = {
lastUpdate: number
stocks: StockResponse[]
} |
/* eslint-disable */
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* updated at 2021-12-23 13:19:48
* */
import { TdEnhancedTableProps } from '../table/type';
import { PropType } from 'vue';
export default {
/** 树形结构相关配置。`tree.indent` 表示树结点缩进距离,单位:px,默认为 24px。`tree.treeNodeColumnIndex` 表示树结点在第几列渲染,默认为 0 ,第一列。`tree.chil... |
import {
browserTabs, getAllWindows, makeTempWindow, makeWindow, PopWindow, Tab, tabsCreate, Window, getTabUrl, selectFrom,
runtimeError_, IncNormalWnd, selectWnd, selectTab, getCurWnd, getCurTabs, getCurTab
} from "./browser"
import { cRepeat, get_cOptions, cPort, set_cOptions, cNeedConfirm, set_cPort } from "./st... |
import { Injectable, NotFoundException } from '@nestjs/common';
import { DecodeDto } from 'src/dtos/decode.dto';
import { EncodeDto } from 'src/dtos/encode.dto';
import { DecodeResponse } from 'src/response-types/decode-response.dto';
import { EncodeResponse } from 'src/response-types/encode-response.dto';
import { Url... |
import { GameObject, decorators, resource, ComponentChanged, RESOURCE_TYPE, OBSERVER_TYPE } from '@eva/eva.js';
import { RendererManager, ContainerManager, RendererSystem, Renderer } from '@eva/plugin-renderer';
import { SpriteAnimation as SpriteAnimationEngine } from '@eva/renderer-adapter';
import { Spritesheet, Base... |
/**
* @file Automatically generated by barrelsby.
*/
export * from './useEditorRef';
export * from './useEditorState';
export * from './useSlatePlugins/index'; |
import { microflows as mfs } from "mendixmodelsdk"
import single = require("../SingleInterface");
import * as $ from "./"
/**
* load two MicroflowObjects to an IMfObjectDiff
*/
export function loadMfObject(object: mfs.MicroflowObject, listMfCpnBasicInfo: single.IMfCpnBasicInfo[]): single.IMfObject {
let output: ... |
export {
createLedger,
setLedgers,
LedgerActions,
type SetLedgersAction,
type CreateLedgerAction
} from './actions';
export { default, Ledger, type LedgerRecord } from './model';
export { ledgerReducer } from './reducer'; |
import * as _ from "lodash";
export default function addDetour<T extends object>(
target: T,
detour: (prop: keyof T, args?: unknown[]) => unknown
): T {
return new Proxy(target, {
get(getTarget: T, prop: keyof T) {
const og = getTarget[prop];
if (!_.isFunction(og)) {
detour(prop);
... |
/**
*
* (c) 2013-2017 Wishtack
*
* $Id: $
*/
export interface Params {
[key: string]: string;
} |
/**
* Capitalise a given string
*/
const capitalize =(str: string) => str.toLowerCase().replace(/^(.)|\s(.)/g, s => s.toUpperCase());
export default capitalize; |
import { roll } from '../../util';
const drops = {
blade: '<:Blade_of_saeldor_inactive:637345429868118046>',
armorSeed: '<:Crystal_armour_seed:637345429805203466>',
weaponSeed: '<:Crystal_weapon_seed:637345429620785174>',
pet: '<:Youngllef:604670894798798858>'
};
const gauntlet = {
kill(quantity: number, corrupt... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About CryptoFightClub</source>
<translation>О CryptoFightClub</translation>
</message>
<message>
... |
import * as React from 'react';
import { Component } from 'react';
import * as md from './index.md';
import Markdown from '@docs/components/Markdown/';
import CodeBox from '@docs/components/CodeBox/';
import ApiBox from '@docs/components/ApiBox/';
import Api from './api';
import CollapseDemo from './demo/collapseDemo'... |
export default class Command {
public readonly description: string;
public readonly executor: Executor
public readonly args: string[];
constructor(description: string, executor: Executor, ...args: string[]) {
this.description = description;
this.executor = executor;
this.args... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ja" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Betcoin</source>
<translation>ブラックコインについて</translation>
</message>
<message>
<location ... |
import express from 'express';
import fetch from 'node-fetch';
import cheerio from 'cheerio';
import Body from './models/Body';
function fetchLaurainthekitchen(req: express.Request, res: express.Response, next: express.NextFunction) {
fetch('https://www.laurainthekitchen.com/recipes/croque-madam/')
.then((res: a... |
import {
Injectable,
InternalServerErrorException,
NotFoundException,
} from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { CreateProviderInput } from './dto/create-provider.input';
import { UpdateProviderInput } from './dto/update-provider.inp... |
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
import { User } from './user.entity';
export const GetUser = createParamDecorator(
(_data, ctx: ExecutionContext): User => {
const { req } = ctx.switchToHttp().getRequest();
return req.user as User;
},
); |
import { Component } from '@angular/core';
import { IonicPage, ModalController } from 'ionic-angular';
import { Api } from '../../providers/api/api';
import { User } from '../../providers/user/user';
import { TransactionPage } from '../transaction/transaction';
interface Transaction {
id: number;
from_address: st... |
import { Alert, Linking, StyleSheet, View, FlatList } from "react-native";
import React from "react";
import CarbonText from "../components/CarbonText";
import { FontSizeMedium } from "../FontSizes";
import CarbonButton from "../components/CarbonButton";
import CarbonButtonOutline from "../components/CarbonButtonOutlin... |
export * from './string-character-stream.class';
export * from './character-stream.interface';
export * from './lexer.interface';
export * from './dice-lexer.class';
export * from './non-global-definition-error.class';
export * from './token-type.enum';
export * from './token.class'; |
import LngLat from '../common/LngLat';
import IPolygonOption from '../interface/IPolygonOption';
import Overlayerbase from './Overlayerbase';
export default class Polygon extends Overlayerbase {
paths: LngLat[];
symboltype: string;
fillColor: string;
strokeColor: string;
style: string;
strokeWei... |
import { Shape } from '@antv/x6'
Shape.Path.define({
shape: 'flowchart_decision',
overwrite: true,
width: 100,
height: 100,
attrs: {
body: {
fill: '#fff',
stroke: '#000',
strokeWidth: 1,
refD: 'M 50 0 L 100 50 L 50 100 L 0 50 Z',
},
},
}) |
export interface TimelineRanged {
/**
* min
*/
min?: number | null;
/**
* max.
*/
max?: number | null;
/**
* Allow to calculate min.
*/
getMin?: () => number;
/**
* Allow to calculate max.
*/
getMax?: () => number;
} |
import * as React from "react";
type Props = {
size?: number | string;
color?: string;
};
function FullnodeErrorMedium({ size = 16, color = "currentColor" }: Props): JSX.Element {
return (
<svg
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2... |
import axios from 'axios'
import { API_FQDN } from './constants'
import { DicePool } from './contestants'
export type HarmTagType = 'sacred' | 'perilous' | 'mythic' | 'epic'
export interface Strife {
timestamp: string
strifeLevel: number
dicePool: DicePool
harmTags: HarmTagType[]
targetNumber: num... |
import { api } from '../../gateway/api.server';
import { RouteMiddleware } from '../../types/route-middleware';
import { RequestError } from '../../utility/errors/request-error';
import { optionalUserWithScope } from '../../utility/user-with-scope';
// This should be called when a collection, manifest or canvas has be... |
import checkSVG from "./icons/check.svg";
import crossSVG from "./icons/cross.svg";
import { Button, Input, InputRef } from "antd";
import React, { useEffect, useRef, useState } from "react";
import { CloudStorageFileName } from "../types";
export interface CloudStorageFileTitleRenameProps {
fileUUID: string;
... |
import React from 'react'
import { graphql, StaticQuery } from 'gatsby'
import Img from 'gatsby-image'
const RenderImage = ({ file }: { file: any }) => {
console.log(file)
if (!file) return null
return <Img fluid={file.node.childImageSharp.fluid} />
}
interface IImageProps {
src: String
}
const Image = ({ sr... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-planning',
templateUrl: './planning.component.html',
styleUrls: ['./planning.component.scss']
})
export class PlanningComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import { InjectionToken } from '@angular/core';
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/delay';
import { RemoteDataService } from '../shared/remote-data.service';
exp... |
import { Vector3 } from '../../../types';
import vtkCell from '../Cell';
export enum IntersectionState {
NO_INTERSECTION,
YES_INTERSECTION,
ON_LINE,
}
interface ILineInitialValues { }
interface IIntersectWithLine {
intersect: number;
t: number;
subId: number;
evaluation?: number;
betweenPoints?: boolean;
}
... |
import { Component, OnInit, Injector } from '@angular/core';
import { MatDialog } from '@angular/material';
import { appModuleAnimation } from '@shared/animations/routerTransition';
import { AppSessionService } from '../../shared/session/app-session.service';
import { AppComponentBase } from '@shared/app-component-ba... |
// #docplaster
// #docregion
import { NgModule } from '@bangular/core';
import { RouterModule, Routes } from '@bangular/router';
import { CrisisCenterHomeComponent } from './crisis-center-home.component';
import { CrisisListComponent } from './crisis-list.component';
import { CrisisCenterComponent } ... |
/**
* This whole function must be inherently synchronous;
*
* since this is mainly invoked pre-initialization for configs like
* webpack, fusebox, gulp, etc., making this function asynchronous
* will create awkward workarounds in the config files (e.g. you can't
* initialize gulp's default tasks in a then callba... |
import { makeAddSurveyValidation } from './add-survey-validation-factory';
import { Controller } from '@/presentation/protocols';
import { AddSurveyController } from '@/presentation/controllers';
import { makeDbAddSurvey } from '@/main/factories/usecases/survey/db-add-survey-factory';
import { makeLogControllerDecorato... |
import {
ArgumentMetadata,
Injectable,
PipeTransform,
BadRequestException,
} from '@nestjs/common';
/* Object schema validation */
@Injectable()
export class JoiValidationPipe
implements PipeTransform<{ value: any; metadate: any }> {
constructor(private readonly schema: Record<string, any>) {}
async tra... |
import get from "lodash.get";
import type { Request, Response } from "express";
/**
* Helper function to parse req.session.
*
* @function parseSession
* @param req - express `Request`
* @returns string or undefined
*/
const parseSession = (req: Request): string | undefined =>
get(req, ["session", "user", "id"]... |
/**
* @license Use of this source code is governed by an MIT-style license that
* can be found in the LICENSE file at https://github.com/cartant/eslint-plugin-rxjs-angular
*/
import {
TSESLint,
TSESTree as es,
} from "@typescript-eslint/experimental-utils";
import { stripIndent } from "common-tags";
import {
... |
export declare function getEmbeddedAssetUri(hash: string, type: string | null): string | null; |
import { Request, Response } from 'express';
import { TransactionAction } from '../models/transaction';
import { Order, PaymentStatus } from '../models/order';
import { DB } from '../db';
import { Log } from '../models/log';
import { IPaymentResponse } from '../models/payment/index';
import { Account } from '../models... |
/**
* @license
* Copyright Google LLC 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 {Component, Input, NgModule} from '@angular/core';
import {BrowserModule, DomSanitizer, SafeStyle} from '@angu... |
import { AcdData } from '../../acd-data';
/**
* Data send from the propertyInspectorDidDisappear event
* @category Event Data
*/
export interface PropertyInspectorDidDisappearEvent extends AcdData {
event: 'propertyInspectorDidDisappear';
} |
import IObservable from './IObesrvable';
export default interface IObserve {
// properties
observable: IObservable;
//methods
update(): void;
} |
import { Message, MessageOptions } from 'discord.js'
import { Bot } from '../../utils/types'
function chunk (array: any[], size: number = 1): Array<any> {
let chunk: any[] = []
return array.reduce((acc, curr, idx, arr) => {
chunk.push(curr)
if (chunk.length === size) {
acc.push(chunk)
chunk = [... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_CL" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About YAYcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
<TS language="de" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Rechtsklick um Adresse oder Bezeichnung zu bearbeiten</translation>
</message>
<message>
<source>Create a new address</source>
... |
class Student {
fullName: string;
constructor(public firstName, public middleInitial, public lastName) {
this.fullName = firstName + " " + middleInitial + " " + lastName;
}
}
interface Person {
firstName: string;
lastName: string;
}
function greeter(person : Person) {
return "Hello, " ... |
import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
export interface ChipClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `color="primary"`. */
colorPrimary: string;
/** Styles applied to the root element if `color="neutral"`. ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.