text stringlengths 10 953k |
|---|
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AuthRoutingModule } from './auth-routing.module';
import {NgMatModule} from '../shared/ng-mat/ng-mat.module';
import { AuthComponent } from './auth.component';
import {SignUpComponent} from './sign-up/sign-up.component'... |
/*
* @Date: 2022-01-14 11:10:11
* @LastEditors: 曾令宇
* @FilePath: /project-enigma-core/src/Settings/index.ts
*/
import * as settings from './defaultSettings.json';
export interface Settings {
inputMapper: string[];
wheels: number[][];
reflector: ReflectorSetting[]
wordMaps?: WordMap[]
wheelsPosi... |
/*
* 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 React from 'react';
import { AutocompleteSuggestion, getAutocompleteP... |
import React from 'react';
import {useTypedSelector} from "../../hooks/useRedux";
import {useNavigate} from "react-router-dom";
import Header from "./Header";
import {useGuestActions} from "../../hooks/useGuestActions";
const HeaderContainer = () => {
const navigate = useNavigate();
const {isAuth} = useTypedSe... |
import styled from 'styled-components';
import { global } from '../themes/global';
import { TextResize } from './text-resize';
const ScreenPostTitle = styled(TextResize).attrs({
textSize: 30,
scaleDownForSmallDevices: true,
})`
margin: 0;
text-align: center;
line-height: 0.9;
font-family: ${global.fonts.t... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
import { Component, Input } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { RouterTestingModule } from '@angular/router/testing';
import {
Cart,
CartService,
I18nTestingModule,
OrderEntry,
PromotionResult,... |
export * from './app-context.interface';
export * from './current-user.interface';
export * from './nest-dataloader.interface'; |
/* tslint:disable */
import {
agent,
CreateAgent,
decorate,
decorateMember,
decorateParameter,
Attribute,
IsAgent,
Interceptor,
Invocation,
Arguments,
MemberKinds,
decorateClass
} from '../../../lib';
import { RoundInterceptor } from '../attributes/RoundInterceptor';
class AgentChecker impleme... |
import {useContext} from 'react'
import {empty} from 'rxjs'
import {useObservable} from '../util/useObservable'
import {UserColorManagerContext} from './context'
import {UserColor, UserColorManager} from './types'
export function useUserColorManager(): UserColorManager {
return useContext(UserColorManagerContext)
}
... |
<?xml version="1.0" encoding="UTF-8"?>
<tileset name="signs" tilewidth="32" tileheight="32" tilecount="6" columns="3">
<image source="../Images/LPC Base Assets/tiles/signs.png" width="96" height="64"/>
</tileset> |
// TODO @FrozenPandaz we should remove the following imports
import { getBrowserConfig } from './third-party/cli-files/models/webpack-configs/browser';
import { getCommonConfig } from './third-party/cli-files/models/webpack-configs/common';
import { getStylesConfig } from './third-party/cli-files/models/webpack-configs... |
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
import { addQuarters } from 'date-fns/fp'
export default addQuarters |
export type TableFilterByColumnData = {
value: any;
selected: boolean;
rowValue: any;
renderedValue?: any;
tableIndex?: number;
};
export enum TableFilterByColumnDialogResult {
ACCEPT,
CANCEL,
CLEAR
} |
import axios from 'axios';
import logger from './logger';
import twitchApi from './twitch/twitch_api';
const requiredScopes = [
'bits:read',
'channel:moderate',
'channel:read:subscriptions',
'channel_check_subscription',
'channel_subscriptions',
'chat:edit',
'chat:read',
'clips:edit',
'moderation:rea... |
import {NgModule} from "@angular/core";
import {BrowserModule} from "@angular/platform-browser";
import {FormsModule} from "@angular/forms";
import {AppComponent} from "./app.component";
import {HeroesComponent} from "./heroes.component";
import {HeroDetailComponent} from "./hero-detail.component";
import {HeroService}... |
import { ButtonAria, useButton } from './useButton';
import type { ToggleState } from '@react-stately/toggle';
import type { RefObject } from 'react';
import { chain, mergeProps } from '@react-aria/utils';
import type { PressEvents } from '../../../interactions';
import type { TouchableOpacityProps } from 'react-native... |
import * as React from "react";
function SvgCheckSquare(props) {
return (
<svg
width="1em"
height="1em"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
className="idb"
{...props}
>
... |
import ImageLoader from '../gfx/ImageLoader';
import Texture from './components/Texture';
import Transform from './components/Transform';
import Component from './components/Component';
import Vector2 from '../utils/Vector2';
import Layer from './components/Layer';
import Sound from './components/Sound';
import LineRen... |
import { TextProps } from '@vx/text/lib/Text';
export type AxisOrientation = 'top' | 'right' | 'bottom' | 'left';
export type FormattedValue = string | number | undefined;
export type TickFormatter<ScaleInput> = (value: ScaleInput, tickIndex: number) => FormattedValue;
export type TickLabelProps<ScaleInput> = (val:... |
import useLocale from 'benefit/applicant/hooks/useLocale';
import { useTranslation } from 'benefit/applicant/i18n';
import { getLanguageOptions } from 'benefit/applicant/utils/common';
import { useRouter } from 'next/router';
import { TFunction } from 'next-i18next';
import React from 'react';
import { NavigationItem, ... |
import React from 'react';
import { mount } from 'enzyme';
import { EuiPortal } from './portal';
describe('EuiPortal', () => {
test('is rendered', () => {
const component = mount(
<div>
<EuiPortal>Content</EuiPortal>
</div>
);
expect(component).toMatchSnapshot();
});
}); |
run();
interface Contact {
id: string;
name: string;
email: string | null;
}
// The entire app is in a function just to make sure we don't polute the global namespace
function run() {
const rootEl: HTMLElement = getElementByIdOrThrow("root");
// The list of contacts
let contacts: Array<Contact> = [
{... |
import { screen, waitForElementToBeRemoved } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { RuleData, ArticleProp, FilterType, AppStatus } from '../../api/types'
import renderWithProviders from '../test/renderWithProviders'
import { rest, server } from '../test/server'
impo... |
export type OmdbAPiSearchAllMoviesDataType = {
Title: string;
Year: string;
imdbID: string;
Type: string;
Poster: string;
}
export type OmdbAPiSearchOneMovieDataType = {
Title: string;
Year: string;
Released: string;
Runtime: string;
Genre: string;
Director: string;
Writer: string;
Actors: st... |
import { put, takeEvery, call } from 'redux-saga/effects';
import uid from 'uid';;
import { firestore } from '../firebase';
import { IProject } from '../interfaces/interfaces';
import { update_create_project, update_loader, update_project } from '../redux/symbols';
import { store } from '../redux/store';
/**
* Get ... |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requi... |
import Map from 'ol/Map';
import View from 'ol/View';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
const osm = new TileLayer({
source: new OSM(),
});
const map = new Map({
layers: [osm],
target: 'map',
view: new View({
center: [0, 0],
zoom: 2,
}),
});
os... |
import * as React from 'react'
import axios from 'src/foundations/axios'
import { useEffect, useState } from 'react'
import { useVideos } from 'src/foundations/hooks'
import { useRouter } from 'next/router'
import { Path } from 'src/interfaces/api'
import VideoItem from 'src/components/player/VideoItem'
const usePlayl... |
import * as React from "react";
import { BigNumber } from "../../util/BigNumber";
export interface IGasUsedValueProps {
value: BigNumber;
limit: BigNumber;
locale: string;
}
export declare class GasUsedValueBox extends React.Component<IGasUsedValueProps> {
render(): JSX.Element;
}
//# sourceMappingURL=G... |
import TableQL from './TableQL/TableQL';
import ApolloTableQL from './ApolloTableQL/ApolloTableQL';
import { PaginationData } from './components/Pagination/Pagination';
import Loader from './components/Loader/Loader';
export default TableQL;
export { ApolloTableQL, PaginationData, Loader }; |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const jamEnvelopeOpen: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const lig... |
// (C) Copyright 2015 Moodle Pty Ltd.
//
// 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 agree... |
import { TradeHttpResponse } from './trade';
export enum TradeStatsHttpResultLabel {
Pseudo = 'Pseudo',
Explicit = 'Explicit',
Implicit = 'Implicit',
Fractured = 'Fractured',
Enchant = 'Enchant',
Crafted = 'Crafted',
Veiled = 'Veiled',
Monster = 'Monster',
Delve = 'Delve',
}
export... |
import { Component, Inject, OnInit } from '@angular/core';
import { Angulartics2 } from 'angulartics2';
import { map, switchMap } from 'rxjs/operators';
import { SearchComponent } from '../shared/search/search.component';
import { SidebarService } from '../shared/sidebar/sidebar.service';
import { HostWindowService } f... |
import React from 'react';
import {
Footerrrr, FooterTite, RowWrapper,
Divider, Copyright, FooterLink
} from './styles';
const Footer: React.FC = ({ }) => {
interface TestArticles {
id: number;
title: string;
slug: string
}
let testDataArticleLink: TestArticles[] = [
{ id: 1, title: "When s... |
/// <reference types="node" />
declare module "imagemin-optipng" {
interface Options {
optimizationLevel: number;
}
export default function plugin(options: Options): (input: Buffer) => Promise<Buffer>;
} |
export interface Iconfig {
mode: 'affix' | 'sticky';
direction: 'vertical' | 'horizontal';
scrollRefer: Window | Document | string | Element;
offsetParent?: string | Element;
throttle: boolean;
zIndex?: number;
top?: number;
bottom?: number;
left?: number;
right?: number;
style?: any;
holderStyl... |
//affectation.ts
//
import {WorkItem} from './workitem';
import {IAffectation, IPerson} from 'infodata';
import {InfoRoot} from '../utils/inforoot';
//
export class Affectation extends WorkItem
implements IAffectation {
private _start: Date = null;
private _end: Date = null;
//
constructor(oMap?: an... |
import { HttpStatus, INestApplication } from '@nestjs/common';
import request from 'supertest';
import { DTOCreateAccountParams } from 'src/modules/auth/dto/DTOCreateAccountParams';
import { DTOSessionInfo } from 'src/modules/auth/dto/DTOSessionInfo';
import { prepareTestApp } from './prepare';
import { checkServerRes... |
const ROUTE_EVENT = "route-update";
export const routerService = {
parseQuery,
parseParams,
patternToRegExp,
testRoute,
navigate,
ROUTE_EVENT,
};
function navigate(href: string): void {
window.history.pushState({}, "", href);
window.dispatchEvent(new CustomEvent(ROUTE_EVENT, { detail: href }));
}
fun... |
import Texture from './texture';
export default {
extensions: [['.blp', 'arrayBuffer']],
resource: Texture,
}; |
export const fMutualConnectionsName = 'get_mutual_connections'
export const fMutualConnectionsOut = {
target_user_id: 'target_user_id',
mutual_connections: 'mutual_connections',
} as const
export interface FMutualConnectionsType {
[fMutualConnectionsOut.target_user_id]: number
[fMutualConnectionsOut.mutual_con... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ViewmaturitylevelComponent } from './view-maturitylevel.component';
describe('ViewmaturitylevelComponent', () => {
let component: ViewmaturitylevelComponent;
let fixture: ComponentFixture<ViewmaturitylevelComponent>;
beforeEach(... |
/* global __NEXT_DATA__ */
// tslint:disable:no-console
import { ParsedUrlQuery } from 'querystring'
import { ComponentType } from 'react'
import { parse, UrlObject, format } from 'url'
import mitt, { MittEmitter } from '../mitt'
import {
AppContextType,
formatWithValidation,
getURL,
loadGetInitialProps,
Nex... |
import * as React from 'react';
import { Text, View } from 'react-native';
const Home = () => (
<View>
<Text>Home</Text>
</View>
);
export default Home; |
declare module '*.vue' {
import { defineComponent } from 'vue';
const component: ReturnType<typeof defineComponent>;
export default component;
}
interface ImportMeta {
env: any;
} |
import { useEffect } from 'react';
import { useState } from 'react';
import { MovieCard } from '../components/MovieCard';
import { api } from '../services/api';
import '../styles/content.scss';
type ContentProps = {
selectedGenre: {
id:number;
title:string;
}
}
interface MovieProps {
imdbID: string;
... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License.
import { Cookie } from '@azure/functions';
import { expect } from 'chai';
import 'mocha';
import { AzureFunctionsRpcMessages as rpc } from '../azure-functions-language-worker-protobuf/src/rpc';
import { toRpcHttp, toRpcHttpCookie... |
import React, { createElement, useState, useEffect } from 'react'
import { render } from '@testing-library/react'
import { Listbox } from './listbox'
import { suppressConsoleLogs } from '../../test-utils/suppress-console-logs'
import {
click,
focus,
mouseMove,
mouseLeave,
press,
shift,
type,
word,
Ke... |
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
import { GetObjectTaggingOutput, GetObjectTaggingRequest } from "../models/models_0";
import {
deserializeAws_restXmlGetObjectTaggingCommand,
serializeAws_restXmlGetObjectTaggingCommand,
} from "../protocols/Aws_restXml";
i... |
/*
* sourceFile.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
* Author: Eric Traut
*
* Class that represents a single python source file.
*/
import {
CancellationToken,
CompletionItem,
CompletionList,
DocumentSymbol,
SymbolInformation,
} from 'vscode-languageser... |
import { Router, Request, Response, NextFunction } from 'express';
import createError from 'http-errors';
import { ChatRoomRepo, UserRepo } from '../models';
import logger from '../util/logger';
const router = Router();
router.get('/', async (req: Request, res: Response, next: NextFunction) => {
if (!req?.session?.u... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivaCuentaComponent } from './activa-cuenta.component';
describe('ActivaCuentaComponent', () => {
let component: ActivaCuentaComponent;
let fixture: ComponentFixture<ActivaCuentaComponent>;
beforeEach(async(() => {
TestBed... |
import {getModulePathParts} from '../utils';
import { Module } from './module';
import { ModuleData, ModuleProfiling } from '../ProfilingAnalyzer';
import { TimeRange } from './timeRange';
export class Folder {
public children: {} = {};
public getChild(folderName: string): Folder {
return this.children[folder... |
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
// commonly used components that you don't want to import all the time
import { Dialog, Notify, Quasar} from 'quasar'
// Import SVG icon libraries (don't include the full bundle)
import iconSet from 'quasar/icon-set/svg-mater... |
import React, { FunctionComponent } from "react"
import { useStaticQuery, graphql } from "gatsby"
import PropTypes from "prop-types"
import { OutboundLink } from "gatsby-plugin-google-analytics"
import { TSiteMetaData } from "../seo/seoTypes"
// import styles from "./linkedIn.module.css"
import linkedIn from "@assets... |
import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { S3 } from 'src/utils/s3'
import { Brand } from './brand.entity'
import { BrandResolver } from './brand.resolver'
import { BrandService } from './brand.service'
import { BrandSlugIsUnique } from './validations/BrandSlugIsUn... |
import { registerAs } from '@nestjs/config';
export default registerAs('app', () => ({
port: parseInt(process.env.PORT, 10) || 3000,
})); |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {CompileDirectiveMetadata, CompileStylesheetMetadata} from './compile_metadata';
import {OutputContext} from '... |
import { Storage, StorageType } from './types';
import { JSONStorage } from './json_storage';
import { SQLiteStorage } from './sqlite_storage';
export { JSONStorage } from './json_storage';
export { SQLiteStorage } from './sqlite_storage';
export * from './types';
export const createStorage = async (type: StorageType... |
import { Component } from '@angular/core';
@Component({
selector: 'nz-demo-pagination-total',
template: `
<nz-pagination [nzPageIndex]="1" [nzTotal]="85" [nzPageSize]="20" [nzShowTotal]="totalTemplate"></nz-pagination>
<br />
<nz-pagination [nzPageIndex]="1" [nzTotal]="85" [nzPageSize]="20" [nzShowTota... |
import { createContext, useEffect, useState, ReactNode } from 'react'
import { api } from './services/api';
interface Transaction {
id: number;
title: string;
amount: number;
type: string;
category: string;
createdAt: number; //depois vou precisar converter para uma data
}
//usando um sintaxe
type Transa... |
import IClock from './IClock'
export default class DateClock implements IClock {
public clockNow(): number {
return Date.now()
}
} |
/* ZOD */
import { ZodString, ZodStringDef } from './types/string';
import { ZodNumber, ZodNumberDef } from './types/number';
import { ZodBigInt, ZodBigIntDef } from './types/bigint';
import { ZodBoolean, ZodBooleanDef } from './types/boolean';
import { ZodDate, ZodDateDef } from './types/date';
import { ZodUndefined,... |
import type { IHLPConfig } from "ihlp/lib/config";
if (!process.env.IHLP_ENV || !process.env.AWS_PERMISSIONS_BOUNDARY_ARN) {
console.error("Missing required environment variables!");
process.exit(1);
}
const nodeVersion = "14";
const tfStackName = `${process.env.IHLP_ENV}-tf-state`;
const tags = {
environment: ... |
// ------------------------------------------------------------------------------
// ------------ contactresource.interface ---------------------------------------
// ------------------------------------------------------------------------------
// copyright: 2017 WiM - USGS
// authors: Tonia Roddick USGS Web Inf... |
namespace Estella.Core {
export class ProcessListService implements IProcessListService {
protected processList: IProcess[];
protected filterService: IFilterService<IProcess>;
constructor() {
this.processList = [];
this.filterService = new FilterService<IProcess>()... |
import { Component } from '@angular/core'
import { GameConsole } from './game-console.interface'
import { GameConsoleService } from './services/game-console.service'
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: []
})
export class AppComponent {
title = 'A new Challenge'
... |
import * as React from "react";
function SvgDuplicate(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
width={16}
height={16}
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="eveno... |
/*
* Copyright 2020 NEM (https://nem.io)
*
* 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 ... |
import React from "react";
import { graphql, useStaticQuery } from "gatsby";
import Img from "gatsby-image";
import styled, { css, createGlobalStyle } from "styled-components";
import { motion } from "framer-motion";
import { RouteComponentProps } from "@reach/router";
import ReactPlayer from "react-player/youtube";
im... |
import { Injectable } from '@angular/core';
import { HotToastService } from '@ngneat/hot-toast';
import { Actions } from '@ngrx/effects';
import { createGenericEffect } from '@svv/cms/core/store/effects';
import { ImageActions } from '@svv/cms/images/store/actions';
import { ImagesService } from '@svv/cms/images/servic... |
import { Int } from "@keplr-wallet/unit";
import { AxiosInstance } from "axios";
export interface Account {
getType(): string;
getAddress(): string;
getAccountNumber(): Int;
getSequence(): Int;
}
export class BaseAccount implements Account {
public static async fetchFromRest(
instance: AxiosInstance,
... |
import { useTranslation } from 'next-i18next'
import { Grid, Typography } from '@material-ui/core'
import { createStyles, Theme, makeStyles } from '@material-ui/core/styles'
import ArrowBackIcon from '@material-ui/icons/ArrowBack'
import LinkButton from 'components/common/LinkButton'
import Layout from 'components/la... |
import {Component} from "@angular/core";
import {NavParams} from "ionic-angular";
@Component({
templateUrl: 'pushInfo.html'
})
export class PushInfoPage {
pushMessage: string = "push message will be displayed here";
constructor(public params: NavParams) {
if (params.data.message) {
this.pushMessage = ... |
/* eslint-disable promise/catch-or-return */
/* eslint-disable react/jsx-one-expression-per-line */
/* eslint-disable jsx-a11y/label-has-associated-control */
import React, { useState } from 'react';
import { useHistory } from 'react-router-dom';
import { Header } from './repeat';
import { SearchRegisterer, InfoStore }... |
<TS language="ro_RO" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Faceți click dreapta pentru a edita adresa sau eticheta</translation>
</message>
<message>
<source>Create a new address</source... |
import { List, ListItem, ListItemText, Typography } from '@material-ui/core';
import React, { useEffect } from 'react'
import { useAppDispatch, useAppSelector } from '../../app/hooks'
import { UserActions } from './userSlice';
const UserList = () => {
const dispatch = useAppDispatch();
const users = useAppSel... |
/* GENERATED FILE */
import * as React from "react";
import Svg, { Rect, Path, Line } from "react-native-svg";
import { IconProps } from '../lib'
function Popcorn(props: IconProps) {
return <Svg viewBox="0 0 256 256" width={props.size} height={props.size} {...props}><Rect width={256} height={256} fill="none" /><Pat... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { routing } from './profile.routing';
import { SharedModule } from '../../shared/shared.module';
import { ProfileComponent } from './profile.component';
@NgModule({
imports: [
CommonModule,
SharedModule... |
import { Augur } from "augur.js";
import BigNumber from "bignumber.js";
import * as Knex from "knex";
import { Address, Bytes32, TradesRow} from "../../../types";
import { convertFixedPointToDecimal } from "../../../utils/convert-fixed-point-to-decimal";
import { WEI_PER_ETHER } from "../../../constants";
async functi... |
import { BrowserModule } from '@angular/platform-browser';
import { DataTableModule } from 'primeng/components/datatable/datatable';
// Angular Imports
import { NgModule } from '@angular/core';
import { PrimengDataTableComponent } from './primeng-data-table.component';
@NgModule({
imports: [
DataTableModule... |
import Cell from '../layoutEngine/layouts/cell'
import TopicView from '../topicView'
import GridData from '../layoutEngine/layouts/gridData'
import Size from '../../utils/size'
import TopicViewController from '../../viewController/topicViewController'
import BranchViewController from '../../viewController/branchViewCon... |
import Image from '../models/Image';
export default {
render(image: Image) {
return {
id: image.id,
url: `http://192.168.0.108:3333/uploads/${image.path}`
};
},
renderMany(images: Image[]) {
return images.map(image => this.render(image));
}
}; |
import { addProjectConfiguration } from '@nrwl/devkit';
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
import scamGenerator from './scam';
describe('SCAM Generator', () => {
it('should create the inline scam correctly', async () => {
// ARRANGE
const tree = createTreeWithEmptyWorkspace(... |
import { useState } from 'react';
import { Plugins } from '@capacitor/core';
import { AvailableResult, notAvailable, FeatureNotAvailableError } from '../util/models';
import { isFeatureAvailable } from '../util/feature-check';
interface ClipboardResult extends AvailableResult {
value?: string,
getValue: () => void... |
import React, { useState } from 'react';
import { LoginAndRegisterButtonsView } from './LoginAndRegisterButtonsView';
import ModalProvider from './ModalProvider';
export const LoginAndRegisterContainer = () => {
const [registerVisible, setRegisterVisible] = useState(false);
const [loginVisible, setLoginVisible] ... |
import { Rotor } from './rotor.model';
export class Circuit {
dial: Rotor;
rotors: Rotor[];
constructor(attrs?: {
dial: Rotor,
rotors: Rotor[]
}) {
if (attrs) { Object.assign(this, attrs); }
}
} |
/* eslint-disable react-hooks/rules-of-hooks */
import React from 'react';
import IPhoneFrame from './IPhoneFrame';
import useBaseUrl from '@docusaurus/useBaseUrl';
export default function Screenshot({
scale,
url,
webpUrl,
alt,
style,
frameStyle,
className
}: {
scale?: number;
style?: any;
classNam... |
import createSagaMiddleware, {SagaIterator} from 'redux-saga'
import {Effect} from 'redux-saga/effects'
import {applyMiddleware} from 'redux'
function testApplyMiddleware() {
const middleware = createSagaMiddleware()
const enhancer = applyMiddleware(middleware)
}
declare const effect: Effect
declare const prom... |
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {
RouterModule,
Routes
} from '@angular/router';
import {Camera} from '@ionic-native/camera/ngx';
import {IonicModule} from '@ionic/angular';
import {ConnectionStateModule} from ... |
import { Card } from '../../../interfaces'
import Set from '../Dragons Exalted'
const card: Card = {
name: {
en: "Sigilyph",
fr: "Cryptéro",
es: "Sigilyph",
it: "Sigilyph",
pt: "Sigilyph",
de: "Symvolara"
},
illustrator: "Ryo Ueda",
rarity: "Rare",
category: "Pokemon",
set: Set,
dexId: [
561,
],... |
import React from "react";
import Panel from "../components/Containers/Panel";
import { TokenLabel } from "../components/Labels/TokenLabel";
import { homeDescription, MetaTags } from "../components/MetaTags";
import { useInfo } from "../lib/hooks/useInfo";
import { formatPercent } from "../lib/utils";
export default f... |
/*
* Copyright 2020 The Backstage 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 applicable law or ... |
import * as sharp from 'sharp';
import { IImageAction, IImageContext } from '.';
import { IActionOpts, ReadOnly, InvalidArgument } from '..';
import * as is from '../../is';
export interface CircleOpts extends IActionOpts {
r: number;
}
export class CircleAction implements IImageAction {
public readonly name: str... |
import React from 'react'
import { RoundedButton } from 'components/RoundedButton'
import useBuySell from 'hooks/useBuySell'
import useWallet from 'hooks/useWallet'
import useApproval from 'hooks/useApproval'
import {
daiTokenAddress,
usdcTokenAddress,
csTokenAddress,
indexTokenAddress,
uniswapRouterAddress,... |
// Interfacing with TheGraph subgraph APIs
import axios from "axios";
import { ForceListPair, matchPairToForceList, TokenItem } from "./tokenlists";
export interface TokenInfo {
id: string;
symbol: string;
name: string;
decimals: number;
}
export interface PairInfo {
id: string;
reserveUSD: n... |
import { ChatClient } from './chat-client.entity';
export interface ChatMessage {
message: string;
sender: ChatClient;
} |
export default [
{
constant: true,
inputs: [],
name: 'daiPrice',
outputs: [
{
internalType: 'uint256',
name: 'price',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'updatedAt',
type: 'uint256',
},
],
payable: false,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.