text
stringlengths
10
953k
/* * 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 ...
import _ from "lodash"; import FC from "@alicloud/fc2"; import querystring from "querystring"; import httpx from "httpx"; import qs from "qs"; import FormData from "form-data"; interface Obj { [key: string]: any; } /** * 发送请求(基础方法,非调用 HTTP 函数不建议使用): * 1. 请求错误日志会被吞掉 * 2. 'application/json' 会被强制 json.parse 导致返回,抛出...
import { Component, ViewEncapsulation, OnDestroy, Input } from '@angular/core'; import { ActivatedRoute, Params } from "@angular/router"; @Component({ selector: 'st-working-hours', templateUrl: 'working-hours.component.html', styleUrls: ['working-hours.component.scss'], providers: [], encapsulation: ViewEncapsula...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'angular-image'; }
function randomize(min: number, max: number, skew: number) { let first = 0; let second = 0; while(first === 0) { first = Math.random(); } while(second === 0) { second = Math.random(); } let output = Math.sqrt(-2.0*Math.log(first)) * Math.cos(2.0*Math.PI*second); output ...
import { BeaconHandler } from './beacon-handler' describe('BeaconHandler', () => { let beaconHandler: BeaconHandler beforeEach(() => { const beaconServiceStub = { client: jasmine.createSpy('client').and.returnValue({ isConnected: jasmine.createSpy('isConnected').and.returnValue(Promise.resolve()...
import { ValidConfigOptions } from '../../../options/options'; import { Commit } from '../../sourceCommit/parseSourceCommit'; import { getPullRequestBody, getTitle } from './createPullRequest'; describe('getPullRequestBody', () => { it('when single pull request is backported', () => { expect( getPullReques...
// This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, apiUrl: "http://localhost:9990", }; /* * For...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { OcInviteModalComponent } from './oc-invite-modal.component'; import { MockButtonComponent, MockFormComponent, MockSvgIconComponent } from '@openchannel/angular-common-components/src/mock/mock'; import { Observable, of } from 'rxj...
/// <reference path="custom-typings.d.ts" /> export interface ParseIconFileError extends Error { data: string; } export interface IconDefinition { id: string; name: string; description: string; tags: string[]; unicode: string; content: string; library: string; } export interface IconLibraryDefinition...
/* * This file is part of the @mscs/git package. * * Copyright (c) 2020 media-service consulting & solutions GmbH * * For the full copyright and license information, please view the LICENSE * File that was distributed with this source code. */ import { Process, ProcessOptions } from "@mscs/process"; import { ...
const MIN_SIZE_REGEXP: number = 2; export function isRegexpStr(value?: string): boolean { return ( (value?.length ?? 0) > MIN_SIZE_REGEXP && value?.charAt(0) === '/' && value?.charAt(value?.length - 1) === '/' ); }
import React from "react" import { Box } from "../../clientUtils/owidTypes.js" import { SeriesStrategy } from "../core/GrapherConstants.js" import { LineChartSeries } from "../lineCharts/LineChartConstants.js" import { SelectionArray } from "../selection/SelectionArray.js" import { ChartManager } from "./ChartManager.j...
import React from 'react'; import * as ReactDOM from 'react-dom'; import { Dot as Thing } from '.'; describe('Thing', () => { it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<Thing />, div); ReactDOM.unmountComponentAtNode(div); }); });
export const httpFlags = { FORBIDDEN: 'FORBIDDEN', UNAUTHORIZED: 'UNAUTHORIZED', INVALID_BODY: 'INVALID_BODY', INVALID_PARAM: 'INVALID_PARAM', INVALID_HEADERS: 'INVALID_HEADERS', INVALID_TOKEN: 'INVALID_TOKEN', INVALID_URL: 'INVALID_URL', BOOK_NOT_FOUND: 'BOOK_NOT_FOUND', BOOK_SAME_STATUS: 'BOOK_SAME_...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ViewVoterFeedComponent } from './view-voter-feed.component'; describe('ViewVoterFeedComponent', () => { let component: ViewVoterFeedComponent; let fixture: ComponentFixture<ViewVoterFeedComponent>; beforeEach(async(() => { T...
/* * 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...
/** * Web Application Acceleration and Security Services API * OCI Web Application Acceleration and Security Services * OpenAPI spec version: 20181116 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, Oracle and/or its affiliates. All rig...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. import { Guid } from 'guid-typescript'; /** * The CDM Http request class that is being used by CDM Http client to execute network requests. */ export class Cdm...
import {useCallback, useEffect, useRef, useState} from 'react'; import {useLazyMemo} from '@dnd-kit/utilities'; import {getElementLayout} from '../../utilities'; import type {DroppableContainers, LayoutRectMap} from '../../store/types'; interface Arguments { dragging: boolean; dependencies: any[]; config: Parti...
import { CSSProperties, VNodeChild } from 'vue'; import { createTypes, VueTypeValidableDef, VueTypesInterface } from 'vue-types'; export type VueNode = VNodeChild | JSX.Element; type PropTypes = VueTypesInterface & { readonly style: VueTypeValidableDef<CSSProperties>; readonly VNodeChild: VueTypeValidableDef<VueN...
import {IsEmail, IsString, IsUrl, IsURLOptions, Length} from 'class-validator'; export class RegistryUserDto { @IsString() @Length(4, 20, { message: '', }) readonly name: string; @IsUrl({protocols: ['http', 'https']}) readonly avatar: string; @IsString() readonly 'user_name': string; @IsEmail() ...
/** * searchDetailsAndFilterBlock_ChangeSearches_UpdateInProgress_OverlayLayout.tsx * * Change Searches Selections Update In Progress Overlay - For selecting which searches to display * * */ import React from 'react' import {Spinner_Limelight_Component} from "page_js/common_all_pages/spinner_ReactComponent_Limel...
import decompMap from './data/decompMap' /** * Breaks apart a string of characters into their component parts. * @param characters a string of characters to decompose * @return an array of each character broken down into its component parts */ export function decompose (characters: string): any { const character...
import type { SingleEndpointContextualEnvironment, Environment } from '../../entities'; import type { MapBy } from '../../types'; import type { InitializerOptions } from './types'; export type EnvironmentInitializer<T, OPTIONS extends InitializerOptions = InitializerOptions> = ( options: OPTIONS ) => T; export ty...
// pathfinder/demo/client/src/xcaa-strategy.ts // // Copyright © 2017 The Pathfinder Project Developers. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. Th...
import { Injectable } from '@angular/core'; import { I18NService, HttpService, ParamStorService } from '../../shared/api'; import { Observable } from 'rxjs'; @Injectable() export class AvailabilityZonesService{ constructor( private http: HttpService, private paramStor: ParamStorService ) { } url = 'v1b...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Comp4036Component } from './comp...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-links', templateUrl: './links.component.html', styleUrls: ['./links.component.scss'] }) export class LinksComponent implements OnInit { constructor() { } ngOnInit() { } displayedColumns = ['category', 'splitter', 'links']; ...
import { Context as ContextInterface, HandlerArgs } from "~/types"; import { PluginsContainer } from "@webiny/plugins"; export interface Params { args: HandlerArgs; plugins?: Plugin | Plugin[] | Plugin[][] | PluginsContainer; WEBINY_VERSION: string; } export class Context implements ContextInterface { ...
import * as React from 'react'; export declare const Wrapper: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>; export default function Breakout(props: { ...
import { Connection } from "tedious"; import ExecSql from "@australis/tiny-sql-exec-sql"; import { debugModule } from "@australis/create-debug"; import { combineFilters, excludeKeys, filterKeys, getFields, notNullField} from "@australis/tiny-sql-params"; import { BasicTable } from "./types"; const debug = debugModule(...
import ReactFullpage from '@fullpage/react-fullpage'; import moment from 'moment'; import React, { ReactElement, useEffect, useState, ElementType } from 'react'; import { useSelector } from 'react-redux'; import $ from 'jquery'; import Page from 'components/page'; import Activities from 'containers/activities'; import ...
import { Component, OnInit } from '@angular/core'; import { MatSnackBar } from '@angular/material'; import { UtilsService } from '../../../utils.service'; import { FormGroup } from '@angular/forms/src/model'; import { AddMedicineComponent } from 'app/modules/pharmacy/add-medicine/add-medicine.component'; import { MatDi...
import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {IndexComponent} from './index/index.component'; const routes: Routes = [ { path: '', component: IndexComponent } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export...
import { ElementName } from '~/common/enums'; import { createElement } from '../create-element/create-element.helper'; const createOptionsElements = ( options: string[], ...selectedOptions: string[] ): HTMLOptionElement[] => { return <HTMLOptionElement[]>options.map((opt) => { const isSelected = selectedOpti...
import React from 'react'; import styled from 'styled-components'; import Footer from './components/Footer'; import useDateSelector from './hooks/useDateSelector'; import ActivePage from './pages/ActivePage'; import InitTrackPage from './pages/InitTrackPage'; const PageContainer = styled.div` width: 100vw; min-h...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { MatTableDemoComponent } from './components/mat-table/mat-table-demo.component'; import { MatDialogModule } from '@angular/material/dialog'; import { RooiMatTableModule } fro...
import { Story, Panel } from '../types' // https://www.lipsum.com/feed/html const _FAKE_TEXT = ` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin bibendum maximus ante, nec egestas diam aliquet vel. Phasellus consequat orci vitae semper vestibulum. Vestibulum facilisis, dui ut accumsan tincidunt, quam ne...
/*--------------------------------------------------------- * Copyright 2021 The Go Authors. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------*/ import * as vscode from 'vscode'; import { FileSyste...
import axios from 'axios'; import configureStore from 'redux-mock-store'; import promiseMiddleware from 'redux-promise-middleware'; import thunk from 'redux-thunk'; import sinon from 'sinon'; import reducer, { ACTION_TYPES, createEntity, deleteEntity, getEntities, getEntity, updateEntity, reset } from '...
export const OBJ_PATH_KEY = 'Property' as const; export const ARR_PATH_KEY = 'Index' as const; export const VALID_RESULT = Symbol('Valid Result');
import { Account } from '../../../lib/accounts/accounts' import useSessionState from '../../state/session-state' import { decryptLocalKey } from '../../../lib/accounts/accountsdb' import { TXFinishFunc, TXFunc } from '../../components/app-definition' import { nowMS } from '../../state/time' import { transformError } fr...
import React, { Component } from 'react'; import { Route, Redirect } from 'react-router-dom'; import { getToken } from '../Lib/Utils/auth'; interface IProps { render?: Function, path?: string, children?: any, exact?: any, } class NotLoggedInRoute extends Component<IProps, {}> { render() { const { render...
import { NgModule } from '@angular/core'; import { ChartCommonModule } from '../common/chart-common.module'; import { BarComponent } from './bar.component'; import { BarHorizontalComponent } from './bar-horizontal.component'; import { BarHorizontal2DComponent } from './bar-horizontal-2d.component'; import { BarHorizont...
import * as assert from 'assert'; import * as ts from 'typescript'; import { getTemplateTransformFunctions } from '../transformTemplate'; suite('transformTemplate', () => { suite('`this` injection', () => { function check(inputTsCode: string, expectedTsCode: string, scope: string[] = []): void { const sour...
/* * 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 to in writing, software * distributed u...
import type { AstroComponentMetadata, Renderer } from '../../@types/astro-core'; import type { SSRResult, SSRElement } from '../../@types/astro-runtime'; import type { TopLevelAstro } from '../../@types/astro-runtime'; import shorthash from 'shorthash'; import { extractDirectives, generateHydrateScript } from './hydra...
import { ChangeEvent, FC, ReactNode, Children, useState } from "react"; import type * as F from "flare-core"; import { Flare, RunFlare } from "flare-core"; import { css } from "demitasse"; import cx from "clsx"; import { useMeasure } from "react-use"; import { Button as ButtonImpl } from "./button"; import { Code } fro...
// interfaces import { User } from 'modules/users/interfaces'; export interface Shop { id: string; name: string; description: string; address: string; owner: User; createdAt: string | Moment; }
export const assertArrayEqual = (array1: [], array2: []) => { if (array1.length !== array2.length) return false; for (let i = 0; i < array1.length; i++) { if (array1[i] !== array2[i]) return false; } return true; }; // String to arraybuffer export const stringToArrayBuffer = (string: string) => { const ...
/* eslint-disable no-console */ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import Redis, { Redis as RedisClient } from 'ioredis'; if (!process.env.REDIS_HOST) { process.exit(1); } const redisHost = process.env.REDIS_HOST; class Re...
import { useSelector } from 'react-redux'; import React from 'react'; import { initialState } from '../store/reducers/main'; export const useMyStore = () => { const store = useSelector((state) => state as typeof initialState); return store; };
import React, { FunctionComponent, useState } from 'react'; import { Goal } from '../../types/goals'; import { Chart } from 'react-charts'; import styled from '@emotion/styled'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faCircle, faPen, faSyncAlt, faSearch, } from '@fortawesome/...
import React, { useCallback, useEffect, useState } from 'react'; import useUrlParams from '../../hooks/useUrlParams'; import { Nav, Spinner } from 'react-bootstrap'; import TimeSeriesChart from '../common/TimeSeriesChart/TimeSeriesChart'; import { getQueueAcknowledgedTimeSeries, getQueueDeadLetteredTimeSeries, ...
import { Actor, IAction, IActorArgs, IActorOutput, IActorTest } from '@comunica/core'; import * as RDF from 'rdf-js'; /** * A comunica actor for rdf-parse-html events. * * Actor types: * * Input: IActionRdfParseHtml: Callbacks for parsing results. * * Test: <none> * * Output: IActorRdfParseHtmlOutput: An...
export * from "./Grid"
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Component, OnInit } from '@angular/core'; import { Service190Service } from '../../services/service-190.ser...
import { Component, OnInit } from '@angular/core'; import { Options, LabelType } from '@angular-slider/ngx-slider'; @Component({ selector: 'app-shop-right-sidebar-page-two', templateUrl: './shop-right-sidebar-page-two.component.html', styleUrls: ['./shop-right-sidebar-page-two.component.scss'] }) export cl...
import { Component, OnInit } from "@angular/core"; import { MenuItem, ConfirmationService, MessageService} from 'primeng/api'; import { Observable, BehaviorSubject } from 'rxjs'; import { Brand } from './brand'; import { BrandService } from './brand.service'; import { filter } from "rxjs/operators"; @Component({ sel...
import mongoose from 'mongoose'; const userSchema = new mongoose.Schema({ username: { type: String, required: true, }, email: { type: String, required: true, }, password: { type: String, required: true, }, }); const User = mongoose.model('User', userSchema); export default User;
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { GeneralPoliciesComponent } from './general-policies.component'; describe('GeneralPoliciesComponent', () => { let component: GeneralPoliciesComponent; let fixture: ComponentFixture<GeneralPoliciesComponent>; beforeEach(async(() =...
import { addMany, createDefaultState, getAddRemoved, onError, onGetAllSuccess, onStart, removeMany, updateInPlace } from './store.helpers'; describe('store.helpers', () => { describe('getAddRemoved', () => { const existingList = [{ id: '1' }, { id: 2 }, { id: 3 }]; const newList = [{ id: 1 },...
import {execSync} from 'child_process'; import fs from 'fs'; import path from 'path'; import {emoji} from './Emoji'; import { pwd, mkdirPath, } from '../util/type/Path'; import {tryCatch} from '../util/TryCatch'; import {colors} from './Color'; import {isNumberOnly} from '../util/string/Check'; const thousands = requ...
/* * Copyright © HatioLab Inc. All rights reserved. */ export { default as Legend } from './legend' export { default as LegendItem } from './legend-item'
import { Module } from '@nestjs/common'; import { AuthService } from './auth.service'; import { LocalStrategy } from './local.strategy'; import { JwtStrategy } from './jwt.strategy'; import { UserModule } from '../user/user.module'; import { PassportModule } from '@nestjs/passport'; import { JwtModule } from '@nestjs/j...
import { Pipe, PipeTransform } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { DomSanitizer } from '@angular/platform-browser'; import memo from 'memo-decorator'; @Pipe({ name: 'svgIcon' }) export class SvgIconPipe implements PipeTransform { constructor(private http: H...
import { ResponsiveTreeMap, ResponsiveTreeMapCanvas, ResponsiveTreeMapHtml, } from '@nivo/treemap' import { generateLibTree } from '@nivo/generators' import { useChart } from '../hooks' const props = { identity: 'name', labelSkipSize: 16, value: 'loc', valueFormat: '.02s', } export function TreeMap() { ...
import { Button, Col, Row, Space } from 'antd' import { ThemeContext } from 'contexts/themeContext' import { Split } from 'models/v2/splits' import { useContext, useState } from 'react' import { parseWad } from 'utils/formatNumber' import FormattedAddress from 'components/shared/FormattedAddress' import { BigNumber } f...
import { Red, NodeProperties, } from 'node-red'; interface AppConfigProperties extends NodeProperties { appId: string; appSecret: string; apiKey: string; } export = function (RED: Red): void { function AppConfig(config: AppConfigProperties): void { RED.nodes.createNode(this, config); this.name = c...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { RestrictionComponent } from './restriction.component'; import { RouterTestingModule } from '@angular/router/testing'; import { FormBuilder, ReactiveFormsModule } from '@angular/forms'; describe('RestrictionComponent', () => { l...
import { Component, OnInit} from '@angular/core'; import {Region} from './region'; //import {IRegions} from './IRegions'; //import {ISystems} from './ISystems'; import {ISystem} from './ISystem'; //import {EveRegionListComponent} from './everegion-list.component'; import { HTTPEveService } from './http-eve.service'; im...
import { Router, Request, Response, NextFunction } from 'express'; import { Container } from 'typedi'; import { Logger } from 'winston'; import CronService from '../services/cron'; import { celebrate, Joi } from 'celebrate'; import cron_parser from 'cron-parser'; const route = Router(); export default (app: Router) =>...
import { HttpModule, Module } from '@nestjs/common'; import { GithubController } from './github.controller'; import { GithubService } from './github.service'; @Module({ imports: [HttpModule], controllers: [GithubController], providers: [GithubService], }) export class GithubModule {}
import { State } from '../reducer'; import { EndpointParams } from '../types'; /** * Get the result data of a failed endpoint, or undefined if the request did not fail. This value is automatically * bound when using {@link withApiData}. */ export declare const getFailedData: (apiDataState: State, endpointKey: string...
// *** 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 { Body, Controller, Delete, Get, Param, ParseIntPipe, Patch, Post } from '@nestjs/common'; import { UserDto } from './dto/user.dto'; import { User } from './user.entity'; import { UserService } from './user.service'; @Controller('users') export class UserController { constructor(private readonly _userService:...
import React, { useContext, useEffect } from "react"; import { Editor } from "draft-js"; import { useFocusEditor } from "./hooks"; import { TextEditorContext } from "./TextEditorContext"; import "draft-js/dist/Draft.css"; import "./TextEditor.css"; export function TextEditor(): JSX.Element { const [editorState, setE...
import { Component, OnInit, ChangeDetectorRef } from '@angular/core'; import { AlertController } from '@ionic/angular'; import { Storage } from '@ionic/storage'; import {v4 as uuid } from 'uuid'; // TODO: Implement Risk Statistics // TODO: Make City Display support multiple columns @Component({ selector: 'app-game...
import { create as aCreate } from '@actions/artifact'; import * as glob from '@actions/glob'; import { uploadArtifact } from './artifact'; import { logger, warning } from './logger'; jest.mock('./logger'); describe('artifact', () => { beforeEach(() => { (glob.create as jest.Mock).mockResolvedValue({ glob: jest...
export function getSeconds(): number { return Math.round(Date.now() / 1000); }
import { AfterViewInit, Component, EventEmitter, Inject, OnInit, Optional, Output, PLATFORM_ID, ViewChild } from '@angular/core'; import {Product} from 'src/app/models/product.model'; import {ProductService} from 'src/app/components/shared/services/product.service'; import {Activated...
import { conexion } from "../database"; import { Request,Response } from "express"; import cloudinary from "cloudinary"; import path from 'path'; import fs from "fs-extra"; cloudinary.v2.config({ cloud_name:'lemillion', api_key:'323978568364464', api_secret:'xgECcAjSh7FL_bzLWt3QKBv3doY' }); export clas...
import React from 'react'; import { Button, Layout, Menu, Popover } from 'antd'; import styled from 'styled-components'; import { Link, scrollTo } from 'react-static'; import { size } from '../breakpoints'; import logoImg from '@images/logo_light.svg'; const { Header } = Layout; const externalLinks = ['/whitepaper', '...
import { Component, Input } from '@angular/core'; import { NavController } from 'ionic-angular'; @Component({ selector: 'question', templateUrl: 'question.html', }) export class QuestionComponent { @Input() question: any = {}; @Input() answers: any = {}; constructor( public navCtrl: NavController ) {}...
import { IsNumber, IsOptional, IsString } from 'class-validator'; export class TagsQueryDto { @IsString() @IsOptional() readonly identifier?: string; @IsString() @IsOptional() readonly name?: string; @IsString() @IsOptional() readonly description?: string; @IsNumber() @IsOptional() readonly lim...
import { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient"; import { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/index"; import { deserializeAws_queryListTagsForResourceCommand, serializeAws_queryListTagsForResourceCommand, } from "../protoc...
import { JsonObject } from "../../Core/Json"; import anyTrait from "../Decorators/anyTrait"; import primitiveTrait from "../Decorators/primitiveTrait"; import mixTraits from "../mixTraits"; import CatalogMemberTraits from "./CatalogMemberTraits"; import FeatureInfoTraits from "./FeatureInfoTraits"; import LayerOrdering...
import { KeyHolder } from '../../../src/graphql/datasource' describe('KeyHolder', () => { describe('get', () => { describe('when data is returned for the data source', () => { it('return the requested data', async () => { expect.assertions(1) let keyHolder = new KeyHolder() jest ...
import { endpoints } from '@/core/config'; import axios from 'axios'; import * as auth from './auth'; const rootQueryResolvers = { Query: { healthz: () => 'OK', servers: async () => { if (process.env.NODE_ENV === 'production') { throw new Error('Invalid query'); } const pings = awa...
import { ContestCreatedAction } from "./contests/ContestCreatedAction"; import { ContestImagesFetchedAction } from "./contests/ContestImagesFetchedAction"; import { ContestPatchedAction } from "./contests/ContestPatchedAction"; import { ContestsIndexRetrievedAction } from "./contests/ContestsIndexRetrievedAction"; impo...
import React from "react"; import PropTypes from "prop-types"; import Helmet from "react-helmet"; import { StaticQuery, graphql } from "gatsby"; const SEO = ({ description, lang, meta, title }) => { return ( <StaticQuery query={detailsQuery} render={data => { const metaDescription = ...
// This module implements the Base GL Glyph and some utilities import {Context2d} from "core/util/canvas" import {logger} from "core/logging" import {GlyphView} from "../glyph" export abstract class BaseGLGlyph { protected nvertices: number = 0 protected size_changed: boolean = false protected data_changed: boo...
export function formatHex(n: number, len: number, suffix?: boolean): string { let str = n.toString(16).toUpperCase(); if (str.length < len) { str = "0".repeat(len - str.length) + str; } if (suffix) { str = str + "h"; } return str; } export function formatU1Hex(n: number, suffix?...
import radar from './radar.png' export default { "config": { "origin": { "x": 563.1339320329055, "y": 736.9535330430065 }, "pxPerUX": 0.2278315639654376, "pxPerUY": -0.22776482548619972 }, "file":radar }
import type { PluginPass } from '@babel/core' import type { LinariaMetadata } from '@linaria/babel-preset' export type { PluginOptions as LinariaOptions, Options as LinariaTransformOptions } from '@linaria/babel-preset' export type PreprocessorFn = (selector: string, cssText: string) => string export type Preproc...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; const routes: Routes = [{ path: 'students/:userId/reissues', loadChildren: () => import('./reissue/form/reissue-form.module').then(m => m.ReissueFormModule), }, { path: 'approvers/:userId/reissues', loadCh...
import { Injectable } from '@nestjs/common'; import * as deepmerge from 'deepmerge'; import { UserInfo, UserInfoRepo } from '../../entities/all.entity'; import { BaseProvider } from '../../providers/_base/base-provider'; @Injectable() export class UserInfoProvider extends BaseProvider<UserInfo> { constructor(priva...
// *** 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 { NgModule } from '@angular/core'; import { PointDetailComponent } from './edit/point-detail-component'; import { PointComponent } from './points.component'; import {PointCreateComponent} from './create/point-create.component'; import {FormsModule} from "@angular/forms"; import {BrowserModule} from "@...