text stringlengths 10 953k |
|---|
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {Idler} from './Idler';
export async function serialize(
obj: Object,
idler?: Idler,
statusUpdate?: (ms... |
import * as React from 'react';
import { Route, Switch } from 'react-router';
import { IEditSpecificationPageProps } from './apiProvider/EditSpecificationPage';
import { IReviewActionsPageProps } from './apiProvider/ReviewActionsPage';
import { SelectMethodPage } from './apiProvider/SelectMethodPage';
import { IDataMap... |
import React from 'react';
import { render, screen } from '@testing-library/react';
import App from '../App';
test('renders landing page', () => {
render(<App />);
const linkElement = screen.getByText(/You don't have any accounts yet/i);
expect(linkElement).toBeInTheDocument();
}); |
/**
* Helios data type
* @description Enumeration for Helios data types
*/
export class HeliosDataType {
/**
* Integer
*/
public static readonly INTEGER: string = "ftInteger";
/**
* Small Integer
*/
public static readonly SMALL_INTEGER: string = "ftSmallint";
/**
* Flo... |
import { PrimaryGeneratedColumn } from 'typeorm';
import { ApiProperty } from '@nestjs/swagger';
export class Base {
@PrimaryGeneratedColumn({ type: 'int', name: 'id' })
id?: number;
} |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { URLExt } from '@jupyterlab/coreutils';
import { JSONPrimitive, PromiseDelegate } from '@lumino/coreutils';
import { ISignal, Signal } from '@lumino/signaling';
import { ServerConnection } from '..';
impo... |
import {
controller, httpGet, httpPost, httpPut, httpDelete, BaseHttpController
} from 'inversify-express-utils';
import { inject } from 'inversify';
import { StatusCodes } from 'http-status-codes';
import TYPES from '../constants/type';
import { Request, Response } from 'express';
import { Player, PlayerRequestMod... |
/**
* Sudo Decentralized Identity Cloud Agent SDK
* Provides REST API wrappers for Typescript Agent Controllers using the Sudo Decentralized Identity Cloud Agency Service
*
* The version of the OpenAPI document: v0.6.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech)... |
import * as LibFs from 'mz/fs';
import * as LibPath from 'path';
import * as program from 'commander';
import * as unzip from 'unzip2';
import * as _ from 'underscore';
import * as recursive from 'recursive-readdir';
import * as readlineSync from 'readline-sync';
import {HttpRequest, mkdir, rmdir, Spm, SpmPackage, Spm... |
import module from "./module";
import {StateProvider, UrlRouterProvider} from "angular-ui-router";
module.config([
'$stateProvider',
'$urlRouterProvider',
($stateProvider: StateProvider, $urlRouterProvider: UrlRouterProvider) => {
$urlRouterProvider.otherwise("/");
}
]) |
import * as aws from "@pulumi/aws";
import { ComponentResource, ComponentResourceOptions, Input, output, Output } from "@pulumi/pulumi";
export interface VpcArgs {
description: string;
baseTags: aws.Tags;
baseCidr: string;
availabilityZoneNames: string[];
enableFlowLogs?: boolean;
endpoints: ... |
import * as yaml from 'js-yaml'
import YAML from 'yaml'
import _ from 'lodash'
import { Parser, KeyInDocument } from './Parser'
export class YamlParser extends Parser {
constructor () {
super(['yaml'], /\.?ya?ml$/g)
}
async parse (text: string) {
return yaml.safeLoad(text)
}
async dump (object: obj... |
import { Component, Prop, Watch } from '../../core/decorators';
import YBase from '../YBase';
import YBaseInput from './YBaseInput';
import YBaseButtonSubmit from '../buttons/YBaseButtonSubmit';
import YBaseButtonReset from '../buttons/YBaseButtonReset';
@Component
export default class YBaseForm extends YBase {
@... |
/*
* 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 moment from 'moment';
import '../../../common/mock/match_media';
import... |
import Link from 'next/link';
export function CustomLink({ as, href, ...otherProps }: any) {
return (
<>
<Link as={as} href={href}>
<a {...otherProps} />
</Link>
</>
);
} |
/*
* 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 appli... |
/**
* @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 { Comp162Component } from './comp-... |
import React, { memo, useState, useEffect, useRef, useCallback } from 'react'
import cn from 'classnames'
import Lottie from 'react-lottie'
import useInstanceVar from 'hooks/useInstanceVar'
import styles from './AnimatedButtonProvider.module.css'
export type BaseAnimatedButtonProps = {
onClick: ((e: React.MouseEv... |
import React from "react";
import { useRouter } from "next/router";
type Props = {
name: string;
title: string;
height: number;
width: number;
};
const Video: React.FC<Props> = ({ name, width, height, title }) => {
const { asPath } = useRouter();
return (
<video
autoPlay
loop
muted
... |
import * as dotenv from "dotenv";
import app from "./app";
// import * as https from "https";
// import * as path from "path";
// import * as fs from "fs";
const env = dotenv.config();
const PORT = process.env.PORT;
// const httpsOptions = {
// key: fs.readFileSync(path.resolve("config/server.key")),
// cert: fs.... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { ApiProperty } from '@nestjs/swagger';
import {
IsInt,
IsNotEmpty,
IsObject,
IsOptional,
IsString,
IsUrl
} from 'class-validator';
import { Type } from 'class-transformer';
import { IBasicTokenMetadataProperties } from '../../types/scheme';
export class BasicStoreTokenMetadataDto {
... |
import { DatePipe } from '@angular/common';
import { Component, EventEmitter, OnInit, Output, ViewChild } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, NgForm, ValidationErrors, Validators } from '@angular/forms';
import { _HttpClient } from '@delon/theme';
import { EChartsOption } from 'echarts'... |
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
import {AuthService} from '../services/auth.service';
@Injectable({
providedIn: 'root'
})
export class LogInGuard implements CanActivate ... |
export type IRole = {
name: string;
description: string;
}; |
// Type definitions for react-d3-graph 2.3
// Project: https://github.com/danielcaldas/react-d3-graph#readme
// Definitions by: hrngoode <https://github.com/me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Component } from "react";
export class Graph extends Component<any, any> {
co... |
const getRectLabelNodeView = (RectNode, h) => class extends RectNode {
getLabelShape() {
const attributes = this.getAttributes();
const properties = this.getProperties();
const {
x,
y,
width,
height,
} = attributes;
return h(
'text',
{
x: x - width / 2 +... |
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { VisitaComponent } from "./visita.component";
const routes: Routes = [
{
path: "",
component: VisitaComponent,
children: [
{
path: "",
loadChildren: () =>
import("./l... |
import { Graph, Layout, LayoutFactory } from '@patternfly/react-topology';
import TopologyColaLayout from './TopologyColaLayout';
const COLA_LAYOUT = 'Cola';
const layoutFactory: LayoutFactory = (type: string, graph: Graph): Layout | undefined => {
return type === COLA_LAYOUT ? new TopologyColaLayout(graph, { layou... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { SecurityScanResultService } from '@app/shared/+state/securityScanResult/security-scan-result.service';
import { untilDestroyed } from 'ngx-take-until-destroy';
import { Observable, of } from ... |
import { liftedAll } from "metaes/callcc";
import { GetValue } from "metaes/environment";
import { visitArray } from "metaes/evaluate";
import { createScript, parseFunction } from "metaes/metaes";
import { evaluateMetaFunction } from "metaes/metafunction";
import { toException } from "metaes/exceptions";
import { Expre... |
/*
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE
* SPDX-License-Identifier: Apache-2.0
*/
import { Feature } from "@here/harp-datasource-protocol";
import { GeoCoordinates } from "@here/harp-geoutils";
import { CopyrightElementHandler, MapView } from "@here/har... |
import {NgModule} from "@angular/core";
import {JigsawDemoDescriptionModule} from "app/demo-description/demo-description";
import {DrawerInDomDemoComponent} from "./demo.component";
import {JigsawDrawerModule} from "jigsaw/pc-components/drawer/drawer";
import {JigsawRadioModule} from "jigsaw/pc-components/radio/radio";... |
export enum HolidayType {
CHRISTIAN,
ETHIOPIAN_ORTHODOX,
FIXED_DATE,
FIXED_WEEKDAY,
HEBREW,
ISLAMIC,
RELATIVE_BETWEEN_FIXED,
RELATIVE_TO_DATE,
RELATIVE_TO_WEEKDAY
}
export type HolidayTypeKeyStrings = keyof typeof HolidayType; |
import {
Component,
OnInit
} from '@angular/core';
import { flyInOutTrigger } from '../animations/flyInOutTrigger-animation';
import { hostConfig } from '../animations/flyInOutTrigger-animation';
import {
FormGroup,
FormControl,
Validators,
FormBuilder
} from '@angular/forms';
import 'rxjs/add/operator/filt... |
import {Component, OnInit} from '@angular/core';
import {ImportService} from '../../services/import.service';
import {finalize} from 'rxjs/operators';
import {MatDialog} from '@angular/material/dialog';
import {ImportResult} from '../../models/upload_result.model';
import {ImportResultDialogComponent} from '../dialogs/... |
import { Component, OnInit } from '@angular/core';
declare const google: any;
interface Marker {
lat: number;
lng: number;
label?: string;
draggable?: boolean;
}
@Component({
selector: 'app-maps',
templateUrl: './maps.component.html',
styleUrls: ['./maps.component.css']
})
export class MapsComponent {
const... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AnalysePageComponent } from './analyse-page.component';
describe('AnalysePageComponent', () => {
let component: AnalysePageComponent;
let fixture: ComponentFixture<AnalysePageComponent>;
beforeEach(async () => {
await TestBed.confi... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'sa-stats',
templateUrl: 'stats.component.html'
})
export class StatsComponent implements OnInit {
constructor() {}
ngOnInit() {
}
} |
/*
* Copyright 2014 Groupon.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 or agreed to ... |
import { MockElement } from './node';
import cssWhat from 'css-what';
export function closest(selector: string, elm: MockElement) {
while (elm != null) {
if (elm.matches(selector)) {
return elm;
}
elm = elm.parentNode as any;
}
return null;
}
export function matches(selector: string, elm: Mo... |
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
/**
* <p></p>
*/
export interface AbortEnvironmentUpdateMessage {
/**
* <p>This specifies the ID of the environment with the in-progress update that you want to
* cancel.</p>
*/
EnvironmentId?... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2020 Amaz... |
import React from 'react'
import { Redirect, Route, useLocation } from 'react-router-dom'
import cookie from 'js-cookie'
// import { LOGIN_PAGE_URL } from 'src/pages/Login/Login';
export const PrivateRoute = ({ component: Component, ...rest }: any) => {
const CheckLoggedIn = () => {
let location = useLocation()
... |
import { Injectable } from '@angular/core';
import { Observable } from "rxjs";
import { ngxZendeskWebwidgetConfig } from './ngx-zendesk-webwidget.model';
function getWindow (): any {
return window;
}
interface VisibilityQueueItem {
resolve: any;
reject: any;
methodName: string;
}
@Injectable()
export ... |
export * from './composite/compoiste.stream';
export * from './composite/composite.base';
export * from './composite/composite.event'; |
import React, {useEffect, useRef, useState} from 'react';
import {connect, ConnectedProps} from 'react-redux';
import {Picker} from 'emoji-mart';
import 'emoji-mart/css/emoji-mart.css';
import {ReactComponent as Smiley} from 'assets/images/icons/smiley.svg';
import {ReactComponent as TemplateAlt} from 'assets/images/ic... |
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { User } from '../../core/user.model';
import { StorageService } from '../services/storage.service';
import { URL_API_SESSIONS } from '../../core/consts';
import { Role } from '... |
import {
closeSectionState,
actionPoints,
interventions,
tpmActivities,
fmActivities,
fmQuestions,
travels,
engagements,
travelsSplit
} from './fixtures/selector-state-fixtures';
import { selectActionPointsFromPayload } from '../action-points';
import { selectInterventionsFromPayload... |
import { ChallengeSigned } from "@nmshd/transport";
import { ChallengeDTO } from "../../../types";
export class ChallengeMapper {
public static toChallengeDTO(signedChallenge: ChallengeSigned): ChallengeDTO {
const challenge = JSON.parse(signedChallenge.challenge);
return {
id: challeng... |
import React, { FC } from 'react';
import Image from 'next/image';
import styled from 'styled-components';
import { Title, Paragraph } from './UI';
export interface IProps {
honorary: boolean;
name: string;
lastname: string;
}
const DonorInfo: FC<IProps> = ({ honorary, name, lastname }) => {
return (
<Lay... |
import { ActionReducer, MetaReducer, createFeatureSelector, createSelector, ActionReducerMap } from "@ngrx/store";
import { localStorageSync } from "ngrx-store-localstorage";
import * as Contacts from './contacts.reducers'
export interface State {
contacts: Contacts.State;
}
export function localStorageSyncReduce... |
import * as vscode from 'vscode';
import createProject from './create_project';
import packProject from './pack_project';
import { init } from 'vscode-nls-i18n';
const getCommon = (context: vscode.ExtensionContext) => {
init(context.extensionPath); // 初始化国际化配置。只用在扩展激活时初始化一次
return {
createProject: createProjec... |
import React, {useState} from 'react'
import { View, Image, Platform, KeyboardAvoidingView, TextInput, Text, ImageBackground } from 'react-native'
import { RectButton } from "react-native-gesture-handler"
import Icon from 'react-native-vector-icons/Feather'
import { useNavigation } from "@react-navigation/native"
impor... |
class FlowerCloudModel extends MovableSceneryModel{
public static readonly colors = ['#a4f6a5', '#b81d87', '#f8a978', '#f68787'];
public static readonly minScale = 0.2;
public static readonly maxScale = 0.8;
public static readonly minOpacity = 100;
public static readonly maxOpacity = 200;
public... |
export declare const convertHexStringToDecString: (hexStr: string) => string; |
import * as child_process from 'child_process';
import * as gulp from 'gulp';
import * as os from 'os';
const gulpClean = require('gulp-clean');
const resolveBin = require('resolve-bin');
export function cleanTask(glob: string | string[]): gulp.TaskFunction {
return () => gulp.src(glob, { read: false, allowEmpty: t... |
import { Module } from '@nestjs/common';
import { ArticleModule } from '../article/article.module';
import { TopicModule } from '../topic/topic.module';
import { CleanerService } from './cleaner.service';
@Module({
imports: [TopicModule, ArticleModule],
providers: [CleanerService],
})
export class CleanerModule {} |
import express from 'express'
export const router = express.Router()
import {
home,
getAllMovies,
getGameById,
CreateMovie,
updateMovieById,
deleteGame,
} from '../controllers/MovieController'
import { createUser } from '../controllers/SignUpController'
import { userLogin } from '../controllers/LogInControl... |
import React, { useContext, useCallback } from 'react'
import styled from 'styled-components'
import {
Select,
Typography,
spacing,
IconButton,
} from 'practical-react-components-core'
import { useBoolean, useLocalStorage } from 'react-hooks-shareable'
import { HelpIcon } from 'practical-react-components-icons'... |
import {
FormEffectHooks,
createEffectHook,
createFormActions,
createAsyncFormActions
} from './shared'
import {
setValidationLanguage,
setValidationLocale,
registerValidationFormats,
registerValidationRules,
registerValidationMTEngine,
FormPathPattern,
FormPath
} from '@formily/core'
export * fro... |
import React from 'react'
import cs from 'classnames'
import styles from './styles.module.css'
export const Button = ({ className, onClick, ...rest }: any) => {
if (onClick) {
return (
<div
className={cs(styles.button, className)}
{...rest}
onClick={onClick}
/>
)
} else... |
import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
import { AbstractControl, FormBuilder, FormGroup, ValidationErrors, ValidatorFn, Validators } from '@angular/forms';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { FuseConfigService } from '@fuse/serv... |
// Libraries
import {binaryPrefixFormatter} from '@influxdata/giraffe'
// Types
import {Notification} from 'src/types'
import {NotificationStyle} from 'src/types/notifications'
// Constants
import {FIVE_SECONDS, TEN_SECONDS, INFINITE} from 'src/shared/constants/index'
import {QUICKSTART_SCRAPER_TARGET_URL} from 'src/... |
/*
* Don't delete this file, it's autogenerated by the ACL icons build script
*/
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
import { IconBase } from '../../icon-base';
/** @deprecated Use `@sbb-esta/angular-icons` instead. */
@Component({
selector: 'sbb-icon-pinterest',
// tsl... |
export default ['縣', '市']; |
import clamp from 'lodash-es/clamp';
import * as I from '../interfaces/';
export function scrollTo(
scrollbar: I.Scrollbar,
x: number,
y: number,
duration = 0,
{ easing = defaultEasing, callback = null }: Partial<I.ScrollToOptions> = {},
) {
const {
options,
offset,
limit,
} = scrollbar;
... |
const {
cwd,
chdir,
makeTempDir,
mkdir,
open,
platform,
remove,
symlink
} = Deno;
import { FileInfo } from "deno";
import { walk, walkSync, WalkOptions } from "./walk.ts";
import { test, assert, TestFunction } from "../testing/mod.ts";
const isWindows = platform.os === "win";
export async function tes... |
export * from "./Finspace";
export * from "./FinspaceClient";
export * from "./commands";
export * from "./models";
export { FinspaceServiceException } from "./models/FinspaceServiceException"; |
import File from './File'
import { Minimatch } from 'minimatch'
const GLOB = 'glob:'
const glob = str => {
str = str || '**'
const mm = new Minimatch(str)
return to => {
const ret = mm.match(to)
return ret
}
}
const match = str => {
const f = new File(str).getAbsolutePath()
return to => {
retur... |
import {MigrationInterface, QueryRunner} from "typeorm";
export class LastEntities1631367592971 implements MigrationInterface {
name = 'LastEntities1631367592971'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`CREATE TABLE "episode" ("id" SERIAL NOT NULL, "name" ch... |
/*
* Copyright 2021 The Backstage Authors
*
* 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 { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { DayOfJobController } from './day-of-job.controller';
import { DayOfJobService } from './day-of-job.service';
import { DayOfJobSchema } from './schemas/day-of-job.schema';
@Module({
imports: [MongooseModule.forFeatu... |
import { installComponent } from '@idux/components/core/utils'
import IxIcon from './src/Icon.vue'
import { addIconDefinitions, fetchFromIconfont } from './src/helper'
import { innerStaticIcons } from './src/icons'
addIconDefinitions(innerStaticIcons)
IxIcon.install = installComponent(IxIcon)
export { IxIcon, addIco... |
/*!
* devextreme-angular
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://git... |
import { mergeProps, Switch, Match, createSignal } from 'solid-js';
import BlurhashCanvas from './Canvas';
//extends JSX.HTMLAttributes<HTMLImageElement | HTMLCanvasElement>
export interface BlurhashImgProps {
src: string;
hash: string;
resX: number;
resY: number;
punch?: number;
/**
* CSS height,
* @default... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import 'bootstrap/dist/css/bootstrap.min.css';
import '../styles/globals.css';
import type { AppProps } from 'next/app';
function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
}
export default MyApp; |
import { Message } from 'node-nats-streaming';
import { Listener } from './Listener';
import { Subjects } from './subjects';
import { TicketCreatedEvent } from './TicketCreatedEvent';
export class TicketCreatedListener extends Listener<TicketCreatedEvent> {
readonly subject: Subjects.TicketCreated = Subjects.Ticket... |
import { graphql } from "react-relay"
import { setupTestWrapper } from "v2/DevTools/setupTestWrapper"
import { ArtistArticlesRouteFragmentContainer } from "../ArtistArticlesRoute"
import { ArtistArticlesRoute_Test_Query } from "v2/__generated__/ArtistArticlesRoute_Test_Query.graphql"
jest.unmock("react-relay")
jest.mo... |
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
//import { ChartsModule } from 'ng2-charts/valor-software-ng2-charts';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { ButtonsModule } from 'ngx-bootstrap/buttons';
import { MainDashboardComponent } from './dashb... |
import React, {
CSSProperties,
useEffect,
useRef,
ReactElement,
useState,
} from "react";
import lottie, {
AnimationConfigWithData,
AnimationItem,
AnimationDirection,
AnimationSegment,
} from "lottie-web/build/player/lottie_light";
import {
Listener,
LottieOptions,
LottieRefCurrentProps,
Parti... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { ISettingsList } from '../settings-list.model';
@Component({
selector: 'jhi-settings-list-detail',
templateUrl: './settings-list-detail.component.html',
})
export class SettingsListDetailComponent implemen... |
import * as React from 'react';
import {useCallback, useEffect, useMemo, useState} from 'react';
import {FlatList, Platform, RefreshControl, SafeAreaView} from 'react-native';
import {IncrementId} from '../../../utils';
import {RootState, SocialMediaMainDatum} from '../../../types';
import {SocialMediaVideoCard} from '... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { AddModal } from './add-modal.component';
import { ImgParking2 } from './imgParking2/imgParking2.component';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgaModule } from '../../../theme/nga... |
/**
* Mixin # number of actions cards in automa deck
* (with African Empires for each # 1 from Lost Kingdoms and 1 from African Empires)
*/
enum DifficultyLevel {
BEGINNER = 0,
EASY = 1,
MEDIUM = 2,
HARD = 3,
VERY_HARD = 4
}
export default DifficultyLevel |
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 { Component, Type } from '@angular/core';
import { Modal } from '../plugin/custom';
import { SystelabModalContext } from '../modal-context';
import { Observable } from 'rxjs';
import { overlayConfigFactory } from '../base/models/overlay-context';
import { DialogRef } from '../base/models/dialog-ref';
import { fr... |
import {Action} from "redux";
import {END, Channel, Task, Buffer, Predicate} from "./index";
type ActionType = string | number | symbol;
type StringableActionCreator<A extends Action> = {
(...args: any[]): A;
toString(): string;
};
type SubPattern =
ActionType |
Predicate<Action> |
StringableActionCreator<... |
import { lt } from "semver";
import { minVersions } from "./available-plugins";
// $FlowIgnore
const has = Function.call.bind(Object.hasOwnProperty);
export function addProposalSyntaxPlugins(
items: Set<string>,
proposalSyntaxPlugins: string[],
) {
proposalSyntaxPlugins.forEach(plugin => {
items.add(plugin)... |
import { useRegisterSW } from 'virtual:pwa-register/preact';
import styles from './styles.module.css';
function ReloadPrompt() {
const {
offlineReady: [offlineReady, setOfflineReady],
needRefresh: [needRefresh, setNeedRefresh],
updateServiceWorker,
} = useRegisterSW({
onRegistered(r) {
consol... |
import { IElementDefinition } from '@akrons/cms-backend';
import { ITitleElementData } from '@akrons/cms-default';
export const TitleElement: IElementDefinition<ITitleElementData> = {
type: 'title',
create: () => ({ text: '', level: 1 }),
editorForm: (data: ITitleElementData) => ({
elements: [
... |
export declare class ProxyElement {
private __zone?;
readonly _zone: any;
constructor(__zone?: any);
readonly querySelector: any;
readonly querySelectorAll: any;
readonly tagName: any;
readonly value: any;
readonly nodeName: any;
readonly nodeValue: any;
readonly firstChild: any;... |
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const SignOutIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" className={classes.svg}>
<path d="M256 1792h896v128H128V0h1024v128H256v1664zm1679-832l-487 488-80-8... |
import * as msgpack from "notepack.io";
const primitive = {
str: "Hello world!",
bool: true,
double: Math.random(),
float: Math.random(),
int32: 2147483647,
uint32: 4294967295,
};
const primitiveEncoded = msgpack.encode(primitive);
export function encodePrimitiveTypes() {
msgpack.encode(pr... |
import React from "react";
import { RectButtonProps } from "react-native-gesture-handler";
import { Container, Name } from "./styles";
interface Props extends RectButtonProps {
title: string;
}
export function ConfirmButton({ title, ...rest }: Props) {
return (
<Container {...rest}>
<Name>{title}</Name>
... |
export declare const cilOverscanSettings: string[]; |
import { Pipe } from "@angular/core";
import { ITransactie } from "./transactie.model";
@Pipe({
name: 'CreateTransactieDescription'
})
export class CreateTransactieDescriptionPipe {
transform(value: ITransactie): string {
if (value.is_card_payment == false && value.remittance_info != null)
return value.... |
import { ensure } from "../dist";
const nullErrorMessageRegex = /must not be null/;
const greaterThanErrorMessageRegex = /must be greater than/
describe('Ensure greaterThan', () => {
describe('should throw on', () => {
[null, undefined].forEach(testData => {
it('null/undefined value', () => ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.