text
stringlengths
10
953k
declare module '*.less' { const content: any; export default content; } declare module '*.svg' { const content: any; export default content; }
import { Module } from '@nestjs/common'; import { FormResolver } from './FormResolvers'; @Module({ providers:[FormResolver] }) export class FormModule{}
export const actionMap = { added: 'addMany', modified: 'upsertMany', removed: 'removeMany', };
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { LocationStrategy, HashLocationStrategy } from '@angular/common'; import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar'; import { PERFECT_SCROLLBAR_CONFIG } from 'ngx-perfect-scrollbar'; import { Perfe...
import { Router } from 'express'; import { getCustomRepository } from 'typeorm'; import multer from 'multer'; import TransactionsRepository from '../repositories/TransactionsRepository'; import CreateTransactionService from '../services/CreateTransactionService'; import DeleteTransactionService from '../services/Delet...
export const USER_REPOSITORY_TOKEN = 'USER_REPOSITORY_TOKEN'; export const USER_PASSWORD_REPOSITORY_TOKEN = 'USER_PASSWORD_REPOSITORY_TOKEN'; export const DB_CONNECTION_TOKEN = 'DB_CONNECTION_TOKEN'; export const HASHING_ALGORITHM = 'bcrypt'; export const PASSWORD_CRYPTOGRAPHER_TOKEN = 'PASSWORD_CRYPTOGRAPHER_TOKEN'; e...
// -- copyright // OpenProject is a project management system. // Copyright (C) 2012-2015 the OpenProject Foundation (OPF) // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License version 3. // // OpenProject is a fork of ChiliProject, which is a...
import * as React from 'react' import {CreateNewAvatarSupportBoardRowCell} from './CreateNewAvatarSupportBoardRowCell' import {getMessages} from '../../../../i18n' import {initRenderer} from '../../../../tools' import {lobby} from '../../../../types' const {mountWithIntl} = initRenderer(lobby.Language.en, getMessages(...
import { Arbitrary } from '../check/arbitrary/definition/Arbitrary'; import { float } from './float'; import { FloatNextConstraints } from './_next/floatNext'; import { array } from './array'; import { convertFromNext, convertToNext } from '../check/arbitrary/definition/Converters'; /** * Constraints to be applied on...
import React, { createContext, useCallback, useState, useEffect, useContext, } from 'react'; import AsyncStorage from '@react-native-community/async-storage'; import api from '../services/api'; interface SignInCredentials { email: string; password: string; } interface User { id: string; name: strin...
import { getCustomRepository } from "typeorm"; import { UserRepository } from "../Repository/UserRepository" import { compare } from "bcryptjs" import { sign } from "jsonwebtoken" interface IAuthenticateUserService{ email: string password: string } export class AuthenticateUserService { async execute({e...
import { forwardRef, Icon, IconProps } from '@queelag/react-core' import React, { ForwardedRef } from 'react' /** * Usage: * * ```typescript * import { IconFileCopy } from '@queelag/react-material-icons' * * function App() { * return <IconFileCopy /> * } * ``` * * @category Component */ export const Icon...
<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...
/** * @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 { NgModule } from '@angular/core' import { RouterModule } from '@angular/router'; import { rootRouterConfig } from './app.routes'; import { AppComponent } from './app.component'; import { GithubService } from './github/shared/github.service'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; imp...
// The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `angula...
import { TestBed, async, inject } from '@angular/core/testing'; import { AuthGuard } from './auth.guard'; import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { UserService } from '../services/user.service'; import { MockBackend, MockConnection } from '@angula...
export default { currency: { style: 'currency', currency: 'USD' } };
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; // Export members: export * from "./accessPoint"; export * from "./bucket"; ex...
// Copyright 2019 Stratumn // // 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 wri...
import { MenuItemConstructorOptions } from 'electron'; import { Analytics } from '../../src-shared/analytics/analytics'; import { DevOrProd } from '../../src-shared/dev-or-prod/dev-or-prod'; import { IpcConstants } from '../../src-shared/ipc/ipc-constants'; import { Logger } from '../../src-shared/log/logger'; import {...
import { useEffect, useState } from "react" import { database } from '../services/firebase' import { useAuth } from "./useAuth" type QuestionType = { id: string; content: string; author: { name: string; avatar: string; }, isHighlighted: boolean; isAnswered: boolean; likeCount: number; likeId: string | un...
import { Injectable } from "@angular/core"; import { HttpClient } from "@angular/common/http"; import { Observable } from "rxjs"; /* TODO: Make real http methods in the next version of the app. We don't use this service right now, we have mocks. */ @Injectable() export class HttpRequestService { // p...
import { Component } from '@angular/core'; import { HTTP_PROVIDERS } from '@angular/http'; import { DrinksComponent } from './drink/drinks.component'; @Component({ moduleId: module.id, selector: 'my-app', templateUrl: 'app.component.html', directives: [ DrinksComponent ] }) export class AppComponent {...
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core'; @Component({ selector: 'app-team-create', templateUrl: './team-create.component.html', styleUrls: ['./team-create.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush }) export class TeamCreateComponent implements OnInit {...
/** * @license * Copyright 2018-2021 Streamlit Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
import { Injectable } from '@nestjs/common'; @Injectable() export class AppService { getHello(): string { return 'Hola amigos ...!'; } }
import { PortalKustoTelemetryService } from './services/portal-kusto-telemetry.service'; import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { FormsModule } from '@angular/forms'; import { HttpClientModule ...
import FormFieldInteractor from './FormField.interactor'; class CheckboxInteractor extends FormFieldInteractor { isChecked(): Cypress.Chainable<any> { return this.getHtml().should('be.checked'); } isUnchecked(): Cypress.Chainable<any> { return this.getHtml().should('not.be.checked'); } check(options...
export type HttpMethod = "post" | "get" | "put" | "patch" | "delete"; export type HttpStatus = "success" | "error" | "redirect";
import * as chai from "chai"; import * as sinon from "sinon"; import * as minisync from "../minisync"; import { RemoteSync } from "./remote"; import { MemoryStore } from "./stores/memorystore"; import { FileData, RemoteFileHandle } from "./types"; const expect = chai.expect; describe("minisync storage", () => { d...
import * as React from 'react'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import useMediaQuery from '@mui/material/useMediaQuery'; import CssBaseline from '@mui/material/CssBaseline'; import Box from '@mui/material/Box'; import Typography from '@mui/material/Typography'; import Link from '@mui/...
import * as Sentry from "@sentry/react"; import { Integrations } from "@sentry/tracing"; import { graphql } from "gatsby"; import "isomorphic-fetch"; import * as React from "react"; import { ComponentType } from "react"; import { Provider } from "react-redux"; import "semantic-ui-css/semantic.min.css"; import AboutPane...
// *** WARNING: this file was generated by crd2pulumi. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import {ObjectMeta} from "../meta/v1"; export na...
import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/TextInputGroup/text-input-group'; import { css } from '@patternfly/react-styles'; import { TextInputGroupContext } from './TextInputGroup'; export interface TextInputGroupMainProps extends Omit<React.HTMLProps<HTMLDivElement>, ...
import React, { Component } from 'react'; import { MarketData, DisputeInputtedValues } from 'modules/types'; import { Title } from 'modules/modal/common'; import { SecondaryButton } from 'modules/common/buttons'; import { MarketTypeLabel, RepBalance } from 'modules/common/labels'; import { Subheaders } from 'modules/re...
/** @hidden */ export declare var volumetricLightScatteringPassPixelShader: { name: string; shader: string; };
import { Localized } from "@fluent/react/compat"; import cn from "classnames"; import React, { FunctionComponent } from "react"; import { GQLSTORY_MODE } from "coral-framework/schema"; import CLASSES from "coral-stream/classes"; import { Icon, MatchMedia, Tab, TabBar } from "coral-ui/components/v2"; import styles fro...
import React, { FC } from "react" import { Flex, Sans, Separator } from "@artsy/palette" import { LARGE_SCREEN_HEADER_HEIGHT } from "./ConversationHeader" export const ConversationListHeader: FC = props => { return ( <Flex justifyContent="flex-end" flexDirection="column" mt="1px" height={...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { Commands } from '../common/contributionUtils'; import { sortKeys } from '../common/objUtils'; const strings = { 'attach.node.p...
import { DepGraphData } from '@snyk/dep-graph'; import { EntityToFix, ScanResult, TestResult, FixInfo, SEVERITY, } from '../../src/types'; export function generateEntityToFix( type: string, targetFile: string, contents: string, path?: string, ): EntityToFix { const scanResult = generateScanResult(t...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Component } from '@angular/core'; import { NavController, ModalController } from '@ionic/angular'; import { IntroService } from './../../services/intro-service'; @Component({ templateUrl: 'intro-page.page.html', styleUrls: ['intro-page.page.scss'], providers:[IntroService] }) export class IntroPag...
import express, {Request, Response} from 'express'; import HttpError from '../../models/HttpError'; import { NodeTree } from '../../models/models'; import NodeService from '../../services/nodeService'; const router = express.Router(); const dbContext = require('../../store/dbContext'); interface NodeItem { node_id...
import { deepStrictEqual } from "assert"; import { createTestServerHost } from "./test-server-host.js"; describe("compiler: server: main file", () => { it("finds the main file", async () => { const host = await createTestServerHost(); host.addCadlFile("./main.cadl", 'import "./common.cadl"; import "./subdir/...
export type Tmeta = { headline: string; subheadline: string; contact: string; name: string; [key: string]: string; };
/* eslint-disable no-shadow */ import Vue from "vue"; import backendApi from "@/utils/backend-api"; import { Playlist } from "@/utils/types"; const initialState = { active: { id: undefined, user_id: undefined, name: "Unnamed Playlist", videos: [], updated_at: undefined, ...
import { Component, OnInit, ViewChild ,OnDestroy,AfterViewInit} from '@angular/core'; import { EmployeeService,Employee} from '../../services/employee.service'; import {ModalDirective} from 'ngx-bootstrap/modal'; import { DataTableDirective } from 'angular-datatables'; import { Subject } from 'rxjs' import { NgForm } ...
import * as regExps from "./regexp_rules"; import * as suffixList from "./suffix_list"; export const stemmer = function (w:string):string { if(w.length < 3) return w; if(w.charAt(0) === "y") w = w.charAt(0).toUpperCase() + w.substr(1); // STEP 1.a ----------------------------------------- if (regExps.nonstd_S.te...
import { JsonRpcProvider } from '@ethersproject/providers' import type { ChainAdapter } from '@shapeshiftoss/chain-adapters' import { Investor } from '@shapeshiftoss/investor' import type { ChainTypes } from '@shapeshiftoss/types' import { type ChainId, type VaultMetadata, Yearn } from '@yfi/sdk' import { find } from '...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import React from 'react'; import {Dialog, getFlipperLib} from 'flipper-plugin'; import {getUser} from '../fb-stubs/...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="nl_NL"> <context> <name>ConfigureMidiPlugin</name> <message> <location filename="common/configuremidiplugin.ui" line="33"/> <source>Configure MIDI Plugin</source> <translation>Configureer MIDI Plugin</transl...
import { IVastAd } from "./IVastAd"; export interface IAdSlot { /** * The type of ad. */ type: string; /** * The time of when to display the ad in seconds. */ time: number; /** * The vast ads. */ vastAds: IVastAd[]; }
import { Request, Response } from 'express'; import { getCustomRepository } from "typeorm"; import { AppError } from '../errors/AppError'; import { SurveysUsersRepository } from "../repositories/SurveysUsersRepository"; class AnswerController { async execute(request: Request, response: Response) { const { ...
class C { private foo(x: number); public foo(x: number, y: string); // error private foo(x: any, y?: any) { } private bar(x: 'hi'); public bar(x: string); // error private bar(x: number, y: string); private bar(x: any, y?: any) { } private static foo(x: number); public static foo(x...
export * from './selectEmojiOptions';
import { Paginator } from "@aws-sdk/types"; import { ListOpsMetadataCommandInput, ListOpsMetadataCommandOutput } from "../commands/ListOpsMetadataCommand"; import { SSMPaginationConfiguration } from "./Interfaces"; export declare function paginateListOpsMetadata(config: SSMPaginationConfiguration, input: ListOpsMetadat...
import {BB} from '../../bb/bb'; import {input} from '../ui/base-components/input'; import {Checkbox} from '../ui/base-components/checkbox'; import {ColorOptions} from '../ui/base-components/color-options'; import {Cropper} from '../ui/components/cropper'; export const cropExtend = { getDialog(params) { co...
export interface SetMessageTextViewProps { username: string; } export function getSetMessageTextView(props: SetMessageTextViewProps) { return { text: '✉️ 訊息傳送\n' + '\n' + `要傳送什麼訊息給 *${props.username}* 呢?`, keyboard: [ [{ text: '🔙 取消' }], ], }; }
/** * Setups `shortenText` options * @param {object} opts * @param {number} opts.charsStart=10 - characters to preserve from the beginning * @param {number} opts.charsEnd=10 - characters to preserve at the end * @param {string} opts.ellipsis='...' - ellipsis characters * @returns {function} shortener */ export c...
import { ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { DialogRef } from '@ngneat/dialog'; import { take, tap } from 'rxjs/operators'; import { ApiService } from '~front/app/services/api.service'; import { NavigateService } from...
import { PassThrough, Readable } from 'stream'; import { ActorRdfDereference, KEY_CONTEXT_LENIENT } from '@comunica/bus-rdf-dereference'; import { ActionContext, Bus } from '@comunica/core'; import { MediatorRace } from '@comunica/mediator-race'; import 'cross-fetch/polyfill'; import { ActorRdfDereferenceHttpParse } fr...
import { init as init_, attributesModule as attrsModule, classModule, styleModule } from 'snabbdom-ng/html'; import { Emit, Future, tuple, task_pool, deferred } from '@literium/base'; import { VNode, VData, Component } from '@literium/core'; import { Readable } from 'stream'; export interface Init { <Pro...
import * as vscode from 'vscode'; import { Command, ThemeIcon } from 'vscode'; import { Button } from './button'; import { config } from './utils'; export var treeNodes: { [key: string]: Button[] } = {}; export function clearTreeNodes() { treeNodes = {}; } export function pushTreeNodes(categorize: string, button: B...
import React from 'react'; import createSvgIcon from './helpers/createSvgIcon'; export default createSvgIcon( <path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2...
import { createModel } from "@ev-postgres/model"; export interface AnexoProps { anexoId: string; nome: string; mimetype: string; createdAt?: Date; } export interface AnexoPropsPrimary { anexoId: string; } export const Anexo = createModel<AnexoProps, AnexoPropsPrimary>( "anexos.anexos", ({ anexoId }) =>...
import React, { Fragment } from 'react' import { storiesOf } from '@storybook/react' import { withKnobs } from '@storybook/addon-knobs' import Button from 'button' import Text from 'text' import BlankSeparator, { BlankSeparatorSize } from 'blankSeparator' import MarketingMessage from 'marketingMessage' import SubHead...
export const revertHsvToRGBA = ( rgbaProxy: any, hue: number, saturation: number, value: number ) => { let h = bound01(hue * 2, 360) * 6; let s = bound01(saturation * 100, 100); let v = bound01(value * 100, 100); const i = Math.floor(h); const f = h - i; const p = v * (1 - s); const q = v * (1 - f * s); co...
import { HTTP_METHODS } from './constants'; import { bindHttpMethod } from './request'; import * as z from 'zod'; export { default as RequestError } from './RequestError'; export { default as configStore } from './configuration'; export { default as upload } from './upload'; export { default as i18n } from './i18n'; e...
import * as core from '@actions/core' import * as exec from '@actions/exec' import * as fs from 'fs' import * as path from 'path' import * as io from '@actions/io' import {ExecOptions} from '@actions/exec/lib/interfaces' const IS_WINDOWS = process.platform === 'win32' const SQL_VERSION = core.getInput('sql-version') |...
import * as customPropTypes from '@fluentui/react-proptypes'; import * as React from 'react'; import * as PropTypes from 'prop-types'; import * as _ from 'lodash'; import { UIComponent, RenderResultConfig, createShorthandFactory, commonPropTypes, ShorthandFactory, } from '../../utils'; import { ComponentEven...
import { Center, Circle, Flex, Text } from '@chakra-ui/react'; import * as dayjs from 'dayjs'; import { useEffect, useState } from 'react'; import { CSVLink } from 'react-csv'; import { useSearchParams } from 'react-router-dom'; import { DateRangePicker, IconButton, Select } from '@tkeel/console-components'; import { ...
/* openrqm-client-desktop-nwjs RQMRegister Component Controller SPDX-License-Identifier: GPL-2.0-only Copyright (C) 2020 Benjamin Schilling */ import { Component, OnInit, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { UserManagementService, RQMUser } from 'openrqm-api' import { R...
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { NgModule } from "@angular/core"; import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { HttpClientModule } from "@angular/common/http"; import { RouterModule } from "@angular/router"; import { ToastrModule } fr...
import { Component, OnInit } from '@angular/core'; import { HappyApiService } from 'src/app/services/happy-api.service'; import { HappyDialogService } from 'src/app/services/happy-dialog.service'; import { FactorDTO } from 'src/app/dtos/factor-dto'; import { HappyIconService } from 'src/app/services/happy-icon.service'...
export type Address = string; export type Base64 = string; export type TxHash = string; interface Txn { from: Address; fee: number; firstRound: number; lastRound: number; genesisID: string; genesisHash: Base64; note?: Uint8Array | Base64; reKeyTo?: Address; group?: Buffer | Base64; flatFee: boolean; } inter...
/* Autogenerated by @sbb-esta/angular-icons schematics */ // tslint:disable import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core'; @Component({ selector: 'svg[sbbIconCloudRainSunSmall]', template: ` <svg:path fill="none" stroke="#000" d="M7.2 10.2c-2.14 0-2.567 4.3.8 4....
import 'styled-components'; import { Theme } from './theme'; declare module 'styled-components' { export type DefaultTheme = Theme; }
/* * 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 * distributed u...
import React from "react"; import styles from "./styles.module.less"; const TotalRecordsBarComponent = (props: any) => { return ( <div className="slds-size_12-of-12 slds-medium-size_12-of-12 slds-large-size_12-of-12"> <div className="slds-text-font_monospace slds-text-align_center slds-m-left_small slds-m-...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; // import { AppRoutes } from './app.routes'; import { FormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AngularFireModule } from 'angularfire2'...
import { extname } from 'path' import { existsSync, readFileSync } from 'fs' import { load as parseYaml } from 'js-yaml' import { parse as parseToml } from 'toml' import args from './argsParser' import { lint, diff, IRuleFailureJson } from '..' import fullCommandLineFormatter from './fullCommandLineFormatter' import s...
/* GENERATED FILE */ import * as React from "react"; import Svg, { Rect, Polyline } from "react-native-svg"; import { IconProps } from '../lib' function ArrowElbowRightUp(props: IconProps) { return <Svg viewBox="0 0 256 256" width={props.size} height={props.size} {...props}><Rect width={256} height={256} fill="none...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ i...
import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { Courses } from './entities/courses.entitys'; @Injectable() export class CoursesService { private courses: Courses[] = [ { id: 1, name: 'Fundamentos do nestjs', description: 'Breve introdução...
import { v4 as uuid } from 'uuid' import { ICreateTodoDTO } from '@modules/todos/dtos/ICreateTodoDTO' import { Todo } from '@modules/todos/infra/typeorm/entities/Todo' import { ITodosRepository } from '../ITodosRepository' export class TodosRepositoryInMemory implements ITodosRepository { private todos: Todo[] = [...
import { IsArray, IsNotEmpty } from 'class-validator'; import { OrderListType } from '../../../common/types/order-list.type'; export class CreateOrderDto { @IsNotEmpty() guest_number: string; @IsNotEmpty() full_name: string; @IsNotEmpty() @IsArray() order_list: Array<OrderListType>; }
import { IApi } from 'umi'; import { createStyleImportPlugin, VantResolve } from 'vite-plugin-style-import'; export default (api: IApi) => { api.modifyHTML(($) => { return $; }); api.addHTMLMetas(() => [{ name: 'foo', content: 'bar' }]); api.addHTMLLinks(() => [{ rel: 'foo', content: 'bar' }]); api.addHT...
import merge from 'lodash/merge'; import React from 'react'; import { ListDelField } from 'uniforms-semantic'; import createContext from './_createContext'; import mount from './_mount'; const onChange = jest.fn(); const context = (schema?: {}) => createContext( merge({ x: { type: Array, maxCount: 3 }, 'x.$': S...
import { PLAYER_STORAGE_KEY } from 'src/constants'; import { playerStorage } from './player-storage'; describe('player', () => { describe('playerStorage', () => { let data; beforeAll(() => { localStorage.removeItem(PLAYER_STORAGE_KEY); }); beforeEach(() => { data = {volume: 50}; })...
import { ConfigService } from '@nestjs/config' import { Injectable } from '@nestjs/common'; @Injectable() export class AwsCognitoConfig { constructor ( private configService: ConfigService ) {} public userPoolId: string = this.configService.get<string>('COGNITO_USER_POOL_ID'); public clien...
import path from 'path' import { writeFile } from 'graceful-fs' import { promisify } from 'util' import { TRepoPackageBump } from '@auto/utils/src/' import { getPackage } from './get-package' const pWriteFile = promisify(writeFile) export const writeRepoPackageVersion = async (packageBump: TRepoPackageBump) => { co...
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. 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, modi...
/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ import './dialog.less'; import type { IControlType, IDictionary, IToolbarCollection, IContain...
import { Controller, Get } from '@nestjs/common'; import { AppService } from './app.service'; /** * Starting of app controller */ @Controller() export class AppController { constructor(private readonly appService: AppService) {} @Get() getHello(): string { return this.appService.getHello(); } }
import { Grow, IconButton, InputAdornment, InputBase, Theme, } from '@material-ui/core' import { createStyles, makeStyles } from '@material-ui/core/styles' import { Close } from '@material-ui/icons' import SearchIcon from '@material-ui/icons/Search' import React, { useRef } from 'react' import { connectSearch...
import React, { useState } from 'react'; import { FileHelper } from '../../util/file-helper'; import { ClickableWrapper, ClickableWrapperProps } from '../internal/ClickableWrapper'; import { useFileClickHandlers } from './ClickableFileEntry-hooks'; import { FileEntryProps } from './FileEntry'; import { FileEntryGrid }...
import * as LIU_Engine from './LightItUpEngineCore'; /** * Entry point for 'NOT Typescript' environments usage */ export default class LightItUpEngine { static Color: any = LIU_Engine.Color; static EffectBase: any = LIU_Engine.EffectBase; static EffectConfig: any = LIU_Engine.EffectConfig; static Eff...
import merge from 'webpack-merge'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import { Configuration, ProvidePlugin } from 'webpack'; import { DEV, helper, makeEntry } from './utils'; import makeLoaders from './loaders'; const baseConfig: Configuration = { entry: makeEntry(), module: { rules:...
/** * * * OpenAPI spec version: 20180401 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ...