text
stringlengths
10
953k
import React, { Fragment, useEffect, useState } from "react"; import { Box, Card, CircularProgress, Dialog, DialogActions, DialogContent, DialogContentText, Divider, Fab, Typography, } from "@material-ui/core"; import { Link as RouterLink } from "react-router-dom"; import { newToken, useCancelToken ...
import { Test, TestingModule } from '@nestjs/testing'; import { ConfigsService } from '../configs.service'; describe('ConfigsService', () => { let service: ConfigsService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ providers: [ConfigsService], }).compile(...
import {Observable} from 'data/observable'; export class HelloWorldModel extends Observable {}
export * from './auth0' export * from './facebook' export * from './github' export * from './google' export * from './laravel-jwt' export * from './laravel-passport' export * from './laravel-sanctum' export * from './moka' export const ProviderAliases = { 'laravel/jwt': 'laravelJWT', 'laravel/passport': 'laravelPa...
import { Project } from "../../project.ts"; import { XmlElement } from "../../../xml.ts"; import { BaseOAuthProvider, BaseOAuthProviderProps, } from "./base_oauth_provider.ts"; export interface AmazonDockerOAuthProviderProps extends BaseOAuthProviderProps { /** * Registry Id / AWS Account Id */ readonly ...
class LoginRequestDTO { email: string; password: string; constructor(requestBody: object) { this.email = requestBody["email"]; this.password = requestBody["password"]; } } export default LoginRequestDTO;
import { Color } from '../core/Color'; import { Facet } from '../core/Facet'; import { FacetVisitor } from '../core/FacetVisitor'; /** * Sets the 'uAmbientLight' uniform to the color RGB value. */ export declare class AmbientLight implements Facet { /** * */ color: Color; /** * */ ...
import React, {useEffect} from 'react'; import { UserIdentification } from './src/pages/UserIdentification'; import * as Notifications from 'expo-notifications'; import AsyncStorage from '@react-native-async-storage/async-storage'; import { useFonts, Jost_400Regular, Jost_600SemiBold, } from '@expo-google-fonts/j...
import { redirectToFrontendPath } from "@utils/router"; function Dashboard() { return null; } Dashboard.getInitialProps = async ({ res }: any) => { await redirectToFrontendPath("/app/project/dashboard", res); return {}; }; export default Dashboard;
import { useEffect } from "react"; import { AppProps } from "next/app"; import "../assets/css/style.css"; import "fontsource-roboto"; function App({ Component, pageProps }: AppProps) { useEffect(() => { document.documentElement.lang = "en-GB"; }, []); return <Component {...pageProps} />; } export default ...
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { Subject } from 'rxjs'; import { Auth0Service } from './auth0.service'; @Component({ selector: 'app-auth0', templateUrl: './auth0.component.html', styleUrls: ['./auth0.component.scss'] }) export class Auth0Component { ...
/* * Copyright © 2021 Michał Przybyś <michal@przybys.eu> * * 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, m...
import * as React from 'react'; import { GridInitialStateCommunity } from '../../../models/gridStateCommunity'; import { GridApiCommunity } from '../../../models/api/gridApiCommunity'; import { GridStatePersistenceApi } from './GridStatePersistenceApi'; import { useGridApiMethod } from '../../utils'; export const useG...
// Copyright (c) 2021 Microsoft // // 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 ...
/* tslint:disable */ /* eslint-disable */ /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## ...
import { Commands } from '../../commands'; import * as vscode from 'vscode'; import { BaseNode } from './baseNode'; export class UrlNode extends BaseNode { public readonly collapsibleState = vscode.TreeItemCollapsibleState.None; public readonly contextValue: string = 'UrlNode'; public command: vscode.Command; pub...
import { EntityRepository, Repository } from "typeorm"; import { CategoryEntity } from "./entities/category.entity"; @EntityRepository(CategoryEntity) export class CategoriesRepository extends Repository<CategoryEntity> {}
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
import { ProgressAction } from '../progress-action'; import { Simulation } from '../../../simulation/simulation'; import { CraftingJob } from '../../crafting-job.enum'; export class CarefulSynthesisIII extends ProgressAction { getLevelRequirement(): { job: CraftingJob; level: number } { return { job: CraftingJo...
<TS language="eu_ES" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Eskuin-klika helbidea edo etiketa editatzeko</translation> </message> <message> <source>Create a new address</source> <t...
import React from 'react'; import uniqWith from 'lodash.uniqwith'; import { Repository } from 'github-trending-scrape'; import { // createQueryURL, languages, } from '../../configs'; import { getShuffleModeFromStorage } from '../ShuffleSettingsSection/Component'; import { getRepo, markRepoAsOpened } from '../../act...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { MyCurrentPromotingEventsComponent } from './my-current-promoting-events.component'; describe('MyCurrentPromotingEventsComponent', () => { let component: MyCurrentPromotingEventsComponent; let fixture: ComponentFixture<MyCurrentPromotingEv...
import { numberFormatter, percentageFormatter } from "../helpers"; import { Category } from "./../graphql/schema/categories/categories"; type CategoriesProps = { categories: Array<Category> | undefined; }; export default function CategoriesTable({ categories }: CategoriesProps) { return ( <div className="m-au...
import * as t from 'io-ts' export class OptionalType<RT extends t.Any, A = any, O = A, I = t.mixed> extends t.Type<A, O, I> { readonly _tag: 'OptionalType' = 'OptionalType' constructor( name: string, is: OptionalType<RT, A, O, I>['is'], validate: OptionalType<RT, A, O, I>['validate'], serialize: Op...
import { existsSync, mkdirSync, writeFile } from 'fs'; import { join } from 'path'; export class Schema { protected _name: string; protected _schema: string; constructor(name: string, schema: string) { this._name = name; this._schema = schema; } get name(): string { return this._name; } pu...
import { decorate } from './decorate'; describe('decorate', () => { const decorator = jest.fn(); const payload = jest.fn(); class TestClass { @decorate(decorator) method(...args: unknown[]) { return payload(...args); } } let instance: TestClass; beforeEach(() => { jest.clearAllMocks();...
import { RsuvTxStringADB } from './RsuvTxStringADB'; import { testData } from './RsuvTu'; import _ from 'lodash'; describe('RsuvTxStringC', () => { // --- const falseIds = [1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27] const testData0 = _.clone(testData); testData0.forE...
import {IoNode, RegisterIoNode} from '../../iogui.js'; const IoIconsetDB: Record<string, Record<string, string>> = {}; /* * Extends `IoNode`. * * Global database for SVG assets to be used with `IoIcon`. Icons are registered using `namespace` and `id` attribute. * * ```javascript * import {IoIconsetSingleton} fr...
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { GalleryModule } from 'ng-gallery'; import { SharedModule } from '../../shared/shared.module'; import { AdvancedExampleComponent } from './advanced-example.component'; @NgModule({ declarations: [ AdvancedExampleComp...
import store from "~/store" import { setPersistentCache } from "~/utils/cache" // since we create image nodes in resolvers // we cache our image node id's on post build for production // and on create dev server for development // so we can touch our image nodes in both develop and build // so they don't get garbage c...
jest.mock('app/features/annotations/all', () => ({ EventManager: function() { return { on: () => {}, addFlotEvents: () => {}, }; }, })); jest.mock('app/core/core', () => ({ coreModule: { directive: () => {}, }, appEvents: { on: () => {}, }, })); import '../module'; import { Gra...
import { createHash, randomBytes } from 'crypto'; import { promisify } from 'util'; const randomBytesPromise = promisify(randomBytes); /** * Generate random token. */ export const generateRandomToken = async () => { const bytesSize = 256; const buffer = await randomBytesPromise(bytesSize); return createHash('...
import { GetKeyPairsInput } from "../shapes/GetKeyPairsInput"; import { GetKeyPairsOutput } from "../shapes/GetKeyPairsOutput"; import { ServiceException } from "../shapes/ServiceException"; import { InvalidInputException } from "../shapes/InvalidInputException"; import { NotFoundException } from "../shapes/NotFoundExc...
// Type definitions for Chrome packaged application development // Project: http://developer.chrome.com/apps/ // Definitions by: Adam Lay <https://github.com/AdamLay>, MIZUNE Pine <https://github.com/pine613>, MIZUSHIMA Junki <https://github.com/mzsm> // Definitions: https://github.com/borisyankov/DefinitelyTyped ///...
// import React from 'react'; import type { InjectionFunction } from '../services/injection.service'; import injection from '../services/injection.service'; import { renderToStaticMarkup } from 'react-dom/server'; import SocialDesktopView from '../components/views/social-desktop/SocialDesktop.view'; import { contactFor...
import Notification = require("Managers/Notification"); type CallerCalback = (sucess: boolean, fatal: boolean) => void; type Caller = (callback: CallerCalback) => void; type ExternalCallback = (success:boolean) => void; class CallRepeater { private _caller: Caller; private _callback: ExternalCallback; private _re...
import { Query } from './interfaces'; import { parseArgs, sleep } from './utils'; export const checkQuery = (key: string, query: Query, providers) => { const { chain, pallet, call, args } = query; if (chain === undefined) { console.log( `\n⛔ ERROR: 'chain' should be present for the following query id:`,...
import { Document } from "mongoose"; interface INews extends Document{ readonly _id?: string; readonly title: string; readonly snippet: string; readonly details: string; readonly images?: string[]; readonly videos?: string[]; readonly createdAt?: Date; readonly updatedAt?: Date; } expo...
// Copyright (c) 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* eslint-disable rulesdir/no_underscored_properties */ import type * as SDK from '../../core/sdk/sdk.js'; import {StylePropertyTreeElement} from '....
export class Antenna { public static readonly ATTRIBUTES = ["hasGround", "hasIdealGround", "userNotes", "frequency", "wires", "sources", "loads", "epsilonR", "conductivity"]; public constructor(init?: Partial<Antenna>) { // constructor with partial definition used for examples in LoadAndSave.vue ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Americs</source> <translation>O Americs-u</translation> </messag...
/// <reference types="node" /> /** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /// <reference types="node" /> import { Arguments } from 'yargs'; import { Repo...
/* FileName: LoadPlaceInfo.ashx.ts Written By: Nikita Nikolaevich Petko File Type: Module Description: Load Place info script All commits will be made on behalf of mfd-co to https://github.com/mfdlabs/robloxlabs.com *** Copyright 2006-2021 ROBLOX Licensed under the Apache License, Version 2.0 (the "Licen...
import { StaticImage } from 'gatsby-plugin-image' import React from 'react' import * as styles from './Logo.module.css' const LogoOrig = () => ( <div className={styles.logoWrapper}> <div className={styles.logo}> <StaticImage src="../../../../../assets/images/Logo.png" alt="ロゴ画像" /> </div> </div> ) L...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="en"> <context> <name>AboutPage</name> <message> <location filename="../qml/pages/AboutPage.qml" line="41"/> <source>Kitchen Timer</source> <translation>Kitchen Timer</translation> </message> <message...
// This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, firebaseConfig: { apiKey: "AIzaSyAcO3-HUVr...
import * as potato from '@po-to/potato-node'; import * as app from 'node/app'; export class Controller extends potato.Controller { __args_Item(data: any): {} { return {}; } Item(request: potato.Request, args: any, resolve: (data: any) => void, reject: (error: Error) => void) { resolve(new p...
/* MIT License Copyright (c) 2020 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...
import { resolve } from 'path'; import type { UserConfig, Plugin as VitePlugin } from 'vite'; import visualizer from 'rollup-plugin-visualizer'; import { modifyVars } from './build/config/glob/lessModifyVars'; import { setupBasicEnv } from './build/config/vite/env'; import { createProxy } from './build/config/vite/pr...
const mutateContactNumber = (object: any, subtractive = false) => { if (object == null) return null Object.keys(object).map(key => { if ( typeof object[key] != "object" && (key == "mobile_no" || key == "phone_no" || key == "user_mobile_no") ) subtractive ? (object[key] = object[key].substrin...
import { window, ViewColumn, WebviewPanel, WebviewPanelOptions, WebviewOptions, } from "vscode"; module ReusedWebviewPanel { const webviewPanelsPool: Map<string, WebviewPanel> = new Map(); // webviewPanel池 /** * 创建webviewPanel * @param viewType 唯一标识 * @param title 标题 * @param showOptions 显示位...
import { compare } from "../compare"; const testCases: Array<[any, string, any, boolean]> = [ [1, "<", 2, true], [1, "<", 0, false], [1, "<", 1, false], [1, "<=", 2, true], [1, "<=", 0, false], [1, "<=", 1, true], [1, ">", 2, false], [1, ">", 0, true], [1, ">", 1, false], [1, ">=", 2, false], [1,...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About paccoin</source> <translation>عن paccoin</translation> </message...
import { ContextModule, OwnerType } from "@artsy/cohesion" import { ArtistSeriesFullArtistSeriesList_artist } from "__generated__/ArtistSeriesFullArtistSeriesList_artist.graphql" import { ArtistSeriesFullArtistSeriesListQuery } from "__generated__/ArtistSeriesFullArtistSeriesListQuery.graphql" import { defaultEnvironme...
/* * Copyright 2017 ABSA Group Limited * * 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...
namespace Soo.canvas { // 渐变类型 export const GradientType = { /** 线性渐变填充 */ LINEAR: "linear", /** 放射状渐变填充 */ RADIAL: "radial" }; // 渐变色填充路径 export class GradientFillPath extends Path2D { constructor() { super(); this.type = Path2DType...
// Type definitions for react-instantsearch-native 5.3 // Project: https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/react, https://community.algolia.com/react-instantsearch // Definitions by: Gordon Burgett <https://github.com/gburgett> // Justin Powell <https://github.com/jpo...
import { DomainEvent } from "../domain-event/domain-event" import { DateTime } from "@swindle/core"; import { EventClassifications } from "../domain-event/event-classification.enum"; /** * EventBroadcastFailed * * The EventBroadcastFailed event indicates that the event broadcasting service failed. */ export clas...
import * as React from 'react' import { StyleSheet, View, Text } from 'react-native' import BluetoothDevices, { DeviceType } from 'react-native-bluetooth-devices' export default function App() { React.useEffect(() => { BluetoothDevices.startScan() BluetoothDevices.addEventListener("onConnectedDevices", (re...
export { DPad }; import * as Data from "./../Data/Data"; import * as Engine from "./../Engine/Engine"; import * as Math from "./../Mathematics/Mathematics"; class DPad extends Engine.Tile { private _Touch:boolean; private _TouchID:number; public static All:DPad[] = []; private _Up:Engine.Tile; pr...
import { TransferGateway } from './transfer-gateway' import { Client } from '../client' import { Address } from '../address' export class TronTransferGateway extends TransferGateway { static async createAsync(client: Client, callerAddr: Address): Promise<TronTransferGateway> { const contractAddr = await client.g...
import * as dotenv from "dotenv"; import {AuthApplication} from './application'; export async function migrate(args: string[]) { dotenv.config(); let env_path = process.env.NODE_ENV; if (env_path) { dotenv.config({path: env_path}); } const existingSchema = args.includes('--rebuild') ? 'drop' : 'alter';...
export default { name: 'ku', el: { colorpicker: { confirm: 'Temam', clear: 'Paqij bike', }, datepicker: { now: 'Niha', today: 'Îro', cancel: 'Betal bike', clear: 'Paqij bike', confirm: 'Temam', selectDate: 'Dîrokê bibijêre', selectTime: 'Demê bibijêr...
import { dirname } from 'path'; export async function importAny(...modules: string[]) { try { const mod = await modules.reduce( (acc, moduleName) => acc.catch(() => import(moduleName)), Promise.reject(), ); return mod; } catch (e) { throw new Error(`Cannot find any of modules: ${module...
import {Body, Controller, Get, Param, Post} from '@nestjs/common'; import {SkillService} from "./skill.service"; import { CreateSkillDto } from './DTO/createSkillDto' @Controller('skill') export class SkillController { constructor(private readonly skillService: SkillService) {} @Get('/csv') async csv(): P...
/** * HearthStone Browser * Copyright 2020, Chakir Mrabet <hello@cmrabet.com> * Manages all data handling with remote API. */ import { IFilters, ICard, IPaginatedCards } from '../types'; import Fetch from './fetch'; import { hasProps } from '../utils/validation'; /** * Maps filter names to card property names. ...
import { render, RenderOptions, RenderResult, screen, waitFor, } from "@testing-library/react" import userEvent from "@testing-library/user-event" import fetchMock from "fetch-mock" import { SnackbarProvider } from "notistack" import React, { PropsWithChildren } from "react" import { MemoryRouter } from "reac...
import { _getDomainServiceUrl } from "../../src/domains"; import { IHubRequestOptions } from "@esri/hub-common"; describe("_getDomainServiceUrl", function() { it("gets the url", function() { const hubApiUrl = "hub-api-url"; expect(_getDomainServiceUrl(hubApiUrl)).toBe(`${hubApiUrl}/api/v3/domains`); exp...
import classNames from "classnames"; import React, { useContext } from "react"; import { ThemeContext } from "./context/ThemeContext"; export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> { /** * The type of the badge */ type?: "success" | "danger" | "warning" | "neutral" | "primary"; }...
import { Box, Fade, Paper, Popper } from "@material-ui/core"; import { POPPER_ZINDEX } from "layout/Constants"; import PopupState from "material-ui-popup-state"; import React from "react"; import { httpMethods } from "types/route"; import { customBindHover, customBindPopover } from "utils/popper"; import { KChip } from...
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 ABOUT THIS NODE.JS EXAMPLE: This example works with AWS SDK for JavaScript version 3 (v3), which is pending release. The preview version of the SDK is available at https://github.com/aws/aws-sdk-js-v3. This examp...
// TODO: new util arrayify? // Array.prototype.slice.call( export function removeMatching(array, testFunc) { let removeCnt = 0 let i = 0 while (i < array.length) { if (testFunc(array[i])) { // truthy value means *remove* array.splice(i, 1) removeCnt += 1 } else { i += 1 } } re...
import { DocumentEditor } from '../../src/document-editor/document-editor'; import { createElement } from '@syncfusion/ej2-base'; import { DocumentHelper, Editor, LineWidget, ParagraphWidget, Selection, TabElementBox, TableRowWidget, TableWidget, TableCellWidget, EditorHistory, TextElementBox, WordExport, SfdtExport } ...
export * from "./applyItem"; export * from "./setupItems"; export * from "./types";
// Type definitions for chai-fuzzy 1.3.0 assert style // Project: http://chaijs.com/plugins/chai-fuzzy // Definitions by: Bart van der Schoor <https://github.com/Bartvds> // Definitions: https://github.com/borisyankov/DefinitelyTyped ///<reference path="../chai/chai-assert.d.ts" /> declare module chai { interface As...
import { Component, Input, AfterViewInit, OnDestroy } from '@angular/core'; import { IFlowchart } from '@models/flowchart'; import { INode } from '@models/node'; import { DataService } from '@services'; import { Router } from '@angular/router'; import { LoadUrlComponent } from '@shared/components/file/loadurl.component...
import hre, { ethers } from 'hardhat' import { Contract } from '@ethersproject/contracts' import { Signer } from '@ethersproject/abstract-signer' import { GardensTemplate, Erc20, Kernel, IUnipoolFactory, IConvictionVoting } from '../typechain' import { BigNumber } from 'ethers' const { deployments } = hre const netwo...
import {Component} from '@angular/core'; import {AuthService} from '../../services/auth.service'; import {Router} from '@angular/router'; @Component({ selector: 'app-login', templateUrl: './app-login.component.html', styleUrls: ['./app-login.component.scss'] }) export class AppLoginComponent { public isLoggined: a...
/* eslint-disable @typescript-eslint/no-var-requires */ import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { use } from 'passport'; import { Strategy as AppleTokenStrategy } from 'passport-apple-verify-token'; @Injectable() export class AppleStrategy { constructor(pub...
import React, { useContext, useMemo, useCallback, useEffect } from 'react' import styled from 'styled-components' import { useDraggable } from 'react-hooks-shareable' import { componentSize } from '../designparams' import { TABLE_DIMENSIONS } from './dimensions' import { TableContext, WidthActionType } from './conte...
import * as sns from '@aws-cdk/aws-sns'; import { SubscriptionProps } from './subscription'; /** * Options for email subscriptions. */ export interface EmailSubscriptionProps extends SubscriptionProps { /** * Indicates if the full notification JSON should be sent to the email * address or just the message te...
export type KeyboardLayout = Array<Array<string>>; export const alphanumericKeyboardSwiss: KeyboardLayout = [ ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'Backspace:3'], ['q', 'w', 'e', 'r', 't', 'z', 'u', 'i', 'o', 'p', 'CapsLock:3'], ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', '/','_', 'Enter:2'], ['y',...
import * as fs from 'fs'; import * as path from 'path'; import { Logger } from '../../../cli'; import { CommandOption } from '../../../Command'; import GlobalOptions from '../../../GlobalOptions'; import request from '../../../request'; import Utils from '../../../Utils'; import AzmgmtCommand from '../../base/AzmgmtC...
import { Component, OnInit } from '@angular/core'; import { ApiService } from 'app/api.service'; import { NgForm } from '@angular/forms'; @Component({ selector: 'app-adddetail', templateUrl: './adddetail.component.html', styleUrls: ['./adddetail.component.css'] }) export class AdddetailComponent implements OnInit...
import { default as React } from 'react'; import { default as ReactDOM } from 'react-dom'; import { Index } from './components'; import './index.css'; import 'bootstrap/dist/css/bootstrap.min.css'; ReactDOM.render( <React.StrictMode> <Index /> </React.StrictMode>, document.getElementById('root'), ...
/** * Copyright 2020 Vercel 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 t...
import { CeloContract } from '@celo/contractkit' import { stableTokenContractArray } from '@celo/contractkit/lib/base' import { BaseCommand } from '../../base' import { displaySendTx, failWith } from '../../utils/cli' import { Flags } from '../../utils/command' export default class RemoveExpiredReports extends BaseCom...
import { createContext } from 'react'; import { CollapsibleGroupProps } from "../Provider" export interface ICollapsibleGroupContext extends Omit<CollapsibleGroupProps, 'children'> { toggleCount: number reportToggleToGroup: () => void } const CollapsibleGroupContext = createContext<ICollapsibleGroupContext>({} as...
import { e2e } from '@grafana/e2e'; const dataSourceName = 'PromExemplar'; const addDataSource = () => { e2e.flows.addDataSource({ type: 'Prometheus', expectedAlertMessage: 'Error reading Prometheus', name: dataSourceName, form: () => { e2e.components.DataSource.Prometheus.configPage.exemplarsA...
import React from "react"; import { Spinner } from "react-bootstrap"; const Loader: React.FC = () => { return ( <Spinner animation="border" role="status" style={{ width: "100px", height: "100px", margin: "auto", display: "block", }} > <span class...
import { LoggingDebugSession, TerminatedEvent, Thread, StoppedEvent, StackFrame, Source, Scope, Handles, Variable } from 'vscode-debugadapter'; import { DebugProtocol } from 'vscode-debugprotocol'; import { debug, window, DebugConfigurationProvider, WorkspaceFolder, DebugConfiguration, CancellationToken, ProviderRe...
import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify"; import { isForumName } from "../utils/validator"; import authHook from "../hooks/auth.hook"; import viewHook from "../hooks/view.hook"; import { Controller } from "./controller"; import VariableRepository from "data/repositories/variable.repo"; im...
import { ActionSubject, EventType } from './enums'; interface EditorReadyCalledTwice { action: EditorLifecycleActions.EDITOR_READY_CALLED_TWICE; actionSubject: ActionSubject.EDITOR; eventType: EventType.OPERATIONAL; } interface EditorReadyCalledBeforeLifecycleBridgeSetup { action: EditorLifecycleActions.EDITO...
/* * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013, 2014, 2015, 2016 School of Business and Engineering Vaud, Comem * Licensed under the MIT License */ import './wegas-react-form'; let Z: Y.YUI; /* global YUI */ YUI.add('wegas-react-form-binding', (Y: Y.YUI) => { Z = Y; }); export function getY() { ...
interface CSSModule { [className: string]: string } // type shims for CSS modules declare module '*.module.scss' { const cssModule: CSSModule export = cssModule } declare module '*.module.css' { const cssModule: CSSModule export = cssModule } declare module '*.png' declare module '*.svg' declare module '*...
export interface FloatingMenuState { isShown: boolean; query: string; } export function createInitiailFloatingMenuState(): FloatingMenuState { return { isShown: false, query: "" }; }
import { FontMetrics } from 'capsize'; import { Breakpoint } from '../css/breakpoints'; export type TextBreakpoint = Exclude<Breakpoint, 'desktop' | 'wide'>; type FontSizeText = { fontSize: number; rows: number; }; export type TextDefinition = Record<TextBreakpoint, FontSizeText>; type FontWeight = 'regular' | '...
import {JournalingPage} from './journaling.po'; import {browser, protractor, element, by} from 'protractor'; import {Key} from 'selenium-webdriver'; const origFn = browser.driver.controlFlow().execute; browser.driver.controlFlow().execute = function () { let args = arguments; // queue 100ms wait between test ...
import { ConfigService } from '../config-service/config-service'; import { Injectable } from '@angular/core'; import { NestRepresentationManager } from './representations/NestRepresentationManager'; import { NestNetworkManager } from './network/NestNetworkManager'; import { Observable } from 'rxjs/Observable'; import {...
export type TSize = 'mobile' | 'laptop' | 'desktop'; export type TElementProps = { sizeId: TSize; theme?: unknown; }