text
stringlengths
10
953k
import { ComponentMeta } from '@storybook/react'; import { withRouter, withProvider, withWeb3Provider, withMarketContext, withVaiContext, } from 'stories/decorators'; import Vault from '.'; export default { title: 'Pages/Vault', component: Vault, decorators: [withRouter, withProvider, withWeb3Provider,...
/* * Copyright 2019 ThoughtWorks, 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 agr...
import * as install from '../src/install'; import * as utils from '../src/utils'; /** * Mock install.ts */ jest.mock('../src/install', () => ({ getScript: jest .fn() .mockImplementation(async (os: string): Promise<string> => { const filename = os + (await utils.scriptExtension(os)); const versi...
import { IsOptional, IsString, Length, MaxLength, } from 'class-validator'; export class ConnectDto { @MaxLength(30) @IsString() @IsOptional() nick: string; @Length(6, 64) @IsString() password: string; }
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AppComponent } from './app.component'; const routes: Routes = [ { path: '', redirectTo: '', pathMatch: 'full' }, { path: 'lazy', loadChildren: './lazy/lazy.module#LazyModule' } ]; @Ng...
import chalk from 'chalk'; import { dependents, DependentsResults } from '../../../api/consumer/lib/dependents'; import { CommandOptions, LegacyCommand } from '../../legacy-command'; import { generateDependentsInfoTable } from '../../templates/component-template'; export default class Dependents implements LegacyComma...
export interface CreateOptions { backupID?: string; maxMessagesPerChannel?: number; jsonSave?: boolean; jsonBeautify?: boolean; doNotBackup?: string[]; saveImages?: string; }
import { PlatformData } from '@sorry-cypress/common'; import md5 from 'md5'; import uuid from 'uuid/v4'; export const generateRunIdHash = ( ciBuildId: string, message: string, projectId: string ) => { return md5(ciBuildId + message + projectId); }; // not sure how specific that should be export const generate...
import { _Greater } from './Greater'; import { IterationOf } from '../Iteration/IterationOf'; import { Iteration } from '../Iteration/Iteration'; /** * @hidden */ export declare type _Lower<N1 extends Iteration, N2 extends Iteration> = _Greater<N2, N1>; /** * Check if a [[Number]] is lower than another one * @param...
import { Component, Element, Prop, State, h } from '@stencil/core'; import moment from 'moment-mini'; import { renderHiddenField } from '../../utils/utils'; @Component({ tag: 'fw-timepicker', shadow: true, }) export class Timepicker { @Element() host: HTMLElement; /** * State for all the time value\s ...
import * as React from 'react' import Highlight from '../highlight' import Card from './card' interface EssayCardProps { time: string content: string category: string url: string childFile?: { childImageSharp: { fluid: any } } } export default (props: EssayCardProps) => { function fold (...
// Copyright 2020 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 // (Re-)generated by schema tool // >>>> DO NOT CHANGE THIS FILE! <<<< // Change the json schema instead import * as wasmlib from "wasmlib" import * as sc from "./index"; export class ImmutableArrayClearParams extends wasmlib.ScMapID { name(...
// Type definitions for ag-grid-community v21.2.1 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ag-grid/> export { ColumnFactory } from "./dist/lib/columnController/columnFactory"; export { ColumnController } from "./dist/lib/columnController/columnController"; export { ColumnK...
import { NgTable } from './table.component'; export declare class NgTableMore { table: NgTable; private _rangeVisible; private _label; label: Object; ngTable: NgTable; rangeVisible: boolean; actionRange(e: any): void; }
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm'; @Entity() export class Users { @PrimaryGeneratedColumn('uuid') id: string; @Column() email: string; @Column() hash: string; @Column() salt: string; @Column({ default: true }) isActive: boolean; }
import { addArticleCategory } from '../../../db'; import { AddArticleCategoryRequest } from '../../../../models/requests'; import { AddArticleCategoryResponse, AddArticleCategoryResponseBody } from '../../../../models/responses'; /** * Handle addArticleCategory -request * @param request - Express request * @param r...
import * as React from 'react'; import type { StackNavigationProp } from '@react-navigation/stack'; export declare const examples: Record<string, React.ComponentType<any> & { title: string; }>; declare type Props = { navigation: StackNavigationProp<{ [key: string]: undefined; }>; }; export default f...
import * as cdk from 'aws-cdk-lib'; import { Template } from 'aws-cdk-lib/assertions'; import * as Cdk from '../lib/cdk-stack'; test('Validate stack resources', () => { const app = new cdk.App(); const stack = new Cdk.CdkStack(app, 'MyTestStack'); const template = Template.fromStack(stack); template.resource...
import * as colors from './colors'; import { Breakpoints, PreciseFullTheme, ButtonThemeSettings, FlyoutStyling, MetroInfoTileStyling, AccordionCardStyling, } from './common'; import { distance } from './distance'; import { remCalc } from './utils/remCalc'; const colorCycle = [ colors.indigo, colors.gre...
import { Component, OnInit } from '@angular/core'; import { SharedService } from '../../../layouts/shared-service'; import * as L from 'leaflet'; @Component({ selector: 'page-leaflet-map', templateUrl: './leaflet-map.component.html', styleUrls: ['./leaflet-map.component.scss'] }) export class PageLeafletMapCompo...
/** * PdfReference.ts and PdfReferenceHolder.ts class for EJ2-PDF */ import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives'; import { ObjectStatus } from './../input-output/enum'; import { DictionaryProperties } from './../input-output/pdf-dictionary-properties'; import { PdfDocument } from './../documen...
import {OpenRapConfigurable} from '../../open-rap-configurable'; export interface TelemetryConfig extends OpenRapConfigurable { deviceRegisterHost: string; deviceRegisterApiPath: string; telemetryApiPath: string; telemetrySyncBandwidth: number; telemetrySyncThreshold: number; telemetryLogMinAll...
import React from "react" import Helmet from "react-helmet" import { useStaticQuery, graphql } from "gatsby" type Props = { description?: string lang?: string meta?: object[] title: string } const SEO: React.FC<Props> = ({ description, lang, meta, title }) => { const { site } = useStaticQuery( graphql` ...
import * as fs from 'fs-extra'; import archiver from 'archiver'; import * as path from 'path'; import ora from 'ora'; const DIR_NOT_FOUND_ERROR_MESSAGE = 'Please ensure your build path exist'; const ZIPPING_MESSAGE = 'Zipping artifacts.. '; const ZIPPING_SUCCESS_MESSAGE = 'Zipping artifacts completed.'; const ZIPPING_...
function FireIcon(props: React.SVGProps<SVGSVGElement>) { return ( <svg viewBox="0 0 20 20" fill="currentColor" {...props}> <path fillRule="evenodd" d="M12.395 2.553a1 1 0 00-1.45-.385c-.345.23-.614.558-.822.88-.214.33-.403.713-.57 1.116-.334.804-.614 1.768-.84 2.734a31.365 31.365 0 00-.613 ...
/** * @license * Copyright 2017 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 ...
// Copyright 2017-2022 @polkadot/keyring authors & contributors // SPDX-License-Identifier: Apache-2.0 // Do not edit, auto-generated by @polkadot/dev export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '9.2.2-6' };
import { UISearchTypes } from '@/enums' import { IndividualNameIF, SearchTypeIF, SearchValidationIF } from '@/interfaces' // subset of the localState that includes what the validator needs type partialSearchState = { debtorName?: IndividualNameIF searchValue?: string, searchValueFirst?: string, searchValueSeco...
import * as React from 'react' import FormControl from '@material-ui/core/FormControl' import NativeSelect from '@material-ui/core/NativeSelect' import Input from '@material-ui/core/Input' import InputLabel from '@material-ui/core/InputLabel' interface Props { className?: string onChange?: (name: string, value...
/** * resolve-row-key.ts * * Forked from reactabular-table version 8.14.0 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src */ import { isArray } from 'lodash'; import { RowType, RowKeyType } from './types'; /** * @param {{rowData: RowType, rowIndex: number, rowKey: RowKey...
export { default as Size } from './size'; export { default as Point } from './point'; //# sourceMappingURL=geometry.d.ts.map
/** * Swap two elements of an array in place. */ export function swap(list: any[], a: number, b: number) { const temp = list[a] list[a] = list[b] list[b] = temp return list } /** * Convert a Buffer or a DataView to an array. * * @param obj a Buffer or a DataView instance */ export function toArray(obj: B...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ChannelComponent } from './modules-detail/channels/channel.component'; import { ChannelsListComponent } from './modules-detail/channels/channels-list/channels-list.component'; import { ChatBotCreateComponent } fr...
// JoinStyle.ts // // Copyright (c) 2016 Zach Deibert // // 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, modif...
import { BareHttp } from '../index'; const app = new BareHttp({ logging: false }); app.get({ route: '/simple_route', handler: function simpleRoute() {}, }); app.declare({ route: '/multiple_declaration_route', handler: function multipleDeclarationRoute() {}, methods: ['get', 'post'], }); const wait = () =>...
export default { type: "object", $id: "design", properties: { children: { type: "array", items: { type: "object", properties: { data: { type: "object", }, child...
import { Routes, RouterModule } from '@angular/router'; import { DashboardComponent } from './components/dashboard/dashboard.component'; import { HeroesComponent } from './components/heroes/heroes.component'; import { HeroDetailComponent } from './components/heroDetail/hero-detail.component'; const appRoutes:...
// Copyright 2020 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 { Node } from "../node"; import { PrintableCollection } from "../printable"; import { IQueue } from "src/lib/queue/queue"; /** * Advantages over arrays 1) Dynamic size 2) Ease of insertion/deletion Drawbacks: 1) Random access is not allowed. We have to access elements sequentially starting from th...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license information. *----------------------------------------------------------------...
import { IAction } from "../typeDefs/action"; import { IAtcViolMsgAppState } from "../typeDefs/atcViolMsgAppState"; import { ActionType } from "./actionType"; export interface ISetShInchPayload { shInch: string } export interface ISetShInchAction extends IAction { type: ActionType.SET_SH_INCH, payload: IS...
import AzureMonitorDatasource from '../datasource'; import { TemplateSrv } from 'app/features/templating/template_srv'; import { DataSourceInstanceSettings } from '@grafana/data'; import { backendSrv } from 'app/core/services/backend_srv'; // will use the version in __mocks__ import { AzureDataSourceJsonData } from '....
import React, { useState, useEffect } from 'react'; import dgram from 'dgram'; import { Row, Col, Button, ProgressBar, Card, Carousel } from 'react-bootstrap'; import Long_Table from '../Components/Tables/Long_Table'; import Mini_Table from '../Components/Tables/Mini_Table'; import MixChart from '../Components/MixChart...
import to from 'await-to-js' import {Pool} from 'pg'; import mist_config from '../../cfg' import {ITrade,IToken} from '../interface' const express_params = 'trade_id,address,base_asset_name,cast(base_amount as float8),cast(price as float8),quote_asset_name,cast(quote_amount as float8),cast(fee_rate as float8),fee_toke...
import React from 'react'; import { shallow } from 'enzyme'; import Autocomplete from '../../src/components/Autocomplete'; import Multicomplete from '../../src/components/Multicomplete'; import MulticompleteChip from '../../src/components/Multicomplete/private/Chip'; import MutedButton from '../../src/components/MutedB...
/* * 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...
import { createGlobalStyle } from 'styled-components'; export const GlobalStyle = createGlobalStyle` html, body { height: 100%; width: 100%; } body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; } #root { min-height: 100%; min-width: 100%; } p, label { font-...
import * as core from "@actions/core"; import * as github from "@actions/github"; import * as yaml from "js-yaml"; import { Minimatch, IMinimatch } from "minimatch"; interface MatchConfig { all?: string[]; any?: string[]; } type StringOrMatchConfig = string | MatchConfig; export async function run() { try { ...
import React from 'react' import {Table} from "antd"; import './Components.css'; import {Transaction} from "../models/Transaction"; const TransactionLedger: React.FunctionComponent<{ currentVaspId: string transactions: Transaction[] onTransactionSelected: (transaction: Transaction) => void }> = (props) =>...
export { ChartContainer } from './ChartContainer'; export { CommentList } from './CommentList'; export { TooltipPrompt } from './TooltipPrompt'; export { Login } from './Login'; export { ProjectList } from './ProjectList'; export { UserList } from './UserList'; export { BaseChartTooltip } from './BaseChartTooltip';
import { Ast } from "../Ast/Ast"; import { Errores } from "../Ast/Errores"; import { Nodo } from "../Ast/Nodo"; import { Primitivo } from "../Expresiones/Primitivo"; import { Instruccion } from "../Interfaces/Instruccion"; import { Simbolo } from "../TablaSimbolos/Simbolo"; import { TablaSimbolos } from "../TablaSimbol...
import { Config } from '@stencil/core'; import {sass} from '@stencil/sass'; export const config: Config = { namespace: 'sm-calendar', plugins: [ sass({ includePaths: [ 'src/components', ] }) ], outputTargets: [ { type: 'dist' }, { type: 'docs-readme' }, ...
import { mockPartial } from "sneer"; import { TestExecutionContext } from "@sakuli/core"; import { SimpleLogger } from "@sakuli/commons"; export function createTestExecutionContextMock() { return mockPartial<TestExecutionContext>({ startTestSuite: jest.fn(), startTestCase: jest.fn(), startT...
import React, { useCallback, useState, useRef, useEffect, useMemo } from 'react'; import { Editor, Point, Location, Range, Transforms } from 'slate'; import styled from 'styled-components'; import { useEditor, useSlate, ReactEditor } from 'slate-react'; import { PortalBody } from 'slate-plugins-next'; import { MENTION_...
/** * * * OpenAPI spec version: 20200430 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ...
import { IPoint } from '../classes'; import { FaceExpressions } from '../faceExpressionNet'; import { WithFaceExpressions } from '../factories/WithFaceExpressions'; export declare type DrawFaceExpressionsInput = FaceExpressions | WithFaceExpressions<{}>; export declare function drawFaceExpressions(canvasArg: string | H...
const routes: RouteConfig[] = [ { path: '/alert-modal', key: 'AlertModal', windowOptions: { title: 'Alert', width: 460, height: 240, resizable: false, }, createConfig: { showTitlebar: false, hideMenus: true, }, }, ] export default routes
import CommonBase from './CommonBase'; import * as bindings from '../bindings' // TODO: figure out location export default class Ping extends CommonBase { constructor(_dummy: object, ptr: number) { super(ptr); } protect...
import React from 'react'; import { Select } from '@mantine/core'; const code = ` const data = Array(50) .fill(0) .map((_, index) => ({ value: \`\${index}\`, label: \`Item \${index}\`, })); <Select label="What item is the best?" placeholder="Pick one" searchable nothingFound="No options" maxDropdownHeig...
import { Directive } from '@angular/core'; @Directive({ selector: '[sharedScrollableContent]', host: { '[style.overflow]': '"auto"', '[style.width]': '"100%"' } }) export class ScrollableContentDirective { constructor() {} }
/// <reference types="node" /> import { LedgerProvider } from '@liquality/ledger-provider'; import { BitcoinNetwork } from '@liquality/bitcoin-networks'; import { bitcoin } from '@liquality/types'; import HwAppBitcoin from '@ledgerhq/hw-app-btc'; import { BIP32Interface } from 'bip32'; declare type WalletProviderConstr...
/** * DeliveryChoiceEnum used to know distinct mission status (ordered). */ export enum DeliveryChoiceEnum { hub = "hub", retailpoint = "retailpoint", user = "user", } /** * Delivery traduction enum */ export enum DeliveryTradEnum { fresh = "frais", climb = "Monter la commande", containWate...
/** * Interface for Hash example. */ export interface HashInterface { data: string, hash: string }
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import path from 'path'; export class Globals { private static _version?: string; private static _rootPath?: string; static set version(version: string) { ...
import { VcComponentInternalInstance } from '@vue-cesium/utils/types' import useCommon from '../use-common' import { mergeDescriptors } from '@vue-cesium/utils/merge-descriptors' import { onUnmounted, provide, watch, WatchStopHandle } from 'vue' import { vcKey } from '@vue-cesium/utils/config' import { cloneDeep, diffe...
import typescript from 'rollup-plugin-typescript2' import sourceMaps from 'rollup-plugin-sourcemaps' import JsonPlugin from 'rollup-plugin-json' const json = require('./package.json') export default { input: './src/main.ts', output: [ { file: json.main, format: 'umd', name: 'MyPromise', ...
// (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 chalk from 'chalk'; import { Request, Response } from 'express'; import * as customError from 'http-errors'; import { Env } from '../../config'; import ErrorPayload from './ErrorPayload'; const provideStacktrace = Env === 'development'; export function expressHandler(error: any, req: Request, res: Response, ...
import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {AuthGuard} from '../core/guards/auth.guard'; const routes: Routes = [ { path: 'sign_in', loadChildren: () => import('./sign-in/sign-in.module').then(m => m.SignInPageModule) }, { path: 'switch_org', ...
import { BaseStore } from "../extends/base-store"; import { ImasterContent } from "../interfaces/imaster-content"; import { FormService } from "../services/form.service"; export class TitlesStore extends BaseStore { private server: FormService; /** * r * @description Obtener titulos profecionales y guardarl...
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/do'; import 'rxjs/add/operator/catch'; import { Observable } from 'rxjs/Rx'; @Injectable() export class UsersService { private url: string = "http://jsonplaceholder.typicode.c...
import React from 'react' import * as MUI from '@material-ui/core' import { Merge } from 'type-fest' import { Colors } from '@monorail/helpers/color' import styled from '@monorail/helpers/styled-components' import * as Icons from '@monorail/v2/icons/Icons' import { OmitBannedProps, propBlockerConfig } from '@monorail/...
import { Space, SpaceScale } from '../types'; import { utils } from '../utils'; const { pxToRem } = utils; const spacePalette: SpaceScale = { 0: 0, 4: 4, 8: 8, 12: 12, 16: 16, 24: 24, 32: 32, 48: 48, 64: 64, 80: 80, 96: 96, 128: 128, 160: 160, 240: 240, 320: 320, 480: 480, 640: 640, ...
import { ArticleEntity } from './article.entities'; import { classToPlain } from 'class-transformer'; import { User } from './../auth/user.decorator'; import { UserEntity } from './user.entities'; import { Column, Entity, ManyToOne, OneToMany } from 'typeorm'; import { AbstractEntity } from './abstract.entities'; @Ent...
export * from './from/parseAgilentEOS';
import { describeMetric } from '../../../../utils'; import { useQuery } from '../../OpenSearchQueryContext'; import { BucketAggregation } from '../aggregations'; import { bucketAggregationConfig, orderByOptions, orderOptions } from '../utils'; const hasValue = (value: string) => (object: { value: string }) => object.v...
import {Injectable} from '@angular/core'; import {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot} from '@angular/router'; import {Observable} from 'rxjs/Observable'; import {AppStorageService} from '../../shared/service/appstorage.service'; import {AppInfo} from '../../../app.info'; @Injectable() ex...
import { Test, TestingModule } from '@nestjs/testing'; import { HeartbeatsService } from './heartbeats.service'; import { SchedulerRegistry } from '@nestjs/schedule'; describe('HeartbeatsService', () => { let service: HeartbeatsService; beforeEach(async () => { const module: TestingModule = await Test.createT...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import * as chai from 'chai'; import NoOpAudioVideoController from '../../src/audiovideocontroller/NoOpAudioVideoController'; import NoOpDeviceController, { DestroyableNoOpDeviceController, } from '../../src...
<TS language="ur_PK" version="2.1"> <context> <name>AboutDialog</name> </context> <context> <name>AddressBookPage</name> <message> <source>Double-click to edit address or label</source> <translation>ایڈریس یا لیبل میں ترمیم کرنے پر ڈبل کلک کریں</translation> </message> <message> ...
/** * https://simplestatistics.org/docs/#rsquared */ declare function rSquared( x: number[][], func: (x: number) => number ): number export default rSquared;
import { PublicKey, SystemProgram } from '@solana/web3.js'; import { Signer } from '@/types'; import { TransactionBuilder } from '@/utils'; export interface CreateAccountBuilderParams { space: number; lamports: number; payer: Signer; newAccount: Signer; program?: PublicKey; instructionKey?: string; } expo...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sah" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Carboncoin Core</source> <translation type="unfinished"/> </message> <message> <locati...
import React, {Fragment, Suspense} from 'react'; import {render} from 'react-dom'; import {AppContainer as ReactHotAppContainer} from 'react-hot-loader'; import Root from './containers/Root'; import {configureStore, history} from './store/configureStore'; import './app.global.css'; const store = configureStore(); co...
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { MenuService, SettingsService, TokenService, User } from '@core'; @Component({ selector: 'app-user', template: ` <button class="matero-toolbar-button matero-avatar-button" mat-button [matMenuTriggerFo...
/** * * * OpenAPI spec version: 20170907 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as sho...
/* In NativeScript, a file with the same name as an XML file is known as a code-behind file. The code-behind is a great place to place your view logic, and to set up your page’s data binding. */ import { NavigatedData, Page } from '@nativescript/core'; import { HomeViewModel } from "./home-view-model"; import { ...
export * from './GridRenderer'; export * from './component'; export * from './types'; export * from './grid-renderer-utils';
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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 } from "./types"; import * as utilities from "./utilities"; /...
/* eslint-disable @typescript-eslint/no-explicit-any */ import React from 'react'; import { RichContentTheme } from 'wix-rich-content-common'; import { TextSearchInput } from '../'; import { KEYS_CHARCODE } from '../consts'; import ModalContainer from './TextInputModalContainer'; const SearchInputModal = props => { ...
import { Alert, AlertProps } from '../..'; import { Meta, Story } from '@storybook/react'; import React from 'react'; export default { title: 'Components/Alert', component: Alert, } as Meta; const Template: Story<AlertProps> = args => <Alert {...args} />; export const $Alert = Template.bind({}); $Alert.args = { ...
import React, { useState, useEffect } from 'react'; import { toast } from 'react-toastify'; import { X } from 'react-feather'; import { useAccountState } from 'src/context/AccountContext'; import { useVerifyBackupsLazyQuery } from 'src/graphql/queries/__generated__/verifyBackups.generated'; import { getErrorContent } f...
import { Component } from '@angular/core'; @Component({ selector: 'app-buttons', templateUrl: './buttons.component.html' }) export class ButtonsComponent {}
import * as React from "react" import { observer } from "mobx-react" import { observable, action, runInAction } from "mobx" import { Modal, Timeago } from "./Forms" import { Link } from "./Link" import { AdminLayout } from "./AdminLayout" import { AdminAppContext, AdminAppContextType } from "./AdminAppContext" import ...
import { Controller, Post, Get, Patch, Delete, Param, Body, Query, } from '@nestjs/common'; import { MoviesService } from './movies.service'; import { Movie } from './entities/movie.entity'; import { CreateMovieDto } from './dto/create-movie.dto'; import { UpdateMovieDto } from './dto/update-movie.dto';...
/** * Return true if the value is a literal object. */ export default function isObject<T>(value: unknown): value is T { return typeof value === 'object' && value !== null && !Array.isArray(value); }
import React, { useEffect } from 'react'; import Head from 'next/head'; import { useTranslation } from 'react-i18next'; import StatBox from 'components/StatBox'; import styled from 'styled-components'; import { LineSpacer } from 'styles/common'; import { formatNumber } from 'utils/formatters/number'; import UIContainer...
type Props = { name?: string; label?: string; defaultChecked?: boolean; onChange?: (value: boolean) => void; }; export default function SwitchInput({ name, label, defaultChecked, onChange, }: Props) { return ( <label className="root"> <input name={name} type="checkbox" ...
<TS language="ms_MY" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klik-kanan untuk edit alamat ataupun label</translation> </message> <message> <source>Create a new address</source> <tra...
import React from "react"; export default React.memo(function _About() { return ( <> <h2>About</h2> </> ); });