text
stringlengths
10
953k
import {makeStyles} from "@material-ui/core/styles"; const useStyles = makeStyles(theme => ({ main: {}, header: { display: 'flex', flexDirection: 'row', alignItems: 'center', marginBottom: theme.spacing(2) }, title: { flex: 1, fontSize: 16 }, icon...
import { Action } from '@ngrx/store'; import { PayloadAction } from '../interfaces/payloadaction.interface'; export const UPDATE_USER_DETAILS = 'UPDATE_USER_DETAILS'; export const REQ_LOGIN = 'REQ_LOGIN'; export const LOGIN_COMPLETED = 'LOGIN_COMPLETED'; export const LOGIN_FAILED = 'LOGIN_FAILED'; export const REQ_LOG...
import { ListItem, ListItemAvatar, Avatar, ListItemText, ListItemSecondaryAction, } from '@material-ui/core'; import React from 'react'; import { Message } from '../../../data/room'; export function ChatTile({ avatarUrl, name, latestMessage, unreadCount, isOnline, isSelected, onSelect, }: { a...
import React from 'react' import { IconProps } from './types' const IconVerticalAlignBottom: React.FC<IconProps> = ({ ...props }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none" /> <path d="M16 ...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ErrorPageComponent } fro...
/* * Copyright (C) 2020-2021 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ // expect-type assertions are unused expressions and are perfectly valid // lots of stubs are needed which are just placeholders and are empty // Mocha discoura...
import { AddPayement } from "../../../domain/usecases/payement" import { PayementDb } from "../../../infra/data" import { PostPayement } from "../../../presentation/controllers/payement" export default class PostPayementComposer { static compose () { const payementDb = new PayementDb() const usecas...
import React from "react"; import { ThemeProvider, useColorMode } from "theme-ui"; import { Global } from "@emotion/core"; import styled from "@emotion/styled"; import NavigationFooter from "@components/Navigation/Navigation.Footer"; import NavigationHeader from "@components/Navigation/Navigation.Header"; import Artic...
import { CategoryRepositoryInMemory } from "@modules/Categories/infra/in-memory/CategoryRepositoryInMemory"; import { AppError } from "@shared/errors/AppError"; import { CreateCategoryUseCase } from "./createCategoryUseCase"; let createCategoryUseCase: CreateCategoryUseCase; let categoryRepositoryInMemory: CategoryR...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-gestion-proyecto2', templateUrl: './gestion-proyecto2.component.html', styleUrls: ['./gestion-proyecto2.component.css'] }) export class GestionProyecto2Component implements OnInit { constructor() { } ngOnInit(): void { } }
export { Restart16 as default } from "../../";
import { BigNumber, ethers } from 'ethers'; import BEP20_ABI from './bep20_abi.json'; import { JsonFragment } from '@ethersproject/abi'; import { RPCApi } from './RpcApi'; export class Handler { bepAbi: ReadonlyArray<JsonFragment> = BEP20_ABI; rpcApi: RPCApi | undefined; constructor ( private end...
import jwtManager from '../../business/managers/JwtManager'; import { Request, Response, NextFunction } from 'express'; import ServiceResultCodes from '../../domain/business/serviceResultCodes'; import ServiceResult from '../../domain/business/serviceResult'; import AuthMobileData from '../../moduleLibs/mobile/models/A...
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack"; import * as __aws_sdk_types from "@aws-sdk/types"; import * as _stream from "stream"; import { CreateRequestValidator } from "../model/operations/CreateRequestValidator"; import { InputTypesUnion } from "../types/InputTypesUnion"; import { OutputT...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { StatsNavbarComponent } from './stats-navbar.component'; describe('StatsNavbarComponent', () => { let component: StatsNavbarComponent; let fixture: ComponentFixture<StatsNavbarComponent>; beforeEach(async(() => { TestBed.configure...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { BatchDeleteTableInput } from "../shapes/BatchDeleteTableInput"; import { BatchDeleteTableOutput } from "../shapes/BatchDeleteTableOutput"; import { InvalidInputException } from "../shapes/InvalidInputException"; import { EntityNotFoundException } from "../shapes/EntityNotFoundException"; import { InternalServi...
import { execAsync } from "../shared/exec-async"; /** * XcodeCleanupService */ export class XcodeCleanupService { /** * Clear the Xcode Derived Data directory */ clearDerivedData(): Promise<void> { return execAsync("rm -rf ~/Library/Developer/Xcode/DerivedData").then(); } /** * Clear Swift Pack...
import Hero from '@components/Hero' import React, { FC } from 'react' const HeroContainer: FC = (): JSX.Element => { return <Hero /> } export default HeroContainer
import { BadRequestException, Injectable, NotFoundException } from '@nestjs/common'; import { getConnection } from 'typeorm'; import { SkuCreateDto } from './dto/sku-create.dto'; import { SkuRepository } from './sku.repository'; import { skuData } from './entity/skudata.entity'; import { skuHis } from './entity/sku_his...
import { Toolchain } from "./tools/toolchain"; import { WebhookRequestorInterface } from "./tools/requestors"; import {Logger} from "./Logger"; const log = Logger(__filename); export class CrownstoneWebhooks { log = log; toolchain : Toolchain; rest: WebhookRequestorInterface; constructor(cus...
import { EventDispatcher } from "@ribajs/core"; export interface GameloopOptions { maxFPS?: number; } /** * @see https://www.sitepoint.com/quick-tip-game-loop-in-javascript/ * @see https://isaacsukin.com/news/2015/01/detailed-explanation-javascript-game-loops-and-timing#fps-control */ export class Gameloop { p...
import {Layer} from 'data/layer' import {ActionRoot} from '../root' import {patch501} from './patch5.01' import {patch510} from './patch5.1' export const layers: Array<Layer<ActionRoot>> = [ // Layers should be in their own files, and imported for use here. // Example layer: // {patch: '5.05', data: {ATTACK: {id: ...
/** * @license * Copyright 2018 Google LLC. 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 by a...
import * as chalk from "chalk"; import { Duplicate, InvalidRecipe } from "./commands"; import { ValidationError } from "./util"; import { config } from "./config"; export function log(...args: any[]) { if (!config.silent) { console.log(...args); } } export function clearConsole() { if (!config.silent) { consol...
import React, { Fragment } from 'react'; import { useAuth0 } from 'views/providers/react-auth0-spa.provider'; interface GuarderProps { children: React.ReactNode; } const Guarder = ({ children }: GuarderProps) => { const { isAuthenticated, loginWithRedirect, loading, } = useAuth0(); // if (loading) { //...
import css from 'styled-jsx/css'; /*language=SCSS*/ const staticStyles = css.global` @import 'src/_mixins/vars'; @import 'src/_mixins/screen-size'; .AddressList { &__address { display: flex !important; align-items: center; justify-content: space-between; border-radius: $borderRadius;...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.1"> <context> <name>AboutDialog</name> <message> <source>About GameCredits Core</source> <translation type="unfinished"/> </message> <message> <source>&lt;b&gt;GameCredits Core&lt;/b&gt; version</source> <tra...
 /** * * Copyright (c) 2021 Aspose.PDF Cloud * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge,...
import {Component} from '@angular/core'; @Component({ selector: 'about', styleUrls: ['./about.scss'], templateUrl: './about.html' }) export class About { }
import { PatternFiller, RenderHelper } from './filler-interface'; import { ResolvedOptions, OpSet } from '../core'; import { Point } from '../geometry'; export declare class HachureFiller implements PatternFiller { private helper; constructor(helper: RenderHelper); fillPolygon(points: Point[], o: ResolvedOp...
import { AnimatePresence, AnimationProps, motion } from "framer-motion" import { useLocation } from "@reach/router" import React from "react" import { removeTrailingSlash } from "../util/helpers" export interface PageTransitionProps {} const PageTransition: React.FC<PageTransitionProps> = ({ children }) => { // Pag...
import { UserfriendlyApplicationError } from "./UserfriendlyApplicationError" class General { public currentSessionUnavailable(): UserfriendlyApplicationError { return new UserfriendlyApplicationError( "error.appruntime.general.currentSessionUnavailable", "The currentSession is not ...
import ts from 'typescript'; import { dirname, extname } from 'path'; import { pathToUrl } from '../../utils'; import { CompletionItemKind, DiagnosticSeverity, Position, Range, SymbolKind, SemanticTokenModifiers, SemanticTokenTypes, SemanticTokensLegend, } from 'vscode-languageserver'; import { AstroDocument, m...
// 10 // import Avatar from '@material-ui/core/Avatar'; // import { observer } from 'mobx-react'; // import Error from 'next/error'; // import Head from 'next/head'; // import Router from 'next/router'; // import React from 'react'; // import LoginButton from '../components/common/LoginButton'; // import Layout from '...
export class Fotos { protected _ruta: string = ''; protected _bg: string = ''; protected _perfil: string = ''; public constructor() {} public get ruta(): string { return this._ruta; } public set ruta(value: string) { this._ruta = value; } public get bg(): string { ...
import React from 'react'; import IconButton from '@material-ui/core/IconButton'; import AddCircleIcon from '@material-ui/icons/AddCircle'; interface Props { onClick: () => void; } const OpenButton: React.FC<Props> = (props: Props) => { const { onClick } = props; const clickButton = () => { onClick(); }...
import {Injectable} from '@angular/core'; import {IPlotLine, IPlotpoint} from '../model/plotpoint'; @Injectable() export class PlotService { threadLabel: { [name: string]: string } = {"main": "#66cc00"}; getThreadColor(threadName: string): string { threadName = threadName.trim(); let label = this.threa...
import Vue from 'vue' import rootStore from '@vue-storefront/core/store' import { calculateProductTax } from '../helpers/tax' import flattenDeep from 'lodash-es/flattenDeep' import omit from 'lodash-es/omit' import remove from 'lodash-es/remove' import groupBy from 'lodash-es/groupBy' import toString from 'lodash-es/to...
import { Module } from "@nestjs/common"; import { AppController } from "./app.controller"; import { AppService } from "./app.service"; import { ApolloDriver, ApolloDriverConfig } from "@nestjs/apollo"; import { GraphQLModule } from "@nestjs/graphql"; import { ItemsModule } from './items/items.module'; import { Mongoose...
import { StyleProp, ViewStyle } from 'react-native'; import { CountryCode } from './types'; export interface FlagButtonProps { allowFontScaling?: boolean; withEmoji?: boolean; withCountryNameButton?: boolean; withCurrencyButton?: boolean; withCallingCodeButton?: boolean; withFlagButton?: boolean...
import type { ForeignComponent, BaseComponentProps } from 'piral-core'; import { Component } from 'solid-js'; import { render, createComponent } from 'solid-js/dom'; import { createExtension } from './extension'; export interface SolidConverterOptions { /** * Defines the name of the root element. * @default sl...
/** * @license * Copyright Google Inc. 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 {ConstantPool} from '@angular/compiler'; import * as fs from 'fs'; import * as ts from 'typescript'; import {...
import React from 'react' export interface TabFocusTrapProps { children: React.ReactNode } export class TabFocusTrap extends React.Component<TabFocusTrapProps> { render() { const { children, ...otherProps } = this.props; return ( <span tabIndex={-1} className="" {...otherProps}> ...
import { Component, Input } from '@angular/core'; @Component({ selector: 'app-spinner-text', templateUrl: './spinner-text.component.html', styleUrls: ['./spinner-text.component.css'] }) export class SpinnerTextComponent { @Input() text: string; @Input() diameter: number = 32; constructor() { } }
import React from 'react' import { ToastProvider } from 'react-toast-notifications' import { Header } from '../components/header.component' import { ContractBalance } from '../components/contractBalance' import { ContractActions } from '../components/contractActions' import { DisclaimerWarning } from '../components/di...
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const GiTropicalFish: IconType;
import * as React from 'react'; import { Formik, Form } from 'formik'; import { Input, Button, Check, SelectOption } from 'components/common/form'; import { FaFileExcel, FaFileAlt, FaSyncAlt } from 'react-icons/fa'; import { Row, Form as BSForm } from 'react-bootstrap'; import { IReport } from '../interfaces'; import _...
import { DocDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBClient"; import { DBClusterParameterGroupsMessage, DescribeDBClusterParameterGroupsMessage } from "../models/models_0"; import { deserializeAws_queryDescribeDBClusterParameterGroupsCommand, serializeAws_queryDescribeDBClusterP...
// Copyright (c) 2019 the Octant contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // import { Component, Input, OnChanges, SimpleChanges } from '@angular/core'; import { ListView, View } from 'src/app/models/content'; import { IconService } from '../../services/icon.service'; import { ViewServ...
import { Ctx, SecurePassword } from "blitz" import db from "db" import { SignupInput, SignupInputType } from "app/auth/validations" import { gql } from "graphql-request" export default async function signup(input: SignupInputType, { session }: Ctx) { // This throws an error if input is invalid const { email, passw...
import * as iam from '@aws-cdk/aws-iam'; import * as lambda from '@aws-cdk/aws-lambda'; import { Arn, ArnFormat, Duration, Lazy, Names, Stack } from '@aws-cdk/core'; import { Construct } from 'constructs'; import { CfnAuthorizer } from '../apigateway.generated'; import { Authorizer, IAuthorizer } from '../authorizer'; ...
declare const Espruino: {[index: string]: any}; import * as fs from 'fs'; import * as path from 'path'; const esp = require('espruino'); const {stringify} = require('../../../../system/lib'); const fsPromises = fs.promises; class Upload { private readonly port: string; private readonly portSpeed: number; pr...
import * as React from 'react' import mergeRefs from 'react-merge-refs' import useMeasure, { Options as ResizeOptions } from 'react-use-measure' import { render, unmountComponentAtNode, RenderProps } from './index' import { createPointerEvents } from './events' import { UseStore } from 'zustand' import { RootState } fr...
import styled from 'styled-components'; import { darken, transparentize } from 'polished'; import { Container, Row as _Row, Col as _Col } from 'styled-bootstrap-grid'; // import { rhythm } from '@style/typography'; import { ThemeStateType } from '@store/Theme'; interface props extends ThemeStateType { bgColor: strin...
import chalk from 'chalk'; export const icon = { RUN: '►', VALID: '✔', ISSUE: '✗', WARNING: '⚠', INFO: 'ℹ', }; export const color = { status: { error: (text: string) => chalk.red(text), warn: (text: string) => chalk.yellow(text), success: (text: string) => chalk.green(text), }, severity: {...
import { ChangeDetectionStrategy, Component, } from '@angular/core'; import { FormControl } from '@angular/forms'; @Component({ // eslint-disable-next-line @angular-eslint/component-selector selector: 'card-theming', templateUrl: './card-theming.component.html', styles: [` daff-card { max-width: ...
export class Template{ id: number; name: string; createTime: string; updateTime: string; files: string; }
import { Image } from '@components/ui/image'; import BackButton from '@components/ui/back-button'; import { AddToCart } from '@components/products/add-to-cart/add-to-cart'; import usePrice from '@lib/use-price'; import { ThumbsCarousel } from '@components/ui/thumb-carousel'; import { useTranslation } from 'next-i18next...
/** * Copyright 2017 The Mifos Initiative. * * 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 agr...
export * from './pipes/PipesDemo'; export * from './app-bridge/AppBridgeDemo'; export * from './utils/UtilsDemo'; export { SecurityDemoComponent } from './security/SecurityDemo';
import { InputWrapper, SegmentedControl, Slider, Space, Switch, Text, TextInput, } from "@mantine/core"; import { useLocalStorageValue } from "@mantine/hooks"; import { useEffect } from "react"; import { useDrawerPosition, useMarkerSize, useSetDrawerPosition, useSetMarkerSize, useShowNameOnMap, ...
import { Component } from "@angular/core"; @Component({ selector: "main", template: ` <StackLayout> <Button text="text-alignment" [nsRouterLink]="['button-text-alignment']"></Button> </StackLayout> `, }) export class ButtonMainPageComponent { }
import React from 'react' import { v4 as uuidv4 } from 'uuid' import logger from './utils/logger' function getKey(prefix: string, suffix: string | number): string { return `${prefix}-${suffix}`.replace(/\s/g, '') } function getId(prefix: string): string { return getKey(prefix, uuidv4()) } function hasClass(allC...
export { ChatBot20 as default } from "../../";
import Identifier from '../../../interfaces/Identifier' import Collector from '../../../interfaces/Collector' export interface IRemoveCollectorUI<T> { (collector: Collector): T } export interface IRemoveCollectorDB { (collectorId: Identifier): Promise<Collector> } export default async <T>(ui: IRemoveCollectorUI<...
/* * mydraft.cc * * @license * Copyright (c) Sebastian Stehle. All rights reserved. */ import { Color, ImmutableMap, Rect2, Vec2 } from '@app/core'; import { Diagram, RendererService } from '@app/wireframes/model'; import { Editor } from '@app/wireframes/renderer/Editor'; import * as React from 'react'; export in...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// requires impact.base.entity export {}; declare global { namespace sc { interface CombatForce extends ig.Class, sc.GetCombatant, sc.GetCombatantRoot { combatant: sc.BasicCombatant; combatantRoot: ig.ENTITY.Combatant; update(this: this): boolean; isRepeating(this: this): boolean; ...
import { Pipe, PipeTransform } from '@angular/core'; import { Vehicle } from '../models'; @Pipe({ name: 'transformVehicle' }) export class TransformVehiclePipe implements PipeTransform { transform(vehicle: Vehicle): string { return `${ vehicle.manufacturer } - ${ vehicle.model } (${ vehicle.fuel })`; } }
import { printSchema, GraphQLSchema } from "graphql" import { ESLint } from "eslint" import path from "path" const eslintRulePaths = path.resolve(`${__dirname}/eslint-rules`) const eslintRequirePreset = require.resolve(`./eslint/required`) export const eslintRequiredConfig: ESLint.Options = { rulePaths: [eslintRule...
import Ajv from 'ajv'; import * as process from 'process'; import * as path from 'path'; import * as os from 'os'; import * as fs from 'fs'; export const NAME_PATTERN = '^([0-9a-z_.+-]{3,37})$'; export const NAMESPACE_PATTERN = '^([0-9a-z_-]{1,19})$'; export const ADDRESS_CHARS = '[123456789ABCDEFGHJKLMNPQRSTUVWXYZ...
export const input = ` const foo = (w, x, y, z) const bar = (a, b, c) ` export const find = `const $c = ($a, $_b, z)` export const expectedFind = [ { node: 'const foo = (w, x, y, z)', captures: { $a: 'w', $c: 'foo', }, arrayCaptures: { $_b: ['x', 'y'], }, }, ] export const r...
<TS language="ca" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Botó dret per editar l'adreça o l'etiqueta</translation> </message> <message> <source>Create a new address</source> <transl...
type Size = string | number | (string & {}); export interface Theme { mainColor: string; backgroundColor: string; confettiColors: string[]; topBarHeight: Size; topBarFontSize: Size; bottomNavHeight: Size; bodyPadding: Size; } const theme: Theme = { mainColor: "#b3000c", backgroundColor: "#ffe9ea", ...
import { Component, Input } from '@angular/core'; @Component({ styles: [ ` div { white-space: nowrap; padding-bottom: 4px; } div img { width: 40px; height: 40px; } .icon-closed { color: red; margin-right: 3px; } .icon-checked { color: green; margin-right: 3px;...
import React, { FunctionComponent } from 'react'; export const GiphyLogo: FunctionComponent = () => ( <svg height="534" width="2500" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 163.79999999999998 35" > <g fill="none" fillRule="evenodd"> <path d="M4 4h20v27H4z" fill="#000" /> <g...
import { WaitForData } from 'components/common'; import { useTaskNameList } from 'components/hooks/useNamedEntity'; import { SearchableTaskNameList } from 'components/Task/SearchableTaskNameList'; import { limits, SortDirection, taskSortFields } from 'models'; import * as React from 'react'; export interface ProjectTa...
import React from 'react'; import { CopyrightFooter } from './styles'; const PageMainFooter: React.FC = () => { const copyrightDate = new Date(); const copyrightYear = copyrightDate.getFullYear(); return ( <CopyrightFooter> <strong> © COPYRIGHT {copyrightYear} –{' '} <a href=...
import { IAddress } from '../interfaces/address.interface'; export class CreateUserDto { readonly email: string; readonly avatar: string; readonly avatarId: string; readonly firstName: string; readonly lastName: string; readonly gender: string; readonly address: IAddress; readonly profession: string; ...
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class AnimationsService { constructor() {} private static routeAnimationType: RouteAnimationType = 'ELEMENTS'; // 'NONE'; static isRouteAnimationsType(type: RouteAnimationType) { return AnimationsService.routeAnimationTy...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fi_FI" version="2.1"> <context> <name>SBI_ImagesIcon</name> <message> <location filename="../sbi_imagesicon.cpp" line="33"/> <source>Modify images loading settings per-site and globally</source> <translation>Muokkaa kuvian lataamisen asetu...
import { Routes } from '@angular/router'; import { StepperGuard } from '../guards/stepper.guard'; import { ProvisionerConstants } from './provisioner-constants.model'; import { ProfileComponent } from '@prime-prov/modules/enrolment/pages/profile/profile.component'; import { ContactComponent } from '@prime-prov/modules/...
export * from './parameters';
import * as React from 'react' import { CtaBanner } from '../../components/CtaBanner' interface Props { className?: string } export const PrivateCodeCta: React.FunctionComponent<Props> = ({ className }) => ( <CtaBanner className={className} icon={<DownloadIllustration />} title="Search...
/*! * V4Fire Core * https://github.com/V4Fire/Core * * Released under the MIT license * https://github.com/V4Fire/Core/blob/master/LICENSE */ /** * Link to the global object */ export const GLOBAL = Function('return this')(); /** * True if NodeJS runtime */ export const IS_NODE: boolean = (() => { try { ...
export const routes = { HOME: { id: 1, path: '/', name: 'Trang chủ', }, BLOG: { id: 2, path: '/blog', name: 'Blog', }, PROMOTION: { id: 3, path: '/khuyen-mai', name: 'Khuyến mãi', }, CART: { id: 4, path: '/gio-hang', name: 'Giỏ hàng', }, ABOUT: { id:...
/// <reference path="./power-assert.d.ts" /> import assert = require("power-assert"); assert(1 + 1 - 2 === 0, "The universe isn't how it should."); assert.deepEqual({x: {y: 3}}, {x: {y: 3}}, "DEEP WENT DERP"); assert.equal(3, "3", "uses == comparator"); assert.notStrictEqual(2, "2", "uses === comparator"); assert...
import {createStyles, Theme} from "@material-ui/core"; export default (theme: Theme) => createStyles({ wrap: { height: '100%', padding: '0px 30px 30px', boxSizing: 'border-box' }, content: { width: '100%' }, header: { display: 'flex', justifyContent: ...
export function formatAmount(amount: number, decimals: number = 2) { return new Intl.NumberFormat('en-GB', { minimumFractionDigits: decimals }).format(amount); } export function getBankInitials(bankName: string) { return bankName.slice(0, 2).toUpperCase(); } export function getGreeting() { const date = new Date()....
import { List as _List_ } from "@aws-sdk/types"; import { _DimensionFilter } from "./_DimensionFilter"; export const _DimensionFilters: _List_ = { type: "list", member: { shape: _DimensionFilter } };
import * as React from "react"; import { SVGProps } from "react"; const TerraLuna = (props: SVGProps<SVGSVGElement>) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000" {...props}> <circle cx={1000} cy={1000} r={1000} fill="#172852" /> <path fill="#ffd83d" d="M805.5 446.9c117.1-4...
import { Component, Input, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Rental } from 'src/app/models/rental'; import { CustomerService } from 'src/app/services/customer.service'; import { ToastrService } from 'ngx-toastr'; import { Customer } from 'src/app/models/customer'; import ...
import style from './style.scss'; import {ContentItem} from "../contentItem/ContentItem"; import {NavItem} from "../navItem/NavItem"; import {FooterTile} from "../footer/FooterTile"; import {develop} from "../../utils/developer"; import {Router} from "../../utils/router"; export class TabView extends HTMLElement { ...
import * as core from '@actions/core'; import * as exec from '@actions/exec'; import * as tools from '@actions/tool-cache'; import * as io from '@actions/io'; import { Octokit } from '@octokit/rest'; import { promises as fs } from 'fs'; import path from 'path'; interface ISwiftPackageNamedObject { name: string; } ...
import { APIGatewayEvent, APIGatewayEventRequestContext, ProxyResult } from 'aws-lambda'; import { ResponseUtil } from './response-util'; import path from 'path'; import fs from 'fs'; import { FilterChainContext } from '../config/http/filter-chain-context'; import { ExtendedAPIGatewayEvent } from '../config/http/extend...
import io from 'socket.io'; import { container } from './container'; import { TYPES } from './types'; import { injectable } from 'inversify'; import chroma from 'chroma-js'; import { AzureBot } from './azure-bot'; import * as config from './config'; import { effectsManager as constants, StopCommands } from './constant...
import { Component, Element, Prop } from '@stencil/core'; import { Color, Mode } from '../../interface'; import { createColorClasses } from '../../utils/theme'; @Component({ tag: 'ion-title', styleUrl: 'title.scss', shadow: true }) export class ToolbarTitle { mode!: Mode; @Element() el!: HTMLElement; /...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Product } from '../_models'; import { appConfig } from '../app.config'; import { stringify } from '@angular/compiler/src/util'; @Injectable() export class ProductService { constructor(private http: HttpClient)...
import { Component, OnInit } from '@angular/core'; // UI Components import { MatToolbar } from '@angular/material/toolbar'; import { MatButton } from '@angular/material/button' import { MatIcon } from '@angular/material/icon'; import { MatTooltip } from '@angular/material/tooltip'; import { MatDialog } from '@angular/...