text stringlengths 10 953k |
|---|
import {
ActionsUnion,
ActionTypesUnion,
ActionTypesToActions
} from './action.utils';
type ReducerCase<State, ActionsUnion> = (state: State, action: ActionsUnion) => State
export type ObjectReducer<State, ActionsUnion> = {
readonly [A in ActionTypesUnion<ActionsUnion>]: (
state: State,
action: Action... |
import { Heading as ChakraHeading, Stack } from '@chakra-ui/react'
import * as React from 'react'
const Heading = ({ children }: { children: React.ReactNode }) => {
return (
<Stack
textAlign={'center'}
align={'center'}
spacing={{ base: 8, md: 10 }}
py={{ base: 8, md: 10 }}>
<ChakraH... |
import { Document } from 'mongoose';
export interface IRoom extends Document {
readonly id: number;
readonly floor: number;
readonly description: string;
} |
import Web3 from 'web3'
const web3 = new Web3();
/***
* 创建钱包
* @param entropy: 自定义的密码(可选)
*/
export const createAccount = (entropy?: string) => {
return web3.eth.accounts.create(entropy)
}
/***
*
*/
export const createWallet = () => {
console.log(web3.eth.accounts.wallet)
return web3.eth.accounts.wallet.cr... |
import * as TypeGraphQL from "type-graphql";
import * as GraphQLScalars from "graphql-scalars";
import { Prisma } from "@prisma/client";
import { DecimalJSScalar } from "../../scalars";
import { BoolFilter } from "../inputs/BoolFilter";
import { EnumOauthConnectionServiceFilter } from "../inputs/EnumOauthConnectionServ... |
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { HoodsService, BodyHood } from 'src/app/core/api';
import { first } from 'rxjs/operators';
import { Observable } from 'rxjs';
@Component({
selector: 'app-board',
templateUrl: './board.com... |
import { operators } from '../../lib/postgreSQL';
export abstract class Mapper {
/**
* A valid "by-property" filter (brand, model, etc.) must have 2 fields:
* - the operator: contains, eq, gt, etc.
* - the type: string, number, etc
*/
public removeUndefined = (prop: any) => {
return... |
/**
* This function is used to convert a string to slug
*/
export const slugify = (toBeSlugified: string): string => {
return toBeSlugified.toLowerCase().replace(/ |[^\w-]+/g, '-');
}; |
import { Component, OnInit } from '@angular/core';
import {NotificationService} from '../../services/notification.service';
@Component({
selector: 'app-notifications',
templateUrl: './notifications.component.html',
styleUrls: ['./notifications.component.css']
})
export class NotificationsComponent implements OnI... |
import { ContactPerson } from './contact-person';
import { EditLink } from './edit-link';
import { Branch } from './branch';
export class Project {
id: string;
name: string;
description: string;
defaultBranch: string;
group: string;
visibleBranches: string[];
tags: string[];
projectSite... |
// Reduced version of the initial AppComponent generated by CLI
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: '<h1>Welcome to {{title}}!</h1>'
})
export class AppComponent {
title = 'app';
} |
export enum AuthType {
airtable = "airtable",
todoist = "todoist",
notion = "notion",
}
export type AuthInfo = {
type: AuthType;
accessToken: string;
};
export const loadAuthData = () => {
const searchParams = new URLSearchParams(window.location.search);
const searchAuthType = searchParams.get("type") ... |
import { read } from 'graceful-fs';
import { Injectable, Logger, CallHandler } from '@nestjs/common';
import { NestInterceptor, ExecutionContext } from '@nestjs/common/interfaces';
import { Observable } from 'rxjs/internal/Observable';
import { tap } from 'rxjs/internal/operators'
import { GqlExecutionContext } from '@... |
export * from './nativeComponentUtils'
export { default as ScaleSize } from './common/scaleSize'
export { default as Orientation } from './orientation'
export * from './hooks'
export {
classnames,
sort_ascii,
compose
} from './common/mixins'
export * from './getConfig' |
export interface IPiece {
name:string;
location:string;
src:string;
moved:boolean;
color:string;
type:string;
userID: string;
}
export interface IBoardSquare {
square: string;
top: string;
right: string;
bottom: string;
left: string;
height:string;
x:number;
... |
import React, { FC } from 'react';
import { IconProps } from 'types/common';
const Clipboard: FC<IconProps> = ({ size = 20, color = 'currentColor' }) => {
return (
<svg fill={color} width={size} height={size} viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path d="M8 3a1 1 0 011-1h2a1 1 0 110 2H9... |
//#!/usr/bin/env ts-node
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------... |
import { Material } from "@core/material"
import { AlphaMode } from "@core/loaders/types"
describe("Material", () => {
it("uses default props", () => {
const material = new Material()
expect(material).toMatchObject<Partial<Material>>({
color: [1, 1, 1],
opacity: 1,
metalness: 1,
rough... |
import { last } from '../source/array/last';
describe('last', () => {
test('last([1, 2, 3]) => 3', () => {
expect(last([1, 2, 3])).toBe(3);
});
}); |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RocketsRoutingModule } from './rockets-routing.module';
import { StatusPageComponent } from './status-page/status-page.component';
import { LaunchesPageComponent } from './launches-page/launches-page.component';
import {... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Constants as AMQPConstants, parseConnectionString } from "@azure/core-amqp";
import {
TokenCredential,
isTokenCredential,
NamedKeyCredential,
isNamedKeyCredential,
} from "@azure/core-auth";
import {
ServiceClient,
Operatio... |
import * as React from 'react'
import onClickOutside from 'react-onclickoutside'
interface Props {
closePanel: () => void
}
class ExtraButtonsPanel extends React.PureComponent<Props> {
handleClickOutside() {
this.props.closePanel()
}
render() {
return <div>{this.props.children}</div>
... |
export * from "./bucketEndpointMiddleware";
export * from "./bucketHostname"; |
import { Action } from "redux"
export enum SortingOrderAscendingActions {
SET_SORTING_ORDER_ASCENDING = "SET_SORTING_ORDER_ASCENDING"
}
export interface SetSortingOrderAscendingAction extends Action {
type: SortingOrderAscendingActions.SET_SORTING_ORDER_ASCENDING
payload: boolean
}
export type SortingOrderAscendi... |
import type { FC } from 'react';
import React from 'react';
import { styled } from '@linaria/react';
import { useToken } from '@saberhq/sail';
import { AssetRow } from './AssetRow';
const Wrapper = styled.div`
display: grid;
grid-gap: 20px;
`;
interface Props {}
export const AssetsList: FC<Props> = (props) => ... |
import { Tree, applyChangesToString, ChangeType, logger } from '@nrwl/devkit';
import {
addOrUpdateProperty,
jestConfigObjectAst,
removeProperty,
} from './functions';
/**
* Add a property to the jest config
* @param host
* @param path - path to the jest config file
* @param propertyName - Property to update... |
import { fileSync } from 'tmp';
import { readFileSync, unlinkSync, writeFileSync } from 'fs';
import runCommands, { LARGE_BUFFER } from './run-commands.impl';
function readFile(f: string) {
return readFileSync(f).toString().replace(/\s/g, '');
}
describe('Command Runner Builder', () => {
it('should run one comman... |
import { Action, Store, Dispatch } from 'redux';
import { Fetcher } from '../tools/fetcher/fetcher';
import { State } from '../domain';
export declare const changeCloudAccountFolderMiddleware: (fetcher: Fetcher) => (store: Store<State>) => (next: Dispatch<State>) => (action: Action) => Action; |
export type { ConnectionDiscountCode, Discount } from './lib/discount'
export type {
FlightLeg,
UserInfo,
Flight,
Travel,
PeriodInput,
RangeInput,
FlightLegsInput,
} from './lib/flight'
export type { User, BaseUser, Fund } from './lib/user' |
/// <reference types="node" />
import { ITraitVault } from "../interface/ITraitVault";
import { ContractTemplateVO } from "../vo/ContractTemplateVO";
import { TransactionVO } from "../vo/TransactionVO";
import { BaseContract } from "./BaseContract";
export declare class AlexVaultContract extends BaseContract implements... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export * from './cpf-field.module';
export * from './cpf-field.component';
export * from './cpf-field.model'; |
import todos from './todos';
import * as types from '../constants/ActionTypes';
describe('todos reducer', () => {
it('should handle initial state', () => {
expect(
todos(undefined, {})
).toEqual([
{
text: 'Use Redux',
completed: false,
id: 0
}
]);
});
it('sh... |
import { AuditManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AuditManagerClient";
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
import {
deserializeAws_restJson1UntagResourceCommand,
serializeAws_restJson1UntagResourceCommand,
} from "../protocols/A... |
import React from 'react';
import { text } from '@storybook/addon-knobs';
import { Legend } from '@grafinsight/ui';
import mdx from './Legend.mdx';
const getKnobs = () => {
return {
label: text('text', 'Form section'),
};
};
export default {
title: 'Forms/Legend',
component: Legend,
parameters: {
d... |
import React, { PureComponent } from 'react';
import PermissionsListItem from './PermissionListItem';
import DisabledPermissionsListItem from './DisabledPermissionListItem';
import { FolderInfo } from 'app/types';
import { DashboardAcl } from 'app/types/acl';
export interface Props {
items: DashboardAcl[];
onRemov... |
export interface GenreData {
id: number;
name: string;
} |
export interface Achievement {
id: number;
numAwarded: number;
numAwardedHardcore: number;
title: string;
description: string;
points: number;
trueRatio: number;
author: string;
dateModified: Date;
dateCreated: Date;
badgeName: number;
displayOrder: number;
memAddr: string;
gameId?: number;
... |
import invokeAsyncApi from './utils/invokeAsyncApi';
/**
* 同步获取模板ext.json中的ext配置
*/
export default function getExtConfigSync(): Promise<{
data: unknown;
}> {
return invokeAsyncApi('getExtConfigSync');
} |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@NgModule({
imports: [ BrowserModule ],
providers: [ Logger ],
declarations: [ AppComponent ],
exports: [ AppComponent ],
bootstrap: [ App... |
import { EditorHelper } from "@estruyf/vscode";
import { Position, window } from "vscode";
import { Dashboard } from "../../commands/Dashboard";
import { SETTING_CONTENT_SNIPPETS } from "../../constants";
import { DashboardMessage } from "../../dashboardWebView/DashboardMessage";
import { Notifications, Settings } from... |
import { Aspect, defineAspects } from './operation';
import { CommandOperation, CommandOperationOptions } from './command';
import { decorateWithCollation, decorateWithReadConcern, Callback } from '../utils';
import type { Document } from '../bson';
import type { Server } from '../sdam/server';
import type { Collection... |
import React from 'react';
import {
GdscSideLogoWrapper,
GdscSideUnivWrapper,
GdscSideBlogLogoWrapper,
GoogleButtonWrapper,
GoogleLogoWrapper,
} from '../styled';
import GdscLogo from '../../../../assets/GdscLogo';
import DaejinUnivLogo from '../../../../assets/DaejinUnivLogo';
import GdscBlogLogo from '../..... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Jejucoin</source>
<translation>A Jejucoinról</translation>
</mes... |
enum Channels {
GITTER = 'gitter',
SLACK = 'slack',
TWITTER = 'twitter',
WEBHOOK = 'webhook',
}
export default Channels; |
import type { ArrowFunctionExpression } from 'jscodeshift'
import wrap from '../src/wrapAstTransformation'
import type { ASTTransformation } from '../src/wrapAstTransformation'
import { transformAST as addImport } from './add-import'
export const transformAST: ASTTransformation = (context) => {
const { root, j } =... |
import * as cn from "classnames";
import * as React from "react";
import { FormattedMessage } from "react-intl-phraseapp";
import { StaticContext } from "react-router";
import { Link, RouteComponentProps } from "react-router-dom";
import { Col, Row } from "reactstrap";
import {
branch,
compose,
renderComponent,
... |
import { Application } from "@nativescript/core";
Application.run({ moduleName: "main-page" }); |
import React from 'react';
import styled from 'styled-components';
import oc from 'open-color';
import DatePicker from 'react-datepicker';
import 'react-datepicker/dist/react-datepicker.css';
import { shadow } from '../../libs/styles';
import MenuButton from '../common/MenuButton';
interface WeddingDateProps {
start... |
// Generated by script, don't edit it please.
import createSvgIcon from '../../createSvgIcon';
import BriefcaseSvg from '@rsuite/icon-font/lib/legacy/Briefcase';
const Briefcase = createSvgIcon({
as: BriefcaseSvg,
ariaLabel: 'briefcase',
category: 'legacy',
displayName: 'Briefcase'
});
export default Briefcas... |
import { AppPage } from './app.po';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to libne!');
});
}); |
import UseCase from './UseCase';
import Roulette from '../domain/RouletteEntity';
import { RouletteResponseModel } from '../models/Roulette';
import RouletteMapper from '../mappers/Roulette';
import Repository from '../repositories/Repository';
class ListRouletteUseCase extends UseCase<void, RouletteResponseModel[]> {... |
import { Writable } from 'stream'
import { finished } from 'stream/promises'
import stream from '../src/node-stream-tag'
test('template to stream', async () => {
let output = ''
await finished(
stream/*html*/ `
<!DOCTYPE html>
<html>
<head>
<title>Node.js Stream Tag</title>
</head>
<body>
<dl>
<dt>Stri... |
/*
* 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 {
PROCESSOR_EVENT,
TRACE_ID,
PARENT_ID
} from '../../../../commo... |
/* eslint-disable @typescript-eslint/require-await */
import { Contact, Profile } from "@arkecosystem/platform-sdk-profiles";
import { availableNetworksMock } from "domains/network/data";
import React from "react";
import { act, env, fireEvent, getDefaultProfileId, renderWithRouter, waitFor } from "testing-library";
i... |
import { TTraits } from 'types/army'
import {
CHARGE_PHASE,
COMBAT_PHASE,
DURING_GAME,
END_OF_HERO_PHASE,
HERO_PHASE,
SHOOTING_PHASE,
} from 'types/phases'
const CommandTraits: TTraits = [
{
name: `Dread Harvester`,
effects: [
{
name: `Dread Harvester`,
desc: `You can re-rol... |
import OrganicCoreContainer from '@sackrin/organic-core/OrganicCoreContainer';
class OrganicContainer<V> extends OrganicCoreContainer<V> {
constructor(machine: string) {
super(machine);
}
}
export default OrganicContainer; |
import { access, readFile, writeFile, constants } from 'fs'
import Errlop from 'errlop'
/** Turn the input into a JSON string */
export function stringifyJSON(contents: any): string {
return JSON.stringify(contents, null, ' ')
}
/**
* Parse the input string as JSON
* @throws if invalid
*/
export function parseJS... |
import express, {Request, Response} from 'express'
import {RecordValidator} from '../../validators/Record-validator';
import {RecordResponseModel} from '../../models/api/response-models/RecordResponse.model';
import {StatusCodes} from 'http-status-codes';
import {RecordService} from "../../services/Record.service";
co... |
import { expect } from 'chai';
import { transformerCompilers } from '.';
import { packagePath } from '@tsx-air/utils/packages';
import { readFileSync } from 'fs';
import { testRuntimeApi } from '@tsx-air/runtime/src/runtime/runtime.test.suite';
import { compileAndEval } from '@tsx-air/builder';
describe('compilers', (... |
import { AminoSigner, DirectSigner } from "../../../wallet_amino";
import {
PermitError,
newPermit,
Permission,
Permit,
validatePermit,
} from "./index";
export class DirectSignerUnsupported extends PermitError {
constructor() {
super("Only amino signer is supported for permits");
}
}
export class P... |
import { useState } from 'react';
const useForceUpdate = () => {
const [, setState] = useState(0);
return () => {
setState(v => v + 1);
};
};
export default useForceUpdate; |
import * as domUtil from './util/dom';
export const dom = domUtil;
export * from './util/util';
export * from './util/datetime-util'; |
import * as mongoose from 'mongoose'
export const photoSchema = new mongoose.Schema({
photo: {
required:true,
type:String,
default:"https://studio-manager-img.s3.amazonaws.com/1636476706927%20-%20icons8-person-64.png"
}
})
export const userSchemas = new mongoose.Schema({
name:... |
import * as core from '@contentlayer/core'
import { DummyTracing } from '@contentlayer/utils'
import type { HasClock, HasConsole, OT } from '@contentlayer/utils/effect'
import { pipe, provideConsole, T } from '@contentlayer/utils/effect'
import test from 'ava'
import type { HasDocumentContext } from '../fetchData/Docu... |
import { List as _List_ } from "@aws-sdk/types";
import { _Subscription } from "./_Subscription";
export const _SubscriptionList: _List_ = {
type: "list",
member: {
shape: _Subscription
}
}; |
import { Controller, Get, Post, Put, Delete, Param, Body, Query, Req } from '@nestjs/common';
import { IController } from 'src/interfaces/controller/controller.interface';
import { Vehicle } from 'src/repositories/entities/vehicle.entity';
import { VehicleService } from 'src/services/vehicle/vehicle.service';
import { ... |
export class Item{
readonly name: string;
readonly price: string;
} |
import { Client } from '../core/client'
import { BaseClass, BaseResource } from './base'
import { ContentImage } from './content/base'
import { MangaMeta, PersonMeta, AnimeMeta } from './meta'
import { Image } from './misc'
export class Character extends BaseResource {
public readonly image: ContentImage
public re... |
import mm = require('micromatch');
// options type is accessible
const micromatchOptions: mm.Options = {
basename: true,
dot: true,
};
let strArrResult: string[];
let boolResult: boolean;
const readonlyStrArr: ReadonlyArray<string> = [];
// main function
strArrResult = mm(['a.js', 'a.txt'], '*.js', micromatc... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatOptionModule } from '@angular/material/core';
import { MatDividerModule ... |
export * from './airport';
export * from './paginated-airports';
export * from './booking';
export * from './paginated-bookings';
export * from './passanger'
export * from './log';
export * from './paginated-logs';
export * from './user';
export * from './paginated-users';
export * from './flight';
export * from '.... |
import {remote, webFrame} from "electron";
import * as fs from "fs";
import path, {sep} from 'path';
import wretch from "wretch";
import {existsSync} from "fs";
import {outputFile} from "fs-extra";
import getFolderSize from "get-folder-size";
import tumblr, {TumblrClient} from "tumblr.js";
import Snoowrap from "snoowra... |
import { cloneDeep } from 'lodash';
import { MonoTypeOperatorFunction, Observable, of, ReplaySubject, Unsubscribable } from 'rxjs';
import { map, mergeMap } from 'rxjs/operators';
import {
applyFieldOverrides,
compareArrayValues,
compareDataFrameStructures,
CoreApp,
DataConfigSource,
DataFrame,
DataQuery... |
import { Component, OnInit, AfterViewInit } from '@angular/core';
@Component({
selector: 'app-birthday',
templateUrl: './birthday.component.html',
styleUrls: ['./birthday.component.css']
})
export class BirthdayComponent implements OnInit, AfterViewInit {
constructor() { }
ngOnInit() {
}
ngAfterViewIn... |
import mongoose from 'mongoose';
import request from 'supertest';
import { app } from '../../app';
import { Order, OrderStatus } from '../../models/order';
import { Ticket } from '../../models/ticket';
import { natsWrapper } from '../../nats-wrapper';
it('return an error if the ticket does not exist', async () => {
... |
import Gene from "schema/gene"
import { IDFields } from "schema/object_identification"
import { pageable, getPagingParameters } from "relay-cursor-paging"
import { connectionDefinitions, connectionFromArraySlice } from "graphql-relay"
import { GraphQLObjectType, GraphQLFieldConfig } from "graphql"
import { ResolverCon... |
import React from 'react';
declare const Link: React.ForwardRefExoticComponent<
Pick<any, string | number | symbol> & React.RefAttributes<unknown>
>;
export default Link; |
import test from "./util/test-runner";
import {formatCode} from "./util/format-code";
import {generateRollupBundle} from "./setup/setup-rollup";
import {lt} from "semver";
test("Flattens declarations. #1", async (t, {typescript}) => {
const bundle = await generateRollupBundle(
[
{
entry: true,
fileName: ... |
export enum Language {
typeScript = 'tsx',
javaScript = 'js',
}
export enum StyleLanguage {
ts = 'ts'
} |
import urljoin from 'url-join';
const defaultDomain = 'https://docs.withheadlesscms.com';
export function removeTrailingSlash(s: string) {
return s.endsWith('/') ? s.slice(0, -1) : s;
}
export function getUrl(requestInfo?: { origin: string; path: string }) {
return removeTrailingSlash(
urljoin(requestInfo?.o... |
import { authFit } from '@/functions/auth'
import { MODULE } from '@/enums/module'
import Approve from './Approve'
import Notice from './Notice'
import Alarm from './Alarm'
import Order from './Order'
import WorkOrder from './WorkOrder'
import Backlog from './Backlog'
export const enum AUTH {
/** 告警 */
alarm = '0... |
import { reduce, o, assocPath, path } from 'ramda';
import type { Reducer } from 'redux';
import { InjectableEntry } from '@redux-syringe/injectors';
import { DEFAULT_FEATURE } from '@redux-syringe/namespaces';
import { combineReducerSchema } from './combineReducerSchema';
import { ROOT_KEY } from './constants';
impo... |
import { createStore } from 'redux'
import { projectReducer } from './reducer'
export const store = createStore(projectReducer) |
import * as React from 'react'
import { ReactQueryContext } from '@/context/ReactQueryContext'
import { QueryClient, QueryClientProvider } from 'react-query'
const ReactQueryContextWrapper: React.FC<React.ReactNode> = ({ children }) => {
const client = new QueryClient()
return (
<ReactQueryContext.Provider val... |
import { Component } from '@angular/core';
@Component({
selector: 'fsi-join',
template: `
<!--How to Join-->
<section id="how" class="pv-30">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h2 class="text-center">How To <strong>Join</str... |
import { enUS } from './locale/enUS'
import { yup } from './yup'
import { zhCN } from './locale/zhCN'
describe('locale', () => {
for (const [name, locale] of Object.entries({ enUS, zhCN })) {
test(name, () => {
expect(Object.keys(locale)).toEqual([
'mixed',
'string',
'number',
... |
import React, { useState } from 'react'
import * as RadixTooltip from '@radix-ui/react-tooltip'
import { StyledLabel, CopyLabelContainer, StyledOptionalToggle, StyledToolTipContent, ToolTipArrow } from './StyledUI'
import { useInputContext, usePanelSettingsContext } from '../../context'
import { LevaErrors, warn } from... |
import {Directive, Output, OnChanges, OnInit, EventEmitter, ElementRef} from '@angular/core';
declare const window;
@Directive({
selector: '[appMeasure]',
})
export class MeasureDirective implements OnInit, OnChanges {
@Output() measureRect = new EventEmitter();
el;
prev: any = {};
constructor(el: ElementR... |
/** @format */
import { ISvgIconProps, IconWrapper } from '../runtime';
export default IconWrapper('byted-check-in', false, (props: ISvgIconProps) => (
<svg width={props.size} height={props.size} viewBox="0 0 48 48" fill="none">
<path
d="M15.9999 21L22.1302 6.98816C22.5987 5.91735 23.8816 5.47473 24.9107 ... |
import { combineLatest, Observable } from "rxjs";
import { NgRedux, select } from "@angular-redux/store";
import { ChangeDetectionStrategy, Component, OnInit } from "@angular/core";
import { CounterActionCreatorService } from "../../actions/counter.action-creator.service";
import { IAppState } from "../../models/app-s... |
import { JestConfig } from '../types'
const jestConfig: JestConfig = {
collectCoverageFrom: ['packages/**/*.(ts|tsx)'],
coverageThreshold: {
/**
* coverage values was set after reading some articles https://testing.googleblog.com/2020/08/code-coverage-best-practices.html and https://www.bullseye.com/minim... |
import { IStoreState } from './index';
export function getSelectedScreen(store: { selectedScreen: string }) {
return store.selectedScreen;
}
export function getSelectedTask(store: IStoreState) {
return store.tasks.tasks[store.tasks.selected]!;
}
export function getAllTasks(store: IStoreState) {
return Object.v... |
import {
IsBoolean,
IsEmpty,
IsNotEmpty,
MaxLength,
MinLength,
ValidateIf,
} from "class-validator";
export class StructureEditSmsDto {
@IsEmpty()
public enabledByDomifa: boolean;
@IsNotEmpty()
@IsBoolean()
public enabledByStructure: boolean;
@ValidateIf((o) => o.enabledByStructure === true)
... |
import { TmdbApi } from '../../src/tmdb-api';
import 'rxjs';
import { Observable } from 'rxjs/Observable';
import { Helper } from '../../src/helper';
import { TvShowDetails } from '../../src/model/tv-show-details';
describe('tv feature', () => {
const api = new TmdbApi(window['__karma__'].config.apiKey);
it('shou... |
export interface markup_document {
name: string;
attributes?: object;
doctype?: boolean;
children?: markup_document[];
text?: string | string[]
} |
import {ListItemVersion, ListItemVersionCollectionResponse} from '../../../../../models/';
import {createListItemVersionCollectionResponseFromDiscriminatorValue} from '../../../../../models/createListItemVersionCollectionResponseFromDiscriminatorValue';
import {createListItemVersionFromDiscriminatorValue} from '../../.... |
import { MenuItem } from '@grafana/ui';
import { FlotDataPoint } from '@grafana/data';
export class GraphContextMenuCtrl {
private source?: FlotDataPoint | null;
private scope?: any;
menuItemsSupplier?: () => MenuItem[];
scrollContextElement: HTMLElement | null;
position: {
x: number;
y: number;
};... |
// import { is_env_server } from './is_env_server'
describe( 'is_env_server', () => {
it( '', () => {
// TODO
})
}) |
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting,
} from '@angular/platform-browser-dynamic/testing';
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.