text stringlengths 10 953k |
|---|
import { Component, ViewChild, AfterViewInit } from '@angular/core';
import { IgxTimePickerComponent, InteractionMode, IgxInputDirective, AutoPositionStrategy } from 'igniteui-angular';
@Component({
selector: 'app-time-picker-sample',
styleUrls: ['time-picker.sample.scss'],
templateUrl: 'time-picker.sample... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {IconDefinition, IconName, IconPrefix} from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faFileImport: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatur... |
import { Injectable } from '@angular/core';
import { createEffect, Actions, ofType } from '@ngrx/effects';
import { fetch } from '@nrwl/angular';
import { EMPTY, of } from 'rxjs';
import { map, mergeMap, catchError } from 'rxjs/operators';
import { AppService } from '../app.service';
import * as todoActions from './t... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// Copyright 2015-2021 Swim.inc
//
// 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 law or agreed to i... |
import { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient";
import { DeleteRecordingConfigurationRequest } from "../models/models_0";
import {
deserializeAws_restJson1DeleteRecordingConfigurationCommand,
serializeAws_restJson1DeleteRecordingConfigurationCommand,
} from "../protoco... |
import yaml from "yaml";
import { baseConfig } from "../base.config";
describe("baseConfig", () => {
it("should match snapshot", () => {
expect(yaml.stringify(baseConfig)).toMatchSnapshot();
});
}); |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Silicoin</source>
<translation>אודות לייטקוין</translation>
</me... |
import React from 'react';
import { Toolbar, ToolbarGroup } from '@patternfly/react-core';
const PfContainerNavVertical = props => {
return (
<Toolbar>
<ToolbarGroup>{props.children}</ToolbarGroup>
</Toolbar>
);
};
export default PfContainerNavVertical; |
import {MolitioResource} from './molitioResource';
export interface ResourceValet {
resources: MolitioResource[];
} |
// Copyright 2017-2022 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// order important in structs... :)
/* eslint-disable sort-keys */
import type { DefinitionsTypes } from '../../types';
export const v10: DefinitionsTypes = {
// v10
ErrorMetadataV10: 'ErrorMetadataV9',
EventMe... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
// title = 'QUOTES';
} |
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const PageSolidIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" className={classes.svg}>
<path d="M1755 512h-475V37l475 475zm37 128v1408H128V0h1024v640h640z" />
... |
import React from 'react';
import { createStackNavigator} from '@react-navigation/stack';
import { Text } from "react-native";
import{Home, Catalog, ProductDetails, Login, Dashboard } from '../pages';
import{ NavBar } from "../components"
import { colors, nav } from '../styles';
const Stack = createStackNavigator();
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as cheerio from "cheerio";
import * as hljs from "highlight.js";
import * as inlineCss from "inline-css";
import * as MarkdownIt from "markdown-it";
import * as mdSub from "markdown-it-sub";
import * as mdSup from "markdown-it-sup";
import * as mdEmoji from "markdown-it-emoji";
import * as mdEnmlTodo from "mar... |
import { MigrationInterface, QueryRunner, Table } from "typeorm";
export class CreateCategories1638757027588 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: "categories",
columns: [
{
... |
export type {ID, Distinct} from "./distinct";
export {SwapType, mintBurnSwapTypes} from "./swaptype";
export {rpcProviderForChain} from "./rpcproviders";
export {tokenSwitch} from "./utils"; |
import { HttpErrorResponse } from '@angular/common/http';
import { ChangeDetectionStrategy, Component, Injector, OnInit } from '@angular/core';
import {
CustomFieldTypeEnum, ShoppingCartItemAvailabilityEnum, ShoppingCartItemDetailed,
ShoppingCartItemQuantityAdjustmentEnum, ShoppingCartView
} from 'app/api/models';
... |
import { parseISO } from 'date-fns'
import formatDistanceStrict from 'date-fns/formatDistanceStrict'
import { isEqual } from 'lodash'
import AlertCircleIcon from 'mdi-react/AlertCircleIcon'
import React, { useEffect, useMemo } from 'react'
import { Observable, of } from 'rxjs'
import { catchError, map, startWith } from... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="nb">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Leilecoin</source>
<translation>Om Leilecoin</tran... |
import qs from "qs"
/**
* Get full Strapi URL from path
* @param {string} path Path of the URL
* @returns {string} Full Strapi URL
*/
export const getStrapiURL = (path: string = ""): string => {
const strapiDomain =
process.env.NEXT_PUBLIC_STRAPI_API_URL || "http://localhost:1337"
return `${strapiDomain}... |
import { Redis } from 'ioredis'
import { ECommand } from '../types'
import { DBClient } from './db'
import { logger } from '../logger'
import { ListResult, AddResult, RemoveResult, FlowResult } from './types'
/**
* Redis table structure:
* HMSET key<SHA224 string> download bytes<number> upload bytes<number>
* SET... |
/**
* # @nordicenergy-js/staking
This package provides a collection of apis to create, sign/send staking transaction, and receive confirm/receipt.
## Installation
```
npm install @nordicenergy-js/staking
```
## Usage
Create a Nordic Energy instance connecting to testnet
```javascript
* const { NordicEnergy } = r... |
import {
_BlockerDeclaration,
_UnmarshalledBlockerDeclaration
} from "./_BlockerDeclaration";
import {
_ActionDeclaration,
_UnmarshalledActionDeclaration
} from "./_ActionDeclaration";
/**
* <p>Represents information about a stage and its definition.</p>
*/
export interface _StageDeclaration {
/**
* <p>... |
/**
* This module promise-ifies some NodeJS APIs that are frequently used in this
* ext.
*/ /** */
import promisify_ = require('es6-promisify');
import * as util from 'util';
// VSCode doesn't ship with util.promisify yet, but we do have type definitions for it, so we'll
// hack those type definitions onto the type... |
/*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
/**
* @packageDocumentation
* @module @tomato-js/array
*/
import { isArray } from "@tomato-js/shared";
/**
* 将多维数组展平成一维数组
*
* 脚本举例
* ```
* import { deepFlatten } from '@tomato-js/array'
* deepFlatten([1, [2], [[3], 4], 5]); // [1,2,3,4,5]
* ```
*
* @param arr - 多维数组
* @returns 扁平化后的一维数组
*/
export func... |
import IOrgTreeNodeParent from "./organizationTreeNodeParent.interface";
import IInstitutionWithoutDate from "./organizationWithoutDate.interface";
interface IOrgTreeNodeOutput {
id: string;
name: string;
acronym: string;
description: string;
parent: IOrgTreeNodeParent;
institution: IInstitutionWithoutDat... |
import {
Component,
HostBinding,
TemplateRef,
QueryList,
Input,
OnInit,
ViewChild,
ElementRef,
OnChanges,
SimpleChanges,
Inject
} from '@angular/core';
import { GanttItemInternal, GanttGroupInternal } from '../../class';
import { NgxGanttTableColumnComponent } from '../../tab... |
import React from 'react';
import { Trans } from '@lingui/macro';
import { FormatBytes } from '@dogechia/core';
import usePlots from '../../../hooks/usePlots';
import FarmCard from './FarmCard';
export default function FarmCardTotalSizeOfPlots() {
const { size } = usePlots();
return (
<FarmCard
title={<... |
/* eslint-disable */
/* tslint:disable */
/*
* ---------------------------------------------------------------
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
* ## ##
* ## AUTHOR: acacode ##
* ## S... |
// Type definitions for parse 1.11
// Project: https://parseplatform.org/
// Definitions by: Ullisen Media Group <http://ullisenmedia.com>
// David Poetzsch-Heffter <https://github.com/dpoetzsch>
// Cedric Kemp <https://github.com/jaeggerr>
// Flavio Negrão <https://g... |
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
export const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
},
button: {
color: "red",
transition: 'all 0.1s',
borderBottom: '3px solid #828282',
textShadow: "0px -1px #828282",
"&.... |
/*
* 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 { useEffect, useState } from 'react';
import { errorToToaster, useSta... |
namespace ts.server {
export const maxProgramSizeForNonTsFiles = 20 * 1024 * 1024;
/*@internal*/
export const maxFileSize = 4 * 1024 * 1024;
export const ProjectsUpdatedInBackgroundEvent = "projectsUpdatedInBackground";
export const ProjectLoadingStartEvent = "projectLoadingStart";
export const... |
import produce from "immer";
type Selector<T, ReturnType> = (state: T) => ReturnType;
type SubscriptionCallback<U> = (selection: U) => void;
type ProducerCallback<T> = (currentState: T) => T | void;
interface StoreCacheHandler {
get(key: string): Promise<any>;
set(key: string, value: any): Promise<void>;
}
inter... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { OptionsContext } from '../contexts/options.ts'
import { useContext, createElement as e, ChangeEvent } from '../lib/react.ts'
import { FileOptions } from '../options.ts'
type Props<K extends keyof FileOptions> = {
name: K
accept?: string
}
export const File = <K extends keyof FileOptions>({
name,
acce... |
export interface Timer {
state: string;
enddate: string;
} |
import React, { useCallback, useMemo, useState } from 'react';
import styled from 'styled-components';
import { Svg } from 'react-optimized-image';
import { useRecoilValue } from 'recoil';
import { Trans, useTranslation } from 'react-i18next';
import NavigationBack from 'assets/svg/app/navigation-back.svg';
import Ga... |
export * from './column'; |
import Leader from '@civ-clone/core-civilization/Leader';
import Civilization from '@civ-clone/core-civilization/Civilization';
import German from '../German';
export class FrederickTheGreat extends Leader {
static civilization(): typeof Civilization {
return German;
}
name(): string {
return 'Frederick... |
// /src/action/power_settings_new/materialiconssharp/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgPowerSettingsNewSharp = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0V0z" fill="none"/>
<path d="M13 3h-2v... |
import { Component } from '@angular/core';
import { Observable } from 'rxjs';
@Component({
selector: 'body',
template: `
This is the main module!
<br><br>
<lz-dynamic-loader
[bundle]="bundle"
component="LazyModule#lz-lazy"
[inputs]="{ name: 'Connor', color: color }">
</lz-dynami... |
import { defineComponent, h, ref } from 'vue'
import type { Component, VNode } from 'vue'
export default defineComponent({
name: 'CodeGroup',
setup(_, { slots }) {
// index of current active item
const activeIndex = ref(-1)
// refs of the tab buttons
const tabRefs = ref<HTMLButtonElement[]>([])
... |
export const enum Environment {
PACKAGE_NAME = 'PACKAGE_NAME',
PACKAGE_CANARY_BUCKET_NAME = 'PACKAGE_CANARY_BUCKET_NAME',
CONSTRUCT_HUB_BASE_URL = 'CONSTRUCT_HUB_BASE_URL',
}
export const METRICS_NAMESPACE = 'ConstructHub/PackageCanary';
export const enum MetricName {
/**
* The time elapsed since a package... |
// APIに投げる検索クエリに対する実装
import apis from '/@/lib/apis'
import { ChannelId, MessageId, UserId } from '/@/types/entity-ids'
import {
channelParser,
InHereToken,
dateParser,
ExtractedFilter,
parseToFilter as parseToFilterBase,
FilterExtractor,
FilterParser,
makePrefixedFilterExtractor,
messageParser,
raw... |
import { nanoid } from 'nanoid';
import { DragItem } from './dragItem';
export interface Task {
id: string;
text: string;
}
export interface List {
id: string;
title: string;
tasks: Task[];
}
export interface AppState {
lists: List[];
draggedItem: DragItem | undefined;
}
const data: AppState = {
lis... |
import { Test, TestingModule } from '@nestjs/testing';
import { BrandsController } from './brands.controller';
describe('Brands Controller', () => {
let controller: BrandsController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [BrandsController],
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { TraceState } from "../../interfaces/trace_state";
/**
* @ignore
* @internal
*/
export class OpenCensusTraceStatePlugin implements TraceState {
private readonly _state?: string;
constructor(state?: string) ... |
/**
* tasks
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class ma... |
import { v4 } from "uuid";
import { CryptUtils } from "../../lib/cryptUtils";
import { userSessionMap } from "../../config/user";
import { userMessagingEmitterMap } from "../../config/message";
import { db } from "../db";
import EventEmitter from "events";
const userDbService = db.user;
export class User {
static as... |
import * as React from 'react';
import {expect} from 'test-drive-react';
import {globalId} from '../../src';
class TestClass extends React.Component<Partial<globalId.Props>> {
}
const {getRootId, getLocalId} = globalId;
describe('GlobalID', () => {
const id = 'pancake';
const anotherId = 'muffin';
const ... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {CheckoutSuccessComponent} from './checkout-success.component';
describe('CheckoutSuccessComponent', () => {
let component: CheckoutSuccessComponent;
let fixture: ComponentFixture<CheckoutSuccessComponent>;
beforeEach(async(() => {
... |
import * as React from 'react'
import { Interstitial } from './Interstitial'
import type { Story, Meta } from '@storybook/react'
export default {
title: 'App/Atoms/Interstitial',
component: Interstitial,
} as Meta
const Template: Story<React.ComponentProps<typeof Interstitial>> = args => (
<Interstitial {...arg... |
import { Controller, Get } from '@nestjs/common';
import { UserService } from './user.service';
@Controller('user')
export class UserController {
constructor(private readonly userService: UserService) {}
@Get()
getHello(): string {
return this.userService.getHello();
}
} |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { UserLogin3Component } from './user-login-3.component';
import { LayoutModule } from '../../../../../../layouts/layout.module';
const routes: Routes = [
{
... |
import {
ISelection,
IObjectWithKey,
Selection,
SelectionMode,
ISelectionOptions,
ISelectionOptionsWithRequiredGetKey,
EventGroup,
SELECTION_CHANGE,
} from 'office-ui-fabric-react/lib/Utilities'
export default class SelectionWithFilter<T = IObjectWithKey>
implements ISelection<T>
{
private _inner: ... |
<TS language="pt_PT" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clique com o botão direito para editar o endereço ou etiqueta</translation>
</message>
<message>
<source>Create a new address</s... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
import * as React from 'react';
import * as _ from 'lodash-es';
import { Button } from '@patternfly/react-core';
import { PencilAltIcon } from '@patternfly/react-icons';
import {
DetailsItem,
Kebab,
LabelList,
OwnerReferences,
ResourceLink,
Selector,
Timestamp,
useAccessReview,
} from './index';
import... |
import { describe, test, expect } from 'vitest';
import { EmbedBuilder, embedLength } from '../../src';
const alpha = 'abcdefghijklmnopqrstuvwxyz';
describe('Embed', () => {
describe('Embed getters', () => {
test('GIVEN an embed with specific amount of characters THEN returns amount of characters', () => {
cons... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { CanNavigateToAdminGuard } from './can-navigate-to-admin.guard';
export const routes: Routes = [
{
path: '',
redirectTo: 'home',
pathMatch: 'fu... |
import { existsSync } from 'fs'
import { dirname, join } from 'path'
import { isRoot, isStop } from './utils'
import type { MatcherSync } from './types'
export const lookItUpSync = (matcher: MatcherSync, dir = process.cwd()): string | null | never => {
if (typeof matcher === 'function' && (matcher(dir) as unknown) i... |
import type { Command } from "../../types/command.ts";
import type { Embed } from "../../../deps.ts";
import { DiscordColors, Division } from "../../utils/mod.ts";
import { ApplicationCommandOptionTypes, avatarURL } from "../../../deps.ts";
export default <Command> {
options: {
guildOnly: false,
adminOnly: f... |
import Express, { Request, Response, NextFunction } from 'express';
import cors from 'cors';
import * as dotenv from 'dotenv';
import routes from './routes';
dotenv.config();
const app = Express();
app.use(cors());
app.use(Express.json());
app.use(routes);
const port = process.env.PORT;
app.listen(port, () => {
... |
import { expect } from "chai"
import "reflect-metadata"
import { getConnectionManager } from "../../../../src"
import { DataSource } from "../../../../src/data-source/DataSource"
import { Repository } from "../../../../src/repository/Repository"
import { setupSingleTestingConnection } from "../../../utils/test-utils"
i... |
import React from 'react'
import { BenchNativeBaseProvider, Button, Text } from '../nativebase'
import { TestComponentProps, TestRunner } from '../TestRunner'
const Test: React.FunctionComponent<TestComponentProps> = ({ testIndex }: TestComponentProps) => {
const isEven = testIndex % 2 === 0
return (
<Button ... |
import { Strategy } from 'passport-custom';
import { PassportStrategy } from '@nestjs/passport';
import {
Injectable,
UnauthorizedException,
BadRequestException,
} from '@nestjs/common';
import { AuthService } from './auth.service';
import { plainToClass } from 'class-transformer';
import { validate } from 'class... |
import { cx } from '@emotion/css';
import React from 'react';
import styles from './styles/StackPanel.module.css';
export type PermanentStackPanelProps = React.HTMLAttributes<HTMLDivElement> & {
children: React.ReactChild | React.ReactFragment;
className?: string;
fixed?: boolean;
flexible?: boolean;
height?... |
/*-
* #%L
* XTerm Console Addon
* %%
* Copyright (C) 2020 - 2021 Flowing Code
* %%
* 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... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import 'ress/dist/ress.min.css';
import './assets/index.scss';
createApp(App)
.use(store)
.use(router)
.mount('#app'); |
import * as React from 'react';
import { withRouter } from 'react-router';
import { compose } from 'react-apollo';
// typings
import { History } from 'history';
interface IProps {
initialKeywords: string;
history: History;
}
interface IState {
keywords: string;
}
class SearchForm extends React.Component<IProp... |
// Type definitions for @ag-grid-community/core v24.1.0
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { BeanStub } from "../context/beanStub";
import { RowNode } from "./rowNode";
export interface RowPosition {
rowIndex: number;
rowPinned: string | unde... |
import { sum } from './functions/sum';
console.log('soma: ', sum(2, 110)); |
<TS language="sv" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Högerklicka för att redigera adressen eller etiketten.</translation>
</message>
<message>
<source>Create a new address</source>
... |
import StarkwareController from './controller';
import * as StarkwareCrypto from './crypto';
export * from './types';
export const crypto = StarkwareCrypto;
export default StarkwareController; |
import _ from 'lodash';
import React from 'react';
import Icon, { IIconProps, propTypes as iconPropTypes } from '../Icon';
import { lucidClassNames } from '../../../util/style-helpers';
import { omitProps } from '../../../util/component-types';
const cx = lucidClassNames.bind('&-EqualsIcon');
interface IEqualsIconPro... |
import LoginPage from "../support/pages/LoginPage";
import SidebarPage from "../support/pages/admin_console/SidebarPage";
import SessionsPage from "../support/pages/admin_console/manage/sessions/SessionsPage";
import { keycloakBefore } from "../support/util/keycloak_hooks";
const loginPage = new LoginPage();
const sid... |
import { createLogger, format, transports } from "winston"
const { combine, timestamp, label, printf } = format
const myFormat = printf(info => {
return `${info.timestamp} [${info.label}] ${info.level}: ${info.message}`
})
const swapiLogger = createLogger({
format: combine(
label({ label: 'SWAPI' }),
times... |
import axios from 'axios';
import { useContext, useEffect, useState } from 'react';
import { userInfo } from '../api/api';
import Logo from '../components/logo';
import { AccountAvatar } from './account';
import { NotificationsArea } from './notificationsArea';
import { SocketContext } from './socketContext';
import ... |
import axios from 'axios'
import {
Injectable,
CanActivate,
ExecutionContext,
Inject,
} from '@nestjs/common'
import { ConfigService } from '@nestjs/config'
@Injectable()
export default class AppGuard implements CanActivate {
@Inject(ConfigService) private configService: ConfigService
async canActivate(c... |
/**
* This file was automatically generated with @twilio-labs/svg-to-react
*/
import * as React from 'react';
import {useUID} from '@twilio-paste/uid-library';
import {IconWrapper, IconWrapperProps} from './helpers/IconWrapper';
export interface ProductAdminUsersIconProps extends IconWrapperProps {
title?: string;... |
import React, { useEffect, useState } from "react";
import "./index.css";
import { backendClient } from "../../clients";
import { Benchmark, BenchmarkTableData } from "../../clients/openapi";
import { Tabs, Spin, PageHeader } from "antd";
import { ColumnsType } from "antd/es/table";
import { TableView } from "./TableVi... |
// TODO: https://developers.google.com/web/fundamentals/architecture/app-shell
// Added prototypes object
import './app/util/number-helper';
import './app/util/array-helper';
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule ... |
import { tagAs } from 'factions/metatagger'
import {
CHARGE_PHASE,
COMBAT_PHASE,
DURING_GAME,
HERO_PHASE,
MOVEMENT_PHASE,
SAVES_PHASE,
SHOOTING_PHASE,
START_OF_COMBAT_PHASE,
START_OF_HERO_PHASE,
} from 'types/phases'
import rule_sources from './rule_sources'
const CommandTraits = {
'Crusading Army ... |
import _ from "lodash"
import crypto from "crypto"
import fs from "fs-extra"
import { store, emitter } from "../redux"
import { IRedirect } from "../redux/types"
import { joinPath } from "gatsby-core-utils"
import reporter from "gatsby-cli/lib/reporter"
let lastHash: string | null = null
let bootstrapFinished = false
... |
import React, { Fragment, useState, useEffect } from "react";
import ProTable from "@/pages/system/permission/component/ProTable";
import { ColumnProps } from "antd/lib/table";
import { Button, Tag, message, Popconfirm, Divider } from "antd";
import SearchForm from "@/components/SearchForm";
import encodeQueryParam fro... |
import 'reflect-metadata';
import * as express from 'express';
import { inject, injectable } from 'inversify';
import {
controller,
httpGet,
httpPost,
interfaces,
} from 'inversify-express-utils';
import {
ApiOperationGet,
ApiOperationPost,
ApiPath,
SwaggerDefinitionConstant,
} from 'swagger-express-ts'... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ServerMetricsComponent } from './server-metrics.component';
describe('ServerMetricsComponent', () => {
let component: ServerMetricsComponent;
let fixture: ComponentFixture<ServerMetricsComponent>;
beforeEach(async(() => {
Te... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faBracketsCurly: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const lig... |
import * as path from "path";
import { cpus } from 'os';
import express from 'express';
import cors from 'cors';
const app = express()
import { NodeCluster } from "./NodeCluster";
const NODES_COUNT = Number(process.env.NODES_COUNT ?? cpus().length);
const API_PORT = Number(process.env.API_PORT ?? 8000);
const cluster ... |
import moment from "moment";
import {Package} from "components/types";
export const packageAsTsv = (item: Package) => {
const {
earliest_pickup_time, sender, recipient, recipient_phone, delivery_instructions, deliver_to
} = item;
return [
moment(earliest_pickup_time).format('DD.MM.YYYY'),
... |
import { Dispatch } from 'react';
import ApiDog from '~/api/ApiDog';
const onApiCall = async (type: DogApiType, apiPromise: Promise<IResponse>) => {
const res = await apiPromise;
if (res.ok && res.result.message) {
if (type === 'GetDogBreeds') {
const getList: Record<string, string[]>[] = res.result.mess... |
export * from "./interfaces";
export * from "./Assertion";
export * from "./TypeAbstract";
export * from "./SuperType";
export * from "./Type";
export * from "./functions"; |
import { getRandStr, resolvePageRoute, serviceLocator, TProduct, TProductVariant, TStockStatus } from '@cromwell/core';
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
import { Autocomplete, Checkbox, FormControlLabel, FormGroup, Grid, TextField, Tooltip } from '@mui/material';
import React, { useEffec... |
import { CircularProgress, Typography } from '@material-ui/core'
import React from 'react'
import { useLocation } from 'react-router'
import { APIComponents } from 'srtp-core'
// tslint:disable typedef
export const NotFound: React.FC = () => {
const { pathname } = useLocation()
return <Typography>{`path ${pathna... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.