text
stringlengths
10
953k
import * as React from 'react'; const TermsOfService: React.FC = () => ( <React.Fragment> <p>TODO: 利用規約</p> </React.Fragment> ); export default TermsOfService;
import { Component, Input, Output, EventEmitter, SimpleChanges } from "@angular/core"; import { FormGroup, FormBuilder, Validators } from "@angular/forms"; import { MatSnackBar } from "@angular/material"; import { ApiService } from "src/app/services/api.service"; @Component({ selector: "health-history-pane...
import { Box, Center, Grid } from "@chakra-ui/layout"; import { useBreakpointValue } from "@chakra-ui/media-query"; import { useFormik } from "formik"; import { QRCode } from "react-qrcode-logo"; import FormInput from "components/ui/FormInput"; import FormSelect from "components/ui/FormSelect"; import SaveQRButton fro...
import React, { HTMLAttributes, ReactElement } from 'react'; import { Roxie } from '@roxie/core'; interface ContainerProps extends HTMLAttributes<HTMLDivElement> { layout?: string, north?: ReactElement, south?: ReactElement, west?: ReactElement, east?: ReactElement, center?: ReactElement, } const layoutCl...
/* tslint:disable:no-unused-variable */ import { TestBed, async, inject } from '@angular/core/testing'; import { ClassifiedAdsService } from './classifiedAds.service'; describe('Service: ClassifiedAds', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ClassifiedAdsService] }); ...
import * as React from 'react'; import { connect } from 'react-redux'; import * as Creators from 'kayenta/actions/creators'; import DeleteConfigModal from './deleteModal'; import { ICanaryState } from 'kayenta/reducers'; import { DisableableButton, DISABLE_EDIT_CONFIG } from 'kayenta/layout/disableable'; interface ID...
import { freeze } from '@lib/freeze'; import { IImmutable as ILocale } from '@lib/ILocale'; import { macedonia, Macedonia } from '@lib/locale/Iso3166/Part1/Alpha2'; import { macedonian, Macedonian } from '@lib/locale/Iso639/Part1'; /** * The locale interface for the Macedonian language spoken in Macedonia */ export ...
import { ComponentMetadata } from '@/components/types' import { startResolution } from './resolution' export const component: ComponentMetadata = { name: 'imageResolution', displayName: '高分辨率图片', tags: [ componentsTags.utils, ], enabledByDefault: window.devicePixelRatio > 1, entry: startResolution, d...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-striped', templateUrl: './striped.component.html', styleUrls: ['./striped.component.scss'] }) export class StripedComponent implements OnInit { constructor() { } ngOnInit(): void { } }
import { TriageLogResponse2 } from '../rpc_types'; export const firstPageV2: TriageLogResponse2 = { entries: [ { id: 'aaa', name: 'alpha@google.com', ts: 1572000000000, details: [ { grouping: { source_type: 'corpus1', name: 'async_rescale_and_read...
import * as React from 'react'; import { observer } from 'mobx-react'; import { observable } from "mobx"; import { Row, Col, Divider, Switch, Input, Spin, List, Select, Descriptions } from 'antd'; import { TestStatsViz } from './TestResultBar'; import { testStore } from '../../stores/tests/TestStore'; import { Testca...
import {OutlookProtocol} from "./OutlookProtocol"; import {OutlookUser} from "./OutlookUser"; import {OutlookAccount} from "./OutlookAccount"; import {AutodiscoverResponseType} from "../../../Enumerations/AutodiscoverResponseType"; import {EwsXmlReader} from "../../../Core/EwsXmlReader"; import {UserSettingName} from ...
import React, { useMemo } from 'react'; import EmptyStar from './icons/EmptyStar'; import HalfStar from './icons/HalfStar'; import FullStar from './icons/FullStar'; const Rating = ({ rating, reviews }:{rating:number, reviews:number}) => { const starsRating = useMemo(() => { const stars = []; for (let i = 0;...
import "./generate-scene"; import "./save-project";
import { derived, writable } from "svelte/store"; const storedTheme = localStorage.getItem("theme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"); export const theme = writable<string>(storedTheme); theme.subscribe((value) => { document.documentElement.setAttribute("...
import { createNewDish } from "@/features/dishes" import clsx from "clsx" import { useEvent } from "effector-react/scope" import Image from "next/image" import React, { memo, FC, useRef } from "react" interface CreateDishCardProps {} const CreateDishCard: FC<CreateDishCardProps> = () => { const isLoading = false ...
import { AppPage } from './app.po'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to halangular-lib!'); }); });
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import * as assert from "assert"; import * as dotenv from "dotenv"; import * as fs from "fs"; import { AbortController } from "@azure/abort-controller"; import { isNode, URLBuilder, URLQuery } from "@azure/core-http"; import { SpanGraph, setTra...
import { Input } from '@angular/core'; import { Component, OnInit } from '@angular/core'; import { Guild } from 'src/app/models/Guild'; @Component({ selector: 'app-guild-icon', templateUrl: './guild-icon.component.html', styleUrls: ['./guild-icon.component.css'] }) export class GuildIconComponent { @Input() p...
import db from '.'; export const getPasswordByUsername = async (username: string) => { try { const res = await db.query( 'SELECT password_hash FROM admins WHERE username = $1', [username] ); return res.rows[0]?.password_hash; } catch (e) { console.log(e); } }
import store from 'state/store'; import { updateFiatPrices } from 'state/price'; import { ASSET_PRICE_API, DEFAULT_CURRENCY } from 'constants/index'; import IAssetListState from 'state/assets/types'; import IVaultState from '../../../state/vault/types'; export interface IControllerUtils { appRoute: (newRoute?: stri...
import { ArtistAboutContainer } from "app/Components/Artist/ArtistAbout/ArtistAbout" import ArtistArtworks from "app/Components/Artist/ArtistArtworks/ArtistArtworks" import { ArtistHeaderFragmentContainer } from "app/Components/Artist/ArtistHeader" import { ArtistInsights } from "app/Components/Artist/ArtistInsights/Ar...
import dayjs from 'dayjs' const headers = [ { text: '日付', value: '公表日' }, { text: '居住地', value: '居住地' }, { text: '年代', value: '年代' }, { text: '性別', value: '性別' } ] type DataType = { リリース日: Date 居住地: string | null 年代: string | null 性別: '男性' | '女性' [key: string]: any } type TableDataType = { 公表日: s...
import { Geometry } from '../geometry'; import { GLShape } from '../glShape.enum'; /** * Built-in 2D point Geometry, setting out the information required to render a point */ export const POINT = new Geometry({ name: 'point_2d', vertices: Float32Array.from([ 0, 0 ]), vertexSize: 2, vertex...
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack"; import * as __aws_sdk_types from "@aws-sdk/types"; import * as _stream from "stream"; import { GetDeploymentTarget } from "../model/operations/GetDeploymentTarget"; import { InputTypesUnion } from "../types/InputTypesUnion"; import { OutputTypesUn...
/* Copyright 2016 - 2021 The Matrix.org Foundation C.I.C. 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...
/* * FeaturePage * * List all the features */ import * as React from 'react'; import { connect } from 'react-redux'; import { push, RouterAction } from 'react-router-redux'; import Helmet from 'react-helmet'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import Button from 'app/...
/* tslint:disable */ /* eslint-disable */ import React, { FunctionComponent } from 'react'; import { ViewProps } from 'react-native'; import { Svg, GProps, Path } from 'react-native-svg'; import { getIconColor } from './helper'; interface Props extends GProps, ViewProps { size?: number; color?: string | string[];...
import Locations from "./locations"; export default `#version 300 es precision mediump float; uniform float ${Locations.UPTIME}; uniform float ${Locations.DELTA_TIME}; in vec2 pass_textureCoords; in vec3 surfaceNormal; out vec4 outColor; #define MAX_STEPS 100 #define MAX_LENGTH 1000000. #define E...
import { fromJS } from 'immutable'; import parent from '../parent'; import NODE from './fixtures/node'; test('SchemaUtils_filter', () => { const node = fromJS(NODE); const keyPaths = parent(node, 'todo-delete'); expect(keyPaths?.toJS()).toBeTruthy(); expect(keyPaths?.size).toBe(3); });
import React, { useCallback, useEffect, useState } from 'react' import WbSunnyOutlinedIcon from '@mui/icons-material/WbSunnyOutlined' import { RenderModes, RenderModesType } from '../../../constants/RenderModes' import { SceneManager } from '../../../managers/SceneManager' import { useModeState } from '../../../servi...
import { v1 as uuid } from 'uuid'; import BaseEdgeData from '../types/BaseEdgeData'; import BaseNodeData from '../types/BaseNodeData'; // XXX Use v1 for uniqueness - See https://www.sohamkamani.com/blog/2016/10/05/uuid1-vs-uuid4/ import BasePortData from '../types/BasePortData'; /** * Creates a new port and returns i...
// *** 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 { fetcher, setQueryParams } from '@reapit/elements' import { URLS } from './constants' import { getPlatformHeaders, logger } from '@reapit/utils' import { FetchListCommonParams, FetchByIdCommonParams } from './types' import { reapitConnectBrowserSession } from '../core/connect-session' export type CreateDesktop...
import { NpmInfo } from "@definitelytyped/utils"; import { createTypingsVersionRaw, testo } from "./utils"; import { GitDiff, getNotNeededPackages, checkNotNeededPackage } from "../src/git"; import { NotNeededPackage, TypesDataFile, AllPackages } from "../src/packages"; const typesData: TypesDataFile = { jquery: cre...
/* eslint-disable */ import React from 'react'; import { createMockClient } from 'mock-apollo-client'; import { ApolloProvider } from '@apollo/client'; import renderer from 'react-test-renderer'; import { MockTheme, wait, } from '@tests/utils'; import { BlockDetailsDocument, } from '@graphql/types'; import BlockDetai...
import * as hkdf from "../../../futoin-hkdf-1.3.3/hkdf.js"; import * as secp256k1 from "../../../secp256k1-4.0.2/elliptic"; import { decodeHex } from "../utils"; import PrivateKey from "./PrivateKey"; export default class PublicKey { public static fromHex(hex: string): PublicKey { const decoded = decodeH...
import { point } from "@turf/helpers"; import { Feature, FeatureCollection, LineString, MultiLineString, MultiPolygon, Point, Polygon, } from "@turf/helpers"; /** * Takes a {@link LineString|linestring}, {@link MultiLineString|multi-linestring}, * {@link MultiPolygon|multi-polygon} or {@link Polygon|po...
import { Component } from '../components/component'; import { FileUpload } from '../components/file-upload'; import { MultiFileUpload } from '../components/multi-file-upload'; import { ResearchBanner } from '../components/research-banner'; export default function loadComponents(): void { loadComponent(FileUpload, '....
import * as pigpio from 'pigpio'; import * as assert from 'assert'; (function alert_pwm_measurement(): void { const Gpio = pigpio.Gpio; pigpio.configureClock(1, pigpio.CLOCK_PWM); pigpio.configureSocketPort(23456); const led = new Gpio(18, { mode: Gpio.OUTPUT, alert: true }); ...
import { Request, Response, NextFunction } from 'express'; import { decode, verify } from 'jsonwebtoken'; interface IPayload { sub: string; } export function ensureAuthenticated( request: Request, response: Response, next: NextFunction ) { // get token: const authToken = request.headers.authorization; ...
'use strict' import * as fs from 'fs'; import { commands, Position, Range, TextDocument, TextEditor, Uri, workspace } from 'vscode'; import localize from './localize'; /* ┌────────┐ │ Others │ └────────┘ */ /** Scheme `File` or `Untitled` */ export const mdDocSelector = [{ language: 'markdown', scheme: 'file' ...
import { Person } from "./Person"; export declare class Employee extends Person { salary: number; shared: string; constructor(); }
import 'es6-promise/auto'; // 'whatwg-fetch' needs a Promise polyfill import fetchMock from 'fetch-mock/src/client'; import { requestService } from '../serviceUtils'; import { RefreshSecurityProvider, RequestServiceOptions, SecurityProvider, ServiceConfig, } from '../types'; const url = 'http://cheese'; cons...
import {BaseCommand} from '@yarnpkg/cli'; // eslint-disable-next-line arca/no-default-export export default class HelpCommand extends BaseCommand { static paths = [ [`help`], [`--help`], [`-h`], ]; async execute() { this.context.stdout.write(this.cli.usage(null)); } }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// Copyright (c) 2019 by Audere // // Use of this source code is governed by an MIT-style license that // can be found in the LICENSE file distributed with this file. import request from "supertest"; import uuidv4 from "uuid/v4"; import { pbkdf2 } from "../../src/util/crypto"; import { createPublicApp } from "../../sr...
import axios, {AxiosResponse} from 'axios' import github from '@actions/github' import ShareLink from './api/shareLink' import Build from './api/build' import { GitHub } from '@actions/github/lib/utils' import { countReset } from 'node:console' import * as core from '@actions/core' export default class BuildApi { re...
export declare namespace GroupProfileEntry { const TABLE_NAME = "group_profile"; const _ID = "_id"; const COLUMN_NAME_UID = "uid"; const COLUMN_NAME_GID = "gid"; interface SchemaMap { [COLUMN_NAME_UID]: string; [COLUMN_NAME_GID]: string; } const getCreateEntry: (() => string)...
import Ember from 'ember'; import DS from 'ember-data'; import { assertType } from "./lib/assert"; declare const store: DS.Store; class Post extends DS.Model { title = DS.attr('string'); } let post = store.createRecord<Post>('post', { title: 'Rails is Omakase', body: 'Lorem ipsum' }); post.save(); // => P...
/* eslint-disable import/no-cycle */ import * as React from 'react'; import { Node } from '@patternfly/react-topology'; import { TYPE_KNATIVE_SERVICE } from '@console/knative-plugin/src/topology/const'; import { KnativeServiceListViewNode } from '@console/knative-plugin/src/topology/listView/KnativeServiceListViewNode'...
/** * @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 { ProductEntity } from './entities/product.entity'; export { BranchEntity } from './entities/branch.entity'; export { ColorEntity } from './entities/color.entity'; export { OrderEntity } from './entities/order.entity'; export { LogEntity, Severity } from './entities/log.entity';
import { Device } from "./device"; import { IDeviceInterface } from "../interfaces"; import * as Consts from "../consts"; /** * @class ColorDistanceSensor * @extends Device */ export class ColorDistanceSensor extends Device { constructor (hub: IDeviceInterface, portId: number) { super(hub, portId, Mo...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ja" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Ozzietest</source> <translation>Ozzietestについて</translation> </me...
import { EventEmitter } from 'events'; import { OutboundMessage } from '../../types'; import { createOutboundMessage } from '../helpers'; import { Repository } from '../../storage/Repository'; import { BasicMessageRecord } from '../../storage/BasicMessageRecord'; import { ConnectionRecord } from '../../storage/Connecti...
import React from 'react'; import { create } from 'react-test-renderer'; import { mount } from 'enzyme'; import { act } from 'react-dom/test-utils'; import { containerRendersView, TestRouterWrapper } from 'lib/testHelpers'; import { clusterConnectConnectorTasksPath } from 'lib/paths'; import ListItemContainer from 'com...
import Vue from 'vue'; import Component from 'vue-class-component'; @Component export default class HelloVue extends Vue { message: string = ''; created() { this.message = 'World'; } mounted() { this.message = 'oops Vue :)'; } }
import { isURL, ValidationArguments, ValidatorConstraint, ValidatorConstraintInterface, } from 'class-validator'; @ValidatorConstraint() export class UrlConstraint implements ValidatorConstraintInterface { public async validate(url: string, args: ValidationArguments) { switch (true) { case !url: ...
export { default as ActionCell } from './ActionCell'; export { default as BadgeCell } from './BadgeCell'; export { default as CurrencyCell } from './CurrencyCell'; export { default as DateCell } from './DateCell'; export { default as IconCell } from './IconCell'; export type { ActionCellConfig } from './ActionCell'; e...
import {VariadicBox} from "core/layout" import {div} from "core/dom" import * as p from "core/properties" import {Widget, WidgetView} from "./widget" export abstract class MarkupView extends WidgetView { model: Markup protected markup_el: HTMLElement connect_signals(): void { super.connect_signals() t...
import { Structure as _Structure_ } from "@aws-sdk/types"; export const NoAvailableOrganizationException: _Structure_ = { type: "structure", required: [], members: { Message: { shape: { type: "string" } } }, exceptionType: "NoAvailableOrganizationException" };
import { Vanguard2019Fixture } from "Components/Publishing/EditorialFeature/Fixtures/Vanguard2019" import { mount } from "enzyme" import React from "react" import { ReadMoreButton, totalSVGsForSection, VanguardArtistWrapper, } from "../ArtistWrapper" describe("ArtistWrapper", () => { let props const getWrapp...
import * as CSS from "csstype"; import { Config } from "../utils/prop-config"; import { Token } from "../utils"; export declare const scroll: Config; export interface ScrollProps { scrollBehavior?: Token<CSS.Property.ScrollBehavior>; scrollSnapAlign?: Token<CSS.Property.ScrollSnapAlign>; scrollSnapStop?: To...
/* * Copyright 2020 Spotify AB * * 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 i...
import * as React from "react"; import { useHistory } from "react-router-dom"; import { connect } from "react-redux"; import Layout from "../../components/Layout"; import State from "../../interfaces/State"; import Bleet from "../../interfaces/Bleet"; import Match from "../../interfaces/Match"; import Loader from "../....
import * as fileType from 'file-type'; import * as superagent from 'superagent'; export const validateResponse = (res: superagent.Response, typeInfo: fileType.FileTypeResult | null) => { const resIsBuffer = Buffer.isBuffer(res.body); if (!resIsBuffer) { return false; } if (!typeInfo || typeInfo.mime !== '...
/* GENERATED FILE */ import * as React from 'react'; import Svg, { Rect, Path, Line } from 'react-native-svg'; import { IconProps } from '../lib'; function PhoneX(props: IconProps) { return ( <Svg id="Raw" viewBox="0 0 256 256" width={props.size} height={props.size} {...props} ...
/* * 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...
export declare enum EntitlementFinalPayPayoutType { NOTPAIDOUT, PAIDOUT }
import { Component, OnInit } from '@angular/core'; import {Quote} from '../quote'; @Component({ selector: 'app-quote', templateUrl: './quote.component.html', styleUrls: ['./quote.component.css'] }) export class QuoteComponent implements OnInit { quotes:Quote[]= [ new Quote(1,'Get busy living or g...
import { Contracts } from "@arkecosystem/platform-sdk"; import { TransactionData } from "../transaction"; export class BridgechainUpdateData extends TransactionData implements Contracts.BridgechainUpdateData { public name(): string { return this.data.asset.bridgechainRegistration.name; } public seedNodes(): str...
/** * @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 { Comp3936Component } from './comp...
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { PaginationSummaryComponent } from './pagination-summary.component'; describe('PaginationSummaryCompon...
import React, { useState, useEffect } from 'react'; import { Row, Col, Button, Form, Switch, Input, Modal, Badge, Radio } from 'antd'; import { CaretRight, Pause } from '@ant-design/icons'; import { IUiApi } from 'umi-types'; import withSize from 'react-sizeme'; import styles from '../../ui.module.less'; import { TaskT...
import * as React from "react"; import { MasonryInfiniteGrid } from "../../../src"; function getItems(nextGroupKey: number, count: number) { const nextItems = []; const nextKey = nextGroupKey * count; for (let i = 0; i < count; ++i) { nextItems.push({ groupKey: nextGroupKey, key: nextKey + i }); } retu...
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */ import { Entity } from '../base-classes/entity.base'; import { ValueObject } from '../base-classes/value-object.base'; function isEntity(obj: unknown): obj is Entity<unknown> { /** * 'instanceof Entity' caus...
import {ConfigInterface, ConfigRedisDriver} from "../../types/config"; export const config: ConfigInterface = { namespace: 'ns1', redis: { // driver: ConfigRedisDriver.IOREDIS, options: { host: '127.0.0.1', port: 6379, }, }, log: { enable...
import * as api from '@cmt/api'; import { ConfigureTrigger } from '@cmt/cmakeTools'; import { ExecutableTarget } from '@cmt/api'; import { CMakeCache } from '@cmt/cache'; import { CMakeExecutable } from '@cmt/cmake/cmakeExecutable'; import { ConfigurationReader } from '@cmt/config'; import { createQueryFileForApi, ...
import { Component } from '@angular/core'; import { Album } from '../Album'; import { AlbumService } from '../album.service'; import { BsModalRef } from 'ngx-bootstrap'; import { NgForm } from '@angular/forms'; import { ModalComponent } from '../modal/modal.component'; import { Artist } from '../Artist'; @Component({ ...
export const mockCache: <T>(key: string, value: T) => { get: jest.Mock; set: jest.Mock; delete: jest.Mock } = <T>( key: string, value: T ) => ({ get: jest.fn().mockImplementation((k: string) => (k === key ? value : null)), set: jest.fn(), delete: jest.fn() }) export const mockMutate: <T>(key: string, value: ...
import debug from 'debug'; type Logger = { log: (message: string) => void; warn: (message: string) => void; error: (message: string) => void; }; const key = (...suffix: string[]): string => ['musik', ...suffix].join(':'); export const create = (suffix: string): Logger => ({ log: debug(key(suffix)), warn: d...
import classNames from "classnames"; import React from "react"; import "../../css/control-group.less"; interface IProps { className?: string; hideBubble?: boolean; first?: boolean; last?: boolean; disabled?: boolean; children?: React.ReactNode; } export const ControlGroup: React.FC<IProps> = (props) => {...
import React, { useState } from 'react'; import { Card, Menu, Descriptions } from 'infrad'; import type { ProColumns } from 'infrad-pro-table'; import ProTable from 'infrad-pro-table'; import { MailOutlined } from 'infra-design-icons'; const waitTime = (time: number = 100) => { return new Promise((resolve) => { ...
import React, { memo } from 'react'; import styles from './styles.module.css'; function Loader(): React.ReactElement { return ( <> <div className={styles.loaderBackground} /> <div className={styles.loader}> <div className={styles.ldsripple}> <div /> <div /> </div>...
import { AdvancedLogicTypes, ExtensionTypes, PaymentTypes, RequestLogicTypes, } from '@requestnetwork/types'; import { ERC20AddressBasedPaymentDetector } from '../../src/erc20/address-based'; jest.setTimeout(10000); let erc20AddressedBased: ERC20AddressBasedPaymentDetector; const mockAdvancedLogic: AdvancedL...
import type * as ts from 'typescript/lib/tsserverlibrary'; import * as PConst from '../protocol.const'; import * as vscode from 'vscode-languageserver'; import { parseKindModifier } from '../utils/modifiers'; import * as shared from '@volar/shared'; import type { TextDocument } from 'vscode-languageserver-textdocument'...
/** * @module GenericGF * @author nuintun * @author Cosmo Wolfe * @license https://raw.githubusercontent.com/cozmo/jsQR/master/LICENSE */ import { GenericGFPoly } from './GenericGFPoly'; export function addOrSubtractGF(a: number, b: number): number { return a ^ b; } export class GenericGF { public primitive...
import { Chunk, newChunkProxy } from './chunk' import { Batchlet } from './batchlet' export class Step { public id: string public chunk?: Chunk public batchlet?: Batchlet public before() {} public after() {} constructor() { this.id = '' } } export function newStepProxy(step: any): Step { const chunkp = ne...
import { WorkspaceManager } from "./WorkspaceManager"; import { CodeActionProvider, TextDocument, Range, CodeActionContext, CodeAction, CodeActionKind, Uri } from "vscode"; import { ALObjectType } from "../lib/types/ALObjectType"; import { getSymbolAtPosition } from "../lib/functions/getSymbolAtPosition"; import { DIAG...
export type Colors = 'pink' | 'red' | 'blue' | 'orange' | 'yellow' | 'green' export const getColorClass = (color: Colors) => { switch (color) { case 'red': return 'text-red-500' case 'blue': return 'text-blue-500' case 'green': return 'text-green-500' case 'orange': return 'tex...
/// <reference types="mocha" /> import { expect } from 'chai'; import { UniversalWebSocket } from '../../client/dist/library'; const PORT = 3005; const AUTHENTICATED_PORT = 3006; const clients: UniversalWebSocket[] = []; describe('WebSockets', function () { this.timeout(10000); it(`Initialize a client by co...
import React from 'react' import { useTranslation } from 'react-i18next' import { connect } from 'react-redux' import { Col, Row } from 'reactstrap' import { ActionCreator } from 'typescript-fsa' import type { State } from '../../../state/reducer' import { selectIsLogScale, selectShouldFormatNumbers, selectIsA...
// THIS FILE IS AUTO GENERATED import { IconTree, IconType } from '../lib' export declare const SiVeeam: IconType;
import { ResizableWidget } from "../../core/gui/ResizableWidget"; import { bind_children_to, el } from "../../core/gui/dom"; import "./EntityListView.css"; import { entity_data, EntityType } from "../../core/data_formats/parsing/quest/entities"; import { entity_dnd_source } from "./entity_dnd"; import { render_entity_t...
import { ExtractJwt, Strategy } from 'passport-jwt'; import { PassportStrategy } from '@nestjs/passport'; import { Injectable } from '@nestjs/common'; import jwtConstants from '@constants/jwt.constants'; import { IJwtStrategyValidate } from '@src/modules/auth/interfaces/jwtValidateStrategy.interfaces'; @Injectable() ...
export class Constants { public static get _API_ROOT(): string { return 'http://127.0.0.1:3000/Todos'; } }
import { ISetFilterParams, AgPromise, ValueFormatterService, IEventEmitter } from 'ag-grid-community'; import { ISetFilterLocaleText } from './localeText'; export declare enum SetFilterModelValuesType { PROVIDED_LIST = 0, PROVIDED_CALLBACK = 1, TAKEN_FROM_GRID_VALUES = 2 } export declare class SetValueModel...
/** * 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...
// load using a dynamic compiler (based on Angular AOT) import { enableProdMode } from "@angular/core"; import { platformBrowser } from "@angular/platform-browser"; import { AppModuleNgFactory } from "./app.module.ngfactory"; enableProdMode(); platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);