text stringlengths 10 953k |
|---|
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
export function normalizeLgText(text: string): string {
return text
.split('\n')
.map(line => (line.startsWith('-') ? line.substring(1) : line))
.join('\n');
}
export function isActivityString(text: string): boolean {
const tem... |
import { RenderOnlyConfigurationLoader } from "./renderOnlyLoader";
import { getConfigurationType } from "./types/index";
export class ConfigurationLoader extends RenderOnlyConfigurationLoader {
protected getExtendedConfig(type: string | undefined) {
return getConfigurationType(type || "extended");
}
} |
import { NfaAttribute } from './nfaAttribute.interface';
export interface Nfa {
index: number;
name: string;
image: string;
uri: string;
address?: string;
attributes?: NfaAttribute;
} |
import * as React from 'react';
import Screener from 'screener-storybook/src/screener';
import { storiesOf } from '@storybook/react';
import { FabricDecorator } from '../utilities/index';
import { Keytip } from '@fluentui/react';
storiesOf('Keytip', module)
.addDecorator(story => (
<div style={{ width: '50px', h... |
import actions from 'stream-store/actions';
const getMediaType = (headers: { [key: string]: string }) =>
headers['content-type'].split(';')[0];
const mediaType$ = actions.get.response.map(({ headers }) =>
getMediaType(headers),
);
export default mediaType$; |
'use strict';
import { MethodParam, ParamType, ServiceClass, ServiceMethod } from '../server/model/metadata';
import { ServerContainer } from '../server/server-container';
/**
* A decorator to be used on class properties or on service method arguments
* to inform that the decorated property or argument should be b... |
// @alwaysStrict: true
// @module: commonjs
// Module commonjs
export const a = 1 |
import ElectronStore from "electron-store";
export const MemoryCardGameStore: any = new ElectronStore({
name: "memoryCardGameStore",
defaults: {
flipCards: {
sampleQuestionAnswer: {
key: "sampleQuestionAnswer",
question: "What is the first book in the Bible?"... |
import { Box, BoxProps } from '@chakra-ui/react'
interface ContainerProps extends BoxProps {
isFullWidth?: boolean
}
const Container = (props: ContainerProps) => {
return (
<Box maxW={['lg', 'xl', '3xl']} w="full" mx="auto" {...props}>
{props.children}
</Box>
)
}
export default Container |
import React from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
import Header from './components/Header';
import Home from './pages/Home';
import Books from './pages/Books';
import SpecificBook from './pages/SpecificBook';
import Register from './pages/Register';
const Routes = () => {
return (
... |
import {Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, EventEmitter} from '@angular/core';
import {CategoryModalComponent} from '../../category-modal/category-modal.component';
import {Category} from '../../../../shared/models/Category';
import {CategoriesService} from '../../../shared/categories... |
import SoundFont from 'soundfont-player'
import { showPop } from '@/common/js/util'
import { Ref, ref } from '@vue/runtime-dom'
export const player = ref({}) as Ref<SoundFont.Player>
export let audio = null as AudioContext|null
export function loadPlayer () {
audio = new AudioContext()
SoundFont.instrument(audio,... |
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { MatIconModule} from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { EstropadaNavegationComponent } from './estropada-n... |
import { NgModule } from '@angular/core';
import { SharedModule } from '@app/shared/shared.module';
import { WorkplacesSharedModule } from '@app/routes/workplaces/shared/shared.module';
import { PhoneGridComponent } from './phone-grid.component';
@NgModule({
imports: [
SharedModule,
WorkplacesSharedModule,... |
/* eslint-disable promise/param-names */
import { commonStartEffect, releaseAllEffect, ports } from './common'
import { appInstanceMap } from '../create_app'
import MicroAppElement from '../micro_app_element'
import microApp from '..'
import { defer } from '../libs/utils'
describe('micro_app_element', () => {
let ap... |
import Remarkable = require(".");
export = Ruler;
/**
* Ruler is a helper class for building responsibility chains from
* parse rules. It allows:
*
* - easy stack rules chains
* - getting main chain and named chains content (as arrays of functions)
*/
declare class Ruler<RULE> {
/**
* Replace the rule ... |
import Entity from '@src/entities/Entity';
import Sprite from '@src/sprites/Sprite';
import Vector from '@src/utils/math/Vector';
import Player from '@src/Player';
import Enemy from '@src/entities/Enemy';
import {spriteTextures} from '@src/sprites/SpriteTexture';
import Raycaster from '@src/utils/math/Raycaster';
impor... |
/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs';
import { Types } from './../utils/types';
import { LocalizerService } from './localizer.service';
export ... |
import CreditCardForm from './components/CreditCardForm'
import CreditCardProvider from './components/CreditCardProvider'
export { default as Button } from './components/Button'
export { default as Card } from './components/Card'
import { FormModel, CardFields } from './types'
export {
CardFields,
FormModel,
C... |
import {
BadRequestException,
ConflictException,
Injectable,
NotFoundException,
UnauthorizedException,
UnprocessableEntityException,
} from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import type { Prisma } from '@prisma/client';
import { Email, MfaMethod, User } from '@prisma/client';... |
/**
* Required External Modules
*/
import * as dotenv from "dotenv";
import express from "express";
import cors from "cors";
import helmet from "helmet";
import { itemsRouter } from "./items/items.router";
import { errorHandler } from "./middleware/error.middleware";
import {notFoundHandler} from "./middleware/notFo... |
import { Cmp762Component } from './cmp';
describe('Cmp762Component', () => {
it('should add', () => {
expect(new Cmp762Component().add762(1)).toBe(763);
});
}); |
import { Observable } from 'rxjs';
export interface IWatcherLiner {
index: number;
text: string;
}
/**
* Split the string value into line by line
*
* @return {(source: Observable<string>) => Observable<IWatcherLiner>}
*/
export const splitLines = () => {
return (source: Observable<string>) => {
return n... |
export declare class PackageWorkerAPI {
private worker;
constructor();
doWork(n: number): Promise<string>;
end(): void;
} |
import Todo from "../../domain/entities/Todo"
import TodoRepository from "../../domain/repositories/TodoRepository"
export default class TodoRepositoryImpl implements TodoRepository {
async GetTodos(): Promise<Todo[]> {
const todos = [
{id: 1, title: 'todo1'},
{id: 2, title: 'todo2'... |
export * from './src/href';
export * from './src/object'; |
import React /* , { ReactNode } */ from 'react';
import { Trans } from '@lingui/macro';
import {
More,
Amount,
Fee,
Form,
TextField as MintTextField,
AlertDialog,
CopyToClipboard,
Flex,
Card,
ConfirmDialog,
} from '@mint/core';
import { makeStyles } from '@material-ui/core/styles';
import { useDispa... |
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 { Colors } from "./types";
export const baseColors = {
failure: "#B10058",
primary: "rgb(118 204 204)",
primaryBright: "#B1DCFF",
primaryLight: "#B1DCFF",
primaryPop: "#28D7FD",
primaryDark: "#C82064",
primaryDarker: "#651133",
secondary: "rgb(221 224 26)", //GREEN "#28FD73",
secondaryDark: "#... |
import {Component} from '@angular/core';
import {changeDetection} from '../../../../../../change-detection-strategy';
@Component({
selector: 'tui-notifications-service-example-custom-label',
templateUrl: './custom-label.template.html',
styleUrls: ['./custom-label.style.less'],
changeDetection,
})
expor... |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" {...props}>
<path d="M496 448H128c-35.35 0-64-28.65-64-64V112c0-8.8-7.16-16-16-16s-16 7.2-16 16v272c0 53.02 42.98 96 96 96h368c8.836 0 16-7.1... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import {
ImageModule,
LazyScrollModule,
} from '@artur-ba/web/spotify/shared/view';
import { WebSpotifySharedPipeModule } from '@artur-ba/web/spotify/shared/pipe';
import { Pla... |
/**
* 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
* @flow strict-local
* @emails oncall+draft_js
*/
'use strict';
import DraftModifier from '../../../../model/modifie... |
/**
* @license
* Copyright Paperbits. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file and at https://paperbits.io/license/mit.
*/
import * as _ from "lodash";
import * as Objects from "../../src/objects";
import { IObjectStorage, Query... |
import { motion } from 'framer-motion';
import {
mainPathVariant,
shapeVariations
} from '@/lib/config/animations/svgs/svgs';
const color1 = '#252323';
const color2 = '#2F2F2F';
const color3 = '#4E4E4E';
const color4 = '#242121';
const color5 = '#CADEFC';
const color6 = 'rgba(37, 35, 35, 0.3)';
const color7 = 'rgb... |
import { Routes } from '@angular/router';
import { HomeModule } from '../../home/home.module';
import { UserModule } from '../../user/user.module';
import { TodoModule } from '../../todo/todo.module';
export const APP_ROUTES: Routes = [{
path: '',
loadChildren: () => HomeModule
}, {
path: 'users',
loadChildren... |
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// deno-lint-ignore-file no-window-prefix
import { assertEquals, assertThrows } from "./test_util.ts";
Deno.test(function addEventListenerTest() {
const document = new EventTarget();
assertEquals(document.addEventListener("x", null, false)... |
import axios from 'axios'
import got from 'got'
import { Stream } from 'stream'
import tar from 'tar'
import { promisify } from 'util'
/**
* Get templates list from https://github.com/24x7-dev/24x7-bot-templates
* @returns
*/
export async function GetTemplates(): Promise<
{ title: string; value: string }[]
> {
... |
<TS language="el_GR" 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>... |
/*
* Copyright 2022 Salto Labs 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 applicable ... |
import { ColorMode } from '@airgap/beacon-sdk';
import { BeaconWallet } from '@taquito/beacon-wallet';
import { TezosToolkit } from '@taquito/taquito';
import { Network, networks } from '@tezospayments/common';
import {
BetterCallDevBlockchainUrlExplorer, BetterCallDevDataProvider, BlockchainUrlExplorer,
ServicesP... |
import { MouseEvent } from 'react';
import { FileDetails, MediaType, FileProcessingStatus, Context, Identifier, ImageResizeMode } from '@findable/media-core';
import { UIAnalyticsEventInterface } from '@findable/analytics-next-types';
import { CardAction } from './actions';
import { MediaViewerDataSource } from '@finda... |
import Definition from './definition.interface';
export default interface WordDefinition {
word: string;
information: Definition;
} |
import { Injectable } from '@angular/core';
import { Credentials } from '../pages/login/model/credentials.model';
import { StorageManagerService } from '../pages/login/shared/storage-manager.service';
@Injectable(
{providedIn: 'root'}
)
export class PermissionGuardService {
constructor(private storageManager: Sto... |
import type { BotChallenge } from "../games/internal/bot-challenge";
import type { HeadToHead } from "../games/internal/head-to-head";
import type { OneVsOne } from "../games/internal/one-vs-one";
import type { SweetThief } from "../games/internal/sweet-thief";
import type { Room } from "../rooms";
import type { BaseCo... |
import { getNestedObjectKeysAndValues } from './getNestedObjectKeys';
const nestedObject = {
a: {
e: 'Test1',
},
b: {
c: {
d: {
g: 'Test3',
},
f: 'Test2',
},
},
};
test('flatten object keys and return all of the keychains and corresponding values', () => {
const { keys,... |
import imageCompression from 'browser-image-compression';
import classNames from 'classnames';
import { IconDownload } from 'hds-react';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { toast } from 'react-toastify';
import {
ACCEPTED_IMAGE_TYPES,
COMPRESSABLE_IMAGE_TYPES,
MAX_... |
export { default as Dices } from './Dices.vue'
export { default as DiceObject } from './DiceObject.vue' |
import { AuthLevel } from "@modules/management/auth";
import { OrderConfig, SwitchConfig } from "@modules/command";
import { PluginSetting } from "@modules/plugin";
const manager: SwitchConfig = {
type: "switch",
mode: "divided",
cmdKey: "adachi.manager",
desc: [ "管理设置", "[qq]" ],
header: "",
regexp: [ "\\d+" ],... |
const menuItems = {
pageMenus: {
nodes: [
{
id: "aosdasdj",
menuItems: {
nodes: [
{
id: "1",
order: 0,
path: "/search",
target: "",
title: "Haku",
label: "Haku",
url: "/sea... |
import { AuthService } from './../../../../shared/auth.service';
import { EstadoscrumsResponseInterface } from './estadoscrums-response.interface';
import { Observable } from 'rxjs/Observable';
import { EstadoscrumsInterface } from './estadoscrums.interface';
import { Injectable } from '@angular/core';
import { Http, R... |
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
import { Http } from '@angular/http';
import { Router} from '@angular/router';
import $ from 'jquery';
import swal from 'sweetalert';
@Component({
selector: 'app-security',
templateUrl: './security.component... |
import { waitFor, fireEvent } from '@testing-library/react'
import { ErrorBoundary } from 'react-error-boundary'
import React from 'react'
import { sleep, queryKey, mockConsoleError, renderWithClient } from './utils'
import {
useQuery,
QueryClient,
QueryCache,
QueryErrorResetBoundary,
} from '../..'
describe(... |
export * from './auth-service.interface' |
import { Controller, Get, Res, HttpStatus, Post, Body, Put, Query, NotFoundException, Delete, Param } from '@nestjs/common';
import { ProductService } from '../service/product.service';
import { ProductDTO } from './../model/product.dto';
@Controller('product')
export class ProductController {
constructor(private ... |
import Renderer from './Renderer';
import Wrapper from './wrappers/shared/Wrapper';
import { b, x } from 'code-red';
import { Node, Identifier } from 'estree';
import { is_head } from './wrappers/shared/is_head';
export interface BlockOptions {
parent?: Block;
name: Identifier;
type: string;
renderer?: Renderer;
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca@valencia" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About EighthCoin</source>
<translation type="unfinished"/>
</message>
<message>
<loc... |
import { ChainId, JSBI, Percent, Token, WETH } from '@autoshark-finance/sdk'
import { BUSD, DAI, USDT, BTCB, JAWS, WBNB, UST, ETH, USDC } from './tokens'
export const ROUTER_ADDRESS = '0xB0EeB0632bAB15F120735e5838908378936bd484'
// a list of tokens by chain
type ChainTokenList = {
readonly [chainId in ChainId]: Tok... |
import React from 'react';
import ProcessListPage from '../ProcessListPage';
import { GraphQL, getWrapperAsync } from '@kogito-apps/common';
import { MockedProvider } from '@apollo/react-testing';
import { BrowserRouter } from 'react-router-dom';
import { Button, EmptyStateBody, EmptyState } from '@patternfly/react-cor... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NotFound } from './404.component';
import { routing } from './404.routing';
@NgModule({
imports: [
CommonModule,
ReactiveFormsModule,
For... |
import styled from 'styled-components';
export const Wrapper = styled.div`
display: flex;
justify-content: space-between;
font-family: Arial, Helvetica, sans-serif;
border-bottom: 1px solid lightblue;
padding-bottom: 20px;
div {
flex: 1;
}
.information, .buttons {
display: flex;
justify-content: space-be... |
import React from 'react';
import { render, screen } from '@testing-library/react';
import { Formik, Form } from 'formik';
import { UnidentifiedPatientInput } from './unidentified-patient-input.component';
describe.skip('unidentified patient input', () => {
const mockSetName = jest.fn();
const setupInput = async ... |
// Copyright 2020 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
/*---------------------------------------------------------------------------------------------
* Copywight (c) Micwosoft Cowpowation. Aww wights wesewved.
* Wicensed unda the MIT Wicense. See Wicense.txt in the pwoject woot fow wicense infowmation.
*----------------------------------------------------------------... |
import { OptionalKind, ParameterDeclarationStructure } from "ts-morph";
import { formatJsDocParam } from "./parameterUtils";
import { wrapString } from "./stringUtils";
export type ParameterWithDescription = OptionalKind<
ParameterDeclarationStructure & {
description: string;
}
>;
export function generateOper... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
// Define your own mock data here:
export const standard = (/* vars, { ctx, req } */) => ({
entries: [
{
id: 'ckppmg3fd0004nk8saee5l08e',
createdAt: '2021-06-09 15:23:17.209',
updatedAt: '2021-06-09 15:23:17.211',
challengeId: 'ckpicyue500007b8sow0n0kut',
content:
'PGh0bWw+Ci... |
/*
* 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 { EuiIcon, EuiText, EuiTitle, EuiToolTip } from '@elastic/eui';
import... |
declare module BABYLON {
class TerrainMaterial extends PushMaterial {
private _mixTexture;
mixTexture: BaseTexture;
private _diffuseTexture1;
diffuseTexture1: Texture;
private _diffuseTexture2;
diffuseTexture2: Texture;
private _diffuseTexture3;
diffus... |
import React, { Component } from 'react';
import { computed } from 'mobx';
import { observer } from 'mobx-react';
import * as Antd from 'antd';
import { ICardConfig } from '../interfaces';
import { fillInFieldSets } from '../utilities/common';
import CardFieldSet from '../building-blocks/CardFieldSet';
interface IPr... |
import { Logger as __Logger } from "@aws-sdk/types";
import { parseUrl } from "@aws-sdk/url-parser";
import { BatchClientConfig } from "./BatchClient";
import { defaultRegionInfoProvider } from "./endpoints";
/**
* @internal
*/
export const getRuntimeConfig = (config: BatchClientConfig) => ({
apiVersion: "2016-08... |
export type Data = {
cpu: number,
temperature: number
} |
declare module "hypernova-react" {
import {
ReactHTML,
ReactSVG,
SFC,
ClassType,
ClassicComponent,
ComponentState,
ClassicComponentClass,
Component,
ComponentClass
} from "react";
export function renderReact(
name: string,
component: "input" | keyof ReactHTML | keyof R... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as cli from 'jest-cli';
export = cli; |
import React from 'react';
import { Post } from '../../features/post/Post';
export const ArticleReader: React.FC = () => <Post />; |
/*
This file is to deploy / register application commands to discord
It's here so we don't have to make custom http requests, and it gathers data from the ./commands directory
*/
import { REST } from '@discordjs/rest';
import {
APIApplicationCommandPermission,
RESTPutAPIApplicationGuildCommandsResult,
Routes,
} ... |
import {Helper, Model, FilteredAdapter} from 'casbin'
import * as redis from 'redis'
export interface IConnectionOptions {
host: string
port: number
}
export interface Filters {
[ptype: string]: string[]
}
class Line {
ptype: string = ''
v0: string = ''
v1: string = ''
v2: string = ''
... |
import { defineConfig } from '@kidar/echarts-helper'
import * as echarts from 'echarts'
import china from './geojson/china.json'
import { SERIES_TYPE } from './constant'
import citiesIngLat from './asset/json/cities_lng_lat.json'
import { isNull, setTitle } from './utils'
echarts.registerMap('china', { geoJSON: china ... |
import { Module } from '@nestjs/common';
import { ExampleResolver } from './example.resolver';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Example } from './entities/example.entity';
import { ExampleService } from './example.service';
@Module({
imports: [TypeOrmModule.forFeature([Example])],
provider... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca_ES" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Whistle</source>
<translation>Sobre Whistle</translation>
</message>
<message>
<loca... |
import dotenv from 'dotenv';
import { Etherscan } from "../src/index";
dotenv.config();
describe("Collection Module Test", () => {
const apiKey = process.env.APIKEY;
const etherscan = new Etherscan(apiKey);
const singleAddress = "0xd09a4e992F3B5E2a9E7f47d2978141FcBAbbaF7f";
const multipleAddress = ['0x... |
import PropTypes from 'prop-types'
import React, { RefObject } from 'react'
import {
FlatList,
View,
StyleSheet,
TouchableOpacity,
Text,
ListViewProps,
ListRenderItemInfo,
NativeSyntheticEvent,
NativeScrollEvent,
StyleProp,
ViewStyle,
Platform,
} from 'react-native'
import LoadEarlier from './... |
import Typography, { TypographyProps } from "@material-ui/core/Typography";
import { makeStyles } from "@saleor/theme";
import React from "react";
const useStyles = makeStyles(
{
link: {
textDecoration: "none"
}
},
{ name: "ExternalLink" }
);
interface ExternalLinkProps extends React.HTMLProps<HTM... |
import sqlFormatter from 'sql-formatter'
import { NO_RESPONSE } from '../../../common/Message'
import HexFormatter from './HexFormatter'
import SqlCommand from './SqlCommand'
export default class SqlFormatter {
formattedQuery: any;
formattedResults: any;
command: string;
errorCode: number;
constructor (reqB... |
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`... |
import { TestBed } from '@angular/core/testing';
import { FinanceService } from './finance.service';
describe('FinanceService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: FinanceService = TestBed.get(FinanceService);
expect(service).toBeTr... |
/*
* 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 { extname } from 'path';
import { isBinaryFile } from 'isbinaryfile';
... |
const ENDPOINT = 'https://endpoint.test.com';
process.env.REACT_APP_API_SERVICE_ENDPOINT = ENDPOINT;
const EMAIL_ENDPOINT = 'https://email.endpoint.test.com';
process.env.REACT_APP_EMAIL_SERVICE_ENDPOINT = EMAIL_ENDPOINT;
const FILE_ENDPOINT = 'https://file.endpoint.test.com';
process.env.REACT_APP_FILE_SERVICE_ENDPO... |
import Tween from '@tweenjs/tween.js'
import { Provider } from 'injets'
import { Application, ApplicationOptions } from '../../engine/Application'
import { Viewport } from 'pixi-viewport'
import * as Culling from 'pixi-cull'
@Provider()
export class ApplicationProvider {
public app: Application
public camera: View... |
export * from "./Toolbar" |
import { Component, OnInit } from '@angular/core';
import { ContentLoading } from 'src/app/models/ContentLoading';
import { Guideline } from 'src/app/models/Guideline';
import { ApiService } from 'src/app/services/api.service';
@Component({
selector: 'app-guidelines',
templateUrl: './guidelines.component.html',
... |
import React from 'react';
import { Icon, IconProps } from '@chakra-ui/icon';
export const CloudyNightOutlineIcon = (props: IconProps) => (
<Icon
viewBox="0 0 512 512"
fill="currentcolor"
stroke="currentcolor"
{...props}
>
<path
d="M388.31 272c47.75 0 89.77-27.77 107.69-68.92-14.21 6.18-3... |
import React from "react";
import {Input, Modal} from "antd";
const TextArea = Input.TextArea;
class SubmitModal extends React.Component {
state = {
loading: false,
json: ""
};
componentDidMount() {
}
onChange(e) {
this.setState({
json: e.target.value
});
}
handleSubmit = async ... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: GroupSearchResult
// ====================================================
export interface GroupSearchResult_user {
... |
import { RPCProtocol } from '@opensumi/ide-connection/lib/common/rpcProtocol';
import { IOpenerService } from '@opensumi/ide-core-browser/lib/opener';
import {
Emitter,
makeRandomHexString,
IEventBus,
Disposable,
CancellationTokenSource,
CommandRegistry,
} from '@opensumi/ide-core-common';
import { Workbenc... |
import { Component, OnInit } from '@angular/core';
import {NoConflictStyleCompatibilityMode} from '@angular/material';
@Component({
selector: 're-buttons',
templateUrl: './buttons.component.html',
styleUrls: ['./buttons.component.scss']
})
export class ButtonsComponent implements OnInit {
title1 = 'Button';
ti... |
/// <reference path="../../popclip.d.ts" />
define({
name: `${util.localize("Paste")} =`,
options: [{
identifier: "showIcon",
type: "boolean",
label: util.localize("Show as Icon"),
defaultValue: false
}],
actions() {
if (popclip.context.canPaste) {
ret... |
import React, { useEffect, useState } from 'react';
import { Trans } from '@lingui/macro';
import { useForm } from 'react-hook-form';
import { Alert } from '@material-ui/lab';
import styled from 'styled-components';
import { Flex, Form, TextField, Loading } from '@staidelta/core';
import {
Button,
Dialog,
DialogA... |
import {float32, float64, int16, int8, Schema, string, uint16, uint32, uint64, uint8} from '../src';
describe('Schema class', () => {
beforeEach(() => {
Schema.instances.clear();
});
it.skip('Should sort properties of the same type alphabetically', () => {
// Only typed views in schema
const onlyTyp... |
// Libraries
import React, {FunctionComponent, MouseEvent} from 'react'
// Components
import {Dropdown, ComponentColor, IconFont} from '@influxdata/clockface'
// Types
import {CheckType} from 'src/types'
interface Props {
onCreateThreshold: () => void
onCreateDeadman: () => void
}
const CreateCheckDropdown: Fun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.