text
stringlengths
10
953k
import { useEffect, useState } from "react"; import sanityClient from "../client"; interface IRecipe { title: string; recipeName: string; recipeDesc: string; recipeImage: { asset: { _id: string; url: string } }[]; recipeVideo: string; recipePart: string; recipeToDo: string; recipeIngredients: { ing...
import React from 'react' import SEO from '../../components/SEO' import './feedback.scss' const FeedbackPage = () => ( <div id="feedback-page"> <SEO title="Feedback" /> <div className="form-holder" dangerouslySetInnerHTML={{__html: ` <html> <head> <meta name="viewport" content="width=device-width, initial-sc...
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getTitleText()).toEqual('Welcome...
import fs from "fs"; import { createSQLHosts } from '../src/config/database/informix' import { Config } from "sdz-agent-types"; process.env.CONFIGDIR = `${process.cwd()}/${process.env.DOCKER ? 'docker/' : ''}config` const load = (file: string): Partial<Config> => { let json: Partial<Config> = {}; try { const...
/* * BASTET Program Analysis and Verification Framework * * Copyright 2020 by University of Passau (uni-passau.de) * * See the file CONTRIBUTORS.md for the list of contributors. * * Please make sure to CITE this work in your publications if you * build on this work. Some of our maintainers or contribu...
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Category } from './category.entity'; import { Repository } from 'typeorm'; import { CategoryDto } from './category.dto'; @Injectable() export class CategoryService { constructor( @InjectRepository(Category) ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-contact', templateUrl: './contact.component.html', styleUrls: ['./contact.component.css'] }) export class ContactComponent implements OnInit { myimage4:string = "assets/images/image5.jpg"; constructor() { } ngOnInit(): void {...
import { Component } from '@angular/core'; @Component({ selector: 'app-changelog', templateUrl: './changelog.component.html', }) export class ChangelogComponent {}
import debug from 'debug' import { Node } from 'ts-morph' type LogPrefix = Function | string; function _createLogger(logPrefix: LogPrefix, parentPrefix?: string) { let prefix = typeof logPrefix === "function" ? logPrefix.name : logPrefix; if (parentPrefix) { prefix = `${parentPrefix}:${prefix}`; } return...
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const RiTapeLine: IconType;
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { LocationStrategy, HashLocationStrategy } from '@angular/common'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar'; ...
import EventActionTypes from "./eventActionTypes"; import EventAPI from "../api/EventAPI"; export const createEvent = (data: any) => { return { type: EventActionTypes.CREATE_EVENT, payload: EventAPI.createEvent(data), }; }; export const getEvent = (eventId: string) => { return { type: EventActionTypes.GET_EV...
<TS language="ky" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Жаң даректи жасоо</translation> </message> <message> <source>&amp;Delete</source> <translation>Ө&amp;чүрүү</translation> </message> ...
import * as dotenv from 'dotenv'; import * as express from 'express'; import * as morgan from 'morgan'; import * as mongoose from 'mongoose'; import * as path from 'path'; /* MIT License Copyright (c) 2018 Alex Markules, Jacob Kampf, Grant Farnsworth Permission is hereby granted, free of charge, to any person obtaini...
import { Component, OnInit } from '@angular/core'; import { AuthServiceService } from '../services/auth-service.service'; @Component({ selector: 'app-forgot-password', templateUrl: './forgot-password.component.html', styleUrls: ['./forgot-password.component.css'] }) export class ForgotPasswordComponent { cons...
import { name, version } from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { ...
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {ProfileComponent} from './profile.component'; describe('ProfileComponent', () => { let component: ProfileComponent; let fixture: ComponentFixture<ProfileComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ ...
import { JsDataWriter } from '../js-data-writer'; import { runInNewContext } from 'vm'; const serialize = (value: unknown) => JsDataWriter.writeDefinition('data', value); const serializeThenEval = (value: unknown) => runInNewContext(serialize(value) + '\ndata'); describe('JsDataWriter', () => { it('can write object...
import { Component, OnInit } from '@angular/core'; import { MsalService } from '@azure/msal-angular'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.css'], }) export class HomeComponent implements OnInit { constructor(private authService: MsalService) {} ...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ export * from './dataServices/apiDataService';
<TS language="da" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Højreklik for at rette adressen eller teksten</translation> </message> <message> <source>Create a new address</source> <tra...
import { Injectable } from '@nestjs/common'; import { TypeOrmOptionsFactory, TypeOrmModuleOptions } from '@nestjs/typeorm'; /** * Entities */ import { UsersEntity } from '@modules/users/entities/user.entity'; import { VerifyEntity } from '@modules/auth/verify/verify.entity'; import { ClientEntity } from '@modules/cl...
export enum CommentActionType { ADD_COMMENT = 'ADD_COMMENT', ADD_COMMENT_LIST = 'ADD_COMMENT_LIST', DELETE_COMMENT = 'DELETE_COMMENT', CLEAR_ALL_DATA_COMMENT = 'CLEAR_ALL_DATA_COMMENT', UPDATE_COMMENT = 'UPDATE_COMMENT', CLOSE_COMMENT_EDITOR = 'CLOSE_COMMENT_EDITOR', OPEN_COMMENT_EDITOR = 'OPEN_COMMENT_ED...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { AnimationEvent } from '@angular/animations'; import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';...
import { memo } from "react"; import Mutation from "./Mutation"; import Query from "./Query"; export default memo(function App() { return ( <div> <div> <h2>{"Query"}</h2> <Query /> </div> <div> <h2>{"Mutation"}</h2> <Mutation /> </div> </div> ); });
import { InitCapitalPipe } from './init-capital.pipe'; describe('InitCapitalPipe', () => { it('create an instance', () => { const pipe = new InitCapitalPipe(); expect(pipe).toBeTruthy(); }); });
import { Button, Divider, Heading, Icon, useDisclosure, } from "@chakra-ui/react"; import { ContainerInlay } from "../components/layout/ContainerInlay"; import { PageContainer } from "../components/layout/PageContainer"; import { PlaylistList } from "../components/playlist/PlaylistList"; import { useMyPlayl...
import * as angularCore from '@angular/core'; import { enableProdMode } from '@angular/core'; import * as angularCommon from '@angular/common'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { AppConfig } from './environments/environment...
import { DEFAULT_TIMEOUT } from "@remotion/lambda/dist/defaults"; import React from "react"; export const DefaultTimeout: React.FC = () => { return <span>{DEFAULT_TIMEOUT}</span>; };
<TS language="sk" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Kliknutím pravým tlačidlom upraviť adresu alebo popis</translation> </message> <message> <source>Create a new address</source> ...
// import { Fff, Ggg, Hhh, Iii } from "../../Eee"; //
<TS language="es" version="2.0"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Pulsar con el botón derecho para editar la dirección o etiqueta</translation> </message> <message> <source>Create a new address</so...
import clsx from "clsx"; import React, { useEffect } from "react"; import { isSamePath, useCollapsible, Collapsible, useLocalPathname, } from "@docusaurus/theme-common"; import Link from "@docusaurus/Link"; import NavbarItem from "@theme/NavbarItem"; import type { NavbarLink } from "@theme/hooks/useThemeConfig...
export { CheckboxIndeterminateFilled20 as default } from "../";
/* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import * as React from 'react'; import { FlowProps } from '../../props'; import './flow.scss'; export const Flow = (props: FlowProps) => { let className = 'flow' + (props.className && props.className.length > 0 ? ' ' + props.className : ''); return ( <div className={className} style={props.style} ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MangaFormComponent } from './manga-form.component'; describe('MangaFormComponent', () => { let component: MangaFormComponent; let fixture: ComponentFixture<MangaFormComponent>; beforeEach(async(() => { TestBed.configureTesti...
import * as React from "react"; import ReactToolbox from "../index"; export interface IconMenuTheme { /** * Used for the icon element. */ icon?: string; /** * Used for the root element of the icon menu. */ iconMenu?: string; } export interface IconMenuProps extends ReactToolbox.Props { /** * ...
import { CommandBase } from '../node'; import { VimState } from '../../state/vimState'; import { reportFileInfo } from '../../util/statusBarTextUtils'; export class FileInfoCommand extends CommandBase { async execute(vimState: VimState): Promise<void> { reportFileInfo(vimState.cursors[0].start, vimState); } }
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; export interface SenadoresProps { id: number; nomeSenador: string; } export interface SenadorProps { id: number; nomeSenador: string; despesas: [ { tipo: number; ...
export interface BoilerplateOptions { }
import fs from 'fs'; import path from 'path'; import glob from 'glob'; import parseEsImport from 'parse-es-import'; type ModuleExportInfo = { /** Module name */ name; /** Path of module's source file */ moduleFilePath: string; /** Source code of module */ rawCode: string; }; export type ModuleExportMap = ...
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""Software""), to deal * in the Software without restric...
export * from './customIcons' export * from './materialIcons' export * from './materialIconsOutlined' export * from './materialIconsRound' export * from './materialIconsSharp' export * from './materialIconsTwoTone' export * from './version'
export const foo = (x: number): number => x + 1;
export type Config = { /** * Running network ID */ networkId: number /** * Local network ID (when running a local node) */ localNetworkId?: number /** * UNIX timestamp when countdown should start */ countdownStartTimestamp: number /** * UNIX timestamp when countdown should end *...
import React from 'react'; import reactLogo from '../react-logo.svg'; import "./Initialize.scss" export default function Initialize(): JSX.Element { return ( <div className="App"> <header className="App-header"> <img src={reactLogo} className="App-logo" alt="logo" /> <p> Initializ...
import React, { useEffect } from 'react'; import { useHistory, useParams } from 'react-router-dom'; import { useDispatch, useSelector } from 'react-redux'; import { RootState } from 'typings/rootState'; import Breadcrumbs from 'components/common/Breadcrumbs'; import { setBreadcrumbs } from './config/breadcrumbs'; impo...
import { Injectable } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { combineLatest, Subject } from 'rxjs'; import { map, pluck, shareReplay, startWith, switchMap } from 'rxjs/operators'; import { PartyService } from '../../papi/party.service'; import { createDsl } from '../../query-ds...
import { ComponentMeta } from '@storybook/react'; import React from 'react'; import { Circular, Error, Infinite, Success, } from '../../documentation/components/progress/widget-variants'; import { Progress } from '../../lib/components'; export default { component: Progress, decorators: [ (Story: () => ...
export const printObject = (argument:any) => console.log(argument); export function genericFunction<T>(argument:T):T { return argument; } export const GenericFunctionArrow = <T>(argument:T) => argument;
/// <reference types="vite/client" /> import React from 'react' interface ImportMetaEnv { VITE_BASEURL: string } declare module '@mui/material/styles' { interface TypographyVariants { gray: React.CSSProperties } // allow configuration using `createTheme` interface TypographyVariantsOption...
process.env.NODE_ENV = "test"; import mocha from "mocha"; import { expect } from "chai"; import app from "../app"; import { agent as request } from "supertest"; import knex from "../config/sql.config"; describe("Contact tests", function () { beforeEach(() => { return knex.migrate.rollback() ....
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import * as net from 'net'; import WebSocket from 'ws'; import * as events from 'events'; import { CancellationToken } from 'vscode'; imp...
/// <reference path="../comp.ts"/> /// <reference path="../wp.ts"/> /* tslint:disable:no-string-literal */ module ctrl { "use strict"; export class CompetitionCtrl { public companion: comp.ICompetitor; public opponent: comp.ICompetitor; constructor( private $q: ng.IQService, public competi...
import { Datetime } from './datetime'; import { HalLinks } from './hal-links'; import { ShnFlacArtist } from './shn-flac-artist'; import { Artist } from './artist'; import { Identifier } from './identifier'; import { Source } from './source'; import { Performance } from './performance'; export class ShnFlacTorrent { ...
import { RequestListener } from 'http' import { createApp, createError, useBody } from 'h3' import { Storage } from './types' import { stringify } from './_utils' export interface StorageServerOptions { } export interface StorageServer { handle: RequestListener } export function createStorageServer (storage: Stora...
import { BaseCommand } from "./baseCommand"; import { WebGlConstants } from "../types/webglConstants"; export class VertexAttribPointer extends BaseCommand { public static readonly commandName = "vertexAttribPointer"; protected get spiedCommandName(): string { return VertexAttribPointer.commandName; ...
import {Expression} from "../expression"; import {Node, ValueNode} from "../node"; import {NodeArray2} from "../node-array"; import {SyntaxKind} from "../syntax-kind.generated"; import {ElseBranch} from "./if-statement"; import {StoredProcedureStatementList} from "./stored-procedure-statement-list"; /** * https://git...
// Copyright 2014 The Oppia Authors. 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 ap...
import { testHost, corsHost } from "../../hosts-config"; import {grpc} from "../../../ts/src/index"; type TestConfig = { testHostUrl: string, corsHostUrl: string, unavailableHost: string, emptyHost: string, httpVersion: string, } export function headerTrailerCombos(cb: (withHeaders: boolean, withTrailer...
import { LocaleHelper } from '../../LocaleProvider/LocaleHelper'; import { TopBarLocale } from './types'; export * from './types'; export declare const TopBarLocaleHelper: LocaleHelper<TopBarLocale>;
/* * Could use this file to manage Vertex AI stuff from an internal site */
import { OverlayContainer } from '@angular/cdk/overlay'; import { By } from '@angular/platform-browser'; import { ComponentFixture, TestBed, inject, fakeAsync, tick, waitForAsync } from '@angular/core/testing'; import { ElementRef, ViewChild, Component } from '@angular/core'; import { ENTER, DOWN_ARROW } from '@angular...
import React, { Suspense } from 'react'; import ReactDOM from 'react-dom' import './i18n' import App from './App'; import Loading from './pages/Loading'; require('dotenv').config(); // console.log(process.env) ReactDOM.render( <React.StrictMode> <Suspense fallback={Loading}> <App /> </Suspense> </...
import React from "react" import { Flex } from "../../../layout/flex" export interface FormLabelContainerProps {} export const FormLabelContainer: React.FC<FormLabelContainerProps> = ({ children }) => { return ( <Flex justifyContent="space-between"> { children } </Flex> ) }
declare namespace Express { export interface Request { user: { id: string; }; } }
import { Component, Method } from '../../../../../index'; import * as t from '../../../../../declarations/app-global'; /** * This is an actionSheet class */ @Component({ tag: 'ion-action-sheet', styleUrls: { ios: 'action-sheet.ios.scss', md: 'action-sheet.md.scss' }, host: { theme: 'action-sheet'...
/** This will probably move to its own repo at some point but easier to keep it here for now */ import * as os from 'os'; import * as fs from 'fs'; import { MangoClient } from './client'; import { Account, Commitment, Connection, PublicKey, Transaction, } from '@solana/web3.js'; import { getMultipleAccounts,...
import {defineComponent} from "../src"; import DataTable from "../src/component/DataTable"; defineComponent(DataTable.componentName, DataTable, 'example');
export { default } from './SliderUnstyled'; export * from './SliderUnstyled'; export { default as SliderValueLabelUnstyled } from './SliderValueLabelUnstyled'; export * from './SliderValueLabelUnstyled'; export { default as sliderUnstyledClasses } from './sliderUnstyledClasses'; export * from './sliderUnstyledClasses...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { CarsModule } from './cars.module'; import {Tariffs} from './tariffs' import dbConfig from '../../config/db-config'; import { EntityManager } from "typeorm"; @Module({ imports: [ TypeOrmModule.forRoot(dbConfig) ] }...
import * as svemixHandlers from 'svemix/server'; import type { MetaFunction } from 'svemix'; export const prerender = true; export const loader = () => ({}); export const metadata: MetaFunction<any> = () => ({ title: 'The Full-Stack addition to SvelteKit - SVEMIX', description: 'The Full-Stack addition to Svelte...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { isSport, PHASE } from "../../../common"; import { GameSim, allStar, finances, freeAgents, phase, player, season, team, trade, } from ".."; import loadTeams from "./loadTeams"; import updatePlayoffSeries from "./updatePlayoffSeries"; import writeGameStats from "./writeGameStats"; import writePlayerStat...
import { format, randomString } from "./helpers"; describe("format", () => { it("should format a number", () => { expect( format("rgb({r},{g},{b})", { r: "hello", g: "hello", b: "hello" }) ).toBe("rgb(hello,hello,hello)"); }); }); describe("randomString", () => { it("should generate a random strin...
import { isArray } from "./is-array"; export const isEmptyArray = <T>(value: T[]): boolean => isArray(value) && value.length <= 0;
import { NgModule } from '@angular/core'; import { SharedModule } from '../shared/shared.module'; import { requestOptionsProvider } from '../default-request-options.service'; import { AuthGuard } from '../guards/auth.guard'; import { GiftcodesRoutingModule } from './giftcodes-routing.module'; import { BatchesCompon...
import { Injectable } from '@angular/core'; import { ToastrService } from 'ngx-toastr'; @Injectable({ providedIn: 'root' }) export class NotificacionService { constructor(private toastr: ToastrService) { } public exitoso(titulo="Exitoso",descripcion="peticion exitosa"){ this.toastr.success( `<span da...
import '@tw-element/components/base/style/css' import '@tw-element/theme-chalk/el-link.css'
export {default as Calendar, CalendarProps} from './calendar'; export {default as CalendarList, CalendarListProps} from './calendar-list'; export {default as Agenda, AgendaProps} from './agenda'; export {default as ExpandableCalendar, ExpandableCalendarProps} from './expandableCalendar'; export {default as WeekCalendar...
import { TestBed, waitForAsync } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); })); it('should cre...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'moon-copy'; }
import { useEffect, useState } from "react"; const useTheme = (): [string, (e: KeyboardEvent) => void, boolean] => { const [theme, setTheme] = useState("dark"); const [mounted, setMounted] = useState(false); const setMode = (mode: string) => { window.localStorage.setItem("theme", mode); setTheme(mode); ...
/** * Api Documentation * Api Documentation * * OpenAPI spec version: 1.0 * * * 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 manually. * * Licensed under the Apache License, Version 2.0 (the "License"); ...
import Dayjs from 'dayjs' import slugify from 'speakingurl' import React, { useEffect } from 'react' import { TextInput, FormComponentProps } from '@tensei/components' const generateRandomString = () => { let length = 5 let result = '' const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnop...
import * as React from 'react'; import { mount } from 'enzyme'; import { useMountSync } from './useMountSync'; describe('useMountSync', () => { it('fires a callback', () => { const onMount = jest.fn(); const TestComponent: React.FunctionComponent = () => { // eslint-disable-next-line deprecation/depre...
class EventEmitter { private subscribers: Record<string, any[]> = {}; public on(eventName: string, callback: any) { this.subscribers[eventName] = this.subscribers[eventName] || []; this.subscribers[eventName].push(callback); } public removeListener(eventName: string, callback: any) { if (!this.sub...
import { Module } from '@nestjs/common'; import { CommonModule } from 'src/common/common.module'; import { DatabaseModule } from 'src/infrastructure/database/database.module'; /* PLOP_INJECT_IMPORT */ @Module({ imports: [ CommonModule, DatabaseModule, /* PLOP_INJECT_MODULE */ ], con...
<TS language="pl_PL" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Kliknij prawy przycisk myszy, aby edytować adres lub etykietę</translation> </message> <message> <source>Create a new address</s...
import * as async from "async"; import * as crypto from "crypto"; import * as nodemailer from "nodemailer"; import * as passport from "passport"; import { default as User, UserModel, AuthToken } from "../models/User"; import { Request, Response, NextFunction } from "express"; import { IVerifyOptions } from "passport-lo...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'revision-compare'; }
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { SocialLoginModule, SocialAuthServiceConfig, GoogleLoginProvider } from 'angularx-social-login'; import { AppComponent } from './app.component'; @NgModule({ declarations: [ AppComponent ], imports: [...
import { MunicipioListaComponent } from './municipio-lista/municipio-lista.component'; import { SharedModule } from './../../shared/shared.module'; import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { MunicipioComponent } from ...
import { UserInfo } from '../constants/types'; export declare function loginUser(userInfo: UserInfo): Promise<void>;
import { Injectable, NotFoundException } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Product } from './product.model'; import { Model } from 'mongoose'; @Injectable() export class ProductsService { private products: Product[] = []; constructor( @InjectModel('Product') priva...
import { TimeFrame } from '@energyweb/exchange-irec-react-query-client'; import { SelectRegular } from '@energyweb/origin-ui-core'; import { periodTypeOptions } from '@energyweb/origin-ui-exchange-logic'; import { IconButton, InputAdornment } from '@mui/material'; import { Close } from '@mui/icons-material'; import Rea...
import { IColorSwatch, IColorPaletteTheme } from '@fluentui/react-docsite-components/lib/index2'; export const AppColorSwatches: IColorSwatch[] = [ { name: 'Access', hex: '#a4373a', icon: 'AccessLogo', }, { name: 'Exchange', hex: '#0078d4', code: { core: '$ms-color-communicationPrim...
import React from 'react' import AppTheme from './layout/AppTheme' import Button from '@material-ui/core/Button' import Box from '@material-ui/core/Box' import MenuItem from '@material-ui/core/MenuItem' import Label from '@material-ui/core/FormLabel' import FormControl from '@material-ui/core/FormControl' import Select...
import React from 'react'; import firebase from 'firebase'; import getErrorMessageForProvider from './getErrorMessageForProvider'; export type WrappedComponentProps = { signInWithEmailAndPassword: (email: string, password: string) => void; createUserWithEmailAndPassword: (email: string, password: string) => void;...