text stringlengths 10 953k |
|---|
import * as StringUtils from "./StringUtils";
describe("StringUtils", () => {
describe("stripSpacesFromString()", () => {
it("should strip all spaces from input string", () => {
const transformedString: string = StringUtils.stripSpacesFromString("a b c");
expect(transformedString).toBe("abc");
})... |
declare module 'yo-yo' {
interface YoYo {
(strings: TemplateStringsArray, ...substitutions: any[]): Element;
update(targetElement: Element, newElement: Element);
}
const yo: YoYo;
export = yo;
} |
export * from './DividerMenuItem';
export * from './SelectorMenuItem';
export * from './TextMenuItem'; |
import { Component, Input } from '@angular/core';
import { NavEntry } from '../../../layout/nav/meta';
@Component({
selector: 'app-simple-page',
templateUrl: './simple-page.component.html',
styleUrls: ['./simple-page.component.scss'],
})
export class SimplePageComponent {
@Input() nav?: NavEntry[];
} |
export enum SortingType {
relevance = '',
fileName = 'fileMetadata.fileName',
dateCreated = 'audit.creationDate',
dateModified = 'audit.modificationDate'
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FeedsFrameComponent } from './feeds-frame.component';
describe('FeedsFrameComponent', () => {
let component: FeedsFrameComponent;
let fixture: ComponentFixture<FeedsFrameComponent>;
beforeEach(async(() => {
TestBed.configure... |
import * as React from "react";
import { Link } from "gatsby";
import styled from "@emotion/styled";
import { css } from "@emotion/core";
import tw from "twin.macro";
import media from "../styles/customMediaQuery";
type Props = {
headerMenu: HeaderMenu[];
};
type HeaderMenu = {
title: string;
path: string;
};
... |
/**
* The `Ring` class is for types that support addition, multiplication, and subtraction operations.
*
* Instances must satisfy the following law in addition to the `Semiring` laws:
*
* - Additive inverse: `a - a <-> (zero - a) + a <-> zero`
*
* Adapted from https://github.com/purescript/purescript-prelude/blo... |
import React, { useEffect } from "react"
import { withPrefix } from "gatsby"
import "./TopNav.scss"
import { setupStickyNavigation } from "./stickyNavigation";
import { useIntl } from "react-intl";
import { AllSitePage, createIntlLink } from "../IntlLink";
export type Props = {
allSitePage: AllSitePage
lang: stri... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CoreComponent } from './Dashboard/core.component';
import { LoginComponent } from './login/login.component'
const routes: Routes = [
{
path: 'login',
component: LoginComponent
},
{
path: '',
... |
export class SkillSearchForm {
name = '';
} |
import Link from 'next/link';
import { trpc } from '../utils/trpc';
import { NextPageWithLayout } from './_app';
const IndexPage: NextPageWithLayout = () => {
const utils = trpc.useContext();
const postsQuery = trpc.useQuery(['post.all']);
const addPost = trpc.useMutation('post.add', {
async onSuccess() {
... |
import { setupTest, mockConsola } from '@nuxt/test-utils'
describe('fail-service', () => {
setupTest({
server: true,
fixture: 'fixture/ok'
})
jest.mock('axios', () => ({
create: jest.fn().mockImplementation(() => Promise.resolve()),
get: jest.fn().mockImplementation(() => Promise.reject(Error('C... |
import { LogoImage } from '@/components/atoms/logo-image'
import { Link } from 'gatsby'
import * as React from 'react'
export const Header = (): JSX.Element => {
const [menuOpen, setMenuOpen] = React.useState(false)
return (
<>
<div className="bg-main flex flex-row" style={{ minHeight: 72 }}>
<d... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
EditorCheckbox,
EditorInput,
EditorInlineSettings
} from '@edtr-io/editor-ui'
import { styled } from '@edtr-io/ui'
import * as React from 'react'
import { HighlightProps } from '.'
const Textarea = styled.textarea({
height: '250px',
width: '100%',
margin: 'auto',
padding: '10px',
resize: 'non... |
/*
* Public API Surface of ngx-skill-bar
*/
export * from "./lib/ngx-skill-bar.component";
export * from "./lib/ngx-skill-bar.module"; |
import Axios from "axios";
import { ResponseData } from "../interfaces/response-data";
export function createSession(host: string, title: string, password: string): Promise<Response & ResponseData> {
return Axios.post(`${process.env.REACT_APP_SERVER}/session`, JSON.stringify({
title,
host,
password
})
... |
export function setItem<T>(key: string, value: T): Promise<void> {
return new Promise((resolve) =>
chrome.storage.local.set({ [key]: JSON.stringify(value) }, resolve),
)
}
export function getItem<T>(key: string): Promise<T> {
return new Promise((resolve) =>
chrome.storage.local.get(key, (result) =>
... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const IoIosBed: IconType; |
/**
* @license
* Copyright Builder.io, Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
*/
import { Provider, Injector } from '../injector/types.js';
import { QError, qError } f... |
import * as React from 'react';
import { getSlots } from '@fluentui/react-utilities';
import type { CheckboxState, CheckboxSlots } from './Checkbox.types';
export const renderCheckbox = (state: CheckboxState) => {
const { slots, slotProps } = getSlots<CheckboxSlots>(state);
return (
<slots.root {...slotProps.... |
import { Link, Routes } from "blitz"
import { LogoDiscord32, LogoGithub32, LogoTwitter32 } from "@carbon/icons-react"
import LibscieLogo from "./LibscieLogo"
const Footer = () => {
const date = new Date()
return (
<footer className="w-full bg-white py-4 dark:bg-gray-900 sm:p-0">
<div className="mx-4 pt-... |
import { Component, ViewChild } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SliderChange, SliderComponent } from '../slider.component';
import { SliderPointerChange } from '../slider-pointer.component';
import { S... |
declare namespace ಠ_ಠ.clutz.module$exports$missing$type {
var x : ಠ_ಠ.clutz.Missing ;
var xWithGenerics : ಠ_ಠ.clutz.goog.missing.map < string , number > ;
var xWithMissingGenerics : ಠ_ಠ.clutz.goog.missing.map < ಠ_ಠ.clutz.mod.ref.A , ಠ_ಠ.clutz.mod.ref.B < ಠ_ಠ.clutz.mod.ref.C > > ;
}
declare module 'goog:missing.ty... |
import { ElementRef, Renderer } from '@angular/core';
/**
* @private
*/
export declare class Backdrop {
private _elementRef;
private _renderer;
constructor(_elementRef: ElementRef, _renderer: Renderer);
getNativeElement(): HTMLElement;
setElementClass(className: string, add: boolean): void;
} |
<TS language="sr" 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>
<translatio... |
/*
* TESLER-UI
* Copyright (C) 2018-2020 Tesler Contributors
*
* 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 ... |
import Component, { HTMLFragment, createRef } from '@biotope/element';
import { template } from './template';
import { RwdNavProps, RwdNavState, RwdNavMethods } from './interfaces';
import { Swipe } from '../../resources/js/swipeHandler';
import * as ScrollMagic from 'scrollmagic';
export class RwdNav extends Compone... |
import { DDBVaultsCache } from "../settings/env";
import { scan } from "../utils/ddb";
import wrap from "../utils/wrap";
export const handler = wrap(async () => {
const cached = await scan(DDBVaultsCache);
return cached;
}); |
export default interface IEclairRest {
url: string
user: string
password: string
} |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-promo-box',
templateUrl: './promo-box.component.html',
styleUrls: ['./promo-box.component.css']
})
export class PromoBoxComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
export type UserInfo = {
username: string
firstName: string
lastName: string
} |
import { useState, useEffect } from 'react';
import useDelayedFunction from './useDelayedFunction';
export type KeyPair = {
/**
* Array of keyValues to trigger the provided callback function
* Key value examples: 'a', 'b', 'y', 'Enter', 'Escape' ...
* Full list of key values: https://developer.mozilla.org/e... |
import { VComponent } from './component';
import { Placement, Modifiers } from 'popper.js';
import { TRIGGER } from './constant';
export declare class VPopper extends VComponent {
/**
* visibility of popper
*
* @default: undefined
**/
visible: boolean;
/**
* initial visibility of popper
*
*... |
import React, { Component } from 'react';
import { View, StatusBar, Dimensions, ScrollView } from 'react-native';
import ContentService from '../services/ContentService';
import GithubRepositoryDetail from '../components/GithubRepositoryDetail';
import TrendingTitle from '../components/TrendingTitle';
import Navbar fro... |
/*
* Copyright 2020 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
// prettier-ignore
import {
getPublicKey, sign, verify, verifyBatch,
aggregatePublicKeys, aggregateSignatures,
pairing, PointG1, PointG2, utils
} from './index.ts';
// prettier-ignore
export {
getPublicKey, sign, verify, verifyBatch,
aggregatePublicKeys, aggregateSignatures,
pairing, PointG1, PointG2, util... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { catchError } from 'rxjs/operators';
import { ConfigService } from '../services/config.service';
import { GtfsStop } from '../schemas/gtfs/GtfsStop';
@Injectable({
p... |
/* This file has code derived from Lumino. The license for this Lumino code is:
Copyright (c) 2019 Project Jupyter Contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of sou... |
import React from "react";
import { useQuery, useMutation } from '@apollo/react-hooks';
import {
DeleteIngredientMutation,
DeleteIngredientMutationResult,
DeleteIngredientMutationVariables,
GetIngredientsIngredientsPageQuery,
Ingredient
} from "../types";
import {Link, RouteComponentProps} from "rea... |
import {
CurrenciesEnum,
IEmployee,
PayPeriodEnum,
ITag,
IContact,
ISkill,
IUser,
IOrganizationPosition,
IOrganizationTeam,
ITimeLog,
IOrganizationDepartment,
IOrganizationEmploymentType,
IInvoiceItem,
IRequestApprovalEmployee,
IPayment,
IOrganizationProject,
IOrganizationContact,
IEmployeeSetting,
I... |
import styled from 'styled-components';
export const Container = styled.div`
height: 3rem;
background: var(--gray-900);
border-bottom: 1px solid #252d32;
padding: 0.35rem 1rem;
display: flex;
align-items: center;
justify-content: center;
`; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import ComponentUI = require('nashorn/javax/swing/plaf/ComponentUI');
declare class InternalFrameUI {
constructor();
}
declare interface InternalFrameUI extends ComponentUI {}
export = InternalFrameUI |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { InsertProtocoleSocieteComponent } from './insert-protocole-societe.component';
describe('InsertProtocoleSocieteComponent', () => {
let component: InsertProtocoleSocieteComponent;
let fixture: ComponentFixture<InsertProtocoleSociete... |
import * as React from 'react';
function IconArrowSwapSizeAll(props: React.SVGProps<SVGSVGElement>) {
return (
<svg viewBox="0 0 24 24" {...props}>
<path d="M13.7197 2.46967C14.0126 2.17678 14.4874 2.17678 14.7803 2.46967L19.2803 6.96967C19.5732 7.26256 19.5732 7.73744 19.2803 8.03033L14.7803 12.5303C14.48... |
interface Props {
slug: string;
suspense?: boolean;
}
declare const useProductDescription: ({ slug, suspense }: Props) => {
data: string;
};
export declare const query: never;
export default useProductDescription; |
/// <reference path="../../ts/typings/tsd.d.ts" />
import IEventSource = require('../interfaces/IEventSource');
import IEventSources = require('../interfaces/IEventSources');
class CompositeEventSources implements IEventSources {
// my Children is a map of id to EventSources
// TODO: create a model for [start... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
export interface FunctionTimer {
isPastDue: boolean;
} |
import { VNode } from 'vue';
interface TreeTableProps {
value?: any;
expandedKeys?: any;
selectionKeys?: any;
selectionMode?: string;
metaKeySelection?: string;
rows?: number;
first?: number;
totalRecords?: number;
paginator?: boolean;
paginatorPosition?: string;
alwaysShowP... |
import { Component, Input, OnInit, Output, ViewChild, EventEmitter, Host } from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms';
import { GooglePlaceDirective } from 'ngx-google-places-autocomplete';
import { Address } from 'ngx-google-places-autocomplete/objects/address';
import { Sucursales... |
import { observable, computed } from 'mobx';
import mermaid from 'mermaid';
import { buildFunctionDiagramCode } from './az-func-as-a-graph/buildFunctionDiagramCode';
import { FunctionGraphStateBase } from './FunctionGraphStateBase';
// State of FunctionGraph view
export class FunctionGraphState extends FunctionGraphS... |
export function v(date: Date): number {
return date.valueOf();
} |
import React, { useEffect, useRef, useReducer } from 'react';
import Statistic, { StatisticProps } from './Statistic';
import { formatCountdown, countdownValueType, FormatConfig } from './utils';
import { cloneElement } from '../_util/reactNode';
const REFRESH_INTERVAL = 1000 / 30;
interface CountdownProps extends St... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { inject, injectable } from 'inversify';
import { Disposable, NotebookDocument } from 'vscode';
import { IVSCodeNotebookController } from './types';
import { INotebookControllerManager } from '../types';
import { IEx... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ne">
<context>
<name>Sherkitty::AddressBookImpl</name>
<message>
<location filename="../src/wallet/api/address_book.cpp" line="53"/>
<source>Invalid destination address</source>
<translation type="unfinished... |
import * as React from 'react'
import {getPlatePluginType, useEventEditorId, useStoreEditorState} from '@udecode/plate-core'
import {ToolbarButtonProps, ToolbarElement} from '@udecode/plate-toolbar'
export const SubMenuIcon = (props: ToolbarButtonProps & {type: string}) => {
const editor = useStoreEditorState(useEve... |
// 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.
/** @fileoverview Tests for the AvatarIcon component. */
import 'chrome://settings/lazy_load.js';
import {flush} from 'chrome://resources/polymer/v3_0/p... |
/// <reference path="../../../OSFramework/Shape/AbstractShape.ts" />
// eslint-disable-next-line @typescript-eslint/no-unused-vars
namespace Provider.Google.Shape {
export abstract class AbstractProviderShape<
T extends OSFramework.Configuration.IConfigurationShape,
W extends google.maps.MVCObject
... |
import { Request, Response } from 'express';
import { CreateProductService } from '../services/CreateProduct.service'
export class CreateProductController {
async handle(request: Request, response: Response) {
const product = request.body;
const createProductService = new CreateProductService();
const... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { strings } from '@angular-devkit/core';
import {
Rule,
SchematicsException,
Tree,
apply,
branchAndM... |
import React from 'react';
import { Anchor } from 'antd';
function last(array) {
var length = array ? array.length : 0;
return length ? array[length - 1] : undefined;
}
const { Link } = Anchor;
export interface TocItem {
anchor: string;
level: number;
text: string;
children?: TocItem[];
}
export ty... |
import {Autowired, Component, Inject} from "@springtype/core";
import {Multiplier} from "./Multiplier";
import {Subtractor} from "./Subtractor";
import {NiceSubtractor} from "./NiceSubtractor";
import {SimpleMock} from "../mock/SimpleMock";
@Component({
mockedBy: SimpleMock
})
export class Simple {
constructo... |
import { ChargePointErrorCode, ChargePointStatus, OCPP15TransactionData, OCPPAuthorizationStatus, OCPPMeterValue, OCPPReadingContext, OCPPStatusNotificationRequest, OCPPVersion } from '../../src/types/ocpp/OCPPServer';
import Transaction, { InactivityStatus } from '../../src/types/Transaction';
import chai, { expect } ... |
import React from 'react';
import whatsappIcon from './../../assets/images/icons/whatsapp.svg';
import api from '../../services/api';
import './styles.css';
export interface Teacher {
id: number;
avatar: string;
bio: string;
cost: string;
name: string;
subject: string;
whatsapp: string;
}
interface T... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { GenericClassRoutingModule } from './generic-class-routing.module';
import { GenericClassComponent } from './generic-class.component';
import {SharedModule} from '../../../../shared/shared.module';
@NgModule({
imports:... |
/**
* @module networking/packets/incoming
*/
import { PacketBuffer } from '../../packet-buffer';
import { PacketType } from '../../packet-type';
import { IncomingPacket } from '../../packet';
/**
* Received to prompt the player to verify their email.
*/
export class VerifyEmailPacket implements IncomingPacket {
... |
import React, { useState, useEffect } from 'react';
import { useSudokuContext } from '../context/SudokuContext';
import moment from 'moment';
/**
* 状态部分中计时器的组件。
* 使用“useEffect”挂钩每分钟更新一次计时器。
*/
export const Timer = () => {
let [currentTime, setCurrentTime] = useState(moment());
let { timeGameStarted, won } = use... |
/// <reference types="react" />
export declare const components: {
a: import("react").FunctionComponent<import("react").AnchorHTMLAttributes<any>>;
blockquote: import("styled-components").StyledComponent<"blockquote", any, {}, never>;
editor: import("react").FunctionComponent<import("./Editor").EditorProps>... |
declare module "stdgo/hash/crc32" {
import {
Float32, Float64,
Int64, Int32, Int16, Int8, Int,
Uint64, Uint32, Uint16, Uint8, Uint,
Number, NumberLike,
Byte, Bytes, Rune, Runes,
Float32Slice, Float64Slice,
Int64Slice, Int32Slice, Int16Slice, Int8Slice, IntSlic... |
import {NotificationOptions, Notification} from '../../../src/client';
export function assertHydratedCorrectly(options: NotificationOptions, fullNote: Notification): void {
// Handle `id` and `date` seperately as these cannot be predicted if undefined
if (options.id) {
expect(fullNote.id).toEqual(optio... |
import {Int16} from "../values/int16"
import {Int32} from "../values/int32"
import {Int64} from "../values/int64"
import {Int8} from "../values/int8"
import {ZedInt} from "../values/types"
import {Uint16} from "../values/uint16"
import {Uint32} from "../values/uint32"
import {Uint64} from "../values/uint64"
import {Uin... |
import { Component, OnInit } from '@angular/core';
import { Observable, of } from 'rxjs';
import { TableConfiguration } from '../../../../../../mat-table/src/lib/models/mat-table.model';
import { MatTableSortDirection } from '../../../../../../mat-table/src/lib/enums/mat-table.enum';
import { DatePipe } from '@angular/... |
import { BackendContext } from '@vue-devtools/app-backend-api'
import SharedData from '@vue-devtools/shared-utils/lib/shared-data'
import { App, ComponentInstance } from '@vue/devtools-api'
import { BridgeSubscriptions } from '@vue-devtools/shared-utils'
import { addTimelineEvent } from './timeline'
import { getAppReco... |
import { Component, OnInit } from '@angular/core';
import { HeroService } from './hero.service';
import { HeroesComponent } from './heroes.component';
import { HeroDetailComponent } from './hero-detail.component';
import { DashboardComponent } from './dashboard.component';
import { RouteConfig, ROUTER_DIRECTIVES, R... |
<TS language="ko_KR" 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>새 주소 만들기... |
import { LocalScope, RemoteScope } from './scope';
import { QueryGenerator, Api } from './query';
export declare type mode = 'remote' | 'local';
export interface IClient {
[index: string]: unknown;
client: unknown;
unwrapQuery(
queryGenerator: QueryGenerator,
mode: mode
): LocalScope | RemoteScope;
lo... |
import React from 'react';
import {
OptionsControl,
OptionsControlProps,
Option,
FormOptionsControl
} from './Options';
import cx from 'classnames';
import Button from '../../components/Button';
import {SchemaNode, Schema, Action, PlainObject} from '../../types';
import find from 'lodash/find';
import {
anyCh... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, 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 ri... |
import { global } from './../../services/global';
import { UserService } from './../../services/user.service';
import { User } from './../../models/user.model';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-register',
templateUrl: './register.component.html',
styleUrls: ['./regis... |
import * as React from "react";
import { JSX } from "react-jsx";
import { IFluentIconsProps } from '../IFluentIconsProps.types';
const Clipboard24Filled = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => {
const {
primaryFill,
className
} = iconProps;
return <svg {... |
import { Controller, Get, Post, Put, Delete, Param, Body } from '@nestjs/common';
import { Student } from './student.interface';
import { StudentsService } from './students.service';
import { StudentDTO } from './student.dto'
@Controller('students')
export class StudentsController {
constructor(private readonly s... |
import CommonModuleMetadata from "./CommonModuleMetadata";
export default class PackModuleMetadata extends CommonModuleMetadata {
/**
* The amount of royalty collected on all royalties represented as basis points.
* The default is 0 (no royalties).
*
* 1 basis point = 0.01%
*
* For exa... |
import { log } from 'utils';
export type ScreenSize = 'initial' | 'small' | 'medium' | 'large';
const screenSizeDimesions: {[key in ScreenSize] : number} = {
initial: 0, // server rendering
small: 550, // portrait mobile
medium: 1280, // landscape mobile, tablet, pc with small screen
large: Number.POSITIVE_IN... |
export * from './validation';
export * from './input';
export * from './button'; |
import { Component } from '@angular/core';
import { NgForm } from "@angular/forms";
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
defaultQustion = 'pet';
answer = '';
genders = ['male', 'female'];
user = {
use... |
import path from "path";
import * as fs from "fs";
import * as template from 'art-template';
import {Handler} from "../route";
import {Request, Response} from "express";
export const indexHandler: Handler = async (req: Request, res: Response) => {
const fileObj = fs.readFileSync(path.resolve(__dirname, '../views/... |
import * as React from 'react';
import classNames from 'classnames';
import isEqual from 'lodash/isEqual';
import FilterFilled from '@ant-design/icons/FilterFilled';
import Button from '../../../button';
import Menu from '../../../menu';
import Checkbox from '../../../checkbox';
import Radio from '../../../radio';
impo... |
import {Body, Controller, Get, Post} from '@nestjs/common';
import {InitService} from './init.service';
import {BackupService} from './backup.service';
import {UploadService} from './upload.service';
@Controller('data')
export class DataController {
constructor(
private initService: InitService,
pr... |
import { window, workspace } from 'vscode';
import { getList, localize } from './utils';
import { EXTENSION, SHOW_REMINDERS } from './constants';
// const LEFT = 1;
const RIGHT = 2;
const statusBarItem = window.createStatusBarItem(RIGHT);
statusBarItem.command = `${EXTENSION}.${SHOW_REMINDERS}`;
/**
* Update Statu... |
import type ClientboundPacket from '../ClientbountPacket';
import Packet from '../Packet';
export default class ClientboundAddExperienceOrbPacket implements ClientboundPacket {
public constructor(public id: number, public x: number, public y: number, public z: number, public value: number) {}
public write(): ... |
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... |
import { call, put, select, takeEvery } from 'redux-saga/effects';
import { format } from '@waldur/core/ErrorMessageFormatter';
import { Action } from '@waldur/core/reducerActions';
import * as api from '@waldur/customer/payments/api';
import { updatePaymentsList } from '@waldur/customer/payments/utils';
import { tran... |
export { default } from './api-version.controller'; |
import I18n = require('../interfaces.d');
declare var top:I18n.IFingerprint;
top = { rank: -1,
iso: 'top',
name: 'Totonac, Papantla',
trigrams:
{ akg: 0,
'an ': 1,
lak: 2,
ata: 3,
ama: 4,
aka: 5,
' na': 6,
ala: 7,
kan: 8,
' ka': 9,
ini: 10,
' la': 11,
... |
export interface IPromptOptions {
prompt?: string;
type?: 'normal' | 'mask' | 'hide' | 'single';
timeout?: number;
/**
* Requires user input if true, otherwise allows empty input
*/
required?: boolean;
default?: string;
}
/**
* prompt for input
*/
export declare function prompt(name:... |
'use strict';
import * as models from './models';
export interface ODataPagedResult1TransactionContract {
results?: Array<models.Transaction>;
count?: number;
} |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import * as fs from 'fs';
import * as path from 'path';
import * as ts from 'typescript';
import {main, readCommand... |
import { FavoritesModule } from './../favorites/favorites.module';
import { BookmarkModule } from './../bookmark/bookmark.module';
import { VoteModule } from './../vote/vote.module';
import { CommentsModule } from './../comments/comments.module';
import { DocDetailModule } from './../doc-detail/doc-detail.module';
imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.