text stringlengths 10 953k |
|---|
import {
FormComponentConstructor,
TypedValue,
VoidValue,
FormComponent,
IFormComponentOptions,
FieldModel,
IFieldModelOptions,
StringValue,
IFieldModelState,
ValidationErrorModel,
ValidationErrorModelSeverity,
} from ".";
import { IFormComponentState } from "./FormComponent";
import { ILookupMode... |
// *** 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... |
// @ts-nocheck
// import * as React from 'react';
import { createModel } from '@xstate/test';
import { createMachine, assign } from 'xstate';
// import { render, fireEvent, cleanup } from '@testing-library/react';
// import { App } from './complete/App';
const testTimerAppMachine = createMachine({
initial: 'newTimer... |
import {Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
import {UtilityServiceService} from '../utility-service.service';
declare var google: any;
@Component({
selector: 'app-map-selection-tools',
templateUrl: './map-selection-tools.component.html',
styleUrls: ['./map... |
import React from 'react';
import groupBy from 'lodash/groupBy';
import withStyles, { css, WithStylesProps } from '../../../composers/withStyles';
import Text from '../../Text';
import Highlight from './Highlight';
import { ItemShape, FuseMatch } from '../types';
export type Props = {
item: ItemShape;
formattedPar... |
import * as styles from "./styles.scss";
import {
PortfolioAccordionProps,
PortfolioAccordionState,
PortfolioAccordionMethods
} from "./defines";
export default (
render: Function,
data: PortfolioAccordionProps & PortfolioAccordionState & PortfolioAccordionMethods,
createStyle: Function
) => {
return render`
... |
// *** 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";
/*... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import { Faker } from '../faker';
import en from '../locales/en';
import zu_ZA from '../locales/zu_ZA';
const faker = new Faker({
locale: 'zu_ZA',
localeFallback: 'en',
locales: {
zu_ZA,
en,
},
});
export = ... |
import { ApiProperty } from '@nestjs/swagger';
import { Order } from './order.interface';
export class CreateOrderDTO implements Partial<Order> {
@ApiProperty() code: string;
@ApiProperty() quantity: number;
} |
import { Nullable } from "../types";
/**
* A class serves as a medium between the observable and its observers
*/
export class EventState {
/**
* Create a new EventState
* @param mask defines the mask associated with this state
* @param skipNextObservers defines a flag which will instruct the obse... |
import type { ProjectConfig, HeaderSetting, MenuSetting, TransitionSetting, MultiTabsSetting } from '/#/config';
import type { BeforeMiniState } from '/#/store';
import { nextTick } from 'vue';
import { defineStore } from 'pinia';
import { store } from '/@/store';
import { PROJ_CFG_KEY } from '/@/enums/cacheEnum';
imp... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { TransactionsRoutingModule } from './transactions-routing.module';
import { ListComponent } from './list.compone... |
import { TestCase, HttpResult } from '../../../../../test_runners/models'
import s1 from '../setups/s01'
const setups = [s1]
const c: TestCase = {
description: '8. Add attribute definition with wrong type name',
setups,
config: function (this: TestCase) {
const result = s1.result as HttpResult
const da... |
import { Linter } from 'eslint'
import { merge } from 'lodash-es'
const basic: Linter.Config = {
rules: {
'vue/html-self-closing': 'off',
'vue/max-attributes-per-line': 'off',
'vue/html-indent': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newli... |
import { browserSha256, isBrowser, browserSha512 } from './lib/browser';
import { nodeSha256, isNode, nodeSha512 } from './lib/node';
import { fallbackSha256, fallbackSha512 } from './lib/fallback';
import { EMPTY_BUFFER } from './helpers/constants';
export async function sha256(msg: Buffer): Promise<Buffer> {
let r... |
declare module '@realrisman/mxgraph' {
class mxPopupMenu extends mxEventSource {
constructor(factoryMethod: (handler: mxPopupMenuHandler, cell: mxCell, me: mxMouseEvent) => any);
/**
* Variable: submenuImage
*
* URL of the image to be used for the submenu icon.
*/
submenuImage: string... |
import { readFileSync } from 'fs'
import { compact, uniqBy } from 'lodash'
import { basename, join, resolve } from 'path'
import { Dictionary } from 'ts-essentials'
import {
BytecodeWithLinkReferences,
CodegenConfig,
Config,
Contract,
extractAbi,
extractBytecode,
extractDocumentation,
FileDescription,
... |
import {Todo} from './BusinessObjects'
import {TodosState} from './Reducers/todo.reducer'
export interface AppState {
todos:TodosState;
} |
// @Libs
import { memo, useCallback, useEffect } from "react"
import { Form, FormProps } from "antd"
// @Types
import { Parameter } from "catalog/sources/types"
import { ConfigurableFieldsForm } from "ui/components/ConfigurableFieldsForm/ConfigurableFieldsForm"
// @Components
import { PatchConfig, SetFormReference, Val... |
import { Component, OnInit } from '@angular/core';
import {NgForm} from "@angular/forms";
import * as firebase from 'firebase';
import {register} from "ts-node/dist";
import {NotificationService} from "../../shared/notification.service";
import {MyFireService} from "../../shared/myfire.service";
@Component({
selecto... |
import { Table, Model, Column, DataType } from 'sequelize-typescript';
import { Exclude, Expose } from 'class-transformer';
import { ApiProperty } from '@nestjs/swagger';
@Exclude()
@Table
export class Livro extends Model {
@Expose()
@ApiProperty({ example: '1', description: 'Identificador do livro' })
@Column({... |
import { Box } from '@givto/frontend/components/ui/box';
import { NextPage } from 'next';
import React from 'react';
export const GroupSettingsPage: NextPage<any> = () => <Box>settings</Box>;
export default GroupSettingsPage; |
/**
* ID: 00574
* Title: Winning Candidate
* Difficulty: Medium
* Description:
*/
function solution() {
}
function test_00574() {
}
test_00574() |
import { Controller, Get } from '@nestjs/common';
import { PostsService } from './posts.service';
@Controller()
export class PostsController {
constructor(
private readonly postsService: PostsService,
) { }
@Get()
async testMapper() {
return this.postsService.getPosts();
}
} |
import { UbicacionGps, UbicacionSchema } from './../../services/tours.service';
import { Component, OnInit , ViewChild,AfterViewInit} from '@angular/core';
import { ToursService, paqueteSchema} from '../../services/tours.service';
import { ActivatedRoute, Router } from "@angular/router";
import { GruposService, datosCo... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home/home.component';
const routes: Routes = [{
path: '',
redirectTo: '/home',
pathMatch: 'full'
}, {
path: 'home',
component: HomeComponent
}];
@NgModule({
imports: [RouterMo... |
import {AfterViewInit, ChangeDetectionStrategy, Component, OnInit, Renderer2, ViewEncapsulation} from '@angular/core';
import {ApiService} from "./api.service";
import {FormControl} from "@angular/forms";
import {switchMap} from "rxjs/operators";
import {Country} from "./interfaces/country";
import {Observable} from "r... |
import { storiesOf } from '@storybook/react';
import { select, number } from '@storybook/addon-knobs';
import React from 'react';
import { Carousel, CarouselProps } from './components';
storiesOf('useDistortionEffectCarousel', module).add('default', () => (
<Carousel
easing={select(
'easing',
{
... |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" {...props}>
<path d="M366.3 322.1c-6.125 6.376-5.906 16.5.469 22.63 1.03 1.016 1.562 2.219 1.562 3.672 0 1.375-.531 2.578-1.594 3.594l-53.78 ... |
/*
* 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 { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { HeroesRoutingModule } from './heroes-routing.module';
import { HeroDetailComponent } from './hero-detail/hero-detail.component';
import { HeroesComponent } from './he... |
const { clikitConfig } = require('@@/scripts/getConfig');
import { success, error } from '@/utils/message';
export const list = async () => {
try {
success('\n' + JSON.stringify(clikitConfig, null, 2));
} catch (err) {
error(err);
process.exit(1);
}
}; |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'hc-input-password-example',
templateUrl: './input-password-example.component.html',
styleUrls: ['./input-password-example.component.scss']
})
export class InputPasswordExampleComponent implements OnInit {
hiddenEye = false;
private p... |
import { Signer } from 'ethers';
import { Provider, TransactionRequest } from '@ethersproject/providers';
import { ContractFactory, Overrides } from '@ethersproject/contracts';
import type { PaymentChannel } from '../PaymentChannel';
export declare class PaymentChannel__factory extends ContractFactory {
constructor... |
/* eslint-disable @typescript-eslint/no-explicit-any */
/*
* Copyright 2021 Collate
* 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
* Un... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="sv">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Tdcoin</source>
<translation>Vad du behöver veta o... |
import { Node } from "typescript";
import { ComponentMember } from "web-component-analyzer";
import { litDiagnosticRuleSeverity } from "../analyze/lit-analyzer-config";
import { LitAnalyzerRequest } from "../analyze/lit-analyzer-context";
import { LitHtmlDiagnostic, LitHtmlDiagnosticKind } from "../analyze/types/lit-di... |
module ngFoundation.directives {
//@NgDirective('row')
class RowDirective implements ng.IDirective {
constructor($templateCache: ng.ITemplateCacheService) {
}
template = '<div class="row" ng-transclude></div>';
restrict = "E";
transclude = true;
replace = true;
}
} |
/**
* @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 { Comp4548Component } from './comp... |
import { RectPosition } from './tween';
import { Observable } from 'rxjs';
import { ElementRef } from '@angular/core';
import { tap, map, first, last } from 'rxjs/operators';
import { parseRgb } from './colors';
export const positionStyles = ['position', 'top', 'left', 'height', 'width'];
export const elementStyles = ... |
import { Injectable } from '@angular/core';
@Injectable()
export class ContactService {
public htmlResponse:string;
public name:string;
constructor(){
}
sendData(name:string = ''){
let htmlResponse = `
<div id='success_page'>
<h3 class='succes... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import { Provider } from "@ethersproject/providers";
import type {
ParamProviderState,
ParamProviderStateInterface,
} from "../ParamProviderState";
const _abi = [
{
ano... |
import React from 'react';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import { Fade } from '@material-ui/core';
import Button from '@material-ui/core/Button';
import EndCallButton from '../Buttons/EndCallButton/EndCallButton';
import { isMobile } from '../../utils';
import Menu from '... |
import { inject, injectable } from "inversify";
import { ApiContribution } from "backend/api/api.extensions";
import { AppContribution } from "backend/app/app.extensions";
import { notificationsApi } from "shared/api.events";
import { NotificationItem, NotificationType } from "shared/notification.types";
import { fastR... |
/**
* Void tags (without closing element)
*/
export const htmlVoidTags: string[] = [
'area',
'base',
'br',
'col',
'command',
'embed',
'hr',
'img',
'input',
'keygen',
'link',
'meta',
'param',
'source',
'track',
'wbr'
]; |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserMod... |
import produce from 'immer'
import { initialState } from '.'
import { ConnectionAction, ConnectionActionType } from '../actions/models/connection.model'
import { ConnectionState, ConnectionStateDraft } from '../../models/State.model'
import { IPlayer } from '../../../proto/ServerClientMessage'
export const connection... |
import Toolbar from '@mui/material/Toolbar';
import Typography from '@mui/material/Typography';
import IconButton from '@mui/material/IconButton';
import Tooltip from '@mui/material/Tooltip';
import DeleteIcon from '@mui/icons-material/Delete';
import FilterListIcon from '@mui/icons-material/FilterList';
import { alpha... |
export function buddyStrings(s: string, goal: string): boolean {
let diff: number[] = [];
if (s.length !== goal.length) {
return false;
}
for (let i = 0; i < s.length; i++) {
if (s[i] !== goal[i]) {
diff.push(i);
}
}
if (diff.length === 0) {
const set = new Set();
for (const item o... |
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SetAccountsPage } from './set-accounts.page';
describe('SetAccountsPage', () => {
let component: SetAccountsPage;
let fixture: ComponentFixture<SetAccountsPage>;
beforeEach... |
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
import React from 'react'
import { useTranslation } from 'react-i18next'
import { Text, View } from 'react-native'
import { SafeAreaView } from 'react-native-safe-area-context'
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
i... |
/**
* @author WMXPY
* @namespace Declare
* @description Account Tag
*/
export type AccountTagReplaceRequest = {
readonly tags: string[];
};
export type AccountTagReplaceResponse = {
readonly tags: string[];
}; |
import { CoinPaymentsDepositPollingService } from './coinpayments/CoinPaymentsDepositPollingService'
import { CloseChannelService } from './CloseChannelService'
import Config from './Config'
import log from './util/log'
import { Container, Context, Registry } from './Container'
import defaultRegistry from './services'
... |
import { Field, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class PreviewEmailTemplateOutput {
@Field(() => String)
readonly html: string;
} |
import { MPChartBase } from "../nativescript-mpchart.common";
export declare class MPLineChart extends MPChartBase {
nativeView: any;
createNativeView(): any;
resetZoomLineChart(): any;
} |
import signupRepo from '@src/ports/repos/signup';
import signupNotification from "@src/ports/notification/signup";
export default async (_token: string): Promise<void> => {
const signup = await signupRepo.getByToken(_token);
await signupRepo.updateStatus(signup, "COMPLETE");
await signupNotification.compl... |
/*
Copyright 2020-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 t... |
import React, { Fragment } from "react"
import { Box, Image, Sans, Serif, Spacer } from "@artsy/palette"
import { createFragmentContainer, graphql } from "react-relay"
import { ViewingRoomSubsections_viewingRoom } from "__generated__/ViewingRoomSubsections_viewingRoom.graphql"
interface ViewingRoomSubsectionsProps {
... |
export {
EnumANSIColors,
EnumANSIColorsSuffix,
EnumANSIPrefix,
EnumANSISuffix,
EnumCSSColors,
TestEmojiEnum,
} from "trailmix/common/enum.ts";
export { unique } from "trailmix/common/array.ts";
export {
importDefault,
isModule,
toFileUrlDeep,
validPath,
} from "trailmix/common/file.ts";
export { ... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { ListResponseModel } from '../models/listResponseModel';
import { ProjectWorker } from '../models/projectWorkers/projectWorker';
import { ProjectWorkerGeneralDto } from '../models/pr... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
export { default as NumberWithUnitRecognizer, NumberWithUnitOptions, recognizeTemperature, recognizeDimension, recognizeCurrency, recognizeAge } from "./numberWithUnit/numberWithUnitRecognizer";
export { Culture, CultureInf... |
import { join } from 'path'
import { builtinModules } from 'module'
import { defineConfig } from 'vite'
import pkg from '../../package.json'
export default defineConfig({
root: __dirname,
build: {
outDir: '../../dist/preload',
emptyOutDir: true,
minify: process.env./* from mode option */NODE_ENV === 'p... |
import Vue from 'vue';
import Router from 'vue-router';
import Home from './views/Home.vue';
import Client from './views/Client.vue';
import Settings from './views/Settings.vue';
Vue.use(Router);
const router = new Router({
mode: 'history',
base: process.env.BASE_URL,
routes: [
{
path: '/',
comp... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, click } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import Layer1TestWeb3Strategy from '@cardstack/web-client/utils/web3-strategies/test-layer1';
import Layer2TestWeb3Strategy from '@ca... |
import "@emotion/react"
import "@startpage/theming"
import { StpgTheme } from "@startpage/preset"
declare module "@emotion/react" {
export interface Theme extends StpgTheme {}
}
declare module "@startpage/theming" {
export interface Theme extends StpgTheme {}
} |
import React, { FC } from "react";
import ReactGA from "react-ga";
import { history } from "./Providers";
import { useCookies } from "react-cookie";
export const AnalyticsProvider: FC = props => {
const [cookies] = useCookies();
if (cookies.consent) {
ReactGA.initialize("UA-52545728-1");
history.listen(({... |
import { By } from "selenium-webdriver";
import { DeepPartial } from 'ts-essentials';
/**
* Type definitions for all used locators
*/
export interface Locators {
// Activity Bar
ActivityBar: {
constructor: By
viewContainer: By
label: string
actionsContainer: By
action... |
export const CLIENTS = ['client1'] |
/**
Copyright 2019 Forestry.io Inc
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 writing, softwa... |
import Telegraf, { session, Stage, Middleware } from "telegraf";
import { TelegrafContext } from "telegraf/typings/context";
import TelegrafLogger from "telegraf-logger";
// TODO: check everywhere order of imports
import {
DEFAULT_SCHEDULE_SCENARIO,
MENU_SCENARIO,
NEWS_SCENARIO,
SCHEDULE_SCENARIO,
... |
import { Sequelize } from 'sequelize-typescript';
import {
DEMO,
DEVELOPMENT,
LOCAL,
LOCAL_RR,
MEDEA_DB,
PRODUCTION,
RELEASE,
STAGING
} from '../../../constants/general.constant';
import { medeaConfig } from './medea.config';
export const medeaProviders = [
{
provide: MEDEA_DB,
useFactory: as... |
const state = {
entityNumber: '',
passcode: ''
}
const getters = {
entityNumber: (state) => state.entityNumber,
passcode: (state) => state.passcode
}
const mutations = {
entityNumber (state, entityNumber) {
state.entityNumber = entityNumber
},
passcode (state, passcode) {
state.passcode = passco... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This sample uses the key-phrase extraction endpoint to determine which
* words or phrases in a document are of particular importance.
*
* @summary extracts key phrases from a piece of text
* @azsdk-weight 100
*/
import { TextAnalyt... |
import PRESS_ACTIONS from 'src/components/About/Press/actionTypeKeys';
import { AcclaimItemShape } from 'src/components/About/Press/types';
export interface FetchAcclaimsRequest {
readonly type: typeof PRESS_ACTIONS.FETCH_ACCLAIMS_REQUEST;
}
export interface FetchAcclaimsError {
readonly type: typeof PRESS_AC... |
import * as React from "react";
import { JSX } from "react-jsx";
import { IFluentIconsProps } from '../IFluentIconsProps.types';
const Layer24Regular = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => {
const {
primaryFill,
className
} = iconProps;
return <svg {...... |
export class User {
public id: number;
public name: string;
public email: string;
public username: string;
public prefs: Preferences;
public isManager: boolean;
}
export class Comment {
public id: number;
public date: Date;
public comment: string;
public user: User;
}
export cl... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Stan } from "node-nats-streaming";
import { Subjects } from "./subjects";
interface Event {
subject: Subjects;
data: any;
}
export abstract class Publisher<T extends Event> {
abstract subject: T["subject"];
private client: Stan;
constructor(client: Stan) {
this.client = client;
}
publish(data: T["... |
import { actionCreator } from '../utils/actions'
import ActionTypes from '../constants/action-types'
import { AppDetailItem } from '@/reducers/apps/detail'
// import { AppClientSecretModel } from '@/types/marketplace-api-schema'
export interface AppDetailParams {
id: string
clientId?: string
}
export const fetchA... |
import { fromHex } from "@cosmjs/encoding";
import { pubkeyToAddress, pubkeyToRawAddress } from "./addresses";
// Test values from https://github.com/informalsystems/tendermint-rs/blob/v0.18.1/tendermint/src/account.rs#L153-L192
describe("addresses", () => {
describe("pubkeyToRawAddress", () => {
it("works for... |
import { Periods } from './periods';
describe('periods', () => {
describe('display()', () => {
it('four quarters', () => {
const periods = new Periods(4);
expect(periods.display()).toEqual(["Q1", "Q2", "Q3", "Q4"]);
});
it('first quarter', () => {
const periods = new Periods(1);
e... |
import { TypeOrmModuleOptions } from "@nestjs/typeorm";
export const typeOrmConfig: TypeOrmModuleOptions =
{
type: 'mysql',
host: 'localhost',
port: 3306,
username: 'root',
password: 'mj123',
database: 'nestjs_mysql_crud',
entities: [
__dirname + '/../**/*.entity.ts'
// "../... |
import { INestApplication } from '@nestjs/common';
import { SwaggerDocumentOptions } from '@nestjs/swagger';
import { RedocOptions } from '../redoc/interfaces';
import { RedocModule } from '../redoc/redoc.module';
import { AsyncAPIObject } from '.';
import { AsyncapiScanner } from './asyncapi.scanner';
// tslint:dis... |
type AspectRatio = 'AR_ASPECT_FIT_PARENT' | 'AR_ASPECT_FILL_PARENT' | 'AR_ASPECT_WRAP_CONTENT' | 'AR_MATCH_PARENT' | 'AR_16_9_FIT_PARENT' | 'AR_4_3_FIT_PARENT';
declare const GPlayer: {
play: (url: string) => void;
setTitle?: (title: string) => void;
setFullScreenOnly?: (isFullScreenOnly :boolean) => void;
set... |
import Panel from "../../common/panel";
import React, {Component, ReactElement} from "react";
import {ApplicationError} from "../../../common/errors";
import {IServices} from "../../../service/services";
import {Album, AlbumDetails} from "../../../service/domain/albums";
import Alert, {AlertSeverity} from "../../common... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import classNames from 'classnames'
import { FC } from 'react'
export const AppContent: FC = ({ children }) => {
return (
<div
className={classNames(
'grid grid-cols-[repeat(auto-fill,minmax(290px,1fr))]',
'gap-x-2 sm:gap-x-4 lg:gap-x-8 gap-y-20',
'px-page py-4 lg:py-8',
)}
... |
import { ThinEngine } from "../../Engines/thinEngine";
import { Constants } from "../constants";
declare module "../../Engines/thinEngine" {
export interface ThinEngine {
/**
* Sets alpha constants used by some alpha blending modes
* @param r defines the red component
* @param g ... |
import {SubstrateExtrinsic,SubstrateEvent,SubstrateBlock} from "@subql/types";
import {StarterEntity, StakingReward, SumReward} from "../types";
import {Balance} from "@polkadot/types/interfaces";
export async function handleStakingRewarded(event: SubstrateEvent): Promise<void> {
const {event: {data: [account, new... |
import React from "react";
import styled from "@emotion/styled";
import { experiments } from "../content/experiments";
import { Container } from "./container";
import { StyledExperimentsSection } from "./styles/experiments.styles";
import ExperimentItem from "./experiment";
import Tilt from 'react-parallax-tilt';
cons... |
import AccountStore, {AccountActions, initialAccountStore} from "./AccountStore";
import {CreateAccountAction, CreateAccountType} from "./CreateAccountAction";
import SetSelectedAccountAction, {SetSelectedAccountType} from "./SetSelectedAccountAction";
import SetAccountListenerIdAction, {SetAccountListenerIdType} from ... |
/// <reference types="node" />
import { GaiaHubConfig } from './hub';
import { EncryptionOptions } from '@stacks/encryption';
import { UserSession } from '@stacks/auth';
export interface PutFileOptions extends EncryptionOptions {
contentType?: string;
encrypt?: boolean | string;
dangerouslyIgnoreEtag?: bool... |
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer';
import createWidget from '../../../../../helpers/createWidget';
import url from '../../../../../helpers/getPageUrl';
import Scheduler from '../../../../../model/scheduler';
fixture`Scheduler: Material theme without all-day panel`
.page(url(_... |
/* tslint:disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export interface AnalysisSubmission {
apiVersion: string
harveyVersion?: str... |
import * as React from 'react';
import { Bulma } from './../../../bulma';
export interface ModalCard<T> extends Bulma.Tag, React.HTMLProps<T> {
}
export declare function ModalCard({ tag, ...props }: ModalCard<HTMLElement>): React.DetailedReactHTMLElement<{
className: string;
accept?: string;
acceptCharset?:... |
import { makeStyles } from '@material-ui/core/styles';
export const useStyles = makeStyles(theme =>({
button: {
margin: "0 0 0 5px",
float: "right",
verticalAlign: "middle",
},
})); |
import PrismaClientPackage from '@prisma/client';
import {millify} from 'millify';
import db from '../../../db.js';
const {ApproximateCountKind} = PrismaClientPackage;
interface Stats {
urls: number;
visits: number;
}
/**
* Perform an expensive query to get the statistics for this instance.
* @returns The preci... |
import * as React from "react"
function SvgArrowNarrowUp(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
{...props}
>
<path
fillRule="evenodd"
d="M5.293 7.707a1 1 0 010-1.414l4-4a1 1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.