text
stringlengths
10
953k
// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/5c3e47967affa3c4128a3875d1664ba206ae1b0f/express/express.d.ts declare module Express { // These open interfaces may be extended in an application-specific manner via declaration merging. // See for example meth...
import React from 'react'; import { DateTime } from 'luxon'; import userEvent from '@testing-library/user-event'; import { render, screen } from '@testing-library/react'; import { ProductFilterDate } from '../../../../../code/components/pages/products/filters/ProductFilterDate'; describe('ProductFilterDate component...
export enum GLRenderStage { BACKGROUND, FOREGROUND } export default GLRenderStage;
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { getUserId, getDisplayName, getParticipants, ChatBaseSelectorProps } from './baseSelectors'; import * as reselect from 'reselect'; import { toFlatCommunicationIdentifier } from '@internal/acs-ui-common'; import { ChatParticipant } from ...
import React from 'react'; import { screen, fireEvent } from "@testing-library/react"; import * as ReactDOMClient from 'react-dom/client'; import {act} from "react-dom/test-utils" import { BrowserRouter } from 'react-router-dom'; import { ApplicationStatus } from "../components/ApplicationStatus" import { fields, butto...
/* * 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 actionCreatorFactory from 'typescript-fsa'; import { InspectQuery, Re...
import { Controller, Post, Res, Body, HttpStatus, Get, Param, NotFoundException, Put, Query, Delete, UseGuards } from '@nestjs/common'; import { CustomerService } from './customer.service'; import { CreateCustomerDTO } from './dto/create-customer.dto'; import { AuthGuard } from "../login/guard/auth.guard"; @Controller...
import * as __aws_sdk_types from "@aws-sdk/types"; /** * DeleteGroupOutput shape */ export interface DeleteGroupOutput extends __aws_sdk_types.MetadataBearer { /** * <p>The AWS request ID for this operation.</p> */ RequestId?: string; /** * <p>The http status of the request.</p> */ Status?: numb...
/** * @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 {ConstantPool, Expression, R3ComponentMetadata, R3DirectiveMetadata, WrappedNodeExpr, compileComponentFromMet...
export {TypeGuard} from './types'; export { isBigInt, isBoolean, isConstructor, isFunction, isNonNullable, isNullable, isNumber, isObject, isObjectLike, isPrimitive, isPropertyKey, isString, isSymbol, isUndefined, } from './typeof'; export * from './collections'; ...
import { StyleSheet } from 'react-native'; export const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center' } });
import { isNotStylishProp, isStylishProp, StylishPropNames, } from './stylishProps'; type PropSpreaderProps = Record<string, any>; const { keys } = Object; const spreadStyleProps = ( props: PropSpreaderProps, propConfig?: Partial<Record<StylishPropNames, false>> ): PropSpreaderProps => keys(props).reduce...
import * as React from 'react'; import { complexDataSet } from '../../resources/DemoProps'; import { LineChart } from './LineChart'; import { createCustomPropsTest } from '@shared/tests/utils'; import { createChartRenderTest, createLoadingPlaceholderTest, createOnClickChartTest, createOnLegendClickNotCrashTest ...
import path from 'path'; import cors from 'cors'; import express, { Request, Response, NextFunction } from 'express'; import docUI from 'redoc-express'; import endpoints ...
import { CLIEngine } from 'eslint' import { Visitor } from 'babel-traverse' import { codeFrameError } from './utils' const cli = new CLIEngine({ baseConfig: { extends: ['plugin:taro/transformer'] }, useEslintrc: false, parser: 'babel-eslint', parserOptions: { ecmaVersion: 2018, ecmaFeatures: { ...
import {openStoryPage} from '../test-utils'; const DEVICES = ['MOBILE_IOS', 'MOBILE_ANDROID'] as const; test.each(DEVICES)(`RadioGroup`, async (device) => { await openStoryPage({ id: 'components-forms-radio-button--default', device, }); const image = await page.screenshot(); expect(im...
import webpack from 'webpack' const express = require('express') const { createProxyMiddleware } = require('http-proxy-middleware') const webpackDevMiddleware = require('webpack-dev-middleware') const webpackHotMiddleware = require('webpack-hot-middleware') import config from './webpack.dev' const compiler = webpack(...
import { ConfigError, DataTypeError, MissingTagError, AckTimeoutError, AckShutdownError, } from "./error"; import EventTime from "./event_time"; import * as protocol from "./protocol"; import {FluentAuthOptions, FluentAuthSocket} from "./auth"; import {FluentSocketOptions, FluentSocket, FluentSocketEvent} fro...
import { UseCaseResponse } from '@itddd/backend-feature-shared'; export class CircleUpdateResponse extends UseCaseResponse {}
/* eslint-disable react/prop-types */ import React,{ useState, useEffect, forwardRef, useRef } from 'react' import AMapLoader from '@amap/amap-jsapi-loader'; import Config from '@/framework/config' import Loading from '@/common/loading' import randomId from "@/framework/utils/randomString"; export type MapType = "Tile...
import Vue from 'vue' import App from './App.vue' import { expect } from 'chai' describe('App.vue', () => { // it('sets the correct default data', () => { // const Ctor = Vue.extend(App) // const vm = new Ctor().$mount() // const data = <any> vm.$data // expect(data.msg).to.equal(12...
type TypeTexts = { content: { title: string }, text1: { title1: string, content1: { definition: string, example1: string, subTitle1: string, description1: string, item1: { titleItem1: string, textItem1: string }, item2: { titleItem2: st...
import '@nomiclabs/buidler/types'; import type { DeployFunction } from './deploy-proxy'; import type { UpgradeFunction } from './upgrade-proxy'; declare module '@nomiclabs/buidler/types' { export interface BuidlerRuntimeEnvironment { upgrades: { deployProxy: DeployFunction; upgradeProxy: UpgradeFunc...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FlexLayoutModule } from '@angular/flex-layout'; import { ReactiveFormsModule } from '@angular/forms'; import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatButtonModule } from '@angular/mater...
type KeyFrames = { step: string, translate: string }[]; export class Animation { private static keyFrames: KeyFrames = [ { step: '0%', translate: '-10%,10%', }, { step: '10%', translate: '-25%,0%', }, { step: '20%', translate: '-30%,10%', }, { ste...
<TS language="sq" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Kliko me të djathtën për të ndryshuar adresën ose etiketen.</translation> </message> <message> <source>Create a new address</source...
import { Color } from "./color"; export class Pixel { constructor(public x, public y, public color = new Color(0, 0, 0)) {} }
import type * as d from '../../declarations'; import { DEFAULT_STYLE_MODE } from '@utils'; export const setComponentBuildConditionals = (cmpMeta: d.ComponentCompilerMeta) => { if (cmpMeta.properties.length > 0) { cmpMeta.hasProp = true; cmpMeta.hasPropMutable = cmpMeta.properties.some((p) => p.mutable); ...
// Generated by 'unplugin-auto-import' // We suggest you to commit this file into source control declare global { const IconBiBoxArrowLeft: typeof import('~icons/bi/box-arrow-left')['default'] const IconBiLightning: typeof import('~icons/bi/lightning')['default'] const IconBiX: typeof import('~icons/bi/x')['defau...
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { flatMap } from 'rxjs/operators'; import { MetricsService, Metrics, MetricsKey, ThreadDump, Thread } from './metrics.service'; @Component({ selector: 'lio-metrics', templateUrl: './metrics.component.html', cha...
import { Routes, RouterModule } from "@angular/router"; import { NgModule } from "@angular/core"; import { UserComponent } from "./user.component"; import { CreateComponent } from "./create/create.component"; import { EditComponent } from "./edit/edit.component"; import { ViewComponent } from "./view/view.component"; i...
import { useShow, IResourceComponentsProps, useOne } from "@pankod/refine-core"; import { Show, Typography, MarkdownField, Space, ImageField, Alert, Button, ListButton, EditButton, RefreshButton, } from "@pankod/refine-antd"; import { IPost, ICategory } from "interfaces"; impor...
declare module '@import-assets' { /** provide a glob pattern to import assets **/ export function importAssets(glob: string): void }
export { OptionType } from './OptionType'; export { GridItemProps } from './GridItemProps';
import { getGenericUrl } from '../../goodreads' import * as parse from '../../parse/book' import { bookUrls as urls } from '../constants' /* eslint-disable max-len */ describe('part of a series', () => { test('Lord of Chaos', async () => expect(parse.book(await getGenericUrl(urls.lordOfChaos))).toEqual({ title: ...
import * as React from 'react'; import { StyleSheet, View, StyleProp, ViewStyle, LayoutChangeEvent, } from 'react-native'; import { PanGestureHandler } from 'react-native-gesture-handler'; import Animated from 'react-native-reanimated'; import TabBar, { Props as TabBarProps } from './TabBar'; import Pager fro...
import { Component, OnInit } from '@angular/core'; import { BranchEntity } from '../entities/branch.entity'; import { ServiceEntity } from '../entities/service.entity'; import { TranslateService } from 'ng2-translate'; import { RetryService } from '../shared/retry.service'; import { AlertDialogService } from '../shared...
import React from 'react'; import { shallow } from 'enzyme'; import UsersTable, { Props } from './UsersTable'; import { OrgUser } from 'app/types'; import { getMockUsers } from './__mocks__/userMocks'; import { ConfirmModal } from '@grafana/ui'; jest.mock('app/core/core', () => ({ contextSrv: { hasPermission: ()...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { CustomerController } from './controllers/customers.controller'; import { CustomersService } from './services/customers.service'; import { Customer } from './entities/customer.entity'; import { UsersController } from './c...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'My Shop'; }
/** * Populate a given field through an array with references. */ export const execPopulation = (rows, toPopulate: string, connection, modelName: string, deep?): Promise<any[]> => { const promises: Promise<any>[] = []; const l = rows.length; for (let i = 0; i < l; ++i) { const document = rows[i]; if (d...
import styled, { css } from 'styled-components'; import { shade } from 'polished'; import { secondColor, mainColor, whiteColor, mediumFontWeight, largeFontWeight, titleColor, } from '../../styles/variables'; interface DestinationProps { isActive: boolean; } export const Container = styled.div<Destinatio...
<TS language="et_EE" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Loo uus aadress</translation> </message> <message> <source>&amp;New</source> <translation>&amp;Uus</translation> </message> <mes...
// std import { notStrictEqual, ok, strictEqual } from 'assert'; // 3p import { Context, createController, getHttpMethod, getPath, isHttpResponseCreated, isHttpResponseMethodNotAllowed, isHttpResponseNoContent, isHttpResponseNotFound, isHttpResponseOK } from '@foal/core'; import { createConnection, getConnection...
/** * Create an object composed of the picked object properties * @param {Object} object * @param {string[]} keys * @returns {Object} */ const pick = (object: any, keys: any) => { return keys.reduce((obj: any, key: any) => { if (object && Object.prototype.hasOwnProperty.call(object, key)) { obj[key] = ...
import convertToTokenArray from './convertTokens'; describe('convertToTokenArray', () => { it('converts given tokens to an array', () => { const typographyTokens = { withValue: { input: { value: { fontFamily: 'Inter', fontWeight: 'Regular', fontSize: 24...
import React, { useEffect, ReactElement, useState } from 'react'; import MenuTweenAddWiggle from './MenuTweenAddWiggle'; interface TweenLayerContextMenuProps { setTweenLayerContextMenu(TweenLayerContextMenu: any[] | null): void; } const TweenLayerContextMenu = (props: TweenLayerContextMenuProps): ReactElement => { ...
import { useMovies } from '../contexts/MoviesContext'; export function Header() { const { selectedGenre } = useMovies(); return ( <header> <span className="category"> Categoria<span> {selectedGenre?.title}</span> </span> </header> ); }
'use strict' /* * indicative * * (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. */ import test from 'japa' import * as Is from '../../src/raw' test.group('raw | before', () => { test('return true ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { UserProfileRoutingModule } from './user-profile-routing.module'; import {UserProfileComponent} from "./user-profile.component"; import {ButtonModule} from 'primeng/button'; import {DialogModule} from 'primeng/dialog'; imp...
import { ManagerConsts } from "./types"; const makeConstants = (managerId: string, prefix: "" | "DO_" = "") => { return { [prefix + "CREATE"]: managerId + "_" + prefix + "CREATE", [prefix + "DESTROY"]: managerId + "_" + prefix + "DESTROY", [prefix + "MODIFY"]: managerId + "_" + prefix + "MODIFY", [pr...
import * as React from "react"; type cool = { name: string; number: number; }; const coolArr: cool[] = [ { name: "Bert", number: 133, }, { name: "Ernie", number: 101, }, ]; interface Shoe { size: number; name: string; } interface Food { type: "fruit" | "vegetable"; name: string; ...
/* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { AlgorithmIdentifier, _decode_AlgorithmIdentifier, _encode_AlgorithmIdentifier, } from "../PKI-Stub/AlgorithmIdentifier.ta"; ex...
type Props = {}; const SettingComponent: React.FC<Props> = () => { return ( <> <div className="grid grid-cols-1 gap-4"> <div className="col-span-1 w-full">Settings</div> </div> </> ); }; export default SettingComponent;
import { checkCertFormat } from './index' import { strictEqual } from 'assert' describe('checkCertFormat', () => { it("should return valid: false if certificate is not json", async () => { const invalid = `this is a string, not json` const result = checkCertFormat(invalid) strictEqual(result.valid, false...
import { gettext } from "i18n"; const colorSet = [ { color: "black" }, { color: "darkslategrey" }, { color: "dimgrey" }, { color: "grey" }, { color: "lightgrey" }, { color: "beige" }, { color: "white" }, { color: "maroon" }, { color: "saddlebrown" }, { color: "darkgoldenrod" }, { color: "goldenro...
export default function constantify(word: string): string;
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AdminComponent } from './pages/admin/admin.component'; const routes: Routes = [ { path: 'auth', loadChildren: './pages/auth/auth.module#AuthModule'}, { path: 'admin', component: AdminComponent, loadChildren:...
import { InputType, Field } from '@nestjs/graphql' import { IsString, Length, IsNumber, Min, Max, IsArray, ArrayMaxSize, ArrayMinSize, } from 'class-validator' import { Type } from 'class-transformer' @InputType() export class CreateBookInput { @Field(() => String) @IsString() @Length(5, 70) tit...
export { IoColorSlider } from './color-slider.js'; export { IoColorSliderRed } from './color-slider-red.js'; export { IoColorSliderGreen } from './color-slider-green.js'; export { IoColorSliderBlue } from './color-slider-blue.js'; export { IoColorSliderHue } from './color-slider-hue.js'; export { IoColorSliderSaturatio...
import devalue from 'devalue' import { getErrorPageId, getPageIds, route, isErrorPage, loadPageRoutes, getFilesystemRoute } from './route.shared' import { renderHtmlTemplate, isHtmlTemplate } from './html.node' import { getViteManifest, ViteManifest } from './getViteManifest.node' import { getPageFile, getPageFiles } f...
import React from "react"; import styled from "styled-components"; import { ApiBook } from "./useColumns"; import { StarRating } from "../StarRating"; import { Card } from "../Card"; const Wrapper = styled(Card)` padding: 2rem; `; const Title = styled.p` color: var(--text-light); font-size: 1.5rem; line-heigh...
import React from "react"; import UserLogout from "components/user/logout/Logout"; import {act, render} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import ApiService from 'utils/apiService'; describe('User Logout component test', () => { test('Render the logout element', () =>...
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client.ts"; import { DescribeSnapshotAttributeRequest, DescribeSnapshotAttributeResult } from "../models/models_3.ts"; import { deserializeAws_ec2DescribeSnapshotAttributeCommand, serializeAws_ec2DescribeSnapshotAttributeCommand, ...
import httpMocks from 'node-mocks-http'; import type { OptionsWithDefaults, PageObject } from '../commonTypes'; export default function makeHttpObjects({ pageObject: { params, route }, reqMocker, resMocker, }: { pageObject: PageObject; reqMocker: OptionsWithDefaults['req']; resMocker: OptionsWithDefaults['...
/** * * * OpenAPI spec version: 20200430 * * * 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...
export * from "./resetSchema.ts"; export * from "./userSchema.ts"; export * from "./tokenSchema.ts";
import { SlashCommandBuilder } from '@discordjs/builders'; import { WriteBatch } from '@google-cloud/firestore'; import { CommandInteraction, Guild, GuildMember } from 'discord.js'; import { Command } from '../utilities/command'; export default class SetupCommand extends Command { async build() { return new Slas...
export { bgCyan, white, bold, italic } from 'https://deno.land/std/fmt/colors.ts';
import * as React from 'react' import createSvgIcon from './utils' //tslint:disable export default createSvgIcon( <g> <path fill="none" d="M0 0h24v24H0z" /> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z" /> </g>, 'IcPauseCircleFilled' )
import "mocha" import { expect } from "chai" import { DropboxApi } from "../../src/api/persistence/dropboxApi" describe("testing DropboxApi", () => { it("TODO") })
import { ArgType } from '@storybook/addons' import { ICheckboxProps } from './Checkbox.props' import { colors } from './__fixtures__/colors' import { booleanArgType } from '../../../.storybook/argTypes/booleanArgType' import { objectArgType } from '../../../.storybook/argTypes/objectArgType' const argTypes : Record<ke...
import fastify from 'fastify' import fastifyStatis from 'fastify-static' import fastifyCookie from 'fastify-cookie' import crypto from 'node:crypto' import { join, dirname } from 'node:path' import { fileURLToPath } from 'node:url' import dedent from 'dedent' import { Bot } from 'grammy' import { Jobs } from './jobs.js...
import axios from 'axios'; import BigNumber from 'bignumber.js'; import { sleep, asyncMiddleman } from './utils'; export class TendermintRpc { private url: string; constructor(url: string) { this.url = url; } public broadcastTx(encodedTx: string) { return axios.post(`${this.url}`, { ...
import { buildTestsWithInvalidObjectKeyAtomics, buildTestsWithInvalidObjectKeyValues, buildTestsWithObjectsMissingRequiredKeys, buildTestsWithValidObjectKeyValues, buildTestsWithValidObjects, TestCase, testPropType } from '../../tests/lib'; import { callbackPropType, messagePropType } from './messages'; import {...
declare module 'pigeon-overlay' { import React from 'react'; export interface PigeonOverlayProps { anchor: number[]; offset?: number[]; className?: string; style?: any; } const PigeonOverlay: React.ComponentType<PigeonOverlayProps>; export default PigeonOverlay; }
import type * as vite from 'vite'; import type http from 'http'; import type { AstroConfig, ManifestData } from '../@types/astro'; import type { RenderResponse, SSROptions } from '../core/render/dev/index'; import { debug, info, warn, error, LogOptions } from '../core/logger/core.js'; import { appendForwardSlash } from...
import React, { useCallback } from 'react'; import { useDropzone } from 'react-dropzone'; import { Icon, Header } from 'semantic-ui-react'; interface IProps { setFiles: (files: object[]) => void; } const dropzoneStyles = { border: 'dashed 3px', borderColor: '#eee', borderRadius: '5px', paddingTop: '30px', ...
#!/usr/bin/env node import * as debug from "debug"; import * as grpc from "@grpc/grpc-js"; import {BookServiceService, IBookServiceServer} from "./proto/book_grpc_pb"; import { Book, GetBookRequest, GetBookViaAuthor, BookList, GetBookListRequest } from "./proto/book_pb"; const log = debug("SampleServer"); type Know...
<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 { applyMiddleware, combineReducers, createStore } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import createSagaMiddleware from 'redux-saga'; import reducers from './reducers'; import sagas from './sagas'; const sagaMiddleware = createSagaMiddleware(); export default createStore...
import { filterPropertyToName } from "renderer/lib/filerPropertyName/filterPropertyToName"; import { IdProperty, LFT_ID, LFT_OPACITY, OpacityProperty } from "types/filters"; describe("filterPropertyToName", () => { it("should return id prop name", () => { const props: IdProperty = { type: LFT_ID }; ...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { getFlippedElementPositionsBeforeUpdate, onFlipKeyUpdate } from 'flip-toolkit' import { FlipperProps, InProgressAnimations, FlipCallbacks } from 'flip-toolkit/lib/types' import { FlippedElementPositionsBeforeUpdateReturnVals }...
import * as t from 'io-ts' import { FhirCode } from './FhirCode' import { FhirCodeableConcept } from './FhirCodeableConcept' import { FhirCoding } from './FhirCoding' import { FhirElement } from './FhirElement' import { FhirExtension } from './FhirExtension' import { FhirId } from './FhirId' import { FhirIdentifier } f...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Simplicity</source> <translation>О Simplicity-u</translation> </message> <message> <loc...
import { Component, OnInit } from '@angular/core'; import { User } from 'src/app/model/user.model'; import { DashboardService } from '../../services/dashboard/dashboard.service'; @Component({ selector: 'app-cards', templateUrl: './cards.component.html', styleUrls: ['./cards.component.css'] }) export class Cards...
/** * Copyright 2015 CANAL+ Group * * 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 t...
'use strict'; export {} from 'a';
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { RepoId } from '.' import { EntityId } from './entity_id' type HasTypeProperty<Map> = { [Key in keyof Map]: { type: Key } } type DomainEventMap = EventMap<DomainEvent> & HasTypeProperty<EventMap<DomainEvent>> type EventMap<Event> = Record<string, Event> type EventKey<Map extends DomainEventMap> = string & keyo...
// Copyright 2018 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 { assert, assertUsage, slice } from '../shared/utils' import { getSsrEnv } from './ssrEnv' export { prependBaseUrl } export { removeBaseUrl } export { startsWithBaseUrl } export { assertBaseUrl } // Possible values: // `base: '/some-nested-path/'` // `base: 'https://another-origin.example.org/'` // `base: './...
export default ` type Pet { id: ID! owningUserId: String! createdAt: String! modifiedAt: String! name: String! } input NewPet { owningUserId: String! name: String! } input UpdatedPet { name: String! } `;
import { nano } from './microtime'; export const getId = (): string => { return `${nano()}`; };
import { Fragment, ReactElement, useEffect, useState } from 'react' import { observer } from 'mobx-react-lite' import { t } from '@i18n' import datasetStore from '@store/dataset' import zoneStore from '@store/filterZone' import { PopperButton } from '@components/popper-button' import { PopperTableModal } from '@compon...
import { _render } from '../core'; import { _state } from '../state' export const useState = (state: any, id: string) => { const s = { setState(state: any) { if (state !== null) _state.set(id, state); const effectFunc: any[] = [...(_state.get(`${id}_useEffect_func`) || [])]; ...
// *** 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 * as xml2js from 'xml2js'; import { Products } from '../../../produtcs.model'; import { isApplicationJSON, isApplicationXML } from './validate.file.type'; function convertApplicationJsonBufferToObject(value: any): Array<Products> { const produtcs: Products[] = []; const rawData = JSON.parse(value.buffer.toS...
import * as React from 'react'; import {Theme, ThemeProvider} from '@emotion/react'; import {InputProvider} from './InputProvider'; import {defaultCanvasTheme, PartialEmotionCanvasTheme} from './theming'; export interface CanvasProviderProps { theme: PartialEmotionCanvasTheme; } export class CanvasProvider extends ...
import {TestBed, inject} from '@angular/core/testing'; import {StringToolsService} from './string-tools.service'; describe('StringToolsService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [StringToolsService] }); }); it('should be created', inject([StringToolsService], ...