text stringlengths 10 953k |
|---|
/**
* @license
* Copyright 2018 Google LLC. 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 a... |
import React from 'react';
import { ReduxAction } from '../../../store';
import { FontAwesomeIconMemo } from '../../../components';
type CounterFormGroupProps = {
readonly count: number;
readonly increment: () => ReduxAction;
readonly decrement: () => ReduxAction;
};
const CounterFormGroup = React.memo<CounterF... |
import { Injectable } from '@nestjs/common';
import { Prisma } from './prisma.binding';
@Injectable()
export class PrismaService extends Prisma {
constructor() {
super({
endpoint:
'https://eu1.prisma.sh/sinanbaymammadli-c8fd1d/blog-graphql/dev',
debug: false,
});
}
} |
import { Injectable } from '@nestjs/common';
import {
HealthCheckError,
HealthIndicator,
HealthIndicatorResult,
} from '@nestjs/terminus';
export interface Dog {
name: string;
type: string;
}
@Injectable()
export class DogHealthIndicator extends HealthIndicator {
private dogs: Dog[] = [
{ name: 'Fido'... |
import { Context } from "koa";
import { getManager } from "typeorm";
import { User } from "../entity/User";
import { Photo } from "../entity/Photo"
import * as fs from "fs"
const logger = require('consola')
export async function home(context) {
context.response.type = 'html'
context.response.body = fs.createR... |
import * as React from 'react'
import { Subject, Subscription } from 'rxjs'
import { catchError, filter, mergeMap, tap } from 'rxjs/operators'
import { ErrorAlert } from '@sourcegraph/branded/src/components/alerts'
import { Form } from '@sourcegraph/branded/src/components/Form'
import { ErrorLike, asError } from '@so... |
import { Component, ElementRef, ViewChild, AfterViewInit, OnDestroy, Input } from '@angular/core';
import { YoutubeIframeService } from '../services/youtube-iframe.service';
import { Video } from 'src/app/models/video/video';
import isRequired from 'src/app/decorators/isRequired';
import { MainConstants } from 'src/ap... |
import { action, fail, noop } from "../internal"
let generatorId = 0
export type CancellablePromise<T> = Promise<T> & { cancel(): void }
export interface FlowYield {
// fake, only for typing
"!!flowYield": undefined
}
export interface FlowReturn<T> {
// fake, only for typing
"!!flowReturn": T
}
// ... |
export type Dict<T = unknown> = Record<string, T>
export type AnyFunction = (...args: any[]) => any |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-account-creation',
templateUrl: './account-creation.component.html',
styleUrls: ['./account-creation.component.scss']
})
export class AccountCreationComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { defineComponent, h, PropType, ref, Ref, computed, onUnmounted, watch, reactive, nextTick } from 'vue'
import XEUtils from 'xe-utils'
import GlobalConfig from '../../v-x-e-table/src/conf'
import { useSize } from '../../hooks/size'
import { createResizeEvent, XEResizeObserver } from '../../tools/resize'
import {... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ChangelogComponent } from './changelog/changelog.component';
const routes: Routes = [
{ path: '', redirectTo: '/details', pathMatch: 'full' },
{ path: 'details', component: ChangelogComponent }
];
@NgModule(... |
import Link from 'next/link'
import Header from '../components/header'
import ExtLink from '../components/ext-link'
import Features from '../components/features'
import GitHub from '../components/svgs/github'
import sharedStyles from '../styles/shared.module.css'
export default () => (
<>
<Header titlePre="Home"... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ProductFormulationComponent } from './product-formulation.component';
describe('ProductFormulationComponent', () => {
let component: ProductFormulationComponent;
let fixture: ComponentFixture<ProductFormulationComponent>;
before... |
/*
Copyright 2019 - 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... |
import gql from "graphql-tag";
import { TypedMutation } from "../core/mutations";
import { TypedQuery } from "../core/queries";
import {
createCheckout,
createCheckoutVariables
} from "./types/createCheckout";
import { getCheckout, getCheckoutVariables } from "./types/getCheckout";
import { getUserCheckout } from ... |
version https://git-lfs.github.com/spec/v1
oid sha256:acae068c33e8ff3dcd10c9c70aec2cb248de873740b93816497ab004ec174ea8
size 1402104 |
import {HttpClient} from 'aurelia-fetch-client';
import {autoinject} from 'aurelia-framework';
export namespace My_Demo_Client {
/**An object representing an Amazon Cognito identity pool. */
export interface IdentityPool {
IdentityPoolId: string;
IdentityPoolName: string;
AllowUnauthenticatedIdentities: boolea... |
import { useChapters } from '~entities/chapter';
import { PAGES_URLS } from '~shared/config/urls';
import { useWindowScroll } from '~shared/hooks';
import { intToRoman } from '~shared/lib/convert';
import { Link, Menu } from '~shared/ui';
import * as S from './styles';
export const NavMenu = (): JSX.Element => {
c... |
import { content } from "../storybook/stories/components/RichTextEditor";
import { CategoryDetails_category } from "./types/CategoryDetails";
export const categories = [
{
children: {
totalCount: 2
},
id: "123123",
name: "Lorem ipsum dolor",
products: {
totalCount: 4
}
},
{
... |
// Copyright (c) 2021-2022 Peter Matta
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
import { Parser, StringSource } from '@fp4ts/parse-core';
import { string } from './parsers';
export function parser<PS extends Parser<StringSource, a... |
// (C) 2007-2018 GoodData Corporation
import { IAttribute, IAttributeOrMeasure, IFilter, ISortItem, newBucket } from "@gooddata/sdk-model";
import { BucketNames } from "@gooddata/sdk-ui";
import { roundChartDimensions } from "../_commons/dimensions";
import { IBucketChartProps } from "../../interfaces";
import { CorePi... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { DEFAULT_SPACE_ID } from '../../common/constants';
import { SpacesSav... |
declare module 'event-pubsub' {
export class EventPubSub {
// eslint-disable-next-line @typescript-eslint/ban-types
on(type: string, handler: Function, once: boolean): EventPubSub
// eslint-disable-next-line @typescript-eslint/ban-types
once(type: string, handler: Function): EventPubSub
// eslint-... |
import * as socketIO from "socket.io";
import * as Redis from "ioredis";
import * as redisAdapter from 'socket.io-redis';
import * as pino from "pino";
import * as https from "https";
import * as http from "http";
import {StageId, User, UserId} from "../model.common";
import SocketDeviceHandler from "./SocketDeviceEven... |
// Copyright (c) 2021-present, Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE-APACHE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.
export type Initialize = (initParams: {
filename: stri... |
/**
* @license
* Copyright Google LLC 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 { TemplateRef, ViewContainerRef, ElementRef, ComponentRef, EmbeddedViewRef, Injector, ComponentFactoryResolver ... |
import { Controller, Post, Body, Get, Param, ParseIntPipe, NotFoundException, HttpException, HttpStatus, Patch, Delete } from '@nestjs/common';
import { ApiBearerAuth, ApiOperation, ApiTags, ApiResponse, ApiBasicAuth } from '@nestjs/swagger';
import { ValuesService } from '../services/values.service';
import { CreateVa... |
import React from "react";
interface LogoProps {
className?: string;
}
const Logo: React.FC<LogoProps> = ({ className }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="48"
height="66"
className={className}
fill="none"
viewBox="0 0 48 66"
>
<g fill="#... |
import { AxiosRequestConfig, AxiosPromise, AxiosResponse } from '../types/index'
import { buildURL } from '../helpers/url'
import { flattenHeaders } from '../helpers/header'
import xhr from './xhr'
import transform from './transform'
export default function dispatchRequest(config: AxiosRequestConfig): AxiosPromise {
... |
import { curry, mapObjIndexed, prop, where } from 'ramda';
// import { comp, map, remove } from 'transducers-js';
import { Criteria, ICriterion, IMap } from './types';
// const ignored = pipe(concat([ null, undefined, '' ]), flip(contains));
const m = <M extends object, K extends keyof M>(criteria: Criteria<M>, obj: M... |
/// <reference types="react" />
import * as React from 'react';
import { Store } from './createStore';
import Column from './Column';
import ColumnGroup from './ColumnGroup';
import { TableProps, TableState, TableComponents, TableLocale, ColumnProps, TableStateFilters, SelectionItemSelectFn } from './interface';
export... |
/*
* @Description:全局存储类封装(AES加解密)
* @Autor: ZY
* @Date: 2020-11-04 11:51:01
* @LastEditors: ZY
* @LastEditTime: 2020-12-28 16:57:57
*/
import VAES from './ase'
import Cookies from 'js-cookie'
export enum StorageType{
local,
session,
cookie
}
interface VStorageInterface{
rcSetItem<T>(type: Stora... |
import {Component} from '@angular/core';
import { MatDialogRef, MatDialog} from '@angular/material';
// import { UploadPhotoComponent } from '../photos/upload_photo/upload_photo';
@Component({
selector: 'editprofile',
templateUrl: './editprofile.component.html',
styleUrls: ['./editprofile.css']
})
export class Ed... |
import { Body, Controller, Get, Param, Post, Query, UseGuards, Inject, Request, Put, Response, Req, Delete } from '@nestjs/common';
import {
ApiUseTags,
ApiOkResponse,
ApiForbiddenResponse,
ApiOperation,
} from '@nestjs/swagger';
import { AuthGuard } from '@nestjs/passport';
import { Pagination } from 'src/comm... |
import React from "react";
import styled from "styled-components";
interface IProps {
email: string;
fullName: string;
penName: string;
handleChange: (e: any) => void;
handleSubmit: () => void;
}
export default (props: IProps) => {
const { email, fullName, penName, handleChange, handleSubmit } = props;
... |
import { defineComponent, h, onBeforeUpdate, ref } from 'vue'
import type { Component, VNode } from 'vue'
declare const __VUEPRESS_DEV__: boolean
export default defineComponent({
name: 'CodeGroup',
setup(_, { slots }) {
// index of current active item
const activeIndex = ref(-1)
// refs of the tab b... |
import React, { useEffect, useState, useRef } from 'react';
import ProLayout, { PageLoading } from '@ant-design/pro-layout';
import {
enable as enableDarkMode,
disable as disableDarkMode,
auto as followSystemColorScheme,
setFetchMethod,
} from 'darkreader';
import defaultProps from './defaultProps';
import { Li... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
export interface ISession {
/**
* The session ID.
*/
id?: string;
/**
* The date at which this guid was genereated.
* Per the spec the ID will be regenerated if more than acquisitionSpan mil... |
import { StringParser, Types } from '../../src';
const exampleStr = 'KQT7.KJ3.A65.J98';
const hand = [
{ suit: Types.Suit.Spade, rank: Types.Rank.King },
{ suit: Types.Suit.Spade, rank: Types.Rank.Queen },
{ suit: Types.Suit.Spade, rank: Types.Rank.Ten },
{ suit: Types.Suit.Spade, rank: Types.Rank.Seven },
{ suit... |
import {fields} from './enum';
import {WithStyles} from "@material-ui/core";
import styles from "./WorkProgram.styles";
import {literatureFields} from './enum';
import {SortingType} from "../../components/SortingButton/types";
export interface LiteratureActions {
changeSearchQuery: any;
getLiterature: any;
... |
import React from 'react'
import * as S from '../styles'
type LastPageProps = {
lastPage: number | null
setPage: (page: number | null) => void
}
const LastPage = ({ lastPage, setPage }: LastPageProps) => {
return (
<S.Icon
className="fas fa-angle-double-right"
onClick={() => setPage(lastPage)}
... |
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 { IHeavyCellProps } from "../types";
import clsx from "clsx";
import _get from "lodash/get";
import { createStyles, makeStyles, Grid } from "@material-ui/core";
import ActionFab from "./ActionFab";
import { sanitiseCallableName, isUrl } from "utils/fns";
const useStyles = makeStyles((theme) =>
createStyles(... |
export interface ActionSheetProps extends KUI.BaseProps {
actions?: Action[];
maskClose?: boolean;
show?: boolean;
showCancel?: boolean;
title?: React.ReactNode | string;
cancelText?: React.ReactNode | string;
onCancel?: () => void;
onSelect?: (action: Action) => void;
}
export in... |
///<reference path="../reference.ts" />
module Plottable {
export module Component {
export class Group extends AbstractComponentContainer {
/**
* Constructs a GroupComponent.
*
* A GroupComponent is a set of Components that will be rendered on top of
* each other. When you call Component.me... |
import * as actions from '../actions/index';
describe('App actions Tests', () => {
it('returns type CREATEBOARD', function () {
const action = actions.createBoard();
expect("CREATE_BOARD").toEqual(action.type)
});
it('returns type not CREATEBOARD', function () {
const action = actio... |
import { Injectable } from '@angular/core';
// If you import a module but never use any of the imported values other than as TypeScript types,
// the resulting javascript file will look as if you never imported the module at all.
import { IpcRenderer, Remote, WebFrame } from 'electron';
import * as fs from 'fs';
impor... |
export * from './account.model';
export * from './app.model';
export * from './propertySearch';
export * from './property'; |
<TS language="eu" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klikatu eskuinarekin helbidea edo etiketa aldatzeko</translation>
</message>
<message>
<source>Create a new address</source>
... |
import * as t from 'io-ts';
import {RTTI_id} from '../Scalar/RTTI_id';
import {RTTI_Meta, IMeta} from './RTTI_Meta';
import {RTTI_uri} from '../Scalar/RTTI_uri';
import {RTTI_Element, IElement} from './RTTI_Element';
import {RTTI_code} from '../Scalar/RTTI_code';
import {RTTI_Narrative, INarrative} from './RTTI_Narrati... |
export * from "./git_logic"
export * from "./mock_fs_helper"
export * from "./path_helper"
export * from "./str_utils"
export * from "./cli-app" |
import {
AfterContentChecked,
AfterContentInit,
AfterViewInit,
Component,
ElementRef,
Inject,
OnChanges,
OnInit,
SimpleChanges,
ViewChild,
HostListener,
} from "@angular/core";
import { GrantDataService } from "../grant.data.service";
import { DataService } from "../data.service";
import {
Actio... |
export const COURSES: any = {
1: {
id: 1,
description: 'Serverless Angular with Firebase Course',
iconUrl: 'https://s3-us-west-1.amazonaws.com/angular-university/course-images/serverless-angular-small.png',
longDescription: 'Serveless Angular with Firestore, Firebase Storage & Hosting, Firebase Cloud... |
import {
getActionDescription,
executeActions,
WidgetActions
} from "./widgetActions";
import * as useSubscription from "../hooks/useSubscription";
import {
ACTIONS_EX_AS_ONE,
ACTIONS_EX_FIRST,
WRITE_PV_ACTION,
WRITE_PV_ACTION_NO_DESC
} from "../../testResources";
const mockWritePv = jest
.spyOn(useSub... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SubAdminDashboardComponent } from './sub-admin-dashboard.component';
describe('SubAdminDashboardComponent', () => {
let component: SubAdminDashboardComponent;
let fixture: ComponentFixture<SubAdminDashboardComponent>;
beforeEach... |
// *** 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 * as utilities from "../utilities";
/**
* Manages an Azure Monitor Private Link Scope.
*
* ## E... |
import { ethers, network } from "hardhat";
import { BigNumber } from "ethers";
const ONE = ethers.constants.One;
const TWO = ethers.constants.Two;
const zeroAddr = ethers.constants.AddressZero;
// AccessControl roles in bytes32 string
const roles = {
admin: ethers.constants.HashZero, // DEFAULT_ADMIN_ROLE
minter:... |
/* eslint-disable @typescript-eslint/no-var-requires */
const FakeS3 = require('fake-s3')
export const S3Mock = {
server: null as any,
async init(port: number): Promise<void> {
this.server = new FakeS3({
port,
buckets: ['account-image'],
prefix: '',
})
await this.server?.bootstrap(... |
import * as createApplication from 'express';
import { createServer, Server as HttpServer } from 'http';
import { CreateRepertoireAction } from './actions/createrepertoireaction';
import { DeleteRepertoireAction } from './actions/deleterepertoireaction';
import { EvaluateFlagsAction } from './actions/evaluateflagsactio... |
/**
* @description 接受多个 class, 并用空格分开
* @param names class 数组
*/
// 可以到 class.unit.js 查看使用方式
function classes(...names: (string | undefined | boolean)[]) {
// ... 会把参数转为数组
return names.filter(Boolean).join(" ");
}
export default classes |
import React from 'react';
import { mount } from 'enzyme';
import { RecoilRoot } from 'recoil';
import { HashRouter } from 'react-router-dom';
import { IconAngleDown } from 'hds-react';
import ApplicationList, { ApplicationListProps } from '../ApplicationList';
import { mockData, mockTableData } from '../__fixtures__/... |
import React from 'react';
import BasicLayout from './layout/BasicLayout';
import { HashRouter as Router, Switch } from 'react-router-dom';
import routes from '@/route/index';
import { generateRoutes } from './route/utils';
import './utils/rem';
import BigScreen from './pages/bigScreen';
function App() {
return (
... |
export const FIREBASE_APIKEY = process.env.REACT_APP_FIREBASE_APIKEY
export const FIREBASE_AUTHDOMAIN = process.env.REACT_APP_FIREBASE_AUTHDOMAIN
export const FIREBASE_DATABASEURL = process.env.REACT_APP_FIREBASE_DATABASEURL
export const FIREBASE_PROJECTID = process.env.REACT_APP_FIREBASE_PROJECTID
export const FIREBAS... |
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr'
import fadeInWidthExpandTransition from '../../../_styles/transitions/fade-in-width-expand.cssr'
import iconSwitchTransition from '../../../_styles/transitions/icon-switch.cssr'
// vars:
// --bezier
// --ripple-duration
// --opacity-disabled
// --text-color
/... |
/*
* Copyright 2021 Red Hat, Inc. and/or its affiliates.
*
* 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 app... |
export * from './line.service';
export * from './comments.service';
export * from './changes.service';
export * from './template.service'; |
/** Button types interface */
export enum InputIcon {
User,
Mail,
Location,
Code,
Globe,
Password,
Seats,
Search,
} |
import { Directive, OnInit, Input } from '@angular/core';
import { MatGridList } from '@angular/material';
import { MediaObserver, MediaChange } from '@angular/flex-layout';
export interface IResponsiveColumnsMap {
xs?: number;
sm?: number;
md?: number;
lg?: number;
xl?: number;
}
// Usage: <mat-grid-list [... |
export const log: debug.Debugger & {
error: debug.Debugger;
};
import debug = require("debug");
export declare const multicodec: string;
//# sourceMappingURL=config.d.ts.map |
import { Form, Formik } from 'formik'
import { ReactElement, useEffect, useMemo, useState } from 'react'
import styled from 'styled-components'
import { doApiRequest, formatResponse } from '../utils'
import { Icon, Loading } from './common'
import Table from './common/Table'
import { FormStyle } from './FormComponents... |
/* tslint:disable */
import { Entity } from './entity';
import { WebshopAd } from './webshop-ad';
/**
* An item containing a quantity.
*/
export interface BaseOrderItem extends Entity {
/**
* The regular price.
*/
price?: string;
product?: WebshopAd;
/**
* It represents how much of the product was... |
import React, { useEffect,useCallback, useState } from "react";
import { notify } from "../../utils/notifications";
import { useWallet } from "@solana/wallet-adapter-react";
import { useConnection,sendTransaction } from "../../contexts/connection"
import { SUPERBONDS_PROGRAM_ID,
USDC_MINT_ADDRESS,
SUPERB_MINT_A... |
import { NgModule } from '@angular/core';
import { CommonModule, } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { Routes, RouterModule } from '@angular/router';
import { AdminLayoutComponent } from './layouts/admin-layout/admin-layout.component';
import {BasicLoginComponen... |
import { Component, h, Prop } from '@stencil/core';
@Component({
tag: 'abc-button',
styleUrl: './abc-button.css',
shadow: true,
})
export class AbcButtonComponent {
@Prop() color: string;
render() {
// console.log(this.color, 'jdjjdjdjdj');
return (
<button type="button" class={this.color ? thi... |
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
import AccSecurity = require('./preview/AccSecurity');
import BulkExports = require('./preview/BulkExports');
import DeployedDevices = require('./preview/DeployedDevices');
import Domain = require('../ba... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
import { EndpointDirective } from 'alexa-smarthome-ts';
import { HttpRequest } from 'sync-api-processor/lib/processor';
import isTurnOn from 'alexa-utils/lib/directive/isTurnOn';
import isTurnOff from 'alexa-utils/lib/directive/isTurnOff';
import getEndpointId from 'alexa-utils/lib/directive/getEndpointId';
// TODO ... |
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('dotenv').config()
function safeGet(name: string, defaultValue = null) {
return process.env[name] ? process.env[name] : defaultValue;
}
export function getPort() {
return safeGet('PORT', 4000);
}
export function getMongoURL() {
return safeG... |
import { strict as assert } from 'assert';
import Bizic, { Plugin } from '../src/core';
describe('core/src/core.ts', () => {
it('plugin should be ok', (cb) => {
const bizic = new Bizic();
const plugin: Plugin = {
install(b) {
assert.equal(b, bizic);
cb();
},
};
bizic.use(p... |
enum UpdateType
{
Add,
Remove
} |
import * as React from "react";
import { Link, useHistory } from "react-router-dom";
import {
OperationStatus,
PagedList,
WaitingListSummary,
} from "../../shared/types";
import { useAppDispatch, useAppSelector } from "../../shared/hooks";
import { getWaitingLists } from "../waitingListsReducer";
import Layout fr... |
/* tslint:disable */
/* eslint-disable */
/* @relayHash 3469c509c813f1b67abb85b47d3d05f1 */
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type SalesQueryVariables = {};
export type SalesQueryResponse = {
readonly sales: {
readonly " $fragmentRefs": Fr... |
/*!
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*/
import {IMediaEventListener} from '../IMediaEventListener';
import {PlaybackState} from '../Resource';
export enum EmitBehavior {
Dedup = 'DEDUP',
AlwaysEmit = 'ALWAYS_EMIT'
}
export enum PlaybackStateTransitionResult {
StateUp... |
import {Http, ResponseContentType} from '@angular/http';
import {bindNodeCallback, Observable} from 'rxjs';
// A method which takes a Request object and a NodeJS style callback to recieve the Response.
export type NodeCallbackServiceMethod<Request, Response> =
(request: Request, callback: (error: (Error|null), res... |
/**
* OpaqueToken will be removed in angular 5
*
* https://github.com/SebastianM/angular-google-maps/issues/1135
* https://alligator.io/angular/angular-5/
*/
// import { Component, OnInit, Inject, OpaqueToken } from '@angular/core';
import { Component, OnInit, Inject } from '@angular/core';
import { FEATURE_E... |
// Type definitions for Node.js v4.x
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/*********************************************... |
import { createVanIconComponent } from "./van"
const BirthdayCakeOutlined = createVanIconComponent("birthday-cake-o")
export default BirthdayCakeOutlined |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
export interface RouteInfo {
path: string;
title: string;
}
export const ROUTES: RouteInfo[] = [
{ path: '/dashboard', title: 'Dashboard' },
{ path: '/vendors', title: 'Vendors' },
{ path: '/custo... |
export type EthereumUser = {
address: string | null
}
export type Ethereum = {
login(): Promise<any>
logout(): Promise<any>
getToken(): Promise<null | string>
getUserMetadata(): Promise<null | EthereumUser>
}
import type { AuthClient } from './'
export const ethereum = (client: Ethereum): AuthClient => {
... |
import {Component, OnInit} from 'angular2/core';
import {Router} from 'angular2/router';
import {Hero} from './hero';
import {HeroDetailComponent} from './hero-detail.component';
import {HeroService} from './hero.service';
@Component({
selector: 'my-heroes',
templateUrl: 'app/heroes.component.html',
styleUrls: ['ap... |
import React, {useCallback, useState, useEffect} from 'react';
import {TextInput, StyleSheet, ScrollView} from 'react-native';
import {SafeAreaView} from 'react-native-safe-area-context';
import {useI18n} from 'locale';
import PushNotification from 'bridge/PushNotification';
import {Box, Button, LanguageToggle, Text, T... |
namespace Soo.dom {
// 渲染元素
export interface RenderElement {
/** 画布 */
surface: any;
/** 渲染上下文 */
context: any;
/** 改变画布大小,并清空 */
resize(width: number, height: number): void;
//resizeTo(width: number, height: number): void;
/** 清空,并设置裁剪区域 */
... |
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import './styles/index.css'
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root'),
)
if (import.meta.hot) {
import.meta.hot.accept()
} |
/** @packageDocumentation @module dir1 */
export class Nest1 {} |
/// <reference path="browseranimationframeprovider.ts" />
/// <reference path="defaultscene.ts" />
/// <reference path="input/mouse.ts" />
/// <reference path="input/keyboard.ts" />
namespace ps {
export class Game {
engine: Engine;
mouse: input.Mouse;
keyboard: input.Keyboard;
came... |
import { NamedNode } from 'rdf-js';
declare function namedNode(namedNode: NamedNode): string;
export = namedNode; |
import { Route } from '../route'
describe('Route', () => {
test('route matching', () => {
expect(new Route({ path: '/', name: '' }).matchExact('/docs')).toBe(false)
expect(new Route({ path: '/', name: '' }).matchExact('/')).toBe(true)
expect(new Route({ path: '/docs', name: '' }).match('/docs')).toBe(tr... |
import * as Eact from "../Eact/Component";
function renderNode(node: Eact.Node): HTMLElement | null | Text {
if (node === null) {
return null;
} else if (typeof node === 'string') {
return document.createTextNode(node);
} else if (Eact.Component.isComponent(node)) {
return renderCom... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.