text stringlengths 10 953k |
|---|
import { Injectable } from '@angular/core';
import { Apollo } from 'apollo-angular';
import { Observable } from 'rxjs';
import { map, share } from 'rxjs/operators';
import gql from 'graphql-tag';
import { IProductsCategoryCreateObject } from '@modules/server.common/interfaces/IProductsCategory';
import ProductsCategory... |
import { SkillActionOptions } from "../actions";
export declare function senseMotive(options: SkillActionOptions): void; |
export const environment = {
production: true,
apiUrl: 'https://fichas-api.herokuapp.com/api',
authUrl: 'https://fichas-api.herokuapp.com/authenticate'
}; |
import { browser, element, by } from 'protractor';
describe('account', () => {
const username = element(by.id('username'));
const password = element(by.id('password'));
const accountMenu = element(by.id('account-menu'));
const login = element(by.id('login'));
const logout = element(by.id('logout')... |
import { DNode } from '@dojo/framework/widget-core/interfaces';
import { v, w } from '@dojo/framework/widget-core/d';
import { WidgetBase } from '@dojo/framework/widget-core/WidgetBase';
import RangeSlider from '../index';
export default class App extends WidgetBase {
private _state = {
exampleMin: 25,
exampleMax... |
import React from 'react';
import block from 'bem-cn-lite';
import {withTranslation, WithTranslation, WithTranslationProps} from 'react-i18next';
import {List, ListItem} from '../List';
import {Popup} from '../Popup';
import {Tumbler} from '../Tumbler';
import {Button} from '../Button';
import FullScreenIcon from '..... |
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
/**
* Applies the given transformer to all keys in the given record's entries and returns a new record containing the
* transformed entries.
*
* If the transformed entries contain the same key multiple ... |
/*
* 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 { EuiEmptyPrompt, EuiPanel, EuiTitle, EuiFlexGroup, EuiFlexItem } from... |
import { Injectable } from '@angular/core';
import { SortingModule } from '../sorting.module';
import { Observable, of } from 'rxjs';
import { delay } from 'rxjs/operators';
import { HttpClient } from '@angular/common/http';
import { CustomerAddresses } from './customer';
import 'rxjs/add/operator/map';
import { enviro... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs';
import { Router, ActivatedRoute } from '@angular/router';
import { OidcSecurityService } from '../../auth/services/oidc.security.service';
import { DataEventRecordsService } from '../dataeventrecords.service';
import { D... |
import * as ros from '@alicloud/ros-cdk-core';
import { RosWaitConditionHandle } from './ros.generated';
// Generated from the AliCloud ROS Resource Specification
export { RosWaitConditionHandle as WaitConditionHandleProperty };
/**
* Properties for defining a `ALIYUN::ROS::WaitConditionHandle`
*/
export interface W... |
import { createIcon } from '../createIcon/createIcon';
import IconNodeStartSizeM from './IconNodeStart_size_m';
import IconNodeStartSizeS from './IconNodeStart_size_s';
import IconNodeStartSizeXs from './IconNodeStart_size_xs';
export const IconNodeStart = createIcon({
m: IconNodeStartSizeM,
s: IconNodeStartSizeS... |
import { StudentResponse } from './response.entity';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ResponseController } from './response.controller';
import { ResponseService } from './response.service';
import { PerformanceModule } from 'src/performance/performance.... |
import React, { useState, ChangeEvent } from 'react'
import styled from 'styled-components'
import { Label } from './label'
import focusShadowStyle from '../utils/focus-shadow.style'
const Icon = styled.svg`
fill: none;
stroke: white;
stroke-width: 2px;
`
export const CheckboxRadioContainer = styled.span`
di... |
// Type definitions for React v0.13.1 (internal module)
// Project: http://facebook.github.io/react/
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module React {
//
// React Elements
// -----------... |
/*
* 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... |
import type { IObjectOf } from "@thi.ng/api";
import type { ColorRangePreset, ColorThemePart } from "@thi.ng/color";
import { lch } from "@thi.ng/color/lch/lch";
import type { ISubscribable, ISubscriber } from "@thi.ng/rstream";
import { MainOutputs, NUM_STATE_TOKENS } from "./api";
export const initFromHash = (
p... |
import { Component, Inject } from '@angular/core'
import { MatDialogRef } from '@angular/material/dialog'
import IEmployeeServices from 'src/app/domain/employeeContext/services/IEmployeeServices'
import EmployeeServices from 'src/app/infrastructure/services/EmployeeServices'
import SearchEmployeeByIdComponent from '.... |
import { useSendContractTx } from '../useSendContractTx';
import { useAccount } from '../useAccount';
import Web3 from 'web3-utils';
import { TxType } from '../../../store/global/transactions-store/types';
export function useCloseWithSwap(
loanId,
receiver,
swapAmount,
returnTokenIsCollateral,
loanDataBytes,... |
import { fail } from 'assert';
import SQS from 'aws-sdk/clients/sqs';
import { expect } from 'chai';
import crypto from 'crypto';
import { SQSReader } from '../src';
const { AWS_SQS_INDEX_QUEUE_URL } = process.env;
if (!AWS_SQS_INDEX_QUEUE_URL) {
throw new Error('AWS_SQS_INDEX_QUEUE_URL is not configured');
}
cons... |
import "reflect-metadata";
import { GraphQLScalarType } from "graphql";
interface ClassType<T = any> {
new (...args: any[]): T;
}
export interface CustomType {
type: string;
importPath: string;
tsType?: string;
tsImportPath?: string;
[x: string]: any;
}
// scalars or classes
// string for GraphQL name in... |
import { JwtPayload } from './../interfaces/payload.jwt';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { PassportStrategy } from '@nestjs/passport';
import { Injectable } from '@nestjs/common';
@Injectable()
export class JwtStrategy extends PassportStrategy(Strategy) {
constructor() {
super({
... |
/**
* 声明一些合法的 props 如果不合法就报个警告
*/
export default function assertValidProps (
tag: string,
props?: any
) {
if (!props) {
return
}
if (
voidElementTags[tag] &&
(
props.children !== null ||
props.dangerouslySetInnerHTML !== null
)
) {
console.warn('对于自闭合标签,不能设置 children 或者 d... |
export interface IParams {
path: string,
proxy: string,
method: string,
function: any
}
export interface IFunctions {
[s: string]: IParams
} |
import { SlashCommandBuilder } from "@discordjs/builders";
import axios from "axios";
import { Client, CommandInteraction } from "discord.js";
export default {
data: new SlashCommandBuilder()
.setName("deepfry")
.setDescription("Deepfries an image")
.addUserOption((option) => option.setName("user").setDe... |
import { log } from 'ern-core';
import { askUserConfirmation, epilog, tryCatchWrap } from '../../../lib';
import { Argv } from 'yargs';
import { cauldronRepositories } from 'ern-cauldron-api';
export const command = 'add <alias> <url> [current]';
export const desc = 'Add a Cauldron git repository';
export const build... |
import { L10n } from '@syncfusion/ej2-base';
import { ElementBox } from '../viewer/page';
import { DocumentHelper } from '../viewer';
/**
* Spell check dialog
*/
export declare class SpellCheckDialog {
private target;
private elementBox;
/**
* @private
*/
localValue: L10n;
private errorT... |
import { Request, Response } from 'express';
import connection from '../database/connection';
class Points {
async create(req: Request, res: Response) {
const {
name,
email,
whatsapp,
city,
uf,
latitude,
longitude,
... |
import { IsNotEmpty, MaxLength, MinLength } from 'class-validator';
export class RequestUpdateUserPasswordDto {
@IsNotEmpty({ message: 'Campo senha é obrigatório' })
@MinLength(8, { message: 'Senha deve conter no mínimo 6 caracteres' })
@MaxLength(25, { message: 'Senha deve conter no máximo 25 caracteres' })
p... |
import React, { Component, ReactNode } from 'react';
import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
interface Props extends WithAnalyticsEventsProps {
/** The time of the comment. */
children?: ReactNode;
/** The URL of the link. If not provided, the element will be r... |
import {Request, Response} from 'express';
import {COURSES} from "./db-data";
export function getAllCourses(req: Request, res: Response) {
// console.log('ERROR loading courses!');
// res.status(500).json({message: 'random error occurred.'});
// return;
setTimeout(() => {
res.sta... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { catchError } from 'rxjs/operators';
import { environment } from '../../environments/environment';
import { APIService } from '../helper/api.service';
import { CookieService } from '... |
export * from '@styled-icons/material/PhotoLibrary' |
import { ConsoleTransport } from './consoleTransport';
import { Level } from './level';
import { Transport } from './transport';
/**
* The @reallyuseful Logger.
*/
export class Logger {
private readonly transports: Transport[];
/**
* Construct a new Logger using the provided Transports.
* @param transport... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License
import { ResponseManager, SkillConfigurationBase } from 'bot-solution';
import { BotTelemetryClient, ConversationState, UserState } from 'botbuilder';
import { TurnContext } from 'botbuilder-core';
import { DialogSet } from ... |
import * as React from 'react';
import MuiInputBase, {
InputBaseProps as MuiInputBaseProps,
} from '@material-ui/core/InputBase';
import { FieldProps } from 'formik';
export interface InputBaseProps
extends FieldProps,
Omit<MuiInputBaseProps, 'name' | 'value' | 'error'> {}
export function fieldToInputBase({
... |
import React, { useEffect, useState } from "react";
import { Col, Nav, Row, Tab } from "react-bootstrap";
import { useHistory } from "react-router-dom";
import { useParams } from "react-router-dom";
import { BigNumber } from "ethers";
import { useToasts } from "react-toast-notifications";
import { useWorkhard } from "@... |
import { SimboloInterface } from "../interfaces";
export class ErroResolvedor extends Error {
simbolo: SimboloInterface;
constructor(simbolo: SimboloInterface, mensagem: string) {
super(mensagem);
this.simbolo = simbolo;
Object.setPrototypeOf(this, ErroResolvedor.prototype);
}
} |
import { Story, Meta } from '@storybook/react'
import TitleHeading, { TitleHeadingProps } from '.'
export default {
title: 'Components/TitleHeading',
component: TitleHeading
} as Meta
export const Default: Story<TitleHeadingProps> = (args) => (
<TitleHeading {...args} />
)
Default.args = {
size: 'large',
t... |
import * as primitives from "./primitives";
import * as censusObject from "./censusObject";
import * as uiObject from "./uiObject";
import * as queries from "./queries";
import * as helpers from "./helpers";
export { primitives, censusObject, uiObject, queries, helpers }; |
import axios from 'axios';
import i18n from '../i18n/config';
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
const getAxios = () => {
axios.defaults.timeout = 10000;
axios.defaults.timeoutErrorMessage = i18n.t('msg_server_unavailable');
const obj = axios.create({
baseURL: 'htt... |
import React from 'react'
const RoundPushpin = ({ size, rem }: {
size: number | string,
rem?: boolean
}) => {
const width = (typeof size === 'string') ? size : rem ? `${size}rem` : `${size}px`
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" style={{ width: width }}><ellipse fill="#292... |
import * as graphql from '../src/index';
test('index exports', () => {
// Collection
expect(typeof graphql.CreateCollectionLocationComponent).toBe('function');
expect(typeof graphql.DeleteCollectionLocationComponent).toBe('function');
expect(typeof graphql.FindCollectionLocationIdsByExternalComponent).toBe('fu... |
import AL, { Constants, IPosition, Mage, ServerIdentifier, ServerRegion } from "alclient"
import { startTrackerLoop } from "../base/general.js"
import { Information } from "../definitions/bot.js"
import { DEFAULT_IDENTIFIER, DEFAULT_REGION, startMerchant, startRatMageFarmer } from "./runners.js"
/** Config */
const in... |
import { Command, ExecuteFunction } from './Command';
import { Message } from 'discord.js';
import { CreateVoiceStateIfNotExists } from '@util/decorators';
import volumeAction from 'actions/volume';
class Volume extends Command {
constructor() {
super({
minArgs: 2,
commandName: 'volu... |
/*
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "lic... |
function main() {
}
export { main }; |
/**
* This file is part of the jd-mkt5 launch.
* @link : https://ace.jd.com/
* @author : qianjing29 (qianjing29@jd.com)
* @modifier : qianjing29 (qianjing29@jd.com)
* @copyright: Copyright (c) 2020 JD Network Technology Co., Ltd.
*/
import React from 'react';
import { Popover, Radio } from 'antd';
import { ... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="sq">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Huangjincoin</source>
<translation type="unfinishe... |
import { Component, OnInit } from '@angular/core';
import { CarService } from 'src/app/services/car.service';
import { Car } from 'src/app/services/car.dto';
import { Observable } from 'rxjs';
@Component({
selector: 'app-portal',
templateUrl: './portal.component.html',
styleUrls: ['./portal.component.scss']
})
e... |
// DO NOT EDIT. This file was generated by running `npm run generate`.;
import * as React from 'react';
import { Colors } from '../../essentials';
import { get } from '../../utils/themeGet';
import { IconProps } from '../IconProps';
type Props = IconProps;
const InfoCircleOutlineIcon: React.FC<Props> = ({ size = 'medi... |
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... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App/App';
import reportWebVitals from './reportWebVitals';
import CssBaseline from '@material-ui/core/CssBaseline';
import { ThemeProvider } from '@material-ui/core/styles';
import theme from './theme';
Re... |
import EndpointBuilder from '../EndpointBuilder'
describe('EndpointBuilder', () => {
it('should produce the correct endpoint', () => {
const url = 'https://someurl'
const name = 'endpoint'
const mapper = (json: string) => json
const responseOverride = {
test: 'random'
}
const errorOve... |
import * as React from 'react';
import { useState } from 'react';
import { QueryClient, useIsMutating } from 'react-query';
import { CoreAdminContext } from '../core';
import undoableEventEmitter from './undoableEventEmitter';
import { useUpdate } from './useUpdate';
import { useGetOne } from './useGetOne';
export de... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import ComponentsInspector from './features/components/ComponentsInspector.vue'
import CustomInspector from './features/inspector/custom/CustomInspector.vue'
import Timeline from './features/timeline/Timeline.vue'
import Plugins from './features/plugin/Plugins.vu... |
import React, { useContext, useState, useEffect } from 'react';
import { NumberField as UUINumberField } from '../Input';
import { UUIFunctionComponent, UUIFunctionComponentProps } from '../../core';
import { PaginationContext } from './PaginationContext';
import { createComponentPropTypes, PropTypes } from '../../util... |
import { Data } from '../input-form/data-model';
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { HarnessLoader } from '@angular/cdk/testing';
import { InputFormComponent } from './input-form.component';
import { MatFor... |
// Copyright (c) WarnerMedia Direct, LLC. All rights reserved. Licensed under the MIT license.
// See the LICENSE file for license information.
import { beforeEach, describe, expect, it, jest } from '@jest/globals';
import { BodyType } from '../../src';
describe('ResponseModel', () => {
beforeEach(() => {
... |
/**
* Electron based desktop application for setting geotags for images
*
* Licensed under the MIT license
* Copyright (c) Juga Paazmaya <paazmaya@yahoo.com> (https://paazmaya.fi)
*/
import React from 'react';
import './Image.css';
export interface ImageProps {
url: string,
key: string,
color?: string
}
c... |
import { Route } from '@angular/router';
import { UserRouteAccessService } from '../../shared';
import { ActivateComponent } from './activate.component';
export const activateRoute: Route = {
path: 'activate',
component: ActivateComponent,
data: {
authorities: [],
pageTitle: 'activate.titl... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'template-dashboard';
} |
import { css, cx } from 'emotion';
import React from 'react';
import { StyleProps, useTheme } from '..';
const DropdownDivider: React.FC<StyleProps> = (props) => {
const theme = useTheme();
const colors = theme.colors;
const dropdownDividerStyles = css`
border-bottom: 1px solid ${colors.light};
padding... |
// Type definitions for Google API client 1.0
// Project: https://developers.google.com
// Definitions by: Bolisov Alexey <https://github.com/Bolisov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
declare namespace gapi {
/**
* Pragmatically initialize gapi clas... |
import { NextApiRequest, NextApiResponse } from "next"
import { Readable } from 'stream'
import Stripe from "stripe";
import { stripe } from "../../services/stripe";
import { saveSubscription } from "./_lib/manageSubscription";
async function buffer(readable: Readable) {
const chunks = [];
for await (const ch... |
import {createBottomTabNavigator} from "@react-navigation/bottom-tabs"
import * as React from "react"
import {Image} from "react-native"
import {Discoverer} from "../discoverer/screens/discoverer/discoverer"
import {Profile} from "@features/settings/screens/profile"
const Tab = createBottomTabNavigator()
export funct... |
import React, { FC } from 'react';
import { Bar, BarProps } from '../BarChart';
import { ChartTooltip, TooltipTemplate } from '../common/Tooltip';
export type LinearGaugeBarProps = BarProps;
export const LinearGaugeBar: FC<Partial<LinearGaugeBarProps>> = (props) => (
<Bar
{...props}
tooltip={
<ChartTo... |
export enum KeyType {
Ed25519 = 'Ed25519',
Secp256k1 = 'Secp256k1',
P256 = 'P256'
} |
import {Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output, ViewChild} from '@angular/core';
import {Camera, CameraResultType, CameraSource} from '@capacitor/camera';
import {AlertController, Platform} from '@ionic/angular';
@Component({
selector: 'app-image-picker',
templateUrl: './image-pi... |
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
import { PrimaryButton, SecondaryButton, TertiaryButton } from ".";
import { axe } from "jest-axe";
const buttonVariants = [
{ name: "primary", component: PrimaryButton },
{ name: "secondary", component: SecondaryBut... |
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const StatusTriangleExclamationIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" className={classes.svg}>
<path d="M1024 1792H896v-128h128v128zm0-256H896V896h128v... |
import { style } from '@vanilla-extract/css'
import { theme } from '~/common/theme'
export const root = style({})
export const title = style({
marginBottom: 32,
})
export const list = style({
display: 'grid',
gap: 24,
minHeight: 314,
gridTemplateColumns: 'repeat(auto-fill, minmax(277px, 1fr))',
'@media... |
import React, {useState, useEffect, useContext, CSSProperties} from "react";
import {Collapse, Icon, DatePicker, Select} from "antd";
import moment from "moment";
import Facet from "../facet/facet";
import {SearchContext} from "../../util/search-context";
import {facetParser} from "../../util/data-conversion";
import h... |
// Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import {useEffect } from "react";
import {
Flex,
Heading,
PrimaryButton,
useMeetingManager
} from 'amazon-chime-sdk-component-library-react';
import { useAppState ... |
export * from './user.provider';
export * from './refresh-token.manager'; |
import { defineComponent, SetupContext, watch, ref, toRefs } from "vue";
import { SearchOutlined } from "@ant-design/icons-vue";
/**
* 搜索事件
*/
const selectEvent = "select";
const update_text = "update:text";
export default defineComponent({
name: "SearchTree",
components: {
SearchOutlined,
},
emits: [s... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const jamGitlab: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatures... |
import { AxiosResponse } from 'axios'
import { SagaIterator } from 'redux-saga'
import { call, cancelled, put } from 'redux-saga/effects'
import { Action, AsyncActionCreators } from 'typescript-fsa'
/**
* Produces a saga that wraps an original worker saga, into a common usage
* pattern typical for asynchronous opera... |
/*
Copyright 2020. Huawei Technologies Co., Ltd. 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
https://www.apache.org/licenses/LICENSE-2.0
Unless ... |
import { FieldId } from "../plugins";
import { ActivityId, ContainerId, IssueId, PrincipalId, TaskId } from "./id";
import { IssueStatus } from "./issue";
import { MemberStatus, RoleType } from "./member";
import { TaskStatus } from "./pipeline";
import { Principal } from "./principal";
import { VCSPushEvent } from "./... |
import { newE2EPage } from '@stencil/core/testing';
describe('s-adam-search-contact', () => {
it('renders', async () => {
const page = await newE2EPage();
await page.setContent('<s-adam-search-contact></s-adam-search-contact>');
const element = await page.find('s-adam-search-contact');
expect(elemen... |
import {Component, Input, Output, EventEmitter} from "@angular/core";
import {Pet} from "../shared/pet";
@Component({
selector: "cat-detail",
template: require("./cat-detail.component.html")
})
export class CatDetailComponent {
@Input() cat: Pet;
@Output() isFavourite: EventEmitter<Pet> = new EventEmitter<Pet>();
... |
import { Test, TestingModule } from '@nestjs/testing';
import { MongooseConnectorModule } from '../mongoose-connector/mongoose-connector.module';
import { rootMongooseTestModule } from '../mongodb-test-inmemory/MongooseTestModule';
import { MongooseAllFeatureModule } from '../mongoose-all-feature/mongoose-all-feature.m... |
import { Component, OnInit, Injector } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss']
})
export class LoginComponent implements OnInit {
constructor(private injector: Injector) { ... |
/**
* Config source: https://git.io/JfefZ
*
* Feel free to let us know via PR, if you find something broken in this config
* file.
*/
import Env from '@ioc:Adonis/Core/Env'
import { LoggerConfig } from '@ioc:Adonis/Core/Logger'
import { ProfilerConfig } from '@ioc:Adonis/Core/Profiler'
import { RequestConfig } fr... |
import {Component, NgZone} from '@angular/core';
@Component({
selector: 'app-root',
template: `<button (click)="foo()">foo</button>`
})
export class AppComponent {
constructor(private zone:NgZone) {
zone.onStable.subscribe(() => console.log('stable'));
zone.onUnstable.subscribe(() => console.log('unstabl... |
import { useStore } from "@ethicdevs/react-global-state-hooks";
import { useContext, useEffect } from "react";
import { ActionTypes } from "../state";
import { GlobalStateRouterContext } from "../context";
export const useRouter = ({
initialScreen,
initialScreenArgs,
}: {
initialScreen?: string;
initialScreen... |
import { Structure as _Structure_ } from "@aws-sdk/types";
export const GetResolverRulePolicyInput: _Structure_ = {
type: "structure",
required: ["Arn"],
members: {
Arn: {
shape: {
type: "string",
min: 1
}
}
}
}; |
export default {
port: 2000,
isProductionPort() {
return this.get(['config.stub', 'port']) === 2000;
}
}; |
/*
* Copyright 2022 ThoughtWorks, 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 agr... |
/**
* @license
* Copyright Builder.io, 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://github.com/BuilderIO/qwik/blob/main/LICENSE
*/
import { TodoEntity } from '../data/Todo';
import {
injectEventHandler,
provideQrl... |
import keycode from 'keycode'
import { rgba } from 'polished'
import React, { useCallback, useMemo } from 'react'
import styled from 'styled-components'
import { useKeyListener } from '../keyboard/key-listener'
import { useMultiRef } from '../state-hooks'
import { amberA400, colorDividers, colorTextFaint, colorTextSeco... |
// Copyright 2017-2020 @polkadot/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { VoteThreshold } from '../interfaces/elections';
import { BlockNumber } from '../interfaces/runtime';
import { CodecTo }... |
import type { UnaryOperation } from '@dinero.js/core';
/**
* Returns an incremented number.
*
* @param value - The number to increment.
*
* @returns The incremented number.
*/
export declare const increment: UnaryOperation<number>; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About pwrcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
/**
* Copyright (c) 2021 OpenLens Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, p... |
import { NestFactory } from '@nestjs/core';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
const config = new DocumentBuilder()
.setTitle('user exampl... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/** @jsx jsx */
import { jsx } from '@emotion/core';
import React, { useState, Fragment, useEffect } from 'react';
import formatMessage from 'format-message';
import {
Link,
PrimaryButton,
DefaultButton,
Pivot,
PivotItem,
Dialog,
... |
import React from 'react';
import { shallow } from 'enzyme';
import { SideMenu } from './SideMenu';
import appEvents from '../../app_events';
import { contextSrv } from 'app/core/services/context_srv';
jest.mock('../../app_events', () => ({
emit: jest.fn(),
}));
jest.mock('app/store/store', () => ({
store: {
... |
/**
* Punishments
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Handles the punishing of users on PS.
*
* There are four types of global punishments on PS. Locks, bans, namelocks and rangelocks.
* This file contains the lists of users that have been punished (both IPs and usernames),
* as well as the fun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.