text stringlengths 10 953k |
|---|
import {
Accordion,
AccordionButton,
AccordionIcon,
AccordionItem,
AccordionPanel,
Box,
Divider,
Stack,
Text,
useMediaQuery,
} from '@chakra-ui/react';
import data from '../../components/data/faq.json';
import { useThemeColors } from '../../hooks/utilHooks';
const FaqPage: React.FC = () => {
cons... |
import {ValueOf} from '@twilio-paste/types';
import {
Basis,
BasisOptions,
FlexProps,
GrowOptions,
HorizontalAlignOptions,
ShrinkOptions,
VerticalAlignOptions,
VerticalOptions,
WrapOptions,
} from './types';
// Gets grow and returns as an array of grow, the value of grow, 1, or 0
export const getGrow... |
import { IndexModule } from './index.config';
import {
async,
TestBed
} from '@angular/core/testing';
describe('IndexModule', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [IndexModule]
}).compileComponents();
}));
it('should create', () => {
expect(IndexModule).toBeDefined... |
export declare type Fetch = <Args extends any[]>(...args: Args) => Promise<any>;
export declare type Credential = {
username: string;
password: string;
};
export declare type CredentialProvider = () => Credential | Promise<Credential>;
export declare type HelperConfig = {
provider?: CredentialProvider;
... |
import React from 'react';
import useStyleAutocomplete from './hooks/useStyleAutocomplete';
import useSelectorDictionaryName from './hooks/useSelectorDictionaryName';
import useNewDictionaryInput from './hooks/useNewDictionaryInput';
import {tHandleOpenSnackbar} from '../../../../../commons/snack... |
import { ItemConfig, ComponentItemConfig } from '../config/config';
import { ResolvedComponentItemConfig, ResolvedItemConfig } from '../config/resolved-config';
import { UnexpectedNullError } from '../errors/internal-error';
import { ComponentItem } from '../items/component-item';
import { GroundItem } from '../items/g... |
version https://git-lfs.github.com/spec/v1
oid sha256:8e8c17901821d4323aa31d0fa3d5dba14c34cf46aa8b2089e7ac552097bba072
size 865740 |
import * as React from 'react';
import * as _ from 'lodash';
import {
Chart,
ChartThemeColor,
ChartAxis,
ChartGroup,
ChartLine,
ChartLineProps,
ChartProps,
ChartTooltip,
ChartScatter,
} from '@patternfly/react-charts';
import { DEFAULT_CHART_HEIGHT } from '../../const';
type LineChartProps = {
tick... |
import { Column, Entity, Index } from 'typeorm';
@Index('char_id', ['charId'], {})
@Entity('guild_member', { schema: 'ragnarok' })
export class GuildMember {
@Column('int', {
primary: true,
name: 'guild_id',
unsigned: true,
default: () => "'0'",
})
guildId: number;
@Column('int', {
primary... |
export * from './CallsOnholdUI';
export * from './CallsOnholdUI.interface'; |
/* eslint-disable no-console */
import fastify from 'fastify';
import { getGraphQLParameters, processRequest, renderGraphiQL, shouldRenderGraphiQL } from 'graphql-helix';
import { envelop, useSchema } from '@envelop/core';
import { useAuth0 } from '@envelop/auth0';
import { makeExecutableSchema } from '@graphql-tools/s... |
import { CommandHandler, EventPublisher, ICommandHandler } from '@nestjs/cqrs'
import clc from 'cli-color'
import { RecipesService } from '../../recipes.service'
import { DeleteRecipeCommand } from '../impl/delete-recipe.command'
import { RecipeModel } from '../../models/recipe.model'
import { Recipe } from '../../enti... |
const rtlLanguages = [
'ar',
'ckb',
'fa',
'he',
'ks($|[^bfh])',
'lrc',
'mzn',
'pa-Arab',
'ps',
'ug',
'ur',
'uz-Arab',
'yi'
];
const rtlRegExp = new RegExp('^' + rtlLanguages.join('|^'));
/**
* Utility formatter function for enforcing Bidi Structured Text by using UCC
*
* List inlined from ... |
import { ParserState } from "../parser-state";
export const parserTo = <TNextState>(
state: ParserState<TNextState>,
line: number,
column: number
): void => {
switch (state.current.type) {
case "initial":
state.current = {
type: "skippingUntilNextStatement",
syntaxErrorType: "expected... |
import {console, document} from '@ephox/dom-globals';
import {Arr, Future, Obj, Option, Result} from '@ephox/katamari';
import {Class, Element} from '@ephox/sugar';
import * as Behaviour from 'ephox/alloy/api/behaviour/Behaviour';
import {Keying} from 'ephox/alloy/api/behaviour/Keying';
import {Representing} from 'eph... |
import { ajax } from 'jquery';
import { keys } from 'lodash';
import { Observable } from 'rxjs';
const filter = require('fuzzaldrin').filter;
const frameworkCache = new Map<string, { [key: string]: string }>();
function fetchFrameworkFromGithub(framework: string) {
if (frameworkCache.has(framework)) {
ret... |
// *** 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";
/*... |
import React, { useContext } from "react"
import "../../styles/ContentTestPage/contentTestPage.scss"
import Context from "../../components/Context"
/** View */
import Paragraph from "../../components/Paragraph"
import RulesSale from "../../components/RulesSale"
export interface IAnswers {
answer: string
id: numbe... |
import openLark from "./helper";
// docs: https://open.feishu.cn/document/uAjLw4CM/uYjL24iN/applink-protocol/supported-protocol/open-todo/create-task
export default async function () {
await openLark("/client/todo/create");
} |
// *** 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";
ex... |
import { sorted, extend } from '../helper'
import Options from '../Options'
import {
DefaultAdjacencyGraphsKeys,
ExtendedMatch,
DefaultAdjacencyGraphs,
} from '../types'
interface SpatialMatchOptions {
password: string
}
/*
* ------------------------------------------------------------------------------
* sp... |
import type { BigNumber } from '@ethersproject/bignumber'
import { Contract } from '@ethersproject/contracts'
import type { Web3Provider } from '@ethersproject/providers'
import { formatEther } from '@ethersproject/units'
import { useContractCall, useContractFunction, useEtherBalance } from '@usedapp/core'
import { uti... |
import { Style } from '@master/style';
import { DASH, MARGIN, SCROLL } from './constants/css-property-keyword';
import { B, BOTTOM, L, LEFT, R, RIGHT, T, TOP, X, Y } from './constants/direction';
export class ScrollMarginStyle extends Style {
static override matches = /^scroll-m(x|y|t|b|l|r|argin(-(top|bottom|left... |
/**
* @Description : 设置全局的header
* @date : 16/7/4 上午9:58
* @author : keryHu keryhu@hotmail.com
*/
import {Headers, Response} from "@angular/http";
import {Injectable} from "@angular/core";
import {ConstantService} from "../constant.service";
import {LocalToken} from "../../model/local-token";
import {Observable} f... |
// -- copyright
// OpenProject is an open source project management software.
// Copyright (C) 2012-2021 the OpenProject GmbH
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is a fork of ChiliProject, which i... |
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
Final... |
export { default } from "./ServiceDetails";
export * from "./ServiceDetails"; |
export * from './comment.model';
export * from './post.model';
export * from './service.model';
export * from './user.model'; |
import { SpotifyGraphQLClient } from 'spotify-graphql';
import config from './config';
SpotifyGraphQLClient(config).query(`
{
artist(id: "0oSGxfWSnnOXhD2fKuz2Gy") {
name
top_tracks {
name
}
}
}
`).then(executionResult => {
if (executionResult.errors) {
console.log('error');
... |
import { Link } from 'react-router-dom';
import Menu from '../Menu/Menu';
import './styles.css';
const Header = () => {
return (
<header className="header">
<Link to="/" style={{ background: 'none' }}>
<h1 className="header-title">Simple blog</h1>
</Link>
<Menu />
</header>
);
};
... |
export enum Type {
string = "string",
number = "number",
boolean = "boolean",
object = "object",
array = "array"
} |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import * as util from 'util'
import { BlenderCollection, Indexable } from '../../collection'
import { BlenderInterop } from '../../../worker/interop'
import { PythonInterop } from '../../../python/interop'
import { bpy_struct } from './bpy_struct'
import { Constraint } from './Constraint'
import { BlenderObject } from ... |
import { combine, validators } from '@ionic/cli-framework';
import * as chalk from 'chalk';
import * as readline from 'readline';
import { CommandLineInputs, CommandLineOptions, CommandMetadata, CommandPreRun } from '../definitions';
import { input, strong, success } from '../lib/color';
import { Command } from '../li... |
export {
defaults as barchart
} from './barchart';
export {
defaults as gauge
} from './gauge';
export {
defaults as heatmap
} from './heatmap';
export {
defaults as linechart
} from './linechart';
export {
defaults as network
} from './network';
export {
defaults as piechart
} from './piec... |
import {
CREATE,
DELETE,
DELETE_MANY,
GET_LIST,
GET_MANY,
GET_MANY_REFERENCE,
GET_ONE,
UPDATE,
UPDATE_MANY,
} from "react-admin";
import { getAbsolutePath, log, CheckLogging, messageTypes } from "../misc";
import { RAFirebaseOptions } from "./RAFirebaseOptions";
import { FirebaseClient } from "./datab... |
import { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit } from '@angular/core';
import { fromEvent, Observable } from 'rxjs';
import { mapTo } from 'rxjs/operators';
@Component({
selector: 'app-option',
template: `
<div class="option">
<ng-content></ng-content>
</div>
`,
changeDete... |
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 3.15.6
* source: networks/networks.proto
* git: https://github.com/thesayyn/protoc-gen-ts
* buymeacoffee: https://www.buymeacoffee.com/thesayyn
* */
import * as dependency_1 from "./../common/ack";
import * as dependency_2 from "./../common/... |
/*
* Copyright (c) 2011 rubicon IT GmbH
*/ |
version https://git-lfs.github.com/spec/v1
oid sha256:cb5c30aa4486ecb3c8faa7374d7acf283a1439c8736d383c2522905cfb41d32b
size 567572 |
/**
* Water Solution Inventory Spring Boot App
* Spring Boot REST API
*
* OpenAPI spec version: 1.0
* Contact: watersolution@gmail.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import ... |
import React, { FC } from 'react';
import { HorizontalGroup, LinkButton } from '@grafana/ui';
export interface Props {
folderId?: number;
isEditor: boolean;
canEdit?: boolean;
}
export const DashboardActions: FC<Props> = ({ folderId, isEditor, canEdit }) => {
const actionUrl = (type: string) => {
let url ... |
import * as React from 'react';
import { StyledIconProps } from '@styled-icons/styled-icon';
export declare const CaretSquareRightDimensions: {
height: undefined;
width: undefined;
}; |
export * from './nz-icon.module';
export * from './nz-icon.directive';
export * from './nz-icon.service'; |
import 'styled-components';
interface TypeColor {
color: string;
hover: string;
}
declare module 'styled-components' {
export interface DefaultTheme {
base: {
background: string;
},
color: {
textColor: string;
paragraphColor: string;
... |
import {Store} from './store';
export const NewEgg: Store = {
links: [
{
brand: 'asus',
model: 'tuf',
url: 'https://www.newegg.com/asus-geforce-rtx-3080-tuf-rtx3080-10g-gaming/p/N82E16814126453',
oosLabels: ['auto notify', 'out of stock'],
captchaLabels: ['are you a human?']
},
{
brand: 'evga'... |
import { Card } from '../../../interfaces'
import Set from '../Plasma Storm'
const card: Card = {
name: {
en: "Cherrim",
fr: "Ceriflor",
es: "Cherrim",
it: "Cherrim",
pt: "Cherrim",
de: "Kinoso"
},
illustrator: "Kagemaru Himeno",
rarity: "Rare",
category: "Pokemon",
set: Set,
dexId: [
421,
],
h... |
/**
* Join is a fold using the 'append' operation as the
* operation and the zero as the initial value.
* This is a type-neutral (IE doesn't depend on Array) way to
* concatenate multiple instances of a container.
*
* @todo: Provide examples of natural joins - for array, string
* @todo: Determine if 'join' shou... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp2776Component } from './comp... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitBay</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+... |
import FloatToolkit from "..";
import { round } from "./round";
import { getMaxPrecision } from "../get-precision/getMaxPrecision";
/**
* @internal
*/
export function addArrayItem(total: number, newNumber: number, precision?: FloatToolkit.Precision): number {
const maxPrecision = precision ?? getMaxPrecision(tota... |
import { mount } from 'enzyme';
import React from 'react';
import { Anchor } from '..';
describe('Anchor', () => {
it('combines classNames on its root when rootProps contains a className', () => {
const className = 'class-name';
const wrapped = mount(<Anchor asProps={{ className }} />);
const rootClass... |
import {prop,RxFormBuilder,FormBuilderConfiguration,RxFormGroup} from '../../../packages/reactive-form-validators';
export class Employee{
@prop()
firstName:string;
email : string;
}
export class User {
type: string;
@prop({ ignore: function () { return this.type == "Master"; } })
userName... |
import {
Component,
Input,
Output,
OnDestroy,
OnInit,
OnChanges,
Inject,
NgZone,
ElementRef,
EventEmitter,
ChangeDetectionStrategy,
PLATFORM_ID
} from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
import { BehaviorSubject, Observable, Subscription, fromEvent } from 'rxjs'... |
import {Clarinet, Tx, Chain, Account, types} from "https://deno.land/x/clarinet@v0.14.0/index.ts";
class FuturesPool{
chain: Chain;
constructor(chain: Chain) {
this.chain = chain;
}
//(contract-call? .futures-pool create-pool 'ST1HTBVD3JG9C05J7HBJTHGR0GGW7KXW28M5JS8QE.token-alex 'ST1HTBVD3JG9... |
export type Car = {
id: number;
make: string;
model: string;
year: number;
color: string;
price: number;
}
export type NewCar = Omit<Car, "id">;
export type CarKeys = keyof Car; |
import { Pen, PenType } from './pen';
import { Point } from './point';
import { drawLineFns, drawArrowFns } from '../middles';
import { getBezierPoint } from '../middles/lines/curve';
import { Store } from 'le5le-store';
import { lineLen, curveLen } from '../utils/canvas';
import { text } from '../middles/nodes/text';
... |
import { MikroORM } from '@mikro-orm/core';
import type { INestApplication } from '@nestjs/common';
import { ValidationPipe } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import request from 'supertest';
import { AppModule } from '../src/app.module';
import config from '../src/mikro-orm.config';
impor... |
import React from "react";
import NumberInput from "../src";
export default function() {
return <NumberInput style={{ width: "180px" }} precision={3} />;
} |
import { mock } from 'angular';
import { Application } from './application.model';
import { ApplicationModelBuilder } from './applicationModel.builder';
import { ApplicationDataSourceRegistry } from './service/ApplicationDataSourceRegistry';
import { LOAD_BALANCER_DATA_SOURCE } from '../loadBalancer/loadBalancer.dataS... |
import { Input } from "@chakra-ui/input";
import React from "react";
import { Controller } from "react-hook-form";
export const ControllerPlus = ({
control,
transform,
name,
}: {
name: string;
transform: any;
control: any;
}) => (
<Controller
control={control}
name={name}
render={({ field }) =... |
import { Component, OnInit, AfterViewInit } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { CourseService } from '../../../services/course.service';
import { VideoCourse } from '../../../models/video-course';
i... |
import { Box, TableCell, TableRow, TableRowProps, Tooltip } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import { AmountLabel, PoolRouteIcon, Text } from "app/components";
import { ReactComponent as NewLinkIcon } from "app/components/new_link.svg";
import TxStatusIndicator from "app/... |
import { MockMethod } from 'vite-plugin-mock'
export default [
{
url: '/getMapInfo',
method: 'get',
response: () => {
return {
code: 0,
title: 'mock请求测试'
}
}
}
] as MockMethod[] |
import { Injectable, OnDestroy } from '@angular/core';
import * as moment from 'moment';
import * as _ from 'lodash';
import { Observable, Subject, of, Subscription } from 'rxjs';
import { flatMap, delay } from 'rxjs/operators';
import { PatientProgramResourceService } from '../../../etl-api/patient-program-resource.... |
export * from "./Accordion";
export * from "./Alert";
export * from "./AlertDialog";
export * from "./Avatar";
export { default as Avatar } from "./Avatar";
export * from "./AspectRatioBox";
export { default as AspectRatioBox } from "./AspectRatioBox";
export * from "./AvatarGroup";
export { default as AvatarGroup } fr... |
export const environment = {
production: false,
firebase: {
apiKey: 'AIzaSyBZMdr-5CS1fdme83u6YmfXIaFWEb8T-Fs',
authDomain: 'emotionslibrary.firebaseapp.com',
databaseURL: 'https://emotionslibrary.firebaseio.com',
projectId: "emotionslibrary",
storageBucket: "emotionslibrary.appspot.com",
mes... |
/**
*
*
* OpenAPI spec version: 20190801
*
*
* 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 ... |
// *** 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 default [
['table_header_sql_expression', 'Введите SQL выражение чтобы отфильтровать результаты'],
['data_viewer_tab_title', 'Данные'],
['data_viewer_value_edit', 'Изменить'],
['data_viewer_value_apply', 'Применить'],
['data_viewer_value_revert', 'Отменить'],
['data_viewer_value_revert_title', 'Отмен... |
/**
* Copyright 2014 Mozilla Foundation
*
* 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... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React from 'react'
import { DragSource, ConnectDragSource } from 'react-dnd'
import ItemTypes from './ItemTypes'
const style: React.CSSProperties = {
position: 'absolute',
border: '1px dashed gray',
backgroundColor: 'white',
padding: '0.5rem 1rem',
cursor: 'move',
}
const boxSource = {
beginDrag(props: B... |
export * from './menu';
export * from './menuItem';
export * from './subMenu'; |
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AuthRoutingModule } from './auth-routing.module';
import { LoginComponent } from './login/login.component';
import { SignupComponent } from './signup/signup.component';
@NgModule({
declarations: [LoginComponent, SignupC... |
import type { Props } from './Button';
import Button from './Button';
export type { Props };
export default Button; |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { <%= upperName %>Module } from '../../component/<%= name %>';
import { NbCodeBoxModule } from '../../component/code-box';
import { NbCodeHighlighterModule } from '../../component/code-highlighter';
import { <%= upperName... |
import * as React from 'react';
export default ({ name }: { name: string }) => (
<div>Hello {name}!</div>
) |
export { Response, ResponseType } from './Response'
export { HttpCode } from './HttpCode'
export { Http } from './Http' |
class C {}
var x = new C(); // should be ok
new x(); // should error |
// Define TypeScript interface for service `nedb1`. (Can be re-generated.)
// !code: imports // !end
// !code: init // !end
// tslint:disable-next-line:no-empty-interface
export interface Nedb1Base {
// !<DEFAULT> code: interface
id: unknown;
nedb2Id: unknown;
// !end
}
// tslint:disable-next-line:no-empty-in... |
import i18n from 'i18next';
import React, { useCallback, useState } from 'react';
import { Trans } from 'react-i18next';
import Joyride, {
ACTIONS,
CallBackProps,
STATUS,
status as StatusType,
Step,
StoreHelpers,
} from 'react-joyride';
import tourStyles from '@/js/components/tour/styles';
interface Props... |
import * as GenericAST from "../../ast.ts";
import * as AST from "../ast.ts";
import { Scope } from "../dst.ts";
import { LocationRange } from "../../parser.ts";
export default class Comment extends GenericAST.Node implements AST.Node {
readonly value: string;
constructor(
location: LocationRange,
text: s... |
import { Injectable } from '@nestjs/common';
import * as bcrypt from 'bcryptjs';
@Injectable()
export class PasswordService {
salt: number = 10;
getHash(password: string): Promise<string> {
return bcrypt.hash(password, this.salt)
}
comparePassword(password: string, hash: string): Promise<b... |
import { RoleType } from '../model';
import { get } from './apiService';
export const getRole = async () => {
return (await get('/role')) as RoleType;
}; |
import IHumanEmulator from './IHumanEmulator';
export default interface IHumanEmulatorClass {
id: string;
new(): IHumanEmulator;
}
// decorator for human emulator classes. hacky way to check the class implements statics we need
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function HumanEmu... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import * as yargs from 'yargs';
import {info} from '../utils/console';
import {validateFile} from './validate-file';... |
export interface ConnectionProps {
names: any;
} |
import {Tween} from "../Tween";
export type CallbackFunction = (tween:Tween) => void; |
import { createContext, ReactNode, useContext, useEffect, useState } from "react";
import { fetchClient } from "Services/fetchClient";
interface ProviderProps {
children: ReactNode
}
interface TransactionData {
id: number;
title: string;
amount: number;
category: string;
createdAt: Date;
type: string;
}
type ... |
import {
ServiceInputTypes,
ServiceOutputTypes,
imagebuilderClientResolvedConfig
} from "../imagebuilderClient";
import {
CreateInfrastructureConfigurationRequest,
CreateInfrastructureConfigurationResponse
} from "../models/index";
import {
deserializeAws_restJson1_1CreateInfrastructureConfigurationCommand,... |
import { useEffect, useRef } from 'react';
/**
* Returns `true` when the first render occur
* `false` afterwards
*/
export function useFirstRender() {
const firstRender = useRef(true);
useEffect(() => {
firstRender.current = false;
}, []);
return firstRender.current;
} |
/*
* Copyright 2021 Collate
* 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 writing,... |
import * as React from 'react';
<% if (project.moduleType === "view") { -%>
import { StyleSheet, View } from 'react-native';
import <%- project.name %>ViewManager from '<%- project.slug %>';
<% } else { -%>
import { StyleSheet, View, Text } from 'react-native';
import <%- project.name %> from '<%- project.slug %>';
<%... |
import { E2EPage, newE2EPage } from "@stencil/core/testing";
import { accessible, defaults, disabled, focusable, hidden, reflects, renders } from "../../tests/commonTests";
import { CSS, DEBOUNCE_TIMEOUT } from "./resources";
describe("calcite-filter", () => {
it("renders", async () => renders("calcite-filter", { di... |
import { Body, Controller, Delete, Get, Param, Post,Put,UseGuards } from '@nestjs/common';
import { Roles } from 'src/common/decorators/role.decorator';
import { Role } from 'src/common/enum/role.enum';
import { JwtAuthGuard } from '../auth/strategy/jwt-auth.guard';
import { RolesGuard } from '../auth/strategy/roles.gu... |
<TS language="fa_IR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>گشایش حسابی جدید</translation>
</message>
<message>
<source>&New</source>
<translation>جدید</translation>
</message>
<messag... |
// Type definitions for lodash.assignIn 4.2
// Project: http://lodash.com/
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version... |
import createSecureEnvironment from '../node-realm';
globalThis.foo = {
b() {},
e: new Error(),
};
describe('Reflective Intrinsic Objects', () => {
it('should preserve identity of Object thru membrane', function() {
expect.assertions(2);
const evalScript = createSecureEnvironment(undefined... |
import { EntityManager } from '../EntityManager';
import { Platform } from '../platforms';
import { MetadataStorage } from '../metadata';
import { EntityValidator } from './EntityValidator';
import { AnyEntity, Dictionary, EntityData, EntityMetadata, Populate, Primary } from '../typings';
import { IdentifiedReference }... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.