text
stringlengths
10
953k
import EditorCore from './EditorCore'; import EditorOptions from './EditorOptions'; import createEditorCore from './createEditorCore'; import { ChangeSource, ContentPosition, ContentScope, DefaultFormat, DocumentCommand, ExtractContentEvent, InlineElement, InsertOption, PluginEvent, ...
jest.mock("../step_tiles", () => ({ splice: jest.fn(), remove: jest.fn(), move: jest.fn(), })); import React from "react"; import { mount, shallow } from "enzyme"; import { StepIconGroup, StepIconBarProps } from "../step_icon_group"; import { fakeSequence } from "../../__test_support__/fake_state/resources"; imp...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { HomeComponent } from './home.component'; import { RouterTestingModule } from '@angular/router/testing'; import { MatCardModule, MatCheckboxModule } from '@angular/material'; import { NgxAudioPlayerModule } from 'ngx-audio-player'; impor...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import chai from "chai"; import { ServiceBusClientForTests, createServiceBusClientForTests, testPeekMsgsLength } from "./utils/testutils2"; import { Sender } from "../src/sender"; import { SessionReceiver, ServiceBusM...
import './footer.scss'; import * as React from 'react'; import { Translate } from 'react-jhipster'; const Footer = props => ( <div className="footer page-content"> <div className="row"> <p className="col-md-12"> <Translate contentKey="footer">Your footer</Translate> </p> </div> </div> ...
import {TranslateLoader} from "@ngx-translate/core"; import {Observable} from "rxjs/Observable"; import {HttpClient, HttpHeaders} from "@angular/common/http"; import {environment} from "../../../environments/environment"; import {catchError} from "rxjs/operators"; import {TranslateHttpLoader} from "@ngx-translate/http-...
import { exec } from "child_process"; type UNMERGE = "DD" | "AU" | "UA" | "UD" | "DU" | "AA" | "UU"; type ModifyFileChecker = (files: string[]) => string[]; // see https://git-scm.com/docs/git-status const UNMERGE_STATUS: UNMERGE[] = ["DD", "AU", "UA", "UD", "DU", "AA", "UU"]; interface Source { [propName: string]: ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. export { AvroReader } from "./AvroReader"; export { AvroReadable } from "./AvroReadable"; export { AvroReadableFromStream } from "./AvroReadableFromStream";
import { HttpResponse } from './helper' export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' export interface RequestConfig { url: string baseUrl?: string method?: HTTPMethod headers?: Record<string, string> timeout?: number params?: string | Record<string, any> // 和api叠加 data?:...
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'dateCount', }) export class DateCountPipe implements PipeTransform { transform(value: any): number { let today: Date = new Date(); //get current date and time let todayWithNoTime: any = new Date( today.getFullYear(), today.getM...
export type Maybe<T> = T | null; export type Exact<T extends { [key: string]: any }> = { [K in keyof T]: T[K] }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; /** * A date string, suc...
import React from 'react'; import Layout from '../components/layout'; import { ITemplateProps } from '../interface'; type IPostTemplateProps = ITemplateProps<{ html: string; title: string; }>; const PostTemplate: React.FC<IPostTemplateProps> = React.memo(props => { return ( <Layout> <code> <pr...
import { dietStudyPlaybackReadyUS, shareAppV3 } from '@assets'; import { share } from '@covid/components/cards/BaseShareApp'; import { ShareVaccineCard } from '@covid/components/cards/ShareVaccineCard'; import { ExternalCallout } from '@covid/components/ExternalCallout'; import { PartnerLogoUSDash } from '@covid/compon...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import React from "react"; import { createMaterialBottomTabNavigator } from "@react-navigation/material-bottom-tabs"; import { MaterialIcons as Icon } from "@expo/vector-icons"; import Home from "../../pages/Home"; import { StyleSheet } from "react-native"; const { Navigator, Screen } = createMaterialBottomTabNavigat...
export const LATEST_TOPIC_LIST = 'LATEST_TOPIC_LIST' export const TOPIC_DETAIL_DATA = 'TOPIC_DETAIL_DATA' export const TOPIC_REPLIES_DATA = 'TOPIC_REPLIES_DATA' export const HOT_TOPIC_DATA = 'HOT_TOPIC_DATA' export const NODE_INFO_DATA = 'NODE_INFO_DATA' export const MEMBER_INFO_DATA = 'MEMBER_INFO_DATA'
export class CreateAddressDto { type: string; }
import { Common } from '../../utils/Common'; import { pageTitles } from '../constants/PageTitle'; import { addComponentPagePO, buildLogModalContentPO, applicationDetailPagePO, } from '../pageObjects/createApplication-po'; export class ApplicationDetailPage { checkReplica(replicaCount: number) { cy.contains...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="it_IT"> <context> <name>AddressBook</name> <message> <location filename="../pages/AddressBook.qml" line="52"/> <source>Add new entry</source> <translation>Aggiungi nuovo indirizzo</translation> </message...
export { App } from "./App"
import { mutableExtend } from '../src/index' describe('mutable', () => { it('merge', () => { const a: Record<string, any> = { foo: 'bar' } mutableExtend(a, { bar: 'baz' }) expect(a.bar).toBe('baz') }) it('null prototype', () => { const a: Record<string, any> = { a: 'foo' } const b = Object.c...
import { CommandLineAction } from '@microsoft/ts-command-line'; import { ApiExtractorCommandLine } from './ApiExtractorCommandLine'; export declare class InitAction extends CommandLineAction { constructor(parser: ApiExtractorCommandLine); protected onDefineParameters(): void; protected onExecute(): Promise<...
/* @internal */ namespace ts.codefix { const fixId = "addMissingDeclareProperty"; const errorCodes = [ Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code, ]; registerCod...
import { DataBrewClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataBrewClient"; import { DescribeDatasetRequest, DescribeDatasetResponse } from "../models/models_0"; import { deserializeAws_restJson1DescribeDatasetCommand, serializeAws_restJson1DescribeDatasetCommand, } from "../protocols/A...
export type FieldValidatorType = (value: string) => string | undefined; export const required: FieldValidatorType = value => { if (value) return undefined; return 'Field is required'; }; export const maxLengthCreator = ( maxLength: number ): FieldValidatorType => value => { if (value && value.length > maxLeng...
import { useEffect, useState } from "react"; import useSocket from "./useSocket"; import { MessageRequest, MessageResponse, JoinRequest, LeaveRequest } from "../../type"; type Callback = () => void; type Callbacks = { onConnect?: Callback; onDisconnect?: Callback; }; type ChatOperators = { // property messa...
export * from "./AmbientLight"; export * from "./DirectionLight"; export * from "./Light"; export * from "./LightManager"; export * from "./AreaLight"; export * from "./PointLight"; export * from "./SpotLight";
import Bounds from './bounds'; import { ITraceEvent } from './trace_event'; export default class Thread { public bounds: Bounds = new Bounds(); public events: ITraceEvent[] = []; public name?: string; public sortIndex?: number; public id: number; constructor(id: number) { this.id = id; } public...
import { Lot } from './parcels'; import { LOT_BY_ID } from './parcels'; import { LOTS_BY_ADDRESS } from './parcels'; import { LOTS_BY_OWNER } from './parcels'; import { Params } from '../services/params'; import { SEARCH_TARGETS } from './parcels'; import { Computed } from '@ngxs-labs/data/decorators'; import { DataAc...
import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
import { Component, OnInit } from '@angular/core'; import { Movie } from './movie'; import { MovieService } from './movie.service'; import { CriteriaComponent } from '../shared/criteria/criteria.component'; @Component({ templateUrl: './movie-list.component.html', styleUrls: ['./movie-list.component.css'] }) e...
import {disconnectUser} from "../utils/users"; module.exports = (io: any, socket: any) => { socket.on("disconnect", () => { const tempUser = disconnectUser(socket.id); if(tempUser) { io.broadcast.to(tempUser.room).emit("message", { userId: tempUser.id, username: t...
import React from 'react'; import { View, ViewProps, } from 'react-native'; import { render, RenderAPI, } from 'react-native-testing-library'; import { ReactTestInstance } from 'react-test-renderer'; import { ThemeStyleType } from '@eva-design/dss'; import { MappingContext } from './mappingContext'; import { ...
import React, {useState} from 'react' // import validator from "validator" type Props = { labelFor:string, labelText:string, type:string, placeholder:string, className: string, name:string, // value:string, required?:boolean, defaultValue?:string, setState:(value:any)=>void,...
/*--------------------------------------------------------------------------------------------- * Copywight (c) Micwosoft Cowpowation. Aww wights wesewved. * Wicensed unda the MIT Wicense. See Wicense.txt in the pwoject woot fow wicense infowmation. *----------------------------------------------------------------...
import React, { useState } from "react"; import { View, StyleSheet, Dimensions, Text } from "react-native"; import { useNavigation } from "@react-navigation/native"; import { RectButton } from "react-native-gesture-handler"; import MapView, { MapEvent, Marker } from "react-native-maps"; import mapMarkerImg from "../....
import * as React from 'react'; import { Omit } from 'react-bootstrap'; import { DropdownBaseProps } from './Dropdown'; declare namespace NavDropdown { export interface NavDropdownBaseProps extends DropdownBaseProps { active?: boolean; noCaret?: boolean; eventKey?: any; title: React...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import ...
/*********************************************************** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License **********************************************************/ import * as React from 'react'; import { useTranslation } from 'react-i18next'; import { IconButton } f...
import React from 'react'; import { Link } from 'react-router-dom'; import DrawerToggle from '../SideDrawer/DrawerToggle'; import './Navbar.css'; const Navbar: React.FC<{ drawerHandler: () => void }> = ({ drawerHandler }) => { return ( <header className="navbar"> <nav className="navbar_navigat...
import React from "react"; import { StyleSheet, Text, View, TouchableOpacity, Image, Dimensions, } from "react-native"; import { Ionicons, FontAwesome5, MaterialCommunityIcons, } from "@expo/vector-icons"; import { COLORS } from "../../assets/colors"; interface Props { theme: string; } const Heade...
import * as React from 'react' import {FormattedMessage} from 'react-intl' interface Props { readonly className: string readonly id: string readonly image: string readonly numberOfPlayers?: number } export const MemberRoleItem: React.FC<Props> = props => { const times = '✕' return ( <div className={p...
import React from "react" import { defaultRules, unescapeUrl } from "simple-markdown" import { depunycode } from "../helpers/depunycode" import type { MarkdownRule } from "../types/MarkdownRule" export const link: MarkdownRule = { ...defaultRules.link, parse: (capture, parse, state) => { const [, name, href, t...
import { StringFormatter } from './StringFormatter'; import { ValueTooHugeError } from './ValueTooHugeError'; import { ValueInvalidError } from './ValueInvalidError'; describe('StringFormatter.numberWithDelimiter', () => { const formatter = new StringFormatter(); it('세자리마다 구분자가 추가된 숫자 형식의 문자열', () => { ...
import { AccessToken, CommanderParent, doGet, doPost, EnumErrors } from "../../core"; import { Department } from "./department.class"; export class DepartmentsCommander extends CommanderParent { constructor(accessToken: AccessToken) { super(accessToken); } public async create(department: Departmen...
import LocalDataService from './LocalDataService'; import { DataResultModel, RemoteDataFn, DataQueryModel } from '../types/DataModel'; function loadRemoteData(remoteDataFn:RemoteDataFn, params: DataQueryModel) : Promise<DataResultModel> { return remoteDataFn(params); } function loadLocalData(data:any[], params: Dat...
/* eslint-disable camelcase */ import { IDRFAxiosResponsePromise, } from '@/api/types' export interface ICustomerComment { id: number customer: number // customer_name: string author_id: number author_name: string author_avatar: string text: string date_create: string can_remove: boolean } export t...
import { Component } from '@angular/core'; import { LoaderService } from '../../services'; @Component({ selector: 'app-loader', templateUrl: './loader.component.html', styleUrls: ['./loader.component.scss'] }) export class LoaderComponent { color = 'primary'; mode = 'indeterminate'; value = 50;...
import { extractErrorCode, formatAppError } from "@/lib/AppError"; import { AppLayout } from "@/ui/core/AppLayout"; import { useErrorHandler } from "@/ui/core/ErrorPage"; import { Pre } from "@/ui/core/Pre"; import { TablePager } from "@/ui/core/TablePager"; import { useRouterParam } from "@/ui/core/useRouterParam"; im...
export { default, DimmerProps } from './Dimmer';
import * as m from 'mithril'; import Util from '../Util/Util'; import NavigationViewModel from '../ViewModel/NavigationViewModel'; import factory from '../ViewModel/ViewModelFactory'; import Component from './Component'; import StreamNavigationInfoComponent from './Stream/StreamNavigationInfoComponent'; /** * Navigat...
import type { ActionProps } from '../types'; export const ActionElement = ({ className, handleOnClick, label, title, disabled, testID, }: ActionProps) => ( <button data-testid={testID} disabled={disabled} className={className} title={title} onClick={e => handleOnClick(e)}> {label}...
import type { VNode } from 'vue'; import { Data } from '../_utils/types'; export const LIST_TYPES = ['text', 'picture', 'picture-card'] as const; export type ListType = typeof LIST_TYPES[number]; export const FILE_STATUS = ['init', 'uploading', 'done', 'error'] as const; export type FileStatus = typeof FILE_STATUS[nu...
// automatically generated by the FlatBuffers compiler, do not modify /** * @enum {number} */ export namespace MyGame.Example{ export enum Color{ Red= 1, Green= 2, Blue= 8 }}; /** * @enum {number} */ export namespace MyGame.Example{ export enum Any{ NONE= 0, Monster= 1, TestSimpleTableWithEnum= 2, M...
/** @license See the LICENSE file. */ // This code is auto-generated, do not modify this file! const version = '2.2.2'; export {version};
// Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import { Row, Col } from 'antd/lib/grid'; import Input from 'antd/lib/input'; import Button from 'antd/lib/button'; import Tooltip from 'antd/lib/tooltip'; import Form, { FormComponentProps } from 'antd/lib/form/Form'...
import { TestBed } from '@angular/core/testing'; import { IFrameService } from '../../iframe/existing-iframe.service'; import { EqualityService } from './equality.service'; describe('EqualityService Tests', () => { let equalityHelperService: EqualityService; beforeEach(() => { TestBed.configureTestingModule({...
/** * @license Angular v12.2.9 * (c) 2010-2021 Google LLC. https://angular.io/ * License: MIT */ import { ChangeDetectorRef } from '@angular/core'; import { Compiler } from '@angular/core'; import { CompilerOptions } from '@angular/core'; import { Component } from '@angular/core'; import { ComponentFactory } from ...
// Type definitions for react-relay 6.0 // Project: https://github.com/facebook/relay, https://facebook.github.io/relay // Definitions by: Johannes Schickling <https://github.com/graphcool> // Matt Martin <https://github.com/voxmatt> // Eloy Durán <https://github.com/alloy> // ...
import gql from 'graphql-tag'; import { createUploadPostData } from './create-upload-post-data'; describe('createUploadPostData()', () => { it('creates correct output for createAssets mutation', () => { const result = createUploadPostData(gql` mutation CreateAssets($input: [CreateAssetInpu...
export function setOptions(select: JQuery, options: { value: string; text: string; }[]): void { select.empty(); options.forEach(({ value, text }) => { $('<option>') .attr({ value }) .text(text) .appendTo(select); }); } export function success(): void { window.app.alertSuccess(); } ex...
import type HCEApplication from "./HCEApplication"; import { NativeModules, Platform } from 'react-native'; import NFCTagType4, { NFCContentType } from './NFCTagType4'; const { Hce } = NativeModules; class HCESession { /** * Initializes and controls the session of HCE session. */ constructor() { this.ac...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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 "../utili...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { PersonenPage } from './personen.page'; const routes: Routes = [ { path: '', component: PersonenPage } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule], }) export ...
var v = class C { static a = 1; static b };
// *** 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 * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as utilities from ".....
import { Component, Injector, OnInit } from '@angular/core'; import { Params } from '@angular/router'; import isString from 'lodash/isString'; import { CountryService, IndicatorService } from '@core/api'; import { EntityConstructor } from '@core/api/types'; import { Indicator } from '@core/api/entities/indicator'; impo...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { ServiceWorkerModule } from '@angular/service-worker'; import { TranslateModule } from '@ngx-translate/core'...
import { Router } from 'express'; import bodyParser from 'body-parser'; import { getTodos, getTodo, addTodo, updateTodo, removeTodo } from '../controllers/todos'; const router = Router(); const jsonParser = bodyParser.json(); // api routes router.get('/api/todos', getTodos); router.get('/api/todo/:id', getT...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { TokenCredentialOptions } from "../client/identityClient"; import { ChainedTokenCredential } from "./chainedTokenCredential"; import { EnvironmentCredential } from "./environmentCredential"; import { ManagedIdentityCredential } from "./...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { NovajsonComponent } from './novajson.component'; describe('NovajsonComponent', () => { let component: NovajsonComponent; let fixture: ComponentFixture<NovajsonComponent>; beforeEach(async () => { await TestBed.configureTestingModul...
import React from 'react' import { IHandlerHub } from '@cc98/ubb-core/dist' import align from './align' import audio from './audio' import b from './b' import bili from './bili' import center from './center' import code from './code' import color from './color' import cursor from './cursor' import del from './del' imp...
import { createMulticastReplayLastSource, distinctSubscribePipe, IShareSubscribePipeGetMultiCastSource, ISubscribeFunction, ISubscribePipeFunction, pipeSubscribeFunction, pipeSubscribePipeFunctions, shareSubscribePipe } from '@lifaon/rx-js-light'; export { distinctSubscribePipe as distinct$$$, } from '@lifaon/...
import React, { ReactElement, useEffect } from "react"; import { VideoCameraOutlined, UnorderedListOutlined, UserOutlined, CommentOutlined, } from "@ant-design/icons"; import { Spin } from "antd"; interface Props { orders: number | boolean; users: number | boolean; comments: number | boolean; movies...
import { promisify } from "util"; import fetch from "node-fetch"; import * as fs from "fs"; import * as path from "path"; import * as portfinder from "portfinder"; import * as spawn from "cross-spawn"; import { FirebaseError } from "../../../../error"; import { logger } from "../../../../logger"; import * as backend f...
/* Copyright 2015 The TensorFlow 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 applicable law or a...
import React from 'react'; import { classNames } from '../../utilities'; import './Button.scss'; type ButtonHTMLProps = React.DetailedHTMLProps< React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement >; type StyleProps = { flat?: boolean; secondary?: boolean; small?: boolean; large?: boolean; ...
import { abi, buildConfig, refreshSDKConfig, updateConfig } from '@augurproject/artifacts'; import { ParaAugurDeployer } from '@augurproject/core/build/libraries/ParaAugurDeployer'; import { ParaContractDeployer } from '@augurproject/core/build/libraries/ParaContractDeployer'; import { ContractInterfaces, ContractDeplo...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { BoxService } from 'src/app/Services/Box/box.service'; import { BaseEditComponent } from '../base-edit.component'; @Component({ selector: 'app-box-edit', templateUrl: './box-edit.component.html', ...
/* * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ export const cdsAngularVersion = '^5.1.1'; export const cdsCityVersion = '^1.1.0';
// interface TransResult { dst: string; src: string; } interface Trans { name: string; from: string; to: string; trans_result: TransResult[]; } abstract class Translater { abstract name(): string; abstract translate(): Trans; }
// Type definitions for Underscore 1.8 // Project: http://underscorejs.org/ // Definitions by: Boris Yankov <https://github.com/borisyankov>, Josh Baldwin <https://github.com/jbaldwin>, Christopher Currens <https://github.com/ccurrens>, Cassey Lottman <https://github.com/clottman> // Definitions: https://github.com/Def...
export * from './worker'; export * from './sequential'; export * from './parallel'; export * from './parallel-selected';
import { InputType, Field } from '@nestjs/graphql' @InputType() export class UpdateTodoInput { @Field(() => Boolean, { nullable: true }) readonly done?: boolean @Field(() => String, { nullable: true }) readonly title?: string @Field(() => String, { nullable: true }) readonly description?: string }
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { HomeComponent } from './pages/home/home.component'; import { ListComponent } from './pages/list/list.component'; const routes: Routes = [ { path: "", component: HomeComponent }, { path: "list",...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ja" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About neblio</source> <translation>ブラックコインについて</translation> </message> <message> <location l...
import * as React from 'react' import TextField from '@mui/material/TextField' import MenuItem from '@mui/material/MenuItem' interface YesNoFieldProps { label: string value: boolean size?: 'small' | 'medium' onChange: (value: boolean) => void } export default function YesNoField(props: YesNoFieldProps) { re...
import { CodeActionParams, CodeAction, DiagnosticSeverity, Command, Position, Range, TextEdit } from "vscode-languageserver" import { clientAndObjfromUrl } from "./utilities" import { log } from "./clientManager" import { FixProposal, Range as ApiRange, Location } from "abap-adt-api" import { decodeEntity...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { NgbAlertModule } from '@ng-bootstrap/ng-bootstrap'; import { AlertComponent } from './alert.component'; describe('AlertComponent', () => { let component: AlertComponent; let fixture: ComponentFixture<AlertComponent>; befo...
import {assert} from 'chai'; import {describe as context, describe, it} from 'mocha'; import { ColorComponents3, ColorComponents4, ColorMode, } from '../misc/color-model'; import {Color, RgbaColorObject} from './color'; describe(Color.name, () => { [ { expected: {r: 10, g: 20, b: 30, a: 1}, params: { ...
// @ts-nocheck import React, { useState, useEffect } from "react"; import { Table, Tag, Space } from "antd"; import { call } from "@/util/client"; import analytics from "@/util/backend/analytics"; import "./default.css"; import { Area } from "@ant-design/charts"; import Loading from "@/component/layout/Loading"; const...
import * as React from 'react'; import { Metric, Label, Grid, Loading } from 'components'; import { Cat1 } from 'components/icons'; import { tKeys as tKeysAll, useTranslate } from 'services/i18n'; import { makeStyles } from 'utils/styles'; import { usePoolInfo } from 'features/poolInfo'; import { progressProps } from...
import { StyleSheet } from 'react-native'; export const styles = StyleSheet.create({ container: { flex: 1, paddingHorizontal: 20 }, content: { paddingTop: 135, paddingBottom: 184 } });
import React, { Component } from 'react' import { View } from '@tarojs/components' import Taro from '@tarojs/taro' export default class extends Component { componentDidMount = () => { console.log('componentDidMount') Taro.setNavigationBarTitle({ title: 'RemotePage', }) } ...
import { DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataExchangeClient"; import { GetDataSetRequest, GetDataSetResponse } from "../models/index"; import { deserializeAws_restJson1_1GetDataSetCommand, serializeAws_restJson1_1GetDataSetCommand } from "../protocols/Aws_res...
import buildFont from './buildFont'; import { breakpoints, responsive } from './size'; import { Theme } from '../types'; import toRGBA from '../utils/toRGBA'; export type Options = { base: string; borderRadius?: number; boxShadow?: [number, number]; brand: Theme['color']['brand']; color: Theme['color']['core...
import React, { SVGProps } from 'react'; export default function ListUl(props: SVGProps<SVGSVGElement>): JSX.Element { const color = props.color ? `var(--color-${props.color})` : 'var(--icon-color)'; return ( <svg viewBox="0 0 16 16" height="25" width="25" focusable="false" role=...
/* * 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...
/** * return current time of the system. * performance.now() "polyfill" */ export const now = typeof window !== 'undefined' && typeof window.performance !== 'undefined' ? performance.now.bind(performance) : Date.now.bind(Date)
import React from 'react' import SvgIcon from '../components/SvgIcon' const IconShare = () => { return ( <SvgIcon viewBox="0 0 24 24"> <path fill-rule="evenodd" clip-rule="evenodd" d="M3.46444 0.181885H14.6109C16.4937 0.181885 18 1.90007 18 3.94552V16.1364C18 18.1819 16.4937 19.818...