text stringlengths 10 953k |
|---|
/**
* @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 localeEn from '@angular/common/locales/en';
import localeEsUS from '@angular/common/locales/es-US';
import lo... |
/*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import * as SContainerModule from "./s-container";
import * as SIntegralNumberModule from "./s-integral-number";
import * as SListBasePatchMapsMergeAndSortUpdatedModule from "./s-list-base-patch-maps-merge-and-sort-updated";
import... |
import { Injectable, Injector } from '@angular/core';
import { Router } from '@angular/router';
import {
HttpErrorResponse,
HttpEvent,
HttpHandler,
HttpInterceptor,
HttpRequest,
HttpResponse,
HttpResponseBase,
} from '@angular/common/http';
import { Observable, of, throwError } from 'rxjs';
import { catch... |
import * as http from 'http';
import * as https from 'https';
import * as url from 'url';
import * as util from 'util';
import * as smogon from 'smogon';
import {Streams} from '../../lib';
import {Dex, toID} from '../../sim/dex';
import {TeamValidator} from '../../sim/team-validator';
Dex.includeModData();
type Deep... |
import * as React from 'react'
import { Button as ButtonMaterial } from '@material-ui/core'
import { makeStyles } from '@material-ui/styles'
import { ButtonProps as MaterialButtonProps } from '@material-ui/core/Button'
import colors from '../../theme/colors'
export enum ButtonThemes {
brandPrimary = 'brandPrimary',
... |
<TS language="da" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Højreklik for at redigere adresse eller mærke</translation>
</message>
<message>
<source>Create a new address</source>
<tra... |
import { ActionCreatorWithPayload, createAction, PayloadAction } from '@reduxjs/toolkit';
import { DomainError, SuccessOrError } from 'src/communication-types';
export const DEFAULT_PREFIX = 'SIGNALR';
// Action creators for user dispatched actions. These actions are all optionally
// prefixed.
export const connectS... |
// Copyright 2015-2021 Swim.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 i... |
import * as Echarts from 'echarts/core';
let echarts = window.echarts as typeof Echarts;
if (!echarts) {
echarts = Echarts;
}
export function registerAllShape() {
// cube
const CubeLeft = echarts.graphic.extendShape({
shape: {
x: 0,
y: 0,
},
buildPath: function (ctx, shape) {
const ... |
import {
IStrategy,
IV2Ray,
LogLevel,
V2RayProtocol,
IVmessSecurity,
IV2RayOutbound,
IV2rayLog,
IV2RayInbound,
IV2rayRouting,
} from 'v2ray-schema'
import { confDir } from '../config.ts'
import { join } from 'path/mod.ts'
export const v2rayLogInfoPath = join(confDir, 'v2ray.access.log')
export const ... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
, 'CommentCancelDuotone'); |
/**
* Copyright (c) Meta Platforms, Inc. and 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 {spawn} from 'child_process';
import {Command} from 'commander';
import {getEmulatorPath} from '../android/... |
import * as React from 'react';
import * as WebBrowser from 'expo-web-browser';
import { makeRedirectUri, useAuthRequest } from 'expo-auth-session';
import { Button } from 'react-native';
WebBrowser.maybeCompleteAuthSession();
// Endpoint
const discovery = {
authorizationEndpoint: 'https://accounts.spotify.com/auth... |
/**
* @file 用于在移动端或不同语言环境下使用不同配置
*/
import {SchemaNode, Schema} from './types';
import {RendererProps, RendererConfig, addSchemaFilter} from './factory';
import {findObjectsWithKey} from './utils/helper';
const isMobile = (window as any).matchMedia?.('(max-width: 768px)').matches
? true
: false;
// 这里不能用 addSch... |
export enum CreateMarchErrors {
InsufficientUnits = 'Insufficient units to create march',
NonexistentTile = 'Starting or ending tile for march does not exist',
NonexistentPlayer = 'Player march is being created for does not exist',
} |
const config = {
plugins: ['wc'],
parserOptions: {
sourceType: 'module'
},
rules: {
'wc/no-constructor-attributes': 'error',
'wc/no-invalid-element-name': 'error',
'wc/no-self-class': 'error'
}
};
export default config; |
export { TopPageHeader } from './TopPageHeader/TopPageHeader'
export { ProductsWithReviews } from './ProductsWithReviews/ProductsWithReviews'
export { Sort } from './Sort/Sort'
export { HHData } from './HHData/HHData'
export { Advantages } from './Advantages/Advantages'
export { SeoText } from './SeoText/SeoText'
expor... |
import LandingPageView from '@/components/web/LandingPageView.vue';
import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
export default new Router({
routes: [
{
path: '/',
name: 'landingpage',
component: LandingPageView,
},
{
path: '/loadeditor',
name: '... |
/**
* @license
* Copyright 2016 Google 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... |
import React from 'react'
import { getSnapshot, ModelCreationType } from 'mobx-state-tree'
import { getDataFromTree } from 'mst-gql';
import App, { Container } from 'next/app'
import { initializeStore } from '../utils/initModels'
import { RootStoreType, StoreContext } from '../src/models';
export default class MyApp e... |
import { ImmerState, Patch, ImmerScope, Drafted, AnyObject, ImmerBaseState, AnyMap, AnySet, ProxyType } from "../internal";
/** Plugin utilities */
declare const plugins: {
Patches?: {
generatePatches_(state: ImmerState, basePath: PatchPath, patches: Patch[], inversePatches: Patch[]): void;
generate... |
import React, { useContext, useEffect } from 'react';
import { useParams, Link } from 'react-router-dom';
import { useSelector, useDispatch } from 'react-redux';
import {
PageSection,
Title,
EmptyState,
Breadcrumb,
BreadcrumbItem,
Card,
Bullseye,
Spinner,
CardBody,
} from '@patternfly/react-core';
imp... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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 b... |
import React, { forwardRef } from 'react';
import type { IconBaseProps } from '../icon/IconBase';
import IconBase from '../icon/IconBase';
const EnvelopeXFill = forwardRef<HTMLSpanElement, IconBaseProps>(({ svgProps, ...restProps }, ref) => {
return (
<IconBase aria-label="envelope-x-fill" {...restProps} ref={re... |
import { ColorValue, FontVariant } from 'react-native'
export interface TextStyle {
color?: ColorValue
fontFamily?: string
fontSize?: number
fontStyle?: 'normal' | 'italic'
fontWeight?:
| 'normal'
| 'bold'
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'... |
// todo
import * as conf from '../../config';
import * as utils from './utils';
import * as utils2 from '../../lib/utils';
import { QueuedEvent } from '../../lib/eventHandler/queue';
import { eventData } from './tracking';
import { logDebug } from './events/custom';
import * as queue from './queue';
import { ParsedAtta... |
const axios = require('axios').default;
function clearValidTrees()
{
let tree = document.querySelector('#page-tree .cms_tree');
if (null !== tree) {
tree.classList.remove('valid-target-tree');
}
let treeNodeItems = document.querySelectorAll('#page-tree .cms_tree-node-item');
treeNodeItems.f... |
/*
* 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 uuid from 'uuid';
import { times } from 'lodash';
import expect from '... |
import { ApiError } from './ApiError';
import _camelCase = require('lodash.camelcase');
import { AlexaAPI, ApiCallOptions } from './AlexaAPI';
export class AlexaContact {
static NAME = 'name';
static GIVEN_NAME = 'given_name';
static EMAIL = 'email';
static MOBILE_NUMBER = 'mobile_number';
static async con... |
import {
ClientConnectionStatus,
ConnectionStatusResult,
ControlsClient,
} from "../core";
import { useEffect, useState } from "react";
export const useControlsClientStatus = (
client: ControlsClient | undefined
): ClientConnectionStatus | undefined => {
const [status, setStatus] = useState<ClientConnectionS... |
import { MyUpperPipe } from './my-upper.pipe';
describe('MyUpperPipe', () => {
it('create an instance', () => {
const pipe = new MyUpperPipe();
expect(pipe).toBeTruthy();
});
}); |
import { Pipe, PipeTransform } from '@angular/core';
import { Difficulty } from '../enums/difficulty.enum';
@Pipe({
name: 'difficulty',
})
export class DifficultyPipe implements PipeTransform {
transform(value: any, args?: any): any {
return Difficulty[value] || value;
}
} |
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... |
<TS language="cs" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Pravým kliknutím upravte adresu nebo popisek</translation>
</message>
<message>
<source>Create a new address</source>
<tran... |
/// <reference types="react" />
import * as React from 'react';
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
title?: any;
}
export interface ItemProps extends HTMLAttributesWeak {
/**
* 节点状态
*/
state?: "done" | "process" | "error" | "success";
/**
* 图标
... |
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
import Vector2d from "./math/vector2d";
import Utils from "./type-script/utils";
import Tank from "./type-script/tank";
import Box from "./type-script/box";
import Camera from "./type-script/camera";
import QuadTree from "./quad-tree/quad-tree";
import Rectangle from "./lib/rectangle";
import BoundingBox from "./colli... |
import { ResultBuildingPermit } from '@views/ResultBuildingPermit';
export default ResultBuildingPermit; |
import * as React from 'react';
import Head from 'docs/src/modules/components/Head';
import { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';
import Avatar from '@mui/material/Avatar';
import Box from '@mui/material/Box';
import Button from '@mui/material/Button';
import Container from '@mui/material/C... |
/* eslint-disable no-new-wrappers */
/// <reference lib="es6" />
import expect = require('expect.js')
import deepClone = require('..')
//import deepClone = require('lodash.clonedeep')
declare const Atomics: any
declare const XMLHttpRequest: any
const itif = function (condition: any, msg: string, fn?: () => any) {
... |
import {
IconButton,
Typography,
Button,
makeStyles,
Popover,
Grid,
InputAdornment,
MenuItem,
Menu
} from '@material-ui/core';
import Link from 'next/link';
import useForm from 'react-hook-form';
import { useSelector, useDispatch } from 'react-redux';
import { useState, useEffect } from 'react';
impor... |
// Copyright 2021 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
/*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================... |
import React, { useState, useMemo, useEffect } from 'react'
import { useGetBlogs } from '../../utils/apis'
import BlogPost from '../common/BlogPost'
import { NO_OF_FEEDS } from '../../constants/configs'
import { useLocation } from 'react-router'
import { IBlogFeedsQueryParams, IGenericObject, IRootState } from '../../i... |
import { isPlatformBrowser } from '@angular/common';
import { AfterViewInit, ContentChildren, Directive, ElementRef, EventEmitter, HostListener, Inject, OnDestroy, Output, PLATFORM_ID, QueryList, Renderer2 } from '@angular/core';
import { SplitAreaDirective, SplitComponent } from 'angular-split';
import { takeUntil } f... |
// The menu used by the add-on.
export const MENU: ReadonlyArray<{ name: string; functionName: string }> = [
{ name: "Settings", functionName: "showSettingsSidebar" },
{ name: "Run", functionName: "onRun" }
];
// The default properties.
export const DEFAULT_PROPS: DocumentProperties = {
apiKey: "",
apiUrl: "",... |
import * as React from "react"
import { BottomNavigation, BottomNavigationAction } from "@material-ui/core"
import { User, Heart, Share2 } from "react-feather"
export function Navbar(props: any) {
return (
<BottomNavigation value={props.value} showLabels>
<BottomNavigationAction onClick={props.routes[0]} l... |
import { InputType, Field } from "type-graphql";
@InputType() //typ-gql decorator
export class UsernamePasswordInput {
@Field()
username: string;
@Field()
email: string;
@Field()
password: string;
} |
/**
*
*
* OpenAPI spec version: 20190325
*
*
* 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... |
import {
BlockContentToken,
CodeToken,
FenceToken,
ImageToken,
TextToken,
Token,
} from 'remarkable/lib'
import {
AnyNode,
text,
tag,
softbreak,
code,
getTagName,
getAttrs,
} from './utils'
export { AnyNode }
export function remarkableTree(tokens: Token[]) {
let tree: AnyNode[] = []
let ... |
export interface ProjectEntry {
name: string;
rootPath: string;
tags: string[];
enabled: boolean;
}
export interface Preferences {
projectManagerDataPath: string;
groupProjectsByTag: boolean;
} |
/// <reference types="node" />
import { DataItem } from "arbundles";
import Api from "arweave/node/lib/api";
import { AxiosResponse } from "axios";
import { Currency } from "./currencies";
export default class Uploader {
private readonly api;
private currency;
private currencyConfig;
constructor(api: Ap... |
/// <reference path='fourslash.ts' />
//// type A<T, U> = () => <T>(v: T) => (v: T) => <T>(v: /*a*/T/*b*/) => U
goTo.select("a", "b");
edit.applyRefactor({
refactorName: "Extract type",
actionName: "Extract to type alias",
actionDescription: "Extract to type alias",
newContent: `type /*RENAME*/NewType... |
import { checkErrors, testName } from '../../../integration-tests-cypress/support';
import { nav } from '../../../integration-tests-cypress/views/nav';
describe('Interacting with OperatorHub', () => {
before(() => {
cy.login();
cy.visit('/');
nav.sidenav.switcher.changePerspectiveTo('Administrator');
... |
import { some } from "../index";
export = some; |
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class AuthenticationService {
authenticated$: BehaviorSubject<boolean> = new BehaviorSubject(false);
public authenticate() {
this.authenticated$.next(true);
}
get isLoggedIn(... |
import typeAnnotationContainer from './typePropertyAnnotationContainer';
export default function Encrypted() {
// eslint-disable-next-line @typescript-eslint/ban-types
return function(object: Object, propertyName: string) {
typeAnnotationContainer.setTypePropertyAsEncrypted(object.constructor, propertyName);
... |
import {
GraphQLObjectType,
GraphQLSchema,
GraphQLInt,
GraphQLString
} from 'graphql';
let count = 0;
let schema = new GraphQLSchema({
query: new GraphQLObjectType({
name: 'RootQueryType',
fields: {
count: {
type: GraphQLInt,
resolve: function() {
return count;
... |
import i18n from 'i18n';
import { join } from 'path';
export interface Iprompt {
elements: string[];
suggestions: string[];
}
interface Iprompts {
[name: string]: Iprompt;
}
i18n.configure({
directory: join(__dirname, '/locales'),
objectNotation: true,
fallbacks: {
'fr-FR': 'fr',
'fr-CA': 'fr',
... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import moment from 'moment-timezone';
import React from 'react';
import {Text, TextStyle} from 'react-native';
import {useSelector} from 'react-redux';
import FormattedDate from '@components/formatted_date'... |
export { AggregatePostArgs } from "./AggregatePostArgs";
export { CreatePostArgs } from "./CreatePostArgs";
export { DeleteManyPostArgs } from "./DeleteManyPostArgs";
export { DeletePostArgs } from "./DeletePostArgs";
export { FindFirstPostArgs } from "./FindFirstPostArgs";
export { FindManyPostArgs } from "./FindManyP... |
import Component from '@ember/component';
import { get, set } from '@ember/object';
import { run, next } from '@ember/runloop';
import {
baseCommentEditorOptions,
exemptPolicy,
isExempt,
missingPolicyText,
PurgePolicy,
purgePolicyProps
} from 'wherehows-web/constants';
import noop from 'wherehows-web/utils/... |
import { setupWorkspace, cleanUpWorkspace } from './../testUtils';
import { ModeName } from '../../src/mode/mode';
import { ModeHandler } from '../../src/mode/modeHandler';
import { getTestingFunctions } from '../testSimplifier';
import { getAndUpdateModeHandler } from '../../extension';
suite('surround plugin', () =>... |
import { RestEndpointMethodTypes } from '@octokit/rest'
import { useQuery, UseQueryOptions, UseQueryResult } from 'react-query'
import { octokit } from '~/github-client'
type ReposQueryResponse = RestEndpointMethodTypes['search']['repos']['response']
type ReposQueryResults = ReposQueryResponse['data']
type ReposQuery... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const SwitchCameraDimensions: {
height: number;
width: number;
}; |
import { QueryError } from './interfaces.ts';
import LRUCache from 'https://deno.land/x/lru_cache@6.0.0-deno.4/mod.ts';
import hash from 'https://deno.land/x/object_hash@2.0.3.1/mod.ts';
import { Expr, parse, Statement } from 'https://deno.land/x/pgsql_ast_parser@9.2.1/mod.ts';
import { errorMessage } from './utils.ts'... |
import { NewsStore, ContentStore, UserStore, AppStore } from './';
import { TransportLayer } from './../models';
export default class DomainStore {
appStore: AppStore;
newsStore: NewsStore;
contentStore: ContentStore;
userStore: UserStore;
transportLayer: TransportLayer;
// Configuration
host: string = '... |
import { EventEmitter } from 'events'
import {
iframePostOffice,
IframePostOfficeWindow,
PostOffice,
} from '../utils/postOffice'
import { PostMessages } from '../messageTypes'
import { isValidLocks, isAccount } from '../utils/validators'
export enum PostOfficeEvents {
LockUpdate = 'update.locks',
KeyPurchas... |
export { findFirst } from './find-first' |
import { Entity, Column, PrimaryColumn } from 'typeorm'
@Entity()
export class Config {
/**
* 配置项键名
* - 该键为主键且值为唯一值
*/
@PrimaryColumn({
type: 'varchar',
length: 32,
unique: true,
})
key: string
/**
* 配置项值
*/
@Column({
type: 'varchar',
length: 512,
nullable: true,
}... |
import { Chunk } from '../LLn-parser';
export declare type Token = Chunk<string, string> & {
text: string;
};
declare enum AstType {
object = 0,
array = 1,
property = 2,
value = 3
}
export interface Ast {
type: AstType;
start: number;
end: number;
}
export interface ObjectAst extends Ast... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* Copyright 2018 Angus.Fenying <fenying@litert.org>
*
* 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... |
import { localStorage } from "@applicaster/zapp-react-native-bridge/ZappStorage/LocalStorage";
import { isWeb } from "@applicaster/zapp-react-native-utils/reactUtils";
const isWebPlatform = isWeb();
export async function localStorageGet(key: string, namespace?: string) {
return await localStorage.getItem(key, names... |
import React, {
cloneElement,
CSSProperties,
FunctionComponent,
isValidElement,
ReactElement,
useCallback,
useContext,
useEffect,
useMemo,
useRef,
} from 'react';
import { action } from 'mobx';
import { useInView } from 'react-intersection-observer';
import { observer } from 'mobx-react-lite';
impor... |
import * as React from "react";
interface ILinkProps {
children?: React.ReactNode;
[key: string]: any;
}
export const Link = ({ children, ...props }: ILinkProps) => {
let Component;
let isNext = false;
// try {
// Component = require('next/link'); isNext = true;
// } catch (e) {
// // noop
// }... |
export interface WorkItem {
id: string;
stageDates: Array<string>;
name: string;
type: string;
url: string;
attributes?: any;
};
// Doesn't do a whole lot at the moment, might consider getting rid of it.
const createWorkItem = ({id, stageDates, name, type, url}): WorkItem => {
return ({
id,
stage... |
import React from 'react';
import {View} from 'react-native';
interface Props {
color?: string;
size?: number;
}
export const Square = ({size = 100, color = 'red'}: Props): JSX.Element => (
<View style={{width: size, height: size, backgroundColor: color}} />
); |
import util from 'util';
import { either } from 'fp-ts';
export type Reviver = (instanceEncoded : ModelEncoded) => void | Model;
export type ModelEncoded = unknown;
export type ModelInternal = unknown;
export type DecodingReport = string;
export type ValidityReport = string;
export interface Model {
tag : stri... |
import {
Component,
Input,
HostBinding,
ElementRef,
Output,
KeyValueDiffers,
KeyValueDiffer,
EventEmitter,
HostListener,
ChangeDetectionStrategy,
ChangeDetectorRef,
DoCheck,
SkipSelf
} from '@angular/core';
import { TreeStatus } from './body-cell.component';
import { columnsByPin, columnGroup... |
import { List } from '../src/List';
import {IteratorItem} from '../src/IteratorItem';
import { Utils } from './utils/Utils';
import {Types} from './utils/Types';
import { TestClass } from './utils/TestClass';
import { Comparer } from '../src/Comparer';
import { expect } from 'chai';
import 'mocha';
// This file is to ... |
import {a} from './node_modules/non-external/index';
console.log(a); |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
imports: [
CommonModule
],
declarations: []
})
export class GithubSearchModule { } |
import { IAoCInput } from "../../../utils/javascript/deno-utils/input.ts";
interface ISeat {
row: number;
column: number;
}
const getSeatId = (seat: ISeat) => seat.row * 8 + seat.column;
const processRowInstruction: (
instruction: string,
min: number,
max: number,
) => number = (instruction: string, min: n... |
import React, { SVGProps } from 'react';
import { IIblisReactUndrawProps } from '../iblis_react_undraw_props';
export const SvgDesigner = (props: IIblisReactUndrawProps & SVGProps<SVGSVGElement>) => (
<svg
data-name="Layer 1"
viewBox="0 0 971.44 662"
className={props.class}
width="100%"
height={pr... |
import { useEffect, useState } from "react";
import { Button } from "./components/Button";
import { MovieCard } from "./components/MovieCard";
import { SideBar } from "./components/SideBar";
import { Content } from "./components/Content";
import { api } from "./services/api";
import "./styles/global.scss";
import ... |
import { Controller, Get, Post, Body, Put, Param } from '@nestjs/common';
import { RoleService } from './role.service';
import { CreateRoleDto } from './dto/create.role';
import { UpdateRoleDto } from './dto/update.role';
@Controller('role')
export class RoleController {
constructor(private readonly roleService: Rol... |
import React, { useState } from "react";
import {
Button,
Col,
DropdownItem,
DropdownMenu,
DropdownToggle,
FormFeedback,
Input,
InputGroup,
Label,
Row,
UncontrolledDropdown
} from "reactstrap";
import { List, Map, Range } from "immutable";
import { connect, PromiseState } from "react-refetch";
imp... |
/*
* 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 * as React from 'react';
import { EuiFlyout } from '@elastic/eui';
imp... |
import { render } from '@testing-library/react';
import { findParentWithStyle } from '@asap-hub/dom-test-utils';
import TagList from '../TagList';
import { tin } from '../../colors';
it('shows all tags by default', () => {
const { getAllByRole } = render(
<TagList
tags={[
'Neurological Diseases',
... |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome... |
import delegate from 'delegate-it';
import * as pageDetect from 'github-url-detection';
import features from '.';
import GitHubURL from '../github-helpers/github-url';
function followLocalLink(event: delegate.Event<MouseEvent, HTMLAnchorElement>): void {
if (new GitHubURL(event.delegateTarget.href).filePath === new ... |
// In the true branch statement of an 'if' statement,
// the type of a variable or parameter is narrowed by any type guard in the 'if' condition when true,
// provided the true branch statement contains no assignments to the variable or parameter.
// In the false branch statement of an 'if' statement,
// the type of... |
import { CurrencyAmount, Pair, Route, Token, Trade } from '../src/entities'
import JSBI from 'jsbi'
import { TradeType } from '../src/enums'
import { WETH9 as _WETH9 } from '../src/constants/tokens'
import invariant from 'tiny-invariant'
const ADDRESSES = [
'0x0000000000000000000000000000000000000001',
'0x0000000... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca_ES" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About PreCoin</source>
<translation>Sobre PreCoin</translation>
</m... |
// Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
import { fakeAsync, tick } from '@angular/core/testing';
import { isEqual } from '@s-libs/micro-dash';
import { expectSingleCallAndReset } from '@s-libs/ng-dev';
import { RootStore } from '../root-store';
import { UndoManager, UndoOrRedo } from './undo-manager';
class State {
counter = 0;
object?: any;
}
class Te... |
import type { $DeepPartial } from '@callstack/react-theme-provider';
import type * as React from 'react';
export type Font = {
fontFamily: string;
fontWeight?:
| 'normal'
| 'bold'
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900';
};
export type Fo... |
import { Node, HTMLCollection, NodeList, Element, ParentNode } from "./interfaces"
import { Cast, Guard } from "../util"
import {
create_htmlCollection, create_nodeListStatic,
parentNode_convertNodesIntoANode, selectors_scopeMatchASelectorsString,
mutation_preInsert, mutation_append
} from "../algorithm"
/**
* ... |
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import sourceMaps from 'rollup-plugin-sourcemaps'
import camelCase from 'lodash.camelcase'
import typescript from 'rollup-plugin-typescript2'
import json from 'rollup-plugin-json'
const pkg = require('./package.json')
const... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.