text stringlengths 10 953k |
|---|
export * from './easyparcel/easyparcel.definition';
export * from './easyparcel/easyparcel.module';
export * from './easyparcel/easyparcel.service'; |
/**
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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/licens... |
import TelegramBot = require('node-telegram-bot-api');
import { v4 as uuidv4 } from 'uuid';
import downloadUtils = require('./download_tools/utils');
import * as ariaTools from './download_tools/aria-tools';
import constants = require('./.constants');
import msgTools = require('./bot_utils/msg-tools');
import dlm = req... |
export * as path from "https://deno.land/std@0.91.0/path/mod.ts";
export {
compile,
preprocess,
} from "https://deno.land/x/snel@v0.0.5/compiler/core.js";
export type {
compileOptions,
PreprocessorGroup,
} from "https://deno.land/x/snel@v0.0.5/compiler/types.ts"; |
/**
* The `ComposerBody` component handles the body, or the content, of the
* composer. Subclasses should implement the `onsubmit` method and override
* `headerTimes`.
*
* ### Attrs
*
* - `composer`
* - `originalContent`
* - `submitLabel`
* - `placeholder`
* - `user`
* - `confirmExit`
* - `disabled`
*
* ... |
import * as oak from "https://deno.land/x/oak/mod.ts";
import * as sqlite from "https://deno.land/x/sqlite/mod.ts";
export {
oak,
sqlite
} |
// Needed to make @types/puppeteer pass type checking
// See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/24419
interface Element {} |
/* Dotenv */
import "https://deno.land/x/dotenv/load.ts";
/* Telegram */
export { Bot } from "https://deno.land/x/telegram@v0.1.1/mod.ts"; |
import React from "react";
import { TestWrapper } from "../test-utils";
import { UploadButton } from ".";
import { cleanup, fireEvent, render } from "@testing-library/react";
afterEach(cleanup);
test("render upload button with default text", async () => {
const testId = "upload-button";
const mockOnChange = jest.... |
/*
* 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 { get } from 'lodash';
import { SavedObjectsServiceStart, Logger } fro... |
/*
Copyright 2019-2020 eMobilify GmbH
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... |
module.exports = (__testFn) => {
describe('sugar.js.is.object', () => {
it('Should detect the passed variable type correctly', () => {
class myClass { }
expect(__testFn({ hello: 'world' })).toBe(true);
expect(__testFn(12)).toBe(false);
expect(__testFn(function () { })).toBe(false);
... |
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { UIModule } from '../ui/ui.module';
import {
DEMOANGULARMATERIAL_COMPONENTS,
DemoAngularMaterialComponent,
DemoMaterialAddressComponent,
DemoMaterialDashboardComponent,
DemoMaterialDragAndDropComponent,
DemoMa... |
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class Stores {
@PrimaryGeneratedColumn()
id?: number;
@Column({ type: 'varchar', length: 255, default: ''})
name?: string;
@Column({ type: 'varchar', length: 255})
phone?: string;
@Column({ type: 'varchar', length: 500,... |
/******************************************************************************
* Spine Runtimes Software License
* Version 2.5
*
* Copyright (c) 2013-2016, Esoteric Software
* All rights reserved.
*
* You are granted a perpetual, non-exclusive, non-sublicensable, and
* non-transferable license to use, install,... |
import os from 'os';
import sinon from 'sinon';
import { LogLevel, ReportType, strykerCoreSchema, StrykerOptions } from '@stryker-mutator/api/core';
import { testInjector, factory } from '@stryker-mutator/test-helpers';
import { expect } from 'chai';
import { OptionsValidator, validateOptions, markUnknownOptions } fr... |
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";
const regionHash: RegionHash = {
"us-east-1": {
variants: [
{
hostname: "workspaces.us-east-1.amazonaws.com",
tags: [],
... |
export function convertSnaps<T>(snaps) {
return <T[]>snaps.map((snap: any) => {
return {
id: snap.payload.doc.id,
...snap.payload.doc.data(),
};
});
} |
import { createAsyncThunk } from "@reduxjs/toolkit";
import { comApi } from "../../apis/comApi";
import { CreateChannelDTO, CreateConverationDTO, GetListChannelDTO, GetListConversationDTO, GetMessagesHistoryDTO, SendMessageDTO } from "../../models/dtos";
import { GetListUserStatusDTO } from "../../models/dtos/UserStatu... |
import { Component, HostListener, OnDestroy, OnInit, TemplateRef, ViewChild } from '@angular/core';
import { Observable, of, Subject } from 'rxjs';
import { MatDialog } from '@angular/material/dialog';
import { KtbProjectSettingsGitComponent } from '../ktb-project-settings-git/ktb-project-settings-git.component';
impor... |
import {
SearchFacetDivider,
SearchFacetInputProps,
SearchFacetName,
SearchFacetOperators
} from '@types'
import groq from 'groq'
export const divider: SearchFacetDivider = {type: 'divider'}
export const inputs: Record<SearchFacetName, SearchFacetInputProps> = {
altText: {
assetTypes: ['file', 'image'],... |
import React, { useState, Fragment } from "react";
import {
EuiIcon,
EuiHeaderAlert,
EuiHeaderSectionItemButton,
EuiFlyout,
EuiFlyoutBody,
EuiFlyoutHeader,
EuiTitle,
EuiLink,
EuiFlyoutFooter,
EuiFlexGroup,
EuiFlexItem,
EuiButtonEmpty,
EuiText,
EuiBadge,
} from "@elastic/eui";
export defaul... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About CryptoFightClub</source>
<translation>关于黑币</translation>
</message>
<message>
<locat... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2018 Realm 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/li... |
import { promises as fs } from "fs"
import csv from "async-csv"
export const readCSV = async (path: string): Promise<unknown[]> => {
try {
const csvString = await fs.readFile(path, "utf-8")
const rows = await csv.parse(csvString)
return rows
// return rows.map((row) => (row as string).split(","))
... |
import { Request, Response } from 'express';
import * as yup from 'yup';
import { CreateUserService } from '../../services/create/CreateUserService';
const createUserSchema = yup.object().shape({
name: yup.string().required(),
email: yup.string().email().required(),
admin: yup.boolean().notRequired(),
passwor... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { expect } from 'chai';
import * as path from 'path';
import * as sinon from 'sinon';
import * as TypeMoq from 'typemoq';
import untildify = require('untildify');
import { WorkspaceConfiguration } fro... |
import { Injectable } from '@angular/core';
import { HttpResponse } from '@angular/common/http';
import { Resolve, ActivatedRouteSnapshot, Routes, Router } from '@angular/router';
import { Observable, of, EMPTY } from 'rxjs';
import { flatMap } from 'rxjs/operators';
import { Authority } from 'app/shared/constants/aut... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { APIMessageComponentEmoji, ButtonStyle } from 'discord-api-types/v9';
import { z } from 'zod';
import type { SelectMenuOptionBuilder } from './selectMenu/SelectMenuOption';
export const customIdValidator = z.string().min(1).max(100);
export const emojiValidator = z
.object({
id: z.string(),
name: z.strin... |
import React from 'react'
import styles from './show_search_styles.module.scss'
import UserContext, { IUserContext } from '../../../core/user-context';
import PlayerContext from '../../../core/player-context';
import HomePageBloc from '../bloc/home-page-bloc';
import { YoutubeSearch } from '../../../core/domain/entitie... |
import { Credential } from "./credential";
export class User {
id: number;
name: string;
email?: string;
credential?: Credential;
} |
import { FSAToCensus } from "@types";
import { isEmpty } from "lodash";
// Function that tests if a d3 scale is of type ScaleQuantize
const isFSAToCensus = (obj: any): obj is FSAToCensus => {
if (isEmpty(obj)) return false;
return obj["A0A"][1] !== undefined;
};
export default isFSAToCensus; |
export enum Enum {
X = 1,
Y = 2,
} |
import { NgModule } from '@angular/core';
import { SeriesappSharedLibsModule, JhiAlertComponent, JhiAlertErrorComponent } from './';
@NgModule({
imports: [SeriesappSharedLibsModule],
declarations: [JhiAlertComponent, JhiAlertErrorComponent],
exports: [SeriesappSharedLibsModule, JhiAlertComponent, JhiAlert... |
/**
* Copyright (c) 2017-present, Ephox, Inc.
*
* This source code is licensed under the Apache 2 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { uuid } from './Utils';
export type callbackFn = () => void;
export interface IStateObj {
listeners: callbackFn[];
scr... |
import React from 'react';
import Chip from '@material-ui/core/Chip';
import styled from 'styled-components';
export default styled(Chip)`
&.MuiChip-colorPrimary {
background: transparent;
font-family: Roboto, sans-serif;
font-weight: 600;
font-size: 0.75em;
color: #6b805e;
border: 0;
tra... |
import { name, version } from "./package.json";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
import { defaultProvider as regionDefaultProvider } ... |
/* eslint-disable functional/no-loop-statement */
/* eslint-disable max-lines */
/* eslint-disable max-len */
/* eslint-disable id-blacklist */
import { Request, Response } from 'express';
import gql from 'graphql-tag';
import { requestGQL } from '../../shared/http-client';
export const addCampaignPayOutSettingHandler... |
import Panel from '~/components/Panel';
export default function Submit() {
return (
<Panel title="Submission">
<section className="px-8 pt-8">
<div className="prose-sm">
<h1>Contributing</h1>
<p className="py-4">
Hello! Thanks for your interest in contributing to Rem... |
import { DataObject } from '../DataObject';
/**
* The details on how a cheermote should be displayed.
*/
export interface CheermoteDisplayInfo {
/**
* The URL of the image that should be shown.
*/
url: string;
/**
* The color that should be used to shown the cheer amount.
*
* This... |
import * as React from 'react'
import { render } from '@testing-library/react'
import PatientFilterBar, { IPatientFilterValue } from '../PatientFilterBar'
describe('PatientFilterBar', () => {
it('render <PatientFilterBar />', () => {
const filter: IPatientFilterValue = {
gender: 'male',
searchText: ... |
import {
WS,
Message,
ClientMessage,
ServerMessage,
MsgType,
ClientMsgType,
User,
Row,
} from '../../lib/structs'
import { wordToRow, validateResponse, evaluateGuess, isCorrect } from '../../'
import { wss } from '../../cli/args'
import { msg, err } from './msg'
import { getRand, names, words, Log } fro... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-sample-survey',
templateUrl: './sample-survey.component.html',
styleUrls: ['./sample-survey.component.scss'],
})
export class SampleSurveyComponent implements OnInit {
constructor() { }
ngOnInit() {}
} |
"use strict";
/**
* Import interfaces
*/
import IWindow from "../../interfaces/IWindow";
/**
* Declare window interface
*/
declare let window: IWindow;
declare let global: any;
let root: any;
if (typeof window === "undefined") {
if (typeof global !== "undefined") {
root = global;
} else {
root = {};... |
import React from "react";
import { Popup } from "../Popup";
import { createUseStyles } from "react-jss";
import { GrClose } from "react-icons/gr";
import { LoginForm, SignupForm } from "../auth";
const useStyles = createUseStyles({
btn: {
border: "1px solid #DDDDDD",
backgroundColor: "#fff",
width: 77,
... |
import { Vue, Component } from 'vue-property-decorator';
class ListItem {
public static uid = 0;
public id: number = 0;
public text: string = 'item';
public isDragging: boolean = false;
public isDragEnter: boolean = false;
public constructor() {
this.id = ListItem.uid++;
}
}
const list: ListItem[] ... |
import { Component, VERSION } from '@angular/core';
@Component({
selector: 'app-footer',
template: `
<footer class="footer mb-4 mt-5">
Angular
<br/>
Yuner NI - DW2 - IIM
<br/>
Projet e-learning
</footer>
`,
styles: [
`
.footer {
line-height: 2;
text-align: ce... |
import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';
@Injectable()
export class OrderDataService {
private exportOrders:any = [];
private searchVal: Subject<string> = new Subject();
private statusVal: Subject<string> = new Subject();
private distributionVal: Subj... |
import { UsersModule } from './../users/users.module';
import { Module } from '@nestjs/common';
import { BoardGateway } from './board.gateway';
@Module({
providers: [BoardGateway],
imports: [UsersModule],
})
export class BoardModule {} |
/*
Languages codes are ISO_639-1 codes, see http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
They are written in English to avoid character encoding issues (not a perfect solution)
*/
export const LANGUAGES: string[] = [
'en',
'zh-cn',
'zh-tw'
// jhipster-needle-i18n-language-constant - JHip... |
export default {
navigationBarTitleText: 'useMap',
enableShareAppMessage: true,
}; |
import {DomSanitizer} from '@angular/platform-browser';
import { EventEmitter } from '@angular/core';
import { master } from './master';
import { Avatar } from './avatar';
export class Server {
readonly address: string;
readonly hostname: string;
readonly sortname: string;
readonly strippedname: stri... |
import {Component, Input, OnInit} from '@angular/core';
import {RouteDocument} from '../../database/types/route';
@Component({
selector: 'app-category-routes',
templateUrl: './category-routes.component.html',
styleUrls: ['./category-routes.component.scss']
})
export class CategoryRoutesComponent implements OnIni... |
import { getAddress, getCatchphrase } from '../src';
import 'jest-chain';
test('Valid IP and port', () => {
expect(getCatchphrase('192.168.0.1', 25565)).toBe('runner rally day significance');
});
test('Valid IP only', () => {
expect(getCatchphrase('192.168.0.1')).toBe('runner rally still');
});
test('IP too shor... |
import { Injectable, Inject } from '@angular/core';
import { PlatformLocation } from '@angular/common';
import { DOCUMENT } from '@angular/platform-browser';
import {fromEvent} from 'rxjs/observable/fromEvent';
export const topMargin = 16;
/**
* A service that scrolls document elements into view
*/
@Injectable()
exp... |
import { Component, OnInit } from '@angular/core';
import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { NavController, PopoverController } from '@ionic/angular';
import { isNumber } from 'lodash';
import * as ... |
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { ApiInterfaceRx } from '@polkadot/api/types';
import type { Vec } from '@polkadot/types';
import type { EventRecord, SignedBlock } from '@polkadot/types/interfa... |
/*
* 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 {visitNode} from "./visitor/visit-node";
import {TS} from "../../../../../type/ts";
import {ChildVisitResult, IncludeSourceFileOptions, ModuleMergerVisitorOptions, PayloadMap, VisitResult} from "./module-merger-visitor-options";
import {DeclarationTransformer} from "../../declaration-bundler-options";
import {ap... |
import { HttpException, HttpStatus, Injectable, Logger, NotFoundException } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { Subject, SubjectDocument } from '../schemas/subject.schema';
import { UpdateSubjectDto } from '../dto/subject/update-subject.dto';... |
import { Component,NgZone } from '@angular/core';
import { NavController ,NavParams ,Slides,Content, } from 'ionic-angular';
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';
import {Observable} from 'rxjs/Observable';
import { ViewChild } from '@angular/core';
// import { Storage } from 'ionic-f... |
import DuplicationErrorPopup from './DuplicationErrorPopup';
import Input from './LabelsInput';
import Modal from './LabelsModal';
import ManageModal from './ManageLabelsModal';
import ValidationErrorPopup from './ValidationErrorPopup';
import { sortLabels } from './common';
import type { Label as LabelType } from './t... |
import Editor from 'tinymce/core/api/Editor';
import * as Options from '../api/Options';
const addToEditor = (editor: Editor): void => {
const isEditable = (node: Element): boolean => editor.dom.getContentEditableParent(node) !== 'false';
const isImage = (node: Element): boolean => node.nodeName === 'IMG' || node... |
import Amplify from 'aws-amplify';
import { ResourceConstants } from 'graphql-transformer-common';
import { GraphQLTransform } from 'graphql-transformer-core';
import { DynamoDBModelTransformer } from 'graphql-dynamodb-transformer';
import { ModelAuthTransformer } from 'graphql-auth-transformer';
import { ModelConnecti... |
import { TestBed, inject } from "@angular/core/testing";
import { Router } from "@angular/router";
import { ExampleRoutingComponent } from "./example.routing.component";
describe('Testing routing in a component using a Stub', () => {
let component, fixture;
class RouterStub {
navigateByUrl() { }
}
before... |
import {
Table,
Schema,
RecordBatch,
FixedSizeList,
Field,
Data,
FixedSizeListVector
} from 'apache-arrow/Arrow.dom.js';
import {AbstractVector} from 'apache-arrow/vector.js';
import {getArrowType, getArrowVector} from '../../lib/arrow/arrow-type-utils.js';
import type {Mesh} from './mesh-types.js';
impor... |
import { createIcon } from '../createIcon/createIcon';
import IconItalicSizeM from './IconItalic_size_m';
import IconItalicSizeS from './IconItalic_size_s';
export const IconItalic = createIcon({
m: IconItalicSizeM,
s: IconItalicSizeS,
xs: IconItalicSizeS,
name: 'IconItalic',
}); |
import { Parser, ParsingContext } from "../../chrono";
import { Component } from "../../index";
import { AbstractParserWithWordBoundaryChecking } from "./AbstractParserWithWordBoundary";
// ISO 8601
// http://www.w3.org/TR/NOTE-datetime
// - YYYY-MM-DD
// - YYYY-MM-DDThh:mmTZD
// - YYYY-MM-DDThh:mm:ssTZD
// - YYYY-MM-... |
import React from "react";
import { useLocation } from "react-router-dom";
import { Alert, Spinner, Table } from "reactstrap";
import {
useMergedProblemMap,
useProblemModelMap,
useVirtualContestSubmissions,
} from "../../../../api/APIClient";
import { ProblemLink } from "../../../../components/ProblemLink";
impor... |
import * as React from "react";
import LoginPage, { FormData } from "../components/LoginPage";
import { UserContext } from "../index";
interface LoginViewProps {
loading: boolean;
}
const LoginView: React.StatelessComponent<LoginViewProps> = ({ loading }) => (
<UserContext.Consumer>
{({ login, user }) => {
... |
/*
* 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.
*/
export interface ClientConfigType {
slm_ui: { enabled: boolean };
} |
import { NotFoundError, UnauthorizedError } from "@relace/common";
import { Request, Response } from "express";
import { amqp } from "../events/amqp";
import { ItemDeletedPublisher } from "../events/publishers/item-deleted.publisher";
import { Item } from "../models/item";
export const deleteItemController = async (r... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DropdownWrapperComponent } from './dropdown-wrapper.component';
describe('DropdownWrapperComponent', () => {
let component: DropdownWrapperComponent;
let fixture: ComponentFixture<DropdownWrapperComponent>;
beforeEach(async () => {
... |
import * as React from "react";
import "./App.css";
//#region Type declaration
export interface AppProps { }
export interface AppState {
client: WorkItemTrackingHttpClient4_1
}
//#endregion
export class App extends React.Component<AppProps, AppState> {
constructor(props) {
super(props);
}
com... |
// Type definitions for stripe 5.0
// Project: https://github.com/stripe/stripe-node/
// Definitions by: William Johnston <https://github.com/wjohnsto>
// Peter Harris <https://github.com/codeanimal>
// Sampson Oliver <https://github.com/sampsonjoliver>
// Linus Unnebäck ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { assert } from "chai";
import * as sinon from "sinon";
import {
tracingPolicy,
createPipelineRequest,
SendRequest,
PipelineResponse,
createHttpHeaders,
RestError
} from "../src";
import {
setTracer,
NoOpTracer,
SpanCon... |
import '../../src'
import test from 'ava'
test('entries', t => t.deepEqual(
{ a: 1, b: 2, c: 3 }.entries(),
[['a', 1], ['b', 2], ['c', 3]]
)) |
import React, { useState, useMemo } from 'react'
import imageExtensions from 'image-extensions'
import isUrl from 'is-url'
import { Transforms, createEditor, Descendant } from 'slate'
import {
Slate,
Editable,
useSlateStatic,
useSelected,
useFocused,
withReact,
ReactEditor,
} from 'slate-react'
import { w... |
/**
* The Inform 6 Task provider and other task-related functions.
*/
import path = require("path")
import * as vscode from "vscode"
import { TaskManager } from "./task-manager"
export interface Inform6TaskDefinition extends vscode.TaskDefinition {
/**
* The type of an Inform 6 task is always `inform6`.
*/
... |
import { Component } from '@angular/core';
import { NavController } from '@ionic/angular';
import {DataObject} from '../classes/data-object';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
dataObject: DataObject = {
field1: 'Som... |
import { Module } from '@nestjs/common';
import { AuthModule } from 'api/auth/auth.module';
import { MoviesModule } from 'api/movies/movies.module';
import { RatingModule } from 'api/rating/rating.module';
import { UsersModule } from 'api/users/users.module';
import { ConfigModule } from 'config/config.module';
import ... |
import { ChangeDetectionStrategy } from '@angular/core';
import { OnDestroy } from '@angular/core';
import {
AfterViewInit,
Component,
EventEmitter,
Input,
Output,
} from '@angular/core';
import { Bounds } from '@api/common/bounds';
import { SubsetMapNetwork } from '@api/common/subset/subset-map-network';
imp... |
import { WorkspaceFolder } from 'vscode-languageserver'
import { Uri } from '../../types/handlers'
import { getRootUri } from '.'
export function onDidChangeWorkspaceFolders({ folders, roots, uris, urisOfIds }: { folders: WorkspaceFolder[] | null, roots: Uri[], uris: Map<string, Uri>, urisOfIds: Map<string, Uri | null... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
import { Component, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild } from '@angular/core';
import { AlertComponent, AlertType, ErrorHandlerComponent, WizardStartPagesEventParam } from 'app/shared/components';
import { SessionService } from 'core';
import { JobWizardModel, JobWizardRegistry } from './job-wi... |
import { utils, fhirdefs } from 'fsh-sushi';
import { FHIRDefinitions } from 'fsh-sushi/dist/fhirdefs';
import { LakeOfFHIR } from '../../src/processor';
import { MasterFisher } from '../../src/utils';
const RESOURCE_A_FHIR = { resourceType: 'TypeA', id: 'resource-a', name: 'ResourceA' };
const RESOURCE_A_METADATA = {... |
import React, { useState, useEffect } from "react";
import {
Button,
CircularProgress,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
TextField,
InputAdornment,
Typography
} from "@material-ui/core";
import { addLokasi } from "../util/client";
import Materi... |
export { ProgressComponent } from './progress.component'; |
import { NgModule } from '@angular/core';
import { RouterModule } from "@angular/router";
import { CommonModule } from '@angular/common';
import { FreightComponent } from './freight.component';
//
// import { BottomComponent } from '../layout/bottom/bottom.component';
// import { TopComponent } from '../layout/top/top.... |
import View, { IView } from './../views/view';
import { IFighterInfo } from './../services/fightersService';
export interface IDetailsModal extends IView {
container: HTMLDivElement;
show: (fighterInfoPromise: Promise<IFighterInfo>) => Promise<void>;
}
export default class DetailsModal extends View {
container: HT... |
import { Component, OnInit, Inject } from '@angular/core';
import {FourmServiceService} from '../service/fourm-service.service';
//import { EventEmitter } from 'protractor';
import {Forum} from '../models/forum-thread';
import { MatDialogRef,MAT_DIALOG_DATA} from '@angular/material/dialog';
import { AngularEditorConfig... |
/**
* Inserts the given line(s) after any lines encountered that match the pattern
* @param pattern Either a string that matches any part of the line or a RegExp
* @param text Either a single string or an array of strings to be inserted
*/
export function insertBefore(pattern: string|RegExp, text: string|string[]):... |
import React, { useState, useReducer } from 'react';
type Action = { type: 'INCREASE' } | { type: 'DECREASE' };
function reducer(state: number, action: Action): number {
switch (action.type) {
case 'INCREASE':
return state + 1;
case 'DECREASE':
return state - 1;
default:
throw new Erro... |
import React from 'react'
import { registerComponent, Components } from '../../../lib/vulcan-lib';
import PersonIcon from '@material-ui/icons/Person'
import HomeIcon from '@material-ui/icons/Home';
import StarIcon from '@material-ui/icons/Star';
import SubjectIcon from '@material-ui/icons/Subject';
import TagIcon from ... |
export interface Ticket {
userId: string;
app: string;
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1">
<context>
<name>AutoScrollSettings</name>
<message>
<location filename="../autoscrollsettings.ui" line="14"/>
<source>AutoScroll Settings</source>
<translation>Pengaturan AutoScroll</translation>
</message>
<m... |
/**
* @license
* Copyright Google LLC 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 {Argv, CommandModule} from 'yargs';
import {addGithubTokenOption} from '../../utils/git/github-yargs';
impor... |
/**
* ComponentA is a sample component. It belongs
* to the First SPA and uses BaseComponent
* to render self.
*/
import * as React from "react";
import { Header, Container } from "semantic-ui-react";
import { Navigation } from "./Navigation";
import { BaseComponent } from "./BaseComponent";
const Description: Rea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.