text stringlengths 10 953k |
|---|
const theme = {
color: {
black: '#000000',
white: '#ffffff',
primary: '#2ecc71',
text: '#2f3f42'
},
font: {
futura: 'Futura-Medium, Futura'
}
}
export default theme |
import * as jsforce from 'jsforce';
import * as vscode from 'vscode';
import { SalesforceConfig } from './salesforceConfig';
import { l } from '../strings/Strings';
export class SalesforceConnection {
private static validConnection: jsforce.Connection | undefined;
private connection: jsforce.Connection;
constru... |
import {
HostBinding,
HostListener,
Input,
OnInit,
Renderer2,
} from "@angular/core";
import { ElementRef } from "@angular/core";
import { Directive } from "@angular/core";
@Directive({
selector: "[appBetterHighlight]",
})
export class BetterHighlightDirective implements OnInit {
@Input() defaultColor = ... |
export interface UserLogin{
email: string,
password: string,
} |
import { Injectable, Inject } from '@angular/core';
import { fromEvent as observableFromEvent } from 'rxjs/observable/fromEvent';
import { empty as observableEmpty } from 'rxjs/observable/empty';
import { filter } from 'rxjs/operators/filter';
import { delay } from 'rxjs/operators/delay';
import { takeWhile } from 'rxj... |
/**
* Copyright (c) Jonathan Cardoso Machado. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// https://github.com/curl/curl/blob/e1be82545348/include/curl/curl.h#L2015
/**
* Object with constants for option `SS... |
interface ProgressProps {
percent: number
}
export default function Progress(props: ProgressProps) {
const { percent } = props
return (
<div className="w-full bg-gray-200 rounded-full h-1.5">
<div
className={
'h-1.5 rounded-full' +
(percent < 100 ? ' bg-indigo-600' : ' bg-e... |
export interface GetPreference {
/** The key of the preference. */
key: string;
} |
import { generate as generateFace } from "facesjs";
import { idb } from "../db";
import type {
MinimalPlayerRatings,
PlayerWithoutKey,
Race,
} from "../../common/types";
import { DEFAULT_JERSEY, isSport } from "../../common";
const generate = (race?: Race) => {
const overrides: any = {
jersey: {
id: DEFAULT_J... |
import * as React from 'react';
import { ExampleCard, ComponentPage, PropertiesTableSet, PageMarkdown } from '@uifabric/example-app-base';
import { DateRangeType, DayOfWeek } from '../Calendar/Calendar.types';
import { CalendarButtonExample } from '../Calendar/examples/Calendar.Button.Example';
import { CalendarInlineE... |
import { Contract } from "@ethersproject/contracts";
import { ethers } from "hardhat";
async function main() {
const router = await (
await ethers.getContractFactory("Router02")
).deploy(
process.env.FACTORY_ADDRESS,
process.env.BDEPLOYER_ADDRESS,
process.env.CDEPLOYER_ADDRESS,
process.env.WETH... |
declare module '@aire-ux/mxgraph' {
/**
* Internal model of a hierarchical graph. This model stores nodes and edges
* equivalent to the real graph nodes and edges, but also stores the rank of the
* cells, the order within the ranks and the new candidate locations of cells.
* The internal model also revers... |
<TS language="af_ZA" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Regs-klik om die adres of etiket te wysig</translation>
</message>
<message>
<source>Create a new address</source>
<tran... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
Signer,
utils,
BytesLike,
Contract,
ContractFactory,
Overrides,
} from "ethers";
import { Provider, TransactionRequest } from "@ethersproject/providers";
import type {
BrightIdUserRegistry,
BrightIdUserRe... |
import React from 'react';
import {TextInput} from '@workday/canvas-kit-preview-react/text-input';
export const Placeholder = () => {
const [value, setValue] = React.useState('');
const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
setValue(event.target.value);
};
return (
<TextInp... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './components/home/home.component';
import { LotteryDetailsComponent } from './components/lottery-details/lottery-details.component';
import { ArchiveHolderComponent } from './components/arch... |
import { customElement, html, LitElement } from "lit-element";
import { cssResult } from "../../../lib/util/css";
import { sharedStyles } from "../../style/shared";
import styles from "./octo-element.scss";
@customElement("octo-element")
export class OctoElement extends LitElement {
static styles = [sharedStyles, cs... |
import * as Errors from 'http-errors';
/**
* Denali uses the **http-errors** package for handling HTTP errors. Check
* [it's documentation](https://github.com/jshttp/http-errors) for how to use
* it.
*
* @package runtime
* @since 0.1.0
*/
export default Errors; |
///
/// Copyright © 2020 SOLTEKNO.COM
///
/// 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 ... |
/**
The MIT License (MIT)
*/
import{ Props, createIcon } from '../Icon'
import React from 'react'
export default React.forwardRef((props: Props, ref: React.ForwardedRef<HTMLSpanElement>) => (
createIcon(props, ref, {
filled: <path fillRule="evenodd" clipRule="evenodd" d="M12 4C11.45 4 11 4.45 11 5V20C11 20... |
import { TreeView } from '../../src/treeview/treeview';
let hierarchicalData: { [key: string]: Object }[] = [
{
nodeId: '01', nodeText: 'Music', icon: 'folder',
nodeChild: [
{ nodeId: '01-01', nodeText: 'Gouttes.mp3', icon: 'audio' }
]
},
{
nodeId: '02', nodeText... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UserCreateEventComponent } from './user-create-event.component';
describe('UserCreateEventComponent', () => {
let component: UserCreateEventComponent;
let fixture: ComponentFixture<UserCreateEventComponent>;
beforeEach(async(()... |
<TS language="fi" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klikkaa hiiren oikealla muokataksesi osoitetta tai nimeä</translation>
</message>
<message>
<source>Create a new address</source>
... |
// Copyright 2017-2021 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Adapted from https://gist.github.com/calvinmetcalf/91e8e84dc63c75f2aa53
import hash from 'hash.js';
import { u8aConcat } from '@polkadot/util';
export function pbkdf2Sync (password: Uint8Array, salt: Uint8A... |
module entitas.utils {
"use strict"
import Bag = entitas.utils.Bag
export interface ISignal<T> {
dispatch(...args:any[]):void
add(listener:T):void
clear():void
remove(listener:T):void
}
export class Signal<T> implements ISignal<T> {
public _listeners:Bag<T>
private _context
priv... |
import * as React from "react";
import { CarbonIconProps } from "../../../";
declare const QCY16: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default QCY16; |
import {
adv1,
autosell,
availableAmount,
buy,
chew,
cliExecute,
containsText,
create,
equip,
eudoraItem,
familiarWeight,
haveEffect,
haveSkill,
myFamiliar,
myHp,
myLevel,
myMaxhp,
myMp,
mySpleenUse,
print,
runChoice,
runCombat,
... |
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer';
import userMock from './sys/user';
import menuMock from './sys/menu';
import tableDemoMock from './demo/table-demo';
/**
* Used in a production environment. Need to manually import all modules
*/
export function setupProdMockServer() {
... |
import { Button, List, ListItem, Tooltip } from "@chakra-ui/react";
import { parseToneScript } from "@webtone/parser";
import { ToneLibrary } from "@webtone/tone-library";
import React, { useContext } from "react";
import { AppContext } from "./AppProvider";
export function Library({ library }: { library: ToneLibrary ... |
/* eslint-disable functional/functional-parameters */
/* eslint-disable functional/no-expression-statement */
import { getPageState } from ".";
describe("getPageState", () => {
test('returns "body" focus selector by default', () => {
const state = getPageState();
expect(state).toEqual({
focusSelector... |
import { RecordingMeeting } from './common'
import request from './util/request'
export type GetAccountRecordingsParams = {
page_size?: number
next_page_token?: string
from?: string
to?: string
}
export type GetAccountRecordingsResponse = {
next_page_token: string
from: string
to: string
page_size: nu... |
/// <reference path="Object.d.ts" />
/// <reference path="dojox.grid.DataGrid.d.ts" />
module dojox.grid{
export class TreeGrid extends dojox.grid.DataGrid {
defaultOpen : bool;
sortChildItems : bool;
openAtLevels : any[];
expandoCell : number;
_by_idty_paths : Object;
_childItemSorter (a:any,b:any,attribute:any,descen... |
import './graph';
import './series_overrides_ctrl';
import './thresholds_form';
import './time_regions_form';
import template from './template';
import _ from 'lodash';
import { MetricsPanelCtrl } from 'app/plugins/sdk';
import { DataProcessor } from './data_processor';
import { axesEditorComponent } from './axes_edi... |
export * from './marks';
export * from './extensions';
export * from './nodes';
export * from './core-extension-constants';
export * from './core-extensions';
export * from './core-extension-types'; |
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { ResourceService } from 'src/libs/services/resource.service';
import { DeliveryModel } from 'src/models/delivery.model';
import { DeliveryCreateDto } from 'src/dtos/delivery.dto';
@In... |
/**
* Cloud Guard APIs
* A description of the Cloud Guard APIs
* OpenAPI spec version: 20200131
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you ... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', as... |
// Copyright 2018, 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 agreed to in wr... |
import React from "react"
import logo from "../assets/icons/logo.gif"
import hibiki from "../assets/images/hibiki-chibi.png"
import "../styles/logobar.less"
const LogoBar: React.FunctionComponent = (props) => {
return (
<header className="header">
<section className="header-container" onClick={... |
export const environment = {
production: true,
siteUrl: 'https://bagau.github.io/divider/'
}; |
export default {
namespace: "ackeeFrontend",
}; |
import { newE2EPage } from '@stencil/core/testing';
describe('icon-help-circle', () => {
it('renders', async () => {
const page = await newE2EPage();
await page.setContent('<icon-help-circle></icon-help-circle>');
const element = await page.find('icon-help-circle');
expect(element).toHaveClass('hydr... |
/**
* Read-only array.
*
* @category Array
* @example
* ```typescript
* const array: ReadOnlyArray<number> = [1, 2, 3];
* ```
*/
export type ReadOnlyArray<Item = unknown> = ReadonlyArray<Item>; |
import {
ACTIVE_PLANS_LIST_VIEW_URL,
COMPLETE_PLANS_LIST_VIEW_URL,
DRAFT_PLANS_LIST_VIEW_URL,
OPENSRP_API_BASE_URL,
SORT_BY_EFFECTIVE_PERIOD_START_FIELD,
RETIRED_PLANS_LIST_VIEW_URL,
} from '../../constants';
import * as planDefinitionFixtures from '../../ducks/planDefinitions/tests/fixtures';
import { Inte... |
import React, { CSSProperties, Key } from 'react';
import { createPortal } from 'react-dom';
import PropTypes from 'prop-types';
import omit from 'lodash/omit';
import shallowEqual from 'lodash/isEqual';
import noop from 'lodash/noop';
import isElement from 'lodash/isElement';
import Align from 'choerodon-ui/lib/align'... |
import { Typography } from '@mui/material'
import Grid from '@mui/material/Grid'
import CardItem from '@components/CardItem'
import Loader from '@components/Loader'
import { EntryType } from '@model/entryType'
interface CardGridProps {
results: EntryType[] | undefined
isLoading?: boolean
errorMessage?: string
}
... |
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
export default class AddAvatarFieldToUsers1586818064869
implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.addColumn(
'users',
new TableColumn({
name: 'avatar',
... |
import { _ReservationResourceSpecification } from "./_ReservationResourceSpecification";
import { _Tags } from "./_Tags";
import { Structure as _Structure_ } from "@aws-sdk/types";
export const DescribeReservationOutput: _Structure_ = {
type: "structure",
required: [],
members: {
Arn: {
shape: {
... |
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import { RequestContext } from '../../api/common/request-context';
import { Product } from '../../entity';
import { VendureEvent } from '../vendure-event';
/**
* @description
* This event is fired whenever a {@link Product} is added, updated
* or deleted.
*
* @docsCategory events
* @docsPage Event Types
*/
expo... |
import {
BasicScalar,
Enum,
InputField,
MethodDescriptor,
ModelKind,
OutputField,
Scalar,
Union,
_Node
} from 'tt-model';
/** Formatted node */
export type FormattedInputNode =
| FormattedInputObject
| Enum
| Union
| Scalar
| BasicScalar;
export type FormattedOutputNode =
| FormattedOutputObject
| Enum... |
import * as React from 'react';
import { Autofill, IAutofill } from '../Autofill/index';
import {
BaseComponent,
css,
customizable,
divProperties,
findElementRecursive,
findIndex,
focusAsync,
getId,
getNativeProps,
isIOS,
isMac,
KeyCodes,
shallowCompare,
mergeAriaAttributeValues
} from '../.... |
import React from 'react'
import {storiesOf} from '@storybook/react'
import Icon from './icon'
const defaultIcon = () => (
<Icon icon='spinner' theme='primary' spin>default icon</Icon>
)
storiesOf('Icon 图标', module)
.add('Icon', defaultIcon) |
import type { LiteralBase } from '../../../base/LiteralBase';
export interface RegExpLiteral extends LiteralBase {
value: RegExp | null;
regex: {
pattern: string;
flags: string;
};
} |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import React, { KeyboardEvent } from "react";
import {
ContextualMenu,
ContextualMenuItemType,
Customizer,
FontIcon,
IContextualMenuItem,
ICustomizations,
Spinner,
SpinnerSize,
} from "office-ui-fabric-react";
im... |
version https://git-lfs.github.com/spec/v1
oid sha256:35f9daaf8a0fff2b0b3576606b24d27b74ce4357ffc74b9fa3e312764e6e3d52
size 883600 |
import * as asn1js from 'asn1js';
import * as elliptic from 'elliptic';
import * as hashjs from 'hash.js';
import {AsnParser, AsnSerializer, OctetString} from '@peculiar/asn1-schema';
import {PrivateKeyInfo} from '@peculiar/asn1-pkcs8';
import {AlgorithmIdentifier} from '@peculiar/asn1-x509';
import {
AlgorithmKeyImp... |
export enum UnitTestFramework {
jest = "jest",
mocha = "mocha",
other = "other",
}
export interface IDoTestConfig {
unitTestFramework?: keyof typeof UnitTestFramework;
testDirectory?: string;
/** the glob pattern to use to find tests */
testPattern?: string;
} |
import React from 'react'
import { Layout, Typography } from 'antd'
import { useTranslation, withTranslation } from 'react-i18next'
export const Footer: React.FC = () => {
const { t } = useTranslation()
return (
<Layout.Footer>
<Typography.Title level={3} style={{ textAlign: 'center' }}>
{t('foot... |
import { matchSwitch } from '@babakness/exhaustive-type-checking';
import * as React from "react";
import * as ReactDOM from "react-dom";
import { config } from "app/config";
import type { SysContext, AppContext } from "app/context";
import type { Token } from "core/http";
import { AuthProvidersEnum } from "app/api/aut... |
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { MatSelectModule } from '@angular/material/select';
import { TestBed, ComponentFixture, async, fakeAsync, tick } from '@angular/core/testing';
import { createGenericTestComponent } from '../../../../core/src/lib/test-utils';
import { B... |
import { OrganizationsClient } from "@takomo/aws-clients"
import { OrganizationPolicyType } from "@takomo/aws-model"
import { OrganizationState } from "@takomo/organization-context"
import { TkmLogger } from "@takomo/util"
import { PlannedOrganizationalUnit } from "../../common/plan/organizational-units/model"
import {... |
/**
* @file BabyMobile 摇玩
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime';
export default IconWrapper(
'baby-mobile',
true,
(h: IconHelper, props: ISvgIconProps) => (
<sv... |
import { Injectable } from '@angular/core';
import { ApiService } from './api.service';
@Injectable({
providedIn: 'root'
})
export class SessionService {
constructor(private api: ApiService) { }
fake = JSON.parse('{"user":{"wallets":{"USD":{"balance":0}},"facebook":{"id":"2712492348826122","username":"Taras Ost... |
import React from 'react';
import './generated/tailwind.css'
import './App.css';
import NavBar from './NavBar'
import Order from './Order'
const App = () => {
return (
<div>
<NavBar />
<Order />
</div>
)
}
export default App; |
import { map } from 'rxjs/operators'
import { Position } from '@sourcegraph/extension-api-types'
import { NotificationType } from '@sourcegraph/shared/src/api/extension/extensionHostApi'
import { AdjustmentDirection, PositionAdjuster } from '@sourcegraph/shared/src/codeintellify'
import { PlatformContext } from '@sour... |
import { expose } from '@chainlink/ea-bootstrap'
import { endpointSelector, makeExecute, makeWSHandler } from './adapter'
import { makeConfig, NAME } from './config'
const { server } = expose(NAME, makeExecute(), makeWSHandler(), endpointSelector)
export { NAME, makeExecute, makeConfig, server } |
import test = require('tape')
import checkPlatform from '../src/checkPlatform'
const packageId = 'registry.npmjs.org/foo/1.0.0'
test('target cpu wrong', (t) => {
const target = {
cpu: 'enten-cpu',
os: 'any'
}
const err = checkPlatform(packageId, target)
t.ok(err, 'error present')
t.equal(err && err.... |
import * as React from "react"
import Document, { Html, Head, Main, NextScript } from "next/document"
//BaseWeb関連インポート
import {Provider as StyletronProvider} from "styletron-react"
import {Server, Sheet} from "styletron-engine-atomic"
import {styletron} from "../styletron"
class MyDocument extends Document<{styleshee... |
import React from 'react';
import { IconBase } from '../IconBase';
import { BaseProps } from '../IconBase.types';
export const PlusThin = (props: BaseProps) => {
return (
<IconBase {...props} viewBox="0 0 32 32">
<polygon points="15 -1.12233246e-29 17 4.05741625e-16 17 32 15 32"></polygon>
<polygon
... |
import * as Sentry from '@sentry/node';
import { Context } from 'koa';
const handledHafasError = ['H9380', 'NO_MATCH'];
export default async (ctx: Context, next: Function) => {
try {
// eslint-disable-next-line callback-return
await next();
} catch (e) {
ctx.set('Content-Type', 'application/json');
... |
const HEX_SHORT = /^#([a-fA-F0-9]{3})$/;
const HEX = /^#([a-fA-F0-9]{6})$/;
function roundColors<T>(colors: T, round: boolean): T {
if (!round) return colors;
const output = {};
for (let key in colors) {
output[key] = Math.round(colors[key]);
}
return <T>output;
}
function hasProp(obj: any, key: string... |
import EmbeddedJWK from "jose/jwk/embedded";
import jwtVerify from "jose/jwt/verify";
import { asserts } from "ts-guards";
import { isDPoPBoundAccessTokenPayload, isDPoPToken } from "../guards";
import type {
AccessToken,
DPoPToken,
JTICheckFunction,
RequestMethod,
} from "../types";
import { asymetricCryptogra... |
/// <reference path="./library.d.ts" />
import Arts = require("./components/arts/Arts");
import SetupComponent = require('./components/setup/Setup');
class ApplicationConfiguration extends Arts.BaseApplicationConfiguration {
static NAME:string = 'com.github.gregoranders.arts.configuration'
constructor(protecte... |
import { SignedHttpRequest } from "./SignedHttpRequest";
/**
* The PkceCodes type describes the structure
* of objects that contain PKCE code
* challenge and verifier pairs
*/
export declare type PkceCodes = {
verifier: string;
challenge: string;
};
/**
* Interface for crypto functions used by library
*/
... |
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { MatCardModule } from "@angular/material/card";
import { MatExpansionModule } from "@angular/material/expansion";
import { MatGridListModule } from "@angular/material/grid-list";
import { MatInputModule } from "@angular/ma... |
import { Repeat } from 'react-feather'
import { Block, BlockModule } from '@compoz/core'
import IteratorBlockRenderer from './IteratorBlockRenderer'
import IteratorBlockConfigurator from './IteratorBlockConfigurator'
export type IteratorBlockSettings = {
method: string
url: string
body?: any
contextKey... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2018, 2019 New Vector Ltd
Copyright 2019 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 Li... |
import { throttle } from 'lodash';
import React from 'react';
import {
Animated,
FlatList,
NativeScrollEvent,
NativeSyntheticEvent,
Platform,
} from 'react-native';
import { isIphoneX } from 'react-native-iphone-x-helper';
import {
HEADER_HEIGHT,
MINIMUM_SCROLL_DISTANCE,
OS_TYPES,
STATUS_BAR_HEIGHT,
} from '.... |
import {
Client,
GuildMember,
PartialGuildMember,
TextChannel
} from "discord.js";
import knex from "../../../db/knex";
type Guild = {
serverid?: string;
pinschannel?: string;
welcomechannel?: string;
auditchannel?: string;
usersquotes?: boolean;
};
const getWelcomeChannel = async ... |
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function isObject(o: any) {
return Object.prototype.toString.call(o) === '[object Object]';
}
function isPlainObject(o: any) {
var ctor, prot;
if (isOb... |
import { defineNuxtConfig } from 'nuxt3'
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
build: {
postcss: {
postcssOptions: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},... |
import { Nullable } from 'nullable';
import { Another } from 'some';
class A {
do(): Nullable<Another> {
return null;
}
}
new A(); |
import { NativeModulesProxy } from '@unimodules/core';
import computeMd5 from 'blueimp-md5';
import Constants from 'expo-constants';
import * as FileSystem from 'expo-file-system';
import { getManifestBaseUrl } from './AssetUris';
// Constants.appOwnership is only available in managed apps (Expo client and standalone... |
import React from 'react';
import { PaginationProps } from '../pagination/interface';
import { CheckboxProps } from '../checkbox/interface';
import { TooltipProps } from '../tooltip/interface';
import { EmptyProps } from '../empty/interfaces';
export type AlignType = 'left' | 'center' | 'right';
export type SortOrder ... |
declare const _default: import("vue").DefineComponent<{
arrowOffset: {
type: NumberConstructor;
default: number;
};
appendToBody: {
type: BooleanConstructor;
default: boolean;
};
autoClose: {
type: NumberConstructor;
default: number;
};
boundar... |
import React, { useState, useEffect, useMemo } from 'react'
import ReactDOM from 'react-dom'
import { Node } from 'slate'
import {
SlatePlugins,
createDeserializeHTMLPlugin,
serializeHTMLFromNodes,
deserializeHTMLToDocumentFragment,
useSlatePluginsActions,
} from '@udecode/slate-plugins'
import {
InlineToo... |
import { Component } from '@angular/core';
@Component({
selector: 'ngx-tab1',
template: `
<p>Early home automation began with labor-saving machines. Self-contained electric or gas powered
<a target="_blank" href="https://en.wikipedia.org/wiki/Home_appliances">home appliances</a>
became viable in the ... |
import { Form } from 'formkit';
export default interface Config {
fields: Array<string> | {[index: string]: object};
validate?: (
error: {[index: string]: string},
values: {[index: string]: any},
props?: {[index: string]: any}
) => void;
getForm?: (props: {[index: string]: any}, context: {[index: ... |
export const version = "bytes/5.0.3"; |
import * as React from "react"
import { GatsbyImage, getImageData, getLowResolutionImageURL, GatsbyImageProps, IGetImageDataArgs, ImageFormat } from "gatsby-plugin-image"
import { FunctionComponent } from "react"
function urlBuilder({ baseUrl, width, height, format, options }) {
return `${baseUrl}?w=${width}&h=${hei... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import { Schema, model, Document, Model, Types } from 'mongoose';
interface ITest extends Document {
map1: Map<string, number>,
map2: Map<string, string>,
map3: Map<string, number>
}
const schema: Schema = new Schema<ITest>({
map1: {
type: Map,
of: Number
},
map2: {
type: Map,
of: { type: ... |
export function hideCard(card) {
card.style.height = '0px';
card.classList.add('hide');
}
export function showCard(card) {
card.style.removeProperty('height');
card.classList.remove('hide');
}
export function getAllLists() {
return Array.from(document.querySelectorAll(".list"));
}
export ... |
import { validators4 } from "../assets/4-validators-successful-case";
import { ethers } from "hardhat";
import { BigNumber } from "ethers";
import {
addValidators,
initializeETHDKG,
registerValidators,
assertEventSharesDistributed,
distributeValidatorsShares,
startAtDistributeShares,
expect,
} from "../se... |
import ADB from 'appium-adb';
import Logcat, { Log } from 'appium-adb/lib/logcat';
const adb = new ADB({ adbExecTimeout: 60000 });
const logcat = new Logcat({
adb: adb.executable,
debug: false,
debugTrace: false,
});
function identity<T>(arg: T): T {
return arg;
}
const apiLevelStr: Promise<string> =... |
<TS language="ro_RO" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click-dreapta pentru a edita adresa sau eticheta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import * as api from '@cmt/api';
import {ConfigureTrigger} from '@cmt/cmake-tools';
import {ExecutableTarget} from '@cmt/api';
import {CMakeCache} from '@cmt/cache';
import {CMakeExecutable} from '@cmt/cmake/cmake-executable';
import {ConfigurationReader} from '@cmt/config';
import * as index_api from '@cmt/drivers/cma... |
// Type definitions for ag-grid v17.0.0
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { RowNode } from "./entities/rowNode";
import { Column } from "./entities/column";
import { ColDef } from "./entities/colDef";
import { GridApi } from "./gridApi";
import { Co... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.