text
stringlengths
10
953k
import * as React from "react"; import "./PlanDirectory.scss"; import { Page } from "azure-devops-ui/Page"; import PlanDirectoryHeader from "./PlanDirectoryHeader"; import { PlanCard } from "./PlanCard"; import NewPlanDialog from "./NewPlanDialog"; import { PlanDirectoryActions } from "../../Redux/Actions/PlanDirectory...
import { Pipeline } from '@ephox/agar'; import { UnitTest } from '@ephox/bedrock'; import { LegacyUnit } from '@ephox/mcagar'; import { Element, Hierarchy } from '@ephox/sugar'; import FontInfo from 'tinymce/ui/fmt/FontInfo'; UnitTest.asynctest('browser.tinymce.ui.fmt.FontInfoTest', function () { const success = ar...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { FlightService } from '../services/flightsadd.service'; import { Flightdatalist } from '../model/filghtdata'; @Component({ selector: 'app-flights', templateUrl: './flights.component.html', styleUrls: ['./flights....
import { Args, Mutation, Query, Resolver } from '@nestjs/graphql'; import { BlogService } from './blog.service'; import { CreateBlogDto } from './dto/create-blog-dto'; import { UpdateBlogDto } from './dto/update-blog-dto'; import { PostEntity } from './entities/post.entity'; @Resolver(() => PostEntity) export class Bl...
import React from 'react'; import Link from 'next/link' import { Navbar, Container, Nav } from 'react-bootstrap'; export const CustomNavbar = () => { return ( <Navbar bg="dark" expand="lg" variant="dark"> <Container> <Link href="/"> <Navbar.Brand role="button...
import { Component, OnDestroy, OnInit } from '@angular/core'; import { DevuiSourceData } from 'ng-devui/shared/devui-codebox'; import { TranslateService, TranslationChangeEvent } from '@ngx-translate/core'; import { Subscription } from 'rxjs'; @Component({ selector: 'd-datepicker-demo', templateUrl: './datepicker-...
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerExecutionContext, HttpHandlerOptions...
import {IProduct} from '../models' import {mockProducts} from './mockData/products' export class ProductsService { constructor(private accessToken: string) {} public async getAllProducts(): Promise<IProduct[]> { await new Promise(res => setTimeout(res, 1000)) return mockProducts } pub...
import { configFactory } from 'src/factories/config'; import { deleteLinodeActions } from '../linodes.actions'; import { createLinodeConfigActions, deleteLinodeConfigActions, getAllLinodeConfigsActions, getLinodeConfigActions, updateLinodeConfigActions } from './config.actions'; import reducer, { State } from...
import { GLTFLoaderAnimationStartMode, GLTFLoaderCoordinateSystemMode } from "babylonjs-loaders/glTF/index"; import { IGLTFValidationResults } from "babylonjs-gltf2interface"; import { Nullable } from "babylonjs/types"; import { Observable, Observer } from "babylonjs/Misc/observable"; import { ISceneLoaderPlugin, ISce...
/* artifact generator: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi-js\dist\lib\artifacts\ts\module\gen\main.js package: wizzi-js@0.7.8 primary source IttfDocument: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi.site\.wizzi\server\src\services\filesystem.ts.ittf utc time: Wed, 09 Jun 2021 05:04:16 GMT */ import...
import { Component, EmitType, L10n } from '@syncfusion/ej2-base'; import { Dialog, ButtonPropsModel } from '@syncfusion/ej2-popups'; import { FileManagerModel } from '../base/file-manager-model'; import { ToolbarSettingsModel, AjaxSettingsModel } from '../models/index'; import { TreeView, ContextMenu, MenuItemModel, It...
/** * Copyright 2019 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 agreed to...
import { useEffect, useState } from "react"; import { AuthContext } from "../context/AuthContext"; import firebase from "firebase/app"; import { auth } from "../firebase"; export const AuthProvider: React.FC = ({ children }) => { const [user, setUser] = useState<firebase.User | null>(null); useEffect(() => { ...
import { Component, OnInit } from '@angular/core'; import { Title } from '@angular/platform-browser'; @Component({ selector: 'app-getting-started', templateUrl: './getting-started.component.html', styleUrls: ['./getting-started.component.scss'] }) export class GettingStartedComponent implements OnInit { ...
import { Component } from '@angular/core'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { TileModule } from './tile.module'; import { TileHeaderDirective, TileHeaderType } from './tile-header.directive'; @Component({ templat...
import { Knex } from 'knex'; import { Table } from './table'; import { Column } from './column'; import { ForeignKey } from './foreign-key'; export interface SchemaInspector { knex: Knex; tables(): Promise<string[]>; tableInfo(): Promise<Table[]>; tableInfo(table: string): Promise<Table>; hasTable(table: ...
import { Component } from '@angular/core'; //router-outlet dùng để load thêm 1 trang con nữa khi mà route rơi đúng vào điều kiện trong app.module. VD: vao timdziec.com dk = '' //thì sẽ load compunent TranHeroes (trong app.component.ts) thì hệ thống sẽ tự load 1 trang app.component.ts nữa thành ra là bị 2 trang. //c...
export { LoggerModes, Formats, ICustomLogger } from './constants'; import Logger from './Logger'; export default Logger;
import { Component, OnInit, Inject, Renderer, ElementRef, ViewChild } from '@angular/core'; import { Router, NavigationEnd } from '@angular/router'; import { Subscription } from 'rxjs/Subscription'; import 'rxjs/add/operator/filter'; import { DOCUMENT } from '@angular/platform-browser'; import { LocationStrategy, Platf...
import { NgModule } from '@angular/core'; import { FileUploadModule } from 'primeng/fileupload'; import { HttpClientModule } from '@angular/common/http'; // Imports de Tabla Smart de Angular import { Ng2SmartTableModule } from 'ng2-smart-table'; // import { SmartTableService } from '../../@core/data/smart-table.servi...
// DefinitelyTyped: partial // This file contains common part of defintions for rx.time.d.ts and rx.lite.d.ts // Do not include the file separately. ///<reference path="rx-lite.d.ts" /> declare namespace Rx { interface Observable<T> { /** * Returns a new observable that triggers on the second and subsequent tr...
/* * Copyright 2020 Spotify AB * * 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 i...
// tslint:disable /** * Semux API * Semux is an experimental high-performance blockchain platform that powers decentralized application. * * OpenAPI spec version: 2.5.0 * * * NOTE: This file is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not ...
import { Dispatch, ReactElement, SetStateAction } from 'react'; import styles from './button.module.scss'; interface Props { text: string; // use to override scss module styling style?: Record<string, string> | undefined; onClick?: () => void; onMouseEnter?: () => void; onMouseLeave?: () => void; } const ...
import React, { SVGProps } from 'react'; import generateIcon from '../../generateIcon'; const BrandsRavelry = (props: SVGProps<SVGSVGElement>) => { return ( <svg viewBox="0 0 512 512" width="1em" height="1em" {...props}> <path d="M407.4 61.5C331.6 22.1 257.8 31 182.9 66c-11.3 5.2-15.5 10.6-19.9 19-10.3 19....
export * from './helpers' export * from './application' export * from './contextMenu' export * from './dialog' export * from './dialogs' export * from './page' export * from './snackbar'
import { AuditoryDescription } from '../audio/auditory_description'; import { BaseRuleStore, RulesJson } from './base_rule_store'; export declare class MathStore extends BaseRuleStore { annotators: string[]; constructor(); initialize(): void; annotations(): void; defineAlias(name: string, prec: stri...
/* * Copyright 2021 Marcus Portmann * * 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 t...
export const version = "constants/5.0.4";
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { LienholdersRoutingModule } from './lienholders-routing.module'; import { LienholdersComponent } from './lienholders.component'; import { PageHeaderModule } from './../../shared'; import { FormsModule, ReactiveFormsModul...
/** * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.o...
let emailRegex = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; export function email(input) { return emailRegex.test(input); }
import { useRouter } from 'next/router'; import TemplateEditor from '../../client/components/TemplateEditor'; export default function Template(): React.ReactElement { const router = useRouter(); const { templateId } = router.query; if (Array.isArray(templateId) || !templateId) return <div />; return <Templat...
import React, { useState, useEffect } from "react"; import { OrgComponent } from "@ui_types"; import { Api, Model } from "@core/types"; import * as g from "@core/lib/graph"; import * as styles from "@styles"; import { SmallLoader } from "@images"; import { Link } from "react-router-dom"; import { logAndAlertError } fro...
// Copyright 2020 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 in w...
import { CommandStore, KlasaMessage } from 'klasa'; import { BotCommand } from '../../lib/BotCommand'; import { Eatables } from '../../lib/eatables'; import { UserSettings } from '../../lib/settings/types/UserSettings'; import Skills from '../../lib/skilling/skills'; export default class extends BotCommand { public ...
import { window as Window } from 'vscode'; export function noPackageError() { Window.showErrorMessage('Cannot read \'package.json\''); }; export function alreadyExistsError() { Window.showErrorMessage('\'package.json\' already exists'); }; export function noProjectOpenError() { Window.showErrorMessage('No project...
import { Injectable } from '@angular/core'; import { Headers, Http, Response, RequestOptions } from '@angular/http'; import { AssessmentReport } from '../domain/assessmentreport'; import { AssessmentAnswer } from '../domain/assessmentanswer'; import { TemplateQuestion } from '../domain/templatequestion'; import { Obs...
/** * @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 React from 'react'; import { SxProps } from '@mui/system'; import { OverrideProps } from '@mui/types'; import { ExtendModalUnstyledTypeMap, ExtendModalUnstyled } from '@mui/base/ModalUnstyled'; import { Theme } from '../styles'; import { BackdropProps } from '../Backdrop'; export type ModalTypeMap<D extend...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { DevicesceneComponent } from './devicescene.component'; describe('DevicesceneComponent', () => { let component: DevicesceneComponent; let fixture: ComponentFixture<DevicesceneComponent>; beforeEach(async () => { await TestBed.config...
import { TestBed } from '@angular/core/testing' import { RouterTestingModule } from '@angular/router/testing' import { AppComponent } from './app.component' describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
export interface IReadPostRequestDTO { id: string, title: string, body: string, tags: string[], }
import { css } from '@emotion/react'; import { brandText, headline } from '@guardian/source-foundations'; const headlineTagWrapper = css` margin-left: 6px; margin-top: 6px; `; const headlineTagStyles = (palette: Palette) => css` background-color: ${palette.background.headlineTag}; color: ${brandText.primary}; ${...
import { Xlsx } from "./xlsx/xlsx.util"; import { XlsxBuilder } from "./xlsx/xlsx.util.builder"; const xlsx = (fileName?: string): Xlsx => { return XlsxBuilder.default(fileName); }; xlsx.load = ( file: any, options?: any, fileName?: string, callback?: Function ): Promise<Xlsx> => { return Xlsx.load(file, ...
import { Component, OnInit } from '@angular/core'; import { Member } from '../_models/member'; import { Pagination } from '../_models/pagination'; import { MembersService } from '../_services/members.service'; @Component({ selector: 'app-lists', templateUrl: './lists.component.html', styleUrls: ['./lists.compone...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { useMemo, useState, useCallback, useEffect, useReducer } from 'react'...
export const GetEvent = { id: true, title: true, description: true, organizer: true, ticketLink: true, image: { public_id: true }, time: { start: true, end: true }, location: { id: true, name: true, address: true, geometry: ...
// Copyright 2020 H2O.ai, 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 applicable law or agreed to in...
import { useContext } from 'react'; import './style.scss'; import { MovieCard } from '../MovieCard'; import { MovieContext } from '../../Context/ApiContext'; export function Content() { const {movies, selectedGenre} = useContext(MovieContext); return ( <div className="container"> <header> <span classN...
export enum DocumentEnum { Personal_information = 'Personal_information', Specialties = 'Specialties', Investigations = 'Investigations ', Interventions = 'Interventions ', Referrals = 'Referrals ', Reports = 'Reports ', Customized_folder = 'Customized_folder ', }
import React from "react"; interface DescriptionProps { label: string; color: string; isGreen?: boolean; number: number; } const BrickColDescription: React.FC<DescriptionProps> = (props) => { return ( <div className="main-brick-container description"> <div className={"brick-container " + props.col...
import { Controller, Get, Inject, Req, Res, HttpService } from '@nestjs/common'; import { AppService } from './app.service'; import { of, Observable } from 'rxjs' import { catchError, map, timeout } from 'rxjs/operators' import { ApiTags, ApiOperation } from '@nestjs/swagger'; var sha1 = require("sha1"); var config = ...
import * as fs from 'fs'; import { dirname } from './path'; export * from 'fs'; export const readFile = (file: string) => new Promise<string>((fulfil, reject) => fs.readFile(file, 'utf-8', (err, contents) => (err ? reject(err) : fulfil(contents))) ); function mkdirpath(path: string) { const dir = dirname(path);...
// Copyright 2022 DeepL SE (https://www.deepl.com) // Use of this source code is governed by an MIT // license that can be found in the LICENSE file. import { DeepLError } from './errors'; import { DocumentHandle, DocumentStatus, DocumentStatusCode, GlossaryLanguagePair, Language, SourceGlossar...
import * as React from 'react'; import { SVGIconProps } from '../createIcon'; export declare const GiftIconConfig: { name: 'GiftIcon', height: 512, width: 512, svgPath: 'M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm256 32h160c17.7 0 32-14.3 32-32V320H288v160zm192-320h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5...
import { HttpResponse } from '@angular/common/http'; import { Component, Input, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; import { JhiEventManager } from 'ng-jhipster'; import { Observable, of, Subscription } from 'rxjs'; import { catchError, map } from 'rxjs/operators'; import { Principal } from '.....
/** * 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 restriction, including without limitation * th...
import Motion from '../src/index' import { expect } from 'chai' const enum Direction { x = 'x', y = 'y', xy = 'xy' } const enum Mode { realtime = 'realtime', frame = 'frame' } describe('Motion Class - instance properties', () => { it('motion.mode should be Mode.realtime or Mode.frame', () => { expect(...
import { defaultAccountingSettings, defaultGeneralSettings } from '@/data/factories'; import { AccountingSettings, GeneralSettings, Tags } from '@/typing/types'; export interface SessionState { newAccount: boolean; logged: boolean; username: string; generalSettings: GeneralSettings; accountingSettings: A...
import { ProviderConnector, SolStructType } from './provider.connector'; import Web3 from 'web3'; import { AbiItem } from '../model/abi.model'; import { AbiItem as Web3AbiItem } from 'web3-utils'; export class Web3ProviderConnector implements ProviderConnector { constructor(protected readonly web3Provider: Web3) {} ...
import { createTransport } from 'nodemailer'; import { EmailTemplate } from './email-template'; import { config } from '../config'; export class Mailer { public async sendEmail( email: string, template: EmailTemplate, params: {[key: string]: string} ): Promise<void> { const transportOptions: any...
/** * CreateLiveSnapshotRule请求参数结构体 */ export interface CreateLiveSnapshotRuleRequest { /** * 推流域名。 */ DomainName: string; /** * 模板 ID。 */ TemplateId: number; /** * 推流路径,与推流和播放地址中的 AppName 保持一致,默认为 live。 */ AppName?: string; /** * 流名称。 注:如果本参数设置为非空...
import ThemeOptions from "./ThemeOptions"; const themeOptions = { ThemeOptions }; export default themeOptions;
import React, { FC, HTMLAttributes } from "react"; import cn from "classnames"; const Container: FC<HTMLAttributes<HTMLDivElement>> = ({ className, children, ...props }) => ( <div {...props} className={cn("demo__container", className)}> {children} </div> ); export default Container;
import Settings from "../../shared/settings/Settings"; import * as messages from "../../shared/messages"; import ColorScheme from "../../shared/ColorScheme"; export default class SettingClient { async getColorScheme(): Promise<ColorScheme> { const json = await browser.runtime.sendMessage({ type: messages.S...
import queryString from 'query-string'; import React, { useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; import Badge, { BadgeType } from 'components/Badge'; import PageMessage from 'components/PageMessage'; import Spinner from 'components/Spinner'; import { terminalCommandStates } fro...
import { actions } from "common/actions"; import reducer from "common/reducers/reducer"; import { UISearchState } from "common/types"; const initialState = { open: false, } as UISearchState; export default reducer<UISearchState>(initialState, on => { on(actions.searchVisibilityChanged, (state, action) => { c...
export interface RowModel { id: number; classes?: string | string[]; contentHtml?: string; enableDragging?: boolean; height: number; /** Child rows in expandable tree */ children?: RowModel[]; /** Content of row header, html string */ headerHtml?: string; /** Class of icon in row...
import {EmailRendererBaseInstanceContext, EmailRendererPlugin} from '../base/EmailRendererBasePlugin'; import {ExploreableInternalsTemplatingEngine, ProfileDataTemplater} from '../../common/TemplatingInterface'; export interface EmailRendererTemplateInstanceContext extends EmailRendererBaseInstanceContext { // Raw...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { TaikhoanComponent } from './taikhoan.component'; import { DanhsachtaikhoanComponent } from './taikhoan/danhsachtaikhoan/danhsachtaikhoan.component'; import { DanhsachloaitaikhoanComponent } from './loaitaikhoan/da...
import { TopicEntity } from './../entities/topic.entity'; import { JwtStrategy } from './../auth/jwt.strategy'; import { PostEntity } from './../entities/post.entity'; import { UserEntity } from './../entities/user.entity'; import { BlogApiService } from './blog-api.service'; import { Module } from '@nestjs/common'; im...
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core'; import { TiptapEventService } from '../../services/tiptap-event.service'; import { BaseControl, ButtonBaseControl } from './base-control'; @Component({ selector: 'tip-control-number-list', styleUrls: ['../../../../_controls.scss'], t...
import {Component, EventEmitter, HostListener, Input, OnInit, Output, OnDestroy} from '@angular/core'; import {animate, state, style, transition, trigger} from "@angular/animations"; import {SidebarService} from "../sidebar.service"; import { Subscription } from 'rxjs'; @Component({ selector: 'app-slid-in-out', te...
import { render } from '@testing-library/react' import React, { AnchorHTMLAttributes } from 'react' import { Text } from './Text' it('should render correctly', () => { expect(render(<Text>Test 1</Text>).container).toMatchSnapshot() }) it('should accept text style decoration props', () => { expect(render(<Text fo...
import cloneDeep from 'lodash.clonedeep'; import { default as d, Debugger } from 'debug'; import cookie from '@segment/cookie'; import topDomain from '@segment/top-domain'; const MAX_AGE_ONE_YEAR = 31536000000; const DEFAULTS: CookieOptions = { maxage: MAX_AGE_ONE_YEAR, path: '/', sameSite: 'Lax' }; export int...
import { useHistory } from "react-router-dom"; import { FormEvent } from "react"; import illustrationImg from "../assets/images/illustration.svg"; import logoImg from "../assets/images/logo.svg"; import googleIconImg from "../assets/images/google-icon.svg"; import { Button } from "../components/Button"; import "../s...
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; @Entity() export class School { @PrimaryGeneratedColumn() id: number; @Column({ nullable: false }) title: string; }
import React from 'react'; import { Icon, IconProps } from '@chakra-ui/icon'; export const HelpBuoyOutlineIcon = (props: IconProps) => ( <Icon viewBox="0 0 512 512" fill="currentcolor" stroke="currentcolor" {...props} > <circle cx="256" cy="256" r="208" fill="none" ...
import { useMemo, useState, useCallback, createElement } from 'react' import { Arc } from 'd3-shape' import { positionFromAngle, useTheme } from '@simspace/nivo-core' import { useTooltip } from '@simspace/nivo-tooltip' import { RadarCommonProps, RadarDataProps, RadarSliceTooltipDatum } from './types' interface RadarSl...
import { TestBed } from '@angular/core/testing'; import { RemindersService } from './reminders.service'; describe('RemindersService', () => { beforeEach(() => TestBed.configureTestingModule({})); it('should be created', () => { const service: RemindersService = TestBed.get(RemindersService); expect(servi...
import { Router } from "express"; import * as v1auth from "../../controllers/v1/authController"; import * as v2auth from "../../controllers/v1/authController"; import { createDepartment, getAllDepartments, getOneDepartment, updateDepartment, } from "../../controllers/v2/departmentController"; const router = Ro...
import { CoolerArticleResource, PaginatedArticleResource, InvalidIfStaleArticleResource, GetNoEntities, } from '__tests__/new'; import React, { useEffect } from 'react'; // relative imports to avoid circular dependency in tsconfig references import { makeRenderRestHook, makeCacheProvider } from '../../../../.....
import { Observable } from "../../Misc/observable"; import { Nullable } from "../../types"; import { Scene } from "../../scene"; import { Matrix } from "../../Maths/math.vector"; import { InternalTexture } from "../../Materials/Textures/internalTexture"; import { IAnimatable } from '../../Animations/animatable.interfac...
/* * Copyright (c) 2019, AngBoot Technology Corp, All Rights Reserved. * * The software and information contained herein are copyrighted and * proprietary to AngBoot Technology Corp. This software is furnished * pursuant to a written license agreement and may be used, copied, * transmitted, and stored only in acc...
import { cleanEnv, port, str } from 'envalid'; function validateEnv() { cleanEnv(process.env, { NODE_ENV: str(), MYSQL_USER: str(), MYSQL_PASSWORD: str(), MYSQL_PATH: str(), MYSQL_DATABASE: str(), JWT_SECRET: str(), PORT: port(), }); } export default validateEnv;
import { Camera } from '@babylonjs/core/Cameras/camera.js'; import { Scene } from '@babylonjs/core/scene.js'; import { Nullable } from '@babylonjs/core/types.js'; import { useEffect, useContext, useRef } from 'react'; import { SceneContext } from './scene'; /** * Handles creating a camera and attaching/disposing. *...
import * as colors from '@uidu/theme/colors'; import { borderRadius, gridSize as akGridSize } from '@uidu/theme/constants'; export const themeNamespace = '@uidu-shared-theme/item'; // Used for Group titles and Item descriptions export const compactSmallFontSize = 10; export const compactLineHeight = 1.2; export const...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { EuiSteps, EuiStepStatus } from '@elastic/eui'; import { i18n } from ...
import { useState } from "react"; import Router from "next/router"; import { Alert, AlertIcon, Box, CloseButton, FormControl, FormLabel, Input, RadioGroup, Radio, Checkbox, Stack, Link, Button, Heading, Center, Text, Spinner, useColorModeValue, } from "@chakra-ui/react"; import Wall...
import { ObjectId } from "mongodb"; interface Note { _id: ObjectId; text: string; createdAt: Date; updatedAt: Date; } export default Note;
import { NextApiResponse } from 'next'; import { updateSessionAttribute } from '../../utils/sessions'; import { ErrorInfo, NextApiRequestWithSession, PointToPointPeriodProduct } from '../../interfaces'; import { redirectTo, redirectToError } from '../../utils/apiUtils'; import { POINT_TO_POINT_PRODUCT_ATTRIBUTE } from ...
import { Icon, Intent, ProgressBar } from '@blueprintjs/core'; import { IconNames } from '@blueprintjs/icons'; import React, { useContext } from 'react'; import { AchievementContext, handleGlow } from 'src/features/achievement/AchievementConstants'; import { AchievementStatus } from '../../features/achievement/Achieve...
import { FilterContent, FilterContentProps } from "@saleor/components/Filter"; import useFilter from "@saleor/components/Filter/useFilter"; import { createDateField, createKeyValueField, createOptionsField, createPriceField } from "@saleor/utils/filters/fields"; import { storiesOf } from "@storybook/react"; imp...
/* * ************************************************************ * Copyright 2020 eBay Inc. * Author/Developer: Arturo Montoya * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. * ******************************...
/** * 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 {FlexRow, styled, Layout} from '../ui'; import {connect} from 'react-redux'; impor...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'appp'; }
import Vue from 'vue' import VueRouter, { RouteConfig } from 'vue-router' import Survey from '../views/SurveyView.vue' Vue.use(VueRouter) const routes: Array<RouteConfig> = [ { path: '/', name: 'Survey', component: Survey }, { path: '/', name: 'Admin', component: () => import('../views/a...
import { SuccessCondition } from './completion-listener'; export declare const defaultInputTarget = 0; /** * Whether process.stdin should be forwarded to child processes. */ export declare const handleInput = false; /** * How many processes to run at once. */ export declare const maxProcesses = 0; /** * Indices an...