text
stringlengths
10
953k
import * as yup from "yup"; import wretch from "wretch"; import "yup-phone"; export interface FormValues { body: string; company?: string; discovery?: string; emailAddress: string; name: string; phoneNumber?: string; } export const initialValues: FormValues = { body: "", company: undefined, discover...
const validationConfig = Object.freeze({ MAXIMUM_NUMBER_OF_ACCESS_COUNT: 5, PASSWORD_LENGTH: 6, FULL_NAME_LENGTH: 150 }) export default validationConfig
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { AddTaskWizardComponent } from './add-task-wizard.component'; describe('AddTaskWizardComponent', () => { let component: AddTaskWizardComponent; let fixture: ComponentFixture<AddTaskWizardComponent>; beforeEach(waitForAsync...
interface NavigationItem { id: string title: string link: string external?: boolean } export interface NavigationType { main: NavigationItem[] secondary: NavigationItem[] }
import { NestInterceptor, ExecutionContext, CallHandler, Injectable, } from '@nestjs/common'; import { UsersService } from '../users.service'; @Injectable() export class CurrentUserInterceptor implements NestInterceptor { constructor(private usersService: UsersService) {} async intercept(context: Executio...
import { AutoFocusDirective } from './auto-focus.directive'; describe('AutoFocusDirective', () => { it('should create an instance', () => { // const directive = new AutoFocusDirective(); // expect(directive).toBeTruthy(); }); });
import { loadTrianglesPreset } from "."; import { tsParticles } from "tsparticles"; loadTrianglesPreset(tsParticles); export { loadTrianglesPreset, tsParticles };
/** @jsx jsx */ import { jsx } from "theme-ui" import BlogListItem from "./blog-list-item" type ListingProps = { posts: { slug: string title: string date: string excerpt: string description: string timeToRead?: number tags?: { name: string slug: string }[] }[] classNam...
import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {NfsComponent} from './nfs.component'; import {NfsListComponent} from './nfs-list/nfs-list.component'; import {NfsCreateComponent} from './nfs-create/nfs-create.component'; import {CoreModule} from '../core/core.module'; @NgM...
interface CacheKeyData { audience: string; scope: string; client_id: string; } export interface CacheEntry { access_token: string; expires_in: number; audience: string; scope: string; client_id: string; refresh_token?: string; } export interface ICache { save(entry: CacheEntry): void; get(key: C...
import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient"; import { ListFindingsRequest, ListFindingsResponse } from "../models/models_0"; import { deserializeAws_json1_1ListFindingsCommand, serializeAws_json1_1ListFindingsCommand, } from "../protocols/Aws_json1_1"; i...
import { useMutation } from 'react-query'; import { api, EndPoints } from '../../../axios/api-config'; import { queryClient } from '../../../../src/App'; import { VillainModel } from '../villain'; import { keys } from '../../keyNames'; export default function useRemoveVillain() { return useMutation( villainId =>...
import { Schema, model, models, Model } from 'mongoose'; import { IAuth } from '@/types/schema'; export class Auth { private _model: Model<IAuth>; constructor () { const schema = new Schema<IAuth>( { // 密码(已md5加密) password: { type: String }, // 创建时间 creat...
/* * Angular 2 decorators and services */ import {Component, ViewEncapsulation, ChangeDetectorRef, ViewChild} from '@angular/core'; import {AppState} from './app.service'; import {LoginService} from "./services/login.service"; import {SignInModalComponent} from "./common-signInModal/signin-modal.component"; import {...
import React, { useState } from "react"; import { Table, Divider, Popconfirm, Tag, Button, Modal, message } from "antd"; import { ColumnProps } from "antd/lib/table"; import { useTranslation } from "react-i18next"; import { IUser, IUserState } from "../../store/modules/user/user.interface"; import { UserInfoForm } from...
import mockData from "../mock-data/mock-board-data"; function ThreadComments() { return ( <div> <header> <div> {mockData.map((item, i) => ( <tr key={i}> <h1>{item.title}</h1> <br /> <hr /> </tr> ))} </div> ...
import { Adapter } from "./adapter" import { BrowserAdapter } from "./browser_adapter" import { History } from "./history" import { Location, Locatable } from "./location" import { RenderCallback } from "./renderer" import { ScrollManager } from "./scroll_manager" import { SnapshotCache } from "./snapshot_cache" import...
import React from 'react' import { Table } from 'antd' import { useActions, useValues } from 'kea' import { IndexedTrendResult, trendsLogic } from 'scenes/trends/trendsLogic' import { PHCheckbox } from 'lib/components/PHCheckbox' import { getChartColors } from 'lib/colors' import { MATHS } from 'lib/constants' import {...
import * as path from 'path'; import * as fs from 'fs'; import * as ps from '@smogon/sets'; import * as calc from 'calc'; import * as tiers from './tiers.json'; const toID = calc.toID; // prettier-ignore const TIERS = [ 'Gamma', 'Beta', 'Alpha', 'CanonUber', 'LC', 'NFE', 'UU', 'OU', 'Uber', 'NU', 'NUBL', 'UUBL', ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // This file contains the interfaces for the messages exchanged by the background threads and the main thread. import * as I from "./Interfaces"; export type WorkerResponse_Error = { mtype: "error", error: I.Error } export type WorkerResponse_...
/* Copyright 2020 Adobe. All rights reserved. This file is licensed 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.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
/* eslint-disable @typescript-eslint/no-explicit-any */ import { Workspace } from "../models/workspace"; import { WorkspaceSnapshotResult, WorkspaceCreateConfigProtocol, FrameSummaryResult, AddItemResult, WorkspaceSummariesResult, WorkspaceSummaryResult, SimpleWindowOperationSuccessResult, FrameSnapshotResult } from "....
import React, { FC } from 'react' import { useSnackbar } from 'notistack' import { useHistory } from 'react-router-dom' import { useMountEffect } from '../../hooks/utils/MountEffectHook' import { useLocale } from '../../hooks/LocaleContextHook' import { useUserContext } from '../../hooks/UserContextHook' import { useU...
import * as React from "react"; import * as L from "leaflet"; import { Marker, Popup, useMap } from "react-leaflet"; import { convertToMap } from "lib/map/utils"; import { blipTypes } from "lib/map/blips"; import { BLIP_SIZES, Blip, BlipsData, MarkerType } from "types/Map"; import { useDispatchMapState } from "state/ma...
/** * Copyright © 2019 Johnson & Johnson * * 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...
import { type } from '../../helpers' export function clone<A>(obj: A): A { return _clone(obj, [], [], true) } function _clone(value: any, refFrom: Array<any>, refTo: Array<any>, deep: boolean): any { function copy(copiedValue: any) { const length = refFrom.length let i = 0 for (; i < length; ++i) ...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import expect = require('expect.js'); import { IKernel } from 'jupyter-js-services'; import { MockKernel, ERROR_INPUT } from 'jupyter-js-services/lib/mockkernel'; import { MimeData } from 'phosphor/lib/core/...
import { FunctionDefinition } from 'graphcool-json-schema' import { GraphcoolModule, Config, Environment, Output, } from 'graphcool-cli-engine' import * as path from 'path' import BufferedConsole from './BufferedConsole' import getConsoleOutput from './getConsoleOutput' import chalk from 'chalk' import {registe...
import V1Addon from '../v1-addon'; export default class EmberCliBabel extends V1Addon { // the only copy of ember-cli-babel that might need to do something is the // first one that wants to emit babel polyfills. No other copy is allowed to // emit anything into the build. reduceInstances(copies: EmberCliBabel[...
import * as React from 'react'; import { connect } from 'react-redux'; import { State } from 'reducers'; import config from 'config'; import { toggleFeedback } from 'actions/app'; import ExternalLink from './ExternalLink'; import { Heart, GitHub, Facebook, Mail } from './icons'; import CloseButton from './CloseButton...
// Copyright 2017-2020 @polkadot/app-explorer authors & contributors // SPDX-License-Identifier: Apache-2.0 import { KeyedEvent } from '@polkadot/react-query/types'; import React, { useContext, useRef } from 'react'; import { Route, Switch } from 'react-router'; import Tabs from '@polkadot/react-components/Tabs'; imp...
export class UserPasswordResetEvent { name: string; email: string; token: string; }
import { TextDecoration, TextAlignment, TextTransform } from "./text-base"; import { Font } from "../styling/font"; import { TextBaseCommon, textProperty, formattedTextProperty, textAlignmentProperty, textDecorationProperty, textTransformProperty, letterSpacingProperty, colorProperty, fontInternalProperty, lin...
import { Operand } from "../types"; import operandToNumber from "../utils/operandToNumber"; import BinaryOperationStrategy from "./BinaryOperationStrategy"; class AdditionStrategy extends BinaryOperationStrategy { char = "+"; calculate(operand1: Operand, operand2: Operand): number { return operandToNumber(ope...
import { getName } from '../main'; describe("OpenPetition ", () => { it("should say challenge name", () => { expect(getName()).toBe("OpenPetition Challenge"); }); });
/** * The MIT License * * Copyright (c) 2018, Lyndon Tavares (integraldominio@gmail.com) * * 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 li...
import * as path from 'path'; import * as minimist from 'minimist'; import * as webpack from 'webpack'; import { defaultBuildDir } from './constants'; import { getProdConfig } from './webpack_configs'; export async function buildProd(outdir: string = defaultBuildDir) { await new Promise((resolve, reject) => { ...
import { Component } from '@angular/core'; import { FormControl } from '@angular/forms'; import { COUNTRIES, Country } from '../../country'; import { MatDialogRef } from '@angular/material'; import { CountryFilter } from '../filter'; @Component({ selector: 'app-filter-dialog-country', templateUrl: './filter-dialog...
import { useContext } from 'react'; import { ChallengesContext } from '../context/ChallengesContext'; import { Container } from '../styles/components/Profile'; export function Profile() { const { level } = useContext(ChallengesContext); return ( <Container> <img src="https://github.com/AlexBitar80.png" ...
import Deploy from './commands/deploy' import Init from './commands/init' import Auth from './commands/auth/index' import Info from './commands/info/index' import Playground from './commands/playground/index' import Console from './commands/console' import List from './commands/list/index' import Delete from './command...
// GENERATE BY ./scripts/generate.ts // DON NOT EDIT IT MANUALLY import { SetupContext } from 'vue'; import LeafFillSvg from '@airclass/icons-svg/lib/asn/LeafFill'; import AntdIcon, { AntdIconProps } from '../components/AntdIcon'; const LeafFill = (props: AntdIconProps, context: SetupContext) => { const p = { ...pr...
export interface IUser { id: string, national_id: string password: string credits: number }
export { getParsedNftAccountsByOwner, createConnectionConfig, } from "./getParsedNftAccountsByOwner"; export { isValidSolanaAddress } from "./utils";
import { createAction } from "typesafe-actions"; import { ICost } from "../../models/character/costs"; import { historyMetaCreator } from "../meta"; export const increase = createAction( "virtues/INCREASE", (name: string, value: number, cost: ICost) => ({ cost, name, value }), historyMetaCreator, )();
// // Copyright (c) 2021 Cisco Systems, Inc and its affiliates // All rights reserved // import { Input, Output, EventEmitter, Component} from '@angular/core'; import { MsxDropdownItem } from '@msx/forms'; @Component({ selector: 'msx-tags-dropdown', template: '' }) export class MockTagsDropdownComponent { @Input() ...
/** * VisualModeTutorial.tsx * * Tutorial for learning how to select text in visual mode. */ import * as React from "react" import { ITutorial, ITutorialMetadata, ITutorialStage } from "./../ITutorial" import * as Notes from "./../Notes" import * as Stages from "./../Stages" const Line1 = "Text can be selectedse...
import RabbitmqServer from '@src/infra/queue/rabbitmq/RabbitmqServer'; import RabbitmqController from '@src/controller/rabbitmq/RabbitmqController'; (async () => { const server = new RabbitmqServer(process.env.RABBITMQ_URL); await server.start(); await server.consume('user', async message => { const object =...
import mongoose from 'mongoose'; import { Db } from 'mongodb'; import { tenants } from 'api/tenants/tenantContext'; import { config } from 'api/config'; import { testingTenants } from 'api/utils/testingTenants'; import { instanceModel } from 'api/odm'; import testingDB from 'api/utils/testing_db'; import { DB } from '....
import {isMobile} from '../constants/platform' import ChatConversation from './conversation/container' import ChatEnterPaperkey from './conversation/rekey/enter-paper-key' import ChatRoot from './inbox/container' import ChatAddToChannel from './conversation/info-panel/add-to-channel/container' import ChatAttachmentFul...
import React, { useState, useEffect } from 'react'; import { Button } from "tabler-react"; import { ServerSidePaginationProps } from "../../types"; import "./index.css"; const ServerSidePagination = (props: ServerSidePaginationProps): JSX.Element => { const [currentPage, setCurrentPage] = useState(1); const [pageN...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../../types"; import * as utilities from "../../utilities"; /*...
/** * Debounce helper * * let wait = startDebounce(1000) * wait.done.then(_ => handle()) * wait.refresh() // to refresh * * @export * @param {number} ms * @returns {{done: any, refresh: () => {}}} * @author Adam Dorling * @contact https://codepen.io/naito */ export default function (ms: number): { done:...
import { _TypedLinkSpecifier } from "./_TypedLinkSpecifier"; import { _LinkAttributeUpdate } from "./_LinkAttributeUpdate"; import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * UpdateLinkAttributesInput shape */ export interface UpdateLinkAttri...
/** * Replace all child nodes of the given target node to the child nodes of source node. * @param target Target node, all child nodes of this node will be removed if keepExistingChildren is not set to true * @param source (Optional) source node, all child nodes of this node will be move to target node * @param kee...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../../types"; import * as utilities from "../../utilities"; /*...
declare namespace Jymfony.Component.Security.Authorization.Voter { import AuthenticationTrustResolverInterface = Jymfony.Component.Security.Authentication.AuthenticationTrustResolverInterface; import TokenInterface = Jymfony.Component.Security.Authentication.Token.TokenInterface; /** * AuthenticatedVo...
import React from 'react'; import { Trans } from '@lingui/macro'; import { Typography, Container, Grid, } from '@material-ui/core'; // import { shuffle } from 'lodash'; import { useForm, useFieldArray } from 'react-hook-form'; import { useAddKeyMutation, useLogInMutation } from '@hddcoin/api-react'; import { Arro...
import express from 'express' import { OpenAPIV3 } from 'openapi-types' import debug from 'debug' import { buildRef } from '../resolve' import { BodyDiscriminatorFunction } from './decorators' const log = debug('typoa:validator') export class ValidateError extends Error { public status = 400 public name = 'Valida...
import { DATA_TYPE_CLASSIFICATION } from "../models/data-type-classifiction"; export class DataTypeToDataTypeClassificationMapping { private static mappings: { [key: string]: DATA_TYPE_CLASSIFICATION } = { "array": DATA_TYPE_CLASSIFICATION.STRUCTURAL, "bigint": DATA_TYPE_CLASSIFICATION.PRIMITI...
import React, { FC, useLayoutEffect, useRef, useState } from 'react' import { AddOutline } from 'antd-mobile-icons' import { mergeProps } from '../../utils/with-default-props' import ImageViewer from '../image-viewer' import PreviewItem from './preview-item' import { useNewControllableValue } from '../../utils/use-cont...
export interface EnabledState { disabled?: boolean; }
/** * Base forward pagination parameters for Helix requests. */ export interface HelixForwardPagination { /** * The number of results per page. */ limit?: string; /** * A cursor to get the following page of. */ after?: string; } /** * Base pagination parameters for Helix requests....
import { IConfigurationOptions, ILifeCycle, IMidwayApplication, IMidwayBootstrapOptions, IMidwayContainer, IMidwayContext, IMidwayFramework, MidwayProcessTypeEnum, } from './interface'; import { MidwayContainer } from './context/midwayContainer'; import { APPLICATION_KEY, CONFIGURATION_KEY, getPro...
/** * @module @flowscripter/cli-framework */ import debug from 'debug'; import Service from '../api/Service'; import Context from '../api/Context'; export const SERVICE_FACTORY_PLUGIN_EXTENSION_POINT_ID = 'service_factory_plugin_extension_point'; const log: debug.Debugger = debug('ServiceFactory'); export async f...
import React from 'react'; import { Grid, Typography, makeStyles } from '@material-ui/core'; import { Favorite as FavoriteIcon } from '@material-ui/icons'; import UserAvatar from 'app/components/Avatar/Avatar'; import { mockTutor } from 'types/Tutor'; import { getUserName } from 'helpers'; import RatingBlock from './Ra...
import Button from '@salesforce/design-system-react/components/button'; import Combobox from '@salesforce/design-system-react/components/combobox'; import comboboxFilter from '@salesforce/design-system-react/components/combobox/filter'; import Input from '@salesforce/design-system-react/components/input'; import Modal ...
/* * The MIT License (MIT) * * Copyright (c) 2017 NEM * * 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, mo...
import { useState } from "react"; import "../styles/tasklist.scss"; import { FiTrash, FiCheckSquare } from "react-icons/fi"; interface Task { id: number; title: string; isComplete: boolean; } export function TaskList() { const [tasks, setTasks] = useState<Task[]>([]); const [newTaskTitle, setNewTaskTitle] ...
/* * 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 { reducerWithInitialState } from 'typescript-fsa-reducers'; import { ...
import { ICanvasGraphServiceSettings, IPerfMinMax, IGraphDrawableArea, IPerfMousePanningPosition, IPerfIndexBounds, IPerfTooltip, IPerfTextMeasureCache, IPerfLayoutSize, IPerfTicker, TimestampUnit, ITooltipPreprocessedInformation, IPerfTooltipHoverPosition, IVisibleRa...
export * from './get'; export * from './property'; export * from './traverse-path'; export * from './is-valid'; export * from './get-safe-term';
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Rothscoin</source> <translation>A prop de Rothscoin</translation> ...
import type { CommandFunction } from "../../types"; /** * Lists all server roles */ export const run: CommandFunction = async(client, message, args) => { const roleNames = message.guild.roles.cache .filter(element => String(element.name).toLowerCase() !== "@everyone") .map(element => element.name...
import type { NonCancelableCustomEvent } from '@awsui/components-react/interfaces'; import type { TabsProps } from '@awsui/components-react/tabs'; import type { SetStateAction } from 'react'; import { useCallback, useState } from 'react'; export interface Props { readonly defaultActiveTabId?: string | undefined; } ...
// Lightly modified from: https://github.com/Microsoft/TypeScript/issues/30984#issuecomment-631991019 // NOTE: TypeScript 4.4 added partial support for FontFace. As such, only a few missing items now // need to be manually specified // https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1029#issuecomment-8...
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const RiFileUploadLine: IconType;
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
export type GlyphMetadata = { name: string; /** * @example * ``` * obj.unicode = ["\u0001"] * ``` */ unicode?: string[]; }
import React from "react"; import styled from "styled-components"; import { Formik } from "formik"; import axios from "axios"; const ContactWrapper = styled.section` min-height: calc(100vh - 100px); padding: ${({ theme }) => theme.space.l}; color: ${({ theme }) => theme.colors.greeyH}; font-family: ${({ theme ...
export class Cart { id: number; totalAmount: number; totalItems: number; }
/* * 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 i...
import { Turn } from './turn'; import { DialogueInvalidError } from './dialogue_invalid_error'; import * as jsYaml from 'js-yaml'; import * as fs from 'fs'; import * as path from 'path'; export class Dialogue { title: string; turns: Turn[]; constructor(filePath: string, preamble?: any[]) { let dialogueDoc; ...
import React from 'react'; import RadioButton from './RadioButton'; const ApiKeyRadioButton: React.FC<ApiKeyRadioButtonProps> = React.memo(({ isChecked, onClick }) => ( <RadioButton groupId="apiKey" label="a normal ApiKey" isChecked={isChecked} onChange={onClick} /> )); interface ApiKeyRadioButtonProps { isChecke...
import { ResponseHandler, StatusCodes } from '@restlessness/core'; import { Request } from './interfaces'; import { Endpoint, Dao, Authorizer } from '../../models'; export default async (req: Request) => { try { const { validationResult, payload, pathParameters, } = req; if (!validatio...
import { Observable } from 'rxjs'; import { Component, LOCALE_ID, Inject, Input } from '@angular/core'; import { ObjectAggregationResult, ContentAggregationRequest, BrokenDependenciesFilter, ContentSearchType, LifeCycleFilter, ContentService } from '@picturepark/sdk-v1-angular'; import { AggregationComponent } fr...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
export const identity = <T>(v: T): T => v;
import express from 'express'; import { GraphQLOptions, HttpQueryError, runHttpQuery, convertNodeHttpToRequest, } from 'apollo-server-core'; export interface ExpressGraphQLOptionsFunction { (req?: express.Request, res?: express.Response): | GraphQLOptions | Promise<GraphQLOptions>; } // Design princ...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ApiService } from 'app/services/api.service'; import { Router } from '@angular/router'; import { FormGroup, FormControl, Validators } from '@angular/forms'; @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls:...
import * as React from "react"; import format from "date-fns/format"; import getHours from "date-fns/getHours"; import addHours from "date-fns/addHours"; import addMinutes from "date-fns/addMinutes"; import addSeconds from "date-fns/addSeconds"; import addMilliseconds from "date-fns/addMilliseconds"; import setHours f...
const ARWEAVE_CDN = process.env.NEXT_PUBLIC_ARWEAVE_CDN; export const maybeCDN = (uri: string) => { if (ARWEAVE_CDN) { const res = uri.replace( /https:\/\/(www.)?arweave\.net(:443)?/g, ARWEAVE_CDN, ); return res; } return uri; };
/* eslint "@typescript-eslint/type-annotation-spacing": [2, { "before": true, "after": true }] */ import { AnimistForceL10n } from "../../../../../app/Database/Schema/AnimistForces/AnimistForces.l10n" import { AnimistForceUniv } from "../../../../../app/Database/Schema/AnimistForces/AnimistForces.univ" import { bindF, ...
import React, { CSSProperties } from "react"; export function CirclePicker(props): JSX.Element { const circleStyle: CSSProperties = { width: "100%", height: "auto", border: "1px solid black", borderRadius: "50%", float: "left", backgroundColor: props.color, }; return <div onClick={props...
import { Component } from '@angular/core'; import { Quote } from './quote'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { }
import { tryGettingPathStats } from '../helpers/fs'; import { RuleTargetType, RuleContext, RuleResult, RuleError, RuleErrorType } from '../rules'; export const targetType = RuleTargetType.DirectoryListing; export async function validator({ workingDirectory, parameter: requiredPaths }: RuleContext): Promise<RuleResult...
#!/usr/bin/env node import { createCanvas, loadImage } from "canvas"; import { Command } from "commander"; import * as fs from "fs"; import sizeOf from "image-size"; import fetch from "node-fetch"; import * as path from "path"; import { parse } from "twemoji-parser"; import { parseEmojiFile } from "./parse-emoji-file"...
/* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable no-underscore-dangle */ 'use strict'; import axios from 'axios'; import Vue, { VueConstructor } from 'vue'; import appCon...
import App from '@presentation/App'; import { render } from '@testing-library/react'; describe('App', () => { it('should be able to render App', () => { expect(() => { render(<App />); }).not.toThrow(); }); });
import * as React from 'react'; import { shallow, ShallowWrapper } from 'enzyme'; import { ContainerRow, PodsDetailsPage } from '../../public/components/pod'; import { DetailsPage } from '../../public/components/factory'; describe(PodsDetailsPage.displayName, () => { let wrapper: ShallowWrapper; beforeEach(() =>...
import { SlashCommandBuilder } from '@discordjs/builders'; import { CommandInteraction, Guild, MessageActionRow, MessageEmbed, MessageSelectMenu, SelectMenuInteraction, TextChannel, VoiceChannel, } from 'discord.js'; import * as RolesJob from '../jobs/roles'; import * as Channels from '../services/channels'; im...