text stringlengths 10 953k |
|---|
export * from './chat.component';
export * from './chat.model'; |
import cn from 'classnames'
import Link from 'next/link'
import { FC } from 'react'
import s from './CartSidebarView.module.css'
import CartItem from '../CartItem'
import { Button, Text } from '@components/ui'
import { useUI } from '@components/ui/context'
import { Bag, Cross, Check } from '@components/icons'
import us... |
import {Component, OnDestroy, OnInit} from '@angular/core';
import {Stream} from '../../../shared/model/stream.model';
import {ActivatedRoute, Params, Router} from '@angular/router';
import {NotificationService} from '../../../shared/service/notification.service';
import {StreamService} from '../../../shared/api/stream... |
// Copyright 2020 The Kubermatic Kubernetes Platform contributors.
// 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 app... |
import {CaretString, Mask} from '../src';
import {performance} from "perf_hooks";
import {assert} from 'chai';
import '../src/util/input-event';
describe('y/yy/yyy/(yyyy AC)', () => {
const format = '[9990] AC';
const mask: Mask = new Mask(format);
const placeholder: String = mask.placeholder();
it('m... |
import actions from './actions';
import hoc from './hoc';
import reducer from './reducer';
export default { ...actions, ...hoc, ...reducer }; |
import { DimItem } from 'app/inventory/item-types';
import { itemHashTagsSelector, itemInfosSelector } from 'app/inventory/selectors';
import { getSeason } from 'app/inventory/store/season';
import { D1BucketHashes } from 'app/search/d1-known-values';
import { D2ItemTiers } from 'app/search/d2-known-values';
import { I... |
import * as fs from "fs"
import * as path from "path"
import listAllDependencies from "./list-all-dependencies"
import SearchedPlugin from "./searched-plugin"
export default async function (): Promise<ReadonlyArray<SearchedPlugin>> {
const dependencies = await listAllDependencies()
const output: SearchedPlugin[] ... |
import { Decoder, nullDecoder } from '../createDecoder'
import { Message } from '../Message'
import { RpcEventHeaders } from '../RpcEventHeaders'
import { createDecodingEventDispatcher } from './createDecodingEventDispatcher'
import { EventDispatcher } from './Dispatcher'
interface CreateEventDispatcher {
<HeadersTy... |
import { AppPage } from 'mvp-app-random-id/src/components/app-page'
export default AppPage |
import * as aws from "aws-sdk";
export async function lambdaHandler(event, context) {
console.log(event);
const docId = event.detail.docId;
const s3 = new aws.S3();
const listParams = {
Bucket: process.env.bucketName,
Prefix: docId,
};
const promise = new Promise((resolve, reject) => {
s3.lis... |
import type * as d from '../../declarations';
import { normalizePath } from '@utils';
import ts from 'typescript';
export const getModule = (compilerCtx: d.CompilerCtx, filePath: string) =>
compilerCtx.moduleMap.get(normalizePath(filePath));
export const createModule = (
staticSourceFile: ts.SourceFile, // this i... |
import {TalkGroup} from '../../../db/db';
import {IApplication, IUser, ITalkGroup} from '../../../db/interfaces';
import {isName} from '../../../spec/talk-group';
/**
* TalkGroupを作成します
* @param app API利用App
* @param me API利用ユーザー
* @param name グループ名
* @return 作成されたTalkGroupオブジェクト
*/
export default function(
app:... |
import {
CommuniqueComponentConfig,
CommuniqueNotificationComponent,
CommuniqueNotificationIconComponent,
CommuniqueNotificationOptions,
CommuniqueOptions,
CommuniqueVariantConfig,
CommuniquePluginOptions,
CommuniqueStyleConfig,
CommuniqueNotificationDefaultOptions,
} from 'types'
import Vue, { Plugin... |
import crypto from "crypto";
import querystring from "querystring";
import axios from "axios";
/*
SPARCS SSO V2 Client for NodeJS Version 1.0 (verified)
Made by SPARCS SSO Team - appleseed, jungnoh
Dependencies: node ^10, axios ^0.18
*/
interface UserInformation {
uid: string;
first_name: string;
last_name: s... |
import React from "react";
import { DataLoader } from "../DataLoader";
import { act } from "@testing-library/react";
import { render, unmountComponentAtNode } from "react-dom";
let container: HTMLDivElement;
beforeEach(() => {
container = document.createElement("div");
document.body.appendChild(container);
});
af... |
import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable, of } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class UserService {
public getUsers(): BehaviorSubject<string[]> {
const users = new BehaviorSubject<string[]>(['John', 'Jane', 'Joe']);
return users;
}
public... |
import { DimensionNames, Dimensions } from '../common/types';
import {
DEFAULT_LEFT_SIDEBAR_WIDTH,
DIMENSIONS,
LEFT_PANEL_WIDTH,
PAGE_LAYOUT_LS_KEY,
PAGE_LAYOUT_SLOT_SELECTOR,
} from './constants';
import safeLocalStorage from './safe-local-storage';
const emptyGridState: Dimensions = DIMENSIONS.reduce(
(... |
import axios from 'axios';
import { createContext, ReactNode, useEffect, useState } from 'react';
import { userPreferences } from '../api/api';
function applyPreferences(preferences: userPreferences) {
if (typeof preferences === 'undefined') return;
document.getElementsByTagName('html')[0].classList[preferences.dar... |
import { Oas3RuleSet } from '../../validate';
import { OasSpec } from '../common/spec';
import { Operation2xxResponse } from '../common/operation-2xx-response';
import { OperationIdUnique } from '../common/operation-operationId-unique';
import { OperationParametersUnique } from '../common/operation-parameters-unique';... |
import { Module } from '@nestjs/common';
import { databaseProviders } from './database.providers';
@Module({
providers:[...databaseProviders],
exports:[...databaseProviders],
})
export class DatabaseModule {} |
import { APP_BASE_HREF, CommonModule } from '@angular/common';
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AboutComponent } from './../../static/about/about.component';
import { AppRoutingModule } from '../../../a... |
import { combineReducers, AnyAction } from 'redux';
import { reducer as authorizer } from './login-form';
export default combineReducers({
authorizer,
}); |
import { ActionType } from "../metadata/types/ActionType";
/**
* Registers an action to be executed when request with specified method comes on a given route.
* Must be applied on a controller action.
*/
export declare function Method(method: ActionType, route?: RegExp): Function;
/**
* Registers an action to be ex... |
/*
* 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 {
// @ts-ignore
EuiCard,
} from '@elastic/eui';
import { mount, sh... |
import memoizeOne from 'memoize-one';
import {
GetAllServicesDdQuery, GetAllRoomStatusesDdQuery,
GetAllRoomViewsDdQuery, GetAllBedsDdQuery, GetAllReservationStatusesDdQuery,
GetAllServiceStatusesDdQuery, GetAllRoomTypesDdQuery,
GetAllUserRolesDdQuery, GetAllHotelsQuery
} from '../../generated/graphql'
import { ... |
import { Main } from "../main";
import { IRect } from "../model/Model";
import { HistoryManager } from "./HistoryManager";
export class ElementView {
public static createElement(
bounds: IRect, id: string, elementType: string = "div", positionType: string = "absolute"): HTMLElement {
const componen... |
import { AppError, exec } from '.';
import { ExecConfig, HandlerCallback, HandlerContext } from './interfaces';
describe("error strategies", () => {
let execConfig: ExecConfig;
let handler: jest.Mock;
let exit: jest.SpyInstance<any, any>;
const testCLI = (argv: string[] = []) => exec({ ...execConfig, argv });... |
import { Module } from '@neskjs/common';
import { TypeOrmModule } from '@neskjs/typeorm';
import { PhotoService } from './photo.service';
import { PhotoController } from './photo.controller';
import { Photo } from './photo.entity';
@Module({
imports: [TypeOrmModule.forFeature([Photo])],
components: [PhotoService],... |
import { TestBed, waitForAsync } from '@angular/core/testing';
import { operationCanceled } from '@app/core/store/actions';
import { empty } from '@app/core/store/actions/empty.actions';
import { Actions } from '@ngrx/effects';
import { provideMockStore } from '@ngrx/store/testing';
import { of } from 'rxjs';
import { ... |
import {
h,
ref,
toRefs,
reactive,
computed,
nextTick,
Fragment,
defineComponent,
ComponentPublicInstance
} from 'vue'
import { CrossTabClient, ClientMeta } from '@logux/client'
import { mount, VueWrapper } from '@vue/test-utils'
import { TestLog, TestTime } from '@logux/core'
import { delay } from 'n... |
import ClientMessage = require('../ClientMessage');
export declare class QueueClearCodec {
static calculateSize(name: string): number;
static encodeRequest(name: string): ClientMessage;
} |
import * as React from 'react';
import { bundleIcon, CalendarMonthFilled, CalendarMonthRegular } from '@fluentui/react-icons';
import { Tooltip } from '@fluentui/react-tooltip';
import { CompoundButton } from '@fluentui/react-button';
const CalendarMonth = bundleIcon(CalendarMonthFilled, CalendarMonthRegular);
export... |
import chalk from 'chalk'
import {Command} from 'clipanion'
import {newApiKeyValidator} from '../../helpers/apikey'
import {InvalidConfigurationError} from '../../helpers/errors'
import {ICONS} from '../../helpers/formatting'
import {RequestBuilder} from '../../helpers/interfaces'
import {getMetricsLogger} from '../..... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/* eslint-disable @typescript-eslint/no-unused-vars */
import { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-http";
import { credentialLogger } from "../util/logging";
import { trace } from "../util/tracing";
import { Auth... |
/* GENERATED FILE */
import * as React from "react";
import Svg, { Rect, Path } from "react-native-svg";
import { IconProps } from '../lib'
function SimCard(props: IconProps) {
return <Svg viewBox="0 0 256 256" width={props.size} height={props.size}
fill={props.color} {...props}><Rect width={256} height={256} fill=... |
import { PutObjectCommand, GetObjectCommand } from '@aws-sdk/client-s3';
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
import { NextFunction, Request, Response } from 'express';
import ash from 'express-async-handler';
import { StatusCodes } from 'http-status-codes';
import { getRepository } from 'typeo... |
import { IsString } from 'class-validator';
export class FetchInviteeDto {
/**
* ID in tailor's invite link
* @example '949949943l4llnnj3800844'
*/
@IsString()
id: string;
/**
* invite code in talors invite link
* @example 'uuu4u4u4x'
*/
@IsString()
inviteCode: string;
} |
import { Buffer } from 'buffer'
import * as fs from 'fs'
import * as path from 'path'
import * as util from 'util'
import * as v8 from 'v8'
const Module = require('module')
// We modified the original process.argv to let node.js load the init.js,
// we need to restore it here.
process.argv.splice(1, 1)
// Clear sear... |
import Enemy from './Enemy';
export default class MainCharacterRenderer {
private context: CanvasRenderingContext2D;
constructor(context: CanvasRenderingContext2D) {
this.context = context;
}
public render(enemy: Enemy): void {
this.context.fillStyle = '#000';
this.context.stro... |
import { ChannelTypes, ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../mod.ts";
import { CACHED_COMMUNITY_GUILD_ID } from "../constants.ts";
import { assertEquals, assertExists } from "../deps.ts";
import { bot } from "../mod.ts";
Deno.test({
name: "[scheduled event] create a guild scheduled event... |
import betterLogging from 'better-logging'
import { Client, Intents } from 'discord.js'
import { loadCommands, loadEvents } from './util/handlers'
betterLogging(console)
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] })
loadEvents(client)
loadCommands()
client.login(proce... |
import { CarrierSettingsCarrierNameEnum, References } from '@/purplship/rest/index';
import React, { useContext, useState } from 'react';
import InputField from '@/components/generic/input-field';
import CheckBoxField from '@/components/generic/checkbox-field';
import ButtonField from '@/components/generic/button-field... |
/*!
* Copyright 2016 The ANTLR Project. All rights reserved.
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
*/
import { ANTLRErrorStrategy } from "./ANTLRErrorStrategy";
import { ATN } from "./atn/ATN";
import { ErrorNode } from "./tree/ErrorNode";
import { I... |
import { Injectable } from '@angular/core';
import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreDocument, DocumentReference } from '@angular/fire/firestore';
import { map, take } from 'rxjs/operators';
import { Observable } from 'rxjs';
export interface complainForm {
id?: string,
userId: any... |
import React, { useEffect, useState } from 'react';
import { Organization, SFNSummary } from '../../models';
import NumberDisplay from '../NumberDisplay';
interface Props {
org: Organization | undefined;
}
export default function TotalsBySfn(props: Props): JSX.Element {
const [totals, setTotals] = useState<SFNSum... |
/*
* This file is open-source. This means that it can be reproduced in whole
* or in part, stored in a retrieval system transmitted in any form, or by
* any means electronic with my prior permission as an author and owner
* Please refer to the terms of the license agreement in the root of the project
*
* (c) 2020... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { Dialog, showDialog } from "@jupyterlab/apputils";
import { ServerConnection } from "@jupyterlab/services";
import { ReadonlyJSONObject } from "@lumino/coreutils";
import * as React from "react";
const HDF_... |
export * from "./secure-link"; |
import { Constructor } from '../typings/daruk';
export declare function plugin(): (target: Constructor<any>) => void;
export declare function timer(): (target: Constructor<any>) => void;
export declare function service(): (target: Constructor<any>) => void; |
import { ARN } from "@aws-sdk/util-arn-parser";
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
const IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
const DOTS_PATTERN = /\.\./;
export const DOT_PATTERN = /\./;
export const S3_HOSTNAME_PATTERN = /^(.+\.)?s3[.-]([a-z0-9-]+)\./;
const S3_US_EAST_1_ALTNAME_PATTERN ... |
import { SWF } from "../SWF.ts";
import { SWFClient } from "../SWFClient.ts";
import { PaginationConfiguration } from "../../types/mod.ts";
export interface SWFPaginationConfiguration extends PaginationConfiguration {
client: SWF | SWFClient;
} |
import { MigrationInterface, QueryRunner } from "typeorm";
export class init1611156334986 implements MigrationInterface {
name = "init1611156334986";
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE TABLE "user" ("id" SERIAL NOT NULL, "username" character varyi... |
/// <reference types="mongoose" />
export declare type DeliveryDocument = Delivery & Document;
export declare class Delivery {
item_id: string;
parent: string;
from_entity: string;
to_entity: string;
delivery_token: string;
delivery_agent: string;
delivery_date: Date;
status: string;
... |
namespace kodu {
export type CharacterState = {
x: number;
y: number;
id: string;
bdefn: string;
};
export enum ImpulseType {
Exclusive, // Doesn't blend with any other movement.
Ambient, // Can be blended with other movement.
Default ... |
/* eslint-disable no-console */
import '@testing-library/jest-dom/extend-expect';
const originalConsoleError = console.error;
// Throw Error if any of those occurs during unit tests
const THROWING_MESSAGES = ['SyntaxError:', 'ECONNREFUSED'];
console.error = (message: string) => {
originalConsoleError(message);
... |
import classnames from 'classnames'
import { useRef, useLayoutEffect, useState, useMemo, ReactElement, Children, cloneElement } from 'react'
import { createPortal } from 'react-dom'
import { Icon } from '@components'
import { noop } from '@lib/helper'
import { BaseComponentProps } from '@models'
import './style.scss'
... |
<TS language="fa" version="2.1">
<context>
<name>AcceptandPayOfferListPage</name>
<message>
<source>Quantity:</source>
<translation>تعداد:</translation>
</message>
</context>
<context>
<name>AcceptedOfferListPage</name>
<message>
<source>Export the data in the current tab... |
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
export declare namespace youtube... |
import { ethers } from "ethers";
import detectEthereumProvider from "@metamask/detect-provider";
export default async function initWeb3(): Promise<ethers.providers.Web3Provider> {
const prov = await detectEthereumProvider();
if (prov) {
return new ethers.providers.Web3Provider(
prov as ethers.providers.E... |
import { Card } from '../../../interfaces'
import Set from '../Phantom Forces'
const card: Card = {
name: {
en: "Girafarig",
fr: "Girafarig",
},
illustrator: "Mitsuhiro Arita",
rarity: "Uncommon",
category: "Pokemon",
set: Set,
dexId: [
203,
],
hp: 90,
types: [
"Colorless",
],
stage: "Basic",
... |
import { NgModule } from '@angular/core';
import { DamselMetaModule } from '../damsel-meta/damsel-meta.module';
import { DomainInfoModule } from './domain-info/domain-info.module';
import { DomainObjModificationModule } from './domain-obj-modification';
import { DomainObjReviewModule } from './domain-obj-review';
impo... |
import * as React from 'react';
import { Component } from 'react';
import { Switch, Route, HashRouter as Router, Redirect } from 'react-router-dom';
import Page from './pages/index';
import RoutesArr from './pages/components/routes';
export default class App extends Component {
render() {
return (
<Router>... |
import { Module } from '@nestjs/common';
import { UsersController } from './users.controller';
import { UsersService } from './users.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './users.entity';
import { JwtModule } from '@nestjs/jwt';
import configuration from '../config/configurati... |
import { Injectable } from '@angular/core';
import {AngularFirestore} from '@angular/fire/firestore';
import {Course} from '../model/course';
import {from, Observable, of} from 'rxjs';
import {first, map} from 'rxjs/operators';
import {convertSnaps} from './db-utils';
import {Lesson} from '../model/lesson';
import Orde... |
import { Component, OnInit } from '@angular/core'
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'
import { DatabaseService, NovelRequest, Novel } from 'wnu-shared'
@Component(
{
templateUrl: './viewNovelRequests.component.html'
})
export class ViewNovelRequestsComponent implements OnInit
{
novelReq... |
export interface Package {
version: '1.0.0';
} |
/**
*
* common
*
*/
import type { DocumentNode, GraphQLError } from 'graphql';
/**
* Header key through which the event stream token is transmitted
* when using the client in "single connection mode".
*
* Read more: https://github.com/enisdenjo/graphql-sse/blob/master/PROTOCOL.md#single-connection-mode
*
* ... |
/** @jsxImportSource @emotion/react */
/** Do not edit this file directly. Edit the template in scripts/icon-template.ejs **/
import { jsx, css } from "@emotion/react";
import * as React from "react";
import PropTypes from "prop-types";
import { IconProps, IconSizes } from "../IconTypes";
import { useTheme } from "../.... |
// This util has public sendTransaction and deploy methods that estimate the gas
// of a transaction or contract deployment, and then inject that esimation into
// the original call. This should actually be handled by the contract abstraction,
// but is only part of the next branch in truffle, so we are handling it man... |
/**
* @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 {CldrLocaleData} from './cldr-data';
/**
* Returns data for the chosen day periods
*/
export function getDa... |
/*
* 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 restrict... |
import * as React from "react"
import {
BottomNavigationAction,
Icon,
IconButton,
List
} from "@material-ui/core"
import {
AppFrame,
BottomNavigation,
MainContent,
Navigation,
NavigationLink,
Title,
TitleBar
} from "components"
export const TooWideThingsGrid = () => (
<AppFrame withGridLayout>
<TitleBar... |
export declare const a = 1, b = 2;
export declare function foo():void;
export class A { constructor() {}}
export declare type obj = {}
export interface I {}
export * as ts from "typescript";
... |
/*
* Permissions management system, define access level for each of
* your server apis, and restrict users by giving them access levels
*
* Copyright (C) 2020 Adam van der Kruk aka TacB0sS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... |
import Config from 'config'
import User from 'entities/User'
import jwt from 'jsonwebtoken'
import validator from 'validator'
type TokenPayload = {
id: string | null | undefined
}
export const generateToken = async (user: User): Promise<string> => {
const config = await Config.getConfig()
const payload: TokenPa... |
import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import {BookDetailsPage} from '../book-details/book-details';
import {ReviewsServiceProvider} from '../../providers/reviews-service/reviews-service';
import {ReviewersServiceProvider} from '../../providers/reviewers-ser... |
import { act, renderHook } from '@testing-library/react-hooks';
import useParticipants from '../useParticipants/useParticipants';
import { useAppState } from '../../contexts/AppStateContext';
import useAudience from './useAudience';
jest.mock('../useParticipants/useParticipants');
const mockUseParticipants = usePartic... |
const monthsOfYear:Array<string> = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
]
const daysOfWeek:Array<string> = [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
... |
const messages = {
requiredMessage: 'Please select a value.'
};
export default { messages }; |
import { View, ViewProps } from 'remax/one';
import React from 'react';
import Icon from './one/index';
import { IconFontProps } from './other';
import styles from './index.module.less';
import classNames from 'classnames';
import useViewLayout from '../use-view-layout';
import NeedWrap from '../need-wrap';
import Rota... |
/**
* Shoppr - E-commerce app starter Ionic 4(https://www.enappd.com)
*
* Copyright © 2018-present Enappd. All rights reserved.
*
* This source code is licensed as per the terms found in the
* LICENSE.md file in the root directory of this source .
*
*/
import { NgModule } from '@angular/core';
import { CommonM... |
//// { order: 4 }
// Mixins are a faux-multiple inheritance pattern for classes
// in JavaScript which TypeScript has support for. The pattern
// allows you to create a class which is a merge of many
// classes.
// To get started, we need a type which we'll use to extend
// other classes from. The main responsibility... |
import { Injectable } from '@nestjs/common';
import { isUndefined } from 'lodash';
import { Equal, FindConditions } from 'typeorm';
import { Role } from '../entity/role';
import { RoleRepository } from '../repository/role.repository';
/**
* 역할 서비스
*/
@Injectable()
export class RoleService {
/**
* 생성자이다.
*
* @... |
export interface RegistrationResponse {
token: string;
refreshToken: string;
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import User from '../infra/typeorm/entities/User';
import AppError from '@shared/errors/AppError';
import IUsersRepository from '../repositories/IUsersRepository';
import { inject, injectable } from 'tsyringe';
import IhashProvider from '../providers/HashProvider/models/IHashProvider';
import ICacheProvider from '@sha... |
version https://git-lfs.github.com/spec/v1
oid sha256:029ab044ef616f2acd98b3050c09526fff4286c1638eb6bcd8dd05475e9088a9
size 613632 |
import app_config from '@/app_config.json'
import {ios_device} from '@/services/utils'
// If not an iOS device the value will be null, so default to iPhone for other browsers to see
const ios_device_str = ios_device || 'iPhone'
export const i18n_strings = {
// tslint:disable:max-line-length
en: {install: {
... |
const { RTMClient } = require('@slack/client');
import { getConfig, IParentConfig, makeLocalLogger } from './configs';
import { slackMessageIncoming, ISlackMessage } from './actions';
import { store } from './store';
const _log = makeLocalLogger('slack');
// slack real-time messaging
export const slackRTM: any = (()... |
import { z } from "zod";
import { SELECT_VALUE } from "../leo";
export const CALL_911_SCHEMA = z.object({
location: z.string().min(2),
description: z.string().optional(),
descriptionData: z.any().nullable().optional(),
name: z.string().min(2).max(255),
postal: z.string().nullable().optional(),
assignedUnit... |
/*!
* @license
* Copyright 2019 Alfresco, 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... |
import { Injectable, Inject } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { Observable } from "rxjs";
import { map } from "rxjs/operators";
import { Log } from "./log.model";
@Injectable()
export class LogService {
constructor(
private _client: HttpClient
) { }
public get... |
import { NotFoundException } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import { MoviesService } from './movies.service';
describe('MoviesService', () => {
let service: MoviesService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
... |
export enum DependencyInjectionMetadataKey {
INJECT_TOKENS = 'inject:tokens',
PARAMTYPES = 'design:paramtypes',
} |
import React from 'react';
import { faBriefcase, faTrain } from '@fortawesome/pro-solid-svg-icons';
import { TimeDisplay } from '../TimeDisplay';
import { IconLabel } from '../IconLabel';
import { useQuery } from '@apollo/react-hooks';
import query from './query';
import {
IAveragesQueryData,
IAveragesComponentProp... |
import { Table } from "@/lib/Database/Table";
export interface IRoomCategory {
CategoryName?: string;
CategoryDescription?: string;
Id: number;
}
export class RoomCategory extends Table {
constructor(exists: boolean = false) {
super(exists);
this.table_name = "roomcategories";
this.InitQueryBuilde... |
/**
* Returns the type from an action instance.
* @ignore
*/
export function getActionTypeFromInstance(action: any): string {
if (action.constructor && action.constructor.type) {
return action.constructor.type;
}
return action.type;
}
/**
* Matches a action
* @ignore
*/
export function actionMatcher(a... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', ... |
import {Client, expect} from '@loopback/testlab';
import {BeeGreenServerApplication} from '../..';
import {setupApplication} from './test-helper';
describe('PingController', () => {
let app: BeeGreenServerApplication;
let client: Client;
before('setupApplication', async () => {
({app, client} = await setupA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.