text stringlengths 10 953k |
|---|
/*
* 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 { EuiSpacer } from '@elastic/eui';
import { getEsQueryConfig } from '@... |
/* Copyright 2018-present Mellisphera
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, softwar... |
import axios from 'axios';
const api = axios.create({
baseURL: 'http://192.168.1.27:3333',
});
export default api; |
// *** 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 axios from "axios";
import Artist from "./Artist";
import { Constants, Config } from "../Constants";
import Utils from "../Utils";
export default class ArtistsClient {
private key?: string;
private config: Config;
/**
* @example const ArtistsClient = await Genius.Artist.Client(key);
*/
... |
import { Autowired, Injectable } from '@opensumi/di';
import { getPreferenceLanguageId } from '@opensumi/ide-core-browser';
import { ILogger, WithEventBus } from '@opensumi/ide-core-common';
import {
AbstractExtensionManagementService,
ChangeExtensionOptions,
ExtensionNodeServiceServerPath,
IExtensionNodeClien... |
import { execSync } from 'child_process';
import { Task } from './task';
const BUFFER_SIZE = 1024 * 100000;
/**
* Used to configure a `RunProcessTask`.
*/
export interface ProcessConfig {
/** The command that should be executed. */
command: string;
/**
* The working directory of the process.
... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-not-found',
templateUrl: './not-found.component.html',
styleUrls: ['./not-found.component.css']
})
export class NotFoundComponent implements OnInit {
constructor() { }
ngOnInit() {
let body = document.getElementsByTagName('b... |
import { Component, Inject, OnInit} from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import {
Attribute,
AttributesManagerService,
Group, GroupsManagerService,
InputCreateSponsoredMemberFromCSV,
MembersManagerService, NamespaceRules, RichGroup
} from '@perun-web-... |
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'size' })
export class SizePipe implements PipeTransform {
transform(value: number): string {
if (value == 0) { return '0 Byte'; }
const k = 1000; // or 1024 for binary
const dm = 2 + 1 || 3;
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'... |
import { EnumLike } from '@jovotech/framework';
import {
IsArray,
IsBoolean,
IsEnum,
IsNotEmpty,
IsOptional,
IsString,
Type,
ValidateIf,
ValidateNested,
} from '@jovotech/output';
import { Image } from '../common/Image';
import { Link } from '../common/Link';
export class Table {
@ValidateIf((o) =>... |
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
const hasElementType = typeof Element !== "undefined";
const hasMap = typeof Map === "function";
const hasSet = typeof Set === "function";
const hasArrayBuffer =
typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
// Note: We **don't** need `envHa... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export interface Material {
id: number;
name: string;
hidden:boolean;
description?: string;
} |
import { switchMap, filter, tap } from "rxjs/operators";
import { RouteSubjectService } from "./route-subject.service";
import { Injectable } from "@angular/core";
import { BehaviorSubject } from "rxjs";
import Route from "../../models/route.class";
import { RouteStopPattern } from "../../models/route-stop-pattern.clas... |
export interface ExtraPage {
permalink: string
frontmatter?: Record<string, any>
meta?: Record<string, any>
} |
import { Vector2 } from '../../core/tools/vector2';
import { I18nName } from '../../model/common/i18n-name';
export interface NavigationObjective extends Vector2 {
name: I18nName;
iconid?: number;
item_amount?: number;
type?: 'Gathering' | 'Hunting' | 'Vendor' | 'Trade';
} |
import { getLogger, setFilter } from '@whitetrefoil/debug-log'
import * as meow from 'meow'
import * as path from 'path'
import { inspect } from 'util'
import * as main from './main'
setFilter('*')
const { debug } = getLogger(`/${path.relative(process.cwd(), _... |
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.20.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do n... |
import { Obj } from '@ahooksjs/use-table';
import { IResponse } from './type';
const adapt = (res: IResponse, primaryKey: string): IResponse => {
const { data = { dataSource: [] } } = res || {};
res.data.dataSource = (data.dataSource as Obj[]).map((d) => {
if (d.lazyChildren || d.isLeaf === false) {
ret... |
import * as express from 'express';
import {Request, Response, NextFunction} from "express";
import * as cors from 'cors';
import { routes } from './routes';
import * as bodyParser from 'body-parser';
import * as morgan from 'morgan';
const app = express();
app.use(bodyParser.json());
app.use('/', (err, req : Request... |
import { TSESTree } from '@typescript-eslint/typescript-estree';
import { getStaticValue } from 'eslint-utils';
import { AST as RegExpAST, parseRegExpLiteral } from 'regexpp';
import ts from 'typescript';
import { createRule, getParserServices } from '../util';
export default createRule({
name: 'prefer-includes',
... |
import { getChannel, getQueue } from "./services/mq";
import { createTweet } from "./services/tweetServices";
import { StreamObject } from "./types";
(async () => {
console.log("Start MQ-worker");
const channel = await getChannel();
const queue = await getQueue();
channel.prefetch(1);
channel.consume(
... |
import * as React from "react";
import { IEmojiProps } from "../../styled";
const SvgPersonGesture153 = (props: IEmojiProps) => (
<svg viewBox="0 0 72 72" width="1em" height="1em" {...props}>
<path
fill="#92D3F5"
d="M16 60.958L15.875 57c0-5.875 6.133-10 11.125-10 6 5 12 5 18 0 4.994 0 10 5.006 10 10v... |
export const environment = {
name: 'Staging',
production: true,
hmr: false,
analytics: {
enabled: false,
config: {}
},
zendesk: {
widget: 'https://static.zdassets.com/ekr/snippet.js?key=79b9468a-b37c-4e05-8d5a-9d8d12349f90',
redirect: 'https://cardihab.zendesk.com/access/jwt?jwt=',
},
se... |
// Generated by update-index.ts Do not edit!
export * from '../../../../../_types/maas-backend/customers/verification/media/list/request'; |
import { compareSync, genSaltSync, hashSync } from "bcryptjs";
import { Response, Router } from "express";
import { processQuery } from "../lib/database";
import { v4 as uuidv4 } from "uuid";
import { useAuth, useToken } from "../hooks";
import { Ranks, Whitelist } from "../lib/constants";
import IRequest from "../inte... |
import { getRepository } from "typeorm";
import File from '../models/File';
import path from 'path';
import fs from 'fs';
import uploadConfig from '../config/upload';
interface Request {
filename: string;
mimetype: string;
size: number;
}
class SaveFileMetadataToDatabaseService {
public async execute... |
import {Command, Flags} from '@oclif/core'
import {Interfaces} from '@oclif/core'
import * as path from 'path'
import * as qq from 'qqjs'
import * as Tarballs from '../../tarballs'
import {templateShortKey} from '../../upload-util'
type OclifConfig = {
macos?: {
identifier?: string;
sign?: string;
};
}
... |
import { Injectable } from '@nestjs/common';
import { UserProfileRepository } from './user-profile.repository';
import { InjectRepository } from '@nestjs/typeorm';
@Injectable()
export class UserProfileService {
constructor(
@InjectRepository(UserProfileRepository)
private userRepository: UserProfileReposito... |
import * as mongoose from 'mongoose';
import {ArgumentMetadata, Inject, Injectable, NotFoundException, PipeTransform} from '@nestjs/common';
@Injectable()
export class ParameterConverterPipe implements PipeTransform
{
constructor(private modelName: string, private fieldName: string) {}
async transform(value: ... |
// Styles
import '@mdi/font/css/materialdesignicons.css'
import '@fortawesome/fontawesome-free/css/all.css'
import { mdi } from 'vuetify/iconsets/mdi'
import { aliases, fa } from "vuetify/iconsets/fa";
import 'vuetify/styles'
// Vuetify
import { createVuetify } from 'vuetify'
export default createVuetify({
icons: {... |
import { VueComponent, Prop } from 'vue-typescript'
// import { azureBlob } from '../../service/azure-blob-upload'
import { dataService } from '../../service/dataService';
import * as VueRouter from 'vue-router'
var VueTables = require('vue-tables');
Vue.use(VueTables.client, {
filterable: false,
compileTempla... |
import {camelCase} from 'lodash'
import {Prisma} from '@prisma/client'
import {
SeriesCondition,
SeriesOrderBy,
UpdateSeriesInput,
} from '@storyverse/graphql/api/Schema'
import {Subject} from '../authz/AuthzService'
import * as UniverseUtils from '../universes/UniverseUtils'
export type IncludeAll = {
unive... |
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { GaxiosPromise } from 'gaxios';
export declare namespace secretmanager_v1 {
export interface Opt... |
import { useState, useEffect } from 'react'
import '../styles/tasklist.scss'
import { FiTrash, FiCheckSquare } from 'react-icons/fi'
import React from 'react';
interface Task {
id: number;
title: string;
isComplete: boolean;
}
export function TaskList() {
const [tasks, setTasks] = useState<Task[]>([]);
co... |
/***************************************************************************
* *
* This file was automatically generated with idlc.js *
* build info: *
* ... |
import { BlendFunction, DepthDownsamplingPass, EffectPass, NormalPass, RenderPass, TextureEffect } from 'postprocessing'
import { NearestFilter, RGBAFormat, WebGLRenderTarget } from 'three'
import { Engine } from '../../ecs/classes/Engine'
import { getAllComponentsOfType } from '../../ecs/functions/ComponentFunctions'... |
/*
* spurtcommerce community APImunity API
* version 1.0
* Copyright (c) 2019 piccosoft ltd
* Author piccosoft ltd <support@piccosoft.com>
* Licensed under the MIT license.
*/
import { Service } from 'typedi';
import { OrmRepository } from 'typeorm-typedi-extensions';
import { Logger, LoggerInterface } from '../... |
version https://git-lfs.github.com/spec/v1
oid sha256:93f325085b6839b97053c162184b9cff9b1f523765e5aa516b76bd3116808fa7
size 560428 |
export { default as OutlineMailOutline } from './Icon'; |
import Link from "next/link";
import React from "react";
import { Row, Col } from "react-bootstrap";
import * as B from "../../libraries/explorer-wamp/blocks";
import { DashBoardListConsumer } from "../../context/ListProvider";
import FlipMove from "../utils/FlipMove";
import DashboardBlocksBlock from "./DashboardB... |
import { Icon } from '@/components/icon'
Icon.register({
campground: {
width: 640,
height: 512,
paths: [
{
d:
'M624 448c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-608c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16h24.7l239.8-330.3-53.4-73.5c-5.2-7.2-3.6-17.2 3.5-22.4l25.9-18.8c7.1-5.2 ... |
import React from 'react';
import { Container } from './styles';
const EmptyList: React.FC = () => {
return (
<Container>
<h1>No Cars</h1>
</Container>
);
};
export default EmptyList; |
import { Calculator, BBox, Line } from '.';
import { SvgChar, Projection } from '..';
import { CommandBuilder } from '../CommandImpl';
import { MathUtil, Point } from '../../common';
export class PointCalculator implements Calculator {
private readonly svgChar: SvgChar;
private readonly point: Point;
constructo... |
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { DatePipe, DecimalPipe } from '@angular/common';
import * as moment from 'moment-mini-ts';
@Pipe({
name: 'format',
})
export class TableFunctionMonitorPipe implements PipeTransform {
constructor(p... |
import { Injectable } from '@nestjs/common';
import { Autor } from "src/interfaces/Autor";
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
@Injectable()
export class AutoresService {
constructor(@InjectModel('Autor') private autorModelo: Model<Autor>) {}
async obtenerAutores(){
... |
import { memo, SVGProps } from 'react'
const SVG = (props: SVGProps<SVGSVGElement>) => {
return (
<svg
className="icon"
viewBox="0 0 1024 1024"
xmlns="http://www.w3.org/2000/svg"
width={200}
height={200}
{...props}
>
<path d="M767.855 991.726s-307.414-254.712-150.76-... |
import DumpServer from "~/DumpServer";
let server: DumpServer;
const slow = {
protected: 10,
test: 10,
};
describe("Middleware", function () {
this.beforeAll(function () {
server = new DumpServer({ isProduction: true });
server.start();
});
describe("@Protected", function () {
this.slow(slow.p... |
import { Validation, largerThanOrEqual } from 'ecv-validation';
export default new Validation(
'engineN',
'Coeficiente N do motor',
'number',
[largerThanOrEqual(0)],
); |
import React, { useMemo } from "react";
import { Routes, Route, useParams, Navigate } from "react-router-dom";
import { ApolloProvider } from "@apollo/client";
import { makeClient } from "./graphql/adminapi/apollo";
import { useAppAndSecretConfigQuery } from "./graphql/portal/query/appAndSecretConfigQuery";
import Scr... |
import React from 'react';
import { ViewerScriptWrapper } from '@wix/native-components-infra';
import WidgetWrapper from './WidgetWrapper';
import { createControllers, initAppForPage } from './viewerScript.js';
// TODO: fill overrides and whatnot from santawrapper
const EditorAppWrapper = (
UserComponent: typeof Rea... |
import React, { memo } from 'react'
import { Breadcrumb as UIBreadcrumb } from '@faststore/ui'
import Link from 'src/components/ui/Link'
import type { BreadcrumbProps as UIBreadcrumbProps } from '@faststore/ui'
import { House as HouseIcon } from 'phosphor-react'
import './breadcrumb.scss'
type ItemElement = {
item:... |
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { ModuleWithProviders } from '@angular/core';
import { IconDefinition } from '@ant-design/icons-angular';
export declare class NzIconMod... |
import { addPerson, deletePerson, getById, people } from './db';
const resolvers = {
Query: {
people: () => people,
person: (_, { id }: { id: number }) => getById(id),
},
Mutation: {
addPerson: (
_,
{ name, age, gender }: { name: string; age: number; gender: string },
) => addPerson(n... |
<TS language="bg" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Десен клик, за промяна на адрес или етикет</translation>
</message>
<message>
<source>Create a new address</source>
<transl... |
import { Exclude } from 'class-transformer';
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
import { User } from '../auth/user.entity';
import { TaskStatus } from './task-status';
@Entity()
export class Task {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column()
title: string;
... |
/*
* 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... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { ISpecModel, ISpecModels } from './restapi';
import { validateProperty } from '../validate';
/**
* Validate a server kernelspec model to a client side model.
*/
// eslint-disable-next-line @typescript-esli... |
import {
SSMClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../SSMClient";
import { PutInventoryRequest, PutInventoryResult } from "../models/index";
import {
deserializeAws_json1_1PutInventoryCommand,
serializeAws_json1_1PutInventoryCommand
} from "../protocols/Aws_json1_1";
import { getS... |
//% color="#C814B8" weight=20 icon="\uf11b"
namespace ControlRemoto {
const PCA9685_ADD = 0x41;
const MODE1 = 0x00;
const MODE2 = 0x01;
const SUBADR1 = 0x02;
const SUBADR2 = 0x03;
const SUBADR3 = 0x04;
const LED0_ON_L = 0x06;
const LED0_ON_H = 0x07;
const LED0_OFF_L = 0x08;
co... |
import { NonRetriableError } from '../non-retriable-error';
describe('NonRetriableError', () => {
it('should be a subclass of Error', () => {
const error = new NonRetriableError('error');
expect(error).toBeInstanceOf(Error);
});
it('should have the correct name', () => {
const error = new NonRetria... |
import { SharedLogics } from './../../shared/shared.Logics';
import { StringModule } from './../../shared/shared.Logics';
export class AddressLogics extends SharedLogics {
private overiddenCurrency : string;
constructor() {
super();
}
public ProcessAndGetDeliveryOptions(data: any) : any[]{
... |
import { BlockMutatorSpec } from '@stryker-mutator/mutator-specification/src/index';
import BlockMutator from '../../../src/mutators/BlockMutator';
import { verifySpecification } from '../../helpers/mutatorAssertions';
verifySpecification(BlockMutatorSpec, BlockMutator); |
import { token } from './oauth'
import { decodeBase64UTF8 } from './encoding'
import { settings } from './config'
const GITHUB_ENCODING__HTML_JSON = 'application/vnd.github.VERSION.html+json'
const GITHUB_ENCODING__HTML = 'application/vnd.github.VERSION.html'
const GITHUB_ENCODING__REACTIONS_PREVIEW =
'application/v... |
import type { Project } from '@prisma/client';
import {
Box,
Flex,
Text,
Button,
IconButton,
Tooltip,
Input,
InputGroup,
InputRightElement,
useToast,
} from '@chakra-ui/react';
import { PlusIcon, TrashIcon } from '@heroicons/react/outline';
import { useState } from 'react';
import { useRouter } from... |
export class EstadoProceso {
esp_id: number;
esp_descripcio: string;
} |
import { css } from "@emotion/css";
import { cssVars } from "../theme.styles";
export const boxShadow = `
0px 3px 3px -2px rgba(0, 0, 0, 0.2),
0px 3px 4px 0px rgba(0, 0, 0, 0.14),
0px 1px 8px 0px rgba(0, 0, 0, 0.12)
`;
export const whiteGradient = css({
width: "100%",
height: "100%",
background: "linear-g... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { CartFacade } from '../state/facades';
import { ICart } from '../core/models/cart.model';
import { Subscription } from 'rxjs';
@Component({
selector: 'app-cart',
templateUrl: './cart.component.html',
styleUrls: ['./cart.component.css']
})
expo... |
/**
* Module dependencies.
*/
import * as passport from "passport";
import * as LocalStrategy from "passport-local";
import * as ClientPasswordStrategy from "passport-oauth2-client-password";
import * as BearerStrategy from "passport-http-bearer";
import * as bcrypt from "bcrypt";
import {BasicStrategy} from "passpor... |
/**
* More info about the code bellow:
* https://blog.rsuter.com/angular-2-typescript-property-decorator-that-converts-input-values-to-the-correct-type/
*/
export const StringConverter = (value: any) => {
if (value === null || value === undefined || typeof value === "string")
return value;
return ... |
import fs from 'fs';
export const deleteFile = async (filename: string) => {
try {
// verifica se o arquivo existe no dir passado
await fs.promises.stat(filename);
} catch {
return;
}
// remove o arquivo no dir passado
await fs.promises.unlink(filename);
}; |
import { Module, NestModule, MiddlewareConsumer } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RuleGroup } from './entitys/rule-group.entity';
import { RuleGroupService } from './rule-group.service';
import { RuleGroupController } from './rule-group.controller';
import { DecodeJwt } ... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
import { ILayerDefinition } from "@esri/arcgis-rest-common-types";
import { cvdServiceFields } from "./fields";
export const getFeatureServiceResponse: ILayerDefinition = {
currentVersion: 10.6,
id: 0,
name: "Service Requests"... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const RiSignalWifi3Line: IconType; |
/*
* Copyright (c) 2020. tgm - Die Schule der Technik
*
* 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 req... |
import { MenuItem } from '@patternfly/react-core';
import React from 'react';
import Alert from './details/alert/Alert';
import { IAlert } from '../../utils/interfaces';
import Infos from './details/alert/Infos';
import { formatTimeWrapper } from '../../utils/helpers';
interface IAlertsItemProps {
name: string;
a... |
import React from "react";
import { IconName } from "@fortawesome/fontawesome-svg-core";
import { faRss } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import ExternalLink from "../elements";
import { getFooterLinks } from "../../graphql/footer";
import { us... |
<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>
<... |
/* eslint-disable no-unused-vars, no-undef */
import * as React from 'react';
import * as _ from 'lodash-es';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { K8sKind, k8sList } from '../../module/k8s';
import { resourcePathFromModel } from '../utils/resource-link';
import { Loa... |
import type { ViewProps } from 'react-native';
import type { CustomProps, SafeAreaProps } from '../../../components/types';
import type { StyledProps } from '../../../theme/types';
export type IViewProps = (ViewProps &
StyledProps &
SafeAreaProps & {
children?: any;
}) &
CustomProps<'View'>; |
/** Set by the browser extension page and extension entry scripts. */
declare var SG_ENV: 'EXTENSION' | 'PAGE' | undefined
/** Set by the browser extension content, background and option page entry scripts. */
declare var EXTENSION_ENV: 'CONTENT' | 'BACKGROUND' | 'OPTIONS' | null | undefined
/** Set by native integra... |
import View from "../view";
export default class IconView extends View {
content: string;
fillColor: string;
viewBox: string;
} |
import React from "react";
import { observable, autorun } from "mobx";
import { observer, disposeOnUnmount } from "mobx-react";
import { Cluster } from "../../../../main/cluster";
import { Input } from "../../input";
import { isUrl } from "../../input/input.validators";
import { SubTitle } from "../../layout/sub-title"... |
/**
* @file IconCurling 冰壶
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import React from 'react';
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper(
'IconCurling',
true,
(props: ISvgIconProps) => (
<s... |
import { find } from 'lodash';
import { IconResource } from 'types';
export default {
getAssetUrl(assetName: string) {
var baseUrl = 'public/plugins/novatec-sdg-panel';
return baseUrl + '/assets/icons/' + assetName;
},
getTypeSymbol(type: string, externalIcons: IconResource[], resolveName = true) {
... |
/*
* 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 under... |
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assert } from "../testing/asserts.ts";
import { LogRecord, Logger } from "./logger.ts";
import { LogLevels, LevelName } from "./levels.ts";
import { BaseHandler } from "./handlers.ts";
class TestHandler extends BaseHandle... |
import { Route } from '@angular/router';
import { UserRouteAccessService } from '../../../shared';
import { DataGridDemoComponent } from './datagriddemo.component';
export const datagridDemoRoute: Route = {
path: 'datagrid',
component: DataGridDemoComponent,
data: {
pageTitle: 'primeng.da... |
/**
* Creates a range from a given duration
*
* console.log(createRange<number>(2,6)) // [6, 8]
*
* */
import type { Range } from './types';
export const createRangeFromDuration = <T extends number>(
duration: T,
start = 0 as T,
): Range<T> => {
const end = (start + duration) as T;
return [start,end]
}; |
// Scheme types prefix with `S`
export type SList<T extends any = any> = T[];
export type SLat = any[];
export type STup = number[];
export type SAtom = number | string;
export type SSExp = SAtom | SList;
export type SSet = SLat;
export type SPair = [SSExp, SSExp]; |
import Manager, { IManager } from './manager';
import { convert, create } from 'xmlbuilder2';
import { saveAs } from 'file-saver';
export default class GPXManager extends Manager implements IManager {
private readonly root: IGPXRoot;
private constructor(file: IGPXFile) {
super();
this.root =... |
import type { RuleConfig } from '../rule-config';
/**
* Disallow duplicate arguments in `function` definitions.
*
* @see [no-dupe-args](https://eslint.org/docs/rules/no-dupe-args)
*/
export type NoDupeArgsRuleConfig = RuleConfig<[]>;
/**
* Disallow duplicate arguments in `function` definitions.
*
* @see [no-du... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Database, DatabaseConfig } from '../src/db';
import { PoolConfig } from 'pg';
export class TestDatabase extends Database {
private readonly usesTransactions: boolean;
private preparedForTesting = false;
constructor(
config: PoolConfig,
numReplicates: number,
timelineEnabled: boolean,
us... |
import winston, { createLogger } from 'winston';
import { isProduction } from './process';
const logger = createLogger({
transports: [
new winston.transports.Console({
level: isProduction ? 'info' : 'debug',
}),
],
});
export default logger; |
import { Component, Inject, LOCALE_ID, Renderer2 } from '@angular/core';
import { ConfigService } from '../@vex/services/config.service';
import { Settings } from 'luxon';
import { DOCUMENT } from '@angular/common';
import { Platform } from '@angular/cdk/platform';
import { NavigationService } from '../@vex/services/na... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { PokemonListComponent } from './pokemon-list/pokemon-list.component';
import { PokemonCardComponent } fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.