text
stringlengths
10
953k
import * as React from "react"; export const TagsPage: React.FunctionComponent = () => <div>Tags</div>; export default TagsPage;
import {Inject, Injectable, InjectionToken, Optional} from '@angular/core'; import {ObINotificationConfig} from './notification.interfaces'; export const CLEAR_NOTIFICATIONS_ON_ROUTE_CHANGE = new InjectionToken<boolean>('CLEAR_NOTIFICATIONS_ON_ROUTE_CHANGE'); export const GROUP_SIMILAR_NOTIFICATIONS = new InjectionTok...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import React from 'react' import Tokens from '../../core/tokens' interface Props { size: number token: string } const Token = (props: Props) => ( <img src={Tokens[props.token]} alt={`${props.token} Logo`} width={`${props.size}px`} height={`${props.size}px`} /> ) export default Token
/* GENERATED FILE */ import * as React from "react"; import Svg, { Rect, Path } from "react-native-svg"; import { IconProps } from '../lib' function SmileyMeh(props: IconProps) { return <Svg viewBox="0 0 256 256" width={props.size} height={props.size} fill={props.color} {...props}><Rect width={256} height={256} fil...
import { Validation } from '@contember/schema' import { assertNever } from '../../utils' import { InputValidation } from '@contember/schema-definition' export class DependencyCollector { public static collect(validator: Validation.Validator): Dependencies { const dependenciesList = DependencyCollector.doCollect(val...
import { SymbolSet } from "./types"; export const symbolSets: SymbolSet[] = [ { digits: "00", label: "Unknown", id: "SS_UNKNOWN", dimensionId: "UNKNOWN", geometry: "POINT", entities: [ { digits: "00", label: "Unspecified", id: "UNSPECIFIED", icon: "NA", ...
import React from 'react'; import {shallow} from 'enzyme'; import {mockUseEffect} from 'test/mockHooks'; import {RootStore, RootStoreContext} from '../store/RootStore'; import * as history from 'history'; import type * as main from './main'; import ProgressMessage from './ProgressMessage'; import {Route, Router} from '...
/* eslint-disable react/prop-types */ // eslint-disable-next-line no-use-before-define import React from 'react'; import { useTransition } from 'react-spring'; import { Container } from './styles'; import { ToastMessage } from '../../hooks/toast'; import Toast from './Toast/index'; interface ToastContainerProps { me...
import { ServiceInputTypes, ServiceOutputTypes, ServiceQuotasClientResolvedConfig } from "../ServiceQuotasClient.ts"; import { GetServiceQuotaIncreaseRequestFromTemplateRequest, GetServiceQuotaIncreaseRequestFromTemplateResponse, } from "../models/models_0.ts"; import { deserializeAws_json1_1GetServiceQuotaIncrea...
import * as IStyle from './IStyle'; type func = () => void; type eventFunc = (ev: any, chart: any) => void; interface IGuideEvent { onMouseDown?: eventFunc; onMouseMove?: eventFunc; onMouseLeave?: eventFunc; onMouseUp?: eventFunc; onClick?: eventFunc; onDblClick?: eventFunc; onTouchStart?: eventFunc; ...
import { Component, OnInit } from '@angular/core'; import { AuthService } from 'app/auth/auth.service'; export interface RouteInfo { path: string; title: string; icon: string; class: string; } export const ROUTES: RouteInfo[] = [ /* { path: '/dashboard', title: 'Dashboard', ...
import React, { Component } from 'react' import { Field } from '../index' import { Link } from 'react-router-dom'; type Props = { fields: (number | string)[] id: number | string url: string removeRow: (id: number | string) => void } type State = {} class FieldList extends Component<Props, State> { render...
import { DialogService } from './dialog.service'; import { DialogContainerComponent } from './dialog-container/dialog-container.component'; import { TestBed } from '@angular/core/testing'; import { Directive, Component, NgModule, ApplicationRef, TemplateRef, ViewChild } from '@angular/core'; @Component({ ...
import {DEFAULT_RC_FILENAME} from '@yarnpkg/core'; import {PortablePath, ppath, Filename} from '@yarnpkg/fslib'; import * as fsUtils from './fs'; export async function writeConfiguration(dir: PortablePath, value: {[key: string]: any}, {filename = DEFAULT_RC_FILENAME}: {filename?: Filename...
import { useState, useEffect } from "react"; import { Auth } from "aws-amplify"; interface User { id: string; username: string; attributes: { sub: string; name: string; }; } export const useCurrentUser = () => { const [user, setUser] = useState<User>(null); useEffect(() => { Auth.currentUserI...
import { ConfigServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConfigServiceClient"; import { GetComplianceSummaryByResourceTypeRequest, GetComplianceSummaryByResourceTypeResponse, } from "../models/models_0"; import { deserializeAws_json1_1GetComplianceSummaryByResourceTypeCommand, ...
import { Data } from '../../models' import { ApiProperty } from '@nestjs/swagger'; //import { ContactInvitation } from './contact_invitation'; import { ValidateNested, IsArray } from "class-validator"; //import { Type } from "class-transformer"; export class SendSms { @ApiProperty() from?: string; @ApiPro...
import React from 'react' import AuthRoutes from './auth.routes' import { useAuth } from '../hooks/auth' import AppRoutes from './app.routes' import { ActivityIndicator, View } from 'react-native' const Routes: React.FC = () => { const { user, loading } = useAuth() if (loading) { return ( <View style={{...
// Libraries import React from "react"; import { graphql } from "gatsby"; // Interfaces import { Data, AllContentfulSkillsEdge } from "../../data/interfaces/index.interfaces"; // Components import { CallToActionItem, CallToActionWrapper, LogoCarousel, LastPlayedSong, MainContent, BlobOne, PageTitle, SkillsDec...
import * as React from 'react' import * as Enzyme from 'enzyme' import { render, mount } from 'enzyme' import * as Adapter from 'enzyme-adapter-react-16' import Tag from '../index' describe('Tag', () => { test('renders correctly', () => { const wrapper = render( <Tag>Test</Tag> ) expect(wrapper).t...
import { async, ComponentFixture, TestBed } from "@angular/core/testing"; import { RouterTestingModule } from "@angular/router/testing"; import { SharedModule } from "../../shared/shared.module"; import { AnalysisModule } from "../analysis.module"; import { AdvancedComponent } from "./advanced.component"; describe("Ad...
import { Accordion } from './../index'; import { Animation, AccordionExpandMode, ElementRenderMode} from './../index'; import { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter, QueryList, ContentChildren } from '@angular/core'; import { BaseEleme...
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { config } from 'dotenv'; config(); async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); } bootstrap();
import { Library, Session } from 'botbuilder'; import * as common from '../common'; import { Strings } from '../consts'; import { Place } from '../place'; export function register(library: Library): void { library.dialog('choose-location-dialog', createDialog()); } function createDialog() { return common.crea...
import { useState } from 'react'; type Filter = { effort: string; size: string; deliverable: string; }; export default function Dialog({ filterer, }: { filterer: (filter: Filter) => void; }) { const [showModal, setShowModal] = useState(false); const [deliverable, setDeliverable] = useState('true'); co...
// 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 { Component, OnInit } from '@angular/core'; import { NzModalService } from 'ng-zorro-antd/modal'; @Component({ selector: 'app-popmodal', templateUrl: './popmodal.page.html', styleUrls: ['./popmodal.page.less'] }) export class PopmodalComponent implements OnInit { isVisible = false; isOkLoading = false...
export interface IGetAllConfig { sort?: string; page?: number; limit?: number; } // Data about the response, including pagination and collection totals. export interface IPaginationResponse { // Total number of items in the collection response. count: number; // The page you are currently on within the col...
import { brushHandleAccentPath, brushHandlePath, OffScreenHandle } from 'components/LiquidityChartRangeInput/svg' import { BrushBehavior, brushX, D3BrushEvent, ScaleLinear, select } from 'd3' import usePrevious from 'hooks/usePrevious' import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react' imp...
export interface Page { infoId: number, infoTitle: string, html: string, order: number, deleted: boolean, }
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import qs from "qs"; import { AccessToken, GetTokenOptions, RequestPrepareOptions, RestError, TokenCredential } from "@azure/core-http"; import { IdentityClient, TokenCredentialOptions } from "../client/identityClient"; import { creat...
import * as React from 'react'; export type ChupachupsProps = { /** * Hex color or color name */ title?: string; /** * The size of the Icon. */ color?: string; /** * The title provides an accessible short text description to the SVG */ size?: string | number; }; const Chupachups = React....
// *** 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 Signal from "../src/models/can/signal"; export interface IMessages { entries: Array<IMessageEntry>; } export interface IMessageEntry { frame: { signals: Array<Signal>; address: number; data: Buffer; time: number; relTime: number; hexData: string; byteStateChangeTimes: number; updated: number;...
/* eslint-disable */ import * as Long from 'long'; import * as _m0 from 'protobufjs/minimal'; import * as DataLoader from 'dataloader'; import * as hash from 'object-hash'; export const protobufPackage = ''; export interface NumPair { num1: number; num2: number; } export interface NumSingle { num: number; } e...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { SendFeedbackDialogComponent } from './send-feedback-dialog.component'; describe('SendFeedbackDialogComponent', () => { let component: SendFeedbackDialogComponent; let fixture: ComponentFixture<SendFeedbackDialogComponent>; beforeEach(a...
import { ThemeSchema, TokenColor } from '~/@types/ThemeSchema' import Theme from './theme' const italics: TokenColor[] = [ { name: 'Comments', scope: 'comment, punctuation.definition.comment', settings: { fontStyle: 'italic', }, }, { name: 'js/ts italic', scope: 'entity.other.a...
export interface ImageDimension { imageNumber: number; width: number; height: number; }
/** * type of the /tree endpoint response */ import { ITerritory } from "."; import { UserRoleMode } from "../enums"; // to discuss export interface IResponseTree extends IResponseTreeTerritoryComponent {} export interface IResponseTreeTerritoryComponent { territory: ITerritory; path: string[]; // array of par...
import { SyncChannel } from './sync-channel'; import { PresenceChannel } from './presence-channel'; /** * This class represents a Pusher presence channel. */ export class SyncPresenceChannel extends SyncChannel implements PresenceChannel { /** * Register a callback to be called anytime the member list chang...
import { switchByModeEnv } from '../util' import FileServiceMock from './FileServiceMock' import FileServiceCordova from './FileServiceCordova' export const FileService = switchByModeEnv({ WEB: FileServiceMock, CORDOVA: FileServiceCordova }) export default new FileService()
// In production, we register a service worker to serve assets from local cache. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on the "N+1" visit to a page, since previously...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ListasComponent } from './listas/listas.component'; import { IonicModule } from '@ionic/angular'; import { PipesModule } from '../pipes/pipes.module'; @NgModule({ declarations: [ ListasComponent ], exports: [...
import { ExtractItem, ItemRenderer, Page } from './types'; import { PropertyDeclarations, TemplateResult, html } from 'lit-element'; import { ConfigurableMixin } from '../../../mixins/configurable'; import { FetchEvent } from '../NucleonElement/FetchEvent'; import { NucleonElement } from '../NucleonElement/NucleonElem...
// Type definitions for coinstring 2.3 // Project: https://github.com/cryptocoinjs/coinstring // Definitions by: Mohamed Hegazy <https://github.com/mhegazy> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types= "node" /> export function createDecoder(version: number): (base58str: st...
import {BidiModule, Direction} from '@angular/cdk/bidi'; import {dispatchFakeEvent} from '@angular/cdk/testing/private'; import {Component} from '@angular/core'; import { ComponentFixture, fakeAsync, flush, flushMicrotasks, inject, TestBed, tick, } from '@angular/core/testing'; import {FormControl, FormsM...
import { Injectable } from '@angular/core'; import { Observable, ReplaySubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class CXPChatService { constructor() { } public isSupportTopicEnabledForLiveChat(supportTopicIdToCheck: string): boolean { return false; } /** * @param supportTop...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { ActionCreator, DialogSetting } from '../types'; import { ActionTypes } from '../../constants'; export const setSettings: ActionCreator = async ({ dispatch }, projectId: string, settings: DialogSetting) => { dispatch({ type: Acti...
import { FormattedMessage, formatMessage, connect } from 'umi' import React, { Component } from 'react' import { List } from 'antd' import Password from './security/password/index' import Email from './security/email' import Phone from './security/phone' import type { CurrentUser } from '../data.d' type Unpacked<T> =...
/** * @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 { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-comp-1119', templateUrl: './comp...
import {ParentDirectoryDTO} from '../../../../common/entities/DirectoryDTO'; import {IObjectManager} from './IObjectManager'; export interface IIndexingManager extends IObjectManager { SavingReady: Promise<void>; IsSavingInProgress: boolean; indexDirectory(relativeDirectoryName: string): Promise<ParentDirectory...
import { TamlandServerOptionsInterface } from "../../options"; export interface ClientHintsConfiguration{ /** * Optional. * * List of client hints */ hints: TamlandServerOptionsInterface["clientHints"]; }
import * as React from 'react'; import { createGlobalStyle, StyledInterface, ThemeProvider, } from 'styled-components'; import { variant } from 'styled-system'; import styledComponents from 'styled-components'; import * as system from 'styled-system'; export * from './forward-ref-component'; export { default as ...
<TS language="sv" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Högerklicka för att ändra adressen eller etiketten.</translation> </message> <message> <source>Create a new address</source> ...
/* * Tencent is pleased to support the open source community by making * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License. * * License ...
import styled from 'styled-components'; export const StyledTitle = styled.span` font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-weight: bolder; font-style: oblique; text-decoration: none; &:hover { color: #fff; text-decoration: underline...
import { number, whitespace, validIdentifierCharacters, SINGLE_QUOTE, DOUBLE_QUOTE } from './shared'; import { locate } from 'locate-character'; import { ParserOptions, Value, ArrayExpression, ObjectExpression, Literal, Property, Identifier, Comment } from './interfaces'; export function parse(str: string...
import "reflect-metadata" import { closeTestingConnections, createTestingConnections, reloadTestingDatabases, } from "../../../utils/test-utils" import { DataSource } from "../../../../src/data-source/DataSource" import { Post } from "./entity/Post" import { Category } from "./entity/Category" import { expe...
import path from 'path'; import './src/config/dotenv'; module.exports = { client: 'pg', connection: { user: process.env.USER, password: process.env.PASSWORD, database: process.env.DATABASE, }, migrations: { directory: path.resolve(__dirname, 'src', 'database', 'migrations'), }, seeds: { ...
import { Injectable, HttpException } from '@nestjs/common'; import { PositionProject } from './positionProject.entity'; import { InjectRepository, TypeOrmModule } from '@nestjs/typeorm'; import { Repository, ObjectID, DeleteResult } from 'typeorm'; @Injectable() export class PositionProjectService { constructor( ...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { TranslateModule } from '@ngx-translate/core'; import { MockComponent } from 'ng-mocks'; import { User } from 'ish-core/models/user/user.model'; import { BasketMockData } from 'ish-...
export function parseLocaleNumber(stringNumber: string) { let num = 10123456789.789, fmt_local = Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', }), parts_local = fmt_local.formatToParts(num), group = '', decimal = '', currency = '' // separators parts_local.f...
import { DirectiveOptions } from "vue"; import { DirectiveBinding } from "vue/types/options"; import { updatePosition } from "@/api/switches"; const handler = (sw: HTMLElement, binding: DirectiveBinding): void => { sw.onmousedown = (e: MouseEvent) => { if (e.preventDefault) e.preventDefault(); const scale ...
import { randomNumber } from "./random-number"; describe("#randomNumber", () => { it("should return a random number within the given range", () => { const actual: number = randomNumber(1, 5); expect(actual).toBeGreaterThanOrEqual(1); expect(actual).toBeLessThanOrEqual(5); }); });
import { Injectable } from '@angular/core' @Injectable() export class DateFormat { static checkedDate(date: number | Date): Date { return typeof date === 'number' ? new Date(date) : date } static getDayCountOfMonth(year: number, month: number): number { const isLeapYear: boolean = year % 4 === 0 &&...
import { biliApi, accountApi } from './api'; import {} from 'qs'; import { CoinBalanceDto, CoinTodayExpDto, FollowingsDto, OtherUserDto, RewardDto, UserInfoNavDto, } from '../dto/UserInfo.dto'; import { VideoByUpDto } from '../dto/Video.dto'; type IdType = number | string; /** * 登录账号 */ export async fun...
import "mocha"; import { expect, should } from "chai"; import { By, until } from "selenium-webdriver"; import { Common } from "./Common"; import { HotStaq } from "../../src/api"; describe ("Browser Tests", () => { let common: Common = null; let processor: HotStaq = null; before (async () => { processo...
import { uint8, uint16, uint32, array, struct, ctx, skip, enums, branch, computed, bytes, } from 'binary-markup' import { hommString } from './common.bml' import { ObjectType, objectGroupEnum, objectTypeEnum } from './enums/object' import { artifactEnum } from './enums/artifact' import { getMetaTy...
import exec from './exec'; import * as path from 'path'; import * as fs from 'fs'; export default function Start() { const pkg = require(path.resolve(__dirname, '../../package.json')); const _pkgfile = path.resolve(process.cwd(), 'package.json'); const _pkg = fs.existsSync(_pkgfile) ? require(_pkgfile) : pkg; ...
// 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, poolId: "p2", liquiditySymbol: "BOWLP-...
import { withPrefix } from "gatsby" import styled from "styled-components" export const Wrapper = styled.div` display: flex; flex-direction: row; align-items: center; padding: 0px 16px; height: 40px; background: #ffffff; border: 1px solid #b4b4b4; box-sizing: border-box; border-radius: 4px; gap: 5p...
import {Utils as _} from "ag-grid/main"; import {Bean} from "ag-grid/main"; import {IRowNodeStage} from "ag-grid/main"; import {Autowired} from "ag-grid/main"; import {GridOptionsWrapper} from "ag-grid/main"; import {ColumnController} from "ag-grid/main"; import {ValueService} from "ag-grid/main"; import {RowNode} from...
/* Do not change, this code is generated from Golang structs */ export class DeploymentCondition { type: string; status: string; lastUpdateTime: Time; lastTransitionTime: Time; reason: string; message: string; } export class DeploymentStatus { observedGeneration: number; replicas: number; updat...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { Routes, RouterModule } from '@angular/router'; import { IonicModule } from '@ionic/angular'; import { TrackerCreatePage } from './tracker-create.page'; const routes: Routes...
import * as React from 'react'; import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities'; import type { InputProps, InputSlots, InputState } from './Input.types'; /** * Array of all shorthand properties listed as the keys of InputSlots */ export const inputShorthandProps: (keyof InputSlots...
/* artifact generator: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi-js\dist\lib\artifacts\ts\module\gen\main.js package: wizzi-js@0.7.8 primary source IttfDocument: C:\My\wizzi\stfnbssl\wizzi\packages\wizzi.site\.wizzi\client\src\services\EventService.tsx.ittf utc time: Tue, 11 May 2021 04:47:43 GMT */ imp...
import { PrimaryGeneratedColumn, Column, Entity, OneToMany } from 'typeorm'; import { MenuEntity } from 'src/modules/menu/entity/menu.entity'; import { ProductEntity } from 'src/modules/products/entity/product.entity'; @Entity() export class ShopEntity { @PrimaryGeneratedColumn() id: number; @Column() name: str...
import { Component, Input } from '@angular/core'; @Component({ selector: 'app-image', templateUrl: './image.component.html', styleUrls: ['./image.component.scss'] }) export class ImageComponent { @Input() src = 'assets/img/avatar-generic.png'; }
import * as React from 'react'; import { AjaxUploaderRef, RcUploadProps } from '../interface'; import AjaxUpload from './AjaxUploader'; function empty() {} export type RcUploadRef = { uploader: AjaxUploaderRef; abort: AjaxUploaderRef['abort']; }; const RcUpload: React.ForwardRefRenderFunction<RcUploadRef, RcUplo...
import http from '@/api/http'; export interface Schedule { id: number; name: string; cron: { dayOfWeek: string; month: string; dayOfMonth: string; hour: string; minute: string; }; isActive: boolean; isProcessing: boolean; lastRunAt: Date | null; n...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
@Component({ tag: 'sample-tag' }) export class SampleTag { @Prop() private testPrivate?: string; @Prop() protected testProtected?: string; private someFn() { return 'test'; } render() { return (<div>test</div>); } }
import * as React from 'react'; import { SVGIconProps } from '../createIcon'; export declare const HospitalSymbolIconConfig: { name: 'HospitalSymbolIcon', height: 512, width: 512, svgPath: 'M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm112 376c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Story } from './story.entity'; import { StoryController } from './story.controller'; import { StoryService } from './story.service'; @Module({ imports: [TypeOrmModule.forFeature([Story])], controllers: [StoryControll...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-config', templateUrl: './config.component.html', styles: [] }) export class ConfigComponent implements OnInit { constructor() { } ngOnInit() { } }
import { ChangeDetectionStrategy, Component, DoCheck, Inject, Input, Optional, ViewChild, } from '@angular/core'; import {TuiHandler} from '@taiga-ui/cdk'; import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {Subject} from 'rxjs'; import {distinctUntilChanged, map, startWith...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /** * @param input - Input to `deserialize`. * @returns Promise which completes with the input data as a Uint8Array. */ export async function toUint8Array(input: Uint8Array | Buffer | Blob): Promise<Uint8Array> { if ((input as any).byteLen...
import { BaseService, Service } from "/@/core"; @Service("link") class SysLink extends BaseService {} export default SysLink;
export interface ILocation { title: string; location_type: string; woeid: number; latt_long: string; }
import * as covert from 'color-convert'; import { isNumber } from '../utils'; import { generateCanvas } from '../utils/canvas'; import { bind, unbind } from '../utils/move'; import { HSVColor } from './types'; export interface ColorBarOptions { width: number; height: number; padding?: number; onColorChange?(...
namespace Soo.dom { /** 创建 webGL */ function createWebGL(width?: number, height?: number): HTMLCanvasElement { return ; } export class WebGLElement extends DOMElement { constructor(width?: number, height?: number) { super(createWebGL(width, height)); } } }
import config from './config' type LoadProps = { id?: number page?: number listType?: 'news' | 'newest' | 'jobs' | 'ask' } export type Story = { id: number title: string points: number time_ago: string comments_count: number user: string url: string comments: any[] } const...
export type compareable = string | number | Date | bigint | boolean;
import * as React from 'react'; import styled from 'styled-components'; import { Users } from 'src/App'; import Characters from 'src/containers/Characters'; import AccentPicker from 'src/components/AccentPicker'; import { FiLock, FiSettings } from 'react-icons/fi'; // Yeah. Let's be honest, we're not even trying to be...
import { Region } from '@linode/api-v4/lib/regions'; export const doesRegionSupportBlockStorage = ( region: string, regionsData: Region[] ) => { const regionMetaData = regionsData.find((thisRegion) => { return thisRegion.id === region; }); if (!regionMetaData) { return false; } return regionMetaD...
import { Machine } from '../../machine/models/Machine' import { PluginDefinition } from '../models' import { BEAM_WALLET_ADDRESS, STANDARD_ERRORS } from './constants' const beamUser = (location: string, minerId: string) => `-s ${location}-beam.flypool.org -n 3443 -u ${BEAM_WALLET_ADDRESS}.${minerId} --ssl 1` export...
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 { Node } from './Node' import { NodeInternal } from './NodeIntern...
import { FC, useState, useEffect } from "react"; const PhotoUploader: FC<any> = ({ title = "Photo Uploader", description = " PNG, JPG, GIF up to 10MB (muiltifile)", error = false, onChange = () => {}, multiple = false, acceptedType = ["image/jpeg", "image/png", "image/gif", "image/jpg"], }) => { const [s...
import type { BaseDriver } from './base'; export default class MemoryDriver implements BaseDriver { _db: Record<string, Buffer>; constructor() { this._init(); } async hasItem(key: string) { return this._db[String(key)] instanceof Buffer; } async setItem(key: string, value: Buffer) { this._db[...