text stringlengths 10 953k |
|---|
import { Component, OnDestroy } from '@angular/core';
import { NbThemeService } from '@nebular/theme';
import { takeWhile } from 'rxjs/operators';
// TODO: move layouts into the framework
@Component({
selector: 'ngx-login-layout',
styleUrls: ['./login.layout.scss'],
template: `
<nb-layout>
<nb-layout-h... |
import { jsType } from "../common";
import { fileToString } from "./file-to-string";
import { FileModel } from "./file.model";
export async function serializeFile(file: File): Promise<FileModel> {
const fileBs4 = (await fileToString(file)) as string;
if (jsType(fileBs4) !== "string") {
throw new Error("File no... |
import { EPSILON, ICloneable, IEquatable } from "@chemistry/common";
export interface IVec2 {
x: number;
y: number;
}
export class Vec2 implements IVec2, ICloneable<Vec2>, IEquatable<Vec2> {
public static add(v1: Vec2, v2: Vec2): Vec2 {
return new Vec2(v1.x + v2.x, v1.y + v2.y);
}
publi... |
import * as R from "ramda";
import Game from "buzzwords-shared/Game";
import { HexCoord } from "buzzwords-shared/types";
import {
getCellsToBeReset,
willBecomeOwned,
} from "buzzwords-shared/gridHelpers";
import { isValidWord } from "buzzwords-shared/alphaHelpers";
import { nanoid } from "nanoid";
import HexGrid, ... |
import KahootManager from "./KahootManager";
// Very unelegant solution.
// Needed tho since not implemented properly in the deprecated package and for safety reasons
import config from "../config";
export default class TrashCan {
private static _collectingTimeout: number = config.autoCollectingTimeout;
public st... |
export interface Server {
id:number;
name: string;
isOnline: boolean;
} |
import React, {useEffect} from 'react';
import { SafeAreaView, StyleSheet, View, useWindowDimensions, StatusBar } from 'react-native';
import PhotosContainer from '../components/PhotosContainer';
import {default as Reanimated,} from 'react-native-reanimated';
interface Props {
scrollY2: Reanimated.SharedValue<number... |
import { Injectable } from "@angular/core";
import { State, Action, StateContext, Selector } from "@ngxs/store";
import {
AuthenticationStateModel,
AuthenticationStatus
} from "./authentication.model";
import * as Api from "../../api";
import { Router } from "@angular/router";
import { MatSnackBar } from "@angular/... |
/*
* 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 { CriteriaFields } from '../types';
import { HostItem } from '../../..... |
import {
AllowAccess,
AuthAccessCallback,
AuthCallback,
IPluginAuth,
RemoteUser,
} from "@verdaccio/types"
import { IPluginMiddleware } from "@verdaccio/server/build/server";
import { Application } from "express"
import { logger } from "../../logger"
import { CliFlow, WebFlow } from "../flows"
import { GitHu... |
import axios from 'axios';
import { ICache } from '../cache/ICahce';
import { LocalCache } from '../cache/LocalCache';
import { config } from '../system/config';
export interface ChannelApiSuccessResponse {
id: number;
yt_channel_id: string | null;
bb_space_id: string | null;
name: string;
description: strin... |
export * from './tma-guided-selling-content.module';
export * from './container/tma-guided-selling-product-list.component';
export * from './container/guided-selling-product-scroll/tma-guided-selling-product-scroll.component';
export * from './guided-selling-product-grid-item/tma-guided-selling-product-grid-item.compon... |
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { join } from 'path';
import {
createFileSystemTestApp,
migrationCollection,
readFileContent,
resolveBazelDataFile,
runTestCases,
} from './index.spec';
import { MOCK_LAYOUT } from './v2/MOCK_LAYOUT';
describe('v2'... |
/**
* Button.tsx
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* RN-specific implementation of the cross-platform Button abstraction.
*/
import * as PropTypes from 'prop-types';
import * as React from 'react';
import * as RN from 'react-native';
import { FocusA... |
/* eslint-disable no-throw-literal */
import pt from 'promise-timeout';
import { QueryOrchestrator, ContinueWaitError } from '@cubejs-backend/query-orchestrator';
export class OrchestratorApi {
private seenDataSources: { [dataSource: string]: boolean } = {};
protected readonly orchestrator: QueryOrchestrator;
... |
import React, { useEffect } from "react";
import { useAppDispatch, useAppSelector } from "../redux/hooks";
import { userUpdateId, userUpdateWalletType } from "../redux/slices/userSlice";
import * as dsnp from "../services/dsnp";
import * as wallet from "../services/wallets/wallet";
import * as session from "../services... |
/// <reference types="node" />
/// <reference types="webpack-env" />
import { StoryFn, Parameters } from '@storybook/addons';
import { ClientApiParams, DecoratorFunction, StoryApi } from './types';
import StoryStore from './story_store';
export declare const defaultDecorateStory: (storyFn: StoryFn<unknown>, decorators:... |
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { ContactPageComponent } from "./contact-page/contact-page.component";
import { EditListingPageComponent } from "./edit-listing-page/edit-listing-page.component";
import { ListingDetailPageComponent } from "./listin... |
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { BookServicePage } from './book-service';
@NgModule({
declarations: [
BookServicePage,
],
imports: [
IonicPageModule.forChild(BookServicePage),
],
})
export class BookServicePageModule {} |
export declare namespace services {
/**
* Represents the interface between ApiClient and a Service Client.
* @export
* @interface ApiClientMessage
*/
interface ApiClientMessage {
headers: Array<{
key: string;
value: string;
}>;
body?: string;
... |
<TS language="en_US" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Right-click to edit address or label</translation>
</message>
<message>
<source>Create a new address</source>
<translati... |
import { Importable } from '../imports/Importable';
/**
* Represents a function in WASM.
* Note: This class is named WasmFunction instead of Function
* to avoid conflicts with the default type "Function"
*/
export class WasmFunction implements Importable {
Index: number;
} |
import { BuilderElement } from '@builder.io/sdk'
const block = (options: Partial<BuilderElement>) =>
({
...options,
// All builder blocks need this @type property set
'@type': '@builder.io/sdk:Element',
} as BuilderElement)
const examplePageTemplate = {
name: 'New page',
published: 'published' as ... |
// Copyright 2020 UBIO Limited
//
// 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... |
import React from 'react';
import styled from 'styled-components';
import styledContainerQuery from 'styled-container-query'
import { color, Device } from '../styles/theme';
import { WrapperSection, TitleSection } from '../styles/GlobalStyle.css';
import Facebbok from '../assets/social-media/facebook.png';
import Inst... |
import { isFn } from './types'
import { instOf } from './instanceof'
import { BigData } from './big-data'
type Filter = (value: any, key: string) => boolean
const NATIVE_KEYS = [
['Map', (map: any) => new Map(map)],
['WeakMap', (map: any) => new WeakMap(map)],
['WeakSet', (set: any) => new WeakSet(set)],
['Set... |
export default ThumbsDown;
declare function ThumbsDown(props: any): any;
declare namespace ThumbsDown {
namespace defaultProps {
const style: {};
const color: string;
const height: string;
const width: string;
const cssClasses: string;
const title: string;
con... |
export const UPDATE_SERVICE_TYPES = 'update_service_types'
export const UPDATE_CATEGORIES = 'update_categories'
export const UPDATE_SORT_TYPES = 'update_sort_types' |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GrnReverseComponent } from './grn-reverse.component';
describe('GrnReverseComponent', () => {
let component: GrnReverseComponent;
let fixture: ComponentFixture<GrnReverseComponent>;
beforeEach(async(() => {
TestBed.configure... |
import Extension from './Extension';
import Element from './Element';
import Coding from './Coding';
/**
* A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded e... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'UCDScheduleSaver';
fav = [];
} |
import React, { useMemo, useState } from 'react';
import QueryEditor from './QueryEditor';
import { DataSource } from '../DataSource';
import { GitHubVariableQuery, DefaultQueryType, QueryType } from '../types';
import { QueryInlineField } from '../components/Forms';
import FieldSelect from '../components/FieldSelect'... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<h1>Hello World</h1>
`
})
export class AppComponent {
} |
import { AlterDirective } from './alter.directive';
describe('AlterDirective', () => {
it('should create an instance', () => {
const directive = new AlterDirective();
expect(directive).toBeTruthy();
});
}); |
/* istanbul ignore file: only one method, and not willing to test it right now*/
import { Request } from 'express';
import IServerUserSession from './IServerUserSession';
export default class ServerExpressController {
public static getInstance(): ServerExpressController {
if (!ServerExpressController.ins... |
import { Dimensions } from "react-native";
const { width, height } = Dimensions.get("window");
const Constants = {
Dimension: {
ScreenWidth(percent = 1) {
return Dimensions.get("window").width * percent;
},
ScreenHeight(percent = 1) {
return Dimensions.get("window")... |
import { Scroller } from '../src/scroller';
import { Descriptor } from '../src/descriptor';
import { ScrollDetector } from '../src/scroll-detector';
import { IElementsManager } from '../src/elements-manager';
describe('Scroller', function () {
let scopeMock: jasmine.SpyObj<ng.IScope>;
let scrollDetectorMock: j... |
import { ethers } from "ethers";
export interface ContractCode {
interface: ethers.utils.Interface;
name: string;
compiler: string;
bytecode: string;
runtime: string;
}
export declare type CompilerOptions = {
filename?: string;
basedir?: string;
optimize?: boolean;
throwWarnings?: bo... |
import React, { useEffect } from "react";
import {
OverlayKeybind,
} from "./keyboard-shortcuts";
import { Formik } from "formik";
import { object, string } from "superstruct";
import { validateStruct } from "../utils/validateStruct";
import { InputField } from "./form-fields/InputField";
import { Button } from "./... |
import { Action, Middleware } from 'redux';
import {
Saga,
Buffer,
Channel,
END as EndType,
Predicate,
SagaIterator,
Task,
} from '@redux-saga/types';
import { ForkEffect } from './effects';
export { Saga, SagaIterator, Buffer, Channel, Task };
/**
* Used by the middleware to dispatch monitoring events... |
/* eslint-disable indent */
/* eslint-disable @typescript-eslint/indent */
import React, { useEffect, useState } from "react";
import {
Alert,
Descriptions,
message,
Popconfirm,
Progress,
Skeleton,
Spin,
Tooltip,
} from "antd";
import dayjs from "dayjs";
import "./CourseDetail.css";
impo... |
/**
*
*
* OpenAPI spec version: 20160918
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
/**
* The {@link Key} enum represents keys of a standard 105 key US layout keyboard
*/
export enum Key {
Space,
Escape,
Tab,
LeftAlt,
LeftControl,
RightAlt,
RightControl,
LeftShift,
LeftSuper,
RightShift,
RightSuper,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
... |
version https://git-lfs.github.com/spec/v1
oid sha256:8f6a64fffe86476f738968bf43bb4485d791a61f19eb31a47a25bde2687bca5f
size 643712 |
import * as React from 'react';
import * as Radium from 'radium';
import { CSSProperties, HTMLProps, PureComponent, SFC } from 'react';
import { Example } from 'docs/common';
import { Button, IconButton, Modal, ModalBody, ModalFooter, ModalHeader, ModalProps } from 'components';
import { ButtonColor } from 'styles';
c... |
export interface RatingQuestionnaire {
id: number;
studentId: number;
lectureId: number;
ratingM_1: number;
ratingM_3: number;
ratingM_4: number;
ratingM_5: number;
ratingM_7: number;
ratingM_8: number;
ratingM_10: number;
ratingM_11: number;
ratingM_12: number;
ratin... |
import { Injectable } from '@angular/core'
import { Actions, createEffect, ofType } from '@ngrx/effects'
import { of, pipe } from 'rxjs'
import { map, catchError, filter, switchMap, withLatestFrom } from 'rxjs/operators'
import { Store } from '@ngrx/store'
import { BaseService, Operation } from '@tezblock/services/base... |
import { get, getProperties } from '@ember/object';
import { isEqual } from '@ember/utils';
import { noop } from 'lodash-es';
import Component from '@ember/component';
/**
* Will compare 1 level down properties (return of getProperties);
* @param previousProp reference to the old property by name
* @param newProp n... |
import { DeleteNotificationSubscriptionInput } from "../shapes/DeleteNotificationSubscriptionInput";
import { DeleteNotificationSubscriptionOutput } from "../shapes/DeleteNotificationSubscriptionOutput";
import { UnauthorizedResourceAccessException } from "../shapes/UnauthorizedResourceAccessException";
import { Entity... |
import Navigatable = require('nashorn/com/intellij/pom/Navigatable');
declare class NavigatableWithText {
getNavigateActionText(arg1 : boolean) : string;
}
declare interface NavigatableWithText extends Navigatable {}
export = NavigatableWithText |
import * as vscode from "vscode";
import unibeautify, {
LanguageOptionValues,
BeautifyData,
Language,
} from "unibeautify";
import { UnibeautifyVSCodeSettings } from "./index";
import { getTextEdits, translateTextEdits } from "./diffUtils";
import { extname } from "path";
import cosmiconfig, { ExplorerOptions, Co... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2012-2018 DragonBones team and other contributors
*
* 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... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/* tslint:disable */
/* eslint-disable */
/**
* Midgard API Docs
* This is the docs for midgard api for argonaut
*
* The version of the OpenAPI document: 0.4.0
* Contact: support@swagger.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.... |
/**
*
*
* OpenAPI spec version: 20160918
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as sho... |
/*
MIT License
Copyright (c) 2022 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 { Component } from '@angular/core';
import { TokenStorageService } from './services/token-storage.service';
import 'jquery';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
private roles: string[] = [];
isLoggedI... |
import { HassEntity } from "home-assistant-js-websocket/dist/types";
import { customElement } from "lit-element";
import { HomeAssistant } from "../../../types";
import { findEntities } from "../common/find-entites";
import { GraphHeaderFooterConfig } from "../header-footer/types";
import { LovelaceCardEditor } from ".... |
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom'
import '@testing-library/jest-dom/extend-expect' |
import { GetStaticProps, GetStaticPaths } from "next"
import React from "react"
import { ResumeProvider } from "../../components/Resume/ResumeProvider/ResumeProvider"
import { getAllResumeUids, getResume } from "../../lib/api/resume"
import { Resumes } from "../../lib/models/resume"
import { generateResumeRoute } from ... |
import { Observable } from 'rxjs';
import { switchMap } from 'rxjs/operators';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { CrisisService } from '../crisis.service';
import { Crisis } from '../crisis';
@Component({
selector: 'app-crisis-list',
temp... |
import * as React from "react";
import styled from "styled-components";
import { Color } from "../colors";
import { fonts } from '../fonts';
export interface LinkProps {
/** @name Color */
color?: Color;
onClick?: React.MouseEventHandler<HTMLDivElement>;
children?: React.ReactNode;
}
const StyledLink = styled.di... |
import { extend, Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
import { SheetModel } from './index';
import { CellStyleModel, HyperlinkModel, CellStyle, wrapEvent, ValidationModel } from '../common/index';
import { getRow } from './row';
import { RowModel } from './row-model';
import { CellModel } fro... |
import { Component } from '@angular/core';
@Component({
selector: 'product-wrapper',
templateUrl: 'app/products/product.component.html'
})
export class ProductComponent {
products: [any] = [
{
"name":"Gau Bong",
"image": "assets/img/1.png",
"price": 4500,
... |
import React, { FC } from 'react';
import classNames from 'classnames';
import css from './StackedRadialGaugeValueLabel.module.scss';
export interface StackedRadialGaugeLabelProps {
/**
* A label shown at the center
*/
label: string;
/**
* A class name to apply
*/
className?: string;
/**
* A... |
import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { BasePathService } from '../base-path.service';
import { Snapshot } from '../models/Snapshot';
@Injectable({
providedIn: 'root'
})
export class SnapshotService {
private static readonly baseUrl =... |
import { Express } from 'express'
import Crowi from 'server/crowi'
import basicAuth from 'basic-auth-connect'
import { parseAccessToken } from '../util/accessTokenParser'
export default (crowi: Crowi, app: Express) => {
return (req, res, next) => {
const config = crowi.getConfig()
const accessToken = parseAc... |
export interface IKenticoKontentError extends Error {
readonly errorCode: number,
}
export interface IWebhookContentItem {
readonly codename: string,
readonly id: string;
readonly language: string;
readonly type: string,
} |
module TestRuns {
export function TestAnims() {
function loadStream(name: string, cb: (bs: Data.ArrayBitStream) => void) {
var oReq = new XMLHttpRequest();
oReq.open("GET", name, true);
oReq.responseType = "arraybuffer";
oReq.onload = function (oEvent) {
... |
export declare type UseOutsideClick = {
ref: React.MutableRefObject<HTMLElement>
callback: () => any
} |
import ExplorationStore from '../../../../src/stores/exploration/ExplorationStore';
import {
ExplorationAnswer,
ExplorationWeight,
} from '../../../../src/stores/exploration';
describe('ExplorationStore', () => {
let explorationStore: ExplorationStore;
let dummyAnswers: ExplorationAnswer[];
function getSamp... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const SiBaidu: IconType; |
import { Component } from '@angular/core';
import { PageChangedEvent } from 'ngx-bootstrap/pagination';
@Component({
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-pagination-page-changed-event',
templateUrl: './page-changed-event.html'
})
export class DemoPaginationPageChangedCom... |
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import './resizer.less';
import type { HTMLTagNames, IBound, Nullable } from '../../types';
impor... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import { AxiosInstance } from 'axios';
import Repository from './repository.data';
import EntityHydrator from './entity-hydrator.data';
import ChangesetGenerator from './changeset-generator.data';
import EntityFactory from './entity-factory.data';
import ErrorResolver from './error-resolver.data';
export default class... |
/*
* 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 { createSimpleFunctional } from '@/util'
export const VCardHeaderText = createSimpleFunctional('v-card-header-text') |
export { MediaControl, TMediaControlProps } from './MediaControl'; |
/**
* @license Apache License, Version 2.0
* @copyright Skyra Project
*
* Changes made: Renamed types
*/
export type BooleanString = 'true' | 'false'
export type IntegerString = `${bigint}`
export type EnvAny = keyof Env
export type EnvString = { [K in EnvAny]: Env[K] extends BooleanString | IntegerString ? neve... |
/* imports from node_modules */
import { Injectable } from '@angular/core';
/* imports from app */
import { RandomService } from '@monographia/random.service';
import { XXhashService } from '@monographia/xxhash.service';
@Injectable({
providedIn: 'root'
})
export class RandomWrapperService {
constructor(private rando... |
import { GPGPUProgram } from './gpgpu_math';
export declare class CumSumProgram implements GPGPUProgram {
variableNames: string[];
outputShape: number[];
userCode: string;
constructor(shape: number[], exclusive: boolean, reverse: boolean);
} |
import React from "react";
import { render, queryByAttribute } from "@testing-library/react";
import { Provider } from "react-redux";
import { RoverImages } from "./RoverImages";
import { store } from "../../state/app.store";
const TestBed = () => (
<Provider store={store}>
<RoverImages />
</Provider>
);
test... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-appointement',
templateUrl: './appointement.component.html',
styleUrls: ['./appointement.component.css']
})
export class AppointementComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
/**
based on framer-motion@4.1.17,
Copyright (c) 2018 Framer B.V.
*/
import { Axis, AxisBox2D } from "../../../types/geometry";
export declare function tweenAxis(target: Axis, prev: Axis, next: Axis, p: number): void;
export declare function calcRelativeOffsetAxis(parent: Axis, child: Axis): {
min: number;
max... |
export * from './InputRow'; |
import * as anchor from "@project-serum/anchor";
import { useState } from "react";
import toast from "react-hot-toast";
import { MetadataProgram, Metadata } from "@metaplex/js";
const rpcHost = "https://still-solitary-paper.solana-mainnet.quiknode.pro/3556f36b7113ada207f0bc78ef72f446f1f3ecdf/";
const connection = new ... |
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { debounceTime, Observable, Subject } from 'rxjs';
import { ApplicationTypeIdentifier } from 'src/app/interfaces/application-type';
import { EotpIdentifier } from 'src/app/interfaces/eotp';
import { Project, ProjectApiData, ProjectId... |
import "isomorphic-fetch";
import ApolloClient, { gql } from "apollo-boost";
function RECURRING_CREATE(url: string) {
return gql`
mutation {
appSubscriptionCreate(
name: "Standard Plan"
returnUrl: "${url}"
test: true
trialDays: 7
lineItems: [
{
... |
/*
* Copyright 2020 Coöperatieve Rabobank U.A.
*
* 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 applica... |
afterEach(() => {
jest.resetModules()
jest.resetAllMocks()
})
it("throws if react is not installed", () => {
jest.mock("react", () => ({}))
expect(() => require("../src/assertEnvironment.ts")).toThrowErrorMatchingInlineSnapshot(
`"@joenoon/mobx-react-hooks requires React with Hooks support"`
... |
/* #region Imports */
import { Injectable } from '@angular/core';
import { CategoryInteractor } from './../../interactors/category/category.interactor';
import { PaginatedCategoryProxy } from 'src/app/models/proxies/paginated-category-proxy';
import { CreateCategoryPayload } from 'src/app/models/payloads/create-categ... |
import React from 'react';
import ReactDOM from 'react-dom';
import styled from 'styled-components';
import { ClippedCanvas } from '../components/ClippedCanvas';
import bgImage from '../statics/setup.png';
import { GraphicsApp } from '../GraphicsApp';
import { SetupSchedules } from '../components/SetupSchedules';
impor... |
import React from 'react';
// import Img from 'gatsby-image';
import styled from 'styled-components';
import { StaticQuery, graphql } from 'gatsby';
import Masonry from 'react-masonry-component';
import { MasonryStyle } from '../Timeline';
import ImageZoom from 'react-medium-image-zoom';
const MasonryOptions = {
gut... |
import "jest";
import { AnimationQueue } from "../animation-queue";
import { Spring } from "../spring";
// AnimationQueue should not care about dtMillis and velocity,
// so arbitrary values are used in these tests
function mockSpring(calculateResultMock: () => unknown): Spring {
return { calculateResult: calculateR... |
import { bindable, customElement } from 'aurelia-framework';
interface Alliteration {
wait: string;
}
interface Grammar {
id: number;
saying: string;
alliteration: Alliteration;
}
@customElement('compo-user')
export class CompoUser {
@bindable thisIsMe: string = 'hello';
message: string = 'compo user';
... |
import express from "express";
import mongoose from "mongoose";
const app = express();
const MONGO_URI = "mongodb://localhost:27017";
mongoose.connect(MONGO_URI, { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true, useFindAndModify: false });
const connection = mongoose.connection;
connection.on... |
import { commandDefaults } from '../constants';
import { Devices } from './command-constructor-form';
interface ICommandParameter {
name: string;
value?: string;
}
export class CommandParameter implements ICommandParameter {
name: string;
value?: string;
constructor(name: string, value?: string) {
this... |
import {
BadRequestException,
Injectable,
Logger,
NotFoundException,
} from '@nestjs/common';
import { CreatePlayerDto } from './dtos/create-player.dto';
import { Player } from './interfaces/player.interface';
import { v4 as uuidv4 } from 'uuid';
import { InjectModel } from '@nestjs/mongoose';
import { Model } ... |
import { util } from '@remix-project/remix-lib'
const { hexListFromBNs, formatMemory } = util
import { helpers } from '@remix-project/remix-lib'
const { normalizeHexAddress } = helpers.ui
import { ConsoleLogs } from '@remix-project/remix-lib'
import { toChecksumAddress, BN, bufferToHex, Address } from 'ethereumjs-uti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.