text
stringlengths
10
953k
import Mastodon, { Status } from 'megalodon' import { Module, MutationTree, ActionTree } from 'vuex' import { RootState } from '@/store' export type ReportState = { modalOpen: boolean message: Status | null } const state = (): ReportState => ({ modalOpen: false, message: null }) export const MUTATION_TYPES =...
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""Software""), to deal * in the Software without restrict...
/** Angular Imports */ import { Component, OnInit, ViewChild } from '@angular/core'; import { MatTableDataSource, MatPaginator, MatSort } from '@angular/material'; import { ActivatedRoute } from '@angular/router'; /** * Manage Hooks Component. */ @Component({ selector: 'mifosx-manage-hooks', templateUrl: './mana...
import React from 'react'; import { Information } from '../Info'; import { Modal } from '../Modal'; import { Typography } from '../Typography'; import styles from './NFT.styles'; const { DivModalStyled } = styles; interface INFTModal { /** * attributes / traits metadata */ attributes?: Array<any>; ...
import type { TinaTemplate } from "@tinacms/cli"; import { buttonsSchema } from "./shared/buttons"; import { cardsSchema } from "./shared/cards"; import { navigationLabelSchema } from "./shared/navigation-label"; import { colorOptions, textSizeOptions } from "./shared/options" const defaultCard = { headline: "Here's...
import {BrowserModule} from '@angular/platform-browser'; import {NgModule} from '@angular/core'; import {AppComponent} from './app.component'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {MatMenuModule} from '@angular/material/menu'; import {MatIconModule} from '@angular/materi...
import variables from '_variables.module.scss'; import TooltipIcon from 'components/common/TooltipIcon'; import React, { FunctionComponent } from 'react'; import Button from 'react-bootstrap/Button'; import Container from 'react-bootstrap/Container'; import Modal from 'react-bootstrap/Modal'; import ModalDialog from 'r...
import "reflect-metadata"; import {ConnectionOptions, createConnection} from "../../src/index"; import {Post} from "./entity/Post"; import {PostAuthor} from "./entity/PostAuthor"; const options: ConnectionOptions = { driver: { type: "mysql", host: "localhost", port: 3306, username: ...
import { RoleModel } from "../models/RoleModel"; import * as CryptoJS from 'crypto-js'; import { throwError } from "rxjs"; export class UtilsService { private roles: string[] = ["Guest", "User", "Admin", "SuperAdmin"]; private enckey: string = "123456$#@$^@1ERF"; // Function converts a list of strings to a...
import ObjectItem from "@protocol/network/types/ObjectItem"; import Message from "./Message"; export default class MimicryObjectPreviewMessage extends Message { public result: ObjectItem; constructor(result: ObjectItem) { super(); this.result = result; } }
import { useState } from "react"; import { IJob } from "../../types"; import { MobileStepper, Typography, Button } from "@material-ui/core"; import KeyboardArrowLeft from "@material-ui/icons/KeyboardArrowLeft"; import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight"; import JobCard from "./../JobCard/Job...
/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ export * from './decorators/base.js'; export * from './decorators/custom-element.js'; export * from './decorators/property.js'; export * from './decorators/state.js'; export * from './decorators/event-options.js'; export * from '....
import { Task, TaskCompletionStatus, taskFactory } from './taskDomain'; const taskProps: Omit<Task, 'id'> = { name: 'any', description: 'any', owner: '123', dueDate: 'a-due-date', priority: 1, completionStatus: TaskCompletionStatus.COMPLETE }; test('should create a task domain object correctly...
import type { FeatureSetup, IsSkipFeature } from '../../types' import { resolve } from 'path' import { fileExists } from '../../utils/path_helper' import { rederTemplate } from '../../core/template' import { addDevDeps } from '../../core/dependency' export const isSkip: IsSkipFeature = async context => { return awai...
/* Copyright 2017 - 2019 matrix-appservice-discord 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 ...
// Shoutout to Ant-Design for most the colors const color: { gray1: string; gray2: string; gray3: string; gray4: string; gray5: string; gray6: string; gray7: string; gray8: string; gray9: string; gray10: string; gray11: string; gray12: string; gray13: string; dark: { red1: string; r...
import { shipmentProviderResolver } from './shipment-provider' import { shipmentProvidersResolver } from './shipment-providers' import { updateShipmentProvider } from './update-shipment-provider' import { updateMultipleShipmentProvider } from './update-multiple-shipment-provider' import { createShipmentProvider } from...
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { Subject } from 'rxjs'; i...
export { QBasicProgram, dbg, compile2 } from './qb'; export { setOpenFile, setFileStream } from './file/file'; export { VirtualMachine } from './virtualMachine/VirtualMachine'; export { _Console } from './Console'; export { StackFrame, IStackFrame } from './StackFrame'; export { ScalarVariable } from './ScalarVariable...
import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; import { fromBase64, toBase64 } from ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Genesis</source> <translation>&amp;О Genesis</translation> </mes...
import afterPicks from "./afterPicks"; import deleteLotteryResultIfNoDraftYet from "./deleteLotteryResultIfNoDraftYet"; import genOrder from "./genOrder"; import genOrderFantasy from "./genOrderFantasy"; import genPicks from "./genPicks"; import genPlayers from "./genPlayers"; import genPlayersWithoutSaving from "./gen...
/* * Copyright 2017 Palantir Technologies, 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 req...
import { ChartBuilder, PieSeries, PieSeriesOptions as PieSeriesInternalOptions, PolarChart } from "ag-charts-community"; import { _, PieSeriesOptions, PolarChartOptions } from "@ag-grid-community/core"; import { ChartProxyParams, UpdateChartParams } from "../chartProxy"; import { PolarChartProxy } from "./polarChartPro...
import * as React from "react"; import { JSX } from "react-jsx"; import { IFluentIconsProps } from '../IFluentIconsProps.types'; const Bot20Filled = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => { const { primaryFill, className } = iconProps; return <svg {...pro...
import chalk from "chalk"; import process from "process"; import _ from "lodash"; import bytes from "bytes"; import { prettifyMemoryUsage } from '../dist/domain-utils' import libvirt, { Domain } from "../"; (async () => { const vmName = "debian9-vm1", // VM name ifName = "vnet0"; // VM Interface ...
import { IBroadcastSubject, IBroadcast } from '../Interface/I_Broadcast'; export default class Broadcast implements IBroadcast { private __SUBSCRIBE_MAP__: Map<string, IBroadcastSubject[]>; constructor() { this.__SUBSCRIBE_MAP__ = new Map<string, IBroadcastSubject[]>(); } public subscribe(beh...
//===----------------------------------------------------------------------===// // // This source file is part of the VSCode Swift open source project // // Copyright (c) 2021 the VSCode Swift project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIBUTORS.txt fo...
import { CompteurAPI } from "."; import { FamilleAPI, ModeleAPI, TypeProduitAPI } from "../.."; import { LocalisationAPI, TypeLocalisationInterneAPI, } from "../../../localisation"; export interface Vehicule { IDProduit: number; sRefProduit: string; sFKTypeProduit: string; sCodeNatureProduit: string; sLi...
import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { map } from 'rxjs/operators'; import { TableColumn } from '@swimlane/ngx-datatable'; import { Subscription, forkJoin } from 'rxjs'; import { RoleInfo, SingleUserInfo } from 'src/app/core/s...
/** * Gets a random number from zero (inclusive) to max (exclusive). * @param max Max number exclusive. * @category Math */ export function randInt(max: number): number { return Math.floor(Math.random() * max); } /** * Get a random element from given array. * @param arr Array to select from. * @typeParam T ...
/** * Returns the _actual_ type of the given tree node. (Or throws) * * @export * @param {IStateTreeNode} object * @returns {IType<S, T>} */ export function getType<S, T>(object: IStateTreeNode): IType<S, T> { return getStateTreeNode(object).type } /** * Returns the _declared_ type of the given sub property...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import * as path from 'path'; import { Uri } from 'vscode'; import { IWorkspaceService } from '../common/application/types'; import { IFileSystem } from '../common/platform/types'; import { nbformat } from '...
import { Component, OnInit, Input, Output, EventEmitter, SimpleChanges, OnChanges } from '@angular/core'; import { CronOptions } from './CronOptions'; import { Days, MonthWeeks, Months } from './enums'; import Utils from './Utils'; @Component({ selector: 'cron-editor', templateUrl: './cron-editor.component.html',...
import { CommunicationBus, CommunicationHandleCallback, MessageMetadata, } from '@time-neko/shared/domain/types'; import Emittery from 'emittery'; import { Observable, Subscription } from 'rxjs'; export class LocalCommunicationBus< Operations extends Record<string, MessageMetadata> > implements CommunicationBu...
/** * @license * Copyright 2017 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * Es6 module for constant definitions. * * @file * @module * * @author hello@ulrichmerkel.com (Ulrich Merkel), 2021 */ export const CLASSNAME_IS_LAZY_LOADED = 'is-lazy-loaded';
import React from 'react'; import { Trans } from '@lingui/macro'; import { FormatLargeNumber } from '@aloe/core'; import FarmCard from './FarmCard'; import usePlots from '../../../hooks/usePlots'; export default function FarmCardPlotCount() { const { uniquePlots } = usePlots(); return ( <FarmCard title=...
import { _DataSource, _UnmarshalledDataSource } from "./_DataSource"; import { _Source, _UnmarshalledSource } from "./_Source"; import { _SslConfiguration, _UnmarshalledSslConfiguration } from "./_SslConfiguration"; import { _EnvironmentVariable, _UnmarshalledEnvironmentVariable } from "./_EnvironmentVariable";...
export * from './components/DetailsList/index';
import defaults from 'lodash/defaults'; import { getBackendSrv } from '@grafana/runtime'; import { DataQueryRequest, DataQueryResponse, DataSourceApi, DataSourceInstanceSettings, MutableDataFrame, FieldType, dateTimeFormatISO, } from '@grafana/data'; import { MyQuery, MyDataSourceOptions, defaultQuery ...
namespace ts { function verifyMissingFilePaths(missingPaths: readonly Path[], expected: readonly string[]) { assert.isDefined(missingPaths); const map = new Set(expected); for (const missing of missingPaths) { const value = map.has(missing); assert.isTrue(value, `${mi...
export declare class SohoAutoCompleteModule { }
import I = CodeceptJS.I import { DateParser } from 'integration-test/utils/date-parser' const I: I = actor() const fields = { day: 'input[id="date[day]"]', month: 'input[id="date[month]"]', year: 'input[id="date[year]"]', reason: 'textarea[id=reason]' } const buttons = { submit: 'input[type=submit]' } exp...
export const Endpoints = { TravelInformation: { Stations: '/api/travelinformation/stations' } };
/* eslint-disable @typescript-eslint/no-unused-vars */ import {Injectable} from '@angular/core'; import {HsUtilsService} from '../../../utils/utils.service'; @Injectable({providedIn: 'root'}) export class HsCatalogueMetadataService { constructor(public hsUtilsService: HsUtilsService) {} /** * @param input - ...
import { ConfParams, config } from '../utils/config'; import { recompress, recompressOptions } from 'dicom-dimse-native'; import { LoggerSingleton } from '../utils/logger'; export async function compressFile(inputFile: string, outputDirectory: string, transferSyntax: string | undefined = undefined) { const logger = ...
import { InspectorContext } from '../InspectorContext'; import { JSONValue } from './JSONValue'; import { Pane, PaneParams } from './Pane'; import { PaneRoot } from './PaneRoot'; import { useContext, useEffect, useState } from 'react'; const JSONPane = ( params: PaneParams ): JSX.Element => { const { inspector } = u...
// An alternative fs for the browser and testing import { createFsFromVolume, IFs } from "memfs"; import { Volume } from "memfs/lib/volume"; const assert = (cond: boolean, message: string) => { if (!cond) { throw new Error(message); } }; export default class WasmFs { volume: Volume; fs: IFs; construct...
import {App, DropdownComponent, Notice, PluginSettingTab, Setting} from 'obsidian'; import { appHasDailyNotesPluginLoaded } from 'obsidian-daily-notes-interface'; import { whiteNoiseUrl } from './audio_urls'; import FlexiblePomoTimerPlugin from './main'; import { WhiteNoise } from './white_noise'; import {FolderSuggest...
/* tslint:disable */ import { GroupAlarms } from './group-alarms'; /** * The event data structure */ export interface GroupAlarmsCreateEventPayload { groupAlarms?: GroupAlarms; }
import React, { useEffect } from "react"; import "./index.less"; import { Logo } from "@/component/logo"; import i18n from "@/i18n/i18n"; import { SearchHead } from "@/component/search"; import { PAGE } from "@/constants/enum"; import { observer } from "mobx-react"; import { useStore } from "@/store/rootStore"; const ...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { IMaid } from "../IMaid"; export class IMaid__factory { static connect(address: string, signerOrProvider: Signer | P...
import { Injectable } from '@angular/core'; function _window(): any { return window; } @Injectable({ providedIn: 'root' }) export class WindowRefService { get nativeWindow(): any { return _window(); } }
import { getPage } from '../index'; const nextRoot = __dirname + '/__fixtures__'; describe('Options errors handling', () => { describe('route doesn\'t start with "/"', () => { it('throws error', async () => { await expect( getPage({ nextRoot, route: 'blog', }) ).re...
import { Component, OnInit, Input } from '@angular/core'; import { trigger, state, style, animate, transition, keyframes } from '@angular/animations'; import { Logo } from '../../service/data/logo'; import { dealService } from '../../service/deal.service'; @Component({ selector: 'grid-logo', templateUrl: './g...
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import Home from '../pages/Home'; import Reader from '../pages/Reader'; import Register from '../pages/Register'; import RegisterMulti from '../pages/RegisterMulti'; const Routes: React.FC = () => ( <Switch> <Route path="/" exact compo...
import { Locale, startOfToday } from 'date-fns'; import { IconComponent, IconPropSize } from '../../icons/Icon/Icon'; import { range } from '../../utils/array'; import { getByMap } from '../../utils/getByMap'; import { DateRange } from '../../utils/types/Date'; import { PropsWithHTMLAttributesAndRef } from '../../util...
import React from 'react' import type {ScreenProps} from 'shared/navigation' import {useNavigation} from 'shared/navigation' import {Text, Button} from 'components' import {Container} from './components/container' import {Card} from './components/card' export default function SmsVerificationScreen({ route, }: Screen...
import ShowSupportPage from './ShowSupportPage' export const generated = () => { return <ShowSupportPage /> } export default { title: 'Pages/ShowSupportPage' }
const Sun = ({ ...props }) => { return ( <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" fill="none" shapeRendering="geometricPrecision" {...props} > <circle c...
/** * DropDownList module spec document */ import { select, selectAll, isNullOrUndefined, L10n } from '@syncfusion/ej2-base'; import { DataManager, Query, ODataV4Adaptor } from '@syncfusion/ej2-data'; import * as classes from '../../src/inplace-editor/base/classes'; import { renderEditor, destroy } from './../render....
// React apps populate a process variable, however it might not always be accessible outside // (e.g. cypress will instead use it's own env to populate a prefix) const e = process ? process.env : ({} as any) /** * A prefix can be used to simplify large-scale schema changes or multisite hosting * and allow multiple s...
/** * Copyright (c) 2021 OpenLens Authors * * 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, modify, merge, p...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { BMICalculatorRoutingModule } from './bmi-calculator-routing.module'; import { BMICalculatorComponent } from './bmi-calculator.component'; import { FormsModule } from '@angular/forms'; import { NavbarModule } from 'src/ap...
import { app, BrowserWindow } from 'electron'; declare const MAIN_WINDOW_WEBPACK_ENTRY: any; import path from 'path'; require('@electron/remote/main').initialize(); // Handle creating/removing shortcuts on Windows when installing/uninstalling. if (require('electron-squirrel-startup')) { // eslint-disable-line globa...
import { Component, Element, h, Host, Listen, JSX, Prop } from '@stencil/core'; import simulateNativeEvent from '../../../utils/dom/simulate-native-event'; import clamp from '../../../utils/number/clamp'; import { trackComponent } from '../../../usage-tracking'; @Component({ styleUrl: 'gux-rating.less', tag: 'gux...
export default { a: { value: 'አ', next: null, }, e: { value: 'እ', next: { e: { value: 'ኤ', next: null, }, }, }, i: { value: 'ኢ', next: { e: { value: 'ኤ', ...
// Copyright 2015 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
// Import here Polyfills if needed. Recommended core-js (npm i -D core-js) // import "core-js/fn/array.find" // ... export default class DummyClass {} // /** // * This class represents the overarching wallet which can contain different // * pouches (accounts for different currencies) // */ // export class Wallet { ...
import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; import { TranslateModule } from '@ngx-translate/core'; import { ElectronService } from './shared'; describe('AppComponent', () => { beforeEach(async((...
import { AppComponent as SliderConfigurableComponent } from './app.component'; const sliderConfigurableExampleConfig = { title: 'Configurable Slider', component: SliderConfigurableComponent, files: [ { file: 'app.component.html', content: require('!!highlight-loader?raw=true&lang=html!./app.compo...
import * as React from 'react'; import { SelectOptionObject } from './SelectOption'; export interface SelectContextInterface { onSelect: ( event: React.MouseEvent<any, MouseEvent> | React.ChangeEvent<HTMLInputElement>, value: string | SelectOptionObject, isPlaceholder?: boolean ) => void; onClose: ()...
import { IWorld, IWorldObject, World } from './world'; class WorldObject implements IWorldObject { world: IWorld; } class WorldObjectWithCallbacks implements IWorldObject { world: IWorld = null; added: boolean = false; onAddToWorld(world: IWorld) { this.added = true; } onRemoveFromWorld(world: IWorld)...
import React from 'react'; import Modal from '../../Modal'; import * as S from './styles'; interface INotificationModal { showNotificationModal: boolean; setShowNotificationModal: (boolean: boolean) => void; } const NotificationModal: React.FC<INotificationModal> = ({ showNotificationModal, setShowNotificat...
import { SchemaRoot, Query, Field, ObjectType, compileSchema } from 'decapi' function StringWithDescription(additionalDescription: string) { return Field({ type: String, description: `This is custom field. Additional description: ${additionalDescription}` }) } function ExplicitNameObjectType(name: string)...
import { Test } from 'nodeunit'; import { Construct, Root } from '../../lib/core/construct'; import { ITaggable, TagManager } from '../../lib/core/tag-manager'; class ChildTagger extends Construct implements ITaggable { public readonly tags: TagManager; constructor(scope: Construct, id: string) { super(scope, ...
// *** 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"; /*...
export const releaseRules = [ { release: 'patch', type: 'build' }, { release: 'patch', type: 'ci' }, { release: 'patch', type: 'chore' }, { release: 'patch', type: 'docs' }, { release: 'patch', type: 'refactor' }, { release: 'patch', type: 'style' }, { release: 'patch', type: 'test' }, ];
/** * Details about the complexity of the analysed Jira expression. */ export interface JiraExpressionComplexity { /** Information that can be used to determine how many [expensive operations](https://developer.atlassian.com/cloud/jira/platform/jira-expressions/#expensive-operations) the evaluation of the expressi...
describe('wdm', () => { it.todo('wdm') })
import { css } from 'lit'; import componentStyles from '../../styles/component.styles'; export default css` ${componentStyles} :host { display: inline-block; } .dropdown { position: relative; } .dropdown__trigger { display: block; } .dropdown__positioner { position: absolute; z-...
import { TABLE_ADDED_TYPE, TABLE_EDIT_TYPE } from '../table-edit-row/constants'; import { TABLE_DATA_TYPE } from '../table/constants'; import { TABLE_HEADING_TYPE } from '../table-header-row/constants'; import { TABLE_EDIT_COMMAND_TYPE } from './constants'; import { IsSpecificCellFn } from '../../types'; export const ...
export class PermissionList { NAME: string; DESCRIPTION: string; CREATED_BY: string; CREATE_TIME: string; CHANGED_BY: string; CHANGE_TIME: string; INSTANCE_GUID: string; } export class UserList { USER_ID: string; USER_NAME: string; DISPLAY_NAME: string; LOCK: boolean; PWD_STATE: string; INSTA...
import * as React from "react"; import * as Vex from "vexflow"; import { IRhythmNote, RhythmPlayer } from "../../RhythmPlayer"; import { VexFlowComponent } from "../Utils/VexFlowComponent"; import { Rational } from "../../lib/Core/Rational"; import { noteDurationToVexFlowStr } from '../../ui/VexFlowUtils'; import { Ti...
import fs, { NoParamCallback } from 'fs' interface Item{ value: string, children: Item[] } type actionType = 'addChild' | 'changeValue' | 'remove' async function getFileData(): Promise<Object>{ const data = fs.readFileSync('database.json', 'utf8') return data } async function setFileData(data: str...
import { useApolloClient } from '@apollo/react-hooks'; import { Container, Typography } from '@material-ui/core'; import React, { FC, useEffect } from 'react'; import EventList from '../EventList'; import LatestSermon from '../LatestSermon'; import StepList from '../StepList'; const HomeContainer: FC = () => { const...
import { render, screen } from '@testing-library/react'; import { Formik, useFormikContext } from 'formik'; import React, { ComponentPropsWithRef, ReactNode } from 'react'; import TextField from './TextField'; interface RenderProps { label: string; required?: boolean; type?: ComponentPropsWithRef<typeof TextFiel...
export = GeoJsonGeometriesLookup; declare class GeoJsonGeometriesLookup { /** * Create an instance of the GeoJSON lookup class. * @public * @param {Object} geoJson The GeoJSON for which create the lookup data. * @param {Object} [options] Optional options. * @param {boolean} options.ignor...
import ToolbarDropdown from '../ToolbarDropdown/ToolbarDropdown'; import { Durations, serverConfig } from '../../config/ServerConfig'; import * as React from 'react'; import { DurationInSeconds } from '../../types/Common'; import { KialiAppState } from '../../store/Store'; import { durationSelector } from '../../store/...
import 'module-alias/register'; import MagmaBuilder from '@src/structures/MagmaBuilder'; export { MagmaBuilder, }
import React from 'react'; const ListHeader = (prop: { title: string }) => { return ( <div className="block mt-4 mb-2 text-xl font-bold text-slate-50"> {prop.title} </div> ); }; export default ListHeader;
import { User } from "./user"; import { Project } from "./project"; export class Team { name: string; members: User[]; projects: Project[]; constructor(name, users) { this.name = name this.members = users } public getName() { return this.name; } }
/// <reference types="svelte" /> import { SvelteComponentTyped } from "svelte"; export interface FaceSatisfiedProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["svg"]> { tabindex?: string; /** * @default "currentColor" */ fill?: string; } export default class FaceSatisfied extends SvelteCom...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import * as nls from 'vscode-nls'; nls.config({ messageFormat: nls.MessageFormat.bundle, bundleFormat: nls.BundleFormat.standalone })(); const localize: nls.LocalizeFunc = nls.loadMessageBundle(); import * as vscode from 'vscode'; import { Org...
import { AsyncThunk, AsyncThunkAction } from '@reduxjs/toolkit'; import { useMemo } from 'react'; import { ActionCreatorsMapObject, bindActionCreators } from 'redux'; import { useDispatch } from 'react-redux'; import { FunctionParam } from '../types'; type ReturnThunk<T extends AsyncThunk<any, any, any>> = T extends ...
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; @Component({ selector: 'app-default-modal', templateUrl: './default-modal.component.html', styleUrls: ['./default-modal.component.scss'] }) export class DefaultModalComponent implements OnInit { @Output() close = new EventEmitter()...
import { FormControlOptions, useFormControl } from "@chakra-ui/form-control" import { chakra, forwardRef, PropsOf, useMultiStyleConfig, omitThemingProps, ThemingProps, } from "@chakra-ui/system" import { cx, __DEV__ } from "@chakra-ui/utils" import * as React from "react" interface InputOptions { /** ...
import { boolean } from '../../..' export const Struct = boolean() export const data = 'invalid' export const failures = [ { value: 'invalid', type: 'boolean', path: [], branch: [data], }, ]
declare type ListType = "pick" | "value"; export declare function keyboardNavigation(listType: ListType): void; export declare function selectionAndDeselection(listType: ListType): void; export declare function filterBehavior(listType: ListType): void; export declare function disabledStates(listType: ListType): void; e...