text
stringlengths
10
953k
import React from 'react'; import { HoverablePopover, Markdown } from 'core/presentation'; import { QueryGitMetadata } from '../types'; import { TOOLTIP_DELAY } from '../../utils/defaults'; import './GitLink.less'; interface IGitLinkProps { gitMetadata: NonNullable<QueryGitMetadata>; } export const GitLink = ({ ...
import { ICookieStorageData, ICognitoStorage, CognitoUserAttribute, } from 'amazon-cognito-identity-js'; /** * Parameters for user sign up */ export interface SignUpParams { username: string; password: string; attributes?: object; validationData?: CognitoUserAttribute[]; clientMetadata?: { [key: string]: st...
import { Card, Path, Input, GameState, CompetitionState, Player, BriscolaEvent, CompetitionEvent, PlayerEvent } from "ddd-briscola-model" export type Command = StarApplication | CreatePlayer | PlayerLogon | CompetitionCommand | PlayCard | SelectPlayerForCompetition | SetCompetitionKind | SetCompetitionDeadline | Set...
import * as React from 'react' import styled from 'styled-components' import * as IconGlyph from './components' import { IconNames } from './IconNames' export interface IconProps { name: IconNames color?: string size?: number } const IconFactory: React.FC<IconProps> = ({ name, color, size, ...props }) => { con...
import Poly3 from './type' import Vec3 from '../../maths/vec3/type' export default measureBoundingSphere declare function measureBoundingSphere(polygon: Poly3): [Vec3, Vec3]
import { ref } from "@vue/composition-api"; import { Vue, nextTick } from "../utils"; import { useIntersectionObserver, IntersectionObserverOptions } from "../../src"; describe("IntersectionObserver", () => { const _intersectionObserver = window.IntersectionObserver; const observeFn = jest.fn(); const unobs...
import React, { useContext } from "react" import BlockContext from "./BlockContext" // tslint:disable-next-line: match-default-export-name no-submodule-imports // eslint-disable-next-line @typescript-eslint/no-unused-vars import JacdacContext, { JacdacContextProps } from "../../jacdac/Context" import DeviceAvatar from ...
import React from 'react'; import classnames from 'classnames'; import styled from '@emotion/styled'; import { LocalizeProps } from '@seolhun/localize-components-styled-types'; import { useDisclosure } from '@seolhun/localize-components-hooks'; import { LAYOUT, fadeIn } from '../../styles'; const CLASSNAME = '__Loc...
export interface Stringable { toString() : string; }
import { IExecuteFunctions, IHookFunctions, } from 'n8n-core'; import { NodeApiError, NodeOperationError, } from 'n8n-workflow'; import { OptionsWithUri, } from 'request'; /** * Make an API request to NextCloud * * @param {IHookFunctions} this * @param {string} method * @param {string} url * @param {object} ...
import {Component, OnInit} from '@angular/core'; import {AuthenticationService} from '../../services/auth/authentication-service'; import {environment} from '../../../../environments/environment'; import {appLogger} from '../../app-logger'; @Component({ selector: 'app-simple-header', templateUrl: './simple-header...
<TS language="es_MX" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Click derecho para editar dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> ...
import { commands, ICommand } from '@uiw/react-md-editor'; export const getCommands: () => ICommand[] = () => [ commands.bold, commands.italic, commands.strikethrough, commands.hr, commands.title, commands.divider, commands.link, commands.quote, commands.code, commands.codeBlock, commands.image, ...
// This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, apiUrl: 'https://beloturwebapi20181114060840.a...
/*! ***************************************************************************** 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...
import React from 'react' import useEventListener from '@/hooks/common/useEventListener' import BackgroundImage from './components/background-image' import { useDesktopContext, withDesktopProvider } from './provider' import AllAppsScreen from './screens/all-apps-screen' import Navbar from './components/navbar' import S...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { ConfigurationTarget, WorkspaceConfiguration } from 'vscode'; export class MockWorkspaceConfiguration implements WorkspaceConfiguration { // tslint:disable: no-any public get(key: string): an...
export const HISTORY_ITEMS_PER_PAGE = 20;
export enum ProxySource { no = 'no', system = 'system', manual = 'manual' } export enum ProxyProtocol { http = 'http', https = 'https', socks4 = 'socks4', socks4a = 'socks4a', socks5 = 'socks5', socks5h = 'socks5h' } export type ManualProxy = { protocol: '' | ProxyProtocol host: string port: s...
/** * @license * Copyright 2020 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
import * as React from 'react'; import { cloneElement, useMemo, useContext, ReactElement } from 'react'; import PropTypes from 'prop-types'; import { sanitizeListRestProps, Identifier, SortPayload, Exporter, useListContext, useResourceContext, useResourceDefinition, } from 'ra-core'; import ...
import { IUpdateParameterNamesAction, updateParameterNames } from './'; import { IUpdateLoadingState, updateLoadingState } from './'; import { IParameters } from '../../reducers/formulas'; import { IInverseProblemRequest } from '../../../../server/rest/model/inverse-problem-rest'; import {IInverseProblemSolution, IInve...
import React, { useContext } from "react"; import { Grid, IconButton, TextField } from "@material-ui/core"; import LinkIcon from "@material-ui/icons/Link"; import LinkOffIcon from "@material-ui/icons/LinkOff"; import VerticalAlignCenterIcon from "@material-ui/icons/VerticalAlignCenter"; import ZoomOutMapIcon from "@mat...
import { ButtonGroup } from '@trussworks/react-uswds' import type { LoaderFunction } from '@remix-run/node' import { Link } from '@remix-run/react' export const loader: LoaderFunction = function () { throw new Response(null, { status: 404 }) } export function CatchBoundary() { return ( <> <h1>Error 404:...
import gql from 'graphql-tag' export default gql` query myActivities($limit: Int, $offset: Int) { myActivities(limit: $limit, offset: $offset) { id title description polyline startTime duration elevation distance createdAt updatedAt user { ...
declare module 'fast-voxel-raycast' { type Vector = [number, number, number]; function traceRay<T = string>(getVoxel: (x: number, y: number, z: number) => T, origin: any, direction: Vector, max_d?: number, hit_pos?: number[], hit_norm: number[]): 0 | T; export default traceRay; };
export default function() { let counter = 0; let iscensor = true; let url = geturl(); // 获取刚加载脚本时的Url setTimeout(censor, 1000); go(); function go() { counter++; if (document.querySelector(".bilibili-player-video-btn.bilibili-player-video-web-fullscreen") && (document...
import { browserOrNode, isWebWorker } from '@aws-amplify/core'; import Observable, { ZenObservable } from 'zen-observable-ts'; type NetworkStatus = { online: boolean; }; export default class ReachabilityNavigator implements Reachability { private static _observers: Array< ZenObservable.SubscriptionObserver<Networ...
import { SubPath, redirect } from '../../utils/routeUtils'; import Router from '../../utils/Router'; import { RouteType } from '../../utils/types'; import { AppContext, HttpMethod } from '../../utils/types'; import { bodyFields, formParse } from '../../utils/requestUtils'; import { ErrorForbidden, ErrorUnprocessableEnt...
// // 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 ...
import { pad } from '../index'; declare const NoPadding: typeof pad.NoPadding; export = NoPadding;
import React from 'react'; import { act, render, waitFor } from 'react-native-testing-library'; import RenderHTML from '../RenderHTML'; import ImgTag from '../elements/IMGElement'; import TTextRenderer from '../TTextRenderer'; import { CustomTextualRenderer } from '../render/render-types'; import { defaultHTMLElement...
import { Injectable } from '@nestjs/common'; @Injectable() export class AppService { static getHello(): string { return JSON.stringify({ hello: 'wellcome to get this api' }); } }
import { TestUtils } from '../../test'; import { BwcProvider } from '../bwc/bwc'; import { ConfigProvider } from '../config/config'; import { PersistenceProvider } from '../persistence/persistence'; import { FeeProvider } from './fee'; describe('Provider: Fee Provider', () => { let feeProvider: FeeProvider; let pe...
export { default as alertBehavior } from './Alert/alertBehavior'; export * from './Alert/alertBehavior'; export { default as alertWarningBehavior } from './Alert/alertWarningBehavior'; export { default as alertBaseBehavior } from './Alert/alertBaseBehavior'; export * from './Attachment/attachmentBehavior'; export { def...
import { internet } from 'faker' import { InvalidFieldError } from '../errors/InvalidFIeldError' import { EmailValidation } from './EmailValidation' interface SutType { sut: EmailValidation } const email = internet.email() const makeSut = (): SutType => { const sut = new EmailValidation('email') return { ...
/// <reference types="node" /> import { EventEmitter } from 'events'; import { Socket } from 'net' import * as Stream from 'stream' import { Agent } from 'http' type PromiseLike = Promise<void> | void declare module 'minecraft-protocol' { export class Client extends EventEmitter { constructor(isServer: boolean, v...
import React, { useState } from 'react' import { Formik, Form, Field } from 'formik' import { useMutation } from 'react-apollo' import gql from 'graphql-tag' import { CompanyApplication } from '@island.is/gjafakort-web/graphql/schema' import { FieldInput, FieldNumberInput, KeyValue, } from '@island.is/gjafakort-...
import { CPID, PublicKey } from '../types'; export interface BeaconRevoke { result: 'SUCCESS'; cpid: CPID; publicKey: PublicKey; }
/// <reference types="ws" /> /// <reference types="node" /> import { proto } from '../../WAProto'; import { AppStateChunk, ChatModification, Contact, SocketConfig, WABusinessProfile, WAMediaUpload, WAPatchCreate, WAPatchName, WAPresence } from '../Types'; import { BinaryNode } from '../WABinary'; export declare const m...
import { Test, TestingModule } from '@nestjs/testing'; import { SkiperUserInvoiceService } from './skiper-user-invoice.service'; describe('SkiperUserInvoiceService', () => { let service: SkiperUserInvoiceService; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ pro...
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository, getRepository } from 'typeorm'; import { Sessions } from './sessions.entity'; @Injectable() export class SessionsService { constructor( @InjectRepository(Sessions) private sessionsRepository:...
import * as path from 'path'; module.exports = { development: { client: 'sqlite3', connection: { filename: 'database/database.sqlite' }, useNullAsDefault: true, migrations: { directory: path.join(__dirname, 'migrations'), }, } }
import { Logger } from "@nestjs/common"; import { NestFactory } from "@nestjs/core"; import { AppModule } from "./app.module"; import * as config from "config"; async function bootstrap() { const app = await NestFactory.create(AppModule); const serverConfig = config.get("server"); const port = serverConfig.port...
import { css } from '@emotion/css'; import React, { useCallback, useMemo, useRef, useLayoutEffect, useState } from 'react'; import { PanelProps, Field, Labels, GrafanaTheme2, LogsSortOrder, LogRowModel, DataHoverClearEvent, DataHoverEvent, } from '@grafana/data'; import { LogRows, CustomScrollbar, LogL...
import { Entity, PrimaryColumn, Column, ManyToOne, OneToMany } from 'typeorm'; import { BaseModel } from './base/BaseModel'; import { ExperimentUser } from './ExperimentUser'; import { MonitoredExperimentPointLog } from './MonitorExperimentPointLog'; import { ENROLLMENT_CODE } from 'upgrade_types'; @Entity() export cl...
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class SupervisorService { constructor() { } }
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn special-lint-fix` to update */ import { ArrayExpression, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentPattern, AssignmentProperty, AwaitExpression, BinaryExpression, BlockStatement, BreakStatement, ...
import { Component, OnInit, ViewEncapsulation, OnDestroy } from '@angular/core'; import { combinedNonFictionQuery, combinedFictionListQuery } from 'GraphQL/query/query' import { Router } from '@angular/router'; import { Store } from '@ngrx/store'; import { sendBook } from 'Core/actions/core.actions'; import { Book , St...
import React from 'react'; import { Helmet } from 'react-helmet-async'; import { useTranslation } from 'react-i18next'; import { useParams } from 'react-router-dom'; import { translations } from 'locales/i18n'; import { PageHeader } from 'app/components/PageHeader/Loadable'; import { tokenColunms, utils } from 'utils/t...
import { Import, PLUGIN_SCHEMAS } from '@modern-js/utils'; import type { CliPlugin } from '@modern-js/core'; const cssConfig: typeof import('@modern-js/css-config') = Import.lazy( '@modern-js/css-config', require, ); const mlc: typeof import('./module-less-config') = Import.lazy( './module-less-config', requir...
import React from "react"; import Card from "react-bootstrap/Card"; import { FaRegEdit, FaCopy, FaTrash } from "react-icons/fa"; import Form from "@rjsf/bootstrap-4"; import { KsSchema } from "../kschema"; const CardGrid = (props: any): JSX.Element => { const { cardPayload, handleSelectKernelspec, handleCopyKernelsp...
/** * @author SessionLand * @namespace Common_I18N_Profile_Common * @description Profile */ export enum COMMON_PROFILE_COMMON { PRIVACY = "PRIVACY", PRIVACY_AND_PERMISSION = "PRIVACY_AND_PERMISSION", }
export function checkNamesValidation(inputString: string): boolean { const rawNames: string[] = inputString.split(","); const names: string[] = rawNames .map(x => x.trim()) .filter(x => x.length <= 5 && x.length > 0); if (rawNames.length != names.length || names.length > 5) { return false; } retur...
import { GraphQLNonNull, GraphQLString } from "graphql" import { mutationWithClientMutationId } from "graphql-relay" import { formatGravityError } from "lib/gravityErrorHandler" import { CreditCardMutationType } from "../credit_card" import { ResolverContext } from "types/graphql" export const deleteCreditCardMutation...
import * as gulp from 'gulp'; import * as util from 'gulp-util'; import * as runSequence from 'run-sequence'; import Config from './tools/config'; import { loadTasks, loadCompositeTasks } from './tools/utils'; loadTasks(Config.SEED_TASKS_DIR); loadTasks(Config.PROJECT_TASKS_DIR); loadCompositeTasks(Config.SEED_COMPO...
import { watch, watchEffect, computed, reactive, ref, set, shallowReactive, nextTick, } from '../../../src' import Vue from 'vue' // reference: https://vue-composition-api-rfc.netlify.com/api.html#watch describe('api: watch', () => { // const warnSpy = jest.spyOn(console, 'warn'); const warnSpy = ...
/** @jsx jsx */ import { jsx } from "@emotion/core"; import styled from "@emotion/styled"; import Button, { ButtonStyle } from "../../../ui/buttons/Button"; import Header2 from "../../../ui/headers/Header2"; import Subheader2 from "../../../ui/subheaders/Subheader2"; import Title3 from "../../../ui/titles/Title3"; imp...
export type HookType = 'BeforeAll' | 'AfterAll' | 'BeforeEach' | 'AfterEach';
import { snapshot, initFullPageEditorWithAdf, Device } from '../_utils'; import { clickEditableContent, typeInEditor, } from '../../__helpers/page-objects/_editor'; import { insertMedia, waitForMediaToBeLoaded, } from '../../__helpers/page-objects/_media'; describe('Snapshot Test: Media', () => { let page; ...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Subscription } from 'rxjs/Rx'; import { JhiEventManager } from 'ng-jhipster'; import { TwitterBot } from './twitter-bot.model'; import { TwitterBotService } from './twitter-bot.service'; @Component...
import Button from "../Form/Button"; import { css, StyleSheet } from "aphrodite"; import React from "react"; export type AuthorClaimPromptSuccessProps = { handleContinue: Function; }; export default function AuthorClaimPromptSuccess({ handleContinue, }: AuthorClaimPromptSuccessProps) { return ( <div classNa...
import {Component, Injectable,ViewEncapsulation,ViewChild,Input} from '@angular/core'; import {AirlockService} from "../../../services/airlock.service"; import * as $$ from 'jquery'; import 'select2'; import { ModalComponent } from 'ng2-bs3-modal/ng2-bs3-modal'; import {Feature} from "../../../model/feature"; import {R...
import { ClassSerializerInterceptor, HttpStatus, Logger, UnprocessableEntityException, ValidationPipe, } from '@nestjs/common'; import { NestFactory, Reflector } from '@nestjs/core'; import type { NestExpressApplication } from '@nestjs/platform-express'; import { ExpressAdapter } from '@nestjs/platform-expres...
import * as React from 'react'; import {useStyletron} from 'baseui'; import {Button} from 'baseui/button'; import {ButtonGroup} from 'baseui/button-group'; function ControlledButtonGroup() { const [useCss, theme] = useStyletron(); const [selected, setSelected] = React.useState(1); const [boldClickCount, setBoldC...
import {Component, Input, Output, EventEmitter, ViewChild, ElementRef} from '@angular/core'; import {Account} from './account.model'; @Component({ selector: 'account-form', templateUrl: 'app/account/account_form.component.html', styleUrls: ['app/account/account_form.component.css'] }) export class AccountForm ...
import Iris from './Iris'; export default Iris;
import { ComponentType } from 'react'; import { CustomIconProps } from '@monorail/visualComponents/icon/Icon'; export declare const ShieldKey: ComponentType<CustomIconProps>;
/** * @license * Copyright 2019 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 ...
export const sleep = (ms: number): Promise<void> => new Promise(r => setTimeout(r, ms));
import axios from 'axios' export function betaFeatures(baseUrl: string, token: string) { function findAction(data: { templateVariable: { 'user.id': string } queryParameter: { include: string[] } }) { if ( Object.keys(data.templateVariable).length === 1 && 'user.id' in data.templateVariable ...
/** * Imagine we’re working on a system that handles strings that can contain placeholder tokens. * Write a function string ExpandString(string input) that expands the tokens.  * Be aware that the tokens can contain other tokens. * * Example : expand the input “${greeting}” * Given the following substitutions :...
export * from './AppleIcon'; export * from './BugIcon'; export * from './CheckIcon'; export * from './ChevronDownIcon'; export * from './FacebookIcon'; export * from './GoogleIcon'; export * from './SearchIcon'; export * from './SquareIcon'; export * from './CloseIcon'; export * from './NextIcon'; export * from './Paus...
/* adapted from https://github.com/gcanti/fp-ts */ /** * Data structure which represents non-empty arrays */ import * as AP from "../Apply" import * as A from "../Array" import type { CAlt1, CApplicative1, CComonad1, CFoldable1, CFoldableWithIndex1, CFunctorWithIndex1, CMonad1, CSequence1, CTraver...
import {Plural, Trans} from '@lingui/react' import {DataLink} from 'components/ui/DbLink' import {Event, Events} from 'event' import {Analyser} from 'parser/core/Analyser' import {filter} from 'parser/core/filter' import {dependency} from 'parser/core/Injectable' import {Data} from 'parser/core/modules/Data' import Sug...
export * from './demo-image-preview.base-component';
// This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js/dist/zone-testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; /* tslin...
/* * 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 { mount, shallow } from 'enzyme'; import toJson from 'enzyme-to-json';...
<TS language="es_ES" version="2.1"> <context> <name>AddNewAddressDialog</name> <message> <source>Dialog</source> <translation>Diálogo</translation> </message> <message> <source>New Address</source> <translation>Nueva Dirección</translation> </message> <message> ...
import { Event, ScrollEvent, Step } from "@qawolf/types"; export const buildScrollSteps = (events: Event[]): Step[] => { const steps: Step[] = []; for (let i = 0; i < events.length; i++) { const event = events[i] as ScrollEvent; // ignore other actions if (event.name !== "scroll") continue; // i...
/** * * GENERATED FILE DO NOT EDIT CHANGES WITH BE OVERWRITEN EXTEND INSTEAD * */ import { UseGuards } from '@nestjs/common'; import { Resolver, Mutation,Query,Info, Args, Context, Parent } from '@nestjs/graphql'; import { Recommendation, RecommendationResponse, ...
/** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported...
/* * 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 from 'react'; import { EuiAccordion, EuiFlexGroup, EuiFlexItem, ...
/* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ import { hasOwnProperty, getOwnPropertyDescriptor } from '../shared/language'; const { hasAttribute, ...
// This file is required by karma.conf.js and loads recursively all the .spec and framework files import 'zone.js/dist/long-stack-trace-zone'; import 'zone.js/dist/proxy.js'; import 'zone.js/dist/sync-test'; import 'zone.js/dist/jasmine-patch'; import 'zone.js/dist/async-test'; import 'zone.js/dist/fake-async-test'; i...
/// <reference path="entry.ts" /> class CedictParser { /** * Parses a CEDICT text file into a list of entries */ static parse(url: string): Entry[] { var xhr = new XMLHttpRequest(); xhr.open("GET", url, false); // "false" to open synchronously xhr.send(); retu...
export const player = function (player, serv) { player._client.on('client_command', (data) => { let actionId if (serv.supportFeature('respawnIsPayload')) { actionId = data.payload } else if (serv.supportFeature('respawnIsActionId')) { actionId = data.actionId } if (actionId === 0) { ...
import Button from "./Button" import IconButton from "./IconButton/IconButton" export { IconButton } export default Button
import cors from 'cors'; import express from 'express'; import {sequelize} from './sequelize'; import {IndexRouter} from './controllers/v0/index.router'; import bodyParser from 'body-parser'; import {config} from './config/config'; import {V0_FEED_MODELS, V0_USER_MODELS} from './controllers/v0/model.index'; (async ...
import React, { FC, useCallback, useState } from 'react'; import { toast } from 'react-toastify'; import TableWithPagination from './TableWithPagination'; import { GROUPS_OPTIONS, GROUPS_PREVIOUS_OPTIONS } from './platformAssistantOptions'; import CreateGroup from './CreateGroup'; import EditGroup from './EditGroup'; i...
import { Component, TemplateRef,OnInit , ViewChild,ViewEncapsulation } from '@angular/core'; import { LocalDataSource } from 'ng2-smart-table'; import { NbWindowService } from '@nebular/theme'; import { NbWindowRef } from '@nebular/theme'; import { Router, ActivatedRoute } from '@angular/router'; import { HttpClien...
import { useState } from 'react'; import Client from '../core/Client'; import Button from './Button'; import Input from './Input'; interface FormProps { client: Client clientChanged?: (client: Client) => void canceled?: () => void } export default function Form(props: FormProps) { const id = props.client?.id ...
import { GraphbackCRUDService, GraphbackDataProvider } from '..'; import { PubSubEngine } from 'graphql-subscriptions'; /** * Interface defines context object required by Graphback resolver layer */ export interface GraphbackRuntimeContext { crudService: GraphbackCRUDService crudDb: GraphbackDataProvider ...
declare module "simple-plist" { // eslint-disable-next-line @typescript-eslint/no-explicit-any export function readFileSync(path: string): Record<string, any>; }
// Copyright (c) 2019 The DAML Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 import { ChoicesButton, ContractColumn, } from '@da/ui-core'; import * as React from 'react'; import Link from '../../components/Link' import * as Routes from '../../routes' import { Contract } from './data'; expor...
import React, { Component } from "react"; import { ReposWithPullRequests } from "../types/ReposWithPullRequests"; import { PullRequest } from "../types/PullRequest"; import moment from "moment"; interface RepoStatsProps { repos: ReposWithPullRequests[]; } interface RepoStatsState { reposSortedByCount: ReposWithPu...
import packageManager from '@pnpm/cli-meta' import renderHelp = require('render-help') export default function (helpByCommandName: Record<string, () => string>) { return function (opts: {}, params: string[]) { let helpText!: string if (params.length === 0) { helpText = getHelpText() } else if (help...
import {Component, ViewChild} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {forEach} from '@angular/router/src/utils/collection'; import {CooTableConfig} from '../../../src/model/coo-table-config.model'; import {CooTableService} from './modules/table/coo-table.service'; import {Listing...
import { ExecutionContext, Injectable } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { AuthGuard } from '@nestjs/passport'; @Injectable() export class JwtAuthGuard extends AuthGuard('jwt') { constructor(private reflector: Reflector) { super(); } canActivate(context: ExecutionConte...
/** * 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 {Consumer, consumeUnknown} from '@romejs/consume'; import {consumeJSON} from '@romejs/codec-json'; import test, {dirname} f...