text stringlengths 10 953k |
|---|
import styled from "styled-components";
export const PageTitle = styled.h2`
text-align: center;
font-size: calc(1.25 * 36px);
`; |
/// <reference path="./throwable.d.ts" />
/// <reference path="./http_server_request.d.ts" />
/// <reference path="./server_web_socket.d.ts" />
/// <reference path="./measured.d.ts" />
/// <reference path="./http_server_request_stream.d.ts" />
/// <reference path="./server_web_socket_stream.d.ts" />
declare module "ve... |
import algoliasearch from 'algoliasearch'
import constants from 'config/constants'
const client = algoliasearch(
process.env.GATSBY_ALGOLIA_APP_ID!,
process.env.GATSBY_ALGOLIA_SEARCH_KEY!
)
const indexKey = process.env.CONTEXT === 'prodcution' ? 'production' : 'development'
const indexName = constants.search.inde... |
import Vue from 'vue'
import Router, { RouteConfig } from 'vue-router'
Vue.use(Router)
const Home = { template: '<router-view></router-view>' }
const Default = { template: '<div>default</div>' }
const Foo = { template: '<div>foo</div>' }
const Bar = { template: '<div>bar</div>' }
const Baz = { template: '<div>baz</di... |
import { takeUntil } from 'rxjs/operators';
import { Store, select } from '@ngrx/store';
import { Component, OnDestroy, OnInit, TemplateRef, ViewChild, Input, OnChanges, SimpleChanges } from '@angular/core';
import { ReplaySubject, Observable } from 'rxjs';
import { AppState } from '../../../store/roots';
import { BsMo... |
import React, { Component, MouseEvent } from 'react'
import { ReactComponentLike } from 'prop-types'
import {
castTouchToMouseEvent,
detectMouseButton,
doObjectsCollide,
getBoundsForNode,
isNodeInRoot,
noop,
Maybe,
TComputedBounds
} from './utils'
import { TSelectableItem } from './Selectable.types'
im... |
import React, {useEffect} from "react";
import {useDispatch, useSelector} from "react-redux";
import { useHistory } from "react-router-dom";
import {Button, Icon, Modal} from "semantic-ui-react";
import axios from "axios";
import APIUrls from "../constants/api-urls";
import HttpStatus from "../constants/http-status-co... |
import Image from "next/image";
import { useEffect, useRef, useState } from "react";
import { usePlayer } from "../../contexts/PlayerContext";
import styles from "./styles.module.scss";
import Slider from "rc-slider";
import "rc-slider/assets/index.css";
import { convertDurationToTimeString } from "../../utils/convertD... |
import { Run } from '../src/compiler';
import { expect } from 'chai';
import { describe, it } from 'mocha';
describe('Arithmetic Operators', () => {
it('Binary', () => expect('7\r\n3\r\n10\r\n2.5\r\n1\r\n7\r\n3\r\n10\r\n2.5\r\n1\r\n').to.equals(new Run().test([
'var x, y; ... |
import { Arguments, PropertyInvocation, PropertyInterceptor, PropertyAttribute } from '../../../dependencies/core';
export class OnceAttribute<T extends object> implements PropertyAttribute, PropertyInterceptor {
get interceptor() {
return this;
}
intercept(target: PropertyInvocation, params: Arguments, rec... |
import { Router, Request, Response } from "express";
import { body, validationResult } from "express-validator";
import { currentUser } from "../middleware/currentUser";
import Image from "../model/Image";
const r = Router();
r.post(
"/api/images/",
[
body("url").notEmpty().isString().withMessage("Please prov... |
#!/usr/bin/env node
/**
* @author Sumant Manne <sumant.manne@gmail.com>
* @license MIT
*/
/**
* The purpleist module.
*
* @module purplebot
*/
import * as yargs from 'yargs'
Promise = require('bluebird')
import { init } from './bot'
import Cli from './cli'
import { FileConfig } from './config'
if (require.m... |
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { AboutPage } from './about';
@NgModule({
declarations: [
AboutPage,
],
imports: [
IonicPageModule.forChild(AboutPage),
],
exports: [
AboutPage
]
})
export class AboutPageMo... |
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
import { GetBucketCorsOutput, GetBucketCorsRequest } from "../models/models_0";
import { Command as $Command } from "@aws-sdk/smithy-client";
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, Metada... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import { Provider, TransactionRequest } from "@ethersproject/providers";
import type { FollowNFT, FollowNFTInterface } from "../FollowNFT";
const _abi ... |
import { EntityRepository, Repository } from "typeorm";
import { Compliment } from "../entities/Compliment";
@EntityRepository(Compliment)
class ComplimentsRepositories extends Repository<Compliment> { }
export { ComplimentsRepositories }; |
/**
* Generated bundle index. Do not edit.
*/
export * from './index';
//# sourceMappingURL=devextreme-angular-ui-scroll-view.d.ts.map |
import { Component } from '@angular/core';
@Component({
templateUrl: 'story.html'
})
export class StoryPage {
// First page to push onto the stack
} |
import { html } from "lit-html";
import { SketchMap } from "../sketch-map";
describe("SketchMap", () => {
it("should create base elements", () => {
const wrapper = mockWrapper();
new SketchMap(wrapper, {
labels: [],
arrows: [],
width: 512,
});
expect(wrapper.childElementCount).toBe... |
import * as React from 'react';
import {storiesOf} from '@storybook/react';
import {withKnobs, text} from '@storybook/addon-knobs';
import {Anchor} from '@twilio-paste/anchor';
import {Box} from '@twilio-paste/box';
import {Button} from '@twilio-paste/button';
import {InformationIcon} from '@twilio-paste/icons/esm/Info... |
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
export class createMedia1616632656100 implements MigrationInterface {
private table = new Table({
name: 'media',
columns: [
{
name: 'id',
type: 'integer',
isPrimary: true,
isGenerated: true,
genera... |
interface RequestOptions {
body?: string | object;
headers?: {[name: string]: string};
}
interface MockResponse {
method: string;
url: string;
options: RequestOptions;
}
export async function request(
method: string,
url: string,
options: RequestOptions,
): Promise<string> {
return new Promise<strin... |
export * from "./Forecastquery";
export * from "./ForecastqueryClient";
export * from "./commands/QueryForecastCommand";
export * from "./models/index"; |
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,
HandlerExecutionContext,
HttpHandlerOptions... |
class PeriodicElement {
name: number;
position: number;
weight: number;
symbol: number;
} |
import {BoxrecCommonTablesColumnsClass} from "../../boxrec-common-tables/boxrec-common-tables-columns.class";
import {BoxrecTitles} from "../../boxrec-common-tables/boxrec-common.constants";
import {DateGetter, DateInterface} from "../../decorators/date.decorator";
import {FirstBoxerWeightGetter, FirstBoxerWeightInterf... |
//@target: ES6
interface I<T, U> {
[Symbol.unscopables]: T;
[Symbol.isConcatSpreadable]: U;
}
declare function foo<T, U>(p: I<T, U>): { t: T; u: U };
foo({
[Symbol.isConcatSpreadable]: "",
[Symbol.toPrimitive]: 0,
[Symbol.unscopables]: true
}); |
import React from 'react';
import { Formik, Form } from 'formik';
import { Heading, Text, Box, Flex } from 'rebass/styled-components';
import * as yup from 'yup';
import Stack from '../../ui/Stack';
import TextInput from '../../ui/TextInput';
import {RadioGroup, RadioItem} from '../../ui/RadioGroup';
import Button fro... |
<TS language="hi" 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>
<tra... |
/**
* @module botframework-streaming-extensions
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
export * from './PayloadAssembler'; |
import { Component, OnInit } from '@angular/core';
import { NavigationEnd, Router } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { RestService } from './../../../services/rest.service';
import { AuthService } from './../../../services/auth.service';
// import { HttpClient } fro... |
import mongoose, { Document } from 'mongoose';
export interface IUser extends Document {
firstName: string;
lastName: string;
participation: number;
}
const UsersSchema = new mongoose.Schema({
firstName: { type: String, required: true },
lastName: { type: String, required: true },
participation: { type: S... |
import { Document } from 'mongoose';
export default interface UserDocument extends Document {
name: string,
email: string,
password: string,
username: string,
role: number;
image: string,
token: string;
tokenExp: number;
comparePassword: Function,
generateToken: Function,
}; |
import Link from 'next/link';
import { useContext } from 'react';
import { UserContext } from '../lib/context';
import { useRouter } from 'next/router';
import { auth } from '../lib/firebase';
// Top navbar
export default function Navbar() {
const {user, username} = useContext(UserContext);
const router = useRouter... |
import React from 'react'
export const LockOpenOutline = React.memo<React.SVGProps<SVGSVGElement>>(props => (
<svg {...props} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M8 11V7a4 4 0 118 0m-4 8... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an Apache 2 license that can be
* found in the LICENSE file and online at:
* https://www.apache.org/licenses/LICENSE-2.0.html
*/
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app... |
import React, { forwardRef } from 'react'
import Types from '../../misc/hocs/Typography/types'
import Typography from '../../misc/hocs/Typography'
const Header = (props: Types.Props, ref) =>
<Typography
tag="span"
sizesOf="header"
specificStyles={{
fontWeight: 700,
... |
import { fabric } from 'fabric';
import uuid from 'uuid';
import { FabricObject } from '../utils';
import { OUT_PORT_TYPE, NodeObject } from './Node';
import { PortObject } from './Port';
export interface LinkObject extends FabricObject<fabric.Line> {
fromNode?: NodeObject;
toNode?: NodeObject;
fromPort?: PortObje... |
import fetch from "node-fetch";
import { MS_GRAPH_API } from "../constants";
import { OpenApiType } from "../models/OpenApiType";
export class AutoComplete {
public static async get(url: string, version: "v1.0" | "beta" = "v1.0"): Promise<OpenApiType | null> {
try {
const apiUrl = `${MS_GRAPH_API}&graphV... |
class Home {
public app: any = require('durandal/app');
}
export = Home; |
import React from 'react';
import { BaseColorSliderProps } from '../ColorSlider/ColorSlider';
export interface AlphaSliderProps extends BaseColorSliderProps {
color: string;
}
export declare const AlphaSlider: React.ForwardRefExoticComponent<AlphaSliderProps & React.RefAttributes<HTMLDivElement>>;
//# sourceMapping... |
/*
* Copyright (c) 2018 by Filestack.
* Some 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 ... |
/* eslint-disable max-lines-per-function */
import {
addition,
subtraction,
multiplicaton,
division,
} from '../../src/Utils/Calc';
describe('\n💡 Utils > Calc\n', () => {
// Addition Testing
describe('📌 Addition Function', () => {
test('If addition function returns a number', () => {
expect(typ... |
export class UserSearchState {
constructor(
public hasMoreData: boolean,
public list: string[],
) {}
} |
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { Servicio } from 'src/app/feature/servicio/shared/model/servicio';
import { ServicioService } from 'src/app/feature/servicio/shared/service/servicio.service';
import swal from 'sweetalert2';
@Component({
selector: 'app-list... |
/** 中文美化配置选项 */
export type CorrectorOptions = {
/** 是否使用增强的美化规则,默认为 `true` */
enhanceRule?: boolean;
/** 是否将全角字符转换为半角字符,默认为 `true` */
toHalfWith?: boolean;
}; |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ConfigModule } from './config/config.module';
@Module({
imports: [ConfigModule.register({ folder: './config' })],
controllers: [AppController],
providers: [AppService],
... |
import { Test } from '@nestjs/testing';
import { ConfigService } from '@nestjs/config';
import { Provider } from '@nestjs/common';
import { NestFastifyApplication, FastifyAdapter } from '@nestjs/platform-fastify';
import { UserService } from '../src/user/user.service';
import { AuthService } from '../src/auth/auth.serv... |
import { Spectral } from '../../../spectral';
import { commonOasRules } from '../index';
const ruleset = { rules: commonOasRules() };
describe('openapi-tags-alphabetical', () => {
const s = new Spectral();
s.addRules({
'openapi-tags-alphabetical': Object.assign(ruleset.rules['openapi-tags-alphabetical'], {
... |
import store from './state'
import buttonMap from './buttonMap'
import calc, { isNumeric } from './core'
import { last } from 'lodash'
const keyMap = new Map<string, Function>()
const keypad = document.querySelector<HTMLElement>('.keypad')!
const operationChain = document.querySelector<HTMLElement>('.operation-chain')... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 r... |
import Slider from 'react-slick';
import React, { useRef } from 'react';
// material
import { useTheme, styled } from '@mui/material/styles';
import { Box, Button, Container, Grid, Stack, Typography } from '@mui/material';
// utils
//
import { useRouter } from 'next/router';
// ----------------------------------------... |
// (C) Copyright 2015 Moodle Pty Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
const handler = require('../src/index').handler;
const LambdaTester = require('lambda-tester');
describe('Status producer', () => {
// UnitOfWork_StateUnderTest_ExpectedBehavior
describe('HTTP Get handler', () => {
test(' with any event returns {version: "0.0.1"}', async () => {
// Arrange
process.... |
export abstract class EnvironmentValidator {
/**
* Validates and returns the final, converted value of the given environment variable value string.
*
* @param input The raw value of the environment variable or `undefined` if not set.
*/
public abstract validate(input: string | undefined): any;
} |
import { createContext, __DEV__ } from "@chakra-ui/utils"
import * as React from "react"
interface PortalManagerContext {
zIndex?: number
}
const [
PortalManagerContextProvider,
usePortalManager,
] = createContext<PortalManagerContext | null>({
strict: false,
name: "PortalManagerContext",
})
export { usePo... |
import {Injectable} from '@angular/core';
import {BaThemeConfigProvider} from '../../../theme';
@Injectable()
export class ChartistJsService {
private _data = {
simpleLineOptions: {
color: this._baConfig.get().colors.defaultText,
fullWidth: true,
height: '300px',
chartPadding: {
... |
/* eslint-disable no-continue */
import { get } from '../core';
import { pseudoSelectors } from '../pseudo/selectors';
import { CSSObject, Theme } from '../types';
import { defaultBreakpoints, defaultTheme, isFunction } from '../utils';
import { getParserDicts } from './util';
const { aliases, multiples, scales, tran... |
import React from 'react';
import {HydrationTracker} from '@shopify/react-hydrate';
import {State} from '../manager';
import {useClientDomEffect} from '../hooks';
import {MANAGED_ATTRIBUTE} from '../utilities';
export function HtmlUpdater() {
const queuedUpdate = React.useRef<number | null>(null);
useClientDomEf... |
<TS language="ro_RO" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Click-dreapta pentru a edita adresa sau eticheta</translation>
</message>
<message>
<source>Create a new address</source>
... |
import {action, observable} from 'mobx'
import {RecordStorage} from './index'
import {Injectable} from 'type-injector'
export class RecordContainer<T> {
@observable
_: T
constructor(value?: T) {
if (value) {
this._ = value
}
}
}
export default class DefaultRecordStorage<T> implements RecordStor... |
import { PainterElementOption } from "./painter-element/base";
export interface Size {
width: number;
height: number;
}
export interface Rect {
top: number;
left: number;
width: number;
height: number;
}
export declare type BaseLine = "top" | "middle" | "bottom" | "normal";
export declare type B... |
import { DataSetFieldTypeTypeEnum } from 'generated-sources';
export const isComplexField = (fieldType: DataSetFieldTypeTypeEnum) =>
[
DataSetFieldTypeTypeEnum.STRUCT,
DataSetFieldTypeTypeEnum.LIST,
DataSetFieldTypeTypeEnum.MAP,
].includes(fieldType);
// checks if a prop of styled component needs to b... |
import Command, { ReturnValue } from "../abstract/Command";
import DocumentationObject from "../abstract/DocumentationObject";
import { Message, MessageEmbed } from "discord.js";
export default class HelpCommand extends Command {
run(message: Message, args: string[]): ReturnValue {
if (args.length === 0) {... |
import { Bank } from 'oldschooljs';
import { buyLimit } from '../src/lib/util/buyLimit';
import getOSItem from '../src/lib/util/getOSItem';
describe('buyLimit.test', () => {
test('buyLimit', () => {
expect(
buyLimit({
buyLimitBank: new Bank(),
increaseFactor: 10,
itemBeingBought: getOSItem('Coal'),
... |
/*
* 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 { Conta... |
import { Component, OnInit, HostBinding, EventEmitter, Input, Output,
trigger, transition, animate,
style, state } from '@angular/core';
import { Router, ActivatedRoute, Params } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/switchMap';
import { Toasts... |
import * as mongoose from 'mongoose';
export const UsersSchema = new mongoose.Schema({
id: { type: String, required: false },
username: { type: String, required: true },
email: { type: String, required: true },
password: { type: String, required: true },
booking: { type: [String], required: false },
favori... |
/*
* Copyright 2020 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 ... |
import DEBUG from 'debug';
export const debug = DEBUG('shift-refactor'); |
import * as M from '../..';
import { BaseTestContract } from './base.contract';
import { Inject } from '../..';
import { TestContract } from './simple.contract';
@M.Injectable('ExtendTestContract')
@M.MethodConfig('ExtendTestContract', [], '/api')
export class ExtendTestContract extends BaseTestContract {
construc... |
import * as passport from 'passport';
// import * as passportLocal from 'passport-local';
import User from '../../models/user.model';
const MagicLinkStrategy = require('passport-magic-link').Strategy
const nodemailer = require("nodemailer");
export default function addLocalStrategy() {
console.log("init MagicLinkS... |
import { IPlayersRepository } from '@modules/players/domain/repositories';
import { IFindOnePlayerParams } from '@modules/players/domain/repositories/IPlayersRepository';
import { IPlayer } from '@modules/players/domain/entities';
import CreatePlayerAdapter from '@modules/players/domain/adapters/CreatePlayer';
import {... |
import * as http from '../http'
import {LsFiles, URLType} from './ls'
export function editFileInfo(file_id: FileId) {
return http.request
.post('doupload.php', {
form: {task: 46, type: 1, file_id} as Task46,
})
.json<Task46Res>()
}
export function editFile(file_id: FileId, file_name: string) {
r... |
export class CommonProperty{
createdAt?: Date;
updatedAt?: Date;
createdBy?: string;
updatedBy?: string;
} |
describe('className / class', () => {
it('should have className', () => {
expect(<aside className="one" />).toHaveClass('one');
});
it('should have a class attribute', () => {
expect(<i class="a b c" />).toHaveClass('a b c');
});
}); |
import Viewport from '../viewports/viewport';
import {parsePosition, getPosition, Position} from '../utils/positions';
import {deepEqual} from '../utils/deep-equal';
import assert from '../utils/assert';
import type Controller from '../controllers/controller';
import type {ControllerOptions} from '../controllers/contro... |
/*
* 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 { EuiAccordion } from '@elastic/eui';
import React from 'react';
impor... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import * as log from "../log";
import { translate, MessagingError, Constants } from "@azure/core-amqp";
import { ReceiverEvents, EventContext, OnAmqpEvent, SessionEvents, AmqpError } from "rhea-promise";
import { ServiceBusMessageImpl, ReceiveM... |
import * as React from 'react'
import { Button, Divider, Flex, Header, Label, Portal } from '@stardust-ui/react'
class PortalExamplePortal extends React.Component {
state = { log: [], logCount: 0 }
handleClick = () =>
this.setState({
log: [`${new Date().toLocaleTimeString()}: handleClick`, ...this.state... |
import { IHttpClient } from "aurelia";
export class Fetchdata {
constructor(@IHttpClient readonly http: IHttpClient) {
}
forecasts: IWeatherForecast[];
async load() {
this.forecasts = await this.http.fetch("/WeatherForecast").then(result => result.json() as Promise<IWeatherForecast[]>);
}
}
interface IWeathe... |
import { describe, expect, test } from "vitest";
import { mount, shallowMount } from "@vue/test-utils";
import InputLabel from "../InputLabel/InputLabel.vue";
import Checkbox from "./Checkbox.vue";
const CHECKBOX_LABEL = "My Checkbox Label";
const CHECKBOX_ID = '[data-test-id="checkbox"]';
const CHECKBOX_MIXED_STATE_... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { SettingsDialogComponent } from './settings-dialog.component';
class MatDialogRefMock {
close(value = '') {}
}
class MatDialogDataMock {
data = {};
}
describe('Sett... |
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import {WeatherService} from '../../services/weather.service';
import {LocationService} from '../../services/location.service';
@Component({
selector: 'page-home',
templateUrl: 'home.html',
providers: [ WeatherService, Loc... |
import {
EventEmitter, ChangeDetectionStrategy, Component, Input, OnInit, Output,
} from '@angular/core';
import {
InAppNotification,
InAppNotificationDetail,
} from 'core-app/features/in-app-notifications/store/in-app-notification.model';
import { WorkPackageResource } from 'core-app/features/hal/resources/work-... |
// import { abs } from './abs'
// import { exp } from './exp'
// import { log } from './log'
// export default (x: number): number => {
// if (!(x === 0 || x === +1 / 0 || x === -1 / 0 || x !== x)) {
// const a = abs(x)
// const y = exp(log(a) / 3)
// x = (x / a) * (y + (a / (y * y) - y) / 3)
// }
// ... |
import React from "react";
declare type TransientProps = Record<`$${string}`, any>;
export declare type FunctionTemplate<P, E> = <K extends TransientProps = {}>(template: TemplateStringsArray, ...templateElements: ((props: P & K) => string | undefined | null)[]) => React.ForwardRefExoticComponent<React.PropsWithoutRef<... |
import {Component} from "@angular/core";
import {JigsawInput} from "jigsaw/pc-components/input/input";
@Component({
templateUrl: './demo.component.html',
styleUrls: ['./demo.component.css']
})
export class InputPasswordComponent {
// ====================================================================
... |
export * from './src/combo-box.component';
export * from './src/combo-box-entitty.interface';
export * from './src/combo-box.module'; |
import React from 'react'
import { useAppStore } from '../../../data/stores/app-store'
import { TagTyper } from '../../../types/enums'
import { RSSoknadstype } from '../../../types/rs-types/rs-soknadstype'
import Vis from '../../vis'
import { SpmProps } from '../sporsmal-form/sporsmal-form'
import { fjernIndexFraTag }... |
import {NgModule} from '@angular/core';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {HttpClientModule} from '@angular/common/http';
import {
MatButtonModule,
MatDialogModule,
MatDividerModule,
MatInputModule,
MatPaginatorModule,
MatSelectModule,
MatSortModule,
MatTableModule,... |
import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';
export class CreateFollow {
@IsString()
@ApiProperty({ type: String })
ownerId: string;
@IsString()
@ApiProperty({ type: String })
followOwnerId: string;
}
export class RemoveFollow {
@IsString()
@ApiProperty({... |
import { Component, OnInit, Inject } from '@angular/core';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA, MatSelect} from '@angular/material';
import { HttpClient } from '@angular/common/http';
import { projection } from '@angular/core/src/render3';
@Component({
selector: 'app-suppression-dialog',
templateUrl:... |
import * as pipe from '../node/pipe';
import { plugin } from './plugins';
import { walkProjectFiles } from './walk-project-files';
export const analyseProject = async () => {
const files = await walkProjectFiles();
// Clear analyseInfo
Object.keys(plugin.analyseInfo).forEach(key => delete plugin.analyseInfo[key... |
import { Mixin } from '@ember/-internals/metal';
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface Enumerable {}
declare const Enumerable: Mixin;
export default Enumerable; |
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
import type { CanUndef, IComponent, IDictionary, IViewComponent } from '../../types';
import { err... |
import { stripIndent } from 'common-tags';
import cloneDeep from 'lodash.clonedeep';
import dotProp from 'dot-prop';
import parse from '../index';
const exampleMarkdown = stripIndent`
<div class="some-class">
<h1>Hello</h1>
<img src="some/path/picture.jpg" alt="yay"/>
</div>
## Hello
Some content
... |
import {
AtLeastOneSepMethodOpts,
ConsumeMethodOpts,
DSLMethodOpts,
DSLMethodOptsWithErr,
GrammarAction,
IOrAlt,
IRuleConfig,
ISerializedGast,
IToken,
ManySepMethodOpts,
OrMethodOpts,
SubruleMethodOpts,
TokenType
} from "@chevrotain/types"
import { contains, values } from "@chevrotain/utils"
i... |
import { createStore, Store } from "redux";
import { arrayContains } from "./helpers";
import { root_reducer } from "./reducers";
import { GraphAction, StoreShape } from "./types";
export class DirectedGraph {
store: Store<StoreShape>;
ROOT_USER: string;
constructor() {
this.store = createStore(root_reducer);
}... |
import React from 'react';
import userEvent from '@testing-library/user-event';
import { render, screen } from '@testing-library/react';
// Components
import { FalseNegative } from '.';
test('should increade, decrease, reset and check the counter value - by text', () => {
const { debug } = render(<FalseNegative />)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.