text stringlengths 10 953k |
|---|
import { Vec3, SkillId, Customize, PacketBase } from '../lib/Common'
export class C_LOGIN_ARBITER_2 extends PacketBase {
unk1: number
unk2: number
/**
0 = INT, 1 = KOR, 2 = USA, 3 = JPN, 4 = GER, 5 = FRA, 6 = EUR, 7 = TW, 8 = RUS
*/
language: number
patchVersion: number
name: string
ticket: numb... |
import { IUserBasic } from './user-basic.interface';
export interface IUser extends IUserBasic {
role: string;
waiterAt?: string;
} |
import * as React from "react";
import { render } from "@testing-library/react";
import { Provider, Divider } from "..";
describe("<Divider/>", () => {
it("should render correct with divider style", () => {
const { container } = render(
<Provider>
<Divider />
</Provider>
);
expect(con... |
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import classNames from 'classnames/bind';
import React, { useContext, useEffect, useState } from 'react';
import { FormattedMessage, useIntl } from 'react-intl';
import { useHistory } from 'react-router-do... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca_ES" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Primecoin</source>
<translation>Sobre Primecoin</translation>
... |
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Subscription, of } from 'rxjs';
import { tap, map, switchMap, filter } from 'rxjs/operators';
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { JhiLanguageService } from 'ng-jhipster';
import { SessionStorageService } from 'ngx-webs... |
import {WorkspacePanelFactory} from "./WorkspacePanelFactory";
import {WorkspacePanelModel} from "./models/WorkspacePanelModel";
import {AbstractWorkspaceModel} from "./models/AbstractWorkspaceModel";
export class WorkspaceEngine {
factories: { [type: string]: WorkspacePanelFactory };
listeners: {[id: string]: () =... |
export * from "./FileHelper"; |
import React, { useMemo } from "react";
import styled from "styled-components";
import { useIntl } from "react-intl";
import { Cell } from "components/SimpleTableComponents";
import DropDown, { DropDownRow } from "components/DropDown";
import { IDataItem } from "components/DropDown/components/ListItem";
import {
Syn... |
import { l10n } from "@vendor/l10n/l10n"
import * as React from "react"
import { SettingsSection } from "@src/core/components"
import { CoreActions, CoreMessageType, IMessage } from "@src/core/messaging"
import { IOptions, IOptionsSchema } from "@src/core/options"
import { schema } from "@src/schema"
export interface... |
/**
* Match V5 constants
*/
export const MATCHES_BY_PUUID = '/lol/match/v5/matches/by-puuid/{puuid}/ids';
export const MATCH_BY_ID = '/lol/match/v5/matches/{matchId}';
export const MATCH_TIMELINE_BY_MATCH_ID = '/lol/match/v5/matches/{matchId}/timeline'; |
import * as SP from "gd-sprest-def/lib/SP/UserProfiles/entitytypes";
import { ITargetInfoProps } from "../utils";
/**
* #### REST API
* _api/SP.UserProfiles.PeopleManager
*/
export const PeopleManager: IPeopleManager;
/**
* People Manager
* @category People Manager
*/
export interface IPeopleManager {
/**
... |
import React, { HTMLProps } from 'react';
import clsx from 'clsx';
import { Icon, Props as IconProps } from './Icon';
interface Props extends Readonly<HTMLProps<HTMLInputElement>> {
readonly containerProps?: Readonly<HTMLProps<HTMLDivElement>>;
readonly iconProps?: IconProps;
}
export const Input = ({
classNam... |
const TOKEN_KEY = 'token'
export const read = () => {
const raw = localStorage.getItem(TOKEN_KEY)
if (raw) {
try {
const {accessToken, expireDate}: TokenPayload = JSON.parse(raw)
if (Date.parse(expireDate) > Date.now()) return accessToken
} catch {}
}
localStorage.clear()
}
export const... |
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import PropTypes from "prop-types"
import Header from "./header"
import "./layout.css"
import Box from "@material-ui/core/Box"
interface Pro... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PageNotFoundComponent } from './components/page-not-found/page-not-found.component';
import { ProfileComponent } from './components/profile/profile.component';
const routes: Routes = [
{ path: '', redirectTo: '... |
export namespace Constants {
export const TEXT_ROTATION = -25
export const CIRCLE_SIZE = 15
export const TEXT_HEIGHT = 17
export const TICK_LENGTH = 10
} |
export * from "./info-box.component";
export * from "./info-box.module"; |
/*
* Copyright 2018-2021 Elyra Authors
*
* 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 hre, { ethers } from "hardhat";
import { IERC20Minimal__factory } from "../../../typechain";
import { BigNumber as BN } from "ethers";
export const DEAD_ADDRESS = "0x0000000000000000000000000000000000000001";
export const ZERO_ADDRESS = ethers.constants.AddressZero;
export const DEFAULT_DECIMALS = 18;
export ... |
import { IParticipantIdentity } from 'src/models/interfaces/match/participantidentity.interface';
export declare class ParticipantIdentityDTO implements IParticipantIdentity {
player: import('../../interfaces/match/player.interface').IPlayer;
participantId: number;
} |
import {
CloudSearchDomainClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../CloudSearchDomainClient";
import { SearchRequest, SearchResponse } from "../models/models_0";
import { deserializeAws_restJson1SearchCommand, serializeAws_restJson1SearchCommand } from "../protocols/Aws_restJson1";
i... |
import { Component, Renderer2, ViewChild } from '@angular/core';
import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { dispatchKeyboardEvent } from '@ngneat/spectator';
import { registerE... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TakeSurveyComponent } from './take-survey.component';
describe('TakeSurveyComponent', () => {
let component: TakeSurveyComponent;
let fixture: ComponentFixture<TakeSurveyComponent>;
beforeEach(async(() => {
TestBed.configure... |
import Styled, { css } from 'styled-components';
import { palette, theme } from 'styled-tools';
export const Title = Styled.div`
${theme('font.subhead4')};
width: 844px;
margin-bottom: 10px;
color: ${palette('grayscale', 9)};
`;
export const Item = Styled.span<{ page: string }>`
${theme('font.body3')};
wi... |
import { Where, WhereField } from '@via-profit-services/core';
import {
ConvertOrderByToKnex,
ConvertJsonToKnex,
ConvertBetweenToKnex,
ConvertWhereToKnex,
ConvertSearchToKnex,
ApplyAliases,
} from '@via-profit-services/knex';
import { DEFAULT_TIMEZONE } from '../constants';
export const applyAliases: Appl... |
import * as React from "react";
import Splash from "../components/misc/Splash";
import Layout from '../layout/Layout';
const Business = () => {
return (
<Layout>
<Splash
title="Under Construction"
imgName="undraw_under_construction"
buttons
primaryBtn="Get S... |
import { URL } from 'url';
import { logger } from './logger';
import { AUTH_CREDENTIALS, BASE_URLS } from './constants';
export const getBaseUrl = () => {
logger.log('Base URL not supplied in publishing target. Falling back to hardcoded URL...');
const pvaEnv = (process.env.COMPOSER_PVA_PUBLISH_ENV || '').toLower... |
export const confirmUserPrefix = "user-confirmation:";
export const forgotPasswordPrefix = "user-forget-password:"; |
import {UnionOf} from "@vladimiry/unionize";
import {produce} from "immer";
import * as fromRoot from "src/web/browser-window/app/store/reducers/root";
import {ACCOUNTS_ACTIONS, NAVIGATION_ACTIONS} from "src/web/browser-window/app/store/actions";
import {LoginFieldContainer} from "src/shared/model/container";
import {... |
import Controller from "./BaseController";
import PageController from "./PageController"
const controllers = [
Controller,
PageController
];
export default controllers; |
/*
Copyright 2017 Aviral Dasgupta
Copyright 2018 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2018 New Vector 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/lice... |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" {...props}>
<path d="M464 192c35.38 0 64-28.62 64-64s-28.62-64-64-64-64 28.62-64 64 28.6 64 64 64zm0-96c17.62 0 32 14.38 32 32s-14.38 32-32 3... |
import { DisplayMenu } from '../src/components';
import displayMenuData from '../src/components/__mocks__/displayMenu';
export default {
title: 'Layout/Display Menu',
parameters: {
purposeFunction: {
purpose: '',
function: '',
},
},
};
export const displayMenu = () => <DisplayMenu data={dis... |
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { NelInputNumberComponent } from './input-number.component';
@NgModule({
declarations: [
NelInputNumberComponent
],
exports: [
NelInputNumberComponent
],
imports: [
FormsModule
]
})
export class NelI... |
import { Injectable } from '@angular/core';
import * as moment from 'moment';
import { HttpClient, HttpParams, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import { map } from 'rxjs/operators';
import { omit as _omit } from 'lodash';
import { SERVER_API_URL } from 'app/app.c... |
<TS language="fr_FR" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Double cliquez afin de modifier l'adresse ou l'étiquette</translation>
</message>
<message>
<source>Create a new address</source... |
import { Injectable, Logger } from '@nestjs/common';
import puppeteer from 'puppeteer';
import type { Browser } from 'puppeteer';
import { InjectBrowser } from 'nest-puppeteer';
import shop from './shop.interface';
@Injectable()
export class CrawlerService {
private baseUrl = 'https://www.google.de/maps/place';
pr... |
import * as Joi from '@hapi/joi';
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { AuthenticationModule } from './authentication/authentication.module';
import { CategoriesModule } from './categories/categories.module';
import { DatabaseModule } from './database/database.... |
import { ElementNames } from './constants';
export type ElementName = typeof ElementNames[number];
export type Props = Record<string, any>;
export type State = Record<string, any>;
export interface StateManager<S extends State> {
state: S;
set: (field: keyof S, value?: any) => (value: any) => void;
}
export ty... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { CommonModule } from './@common/common.module';
import { AuthMod... |
import { Logger } from '@nestjs/common';
import { CommandHandler, EventBus, ICommandHandler } from '@nestjs/cqrs';
import { UserRepository } from '@server/repository';
import { UserCreatedEvent } from '@server/core';
import { cleanEmptyProperties } from '@server/common';
import { UpdateUserCommand } from '../../impl';
... |
import * as assert from 'assert';
import {Z80Cpu} from '../src/remotes/zsimulator/z80cpu';
import {Z80Ports} from '../src/remotes/zsimulator/z80ports';
import {MemBuffer} from '../src/misc/membuffer';
import {Settings} from '../src/settings/settings';
import {SimulatedMemory} from '../src/remotes/zsimulator/simulatedme... |
/**
* @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 React from 'react';
import { render, screen } from '@testing-library/react';
import TreeWatering from '.';
import content from '../../assets/content';
describe('component TreeWatering', () => {
test('should render all the waterNeeds blocks', () => {
render(<TreeWatering />);
content.sidebar.waterNeeds... |
import k8s from '@kubernetes/client-node';
import { User } from '@kubernetes/client-node/dist/config_types';
import { FastifyInstance } from 'fastify';
export type DashboardConfig = {
enablement: boolean;
disableInfo: boolean;
disableSupport: boolean;
disableClusterManager: boolean;
};
// Add a minimal QuickS... |
import { useMemo } from "react";
import { useNavigate } from "react-router-dom";
export const useNavigation = () => {
const navigate = useNavigate();
return useMemo(
() => ({
pushState: (path: string) => navigate(path),
}),
[navigate]
);
}; |
/**
* @module std
*/
import { flatbuffers } from './internal/flatbuffers';
import { __std } from './internal/__std_generated';
import { sendRequest } from './internal/deferred';
import Format = __std.Format;
export function parse(input: string, format?: Format): any {
const builder = new flatbuffers.Builder(512)... |
import './react-tags.css'
import React, { useState } from 'react'
import { Text } from '@modulz/radix'
import { PlusCircle, CheckCircle, Edit } from 'react-feather'
import { useCurrentMould } from './utils'
import { ArcherElement } from 'react-archer'
import { WithOutContext as TagInput } from 'b1ncer-react-tag-input'
... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { SearchBarComponent } from './search-bar.component';
describe('SearchBarComponent', () => {
let component: SearchBarComponent;
let fixture: ComponentFixture<SearchBarComponent>;
befor... |
type Opts = {
glob?: string | Array<string>;
root?: string;
cleanup?: boolean;
};
declare module "fixturez" {
export default function (
cwd: string,
opts?: Opts
): {
find: (a: string) => string;
temp: () => string;
copy: (a: string) => string;
cleanup: () => any;
};
} |
import { Component } from '@angular/core';
import {
IonicPage,
NavController,
Platform,
} from 'ionic-angular';
import { BasePageComponent } from '../../shared/classes/base-page';
import { AuthenticationProvider } from '../../providers/authentication/authentication';
import * as moment from 'moment';
import { fa... |
// @ts-ignore
import App from './App.svelte';
const app = new App({
target: document.body,
});
export default app;
// Hot Module Replacement (HMR) - Remove this snippet to remove HMR.
// Learn more: https://www.snowpack.dev/#hot-module-replacement
if (import.meta.hot) {
import.meta.hot.accept();
import.meta.ho... |
import di from '../src';
import DependentClass from './importing/dependentFile';
import { TokenForTokenizedDependency } from './importing/tokens';
import chai from 'chai';
describe('importing', () => {
it('injection & registering works for classes in different modules', () => {
const dependentClass = di.Ge... |
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';
export class UserResetPasswordDto {
@IsString()
@IsNotEmpty()
@ApiProperty({ minLength: 6 })
readonly password: string;
} |
/*
* 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 { produce } from 'immer';
import { merge, cloneDeep } from 'lodash';
... |
/*
* Copyright The OpenTelemetry Authors
*
* 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 required by applicable law or... |
import { Field, InputType } from '@nestjs/graphql';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input';
import { NullableBoolFieldUpdateOperationsInput } from '../prisma/null... |
import { IMapper, MapperOptions, ObjectLiteral, CQMetadata } from 'aurora-ts-core';
import { CommonAdministrativeAreaLevel3 } from './administrative-area-level-3.aggregate';
import { AdministrativeAreaLevel3Response } from './administrative-area-level-3.response';
import {
AdministrativeAreaLevel3Id,
Administra... |
import gql from 'graphql-tag'
export default gql`
mutation signUp($name: String!, $username: String!, $password: String!, $passwordConfirm: String! ){
signUp(name: $name, username: $username, password: $password, passwordConfirm: $passwordConfirm){
id
}
}
` |
import { Component, ViewChild, OnInit } from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap/modal';
import { AvailabilityService } from './services/availability.service';
import { AppointmentService } from './services/appointment.service';
import { Talent } from './models/Talent';
import { Appointment... |
// <copyright file="checkbox-wrapper.tsx" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
import * as React from "react";
import { Flex, RadioGroup } from "@fluentui/react-northstar";
export interface IRadioGroupItem {
name: string;
key: number;
label: string;
value: number;... |
import React from "react"
import renderer from "react-test-renderer"
import Footer from "."
describe("components/Footer", (): void => {
it.each([["2019", "1.2.3"]])(
"data: %p",
(copyright: string, version: string): void => {
const tree = renderer.create(
<Footer copyright={copyright} version={... |
import gulp from 'gulp'
import ts from 'gulp-typescript'
import path from 'path'
import { buildOutput } from '../../build/paths'
export const esm = './es'
export const cjs = './lib'
const inputs = './lang/*.ts'
function compileLangEsm() {
return gulp
.src(inputs)
.pipe(ts.createProject('tsconfig.json')())
... |
// TypeScript Version: 4.0
import { Params, Paginated, Id, NullableId, Hook } from '@feathersjs/feathers';
import { AdapterService, ServiceOptions, InternalServiceMethods } from '@feathersjs/adapter-commons';
import { Model, Document, Query } from 'mongoose';
export namespace hooks {
function toObject(options?: any,... |
import { createIcon } from '../core';
/**
* remixicon number-4
*/
export default createIcon('number-4', {
"viewBox": "0 0 24 24",
"paths": [
{
"d": "M0 0h24v24H0z",
"fill": "none"
},
{
"d": "M16 1.5V16h3v2h-3v4h-2v-4H4v-1.102L14 1.5h2zM14 16V5.171L6.968 16H14z"
}
]
}); |
import { Component, OnInit } from "@angular/core";
@Component({
selector: 'playground',
template: `
<hero-parent></hero-parent>
`
})
export class PlaygroundComponent implements OnInit {
ngOnInit () {
console.log(module.id)
}
} |
import styled from '@emotion/styled';
import { Keyframes, keyframes } from '@emotion/react';
export const Wrapper = styled.section`
text-align: center;
`;
export const Container = styled.div<{
column?: boolean;
}>((props) => ({
display: 'flex',
alignItems: 'center',
flexDirection: (props.column && 'column')... |
import * as express from 'express';
import { Logger } from '../../../utils/logService';
import { log } from '../schemas/log';
import { Auth } from '../../../auth/auth.class';
const router = express.Router();
router.post('/operaciones/:module/:op', (req, res, next) => {
if (!Auth.check(req, 'log:post')) {
... |
import { TypeScriptCommonConfig, initCommonTemplate } from 'graphql-codegen-typescript-common';
import { PluginValidateFn, PluginFunction, DocumentFile, toPascalCase } from 'graphql-codegen-core';
import { GraphQLSchema } from 'graphql';
import * as Handlebars from 'handlebars';
import * as index from './templates/inde... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'widget-featured-post',
templateUrl: 'featured-post.component.html'
})
export class FeaturedPostComponent implements OnInit {
widgetTitle: string = 'Pellentesque Ligula Fringilla';
widgetSubTitle: string = 'by Malinda Hollaway on 19th ... |
import { WrappedFormUtils } from 'antd/es/form/Form';
import Button from 'antd/lib/button';
import React from 'react';
import LoginItem, { ILoginItemProps, LoginItemType } from './LoginItem';
import LoginSubmit from './LoginSubmit';
import LoginTab from './LoginTab';
export interface ILoginProps {
defaultActiveKey?:... |
import { DenonConfig } from "https://deno.land/x/denon/mod.ts";
import { config as env } from "https://deno.land/x/dotenv/mod.ts";
const config: DenonConfig = {
allow: ["net", "read", "write", "env"],
unstable: true,
importmap: "importmap.json",
env: env(),
scripts: {
dev: {
cmd: "main.ts",
d... |
import { BehaviorSubject, empty, ObservableInput } from 'rxjs';
import { rxUser } from './rxUser';
import { filter, switchMap, map, tap } from 'rxjs/operators';
import { firestore } from './firebase';
import { collectionData } from 'rxfire/firestore';
import { ICommand } from '..';
import { Command } from './db/db';
/... |
export declare const NB_DEFAULT_ROW_LEVEL: number;
export declare type NbDataGetter<N, T> = (N: any) => T;
export declare type NbChildrenGetter<N, T> = (N: any) => (T[] | undefined);
export declare type NbExpandedGetter<N> = (N: any) => boolean;
export interface NbGetters<N, T> {
dataGetter?: NbDataGetter<N, T>;
... |
import type { Bytes, Compact, Data, Option, U8aFixed, Vec, bool, u16, u32, u64, u8 } from '@polkadot/types';
import type { AnyNumber, ITuple } from '@polkadot/types/types';
import type { AssetDestroyWitness, TAssetBalance } from '@polkadot/types/interfaces/assets';
import type { BabeEquivocationProof, NextConfigDescrip... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { AuthService } from '../../../services/auth.service';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['.... |
import {
ProfileFormData,
defaultValues as profileDefaultValues,
} from "../profile";
export interface RegistrationFormData extends ProfileFormData {
acceptTerms?: boolean;
}
export const defaultValues = { ...profileDefaultValues, acceptTerms: false }; |
import { Component, OnInit } from '@angular/core';
import { Lightbox } from 'ngx-lightbox';
@Component({
selector: 'app-profile-user-social',
templateUrl: './profile-user-social.component.html'
})
export class ProfileUserSocialComponent implements OnInit {
constructor(private lightbox: Lightbox) { }
ngOnInit... |
// This file is automatically generated.
// Please do not change this file!
interface CssExports {
errorCaption: string;
input: string;
inputError: string;
inputWrap: string;
wrap: string;
}
export const cssExports: CssExports;
export default cssExports; |
import * as React from 'react';
import AppBar from '@material-ui/core/AppBar';
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardConten... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import * as Dialog from '../ui/Dialog';
const register = (editor) =>... |
import { AsInputs } from '@pulumi-utils/sdk';
import { PipelineProps } from '../pipeline';
import { CustomResource, Input, Output, ID, CustomResourceOptions, Inputs, output } from '@pulumi/pulumi';
import { IntegrationRef, Tag, TriggerCondition, Variable } from '../common';
import { Integration } from '../integration';... |
import rule from './no-self-assign';
import { EsLintBestPracticesRules as Rules, Severity } from '../../../enums';
describe(Rules.NoSelfAssign, (): void => {
it('should have the correct rule', (): void => {
expect(Object.keys(rule).length).toBe(1);
expect(Rules.NoSelfAssign in rule).toBe(true);
});
it('should ... |
/*
* 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 React, { ChangeEvent, Fragment, SFC, useContext, useEffect, useState }... |
interface Animal {
name: string;
talk(): void;
pets?: Animal[]
}
class Dog implements Animal {
name = 'Dog';
talk() {
console.log('Woof!');
}
}
class Human implements Animal {
name = 'Human';
pets: Dog[] = [new Dog()];
talk() {
console.log(`${this.name} says: Hello.`);
}
} |
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
import { subSeconds } from 'date-fns'
export default subSeconds |
import {
Err,
None,
Ok,
Option,
Result,
ResultErrType,
ResultErrTypes,
ResultOkType,
ResultOkTypes,
Some,
} from '../src';
import { eq } from './util';
test('Err<E> | Ok<T> should be Result<T, E>', () => {
const r1 = Err(0);
const r2 = new Ok('');
const r = Math.rand... |
namespace FDBZAP {
export namespace Email {
export namespace Grid {
export function groupItems(commandProps: FDBZAP.Common.Data.ICommandProperties, selectedItems: FDBZAP.Common.Data.ISelectedControlSelectedItemReference[], debug?: boolean )
{
const actionName = "fdbz... |
import { User } from '../../../models/user';
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AuthServiceService } from '../../../service/auth-service.service';
@Component({
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.... |
import { Injectable, Logger } from '@nestjs/common';
import { CoinApiRepository } from 'src/coin-api/coin-api.repository';
import { IAssetData } from 'src/coin-api/interfaces/asset-data.interface';
import { IAssetIcon } from 'src/coin-api/interfaces/asset-icon.interface';
import { BaseError } from 'src/errors/base-erro... |
import { guard, sample, Store, Event as EffectorEvent } from 'effector';
import { preventDefault } from '../modifiers/prevent';
const targetFilters: Record<
string,
<
Element extends HTMLElement,
EventType extends Event | { target: EventTarget }
>(
current: Element | null,
evt: EventType
) => b... |
/**
* @module Upsert
*/
import * as dgraph from 'dgraph-js';
import { Txn } from 'dgraph-js';
export declare type uid = string;
export interface INodeFoundFunction {
existingUid: string | null;
newNodeFn?: (node: any) => object;
}
export interface IUpsertFnReturnValues {
dgraphQuery: string;
nodeFound... |
module Markdown {
/**
* Config
*/
var moduleName = 'csComp';
/**
* Module
*/
export var myModule;
try {
myModule = angular.module(moduleName);
} catch (err) {
// named module does not exist, so create one
myModule = angular.module(moduleName, []);... |
import { Injectable } from '@angular/core'
import { environment } from '../../../environments/environment'
// Libs terceros
import mapboxgl from 'mapbox-gl'
@Injectable()
export class StateService {
constructor () {
mapboxgl.accessToken = environment.mapbox.accessToken
}
} |
function removeStorageType(type: string, key: string) {
switch (type) {
case "local":
localStorage.removeItem(key);
break;
case "session":
sessionStorage.removeItem(key);
break;
default:
throw new Error("Storage Type is undefined");... |
import { ParagraphProperties } from "./paragraph";
import { RunProperties } from "./run";
export interface IDomStyle {
id: string;
name?: string;
cssName?: string;
aliases?: string[];
target: string;
basedOn?: string;
isDefault?: boolean;
basedOnResolved?: boolean;
styles: IDomSubSt... |
/**
* @license
* Copyright Google LLC 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 ts from 'typescript';
import {CompilerHost, CompilerOptions} from './api';
let wrapHostForTest: ((host: ts.C... |
import { createSelector } from 'reselect';
import { RootState, MetaDataState } from 'redux/interfaces';
import { MetadataFieldValue } from 'generated-sources';
import { createFetchingSelector } from './loader-selectors';
import { getDataEntityId } from './dataentity.selectors';
const metaDataState = ({ metaData }: Roo... |
/* eslint-disable camelcase */
import {
chart_color_blue_100,
chart_color_blue_200,
chart_color_blue_300,
chart_color_blue_400,
chart_color_blue_500,
chart_color_green_100,
chart_color_green_200,
chart_color_green_300,
chart_color_green_400,
chart_color_green_500,
chart_color_cyan_100,
chart_col... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.