text
stringlengths
10
953k
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Location} from '@angular/common'; import {$locationShim, UrlCodec} from '@angular/common/upgrade'; import {fa...
import * as assert from 'assert' import * as os from 'os' import { Position, window, workspace, WorkspaceEdit } from 'vscode' import { getFixturePath, getOptionsForFixture, wait } from './testUtils' import * as utils from 'vscode-test-utils' suite('EditorConfig extension', () => { suiteTeardown(utils.closeAllFiles) ...
/** * @file PeopleDeleteOne 删除用户 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {ISvgIconProps, IconHelper, IconWrapper} from '../runtime'; export default IconWrapper( 'people-delete-one', true, (h: IconHelper, props: ISvgIconProps) => ...
import Dexie from 'dexie'; import {IDatasetMeta, IDataset, ISession} from './IDataset'; const SCHEMA_VERSION = 1; // // Declare Database // class LineUpDB extends Dexie { datasets: Dexie.Table<IDatasetMeta, number>; sessions: Dexie.Table<ISession, number>; constructor() { super('LineUp App DB'); this.v...
import { Store } from './store'; export declare const StormComputers: Store;
import React, { Component, ReactNode } from 'react' export type CompareSearchType = (stringToCompare: string) => boolean type Props = { children: (props: { value: string onChange: (newSearchString: string) => void compareSearch: CompareSearchType }) => ReactNode } type State = { searchString: strin...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { MainComponent } from './main/main.component'; import { FrontpageComponent } from './frontpage/frontpage.component'; import { PageNotFoundComponent } from './shared/components/not-found.component'...
/* GENERATED FILE */ import * as React from 'react'; import Svg, { Rect, Circle, Line } from 'react-native-svg'; import { IconProps } from '../lib'; function PauseCircle(props: IconProps) { return ( <Svg id="Raw" viewBox="0 0 256 256" width={props.size} height={props.size} fill={pr...
import { Animation } from '../../../interface'; /** * iOS Alert Enter Animation */ export declare function iosEnterAnimation(AnimationC: Animation, baseEl: HTMLElement): Promise<Animation>;
// Copyright 2019-2022 @polkadot/extension-ui authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { ThemeProps } from '../types'; import React from 'react'; import styled from 'styled-components'; interface Props { children: React.ReactNode; className?: string; } function Main ({ children,...
/** * @author Drew Noakes https://drewnoakes.com */ /// <reference path="../../libs/lodash.d.ts" /> /// <reference path="../../libs/three.d.ts" /> /// <reference path="../../libs/smoothie.d.ts" /> import Animator = require('Animator'); import constants = require('constants'); import control = require('control'); im...
/* Copyright 2020 Adobe. All rights reserved. This file is licensed 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.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
import { Badge, RunContext } from "../index.js"; export class BadgeSection { badges: Array<Badge>; constructor(run: RunContext) { const badges = run.badges.map( (badge) => new Badge(badge, run.settings, run.about, run.providers) ); this.badges = badges; } }
import { Wallet } from '../../wallet'; import { ContractProvider } from '../../contract'; import { ContractMethodObject } from './contract-method-object-param'; import { ContractMethod } from './contract-method-flat-param'; import { ParameterSchema } from '@taquito/michelson-encoder'; export declare class ContractMetho...
import {exporters} from "../globalization"; export function DIExport(){ return function (type: {new (...args): any}) { exporters.push(type); } }
/** * This file auto-generated with the `scripts/bootstrap-icons.js` script. */ import { Icon } from '../components/svg-icon'; // https://github.com/twbs/icons/blob/main/icons/arrow-down-up.svg export const arrowDownUp: Icon = { name: 'arrow-down-up', width: 16, height: 16, viewBox: '0 0 16 16', children: ...
import HttpStatus from '../../types/httpStatus' import PayIDError from './payIdError' export enum LookupErrorType { MissingPayId = 'MissingPayId', MissingAddress = 'MissingAddress', // TODO: Remove Unknown after MissingPayId/MissingAddress are implemented Unknown = 'Unknown', } /** * A custom error class to...
/** * SharePoint Framework support for dynamic data bindings. * * @remarks * This package provides the necessary infrastructure classes and public APIs necessary * to run dynamic data, and implement components that use it. * * @packagedocumentation */ export { default as DynamicDataReference } from './DynamicDa...
import * as React from 'react'; import cxs from 'cxs'; export const MarginContent: React.FC<{}> = props => { const styles = { container: cxs({ margin: '2em 0 2em 0', display: 'flex', justifyContent: 'center', }), inner: cxs({ width: '840px', color: 'white', ' h1': { ...
/** * Copyright (c) BrownBear 2021 - Present. All Rights Reserved. * * This file is a part of Tuleap. * * Tuleap is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * ...
import io from 'socket.io-client'; import { Configuration } from './common/configuration.js'; import settings from './settings.json'; import { register } from './operations/register/register.js'; import { executeScript } from './operations/scripts/execute-script.js'; import { CONNECT } from '../../weaver-common/src/com...
import Knex from 'knex'; export const up = (knex: Knex) => { return knex.schema.createTable('farm', table => { table.increments('id').primary(); table.integer('idUser').unsigned().notNullable(); table.string('name').notNullable(); table .timestamp('created_at') .notNullable() .defa...
export { default as GridColumnProvider } from "./GridColumnProvider";
import { providers, Contract, ethers } from 'ethers'; import { ExternalProvider, JsonRpcProvider, JsonRpcSigner } from '@ethersproject/providers'; import { Network } from '@ethersproject/networks'; import { EthereumErrors } from '@/enums/Ethereum'; import { IEthersErrorResponse } from '@/interfaces/IEthers'; import { M...
import styled from "styled-components"; export const Button =styled.button` display:flex; align-items:center; justify-content:center; background:transparent; margin:0; border:none; color:${({ theme }) => theme.isLight ? theme.colors.purple.light : theme.colors.white.light}; `; export const Container =s...
//Import Component form the angular core package import { Component, Input, OnInit } from '@angular/core'; //Importt the Image interface import { Image } from './interfaces/image.interface'; import { Hall } from './model/hall'; import { halls } from './globals'; //Compoent Decorator @Component({ //Name of our t...
import { Version } from '@microsoft/sp-core-library'; import * as React from 'react'; import * as ReactDom from 'react-dom'; import { BaseClientSideWebPart, IPropertyPaneConfiguration, PropertyPaneTextField, IWebPartContext, PropertyPaneSlider } from '@microsoft/sp-webpart-base'; import { escape } from '@mic...
import { createScriptTag } from '../../utils'; let isTikTokScriptAdded = false; export const tikTokClassNames = `.tiktok-embed`; const tikTokEmbedUrl = `https://www.tiktok.com/embed.js`; export const handleTikTokLoad = () => { if (document.querySelector(tikTokClassNames) !== null) { if (!isTikTokScriptAdded) { ...
import { MigrationInterface, QueryRunner, Table, TableForeignKey, TableIndex } from 'typeorm'; export class CreatePostsLikes1618006158792 implements MigrationInterface { private readonly table = new Table({ name: 'posts_likes', columns: [ { name: 'post_id', type: 'integer', isPrimary: true }, { n...
import { List, ListItem, ListItemIcon, ListItemText } from "@material-ui/core" import CodeIcon from '@material-ui/icons/Code'; import { version } from '../../package.json' import { GitHubMaterialIcon } from "." import { useTranslation } from "react-i18next"; /** * A List containing all relevant App Informations e.g. ...
// Copyright 2014 The Oppia Authors. 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 ap...
/* * @Author: zouyaoji@https://github.com/zouyaoji * @Date: 2021-10-26 11:14:41 * @LastEditTime: 2022-02-08 16:19:57 * @LastEditors: zouyaoji * @Description: * @FilePath: \vue-cesium@next\packages\components\measurements\src\regular\index.ts */ import type { PropType } from 'vue' import { defineComponent } from ...
import { DaffSidebarMode } from '@daffodil/design'; import { ActivatedRouteSnapshot } from '@angular/router'; export const computeDeepestSidebarMode = (snapshot: ActivatedRouteSnapshot): DaffSidebarMode => { if(snapshot.firstChild){ const mode = computeDeepestSidebarMode(snapshot.firstChild) if(mode) return...
import {Component, OnInit} from '@angular/core'; import {TreeNode} from '../../../ui-common/common/treenode'; import {Router} from '@angular/router'; import {EventManagerService} from '../../../shared/services/event-manager.service'; @Component({ selector: 'was-sidebar', templateUrl: './sidebar.component.html'...
import * as React from 'react' import { mount } from 'enzyme' import { useInput } from './index' const Input = (): React.ReactElement => { const [{ value, onChange }] = useInput('test-value') return ( <input value={value} onChange={onChange} /> ) } describe('useInput()', () => { it('renders input compon...
import { Collapse, ListItem } from '@material-ui/core' import { createStyles, makeStyles, Theme } from '@material-ui/core/styles' import { ExpandLess, ExpandMore } from '@material-ui/icons' import { ReactElement, ReactNode, useState } from 'react' const useStyles = makeStyles((theme: Theme) => createStyles({ roo...
export default class AtivacaoHelper { private request; private response; private usuario; constructor(request, response) { this.request = request; this.response = response; this.usuario = request.usuario; } public iniciar() { console.log("Inciado processo de ...
import Application from 'dummy/app'; import config from 'dummy/config/environment'; import * as QUnit from 'qunit'; import { setApplication } from '@ember/test-helpers'; import { setup } from 'qunit-dom'; import { start } from 'ember-qunit'; import 'qunit-dom'; import setupSinon from 'ember-sinon-qunit'; setApplicatio...
import { ReactChild, ReactNode } from 'react'; import { POSITIONS, VARIANTS, ACTIONS } from './index'; import toast from './toast'; import ToastContainer from './MyToastContainer'; export type variantTypes = typeof VARIANTS[keyof typeof VARIANTS]; export type positionTypes = typeof POSITIONS[keyof typeof POSITIONS]; e...
import { app, BrowserWindow, ipcMain } from 'electron' import * as path from 'path' import { format as formatUrl } from 'url' const windowConfig = require('@config').window // Пока не обновили пакет и не завезли новые тайпинги - костылим через require)) // import installExtension, { VUEJS_DEVTOOLS } from 'electron-de...
import { _UnmarshalledAnalyticsConfiguration } from "./_AnalyticsConfiguration"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * ListBucketAnalyticsConfigurationsOutput shape */ export interface ListBucketAnalyticsConfigurationsOutput extends __aws_sdk_types.MetadataBearer { /** * <p>Indicates whethe...
import { createToken, Lexer, CstParser, CstNode, IToken } from 'chevrotain' const Identifier = createToken({ name: 'Identifier' , pattern: /[a-zA-Z0-9_-]+/ }) const And = createToken({ name: 'And', pattern: /and/ }) const Or = createToken({ name: 'Or', pattern: /or/ }) const Not = createToken({ name: 'Not', pattern:...
/** * @file LinkOne 链接 * @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( 'link-one', true, (props: ISvgIconProps) => ( <svg ...
import React, { useEffect, VFC } from 'react'; import { editorContextState as editorContext, editorState } from '../../state'; import { Leva, LevaPanel, useControls, useCreateStore } from "leva"; import { useProxy } from 'valtio'; import * as THREE from 'three' // import styles from './menu.module.css'; interface Uni...
import {DOCUMENT} from '@angular/common'; import { ApplicationRef, Injectable, Injector, Inject, ReflectiveInjector, ComponentFactory, ComponentFactoryResolver, ComponentRef, TemplateRef } from '@angular/core'; import {ContentRef} from '../util/popup'; import {isDefined, isString} from '../util/util'...
import { CURRENCY_ENUM } from '@celo/utils/lib' import BigNumber from 'bignumber.js' import React, { FunctionComponent, useEffect } from 'react' import { useAsync, UseAsyncReturn } from 'react-async-hook' import { useDispatch } from 'react-redux' import { showErrorOrFallback } from 'src/alert/actions' import { ErrorMes...
import {expect} from 'chai'; import sinon from 'sinon'; import {waitUntil} from '@universal-login/commons'; import {PRICES_AFTER, PRICES_BEFORE, createMockedPriceObserver} from '../../mock/PriceObserver'; describe('UNIT: PriceObserver', () => { const {mockedPriceObserver, resetCallCount} = createMockedPriceObserver(...
import { AcceptDomainTransferFromAnotherAwsAccountCommandInput, AcceptDomainTransferFromAnotherAwsAccountCommandOutput, } from "../commands/AcceptDomainTransferFromAnotherAwsAccountCommand.ts"; import { CancelDomainTransferToAnotherAwsAccountCommandInput, CancelDomainTransferToAnotherAwsAccountCommandOutput, } ...
import { Component, OnInit } from '@angular/core'; import {OrderService} from './order.service'; @Component({ selector: 'app-overview', templateUrl: './overview.component.html', styleUrls: ['./overview.component.css'] }) export class OverviewComponent implements OnInit { orders = [{}]; constructor(private ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="la" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Barter</source> <translation>Informatio de Barter</translation> ...
import { bool } from 'aws-sdk/clients/signer'; import { SubExpression } from './cfn-binder/cfn-sub-expression'; export class ResourceUtil { public static FixVersions(obj: any) { if (obj !== null && typeof obj === 'object') { const entries = Object.entries(obj); for (const [key, val]...
import React, { memo } from 'react'; import styled from 'styled-components'; export const CustomScrollbar = memo(() => { return ( <Section> <Title>Custom Scrollbar</Title> <Contents> Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni quae soluta molestias blanditiis incidunt liber...
import { Component, OnInit } from '@angular/core'; import { FormGroup, FormBuilder } from "@angular/forms" import { of } from 'rxjs'; import { RxwebValidators } from '@rxweb/reactive-form-validators'; import { HttpClient } from '@angular/common/http'; import { FormBuilderConfiguration,RxFormBuilder} from '@rxweb/reacti...
import { Client, TextChannel } from "discord.js"; import { config as env } from "dotenv"; import DirectoryUtils from "./utils/DirectoryUtils"; import { handlers_directory, AUTHENTICATION_MESSAGE_CHANNEL, AUTHENTICATION_MESSAGE_ID, PRODUCTION_ENV } from "./config.json"; const client = new Client(); if (process.env.NOD...
import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap'; import { structToDate } from './struct-to-date.fn'; describe('StructToDate', () => { beforeEach(async () => { }); it('should convert an NgbDateStruct to the equivilent JavaScript Date', () => { // Arrange // January 1, 2021 ...
// @ts-ignore import bundleCss from "!raw-loader!../style/bundle.css"; import Document, { Html, Head, Main, NextScript } from "next/document"; export default class MyDocument extends Document { static async getInitialProps(ctx: any) { const page = ctx.renderPage((App) => (props) => <App {...props} />); const...
import { Requester, Validator } from '@chainlink/ea-bootstrap' import { ExecuteWithConfig, Config } from '@chainlink/types' export const NAME = 'quote' const customError = (data: any) => data.Response === 'Error' const customParams = { base: ['base', 'asset', 'from'], } const commonKeys: { [key: string]: string }...
import Extensions from "../core/common/extensions"; export interface IGenericModel { toPlainObject?(): any; setup?(model: any): void; validate?(model: any): boolean; [key:string]: any; } abstract class GenericModel implements IGenericModel { toPlainObject() { return Extensions.toPlainObject(this); } ...
import {toBytesU64} from "./bytesrepr"; export class U512 { private value: U64; constructor(value: U64) { this.value = value; } getValue(): U64 { return this.value; } static fromBytes(bytes: Uint8Array): U512 | null { if (bytes.length < 1) { return null; ...
import { InstanceUpdateOptions } from 'sequelize/types'; /** * The addAssociation mixin applied to models with hasMany. * An example of usage is as follows: * * ```js * * User.hasMany(Role); * * interface UserInstance extends Sequelize.Instance<UserInstance, UserAttributes>, UserAttributes { * // getRoles......
import type { Locale } from '../types' import formatDistance from './_lib/formatDistance/index' import formatLong from './_lib/formatLong/index' import formatRelative from './_lib/formatRelative/index' import localize from './_lib/localize/index' import match from './_lib/match/index' /** * @type {Locale} * @categor...
import { CustomLocale } from "../types/locale"; export declare const Finnish: CustomLocale; declare const _default: { ar?: CustomLocale | undefined; at?: CustomLocale | undefined; az?: CustomLocale | undefined; be?: CustomLocale | undefined; bg?: CustomLocale | undefined; bn?: CustomLocale | und...
/** * 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 { Component, OnInit } from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {KeycloakService} from '../../service/keycloak.service'; import {AppConfigService} from "../../service/app-config.service"; @Component({ selector: 'app-login', templateUrl: './login.component.html', ...
import React from 'react'; import { Link } from 'react-router-dom'; import styles from './Header.module.css'; const Header = () => { return ( <div className={styles.header}> <h1 className={styles.title}> <Link to='/'>The Movie App</Link> </h1> </div> ); }; export default Header;
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { Routes, RouterModule } from '@angular/router'; import { IonicModule } from '@ionic/angular'; import { SearchPiecePage } from './search-piece.page'; const routes: Routes = [...
/* global fetch, window, alert */ import React from 'react'; import { NextComponentType } from 'next'; import { DateTime } from 'luxon'; import { useFormik } from 'formik'; interface Request { id: number; name: string; type: string; movedToInProgressAt: string; } interface Result { name: string; numberOfI...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { Sunset as FeatherSunset, Props } from 'react-feather'; import * as React from 'react'; export const Sunset: React.FC<Props> = ({ ...rootProps }) => ( <FeatherSunset data-icon="sunset" {...rootProps} /> );
/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import * as log from '../log.js' import type { Job, JobResult } from '../types.js' import { execute } from './execute.js' export async function single(job: Job): Promise<JobResult> { const resu...
// The example-module file will be auto-generated. As soon as the // examples are being compiled, the module file will be generated. import { EXAMPLE_COMPONENTS } from './example-module'; /** * Example data * with information about Component name, selector, files used in example, and path to examples */ export c...
import React from "react"; import { colors } from "../src/colors"; export const Column: React.FC<{ title?: string; description?: string; }> = ({ title, description, children }) => ( <div style={{ marginRight: 20, borderTop: `1px solid ${colors.silver.dark}`, width: 300, }} > {titl...
import { Controller, HttpStatus } from '@nestjs/common'; import { PriceService } from '@services'; import { MessagePattern, RpcException } from '@nestjs/microservices'; @Controller() export class PriceController { constructor(private readonly priceService: PriceService) {} @MessagePattern({ cmd: 'load-prices' }) ...
// The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `index.ts`, but if you do // `ng build --env=prod` then `index.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angular-cli.json`...
/** * ng2-adal - Use Azure AD Library - ADAL in Angular 2 * @version v0.1.0 * @link https://github.com/sureshchahal/angular2-adal#readme * @license MIT */ import {Injectable} from '@angular/core'; import {Observable} from 'rxjs'; import {HttpClient, HttpHeaders, HttpParams, HttpResponse} from "@angular/common/ht...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { AuthenticationService } from 'src/app/services/authentication.service'; import { HttpErrorResponse } from '@angular/common/http'; import { NgStoreService } from 'src/app/store/app.store'; import { Karia...
import { BatchGrantPermissionsCommandInput, BatchGrantPermissionsCommandOutput, } from "../commands/BatchGrantPermissionsCommand"; import { BatchRevokePermissionsCommandInput, BatchRevokePermissionsCommandOutput, } from "../commands/BatchRevokePermissionsCommand"; import { DeregisterResourceCommandInput, Deregi...
import { Meta } from '@storybook/react'; import React from 'react'; import SchemaForm, { FormSchema, useSchemaForm } from '../../src'; import Button from 'antd/es/button'; import CustomInput from '../components/CustomInput'; import CustomRadioGroup from '../components/CustomRadioGroup'; import FormItemWrapper from '../...
import * as fs from 'fs-extra' export async function pipeToFile(stream: any, output: string) { const fileStream = fs.createWriteStream(output) await new Promise((resolve, reject) => { if (!stream) { return reject('No stream given') } stream.pipe(fileStream) stream.on('error', (err: any) => ...
import { expect } from "@loopback/testlab"; import { User } from "./test.model"; import { generateRelation } from "../../src"; describe("Generate Metadata", () => { it("generateRelation Test", () => { expect({ ...generateRelation(User, []), source: undefined, target: u...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="eo"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Riocoin2</source> <translation type="unfinished"></translation> </message> <m...
interface Event { namespace: string, data: any, ___cd?: boolean, // Delegate ___td?: boolean // Trigger data } interface Cash { [index: number]: EleLoose | undefined, length: number, splice ( start: number, deleteCount?: number ): EleLoose[], splice ( start: number, deleteCount: number, ...items: Ele[]...
/*import * as React from "react"; import { observer, inject } from "mobx-react"; import { Field } from "../model/field/Field"; import { File } from "../model/file/File"; import {titleCase} from "title-case"; export interface IProps { file: File; fieldKey: string; } // automatically update when the value changes @...
import { registerLocaleData } from "@angular/common"; import localeEs from "@angular/common/locales/es"; registerLocaleData(localeEs, "es"); import { LOCALE_ID } from "@angular/core"; import { NgModule } from "@angular/core"; import { CommonModule } from "@angular/common"; import { AlertModule } from "shared/modules/...
import { App } from 'reapex' import plugin from '../src' const app = new App() export const myPlugin = app.plugin(plugin) export default app
<TS language="fi" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klikkaa hiiren oikealla muokataksesi osoitetta tai nimeä</translation> </message> <message> <source>Create a new address</source> ...
import { useEffect, useState } from 'react'; import { useHistory, useParams } from 'react-router-dom'; import toast from 'react-hot-toast'; import logoImgLight from '../../assets/images/logo-light.svg'; import logoImgDark from '../../assets/images/logo-dark.svg'; import { RoomCode } from '../../components/RoomCode'; ...
import { Injectable } from '@angular/core'; import { ConfigurationService } from '../Configuration/configuration.service'; import { UserService } from '../User/user.service'; import { ObjectData } from '../User/data'; import { SquareData } from './data'; var axios = require('axios'); @Injectable() export class Squar...
/* * 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 { useEffect, useState } from 'react'; import { getIndexPatternById, ...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { WelcomeComponent } from './welcome/welcome.component'; import { NewStoriesComponent } from './new-stories/new-stories.component'; import { PastStoriesComponent } from './past-stories/past-stories.component'; impo...
import { Marketplace } from "./types"; import magicEden from "./magicEden"; import digitalEyes from "./digitalEyes"; import solanart from "./solanart"; import alphaArt from "./alphaArt"; /** * These are the list of marketplaces that we check for notifications */ const marketplaces: Marketplace[] = [ magicEden, d...
export class NpNotification { constructor(value: any) { this.type = value.type; this.header = value.header; this.message = value.message; this.autoCloseTimeout = value.autoCloseTimeout; this.id = Math.random(); } /* type should be 'success' | 'danger' | 'info' | 'warn...
import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; @Injectable({ providedIn: 'root' }) export class CommonService { constructor(protected hc: HttpClient) { } }
<TS language="sl_SI" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Desni klik za urejanje naslovov ali oznak</translation> </message> <message> <source>Create a new address</source> <tran...
import { MigrationInterface, QueryRunner } from 'typeorm' export class enhanceMessageType1638081576988 implements MigrationInterface { name = 'enhanceMessageType1638081576988' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(` CREATE TABLE "temporary_WillEntity" (...
import { Module, HttpModule } from '@nestjs/common'; import { MetricsService } from './metrics/metrics.service'; @Module({ imports: [HttpModule], providers: [MetricsService], exports: [MetricsService] }) export class CommonModule {}
/* * Copyright 2019 FZI Forschungszentrum Informatik * * 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 applicabl...
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* AES implementation in JavaScript (c) Chris Veness 2005-2016 */ /* MIT Licence */ /* www.movable-type.co.uk/scripts/aes.html */ /* - - - - - - - - - - - - - - - - - - -...
/* * Copyright (c) A11yWatch, LLC. and its affiliates. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. **/ import { useCallback, useState } from 'react' import { Tabs, Tab } from '@material-ui/core' import { makeStyles } from '@material-ui...
import { Component, OnInit } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { ToastrService } from 'ngx-toastr'; import CustomValidators from 'src/app/core/utils/customValidators'; import { VaultService } from 'src/app/core/services/vaul...