text stringlengths 10 953k |
|---|
/**
* @license
* Copyright 2019 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 ... |
import { Component, OnInit } from '@angular/core';
import { NgForm } from "@angular/forms";
import { Router } from "@angular/router";
import { UserService } from '../../shared/user.service';
@Component({
selector: 'app-sign-in',
templateUrl: './sign-in.component.html',
styleUrls: ['./sign-in.component.css']
})
... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { Polic... |
/**
* @license
* Copyright 2018 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 * as crypto from "crypto";
import * as pgp from "pg-promise";
export interface IConfig {
readonly cn: {
database: string;
host: string;
password: string;
port: number;
user: string;
};
}
export class Db {
public static generateId(): number {
const buf... |
import { IntegrationTestConfig } from '../../helpers'
import { wrapper } from '../wrapper'
wrapper(({ Relink }: IntegrationTestConfig): void => {
const { createSource, isRelinkSource } = Relink
test('With Relink Source', (): void => {
const output = isRelinkSource(createSource({
key: 'isRelinkSource/tr... |
/// <reference path="lazy.js.d.ts" />
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
interface Foo {
foo(): string;
}
interface Bar {
bar(): string;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -... |
import { Component, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { BasePageComponent } from '../../base-page';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Store } from '@ngrx/store';
import { IAppState } from '../../../interfaces/app-state';
import { HttpServ... |
import { BrowserWindow } from 'electron';
const windowStateKeeper = require('electron-window-state');
const winStateKeeper = (opts: any) => {
const { width, height } = opts;
const winState = windowStateKeeper({
defaultHeight: height,
defaultWidth: width,
});
const win = new BrowserWindow({
...opt... |
import PrivateSite from '../schema/AbstractPrivateSite';
import { ISiteMetadata, ETorrentStatus, ITorrent } from '@/shared/types'
import Sizzle from 'sizzle';
import urlparse from 'url-parse';
import { merge } from 'lodash-es';
import dayjs from '@/shared/dayjs';
import { parseSizeString } from '@/shared/filter';
expo... |
import { ReactNode, ComponentType } from 'react';
import { BaseProps } from '../types';
export interface CarouselCardProps extends BaseProps {
scrollDuration?: number;
disableAutoScroll?: boolean;
disableAutoRefresh?: boolean;
children?: ReactNode;
id?: string;
}
declare const CarouselCard: Compon... |
import * as React from 'react';
import cx from 'classnames';
import dayjs from 'dayjs';
import { getMonthDay, getGroupArray } from '../utils';
import { WeekText } from '../utils/constants';
export interface MonthWrapperProps {
value?: string;
prefix?: string;
className?: string;
children?: React.ReactElement ... |
import {
Validators,
ValidatorFn
} from '@angular/forms';
import { ControlProperty } from '../models';
export class CustomValidators {
//This is custom validations for macthing two fields are equal .
static match(key: string) {
return (control: any) => {
if (control.value && contro... |
export { default } from './component';
export type { ProjectGalleryProps } from './types'; |
import React from 'react';
import { Container } from './styles';
interface TooltipProps {
title: string;
className?: string;
}
const Tooltip: React.FC<TooltipProps> = ({
title,
className = '',
children,
}) => {
return (
<Container className={className}>
<span>{title}</span>
{children}
... |
import { NgModule } from '@angular/core';
import { TranslateModule } from '@ngx-translate/core';
import { CommonModule } from '@angular/common';
import { Login } from './components/login.component';
import { FormsModule } from '@angular/forms';
import { AuthModule } from '../auth/auth.module';
import { I18NModule } fro... |
export declare const orderFillOrKillRequestsSchema: {
id: string;
type: string;
items: {
properties: {
signedOrder: {
$ref: string;
};
fillTakerAmount: {
$ref: string;
};
};
required: string[];
ty... |
import { NotificationVariant } from './../../types/notifications';
import * as types from './types';
/**
* Returns an action that enqueues a new notification to be displayed.
* @param content The text displayed on the notification.
* @param variant The variant of the notification.
*/
export function enqueueNotific... |
import fs from "fs";
import "mocha";
import should from "should";
import stream from "stream";
import zlib from "zlib";
import { XmlParser } from "../src/parser";
describe("interested Nodes", () => {
it("should properly parse a simple file.", (done) => {
const xmlStream = fs.createReadStream("./test/TestFiles/item... |
import Message from "@/protocol/network/messages/Message";
export default class JobAllowMultiCraftRequestMessage extends Message {
public enabled: boolean;
constructor(enabled = false) {
super();
this.enabled = enabled;
}
} |
import { NextFunction, Request, Response } from "../utils/server";
export function logger(req: Request, res: Response, next: NextFunction) {
console.info("template logging");
next();
} |
import { FilterStore } from './filter.store'
export default new FilterStore() |
import { html } from 'lit-element';
import { DemoTabs } from './demo-tabs.component';
import '@spectrum/sp-tabs';
import '@spectrum/sp-container';
import '@spectrum/sp-rule';
import '@spectrum/sp-demo';
import '@spectrum/sp-tabs';
export default function template(this: DemoTabs) {
return html`
<sp-container>
... |
import { IBuild } from "./Build";
import { IRelease } from "./Release";
export interface IBuilds {
[buildId: string]: IBuild;
}
export interface IReleases {
[releaseId: string]: IRelease;
}
export interface IPipeline {
builds: IBuilds;
releases: IReleases;
getListOfBuilds: (buildIds?: Set<string>) => Promise... |
export { ThemeProvider } from './Theme';
export { Router, ROUTES } from './Router'; |
//created by Kevin - (https://github.com/Kyukishi)
//simple hello command
import{
Discord,
SimpleCommand,
SimpleCommandMessage,
}from 'discordx';
@Discord()
class helloCommand{
@SimpleCommand('hello', {aliases: ['hi']})
hello(command: SimpleCommandMessage){
command.message.reply(`👋 ${comm... |
import Helpers from '../../src/main';
import Tester from '@h-toolkit/tester';
Tester.assert({
method: {
_function: Helpers.Math.randomNumberInRange,
method_name: 'randomNumberInRange',
multiple: [
{ args: [2, 2], expect: 2 },
{ args: [2, 10], expect: 2 },
{ args: [2, 5], expect: 2 },
{ args: [2, 2, ... |
function canMakeArithmeticProgression (arr: number[]): boolean {
arr.sort((a, b) => a - b);
const diff = arr[1] - arr[0];
for (let i = 2; i < arr.length; i++) {
if (arr[i] - arr[i - 1] !== diff) {
return false;
}
}
return true;
} |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const _ReplicaDescription: _Structure_ = {
type: "structure",
required: [],
members: {
RegionName: {
shape: {
type: "string"
}
}
}
}; |
import { Consumer } from "../../consumer/entity/consumer.entity";
export class MockRedirectRepository {
public url(redirect_url: string, consumer: Consumer) {
expect(redirect_url).toEqual("test123.com");
expect(consumer).toBeInstanceOf(Consumer);
}
} |
import { buildProps, definePropType } from '@element-plus/utils/props'
import { isObject } from '@element-plus/utils/util'
import type { ExtractPropTypes } from 'vue'
import type { Dayjs } from 'dayjs'
export const dateTableProps = buildProps({
selectedDay: {
type: definePropType<Dayjs>(Object),
},
range: {
... |
import { InputType, Field, Int } from 'type-graphql';
@InputType()
export class ProductInput {
@Field()
readonly name: string;
@Field()
readonly description: string;
@Field()
readonly imageURL: string;
@Field()
readonly size: string;
@Field()
readonly color: string;
@Field()
read... |
import { FunctionComponent } from 'react';
export interface ITikTokProps {
/** TikTok id */
tikTokId: string;
}
export declare const TikTok: FunctionComponent<ITikTokProps>; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Mpaycoin</source>
<translation>Pri Mpaycoin</translation>
</message>
<message>
<locatio... |
// Type definitions for SoundJS 0.6.0
// Project: http://www.createjs.com/#!/SoundJS
// Definitions by: Pedro Ferreira <https://bitbucket.org/drk4>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/*
Copyright (c) 2012 Pedro Ferreira
Permission is hereby granted, free of charge, to any person obt... |
import { Input, Output, EventEmitter, Directive, TemplateRef, ContentChild, ElementRef } from '@angular/core';
@Directive({ selector: 'ngx-datatable-merge-header' })
export class DatatableMergeHeaderDirective {
@Input() start:number = 0;
@Input() colspan:number = 1;
@Input() title:string;
@Input() clas... |
/* istanbul ignore file */
import { injectable } from 'inversify';
import 'reflect-metadata';
import { Observable } from 'rxjs';
import {
EdgeType,
NodeType,
NodeTypeConnectionInfo,
} from '../../shared/schema';
import { QueryResult } from '../../shared/queries';
/**
* A service that can be used to request inf... |
/*
* Copyright © 2018 Atomist, 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... |
import type { AnyAction } from 'redux';
import type { AccountsState } from '../accounts/reducer';
import type { InventoryState } from '../inventory/reducer';
import type { ShellState } from '../shell/reducer';
import type { ReviewsState } from '../item-review/reducer';
import type { LoadoutsState } from '../loadout/red... |
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { MatButtonModule } from '@angular/material/button';
import { MatButtonToggleModule } from '@angular/material/button-toggle';
import { MatDividerModule } from '@angular/material/divider';
import { MatIconModule } from '@ang... |
import PostLike, { PostLikeInput } from '../models/PostLike'
export default class PostLikeRepository {
public static async create(payload: PostLikeInput) {
return PostLike.create(payload)
}
public static async delete({ id }: { id: number }) {
return PostLike.destroy({ where: { id } })
}
public stat... |
import { createCheckers, ITypeSuite } from 'ts-interface-checker';
import { showNotification } from 'modules/notifications/notifications';
const backendUrl = process.env.REACT_APP_BACKEND_HOST || '';
const DEFAULT_TIMEOUT = 10000;
export enum Method {
GET = 'GET',
POST = 'POST',
PUT = 'PUT',
DELETE = 'DELETE... |
import type { CSSObjectContext, CSSVisitorHandlers } from "../utils"
import { createRule, defineCSSVisitor } from "../utils"
export default createRule("no-number-trailing-zeros", {
meta: {
docs: {
description: "disallow trailing zeros in numbers.",
category: "Stylistic Issues",
... |
import { generateContext } from 'contexts';
enum ActionType {
CollapseChrome,
ExpandChrome,
HideChrome,
HideSpinner,
ShowChrome,
ShowSpinner,
}
type State = {
chromeCollapsed: boolean;
showChrome: boolean;
showSpinner: boolean;
}
type Action =
| { type: ActionType.CollapseChrome }
| { type: Act... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {
CheckProvider,
ModuleSignature,
ModuleSignatureExport,
ModuleSignatureType,
} from "../types";
import {JSRoot} from "... |
import { Injectable, EventEmitter } from '@angular/core';
import { DataService } from './data.service';
import { Observable } from 'rxjs';
import { catchError } from 'rxjs/operators';
import { CompleterItem } from '../model/completer-item';
@Injectable()
export class LocalDataService extends DataService {
public da... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NotFoundComponent } from './not-found/not-found.component';
import { HomeComponent } from './home/home.component';
import { BestEffortsModule } from '../best-efforts/best-efforts.module';
import { RouterModule } from '@an... |
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { AuthProvider, useAuth } from '../src'
describe('CrossidAuthProvider', () => {
it('useAuth should initializes a client', async () => {
// // see https://react-hooks-testing-library.com/usage/advanced-hooks#context
c... |
/**
* @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 {ɵɵdefineComponent} from '../../src/render3/index';
import {ɵɵcontainer, ɵɵcontainerRefreshEnd, ɵɵcontainerRe... |
export default postComments;
declare const postComments: JSX.Element;
//# sourceMappingURL=post-comments.d.ts.map |
import faker from 'faker';
import {expect} from 'chai';
import PostgresAdapter from '../../../data_access_layer/mappers/db_adapters/postgres/postgres';
import Logger from '../../../services/logger';
import ContainerStorage from '../../../data_access_layer/mappers/data_warehouse/ontology/container_mapper';
import Contai... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
export * from "./color-mode-button"; |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import {Form, FormsModule} from "@angular/forms";
import {RouterModule, Routes} from "@angular/router";
import {HomeComponent} from "../home/home.component";
import {LoginComponent} from "../login/login.component";
import {CardListComponent} fro... |
import React from 'react'
import { IconCircle24, LinkWrapper, TextIcon } from '~/components'
import { toPath } from '~/common/utils'
import { fragments } from './gql'
import styles from './styles.css'
import { DigestPlainCircle } from './__generated__/DigestPlainCircle'
export type CircleDigestPlainProps = {
cir... |
describe('Markdown Editor / History', () => {
const selectors = {
getInput: () => {
return cy.get('[data-test-id="markdown-textarea"] textarea');
},
getToggleAdditionalActionsButton: () => {
return cy.findByTestId('markdown-action-button-toggle-additional');
},
getRedoButton() {
... |
/*
** StandoffCase Copyright (C) 2020 sunaiclub
** Full License is in the root directory
*/
import { CSSProperties, useEffect, useRef, useState } from "react";
import { classWithModifiers } from "resources/utils";
export default function ContentTransition(props: { in?: any[]; disabled?: boolean; className?: string;... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* A... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', ... |
import { promises as fsPromises } from 'fs';
import { testInjector } from '@stryker-mutator/test-helpers';
import { File } from '@stryker-mutator/api/core';
import { expect } from 'chai';
import chaiJestSnapshot from 'chai-jest-snapshot';
import { Instrumenter } from '../../src';
import { createInstrumenterOptions } ... |
import {expect} from 'chai';
import * as fs from 'fs';
import {join} from 'path';
import {MITLicenceTpl} from '../../src/interfaces/LicenseTpl';
import {Fixture} from '../../src/lib/Fixture';
import {tmpFile} from '../util/tmp-test';
describe('Fixture', () => {
let tmpLoc: string;
let fix: Fixture;
before('init... |
import { Facet } from './facet/facet.model';
import { NamedModel } from './named-model.model';
import { Previewable } from './previewable.model';
/**
* A suggestion represents a query that has been proposed to the user, due of being popular,
* matching with the current search query...
*
* @public
*/
export interf... |
// smithy-typescript generated code
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,
HandlerEx... |
type Category = {
id: number;
parentId: number;
slug: string;
name: string;
}
type Comment = {
username: string;
avatar: string;
message: string;
date: number;
}
type SFMLabModel = {
id: number;
name: string
image?: string;
extension: string;
category: string;
description?: string;
image... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-risk-politics',
templateUrl: './risk-politics.component.html',
styleUrls: ['./risk-politics.component.scss']
})
export class RiskPoliticsComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
/*
Copyright 2022 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 agreed to in ... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { EventEmitter } from "events";
import { TaskManagerFactory } from "@fluidframework/agent-scheduler";
import { ITelemetryLogger } from "@fluidframework/common-definitions";
import {
IFluidObject,
IFlu... |
import emotion from './emotion';
import createEmotionServer from 'create-emotion-server';
export const {
flush,
hydrate,
cx,
merge,
getRegisteredStyles,
injectGlobal,
keyframes,
css,
sheet,
cache,
} = emotion;
export const {
extractCritical,
renderStylesToString,
renderStylesToNodeStream,
} ... |
import { Controller, Get, Post, Body, Patch, Param, Delete, Request } from '@nestjs/common';
import { RolesService } from './roles.service';
import { CreateRoleDto } from './dto/create-role.dto';
import { UpdateRoleDto } from './dto/update-role.dto';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
@Controller... |
// Type definitions for bytebuffer.js 5.0.0
// Project: https://github.com/dcodeIO/bytebuffer.js
// Definitions by: Denis Cappellin <https://github.com/dcappellin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Definitions by: SINTEF-9012 <https://github.com/SINTEF-9012>
// Definitions by: Marek ... |
export { IBaseQuery, BaseQuery, IStateQuery, StateQuery, IAddress } from "./Query";
export { Block, BlockData, BlockList } from "./Blocks";
export { Batch, BatchData, BatchList } from "./Batches";
export { Transaction, TransactionData, TransactionList } from "./Transactions";
export { State, StateData, StateList } from... |
import React, {ReactNode} from 'react'
import {Transition} from 'react-transition-group'
type Props = {
children: ReactNode
duration?: number
[index: string]: any
}
const GrowTransition = (props: Props) => {
const colapseAnimationDuration = 250
const duration = props.duration || 300
const {chi... |
import React from 'react';
import Icon from 'components/ui/Icon';
import { faGithub, faTwitter, faLinkedin } from '@fortawesome/free-brands-svg-icons';
import { OutboundLink } from 'gatsby-plugin-google-analytics';
import Container from 'components/ui/Container';
import * as Styled from './styles';
const Footer: Rea... |
import { XEUtilsMethods } from '../xe-utils'
/**
* 将多个数的值返回唯一的并集数组
* @param array 数组
*/
export declare function union(...array: any[]): any[];
declare module '../xe-utils' {
interface XEUtilsMethods {
/**
* 将多个数的值返回唯一的并集数组
* @param array 数组
*/
union: typeof union;
}
}
export default uni... |
import { Component, OnInit, Input } from '@angular/core';
import { Content } from 'app/domain/content';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { ContentService } from '../../content.service';
import { Router } from '@angular/router';
import { Store } from '@ngrx/store';
import * as... |
import { Directive, ElementRef } from '@angular/core';
@Directive({
selector: '[dinerHidden]'
})
export class DinerHiddenDirective {
constructor(el: ElementRef) {
el.nativeElement.style.display = "none";
}
} |
// Types
import { TabContentItem } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-content-item';
import { TabNavigationBase, getIconSpecSize, itemsProperty, selectedIndexProperty, tabStripProperty } from '@nativescript-community/ui-material-core/tab-navigation-base/tab-navigation-base';
import ... |
import {TableColumn} from "../schema-builder/table/TableColumn";
import {Table} from "../schema-builder/table/Table";
import {TableForeignKey} from "../schema-builder/table/TableForeignKey";
import {TableIndex} from "../schema-builder/table/TableIndex";
import {DataSource} from "../data-source/DataSource";
import {Read... |
import * as React from 'react';
import { NavLink } from 'react-router-dom';
import './navigation.less';
export interface INavigateItemProps {
to: string;
}
export interface INavigateProps {
title?: string | React.ReactNode;
}
class NavigateItem extends React.Component<Readonly<INavigateItemProps>> {
ren... |
import * as assert from 'assert'
import { watchUnitAndLog } from '../../../../debug'
import Void from '../../../../system/f/control/Void'
import { pod, system } from '../../../util/system'
const voip = new Void(system, pod)
voip.play()
false && watchUnitAndLog(voip)
voip.push('a', 1)
assert.equal(voip.peakInput('a'... |
export const ZH_LOCALE = {
environment: {
node_version: '请升级 Node 版本至 LIS',
nvm_install: '检测到环境中未安装 nvm,请先安装 nvm',
yarn_pnpm_npm: '检测到环境中未安装包管理工具,请先安装 yarn 或 pnpm 或 npm',
},
install: {
failed: '依赖自动安装失败,请手动执行 `{command}` 命令进行安装',
failed_no_command: '依赖自动安装失败,请手动执行 install 命令进行安装',
success:... |
/**
* Finds the closest average fibonacci number
* 0 and under are removed
*/
export default function closestFib(votes: number[]): number {
const validVotes = votes.filter(v => v > 0).filter(v => isFinite(v));
const average = validVotes.reduce((prev, v) => prev + v, 0) / validVotes.length;
if (isNaN(average) |... |
export declare const NO_DATA_VALUE_INTERNAL = -1100101; |
import { ISharedStrings, IState } from '../model';
import { connect } from 'react-redux';
import localStrings from '../selector/localize';
import { BigDialog } from '../hoc/BigDialog';
import { HTMLPage } from './HTMLPage';
import { termsContent } from '../routes/TermsContent';
import { privacyContent } from '../routes... |
import { expect, haveResource } from '@aws-cdk/assert';
import { Stack } from '@aws-cdk/core';
import { Test } from 'nodeunit';
import { ReceiptRule, ReceiptRuleSet, TlsPolicy } from '../lib';
/* eslint-disable quote-props */
export = {
'can create receipt rules with second after first'(test: Test) {
// GIVEN
... |
import React, { useCallback, useRef } from "react";
import TimeAgo from "timeago-react";
import { useRouter } from "@webiny/react-router";
import { css } from "emotion";
import get from "lodash/get";
import { ConfirmationDialog } from "@webiny/ui/ConfirmationDialog";
import { DeleteIcon, EditIcon } from "@webiny/ui/Lis... |
import moment from '../../Infrastructures/utils/moment'
import { prisma } from '../../Infrastructures/utils/prisma'
import { Community } from '@prisma/client'
import { UpdateCommunityValidator } from '../validators'
export default async function (
communityId: number,
DTO: UpdateCommunityValidator
) {
const Comm... |
export interface ListFieldParameters {
formFieldName: string;
label: string;
configuration: ListConfiguration;
description?: string;
}
export interface ListConfiguration {
columns: ListColumn[];
choices: any[];
selectedValueToShow(selectedValue: any): string;
}
export interface ListColumn {
name(row:... |
import { PrintServer } from './print-server';
describe('PrintServer', () => {
it('should create an instance', () => {
expect(new PrintServer()).toBeTruthy();
});
}); |
import styled from 'styled-components';
export const TooltipCategories = styled.div`
margin-bottom: 5px;
max-width: 200px;
`; |
import { Request, Response } from "express";
import { AuthViewProfileDto } from "services/auth/DTOs/view-profile.dto";
import { authUserDetailsService } from "services/auth/users/details.service";
import { logger } from "services/winston-logger/logger.service";
import { logSerializer } from "infrastructure/serializers/... |
/*
* Copyright 2019 NEM
*
* 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 writi... |
import React from 'react';
import { Box, Inline, Stack } from '@marigold/components';
import type { Meta } from '@storybook/react';
import * as Token from '.';
export default {
title: 'Token/Border',
} as Meta;
export const Size = () => (
<Inline space="12px">
{Object.values(Token.border.width).map(value => ... |
import { setConfiguration } from '../configuration/config';
import { assignImportedComponents } from '../loadable/assignImportedComponents';
import { loadByChunkname } from '../loadable/loadByChunkName';
import { rehydrateMarks } from '../loadable/marks';
import { done as whenComponentsReady } from '../loadable/pending... |
/**
* https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/http.md
*/
export declare enum AttributeNames {
GRPC_KIND = "grpc.kind",
GRPC_METHOD = "grpc.method",
GRPC_ERROR_NAME = "grpc.error_name",
GRPC_ERROR_MESSAGE = "grpc.error_message"
... |
/* Copyright 2019 The TensorFlow 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 applicable law or a... |
import csvparse from 'csv-parse/lib/sync';
import * as core from '@actions/core';
export enum Type {
Schedule = 'schedule',
Semver = 'semver',
Pep440 = 'pep440',
Match = 'match',
Edge = 'edge',
Ref = 'ref',
Raw = 'raw',
Sha = 'sha'
}
export enum RefEvent {
Branch = 'branch',
Tag = 'tag',
PR = 'p... |
import { EventEmitter } from 'events';
import { toChecksumAddress } from 'ethereumjs-util';
import { v1 as random } from 'uuid';
import { Mutex } from 'async-mutex';
import BaseController, { BaseConfig, BaseState } from '../BaseController';
import PreferencesController from '../user/PreferencesController';
import Netwo... |
import { ConfigOptions, FilePattern } from "karma";
import { Options } from "./options";
/**
* Normalized options with defaults applied.
*/
export interface NormalizedOptions {
windows: boolean;
mac: boolean;
linux: boolean;
testDir: string;
sourceDir: string;
CI: boolean;
transpile: boole... |
import type * as types from './types';
// ROUTES
export const ROUTES: Record<string, types.Route> = {
HOME: ['/', 'Home'],
CARD: ['/card', 'Card']
};
export const COLORS: Record<string, string> = {
bg: 'white',
black: '#282828',
blue: 'rgb(12, 102, 222)',
dkGrey: '#6a6a6a',
dkPrimary: '#e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.