text stringlengths 10 953k |
|---|
import { makeStyles } from '@material-ui/core/styles'
const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
flexDirection: 'column',
width: 650,
height: 'calc(100% - 63px)'
},
drawerTitleContainer: {
display: 'flex',
alignItems: 'center',
height: 72,
padding: 20,
... |
import React from 'react';
import type WebviewClient from './client';
import type { EventValue, AnyClientAuthenticator } from '../types';
import type { ClientEventContext, EventContextOfClient } from './types';
function useEventReducer<
T,
Client extends WebviewClient<
AnyClientAuthenticator,
EventValue
... |
import assert from 'assert'
import uniq from 'lodash/uniq'
import { OPENTRONS_LABWARE_NAMESPACE } from '../constants'
import standardDeckDef from '../../deck/definitions/3/ot2_standard.json'
import type { DeckDefinition, LabwareDefinition2 } from '../types'
import type { ThermalAdapterName } from '..'
export { getWel... |
// #docregion
import { CheckmarkPipe } from './checkmark.pipe';
describe('CheckmarkPipe', function() {
it('should convert boolean values to unicode checkmark or cross', function () {
const checkmarkPipe = new CheckmarkPipe();
expect(checkmarkPipe.transform(true)).toBe('\u2713');
expect(checkmarkPipe.tra... |
import { Options, QueryParms } from '@src/types';
interface Asset {
title: string;
object: QueryParms;
options?: Options;
expected: string;
}
const ASSETS: Asset[] = [
{
title: 'Should return an empty string',
object: {},
options: {},
expected: ''
},
{
... |
export { WorkExperience } from './WorkExperience'
export { Education } from './Education'
export { Certificates } from './Certificates'
export { Skills } from './Skills' |
const signingTooltipFontSize = '.8rem';
export const TooltipStyles = () => ({
tooltip: {
fontSize: signingTooltipFontSize,
textAlign: 'center' as const,
margin: '10px 0 0 0',
maxWidth: '300px',
width: 'fit-content'
},
listItemTooltip: {
fontSize: signingTooltipFontSize,
textAlign: 'ce... |
import type * as core from '@spyglassmc/core'
import type { CommandNode } from './command'
export interface McfunctionNode extends core.SequenceNode<CommandNode | core.CommentNode> {
type: 'mcfunction:entry',
}
export namespace McfunctionNode {
/* istanbul ignore next */
export function is(node: core.AstNode | unde... |
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
const { VITE_SERVER_HOST, VITE_SERVER_PORT, VITE_SERVER_PROTOCOL } = import.meta.env;
const BASE_URL = `${VITE_SERVER_PROTOCOL}://${VITE_SERVER_HOST}:${VITE_SERVER_PORT}`;
const TIMEOUT = 25000;
const defaultOpts: AxiosRequestConfig = {
baseURL: BAS... |
import { parseWrapperPattern } from '../../src/parsing/wrapper';
const parse = parseWrapperPattern;
test('basics', () => {
expect(parse("{1} 'at' {0}")).toEqual([1, ' at ', 0]);
}); |
import { makeExecutableSchema, ApolloServer } from 'apollo-server-micro'
import { default as typeDefs } from './schema'
import resolvers from './resolvers'
import fetch from 'node-fetch'
import microCors = require('micro-cors');
import linksList = require('./links');
import labsList = require('./labs');
import helpline... |
import React from "react";
import DashboardLayout from "../../src/components/layouts/DashboardLayout";
import Courses from "../../src/components/courses/Courses";
const AllCourses: React.FC = () => (
<DashboardLayout>
<Courses/>
</DashboardLayout>
);
export default AllCourses; |
import {NgModule} from '@angular/core';
import {CommonModule} from "@angular/common";
import {JigsawTileSelectModule} from "jigsaw/component/list-and-tile/tile";
import {TileSelectTrackItemByDemoComponent} from './demo.component';
import {JigsawDemoDescriptionModule} from "app/demo-description/demo-description";
@NgMo... |
import React from 'react';
import { useMatchMedia, Box, Text } from 'preshape';
import { widthMedium, widthSmall } from '../Root';
import LandingSection, { Props } from '../Landing/LandingSection';
import SizingBorderTable from './SizingBorderTable';
import SizingGeneralTable from './SizingGeneralTable';
import SizingB... |
import { equipment_reg } from '../../../reg_utils'
import { text2html } from '../../../reg_utils/text2html'
import utils from '../../../util'
export default class Equipment {
public name: string
public type: string
public img: string
public attr: string
public html: string
public id: string
public level... |
import { TAllegiances } from 'types/army'
import { COMBAT_PHASE, WOUND_ALLOCATION, END_OF_BATTLESHOCK_PHASE, HERO_PHASE } from 'types/phases'
const Allegiances: TAllegiances = [
{
name: `Legion of the First Prince`,
effects: [
{
name: `First-Damned Prince`,
desc: `You can re-roll hit an... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* S... |
export interface ICloverApiItemCategory {
id: string;
} |
import { Omit } from "./util/omit"
import { SpraypaintBase, ModelRecord } from "./model"
export interface IValidationError<T extends SpraypaintBase> {
code: string
attribute: keyof ValidationErrors<T>
title: string
message: string
fullMessage: string
rawPayload: Record<string, any>
}
export class Validati... |
import { Entity, PrimaryGeneratedColumn, Column, OneToOne, JoinColumn, BaseEntity } from 'typeorm';
import { Person } from './person';
@Entity({ name: 'user' })
export class User extends BaseEntity {
@PrimaryGeneratedColumn({ name: 'user_id' })
private _id: number = undefined;
@Column({ name: 'user_usernam... |
import { Component, ComponentInterface, Event } from '@stencil/core';
import { EventEmitter } from 'ionicons/dist/types/stencil.core';
@Component({
tag: 'ion-slide',
styleUrl: 'slide.scss'
})
export class Slide implements ComponentInterface {
@Event() ionSlideChanged!: EventEmitter<void>;
componentDidLoad() ... |
export * from './MenuItem'
export * from './MenuLink' |
/********************************************************************************
* Copyright (C) 2018 Red Hat, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ReservationComponent } from './reservation.component';
describe('ReservationComponent', () => {
let component: ReservationComponent;
let fixture: ComponentFixture<ReservationComponent>;
beforeEach(async () => {
await TestBed.config... |
import {
getRepository,
Entity,
PrimaryGeneratedColumn,
Column,
JoinColumn,
ManyToOne,
Repository,
} from 'typeorm';
import User from './users';
import { unwrap } from '../../helpers';
@Entity('category')
export default class Category {
private static REPO: Repository<Category> | null ... |
<TS language="ne" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>ठेगाना वा लेबल सम्पादन गर्न दायाँ-क्लिक गर्नुहोस्</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { serialize } from "./methods/serialize";
import { deserialize } from "./methods/deserialize";
import { IGenerateOptions, IParseOptions } from "./types";
type TConstructor<T> = new(value?:any) => T;
// type TFunction<T> = ObjectConstructor["constructor"] & TConstructor<T>;
export class TaJson {
public stat... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import "date-fns";
import { render as rtlRender } from "@testing-library/react";
import { ComponentProps, ComponentType, ReactElement, useState } from "react";
import { ThemeProvider, jssPreset, StylesProvider, createTheme } from "@material-ui/core";
import { create } from "jss";
import { MuiPickersUtilsProvider } from... |
import {OperationArgs} from '../../types'
export declare const unpublish: {
disabled: ({snapshots, typeName}: OperationArgs) => false | 'LIVE_EDIT_ENABLED' | 'NOT_PUBLISHED'
execute: ({idPair, snapshots}: OperationArgs) => any
} |
import { Initialized, Pending } from '@abraham/remotedata';
import { RootState, store } from '..';
import { fetchTeams } from './actions';
import { TeamsState } from './state';
export const selectTeams = (state: RootState): TeamsState => {
if (state.teams instanceof Initialized) {
store.dispatch(fetchTeams);
... |
<TS language="pam" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>I-right click ban alilan ing address o libel</translation>
</message>
<message>
<source>Create a new address</source>
<tra... |
import React from "react";
import { useTranslation } from "react-i18next";
import { makeStyles } from "@material-ui/core/styles";
import AssignmentIndIcon from "@material-ui/icons/AssignmentInd";
import NoteAddIcon from "@material-ui/icons/NoteAdd";
import { Typography, Grid, Container } from "@material-ui/core";
impor... |
// Type definitions for node-openload 2.2
// Project: https://github.com/saschazar21/node-openload#readme
// Definitions by: Sascha Zarhuber <https://github.com/saschazar21>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* The model for the base config object needed for the Openload constructo... |
import { Column, Entity, Index, JoinColumn, ManyToOne } from 'typeorm';
import { Field, Int, ObjectType } from '@nestjs/graphql';
import { FilterableField, Relation } from '@nestjs-query/query-graphql';
@ObjectType('DrmInsertionOrders79')
@Entity()
export class InsertionOrders79 {
@FilterableField(() => Int)
@Col... |
import { isDate, isPlainObject } from './util'
interface URLOrigin {
protocol: string
host: string
}
function encode(val: string): string {
return encodeURIComponent(val)
.replace(/%40/g, '@')
.replace(/%3A/gi, ':')
.replace(/%24/g, '$')
.replace(/%2C/gi, ',')
.replace(/%20/g, '+')
.repl... |
/*
* 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 { decode, encode, RisonValue } from 'rison-node';
import { Location } ... |
import * as React from 'react';
import { Stack, Panel, Pivot, PivotItem, PrimaryButton } from '@fluentui/react';
import { EXPERIMENT } from '../../../static/datamodel';
import MonacoEditor from 'react-monaco-editor';
import { MONACO } from '../../../static/const';
import { convertDuration } from '../../../static/functi... |
import {
WebSocketClient,
WebSocketServer,
} from "https://deno.land/x/websocket@v0.1.2/mod.ts";
import { Application, send } from "https://deno.land/x/oak@v7.7.0/mod.ts";
import { EventEmitter } from "https://deno.land/std@0.100.0/node/events.ts";
import * as path from "https://deno.land/std@0.99.0/path/mod.ts";
i... |
export declare const SuccessFillingSvg =
'M512 74.666667C270.933333 74.666667 74.666667 270.933333 74.666667 512S270.933333 949.333333 512 949.333333 949.333333 753.066667 949.333333 512 753.066667 74.666667 512 74.666667z m238.933333 349.866666l-2.133333 2.133334-277.333333 277.333333c-10.666667 10.666667-29.866667 ... |
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AdminLayoutRoutes } from './admin-layout.routing';
import { HomeComponent } from '../../home/home.componen... |
import './style.css';
import * as React from 'react';
import AwesomeDebouncePromise from 'awesome-debounce-promise';
import { createPortal } from 'react-dom';
import { useMonaco } from '@monaco-editor/react';
import { DndProvider } from 'react-dnd';
import { HTML5Backend } from 'react-dnd-html5-backend';
import {
Dic... |
/**
* @description mocks_v3:mockLicenseManager module is mocks for AWS-SDK V3
*
* This mock module has generated from mock_generator.
* Generator Version: {v0.1.0}
* Author: hugtechio
*/
function attachMock(moduleName:string, method:string, name:string, promise:Promise<any>, once:boolean=true, mock?:jest.SpyInstance... |
import * as React from 'react';
export interface LinkProps {
active: boolean;
onClick: () => Event;
children: React.ReactNode;
}
const Link = ({ active, children, onClick }: LinkProps) => (
<button
onClick={onClick}
disabled={active}
style={{
marginLeft: '4px',
}}
... |
import AccessControl from "./AccessControl";
import SocketIO from "socket.io";
import User from "./User";
import { v4 as uuidv4 } from "uuid";
export default class Room {
private _access: AccessControl;
private _password: string | null = null;
private _key: string;
private _users: { [k: string]: User }... |
import { assert } from 'chai';
import { slow, suite, test, timeout } from 'mocha-typescript';
@suite('EX09: Combining Observables')
class CombiningObservablesTests {
@test
public async world2() {
assert.equal(2, await Promise.resolve(2), 'Expected two to equal two.');
}
} |
import { Action, ActionPanel, Color, Image, List, showToast, Toast } from "@raycast/api";
import { useState } from "react";
import urljoin from "url-join";
import { useCache } from "../../cache";
import { gitlab } from "../../common";
import { Project, User } from "../../gitlabapi";
import { GitLabIcons } from "../../i... |
import React from "react";
import {CustomValidation, PFInputEvent} from "../interface/pf-mixed-interface";
export type InputType =
'text'
| 'email'
| 'checkbox'
| 'color'
| 'file'
| 'date'
| 'datetime-local'
| 'hidden'
| 'month'
| 'number'
| 'password'
| 'radio'
| '... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CheckinSequenceComponent } from './checkin-sequence.component';
describe('CheckinSequenceComponent', () => {
let component: CheckinSequenceComponent;
let fixture: ComponentFixture<CheckinSequenceComponent>;
beforeEach(async(() =... |
import * as React from "react";
import { useState, useRef, useEffect } from "react";
import { motion } from "framer-motion/dist/framer-motion";
// A copy of ErrorListItem with slight differences for showing
// in the bulk list of errors.
function BulkErrorListItem(props) {
const ref = useRef();
const [menuState, ... |
/** Created by ge on 4/1/16. */
import { TSym } from "./Sym";
export declare const $CALLBACK_START: TSym;
export declare const $CALLBACK_RETURN: TSym;
export declare const $CALLBACK_THROW: TSym;
export interface ICallbackFunc {
(err?: any, res?: any): void;
}
export interface IErrorFunc {
(err?: any): void;
}
e... |
import { ellipsizeMid } from './string'
export const shortenAddress = (address: string): string => {
return ellipsizeMid(address, 6, 4)
}
export const equals = (
a: string | null | undefined,
b: string | null | undefined,
) => (a && b ? a.toLowerCase() === b.toLowerCase() : false) |
import { Component, OnInit } from "@angular/core";
import { GetStateService } from "~/app/procon-ip/get-state.service";
import { GetStateDataObject } from "~/app/procon-ip/get-state-data-object";
@Component({
selector: "ns-relays",
templateUrl: "./relays.component.html",
styleUrls: ["./relays.component.scs... |
import { SpinnerDirective } from './spinner.directive';
describe('SpinnerDirective', () => {
it('should create an instance', () => {
const directive = new SpinnerDirective();
expect(directive).toBeTruthy();
});
}); |
/**
* @param {Object} config
* @param {import('ipfs-repo').IPFSRepo} config.repo
*/
export function createVersion({ repo }: {
repo: import('ipfs-repo').IPFSRepo;
}): (_options?: any) => Promise<import("ipfs-core-types/src/root").VersionResult>;
//# sourceMappingURL=version.d.ts.map |
import React from 'react';
const ChartBar = ({
solid,
formattedClassName,
}: {
solid: boolean,
formattedClassName: string,
}) => {
if (solid) {
return (
<svg
className={`${formattedClassName}`}
fill="currentColor"
viewBox="0 0 20 20"
xmlns="https://www.w3.org/2000/sv... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AdvFilterPanelComponent } from './adv-filter-panel.component';
describe('AdvFilterPanelComponent', () => {
let component: AdvFilterPanelComponent;
let fixture: ComponentFixture<AdvFilterPanelComponent>;
beforeEach(async(() => {
... |
import { CombatStage, ParticipantRole } from "model/calculation";
import { ParticipantTagImplementation, PreAssignHitsInput, PreAssignHitsOutput } from "model/effects";
export const agent: ParticipantTagImplementation = {
preAssignHits: ({ combatState, role }: PreAssignHitsInput): PreAssignHitsOutput => {
... |
export { CaughtError } from "./events/caughtError";
export { MouseDistance } from "./events/mouseDistance";
export { OrientationChange } from "./events/orientationChange";
export { Outcome } from "./events/outcome";
export { PageScrolling } from "./events/pageScrolling";
export { PageView } from "./events/pageView";
ex... |
import { Module } from "@nestjs/common";
import { MongooseModule } from "@nestjs/mongoose";
import { ProductsController } from "./products.controller";
import { ProductsService } from "./products.service";
import { productsSchema } from "./schemas";
@Module({
imports: [
MongooseModule.forFeature([{ name: "produc... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Subscription } from 'rxjs';
import { MentorCard } from 'src/app/core/interfaces';
import { MentorService } from 'src/app/core/services';
import { ErrorPagesServices } from 'src/app/core/services/error-page... |
import { Optional, Fun, UnknownArgs, UnknownReturns } from '../../../type'
type OptionalFun = <A extends UnknownArgs, R extends UnknownReturns>(fun: Fun<A, R>) => (...args: A) => Optional<R>
const optional: OptionalFun = (fun) => (...args) => fun(...args)
export {
optional
} |
import { InstantApp } from "@felvin-search/core";
import { Component, queryToData } from "./App";
const App: InstantApp = {
id: "@felvin-community/snake-game",
name: "Snake Game",
description: "Play snake game",
queryToData,
Component,
screenshotPath: "./files/screenshot.png",
exampleSearchQueries: ["sna... |
export class Deferred {
resolve: any;
reject: any;
promise: Promise<any>;
constructor() {
this.resolve = null;
this.reject = null;
this.promise = new Promise((resolve, reject) => {
this.resolve = resolve;
this.reject = reject;
});
Object.freeze(this);
}
} |
import { HasProps } from "../core/has_props";
import { Data, Attrs } from "../core/types";
import { Vector } from "../core/vectorization";
import { Property } from "../core/properties";
import { Class } from "../core/class";
import { Location } from "../core/enums";
import { Glyph, GlyphRenderer, Axis, Grid, Range, Sca... |
import { AppProps } from 'next/app';
import Router from 'next/router';
import Layout from '@components/layout';
import * as gtag from '@helpers/gtag';
import { reducer, StateProvider } from '@state/index';
import '@styles/globals.css';
import '@styles/about.css';
//we track pageview when route is changed
Router.even... |
/*
* 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 ApolloClient from 'apollo-client';
import { get } from 'lodash/fp';
im... |
import { IconDefinition } from '@ant-design/icons-angular';
export declare const LineChartOutline: IconDefinition; |
import { shallow } from 'enzyme'
import * as React from 'react'
import { RefreshControl, RefreshControlProperties } from 'react-native'
import { CustomPicker, CustomPickerProps } from '../'
describe('CustomPicker Basic Tests', () => {
it('should render correctly with initial props', () => {
const wrapper = shall... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { Deferred } from "@fluidframework/common-utils";
import { IWebServer, IWebServerFactory, IRunner } from "@fluidframework/server-services-core";
import { Provider } from "nconf";
import * as ... |
import { useDispatch, useSelector } from 'react-redux'
import { Row, Col, Popover, Space, Switch, Typography, Button } from 'antd'
import IonIcon from 'shared/antd/ionicon'
import { AppDispatch, AppState } from 'app/model'
import { setShowArchived } from 'app/model/settings.controller'
const SettingsButton = () => {... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../../utilities";
/**
* Server Endpoint object.
*/
export class ServerEndpoint extends pulu... |
import { ScriptEventPool } from "./script.event.pool";
import { Store } from "./script.store";
/** the script context of the pioneerjs
* - `store` save script value like localStorage
* - `eventPool` save page event
*/
export class ScriptContext {
public store: Store<unknown>
public eventPool: ScriptEve... |
import { ConfigModule } from '../config/config.module';
import { Module } from '@nestjs/common';
import { UserModule } from '../user/user.module';
import { AuthGoogleStrategy } from './auth-google-strategy';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';
@Module({
i... |
export const GAME_TITLE = 'The Wordle with Perdle'
export const WIN_MESSAGES = ['You talented musk ox', 'You beautiful rule-breaking moth', 'You beautiful tropical fish', 'Bully!', 'Spread your wings and fly', '🎵Youre a champioooonnnnn🎵',]
export const GAME_COPIED_MESSAGE = 'Game copied to clipboard'
e... |
import { Headers, Http, RequestOptions } from '@angular/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/toPromise';
import { Post } from './posts.model';
@Injectable()
export class PostsService {
//private URL = 'http://api.hubanking.vn/pos... |
import {FETCH_QUESTIONS_SUCCESS} from "../../action-types";
import QuestionsReducer from "../questions-reducer";
import {Question} from "../../../types";
import questionList from "../../../test/data.json";
test("returns default initial state of `[]` when no action is passed", () => {
const newState = QuestionsRedu... |
import { EditorUI, PageConfig } from "../../..";
describe("PageConfig", () => {
const editor = {};
const container = document.createElement("div");
let dialog, ui;
beforeEach(() => {
ui = new EditorUI(editor, container);
dialog = new PageConfig(ui);
});
describe("instance", () => {
describe("... |
import { Component, OnInit, Input, Output } from '@angular/core';
import { routerTransition } from '../../router.animations';
import {BlueprismService} from '../../services/BlueprismService';
import { DataLoadService } from '../../services/DataLoadService';
import 'rxjs/add/operator/map';
import { BlueprismModel } from... |
import Router from "@koa/router";
import { ParameterizedContext, Next } from "koa";
import { User } from "../../../Models/user";
import { UserComment } from "../../../Models/MCA_AYIM/userComments";
import { ModeDivision, ModeDivisionType } from "../../../Models/MCA_AYIM/modeDivision";
import { isEligibleFor } from "../... |
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable max-lines */
import 'renderer/css/settings.css';
import React from 'react';
import {FormCheck, Col, FormGroup, FormText, Container, Row, Button, For... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
import { Constructor } from "lit-element";
import { HomeAssistant } from "../../types";
/* tslint:disable */
export class HassBaseEl {
protected hass?: HomeAssistant;
protected hassConnected() {}
protected hassReconnected() {}
protected hassDisconnected() {}
protected hassChanged(_hass: HomeAssistant, _oldH... |
import React from 'react';
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import OrderItemList from './OrderItemList';
describe('<OrderItemList />', () => {
test('it should mount', () => {
render(<OrderItemList orderItems={[]} />);
const orderItemL... |
// URLS
const API_BASE_URL = 'https://api.poap.xyz';
const APP_BASE_URL = 'https://app.poap.xyz';
export default class Plugin {
public author = 'Poap-xyz';
public version = '1.0.0';
public name = 'Poap Module';
public options: any;
openScanPage(address) {
window.open(`${APP_BASE_URL}/scan/` + address, '... |
import React,{useState} from 'react'
import Header from '../../containers/Header';
const Settings = ({
settings: {
access_token_key,
access_token_secret,
consumer_key,
consumer_secret
},
handleSaveKeys
}: any) => {
const [accessTokenKey, setAccessTokenKey] = useState(access_token_key)
const [... |
import {Bcrypt} from './types/bcrypt';
const bcrypt: Bcrypt = require('bcrypto/lib/bcrypt');
export {bcrypt}; |
import test, {ExecutionContext} from 'ava';
import Busboy from 'busboy';
import express from 'express';
import {Page} from 'playwright-chromium';
import ky from '../source/index.js';
import {createHttpTestServer, HttpServerOptions} from './helpers/create-http-test-server.js';
import {parseRawBody} from './helpers/parse... |
import { SubPath } from '../../utils/routeUtils';
import Router from '../../utils/Router';
import { RouteType } from '../../utils/types';
import { AppContext } from '../../utils/types';
import { changeTypeToString } from '../../services/database/types';
import { PaginationOrderDir } from '../../models/utils/pagination'... |
/**
* 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.
*/
import type { PrismTheme } from 'prism-react-renderer';
import type { CSSProperties } from 'react';
import type { DeepPartial } fro... |
import { Filter, FilterOperation } from './Filter'
/**
* Type used by DataBook objects to request data from scribes
*/
export type PageRequest<Op extends FilterOperation> = {
pageNumber: number
pageSize: number
filters: Filter<Op>[]
}
/**
* Type returned by scribes to DataBooks
*/
export type PageResponse<T... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Lira</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39... |
export * from './__styles__'
export * from './molecules'
export * from './table' |
import { Query, Resolver } from 'type-graphql';
@Resolver()
export class HelloResolver {
@Query(() => String)
hello() {
return 'no';
}
} |
export enum Statuses {
COMPLETED = 'COMPLETED',
PENDING = 'PENDING'
}
export interface Todo {
id: string;
content: string;
status: Statuses;
}
export interface TodoList {
id: string;
name: string;
createdDate: string;
updatedDate: string;
items: Todo[];
} |
import { browser, element, by } from 'protractor';
export class DanmuAppPage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
} |
import { Component, NgModule, ViewEncapsulation } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { McButtonModule } from '@ptsecurity/mosaic/button';
imp... |
import { createTheme } from '@material-ui/core';
import Grid from '@material-ui/core/Grid';
import { createStyles } from '@material-ui/core/styles';
import { makeStyles } from '@material-ui/core/styles';
import classNames from 'classnames';
import * as React from 'react';
import altinnTheme from './../../theme/altinnSt... |
import React, { useEffect, useMemo, useState } from 'react';
import { CSVLink } from 'react-csv';
import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux';
import { Link } from 'react-router-dom';
import { useSortBy, useTable } from 'react-table';
import { Link as UswdsLink... |
import _ from 'lodash'
import { Link, useRequest, history } from 'umi'
import { useSetState } from 'react-use'
import React, { useCallback, useEffect, useMemo, useState } from 'react'
import { getProject, updateProject } from '@/services/project'
import {
Divider,
Button,
Space,
Form,
Input,
message,
Swit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.