text stringlengths 10 953k |
|---|
import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RtlService } from '@fundamental-ngx/core/utils';
import { PlatformValueHelpDialogCompon... |
import { Component, OnInit, Input, OnChanges } from '@angular/core';
import { trigger, transition, stagger, animate, style, query, state } from '@angular/animations';
import { ItunesPodcast } from '@shared/models/itunes-podcast.models';
@Component({
selector: 'app-podcast-list',
templateUrl: './podcast-list.compon... |
/**
* (c) 2021, Micro:bit Educational Foundation and contributors
*
* SPDX-License-Identifier: MIT
*/
import { Box, Flex, HStack } from "@chakra-ui/react";
import React, { ReactNode } from "react";
interface LeftPanelTabContentProps {
title: string;
children: ReactNode;
nav: ReactNode;
}
/**
* A wrapper fo... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import copy from 'clipboard-copy'
import { GlobalHotKeys } from 'react-hotkeys'
import { replace, StoreStateRouterLocationURI, PropTypes } from '../../family'
import { serve } from '../../relatives/services/constant'
import { METHODS, STATUS... |
export * from './propertyFields/folderPicker/index'; |
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {TemplateHeadComponent} from './layout/app-layout/template-head/template-head.component';
import {TemplateTopnavCo... |
/*
* Copyright 2015 - 2021 TU Dortmund
*
* 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 agr... |
/// <reference path="fourslash.ts"/>
//// function foo(a?,b?) { b(a); }
////
//// (foo)(1, function() {/*4_0*/
//// });
////
//// // No line-breaks in the expression part of the call expression
////
//// (foo)
//// (1, function () {/*8_0*/
//// });
//// (foo)(1,
//// function () {/*8_1*/
//// });
//... |
import {Utils} from "./utils";
/**
* Defines the different pattern types
* `Empty`: no pattern
* `RegExp`: a regular expression pattern
* `Value`: a literal value
*/
export enum PatternType {
Empty = 0,
RegExp = 1,
// WildCard = 2,
Value = 3
}
/**
* A class that represents a single pattern. The ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Lock</source>
<translation>Lock Hakkında</translation>
</message>
<message>
<location l... |
import { useState } from 'react';
import { SideBar } from './components/SideBar';
import { Content } from './components/Content';
import './styles/global.scss';
export function App() {
const [selectedGenreId, setSelectedGenreId] = useState(1);
return (
<div style={{ display: 'flex', flexDirection: 'row' }}>... |
export function partTwo(numbers: number[]) {
const rightNumbers = numbers.map((number) =>
numbers.map((other) =>
numbers.filter((another) => number + other + another === 2020)
)
);
const realRightNumbers = new Set(
rightNumbers.flatMap((numbers) => numbers.flatMap((nested) => nested)),
);
re... |
import React from "react";
import { Point } from "react-simple-maps";
import CovidState from "../CovidState";
import StateAnnotation from "./StateAnnotation";
import StateMarker from "./StateMarker";
interface StateDecorationProps {
centroid: Point;
state: CovidState;
date: Date;
}
const StateDecoration... |
import React from 'react'
import { MonumentOne as originIcon } from '@icon-park/svg'
import { IIconProps } from '@icon-park/svg/lib/runtime'
import svg64 from 'svg64'
const MonumentOne = (props: IIconProps) => {
const base64Data = svg64(originIcon(props))
//@ts-ignore next-line
return <image src={base64Dat... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
import {MenuProvider} from 'components/useMenu';
import * as React from 'react';
import {Nav} from './Nav';
import {RouteItem, SidebarContext} from './useRouteMeta';
import {Sidebar} from './Sidebar';
import {Footer} from './Footer';
import SocialBanner from '... |
import { StacksNetwork } from "@stacks/network";
export type AppDetails = {
name: string;
icon: string;
};
export interface WebConfig {
network: StacksNetwork;
appDetails: AppDetails;
} |
/*
this implementation is really bad
second worst part of the bot to index.js
TODO FOR FUTURE UPDATE:
speedrun add speedrun.com/game
speedrun remove speedrun.com/game
speedrun reload
wr <category>
leaderboard <#place> <category>
rules <category>
FOR NOW THIS BOT WILL HANDLE:
speedrun set <game> <category>
wr <cate... |
/**
* @title 简单
* @description 最简单的用法
*/
import * as React from 'react'
import styled from 'styled-components'
import { Switch } from '@alicloudfe/components'
function onChange(checked) {
console.log(`switch to ${checked}`)
}
export default function DemoComponent() {
const content = (
<div>
<Switch... |
namespace asynchronous_generators_demo_1 {
let counter = 0;
function doSomethingAsync() {
return new Promise<number>((r) => {
setTimeout(() => {
counter += 1;
r(counter);
}, 1000);
});
}
async function* g1() {
yield await... |
import { app, BrowserWindow } from "electron";
import path from "path";
import url from "url";
async function createWindow() {
// Create the browser window.
let win = new BrowserWindow({
width: 800,
height: 600
});
// and load the index.html of the app.
if (process.env.NODE_ENV !==... |
/*
* A simple error line entity
*/
export interface ErrorLine {
id: number;
label: string;
value: string;
valueStyle: string;
} |
/*
Copyright 2020 Adobe. All rights reserved.
This file is licensed to you 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 agre... |
// This file is not used to build this module. It is only used during editing
// by the TypeScript language service and during build for verification. `ngc`
// replaces this file with production index.ts when it rewrites private symbol
// names.
export * from "./public-api"; |
import { StrictMode } from "react";
import ReactDOM from "react-dom";
import App from "./App";
ReactDOM.render(
<StrictMode>
<App />
</StrictMode>,
document.getElementById("root")
); |
import React from 'react'
import styled from 'styled-components'
import { HelpIcon } from '@pancakeswap-libs/uikit'
import useI18n from 'hooks/useI18n'
import Tooltip from '../Tooltip/Tooltip'
export interface MultiplierProps {
multiplier: string
}
const MultiplierWrapper = styled.div`
color: ${({ theme }) => th... |
import Metric from "./Metric";
export default class PearsonCorrelationMetric implements Metric {
getDistance(matrix: number[][]): number[][] {
let output: number[][] = [];
for (let i = 0; i < matrix.length; i++) {
let row: number[] = [];
for (let j = 0; j <= i; j++) {
... |
import { StageComponent, ComponentTester } from 'aurelia-testing';
import { bootstrap } from 'aurelia-bootstrapper';
import { RegistrationForm } from './resources/registration-form';
import { validateTrigger, ValidateEvent } from '../src/aurelia-validation';
import { configure, blur, change } from './shared';
describe... |
import middlewares from "../../typescript/routes/middlewares";
export default middlewares; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ar">
<context>
<name>Account</name>
<message>
<location filename="../pages/Account.qml" line="51"/>
<source>Set the label of the selected account:</source>
<translation>إختر تصنيف الحساب المحدد</translation... |
import { Dispatch, Action, AnyAction } from "redux"
export interface AppState {
openModal?: boolean
siteInit?: boolean
}
// src/store/chat/types.ts
export const TOGGLE_MODAL = "TOGGLE_MODAL"
export const SITE_INIT = "SITE_INIT"
export interface OpenModal extends Action {
type: typeof TOGGLE_MODAL
openModal: ... |
import React, { Component } from 'react';
import { CompactPicker, ColorResult, Color } from 'react-color';
import { Tool } from 'svg-real-renderer/build/src/renderers/RealDrawBoard/tools/tools';
import './PaintSettings.scss';
export interface IPaintSettingsProps {
color: Color;
onPickColor: (color: ColorResult) =... |
import { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient";
import { UpdateUserRequest, UpdateUserResponse } from "../models/index";
import {
deserializeAws_json1_1UpdateUserCommand,
serializeAws_json1_1UpdateUserCommand,
} from "../protocols/Aws_json1_1";
import { getSe... |
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { DomSanitizerPipeModule } from '@app/@shared/dom-sanizater-pipe/dom-sanitizer-pipe.module';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
impor... |
import addon from "../../core/addon";
import { NodeWidget } from "../QWidget";
import { BaseWidgetEvents } from "../../core/EventWidget";
import { NativeElement } from "../../core/Component";
export const QRadioButtonEvents = Object.freeze({
...BaseWidgetEvents
});
export class QRadioButton extends NodeWidget {
na... |
import { Injectable } from '@nestjs/common';
import { ICommandBus, IQueryBus, QueryStatement } from 'aurora-ts-core';
// @apps
import { FindBoundedContextByIdQuery } from '@apps/iam/bounded-context/application/find/find-bounded-context-by-id.query';
import { UpdateBoundedContextByIdCommand } from '@apps/iam/bounded-co... |
import React from "react";
import {Route} from "react-router-dom";
import {createCRUDPage} from "../CRUD/Factory";
import {AppConfig} from "./Config/AppConfig";
function renderJSXElement(jsxElement: JSX.Element | undefined): JSX.Element {
if (jsxElement === undefined) {
return <></>
}
return jsxEl... |
import { useContext } from "react";
import { QueryObserverResult, useQuery, UseQueryOptions } from "react-query";
import { ArgsProps } from "antd/lib/notification";
import { DataContext } from "@contexts/data";
import {
IDataContext,
BaseRecord,
GetManyResponse,
HttpError,
MetaDataQuery,
LiveMo... |
import {
createCallExpression,
createCompoundExpression,
createForLoopParams,
createFunctionExpression,
createSimpleExpression,
createStructuralDirectiveTransform,
ForIteratorExpression,
ForRenderListExpression,
NodeTransform,
processFor,
RENDER_LIST,
} from '@vue/compiler-core'
import { isSimpleE... |
import React, { Fragment, useEffect, useState } from "react";
import { Navbar, Nav, Dropdown, NavDropdown } from "react-bootstrap";
import { Avatar } from "@material-ui/core";
import { API, Auth, Storage } from "aws-amplify";
import classNames from "classnames";
import { Tooltip as MaterialToolTip } from "@material-ui/... |
let hundred = 0
let loopFlag = 0
let counter = 0
input.onButtonPressed(Button.AB, function () {
if (loopFlag == 0) {
loopFlag = 1
} else {
loopFlag = 0
}
})
input.onButtonPressed(Button.A, function () {
loopFlag = 0
counter += -1
if (counter < 0) {
counter = 0
}
h... |
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
import { ListProcessingJobsRequest, ListProcessingJobsResponse } from "../models/index";
import {
deserializeAws_json1_1ListProcessingJobsCommand,
serializeAws_json1_1ListProcessingJobsCommand,
} from "../prot... |
import React from 'react';
import { registerComponent, Components } from '../../lib/vulcan-lib';
import MenuItem from '@material-ui/core/MenuItem';
import { useMulti } from '../../lib/crud/withMulti';
/**
* A form input for selecting a localgroup -
* the options are a list of groups for which the current user is an ... |
import { ThunkExtra } from '../../../store';
import arrayToMap from '../../../infrastructure/arrayToMap';
import {
STATE_KEY,
AssignmentModuleState
} from '../common';
import { RoleModuleState } from '../../roles/common';
import {
Courtroom, IdType
} from '../../../api';
import GetEntityMapRequest from '../... |
import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'app-loader',
templateUrl: './loader.component.html',
styleUrls: ['./loader.component.scss']
})
export class LoaderComponent implements OnInit {
@Input() isLoading = false;
@Input() message: string;
constructor() { }
ngOn... |
// Copyright © 2021 Kaleido, 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... |
export * from './PopConfirm' |
import { RenderComponent } from 'GL/render/renderable';
import * as GLUtils from 'GL/utils';
import * as ImGui from 'ImGui/imgui';
export class ImGuiImplWebGl extends RenderComponent {
private programHandle: WebGLProgram | null = null;
private uniformTexture: WebGLUniformLocation | null = null;
private uniformPr... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Author, Blog, Post } from './types';
@Injectable({
providedIn: 'root'
})
export class BlogService {
constructor(
private http: HttpClient
) { }
getAuthors(): Observa... |
import { SponsoredDisplayProductAdsOperation } from '../../../src/operations/product-ads/sponsored-display-product-ads-operation'
import {
OperationProvider,
HttpClient,
CreateProductAdsParams,
ListProductAdsParams,
UpdateProductAdsParams,
} from '../../../src'
import { SANDBOX_URI, auth } from '../../http-cl... |
/// <reference types="react" />
import * as React from 'react';
import CollapsePanel from './CollapsePanel';
export interface CollapseProps {
activeKey?: Array<string> | string;
defaultActiveKey?: Array<string>;
/** 手风琴效果 */
accordion?: boolean;
onChange?: (key: string | string[]) => void;
style... |
import React from 'react';
import { render, fireEvent, within, screen } from '@testing-library/react';
import { KEY_CODE } from './utils';
import { Autocomplete, AutocompleteProps } from '../Autocomplete';
import { positionType } from '../Dropdown';
interface Item {
value: number;
label: string;
}
const items: I... |
import {AppRouteDispatcher, AppRouter} from './router';
import {MainLayoutModel} from '../components/mainLayout/mainLayout';
import {Config} from '../config/config.global';
export default class Application extends Marionette.Application {
appRouteDispatcher;
components = {};
config: any;
router: any;
... |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requi... |
import { beforeWordOrAfter } from "./beforeWordOrAfter";
export const withNumberOrNot = function (
number: number,
word: string,
withNumber?: boolean,
after?: boolean
): string | undefined {
return withNumber ? beforeWordOrAfter(number, word, after) : word;
}; |
import { useEffect, useRef } from "react";
import { makeCancelable, CancelablePromise } from "./makeCancelable";
import { usePromiseState } from "./usePromiseState";
type Options<T> = {
mode?: "latest" | "every";
onCancel?: (instance: Promise<T>) => void;
};
const defaultOptions: Options<any> = {
mode: "l... |
import {
IParametricType,
IType,
TypeKind,
TypeMap,
ITypeMappable,
IParametricIndexer,
} from '../types';
import { memoize } from '../../utilities/memoize';
import { ParametricType } from '../models/parametricTypes/parametricType';
import { Type } from '../models/types/type';
import { VariadicType } from '.... |
import React, { FC, useEffect, useState } from 'react'
import 'antd/dist/antd.css'
import { handleVisibilityChange } from 'antd-utils'
import { Card } from 'antd'
/*
* 页面离开后,再次进入时触发回调函数
* 应用场景:列表页新开页面编辑新增,返回后自动刷新列表
* handlePageshow(() => setSearch({ ...(search || {}) }))
* @param callback () => void
*/
export c... |
import { Observable } from 'rxjs';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Comment } from './../models/Comment';
@Injectable()
export class CommentService{
private url:string;
constructor(private _http:HttpClient) {
this.... |
<TS language="vi_VN" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Nhấn chuột phải để sửa địa chỉ hoặc nhãn</translation>
</message>
<message>
<source>Create a new address</source>
<trans... |
declare const styles: {};
export default styles;
//# sourceMappingURL=footer.scss.d.ts.map |
/// <reference types="ws" />
/// <reference types="node" />
import { proto } from '../../WAProto';
import { AnyMessageContent, MediaConnInfo, MessageRelayOptions, MiscMessageGenerationOptions, SocketConfig } from '../Types';
import { BinaryNode } from '../WABinary';
export declare const makeMessagesSocket: (config: Soc... |
import parseFontFamily from './fontFamily'
import {
regExpToken,
SPACE,
LENGTH,
UNSUPPORTED_LENGTH_UNIT,
SLASH,
} from '../tokenTypes'
const NORMAL = regExpToken(/^(normal)$/)
const STYLE = regExpToken(/^(italic)$/)
const WEIGHT = regExpToken(/^([1-9]00|bold)$/)
const VARIANT = regExpToken(/^(small-caps)$/)
... |
/**
* SVG icons used in mat-image-overlay component
* Source: Google Fonts (See https://fonts.google.com/icons?selected=Material+Icons)
* License: Apache License Version 2.0 (see http://www.apache.org/licenses/LICENSE-2.0.txt)
*/
export const CLOSE_ICON =
`<svg xmlns="http://www.w3.org/2000/svg" height="24px" vie... |
<TS language="lv_LV" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Double-click to edit address or label</source>
<translation>Adresi vai nosaukumu rediģē ar dubultklikšķi</translation>
</message>
<message>
<source>Create a new address</source>
<... |
import * as React from "react";
import { DragHelpers } from "../drag_helpers";
import { shallow } from "enzyme";
import { DragHelpersProps } from "../interfaces";
import { fakePlant } from "../../../__test_support__/fake_state/resources";
import { Color } from "../../../ui/index";
describe("<DragHelpers/>", () => {
... |
export type Events =
'didReceiveStartCallAction' |
'answerCall' |
'endCall' |
'didActivateAudioSession' |
'didDeactivateAudioSession' |
'didDisplayIncomingCall' |
'didToggleHoldCallAction' |
'didPerformDTMFAction' |
'didResetProvider' |
'checkReachability' |
'didPerformSetMutedCallAction';
type ... |
/**
* @module botbuilder-lg-LSP
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { ReturnType } from 'adaptive-expressions';
export class FunctionEntity {
public constructor(params: string[], returntype: ReturnType, introduction: string) {
this.P... |
import { RequestType, RequestHandler, ProgressType } from 'vscode-jsonrpc';
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } ... |
import { Injectable } from '@nestjs/common';
import * as Mailgun from 'mailgun-js';
import { ConfigService } from '@nestjs/config';
import { IMailGunData } from './interfaces/mail.interface';
@Injectable()
export class MailService {
private mg: Mailgun.Mailgun;
constructor(private readonly configService: ConfigSe... |
import React, { FC } from 'react';
import { Icon, IconInterface } from "@redesign-system/ui-core";
export const YahooIcon: FC<IconInterface> = function YahooIcon({
className,
...propsRest
}) {
const classNames = `YahooIcon ${className}`;
return (
<Icon alt="Yahoo" className=... |
import { Component, Prop } from "@stencil/core";
@Component({
tag: "page-tabs",
styleUrl: "page-tabs.css"
})
export class PageTabs {
@Prop({ connect: "ion-menu-controller" })
menuCtrl: HTMLIonMenuControllerElement;
async componentDidLoad() {
const menuCtlr: HTMLIonMenuControllerElement = await (this
... |
import { VantComponent } from '../common/component';
import {
ROW_HEIGHT,
getPrevDay,
getNextDay,
getToday,
compareDay,
copyDates,
calcDateNum,
formatMonthTitle,
compareMonth,
getMonths,
getDayByOffset,
} from './utils';
import Toast from '../toast/toast';
import { requestAnimationFrame } from '.... |
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { HomePage } from '../home/home';
import { AMIPage } from '../a-mi/a-mi';
import { CadastroClientePage } from '../cadastro-cliente/cadastro-cliente';
import { CadastroCuidadorPage } from '../cadastro-cuidador/cadastro-cuida... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import express from "express";
import { Request, Response, NextFunction } from "express";
import config from "@config/auth";
import { CategoryController } from "@modules/Categories/infra/http/controllers/CategoryController";
import { UserController } from "@modules/Users/infra/http/controllers/UserController";
import {... |
/**
* @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 { workspaces } from '@angular-devkit/core';
import { Rule, SchematicContext, Tree } from '@angular-devkit/schem... |
// dependencies
import { FC } from 'react';
// types
import type { VoidFn } from 'types';
/* TYPES */
interface AriaLabel {
pressedLabel: string;
notPressedLabel: string;
}
interface Props {
// customization
id?: string;
className?: string;
// event handlers
onClick: VoidFn;
// accessi... |
/* tslint:disable:no-unused-variable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
/* tslint:enable:no-unused-variable */
import * as ReactTestUtils from 'react-addons-test-utils';
let { expect } = chai;
import {
KeyCodes,
} from '../../Utilities';
import { Dropdown } from './Dropdown';
... |
import { expect } from "chai";
import request from "supertest";
import { describe, it } from "mocha";
import { createApp } from "../src/backend/config/app";
//import { getHandlers } from "../src/backend/controllers/user_controllet";
import { createDbConnection } from "../src/backend/config/db";
import { getConnection, ... |
import { createAction, props } from "@ngrx/store";
import {Course} from './model/course';
export const loadAllCourses = createAction(
"[Courses Resolver] Load All Courses"
);
export const allCoursesLoaded = createAction(
"[Load Courses Effect] All Courses Loaded",
props<{courses: Course[]}>()
); |
export class Config {
public static DBX_CLIENT_ID = process.env.REACT_APP_DBX_CLIENT_ID || '';
public static DBX_CLIENT_REDIRECT = process.env.REACT_APP_DBX_REDIRECT_URL || '';
} |
// tslint:disable:variable-name
import { app } from "@arkecosystem/core-container";
import { EventEmitter, Logger, State } from "@arkecosystem/core-interfaces";
import { Interfaces, Managers, Transactions } from "@nosplatform/crypto";
import assert from "assert";
import { OrderedMap, OrderedSet, Seq } from "immutable"... |
/*
GDevelop - Platform Behavior Extension
Copyright (c) 2013-2016 Florian Rival (Florian.Rival@gmail.com)
*/
namespace gdjs {
declare var rbush: any;
type SearchArea = { minX: float; minY: float; maxX: float; maxY: float };
/**
* Manages the common objects shared by objects having a
* platform behavior: i... |
import { createResearchOutputResponse } from '@asap-hub/fixtures';
import { render } from '@testing-library/react';
import { ComponentProps } from 'react';
import UserProfileResearchOutputs from '../UserProfileResearchOutputs';
const baseProps: ComponentProps<typeof UserProfileResearchOutputs> = {
researchOutputs: ... |
import { getChildLogger } from "@aaa-backend-stack/logger";
const logger = getChildLogger("@aaa-backend-stack/pushes");
import * as serverdate from "@aaa-backend-stack/serverdate";
import * as _ from "lodash";
import { URL } from "url";
const fetch = require("node-fetch"); // use fetch instead of request api
import {... |
import { ConfigOption } from '@ruslanguns/core';
import {
FormlyFieldInput,
FormlyFieldCheckbox,
FormlyFieldDatetime,
FormlyFieldRadio,
FormlyFieldToggle,
FormlyFieldSelect,
FormlyFieldRange,
FormlyFieldTextArea,
} from './types/types';
import { FormlyWrapperFormField } from './wrappers/wrappers';
exp... |
import React, { useState } from 'react'
import { Feather } from '@expo/vector-icons'
import { Text, View, ScrollView, Platform, KeyboardAvoidingView, Modal} from 'react-native'
import { RectButton } from 'react-native-gesture-handler'
import { Background } from '../../components/Background'
import { CategorySelect } fr... |
export * from './SVGContainer';
import './icon.scss';
// icons
import { IconError } from './icon/error';
import { IconInfo } from './icon/info';
import { IconLoading } from './icon/loading';
import { IconSuccess } from './icon/success';
import { IconWarn } from './icon/warn';
export const Icon = {
Error: IconError,... |
import { ForumState, forumEmptyState, forumActionCreators, forumReducer } from '../../src/test-cases';
describe('integration/move', () => {
/*
move entity given between two non-zero indices
move entity to index 0
attempt to move entity from an index beyond highest existing index
attempt to move entity to an... |
export type ID = string
export type Color = string
export {TypedArray} from "./util/ndarray"
export type Arrayable<T = any> = {
readonly length: number
[n: number]: T
[Symbol.iterator](): IterableIterator<T>
// TODO: constructor: ArrayableNew
}
export type ArrayableNew = {new <T>(n: number): Arrayable<T>}
... |
import React, { useContext, useState } from 'react'
import styled from 'styled-components'
import { MessageContext } from './Device'
const Headline = styled.h2`
font-size: 100%;
`
const Fieldset = styled.fieldset`
display: flex;
justify-content: space-between;
input {
width: 150px;
height: 30px;
}
padding: ... |
export type ReposObj = {
[key: string]: RepoObj
}
export type RepoObj = {
html_url: string
ogp_url: string
bg_color: string
description: string
language?: string | null
stargazers_count: number
pushed_at: string
} |
type Action = () => void;
namespace helpers {
export function arraySplice<T>(arr: T[], start: number, len: number) {
if (start < 0) {
return;
}
for (let i = 0; i < len; ++i) {
arr.removeAt(start)
}
}
export function arrayReverse<T>(arr: T[]): void {
... |
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { UserService } from 'src/user/user.service';
interface user {
sub: string;
email: string;
name: string;
role: boolean;
stripe_customer_id: string;
iat: number;
exp: number;
}
@In... |
import { Locale } from 'date-fns';
export interface I18nInterface {
example: string;
locale: Locale;
dateFormat: 'MM/dd/yyyy' | 'dd/MM/yyyy' | 'yyyy/MM/dd' | 'yyyy/dd/MM';
timeFormat: '12' | '24';
months: {
long: {
january: string;
february: string;
march: string;
april: string;
... |
import { g } from "../util";
import type { UpdateEvents } from "../../common/types";
const updateExportStats = async (
inputs: unknown,
updateEvents: UpdateEvents,
) => {
if (updateEvents.includes("firstRun") || updateEvents.includes("newPhase")) {
const options = [
{
key: "all",
val: "All Seasons",
... |
import { Client, IAuthOptions } from '../client/client';
import { IStandardParameters } from '../client/IStandardParameters';
import { IStandardResponse } from '../client/IStandardResponse';
export interface IUser {
/**
* The user's numeric ID. This is also valid as the user's shop ID.
*/
user_id: num... |
// Copyright (c) 2021, NVIDIA CORPORATION.
//
// 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 ... |
import { getAttributeType } from "../enums/json-keys";
import { Constants } from "../constants";
export abstract class BaseFactory {
public name;
protected fileClassContent;
constructor(name) {
this.name = name;
this.fileClassContent = {};
}
public buildObjectStructure(data) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.