text
stringlengths
10
953k
import fetch, { Response } from "node-fetch"; interface LineRange { start: number; end?: number; } export class GithubFile { url: string; username: string; repository: string; filePath: string; extension?: string; name: string; lineRange: LineRange; private content?: string; private GITHUB_URL...
import faker from 'faker'; import { Mappable } from './CustomMap'; export class Company implements Mappable { companyName: string; catchPhrase: string; location: { lat: number; lng: number; } color: string = 'red'; constructor() { this.companyName = faker.company.compan...
import type { IncomingMessage, ServerResponse } from 'http'; import cors from 'cors'; import express from 'express'; import { GraphQLSchema } from 'graphql'; import { ApolloServer } from 'apollo-server-express'; import { graphqlUploadExpress } from 'graphql-upload'; // @ts-ignore import { formatError } from '@keystonej...
console.log('d')
import { admin } from "../firebase"; export interface ID extends String { __ID: never; } export type EntityMap<Entities> = { [Name in keyof Entities]: Entities[Name] }; export type AutoFilled<Entity extends {}> = Entity & { createdAt: admin.firestore.Timestamp; updatedAt: admin.firestore.Timestamp; }; export ...
// Todo: possibly use primitives const filters = { "Is empty": (testVal = "", compareVal = "") => !testVal && Number(testVal) !== 0, "Text contains": (testVal = "", compareVal = "") => testVal.includes(compareVal), "Text starts with": (testVal = "", compareVal = "") => testVal.startsWith(compareVal),...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About climacoin</source> <translation type="unfinished"/> </message> <message> <location line...
import {Inject, Injectable} from '@angular/core'; import {BehaviorSubject, interval} from 'rxjs'; import {Router} from '@angular/router'; import {LOCAL_STORAGE, StorageService} from 'ngx-webstorage-service'; import {plainToClass} from 'class-transformer'; import {AccessTokenPayload} from "./zfm-access-token-payload"; i...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import * as React from "react"; import { IFluidProps, IFluidState, IViewState, IFluidConverter, IViewConverter, IFluidDataProps, ISyncedState, } from "./interface"; impor...
// @ts-ignore import { ManualApiOptions } from 'vuestic-ui/src/services/api-docs/ManualApiOptions' export default { props: { label: { local: true, }, }, slots: { default: { local: true, }, }, } as ManualApiOptions
import { Directive, HostListener, Input } from "@angular/core"; @Directive({ selector: "button[ngxPrint]" }) export class NgxPrintDirective { public _printStyle = []; /** * * * @memberof NgxPrintDirective */ @Input() printSectionId: string; /** * * * @memberof NgxPrintDirective */ ...
import { Repository, EntityRepository } from 'typeorm'; import { UsersEntity } from './users.entity'; @EntityRepository(UsersEntity) export class UserRepository extends Repository<UsersEntity> {}
/* Copyright 2021 FM Foundation 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 in writing, software d...
class OutlineSelectComponent extends HTMLElement { private _select : HTMLSelectElement; constructor() { super(); this._select = this.querySelector('select'); } private handleBlurEvent:EventListener = this.validate.bind(this); private validate() : void { if (this._s...
export class CreditCard { ccNumber: string = "" ccExpiry: string = "" ccCVC: string = "" }
import { asyncSequenceOf } from "../../src/Sequence"; describe("filterIndexed", () => { it("should filter elements by index", async () => { const array = await asyncSequenceOf(1, 2, 3) .filterIndexed((index, value) => index < 2) .toArray(); expect(array.length).toBe(2); expect(array[0]).toBe...
import * as React from 'react'; import { StyledIconProps } from '@styled-icons/styled-icon'; export declare const SpaDimensions: { height: number; width: number; };
import { action } from 'typesafe-actions'; import * as constants from './constants'; import { NotifyItem } from './models'; export const toggle = () => action(constants.TOGGLE_NOTIFICATION_PANEL); export const clearNotification = (id: string) => action(constants.CLIENT_CLEAR_NOTIFICATION, { id }); export const clearAl...
export const message = "index";
import { ExchangeSource } from '../constants' import dayjs from 'dayjs' import utc from 'dayjs/plugin/utc' dayjs.extend(utc) import { getBlockFromTimestamp, get2DayPercentChange, getPercentChange } from '../utils' import { TOKEN_DATA, TOKENS_CURRENT, TOKENS_DYNAMIC } from '../features/queries' import { exchangeClient }...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr_CA" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About TestCoin</source> <translation>Au sujet de TestCoin</translation> </message> <message> ...
import { shallowMount } from '@vue/test-utils' import VLoading from './vloading.vue' describe('VLoading', () => { test('render component properly', () => { const wrapper = shallowMount(VLoading) expect(wrapper.findComponent(VLoading).exists()).toBe(true) }) })
export * from './data-mapper.component';
import { ImageFile } from './core/file-storage/image-file'; import { SyncObject, SyncVar } from './core/synchronize-object/decorator'; import { Network } from './core/system'; import { DataElement } from './data-element'; import { PeerCursor } from './peer-cursor'; import { TabletopObject } from './tabletop-object'; e...
import { Component, OnInit } from "@angular/core"; import { environment } from "../../environments/environment"; @Component({ selector: "app-about", templateUrl: "./about.component.html", styleUrls: ["./about.component.scss"], }) export class AboutComponent implements OnInit { version: string = environ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. /* eslint-disable import/no-unassigned-import, @typescript-eslint/no-explicit-any */ import 'reflect-metadata'; import * as cosmos from '@azure/cosmos'; import { IMock, It, Mock } from 'typemoq'; import { CosmosClientProvid...
import React from 'react'; import Chart from './Chart'; import Actions from './Actions'; import { useQuery } from 'react-query'; import { useNetwork } from '@/hooks/use-network'; import { useAtomValue } from 'jotai/utils'; import { activeQueueAtom } from '@/atoms/workspaces'; import NetworkRequest from '@/components/Ne...
export class WindowHelpers { public static calculateWindowHeight(searchResultCount: number, maxSearchResultCount: number, userInputHeight: number, searchResultHeight: number, ...
export class Magazines { title: string; isbn: string; authors: string; publishedAt: string; }
import { Dimensions } from 'react-native'; import styled from 'styled-components/native' import FastImage from 'react-native-fast-image' export const Container = styled.View` width: 100%; `; export const ImageIndexes = styled.View` flex-direction: row; align-self: flex-end; padding-right: 24px; ` exp...
import React, { useContext } from 'react' import { Redirect, Route } from 'react-router-dom' import AppContext from '../other/AppContext' import Loading from '../other/Loading' function ProtectedRoute(props: any) { const { user, isLoadingUser } = useContext(AppContext) const { component: Component, ...other } = p...
declare module 'stormdb' { class StormDB { constructor(engine: LocalFileEngine, options?: object); static browserEngine: typeof BrowserEngine; static localFileEngine: typeof LocalFileEngine; default(defaultValue: object): StormDB; length(): StormDB; delete(reindexLists: boolean): void; p...
export const charMapping = { idle: '01_[Idle]', run: '02_[Run]', idleJump: '03_[Idle]to[Jump]', runJump: '04_[Run]to[Jump]', jumpRising: '05_[Jump[Rising-Loop]]', jumpRisingFalling: '06_[Jump[Rising]to[Falling]]', jumpFalling: '07_[Jump[Falling-Loop]]', landing: '08_[Landing]', idleC...
export { Merge } from './merge'
/** * @file IconACane 拐杖 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import React from 'react'; import {ISvgIconProps, IconWrapper} from '../runtime'; export default IconWrapper( 'IconA-cane', true, (props: ISvgIconProps) => ( <svg ...
import { Controller, Get, Post, Patch, Delete, Body, Param, UseGuards } from '@nestjs/common'; import { Category } from './category.entity'; import { CreateCategoryDto } from './dto/create-category.dto'; import { CategoryService } from './category.service'; import { ApiParam, ApiTags, ApiBearerAuth, ApiUnauthorizedResp...
// The line below is a strict deps violation: import {Symbol} from './grandparent'; console.log(Symbol);
import { Tab } from "./tab"; export declare class TabsService { private _children; register(tab: Tab): void; readonly children: Tab[]; readonly activeTab: Tab; readonly overflowTabs: Tab[]; unregister(tab: Tab): void; }
import { Model, Document, model, mongo } from 'mongoose'; import { User } from '@org-capacity/org-capacity-common'; import { Doc } from '../common'; import { LocationRepository, LocationEntity, Location } from '../capacity'; import { locationSchema } from './schema'; export class MongoLocationRepository implements Loc...
/** * @license * Copyright 2017 Google LLC * * 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 ...
export * from './contractHelpers'; export * from './getRpcUrl'; export * from './setupNetworkHelpers'; export * from './wallet'; export * from './web3React'; export * from './bsc'; export { default as isFaucetSupportedInChain } from './isFaucetSupportedInChain'; export { default as getChainIconElement } from './getChai...
import parseXml from '@rgrove/parse-xml'; import { window, workspace } from 'coc.nvim'; import { createWriteStream } from 'fs'; import { Agent } from 'http'; import fetch from 'node-fetch'; import path from 'path'; import tunnel from 'tunnel'; import { parse } from 'url'; async function getLatestVersion(agent: Agent):...
import { Logger } from '../src'; import { algorithm, encoding, separator, genKey } from '../src/encryption'; const logger = new Logger( { filename: './db.logs' }, { algorithm, encoding, separator }, genKey('HelloWorld!', 'salt', algorithm.keylen), ); const logs = ['Hello!', 'Hello 2!', 'Hello 3!']; test('logs ...
import * as S from './Container.styles'; import React, { ReactNode } from 'react'; export type ContainerProps = { children: ReactNode; }; export const Container = ({ children }: ContainerProps) => <S.Container>{children}</S.Container>;
import { css } from 'emotion'; import { GrafanaTheme } from '@grafana/data'; export const getStyles = ({ typography, spacing }: GrafanaTheme) => ({ roleSelect: css` // style for Grafana's select // TODO: remove this after a select component is added to core-ui > div { padding-top: 7px; paddin...
import { Box2 } from 'vecks'; import entityToPolyline from './entityToPolyline'; import * as toSVG from './toSVG'; import transformBoundingBoxAndElement from './util/transformBoundingBoxAndElement'; const fillNone = 'fill="none"'; /** * Fonction qui transforme une entité en objet plus simple à utiliser * @param ent...
import { NestFactory } from '@nestjs/core'; import { AppModule } from 'app.module'; declare const module: any; async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3001); if (module.hot) { module.hot.accept(); module.hot.dispose(() => app.close()); } } bootst...
import { Collector, CollectorEvent, Flag, ICollectorResult } from '../../collector'; describe('Collector', () => { it('should support meta', () => { const cmd = new Collector(null); expect(cmd.name('foo') instanceof Collector).toBe(true); expect(cmd.name()).toBe('foo'); expect(cmd.description('bar')...
export interface LicenseConnectorScheduleModel { refreshType: string; scheduleFrequencies: string[]; } export interface LicenseConnectorModel { allowed: boolean; allowedSchedules: LicenseConnectorScheduleModel[]; sourceVisibilities: string[]; type: string; } export interface LicenseModel { ...
import {Component, Input, OnChanges, ChangeDetectionStrategy} from '@angular/core'; import {MediaviewImageComponent} from './image/mediaview.image.component'; import {MediaviewAudioComponent} from './audio/mediaview.audio.component'; import {MediaviewVideoComponent} from './video/mediaview.video.component'; import {Lay...
import { SaleTypeEnum } from '../enum/SaleTypeEnum'; import { RelationSystemUserOutputType } from "./RelationSystemUserOutputType"; export class OutputType { id: number; name: string; code: string; codeEnum: SaleTypeEnum; userOutputTypes: RelationSystemUserOutputType[]; abbreviation: string; }
import React, {PureComponent, ReactNode} from 'react'; import {RESIZING_WIDTH, WIDTH_RESIZE_HANDLE} from '../ClassNames'; import {ResizableHeaderProps} from './interfaces'; const initialState = { initialOffset: 0, }; export default class WidthResizeHandle extends PureComponent<ResizableHeaderProps, typeof init...
/*! Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. */ /* tslint:disable:max-line-length */ // This file was auto-generated -- do not edit import * as React from 'react'; import BaseIcon from '../BaseIcon'; export default class ChevronLeftMed extends BaseIcon { public rende...
import {Component} from '@angular/core'; import {AdminConstants} from '../../admin-constants'; import {Toolbox} from '../../../utils/toolbox'; import {AddNeutralModel} from './add-neutral.model'; import {NotificationService} from '../../../core/notifications/notification.service'; import {NeutralUnitService} from '../n...
export { useMouseRef } from './ref'; export { useMouseUsage } from './usage';
#!/usr/bin/env node /* The MIT License (MIT) Copyright (c) Kiyo Chinzei (kchinzei@gmail.com) 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 ...
import { Directive, Input, OnChanges, OnInit, TemplateRef, ElementRef, EmbeddedViewRef, SimpleChanges, ViewRef, ViewContainerRef, } from '@angular/core'; import { Overlay, OverlayRef, } from '@angular/cdk/overlay'; import { TemplatePortal, } from '@angular/cdk/portal'; @Directive({ selector...
import { Injectable } from '@angular/core'; import { Subject, Observable } from 'rxjs/RX'; import { IEvent } from './event.model'; @Injectable() export class EventService { getEvents():Observable<IEvent[]> { let subject = new Subject<IEvent[]>(); setTimeout(() => { subject.next(EVENTS); subject.complet...
/* tslint:disable */ // This file was automatically generated and should not be edited. import { DraftOrderInput, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes"; // ==================================================== // GraphQL mutation operation:...
import { IRarityTable } from "./../models/rarity-table.model"; import { IItem } from "./../models/item.model"; import diceRoller from "../helpers/dice-roller.helper"; import beetweenHelper from "../helpers/between.helper"; export class LootController { public static Roll( lootTable: IRarityTable, rarity: str...
import { computed } from 'vue' import { resolveSiteDataByRoute } from '/@shared/config' import { siteDataRef } from './siteData' import { useRoute } from '../router' export function useSiteDataByRoute(route = useRoute()) { return computed(() => { return resolveSiteDataByRoute(siteDataRef.value, route.path) }) ...
/// Generated by expo-google-fonts/generator /// Do not edit by hand unless you know what you are doing /// export { useFonts } from './useFonts'; export const __metdata__: Any; export const TenaliRamakrishna_400Regular: number;
import { Component, OnDestroy } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { JhiEventManager, JhiAlertService } from 'ng-jhipster'; import { Subscription } from 'rxjs/Subscription'; @Component({ selector: 'jhi-alert-error', template: ` <div class="alerts" role=...
/** * This file contains the code required to * verify the integrity of request by checking JWT */ import * as express from 'express'; import jwt from 'jsonwebtoken'; import * as _ from 'lodash'; import { Logger } from '../../common/logger'; import { Config } from '../../config/config'; export default (req: any, re...
import {Pipe, PipeTransform} from '@angular/core'; import * as marked from 'marked'; @Pipe({ name: 'MarkdownToHtml' }) export class MarkdownToHtmlPipe implements PipeTransform { public transform(markdown: string, options?: any): string { if (markdown == null) return ''; return marked(markdown,...
import React from 'react' import { Box, Text } from '@island.is/island-ui/core' import { m } from '../../lib/messages' import { useLocale } from '@island.is/localization' const FileUploadDisclaimer = () => { const { formatMessage } = useLocale() return ( <Box paddingLeft={5} marginBottom={2}> <Text vari...
import { Component, OnInit } from '@angular/core'; export interface Record { title: string; publisher: string; date: number; } @Component({ selector: 'app-edi-list', templateUrl: './edi-list.component.html', styleUrls: ['./edi-list.component.css'] }) export class EdiListComponent implements OnInit { pu...
export const settingsKeys = { OAUTH_TOKEN: "oauthAccessToken", OAUTH_REFRESH_TOKEN: "oauthRefreshToken", SPOTIFY_USERNAME: "spotifyUsername", }; export const messagesKeys = { ...settingsKeys, TRACK_INFO: "trackInfo", TRACK_INFO_REQUEST: "trackInfoRequest", PLAY_PAUSE: "playOrPause", NEXT_TRACK: "nextTr...
import { AppConfigEnum } from '@/enums/AppConfigEnum' // import { obtainAppStore } from '@/store/modules/appConfig' import { createStorage } from "@/utils/Storage"; export const useLanguage = () => { const Storage = createStorage({ storage: localStorage }); // const store = obtainAppStore() const { proxy } ...
import { useState } from "react"; import { sumBy } from "lodash"; import { v4 as uuid } from "uuid"; import { CrossCircledIcon } from "@radix-ui/react-icons"; import { Box, Button, Card, Flex, Text, TextField, CreditsInput, OreInput, PowerBowl3Input, QICInput, Label, } from "../components"; impor...
export class EEvent { private listeners: (() => void)[] = []; public addEventListener = (listener: () => void) => { // validation if (!listener || this.listeners.indexOf(listener) >= 0) { throw "listener already added"; } this.listeners.push(listener); } pu...
import * as React from 'react'; import DatePicker from 'react-datepicker'; import * as models from '../../../../models'; import {CheckboxFilter} from '../../../shared/components/checkbox-filter/checkbox-filter'; import {NamespaceFilter} from '../../../shared/components/namespace-filter'; import {TagsInput} from '../../...
/* * Copyright 2021 Salto Labs Ltd. * * 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 ...
import type { IBitmap } from '../types/bitmap.iface' import type { BitmapMetadata, Bounds } from '../types/octopus.type' type BitmapDescriptor = { 'filename'?: string 'bounds'?: Bounds 'metadata'?: BitmapMetadata } export class Bitmap implements IBitmap { _bitmapDesc: BitmapDescriptor constructor(bitmapDes...
import styled from "styled-components"; export const RetangleBlue = styled.div` width: 863px; height: 540px; background: var(--blue-light); box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.25); `; export const RetangleWhite = styled.div` width: 863px; height: 540px; background-color: var(--white); box-shadow: 6px 0px 12px r...
import { SmithyException as __SmithyException } from "../../smithy-client/mod.ts"; import { MetadataBearer as $MetadataBearer } from "../../types/mod.ts"; export interface DeviceDescription { /** * <p>The ARN of the device.</p> */ Arn?: string; /** * <p>An array of zero or more elements of DeviceAttrib...
import {Injectable, Injector} from '@angular/core'; import {Observable, Subject} from "rxjs"; import {distinctUntilChanged, filter, first, mapTo} from "rxjs/operators"; import {BcfViewpointInterface} from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface"; import {ViewerBridgeService} from "core-app/modu...
import { RouteRecordRaw } from 'vue-router' import { createDefaultRouterInterceptor } from 'happykit' // 导入框架实例 import happyFramework from '@/framework' // @ts-ignore import routerData from '@/routerData' // 创建默认的拦截器 const beforeInterceptor = createDefaultRouterInterceptor({ interceptorType: 'before', framework:h...
export class ObjectManipulator { constructor(); applyProperties( objToAlter: object, params: object, forceCreation: boolean ): void; } export class DefaultWorkerPayloadHandler { constructor( parser: object ); logging: { enabled: boolean; debug: boolean; }; parser: object; handlePayload( payload: object...
import {IPartialLocaleValues} from './interfaces/values'; /** * locale : Spanish (es) * author : Facundo Donato : https://github.com/genuinefafa */ const es: IPartialLocaleValues = { datepicker: { months: [ 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre...
import { DOMSource, VNode } from '@cycle/dom'; import { StateSource } from 'cycle-onionify'; import { Stream } from 'xstream'; import { IInputAttributeEx } from '../../../dom'; import { IValidationRule } from '../../../validator'; export interface IAction { payload?: string; type: string; } export interface IUSPh...
/** * @module botframework-connector */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import * as adal from 'adal-node'; import type { ServiceClientCredentials } from '@azure/ms-rest-js'; import { AuthenticationConstants } from './authenticationConstants'; import { GovernmentConstants } ...
export class RegisteredEntity { entityName: string; brickName: string; entity: any; constructor(entityName: string, brickName: string, entity: any) { this.entityName = entityName; this.brickName = brickName; this.entity = entity; } }
import { OnInit } from '@angular/core'; import { FileInfo } from './file-info'; import { AsyncSettings } from './async-settings'; import { FileListItemBase } from './file-list-item-base'; import { LocalizationService } from '@progress/kendo-angular-l10n'; /** * @hidden */ export declare class FileListMultipleItemsCom...
import type { PluginFunction, PluginValidateFn, Types } from '@graphql-codegen/plugin-helpers'; import type { LoadedFragment } from '@graphql-codegen/visitor-plugin-common'; import type { DocumentNode, FragmentDefinitionNode, GraphQLSchema } from 'graphql'; import { oldVisit } from '@graphql-codegen/...
import type Module from '../../Module'; import type { AstContext } from '../../Module'; import ExportDefaultVariable from './ExportDefaultVariable'; import Variable from './Variable'; export default class SyntheticNamedExportVariable extends Variable { context: AstContext; module: Module; syntheticNamespace: Variab...
import { makeUser } from '@entities/user/fake'; import { EntityID } from '@server/shared'; import { InvalidPatient } from './errors'; import { Patient } from './patient'; const makeSut = () => ({ sut: Patient }); describe('Patient Unitary Tests', () => { it('should create a valid patient object', () => { const ...
import useHydrated from '@/utils/hooks/useHydrated' import useTheme, { Themes } from '@/utils/hooks/useTheme' import Head from 'next/head' import Link from 'next/link' import Search from '../search/search' import ExternalLink from './externalLink' import Image from './image' import styles from './layout.module.css' imp...
// svg/origin.svg import { createSvgIcon } from './createSvgIcon'; export const SvgOrigin = createSvgIcon( `<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3....
import { TraitArrayLike } from './trait-array-like'; export type TIterateFunctionArguments<GValue, GArray extends TraitArrayLike<GValue>> = [value: GValue, index: number, array: GArray]; export type TIterateFunction<GValue, GArray extends TraitArrayLike<GValue>, GReturn> = (...args: TIterateFunctionArguments<GValue, ...
// eslint-disable-next-line @cypress/dev/arrow-body-multiline-braces export const create = (Cypress) => ({ reset () { return Cypress.action('app:timers:reset') }, pauseTimers (shouldPause) { return Cypress.action('app:timers:pause', shouldPause) }, }) export interface ITimer { pauseTimers: ReturnTyp...
import { isLowerCase } from "./lower-case.validator"; describe ('A função isLowerCase', () =>{ it('Deve confirmar quando receber um texto em caixa baixa', () => { const valor = "mario"; const result = isLowerCase(valor); expect(result).toBeTruthy(); }); it('Deve validar quando o valor enviado ...
import {NgModule,} from '@angular/core'; import {CommonModule,} from '@angular/common'; import {CovalentLayoutModule, CovalentStepsModule, CovalentCommonModule /*, any other modules */} from '@covalent/core'; import { MatListModule, MatButtonModule, MatCardModule, MatIconModule, MatInputModule, MatMenuModule, Mat...
import React, { forwardRef } from "react"; import { IconWeight, IconProps, PaintFunction, renderPathForWeight, } from "../lib"; import IconBase, { RenderFunction } from "../lib/IconBase"; const pathsByWeight = new Map<IconWeight, PaintFunction>(); pathsByWeight.set("bold", (color: string) => ( <> <polyg...
export function splitPath (path: string): number[] { const pathArray = []; for (const entry of path.split("/")) { let number = parseInt(entry, 10); if (isNaN(number)) { throw new Error("Invalid path provided"); } if (entry.length > 1 && entry[entry.length - 1] === "'") { number += 0x80000000; } ...
import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; import * as Url from 'url'; import * as jsonMap from 'json-source-map'; import { sprintf } from 'sprintf-js'; import { GLTF2 } from './GLTF2'; import { AccessorTypeToNumComponents, ComponentTypeToBytesPerElement } from './utilitie...
export const isPositive = (num: number) => { return num > 0; }
import React from "react"; const Home: React.FC = () => { return ( <div> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> Home<br/> ...
import { DefaultProps } from "@deepui/theme"; import { omit, __DEV__ } from "@deepui/utils"; import * as React from "react"; import { useImage, UseImageProps } from "./use-image"; interface INativeImageProps extends DefaultProps { /** * The native HTML `width` attribute to the passed to the `img` */ htmlWidt...
import axios, { AxiosResponse } from 'axios'; import { indexUsersEnabled } from 'config/config-utils'; import { ResourceType, SearchType } from 'interfaces'; import { DashboardSearchResults, TableSearchResults, UserSearchResults } from '../types'; import { ResourceFilterReducerState } from '../filters/reducer'; exp...