text stringlengths 10 953k |
|---|
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { AccessToken, GetTokenOptions } from "@azure/core-auth";
import { AuthenticationRecord } from "./types";
/**
* The MSAL clients `getToken` requests can receive a `correlationId` and `disableAutomaticAuthentication`.
* (which is used... |
import { mdiClose, mdiContentCopy } from "@mdi/js";
import "@polymer/paper-tooltip/paper-tooltip";
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { property, state } from "lit/decorators";
import { fireEvent } from "../../../common/dom/fire_event";
import { copyToClipboard } from ".... |
import { Component } from '@angular/core';
import { IonicPage } from 'ionic-angular';
import { FirebaseDbProvider } from "../../providers/firebase-db/firebase-db";
import { TimelineProvider } from '../../providers/timeline/timeline';
/**
* Generated class for the TabPorValoracionPage page.
*
* See https://ionicfram... |
version https://git-lfs.github.com/spec/v1
oid sha256:60b3544c1e68a4fc6178b915f141e2ef05ef73100ff32f43e6f7f4b21535ed2e
size 964628 |
declare const styles: {
readonly "header": string;
readonly "headerContainer": string;
readonly "image": string;
readonly "imageContainer": string;
readonly "p-5": string;
readonly "s": string;
readonly "text": string;
};
export = styles; |
import { IPsycleReflowInfo } from './IPsycleReflowInfo';
import Psycle from './Psycle';
import PsycleContainer from './PsycleContainer';
import PsyclePanel from './PsyclePanel';
import PsyclePanelList from './PsyclePanelList';
import PsycleReflowTiming from './PsycleReflowTiming';
import PsycleTransition from './Psycle... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ButtonerComponent } from './buttoner.component';
describe('ButtonerComponent', () => {
let component: ButtonerComponent;
let fixture: ComponentFixture<ButtonerComponent>;
beforeEach(async(() => {
TestBed.configureTestingModu... |
/**
Copyright 2021 Forestry.io Holdings, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... |
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { Helpers } from '../../../../../../helpers';
@Component({
selector: "app-base-accordions",
templateUrl: "./base-accordions.component.html",
encapsulation: ViewEncapsulation.None,
})
export class BaseAccordionsComponent implement... |
import { render, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { Select } from 'antd';
import React from 'react';
import { generateAlphaNumeric } from 'utils/string';
import SelectFilter from './SelectFilter';
const { Option } = Select;
const LABEL = ge... |
import { DOCUMENT } from '@angular/common';
import {
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
ElementRef,
forwardRef,
HostBinding,
Inject,
Injector,
Input,
TemplateRef,
ViewChild,
ViewEncapsulation
} from '@angular/core';
import { NG_VALUE_ACCESSOR ... |
import React, { SVGProps, ReactElement } from 'react';
export const DownIcon = (props: SVGProps<SVGSVGElement>): ReactElement => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" {...props}>
<path d="M1939 467l90 90-1005 1005L19 557l90-90 915 915 915-915z" />
</svg>
); |
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
import { combineReducers } from '@reduxjs/toolkit'
import {loginReducer} from '../features/login/loginSlice';
import {creationReducer} from '../features/create/creationSlice';
import {placesReducer} from '../features/google/googleSlice';
import {manufacturerReducer} from '../features/manufacturers/manufacturerSlice';
i... |
import Link from 'next/link'
import { useRouter } from 'next/router'
import { GetServerSideProps } from 'next'
import { motion } from 'framer-motion'
import BeerList from 'components/BeerList'
import Base from 'templates/Base'
import { PaginationLayout, PaginationLink } from 'components/HomePage/styles'
import { useSc... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {OpenTasksListComponent} from './open-tasks-list.component';
describe('OpenTasksListComponent', () => {
let component: OpenTasksListComponent;
let fixture: ComponentFixture<OpenTasksListComponent>;
beforeEach(async(() => {
TestB... |
import { guid } from '@/utils';
import { LABEL_DEFAULT_TEXT } from '@/common/constants';
import { MindData } from '@/common/interfaces';
import { BaseCommand, baseCommand } from '@/components/Graph/command/base';
export interface TopicCommandParams {
id: string;
model: MindData;
}
const topicCommand: BaseCommand<... |
import { Plugin, KeyedStoreTrigger, Step } from "@shanzhai/interfaces";
import { MinifyHtmlStep } from "@shanzhai/minify-html-step";
import { htmlSourceStore } from "@shanzhai/html-source-store";
import { zipContentStore } from "@shanzhai/zip-content-store";
import { DeleteFromKeyedStoreStep } from "@shanzhai/delete-fr... |
import styles from './readyToTalk.module.css';
export default function ReadyToTalk() {
return (
<>
<section className={styles.ready_to_talk}>
<div>
<h3>Ready to talk?</h3>
<p>Google Assistant can answer most of your questions.</p>
<div className={styles.icon}>
<div
className={styl... |
import { filtrerBortOverordnetEnhetshistorikkHvisDenErLikUnderenhet } from './api';
import {
KvartalsvisSykefraværshistorikk,
SykefraværshistorikkType,
} from './kvartalsvisSykefraværshistorikk';
describe('Tester for utils funksjoner', () => {
const historikkUnderenhet: KvartalsvisSykefraværshistorikk = {
... |
import {MigrationInterface, QueryRunner} from "typeorm";
export class secondMigration1601320165865 implements MigrationInterface {
name = 'secondMigration1601320165865'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query("CREATE TABLE `user_details` (`id` int NOT NULL AU... |
import { Construct, Stack, StackProps, SecretValue } from "@aws-cdk/core";
import { Artifact } from "@aws-cdk/aws-codepipeline";
import { PolicyStatement } from "@aws-cdk/aws-iam";
import {
CdkPipeline,
SimpleSynthAction,
ShellScriptAction
} from "@aws-cdk/pipelines";
import {
GitHubSourceAction,
ManualAppr... |
// @ts-nocheck
import React from 'react';
import { ApplyPluginsType } from '/Users/lijunfeng/Desktop/learn/fe-action/time-geek-front-action/node_modules/umi/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';
export function getRoutes() {
const routes = [
{
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import Joi from './Joi';
export declare const JoiFrontMatter: typeof Joi; |
import React, { memo, useContext } from 'react'
import FavoriteButton from 'components/general/alt-button/FavoriteButton'
import MoreButton from 'components/general/alt-button/MoreButton'
import RepostButton from 'components/general/alt-button/RepostButton'
import ShareButton from 'components/general/alt-button/ShareB... |
import {
EventEmitterLike,
ListenerCallbackData,
ListenerRemoveCallback,
NotificationCallback,
SourceReceiver,
SourceSender,
} from "../../models";
/**
* Manages IPC listeners.
*/
export class IpcListeners {
/**
* Stores all callback listeners.
*/
private static callbacks = ... |
import React from "react";
import {
Form,
FormControl,
Navbar,
Nav,
NavDropdown,
Container,
Row,
Button,
NavLink,
NavItem
} from "react-bootstrap";
import im from "./components/login"
import logo from "./assets/left-logo.png"; // this is fine
const TopBar = ({ redirect }) => {
return (
<Navb... |
/** @jsxImportSource @emotion/react */
import styled from '@emotion/styled'
import { ReactNode } from 'react'
import formControlStyle from './form-control'
import FormHeader from './form-header'
const FSet = styled.fieldset`
${formControlStyle}
`
const FieldSet = ({ legend, gridSpan, children }: Readonly<{ legend?:... |
import { NotFoundError, RequestParams } from '@gutenpress/core'
import { Order, updateOrderForUser } from '../../database'
import { Token } from '../../wrappers/authenticate'
interface Params extends RequestParams<Token> {
path: { id: string }
body: Partial<Order>
}
type Response = undefined | NotFoundError
expo... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distr... |
export * from './addCustomers';
export * from './addOrganization';
export * from './addRequestParticipants';
export * from './addUsersToOrganization';
export * from './answerApproval';
export * from './attachTemporaryFile';
export * from './createAttachment';
export * from './createCustomer';
export * from './createCus... |
import Cookies from "js-cookie";
import { useUserStoreHook } from "/@/store/modules/user";
const TokenKey = "authorized-token";
type paramsMapType = {
user: object;
expires: number;
accessToken: string;
};
// 获取token
export function getToken() {
// 此处与TokenKey相同,此写法解决初始化时Cookies中不存在TokenKey报错
return Cookie... |
export function lineStringIsClosed(flatCoordinates: number[], offset: number, end: number, stride: number): boolean; |
import React from 'react';
import { textStyles, colors } from '../../application/styles';
import { HumanServiceData, Address } from '../../validation/services/types';
import { View, Text } from 'native-base';
import { TouchableOpacity } from 'react-native';
import { mapWithIndex } from '../../application/helpers/map_wi... |
declare module "styled-components/native" {
import * as ReactNative from "react-native"
import * as React from "react"
export {
css,
DefaultTheme,
isStyledComponent,
ThemeConsumer,
ThemeProps,
ThemeProvider,
withTheme,
} from "styled-components"
import {
DefaultTheme,
isS... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Get, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { from, Observable } from 'rxjs';
import { ProfileEntity } from '../../profile/model/profile.schema';
import { getRepository, Repository } from 'typeorm';
import { User } from '../model/user.interface';
import {... |
export default interface githubMemberType {
id: number;
githubId: string;
name: string;
avatarUrl: string;
admin: boolean;
githubRepoId: string;
} |
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported... |
import { ThemingProps, chakra, PropsOf, forwardRef } from "@chakra-ui/system"
import { createContext, __DEV__, cx } from "@chakra-ui/utils"
import * as React from "react"
import {
useRadioGroup,
UseRadioGroupProps,
UseRadioGroupReturn,
} from "./use-radio-group"
export interface RadioGroupContext
extends Pick<... |
import { IsString } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";
export class UserDTO {
@ApiProperty({ description: 'Usuário do sistema' })
@IsString()
readonly username: string;
@ApiProperty({ description: 'Link da ferramenta' })
@IsString()
readonly password: str... |
import { IsNotEmpty, IsString } from 'class-validator';
export class CreateUserDto {
@IsString()
@IsNotEmpty()
firstname: string;
@IsString()
@IsNotEmpty()
lastname: string;
@IsString()
@IsNotEmpty()
email: string;
@IsString()
@IsNotEmpty()
password: string;
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as vscode from "vscode";
import { ArduinoApp } from "./arduino/arduino";
import { ArduinoSettings } from "./arduino/arduinoSettings";
import { BoardManager } from "./arduino/boardManager";
import { ExampleManager ... |
import { ContractDefinition } from 'solidity-ast';
import { TransformerTools } from '../../transform';
import { getNodeBounds } from '../../solc/ast-utils';
import { matchFrom } from '../../utils/match-from';
export function newFunctionPosition(
contract: ContractDefinition,
{ readOriginal }: TransformerTools,
):... |
import autobind from 'autobind-decorator';
import * as websocket from 'websocket';
import { readNotification } from '../common/read-notification';
import call from '../call';
import readNote from '../../../services/note/read';
import Channel from './channel';
import channels from './channels';
import { EventEmitter } f... |
import { FastifyInstance } from 'fastify'
import { FromSchema } from 'json-schema-to-ts'
import getMongoosePaginateQuery from '@src/database/mainDB/getMongoosePaginateQuery'
import { querystringSchema, successResponseSchema, routeOptions } from './types'
export const addRoute = (fastify: FastifyInstance): FastifyIns... |
import React from 'react';
import { PixelRatio, ScrollView } from 'react-native';
import TestRenderer, { ReactTestInstance } from 'react-test-renderer';
import { CollapsibleHeaderLayout } from './collapsible-header-layout';
import { Header } from '../header';
import { useSafeAreaInsets } from 'react-native-safe-area-co... |
import * as path from 'path';
import * as dotenv from 'dotenv';
const envFile = '.env';
dotenv.config({
path: path.resolve(process.cwd(), envFile),
});
interface Conf {
[key: string]: any;
}
export default (): Conf => {
return {
dora_url: process.env.DORA_URL,
relay_port: parseInt(process.env.RELAY_PO... |
import {PlacementEnum, AbstractExpression} from "../AbstractExpression";
import {MultiExpression} from "../MultiExpression";
import {Fraction} from "../../../../Common/DataObjects/Fraction";
export class ContinuousDynamicExpression extends AbstractExpression {
constructor(dynamicType: ContDynamicEnum, placement: P... |
import * as React from 'react';
import { HelloComponent } from './hello';
import { NameEditComponent } from './nameEdit';
import AppBar from 'material-ui/AppBar';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
interface Props {
}
interface State {
userName: string;
}
export class App extends ... |
import {
IterType,
join,
LiterValues,
nextBin,
windowGen,
} from '../../../utils/index.ts';
export function parseInput(input: string) {
return input.split('').filter((x) => x !== '\n');
}
function binToDec(sequence: string[], bitCount: number) {
return parseInt(sequence.splice(0, bitCount).join(''), 2);... |
import React, { useState } from "react";
import styled from "@emotion/styled";
import OutsideClickHandler from "react-outside-click-handler";
import { useColorMode } from "theme-ui";
import { Link } from "gatsby";
import Image from "@components/Image";
import Icons from "@icons";
import mediaqueries from "@styles/medi... |
// 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 agreed to in ... |
/**
* @author ChenTao
*
* 'graphql-ts-client' is a graphql client for TypeScript, it has two functionalities:
*
* 1. Supports GraphQL queries with strongly typed code
*
* 2. Automatically infers the type of the returned data according to the strongly typed query
*/
import { Fetcher } from "./Fetcher";
export de... |
import express from 'express';
import { Logger } from '../../modules/Logger';
import { Config } from '../../modules/Config';
class ErrorMiddleware
{
public static HandleError(err: Error, req: express.Request, res: express.Response, next: express.NextFunction)
{
Logger.Error("web",err.message,err);
... |
import type { Request, Response } from "@tinyhttp/app";
import posts from "./_posts.js";
const contents = JSON.stringify(
posts.map((post) => {
return {
title: post.title,
slug: post.slug,
};
})
);
export function get(_: Request, res: Response) {
res.writeHead(200, {
"Content-Type": "app... |
import { Command } from '@oclif/command'
import * as winston from 'winston'
import { Configuration } from '../configuration/configuration'
import { AgentService } from '../services/agent-service'
import ProcessService from '../services/process-service'
import logger from '../utils/logger'
export default class PercyCom... |
import { Component } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Store } from '@ngrx/store';
import { AppState } from '../../reducers';
import { ErrorActions } from '../../actions/error.actions';
import { RouterActions } from '../../actions/router.actions';
@Component({
selector: '... |
import { Ref } from "react";
/**
* @function useForkRef
*
* @param {Ref<any>} refA The reference object/function.
* @param {Ref<any>} refB The reference object/function.
*/
/* eslint-disable */
export default function useForkRef(
refA: Ref<any>,
refB: Ref<any>
): (value: any) => void;
/* eslint-enable */ |
import { AccessType } from '../../service-utils/resourceParams';
import { MapStack } from '../../service-stacks/mapStack';
import { App } from '@aws-cdk/core';
describe('cdk stack creation for map service', () => {
beforeEach(() => {
jest.clearAllMocks();
});
it('creates Map policy for Authorized ... |
import { forwardRef, ReactNode, ElementRef, ElementType, ComponentPropsWithoutRef } from 'react'
import { styled, CSS } from 'stitches.config'
type MenuItemShortcutProps = {
children: ReactNode;
css?: CSS;
element?: ElementType<any>;
}
const DEFAULT_TAG = 'kbd'
type ShortcutElement = ElementRef<typeof... |
import * as sass from 'sass';
sass.renderSync({
file: 'index.scss',
sourceMap: true,
outFile: 'index.css',
});
const n0: sass.types.Number = new sass.types.Number(0);
const m: sass.types.Map = new sass.types.Map(3);
const t: sass.types.Boolean = sass.types.Boolean.TRUE;
const s: sass.types.String = new sa... |
import { MessageEmbed } from 'discord.js';
import moment from 'moment';
import Command from '../../lib/structures/Command';
import { TypicalGuildMessage } from '../../lib/types/typicalbot';
import { Modes, Links } from '../../lib/utils/constants';
export default class extends Command {
aliases = ['sinfo'];
mod... |
version https://git-lfs.github.com/spec/v1
oid sha256:8722d003129ecc32d0407d4469c409d324f433b26d51735194b09c0b421d08af
size 1163 |
import React, { FC } from 'react';
import { PageProps, graphql, Link } from 'gatsby';
import Layout from '../components/Layout';
import SEO from '../components/SEO';
import Bio from '../components/Bio';
import { rhythm } from '../utils/typography';
interface Query {
site: {
siteMetadata: {
title: string;
... |
export const INIT_SUGGESTIONS_LIMIT = 15 |
/**
* The possible lengths of a channel commercial.
*/
export declare type CommercialLength = 30 | 60 | 90 | 120 | 150 | 180;
/**
* The type of a user.
*/
export declare type HelixUserType = 'staff' | 'admin' | 'global_mod' | '';
//# sourceMappingURL=types.d.ts.map |
import { Router } from '@angular/router';
import { AuthAccessService } from '../dbaccess/auth-access.service';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Component, OnInit, OnDestroy } from '@angular/core';
@Component({
selector: 'app-login',
templateUrl: './login.component.html'... |
import {ModuleBase} from "./moduleBase"
/**
* delay module.
* @author fukuroda
*/
class DelayModule extends ModuleBase {
/**
* constructor.
* @param x
* @param y
* @param removable
* @param canvas_context
* @param img
*/
public constructor(x:number, y:number, removable:boo... |
import {
BatchUpdateScheduleCommand,
ChannelState,
ChannelSummary,
DescribeChannelCommand,
DescribeChannelResponse,
EncoderSettings,
MediaLive,
OutputDestination,
paginateDescribeSchedule,
paginateListChannels,
ScheduleAction,
StartChannelCommand,
StopChannelCommand,
... |
import PageSplit from '../page-split';
import RoomBody from '../room-body';
import RoomList from '../room-list';
export default function Room() {
return (
<PageSplit
leftChild={<RoomList />}
rightChild={<RoomBody />}
/>
);
}; |
import * as mm from 'mingru-models';
import like from '../models/like.js';
import post from '../models/post.js';
import user from '../models/user.js';
import { testBuildAsync } from './common.js';
it('UNION', async () => {
class Activity extends mm.GhostTable {}
const activity = mm.table(Activity);
class Activit... |
import { UniswapVersion } from '../../../enums/uniswap-version';
export interface RouteQuoteTradeContext {
uniswapVersion: UniswapVersion;
routePathArray: string[];
liquidityProviderFee: number;
} |
import { Component, Inject } from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { TranslateService } from '@ngx-translate/core';
import { PollDialogData } from 'app/core/ui-services/base-poll-dialog.service';
import { Comp... |
import { ExecuteResult } from "@cosmjs/cosmwasm-stargate";
import { calculateFee, Coin } from "@cosmjs/stargate";
import React from "react";
import JSONInput from "react-json-editor-ajrm";
import { JsonView } from "../../components/JsonView";
import { ClientContext } from "../../contexts/ClientContext";
import { setti... |
declare namespace pxsim {
// ----- board definition
interface PinBlockDefinition {
x: number,
y: number,
labelPosition?: "above" | "below";
labels: string[]
}
interface BoxDefinition {
x: number;
y: number;
w?: number;
h?: number;
}
... |
import { CompanyFiltersService } from './../../services/company-filters.service';
import { CustomerDialogComponent } from './../../dialogComponents/customer-dialog/customer-dialog.component';
import { CustomerDataService } from './../../services/customer-data.service';
import { CompanyDialogComponent } from './../../di... |
declare module 'google-palette'; |
import * as sapper from "@sapper/app"
sapper.start({
target: document.querySelector("#sapper")
}) |
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... |
export interface ReportContent
{
name: string;
tmsId: string;
} |
import fs from 'fs'
import path from 'path'
import type { Plugin } from './plugin'
import type { BuildOptions } from './build'
import { resolveBuildOptions } from './build'
import type { ResolvedServerOptions, ServerOptions } from './server'
import { resolveServerOptions } from './server'
import type { ResolvedPreviewO... |
import { Node } from "../../baklavajs-core/src";
export default class OutputNode extends Node {
public type = "OutputNode";
public name = this.type;
public constructor() {
super();
this.addInputInterface("Input", "InputOption");
this.addInputInterface("BooleanInput", "CheckboxOpti... |
import { NgModule, Injectable } from '@angular/core';
import Gun from 'gun/gun';
@Injectable()
export class GunDb {
readonly gun = Gun(location.origin + '/gun');
} |
import { IocContainer, INewable } from './IocContainer';
export const iocContainer = new IocContainer();
export function inject(type: INewable<any>) {
return (target: any, key: string) => {
function getter() {
return iocContainer.get(type);
}
Object.defineProperty(target, key, {
configurabl... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chai';
import type * as puppeteer from 'puppeteer';
import {$$, click, getBrowserAndPages, waitFor, waitForFunction} from '../../sh... |
#!/usr/bin/env node
import program from 'commander'
import { runChecks } from 'hydra-validator-core/run-checks.js'
import deps from 'matchdep'
import debug, { Debugger } from 'debug'
import { ResultKind } from 'hydra-validator-core'
export type Loggers = Record<string, Debugger>
const loggers: Loggers = {
success: ... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-disclosure',
templateUrl: './disclosure.component.html',
styleUrls: ['./disclosure.component.css']
})
export class DisclosureComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
/*
https://docs.nestjs.com/providers#services
*/
import { Injectable } from '@nestjs/common';
import { composeError, composeSuccess } from '../compose';
import { IDatabaseFileEntries, IName } from '../interfaces';
import { createDatabase, deleteDatabase } from '../libs/database';
@Injectable()
export class DatabaseSe... |
import React from 'react';
import { store } from '@opensrp/store';
import { act } from 'react-dom/test-utils';
import { mount } from 'enzyme';
import { createBrowserHistory } from 'history';
import {
fetchCalls,
inventories,
inventory1,
inventory3,
inventory4,
inventory5,
inventory6,
opensrpBaseURL,
} f... |
<TS language="ne" 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>
... |
import React from "react";
import cn from "classnames";
import { PageContainerProps, PageContainerType } from "./types";
import s from "./PageContainer.module.scss";
const PageContainer: React.FC<PageContainerProps> = ({
children,
type,
center,
}) => {
return (
<div
className={cn(s.root, {
[... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {NgxCrudImportComponent} from './admin-list-selector.component';
describe('AdminListSelectorComponent', () => {
let component: NgxCrudImportComponent;
let fixture: ComponentFixture<NgxCrudImportComponent>;
beforeEach(async(() => {
... |
import React, { useContext, createContext } from 'react';
import { observer } from 'mobx-react';
import { Button, Radio, Input, Select, Switch } from 'hubble-ui';
import { useTranslation } from 'react-i18next';
import { styles } from '../QueryAndAlgorithmLibrary';
import { Tooltip as CustomTooltip } from '../../../comm... |
import styled from 'styled-components/native';
import { Platform } from 'react-native';
export const Container = styled.View`
flex: 1;
justify-content: center;
padding: 0 30px ${Platform.OS === 'android' ? 150 : 40}px;
`;
export const Title = styled.Text`
font-size: 20px;
color: #f4ede8;
font-family: 'Rob... |
import { Injectable } from '@angular/core';
import {HttpClient, HttpHeaders} from '@angular/common/http';
import {Student} from '../models/Student.model';
import {Lecture} from '../models/Lecture.model';
@Injectable({
providedIn: 'root'
})
export class LectureService {
passingLecture: Lecture;
constructor(pr... |
import { CompletionItemKind } from 'vscode-languageserver';
import { CompletionItem } from 'vscode-languageserver-types';
import { getConditionCompletionItems } from '../../../../suggestions/defaults/conditionItems';
import { getRoot, ISuggestionRequest } from '../../../../suggestions/suggestionManager';
import { exclu... |
import { EventEmitter } from 'events'
import TypedEventEmitter from 'typed-emitter'
import { Argv } from 'yargs'
import createYargs from 'yargs/yargs'
import { Command, command } from './command'
import { Repl, repl } from './repl'
import { Arguments } from './command'
import { isPromise } from './utils'
interface Eve... |
import { GitlabReq } from './GitlabReq';
import { MergeRequest } from './gitlabTypes/MergeRequest';
import { Observable } from 'rxjs';
import { timer } from 'rxjs';
import { concatMap } from 'rxjs/operators';
import { takeWhile } from 'rxjs/operators';
import { tap } from 'rxjs/operators';
import { map } from 'rxjs/ope... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.