text stringlengths 10 953k |
|---|
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import isSameTree from "./isSameTree.ts";
import { createBinaryTreeNode } from "../../../datastructure/BinaryTreeNode.ts";
Deno.test("0100. Same Tree", () => {
assertEquals(
isSameTree(
createBinaryTreeNode([1, 2, 3]),
createBin... |
import { NgModule } from "@angular/core";
import { Routes } from "@angular/router";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { AwayComponent } from "./away/away.component";
import { HomeComponent } from "./home/home.component";
import { MatchupComponent } from "./matchup/matchup.c... |
export enum Role {
USER = "User",
ADMIN = "Admin",
VOLUNTEER = "Volunteer",
DONOR = "Donor",
}
export enum Status {
APPROVED = "Approved",
PENDING = "Pending",
REJECTED = "Rejected",
}
export enum DayPart {
EARLY_MORNING = "Early Morning (12am - 6am)",
MORNING = "Morning (6am - 11am)",
AFTERNOON =... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RegionListComponent } from './region-list.component';
describe('RegionListComponent', () => {
let component: RegionListComponent;
let fixture: ComponentFixture<RegionListComponent>;
beforeEach(async(() => {
TestBed.configure... |
import { Component,OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { UserService } from './../../../../services/User.service';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { Topic } from 'src/app/models/Topic';
import { TopicService } from '... |
import axios from 'axios';
const API_HOST = 'https://reqres.in/api/users';
const getUserInfoList = ({page}) =>
axios.get(API_HOST, {
params: {
page,
per_page: 3
}});
export default {
getUserInfoList
}; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About NavCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... |
import { create, destroy, findAllbyID, update } from ".";
import { UserService } from "../../services";
import { IUserFacade } from "./interface";
/**
* @export
* @implements {IUserModelService}
*/
const UserFacade: IUserFacade = {
/**
* @returns {Promise < any[] >}
* @memberof UserFacade
*/
... |
import {Injectable} from "@angular/core";
import {HttpClient} from "@angular/common/http";
@Injectable()
export class OfficesRoomService {
baseUrl = "http://localhost:8080/";
constructor(private httpClient: HttpClient) {
}
getOfficesRoomsByFloorId(floorId){
return this.httpClient.get(this.ba... |
import { CreateDestinationInput } from './create-destination.input';
import { InputType, Field, Int, PartialType } from '@nestjs/graphql';
@InputType()
export class UpdateDestinationInput extends PartialType(CreateDestinationInput) {
@Field(() => Int)
id: number;
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DndListDirective, ElementChord } from './dnd-list.directive';
import { Component, ViewChild } from '@angular/core';
import { DndContainerDirective } from '../dnd-container/dnd-container.directive';
import { DragDropModule } from '@angula... |
import { CompilerInterface, ComponentInterface } from "../lib/types.ts";
import { Storage } from "../lib/utils.ts";
import _def from "../lib/defaults.ts";
import { fs } from "../lib/deps.ts";
/**
* #region Compiler
* (3/3) in bundling cycle
* Compiler writes component instances to build file
* and writes styling t... |
import * as React from 'react';
import { XGrid, useGridApiRef } from '@material-ui/x-grid';
import Alert from '@material-ui/lab/Alert';
import { useDemoData } from '@material-ui/x-grid-data-generator';
export default function SubscribeToEvents() {
const apiRef = useGridApiRef();
const [message, setMessage] = React... |
import { deepAssign } from '../../utils';
import { Plot } from '../../core/plot';
import { Adaptor } from '../../core/adaptor';
import { StockOptions } from './types';
import { adaptor } from './adaptor';
import { getStockData } from './utils';
import { DEFAULT_TOOLTIP_OPTIONS, TREND_FIELD } from './constant';
export... |
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { WidgetBFirstRouteComponent } from './widget-b-first-route.component';
describe('WidgetBFirstRouteComponent', () => {
let component: WidgetBFirstRouteComponent;
let fixture: ComponentFixture<WidgetBFirstRouteComponent>;
be... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* @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
*/
export * from './toolbar/index';
//# sourceMappingURL=toolbar.d.ts.map |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import { EventEmitter } from 'events'
import { EmberTypes } from '../types/src/lawo'
// @ts-ignore import json file
const mockData = require('./lawo-out.json')
export class Node {
node: any
constructor (_path: string) {
this.node = mockData.elements[0]
const path = _path.split('.')
path.shift()
while (path... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'quote-generator';
} |
/**
* @license
* Copyright 2020 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 { Address } from './address';
import { Company } from './company';
export interface User {
id: number;
name: string;
username: string;
email: string;
address: Address
phone: string;
website: string;
company: Company;
} |
import { Body, Controller, Delete, Get, Param, Post, Put, UseGuards } from '@nestjs/common';
import { JwtAuthGuard } from 'src/auth/jwt-auth.guard';
import { CreateAdressDto } from 'src/dtos/adress/adress.dto';
import { UpdateAdressDto } from 'src/dtos/adress/adress.update.dto';
import { AdressService } from 'src/servi... |
import { __styles } from '@griffel/react';
export const useStyles = __styles(
{
root: {},
},
{},
); |
/**
* Copyright© 2018, Oracle and/or its affiliates. All rights reserved.
*/
import {IBotsSDKMessageAction} from "./action.interface";
/**
* A link action will open the provided URI when tapped.
*/
interface BotsSDKLinkMessageAction extends IBotsSDKMessageAction{
/**
* The action URI. This is the link t... |
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// 允许跨域
app.enableCors();
const options = new DocumentBuilder()
.setTitle('... |
import { KodeverkResponse } from '../../models/kodeverk';
const mockKodeverk = [
{ kodeRef: 'COL', beskrivelse: 'COLOMBIA' },
{ kodeRef: 'USA', beskrivelse: 'USA' },
{ kodeRef: 'ESP', beskrivelse: 'SPANIA' },
{ kodeRef: 'LVS', beskrivelse: 'LANGTVEKKISTAN' },
{ kodeRef: 'BMU', beskrivelse: 'BERMUDA... |
import path from "path";
import fs from "fs-extra";
import process from "process";
import addDirectory from "../../../src/add/addDirectory";
beforeAll(() => process.chdir(__dirname));
test(`Adding new directory`, async () => {
const resultant = path.resolve("nirikshak/student");
await addDirectory("student", "... |
import { models } from '../db-connection'
export interface context {
res: Express.Response
req: Express.Request
models: models
}
export const context = ({ res, req }: { res: Express.Response, req: Express.Request }) => ({
res,
req,
models
}) |
import {Solar} from './Solar';
import {LunarUtil} from './LunarUtil';
export class JieQi {
private _name: string;
private _solar: Solar;
private _jie: boolean;
private _qi: boolean;
constructor(name: string, solar: Solar) {
let jie = false, qi = false, i, j;
for (i = 0, j = LunarUt... |
const ctx: any = self as any;
var tmpStableArr:any[] = new Array(20);
function Uint8ArrayToString(fileData:any){
var dataString = "";
for (var i = 0; i < fileData.length; i++) {
dataString += String.fromCharCode(fileData[i]);
}
return dataString;
}
function getWeighing(data:any){
return Uint8A... |
export enum GameObjectTypeEnum {
Spider = "spider",
Arrow = "arrow",
} |
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/require-await */
/* eslint-disable @typescript-eslint/no-unused-vars */
import { expect } from "chai";
import { Request, Response } from "express";
import { m... |
import * as React from "react";
import { mount, ReactWrapper } from "enzyme";
import { matchers } from "@emotion/jest";
expect.extend(matchers);
import PacmanLoader from "../src/PacmanLoader";
import { sizeMarginDefaults } from "../src/helpers";
import { commonSpecs, cssSpecs, lengthSpecs, speedMultiplierSpecs } from ... |
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'my-app-v7';
} |
import { TestExtension } from '@remirror/test-fixtures';
import { transformExtensionMap } from '../extension-manager.helpers';
import { DocExtension, TextExtension } from '../nodes';
describe('transformExtensionMap', () => {
it('maps the extensions', () => {
const doc = new DocExtension();
const test = new T... |
import {
Controller,
Get,
Param,
Post,
Body,
Put,
Delete,
ParseIntPipe,
} from '@nestjs/common';
import { CustomersService } from '../services/customers.service';
import { CreateCustomerDto, UpdateCustomerDto } from '../dtos/customer.dto';
@Controller('customers')
export class CustomerController {
c... |
import {
ServerlessApplicationRepositoryClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../ServerlessApplicationRepositoryClient";
import { CreateApplicationVersionRequest, CreateApplicationVersionResponse } from "../models/models_0";
import {
deserializeAws_restJson1CreateApplicationVersio... |
import { InitiativesView } from "@views";
import { graphql } from "gatsby";
import React from "react";
import { Helmet } from "react-helmet";
const InitiativesPage: React.FC<{ data: any }> = ({ data }) => {
return (
<>
<Helmet title="Initiatives" />
<InitiativesView data={data.allDatoCmsArticle.nodes... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SearchVendorComponent } from './search-vendor.component';
describe('SearchVendorComponent', () => {
let component: SearchVendorComponent;
let fixture: ComponentFixture<SearchVendorComponent>;
beforeEach(async () => {
await TestBed.... |
import {DynamicModule, HttpModule, Module} from '@nestjs/common';
import _ from 'lodash';
import {ConsoleModuleAsyncOptions, ConsoleModuleOptions, DEFAULT_OPTIONS} from "./console.types";
import {WebConsoleControllerFactory} from "./controllers/web.console.controller";
import {ALL_COMMANDS} from "./services/all.command... |
import { Request, Response, NextFunction } from "express";
import onHeaders from "on-headers";
import { statistics } from "../utils";
import moment from "moment";
export const log = () => (req: Request, res: Response, next: NextFunction) => {
statistics[req.method] = statistics[req.method] || [];
function logRequ... |
import * as vscode from 'vscode';
import { AvatarManager } from './avatarManager';
import { CommandManager } from './commands';
import { getConfig } from './config';
import { DataSource } from './dataSource';
import { DiffDocProvider } from './diffDocProvider';
import { EventEmitter } from './event';
import { Extension... |
import {Injectable} from '@angular/core';
import {BeginLoadingEventEmmiter, EndLoadingEventEmmiter} from '../domain/emitters';
@Injectable({
providedIn: 'root'
})
export class LoadingService {
beginLoading: BeginLoadingEventEmmiter;
endLoading: EndLoadingEventEmmiter;
public blocked = false;
constru... |
/**
* Database Service API
* The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see [Overview of the Database Service](/iaas/Content/Database/Concepts/databaseoverview.htm).
* OpenAPI spec version: 20160918
* Contact: sic_dbaas_cp_us_grp@oracl... |
import { Component, OnInit,Input, OnDestroy } from '@angular/core';
import { NbDialogRef } from '@nebular/theme';
declare let layui;
declare let $;
@Component({
selector: 'ngx-expired-token',
templateUrl: './expired-token.component.html',
styleUrls: ['./expired-token.component.scss']
})
export class ExpiredTok... |
import { ClientSideBaseVisitor, ClientSideBasePluginConfig, getConfigValue, LoadedFragment, DocumentMode } from '@graphql-codegen/visitor-plugin-common';
import { VueApolloRawPluginConfig } from './index';
import autoBind from 'auto-bind';
import { OperationDefinitionNode } from 'graphql';
import { Types } from '@graph... |
/// <reference types="node" />
import { RtcpPacket, RtcpPacketType } from './';
/**
* ```ts
* import { ByePacket } from 'rtp.js';
* ```
*
* Representation of a RTCP Bye packet.
*/
export declare class ByePacket extends RtcpPacket {
static packetType: RtcpPacketType;
private readonly ssrcs;
private rea... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------------------------------------------------... |
import { Test, TestingModule } from '@nestjs/testing';
import { createRequest, createResponse } from 'node-mocks-http';
import { MockOidcService, MOCK_REQUEST } from '../mocks';
import { OidcService } from '../services';
import { AuthMultitenantController } from './auth-multitenant.controller';
describe('AuthMultitena... |
import {NgModule} from '@angular/core';
import {PureTaskListComponent} from './pure-task-list.component';
import {TaskListComponent} from './task-list.component';
import {TaskComponent} from './task.component';
import {CommonModule} from '@angular/common';
import {NgxsModule} from '@ngxs/store';
import {TasksState} fro... |
import React, { useCallback, useEffect } from "react";
import { View, StyleSheet, Dimensions } from "react-native";
import Animated, {
useAnimatedStyle,
useSharedValue,
} from "react-native-reanimated";
import Logo, { LOGO_WIDTH, LOGO_HEIGHT } from "./Logo";
import { withBouncing } from "./withBouncing";
const { ... |
import { Transaction as EthTx, TxData } from 'ethereumjs-tx';
import { addHexPrefix, toBuffer, hashPersonalMessage } from 'ethereumjs-util';
import mapValues from 'lodash/mapValues';
import { translateRaw } from '@translations';
import { getTransactionFields } from '@services/EthService';
import { stripHexPrefixAndLow... |
import jwtDecode from "jwt-decode";
import * as React from "react";
import { Dimensions, View } from "react-native";
import { WebView } from "react-native-webview";
import { connect } from "react-redux";
import { useState } from "react";
import { analytics } from "@/common/analytics";
import { getEndpoint, headers } fr... |
import Moveable from "react-moveable";
export default Moveable;
export * from "react-moveable"; |
import {_PartList} from './_PartList';
import {Structure as _Structure_} from '@aws-sdk/types';
export const ListPartsOutput: _Structure_ = {
type: 'structure',
required: [],
members: {
MultipartUploadId: {
shape: {
type: 'string',
},
},
Vault... |
import webpack from 'webpack';
import merge from 'webpack-merge';
import base from './webpack.config.base';
import { name } from '../../src/constants/egg';
const egg: webpack.Configuration = {
entry: {
[name]: './src/egg.ts'
}
};
const config = merge(base, egg);
export default config; |
import type { Content } from "pdfmake/interfaces";
export interface IHtmlHelper {
fulfillsSchema(node: Element): boolean;
getStyle(node: ChildNode): Partial<Content>;
} |
import { GenericPhoto, Language } from '../../shared/models';
import {
getDom,
removeSpacesString,
getListElement,
$Query,
getTextContent
} from '../../shared/utils/elements.dom';
import { Voices } from '../models';
import { Quotes } from '../models/Quotes';
export async function getNameAndPhotoTable(
docu... |
import { StyleConfig } from "@chakra-ui/theme-tools";
export const Checkbox: StyleConfig = {
baseStyle: {
_focus: {
outlineWidth: 2,
outlineColor: "cyan.400",
},
},
variants: {
filled: {
control: {
_checked: {
b... |
import fs from 'fs';
import { exec } from "../../helpers/utils/exec";
import AutheliaServer from "../../helpers/context/AutheliaServer";
import DockerEnvironment from "../../helpers/context/DockerEnvironment";
const autheliaServer = new AutheliaServer(__dirname + '/config.yml', [__dirname + '/users_database.yml']);
co... |
import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" {...props}>
<path d="M636.3 367.6c-5.566-9.406-16.14-14.16-26.78-12.09-43.04 8.25-87.01-3.094-120.7-31.09-33.71-28.03-53.02-69.28-53.02-113.2... |
import { PermissionsStore, aclTypeValues } from './PermissionsStore';
import { backendSrv } from 'test/mocks/common';
describe('PermissionsStore', () => {
let store;
beforeEach(() => {
backendSrv.get.mockReturnValue(
Promise.resolve([
{ id: 2, dashboardId: 1, role: 'Viewer', permission: 1, permi... |
class FabricMultiSelect extends HTMLElement {
private _refs: { [index: string]: any };
private _disabled: boolean = false;
private _required: boolean = false;
private _value: any[];
private _options: any[];
private _label: string = '';
constructor() {
super();
this._refs = {};
this._value ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
Component,
EventEmitter,
Input,
OnChanges,
OnDestroy,
Output,
SimpleChange,
SimpleChanges,
ViewChild
} from '@angular/core';
import { GeolocateService } from '@app/services/geolocate/geolocate.service';
import { Observable, Subscription } from 'rxjs';
import {
PopoverController,
AlertCont... |
import { InsightDashboard, InsightDashboardOwner, InsightsDashboardType } from './core'
/**
* Derived dashboard from the setting cascade subject.
*/
export interface BuiltInInsightDashboard extends InsightDashboard {
/**
* Property to distinguish between real user-created dashboards and
* built-in dash... |
import React from 'react'
import { View } from 'react-native'
import { useStyles } from '../../../theme'
import { shameStyles } from '../../../theme/shame-styles'
import { Modal } from '../../base/Modal/Modal'
import { Header } from './Header/Header'
import { FooterProps, Footer } from './Footer/Footer'
import { Sectio... |
/**
* Picker.tsx
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* Web-specific implementation of the cross-platform Select abstraction.
*/
import _ = require('./utils/lodashMini');
import React = require('react');
import RX = require('../common/Interfaces');
import ... |
export * from "./adapter";
export * from "./adapters";
export * from "./binder";
export * from "./binder.wrapper";
export * from "./binders";
export * from "./binding";
export * from "./binding";
export * from "./components";
export * from "./formatter";
export * from "./formatters";
export * from "./module-element-typ... |
type DescriptionDictionary = { [key: string]: string | undefined };
type EnvironmentDictionary = { [key: string]: string[] | undefined };
type RoomDictionary = { [key: string]: string[] | undefined };
type SkillManagerSkillName = keyof SkillManagerSkills['class'] | keyof SkillManagerSkills['general'] | keyof SkillManag... |
import { Component, OnInit,Inject,ViewContainerRef ,OnDestroy} from '@angular/core';
import {FormGroup, FormControl, Validators,FormBuilder} from '@angular/forms';
import {Router} from '@angular/router';
import {loginDetails} from './loginDetails';
import {registerDetails} from './registerDetails';
import {LoginService... |
import { ExtensionContext, languages } from 'vscode';
import { AngularDefinitionProvider } from './AngularDefinitionProvider';
import { AngularSelectorReferenceProvider } from './AngularSelectorReferenceProvider';
export function activate(context: ExtensionContext): void {
context.subscriptions.push(
langu... |
export enum nodeEnv {
production = 'production',
development = 'development',
}
interface EnvVar {
port: number
nodeEnv: keyof nodeEnv
dbKey: string
secretSR: string
iv: string
}
export default (): EnvVar => ({
nodeEnv: process.env.NODE_ENV as keyof nodeEnv,
port: Number(process.env.PORT),
dbKey: ... |
/**
* @file BrowserChrome 浏览器-chrome
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper('browser-chrome', (props: ISvgIconProps) => (
'<?xml version="1.0" encoding="UTF-8"?>... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SettingRoutingModule } from './setting-routing.module';
import { MatTabsModule } from '@angular/material/tabs';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { FontAwesomeModule } from '@forta... |
/**
* Copyright 2020 City of Los Angeles
*
* 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 a... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BusyIndicatorModule } from '../../../busy-indicator/busy-indicator.module';
import { CarouselItemDirective } from './carousel-item.directive';
import { CarouselDirective } from './carousel.directive';
import { CarouselCom... |
/**
* @license
* 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 a... |
declare module "*.gif";
declare module "*.png"; |
import * as nock from 'nock';
import { GitSource, BranchList, RepoFileList, BuildType, RepoLanguageList } from '../../types';
import { GithubService } from '../github-service';
import { DockerFileParser } from '../../utils';
describe('Github Service', () => {
const nockBack = nock.back;
nockBack.setMode('record');... |
import React from 'react';
import { Card, CardContent, Typography } from '@material-ui/core';
import ButtonMST from "../../common/buttons/ButtonMST";
import TextFieldMST from "../../common/strings/TextFieldMST";
const PlayerWidget = (props:any) => {
return (
<Card style={{ height: "100%" }}>
<C... |
import { IVwUserObj, IDTextViewModel, DataServiceProxy } from 'app/_services/service-proxies';
import { AuthenticationService } from 'app/_services/authentication.service';
import { ActivatedRoute } from '@angular/router';
import { Router } from '@angular/router';
import { RecruitmentJobApplicationServiceProxy, Recruit... |
import { Test, TestingModule } from '@nestjs/testing';
import { GitlabService } from './gitlab.service';
import { HttpModule } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
describe('GitlabService', () => {
let service: GitlabService;
beforeEach(async () => {
const module: TestingModu... |
/**
* Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { ValueCell } from '../../../mol-util';
import { GeometryUtils } from '../geometry';
import { ParamDefinition as PD } from '../../../mol-util/param... |
import { NunjucksNode } from './nunjucksNode';
import { NunjucksSymbol } from './nunjucksSymbol';
import { NunjucksNodeList } from './nunjucksNodeList';
export class Macro extends NunjucksNode {
get typename(): string {
return 'Macro';
}
public name: NunjucksSymbol;
public args: NunjucksNodeList;
publ... |
import { Path } from '@naripok/slate'
export const input = {
path: [0],
another: [0, 1],
}
export const test = ({ path, another }) => {
return Path.endsAfter(path, another)
}
export const output = false |
import { observable } from 'mobx';
import EditorNode, { IEditorNodePos } from './EditorNode';
import { Range } from 'vs/editor/common/core/range';
export default class EditorNodeAttr {
@observable valueLabel: string;
@observable name: string;
@observable path: string;
@observable start: IEditorNodePos = {
line: ... |
export * from "./services/index.js";
export * from "./binders/index.js";
export * from "./components/index.js";
// export * as formatters from './formatters/bs4.formatters';
export * from "./interfaces/index.js";
// export * from './interfaces/interfaces';
export * from "./constants/index.js";
export { bs4Module } from... |
import {
Component,
ComponentInterface,
Element,
Event,
EventEmitter,
h,
Listen,
Method,
Prop,
State,
Watch,
} from '@stencil/core';
import { isString } from '../../../utils/unit';
import { appendParamsToURL, Params, preconnect } from '../../../utils/network';
import { LazyLoader } from '../player... |
/**
* This file is autogenerated by `createschema billing.BillingIntegration name:Text;`
* In most cases you should not change it by hands. And please don't remove `AUTOGENERATE MARKER`s
*/
export * as BillingIntegration from './BillingIntegration'
export * as BillingIntegrationAccessRight from './BillingIntegratio... |
import { CosmosClient } from '@azure/cosmos';
import {Command, Flags} from '@oclif/core'
import { Utils } from '../utils';
// https://docs.microsoft.com/en-us/azure/cosmos-db/sql/create-sql-api-nodejs
export default class Add extends Command {
static description = 'describe the command here'
static examples = [
... |
/*
* 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 { gql } from '@apollo/client';
export const kpiHostsSchema = gql`
t... |
import MetadataFiles from "../../metadata/metadataFiles";
import * as xml2js from "xml2js";
import * as path from "path";
import * as fs from "fs-extra";
import * as rimraf from "rimraf";
import {
SOURCE_EXTENSION_REGEX,
MetadataInfo,
METADATA_INFO,
UNSPLITED_METADATA,
PROFILE_PERMISSIONSET_EXTENSION
} from ... |
import { User } from './../_models/user';
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from 'src/environments/environment';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
@Injectable({ providedIn: 'root' })
export clas... |
import {DOCUMENT} from '@angular/common';
import {
ApplicationRef,
ComponentFactoryResolver,
ComponentRef,
EventEmitter,
Inject,
Injectable,
Injector,
NgZone,
RendererFactory2,
TemplateRef
} from '@angular/core';
import {Subject} from 'rxjs';
import { usaFocusTrap } from '../util/focus-trap';
impor... |
// Type definitions for psl 1.8
// Project: https://github.com/wrangr/psl#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Maetes <https://github.com/Maetes>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export as namespace ... |
import { BasicColumn, FormSchema } from '/@/components/Table';
import { h } from 'vue';
import { Switch } from 'ant-design-vue';
import { setRoleStatus } from '/@/api/system/role/Api';
import { useMessage } from '/@/hooks/web/useMessage';
const colProps = {
span: 24,
};
export const columns: BasicColumn[] = [
{
... |
import moment from 'moment';
import { OengusConnection, OengusRunLine, OengusSchedule } from 'oengus-api';
import React, { ReactFragment } from 'react';
import styles from './scheduleImportTable.mod.css';
type Props = {
schedule: OengusSchedule;
};
export const ScheduleImportTable = ({ schedule }: Props) => {
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.