text stringlengths 10 953k |
|---|
/**
* @license
* Copyright 2020 Dynatrace 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 ag... |
import { Directive } from "vue";
import { Popover } from "bootstrap";
const BPopover: Directive<HTMLElement> = {
mounted: function(el, binding) {
let placement: Popover.Options['placement'] = 'auto';
let trigger: string[] = [];
if (binding.modifiers.left) {
placement = 'left';
... |
import {Recommendation} from './recommendation';
import {ResourceType} from './resource';
import {RecommenderType} from './recommender_type';
/** Represents graph data for a particular resource. */
export interface ResourceGraphData {
/** Return the ID of the associated resource. */
getId(): string;
/** Returns ... |
/*
* 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 ... |
import cloneDeep from 'lodash/cloneDeep'
import { providers, BigNumber } from 'ethers'
/**
* Helper for adding additional L2 context to transactions
*/
export const injectL2Context = (l1Provider: providers.JsonRpcProvider) => {
const provider = cloneDeep(l1Provider)
// Pass through the state root
const blockF... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... |
version https://git-lfs.github.com/spec/v1
oid sha256:d66cdf8f225191e7b25ebef02781c9330cb5ef2381e7497b2da43bcbe327051d
size 557608 |
import { BrowserWindow } from 'electron';
import {
interfaceDebugSettings,
interfaceProductionSettings,
} from '../Data/WindowSettings';
import { resolveHtmlPath } from '../Common/util';
import ClientService from './ClientService';
export default class ClientServiceImpl implements ClientService {
private readonl... |
import { IBlockConfig } from './IBlockConfig';
export interface ILocationResponseBlockConfig extends IBlockConfig {
accuracy_threshold_meters: number;
accuracy_timeout_seconds: number;
}
//# sourceMappingURL=ILocationResponseBlockConfig.d.ts.map |
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient.ts";
import { BatchPutMessageRequest, BatchPutMessageResponse } from "../models/models_0.ts";
import {
deserializeAws_restJson1BatchPutMessageCommand,
serializeAws_restJson1BatchPutMessageCommand,
} from... |
import crypto from 'crypto'
import fs from 'fs'
import Bot from '../lib'
import config from './tests.config'
import {timeout} from '../lib/utils'
import {pollFor} from './test-utils'
import {promisify} from 'util'
import {TopicType, ChatChannel, MsgSummary, BotCommandsAdvertisementTyp} from '../lib/types/chat1'
import ... |
import { Fragment } from "react";
import styled from "styled-components";
import { css, all, transition } from "components/system";
import Box from "components/Box";
import Flex, { FlexProps } from "components/Flex";
import Section from "components/Section";
import { RecaptchaTOC } from "components/MarketoForm";
import... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { PackagePolicy, PackagePolicyInput } from '../types';
import { storedP... |
import { Controller, Get, Param } from '@nestjs/common';
import { ClienteEntity } from './entity/cliente-entity';
import { ClientesService } from './clientes.service';
@Controller('clientes')
export class ClientesController {
constructor(private clientesService: ClientesService) {}
@Get()
async findAll()... |
import * as Types from '../index.d.ts';
import Parser = Types.Parser;
import WeekEvent = Types.WeekEvent;
import DayEvent = Types.DayEvent;
import BaseCalendar = Types.Calendar;
import CalendarEvent = Types.CalendarEvent;
import DateRange = Types.DateRange;
import MonthEvent = Types.MonthEvent;
import DE = require('dat... |
export default {
userInfo: {
name: 'name is first i18n',
age: 'age'
}
} |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/*... |
import { expect } from 'chai';
import { Item, GildedRose } from '../app/gilded-rose';
describe('Gilded Rose', function() {
describe('is not "Aged Brie" and "Backstage passes to a TAFKAL80ETC concert"', () => {
describe('Not "Sulfuras, Hand of Ragnaros"', () => {
it('should return sellIn of -1', function() ... |
import styled from "styled-components/macro";
export const ToggleContainer = styled.button`
position: relative;
background: ${({ theme }) => theme.colors.toggleGradient};
border: 1px solid ${({ theme }) => theme.colors.toggleBorder};
border-radius: 30px;
cursor: pointer;
display: flex;
just... |
import React, { MutableRefObject, Ref } from "react";
import { useDispatch } from "react-redux";
import { toggleChat, addUserMessage } from "../../store/actions";
import { AnyFunction } from "../../utils/types";
import WidgetLayout from "./layout";
type Props = {
title: string;
titleAvatar?: string;
subtitle: ... |
export type StateMachineEvent = {
/**
* The ARN of the SNS topic that we are being asked to remove.
*/
topicArn: string;
} |
export const es = {
tr: "Turco",
en: "Inglés",
de: "Alemán",
fr: "Francés",
es: "Español",
cn: "Chino",
common: {
save: "Ahorrar",
edit: "Editar",
lock: "Cerrar con llave",
delete: "Borrar",
cancel: "Cancelar",
},
header: {
operations: ... |
import {UserBanDTO} from '@instinct-prj/interface';
import {Modal, ModalBody, ModalHeader} from 'reactstrap';
import React, {useContext, useEffect, useState} from 'react';
import {
Avatar,
Form,
sessionContext,
userService,
DatePicker,
} from '@instinct-web/core';
import {
BanEditorProps,
BanEditorState,
... |
/*
|--------------------------------------------------------------------------
| Validating Environment Variables
|--------------------------------------------------------------------------
|
| In this file we define the rules for validating environment variables.
| By performing validation we ensure that your applicat... |
import { Server } from './server';
describe('Server', () => {
it('should create an instance', () => {
expect(new Server()).toBeTruthy();
});
}); |
import { Component } from '@angular/core';
@Component({
selector: 'app-expansion',
templateUrl: './expansion.component.html',
styleUrls: ['./expansion.component.scss']
})
export class ExpansionComponent {
panelOpenState = false;
step = 0;
setStep(index: number) {
this.step = index;
}
nextStep() {... |
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {HttpClientModule} from '@angular/common/http';
import {registerLocaleData} from '@angular/common';
import localeDe from '@angular/common/locales/de';
import {AppCompon... |
import { EMPTY, Observable } from 'rxjs';
import { catchError, expand, finalize, reduce } from 'rxjs/operators';
import { Injectable } from '@angular/core';
import { Resolve, Router } from '@angular/router';
import { OperationResult } from '../models/responses/base/operation-result';
import { GetPlaylistsResponse } f... |
import { HttpRequest } from './http-request';
import { HttpResponse } from './http-response';
export class XhrContext {
private _result: any;
constructor(public request: HttpRequest, public response: HttpResponse) {
if (!this.response)
this.response = new HttpResponse();
}
set resu... |
/**
* @entrypoint InfiniteSelfRecursion
* @trace
*/
function infiniteSelfRecursion() {
infiniteSelfRecursion();
}
/**
* @entrypoint IndirectInfiniteSelfRecursion
* @trace
*/
function indirectInfiniteSelfRecursion() {
makeIndirectRecursiveCall();
}
/**
* @trace
*/
function makeIndirectRecursiveCall() {
i... |
import React, { ReactNode } from 'react'
import PropTypes from 'prop-types'
import styled, { css } from 'styled-components'
import { Box, Props as BoxProps } from '../Box'
export interface Props extends BoxProps {
children?: ReactNode
body?: any
variant?: 'top' | 'right' | 'bottom' | 'left' | 'right-bottom' | '... |
import * as fs from 'fs';
import { EventResponse, Signature } from 'hellosign-sdk';
import HelloSign = require('hellosign-sdk');
const hsClient = new HelloSign({ key: 'test' });
export const eventHandler = async (data: EventResponse): Promise<void> => {
const eventType = data.event.event_type;
const eventTime... |
import winston from 'winston';
import { Logger, createLogger, format, transports } from 'winston';
export { winston };
const { combine, label, printf } = format;
export default class LoggerFactory {
public static getInstance(source = 'POLKABOT'): Logger {
const consoleFormat = printf(({ level, message, label, _... |
/**
* Garrison unit assignment payload.
*/
export interface IUnitAssign {
garrisonId: string;
code: string;
quantity: number;
harvestCode: 'goldmine' | 'sawmill';
} |
import React from "react";
import { render } from "@testing-library/react";
import { BrowserRouter as Router } from "react-router-dom";
import ReefFooter from ".";
test("renders as expected", () => {
const { container } = render(
<Router>
<ReefFooter />
</Router>
);
expect(container).toMatchSnapsho... |
import { NgModule } from '@angular/core';
import { FocusIfDirective } from './focus-if.directive';
@NgModule({
exports: [FocusIfDirective],
declarations: [FocusIfDirective]
})
export class FocusIfModule { } |
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. 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.... |
import * as React from 'react';
import { CalendarDateJSON } from '../../calendar-date';
declare type Props = {
startsOn: CalendarDateJSON;
values: Value[];
};
export declare type Value = {
time: {
year: number;
month: number;
day: number;
};
value: number;
};
export default c... |
export class Quote {
_id: number;
text: string;
author: string;
tag: string;
} |
import commandLineArgs from 'command-line-args'
import commandLineUsage from 'command-line-usage'
import { generateMasterList } from './generator'
export async function main(): Promise<void | string> {
try {
// Define CLI options
const commandLineOptions = [
{
name: 'verbose',
alias: 'v... |
import type { RawBody } from "@sveltejs/kit"
import type { StrictBody } from "@sveltejs/kit/types/hooks"
// LOGGING UTILITIES
export type LogLevel = 'ERROR' | 'INFO' | 'DEBUG'
const LOG_LEVEL = (process.env.LOG_LEVEL?.toUpperCase() || 'INFO') as LogLevel
const logLevels: { [k: string]: number } = {
ERROR: 3,
... |
import { NgModule } from '@angular/core';
import { MatToolbarModule } from '@angular/material/toolbar';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { MatSidenavModule } from '@angular/material/sidenav';
import { MatListModule } from '@angula... |
import React, { useEffect, useMemo, useState } from "react";
import * as PIXI from "pixi.js";
// cspell: disable-next-line
import { decode } from "blurhash";
import { PixiElement, Sprite } from "react-pixi-fiber";
export function PixiBlurHashSprite({
url,
blurHash,
blurHashOnly,
...rest
}:
| {
blurHash... |
// Copyright (c) 2018 Steven Enten. All rights reserved. Licensed under the MIT license.
import * as http from 'http';
import * as path from 'path';
import * as webpack from 'webpack';
import wpc = require('webpack-plugin-compat');
import MultiCompiler from './MultiCompiler';
import {
ContainerAPI,
ContainerArg... |
import * as cp from '@aws-cdk/aws-codepipeline';
import { Step } from '../../blueprint/step';
import { StepOutput } from '../../helpers-internal';
const CODEPIPELINE_ENGINE_NAME = 'codepipeline';
export function makeCodePipelineOutput(step: Step, variableName: string) {
return new StepOutput(step, CODEPIPELINE_ENGI... |
import commander from 'commander'
import validator from 'validator'
export const endpointParser = (value: string) => {
if (!validator.isURL(value)) {
throw new commander.InvalidOptionArgumentError('Not a url')
}
return value
} |
import {
LOGOUT_INIT,
} from 'store/security/types';
import {
TOGGLE_LAYER,
MapViewerActions,
MapViewerState
} from 'store/map/types';
const initialState: MapViewerState = {
selected: [],
};
export function mapViewerReducer(
state = initialState,
action: MapViewerActions
): MapViewerState {
switch (... |
import { Component, TemplateFunction, ScopeBase } from "@ribajs/core";
import template from "./bs4-modal-item.component.html";
import { Modal } from "../../interfaces/index.js";
import { getElementFromEvent } from "@ribajs/utils/src/dom.js";
import { ModalService, EVENT_HIDDEN } from "../../services/modal.service.js";... |
/* GENERATED FILE */
import React, { forwardRef, useContext } from "react";
import { IconProps, IconContext } from "../lib";
const renderPathFor = (
weight: string,
color: string
): React.ReactNode | null => {
switch (weight) {
case "bold":
return (
<>
<line
x1="152"
... |
import { Injectable, NestMiddleware } from '@nestjs/common';
import { Request, Response } from 'express';
@Injectable()
export class ExampleMiddleware implements NestMiddleware {
use(req: Request, res: Response, next: Function) {
console.log(req.params);
next();
}
} |
import {clock} from '@shopify/jest-dom-mocks';
import './matchers';
import {I18n} from '../i18n';
import {LanguageDirection} from '../types';
import {DateStyle, Weekday} from '../constants';
import {MissingTranslationError} from '../errors';
jest.mock('../utilities', () => ({
...jest.requireActual('../utilities'),... |
interface modules {
/** 移植动态顶栏banner */
readonly "banner.js": string;
readonly "animated-banner.css": string;
}
interface config {
/** 丰富顶栏动图 */
bannerGif: boolean;
}
namespace API {
class Animate {
/** 缓存已请求内容 */
static record: Record<string, any> = {};
/** 资源id */
... |
/**
* Helper class providing Nest reflection capabilities.
*
* @see [Reflection](https://docs.nestjs.com/guards#putting-it-all-together)
*
* @publicApi
*/
import {Type} from "../contracts";
import {isEmpty, isObject} from "../utils";
export class Reflector {
/**
* Retrieve metadata for a specified key for ... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'spinner-theme',
templateUrl: './spinner-theme.component.html',
styleUrls: ['./spinner-theme.component.scss']
})
export class SpinnerThemeComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
import type * as d from '../../../declarations';
import {
DIST_HYDRATE_SCRIPT,
isOutputTargetDist,
isOutputTargetHydrate,
isOutputTargetWww,
} from '../../output-targets/output-utils';
import { isBoolean, isString } from '@utils';
import { isAbsolute, join } from 'path';
import { NODE_BUILTINS } from '../../sys... |
import { makeStyles } from "@material-ui/core/styles";
const useStyle = makeStyles((theme) =>({
card: {
backgroundColor: "#292A2D",
width: 350,
height: 70,
},
fileTitle: {
color: "#9e9e9e",
},
dairyContent: {
color: "#9e9e9e",
fontSize: "12px"
},
deleteBtn: {
right: "-47%",
... |
import React from 'react';
import { Feather } from '@expo/vector-icons';
import { useAuthentication } from '@modules/authentication/hooks/authentication';
import { DrawerNavigationHelpers } from '@react-navigation/drawer/lib/typescript/src/types';
import { useTheme } from '@shared/hooks/theme';
import { Container, Clo... |
import * as React from "react";
import { API } from "../../../api";
export interface NonsecureContentProps {
/** The warning to show the user if one of the URLs is insecure. */
children?: React.ReactChild;
urls: string[];
}
/** Given a list of URLs, returns bool indicating wether or not all URLs in the
* set a... |
import dotenv from "dotenv";
dotenv.config();
import { CommandClient, ShardClient } from "detritus-client";
import { ChannelBase } from "detritus-client/lib/structures";
const packagejson = require("../package.json");
const { TOKEN, PREFIX, VERSION } = {
TOKEN: process.env.TOKEN!,
PREFIX: process.env.PREFIX!,
... |
import app from '../app'
import config from '../config'
const start = async () => {
app.listen(config.app.port, () => {
console.log(`Listening on ${config.app.port}`)
})
}
start().catch(error => {
console.error(error)
process.exit(1)
}) |
/**
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
export declare function createText(): import("../render-object").GraphicsRenderObject<"text">; |
import styled from "styled-components";
import { Add } from "styled-icons/material";
export const Container = styled.div`
grid-area: CL;
display: flex;
flex-direction: column;
padding: 24px 9.5px 0 16px;
background-color: var(--secondary);
`;
export const Category = styled.div`
display: flex;
align-item... |
import React, { MouseEventHandler } from "react";
export class Presentation extends React.Component<
PresentationProps,
PresentationState
> {
state: PresentationState = {};
prevSlideProps?: SlideProps[];
hidden = [false, false, false];
render() {
const slideProps = this.getProps();
this.prevSlid... |
import { UsuarioI } from './../interfaces/usuario.interface';
import { Injectable, Res, HttpStatus, Req, NotFoundException } from '@nestjs/common';
import { request, response, json } from 'express';
import { UsuarioC } from '../dto/usuario.dto';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from "mon... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { AuthService } from '../../../auth/auth.service';
import { CreateProfessorInfo } from '../../../auth/createProfessor-info';
import { Rout... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent {
public code = `
import { provideAngularFireAuthMock } from '@ngxtend/fire-testing';
describe('AuthService', () =... |
import { TestBed, inject } from '@angular/core/testing';
import { RoleService } from './role.service';
describe('RoleService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [RoleService]
});
});
it('should be created', inject([RoleService], (service: RoleService) => {
... |
export declare type Action = CreateFileAction | OverwriteFileAction | RenameFileAction | DeleteFileAction;
export interface ActionBase {
readonly id: number;
readonly parent: number;
readonly path: Path;
}
export declare class ActionList implements Iterable<Action> {
get length(): number;
[Symbol.... |
abstract class SynchronicBase<T> {
protected _value: T
protected version = 0
constructor (value: T, options?: { version: number }) {
this._value = value
if (options) {
const { version } = options
this.version = version
}
}
abstract value(): Promise<T>... |
/*
* Copyright 2017 Google Inc. 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 applicable law... |
import { SingleSelectionState } from './single.selection.state';
import { MultipleSelectionState } from './multiple.selection.state';
import { RangeSelectionState } from './range.selection.state';
import { Model } from '../../infrastructure/model';
import { SelectionService } from '../selection.service';
export declar... |
export * from './spectral';
export * from './function'; |
export interface Aluno {
nome: string,
dataNascimento: string
}
export type Alunos = Array<Aluno> |
import {Action} from './Action';
import {Campaign} from './Campaign';
import {Customer} from './Customer';
import {Order} from './Order';
import {Page} from './Page';
import {ProductCollection} from './ProductCollection';
import {Session} from './Session';
export class DataMap {
/**
* Tracking data.
*/
... |
// See docs/syntax-highlight.md
import { Dictionary } from './utils-types';
// Data types
export interface Type extends SettingsDict {
number: Settings; // constant.numeric
string: Settings; // string
character: {
default: Settings; // constant.character
escape: Settings; // constant.character.escape
... |
import { defineConfig, presetAttributify, presetIcons, presetUno } from 'unocss'
export default defineConfig({
presets: [presetUno(), presetAttributify(), presetIcons()],
include: [`${__dirname}/**/*`],
exclude: [`${__dirname}/node_modules/**/*`],
theme: {
colors: {
primary: {
DEFAULT: '#2563... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AngularFireModule, AuthProviders, AuthMethods } from 'angularfire2';
import { routing } from './app.routing';
import { ... |
/*
* mydraft.cc
*
* @license
* Copyright (c) Sebastian Stehle. All rights reserved.
*/
import * as svg from '@svgdotjs/svg.js';
import { MathHelper, Vec2 } from '@app/core';
import { DiagramItem } from '@app/wireframes/model';
export class SvgEvent {
constructor(
public readonly event: MouseEvent,
... |
import { send } from 'micro';
import { Inspector, InspectorArgs } from '../eth/inspector';
import { ErrorObject } from '../types';
import { getMetaError, Joi } from './utils/validator';
const metaSchema = {
address: Joi.string().required(),
};
const fetchAnchorsArgsSchema = Joi.object().keys({
island: Joi.string().... |
import { Component } from '@angular/core';
import { Input } from '@angular/core';
import { Output } from '@angular/core';
import { EventEmitter } from '@angular/core';
@Component({
selector: 'ft-fpager',
templateUrl: './fpager.component.html',
styleUrls: ['./fpager.component.scss'],
})
export class FPa... |
import { client } from '@discord/discord.main';
import { debug } from '@utils/essentials.utils';
client.on('ready', () => {
debug(`Logged in as ${client.user.tag}.`, true);
}); |
import { Omnibox } from '../../src/ui/Omnibox/Omnibox';
import * as Mock from '../MockEnvironment';
import { QuerySuggestAddon } from '../../src/ui/Omnibox/QuerySuggestAddon';
import { IQuerySuggestResponse } from '../../src/rest/QuerySuggest';
import { QUERY_STATE_ATTRIBUTES } from '../../src/models/QueryStateModel';
... |
import { Config } from '@stencil/core';
export const config: Config = {
namespace: 'async-content',
outputTargets:[
{
type: 'dist'
}
]
}; |
import { UnprocessableEntityException } from '@nestjs/common'
/*
* @Author: Innei
* @Date: 2020-04-30 12:21:51
* @LastEditTime: 2021-01-15 13:59:11
* @LastEditors: Innei
* @FilePath: /server/apps/server/src/shared/categories/dto/category.dto.ts
* @MIT
*/
import { ApiProperty } from '@nestjs/swagger'
import { Tra... |
/* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { ProcessHeaderComponent } from './process-header.component';
describe('ProcessHeaderComponent', () => ... |
import { Pipe, PipeTransform, Output, EventEmitter } from '@angular/core';
import { Component, OnInit, HostListener } from '@angular/core';
import { Input } from "@angular/core";
import { FormGroup } from "@angular/forms";
import { RxFormBuilder } from "@rxweb/reactive-form-validators";
import { FeedbackModel } from "s... |
import { en } from "../lib/locales/en/mod.ts";
import { ru } from "../lib/locales/ru/mod.ts";
import { Faker } from "../lib/mod.ts";
export const faker = new Faker({
locales: { ru, en },
locale: "ru",
localeFallback: "en",
}); |
import { ComponentInterface, EventEmitter } from '../../stencil.core';
import { Animation, AnimationBuilder, ComponentProps, ComponentRef, FrameworkDelegate, OverlayEventDetail, OverlayInterface } from '../../interface';
/**
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
*/
exp... |
import { exec, ExecOptions, spawn } from 'child_process'
import { Event, window } from 'coc.nvim'
import path from 'path'
import which from 'which'
export interface IGit {
path: string
version: string
}
export function wait(ms: number): Promise<any> {
return new Promise(resolve => {
setTimeout(() => {
... |
import { app, BrowserWindow, ipcMain } from "electron";
import * as path from "path";
let mainWindow: BrowserWindow;
function createWindow() {
// Create the browser window.
mainWindow = new BrowserWindow({
height: 600,
width: 800,
webPreferences: {
// important to just only keep the preload stri... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [AppComponent],
}).compileComponents();
}));
it('should create the app', () => {
cons... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { SiteContextInterceptor } from './site-context.interceptor';
import { OccSiteService } from './occ-site.service';
import { OccModule } from '../.... |
/*
* 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 ... |
import WebSocket from "ws";
// interface SendList {
// [nickname: string]: WebSocket
// }
interface chatWebSocket extends WebSocket {
nickname: string
}
const clients: chatWebSocket[] = [];
function parseMsg(msg: string) {
return JSON.parse(msg);
}
function handleConn(cliSock: chatWebSocket){
clien... |
import Component from '@ember/component';
import EmberObject from '@ember/object';
import { IProviderKlass } from './interfaces';
import { Provider } from '../index';
type ComponentWithParentView = Component & {
parentView?: Component;
};
export default function findParentProvider(
injectedProviders: WeakMap<Emb... |
import {
createStyles,
Theme,
withStyles,
WithStyles
} from 'src/components/core/styles';
type ClassNames =
| 'title'
| 'tagGroup'
| 'CSVlinkContainer'
| 'CSVlink'
| 'addNewLink'
| 'chip'
| 'chipActive'
| 'chipRunning'
| 'chipPending'
| 'chipOffline'
| 'clearFilters';
const styles = (the... |
<TS language="nl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klik met de rechtermuisknop om het adres of label te wijzigen</translation>
</message>
<message>
<source>Create a new address</sour... |
import { Long } from "bson";
import { Serializer } from "json-proxy-mapper";
import { ChannelDataStruct } from "../talk/struct/channel-data-struct";
import { JsonUtil } from "../util/json-util";
import { LocoBsonRequestPacket, LocoBsonResponsePacket } from "./loco-bson-packet";
/*
* Created on Fri Oct 18 2019
*
* C... |
/**
* Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { ReaderResult as Result } from '../result';
import { Task, RuntimeContext } from '../../../mol-task';
import { PlyFile, PlyType, PlyElement } from... |
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
import { Device } from "@siteimprove/alfa-device";
import {
Attribute,
Block,
Comment,
Declaration,
Document,
Element,
FontFaceRule,
ImportRule,
KeyframeRule,
KeyframesRule,
MediaRule,
NamespaceRule,
Node,
PageRule,
Rule,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.