text stringlengths 10 953k |
|---|
import React from 'react';
import Link from 'next/link';
import { useIntl } from 'react-intl';
import { useDesktopNavigationContext } from './DesktopNavigationContext';
import Thumbnail from '../../common/components/thumbnail';
export type Node = {
slug: string;
children: any[];
path: string[];
navigationTitl... |
/**
* @module node-opcua-client-proxy
*/
import { assert } from "node-opcua-assert";
import { makeProxyState, ProxyState } from "./proxy_state";
import { makeProxyTransition, ProxyTransition } from "./proxy_transition";
export class ProxyStateMachineType {
public initialState: ProxyState | undefined;
public... |
/*
* 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 ShopifyBuy from 'shopify-buy';
import Base64 from 'react-native-base64';
import { shopifyDomain, shopifyStorefrontAccessToken } from '../config/Shopify.json';
export default class ShopifyClient {
private static _instance?: ShopifyClient;
private _client: ShopifyBuy.Client;
public static getInstance() {
... |
import { Observable } from '../Observable';
/**
* Emits the single value at the specified `index` in a sequence of emissions
* from the source Observable.
*
* <span class="informal">Emits only the i-th value, then completes.</span>
*
* <img src="./img/elementAt.png" width="100%">
*
* `elementAt` returns an Obse... |
import { ChangeDetectionStrategy, Component } from '@angular/core';
@Component({
selector: 'app-card-view',
templateUrl: './card-view.component.html',
styleUrls: ['./card-view.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class CardViewComponent {} |
interface EnvironmentProps {
port: number;
jwt_secret: string;
db_port: number;
db_host: string;
db_user: string;
db_password: string;
db_database: string;
};
const environment: EnvironmentProps = {
port: 0,
jwt_secret: '',
db_host: '',
db_port: 0,
db_user: '',
db_password: '',
db_database:... |
import { NameRequestApplicantIF } from '@/interfaces'
import { CorrectionTypes, CorpTypeCd, NameRequestStates } from '@/enums'
export interface CorrectNameOptionIF {
id: CorrectionTypes,
title: string,
description?: string,
component: any
}
export interface NrCorrectionIF {
legalType: CorpTypeCd,
nrNumber... |
import { Observable } from "tns-core-modules/data/observable";
import { alert } from "tns-core-modules/ui/dialogs";
import { LocalNotifications } from "nativescript-local-notifications";
import { Color } from "tns-core-modules/color";
import { ScheduleOptions } from "../../src";
export class HelloWorldModel extends Ob... |
import { Globals } from './global.properties';
import {Injectable} from '@angular/core';
/**
* Global properties for the application
*
* @remarks
* initial build in Angular 7 Ionic 4
*
* @param x - NA
* @param y - NA
* @returns NA
*
*/
@Injectable({
providedIn: 'root'
})
export clas... |
import React, {useRef, useContext} from 'react';
import {View} from 'react-native';
import {useNavigation} from '@react-navigation/native';
import {FlatList, TouchableOpacity} from 'react-native-gesture-handler';
import {useTheme, Surface, Text} from 'react-native-paper';
import {material} from 'react-native-typography... |
import { SubmittableResult } from '@polkadot/api';
import type { SignerOptions } from '@polkadot/api/types';
import { SubmittableExtrinsic } from '@polkadot/api/types';
import type { Registry } from '@polkadot/types/types';
import type { Signer } from 'redspot/types';
import type { TransactionResponse } from './types';... |
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { MOTOR_DaaS_WebServices_DTO_Information_Content_DiagnosticTroubleCodes_DTCSummaryContainer } from './MOTOR_DaaS_WebServices_DTO_Information_Content_DiagnosticTroubleCodes_DTCSummaryContainer';
import type { MOTOR_DaaS_WebServices_DTO_Res... |
import * as fs from "fs";
import * as path from "path";
import {
GitLabApiClient,
MergeRequestResource,
CommitResource,
NoteResouce,
} from "../gitlab-api-client";
export class GitLabFixtureClient implements GitLabApiClient {
constructor(public fixtureName: string) {
}
loadFixtue<T>(methodName: string) ... |
/*
* 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, { useContext, useState } from 'react';
import {
EuiPanel,
E... |
// ================================================================= //
// Copyright (c) roydukkey. All rights reserved. //
// ================================================================= //
/* eslint-disable @typescript-eslint/no-type-alias */
declare module '@theme/useFrontMatter' {
impor... |
export const description = `
createTexture validation tests.
`;
import { TestGroup, poptions } from '../../../framework/index.js';
import { kTextureFormatInfo, kTextureFormats } from '../capability_info.js';
import { ValidationTest } from './validation_test.js';
class F extends ValidationTest {
getDescriptor(
... |
/// <reference types="react" />
import { Reaction } from "mobx";
export declare function printDebugValue(v: React.MutableRefObject<Reaction | null>): "<unknown>" | import("mobx").IDependencyTree; |
/*
* Copyright (c) 2019 - present Nimbella Corp.
*
* 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 a... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="la" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About SUENOSCOIN</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
import l10n from "./l10n/index";
import {
DateFormatFunc,
dateISOFormat,
IFormatter,
paragrathes as paragraphs,
paragrathes_nl,
trim,
} from "./Formatter";
import { LocaleCode } from "./LocaleCode";
import { AppointmentResultMessage } from "../messages/AppointmentResultMessage";
import { DiagnosticReportMes... |
/**
* LUSID API
*
* The version of the OpenAPI document: 0.11.3822
* Contact: info@finbourne.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { RequestFile } from './models';
import { ... |
import reduct = require('reduct')
import Ajv = require('ajv')
import { mapValues as pluck } from 'lodash'
import Accounts from './accounts'
import Config from './config'
import MiddlewareManager from './middleware-manager'
import BalanceMiddleware from '../middlewares/balance'
import AlertMiddleware from '../middleware... |
/**
* @license
* Copyright 2022 Dynatrace 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 ag... |
/*
* Copyright The OpenTelemetry 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/**
* LaratableResponseJsonInterface
* enforces how Laratable JSON should be received.
*
* @interface LaratableResponseJsonInterface
*/
interface LaratableResponseJsonInterface {
current_page: number;
data: [];
first_page_url: string;
from: number;
last_page_url: string;
next_page_url: string;
path: ... |
import React, { useState, useMemo } from 'react';
import { useNavigation } from '@react-navigation/native';
import FeatherIcon from 'react-native-vector-icons/Feather';
import {
Container,
CartPricing,
CartButton,
CartButtonText,
CartTotalPrice,
} from './styles';
import formatValue from '../../utils/forma... |
import {
animate,
state,
style,
transition,
trigger,
AnimationTriggerMetadata,
} from '@angular/animations';
const animationDuration = '350ms';
const backdropTransitionOut = 'cubic-bezier(0.4, 0.0, 1, 1)';
const backdropTransitionIn = 'cubic-bezier(0.0, 0.0, 0.2, 1)'
export const daffBackdropAnimations: {... |
import React, { useContext } from "react";
import { useModal } from "react-modal-hook";
import { MicOff, VideocamOff } from "@material-ui/icons";
import { RequestContext, TeamStreamContext } from "../contexts";
import { Participant } from "../models/room";
export default function RoomList() {
const { Link, p, Form,... |
import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip'
import classNames from 'classnames'
import React, { ReactElement } from 'react'
import { LineChartContent } from 'sourcegraph'
import { DEFAULT_LINE_STROKE } from '../colors'
import { Accessors } from '../types'
export interface TooltipContent... |
import { LOCATION_CHANGE, LocationChangeAction } from "connected-react-router";
import { getType } from "typesafe-actions";
import actions from "../actions";
import { AppsAction } from "../actions/apps";
import { IAppState, IRelease } from "../shared/types";
const initialState: IAppState = {
isFetching: false,
it... |
/// <reference types="node"/>
/// <reference types="webdriver"/>
declare namespace WebDriver {
interface ClientOptions {
isDevTools: boolean;
getPuppeteer: (...args: any[]) => any;
}
}
declare namespace DevTools {
function newSession(
options?: WebDriver.Options,
modifier?:... |
import * as React from "react";
import { useShotBase64 } from "../../hooks";
import "./ShotImage.css";
export const ShotImage: React.FC = () => {
const base64 = useShotBase64();
return (
<div className="shotImageContainer">
{base64 ? (
<img
className="sh... |
import AbstractPacket from "./AbstractPacket";
import MMOClient from "./MMOClient";
export default abstract class ReceivablePacket<T extends MMOClient> extends AbstractPacket<T> {
_buffer!: Uint8Array;
_offset: number = 0;
_view!: DataView;
set Buffer(buffer: Uint8Array) {
this._buffer = buffer;
this.... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
/**
* @file Stamp 邮票
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import React from 'react';
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper(
'stamp',
false,
(props: ISvgIconProps) => (
<svg
... |
import { Component, OnInit } from '@angular/core';
import {PoliciesService} from '../../../services';
import {NbDialogRef} from '@nebular/theme';
@Component({
selector: 'cbg-dialog-form-policy-vmmodule',
templateUrl: './dialog-form-policy-vmmodule.component.html',
styleUrls: ['./dialog-form-policy-vmmodule.compo... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
'use strict';
import { IEntityMetadata, EntityMetadataBase, IEntityMetadataBaseOptions } from '../../lib/entityMetadataProvider/entityMetadata';
import { Reposit... |
/* tslint:disable max-line-length */
import { shallowMount, createLocalVue, Wrapper } from '@vue/test-utils';
import sinon, { SinonStubbedInstance } from 'sinon';
import Router from 'vue-router';
import format from 'date-fns/format';
import parseISO from 'date-fns/parseISO';
import { DATE_TIME_LONG_FORMAT } from '@/sh... |
import * as React from 'react'
import { cmd } from 'elm-ts'
import { Html } from 'elm-ts/lib/React'
import * as LegalLinks from '../../components/legal/LegalLinks'
import BlindsendLogo from '../../../images/blindsend.svg'
type SwitchToShare = { type: 'SwitchToShare' }
type SwitchToRequest = { type: 'SwitchToRequest' ... |
declare module '@sambego/storybook-state/Store' {
export type StateObject = {
[s: string]: any;
};
type Callback = {
callback: <S>(state: S) => any;
subscription: string;
};
export default class Store<S extends StateObject> {
state: S;
callbacks: Callback[];
constructor (state: S);
... |
/* eslint-disable max-len */
import React, { Component } from 'react';
import { Props, DefaultProps } from '../constants';
import Wrapper from '../Wrapper';
const svg = `<canvas height="32" width="126" aria-hidden="true"></canvas>
<svg viewBox="0 0 126 32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hid... |
import { CanvasController } from '../controllers';
const selectingClass = 'selecting';
type SelectedEvent = (bounds: Bounds) => void;
export class SelectionController {
public get selecting(): boolean {
return !!this.start;
}
private selectElement: HTMLElement;
private start: Vector2 | null;... |
export interface IDynaDiskMemoryConfig {
fragmentSize?: number;
diskPath: string;
_test_workForBrowser?: boolean;
_test_performDiskDelay?: number;
}
export interface IDynaDiskMemory {
_test_performDiskDelay: number;
set<TData>(container: string, key: string, data: TData): Promise<void>;
get<... |
import { ClothingCardConfig } from '@/core/use-cases/clothes/ClothingCard';
import { DisplayCardDescriptionResolver } from '../DescriptionResolver';
import { ClothingCSSMap } from './ClothesCSSMap';
export class ClothingCardDescriptionResolver implements DisplayCardDescriptionResolver<ClothingCardConfig> {
resolveFr... |
import gql from 'graphql-tag';
/**
* apollo graphQL query fragment to retrieve common fields for a target list view
*/
const FACETFIELDS = gql`
fragment facetFields on Facet {
facet
modifier
dataType
binSize
count
values {
name
count:value
}
sourceExplanation
}`;
cons... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from "@angular/router";
import { IActividades } from "../../models/actividades";
import { ActividadesService } from "../../services/actividades.service";
@Component({
selector: 'app-detalle-actividades',
templateUrl: './detalle-actividade... |
import { Merge } from './merge'
function areSameByReference<T>(oldState: unknown, newState: T): oldState is T {
return oldState === newState
}
function oldIsNewType<N>(_oldState: unknown, keepOld: boolean): _oldState is N {
return keepOld
}
function blend<O, N, R extends boolean>(oldState: O, newState: N, reRefe... |
/// <reference path="../../../../Scripts/typescript.defs/jquery.d.ts" />
var validationSettings_BecomeMemberForm = {
onkeyup: function(element, event) {
if ($(element).hasClass('InputPrice')) {
return false;
} else {
return true;
}
},
submitHandler: function... |
import { createNamespace } from "cls-hooked";
import { middleware } from "@line/bot-sdk";
import { Application } from "../declarations";
import correlation from "./correlation";
import headersCatch from "./headers-catch";
import lineBotMiddleware from "./line-bot-middleware";
// Don't remove this comment. It's needed t... |
import React, { Component } from "react";
import styled from "styled-components";
import { Context } from "shared/Context";
import { RouteComponentProps, withRouter } from "react-router";
import close from "assets/close.png";
import { isAlphanumeric } from "shared/common";
import { pushFiltered } from "shared/routing"... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {Builder, Token, concat, space} from "@romefrontend/formatter";
import {JSCatchClause} from "@romefrontend/ast";
export d... |
import BaseAPI from '../../BaseAPI';
import { extractUserId, TwitchAPICallType, UserIdResolvable } from '../../..';
import HelixPaginatedRequest from '../HelixPaginatedRequest';
import HelixSubscription, { HelixSubscriptionData } from './HelixSubscription';
import HelixResponse from '../HelixResponse';
/**
* The Heli... |
import { NgModule } from '@angular/core';
import { ServerModule } from '@angular/platform-server';
import { UNIVERSAL_PROVIDERS } from '@ng-web-apis/universal';
import { AppBrowserModule } from './app.browser.module';
import { AppComponent } from './app.component';
@NgModule({
imports: [AppBrowserModule, ServerMod... |
/*
* 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 { resolve } from 'path';
import { SavedObjectsService } from 'src/ser... |
/*
* 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 { schema } from '@kbn/config-schema';
import { isRight } from 'fp-ts/l... |
import {Component, Input, EventEmitter, Output} from "angular2/core";
import {MATERIAL_DIRECTIVES} from 'ng2-material/all';
import {ListItems} from "./listModel";
import {ShoppingListService} from "./services/shopping-list.service";
@Component({
selector: 'shopping-list-edit',
directives:[MATERIAL_DIRECTIVES],... |
import { AjaxRequest } from './types';
import { getXHRResponse } from './getXHRResponse';
import { createErrorClass } from '../util/createErrorClass';
/**
* A normalized AJAX error.
*
* @see {@link ajax}
*
* @class AjaxError
*/
export interface AjaxError extends Error {
/**
* The XHR instance associated wit... |
import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/types';
import * as eslintVisitorKeys from 'eslint-visitor-keys';
interface VisitorKeys {
readonly [type: string]: readonly string[] | undefined;
}
type GetNodeTypeKeys<T extends AST_NODE_TYPES> = Exclude<
keyof Extract<TSESTree.Node, { type: T }>,
't... |
import { ContactsProvider } from "@/services/contacts/contacts";
import { UserDataProvider } from "@/services/user-data/user-data";
import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: "accountLabel",
})
export class AccountLabelPipe implements PipeTransform {
constructor(
private userDataProvider: U... |
import React from 'react';
import TeX from '@matejmazur/react-katex';
import 'katex/dist/katex.min.css';
export const Button1: React.FC<{}> = () => {
const Button1 = <TeX math='\Delta_{V1}' />;
return <>{Button1}</>
}; |
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {HabitatsComponent} from './habitats.component';
@NgModule({
imports : [CommonModule,FormsModule],
declarations :[HabitatsComponent],
exports :[HabitatsComponent]
})
expo... |
import {convertData, isValidTriangle, part1, part2} from '../03';
describe('Day 03', () => {
test('isValidTriangle', () => {
expect(isValidTriangle([5, 10, 25])).toBeFalsy();
expect(isValidTriangle([5, 5, 5])).toBeTruthy();
});
test('Part 1', () => {
expect(
part1([
[5, 10, 25],
... |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { CsvReaderModule } from './csv-reader/csv-reader.module';
import { AppGateway } from './app.gateway';
@Module({
imports: [
CsvReaderModule,
],
controllers: [AppCon... |
import { NextPage } from 'next';
import { useRouter } from 'next/router';
import { useCallback, useEffect, useRef, useState } from 'react';
import { Form } from '@unform/web';
import { FormHandles } from '@unform/core';
import { api } from '../services/api';
import Input from '../components/Input';
import RepositoryC... |
import { Template } from 'aws-cdk-lib/assertions';
import { Stack } from 'aws-cdk-lib/core';
import { DatadogMonitor, MonitorType } from '../../src';
test('Snapshot test', () => {
const stack = new Stack();
new DatadogMonitor(stack, 'TestMonitor', {
datadogCredentials: {
apiKey: 'DATADOG_API_KEY',
... |
import Address from './types/address'
import { TezosToolkit } from '@taquito/taquito'
import Mutez from './types/mutez'
/** Asset pair to query */
const ASSET_CODE = 'XTZ-USD'
/**
* Price feed data.
*/
export type HarbingerPriceFeedData = {
time: Date
price: Mutez
}
/**
* Interacts with a Harbinger Oracle.
*... |
//图书操作页面
import { connect } from "react-redux";
import {
handleBookmarks,
handleFetchBookmarks,
} from "../../store/actions/reader";
import {
handleOpenMenu,
handleShowBookmark,
} from "../../store/actions/viewArea";
import { stateType } from "../../store";
import { withNamespaces } from "react-i18next";
import... |
/*
* 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.
*/
export { SavedMap } from './saved_map';
export { MapPage } from './map_page'; |
import * as common from "@nestjs/common";
import * as swagger from "@nestjs/swagger";
import * as nestMorgan from "nest-morgan";
import * as nestAccessControl from "nest-access-control";
// @ts-ignore
import * as defaultAuthGuard from "../../auth/defaultAuth.guard";
// @ts-ignore
import * as abacUtil from "../../auth/a... |
import { Icon } from '@grafinsight/ui';
import { cx, css } from 'emotion';
import React, { FunctionComponent, ComponentProps, ButtonHTMLAttributes } from 'react';
const SROnly = css`
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width:... |
import { Rule } from "@siteimprove/alfa-act";
import { Element } from "@siteimprove/alfa-dom";
import { Page } from "@siteimprove/alfa-web";
import { audio } from "../common/applicability/audio";
import { audioTextAlternative } from "../common/expectation/media-text-alternative";
import { Question } from "../common/... |
/*
* SweetAlert
* 2014-2017 – Tristan Edwards
* https://github.com/t4t5/sweetalert
*/
import init from './modules/init';
import {
openModal,
onAction,
getState,
stopLoading,
} from './modules/actions';
import state, {
setActionValue,
ActionOptions,
SwalState,
} from './modules/state';
import {
... |
/*
* @adonisjs/lucid
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/// <reference path="../../adonis-typings/index.ts" />
import test from 'japa'
import { ApplicationContract } from '@... |
export * from './articles.create-one.dto';
export * from './articles.edit-one.dto';
export * from './articles.get.dto'; |
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
export class GetUserRecipeListItemModel {
title: string;
authorName: string;
recipeId: string;
authorId: string;
shortDescription: string;
mainImageId: number;
rating: number;
categoryId: number;
createdDate: Date;
mainImageSrc: string;
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { createSelector } from '@ngrx/store';
import { getCoreState } from 'ish-core/store/core-store';
const getErrorState = createSelector(getCoreState, state =>
state.error && state.error.type ? state.error : undefined
);
export const getGeneralError = createSelector(getErrorState, state => state && state.curre... |
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="./react-... |
import React, { lazy, Suspense, useEffect, useState } from 'react';
import { Route, Switch } from 'react-router-dom';
import Page from 'core/components/Page';
import routes from 'core/constants/routes';
import useCircles, { CIRCLE_TYPES, CIRCLE_STATUS } from './hooks';
import { useGlobalState } from 'core/state/hooks';... |
import { FieldValidationFunctionSync } from '@lemoncode/fonk';
export namespace iban {
export const validator: FieldValidationFunctionSync;
export function setErrorMessage(message: string | string[]): void;
} |
import {
ArgumentMetadata,
BadRequestException,
Injectable,
PipeTransform,
} from '@nestjs/common';
@Injectable()
export class ParseIntPipe implements PipeTransform {
transform(value: string, metadata: ArgumentMetadata) {
const val = parseInt(value, 10);
if (isNaN(val)) {
throw new BadRequestEx... |
//
// layouts.tsx - shared layout components for app and website pages
//
import Head from "next/head"
import { useRouter } from "next/router"
import { useState, useEffect, useRef } from "react"
import Container from "@mui/material/Container"
import { Theme } from "@mui/material/styles"
import useMediaQuery from "@mu... |
import classnames from 'classnames';
import React, { HTMLProps } from 'react';
import { filterDOMProps, useForm } from 'uniforms';
export type ErrorsFieldProps = HTMLProps<HTMLDivElement>;
function ErrorsField({ children, className, ...props }: ErrorsFieldProps) {
const { error, schema } = useForm();
return !err... |
import { Knex } from 'knex';
export async function up(knex: Knex): Promise<void> {
return knex.schema
.alterTable('image', (table) => {
table.dropForeign('mediaItemId');
table.dropForeign('seasonId');
})
.alterTable('seen', (table) => {
table.dropForeign('mediaItemId');
table.drop... |
/**
* @author WMXPY
* @namespace React_Ant_Design
* @description Declare
*/
import * as React from "react";
export type ReactionPropsConfig = {
readonly name: string;
readonly text: React.ReactNode;
}; |
import { StorageAccessLevel } from '@aws-amplify/storage';
export { StorageAccessLevel } from '@aws-amplify/storage';
export interface StorageObject {
key: string;
identityId?: string | null;
level: Uppercase<StorageAccessLevel> | StorageAccessLevel;
contentType: string;
}
export type GetKeys<T, J> = {
[K ... |
//
// Copyright (c) Microsoft Corporation. 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 ... |
export declare type MaybePromise<T> = Promise<T> | T;
export declare type MaybeFunction<T> = T | (() => T);
export declare type MaybeArray<T> = T | T[];
export declare type WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="be_BY" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<source>About Bitcoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<source><b>Bitcoin Core</b> version</source>
<translat... |
/*
* MIT License
*
* Copyright (c) 2017 David Garcia <dgarcia360@outlook.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 limitation the ri... |
/*************************************************************************
* Copyright 2021 Gravwell, Inc. All rights reserved.
* Contact: <legal@gravwell.io>
*
* This software may be modified and distributed under the terms of the
* MIT license. See the LICENSE file for details.
*********************************... |
/* eslint-disable @typescript-eslint/no-use-before-define */
import React, { useCallback, useEffect, useRef, useState } from 'react';
import {
Image,
View,
ScrollView,
KeyboardAvoidingView,
Platform,
Keyboard,
TextInput,
Alert,
StyleSheet,
} from 'react-native';
import { useNavigation } from '@react-n... |
import type { Plugin, ViteDevServer } from 'vite'
import { toArray } from '../../utils'
interface GlobalSetupFile {
file: string
setup?: () => Promise<Function|void>|void
teardown?: Function
}
async function loadGlobalSetupFiles(server: ViteDevServer): Promise<GlobalSetupFile[]> {
const globalSetupFiles = toA... |
import { themeGet } from "@styled-system/theme-get"
import { Sans } from "palette"
import React from "react"
import { Animated, Dimensions, LayoutRectangle, ScrollView, View } from "react-native"
import styled from "styled-components/native"
export interface Tab {
id: string
text: string
}
interface ScrollableTab... |
import { Component, OnInit } from '@angular/core';
import { DataLoaderService } from '../../_services/data-loader.service';
@Component({
selector: 'app-orders',
templateUrl: './orders.component.html',
styleUrls: ['./orders.component.css']
})
export class OrdersComponent implements OnInit {
constructor(public d... |
import { CollectionCache, CollectionKey } from "../../../common";
import { BattlefieldBuildingCategories } from "./BattlefieldBuildingCategories";
import { ModelsBuilding } from "./ModelsBuilding";
import { AudioMaterials } from "./AudioMaterials";
import { MissileWeapons } from "./MissileWeapons";
import { Battlefield... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.