text stringlengths 10 953k |
|---|
import { GraphQLType } from 'graphql';
import { GraphQLSchemaWithTransforms, RootFieldFilter } from '../Interfaces';
/**
* @category Schema Utility
*/
export default function filterSchema({ schema, rootFieldFilter, typeFilter, fieldFilter, }: {
schema: GraphQLSchemaWithTransforms;
rootFieldFilter?: RootFieldF... |
import {PortablePath} from '@yarnpkg/fslib';
import {DependencyMeta, PeerDependencyMeta} from './Manifest';
export type IdentHash = string & { __ident_hash: string };
export interface Ident {
identHash: IdentHash,
scope: string | null,
name: string,
};
export type DescriptorHash = string... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
@Module({
imports: [
TypeOrmModule.forRoot({
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'postgres',
password: 'plutta',
database: 'portfolio',
entities: ['dist/**/*.... |
/// <reference types="react" />
declare const AddressBookO: import("react").ForwardRefExoticComponent<import("../../Icon").IconProps & import("react").RefAttributes<SVGElement>>;
export default AddressBookO; |
import { debounce } from "lodash";
import { debounce_animation_frame } from "./debounce_animation_frame";
import { drawChartMaxWait, drawChartWait } from "./drawChartMaxWait";
import { draw_iteration_rounds_and_information_entropy_chart } from "./draw_iteration_rounds_and_information_entropy_chart";
export const draw_... |
export const environment = {
build: false,
name: "default"
}; |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import { TokenApiClientContext } from "../tokenApiClientContext";
import { SignInUrlResponse } from "botframework-schema";
/** Class r... |
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, Renderer2,
ViewChild } from '@angular/core';
import { PoUploadLiterals } from '../../interfaces/po-upload-literals.interface';
@Component({
selector: 'po-upload-drag-drop-area-overlay',
templateUrl: 'po-upload-dra... |
import * as React from "react";
import ReactMarkdown from "react-markdown";
import { connect } from "react-redux";
import {
getFrameworkLicensesSelector,
getPageLicencesSelector
} from "../../selectors/licenseSelector";
import { ILicenseObject } from "../../types/license";
import styles from "./styles.module.css";... |
import { SvelteComponentTyped } from 'svelte';
export default class BanIcon extends SvelteComponentTyped<svelte.JSX.HTMLAttributes<HTMLOrSVGElement>> {} |
/**
* @license
* Copyright 2017 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 wS from '../../src/creator-fn';
import useElement from '../utilities-for-testing/use-element';
const element = useElement('div');
test('Play animation event.', async () => {
const callback = jest.fn();
wS(element, 0.2)('opacity', [1, 0]).on('play', callback);
await new Promise((resolve) => {
return s... |
import { AbstractPlugin, IMetaData } from '../plugin/AbstractPlugin';
import PluginAPI from '../plugin/PluginAPI';
import Translation from '@util/Translation';
import * as Namespace from '@connection/xmpp/namespace';
import { $iq } from '@vendor/Strophe';
/**
* XEP-0199: XMPP Ping
*
* @version: 2.0.1
* @see: https... |
import {Component} from '@angular/core';
import {ROUTER_DIRECTIVES, Routes} from '@angular/router';
import {HTTP_PROVIDERS} from '@angular/http';
import {LoginComponent} from './login/login.component.ts';
import {DashboardComponent} from './dashboard/dashboard.component.ts';
import { Session } from './shared/session.se... |
export interface Location {
country: string;
city: string;
} |
import * as d from '../../declarations';
import { loadTypeScriptDiagnostics, normalizePath } from '@utils';
import { removeCollectionImports } from '../transformers/remove-collection-imports';
import { removeStencilDecorators, removeStencilImports } from '../transformers/validate-types-transform';
import { updateStenci... |
import _ from 'lodash';
import { StoreState } from '../store/type';
import { Cage } from '../types/cage';
type PublishState = Pick<StoreState, 'notebooks'>;
export default class PublishResponseReducer<S extends PublishState> {
reduce(json: Cage, state: S) {
const data = _.get(json, 'publish-response', false);
... |
export enum Actions {
SET = 'SET',
ADD = 'ADD',
REMOVE = 'REMOVE',
DELETE = 'DELETE'
} |
import React, { useState, useMemo } from "react";
import { Avatar, Box, Card, CardContent, CardProps, Collapse, IconButton, ListItemIcon, MenuItem, Typography } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import { toBech32Address } from "@zilliqa-js/zilliqa";
import BigNumber from "... |
import { LambdaProxyRequestHandler } from './omahdog-aws/LambdaProxyRequestHandler';
import { SNSProxyRequestHandler } from './omahdog-aws/SNSProxyRequestHandler';
import { AddThreeNumbersRequest, AddThreeNumbersResponse } from './exchanges/AddThreeNumbersExchange';
import { AddTwoNumbersRequest, AddTwoNumbersResponse... |
export declare const isUnset: (o: any) => boolean;
export declare const isSet: (o: any) => boolean;
export declare function isSameURL(a: any, b: any): boolean;
export declare function isRelativeURL(u: any): boolean;
export declare function parseQuery(queryString: any): {};
export declare function encodeQuery(queryObjec... |
export { BuildRequest } from "./BuildRequest";
export { BuildResult, EnumBuildStatus } from "./BuildResult";
export { IProvider } from "./IProvider"; |
import React from 'react';
import { Container, LeftContainer, Header, Title, Footer, RightContainer } from './styles';
const TrendItem: React.FC = () => {
return (
<Container>
<LeftContainer>
<Header>Lorem ipsum - há 50 minutos</Header>
<Title>
<h4>Lorem ipsum dolor sit amet, con... |
import {DominionAction, DominionCommand, DominionLogs, DominionPlayerShortName, KnownActions} from "@types";
import logger from "logger";
import { extractActionFromLogLine } from "utils/actionHelper";
import { extractSubjectsFromLogLine } from "utils/subjectHelper";
import {getLogContainer} from "../observers";
const ... |
import React from 'react';
import { makeStyles, useTheme } from '@material-ui/core/styles';
import { Typography, Button, Card, Chip, Grid, IconButton, TextField, Tooltip } from "@material-ui/core";
import Autocomplete from '@material-ui/lab/Autocomplete';
import AddIcon from '@material-ui/icons/Add';
import RemoveIcon ... |
import type { RefObject } from "react";
import type { TouchInfo, DrawingInfo, SkiaView } from "../views";
import type { ICanvas, IPaint } from "../skia";
import type { FontMgr } from "../skia/FontMgr/FontMgr";
import type { Vector } from "./processors/math/Vector";
export interface DrawingContext extends Omit<Drawin... |
/**
* 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 { Element } from '@ephox/dom-globals';
import { Arr, Option } ... |
// TODO: better import syntax?
import { BaseAPIRequestFactory, RequiredError } from "./baseapi";
import { Configuration, getServer } from "../configuration";
import { RequestContext, HttpMethod, ResponseContext } from "../http/http";
import { ObjectSerializer } from "../models/ObjectSerializer";
import { ApiException }... |
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AdminLayoutRoutes } from './admin-layout.routing';
import { DashboardComponent } from '../../dashboard/das... |
import { CompletionItem, CompletionItemKind, MarkdownString } from 'vscode';
import { getDocUri } from '../../path';
import { testCompletion, testNoSuchCompletion } from '../../../completionHelper';
import { position } from '../../../util';
describe('Should autocomplete interpolation for <template> in property class c... |
export class Constants {
public static version = 3
private static mainPath: string | null = null
public static getMainPath(): string {
let mainPath = Constants.mainPath
if (mainPath == null) {
mainPath = require("../../MainPath")
Constants.mainPath = mainPath
return mainPath || "./"
... |
import { createElement } from 'rax';
import Image from 'rax-image';
import View from 'rax-view';
import Text from 'rax-text';
// import './index.css';
import styles from './index.module.less';
// console.log(222, styles)
interface LogoProps {
uri: string;
}
export default (props: LogoProps) => {
const { uri } = ... |
import { Test } from '@nestjs/testing';
import { getModelToken } from '@nestjs/mongoose';
import { InventoryService } from './inventory.service';
const timer = 30000;
const inventoryData = { _id: '5f395933c024f51f14900d32',
invoiceNumber : 3,
note : 'Dầu xả',
... |
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { css } from 'aphrodite/no-important';
import { colors } from 'constants';
import * as styles from './style';
type Props = {
size?: number;
color?: string;
styles?: object;
}
export const Loader: React.FC<Props> = ({ styles: custo... |
import {StyleSheet} from 'react-native';
export const STYLES = StyleSheet.create({
container: {
flex: 1,
},
}); |
import { Router } from "express"
import { UserController } from "./controllers/UserController"
const router = Router()
const userController = new UserController();
router.post("/users", userController.create);
export { router }; |
import { NextFunction, Request, Response } from 'express';
import { isAuthenticated } from '../../middlewares/authentication';
import { fetchCartItem } from '../../operations/cartItem';
import { fetchCart } from '../../operations/carts';
import { fetchTeam } from '../../operations/team';
import { fetchUser } from '../.... |
import * as fp from 'fastify-plugin'
export default fp(async (server, opts, next) => {
server.route({
url: '/status',
logLevel: 'warn',
method: ['GET', 'HEAD'],
handler: async (request, reply) => {
server.db.connect()
request.session.username = 'niputi'
request.session.time = Math.... |
import benchmark from 'htmlparser-benchmark';
import { HtmlParser } from '../src';
import * as FastHtmlParser from 'fast-html-parser';
let speedFortFast: number;
let speedFortStd: number;
let speedFortAsync: number;
let speedFast: number;
function first(done: () => void) {
const bench = benchmark((html: string, cal... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
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, modi... |
export * from './company-core/company-core.component'; |
import { LegacyProjectImportPiece } from '@marxan/legacy-project-import';
import { Column, Entity, JoinColumn, ManyToOne, PrimaryColumn } from 'typeorm';
import { LegacyProjectImportComponent } from '../../domain/legacy-project-import/legacy-project-import-component';
import { LegacyProjectImportComponentStatuses } fro... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { AboutComponent } from './about/about.component';
import { CoinsComponent } from './Coins/Coins.component';
import { EnergyComponent } from './Energy/Energy.... |
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
export function isInt(int: any): int is number {
return Number.isInteger(int);
} |
import * as ts from 'typescript';
import { toArray } from 'lodash';
import { Comment, CommentTag } from '../../models/comments/index';
/**
* Return the parsed comment of the given TypeScript node.
*
* @param node The node whose comment should be returned.
* @return The parsed comment as a [[Comment]] instance or... |
import { DriversModule } from './drivers.module';
describe('TablesModule', () => {
let driversModule: DriversModule;
beforeEach(() => {
driversModule = new DriversModule();
});
it('should create an instance', () => {
expect(driversModule).toBeTruthy();
});
}); |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import '../common/extensions';
import { inject, injectable } from 'inversify';
import { ConfigurationChangeEvent, Disposable, OutputChannel, Uri } from 'vscode';
import { IApplicationShell, ICommandManager, IWorkspaceServic... |
import { TestBed, inject } from '@angular/core/testing';
import { AuthLogService } from './auth-log.service';
describe('AuthLogService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [AuthLogService]
});
});
it('should be created', inject([AuthLogService], (service: AuthL... |
import morgan from 'morgan'
import path from 'path'
import fs from 'fs-extra'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import FileStreamRotator from 'file-stream-rotator'
import { timeFormat } from '@/utils/helper'
const logDir = path.resolve('logs')
morgan.token('time', (req, res) =>... |
import { ICopy, Pair } from "@thi.ng/api";
import { ensureArray } from "@thi.ng/arrays";
import { ISpatialAccel } from "@thi.ng/geom-api";
import { Heap } from "@thi.ng/heaps";
import { EPS } from "@thi.ng/math";
import { distSq, ReadonlyVec, Vec } from "@thi.ng/vectors";
type MaybeKdNode<K extends ReadonlyVec, V> = K... |
import BigNumber from 'bignumber.js'
import * as React from 'react'
import * as RNLocalize from 'react-native-localize'
import { fireEvent, render } from 'react-native-testing-library'
import { Provider } from 'react-redux'
import * as renderer from 'react-test-renderer'
import { FeeType } from 'src/fees/actions'
impor... |
import { ComponentProps as Props } from '@flux/shared/models/ComponentProps';
import { Switch, Route } from 'react-router-dom';
import connectAllProps from '~/utils/connect';
import Container from './Container';
import Loader from './Loader';
import React, { Suspense } from 'react';
import Home from './pages/Home';
im... |
import {
Snowflake,
APITextInputComponent,
APISelectMenuComponent,
APISelectMenuOption,
APIModalInteractionResponseCallbackData,
APIModalSubmitInteraction,
APIModalActionRowComponent,
} from 'discord-api-types/v9';
import {
Client,
User,
GuildMember,
Permissions,
Message,
InteractionWebhook,
... |
import { AddEndpoint, Endpoints } from "@liexp/shared/endpoints";
import { Documentary } from "@liexp/shared/io/http/Events";
import * as TE from "fp-ts/lib/TaskEither";
import { pipe } from "fp-ts/lib/function";
import { Route } from "../../route.types";
import { toEventV2IO } from "../eventV2.io";
import { editEventQ... |
/*
Copyright 2021 Queen’s Printer for Ontario
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 ... |
/*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* 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 restric... |
//TODO consider changing it from a singleton, to be a module that exports functions
import shortid from "shortid";
import {
USER_DEFAULT_CONSTANTS,
USER_RATING,
USER_RATING_STATE,
USER_ROLE,
USER_STATE
} from "./user.constants";
import {USER_PATCH_KEYS, USER_CREATE_KEYS} from "./user.interfaces";
im... |
import { MovieCard } from "./MovieCard";
interface ContentProps {
selectedGenre: {
id: number;
name: "action" | "comedy" | "documentary" | "drama" | "horror" | "family";
title: string;
};
movies: Array<{
imdbID: string;
Title: string;
Poster: string;
Ratings: Array<{
Source: str... |
/* GENERATED FILE */
import * as React from 'react';
import Svg, { Rect, Line, Circle } from 'react-native-svg';
import { IconProps } from '../lib';
function BatteryWarningVertical(props: IconProps) {
return (
<Svg
id="Raw"
viewBox="0 0 256 256"
width={props.size}
height={props.size}
... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { MaterialModule } from '@angular/material';
import { AppComponent } from './app.component';
import { AppRoutingModule } ... |
import { hp, wp } from "../../../utils";
import React from "react";
import { StyleSheet } from "react-native";
export const styles = StyleSheet.create({
header: {
paddingHorizontal: wp(15),
},
container: {
flexGrow: 1,
paddingHorizontal: wp(15),
paddingBottom: hp(20),
},
img: {
width: wp... |
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.3.1" name="new-bark-town-tileset" tilewidth="16" tileheight="16" tilecount="31" columns="0">
<grid orientation="orthogonal" width="1" height="1"/>
<tile id="0" type="obstacle">
<image width="16" height="16" source="../images/new-bark-town... |
import { createRouter, createWebHashHistory } from 'vue-router'
import NProgress from 'nprogress'
import type { RouteRecordRaw } from 'vue-router'
import 'nprogress/nprogress.css'
const routes: Array<RouteRecordRaw> = [
{
path: '/',
redirect: '/testPinia',
},
{
path: '/buttonDemo',
name: 'Button... |
import React from 'react';
import { useObserver } from 'mobx-react-lite';
import { useStore } from '../../hooks';
export const AuditorCount = () => {
const { nowStore } = useStore();
return useObserver(() => (
<div className='current-listeners-container unselectable'>
<p className='curren... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="1.1">
<context>
<name>FileTransfer</name>
<message>
<location filename="../protocol/oscar/icq/filetransfer.cpp" line="21"/>
<source>Send file</source>
<translation type="unfinished"></translation>
</message>
<messag... |
import * as React from 'react';
import styled from 'styled-components';
export const enum Position {
BOTTOM_LEFT = 'bottomLeft',
BOTTOM_CENTER = 'bottomCenter',
BOTTOM_RIGHT = 'bottomRight'
}
interface Props {
className?: string;
content: React.ReactElement;
position: Position;
}
const Base = styled.span... |
import * as React from "react";
export interface TitleBarProps {
}
export interface TitleBarState {
}
export declare class AppBar extends React.Component<any, any> {
constructor(props: any);
componentDidMount(): void;
render(): JSX.Element;
} |
export * from './role-datatable-item/role-datatable-item.component'; |
import { createContext } from 'react';
import { PuppeteerTestCaseState, PuppeteerAction } from '../../utils/puppeteerTypes';
//import { actionTypes } from '../actions/puppeteerTestCaseActions';
export const PuppeteerTestCaseContext = createContext<any>(null);
export const puppeteerTestCaseState = {
puppeteerStatemen... |
import React, { useEffect, useState } from 'react'
import styled from 'styled-components'
import { Colors } from 'styles/Colors'
import { IsMobileBreakpoint, useMobileBreakpoint } from 'utils/browser'
import { NavItems } from './NavItems'
import { PageAnchors } from './PageAnchors'
import { SiteTitle } from './SiteTi... |
import * as React from 'react';
import { Save, Progress, Move, Puzzle } from '../types';
import classnames from 'classnames';
import { clone, isEqual } from 'lodash';
export interface HexaProps {
className?: string;
logs: string[];
setLogs: React.Dispatch<React.SetStateAction<string[]>>;
setSave: React.Dispatc... |
import { as, Integer, Ordinal, Pitch, range, Scalar } from '@musical-patterns/utilities'
import { Note } from '../../../compiler'
import { PITCH_CIRCULAR_TIER_COUNT } from './constants'
import {
computeTierWithTechniqueIndexTranslationByPitchClassCount,
computeTierWithTechniqueScalarScalingByPeriodSize,
} from ... |
import environment from "./config/environment";
import express from 'express';
import DiContainer from "./loaders/DiContainer";
import { Logger } from "winston";
async function startServer() {
const app = express();
const http = require('http');
await require('./loaders').default({ expressApp: app });
... |
import { EtaConfig } from './config';
export default function compileToString(str: string, env: EtaConfig): string; |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { WorkorderDetailPage } from './workorder-detail';
import { WorkorderDetailPageRoutingModule } from './workorder-detail-routing.module';
import { IonicModule } from '@ionic/angular';
@NgModule({
imports: [
CommonMod... |
export class FormState
{
item: Record<string, any> = {};
/**
* Change item
*/
changeItem(field:string, value:any)
{
let m:Record<string, any> = {}; m[field] = value;
this.item = Object.assign({}, this.item, m);
}
} |
import React from "react";
import pkg from "package.json";
import { Box, Divider, Heading, Text, Circle, Stack } from "@chakra-ui/react";
const { name, version } = pkg;
const infos = { name, version };
const Info = ({ paramName, text }: { paramName: string; text: string }) => (
<Box
display="flex"
justifyCo... |
export interface ITransactions {
britas: number
bitcoin: number
real: number
} |
import {Directive, ElementRef, EventEmitter, Input, NgZone, OnDestroy, OnInit, Output} from '@angular/core';
@Directive({
selector: '[appOutsideNgZoneEvent]'
})
export class OutsideNgZoneEventDirective implements OnInit, OnDestroy {
private handler: ($event?: Event) => any;
@Input()
event = 'click';
@Output('a... |
import * as vscode from 'vscode';
import { BaseAction, KeypressState, BaseCommand, getRelevantAction } from './../actions/base';
import { BaseMovement } from '../actions/baseMotion';
import { CommandInsertInInsertMode, CommandInsertPreviousText } from './../actions/commands/insert';
import { Jump } from '../jumps/jump... |
import { Controller, Get, UseGuards } from '@nestjs/common';
import { CatalogsService } from './catalogs.service';
import { ServerMessages } from '../../utils/serverMessages.util';
import { AuthGuard } from '@nestjs/passport';
@Controller('catalogs')
export class CatalogsController {
constructor(private readonly cat... |
import * as endpoints from "@econnessione/shared/endpoints";
import { authenticationHandler } from "@utils/authenticationHandler";
import * as TE from "fp-ts/lib/TaskEither";
import { pipe } from "fp-ts/lib/pipeable";
import { Route } from "routes/route.types";
import { AddEndpoint } from "ts-endpoint-express";
import ... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Pelicula } from './pelicula.entity';
import {Actor} from '../actores/actor.entity'
@Injectable()
export class PeliculasService {
constructor(@InjectRepository(Pelicula) p... |
//Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
/**
* Office UI Fabric JS 1.4.0
* The JavaScript front-end framework for building experiences for Office 365.
**/
declare namespace fabric {
class Animate {
private sta... |
import cookie from 'cookie';
export function parseCookies(req: any){
return cookie.parse(req ? req.headers.cookie || "" : document.cookie);
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { $, ElementFinder } from 'protractor';
export class SignInStepPage {
private submit: ElementFinder;
private email: ElementFinder;
private password: ElementFinder;
constructor() {
this.email = $('#email');
this.password = $('#passwd');
this.submit = $('#SubmitLogin > span');
}
public... |
import IHashProvider from '../contracts/IHashProvider';
class FakeHashProvider implements IHashProvider {
public async generateHash(payload: string): Promise<string> {
return payload;
}
public async compareHash(payload: string, hashed: string): Promise<boolean> {
return payload === hashed;
}
}
export... |
import styled from 'styled-components/macro'
import { fadeIn, fadeInFromBottom, fadeInFromLeft, fadeInFromRight, fadeInFromTop } from './animations'
import { backgroundColor2, primaryColor, upColor } from './colors'
export const Ellipsis = styled.div`
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidd... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { EventEmitter } from "events";
import { IClient } from "@fluidframework/protocol-definitions";
/**
* Audience represents all clients connected to the op stream, both read-only and read/write.
*/
export in... |
import {
Body,
Controller,
Delete,
Get,
Param,
Post,
Put,
UseGuards,
Request
} from '@nestjs/common';
import { hasRoles } from 'src/auth/decorator/roles.decorator';
import { JwtAuthGuard } from 'src/auth/guards/jwt.guard';
import { RolesGuard } from 'src/auth/guards/roles.guard';
import { UserRole } f... |
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class AuthService {
redirectUrl: string = '';
constructor() { }
} |
import { Contracts } from "@payvo/sdk-profiles";
import { Alert } from "app/components/Alert";
import { Page, Section } from "app/components/Layout";
import { useEnvironmentContext } from "app/contexts";
import { useActiveProfile, useActiveWalletWhenNeeded, useProfileJobs, useProfileUtils } from "app/hooks";
import { D... |
import {Injectable} from '@angular/core';
import {HttpClient, HttpErrorResponse, HttpParams} from '@angular/common/http';
import {Observable} from 'rxjs/Observable';
import {Router} from "@angular/router";
import {ApiRouteConstants, RouteConstants} from "../bootstrap/app.route.constants";
import {ErrorResponse} from ".... |
// This package encapsulates and owns build only dependencies and checks if a expected and supported node version (LTS) is used throughout the service.
const pkg = require("../package.json");
import * as semver from "semver";
import * as _ from "lodash";
export const SUPPORTED_NODE_VERSIONS = "~8 || ~10 || ~12";
if (... |
import React from 'react';
import RadioButton from 'carbon-components-react/es/components/RadioButton';
import RadioButtonGroup from 'carbon-components-react/es/components/RadioButtonGroup';
import styles from '../field.scss';
import { useTranslation } from 'react-i18next';
import { PatientRegistrationContext } from '.... |
import * as React from 'react'
import { Link } from 'react-router-dom'
import Icon from '+dumb/Icon'
import { SeparatedList } from '+dumb/Lists'
import Loading from '+dumb/Loading'
import Button from '+dumb/Button'
interface Data {
allParties: Array<{ displayName: string, id: string }>
}
// TODO how is this suppo... |
export default {
jwt: {
secret: process.env.SECRET as string,
expiresIn: process.env.EXPIRES_IN as string,
},
}; |
import { Refine } from "@pankod/refine-core";
import {
notificationProvider,
Layout,
ErrorComponent,
} from "@pankod/refine-antd";
import dataProvider from "@pankod/refine-simple-rest";
import routerProvider from "@pankod/refine-react-router";
import "@pankod/refine-antd/dist/styles.min.css";
import { Pos... |
import { mergeOptions } from './helpers';
import { ServerData } from './data';
/**
* Determines the parameters that the hooks can take.
*/
export interface HookParams<D> {
/**
* Determines the data of the hook.
*/
data: D;
/**
* Passes a merge option.
*/
merge: typeof mergeOptions;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.