text
stringlengths
10
953k
/* eslint @typescript-eslint/explicit-module-boundary-types: 0 */ import clone from "lodash.clonedeep"; import { strIndexesOfPlus } from "str-indexes-of-plus"; import { isMatch } from "matcher"; import isObj from "lodash.isplainobject"; import { flattenObject, flattenArr, arrayiffyString, Obj, defaults, Op...
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { System } from '../../../models/system'; import { ModalHelperService } from '../../../services/modal-helper.service'; import { ApproverAddIssueComponent } from '../../approver-add-issue/approver-add-issue.component'; import { Approv...
import { Component, OnInit, OnDestroy, TemplateRef, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { TitleCasePipe } from '@angular/common'; import { Subscription } from 'rxjs/Subscription'; import { Observable } from 'rxjs/Observable'; import { Supergiant } from '../../shared/superg...
import { Module } from '@nestjs/common'; import { ConfigService } from './config.service'; @Module({ providers: [ { provide: ConfigService, useValue: new ConfigService('.env'), }, ], exports: [ConfigService], }) export class ConfigModule { }
interface WebKitDirectoryEntry extends WebKitEntry { createReader(): WebKitDirectoryReader; } interface WebKitDirectoryReader { readEntries(successCallback: WebKitEntriesCallback, errorCallback?: WebKitErrorCallback): void; } interface WebKitEntry { readonly filesystem: WebKitFileSystem; readonly full...
#!/usr/bin/env node import sade from 'sade'; import glob from 'tiny-glob/sync'; import { rollup, watch, RollupOptions, OutputOptions, RollupWatchOptions, WatcherOptions, } from 'rollup'; import asyncro from 'asyncro'; import chalk from 'chalk'; import * as fs from 'fs-extra'; import jest from 'jest'; impor...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import React from "react"; import { ReactWrapper, mount } from "enzyme"; import { AssetPreview, IAssetPreviewProps, IAssetPreviewState } from "./assetPreview"; import MockFactory from "../../../../common/mockFactory"; import { ImageAsset } from...
/* eslint no-unused-vars: 0 */ /* eslint no-undef: 0 */ // This file will be passed to the TypeScript CLI to verify our typings compile import * as fastify from '../../fastify' import * as http from 'http' import * as http2 from 'http2' import { readFileSync } from 'fs' // were importing cors using require, which cau...
import { Injectable } from '@angular/core'; import { AtanetHttpService } from './atanet-http.service'; import { CreatedResult } from '../model'; import { Comment } from '../model/comment.model'; @Injectable() export class CommentHttpService { constructor(private httpService: AtanetHttpService) { } public async a...
import { HttpClient, HttpHandler } from '@angular/common/http'; import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { ConfigService } from '../services/config.service'; import { FormResolver } from './form.resolver'; describe('FormResolver', () => { ...
import { TimeSeriesRangeResult } from "./TimeSeriesRangeResult"; export class TimeSeriesDetails { public id: string; public values: Map<string, TimeSeriesRangeResult[]>; }
export class Dialog { id?: number; name: string; ordering?: number; firstLine?: number; }
import { UseInterceptors } from '@nestjs/common'; import { SubscribeMessage, WebSocketGateway } from '@nestjs/websockets'; import { from, Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { RedisPropagatorInterceptor } from '@app/shared/redis-propagator/redis-propagator.interceptor'; @UseIntercep...
import {Node} from './Node' /** * 整个doc生成的树 */ export class Tree{ /** * 根节点 */ root: Node /** * 当前解析的节点 * @type {Node} * @memberof Tree */ currentNode: Node constructor(root){ this.root = root; root.Tree = this; this.currentNode = this.root...
import { ContextDataDaily, ContextDataHourly } from "./DataProvider"; import { DailyMetricsData, HourlyMetricsData } from "../api/canistergeek.did"; export declare type LatestSignificantHourlyValue = { value: number; metricIntervalIndex: number; }; export declare const DataProviderUtils: { getHourlyValueFor...
<TS language="es_CL" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Haga clic para editar la dirección o etiqueta</translation> </message> <message> <source>Create a new address</source> <...
import { Module } from "@nestjs/common"; import { TypeOrmModule } from "@nestjs/typeorm"; import { ProfileController } from "@app/profile/profile.controller"; import { ProfileService } from "@app/profile/profile.service"; import { UserEntity } from "@app/user/entities/user.entity"; import { FollowEntity } from "@app/p...
'use strict'; export class ContainerConfig { static addSource(patterns: string | Array<string>, baseDir?: string) { const requireGlob = require('require-glob'); baseDir = baseDir || process.cwd(); requireGlob.sync(patterns, { cwd: baseDir }); } }
import {assert} from "@sirian/assert"; import {XMap} from "@sirian/common"; import {memoize} from "@sirian/decorators"; import * as Scalars from "../../../Scalars"; import { InputType, IPropertyReference, ITypeEnum, ITypeObject, OutputType, PropertyKind, PropertyType, TYPE, TypeKind,...
import { inspect } from 'util'; import { Configuration, QueryHelper, Utils } from './utils'; import { AssignOptions, EntityAssigner, EntityFactory, EntityLoader, EntityRepository, EntityValidator, IdentifiedReference, Reference } from './entity'; import { UnitOfWork } from './unit-of-work'; import { CountOptions, Dele...
import React, { useEffect, useCallback, useState } from 'react' import { Card, Typography, Spin } from 'antd' import { Auth, Browser, Tasks } from '.' import { useSelector, useDispatch } from "react-redux" import { useRemote, useEvent } from '../../hooks' import { State } from '../../types' import { selectChallenge, un...
import { AddressModel } from './address.model'; export interface CustomerModel { /** * Nome do Comprador. */ name?: string; /** * Status de cadastro do comprador na loja (NEW / EXISTING) */ status?: string; /** * Número do RG, CPF ou CNPJ do Cliente. */ identity?: string; /** * Tipo...
// Copyright 2019-2021 @polkadot/extension-ui authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { ThemeProps } from '../../types'; import React, { useCallback, useEffect, useState } from 'react'; import styled from 'styled-components'; import { AuthUrlInfo, AuthUrls } from '@polkadot/extensio...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { PostmanTestingComponent } from './postman-testing.component'; describe('PostmanTestingComponent', () => { let component: PostmanTestingComponent; let fixture: ComponentFixture<PostmanTestingComponent>; beforeEach(async(() => { ...
declare var require: any; import * as Promise from "bluebird"; (window as any).Promise = Promise; const PouchDB = require("pouchdb"); require('pouchdb/extras/memory'); (Promise as any).config({ // Enables all warnings except forgotten return statements. warnings: { wForgottenReturn: false } }); l...
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import { GetConsoleOutputRequest, GetConsoleOutputResult } from "../models/models_3"; import { deserializeAws_ec2GetConsoleOutputCommand, serializeAws_ec2GetConsoleOutputCommand, } from "../protocols/Aws_ec2"; import { ge...
/* Forked from react-virtualized 💖 */ import {ALIGNMENT, ALIGN_START, ALIGN_END, ALIGN_CENTER} from './constants'; export type ItemSizeGetter = (index: number) => number; export type ItemSize = number | number[] | ItemSizeGetter; export interface SizeAndPosition { size: number, offset: number, } interface SizeA...
import { Schema } from 'mongoose'; export const AdminSchema = new Schema({ username: { type: String }, password: { type: String }, role: { type: String, default: 'ADMIN' } }, { collection: 'admin', timestamps: true })
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { Context } from "mocha"; import * as dotenv from "dotenv"; import * as path from "path"; import { env, Recorder, record, RecorderEnvironmentSetup } from "@azure/test-utils-recorder"; import { TokenCredential, ClientSecretCredential } f...
import { isUndefined } from 'tsfn' import type { TServiceConfig } from '../types' // https://docs.snap-ci.com/environment-variables/ export default (env: NodeJS.ProcessEnv): TServiceConfig => { if (isUndefined(env.SNAP_CI)) { return null } return { service: 'snap', build: env.SNAP_PIPELINE_COUNTER, ...
import Registry from "winreg"; const DLLHandler = { getDLLPath: async (): Promise<any> => { const regKey = new Registry({ hive: Registry.HKLM, key: "\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\VB:Voicemeeter {17359A74-1236-5467}", }); return new Promise((resolve) => { regKey...
// Copyright 2017-2021 @godechain/app-contracts authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { RawParams } from '@godechain/react-params/types'; import type { Registry, TypeDef } from '@godechain/types/types'; import React, { useCallback, useEffect, useState } from 'react'; import UIPara...
import { AppState, PresetInfo, Preset } from '../../models' export interface PresetDetailProps { appState: AppState onRefreshAll: () => void onViewCourse: (code: string) => void onDeleteCourse: (code: string) => void onEditPreset: (preset: PresetInfo) => void onExportPreset: (preset: Preset) => void }
///<reference path="core/Base.d.ts" /> ///<reference path="core/Cache.d.ts" /> ///<reference path="Texture2D.d.ts" /> ///<reference path="TextureCube.d.ts" /> ///<reference path="Renderer.d.ts" /> declare module qtek { export class FrameBuffer { depthBuffer: boolean; cache: core.Cache; b...
import glob from 'glob' import fs from 'fs-extra' import cheerio from 'cheerio' import { join } from 'path' import { createNext, FileRef } from 'e2e-utils' import { NextInstance } from 'test/lib/next-modes/base' import { check, fetchViaHTTP, findPort, initNextServerScript, killApp, renderViaHTTP, } from 'ne...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { Item } from '../../../../core/shared/item.model'; import { TranslateModule } from '@ngx-translate/core'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { NO_ERRORS_SCHEMA } from '@angular/core'...
/** * Copyright (c) 2019, 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 { User } from "discord.js"; import { Op, cast, col, where } from "sequelize"; import { HSBAutocompleteInteraction } from "../../../../../discordjs-overrides"; import { CommandLog } from "../../../../../orm/commandLog"; export default async function beforeAutocomplete( interaction: HSBAutocompleteInteraction ...
/** * @public */ import { WeaverProfile } from '../weaver'; // eslint-disable-next-line @typescript-eslint/ban-types export type AspectType = object & { onEnable?: (weaver: WeaverProfile) => void; onDisable?: (weaver: WeaverProfile) => void; };
// *** 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"; /*...
export const data = { label: 'stuff', children: [ { label: 'Item 1', route: '/foo', children: [ { label: 'Child 1', route: '/lorem', children: [ { label: 'Grandchild 1', route: '/sit' }, { ...
import { Breakpoints } from './createBreakpoints'; import { Spacing } from './createSpacing'; import { CSSProperties } from './withStyles'; export interface Mixins { gutters: (styles?: CSSProperties) => CSSProperties; toolbar: CSSProperties; // ... use interface declaration merging to add custom mixins } export...
import * as core from '@actions/core' import * as dd from './datadog' import * as yaml from 'js-yaml' export async function run(): Promise<void> { try { const apiKey: string = core.getInput('api-key', {required: true}) const apiURL: string = core.getInput('api-url') || 'https://api.datadoghq.com' ...
import { ValidationPipe } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { DocumentBuilder } from '@nestjs/swagger/dist/document-builder'; import { SwaggerModule } from '@nestjs/swagger/dist/swagger-module'; import { AppModule } from './app.module'; import { AuthGuard } from './common/guards/...
import * as React from 'react'; import { SemanticShorthandCollection, SemanticShorthandContent, SemanticWIDTHS } from '../..'; import { StepProps } from './Step'; export interface StepGroupProps { [key: string]: any; /** An element type to render as (string or function). */ as?: any; /** Steps can be attach...
import { shallow } from 'enzyme'; import { shallowToJson } from 'enzyme-to-json'; import * as React from 'react'; import Toast from '../'; import { Status } from '../types'; import props from './__mocks__/toast.mock'; describe('<Toast />', () => { it('should render with default props', () => { const wrapper = sh...
import { CCClass } from '../../../../core/data'; import { ccclass, property } from '../../../../core/data/class-decorator'; import { pseudoRandom, quat, vec3 } from '../../../../core/vmath'; import { calculateTransform, Space } from '../particle-general-function'; import CurveRange from './curve-range'; // tslint:disa...
import { ApiProperty } from '@nestjs/swagger'; import { IsNumberString, IsOptional, IsString } from 'class-validator'; export class UserQuery { @ApiProperty({ required: false }) @IsOptional() @IsString() _id?: string; @ApiProperty({ required: false }) @IsOptional() @IsString() name?: string; @ApiPr...
// For Library Version: 1.102.0 declare module "sap/ui/rta/api/startAdaptation" { import Control from "sap/ui/core/Control"; import UIComponent from "sap/ui/core/UIComponent"; /** * @SINCE 1.83 * @EXPERIMENTAL (since 1.83) * * Starts UI adaptation, initiated for an application at the passed root co...
// Copyright 2018-2021 Polyaxon, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
import { $$ } from '../../utils/Dom'; import { Logger } from '../../misc/Logger'; import { QueryEvents } from '../../events/QueryEvents'; import { every, find } from 'underscore'; import { get } from '../Base/RegisteredNamedMethods'; export interface IAutoLayoutAdjustableInsideFacetColumn { isCurrentlyDisplayed: () ...
import * as React from "react"; import styled from "@emotion/styled"; import FadeInEnteringCard from "@/components/Atom/FadeInEnteringCard"; import PictureBlock from "@/components/Molecule/PictureBlock"; const StyledFadeInEnteringCard = styled(FadeInEnteringCard)` margin-top: 50px; margin-bottom: 30px; `; const T...
import { Injectable } from '@angular/core'; import { Game } from '@models'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class GamesService { private static readonly getGamesUrl = "/games"; getData(): Observable<Game[]> { ...
import { AutoIDGenerator } from "./model"; export function save_generateIDMiddleware(idField: string, tableName) { return async function() { const modelInstance = this.model(AutoIDGenerator.name); try { const tableInfo = await modelInstance.findOneAndUpdate({ table_name:...
import React from 'react'; import { Icon, IconProps } from '../base-icon'; export const PenFancyIcon = (props: IconProps) => ( <Icon name='pen fancy icon' viewBox='0 0 512 512' {...props}> <path d='M79.18 282.94a32.005 32.005 0 00-20.24 20.24L0 480l4.69 4.69 92.89-92.89c-.66-2.56-1.57-5.03-1.57-7.8 0-17.67 14.3...
export { default, Props as IconProps } from './Icon';
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *--------------------------------------------------------------...
import {promises} from 'fs'; import {join} from 'path'; import Result from './types/Result'; import {MigrationWithNoValidExport} from './types/MigrationError'; function notNull<T>(value: T): value is Exclude<T, null | undefined> { return value != null; } export interface IDirectoryContext<TMigration = unknown> { ...
import { ApiProperty } from "@nestjs/swagger"; import { IsNotEmpty } from "class-validator"; export class ChangeTaskDto { @IsNotEmpty() @ApiProperty({ type: String, required: true, }) readonly date: string; @IsNotEmpty() @ApiProperty({ type: String, required: true, }) readonly time: st...
import {PointGeometry} from 'core/geometry' import {Arrayable, NumberArray} from "core/types" import {Area, AreaView, AreaData} from "./area" import {Context2d} from "core/util/canvas" import {SpatialIndex} from "core/util/spatial" import * as hittest from "core/hittest" import * as p from "core/properties" import {Sel...
import { Reconnector } from './Reconnector'; describe('Reconnector', () => { let node: any; let options: string | undefined; let unsubscribeCount = 0; let reconnector: Reconnector; let spy = () => { }; beforeEach(() => { reconnector = new Reconnector<string>((_handlerId, _node, _options) => { //...
/* * © 2017 Stratio Big Data Inc., Sucursal en España. * * This software is licensed under the Apache License, Version 2.0. * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See ...
import fs from 'fs-extra'; import { join } from 'path'; import { bundleDts } from '../utils/bundle-dts'; import { aliasPlugin } from './plugins/alias-plugin'; import { replacePlugin } from './plugins/replace-plugin'; import { urlPlugin } from './plugins/url-plugin'; import { getBanner } from '../utils/banner'; import {...
import State from '../common/State'; import { RequestStateEnum } from './RequestStateEnum'; class RequestState extends State { constructor(name = RequestStateEnum.SCHEDULED) { super(); if (![ RequestStateEnum.SCHEDULED, RequestStateEnum.READY, RequestStateEnum.PROCESSED, RequestStateE...
import { MigrationInterface, QueryRunner } from 'typeorm' export class initialMigration1643317255172 implements MigrationInterface { name = 'initialMigration1643317255172' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query( `CREATE TABLE IF NOT EXISTS "medal_metadata_nft"...
import { useIntl } from 'umi'; import { GithubOutlined } from '@ant-design/icons'; import { DefaultFooter } from '@ant-design/pro-layout'; export default () => { const intl = useIntl(); const defaultMessage = intl.formatMessage({ id: 'app.copyright.produced', defaultMessage: 'Dlink', }); return ( ...
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const tbPictureInPicture: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const ...
/* eslint-disable no-await-in-loop */ import { wrapHandler } from 'universe/backend/middleware'; import { testApiHandler } from 'next-test-api-route-handler'; import { ObjectId } from 'mongodb'; import { asMockedFunction, asMockedNextApiMiddleware, itemFactory } from 'testverse/setup'; import { DUMMY_KEY as K...
import { BaseRequest, BaseResponse } from './baseMethod' /** * The ledger_current method returns the unique identifiers of the current * in-progress ledger. Expects a response in the form of a {@link * LedgerCurrentResponse}. * * @example * ```ts * const ledgerCurrent: LedgerCurrentRequest = { * "command": "...
export class TreeModel { display: string = null; id: any = null; childrens: TreeModel[] = [] isOpen: boolean = false; get hasChild(): boolean { return this.childrens && this.childrens.length > 0; } private _canClose:boolean = true; get canClose(){ return this._canClose; ...
export declare var MODULE_SUFFIX: string; export declare function camelCaseToDashCase(input: string): string; export declare function dashCaseToCamelCase(input: string): string; export declare function splitAtColon(input: string, defaultValues: string[]): string[]; export declare function sanitizeIdentifier(name: strin...
import { connect } from 'react-redux' import { ExtractDispatchers, MapStateToProps, MapDispatchToProps } from 'react-retux' import { action } from '../retux-store/actions' import { Link, LinkProps } from '../components/Link' import { StoreState, StoreAction } from '../retux-store/modules' import { VisibilityFilte...
import { Router } from 'express' import { promisify } from 'handle-async' import { finished } from 'stream' import { format, stream } from './formatResults' import { NotFoundError } from './errors' import cacheControl from './cacheControl' import getRequestHandler from './getRequestHandler' import getSwagger from './ge...
import { fakeAsync, inject, tick, TestBed } from '@angular/core/testing'; import { Component } from '@angular/core'; import { BaseRequestOptions, Http } from '@angular/http'; import { By } from '@angular/platform-browser'; import { MockBackend } from '@angular/http/testing'; /** * Load the implementations tha...
import React from 'react'; import TemplateFactory from './template'; interface Props {} const CheckoutTemplate = () => { return ( <TemplateFactory sections={[ { name: 'checkout-content', }, ]} /> ); }; export default CheckoutTemplate;
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import { configure, mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import React from 'react'; import { waitFor } from '@testing-library/react'; import { EmptyPlaceholder } from '../empty_placeholder'; import { Len...
/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ import { Directive, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core'; import Sortable = require('sortablejs'); @Directive({ selector: '[sqxSortModel]' }) export cl...
import { BitrixConnector } from './BitrixConnector'; import { BitrixCredentials } from './BitrixCredentials'; import * as qs from 'qs'; import * as rest from 'rest'; import { format } from 'util'; const URL = `https://%s.bitrix24.com/rest/%s/%s/%s/?%s`; export class BitrixWebhook implements BitrixConnector { auth:...
import httpMocks, { MockResponse } from 'node-mocks-http'; import { get } from '.'; test('should return the get of api response', () => { const req = httpMocks.createRequest(); const res = httpMocks.createResponse(); const data = get(req, res) as MockResponse<ReturnType<typeof get>>; expect(data._getJSONData(...
import { Component, HostBinding } from '@angular/core'; import { SettingsService } from './core/services/settings.service'; import { ThemesService } from "./core/services/themes.service"; import { TranslatorService } from "./core/translator/translator.service"; @Component({ selector: 'app-root', template: `<nz-ro...
import { AxiosRequestConfig, AxiosResponse } from 'axios'; import cookie from 'js-cookie'; import Vue from 'vue'; import store from '@/store/index'; import { CLEAR_USER } from '../../store/modules/app/mutation-types'; // 请求拦截器 export const requestSuccess = (request: AxiosRequestConfig) => { const token = cookie.get(...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import * as coreHttp from "@azure/core-http"; import { PolicyClientOptionalParams } from ...
import { contextBridge, ipcRenderer } from "electron" import { IpcApi, IpcObservables } from "data/ipcApi" import { ObserverBinderImpl } from "./ipc/observerBinderImpl"; import { IpcObserverBinders, ObserverBinder } from "./ipc/observerBinder"; import { Observer } from "./ipc/observer"; function forwardIpc<IpcName ext...
/* External Imports */ import { injectL2Context, Bcfg } from '@eth-optimism/core-utils' import * as Sentry from '@sentry/node' import { Logger, Metrics, createMetricsServer } from '@eth-optimism/common-ts' import { exit } from 'process' import { Signer, Wallet } from 'ethers' import { StaticJsonRpcProvider, Transac...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; // componenets import { AppComponent } from './app.component'; import { AppRoutingModule } from './app-routing.modu...
import { from, merge, Observable, of } from 'rxjs'; import { DataSourceWithBackend, getBackendSrv, getGrafanaLiveSrv, getTemplateSrv, StreamingFrameOptions, } from '@grafana/runtime'; import { AnnotationQuery, AnnotationQueryRequest, DataFrameView, DataQueryRequest, DataQueryResponse, DataSourceIn...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { DefaultPsSelectDataSource, PsSelectDataSource, PsSelectLoadTrigger } from '@prosoft/components/select'; import { of } from 'rxjs'; import { delay } from 'rxjs/operator...
import fs from "fs"; import { join, extname } from "path"; import matter from "gray-matter"; const CONTENT_ROOT = "content"; export function getPostSlugs(sectionType: string) { const md_ext = ".md"; const postsDirectory = join(process.cwd(), CONTENT_ROOT, sectionType); return fs .readdirSync(postsDirectory)...
import { Entity, ObjectIdColumn, Column } from 'typeorm' import * as uuid from 'uuid' import { Expose, plainToClass } from 'class-transformer' @Entity({ name: 'roles', orderBy: { createdAt: 'ASC' } }) export class Role { @Expose() @ObjectIdColumn() _id: string @Expose() @Column() code: string @Expose() ...
export type GlobalCacheDisabledReason = "too_many_errors" | "too_many_misses"; export type BundleDetails = { bundleType: string; dev: boolean; entryFile: string; minify: boolean; platform?: string; runtimeBytecodeVersion?: number; }; /** * A tagged union of all the actions that may happen and we may want...
export { Server } from "https://deno.land/std@0.129.0/http/server.ts"; export type { ConnInfo } from "https://deno.land/std@0.129.0/http/server.ts"; export { Status, STATUS_TEXT, } from "https://deno.land/std@0.129.0/http/http_status.ts"; export { deleteCookie, setCookie, } from "https://deno.land/std@0.129.0/h...
import { GetServerSideProps, NextPage } from "next" import Head from "next/head" import Image from "next/image" import { useEffect } from "react" import { Element, animateScroll } from "react-scroll" import { defaultUserPhotoUrl } from "../../common/common" import NormalHeader from "../../components/header/normal_heade...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SharedModule } from '../../shared/share.module'; import { ThemeModule } from '../../@theme/theme.module'; import { DetailComponent } from './detail.component'; import { LightboxModule } from 'ngx-lightbox'; import { NgxCa...
// Copyright 2019 Yusuke Sakurai. All rights reserved. MIT license. import { createRouter } from "../../../router.ts"; const router = createRouter(); // Called for every request router.use(async req => { // Do authentication before handling request on routes const q = new URL(req.url, "http://dummy").searchParams; ...
import { ApplySchemaAttributes, CommandFunction, InputRule, NodeExtension, NodeExtensionSpec, NodeGroup, nodeInputRule, } from '@remirror/core'; /** * An extension for the remirror editor. CHANGE ME. */ export class HorizontalRuleExtension extends NodeExtension { get name() { return 'horizontalRu...
// taken from here: https://github.com/1999/topological-sort export interface INodeWithChildren<KeyType, ValueType> { children: InternalNodesMap<KeyType, ValueType> node: ValueType } export type InternalNodesMap<KeyType, ValueType> = Map<KeyType, INodeWithChildren<KeyType, ValueType>> class TopologicalSort<KeyTy...
// (C) 2019-2020 GoodData Corporation import { IdentifierRef, idRef } from "@gooddata/sdk-model"; import { AttributeResourceSchema, DatasetResourceSchema, FactResourceSchema, LabelResourceSchema, MetricResourceSchema, TagResourceReference, TagResourceSchema, } from "@gooddata/api-client-tige...
import {compose} from 'rambda' interface Time { second?: number; minute?: number; hour?: number; day?: number; year?: number; } const getMinutes = (sec: number): Time => { const minute = Math.floor(sec / 60); const second = sec - 60 * minute; return {minute, second} }; const getHours = (time: Time): ...
import { WithComponent } from 'skatejs'; export { props, define } from 'skatejs'; import { TemplateResult } from 'lit-html'; export { html, render } from 'lit-html'; interface BoltBaseClass extends HTMLElement { new(): BoltBaseClass; setState({}): void; setupSlots(): void; setupShadow(): void; addStyles(styl...
import { GridEvents, GridApiRef, GridComponentProps, useGridApiRef, DataGridPro, GridEditSingleSelectCell, } from '@mui/x-data-grid-pro'; import Portal from '@mui/core/Portal'; import { expect } from 'chai'; import * as React from 'react'; import { getActiveCell, getCell, getRow, getColumnHeaderCell } from ...