text stringlengths 10 953k |
|---|
import { Observable } from '../Observable.ts';
import { Operator } from '../Operator.ts';
import { Subscriber } from '../Subscriber.ts';
import { MonoTypeOperatorFunction, TeardownLogic } from '../types.ts';
/**
* Returns an Observable that skips all items emitted by the source Observable as long as a specified condi... |
<TS language="ca" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Botó dret per editar l'adreça o l'etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<transl... |
import { AuthServiceResponse } from './definitions';
export const createResponse = <T = unknown>(
data?: T,
message: string = 'Action handled successfully',
success: boolean = true
): AuthServiceResponse => ({ message, success, ...data }); |
import { useModal } from '../modal-provider/ModalProvider';
export default useModal; |
/*
* @Author: https://github.com/blakeembre
*/
const DATA_VAR_NAME = "data";
export type Template<T extends object> = (data: T) => string;
/**
* Stringify a template into a function.
*/
export function compile(value: string, displayName = "template") {
const str = value.replace(/"|{{[^{]+}}/g, (prop) => {
... |
import { Box, Text, useColorModeValue } from '@chakra-ui/react';
import React from 'react';
import { Layout } from '../components/layout';
import { PinnedRepositories } from '../components/pinnedRepositories';
// eslint-disable-next-line import/no-default-export
export default function IndexPage(): JSX.Element {
re... |
GOCAD TSurf 1
HEADER {
name: PNRA-SJFZ-ANZA-Clark_fault-north-lower-CFM4_m1000
*solid*color: 0.741176 0.321569 0.741176 1
}
GOCAD_ORIGINAL_COORDINATE_SYSTEM
NAME Default
PROJECTION Unknown
DATUM Unknown
AXIS_NAME X Y Z
AXIS_UNIT m m m
ZPOSITIVE Elevation
END_ORIGINAL_COORDINATE_SYSTEM
PROPERTY_CLASS_HEADER X {
kind: X... |
export default {
'ETH': 0.0005,
'BTC': 0.0005,
'USDT': 0.005,
'SWAP': 0.0005,
'default' : 0.0005, // BTC
} |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AboutComponent } from './about.component';
describe('AboutComponent', () => {
let component: AboutComponent;
let fixture: ComponentFixture<AboutComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations:... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'commonSkeletonUI';
} |
export class horarioFuncionamiento {
id?: number;
IdZona?: number;
diasSemana?: string;
HorariosJornada?: string;
horarioJornada?: string;
idHorario?: number;
horarioCheckList?: daysCheckList[];
inicioTime?: "00:00:00";
finalTime?: "00:00:00";
freedays?: false;
}
export interface daysCheckList {
... |
import { LayoutRoute } from 'react-base-routing';
import { AuthLayout, DefaultLayout } from './layouts';
import { AboutPage, ContactsPage, HomePage, LoginPage } from './pages';
export default [
{
layout: AuthLayout,
routes: [
{
path: ['/login', '/sign-in'],
... |
import HttpClient from 'common/config/http';
import {
CreateRankRequest,
Ranks,
UpdateRankRequest,
} from 'modules/ranks/models';
const RankService = {
/**
* Send request to create a Rank
* @param data request body
*/
createRank: async (data: CreateRankRequest): Promise<void> => {
await HttpClie... |
import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { Button } from './Button';
import { ApplePayButton } from "./ApplePayButton";
export default {
title: 'Components / Button',
component: Button
} as ComponentMeta<typeof Button>;
const Template: ComponentStory<typ... |
import classNames from 'classnames';
import { ComponentClassNames } from '../../shared';
import { View } from '../../View';
export const IconAdb = (props) => {
const { className, ...rest } = props;
return (
<View
as="span"
width="1em"
height="1em"
className={classNames(ComponentClassNa... |
/*!
* Copyright (c) 2018 by The Funland Project Developers.
* Some rights reserved.
*
* Licensed under the MIT License.
* See LICENSE file in the project root for full license information.
*/
import { HK, Apply } from "funland"
import { Equiv } from "./equiv"
import { FunctorLaws } from "./functor"
/**
* Type-... |
const hiddenPanelClass = 'qv-layout__panel--hidden'
const mobileBreakpoint = 1056
let parentContainer = null
let bxDropdown = null
const collapseMobileMenu = function () {
parentContainer = document.getElementsByClassName('qv-layout')[0]
if (parentContainer) {
const w = document.documentElement.clientWidth
... |
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { NbActionsModule, NbLayoutModule } from '@nebular/theme';
import { SharedModule } from '@yeti/shared';
import { CallbackComponent } from './components/callback/callback.component';
import { FooterComponent } from './compon... |
export const FONT = '"Open Sans Condensed", sans-serif';
export const TILE_SIZE: integer = 100;
export const TILE_PADDING: integer = 10;
export const TWEEN_SPEED: integer = 100;
export const CELL_COLOURS = {
0: 0x333333,
2: 0xeee4da,
4: 0xece0ca,
8: 0xebb382,
16: 0xfb9565,
32: 0xf37c65,
64: 0xf3613c,
... |
/**
* A palindrome is a string that reads the same backwards and forwards
*/
export default (str: string): boolean =>
str ===
str
.split('')
.reverse()
.join('')
export const isAnyPermutationPalindrome = (str: string): boolean => {
const unmatched = new Set<string>()
str
.split('')
.forEa... |
import { InjectionToken } from '@angular/core';
export interface NgxsLoggerPluginOptions {
/** Auto expand logged actions */
collapsed?: boolean;
/** Provide alternate console.log implementation */
logger?: any;
/** Disable the logger. Useful for prod mode. */
disabled?: boolean;
}
export const NGXS_LO... |
import invariant from "invariant";
import React, { Component, ComponentType } from "react";
import {
Platform,
ScrollViewProps,
SectionBase,
SectionListProps,
ViewToken,
VirtualizedList,
} from "react-native";
import ItemWithSeparator from "./ItemWithSeparator";
import ScrollView, { ScrollResponderType } fr... |
import { Signer } from "ethers";
import { Provider } from "@ethersproject/providers";
import type { ISynthetix } from "../ISynthetix";
export declare class ISynthetix__factory {
static connect(address: string, signerOrProvider: Signer | Provider): ISynthetix;
} |
import { IResourceComponentsProps, useList } from "@pankod/refine-core";
import {
List,
Table,
TextField,
useTable,
Space,
EditButton,
ShowButton,
Tag,
} from "@pankod/refine-antd";
import { IPost, ITag } from "interfaces";
export const PostList: React.FC<IResourceComponentsProps> = (... |
import DateFnsUtils from '@date-io/date-fns';
import { StringDomain } from './StringDomain';
export declare const DATE_DOMAIN = "DATE";
export declare const DATE_DOMAINS: readonly ["DATE"];
export declare type DateDomainType = typeof DATE_DOMAINS[number];
export interface DateDomain extends StringDomain {
format: '... |
import React, { useState } from "react";
import { css, cx } from "emotion";
import ImageViewer from "../../src/image-viewer";
import { DocDemo } from "@jimengio/doc-frame";
export default function DemoCloseBackdrop() {
let [visible, setVisible] = useState(false);
return (
<div className={styleContainer}>
... |
import { Job } from './job-items';
export enum UserKind {
User = 'User',
Admin = 'Admin',
Root = 'Root',
}
export interface Profile {
username: string;
email: string | undefined;
studentId: string | undefined;
}
export interface AccountAndProfile {
username: string;
kind: UserKind;
email: string | ... |
import { expect } from "chai";
import { Card } from "@atlasacademy/api-connector";
import { BattleTeam } from "../../../../src";
import { BattleAttackActionList } from "../../../../src/Action/BattleAttackAction";
import { commandCardAttack } from "../../../../src/Func/Implementations/getDamageList";
import { createBa... |
export { CourseEditComponent } from './course-edit.component'; |
export const _deleteFriendshipByFrienshipUuid = async( friendshipUuid: string, sql: any) => {
await sql`
DELETE from "Friendships"
WHERE "friendshipUuid" = ${friendshipUuid}
`
return "OK"
} |
import { Component } from '@angular/core';
export class Student {
id: number;
name: string;
}
const STUDENTS: Student[] = [
{ id: 11, name: 'Anita' },
{ id: 12, name: 'Kasia' },
{ id: 13, name: 'Lucyna' },
{ id: 14, name: 'Ania' },
{ id: 15, name: 'Rafał' },
{ id: 16, name: 'Asia' },
{ id: 17, name: 'Rom... |
/**
* @file VoiceOff 关闭录音
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime';
export default IconWrapper(
'voice-off',
true,
(h: IconHelper, props: ISvgIconProps) => (
<svg
... |
import { Component } from '@angular/core';
@Component({
selector: 'basic-example-custom-actions',
template: `
<ngx-smart-table [settings]="settings" [source]="data" (custom)="onCustom($event)"></ngx-smart-table>
`,
})
export class BasicExampleCustomActionsComponent {
settings = {
actions: {
cust... |
import { v4 as generateUuid } from 'uuid'
import { getActionScript } from './utils/getActionScript'
import { session } from './utils/session'
import { readArgs } from './utils/argsParser'
import { takeScreenshot } from './utils/screenshots'
import { initLogger, LogLevel } from './utils/logger'
;(async () => {
const [... |
import React from "react";
import {
ButtonHandledProps,
ButtonManagedClasses,
ButtonUnhandledProps,
} from "@microsoft/fast-components-react-base";
import {
FlipperClassNameContract,
ManagedClasses,
} from "@microsoft/fast-components-class-name-contracts-msft";
export enum FlipperDirection {
ne... |
/**
*
* Register
*
*/
import { Col, Form, Input, Row } from "antd";
import { Buttons } from "app/components/Common/Buttons";
import React, { memo } from "react";
import { useTranslation } from "react-i18next";
import { useDispatch, useSelector } from "react-redux";
import { Link, useHistory } from "react-router-dom... |
/**
* @license
* Copyright 2018 Google Inc. 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 a... |
import constants from './style-constants';
function formatVariableName(jsName: string) {
return `--${jsName.replace(/[A-Z]/g, c => `-${c.toLowerCase()}`)}`;
}
export default function setCssVars() {
for (const varName in constants) {
document.documentElement.style.setProperty(formatVariableName(varName), const... |
import React, { FC, useState } from "react";
import { css } from "emotion";
import { DocDemo, DocSnippet } from "@jimengio/doc-frame";
import { usePopupZxingWasmScanner } from "../../src/popup-zxing-wasm-scanner";
let DemoMixedScannerPopup: FC<{}> = React.memo((props) => {
let [result, setResult] = useState("");
... |
import { ServiceInputTypes, ServiceOutputTypes, StorageGatewayClientResolvedConfig } from "../StorageGatewayClient";
import { DescribeSMBFileSharesInput, DescribeSMBFileSharesOutput } from "../models/models_0";
import {
deserializeAws_json1_1DescribeSMBFileSharesCommand,
serializeAws_json1_1DescribeSMBFileSharesCom... |
import { Sex } from "../../../../../Models/Hero/heroTypeHelpers"
import { AllRawRequirementObjects } from "../rawTypeHelpers"
export interface RawSexRequirement {
id: "SEX"
value: Sex
}
export const isRawSexRequirement =
(req: AllRawRequirementObjects): req is RawSexRequirement =>
req.id === "SEX"
// @t... |
import { Component,
Input,
OnChanges,
OnInit,
} from '@angular/core';
import { NzTabChangeEvent } from 'ng-zorro-antd/tabs';
import { NGXLogger } from 'ngx-logger';
import { MyGeneInfoService } from './my-gene-info.service';
@Component({
selector: 'cvc-my-gene-info',
templateUrl... |
import { ContractService as ContractServiceInterface } from '../services'
import { Network } from '../../contract/types'
import { NFTCategory } from '../../nft/types'
import { TransferType } from '../types'
const network = process.env.REACT_APP_NETWORK! as Network
// No Ropsten!
const contractAddresses = {
[Network... |
import {
// @ts-ignore
unstable_createMuiStrictModeTheme as createMuiTheme,
CssBaseline,
ThemeProvider,
} from "@material-ui/core";
import React, { StrictMode } from "react";
import { Provider } from "react-redux";
import { MemoryRouter as Router, Route, Switch } from "react-router-dom";
import "typeface-roboto... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { ApiService } from 'src/app/services/api.service';
import { CartService } from 'src/app/services/cart.service';
import { UtilService } from 'src/app/services/util.service';
import { uniq } from 'lodash';... |
import React from 'react';
import { Dropdown } from 'react-bootstrap';
import { Application, ApplicationReader, FunctionWriter, SETTINGS, NgReact, ReactInjector } from '@spinnaker/core';
import { IAmazonFunction, IAmazonFunctionDeleteCommand } from 'amazon/domain';
import { IFunctionFromStateParams } from './AmazonF... |
import { Component, OnInit, Input } from "@angular/core";
import { columns, orders, Order } from "../../../../assets/data";
import { Columns } from "../../modules/columns";
@Component({
selector: "app-app-menu",
templateUrl: "./app-menu.component.html",
styleUrls: ["./app-menu.component.css"]
})
export class AppM... |
import {
ImportProvidersField,
OvirtProviderField,
OvirtProviderProps,
VM_WIZARD_DIFFICULT_TABS,
VMImportProvider,
VMSettingsField,
VMWizardProps,
VMWizardTab,
VMWizardNetwork,
} from '../../../../types';
import { InternalActionType, UpdateOptions } from '../../../types';
import { iGetCommonData, iGet... |
import '../../__mocks__/matchMediaMock'
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import {
ButtonBarProvider,
useButtons,
useButtonToolbarSetter,
} from 'page-header/ButtonBarProvider'
import { Button } from '@hospitalrun/components'
describe('Button Bar Provider', () =>... |
import { Injectable } from '@angular/core';
import { AppSettings, defaults } from '@core/settings';
import { BehaviorSubject, Observable } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class SettingsService {
private options = defaults;
get notify(): Observable<any> {
return this.notify$.asObse... |
export const namespaceStats = {
kindIsRootEntity: "__Stat_Ns_Kind_IsRootEntity__", // the kind without ancestors
kindIsNotRootEntity: "__Stat_Ns_Kind_NotRootEntity__", // the kind ancestors
kind: "__Stat_Ns_Kind__", // all kinds
propertyNameKind: "__Stat_Ns_PropertyName_Kind__",
propertyTypeKind: "... |
/** @jsx withSlots */
import * as React from 'react';
import { Pressable, View } from 'react-native';
import { IButtonSlotProps, IButtonState, IButtonProps, IButtonRenderData, buttonName, IButtonType } from './Button.types';
import { compose, IUseComposeStyling } from '@uifabricshared/foundation-compose';
import { ISlo... |
// Copyright 2016-2018, Pulumi Corporation.
//
// 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... |
export interface UserI{
email: string;
password: string;
} |
import { QualtricsConfig } from './config/qualtrics-config';
import { QualtricsLoaderService } from './qualtrics-loader.service';
/**
* Adds the Qualtrics deployment script whenever the component is loaded. The
* deployment script is loaded from the global configuration (`qualtrics.scriptSource`).
*/
import * as ɵng... |
const { cd, exec, echo, touch } = require("shelljs")
const { readFileSync } = require("fs")
const url = require("url")
let repoUrl
let pkg = JSON.parse(readFileSync("package.json") as any)
if (typeof pkg.repository === "object") {
if (!pkg.repository.hasOwnProperty("url")) {
throw new Error("URL does not exist i... |
// Copyright 2021 Cartesi Pte. 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 law or agreed to in writing,... |
import path from 'path'
import TSConfigPathsPlugin from 'tsconfig-paths-webpack-plugin'
import type { Configuration } from 'webpack'
import { getCommonConfig } from '../webpack.common.config'
import { getDevServerConfig } from '../webpack.dev-server.config'
const context = process.cwd()
const commonConfig = getCommon... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import ButtonSandbox from './components/button/sandBox';
import ButtonGroupSandbox from './compo... |
import { isNumber, isFunction, get, isUndefined, isString, cloneDeep, isEmpty, difference } from 'lodash-es';
import { strings } from '../treeSelect/constants';
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
import {
flattenTreeData,
findDescendantKeys,
findAncestorKeys,
filter,
... |
export interface Identity {
type: 'local' | 'facebook'
credentials: {
username: string
}
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Score</source>
<translation>关于黑币</translation>
</message>
<message>
<location line="... |
import { Component } from '@angular/core';
@Component({
templateUrl: 'tabs.component.html'
})
export class TabsComponent {
constructor() { }
} |
import { useEffect, useState } from 'react';
import useSWR from 'swr';
export const useJMARiskTile = (element: string) => {
const endpoint =
'https://www.jma.go.jp/bosai/jmatile/data/risk/targetTimes.json';
const { data } = useSWR(endpoint);
const [url, setUrl] = useState<string>();
useEffect(() => {
i... |
import { getAll, getById, getList } from '@waldur/core/api';
import { Issue } from './list/types';
export interface IssueTemplateAttachment {
name: string;
field: string;
}
export interface IssueTemplate {
name: string;
description: string;
issue_type: string;
attachments: IssueTemplateAttachment[];
}
e... |
import { ColorResolvable, CommandInteraction, MessageEmbed } from 'discord.js'
import { Discord, SimpleCommand, SimpleCommandMessage, SlashOption, Slash, SimpleCommandOption } from 'discordx'
import fetch from 'node-fetch'
import hslRgb from 'hsl-rgb'
interface weatherResponse {
msg: MessageEmbed,
ephemeral: boole... |
import {
extend, isNullOrUndefined, createElement, EventHandler, addClass, append, removeClass, remove, closest, classList, isBlazor
} from '@syncfusion/ej2-base';
import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';
import { TreeView, NodeClickEventArgs } from '@syncfusion/ej2-navigations';
import ... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const paLogin: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatures: ... |
/**
* Shoppr - E-commerce app starter Ionic 4(https://www.enappd.com)
*
* Copyright © 2018-present Enappd. All rights reserved.
*
* This source code is licensed as per the terms found in the
* LICENSE.md file in the root directory of this source .
*
*/
import { Component, OnInit, Input } from '@angular/core';
... |
import { Request, Response } from 'express';
import { TenantServiceType, TenantServiceInterface } from '../services/tenant.service';
import { KeyServiceInterface, KeyServiceType } from '../services/key.service';
import { inject, injectable } from 'inversify';
import { controller, httpPost } from 'inversify-express-util... |
import * as React from 'react'
import {
Grid,
IGridHeader,
IGridColumn,
_,
gridUtil,
} from '@zen-components/grid/gridExports'
import { Link } from 'react-router-dom'
import * as headersConfig from './headersConfig'
export function buildHeaders(showAdvanced) {
const linkStyle = { color: '#3E93D8', textD... |
import * as fs from 'fs'
import { table } from 'table'
import chalk from 'chalk'
import { cliInstance } from '../cli/cli'
interface ConverObj {
num: string;// 'Number'
feat: string;// 'Conversion item'
times?: number;// 'Conversion times'
}
const reportList: ConverObj[] = []
const tabDt = [
['Number', 'Conver... |
/***********************************************************
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License
**********************************************************/
export interface ModuleTwin {
deviceId: string;
moduleId: string;
etag: string;
deviceE... |
import { store } from 'mobile/App';
import AnimatedScrollView from 'mobile/src/components/AnimatedScrollView';
import CommunitiesDetailedList from 'mobile/src/components/Communities/CommunitiesDetailedList';
import { headerStyles } from 'mobile/src/styles';
import React from 'react';
import { NavigationScreenProp, Navi... |
export { SiteLogo, LogoLightIcon, LogoDarkIcon } from './SiteLogo' |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { PagesRoutingModule } from './pages-routing.module';
import { AboutPageComponent } from './about-page.component';
@NgModule({
imports: [
CommonModule,
PagesRoutingModule
],
declarations: [
Abo... |
import { Logger, ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { TransformInterceptor } from './transform.interceptor';
const serverPort = 3000;
async function bootstrap() {
const logger = new Logger();
const app = await NestFa... |
version https://git-lfs.github.com/spec/v1
oid sha256:105b7e8055248e71ccada00ea5a0b99095880e19dd9bf993d174ec5fc9531d22
size 1132700 |
import ArrowRightIcon from 'mdi-react/ArrowRightIcon'
import * as React from 'react'
import { Helmet } from 'react-helmet'
import Layout from '../components/Layout'
export default class JobsPage extends React.Component<any, any> {
constructor(props: any) {
super(props)
this.state = {
job... |
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
ABOUT THIS NODE.JS EXAMPLE: This example works with AWS SDK for JavaScript version 3 (v3),
which is available at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for JavaScript v3 Developer Gu... |
import { SagaResource } from '@tg-resources/redux-saga-router';
import { DummyResource } from '@thorgate/test-resource';
import { ConfigureStore, configureStore } from '@thorgate/test-store';
import { delay } from 'redux-saga/effects';
import { NetworkError } from 'tg-resources';
import { createFormSaveSaga, createSav... |
import { Component, h, Host, State, Prop, Event, EventEmitter, Watch, Element, Listen } from '@stencil/core'
import ComplexProp from '../../shared/decorators/complexProp'
import KeyboardFocus from '../../shared/decorators/keyboardFocus'
import { Colors, Size } from './types'
import Star from './star'
import veryDissati... |
import React, { useState } from 'react';
import { View, Image, Text, Linking } from 'react-native';
import { RectButton } from 'react-native-gesture-handler';
import AsyncStorage from '@react-native-community/async-storage';
import heartOutlineIcon from '../../assets/images/icons/heart-outline.png';
import unfavoriteI... |
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
/**
* TensorFlow.js Layers: Merge L... |
import { PropsWithChildren } from 'react';
import { useWidgetContext } from './Widget';
interface Props {
className?: string;
}
export function WidgetTaskbar({
children,
className,
}: PropsWithChildren<Props>) {
useWidgetContext();
return (
<div className="widget-header">
<div className="row">
... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { TagCreateComponent } from './tag-create.component';
describe('TagCreateComponent', () => {
let component: TagCreateComponent;
let fixture: ComponentFixture<TagCreateComponent>;
beforeEach(async () => {
await TestBed.configureTestin... |
import Component from "../../../../Component";
import { MinimalGalleryState } from "../..";
import ViewBase, { reducers } from "./ViewBase";
export class SceneView extends Component<MinimalGalleryState> {
constructor(store: __Component.Store) {
super(store);
}
render() {
const tsx = this.... |
export interface IAnalyzer <TArgs extends unknown[], TData extends unknown> {
/**
* @param {TArgs} args
* @returns {TData}
*/
analyze (...args: TArgs): TData;
} |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment>
<path d="M824.61 903.46c0 55.47-46.12 100.41-102.94 100.41H559.49l265.24-255.71v155.3z m-7.13-464.31L937.1 550 544.77 936.28 425.15 825.47zM515.67 964.87L339.58 1024l56.48-169.83zM206.85 2... |
/**
* An Image Popout Application which features a single image in a lightbox style frame.
* This popout can also be used as a form, allowing the user to edit an image which is being used.
* Furthermore, this application allows for sharing the display of an image with other connected players.
*
* @example
* ```ty... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const ChevronRightOutlineDimensions: {
height: number;
width: number;
}; |
/// <reference path="fourslash.ts"/>
////class Foo {
//// private xxx1 = 1;
//// protected xxx2 = 2;
//// public xxx3 = 3;
//// private static xxx4 = 4;
//// protected static xxx5 = 5;
//// public static xxx6 = 6;
//// foo() {
//// const { /*1*/ } = this;
//// const { /*2*/... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
// Feel free to extend this interface
// depending on your app specific config.
export interface EnvConfig {
API?: string;
ENV?: string;
}
export const Config: EnvConfig = {}; |
import React from 'react'
import classnames from 'classnames'
import { Button, Classes, Popover, Position, Menu, MenuItem, MenuDivider } from '@blueprintjs/core'
import { MdImageAspectRatio } from 'react-icons/md'
import { msg } from 'common/i18n/i18n'
import { rotate } from 'common/util/EffectsUtil'
import { bindMany... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Observable } from 'rxjs';
import { pluck, map, switchMap } from 'rxjs/operators';
import { Creator } from '@app/_models';
import { ArtistService } from '@app/_services';
import { Crumb } from '@app/_components... |
import { createIcon } from './createIcon/index'
export const GridOn = createIcon({
name: 'GridOn',
path: 'M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z'... |
import { Spec } from '@hayspec/spec';
import { isNumber } from '../..';
const spec = new Spec();
spec.test('perform tests', (ctx) => {
ctx.is(isNumber(0), true);
ctx.is(isNumber(100.0), true);
ctx.is(isNumber(-100.0), true);
ctx.is(isNumber(NaN), true);
ctx.is(isNumber(Infinity), true);
ctx.is(isNumber(un... |
import { Component, Input, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NavController, ModalController, LoadingController, AlertController } from '@ionic/angular';
import { DomSanitizer } from '@angular/platform-browser';
import { RestApiService } from './... |
import React from "react";
import ReactDOM from "react-dom";
import "./styles/index.css";
import App from "./components/App";
import * as serviceWorker from "./serviceWorker";
import { split } from "apollo-link";
import { WebSocketLink } from "apollo-link-ws";
import { getMainDefinition } from "apollo-utilities";
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.