text stringlengths 10 953k |
|---|
export * as Management from "./management";
export * as Storefront from "./storefront"; |
import { Foo } from './demo/foo';
import { Bar } from './demo/bar';
function demo() {
let bar = new Bar();
let barSaySomethingPromise = bar.barSaySomethingAsync();
barSaySomethingPromise.then(
(something) => {
console.log(something);
}
);
let foo = new Foo();
let f... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SelectLangComponent } from './select-lang.component';
describe('SelectLangComponent', () => {
let component: SelectLangComponent;
let fixture: ComponentFixture<SelectLangComponent>;
beforeEach(async(() => {
TestBed.configure... |
// public
export interface StorageService
{
persist(key: string, value: any): void;
persistInSession(key: string, value: any): void;
retrieve(key: string): any;
retrieveFromSession(key: string): any;
remove(key: string): void;
removeFromSession(key: string): void;
} |
// (C) 2022 GoodData Corporation
import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
import {
attributeElementsToAttributeElementArray,
getAllExceptTitle,
getAllTitle,
getFilteringTitleIntl,
getItemsTitles,
getLoadingTitleIntl,
getNoneTitleIntl,
getObjRef,
} from "../utils/At... |
// Copyright 2020-2021 OnFinality Limited authors & contributors
// SPDX-License-Identifier: Apache-2.0
import {Interface, Result} from '@ethersproject/abi';
import {Log, TransactionResponse} from '@ethersproject/abstract-provider';
import {BigNumber} from '@ethersproject/bignumber';
import {hexDataSlice} from '@ether... |
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import checker from 'vite-plugin-checker';
import { VitePWA } from 'vite-plugin-pwa';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), checker({ typescript: true }), VitePWA()],
server: {
fs: { allow: ['.',... |
import { IConnection } from "./IConnection";
import { IHttpConnectionOptions } from "./IHttpConnectionOptions";
import { HttpTransportType, ITransport, TransferFormat } from "./ITransport";
/** @private */
export interface INegotiateResponse {
connectionId?: string;
connectionToken?: string;
negotiateVersio... |
import type { ContractDefinition } from '@balena/jellyfish-types/build/core';
export const viewAllTransformerTypes: ContractDefinition = {
slug: 'view-all-transformer-types',
name: 'All Types',
type: 'view@1.0.0',
version: '1.0.0',
markers: ['org-balena'],
data: {
namespace: 'Transformers',
allOf: [
{
... |
import React from 'react';
import { Alert } from '../../../components/Alert';
import { Button, ButtonVariant } from '../../../components/Button';
import { Layout } from '../../../components/Patient';
const NoAvPermissionPage = () => {
return (
<Layout>
<Alert
title={`To use Owl Health, we need\nyou... |
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptModule } from 'nativescript-angular/nativescript.module';
import { AppRoutingModule } from './app-routing.module.tns';
import { AppComponent } from './app.component';
import { IndexComponent } from './modules/tienda/components/index/index... |
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
@Column({ unique: true })
email: string;
@Column({ default: true })
isActive: boolean;
@Column()
password: string;
} |
module.exports = robustPointInPolygon
var orient = require('robust-orientation')
function robustPointInPolygon(vs: number[][], point: number[]) {
const [x, y]: any = point;
var n = vs.length
let inside: number = 1
var lim: number = n
for(var i = 0, j = n-1; i<lim; j=i++) {
const a:number[] = vs[i]
... |
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as tc from '@actions/tool-cache';
import * as path from 'path';
const IS_WINDOWS = process.platform === 'win32';
export async function findRubyVersion(version: string) {
const installDir: string | null = tc.find('Ruby', version);... |
import { Component, OnInit } from '@angular/core';
import { WebService } from 'src/app/service/webservice.service';
import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { ToastrService } from 'ngx-toastr';
@Component({
selector: 'list-usuario',
templateUrl: './list-usuario.component.html',
... |
export interface ILoginCredentials {
usuario: string;
senha: string;
} |
import { MarketDate } from '@raptorsystems/krypto-rates-common/src/types'
import {
DbRate,
NullableDbRate,
} from '@raptorsystems/krypto-rates-sources/src/types'
import IORedis from 'ioredis'
import { RatesDb } from '../types'
const host = process.env.REDIS_URL
const key = (...keys: string[]): string => keys.join... |
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import {
test,
testPerm,
assert,
assertEquals,
assertStrContains
} from "./test_util.ts";
test(function filesStdioFileDescriptors(): void {
assertEquals(Deno.stdin.rid, 0);
assertEquals(Deno.stdout.rid, 1);
assertEquals(Deno.std... |
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import { FunctionalComponent } from 'vue';
import SlidersTwoToneSvg from '@ant-design/icons-svg/lib/asn/SlidersTwoTone';
import AntdIcon, { AntdIconProps } from '../components/AntdIcon';
export interface SlidersTwoToneIconType extends FunctionalComponen... |
/*
Copyright 2016, 2019, 2021 The Matrix.org Foundation C.I.C.
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 a... |
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { SharedModule } from "@shared/shared.module";
import { PurchaseOrdersComponent } from "./purchase-orders.component";
import { CreatePurchaseOrderComponent ... |
import styled from 'styled-components';
export const EmptyStateWrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
flex-flow: column;
width: 100%;
height: 100%;
padding: 20px;
animation: fadein 0.3s;
@keyframes fadein {
from {
opacity: 0;
}
to {
... |
import { createContext, Dispatch } from "react";
import { IAction } from "./formFieldsReducer";
interface IFormFieldContext {
name: string;
value: string;
}
// <IFormFieldContext | null>
// <React.Dispatch<IAction>>
const FormFieldsContext = createContext<Dispatch<IAction> | null>(null);
export default FormFiel... |
import {computeKeyPath, Obj, setAt} from "../../../src"
describe("setAt", (): void => {
it("sets the value on the object at the specified key path", (): void => {
const object = {polygons: {rectangles: {squares: {}}}} as Obj
const keyPath = computeKeyPath("polygons", "rectangles", "squares", "magic... |
import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.min.css';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { ConnectedRouter } from 'connected-react-router';
import { Provider } from 'react-redux';
import { history, ... |
import React from 'react';
import { uniq } from 'lodash';
import retry from '@skidding/async-retry';
import {
createValues,
updateFixtureStateProps,
resetFixtureStateProps,
removeFixtureStateProps
} from 'react-cosmos-shared2/fixtureState';
import { uuid } from 'react-cosmos-shared2/util';
import { HelloMessage... |
import AntButton from "ant-design-vue/lib/button";
import "ant-design-vue/lib/button/style";
import { defineComponent } from "vue";
AntButton.name = "XButton";
import props from "./props";
const Button = defineComponent({
props: {
...props,
loading: {
type: Boolean,
default: false
},
onC... |
import { Associate } from '@modules/users/infra/typeorm/entities/Associate';
import { IAssociatesRepository } from '@modules/users/infra/typeorm/repositories/IAssociatesRepository';
import AppError from '@shared/errors/AppError';
import { inject, injectable } from 'tsyringe';
@injectable()
export class ListAssociatesS... |
<TS language="fr" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Faites un clic-droit pour modifier l'adresse ou l'étiquette</translation>
</message>
<message>
<source>Create a new address</source... |
import * as HID from 'node-hid';
import {
delayMs,
fallbackKeyboardDeviceInfo,
IKeyboardDeviceInfo,
} from '~/shared';
import { IListenerPortImpl, makeListenerPort } from '~/shell/funcs';
import {
getArrayFromBuffer,
zeros,
} from '~/shell/services/keyboardDevice/Helpers';
export interface IDeviceWrapper {
... |
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { GroupService } from 'src/app/services/group.service';
import { GroupStore } from 'src/app/store/group.store';
@Component({
selector: 'app-subscribe',
templateUrl: './subscribe.compon... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import expect = require('expect.js');
import {
Message
} from '@phosphor/messaging';
import {
Widget
} from '@phosphor/widgets';
import {
ClientSession
} from '@jupyterlab/apputils';
import {
CodeConsole
... |
export const uncapitalize = (value: string): string =>
value.replace(/\w\S*/g, w => w.replace(/^\w/, c => c.toLowerCase())) |
import { EffectPreRenderContext, EffectRenderContext, ParamType, PostEffectBase, Type, Values } from '@delirvfx/core'
interface Params {
value: ParamType.ColorRGBA
}
export default class TheWorldPostEffect extends PostEffectBase {
/**
* Provide usable parameters
*/
public static provideParameters() {
... |
import * as React from 'react';
import {useRouteMatch} from 'react-router-dom';
import DocsPage from '../visual/DocsPage';
import NavBar from '../visual/NavBar';
import NavBarLink from '../visual/NavBarLink';
export default function Docs() {
const match = useRouteMatch<{selected: string}>('/help/:selected');
cons... |
import styled from 'styled-components';
export const Container = styled.footer`
background: #E23802;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding-bottom: 20px;
strong{
a{
margin-left: 5px;
color: white;
... |
export interface OnGatewayDisconnect {
handleDisconnect(client: any): any;
} |
import { Component } from '@angular/core';
import { AuthenticationService, TokenPayload } from '../authentication.service';
import { Router } from '@angular/router';
@Component({
templateUrl: './register.component.html'
})
export class RegisterComponent {
credentials: TokenPayload = {
email: '',
name: '',
... |
import { ApiEpisode, ApiPodcast } from 'foxcasts-core/lib/types';
import { AppBar } from 'mai-ui/dist/components/appbar';
import { ListItem } from 'mai-ui/dist/components/list';
import { Typography } from 'mai-ui/dist/components/Typography';
import { View, ViewContent } from 'mai-ui/dist/components/view';
import { h, V... |
// //Author Maxim Kuzmin//makc//
import {Component} from '@angular/core';
import {AppSkinCoreNotificationView} from './core-notification-view';
/** Ядро. Извещение. Компонент. */
@Component({
selector: 'app-skin-core-notification',
templateUrl: './core-notification.component.html',
styleUrls: ['./core-notificat... |
import GameClientPacket from "./GameClientPacket";
import { GlobalEvents } from "../../mmocore/EventEmitter";
import L2Character from "../../entities/L2Character";
import L2PartyMember from "../../entities/L2PartyMember";
export default class PartySmallWindowAll extends GameClientPacket {
// @Override
readImpl(): ... |
import { IStyleSheetProps } from '../config/IStylesheetProps';
export interface IAsModuleProps {
scopeBehaviour?: 'global' | 'local';
globalModulePaths?: Array<RegExp>;
generateScopedName?: (name: string, fileName: string, css: String) => string | string;
plugins?: Array<any>;
}
export interface IPluginCommon ... |
<TS language="zh_TW" 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>
<translation>產生一個新位址</translation... |
/* eslint-disable */
/* tslint:disable */
// @ts-ignore
import icon from 'vue-svgicon'
icon.register({
'school': {
width: 200,
height: 200,
viewBox: '0 0 1024 1024',
data: '<defs/><path pid="0" d="M1008.575 475.577l-102.4-102.4a51.848 51.848 0 00-36.164-14.907h-153.6v-153.6a51.848 51.848 0 00-14.906-3... |
export interface Field {
readonly id: string;
readonly label: string;
readonly type: string;
readonly value: string;
readonly placeholder?: string;
readonly options?: Array<string>;
getValue(): object;
render(context?: Element): Field;
} |
class ConvertJSONtoUnits {
public initJson: object;
constructor() {
this.initJson = {
pressure: "1",
temp: "2",
};
}
public convertToUnits(jsonObject: Object) {
const unitsObject = {};
for (var key in jsonObject) {
if (jsonObject.hasOwnProperty(key)) {
unitsObject[key... |
import {BtnContainer} from '../common/btn-container';
import {AddOwnerToCodeForm} from './add-owner-to-code-form';
export class AddOwnerToCodeFormBtnc extends BtnContainer{
form : AddOwnerToCodeForm;
constructor(root: HTMLElement) {
super(root);
}
decorate() {
super.decorate();
... |
// 枚举类型的值
export function enumContains<T extends object, V = unknown>(enums: T, val: V) {
return Object.values(enums).includes(val);
} |
import { h } from "harmaja"
import * as L from "lonna"
import { BoardCoordinateHelper } from "./board-coordinates"
import { Board, Container } from "../../../common/src/domain"
import { BoardFocus } from "./board-focus"
import { onBoardItemDrag } from "./item-drag"
import { Dispatch } from "../store/board-store"
type ... |
import * as path from 'path';
import { CommandTaskProvider, TitaniumTaskBase, TitaniumTaskDefinitionBase, TitaniumBuildBase } from './commandTaskProvider';
import { Helpers } from './helpers';
import { TaskExecutionContext } from './tasksHelper';
import { selectDistributionTarget } from '../quickpicks/build/common';
im... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-auth-layout',
templateUrl: './auth-layout.component.html',
styleUrls: ['./auth-layout.component.scss']
})
export class AuthLayoutComponent implements OnInit, OnDestroy {
test: Dat... |
/**
* Copyright 2020 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 law or agreed ... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AppTranslationModule } from '../../app.translation.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgaModule } from '../../theme/nga.module';
import { Login } from './login.component'... |
import { Equatable } from "@siteimprove/alfa-equatable";
import { Hash, Hashable } from "@siteimprove/alfa-hash";
import { Serializable } from "@siteimprove/alfa-json";
import * as json from "@siteimprove/alfa-json";
/**
* @public
*/
export class Display implements Equatable, Hashable, Serializable {
public stati... |
import './setup';
import Wallet, { WalletConfig, ConfigApp } from '../src/wallet';
import { decrypt } from '../src/encryption/decrypt';
import { ECPair, bip32 } from 'bitcoinjs-lib';
import { decryptContent, encryptContent, getPublicKeyFromPrivate } from 'blockstack';
import { DEFAULT_GAIA_HUB } from '../src/utils/gaia... |
export function getLocation(): Promise<Position> {
return new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition(resolve, reject);
});
} |
import { State } from "../Store";
import { useSelector, useDispatch } from "react-redux";
import { useEffect } from "react";
import { CasterOverlayState, loadCastingOverlay } from "../reducer/CasterOverlay";
export const castingOverlayLoadedSelector = (state: State): boolean => state.ui.loadedEntities.castingOverlay;
... |
import { Ref, ref, watch, readonly, onUnmounted } from 'vue'
interface UseFlyoutOptions {
el: Ref<HTMLElement | undefined>
onFocus?(): void
onBlur?(): void
}
export const focusedElement = ref<HTMLElement>()
let active = false
let listeners = 0
export function useFlyout(options: UseFlyoutOptions) {
const foc... |
import React from 'react';
import { render } from '@testing-library/react';
import { Button } from './button';
describe('Button component', () => {
it('should correctly render text inside the button', () => {
const MOCK_TEXT = 'mock text';
const { getByText } = render(<Button>{MOCK_TEXT}</Button>);
con... |
declare module "express-metrics-middleware" {
export function signalIsNotUp(): void;
export function signalIsUp(): void;
export function createMiddleware(option:Object);
} |
import { TestBed } from '@angular/core/testing';
import { TipoEspacioIluminadoService } from './tipo-espacio-iluminado.service';
describe('TipoEspacioIluminadoService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: TipoEspacioIluminadoService = T... |
import { ApiProperty } from '@nestjs/swagger';
import {
IsEmail,
IsJWT,
IsNotEmpty,
IsString,
Matches,
MinLength,
} from 'class-validator';
import { Match } from 'src/utils/decorators/match.decorator';
export class SignUpUserDto {
@IsString()
@ApiProperty({
description: 'user full name',
type: ... |
import { Result } from "../../../../../shared/core/Result";
import { UseCaseError } from "../../../../../shared/core/UseCaseError";
export namespace GetPostBySlugErrors {
export class PostNotFoundError extends Result<UseCaseError> {
constructor(slug: string) {
super(false, {
message: `Couldn't find... |
import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesClientResolvedConfig } from "../WorkSpacesClient";
import { ImportWorkspaceImageRequest, ImportWorkspaceImageResult } from "../models/models_0";
import {
deserializeAws_json1_1ImportWorkspaceImageCommand,
serializeAws_json1_1ImportWorkspaceImageCommand,
} fr... |
const formatters = [[`LeKoArts`, `LekoArts`]]
export default formatters |
const baseUrl = "/api/projects";
export function createFetchProjectsRequest(id?: number): PortfolioAPIRequest {
return {
method: "GET",
url: `${baseUrl}${id ? `?id=${id}` : ""}`,
};
}
export function createProjectRequest(
name: string,
description: string,
content: string,
date: Date,
projectIma... |
import { Injectable } from '@angular/core';
import * as _ from 'underscore';
@Injectable()
export class PagerService {
constructor() { }
getPager(totalItems: number, currentPage: number = 1, pageSize: number = 8) {
// calculate total pages
let totalPages = Math.ceil(totalItems / pageSize);
let startPa... |
import { Context } from 'egg';
import BaseController from '../base';
import fs = require('fs');
import path = require('path');
// 故名思意 异步二进制 写入流
import awaitWriteStream = require('await-stream-ready');
// 管道读入一个虫洞。
import sendToWormhole = require('stream-wormhole');
import dayjs = require('dayjs');
export default clas... |
/** @ng2api @module core */
/** */
import { Ng2StateDeclaration } from "./interface";
import { OpaqueToken, ModuleWithProviders, Provider, Injector } from "@angular/core";
import { LocationStrategy, HashLocationStrategy, PathLocationStrategy } from "@angular/common";
import { UrlRuleHandlerFn, TargetState, TargetStateD... |
/// <reference types="react" />
declare const NotebookWithDecorativeCover: ({ size, rem }: {
size: number | string;
rem?: boolean | undefined;
}) => JSX.Element;
export default NotebookWithDecorativeCover; |
import styled from "@emotion/styled";
import * as React from "react";
const QuestionContainer = styled.div`
margin-bottom: 1rem;
`;
const Title = styled.h4`
font-size: 1.1rem;
font-weight: bold;
margin: 0;
`;
interface IQuestionProps {
children: React.ReactNode;
title: string;
}
export const Question = ... |
// tslint:disable: no-console
import * as should from "should";
import * as sinon from "sinon";
import { DateTime, Double, UAString, UInt32 } from "node-opcua-basic-types";
import { LocalizedText, LocalizedTextLike } from "node-opcua-data-model";
import { NodeIdLike } from "node-opcua-nodeid";
import { StatusCodes } f... |
import { Injectable, OnDestroy } from '@angular/core';
import {
Observable,
BehaviorSubject,
from,
fromEventPattern,
merge,
NEVER,
MonoTypeOperatorFunction,
of,
forkJoin
} from 'rxjs';
import { mergeMap, filter, switchMap, scan, take, toArray, withLatestFrom, debounceTime } from 'rxjs/operators';
imp... |
import { Component } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { ComponentFixture, TestBed, fakeAsync, tick, async } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { FormValidators } from '../... |
import { NgModule, ValueProvider } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ContextMenuComponent } from './contextmenu.component';
import { ContextMenuModule } from './contextmenu.module';
/**
* NgModule definition for the ContextMenu component with providers.
*/
@NgModule({... |
declare module 'rebass'; |
/**
* This file is part of the TEKKL core package
*
* (c) Alexander Bachmann <email.bachmann@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { NgModule } from '@angular/core';
import { CommonModule } from '@angula... |
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
import { CreateMultipartUploadOutput, CreateMultipartUploadRequest } from "../models/models_0";
import { Command as $Command } from "@aws-sdk/smithy-client";
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandle... |
import { observer } from 'mobx-react';
import * as React from 'react';
import { RecursiveLabel, TypeName, TypeTitle } from '../../common-elements/fields';
import { FieldDetails } from '../Fields/FieldDetails';
import { FieldModel, SchemaModel } from '../../services/models';
import { ArraySchema } from './ArraySchema... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lt" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Bitcoin</source>
<translation>Apie Bitcoiną</translation>
</messa... |
import { ElementRef, TemplateRef } from "@angular/core";
/**
* Data structure for definig properties of a `Dialog` component.
**/
export interface DialogConfig {
/**
* Title for the `Dialog` header.
*/
title?: string;
/**
* Body content for the `Dialog`.
*/
content: string | TemplateRef<any>;
/**
* Pa... |
import { reverse } from 'lodash-es'
import reportError from './reportError'
interface ColorScale {
domain: number[]
range: string[]
}
/**
* This "scales" variable is derived from "src/components/colorscale/scales.js" in plotly.js@1.34.0.
* The following copyright and license information applies for the contents... |
import { CoverageCollection, CoverageItem } from "../model/coverage.model"
import FilesystemService from "../service/filesystem.service"
enum LcovToken {
TEST_NAME = "TN",
SOURCE_FILE = "SF",
FUNCTION = "FN",
FUNCTION_HITS = "FNDA",
FUNCTIONS_FOUND = "FNF",
FUNCTIONS_HIT = "FNH",
BRANCH = "BRDA",
BRANC... |
import chalk from 'chalk'
import { remove, existsSync } from 'fs-extra'
import { join } from 'path'
import { getPkgs } from '../utils/getPkgs'
import { ICmdOpts } from './interface'
const DEFAULT_OUTPUT = ['dist', 'es', 'build']
/**
* Clean all pkgs build output (dist/build/es)
*/
export const cleanOutput = async (... |
import * as React from 'react'
import { setCustomTheme, setTheme } from '@app/actions/theme.action'
import ThemeManager from '@app/styles/ThemeManager'
import LoadingSection from '@components/base/LoadingSection'
import { ThemeOptions, ThemeProvider } from '@material-ui/core'
import { MessageListenerService } from '@s... |
import {Component} from '@angular/core';
import {PartyService} from '../services/party';
@Component({
selector: 'party',
template: `<ul>
<li *ngFor="let person of partyService.attendees">
{{person.name}}
</li>
</ul>
`
})
export class Party {
constructor(public partyService:PartyService) {
... |
import { WIZARD_INFO_TYPEKEYS } from "../../actions/wizardInfoActions/typeKeys";
import WizardInfoType from "../../actions/wizardInfoActions/wizardInfoActionType";
/* State Shape
{
statusMessage: string;
}
*/
const initialState = "...";
const statusMessage = (
state: string = initialState,
action: WizardInfo... |
import React, { useEffect } from "react";
import { createTextNode } from "../../utilities/elementCreation";
import { DocumentElement } from "../../models/documentModels"
import TextCompnent from "./TextCompnent";
import ImageComponent from "./ImageComponent";
import { connect } from "react-redux";
import { State } from... |
import * as React from 'react';
import { max as d3Max } from 'd3-array';
import { Axis as D3Axis } from 'd3-axis';
import { scaleLinear as d3ScaleLinear, ScaleLinear as D3ScaleLinear } from 'd3-scale';
import { classNamesFunction, getId, getRTL, find, warnDeprecations } from 'office-ui-fabric-react/lib/Utilities';
impo... |
import { Box, Center, Flex } from "@chakra-ui/react";
import { t, Trans } from "@lingui/macro";
import { useLingui } from "@lingui/react";
import { components } from "react-select";
import {
salmonRunWeapons,
weaponsWithHeroCategorized,
} from "utils/lists/weaponsWithHero";
import { weaponsAliases } from "utils/lis... |
import * as Types from '../constants/types/entities'
import * as Constants from '../constants/entities'
import * as EntitiesGen from '../actions/entities-gen'
const initialState = Constants.makeState()
export default function(state: Types.State = initialState, action: EntitiesGen.Actions): Types.State {
switch (act... |
/*
* Copyright 2021 Red Hat, Inc. and/or its affiliates.
*
* 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 express,{ Application } from "express";
import express_session from "express-session";
import helmet from "helmet";
import corse from 'cors';
import { Controller } from "./utils/interfaces/controller.interface";
import { initialize, session } from "passport";
export class App{
public express:Application;
... |
import {
state,
action,
computed,
RcModuleV2,
} from '@ringcentral-integration/core';
import proxify from '../proxy/proxify';
import { defaultIdentityFunction, convertListToMap } from './loggerBaseHelper';
import { Deps, LogOptions, Options } from './LoggerBase.interface';
export abstract class LoggerBase<T = ... |
import {
CheckCircleIcon,
CloudDownloadIcon,
CodeIcon,
CogIcon,
CollectionIcon,
DocumentDownloadIcon,
ExclamationCircleIcon,
LightBulbIcon,
LinkIcon,
PresentationChartLineIcon,
ServerIcon,
StatusOnlineIcon,
SwitchVerticalIcon,
TerminalIcon,
XCircleIcon,
} from '@heroicons/react/solid';
imp... |
<TS language="uk" 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>
... |
export { default } from './PaymentMethodRow'; |
import React, { useCallback, useEffect, useRef } from "react";
import { useRealTime } from "../../../../Generic/useRealTime";
import useTimelineParameters from "./useTimelineParameters";
export default function NowMarker({
showLabel = false,
setScrollToNow,
}: {
showLabel?: boolean;
setScrollToNow?: (f... |
import {NgModule} from "@angular/core";
import {JigsawInputModule} from "jigsaw/pc-components/input/input";
import {InputBasicDemoComponent} from "./demo.component";
import {JigsawDemoDescriptionModule} from "app/demo-description/demo-description";
@NgModule({
declarations: [InputBasicDemoComponent],
exports: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.