text
stringlengths
10
953k
import { useState } from "react"; import { ExpenseStyles } from "./ExpensesStyles"; import ExpenseFilter from "./ExpenseFilter"; import ExpenseList from "./ExpenseList"; import ExpenseChart from "./ExpenseChart"; //props is an object that contains all the information we have on our app // where ever you are going to u...
import { Box } from "../../box"; import { ComponentProps, ReactNode, cloneElement, forwardRef, useMemo } from "react"; import { InternalProps, OmitInternalProps, SlotProps, StyledComponentProps, cssModule, isNil, isString, mergeProps, normalizeSize, slot, useSlots } from "../../shared"; import { ResponsiveProp, useResp...
import { IRectangle } from '../IRectangle'; /** * Helper to get bounding client rect. Passing in window will get the window size. * * @public */ export declare function getRect(element: HTMLElement | Window | null): IRectangle | undefined;
import React from 'react'; import { bem } from '../utils/helper'; import { BaseComponentProps } from '../types/props'; const b = bem('divider'); interface Props extends BaseComponentProps {} export const Divider: React.FC<Props> = ({ className }) => <hr className={`${b()} ${className}`} />;
import { Fragment } from 'react'; import { Dialog, Transition } from '@headlessui/react'; import { XCircleIcon } from '@heroicons/react/outline'; type Props = { isOpen: boolean; handleClose: () => void; }; export const HelpModal = ({ isOpen, handleClose }: Props) => { return ( <Transition.Root show={isOpen}...
/** * 描述某项课程完整信息 */ interface CourseType{ id:number fullName:string, shortName:string, times:{ week:number[], time:number, period:string | number[] place:string }[], exams:{ name:string, week:number, period:string | number[] place...
import parseTime from './helpers/parseTime'; /** * Format time according to format string * @param value * @param valueFormat * @param format * @return - Formatted time result */ export default (value: string, valueFormat: string, format: string): string => { const time = parseTime(value, valueFormat); cons...
import sha from 'sha-1' import os from 'os' import { join } from 'path' import { readJsonFile, writeJsonFile } from './fs-read-write-json' const getTempPath = (path: string) => join(os.tmpdir(), path) type CacheEntry<V> = | { status: 'done' expiresAt: number value: V } | { status: 'pen...
import { Contracts, Keys } from "casperlabs-sdk"; import dotenv from "dotenv"; import express from "express"; import jwt from "express-jwt"; import fs from "fs"; import https from "https"; import jwksRsa from "jwks-rsa"; import path from "path"; import { decodeBase64 } from "tweetnacl-util"; // TODO: Everything in conf...
import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { NgModule, ApplicationRef } from '@angular/core'; import { removeNgStyles, createNewHosts, } from '@angularclass/hmr'; import { RouterModule, PreloadAllModul...
import { pathExistsSync, readFileSync } from 'fs-extra'; import { join } from 'path'; import get from 'lodash/get'; import { Memoize } from 'typescript-memoize'; type ContentsResult = { result: true; data: string } | { result: false; actual: any; expected: any; message: string }; type JSONResult = { result: true; data...
/** * Class for managing workspace folders */ /** */ import * as vscode from 'vscode'; import * as nls from 'vscode-nls'; import * as path from 'path'; import * as util from '@cmt/util'; import CMakeTools from '@cmt/cmake-tools'; import { KitsController } from '@cmt/kitsController'; import rollbar from '@cmt/rollbar...
import * as React from 'react'; import { Button } from '@patternfly/react-core'; import { shallow, ShallowWrapper } from 'enzyme'; import { FormFooter } from '@console/shared'; type FormFooterProps = React.ComponentProps<typeof FormFooter>; jest.mock('react-i18next', () => { const reactI18next = require.requireActu...
<TS language="zh_TW" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>點右鍵來修改位址或標記</translation> </message> <message> <source>Create a new address</source> <translation>產生新位址</translation> ...
import { NamedNode } from '@rdfjs/types'; import { schema } from './namespace'; const values = { FDAcategoryA: schema.FDAcategoryA, FDAcategoryB: schema.FDAcategoryB, FDAcategoryC: schema.FDAcategoryC, FDAcategoryD: schema.FDAcategoryD, FDAcategoryX: schema.FDAcategoryX, FDAnotEvaluated: schema.FDAnotEvalu...
/* * Copyright (c) 2008-2020, Hazelcast, Inc. 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 ...
import {AbstractObject} from "./_abstract_object"; export class DialogModule extends AbstractObject { public getType(): string { return "DIAL"; } public getAllowedNaming() { return { maxLength: 30, allowNamespace: true, }; } }
describe.concurrent("Deferred", () => { describe.concurrent("complete", () => { it("complete a deferred using succeed", async () => { const program = Effect.Do() .bind("deferred", () => Deferred.make<never, number>()) .bind("success", ({ deferred }) => deferred.succeed(32)) .bind("re...
import { getGuessStatuses } from "../../lib/statuses"; import { Cell } from "./Cell"; type Props = { guess: string; }; export const CompletedRow = ({ guess }: Props) => { const statuses = getGuessStatuses(guess); return ( <div className="flex justify-center mb-1"> {guess.split("").map((letter, i) => ...
import React, { ReactElement, ReactNode } from 'react'; import { Box, Container, Drawer, Toolbar } from '@material-ui/core'; import styled from 'styled-components'; import { Flex } from '@chia/core'; import DashboardTitle from '../dashboard/DashboardTitle'; import AppTimeBombAlert from '../app/AppTimeBombAlert'; const...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { AppComponent } from './app.component'; import { TodoListComponent } from './todo-list/todo-list.component'; import {...
import { Notebook, NotebookPanel } from '@jupyterlab/notebook'; import { Cell } from '@jupyterlab/cells'; import { CodeMirrorEditor } from '@jupyterlab/codemirror'; import { IOverridesRegistry } from '../../magics/overrides'; import { IForeignCodeExtractorsRegistry } from '../../extractors/types'; import { VirtualEdito...
import { Component, Input, OnInit } from "@angular/core"; import { BankAccountData } from "../../bank-accounts/bank-account.model"; import {SettingsService} from "../../shared/settings.service"; import {total} from "../../util/total"; import { AllocationData } from "../allocation-data.model"; import { TransactionData }...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="ru"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BottleCaps</source> <translation>О BottleCaps</tra...
/** * @ignore */ import { Options } from '../types'; /** * Take as input some options, and return a sanitized version of it. * * @param opts - The options to clean. * @ignore */ export declare function cleanOptions(opts?: Partial<Options>): Options;
import 'reflect-metadata'; import { EntityManager, JavaScriptMetadataProvider, MikroORM, Options, Utils } from '@mikro-orm/core'; import { AbstractSqlDriver, SchemaGenerator, SqlEntityManager, SqlEntityRepository } from '@mikro-orm/knex'; import { SqliteDriver } from '@mikro-orm/sqlite'; import { MongoDriver } from '@m...
// type import {sep} from 'path'; type AnymatchFn = (testString: string) => boolean; type AnymatchPattern = string|RegExp|AnymatchFn; type AnymatchMatcher = AnymatchPattern|AnymatchPattern[] type AnymatchTester = { (testString: string|any[], returnIndex: true): number; (testString: string|any[]): boolean; } decl...
import * as React from 'react'; import cx from 'classnames'; import * as css from './Button.scss'; import { ButtonCoreProps, Icon, uuiElement, uuiMarkers, CX } from '@epam/uui'; import { IconContainer } from '../layout'; import { ButtonBase } from './ButtonBase'; export interface ButtonProps extends ButtonCoreProps { ...
(() => { // What follows immediately below is a copy of morphdom 2.6.1, but adjusted // to remove it's own exports, and just bind straight to the udomdiff // variable, and change the arguments to satisfy TS better. // I've inlined it so there's only 1 request for livereloadish client side stuff. // ...
import { ActionTypes } from "../actions/action_types" import { ILoginActions } from "../actions/actions_login" interface LoginReducerState { isLogin: boolean, user: string, isAuth: boolean, } const initialState: LoginReducerState = { isLogin: false, user: localStorage.getItem("user") ?? "", ...
/* * 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...
/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ---------------------------------------------------------------...
/* * Copyright 2014 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
function myFunction() { console.log('hello world!'); } function onOpen() { var ui = SpreadsheetApp.getUi(); ui.createMenu('Twitter').addItem('Refresh Twitter Formulas', 'refresh').addToUi(); } export const refresh = () => SpreadsheetApp.getUi().alert('Refreshed!'); export function fetchTweetResponses(tweetId: ...
/* * Copyright 2017 American Express * * 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 { 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('desafio...
import { EntityRepository, Repository } from 'typeorm'; import { isNil } from 'lodash'; import GameApplication from '../models/GameApplication'; import GameSchedule from '../models/GameSchedule'; import User from '../models/User'; @EntityRepository(GameApplication) export default class GameApplicationRepository exten...
import styled from "styled-components"; export const Wrapper = styled.div` display: flex; justify-content: center; background-color: ${({ theme }) => theme.colors.headerBg}; `; export const Container = styled.div` display: flex; align-items: center; justify-content: space-between; text-align: center; ...
export { formatCourtHeadsUpSmsNotification, formatCourtReadyForCourtSmsNotification, formatProsecutorReceivedByCourtSmsNotification, formatProsecutorCourtDateEmailNotification, formatPrisonCourtDateEmailNotification, formatDefenderCourtDateEmailNotification, formatCourtDateNotificationCondition, formatP...
import CurrentAccountSidebar from './CurrentAccountSidebar' export default CurrentAccountSidebar
// List of irregular whitespace characters adopted from https://eslint.org/docs/rules/no-irregular-whitespace#rule-details const irregularWhitespaceCharacters = [ '\u000B', '\u000C', '\u00A0', '\u0085', '\u1680', '\u180E', '\ufeff', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004', '\u2005', ...
import React from "react"; import styles from "./Loader.module.css"; function Loader() { return ( <div className={styles["lds-ellipsis"]}> <div></div> <div></div> <div></div> <div></div> </div> ); } export default Loader;
import * as PIXI from 'pixi.js' import { Segment } from "./segment"; export default class SegmentShape extends PIXI.Graphics { segments: Segment[]; constructor(_segments: Segment[]) { super(); this.segments = [] if (_segments) { this.segments = _segments; } ...
import * as React from 'react'; import { FormikValues } from 'formik'; import ProgressiveList from '../../progressive-list/ProgressiveList'; import ProgressiveListItem from '../../progressive-list/ProgressiveListItem'; import RouteSection from '../route/RouteSection'; import LabelSection from './LabelSection'; import S...
export default class Urls { private static BASE: string = `${window.location.origin}/api/`; public static generate: string = `${Urls.BASE}generate`; public static report: string = `${Urls.BASE}report`; public static repos: string = `${Urls.BASE}repos/all`; }
// -- copyright // OpenProject is an open source project management software. // Copyright (C) 2012-2020 the OpenProject GmbH // // 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 i...
import { Arg, Ctx, Mutation, Resolver } from "type-graphql"; import ContextType from "~/types/Context.type"; import { User } from "@prisma/client"; import executeOrFail from "~/util/executeOrFail"; import { CreateTaskLocationArgs } from "./args/CreateTaskLocationArgs"; import { TaskLocation } from "~/resolver-types/mod...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import {eventLog } from './eventlog/event-log'; const myRoutes: Routes = [ {path: 'eventlog', component: eventLog}, ]; @NgModule({ imports: [ RouterModule.forRoot(myRoutes) ], exports: [ RouterModule ] }) ...
import styles from './__name__.module.scss'; import * as React from 'react'; import {connect, DispatchProp} from 'react-redux'; interface IState {} interface IProps {} interface IStateToProps {} const mapStateToProps = (state: IStore, ownProps: IProps): IStateToProps => ({}); class __name__ extends React.Component<...
import { BaseFax } from './BaseFax' export class FaxReceive extends BaseFax { get method(): string { return 'calling.receive_fax' } get payload(): any { return { node_id: this.call.nodeId, call_id: this.call.id, control_id: this.controlId } } }
import {timeout} from "./poll-action.function"; describe("poll-action", () => { it("should timeout after maxDuration if action rejects", async () => { // GIVEN const updateInterval = 200; const maxDuration = 1000; const action = jest.fn(() => { return Promise.reject(fals...
import { Tn3270 } from './tn3270'; const tn3270 = new Tn3270('localhost', 3270, 'IBM-3278-4-E'); const connection = tn3270.stream$.subscribe({ next: (data: Buffer) => console.log(data), error: (error: Error) => console.log(error), complete: () => console.log('All done!') }); process.on('SIGINT', () => { conso...
import React from 'react'; import { Grid } from '@material-ui/core'; import FarmCardStatus from '../card/FarmCardStatus'; import FarmCardTotalShamrockFarmed from '../card/FarmCardTotalShamrockFarmed'; import FarmCardBlockRewards from '../card/FarmCardBlockRewards'; import FarmCardUserFees from '../card/FarmCardUserFees...
/* tslint:disable */ /* eslint-disable */ /** * Selling Partner API for Catalog Items * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. * * The version of the OpenAPI document: 2020-12-01 * * * NOTE: This class is auto generated by OpenAPI...
import { BreakpointObserver, Breakpoints } from "@angular/cdk/layout"; import { Injectable } from "@angular/core"; import { Observable, Subject } from "rxjs"; const brokenBrkpts = [ Breakpoints.XSmall, Breakpoints.Small, Breakpoints.Medium, Breakpoints.Handset, Breakpoints.HandsetLandscape, Breakpoints.HandsetPo...
import { ResourceBase } from '../resource'; import { Value, List } from '../dataTypes'; export declare class TargetGroupInfo { Name?: Value<string>; constructor(properties: TargetGroupInfo); } export declare class OnPremisesTagSetListObject { OnPremisesTagGroup?: List<TagFilter>; constructor(properties:...
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit} from '@angular/core'; import {environment} from '@env/environment'; import {XxxDataService} from '@app/xxx-common/xxx-data/xxx-data.service'; import {XxxCameraInterface} from './xxx-camera.interface'; import {XxxCameraAssignmentInterface} from './x...
import { Field, ID, ObjectType } from '@nestjs/graphql' import { IIconBullet } from '../generated/contentfulTypes' import { Image, mapImage } from './image.model' @ObjectType() export class IconBullet { constructor(initializer: IconBullet) { Object.assign(this, initializer) } @Field(() => ID) id: string...
import { Component, OnInit,EventEmitter,Output } from '@angular/core'; import { Router } from '@angular/router'; import { HttpRequestService } from '../../../services/http-request.service' import pdfjs from 'jspdf'; import {MedicalService} from '../../../report-print/medical.service' @Component({ selector: 'app-menu...
import React, { useState } from 'react'; import { PermissionsView } from './PermissionsView'; import { RBACWrapper } from '../../RBACWrapper'; export const ComponentWithRoles = () => { const [requiredRoles, setRequiredRoles] = useState(['admin']); return ( <div> <h2>RBAC Component</h2> <Permissions...
import { SetViewerFn } from 'common/components/ViewerContext'; import { FormErrorObject } from 'common/hooks/useFormError/useFormError'; import { LoginFormikFn } from 'pages/Login/LoginForm/LoginFormComponent'; import { LoginMutationFn, LoginMutationOptions } from 'pages/Login/LoginForm/LoginFormMutation'; type Cr...
export * from "./authProvider"; export * from "./mojitoApiProvider"; export * from "./MockCMSService";
/** * Email 判断正则 */ const regEmail = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/ /** * 判断 Email 地址是否合法 * @param str Email 地址 * @returns 返回 boolean * @example * ``` * isEmail('abc.def@qq.com') => true * isEmail('abc@def') => false * ``` * @author Amery * @version v0.2.0 * @since v0.2.0 */ function isE...
export default new Error( 'The installed version of React does not support Hooks. ' + 'Upgrade to React v16.8.0 or later.' );
import User from "../models/User"; import { SECRET, ERROR_CODES } from "../constants"; import jwt from "jsonwebtoken"; import CustomError from "../error/custom-error"; const getUser = async (id: number) => { const user: any = await User.findById(id); user.password = undefined; return user; }; const editUser = a...
import { Frontmatter, AuthorNode } from '$lib/types'; export { default } from './NotesPost'; //////////////////////////////////////////////////////////////////////////////// // TYPES //////////////////////////////////////////////////////////////////////////////// export interface NotesPostProps { data: { site: ...
/* * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * 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 * as React from 'react'; import { render, cleanup } from '@testing-library/react'; import OffTheShelfLogoBorder from './OffTheShelfLogoBorder'; afterEach(cleanup); describe('OffTheShelfLogoBorder', () => { it('renders OffTheShelfLogoBorder component', () => { render(<OffTheShelfLogoBorder />); }); });
import { v4 as uuidv4 } from "uuid"; import WebSocket from "ws"; import WebSocketEventManager from "../networking/websocketEventManager"; import GameState from "./state/gameState"; import PregameModule from "./pregame"; import { wsEvents } from "wikirace-shared"; import MatchModule from "./match"; class GameModule { ...
import MerkleTree from './merkle-tree' import { BigNumber, utils } from 'ethers' export class ContentHashTree { private readonly tree: MerkleTree constructor(contentHashes: string[]) { this.tree = new MerkleTree( contentHashes.map((contentHash, index) => { return ContentHashTree.toNode(index, con...
/** * @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 { Path, experimental, normalize, schema } from '@angular-devkit/core'; import { NodeJsSyncHost } from '@angul...
import React from "react" import { Badge } from "../badge" import type { BadgeProps } from "../badge" const MicrosoftVisio = (props: BadgeProps) => <Badge name="Microsoft Visio" {...props} backgroundColor="#3955A3" /> export default MicrosoftVisio
import './App.scss'; import * as React from 'react'; import {Dispatch} from 'redux'; import {connect} from 'react-redux'; import {IState} from '../state/index'; import {RouteComponentProps} from "react-router"; interface IRouteParams { // TYPE ROUTE PARAMS THERE } interface IAppProps extends RouteComponentProps<IRo...
import { PostContent, PostSearchField, PostUserInfo, Services, } from '@caravanapp/types'; import axios from 'axios'; import { API_ORIGIN } from './api'; const postRoute = `${API_ORIGIN}/api/posts`; export async function uploadPost(postContent: PostContent) { const res = await axios.post<Services.UploadPost...
import * as React from 'react'; import { number, select } from '@storybook/addon-knobs'; import Layout, { Page } from '@synerise/ds-layout'; import PageHeader from '@synerise/ds-page-header'; import Grid from '@synerise/ds-grid'; import Card from '@synerise/ds-card'; import LayoutAppMenu from './utils/AppMenu'; import...
import { User } from "../../domain/entities/User"; import { UsersRepository } from "../../domain/repositories/UserRepository"; import { userRef, storage } from "./api/firebaseAPI" class UserDTO { id: number = 0; firstName: string = ""; middleName: string = ""; lastName: string = ""; dateOfBirth: s...
export function isMouseMoved(downEvent: MouseEvent, moveEvent: MouseEvent, tolerance: number) { const dx = downEvent.screenX - moveEvent.screenX; const dy = downEvent.screenY - moveEvent.screenY; return dx * dx + dy * dy > tolerance * tolerance; }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import { logger } from '../../logger/logger'; import { ITestItem, TestLevel } from '../../protocols'; import { defaultResult, ITestResult, ITestResultDetails } from '../models'; export abstract class BaseRunnerResultAnalyz...
import { isBrowser } from "@chakra-ui/utils" import * as React from "react" import { render } from "react-dom" import { ToastMethods, ToastManager } from "./toast-manager" import type { CloseAllToastsOptions, ToastId, ToastMessage, ToastOptions, } from "./toast.types" const portalId = "chakra-toast-portal" cl...
import {UnifiedRoleAssignmentSchedule} from '../../../../../models/'; import {createUnifiedRoleAssignmentScheduleFromDiscriminatorValue} from '../../../../../models/createUnifiedRoleAssignmentScheduleFromDiscriminatorValue'; import {ODataError} from '../../../../../models/oDataErrors/'; import {createODataErrorFromDisc...
import express from 'express' let app = require('./server').default if (module.hot) { module.hot.accept('./server', function () { console.info('🔁 HMR Reloading `./server`...') try { app = require('./server').default } catch (error) { console.error(error) } }) console.info('✅ Serve...
import {Entity, PrimaryColumn} from "../../../../src"; @Entity() export class Session { @PrimaryColumn({ comment: "That's the way the cookie crumbles" }) cookie: string = ""; }
import Auth from './Auth.vue' export default Auth
import { Test, TestingModule } from '@nestjs/testing'; import { ActivitiesResolver } from './activities.resolver'; import { ActivitiesService } from './activities.service'; describe('ActivitiesResolver', () => { let resolver: ActivitiesResolver; beforeEach(async () => { const module: TestingModule = await Tes...
export { default } from "./HomeBrands";
import { BeforeInsert, Column, CreateDateColumn, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm'; import { Exclude } from 'class-transformer'; import { Playlist } from '../../playlists/entities/playlist.entity'; import { Like } from '../../musics/entities/like.entity'; @Entity() export class User { @Prima...
import 'mocha'; import { expect } from '@integration/testing-tools'; import { Ensure, equals } from '@serenity-js/assertions'; import { actorCalled } from '@serenity-js/core'; import { by, DoubleClick, Navigate, Target, Text } from '../../../src'; describe('DoubleClick', () => { const interactiveElement = Targe...
import { createParamDecorator, ExecutionContext } from '@nestjs/common'; import { User } from 'src/entities/auth.entity'; import { getRepository } from 'typeorm'; export const GetCurrentUser = createParamDecorator( async (data: string | undefined, context: ExecutionContext) => { const request = context.switchToH...
import React, { useCallback, useState } from 'react' import Dialog from '@reach/dialog' import { Form } from '../../../../../branded/src/components/Form' import { asError, ErrorLike } from '../../../../../shared/src/util/errors' import { Scalars, DeleteExternalAccountResult, DeleteExternalAccountVariables } from '../....
import {ConnectionOptionsReader} from "../connection/ConnectionOptionsReader"; import {CommandUtils} from "./CommandUtils"; import {Connection} from "../connection/Connection"; import {createConnection} from "../index"; import {MysqlDriver} from "../driver/mysql/MysqlDriver"; const chalk = require("chalk"); /** * Gen...
import { Locale } from "./repositories/locales.ts"; export const htmlBody = ({ locale: language, message: hello }: Locale) => `<!DOCTYPE html> <html lang="en"> <head> <style> html,body { height: 100%; } body { max-width: 650px; margin: 40px auto; ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { PlotComponent } from './plot.component'; import { PlotlyService } from '../plotly.service'; import { SimpleChange } from '@angular/core'; import * as PlotlyJS from 'plotly.js/dist/plotly'; PlotlyService.setPlotly(PlotlyJS); describe(...
import ImageCropper from './ImageCropper'; export * from './types'; export default ImageCropper;
import { Module } from '@nestjs/common'; import { TodoModule } from './controllers/todo/todo.module'; import { MongooseModule } from '@nestjs/mongoose'; import { UsersModule } from './controllers/users/users.module'; import dbConfig from './config/database'; import { AuthModule } from './controllers/auth/auth.module'; ...
import axios from "axios"; console.log(process.env.NODE_ENV) const config = { baseURL: process.env.NODE_ENV === "development" ? "http://localhost:3080" : "http://101.132.66.101/", timeout: 60 * 1000, // Timeout, withCredentials: false, // Check cross-site Access-Control header: { "Access-Con...
import React, { useCallback } from 'react'; import { gql, useQuery } from '@apollo/client'; import { _cs } from '@togglecorp/fujs'; import { IoIosSearch, IoMdClose } from 'react-icons/io'; import { TextInput, Pager, Button, } from '@togglecorp/toggle-ui'; import Message from '#components/Message'; import C...
import {UserSettings, DEFAULT_SETTINGS, Character} from '../types'; import {domAction} from './dom'; const cachedWords = new Map<string, string>(); let observer: MutationObserver = null; let Character: Character = null; let chKeys: Character[] = null; let newWords: string[] = []; let oldWords: string[] = []; let rever...
import { PixelRatio } from 'react-native'; export const colors = { darkest: '#000000', }; export const spacings = { small: PixelRatio.getPixelSizeForLayoutSize(5), }; export const fontSizes = { normal: PixelRatio.getFontScale() * 14, large: PixelRatio.getFontScale() * 20, huge: PixelRatio.getFontScale() * ...
import { Effect, Reducer, getDvaApp } from 'umi'; import { SIPRegistrationsCount } from '../services/kazoo'; export interface RsRegistrationsCountModelType { namespace: 'kz_registrations_count'; state: {}; effects: { refreshAccountState: Effect; }; reducers: { update: Reducer<{}>; flush: Reducer<...
import type { Tree } from '@nrwl/devkit'; import { getProjects, joinPathFragments, updateJson } from '@nrwl/devkit'; import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils'; export default async function (tree: Tree) { const LIBRARY_EXECUTORS = [ '@nrwl/angular:ng-packagr-li...