text stringlengths 10 953k |
|---|
import {
ChangeDetectionStrategy,
Component,
ElementRef,
Input,
OnDestroy,
OnInit,
OnChanges,
SimpleChanges,
Output,
EventEmitter
} from '@angular/core';
import { fromEvent as observableFromEvent, Subscription, Observable } from 'rxjs';
import { switchMap, takeUntil, tap } from 'rxjs/operators';
imp... |
import * as urlUtils from "./url";
/**
* 解析url
* @Author: dyh
* @Date: 2019-10-17 10:44
* @Description:
*/
export class UrlModel {
protocol: string = "";
port: number | string = "";
host: string = "";
path: string = "";
href: string = "";
hash: string = "";
query: Partial<{ [key: strin... |
/* eslint-disable no-param-reassign */
import {
BULLETED_LIST_NODE_TYPE,
DIVIDER_NODE_TYPE,
LINK_NODE_TYPE,
LIST_ITEM_NODE_TYPE,
LIST_ITEM_TEXT_NODE_TYPE,
NUMBERED_LIST_NODE_TYPE,
PARAGRAPH_NODE_TYPE,
isElementNode,
} from '@prezly/slate-types';
import type { Editor } from 'slate';
imp... |
import { NativeModules, NativeEventEmitter, EventEmitter, EmitterSubscription } from 'react-native';
import {
Registered, RegistrationError, RegisteredPushKit, NotificationResponse
} from '../interfaces/NotificationEvents';
import { Notification } from '../DTO/Notification';
import { NotificationActionResponse } from... |
export declare const cisBed: string[]; |
import { BookingStatus } from '@fhg-test/core';
import { Resource } from '../base';
import { getResourceEndpoint } from '../utils/endpoints';
import request, { QueryParams } from '../utils/request';
function getBaseUrl(): string {
return getResourceEndpoint(Resource.BookingStatuses);
}
async function list(queryPar... |
// Copyright (C) 2021 John Nesky, distributed under the MIT license.
import { FilterCoefficients, FrequencyResponse } from "../synth/filtering";
import { FilterType, Config } from "../synth/SynthConfig";
import { FilterSettings, FilterControlPoint, Instrument } from "../synth/synth";
import { SongDocument } from "./So... |
/********************************************************************************
* Copyright (C) 2017 Ericsson and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* T... |
export { default } from './ElementItemBasic'; |
import { base_parse, Options } from './nodes/html';
/**
* Parses HTML and returns a root element
* Parse a chuck of HTML source.
*/
export default function valid(data: string, options = { lowerCaseTagName: false, comment: false } as Partial<Options>) {
const stack = base_parse(data, options);
return Boolean(stack... |
/** @jsx jsx */
import { jsx, Flex } from "theme-ui"
import { keyframes } from "@emotion/core"
import { Text, ThemeCss } from "gatsby-interface"
import { PropsWithChildren, Fragment } from "react"
import { GatsbySite } from "../../controllers/site"
import { useSiteRunnerStatus, useSiteTabs } from "../../util/site-runne... |
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { Event } from './event.entity';
@Entity()
export class Tag {
@PrimaryGeneratedColumn()
id: number;
@Column({ unique: true })
name: string;
} |
import React, { ReactNode } from 'react';
import {
Box,
Typography,
Table,
TableBody,
TableCell,
TableRow,
} from '@material-ui/core';
import styled from 'styled-components';
const StyledTableCell= styled(({ hideDivider, ...rest }) => (
<TableCell {...rest}/>
))`
${({ hideDivider }) =>
hideDivider
... |
<TS language="zh_TW" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>右鍵點一下來修改位址或標記</translation>
</message>
<message>
<source>Create a new address</source>
<translation>產生一個新位址</translation... |
import {SlideAPIInfo, SlideReducerAction, SlideReducerState, SlideSection} from "../types/slideTypes";
export const slideReducerInitialState: SlideReducerState = {
templateSectionTitles: [
{ title: "Introduction", subtitles: ["Background", "Problem", "Workflow"]},
{ title: "EDA", subtitles: ["Data ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fi" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ebullioncoin</source>
<translation>Tietoa ebullioncoinista</translation>
</message>
<message>
... |
import { TypedObject } from "./typed-object";
/** An object used as a map to any values. */
export type UnknownObject = TypedObject; |
import { FormField as FormFieldType } from '@bigcommerce/checkout-sdk';
import { FieldProps } from 'formik';
import React, { memo, useCallback, useMemo, FunctionComponent } from 'react';
import { TranslatedString } from '../../locale';
import { AutocompleteItem } from '../../ui/autocomplete';
import { FormField, Label... |
export const LightModeToggle = () => {
return (
<svg width="45" height="45">
<path
d="M28.75 11.69A12.39 12.39 0 0 0 22.5 10a12.5 12.5 0 1 0 0 25c2.196 0 4.353-.583 6.25-1.69A12.46 12.46 0 0 0 35 22.5a12.46 12.46 0 0 0-6.25-10.81Zm-6.25 22a11.21 11.21 0 0 1-11.2-11.2 11.21 11.21 0 0 1 11.2-11.2c1.24... |
import * as config from '../../assets/config.json';
import { environment } from '../../environments/environment';
let state = config.default[`${environment.stateName}`].name;
export const dashboardReportDescriptions = {
imrTooltip: "This geo-location-based dashboard provides insights on school infrastructure acces... |
import { elementIsEnabled } from '@/domUtils';
import type { Item, ItemList, ItemToElementMap } from '@/types';
export function shouldResetCurrentTabStopItem(
itemToElementMap: ItemToElementMap,
currentTabStopItem: Item | null
): boolean {
if (!currentTabStopItem) {
// Tab stops list needs to have at least o... |
import * as React from "react";
import { View, StyleSheet } from "react-native";
import { COLORS } from "src/constants/colors";
import { height, moderateScale } from "src/utils/scale";
import { IconRoundButton } from "../Button";
import Icon from "../Icon";
import Typography from "../Typography";
export const ProfileI... |
// Libaries
import _ from 'lodash';
// Constants
import { DEFAULT_ANNOTATION_COLOR } from '@grafana/ui';
import { GRID_CELL_HEIGHT, GRID_CELL_VMARGIN, GRID_COLUMN_COUNT, REPEAT_DIR_VERTICAL } from 'app/core/constants';
// Utils & Services
import { contextSrv } from 'app/core/services/context_srv';
import sortByKeys fro... |
import { Update_Music_List, Delete_List_Item, UPDATE_CURRENT_PROGRESS, UPDATE_CURRENT_MUSIC, ADD_MUSIC_LIST, PLAY_PREV_MUSIC, PLAY_NEXT_MUSIC, CHANGE_MUSIC_PROGRESS, CHANGE_MUSIC_VOLUMNS, PLAY_CURRENT_MUSIC, PLAY_ALL_MUSIC, CLEAR_ALL_MUSIC } from "./actionTypes"
import DataStore from '../../store/musicStore'
import Mus... |
import express from "express";
import dotenv from "dotenv";
import mongoose from "mongoose";
import cors from "cors";
const app = express();
// load environment variablesd
dotenv.config({ path: `../.env` });
if (!process.env.NODE_ENV) {
console.error(`NODE_ENV is not set.\n`);
process.exit();
}
dotenv.config({ pat... |
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { useEffect, useState } from 'react';
import { useAudioVideo } from '../../providers/AudioVideoProvider';
export function useAttendeeAudioStatus(attendeeId: string) {
const audioVideo = useAudio... |
import {Injectable} from '@angular/core';
import {ADMIN, AUTHORITIES_KEY, CURRENT_USER, DATA_MONTH, ROLE, TOKEN, USER} from "../model/qlttcn.constant";
import {UserProfileModel} from "../model/user-profile.model";
@Injectable({
providedIn: 'root'
})
export class StorageService {
private role: Array<string> = [];
... |
import { Component, OnInit } from '@angular/core';
import { Company } from '../../common/Company';
import { RestService } from '../../services/rest.service';
import swal from 'sweetalert';
@Component({
selector: 'app-remove-company',
templateUrl: './remove-company.component.html',
styleUrls: ['./remove-company.c... |
/* eslint-disable import/no-unused-modules */
import { toPairs, reduce } from 'ramda';
import config from '../config';
import { buildMatchOperation } from './match';
import { buildSkipOperation } from './skip';
import { buildCountByOperation } from './countBy';
import { buildLimitOperation } from './limit';
import { bu... |
import { Headline } from '../models';
export const mockHeadlines: Array<Headline> = [
{
id: 'da178977-ea67-47eb-913b-2190b19bb472',
title:
'Earth to Voyager 2: After a Year in the Darkness, We Can Talk to You Again',
attribution: 'The New York Times, February 12, 2021',
teaser:
'In the ne... |
import {
Column,
Entity,
ManyToOne,
OneToMany,
OneToOne,
JoinColumn,
ManyToMany,
JoinTable,
} from 'typeorm';
import { UserAddress } from 'src/addresses/entities/address.entity';
import { Attachment } from 'src/common/entities/attachment.entity';
import { CoreEntity } from 'src/common/entities/core.enti... |
import React from "react";
import styles from "./styles.css";
import { useSpring, animated } from "react-spring";
interface TitleDisplayProps {
poem: App.Poem,
toggle: boolean
}
export default function TitleDisplay (props: TitleDisplayProps) {
const spring = useSpring({transform: `translate(${!props.toggle ? "0" :... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type BookDocument = Book & Document;
@Schema()
export class Book {
@Prop()
name: string;
@Prop()
author: string;
@Prop()
publishYear: number;
}
export const BookSchema = SchemaFactory.createForCl... |
import React from 'react';
import { Col, Row} from 'antd';
import { view as DragBar } from '../../../components/DragBar';
import RawInput from './RawInput';
import MarkdownDisplay from './Markdown';
import './Editor.less';
export default () => {
return <div>
<DragBar height={30} width={'88%'}></DragBar>
... |
import { AdditionalFormDialogComponent } from "@shared/components/dialog/additional-form-dialog/additional-form-dialog.component";
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from "@angular/core";
import {
FormGroup,
FormControl,
FormBuilder,
FormArray,
Validators,
} from "@angular/forms";
impo... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="da" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Infinitecoin</source>
<translation>Om Infinitecoin</translation>
... |
import { Apartments } from './entities/Apartment';
import { Users } from './entities/User';
import { Images } from './entities/Image';
import { Session } from './entities/Session';
export const entities = [Apartments, Users, Images, Session];
export { Apartments, Users, Images, Session }; |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UserTableRowsComponent } from './user-table-rows.component';
describe('UserTableRowsComponent', () => {
let component: UserTableRowsComponent;
let fixture: ComponentFixture<UserTableRowsComponent>;
beforeEach(async(() => {
T... |
import * as Db from "../db";
import { DbTheme } from "../db.types";
import { Theme } from "./theme.types";
export const getAllThemes = async () => {
return (await Db.getAllThemes()).map(toApiTheme);
};
export const getTheme = async (id: string) => {
const theme = await Db.getTheme(id);
if (!theme) {
throw... |
import React from 'react';
import { render } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
// Mocking suneditor which is problematic with Jest
jest.mock('suneditor', () => {});
jest.mock('suneditor/src/plugins/', () => {});
jest.mock('suneditor/src/plugins/submenu/align', () => {}... |
export declare type EuiPopoverPosition = 'top' | 'right' | 'bottom' | 'left'; |
import { BaseUuidEntity } from "./sys$BaseUuidEntity";
import { EntityTreeNode } from "./report$WizardReportEntityTreeNode";
import { Report } from "./report$Report";
import { ReportGroup } from "./report$ReportGroup";
import { ReportRegion } from "./report$WizardReportRegion";
export class ReportData extends BaseUuidE... |
import createDebug from "debug";
import bufferShim from "buffer-shims";
import assert from "assert";
import * as encryption from "../util/encryption";
import * as hkdf from "../util/hkdf";
import { DataStreamParser, DataStreamReader, DataStreamWriter, Int64 } from "./DataStreamParser";
import crypto from "crypto";
imp... |
import { InTaskEvent } from './entity/msg/in/event/InTaskEvent'
import { InSpeechRecognitionResults } from './entity/msg/in/InSpeechRecognitionResults'
import { InMsg } from './entity/msg/in/InMsg'
import { InImageMsg } from './entity/msg/in/InImageMsg'
import { InTextMsg } from './entity/msg/in/InTextMsg'
import { InN... |
import React from 'react';
type Props = {
/**
* The color of the icon
* @default 'currentColor'
*/
color?: string;
/**
* The size of the icon
* @default 24
*/
size?: string | number;
} & React.SVGProps<SVGElement>
/**
*
* @param {string} color - The color of the icon. ... |
import React, { FC, useState, useEffect, useCallback } from 'react';
import { Button, Table, Tag, Modal } from 'antd';
import { ExclamationCircleOutlined } from '@ant-design/icons';
import { useLocale, LocaleFormatter } from 'locales';
import { apiGetRoleList } from 'api/nest-admin/Permission';
import { Role, RoleStatu... |
import { doesMatchFilter } from "../../../utils";
import {
EventType,
InteractionMap,
RichEventData,
RichMiddleware,
} from "../../types";
import { preventDefaultHelper } from "../../utils";
export enum MouseInteractionType {
"LMB" = 0,
"MMB" = 1,
"RMB" = 2,
"Back" = 3,
"Forward" = 4,
}
/** Mouse ma... |
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import '../icon/icon';
import {html, TemplateResult} from 'lit';
import {customElement} from 'lit/decorators';
import {IconButton} from './lib/icon-button';
import {styles} from './lib/icon-button-styles.css';
declare global {
... |
import { Injectable } from "@angular/core";
import {
DEFAULT_DATE_FORMAT,
NgxDatetimeRangePickerConstants as Constants
} from "./ngx-datetime-range-picker.constants";
import { getNotAvailableText, cloneDeep, isNil } from "./ngx-datetime-range-picker.utils";
import {
Options,
Settings,
CalendarSides,
State,
... |
import { buildTypeName, capitalize, IndexedStructureDefinition, PropertyType } from '@medplum/core';
import { ElementDefinition } from '@medplum/fhirtypes';
import React from 'react';
import { AddressDisplay } from './AddressDisplay';
import { AttachmentArrayDisplay } from './AttachmentArrayDisplay';
import { Attachmen... |
import { toStyledTag } from '../color';
test('Test toStyledTag no match', () => {
const res = toStyledTag('abc123');
expect(res.style).toEqual({
backgroundColor: '#ffffff',
border: '1px solid #575757',
color: '#000000',
});
});
test('Test toStyledTag', () => {
const res = toStyledTag('integrations', {
int... |
import { makeSaveParticipantValidation } from './save-participant-validation-factory'
import { makeLogControllerDecorator } from '@/main/factories/decorators'
import { makeDbLoadBarbecueById, makeDbSaveParticipant } from '@/main/factories/usecases'
import { SaveParticipantController } from '@/presentation/controllers'
... |
import { FormControl } from '@angular/forms';
import * as i0 from "@angular/core";
interface Animal {
name: string;
sound: string;
}
/** @title Select with form field features */
export declare class SelectHintErrorExample {
animalControl: FormControl;
selectFormControl: FormControl;
animals: Animal... |
import React from 'react'
import PropertyType from '../property-type'
import { ActionProps } from './action.props'
import { DrawerContent } from '../design-system'
import ActionHeader from '../app/action-header'
/**
* @name ShowAction
* @category Actions
* @description Shows a given record.
* @component
* @priv... |
// @target: ES6
// @Filename: file1.ts
var var1 = 0;
// @Filename: file2.ts
let var1 = 0; |
import formDropdownItemQuantityLists from '../form-dropdown__item-quantity-list';
import AbstractFormDropdownItemQuantityListOpeningMethodModifier, {
FormDropdownItemQuantityList,
} from './AbstractFormDropdownItemQuantityListOpeningMethodModifier';
class FormDropdownItemQuantityListFoldedOpeningMethodModifier exten... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
// Import Containers
import { DefaultLayoutComponent } from './containers';
import { P404Component } from './views/error/404.component';
import { P500Component } from './views/error/500.component';
import { LoginComponen... |
import {
ActionType,
EditorContextValue,
findNextNode,
findPreviousNode,
getFocusTree,
PluginState,
State,
StateType
} from '@edtr-io/core'
import * as React from 'react'
import { rowsState, rowState } from '..'
export default function({
row,
rows,
index,
store,
getDocument,
renderIntoExte... |
import {
doub,
doubleVee,
doubleYou,
en,
ex,
single,
square,
vee
} from "../examples";
import { def } from "../../src/utils";
test("roots() works for square", () => {
const dag = square();
const [root] = dag.roots();
expect(dag).toBe(root);
const [otherRoot] = root.iroots();
expect(otherRoot... |
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity('users')
export class User {
@PrimaryGeneratedColumn()
id: string;
@Column({ unique: true })
email: string;
@Column({ unique: true })
username: string;
@Column({ nullable: true })
displayName: string;
} |
import { Reader, Writer } from "protobufjs/minimal";
import { DenomTrace, Params } from "../../../../ibc/applications/transfer/v1/transfer";
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
export declare const protobufPackage = "ibc.applications.transfer.v1";
/**
* QueryDe... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Wesleycoin</source>
<translation>Про Wesleycoin</translation>
</... |
import { Injectable } from '@angular/core';
import { AuthGenerateResponse } from './services/auth/authgenerateresponse';
import * as moment from 'moment';
import { HttpHeaders } from '@angular/common/http';
declare let $: any;
@Injectable({ providedIn: 'root' })
export class Util {
constructor() { }
randomSt... |
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const biBookHalf: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligature... |
import React, { useState } from "react";
import {
Box,
Button,
HStack,
Image,
Link,
Modal,
ModalBody,
ModalCloseButton,
ModalContent,
ModalHeader,
ModalOverlay,
Spinner,
Stack,
Text,
} from "@chakra-ui/react";
import { providers } from "ethers";
import { UnsupportedChainIdError, useWeb3React... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { ethers } from "ethers";
import {
FactoryOptions,
HardhatEthersHelpers as HardhatEthersHelpersBase,
} from "@nomiclabs/hardhat-ethers/types";
import * as Contracts from ".";
declare module "hardhat/types/runtime" {
... |
import seedrandom from 'seedrandom';
import * as characterNames from './assets/character-names.json';
const names: Record<string, string[]> = (characterNames as any).default || characterNames;
const getRandom = (rng: any, arr: string[]): string => arr[Math.floor(rng() * arr.length)];
export const getCharacterNameFro... |
import { Cycle } from '../../configuration';
import { Which } from '../../configuration';
import { BaseHoliday, IBaseHoliday, IFixedDate, IFixedWeekday } from '../../configuration';
export interface ICalendarHelper {
addDays(date: Date, days: number): Date;
calculateFixedDate(fix: IFixedDate, year: number): Date;
... |
/* tslint:disable */
/* eslint-disable */
/*
* Autogenerated by @creditkarma/thrift-typescript v{{VERSION}}
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
export const SHARED_INT: number = 45; |
import test from 'ava';
import 'fake-indexeddb/auto';
import { KeyBuilderFactory, RemoteEngine, createEngineConnection } from '../index';
import { IOStream, NodeIOStream } from '@kvh/helper';
import { Worker } from 'worker_threads';
import * as path from 'path';
import { EnterPointMessageType, EngineMethodType } from '... |
<TS language="la" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Crea novam inscriptionem</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
<t... |
import {
Injectable,
CanActivate,
ExecutionContext,
UnauthorizedException,
} from '@nestjs/common';
import * as jwt from 'jsonwebtoken';
@Injectable()
export class BuyerGuard implements CanActivate {
async canActivate(context: ExecutionContext) {
const request = context.switchToHttp().getRequest();
c... |
import { NewTumblFileOptions, NewTumblNotificationOptions } from './new-tumbl.interface';
import {
GenericDefaultFileOptions,
GenericDefaultNotificationOptions,
} from '../generic/generic.defaults';
export const NewTumblDefaultFileOptions: NewTumblFileOptions = {
...GenericDefaultFileOptions,
blog: '',
};
exp... |
import { Controller, Get, Delete, Param, HttpCode, Put, Res, Post, Body } from '@nestjs/common';
import { TodosService } from './todos.service';
import { TodoCreate } from './todo-create';
import { response } from 'express';
@Controller('todos')
export class TodosController {
constructor(private service: TodosSer... |
import * as os from "os";
import * as path from "path";
import { Uri } from "vscode";
import { writeFileSync, mkdirSync } from "fs";
import * as crypto from "crypto";
import { iconv } from "./vscodeModules";
import { configuration } from "./configuration";
import { pathExists } from "../util";
export const tempdir = p... |
export * from "./useCredentials";
export * from "./usePageOffset";
export * from "./useSnackbar";
export * from "./useUsers";
export * from "./useFetchCourier";
export * from "./useMarketplaces"; |
import { ModuleWithProviders, NgModule } from '@angular/core';
import {
provideConfig,
provideConfigValidator,
provideDefaultConfig,
} from '@spartacus/core';
import {
CdsConfig,
cdsConfigValidator,
DEFAULT_CDS_CONFIG,
} from './config/index';
import { MerchandisingModule } from './merchandising/merchandisi... |
import { IRenderParams } from "./common/render-params";
export const numberRenderer: (params: IRenderParams<"number">) => string = ({
cache,
varName
}) => {
cache.includeSnippet("number");
return `assertNumber(${varName})`;
}; |
import {
ProjectConfiguration,
readProjectConfiguration,
Tree,
} from '@nrwl/devkit';
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
import { Schema } from '../schema';
import { libraryGenerator } from '../../library/library';
import { moveProject } from '@nrwl/workspace/src/generators/move/... |
export interface EventField {
readonly title: string
readonly value: string
} |
import { InternalServerErrorMessage } from "../../const";
import { HttpError } from "./http.error";
export class InternalServerError extends HttpError {
constructor() {
super({ status: 500, message: InternalServerErrorMessage });
}
} |
import { getCustomRepository } from "typeorm";
import { UserRepositories } from "../repositories/UserRepositories";
import { compare } from "bcryptjs";
import { sign } from "jsonwebtoken";
interface IAuthenticateRequest {
email: string;
password: string;
}
class AuthenticateUserService {
async execute({ email, ... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.20.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do n... |
import { Component } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
@Component({
selector: '<%= selector %>',
<% if(inlineTemplate) { %>template: `
<button nz-button [nzType]="'primary'" (click)="createBasicNotification()">Open the notification box</button>
`<% } else { %>templa... |
import { Message, MessageKind } from '@lumx/react';
import { boolean, select, text } from '@storybook/addon-knobs';
import React from 'react';
export default { title: 'Message' };
export const message = () => (
<Message
kind={select('Kind of message', MessageKind, MessageKind.error)}
hasBackground... |
import {NgModule} from "@angular/core";
import {CommonModule} from "@angular/common";
import {JigsawMobileGraphModule} from "jigsaw/mobile_public_api";
import {StripGraphComponent} from "./demo.component";
import {JigsawDemoDescriptionModule} from "app/demo-description/demo-description";
import {JigsawMobileHeaderModu... |
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import mongoose from 'mongoose';
import dotenv from 'dotenv';
import supertest from 'supertest';
import { app } from 'app';
import { INITIAL_INDX, JEST_TIMEOUT, NOTHING, STATUS_CODES } from 'con... |
export * as md5 from './md5'
export * as isStream from './isStream'
export const isArray = Array.isArray
export const isDate = (val: unknown): val is Date => val instanceof Date
export const isFunction = (val: unknown): val is Function =>
typeof val === 'function'
export const isString = (val: unknown): val is strin... |
/**
* @module auth
*
* Todo: Rewrite this description
*
* @preferred
* Contains credentials implementation.
*
* Credentials – passwords, logins, application keys, secrets. This information is usually linked
* with connection parameters. Connection parameters separate from authentication, because auth.
... |
/*
Copyright 2019-2021 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... |
import * as React from 'react';
import { Icon } from 'antd';
import Colors from './Colors';
interface Props {
selectedMode: string;
style?: any;
onSelect?: (mode: string) => void;
}
const toggles = [{ text: 'list', icon: 'bars' }, { text: 'cards', icon: 'appstore' }];
const ListCardToggle = ({ selectedMode, st... |
import { IsUUID } from '../../common/validation';
export class ParamUuidDto {
@IsUUID()
id: string;
} |
/*-
* #%L
* Baleen 3
* %%
* Copyright (C) 2020 Dstl
* %%
* 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 a... |
// https://www.terraform.io/docs/providers/snowflake/r/resource_monitor_grant.html
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
// Configuration
export interface ResourceMonitorGrantConfig extends cdktf.TerraformMetaArguments {
/**
* Identifi... |
// /src/device/fmd_good/materialiconssharp/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgFmdGoodSharp = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24">
<g>
<path d="M0,0h24v24H0V0z" fill="none"... |
import * as path from 'path'
import { FeatureRunner } from '../lib/runner'
import { storageStepRunners } from './storage'
test('regexGroupMatcher', async () => {
const runner = new FeatureRunner<any>(
{},
{
reporters: [],
dir: path.join(process.cwd(), 'test', 'storage'),
retry: false,
store: {
foo... |
import { objectType } from '@nexus/schema'
export const User = objectType({
name: 'User',
definition(t) {
t.id('id')
t.string('name')
t.string('email')
t.string('password')
t.field('globalRole', {
type: 'RoleTypeEnum',
resolve: async ({ globalRole }) => globalRole,
})
t.fi... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
// @codepen
import * as React from 'react';
import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';
import { Label } from 'office-ui-fabric-react/lib/Label';
import './Spinner.Basic.Example.scss';
export class SpinnerBasicExample extends React.Component<any, any> {
public render(): JSX.Element {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.